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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var SK,Y9$,W$X,ua,jK,K8,f8,g1,$Y,zhu,mU9,r1,jhh,Jua,L8,CaK,T1a,EYf,uf,ruU,GJU,vYX,af8,L$Y,Jm,ct,sha,gd,dU1,rd,lfY,vt,Is,dd,Z8f,Xi,Zs,oYh,Qh9,kJU,k_,yuu,NL,N1J,VJ,MKX,eS,H81,O8h,uiX,$c,Wha,zUE,mLY,n_X,jsa,gZ,Y6Y,Ed,S6K,PfY,Cff,q6a,RUu,wZ,xL8,buX,TdX,KhY,fs9,g_E,G3h,io,v_f,asa,ssh,dLu,Aj,yB,ls8,Lh8,Am8,H6,ULY,ymU,k31,MSh,VB,E_K,e_,YE,Sc,VSE,Nd$,HuJ,nS,eUK,Ou1,Yd9,PoE,Sd1,xE,uYa,W5f,uK,mIJ,ncX,JjY,qdh,rX,K5K,BZE,Ech,fI8,gc8,DIf,G1$,LS,FF,aIa,p6h,F5u,X6h,Ajh,NZu,O1u,zLa,ec,nE9,JYJ,Px,Wx,zT,nh,j2,xU,Kh,
E4,bS$,vx,Kzh,gE9,s4,dE,rY1,Zi,iB,o9,tw,hLa,vEE,D8Y,IBU,aB$,LzU,wdf,pd9,Fz1,d8u,MD,kU,lB1,XdY,ZSJ,oEu,iSu,tcu,SY,U8a,Wz,zq,mc,n7,Js,kcE,Bz,yYf,OS9,C7,Y4h,S4h,PB$,b0,um8,Wpa,Tq,K7,nU9,f7,BEJ,cwa,gQ,q41,CB$,REu,xDa,bhf,TEY,Gq,Kpu,EU$,hs,fia,gU1,vz,DD,ID,aD,$Df,GT$,rwh,wQ,vUf,DDa,IiJ,FO,dQ,l0,i0,oD,ts,As,aih,LpX,wxa,pxU,FpE,s9h,dDJ,lia,Xx8,Zh8,ihh,Qw,oUX,t2E,AwK,Ng,Hz,UDY,M2$,yw$,NE1,V2a,eEU,Oh1,uOY,Wc1,zAY,mgE,ntY,jDY,JsX,qaK,Oa,RA$,xga,Yg,b7U,TQh,KcE,EtX,gtX,FcJ,sDu,dg9,XzE,Z7K,jZ,i7h,J$,QD$,kqh,MYh,
ysa,NQu,H7X,VYa,eAa,xg,YyU,AsK,Sy1,P9K,uMa,W81,zq9,m1K,ngE,jYf,J$K,C9a,c$8,x1K,qyX,RqY,K89,EgJ,f0h,bx$,$1h,Thu,GH8,aY,Lx,px,hqE,D18,I0K,wk8,tZh,F8K,pkE,d1Y,XkJ,sYK,kH1,U1U,MZf,y$X,Nhf,Hx1,VZu,OxJ,eqf,Y_1,S_a,PV9,uIE,zJJ,nS1,j6a,JFa,cFa,B7J,rF8,Gl8,i9,hJ8,DZh,Ib8,ab$,Lo$,whK,Foa,s6Y,dZf,yI,lb$,tLa,eZ,Oy,klJ,MLJ,unK,a69,Wh,wJa,db$,F2a,sIh,Bh,l6h,XJu,iJh,oda,thh,AxK,Ub$,QI$,k69,qZ,yxE,HJa,NKa,efu,$S,hF,vh,YWh,SWE,Pkh,u3a,WNK,zyf,nZE,mPY,iV,AF,TwU,y2,f4Y,Hh,gZ1,$P1,eL,rAJ,V2,pR8,sj$,XR$,ZEf,oZE,Sh,PJ,
AA$,Qja,kBE,z6,yAf,VXY,eyX,OE1,YhU,ShK,HEX,MX$,Jx,jh,nJ,PYK,WGu,mY9,JcJ,n29,CJ,cca,CYu,qh$,Ra$,xYJ,KJ,bz8,KG8,Tk9,E2K,g2X,gK,aA9,wQ1,FGa,dYh,XQa,ZzU,hx,vJ,iz$,UYE,LJ,ycY,pJ,Fn,VHa,YQX,PX9,uBu,WV1,su,zl1,mR1,nF$,Jia,Bcf,ciK,CXE,Rlu,ly,xR$,bZ9,Z6,tx,EFJ,fRY,gFf,kd,GZa,hlu,DRa,eh,FVK,sdu,dRX,lRh,X_$,PR,uk,WR,zB,oFa,nE,tq8,Ai1,URa,Qd$,Mqh,yi8,kZX,cR,Nch,OZX,qP,elX,Yfu,HZE,SfX,xZ,WUa,PE8,z_8,msa,nG$,JpK,jza,B6E,qf$,cp8,xsE,gG1,rp8,h_a,DsX,LU1,aNa,IN$,wKX,FUX,dsX,sz$,lNa,Z_h,i_J,vR,Us$,aj,Muh,kyK,ypJ,ww,
pE,N69,F3,H_K,e_9,YEX,uDa,zTX,Wua,Y2,mzJ,O_1,qEa,RTE,xz1,WQ,boE,KuX,EyY,jH,gyf,G4$,rJJ,IYu,aYa,Luf,weK,Fuh,ZoE,sWJ,lYE,XeX,ioh,trh,oyE,Uza,AJu,bY,QWh,MrU,yJ$,eTE,G_,hc,Ooh,Y2$,vQ,W9a,Lz,wk,pz,jkE,FV,c9h,lY,C6K,q2h,RjK,xqu,iY,bM1,K91,E5K,g5E,r9$,v5U,ICE,NY,aCX,L9a,w3U,p3h,F9K,sk9,dq8,lCK,eH,iMa,o59,tfU,A9$,Uqu,QkJ,k5a,MfU,y98,Nfu,HM8,Vfu,ej9,Ji,BP$,c6a,B_,c_,CZ,CjY,qVa,RBJ,xT1,bba,TPK,KsJ,r69,Gda,hB$,voX,DTY,bX,KZ,EQ,fZ,rc,GZ,hi,a91,DR,wua,Id,puX,FsE,ad,sAf,dTa,l9U,kdK,y6a,Obf,upY,PIh,MR8,WZh,nWY,
gW8,qC1,vWf,xau,hoJ,Da1,dc,aSh,XB,wTa,pTE,sRK,da8,lSu,ZAE,Ai,oWY,tkf,AEU,UaE,QRh,kMh,Mkh,iA9,HA8,Vk9,eof,Qn,WMa,zC9,uQE,n99,jKf,B2X,cKh,JKX,KM9,fVh,$y$,GpJ,Su,LM9,aVh,dyU,XqY,ZVu,iVY,o9X,tVh,AK1,BK,eCK,YXh,HVa,N2$,OVa,QKa,Ppf,qX$,zn8,mh9,nBh,rIf,hnK,$hE,wZh,gB1,UyJ,Lmh,Wm$,Cph,GYf,SX9,MVE,kpU,yKh,VVE,fQE,Iz,MDX,N0$,Hc8,VDh,enu,nJu,qD$,RMJ,ZN,bs8,EJh,rL9,$Gf,hMU,vJh,aZa,IZJ,L4a,F4J,pFu,Ns,sef,dG8,XF8,lZu,HK,UGh,ALh,tCE,yLf,QeU,N8a,MCJ,HsE,eu,VCY,SnX,Osu,Ynh,utY,WRa,mw1,Pe,Jg9,nsJ,BLa,RiK,xwY,KRh,fKU,
mu,no,GIh,hi1,jr,JJ,vsX,Be,ce,DwK,Co,IKY,qz,aKK,LRY,xy,wXh,pX1,FRU,sFh,dw8,XXE,lK1,iRa,Agh,ti$,UwJ,QF9,ZRa,kI8,NL8,yg9,osu,HR1,ViJ,fo,ei8,YPh,ORK,SPh,PL1,WAJ,uJ1,z38,$y,jqa,Jqa,nIK,cqa,CLU,qPU,Tva,fwX,h3X,aw$,ru,pLX,FA9,G4,sqK,IW,aW,oIa,ve,po,tFa,Aqf,Qqh,kzu,yqf,H21,VF$,e31,O28,PJh,naX,z69,Ssa,jf9,Jh1,lg,mF1,BHE,ig,chu,CJu,qsK,R6a,KF1,xFa,THf,$FY,rhh,I_9,DFa,wBa,XB9,Z6X,oa8,AhX,UFE,ktK,MbK,yhu,H68,VbE,e6U,S$E,zNJ,m2U,P1a,jBu,BxK,Jkh,nXh,ckX,q$Y,RNJ,x29,ba$,Tx8,er,Sf,W3,m9,fdJ,gXK,rkX,vXX,nM,jf,D2a,
J9,Lwa,wsu,ps1,c3,XsU,tNX,U2U,QB1,kUu,MNU,yk1,VNa,Rk,eN8,SM$,x5,PWf,zx$,mif,nnf,WXE,qMh,bj1,RxX,TVE,fpu,$ia,GeY,Iph,Dia,pWh,fM,FXY,sJE,gf,diK,$5,lpY,XWX,ZjE,on1,ijh,t5U,AvX,Ui9,QJ9,exa,YgX,Pda,SgY,NVf,M5U,W0f,mA$,c_a,CdX,K01,flX,v3,gQ9,r_X,G2f,vQh,L0u,p9a,sLJ,dAE,ll1,X9K,A_1,ZXE,Mmh,y_1,HXY,ak,ek8,OXY,Yx1,SxU,PGa,u$1,WJ$,m4a,nM9,Fv,JyU,Byu,qxE,s2,CGJ,x4X,EMh,l6,fjE,gMa,$4U,hzX,vM$,ryh,Iju,py8,ljE,XyK,k5,Zlu,Aya,Mja,H3,Hlh,yya,Nyf,ez9,Yja,SjK,zO9,j7X,nqh,md9,Jzh,cza,CiJ,KIf,qjE,EqE,$dY,fHJ,IHu,wOa,
FIf,dd$,Q7Y,Mv$,yzJ,eO1,YbY,Lb,ij,Bg1,JV9,CT9,qbh,xKf,Ru8,bwh,Tgu,oA,YC9,nNY,cV1,jx$,Xk,fT8,gN1,hu9,vN8,DKX,IT8,aTY,LQY,wHh,eR,pH1,OV,FQJ,sx1,dKJ,lTX,PT,XH9,oNU,AVJ,UKa,Vd8,Ow1,YqX,Sqh,uKu,WTE,cT,mJJ,nfa,jME,J7U,BF8,c71,qqa,xJJ,TF1,KTU,GfK,$Ju,h7Y,IoJ,aoK,EC,LTJ,wm1,pmE,dJK,Xm8,loX,irK,tpJ,rT,UJU,QMK,A7a,kf9,Mph,NFK,Vph,HrX,IWf,y7u,aW1,LlY,wYa,pYa,Fla,sS9,d7a,lW8,XYE,o1X,iD$,tB1,U7$,AnX,GM,QSa,yn1,ODa,k8U,YwU,SwE,PO8,uZJ,cfh,qw8,RSh,bP$,TDf,lI,gp9,hSf,D$1,Xp,wgh,Laa,pgh,oR,Fah,s81,d$$,XgE,ZPX,iP$,
opK,Af$,U$K,YGY,HPJ,eSX,PAh,SGf,uoa,WDh,mnE,jQJ,BGh,CAJ,$nJ,h2$,Dnh,I31,a39,LDa,wpf,FDJ,sQh,XpE,Zd1,id8,omh,tah,A5a,UnE,QQu,y58,Vaa,e2a,Odf,OC,Y9,SV,Pq,Yeu,zp,P4h,zea,jmE,cD9,ReE,Tm1,xCa,sma,dCh,GS9,aGf,lG9,wUh,pUX,EAh,DCE,bfa,heh,Wef,gAU,BmX,nAa,Zf9,ifh,oA8,qeU,rDa,ADh,Qmh,Moh,Hfa,Vo$,RK,zwh,Wia,JO9,Csh,RwU,bku,TC1,fXY,$Vh,gOh,hw9,DVU,s11,p0J,aXh,FiX,LiK,dV$,ika,vq,NC8,kVE,VGE,ew8,Yv8,Sva,IK,PlJ,zKJ,mc1,nR8,j5U,bGh,xcJ,lM,AK,r88,Gn9,Qm,hK1,vR9,Dcf,I7Y,a78,Lyu,wfY,pfh,FyE,s5K,dc8,l71,Xf$,ZGa,iGX,
k9,oR8,t4h,A8K,Ucu,Q51,kn1,M4$,y89,NaJ,HG8,V4U,eKh,ym,YOa,Pnf,WEU,nxU,BB8,cda,CnU,R4U,b$h,TBa,KEE,fFU,GXK,$H8,h4X,vxa,DH8,LE1,dHX,lFX,Z$u,R_,oxE,Cc,AdK,UHh,xB,QrE,kXa,MM1,ydJ,TY,e49,YJJ,zvY,WW1,nw1,jT$,GY,hI,JB8,cBU,qJY,Rva,bCU,T$J,C7h,KWK,rB1,Dra,IqX,vZ,aqY,LWY,drh,w41,FWa,sTJ,tQu,X4a,ABJ,Ur9,k$J,yBX,N$9,HCY,VQa,ev8,OCh,SiE,PCY,uC$,WL1,zdK,nT9,JMY,CCh,biK,ETX,gTh,GwK,F2,hdf,vTa,DQh,Igf,agY,wM$,pMa,FLK,s38,dQa,lgJ,XMu,Zia,iia,oTX,t3h,UQU,AMa,M3a,NbJ,Hi9,lp,V3X,ed$,Sk8,Yk$,ZQ,WCf,zWf,J29,CFa,B5$,jou,
xSK,RW1,f2X,bmE,UX,KCf,DSU,r2a,Gx8,hWJ,vl1,I2a,LC9,a2Y,Qs,kB,XSE,pS$,l2X,dS8,FCU,soJ,ol9,t6h,USE,A21,y2J,M6K,V61,eW9,YKX,SKh,OmY,PHX,WOh,u6$,mMu,JPh,YJ,B4K,cPJ,R0U,Ehh,h0a,PF,DM1,wvE,dM8,sOh,pvU,FO8,ns,ohJ,Xvh,Z09,t1K,UM9,APY,M1J,yPX,H0u,V1K,e0h,O0u,Yp9,PSY,uq8,Ks,zta,fs,mpX,Bs8,cRJ,GR,CSX,RtE,rRu,GhU,K1K,$pa,EbY,f8h,I8X,a8Y,DpJ,L1J,w$J,dpX,p$K,l88,X$Y,Ls,ip1,oba,tea,Zp8,Upa,ARh,w8,yRf,S7X,Pc1,u78,Wqa,zpu,mvX,BtU,j$a,JWU,ni8,CcE,RpK,xvK,Kq1,Eia,gi8,l2,$vf,rW$,GCY,vi1,Dvu,ItU,at8,Lqh,pja,s$Y,dvU,ZBX,
Xja,oia,iB$,t0$,AWE,UvY,oe,kCa,Wt1,Pwa,nPK,jyJ,R$h,xjX,b58,Tz1,Kta,EPh,$ja,rNa,GK8,h$$,I5Y,a51,Lt9,w8h,p89,FtE,sy1,dj1,l5K,X8Y,Z5h,oPX,tI8,ANh,QyK,MIa,Nz1,O58,e$a,VIX,H5a,ST1,PPf,nR,ubu,W3a,z9E,muh,Jlh,nC9,B3a,jUK,clX,cX,CP9,qT$,R98,xuU,bUK,T3E,K3K,gCu,f1$,ECa,$uE,vC$,DuE,bN,I1u,a1K,L3a,w1$,p1U,F3J,dua,l1Y,X1U,ZU1,t$J,oCY,M$a,iU8,KR,ylu,Ala,kP1,V$X,OUE,WrE,Pt$,urX,Sth,Yt1,hg,zch,nKU,jE8,J41,BrE,c4K,DK,IF,b3h,qtJ,CtX,Rcu,Dka,hcJ,xk8,GaK,sEa,dk8,le$,tg,XDU,Z3u,i3a,A4a,QE9,Msh,NrE,H3h,Vsh,SIa,YIf,Pz$,
W_h,Nw,njf,jcu,Jau,BYU,V5,ei,qI9,bKa,$NX,vj9,DNf,I$9,a$U,L_U,pCJ,scX,F_K,dNE,l$K,ZKa,iKK,oj9,txX,AaY,UNE,WL,yaX,QcJ,zz,HKu,NYY,VxJ,Wja,zZX,So$,Yoh,uNJ,PRJ,BjK,c3E,CRu,qoY,RZE,xXh,bgU,Tjh,fau,KjU,E8J,g8K,r3a,hZ1,DXY,aaa,wo1,dXh,la$,XoJ,Zgh,ig8,BL,tEa,o8a,C2,A3X,QGa,kF9,ME9,y31,OgY,YAf,SAf,P5a,uS8,Wk8,zYu,K2,n0a,jgE,JQf,cQE,BWX,C51,RY9,xf$,be1,Kku,E0E,TWY,hYa,IzJ,azh,Lkh,wnY,FkX,pna,Ze9,ieU,o0u,tlf,Ufa,AQu,kGE,eYU,VlK,Y8Y,S8U,P3f,n48,jl8,Jr9,Be$,x9X,RR1,q8h,KH$,fMf,E4J,g4X,p2,$9X,rra,D99,v4a,IMY,aMK,
LH1,ww$,slY,lMK,XwK,Zta,ita,o4$,t7$,ArJ,Ql9,U9$,ksU,yrE,M78,NeY,HtK,V7$,eRa,OtU,SFf,PUu,u11,Wbh,zgY,mmK,nuf,JX$,BSf,j0a,UP,qFU,xmY,bnY,TS9,Kb9,fxE,guh,Dmh,IxY,FbJ,dmE,lxX,in9,ouY,tz8,AXa,Uma,Q0$,Mzu,yXh,Hn1,egf,Y5a,Wf$,PhX,S5Y,uHh,zVU,jn1,mta,nV1,BNJ,q5f,RV$,xth,TNh,Kfh,EVJ,gVE,rGY,fnX,GQJ,hVh,vVY,Dth,Inh,Lfa,wVa,pVh,Ffh,dtf,snh,ln8,XVf,ZHJ,iHu,oVY,tJ$,AGE,Uth,MJU,yGh,QnE,kQ9,VJU,Y3h,S3f,CQh,jwX,cUJ,q3a,B_h,PB,RHu,xOu,T_h,fE$,Eru,grh,$Oa,uJ,zt,Gua,hH$,jb,Jh,vr$,DOU,wNY,swU,lEJ,XNu,ZF8,iFK,or1,AUY,
UOu,QwU,kua,MwE,yUJ,N_E,C6,HFa,Vwh,Rf,eHE,OFh,Ycf,Sc8,PbK,u8J,Tt,K6,W7K,zb1,Es,m39,nk1,jvh,Jof,coa,Cb8,Rba,Ek8,K7U,TR8,frh,gkh,D3f,GmX,hbX,ro1,vk9,gH,wlh,plU,F7U,svY,d3X,Xl9,tt9,iW$,$a,ZW$,Mtf,NRf,HW8,VtU,eb1,OW8,Px$,ulh,z18,mWX,n3Y,jXh,BO1,c1h,Cxh,R1a,xWU,bL$,KK8,E38,g3K,$Wf,DWJ,Iy9,aya,w71,LKK,FKh,sX9,dWh,lyY,X7$,ZL1,tW9,iLa,A1f,UWE,NOY,HL9,VWa,e1h,YZf,wH,FW,p6,SZ9,PqE,uXJ,Wv1,nHa,m0h,Jef,BMa,ceJ,qZ8,Rsa,x0h,TMh,EHE,gH8,$0J,re$,dH,GvK,vHJ,D01,Lvh,wch,lJ,XW,sVa,pc1,d0J,Z4a,lU1,i4K,iJ,tyY,Ae8,kvh,
yeu,Us,H48,VyK,esX,O4h,YSJ,SSE,P89,m69,nzJ,Bi1,jCE,JS1,cSY,C8J,bT9,qS9,x69,TiY,KBh,Ezu,$6E,rSE,GDJ,hQa,vza,pIY,wIf,ZTK,tn1,eb,ASa,vS8,U6h,QCU,MnE,Ni$,HTa,uGJ,WxE,u1,z5Y,meK,ne$,jHu,JCE,cC$,qBu,BAK,CeK,bIK,xe1,KxK,Eeu,fJK,geE,$eK,rC$,G0X,h5X,aJ9,pia,LxU,Fxf,sHE,dea,mw,lJY,Xiu,jN,iI8,ZIa,oe8,tUE,UeX,QHE,MUU,yCE,NAY,HI$,VU$,OIX,Puh,zrE,jbY,nLu,JtX,Bq1,qHf,rtK,Tqa,hrY,vL$,Iuh,auK,w2Y,FPa,d59,sb1,X21,Zy$,iyU,oLh,tAh,Ath,Qb9,ytE,Nqh,HyK,VA$,Y1K,Oya,WgY,zFu,mlU,nDX,jtU,BnY,GU,CZE,IB,RFh,bvX,TnU,$lX,GA$,
IvE,Lg9,wPf,FgJ,sta,dla,XPu,ivf,oDJ,Ulh,kA1,Nnu,yZE,MP9,s$,VPK,Hvf,eFK,OvX,YY1,SY9,PDU,uda,W68,mxX,n$h,jaf,Bo8,qY$,J0h,c0J,RmX,xxX,bY1,Tou,E$h,fma,ImU,am1,L6h,wGf,pGf,dxU,tk,t9E,A0X,UxX,Qaa,ko1,Ak,U$,o6,YNa,kX,SNa,zIU,n7$,m_u,M2,jZX,Jba,AYa;_.YY=function(Y,S){if(Error.captureStackTrace)Error.captureStackTrace(this,_.YY);else{var P=Error().stack;P&&(this.stack=P)}Y&&(this.message=String(Y));S!==void 0&&(this.cause=S)};
SK=function(){throw Error("B");};
Y9$=function(Y,S){S=String.fromCharCode.apply(null,S);return Y==null?S:Y+S};
W$X=function(Y){var S=!1;S=S===void 0?!1:S;if(S9J){if(S&&(Paa?!Y.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(Y)))throw Error("C");Y=(uE9||(uE9=new TextEncoder)).encode(Y)}else{for(var P=0,u=new Uint8Array(3*Y.length),W=0;W<Y.length;W++){var m=Y.charCodeAt(W);if(m<128)u[P++]=m;else{if(m<2048)u[P++]=m>>6|192;else{if(m>=55296&&m<=57343){if(m<=56319&&W<Y.length){var J=Y.charCodeAt(++W);if(J>=56320&&J<=57343){m=(m-55296)*1024+J-56320+65536;u[P++]=m>>18|
240;u[P++]=m>>12&63|128;u[P++]=m>>6&63|128;u[P++]=m&63|128;continue}else W--}if(S)throw Error("C");m=65533}u[P++]=m>>12|224;u[P++]=m>>6&63|128}u[P++]=m&63|128}}Y=P===u.length?u:u.subarray(0,P)}return Y};
ua=function(Y){_.Pa.setTimeout(function(){throw Y;},0)};
_.m$=function(Y,S){return Y.lastIndexOf(S,0)==0};
jK=function(Y,S){var P=Y.length-S.length;return P>=0&&Y.indexOf(S,P)==P};
_.Ba=function(Y){return/^[\s\xa0]*$/.test(Y)};
_.C8=function(Y,S){return Y.indexOf(S)!=-1};
_.qU=function(Y,S){return _.C8(Y.toLowerCase(),S.toLowerCase())};
_.Rh=function(){var Y=_.Pa.navigator;return Y&&(Y=Y.userAgent)?Y:""};
K8=function(Y){if(!xY||!TJ)return!1;for(var S=0;S<TJ.brands.length;S++){var P=TJ.brands[S].brand;if(P&&_.C8(P,Y))return!0}return!1};
f8=function(Y){return _.C8(_.Rh(),Y)};
g1=function(){return xY?!!TJ&&TJ.brands.length>0:!1};
$Y=function(){return g1()?!1:f8("Opera")};
zhu=function(){return g1()?!1:f8("Trident")||f8("MSIE")};
mU9=function(){return g1()?K8("Microsoft Edge"):f8("Edg/")};
r1=function(){return f8("Firefox")||f8("FxiOS")};
_.Ih=function(){return f8("Safari")&&!(_.Df()||(g1()?0:f8("Coast"))||$Y()||(g1()?0:f8("Edge"))||mU9()||(g1()?K8("Opera"):f8("OPR"))||r1()||f8("Silk")||f8("Android"))};
_.Df=function(){return g1()?K8("Chromium"):(f8("Chrome")||f8("CriOS"))&&!(g1()?0:f8("Edge"))||f8("Silk")};
_.nYh=function(){return f8("Android")&&!(_.Df()||r1()||$Y()||f8("Silk"))};
jhh=function(Y){var S={};Y.forEach(function(P){S[P[0]]=P[1]});
return function(P){return S[P.find(function(u){return u in S})]||""}};
Jua=function(Y){var S=_.Rh();if(Y==="Internet Explorer"){if(zhu())if((Y=/rv: *([\d\.]*)/.exec(S))&&Y[1])S=Y[1];else{Y="";var P=/MSIE +([\d\.]+)/.exec(S);if(P&&P[1])if(S=/Trident\/(\d.\d)/.exec(S),P[1]=="7.0")if(S&&S[1])switch(S[1]){case "4.0":Y="8.0";break;case "5.0":Y="9.0";break;case "6.0":Y="10.0";break;case "7.0":Y="11.0"}else Y="7.0";else Y=P[1];S=Y}else S="";return S}var u=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");P=[];for(var W;W=u.exec(S);)P.push([W[1],W[2],W[3]||void 0]);
S=jhh(P);switch(Y){case "Opera":if($Y())return S(["Version","Opera"]);if(g1()?K8("Opera"):f8("OPR"))return S(["OPR"]);break;case "Microsoft Edge":if(g1()?0:f8("Edge"))return S(["Edge"]);if(mU9())return S(["Edg"]);break;case "Chromium":if(_.Df())return S(["Chrome","CriOS","HeadlessChrome"])}return Y==="Firefox"&&r1()||Y==="Safari"&&_.Ih()||Y==="Android Browser"&&_.nYh()||Y==="Silk"&&f8("Silk")?(S=P[2])&&S[1]||"":""};
_.B1Y=function(Y){if(g1()&&Y!=="Silk"){var S=TJ.brands.find(function(P){return P.brand===Y});
if(!S||!S.version)return NaN;S=S.version.split(".")}else{S=Jua(Y);if(S==="")return NaN;S=S.split(".")}return S.length===0?NaN:Number(S[0])};
L8=function(){return xY?!!TJ&&!!TJ.platform:!1};
_.cua=function(){return L8()?TJ.platform==="Android":f8("Android")};
CaK=function(){return f8("iPhone")&&!f8("iPod")&&!f8("iPad")};
_.p8=function(){return CaK()||f8("iPad")||f8("iPod")};
_.q9f=function(){return L8()?TJ.platform==="macOS":f8("Macintosh")};
_.Rhh=function(){return L8()?TJ.platform==="Windows":f8("Windows")};
_.xUX=function(){return L8()?TJ.platform==="Chrome OS":f8("CrOS")};
_.s9=function(Y){return Y[Y.length-1]};
_.d1=function(Y,S,P){S=_.b8J(Y,S,P);return S<0?null:typeof Y==="string"?Y.charAt(S):Y[S]};
_.b8J=function(Y,S,P){for(var u=Y.length,W=typeof Y==="string"?Y.split(""):Y,m=0;m<u;m++)if(m in W&&S.call(P,W[m],m,Y))return m;return-1};
T1a=function(Y){for(var S=_.XE,P=typeof Y==="string"?Y.split(""):Y,u=Y.length-1;u>=0;u--)if(u in P&&S.call(void 0,P[u],u,Y))return u;return-1};
_.Au=function(Y,S){return _.oh(Y,S)>=0};
_.K$X=function(Y,S){_.Au(Y,S)||Y.push(S)};
_.MU=function(Y,S){S=_.oh(Y,S);var P;(P=S>=0)&&_.kY(Y,S);return P};
_.kY=function(Y,S){Array.prototype.splice.call(Y,S,1)};
_.NU=function(Y){var S=Y.length;if(S>0){for(var P=Array(S),u=0;u<S;u++)P[u]=Y[u];return P}return[]};
_.Y_=function(Y,S){for(var P=1;P<arguments.length;P++){var u=arguments[P];if(_.eK(u)){var W=Y.length||0,m=u.length||0;Y.length=W+m;for(var J=0;J<m;J++)Y[W+J]=u[J]}else Y.push(u)}};
_.ffK=function(Y,S,P,u){Array.prototype.splice.apply(Y,EYf(arguments,1))};
EYf=function(Y,S,P){return arguments.length<=2?Array.prototype.slice.call(Y,S):Array.prototype.slice.call(Y,S,P)};
uf=function(Y,S){S=S||Y;for(var P=0,u=0,W={};u<Y.length;){var m=Y[u++],J=_.SS(m)?"o"+_.Pt(m):(typeof m).charAt(0)+m;Object.prototype.hasOwnProperty.call(W,J)||(W[J]=!0,S[P++]=m)}S.length=P};
_.$Uh=function(Y,S,P){P=P||_.gYa;for(var u=0,W=Y.length,m;u<W;){var J=u+(W-u>>>1);var c=P(S,Y[J]);c>0?u=J+1:(W=J,m=!c)}return m?u:-u-1};
_.Wt=function(Y,S,P){if(!_.eK(Y)||!_.eK(S)||Y.length!=S.length)return!1;var u=Y.length;P=P||ruU;for(var W=0;W<u;W++)if(!P(Y[W],S[W]))return!1;return!0};
_.gYa=function(Y,S){return Y>S?1:Y<S?-1:0};
ruU=function(Y,S){return Y===S};
GJU=function(Y,S,P){S=Array.prototype.splice.call(Y,S,1);Array.prototype.splice.call(Y,P,0,S[0])};
vYX=function(Y){return hhJ[Y]||""};
af8=function(Y){if(!DUu)return _.z3(Y);Y=IfK.test(Y)?Y.replace(IfK,vYX):Y;Y=atob(Y);for(var S=new Uint8Array(Y.length),P=0;P<Y.length;P++)S[P]=Y.charCodeAt(P);return S};
L$Y=function(Y,S){Y.__closure__error__context__984382||(Y.__closure__error__context__984382={});Y.__closure__error__context__984382.severity=S};
_.jS=function(Y){Y=Error(Y);L$Y(Y,"warning");return Y};
Jm=function(Y,S){if(Y!=null){var P;var u=(P=wa$)!=null?P:wa$={};P=u[Y]||0;P>=S||(u[Y]=P+1,Y=Error(),L$Y(Y,"incident"),ua(Y))}};
ct=function(Y,S,P){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(P===void 0?0:P)&&Symbol.for&&Y?Symbol.for(Y):Y!=null?Symbol(Y):Symbol():S};
sha=function(Y,S){bf||_.E6 in Y||pah(Y,F$a);Y[_.E6]|=S};
gd=function(Y,S){bf||_.E6 in Y||pah(Y,F$a);Y[_.E6]=S};
dU1=function(Y){if(4&Y)return 512&Y?512:1024&Y?1024:0};
rd=function(Y){sha(Y,34);return Y};
lfY=function(Y){sha(Y,32);return Y};
vt=function(){return typeof BigInt==="function"};
Is=function(Y,S){return S===void 0?Y.copyOnWrite!==Ds&&!!(2&(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.E6]|0)):!!(2&S)&&Y.copyOnWrite!==Ds};
_.s6=function(Y,S){if(Y!=null)if(typeof Y==="string")Y=Y?new as(Y,Lu):_.pu();else if(Y.constructor!==as)if(Xa$&&Y!=null&&Y instanceof Uint8Array)Y=Y.length?new as(new Uint8Array(Y),Lu):_.pu();else{if(!S)throw Error();Y=void 0}return Y};
dd=function(Y,S){if(typeof S!=="number"||S<0||S>=Y.length)throw Error();};
Z8f=function(Y,S,P){S=S&128?0:-1;var u=Y.length,W;if(W=!!u)W=Y[u-1],W=W!=null&&typeof W==="object"&&W.constructor===Object;for(var m=u+(W?-1:0),J=0;J<m;J++)P(J-S,Y[J]);if(W){Y=Y[u-1];for(var c in Y)!isNaN(c)&&P(+c,Y[c])}};
Xi=function(Y){return Y&128?lf:void 0};
Zs=function(Y){Y.isGuard_doNotManuallySetPrettyPlease=!0;return Y};
oYh=function(){var Y=i8K;return Zs(function(S){for(var P in Y)if(S===Y[P]&&!/^[0-9]+$/.test(P))return!0;return!1})};
_.tm=function(Y){var S=Y;if(tKh(S)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(S))throw Error(String(S));}else if(Au$(S)&&!Number.isSafeInteger(S))throw Error(String(S));return os?BigInt(Y):Y=UUJ(Y)?Y?"1":"0":tKh(Y)?Y.trim()||"0":String(Y)};
Qh9=function(Y,S){if(Y.length>S.length)return!1;if(Y.length<S.length||Y===S)return!0;for(var P=0;P<Y.length;P++){var u=Y[P],W=S[P];if(u>W)return!1;if(u<W)return!0}};
kJU=function(Y){var S=Y>>>0;Am=S;QJ=(Y-S)/4294967296>>>0};
k_=function(Y){if(Y<0){kJU(-Y);var S=_.n(MKX(Am,QJ));Y=S.next().value;S=S.next().value;Am=Y>>>0;QJ=S>>>0}else kJU(Y)};
yuu=function(Y,S){var P=S*4294967296+(Y>>>0);return Number.isSafeInteger(P)?P:_.yJ(Y,S)};
NL=function(Y,S){var P=S&2147483648;P&&(Y=~Y+1>>>0,S=~S>>>0,Y==0&&(S=S+1>>>0));Y=yuu(Y,S);return typeof Y==="number"?P?-Y:Y:P?"-"+Y:Y};
_.yJ=function(Y,S){S>>>=0;Y>>>=0;if(S<=2097151)var P=""+(4294967296*S+Y);else vt()?P=""+(BigInt(S)<<BigInt(32)|BigInt(Y)):(P=(Y>>>24|S<<8)&16777215,S=S>>16&65535,Y=(Y&16777215)+P*6777216+S*6710656,P+=S*8147497,S*=2,Y>=1E7&&(P+=Y/1E7>>>0,Y%=1E7),P>=1E7&&(S+=P/1E7>>>0,P%=1E7),P=S+N1J(P)+N1J(Y));return P};
N1J=function(Y){Y=String(Y);return"0000000".slice(Y.length)+Y};
_.Ht=function(Y,S){S&2147483648?vt()?Y=""+(BigInt(S|0)<<BigInt(32)|BigInt(Y>>>0)):(S=_.n(MKX(Y,S)),Y=S.next().value,S=S.next().value,Y="-"+_.yJ(Y,S)):Y=_.yJ(Y,S);return Y};
VJ=function(Y){if(Y.length<16)k_(Number(Y));else if(vt())Y=BigInt(Y),Am=Number(Y&BigInt(4294967295))>>>0,QJ=Number(Y>>BigInt(32)&BigInt(4294967295));else{var S=+(Y[0]==="-");QJ=Am=0;for(var P=Y.length,u=S,W=(P-S)%6+S;W<=P;u=W,W+=6)u=Number(Y.slice(u,W)),QJ*=1E6,Am=Am*1E6+u,Am>=4294967296&&(QJ+=Math.trunc(Am/4294967296),QJ>>>=0,Am>>>=0);S&&(S=_.n(MKX(Am,QJ)),Y=S.next().value,S=S.next().value,Am=Y,QJ=S)}};
MKX=function(Y,S){S=~S;Y?Y=~Y+1:S+=1;return[Y,S]};
eS=function(Y){return Array.prototype.slice.call(Y)};
_.O6=function(Y,S){throw Error(S===void 0?"unexpected value "+Y+"!":S);};
_.S_=function(Y){if(Y!=null&&typeof Y!=="number")throw Error("I`"+typeof Y+"`"+Y);return Y};
_.z1=function(Y){if(Y==null||typeof Y==="number")return Y;if(Y==="NaN"||Y==="Infinity"||Y==="-Infinity")return Number(Y)};
H81=function(Y){if(Y!=null&&typeof Y!=="boolean")throw Error("J`"+_.m5(Y)+"`"+Y);return Y};
_.VK1=function(Y){if(Y==null||typeof Y==="boolean")return Y;if(typeof Y==="number")return!!Y};
_.j_=function(Y){switch(typeof Y){case "bigint":return!0;case "number":return n1(Y);case "string":return ehU.test(Y);default:return!1}};
_.Jj=function(Y){if(!n1(Y))throw _.jS("enum");return Y|0};
_.B6=function(Y){return Y==null?Y:n1(Y)?Y|0:void 0};
O8h=function(Y){if(typeof Y!=="number")throw _.jS("int32");if(!n1(Y))throw _.jS("int32");return Y|0};
_.qI=function(Y){return Y==null?Y:O8h(Y)};
_.T1=function(Y){if(Y==null)return Y;if(typeof Y==="string"&&Y)Y=+Y;else if(typeof Y!=="number")return;return n1(Y)?Y|0:void 0};
_.K1=function(Y){if(Y==null)return Y;if(typeof Y==="string"&&Y)Y=+Y;else if(typeof Y!=="number")return;return n1(Y)?Y>>>0:void 0};
uiX=function(Y){var S=0;S=S===void 0?0:S;if(!_.j_(Y))throw _.jS("int64");var P=typeof Y;switch(S){case 512:switch(P){case "string":return Ed(Y);case "bigint":return String(f1(64,Y));default:return Y6Y(Y)}case 1024:switch(P){case "string":return S6K(Y);case "bigint":return _.tm(f1(64,Y));default:return PfY(Y)}case 0:switch(P){case "string":return Ed(Y);case "bigint":return _.tm(f1(64,Y));default:return gZ(Y)}default:return _.O6(S,"Unknown format requested type for int64")}};
$c=function(Y){return Y==null?Y:uiX(Y)};
Wha=function(Y){if(Y[0]==="-")return!1;var S=Y.length;return S<20?!0:S===20&&Number(Y.substring(0,6))<184467};
zUE=function(Y){var S=Y.length;return Y[0]==="-"?S<20?!0:S===20&&Number(Y.substring(0,7))>-922337:S<19?!0:S===19&&Number(Y.substring(0,6))<922337};
mLY=function(Y){if(Y<0){k_(Y);var S=_.yJ(Am,QJ);Y=Number(S);return rZ(Y)?Y:S}S=String(Y);if(Wha(S))return S;k_(Y);return yuu(Am,QJ)};
n_X=function(Y){if(zUE(Y))return Y;VJ(Y);return _.Ht(Am,QJ)};
jsa=function(Y){if(Wha(Y))return Y;VJ(Y);return _.yJ(Am,QJ)};
gZ=function(Y){Y=G1(Y);rZ(Y)||(k_(Y),Y=NL(Am,QJ));return Y};
_.hj=function(Y){Y=G1(Y);return Y>=0&&rZ(Y)?Y:mLY(Y)};
Y6Y=function(Y){Y=G1(Y);if(rZ(Y))Y=String(Y);else{var S=String(Y);zUE(S)?Y=S:(k_(Y),Y=_.Ht(Am,QJ))}return Y};
_.Jma=function(Y){Y=G1(Y);if(Y>=0&&rZ(Y))Y=String(Y);else{var S=String(Y);Wha(S)?Y=S:(k_(Y),Y=_.yJ(Am,QJ))}return Y};
Ed=function(Y){var S=G1(Number(Y));if(rZ(S))return String(S);S=Y.indexOf(".");S!==-1&&(Y=Y.substring(0,S));return n_X(Y)};
S6K=function(Y){var S=G1(Number(Y));if(rZ(S))return _.tm(S);S=Y.indexOf(".");S!==-1&&(Y=Y.substring(0,S));return vt()?_.tm(f1(64,BigInt(Y))):_.tm(n_X(Y))};
PfY=function(Y){return rZ(Y)?_.tm(gZ(Y)):_.tm(Y6Y(Y))};
_.Bd8=function(Y){return rZ(Y)?_.tm(_.hj(Y)):_.tm(_.Jma(Y))};
_.v6=function(Y){var S=G1(Number(Y));if(rZ(S)&&S>=0)return String(S);S=Y.indexOf(".");S!==-1&&(Y=Y.substring(0,S));return jsa(Y)};
_.cmJ=function(Y){var S=G1(Number(Y));if(rZ(S)&&S>=0)return _.tm(S);S=Y.indexOf(".");S!==-1&&(Y=Y.substring(0,S));return vt()?_.tm((0,_.DI)(64,BigInt(Y))):_.tm(jsa(Y))};
Cff=function(Y,S){S=S===void 0?!1:S;var P=typeof Y;if(Y==null)return Y;if(P==="bigint")return String(f1(64,Y));if(_.j_(Y))return P==="string"?Ed(Y):S?Y6Y(Y):gZ(Y)};
q6a=function(Y){if(Y==null)return Y;var S=typeof Y;if(S==="bigint")return String(f1(64,Y));if(_.j_(Y)){if(S==="string")return Ed(Y);if(S==="number")return gZ(Y)}};
RUu=function(Y){if(Y==null)return Y;var S=typeof Y;if(S==="bigint")return String((0,_.DI)(64,Y));if(_.j_(Y)){if(S==="string")return _.v6(Y);if(S==="number")return _.hj(Y)}};
_.L1=function(Y){if(typeof Y!=="string")throw Error();return Y};
wZ=function(Y){if(Y!=null&&typeof Y!=="string")throw Error();return Y};
_.p1=function(Y){return Y==null||typeof Y==="string"?Y:void 0};
xL8=function(Y,S,P,u){if(Y!=null&&typeof Y==="object"&&Y[FY]===sd)return Y;if(!Array.isArray(Y))return P?u&2?((Y=S[dZ])||(Y=new S,rd(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),Y=S[dZ]=Y),S=Y):S=new S:S=void 0,S;P=Y[_.E6]|0;u=P|u&32|u&2;u!==P&&gd(Y,u);return new S(Y)};
buX=function(Y,S,P){Y=S?O8h(Y):_.T1(Y);return Y==null?P?0:void 0:Y|0};
TdX=function(Y){return Y};
KhY=function(Y){return Y};
fs9=function(Y,S,P,u,W,m){Y=xL8(Y,u,P,m);W&&(Y=E_K(Y));return Y};
g_E=function(Y){return[Y,this.get(Y)]};
G3h=function(){return $Lh||($Lh=new lo(rd([]),void 0,void 0,void 0,rmh))};
io=function(Y){var S=XY(ZI);return S?Y[S]:void 0};
v_f=function(Y,S){var P=XY(ZI),u;bf&&P&&((u=Y[P])==null?void 0:u[S])!=null&&Jm(hUU,3)};
asa=function(Y,S){var P=P===void 0?!1:P;if(XY(DLJ)&&XY(ZI)&&void 0===DLJ){var u=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=u[ZI];if(!W)return;if(W=W.reviveUnknownFields)try{W(u,S,Is1);return}catch(m){ua(m)}}P&&(Y=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(P=XY(ZI))&&P in Y&&(Y=Y[P])&&delete Y[S])};
ssh=function(Y,S,P,u){var W=u!==void 0;u=!!u;var m=XY(ZI),J;!W&&bf&&m&&(J=Y[m])&&ou(J,Lh8);m=[];var c=Y.length;J=4294967295;var C=!1,x=!!(S&64),b=x?S&128?0:-1:void 0;if(!(S&1)){var T=c&&Y[c-1];T!=null&&typeof T==="object"&&T.constructor===Object?(c--,J=c):T=void 0;if(x&&!(S&128)&&!W){C=!0;var K;J=((K=wtJ)!=null?K:TdX)(J-b,b,Y,T)+b}}S=void 0;for(K=0;K<c;K++){var G=Y[K];if(G!=null&&(G=P(G,u))!=null)if(x&&K>=J){var v=K-b,a=void 0;((a=S)!=null?a:S={})[v]=G}else m[K]=G}if(T)for(var w in T)c=T[w],c!=null&&
(c=P(c,u))!=null&&(K=+w,G=void 0,x&&!Number.isNaN(K)&&(G=K+b)<J?m[G]=c:(K=void 0,((K=S)!=null?K:S={})[w]=c));S&&(C?m.push(S):m[J]=S);W&&XY(ZI)&&(Y=io(Y))&&Y instanceof ptY&&(m[ZI]=FhU(Y));return m};
dLu=function(Y){Y[0]=Aj(Y[0]);Y[1]=Aj(Y[1]);return Y};
Aj=function(Y){switch(typeof Y){case "number":return Number.isFinite(Y)?Y:""+Y;case "bigint":return(0,_.Ud)(Y)?Number(Y):""+Y;case "boolean":return Y?1:0;case "object":if(Array.isArray(Y)){var S=Y[_.E6]|0;return Y.length===0&&S&1?void 0:ssh(Y,S,Aj)}if(Y[FY]===sd)return ls8(Y);if(Y instanceof as){S=Y.JSC$6687_value_;if(S==null)Y="";else if(typeof S==="string")Y=S;else{if(DUu){for(var P="",u=0,W=S.length-10240;u<W;)P+=String.fromCharCode.apply(null,S.subarray(u,u+=10240));P+=String.fromCharCode.apply(null,
u?S.subarray(u):S);S=btoa(P)}else S=_.QB(S);Y=Y.JSC$6687_value_=S}return Y}if(Y instanceof lo)return Y=Y.size!==0?Array.from(MI.prototype.entries.call(Y),dLu):void 0,Y;return}return Y};
yB=function(Y,S){if(S){wtJ=S==null||S===TdX||S[XtK]!==Zu8?TdX:S;try{return ls8(Y)}finally{wtJ=void 0}}return ls8(Y)};
ls8=function(Y){Y=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ssh(Y,Y[_.E6]|0,Aj)};
Lh8=function(Y,S){S<500||Jm(iuJ,1)};
Am8=function(Y){switch(typeof Y){case "boolean":return o_E||(o_E=[0,void 0,!0]);case "number":return Y>0?void 0:Y===0?tSY||(tSY=[0,void 0]):[-Y,void 0];case "string":return[0,Y];case "object":return Y}};
H6=function(Y,S,P){return Y=_.NI(Y,S[0],S[1],P?1:2)};
_.NI=function(Y,S,P,u){u=u===void 0?0:u;if(Y==null){var W=32;P?(Y=[P],W|=128):Y=[];S&&(W=W&-8380417|(S&1023)<<13)}else{if(!Array.isArray(Y))throw Error("L");W=Y[_.E6]|0;2048&W&&!(2&W)&&ULY();if(W&256)throw Error("N");if(W&64)return u!==0||W&2048||gd(Y,W|2048),Y;if(P&&(W|=128,P!==Y[0]))throw Error("O");a:{P=Y;W|=64;var m=P.length;if(m){var J=m-1,c=P[J];if(c!=null&&typeof c==="object"&&c.constructor===Object){S=W&128?0:-1;J-=S;if(J>=1024)throw Error("Q");for(var C in c)m=+C,m<J&&(P[m+S]=c[C],delete c[C]);
W=W&-8380417|(J&1023)<<13;break a}}if(S){C=Math.max(S,m-(W&128?0:-1));if(C>1024)throw Error("R");W=W&-8380417|(C&1023)<<13}}}W|=64;u===0&&(W|=2048);gd(Y,W);return Y};
ULY=function(){Jm(Qs$,5)};
ymU=function(Y,S){if(typeof Y!=="object")return Y;if(Array.isArray(Y)){var P=Y[_.E6]|0;return Y.length===0&&P&1?void 0:k31(Y,P,S)}if(Y[FY]===sd)return MSh(Y);if(Y instanceof lo){S=Y.arrayState;if(S&2)return Y;if(!Y.size)return;P=rd(Array.from(MI.prototype.entries.call(Y)));if(Y.valueCtor)for(Y=0;Y<P.length;Y++){var u=P[Y],W=u[1];W==null||typeof W!=="object"?W=void 0:W[FY]===sd?W=MSh(W):Array.isArray(W)?W=k31(W,W[_.E6]|0,!!(S&32)):W=void 0;u[1]=W}return P}if(Y instanceof as)return Y};
k31=function(Y,S,P){if(S&2)return Y;!P||4096&S||16&S?Y=VB(Y,S,!1,P&&!(S&16)):(sha(Y,34),S&4&&Object.freeze(Y));return Y};
MSh=function(Y){var S=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=S[_.E6]|0;return Is(Y,P)?Y:VB(S,P)};
VB=function(Y,S,P,u){u!=null||(u=!!(34&S));Y=ssh(Y,S,ymU,u);u=32;P&&(u|=2);S=S&8380609|u;gd(Y,S);return Y};
E_K=function(Y){var S=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=S[_.E6]|0;return Is(Y,P)?new Y.constructor(VB(S,P,!1)):Y};
e_=function(Y){if(Y.copyOnWrite!==Ds)return!1;var S=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;S=VB(S,S[_.E6]|0);Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=S;Y.copyOnWrite=void 0;Y.noLegacyNull=void 0;return!0};
YE=function(Y){if(!e_(Y)&&Is(Y,Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.E6]|0))throw Error();};
Sc=function(Y,S,P,u,W){var m=P+(W?0:-1),J=Y.length-1;if(J>=1+(W?0:-1)&&m>=J){var c=Y[J];if(c!=null&&typeof c==="object"&&c.constructor===Object)return c[P]=u,S}if(m<=J)return Y[m]=u,S;if(u!==void 0){var C;J=((C=S)!=null?C:S=Y[_.E6]|0)>>13&1023||536870912;P>=J?u!=null&&(m={},Y[J+(W?0:-1)]=(m[P]=u,m)):Y[m]=u}return S};
_.mz=function(Y,S,P,u,W){var m=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=m[_.E6]|0;u=Is(Y,J)?1:u;W=!!W||u===3;u===2&&e_(Y)&&(m=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=m[_.E6]|0);Y=Nd$(m,S);var c=Y===Pd?7:Y[_.E6]|0,C=HuJ(c,J);var x=4&C?!1:!0;if(x){4&C&&(Y=eS(Y),c=0,C=uK(C,J),J=Sc(m,J,S,Y));for(var b=0,T=0;b<Y.length;b++){var K=P(Y[b]);K!=null&&(Y[T++]=K)}T<b&&(Y.length=T);P=(C|4)&-513;C=P&=-1025;C&=-4097}C!==c&&(gd(Y,C),2&C&&Object.freeze(Y));return Y=VSE(Y,C,m,
J,S,u,x,W)};
VSE=function(Y,S,P,u,W,m,J,c){var C=S;m===1||(m!==4?0:2&S||!(16&S)&&32&u)?nS(S)||(S|=!Y.length||J&&!(4096&S)||32&u&&!(4096&S||16&S)?2:256,S!==C&&gd(Y,S),Object.freeze(Y)):(m===2&&nS(S)&&(Y=eS(Y),C=0,S=uK(S,u),Sc(P,u,W,Y)),nS(S)||(c||(S|=16),S!==C&&gd(Y,S)));return Y};
Nd$=function(Y,S,P){Y=jc(Y,S,P);return Array.isArray(Y)?Y:Pd};
HuJ=function(Y,S){2&S&&(Y|=2);return Y|1};
nS=function(Y){return!!(2&Y)&&!!(4&Y)||!!(256&Y)};
eUK=function(Y){return _.s6(Y,!0)};
Ou1=function(Y,S){var P=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=P[_.E6]|0;a:{var W=u;u=Is(Y,u);!u&&e_(Y)&&(P=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=P[_.E6]|0);var m=jc(P,S);Y=!1;if(m==null){if(u){S=G3h();break a}m=[]}else if(m.constructor===lo)if(m.arrayState&2&&!u)m=Array.from(MI.prototype.entries.call(m));else{S=m;break a}else Array.isArray(m)?Y=!!((m[_.E6]|0)&2):m=[];if(u){if(!m.length){S=G3h();break a}Y||(Y=!0,rd(m))}else if(Y){Y=!1;u=m;u=eS(u);for(m=0;m<
u.length;m++){var J=u[m]=eS(u[m]);Array.isArray(J[1])&&(J[1]=rd(J[1]))}m=u}!Y&&W&32&&lfY(m);Y=new lo(m,void 0,buX,buX);Sc(P,W,S,Y);S=Y}return S};
_.JY=function(Y,S,P,u){YE(Y);var W=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=W[_.E6]|0;if(P==null)return Sc(W,m,S),Y;var J=P===Pd?7:P[_.E6]|0,c=J,C=nS(J),x=C||Object.isFrozen(P);C||(J=0);x||(P=eS(P),c=0,J=uK(J,m),x=!1);J|=5;var b;C=(b=dU1(J))!=null?b:0;for(b=0;b<P.length;b++){var T=P[b],K=u(T,C);Object.is(T,K)||(x&&(P=eS(P),c=0,J=uK(J,m),x=!1),P[b]=K)}J!==c&&(x&&(P=eS(P),J=uK(J,m)),gd(P,J));Sc(W,m,S,P);return Y};
_.Bd=function(Y,S,P,u,W){YE(Y);var m=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Sc(m,m[_.E6]|0,S,(u==="0"?Number(P)===0:P===u)?void 0:P,W);return Y};
_.CS=function(Y,S,P){if(S&2)throw Error();var u=Xi(S),W=Nd$(Y,P,u),m=W===Pd?7:W[_.E6]|0,J=HuJ(m,S);if(2&J||nS(J)||16&J)W=eS(W),m=0,J=uK(J,S),Sc(Y,S,P,W,u);J&=-13;J!==m&&gd(W,J);return W};
Yd9=function(Y){if(bf){var S;return(S=Y[q8])!=null?S:Y[q8]=new Map}if(q8 in Y)return Y[q8];S=new Map;Object.defineProperty(Y,q8,{value:S});return S};
PoE=function(Y,S,P,u,W){var m=Yd9(Y),J=Sd1(m,Y,S,P,W);J!==u&&(J&&(S=Sc(Y,S,J,void 0,W)),m.set(P,u));return S};
Sd1=function(Y,S,P,u,W){var m=Y.get(u);if(m!=null)return m;for(var J=m=0;J<u.length;J++){var c=u[J];jc(S,c,W)!=null&&(m!==0&&(P=Sc(S,P,m,void 0,W)),m=c)}Y.set(u,m);return m};
xE=function(Y,S,P,u,W){Y=jc(Y,u,W,function(m){return xL8(m,P,!1,S)});
if(Y!=null)return Y};
uYa=function(Y,S,P,u,W,m,J,c){var C=Is(Y,P);m=C?1:m;J=!!J||m===3;C=c&&!C;(m===2||C)&&e_(Y)&&(S=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=S[_.E6]|0);Y=Nd$(S,W);var x=Y===Pd?7:Y[_.E6]|0,b=HuJ(x,P);if(c=!(4&b)){var T=Y,K=P,G=!!(2&b);G&&(K|=2);for(var v=!G,a=!0,w=0,F=0;w<T.length;w++){var U=xL8(T[w],u,!1,K);if(U instanceof u){if(!G){var V=Is(U);v&&(v=!V);a&&(a=V)}T[F++]=U}}F<w&&(T.length=F);b|=4;b=a?b&-4097:b|4096;b=v?b|8:b&-9}b!==x&&(gd(Y,b),2&b&&Object.freeze(Y));if(C&&!(8&b||!Y.length&&
(m===1||(m!==4?0:2&b||!(16&b)&&32&P)))){nS(b)&&(Y=eS(Y),b=uK(b,P),P=Sc(S,P,W,Y));u=Y;C=b;for(x=0;x<u.length;x++)T=u[x],b=E_K(T),T!==b&&(u[x]=b);C|=8;b=C=u.length?C|4096:C&-4097;gd(Y,b)}return Y=VSE(Y,b,S,P,W,m,c,J)};
W5f=function(Y){Y==null&&(Y=void 0);return Y};
uK=function(Y,S){return Y=(2&S?Y|2:Y&-3)&-273};
_.zXE=function(Y,S,P,u,W){YE(Y);S=_.mz(Y,S,W,2,!0);var m;W=(m=dU1(S===Pd?7:S[_.E6]|0))!=null?m:0;S.push(P(u,W));return Y};
mIJ=function(Y,S,P,u,W,m,J){YE(Y);var c=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Y=uYa(Y,c,c[_.E6]|0,P,S,2,!0);if(m&&J)W!=null||(W=Y.length-1),dd(Y,W),Y.splice(W,m),Y.length||(Y[_.E6]&=-4097);else{if(m){if(typeof W!=="number"||W<0||W>Y.length)throw Error();}else u=u!=null?u:new P;W!=void 0?Y.splice(W,m,u):Y.push(u);W=P=Y===Pd?7:Y[_.E6]|0;Is(u)?(P&=-9,Y.length===1&&(P&=-4097)):P|=4096;P!==W&&gd(Y,P)}};
ncX=function(Y,S){if(typeof Y==="string")return new bK(af8(Y),S);if(Array.isArray(Y))return new bK(new Uint8Array(Y),S);if(Y.constructor===Uint8Array)return new bK(Y,!1);if(Y.constructor===ArrayBuffer)return Y=new Uint8Array(Y),new bK(Y,!1);if(Y.constructor===as)return S=EU(Y)||new Uint8Array(0),new bK(S,!0,Y);if(Y instanceof Uint8Array)return Y=Y.constructor===Uint8Array?Y:new Uint8Array(Y.buffer,Y.byteOffset,Y.byteLength),new bK(Y,!1);throw Error();};
_.gX=function(){var Y=function(){throw Error();};
Object.setPrototypeOf(Y,Y.prototype);return Y};
JjY=function(Y,S){var P=P===void 0?ju$:P;return new $E(Y,S,P)};
qdh=function(Y,S,P,u,W){S=BZE(S,u);S!=null&&(P=_.cja(Y,P),W(S,Y),_.Cou(Y,P))};
rX=function(Y,S,P,u){var W=u[Y];if(W)return W;W={};W.binaryFields=u;W.messageMetadata=Am8(u[0]);var m=u[1],J=1;m&&m.constructor===Object&&(W.extensions=m,m=u[++J],typeof m==="function"&&(W.isMessageSet=!0,RX1!=null||(RX1=m),xIa!=null||(xIa=u[J+1]),m=u[J+=2]));for(var c={};m&&Array.isArray(m)&&m.length&&typeof m[0]==="number"&&m[0]>0;){for(var C=0;C<m.length;C++)c[m[C]]=m;m=u[++J]}for(C=1;m!==void 0;){typeof m==="number"&&(C+=m,m=u[++J]);var x=void 0;if(m instanceof $E)var b=m;else b=b1J,J--;m=void 0;
if((m=b)==null?0:m.$$isMsg){m=u[++J];x=u;var T=J;typeof m==="function"&&(m=m(),x[T]=m);x=m}m=u[++J];T=C+1;typeof m==="number"&&m<0&&(T-=m,m=u[++J]);for(;C<T;C++){var K=c[C];x?P(W,C,b,x,K):S(W,C,b,K)}}return u[Y]=W};
K5K=function(Y){return Array.isArray(Y)?Y[0]instanceof $E?Y:[TZX,Y]:[Y,void 0]};
BZE=function(Y,S){if(Y instanceof _.Gc)return Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(Y))return H6(Y,S,!1)};
Ech=function(Y,S,P,u){var W=P.$$binaryReaderFn;Y[S]=u?function(m,J,c){return W(m,J,c,u)}:W};
fI8=function(Y,S,P,u,W){var m=P.$$binaryReaderFn,J,c;Y[S]=function(C,x,b){return m(C,x,b,c||(c=rX(hY,Ech,fI8,u).messageMetadata),J||(J=gc8(u)),W)}};
gc8=function(Y){var S=Y[$Ih];if(S!=null)return S;var P=rX(hY,Ech,fI8,Y);S=P.isMessageSet?function(u,W){return RX1(u,W,P)}:function(u,W){for(;rjX(W)&&W.nextWireType_!=4;){var m=W.nextField_,J=P[m];
if(J==null){var c=P.extensions;c&&(c=c[m])&&(c=G1$(c),c!=null&&(J=P[m]=c))}if(J==null||!J(W,u,m)){c=W;J=c.fieldCursor_;aN(c);if(c.discardUnknownFields)var C=void 0;else{var x=c.decoder_.cursor_-J;c.decoder_.cursor_=J;C=hX9(c.decoder_,x)}x=c=J=void 0;var b=u;C&&((J=(c=(x=b[ZI])!=null?x:b[ZI]=new ptY)[m])!=null?J:c[m]=[]).push(C)}}if(u=io(u))u.reviveUnknownFields=P.binaryFields[vc$];return!0};
Y[$Ih]=S;Y[vc$]=DIf.bind(Y);return S};
DIf=function(Y,S,P,u){var W=this[hY],m=this[$Ih],J=H6(void 0,W.messageMetadata,!1),c=io(Y);if(c){var C=!1,x=W.extensions;if(x){W=function(v,a,w){if(w.length!==0)if(x[a])for(v=_.n(w),a=v.next();!a.done;a=v.next()){a=IIJ(a.value);try{C=!0,m(J,a)}finally{a.free()}}else u==null||u(Y,a,w)};
if(S==null)ou(c,W);else if(c!=null){var b=c[S];b&&W(c,S,b)}if(C){var T=Y[_.E6]|0;if(T&2&&T&2048&&(P==null||!P.reviveIntoImmutable))throw Error();var K=Xi(T),G=function(v,a){if(jc(Y,v,K)!=null)switch(P==null?void 0:P.resolutionBehavior){case 1:return;default:throw Error();}a!=null&&(T=Sc(Y,T,v,a,K));delete c[v]};
S==null?Z8f(J,J[_.E6]|0,function(v,a){G(v,a)}):G(S,jc(J,S,K))}}}};
G1$=function(Y){Y=K5K(Y);var S=Y[0].$$binaryReaderFn;if(Y=Y[1]){var P=gc8(Y),u=rX(hY,Ech,fI8,Y).messageMetadata;return function(W,m,J){return S(W,m,J,u,P)}}return S};
LS=function(Y,S,P){Y[S]=P.$$binaryWriterFn};
FF=function(Y,S,P,u){var W,m,J=P.$$binaryWriterFn;Y[S]=function(c,C,x){return J(c,C,x,m||(m=rX(wX,LS,FF,u).messageMetadata),W||(W=aIa(u)))}};
aIa=function(Y){var S=Y[L5$];if(!S){var P=rX(wX,LS,FF,Y);S=function(u,W){return p6h(u,W,P)};
Y[L5$]=S}return S};
p6h=function(Y,S,P){Z8f(Y,Y[_.E6]|0,function(W,m){if(m!=null){var J=F5u(P,W);if(J)J(S,m,W);else{m=XY(ZI);var c;bf&&m&&((c=Y[m])==null?void 0:c[W])!=null&&Jm(suh,3)}}});
var u=io(Y);u&&ou(u,function(W,m,J){sU(S,S.encoder_.end());for(W=0;W<J.length;W++)sU(S,EU(J[W])||new Uint8Array(0))})};
F5u=function(Y,S){var P=Y[S];if(P)return P;if(P=Y.extensions)if(P=P[S]){P=K5K(P);var u=P[0].$$binaryWriterFn;if(P=P[1]){var W=aIa(P),m=rX(wX,LS,FF,P).messageMetadata;P=Y.isMessageSet?xIa(m,W):function(J,c,C){return u(J,c,C,m,W)}}else P=u;
return Y[S]=P}};
_.dIa=function(Y,S,P){if(Array.isArray(S)){var u=S[_.E6]|0;if(u&4)return S;for(var W=0,m=0;W<S.length;W++){var J=Y(S[W]);J!=null&&(S[m++]=J)}m<W&&(S.length=m);P&&(gd(S,(u|5)&-1537),u&2&&Object.freeze(S));return S}};
_.dX=function(Y,S,P){return new $E(Y,S,P)};
_.lIJ=function(Y,S,P){return new $E(Y,S,P)};
_.lK=function(Y,S,P){Sc(Y,Y[_.E6]|0,S,P,Xi(Y[_.E6]|0))};
X6h=function(Y,S,P){S=_.z1(S);S!=null&&(_.ZB(Y,P,1),Y=Y.encoder_,P=iK||(iK=new DataView(new ArrayBuffer(8))),P.setFloat64(0,+S,!0),Am=P.getUint32(0,!0),QJ=P.getUint32(4,!0),_.oN(Y,Am),_.oN(Y,QJ))};
_.tY=function(Y,S,P){S=q6a(S);if(S!=null){switch(typeof S){case "string":Z1X(S)}if(S!=null)switch(_.ZB(Y,P,0),typeof S){case "number":Y=Y.encoder_;k_(S);i1u(Y,Am,QJ);break;case "bigint":P=BigInt.asUintN(64,S);P=new ocK(Number(P&BigInt(4294967295)),Number(P>>BigInt(32)));i1u(Y.encoder_,P.JSC$6744_lo,P.JSC$6744_hi);break;default:P=Z1X(S),i1u(Y.encoder_,P.JSC$6744_lo,P.JSC$6744_hi)}}};
Ajh=function(Y,S,P){S=_.T1(S);S!=null&&S!=null&&(_.ZB(Y,P,0),_.t_E(Y.encoder_,S))};
_.QuX=function(Y,S,P){UIa(Y,P,RUu(S))};
_.k1u=function(Y,S,P){S=_.VK1(S);S!=null&&(_.ZB(Y,P,0),Y.encoder_.JSC$6746_buffer_.push(S?1:0))};
_.yjX=function(Y,S,P){S=_.p1(S);S!=null&&M_9(Y,P,W$X(S))};
NZu=function(Y,S,P,u,W){S=BZE(S,u);S!=null&&(P=_.cja(Y,P),W(S,Y),_.Cou(Y,P))};
_.H1h=function(Y,S,P){S=S==null||typeof S=="string"||S instanceof as?S:void 0;S!=null&&M_9(Y,P,ncX(S,!0).buffer)};
_.V_Y=function(Y,S,P){S=_.T1(S);S!=null&&(S=parseInt(S,10),_.ZB(Y,P,0),_.t_E(Y.encoder_,S))};
_.AY=function(Y,S){return function(P,u){var W={treatNewDataAsImmutable:!0};u&&Object.assign(W,u);P=IIJ(P,void 0,void 0,W);try{var m=new Y,J=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;gc8(S)(J,P);var c=m}finally{P.free()}return c}};
_.Qy=function(Y){return function(S){return eXa(S,Y)}};
O1u=function(Y){return function(){return eXa(this,Y)}};
_.YUX=function(Y){return Zs(function(S){return S instanceof Y&&!Is(S)})};
_.M8=function(Y){return function(S){return SUh(Y,S)}};
zLa=function(Y,S){return PKY({child:Y,origin:S||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:uFY,getPayloadCase:function(P){return P.getPayloadCase()},
createInitMessage:function(P){var u=new yy,W=new WzJ;P=_.N8(W,1,P);return _.Hd(u,5,Vy,P)}})};
ec=function(Y){return{valueOf:Y}.valueOf()};
nE9=function(){var Y=null;if(!m88)return Y;try{var S=function(P){return P};
Y=m88.createPolicy("goog#html",{createHTML:S,createScript:S,createScriptURL:S})}catch(P){}return Y};
JYJ=function(){jNX===void 0&&(jNX=nE9());return jNX};
_.YU=function(Y){var S=JYJ();Y=S?S.createScriptURL(Y):Y;return new OU(Y)};
_.S2=function(Y){if(Y instanceof OU)return Y.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
Px=function(Y){return Y.toString().indexOf("`")===-1};
Wx=function(Y){return new _.uB(BX8,Y)};
zT=function(Y){return Y instanceof _.uB};
_.mp=function(Y){if(zT(Y))return Y.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
nh=function(Y){return new cYU(function(S){return S.substr(0,Y.length+1).toLowerCase()===Y+":"})};
j2=function(Y,S){S=S===void 0?CKK:S;if(zT(Y))return Y;for(var P=0;P<S.length;++P){var u=S[P];if(u instanceof cYU&&u.isValid(Y))return Wx(Y)}};
_.Bx=function(Y,S){S=S===void 0?CKK:S;return j2(Y,S)||Jw};
_.cx=function(Y){var S=window;if(typeof MediaSource!=="undefined"&&Y instanceof MediaSource||typeof S.ManagedMediaSource!=="undefined"&&Y instanceof S.ManagedMediaSource)return Wx(URL.createObjectURL(Y));S=Y.type;S.toLowerCase()==="application/octet-stream"?S=!0:(S=S.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),S=(S==null?void 0:S.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(S[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(S[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(S[1])||/^font\/[\w-]+$/i.test(S[1])));if(!S)throw Error("da");return Wx(URL.createObjectURL(Y))};
_.qD=function(Y){for(var S=_.Ch.apply(1,arguments),P=[Y[0]],u=0;u<S.length;u++)P.push(String(S[u])),P.push(Y[u+1]);return Wx(P.join(""))};
_.RL8=function(Y){if(!qUa){a:{var S=document.createElement("a");try{S.href=Y}catch(P){Y=void 0;break a}Y=S.protocol;Y=Y===":"||Y===""?"https:":Y}return Y}try{S=new URL(Y)}catch(P){return"https:"}return S.protocol};
_.R9=function(Y){Y instanceof _.uB?Y=_.mp(Y):Y=x8X.test(Y)?Y:void 0;return Y};
xU=function(Y,S){S=_.R9(S);S!==void 0&&(Y.href=S)};
Kh=function(Y){var S=JYJ();Y=S?S.createHTML(Y):Y;return new TT(Y)};
E4=function(Y){if(Y instanceof TT)return Y.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.fh=function(Y,S){Y.src=_.S2(S).toString()};
bS$=function(Y,S){Y.setAttribute("sandbox","");for(var P=0;P<S.length;P++)Y.sandbox.supports&&!Y.sandbox.supports(S[P])||Y.sandbox.add(S[P])};
_.TXh=function(Y,S,P){Y.removeAttribute("srcdoc");switch(S){case 0:if(P instanceof OU)throw new gE("TrustedResourceUrl",0);bS$(Y,[]);S=_.R9(P);S!==void 0&&(Y.src=S);break;case 1:if(!(P instanceof OU))throw new gE(typeof P,1);bS$(Y,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.fh(Y,P);break;case 2:if(P instanceof OU)throw new gE("TrustedResourceUrl",2);bS$(Y,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
S=_.R9(P);S!==void 0&&(Y.src=S);break;default:_.O6(S)}};
_.$U=function(Y,S,P,u){S=_.R9(S);return S!==void 0?Y.open(S,P,u):null};
_.rE=function(Y){Y=Y===void 0?document:Y;var S,P;Y=(P=(S=Y).querySelector)==null?void 0:P.call(S,"script[nonce]");return Y==null?"":Y.nonce||Y.getAttribute("nonce")||""};
_.hw=function(Y){var S=JYJ();Y=S?S.createScript(Y):Y;return new _.GT(Y)};
vx=function(Y){if(Y instanceof _.GT)return Y.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
Kzh=function(Y){var S=_.rE(Y.ownerDocument);S&&Y.setAttribute("nonce",S)};
_.Di=function(Y,S){Y.textContent=vx(S);Kzh(Y)};
_.I9=function(Y,S){Y.src=_.S2(S);Kzh(Y)};
_.a9=function(Y,S){if(Y.nodeType===1&&/^(script|style)$/i.test(Y.tagName))throw Error("da");Y.innerHTML=E4(S)};
_.Lh=function(Y,S,P,u){if(Y.length===0)throw Error("da");Y=Y.map(function(m){if(m instanceof EEa)m=m.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return m});
var W=P.toLowerCase();if(Y.every(function(m){return W.indexOf(m)!==0}))throw Error("ea`"+P);
S.setAttribute(P,u)};
_.wE=function(Y,S,P){if(S instanceof OU)Y.href=_.S2(S).toString(),Y.rel=P;else{if(fBK.indexOf(P)===-1)throw Error("fa`"+P);S=_.R9(S);S!==void 0&&(Y.href=S,Y.rel=P)}};
gE9=function(Y){return"function"==typeof _.ph&&Y instanceof _.ph};
_.$8a=function(Y){if(gE9(Y))return Y.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.Fm=function(Y,S){S=_.R9(S);S!==void 0&&(Y.href=S)};
s4=function(Y,S){Y&&(S=Y.indexOf(S),0<=S&&Y.splice(S,1))};
dE=function(Y){return typeof Y==="function"};
rY1=function(Y){return Y instanceof Xm||Y&&"closed"in Y&&dE(Y.remove)&&dE(Y.add)&&dE(Y.unsubscribe)};
Zi=function(){};
iB=function(Y){Gch(function(){throw Y;})};
o9=function(Y){return Y};
tw=function(){return hLa(_.Ch.apply(0,arguments))};
hLa=function(Y){return Y.length===0?o9:Y.length===1?Y[0]:function(S){return Y.reduce(function(P,u){return u(P)},S)}};
vEE=function(Y){var S;return(S=Y!=null?Y:void 0)!=null?S:Promise};
D8Y=function(Y,S){return new Aw(function(P){var u=0;return S.schedule(function(){u===Y.length?P.complete():(P.next(Y[u++]),P.closed||this.schedule())})})};
IBU=function(Y,S){if(!Y)throw Error("ga");return new Aw(function(P){var u=new Xm;u.add(S.schedule(function(){var W=Y[Symbol.asyncIterator]();u.add(S.schedule(function(){var m=this;W.next().then(function(J){J.done?P.complete():(P.next(J.value),m.schedule())})}))}));
return u})};
aB$=function(Y,S,P){S=S.schedule(function(){try{P.call(this)}catch(u){Y.error(u)}},0);
Y.add(S)};
LzU=function(Y,S){return new Aw(function(P){var u;P.add(S.schedule(function(){u=Y[U4]();aB$(P,S,function(){var W=u.next(),m=W.value;W.done?P.complete():(P.next(m),this.schedule())})}));
return function(){var W;return dE((W=u)==null?void 0:W.return)&&u.return()}})};
wdf=function(Y,S){return new Aw(function(P){var u=new Xm;u.add(S.schedule(function(){var W=Y[Q3]();u.add(W.subscribe({next:function(m){u.add(S.schedule(function(){return P.next(m)}))},
error:function(m){u.add(S.schedule(function(){return P.error(m)}))},
complete:function(){u.add(S.schedule(function(){return P.complete()}))}}))}));
return u})};
pd9=function(Y,S){return new Aw(function(P){return S.schedule(function(){return Y.then(function(u){P.add(S.schedule(function(){P.next(u);P.add(S.schedule(function(){return P.complete()}))}))},function(u){P.add(S.schedule(function(){return P.error(u)}))})})})};
Fz1=function(Y){return new TypeError("ha`"+(Y!==null&&typeof Y==="object"?"an invalid object":"'"+Y+"'"))};
d8u=function(Y,S){if(Y!=null){if(dE(Y[Q3]))return wdf(Y,S);if(sNa(Y))return D8Y(Y,S);if(dE(Y==null?void 0:Y.then))return pd9(Y,S);if(Symbol.asyncIterator&&dE(Y==null?void 0:Y[Symbol.asyncIterator]))return IBU(Y,S);if(dE(Y==null?void 0:Y[U4]))return LzU(Y,S)}throw Fz1(Y);};
MD=function(Y,S){return S?d8u(Y,S):kU(Y)};
kU=function(Y){if(Y instanceof Aw)return Y;if(Y!=null){if(dE(Y[Q3]))return lB1(Y);if(sNa(Y))return XdY(Y);if(dE(Y==null?void 0:Y.then))return ZSJ(Y);if(Symbol.asyncIterator&&dE(Y==null?void 0:Y[Symbol.asyncIterator]))return iSu(Y);if(dE(Y==null?void 0:Y[U4]))return oEu(Y)}throw Fz1(Y);};
lB1=function(Y){return new Aw(function(S){var P=Y[Q3]();if(dE(P.subscribe))return P.subscribe(S);throw new TypeError("ia");})};
XdY=function(Y){return new Aw(function(S){for(var P=0;P<Y.length&&!S.closed;P++)S.next(Y[P]);S.complete()})};
ZSJ=function(Y){return new Aw(function(S){Y.then(function(P){S.closed||(S.next(P),S.complete())},function(P){return S.error(P)}).then(null,iB)})};
oEu=function(Y){return new Aw(function(S){for(var P=Y[U4]();!S.closed;){var u=P.next(),W=u.value;u.done?S.complete():S.next(W)}return function(){return dE(P==null?void 0:P.return)&&P.return()}})};
iSu=function(Y){return new Aw(function(S){tcu(Y,S).catch(function(P){return S.error(P)})})};
tcu=function(Y,S){var P,u,W,m,J,c;return _.B(function(C){switch(C.nextAddress){case 1:_.ND(C,2,3);var x=Y[Symbol.asyncIterator];m=x!==void 0?x.call(Y):new AYa(_.n(Y));case 5:return _.q(C,m.next(),8);case 8:u=C.yieldResult;if(u.done){C.jumpTo(3);break}J=u.value;S.next(J);C.jumpTo(5);break;case 3:_.Hx(C);_.V3(C,9);if(!u||u.done||!(W=m.return)){C.jumpTo(9);break}return _.q(C,W.call(m),9);case 9:_.Hx(C,0,0,1);if(P)throw P.error;_.e2(C,10,1);break;case 10:_.e2(C,4);break;case 2:c=_.O4(C);P={error:c};C.jumpTo(3);
break;case 4:S.complete(),_.Yt(C)}})};
SY=function(Y,S){return S?D8Y(Y,S):XdY(Y)};
U8a=function(Y){return dE(Y[Y.length-1])?Y.pop():void 0};
Wz=function(Y){var S=Y[Y.length-1];return S&&dE(S.schedule)?Y.pop():void 0};
zq=function(){var Y=_.Ch.apply(0,arguments),S=Wz(Y);return S?D8Y(Y,S):SY(Y)};
mc=function(Y){var S=dE(Y)?Y:function(){return Y};
return new Aw(function(P){return P.error(S())})};
n7=function(Y){return function(S){if(dE(S==null?void 0:S.lift))return S.lift(function(P){try{return Y(P,this)}catch(u){this.error(u)}});
throw new TypeError("ja");}};
Js=function(){return n7(function(Y,S){var P=null;Y._refCount++;var u=new jY(S,void 0,void 0,void 0,function(){if(!Y||Y._refCount<=0||0<--Y._refCount)P=null;else{var W=Y._connection,m=P;P=null;!W||m&&W!==m||W.unsubscribe();S.unsubscribe()}});
Y.subscribe(u);u.closed||(P=Y.connect())})};
kcE=function(){var Y=QNh;var S=S===void 0?0:S;return n7(function(P,u){u.add(Y.schedule(function(){return P.subscribe(u)},S))})};
Bz=function(Y){return n7(function(S,P){var u=0;S.subscribe(new jY(P,function(W){P.next(Y.call(void 0,W,u++))}))})};
yYf=function(Y){return Bz(function(S){return Mch(S)?Y.apply(null,_.cz(S)):Y(S)})};
OS9=function(Y){if(Y.length===1){var S=Y[0];if(NXE(S))return{args:S,keys:null};if(S&&typeof S==="object"&&HSh(S)===Vcf)return Y=eLE(S),{args:Y.map(function(P){return S[P]}),
keys:Y}}return{args:Y,keys:null}};
C7=function(){var Y=_.Ch.apply(0,arguments),S=Wz(Y),P=U8a(Y);Y=OS9(Y);var u=Y.args,W=Y.keys;if(u.length===0)return MD([],S);S=new Aw(Y4h(u,S,W?function(m){for(var J={},c=0;c<m.length;c++)J[W[c]]=m[c];return J}:o9));
return P?S.pipe(yYf(P)):S};
Y4h=function(Y,S,P){P=P===void 0?o9:P;return function(u){S4h(S,function(){for(var W=Y.length,m=Array(W),J=W,c=Y.map(function(){return!1}),C=!0,x={i$jscomp$260:0};x.i$jscomp$260<W;x={i$jscomp$260:x.i$jscomp$260},x.i$jscomp$260++)S4h(S,function(b){return function(){MD(Y[b.i$jscomp$260],S).subscribe(new xt(u,function(T){m[b.i$jscomp$260]=T;
C&&(c[b.i$jscomp$260]=!0,C=!c.every(o9));C||u.next(P(m.slice()))},function(){return--J===0}))}}(x),u)},u)}};
S4h=function(Y,S,P){Y?P.add(Y.schedule(S)):S()};
PB$=function(Y,S,P,u){var W=[],m=0,J=0,c=!1,C=function(x){m++;kU(P(x,J++)).subscribe(new jY(S,function(b){S.next(b)},void 0,function(){m--;
for(var b={};W.length&&m<u;b={bufferedValue:void 0})b.bufferedValue=W.shift(),C(b.bufferedValue);!c||W.length||m||S.complete()}))};
Y.subscribe(new jY(S,function(x){return m<u?C(x):W.push(x)},void 0,function(){c=!0;
!c||W.length||m||S.complete()}));
return function(){W=null}};
b0=function(Y,S){var P=P===void 0?Infinity:P;if(dE(S))return b0(function(u,W){return Bz(function(m,J){return S(u,m,W,J)})(kU(Y(u,W)))},P);
typeof S==="number"&&(P=S);return n7(function(u,W){return PB$(u,W,Y,P)})};
um8=function(Y){Y=Y===void 0?Infinity:Y;return b0(o9,Y)};
Wpa=function(){var Y=_.Ch.apply(0,arguments);return um8(1)(SY(Y,Wz(Y)))};
Tq=function(Y){return new Aw(function(S){kU(Y()).subscribe(S)})};
K7=function(Y,S,P){if(dE(P)){var u=P;P=void 0}if(u)return K7(Y,S,P).pipe(yYf(u));u=_.n(dE(Y.addEventListener)&&dE(Y.removeEventListener)?zEJ.map(function(J){return function(c){return Y[J](S,c,P)}}):dE(Y.addListener)&&dE(Y.removeListener)?mDE.map(nU9(Y,S)):dE(Y.on)&&dE(Y.off)?j9h.map(nU9(Y,S)):[]);
var W=u.next().value,m=u.next().value;return!W&&sNa(Y)?b0(function(J){return K7(J,S,P)})(SY(Y)):new Aw(function(J){if(!W)throw new TypeError("ka");
var c=function(){var C=_.Ch.apply(0,arguments);return J.next(1<C.length?C:C[0])};
W(c);return function(){return m(c)}})};
nU9=function(Y,S){return function(P){return function(u){return Y[P](S,u)}}};
f7=function(){var Y=_.Ch.apply(0,arguments),S=Wz(Y);var P=typeof Y[Y.length-1]==="number"?Y.pop():Infinity;return Y.length?Y.length===1?kU(Y[0]):um8(P)(SY(Y,S)):Ea};
BEJ=function(Y){return Y.length===1&&JwU(Y[0])?Y[0]:Y};
cwa=function(){var Y=BEJ(_.Ch.apply(0,arguments));return n7(function(S,P){var u=[S].concat(_.cz(Y)),W=function(){if(!P.closed)if(u.length>0){try{var m=kU(u.shift())}catch(c){W();return}var J=new jY(P,void 0,Zi,Zi);P.add(m.subscribe(J));J.add(W)}else P.complete()};
W()})};
gQ=function(Y){return n7(function(S,P){var u=0;S.subscribe(new jY(P,function(W){return Y.call(void 0,W,u++)&&P.next(W)}))})};
q41=function(){var Y=_.Ch.apply(0,arguments);Y=BEJ(Y);return Y.length===1?kU(Y[0]):new Aw(CB$(Y))};
CB$=function(Y){return function(S){for(var P=[],u={i$jscomp$263:0};P&&!S.closed&&u.i$jscomp$263<Y.length;u={i$jscomp$263:u.i$jscomp$263},u.i$jscomp$263++)P.push(kU(Y[u.i$jscomp$263]).subscribe(new jY(S,function(W){return function(m){if(P){for(var J=0;J<P.length;J++)J!==W.i$jscomp$263&&P[J].unsubscribe();P=null}S.next(m)}}(u))))}};
REu=function(){var Y=_.Ch.apply(0,arguments),S=U8a(Y),P=BEJ(Y);return P.length?new Aw(function(u){var W=P.map(function(){return[]}),m=P.map(function(){return!1});
u.add(function(){W=m=null});
for(var J={sourceIndex$jscomp$1:0};!u.closed&&J.sourceIndex$jscomp$1<P.length;J={sourceIndex$jscomp$1:J.sourceIndex$jscomp$1},J.sourceIndex$jscomp$1++)kU(P[J.sourceIndex$jscomp$1]).subscribe(new jY(u,function(c){return function(C){W[c.sourceIndex$jscomp$1].push(C);W.every(function(x){return x.length})&&(C=W.map(function(x){return x.shift()}),u.next(S?S.apply(null,_.cz(C)):C),W.some(function(x,b){return!x.length&&m[b]})&&u.complete())}}(J),void 0,function(c){return function(){m[c.sourceIndex$jscomp$1]=
!0;
!W[c.sourceIndex$jscomp$1].length&&u.complete()}}(J)));
return function(){W=m=null}}):Ea};
xDa=function(Y){var S,P,u;return!!Y&&typeof Y.active==="boolean"&&typeof((S=Y.clock)==null?void 0:S.now)==="function"&&((P=Y.clock)==null?void 0:P.timeline)!==void 0&&!((u=Y.lastMeasurement)==null||!u.timestamp)&&typeof Y.equivalentTo==="function"&&typeof Y.extrapolateToNow==="function"&&typeof Y.extrapolateToTime==="function"&&typeof Y.map==="function"&&typeof Y.joinWith==="function"};
bhf=function(Y){function S(P){return typeof P==="boolean"||typeof P==="string"||typeof P==="number"||P===void 0||P===null}
return S(Y)?!0:Array.isArray(Y)?Y.every(S):typeof Y==="object"?Object.keys(Y).every(function(P){return typeof P==="string"})&&Object.values(Y).every(function(P){return Array.isArray(P)?P.every(S):S(P)}):!1};
TEY=function(Y){if(bhf(Y))return Y;if(xDa(Y))return{lastMeasurement:{value:TEY(Y.lastMeasurement.value),timestamp:$t(Y.lastMeasurement.timestamp,new rQ(0,Y.lastMeasurement.timestamp.timeline))},active:Y.active};try{return JSON.parse(JSON.stringify(Y))}catch(S){}return String(Y)};
Gq=function(Y,S){return function(P){return new Aw(function(u){return P.subscribe(function(W){Y.timeExecution(S,function(){u.next(W)})()},function(W){Y.timeExecution(S,function(){u.error(W)})()},function(){Y.timeExecution(S,function(){u.complete()})()})})}};
Kpu=function(Y,S){var P=!1;return new Aw(function(u){var W=Y.setTimeout(function(){P=!0;u.next(!0);u.complete()},S);
return function(){P||Y.clearTimeout(W)}})};
EU$=function(Y){Y=Y.global;if(Y.fetchLater)return Y.fetchLater.bind(Y)};
hs=function(Y){return n7(function(S,P){var u=null,W=!1,m;u=S.subscribe(new jY(P,void 0,function(J){m=kU(Y(J,hs(Y)(S)));u?(u.unsubscribe(),u=null,m.subscribe(P)):W=!0}));
W&&(u.unsubscribe(),u=null,m.subscribe(P))})};
fia=function(Y,S,P){return function(u,W){var m=P,J=S,c=0;u.subscribe(new jY(W,function(C){var x=c++;J=m?Y(J,C,x):(m=!0,C);W.next(J)},void 0,void 0))}};
gU1=function(Y){Y=Y===void 0?null:Y;return n7(function(S,P){var u=!1;S.subscribe(new jY(P,function(W){u=!0;P.next(W)},void 0,function(){u||P.next(Y);
P.complete()}))})};
vz=function(){return n7(function(Y,S){Y.subscribe(new jY(S,Zi))})};
DD=function(Y){return n7(function(S,P){S.subscribe(new jY(P,function(){return P.next(Y)}))})};
ID=function(Y){return Y<=0?function(){return Ea}:n7(function(S,P){var u=0;
S.subscribe(new jY(P,function(W){++u<=Y&&(P.next(W),Y<=u&&P.complete())}))})};
aD=function(Y){var S=S===void 0?o9:S;var P;Y=(P=Y)!=null?P:$Df;return n7(function(u,W){var m,J=!0;u.subscribe(new jY(W,function(c){var C=S(c);if(J||!Y(m,C))J=!1,m=C,W.next(c)}))})};
$Df=function(Y,S){return Y===S};
GT$=function(Y){Y=Y===void 0?rwh:Y;return n7(function(S,P){var u=!1;S.subscribe(new jY(P,function(W){u=!0;P.next(W)},void 0,function(){return u?P.complete():P.error(Y())}))})};
rwh=function(){return new hE$};
wQ=function(){var Y=_.Ch.apply(0,arguments);return function(S){return Wpa(S,zq.apply(null,_.cz(Y)))}};
vUf=function(Y){return n7(function(S,P){var u=0;S.subscribe(new jY(P,function(W){Y.call(void 0,W,u++,S)||(P.next(!1),P.complete())},void 0,function(){P.next(!0);
P.complete()}))})};
DDa=function(){return n7(function(Y,S){var P=[];Y.subscribe(new jY(S,function(u){P.push(u);1<P.length&&P.shift()},void 0,function(){for(var u=_.n(P),W=u.next();!W.done;W=u.next())S.next(W.value);
S.complete()},function(){P=null}))})};
IiJ=function(Y,S){var P=arguments.length>=2;return function(u){return u.pipe(Y?gQ(function(W,m){return Y(W,m,u)}):o9,DDa(),P?gU1(S):GT$(function(){return new hE$}))}};
FO=function(Y){var S=dE(Y)?Y:function(){return Y};
return dE()?n7(function(P,u){var W=S();(void 0)(W).subscribe(u).add(P.subscribe(W))}):function(P){var u=new p7(P,S);
dE(P==null?void 0:P.lift)&&(u.lift=P.lift);u.source=P;u.subjectFactory=S;return u}};
dQ=function(Y){var S=new sa(Y,void 0,void 0);return function(P){return FO(function(){return S})(P)}};
l0=function(Y,S){return n7(fia(Y,S,arguments.length>=2))};
i0=function(){var Y=_.Ch.apply(0,arguments),S=Wz(Y);return n7(function(P,u){(S?Wpa(Y,P,S):Wpa(Y,P)).subscribe(u)})};
oD=function(Y){return n7(function(S,P){var u=null,W=0,m=!1;S.subscribe(new jY(P,function(J){var c;(c=u)==null||c.unsubscribe();c=W++;kU(Y(J,c)).subscribe(u=new jY(P,function(C){return P.next(C)},void 0,function(){u=null;
m&&!u&&P.complete()}))},void 0,function(){(m=!0,!u)&&P.complete()}))})};
ts=function(Y,S){S=S===void 0?!1:S;return n7(function(P,u){var W=0;P.subscribe(new jY(u,function(m){var J=Y(m,W++);(J||S)&&u.next(m);!J&&u.complete()}))})};
As=function(Y,S,P){var u=dE(Y)||S||P?{next:Y,error:S,complete:P}:Y;return u?n7(function(W,m){W.subscribe(new jY(m,function(J){var c;(c=u.next)==null||c.call(u,J);m.next(J)},function(J){var c;
(c=u.error)==null||c.call(u,J);m.error(J)},function(){var J;
(J=u.complete)==null||J.call(u);m.complete()}))}):o9};
aih=function(){var Y=_.Ch.apply(0,arguments),S=U8a(Y);return n7(function(P,u){for(var W=Y.length,m=Array(W),J=Y.map(function(){return!1}),c=!1,C={i$jscomp$273:0};C.i$jscomp$273<W;C={i$jscomp$273:C.i$jscomp$273},C.i$jscomp$273++)kU(Y[C.i$jscomp$273]).subscribe(new jY(u,function(x){return function(b){m[x.i$jscomp$273]=b;
c||J[x.i$jscomp$273]||(J[x.i$jscomp$273]=!0,(c=J.every(o9))&&(J=null))}}(C),void 0,Zi));
P.subscribe(new jY(u,function(x){c&&(x=[x].concat(_.cz(m)),u.next(S?S.apply(null,_.cz(x)):x))}))})};
LpX=function(Y){var S=[],P=0,u;for(u in Y)S[P++]=u;return S};
wxa=function(Y,S){for(var P in Y)if(Y[P]==S)return!0;return!1};
pxU=function(Y,S,P){for(var u in Y)if(S.call(P,Y[u],u,Y))return u};
FpE=function(Y){if(!Y||typeof Y!=="object")return Y;if(typeof Y.clone==="function")return Y.clone();if(typeof Map!=="undefined"&&Y instanceof Map)return new Map(Y);if(typeof Set!=="undefined"&&Y instanceof Set)return new Set(Y);if(Y instanceof Date)return new Date(Y.getTime());var S=Array.isArray(Y)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(Y)||Y instanceof DataView?{}:new Y.constructor(Y.length),P;for(P in Y)S[P]=FpE(Y[P]);return S};
s9h=function(Y){var S=arguments.length;if(S==1&&Array.isArray(arguments[0]))return s9h.apply(null,arguments[0]);if(S%2)throw Error("oa");for(var P={},u=0;u<S;u+=2)P[arguments[u]]=arguments[u+1];return P};
dDJ=function(Y){var S=arguments.length;if(S==1&&Array.isArray(arguments[0]))return dDJ.apply(null,arguments[0]);for(var P={},u=0;u<S;u++)P[arguments[u]]=!0;return P};
_.Ua=function(Y){return new EEa(Y[0].toLowerCase())};
lia=function(Y){try{return new URL(Y,window.document.baseURI)}catch(S){return new URL("about:invalid")}};
Xx8=function(Y,S){var P=S.createRange();P.selectNode(S.body);Y=Kh(Y);return P.createContextualFragment(E4(Y))};
Zh8=function(Y){Y=Y.nodeName;return typeof Y==="string"?Y:"FORM"};
ihh=function(Y){Y=Y.nodeType;return Y===1||typeof Y!=="number"};
Qw=function(Y,S,P){Y.setAttribute(S,P)};
oUX=function(Y){return Y.parts.map(function(S){var P=S.descriptor;return""+S.url+(P?" "+P:"")}).join(" , ")};
_.kt=function(Y){var S=_.Ch.apply(1,arguments);if(S.length===0)return _.YU(Y[0]);for(var P=Y[0],u=0;u<S.length;u++)P+=encodeURIComponent(S[u])+Y[u+1];return _.YU(P)};
_.Mg=function(Y,S){Y=_.S2(Y).toString();var P=Y.split(/[?#]/),u=/[?]/.test(Y)?"?"+P[1]:"";return t2E(P[0],u,/[#]/.test(Y)?"#"+(u?P[2]:P[1]):"",S)};
t2E=function(Y,S,P,u){function W(J,c){J!=null&&(Array.isArray(J)?J.forEach(function(C){return W(C,c)}):(S+=m+encodeURIComponent(c)+"="+encodeURIComponent(J),m="&"))}
var m=S.length?"&":"?";u.constructor===Object&&(u=Object.entries(u));Array.isArray(u)?u.forEach(function(J){return W(J[1],J[0])}):u.forEach(W);
return _.YU(Y+S+P)};
AwK=function(Y){Y=Y.global;if(Y.PendingGetBeacon)return Y.PendingGetBeacon};
Ng=function(Y){return function(S){return S.pipe(UDY(Y,FO(new yw)))}};
Hz=function(Y){return function(S){return S.pipe(UDY(Y,dQ(1)))}};
UDY=function(Y,S){function P(u){return new Aw(function(W){return u.subscribe(function(m){Vw(Y,function(){return void W.next(m)},3)},function(m){Vw(Y,function(){return void W.error(m)},3)},function(){Vw(Y,function(){return void W.complete()},3)})})}
return tw(P,kcE(),S,Js(),P)};
M2$=function(Y){var S=Q9J(Y);return S===null?new eY(null):S.pipe(Bz(function(P){P=P.serialize();if(kTJ)P=_.Pa.btoa(P);else{for(var u=[],W=0,m=0;m<P.length;m++){var J=P.charCodeAt(m);J>255&&(u[W++]=J&255,J>>=8);u[W++]=J}P=_.QB(u)}return P}),ID(1),Hz(Y.queue))};
yw$=function(Y){var S=S===void 0?{}:S;if(typeof Event==="function")return new Event(Y,S);if(typeof document!=="undefined"){var P=document.createEvent("CustomEvent");P.initCustomEvent(Y,S.bubbles||!1,S.cancelable||!1,S.detail);return P}throw Error();};
NE1=function(Y){return typeof Y==="string"?document.getElementById(Y):Y};
V2a=function(Y){var S=!1;S=S===void 0?!1:S;if(Y.tagName==="IMG"){if(Y.complete&&(!Y.naturalWidth||!Y.naturalHeight))return!0;var P;if(S&&((P=Y.style)==null?void 0:P.display)==="none")return!0}var u,W;return Hh9.test((u=Y.getAttribute("width"))!=null?u:"")&&Hh9.test((W=Y.getAttribute("height"))!=null?W:"")};
eEU=function(Y,S){if(Y.tagName==="IMG")return Y.naturalWidth&&Y.naturalHeight?!0:!1;try{if(Y.readyState)var P=Y.readyState;else{var u,W;P=(u=Y.contentWindow)==null?void 0:(W=u.document)==null?void 0:W.readyState}return P==="complete"}catch(m){return S===void 0?!1:S}};
Oh1=function(Y){Y||(Y=function(S,P,u){S.addEventListener(P,u)});
return Y};
uOY=function(Y,S){var P=YaK();P=P===void 0?new Sah:P;if(Y=NE1(Y)){var u=Oh1(u);for(var W=!1,m=function(w){W||(W=!0,S(w))},J,c=2,C=0;C<P08.length;++C)if(P08[C]===Y.tagName){c=3;
J=[Y];break}J||(J=Y.querySelectorAll(P08.join(",")));var x=0,b=0,T=!0,K=Y=!1;C={};for(var G=0;G<J.length;C={isImg:void 0},G++){var v=J[G];if(!V2a(v))if(C.isImg=v.tagName==="IMG",eEU(v,P.crossDomainLoadedDefault))Y=!0,C.isImg&&(T=!0);else{x++;var a=function(w){return function(F){x--;!x&&T&&m(c);w.isImg&&(F=F&&F.type==="error",b--,F||(T=!0),!b&&K&&T&&m(c))}}(C);
u(v,"load",a);C.isImg&&(b++,u(v,"error",a))}}b===0&&(T=!0);J=null;J=_.Pa.document.readyState==="complete";if(x===0&&!Y&&J)c=5;else if(x||!Y){u(_.Pa,"load",function(){!P.pendingImagesBlockLoad||!b&&T?m(4):K=!0});
return}m(c)}};
Wc1=function(Y,S,P){if(Y)for(var u=0;Y!=null&&u<500&&!P(Y);++u)Y=S(Y)};
zAY=function(Y,S){Wc1(Y,function(P){try{return P===P.parent?null:P.parent}catch(u){}return null},S)};
mgE=function(Y,S){if(Y.tagName=="IFRAME")S(Y);else{Y=Y.querySelectorAll("IFRAME");for(var P=0;P<Y.length&&!S(Y[P]);++P);}};
ntY=function(Y){return(Y=Y.ownerDocument)&&(Y.parentWindow||Y.defaultView)||null};
jDY=function(Y,S,P){try{var u=JSON.parse(P.data)}catch(J){}if(typeof u==="object"&&u&&u.type==="creativeLoad"){var W=ntY(Y);if(P.source&&W){var m;zAY(P.source,function(J){try{if(J.parent===W)return m=J,!0}catch(c){}});
m&&mgE(Y,function(J){if(J.contentWindow===m)return S(u),!0})}}};
JsX=function(Y){return typeof Y==="string"?document.getElementById(Y):Y};
qaK=function(){var Y={};return Y[0]=_.kt(BQ9,"current"),Y[1]=_.kt(cs1),Y[2]=_.kt(C0a),Y};
Oa=function(Y,S){return Y.left===S.left&&Y.top===S.top&&Y.width===S.width&&Y.height===S.height};
RA$=function(Y,S){return{left:Math.max(Y.left,S.left),top:Math.max(Y.top,S.top),width:Math.max(0,Math.min(Y.left+Y.width,S.left+S.width)-Math.max(Y.left,S.left)),height:Math.max(0,Math.min(Y.top+Y.height,S.top+S.height)-Math.max(Y.top,S.top))}};
xga=function(Y,S){return{left:Math.round(Y.left+S.x),top:Math.round(Y.top+S.y),width:Y.width,height:Y.height}};
Yg=function(Y,S,P,u){this.top=Y;this.right=S;this.bottom=P;this.left=u};
b7U=function(Y,S,P){if(Y&&S!==null&&S!=S.top){if(!S.top)return new _.SZ(-12245933,-12245933);S=S.top}try{return(P===void 0?0:P)?(new _.SZ(S.innerWidth,S.innerHeight)).round():_.Pk(S).round()}catch(u){return new _.SZ(-12245933,-12245933)}};
TQh=function(Y,S,P){try{if(Y){if(!S.top)return new Yg(-12245933,-12245933,-12245933,-12245933);S=S.top}var u=b7U(Y,S,P),W=u.height,m=u.width;if(m===-12245933)return new Yg(m,m,m,m);var J=u9(Wk(S.document)),c=J.x,C=J.y;return new Yg(C,c+m,C+W,c)}catch(x){return new Yg(-12245933,-12245933,-12245933,-12245933)}};
KcE=function(Y){var S;return(S=Y.google_tag_data)!=null?S:Y.google_tag_data={}};
EtX=function(Y){var S,P;return typeof((S=Y.navigator)==null?void 0:(P=S.userAgentData)==null?void 0:P.getHighEntropyValues)==="function"};
gtX=function(Y){if(!EtX(Y))return null;var S=KcE(Y);if(S.uach_promise)return S.uach_promise;Y=Y.navigator.userAgentData.getHighEntropyValues(fD9).then(function(P){S.uach!=null||(S.uach=P);return P});
return S.uach_promise=Y};
FcJ=function(Y){var S;return $gh(rs9(Gqh(hAU(vth(Dgh(IDE(aDK(Lc8(new wz1,Y.architecture||""),Y.bitness||""),Y.mobile||!1),Y.model||""),Y.platform||""),Y.platformVersion||""),Y.uaFullVersion||""),((S=Y.fullVersionList)==null?void 0:S.map(function(P){var u=new pzE;u=_.zH(u,1,P.brand);return _.zH(u,2,P.version)}))||[]),Y.wow64||!1)};
sDu=function(Y){var S,P;return(P=(S=gtX(Y))==null?void 0:S.then(function(u){return FcJ(u)}))!=null?P:null};
dg9=function(Y,S){return new Aw(function(P){var u=!1,W=Array(S.length);W.fill(void 0);var m=new Set,J=new Set,c=function(T,K){Y.running?(W[K]=T,m.add(K),u||(u=!0,Vw(Y,function(){u=!1;P.next(_.NU(W))},1))):P.error(new m8(K))},C=function(T,K){J.add(K);
m.add(K);Vw(Y,function(){P.error(T)},1)},x=function(T){J.add(T);
Vw(Y,function(){J.size===S.length&&P.complete()},1)},b=S.map(function(T,K){return T.subscribe(function(G){return void c(G,K)},function(G){return void C(G,K)},function(){return void x(K)})});
return function(){b.forEach(function(T){return void T.unsubscribe()})}})};
XzE=function(Y,S,P){function u(){if(S.debugChannel){var w=S.debugChannel,F=w.next;var U={creativeId:S.debugNames.getName(P),requiredSignals:W,signals:Object.assign({},m),hasPrematurelyCompleted:J,errorMessage:c,erroredSignalKey:C};U={specMajor:2,specMinor:0,specPatch:0,timestamp:$t(S.timeProvider.now(),new rQ(0,S.timeProvider.timeline)),instanceId:S.debugNames.getName(S.symbol),creativeState:U};F.call(w,U)}}
for(var W=Object.keys(Y),m={},J=!1,c=null,C=null,x={},b=new Set,T=[],K=[],G=_.n(W),v=G.next(),a={};!v.done;a={key$jscomp$372:void 0},v=G.next())a.key$jscomp$372=v.value,v=Y[a.key$jscomp$372],v instanceof eY?(x[a.key$jscomp$372]=v.value,b.add(a.key$jscomp$372),S.debugChannel&&(m[String(a.key$jscomp$372)]=TEY(v.value))):(v=v.pipe(aD(function(w,F){return xDa(w)||xDa(F)?!1:w===F}),Bz(function(w){return function(F){S.debugChannel&&(m[String(w.key$jscomp$372)]=TEY(F),u());
var U={};return U[w.key$jscomp$372]=F,U}}(a)),hs(function(w){return function(F){if(F instanceof m8)throw new lDa(String(w.key$jscomp$372));
throw F;}}(a)),As(function(w){return function(){b.add(w.key$jscomp$372)}}(a),function(w){return function(F){C=String(w.key$jscomp$372);
c=String(F);u()}}(a),function(w){return function(){b.has(w.key$jscomp$372)||(J=!0,u())}}(a))),K.push(a.key$jscomp$372),T.push(v));
(Y=Object.keys(m).length>0)&&u();G=dg9(S.queue,T).pipe(hs(function(w){if(w instanceof m8)throw new nx(String(K[w.inputObservableIndex]));throw w;}),Bz(function(w){return Object.freeze(Object.assign.apply(Object,[{},
x].concat(_.cz(w))))}));
return(T=T.length>0)&&Y?f7(zq(Object.freeze(x)),G):T?G:zq(Object.freeze(x))};
Z7K=function(Y,S,P,u,W){return Y.performanceMonitor.timeExecution.bind(Y.performanceMonitor)(733,function(){var m={};try{return S.pipe(hs(function(J){u(Object.assign({},m,{error:J}));return Ea}),b0(function(J){try{var c=P(Y,J)}catch(x){return u(Object.assign({},m,{error:x instanceof Error?x:String(x)})),Ea}var C={};
return XzE(c,Y,J.symbol).pipe(As(function(x){C=x}),dQ(1),Js()).pipe(W,hs(function(x){u(Object.assign({},C,{error:x}));
return Ea}),wQ(void 0),Bz(function(){return!0}))})).pipe(l0(function(J){return J+1},0),hs(function(J){u(Object.assign({},m,{error:J}));
return Ea}))}catch(J){return u(Object.assign({},m,{error:J})),Ea}})()};
jZ=function(Y){var S=new Map;if(typeof Y!=="object"||Y===null)return S;Object.values(Y).forEach(function(P){P&&typeof P.extrapolateToNow==="function"&&(S.has(P.clock.timeline)||S.set(P.clock.timeline,P.clock.now()))});
return S};
i7h=function(Y,S){return typeof Y==="string"?encodeURIComponent(Y):typeof Y==="number"?String(Y):Array.isArray(Y)?Y.map(function(P){return i7h(P,S)}).join(","):Y instanceof rQ?Y.toString():Y&&typeof Y.extrapolateToNow==="function"?i7h(Y.extrapolateUsingTimestampMap(S).value,S):Y===!0?"1":Y===!1?"0":Y===void 0||Y===null?null:Y instanceof ot8?tYu(Y):[Y.top,
Y.left,Y.top+Y.height,Y.left+Y.width].join()};
J$=function(Y,S){Y=Object.entries(Y).map(function(P){var u=_.n(P);P=u.next().value;u=u.next().value;u=i7h(u,S);return u===null?"":P+"="+u}).filter(function(P){return P!==""});
return Y.length?Y.join("&"):""};
QD$=function(Y,S){var P=AsK,u=UgY;S=S===void 0?.01:S;return function(W){S>0&&Math.random()<=S&&(Y.global.HTMLFencedFrameElement&&Y.global.fence&&typeof Y.global.fence.reportEvent==="function"&&Y.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),W=Object.assign({},W,{errorMessage:W.error instanceof Error&&W.error.message?W.error.message:String(W.error),errorStack:W.error instanceof Error&&W.error.stack?String(W.error.stack):null,errorName:W.error instanceof
Error&&W.error.name?String(W.error.name):null,errorContext:String(Y.performanceMonitor.timedFunctionContext),errorEscapedQueryId:W.escapedQueryId}),P(Object.assign({},W,{payloadMapper:function(){return function(m){try{return u(Object.assign({},m))}catch(J){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),jZ(W)).forEach(function(m){Y.beaconFactory.makeBeacon(m).sendNow()}))}};
kqh=function(){var Y=_.Ch.apply(0,arguments);return function(S){var P=S.pipe(dQ(1),Js());S=Y.map(function(u){return P.pipe(u,wQ(!0))});
return C7(S).pipe(ID(1),vz())}};
MYh=function(){var Y=_.Ch.apply(0,arguments);return function(S){var P=S.pipe(dQ(1),Js());S=Y.map(function(u){return P.pipe(u,wQ(!0))});
return f7.apply(null,_.cz(S)).pipe(ID(1),vz())}};
ysa=function(Y,S){return function(P){var u=P.pipe(dQ(1),Js());P=u.pipe(Y,wQ(!0));u=u.pipe(tw(S,dQ(),Js()),wQ(!0));P=C7([P,u]);return q41(P,u).pipe(ID(1),vz())}};
NQu=function(Y,S,P){P(!0)};
H7X=function(Y,S){return tw(oD(function(P){var u=Y(P),W=S(P),m={};return u&&W&&m?new Aw(function(J){W(u,m,function(c){J.next(Object.assign({},P,{canEmit:c}));J.complete()});
return function(){}}):Bk}),gQ(function(P){return P.canEmit}))};
VYa=function(Y){var S={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(P){return P.pipe(oD(function(u){return new Aw(function(W){function m(){c.disconnect();C.unsubscribe()}
var J=Y.MutationObserver;if(J&&u.ref!==void 0){var c=new J(function(x){W.next(x)});
c.observe(u.ref,S);var C=u.JSC$7212_released.subscribe(m);return m}})}))}};
eAa=function(Y){if(Y.measurementDeferralState===3)return null;if(Y.timeOnScreenReason!==void 0){var S=Y.creativeFound===!1?"n":null;if(S!==null)return S}return Y.geometricMeasurementErrors instanceof ck?"msf":Y.contextValidationErrors instanceof Cx?"c":Y.contextVisibilityKnown===!1?"pv":Y.geometricMeasurementErrors||Y.contextValidationErrors?"x":null};
xg=function(Y,S){return Y.replace(O7f,function(P,u){try{var W=_.RY.get(S,u);if(W==null||W.toString()==null)return P;W=W.toString();if(W==""||!_.Ba(W==null?"":String(W)))return encodeURIComponent(W).replace(/%2C/g,",")}catch(m){}return P})};
YyU=function(Y,S){var P=Object.assign({},Y),u=Y.userAgentClientHints;P=(delete P.userAgentClientHints,P);P=Y.payloadMapper(P);var W=J$(P,S);return _.b9(Y.urlPrefixes,function(m){var J="";typeof u==="string"&&(J="&"+J$({uach:u},S));var c={};return xg(m,(c.VIEWABILITY=W,c))+J})};
AsK=function(Y,S){var P=Y.payloadMapper(Y),u=J$(P,S);return u?_.b9(Y.urlPrefixes,function(W){W=W.indexOf("?")>=0?W:W+"?";W="?&".indexOf(W.slice(-1))>=0?W:W+"&";return W+u}):Y.urlPrefixes};
Sy1=function(){return tw(gQ(function(Y){return Y!==void 0}),Bz(function(Y){return Y}))};
P9K=function(Y){return tw(Bz(function(){return!0}),i0(!1),Hz(Y))};
uMa=function(Y){return Y.length<=0?Ea:C7(Y.map(function(S){var P=0;return S.pipe(Bz(function(u){return{index:P++,value:u}}))})).pipe(gQ(function(S){return S.every(function(P){return P.index===S[0].index})}),Bz(function(S){return S.map(function(P){return P.value})}))};
W81=function(Y,S){Y.currentState&&(Y.previousState=Y.currentState);Y.currentState=S;Y.previousState&&Y.previousState.value?(S=Math.max(0,$t(S.timestamp,Y.previousState.timestamp)),Y.totalTime+=S,Y.consecutiveTime+=S):Y.consecutiveTime=0;return Y};
zq9=function(){return tw(l0(W81,{totalTime:0,consecutiveTime:0}),Bz(function(Y){return Y.totalTime}))};
m1K=function(){return tw(l0(W81,{totalTime:0,consecutiveTime:0}),Bz(function(Y){return Y.consecutiveTime}))};
ngE=function(Y,S){return function(P){return uMa(S.map(function(u){return P.pipe(Y(u))}))}};
jYf=function(){var Y;return tw(As(function(S){return void(Y=S.timestamp)}),m1K(),Bz(function(S){return{timestamp:Y,
value:Math.round(S)}}))};
J$K=function(Y,S){return Oa(Y.topWindowViewportExternalGeometry,S.topWindowViewportExternalGeometry)&&Oa(Y.elementGeometry,S.elementGeometry)&&Oa(Y.exposedViewportLocalGeometry,S.exposedViewportLocalGeometry)&&Oa(Y.intersectionGeometry,S.intersectionGeometry)&&Y.elementGeometrySourceName===S.elementGeometrySourceName&&Y.measurementRequests===S.measurementRequests&&Y.viewportGeometrySourceName===S.viewportGeometrySourceName&&Y.viewportLocalAppOffset.x===S.viewportLocalAppOffset.x&&Y.viewportLocalAppOffset.y===
S.viewportLocalAppOffset.y};
C9a=function(Y,S){return function(P){return function(u){var W=u.pipe(FO(new yw),Js());u=P.element.pipe(aD());W=W.pipe(Bz(function(m){return m.value}));
return C7([u,W,S]).pipe(Bz(function(m){var J=_.n(m);m=J.next().value;var c=J.next().value;J=J.next().value;if(m.ref===void 0)var C={top:0,left:0,width:0,height:0};else{C=m.ref.getBoundingClientRect();var x=m.ref,b=Y.global,T=new _.TH(0,0),K=Kx(_.Ey(x));if(fx(K,"parent")){do{if(K==b)var G=_.gh(x);else G=BhE(x),G=new _.TH(G.left,G.top);T.x+=G.x;T.y+=G.y}while(K&&K!=b&&K!=K.parent&&(x=K.frameElement)&&(K=K.parent))}C={top:T.y,left:T.x,width:C.width,height:C.height}}C=xga(C,c.viewportLocalAppOffset);
b=RA$(C,c.exposedViewportLocalGeometry);T=Y.timeProvider.now();K=Object;x=K.assign;if(J!==2||Y.inCrossDomainIframe||b.width<=0||b.height<=0)var v=!1;else try{var a=Y.document.elementFromPoint(b.left+b.width/2,b.top+b.height/2);v=a?!c$8(a,m):!1}catch(w){v=!1}return{timestamp:T,value:x.call(K,{},c,{elementGeometrySourceName:"geo",intersectionGeometry:v?$g.intersectionGeometry:b,elementGeometry:C})}}),Ng(Y.queue))}}};
c$8=function(Y,S,P){P=P===void 0?0:P;return Y.ref===void 0||S.ref===void 0?!1:Y.ref===S.ref||_.rh(S.ref,function(u){return u===Y.ref})?!0:S.ref.ownerDocument&&S.ref.ownerDocument.defaultView&&S.ref.ownerDocument.defaultView===S.ref.ownerDocument.defaultView.top?!1:P<10&&S.ref.ownerDocument&&S.ref.ownerDocument.defaultView&&S.ref.ownerDocument.defaultView.frameElement?c$8(Y,new GH(S.ref.ownerDocument.defaultView.frameElement),P+1):!0};
x1K=function(Y){return function(S){return S.pipe(Y.ResizeObserver?qyX(Y):RqY(Y),dQ(1),Js())}};
qyX=function(Y){return function(S){return S.pipe(oD(function(P){var u=Y.ResizeObserver;if(!u||P.ref===void 0)return zq($g.elementGeometry);var W=(new Aw(function(m){function J(){P.ref!==void 0&&c.unobserve(P.ref);c.disconnect();C.unsubscribe()}
if(P.ref===void 0)return m.complete(),function(){};
var c=new u(function(x){x.forEach(function(b){m.next(b)})});
c.observe(P.ref);var C=P.JSC$7212_released.subscribe(J);return J})).pipe(Gq(Y.performanceMonitor,736),Bz(function(m){return m.contentRect}));
return f7(zq(P.ref.getBoundingClientRect()),W)}),aD(Oa))}};
RqY=function(Y){return function(S){var P=S.pipe(VYa(Y)),u=Y.onResize;P=f7(S.pipe(Bz(function(){return yw$("resize")})),P,u);
return C7(S,P).pipe(Gq(Y.performanceMonitor,737),Bz(function(W){W=_.n(W).next().value;return W.ref===void 0?void 0:W.ref.getBoundingClientRect()}),Sy1(),aD(Oa))}};
K89=function(Y,S){var P=bx$(Y,S).pipe(dQ(1),Js());return function(u){return function(W){W=W.pipe(oD(function(m){return m.element}),aD());
return C7([P,W]).pipe(oD(function(m){var J=_.n(m);m=J.next().value;J=J.next().value;return Thu(Y,m.intersectionObserver,x1K(Y),m.observations,u,m.flushRecords,J)}),Ng(Y.queue))}}};
EgJ=function(Y){return Bz(function(S){return S.value.viewportGeometrySourceName!=="nio"?S:Object.assign({},S,{value:Object.assign({},S.value,{exposedViewportLocalGeometry:h$(Y,!0),topWindowViewportExternalGeometry:h$(Y,!0)})})})};
f0h=function(Y,S){return zq(S).pipe(Y,Bz(function(){return S}))};
bx$=function(Y,S){return Y.timeProvider.timeline!==ggf?mc(new ck(2)):Y.MutationObserver?typeof IntersectionObserver==="undefined"?mc(new ck(0)):(new Aw(function(P){var u=new yw,W=new vk(u.next.bind(u),{threshold:[].concat(_.cz(S))});P.next({observations:u.pipe(Gq(Y.performanceMonitor,735)),intersectionObserver:W,flushRecords:function(m){m=W.takeRecords(m);m.length>0&&u.next(m)}})})).pipe(ID(1),dQ(1),Js()):mc(new ck(1))};
$1h=function(Y){return d8u(Y.sort(function(S,P){return S.time-P.time}),QNh)};
Thu=function(Y,S,P,u,W,m,J){return new Aw(function(c){function C(){v||(v=!0,J.ref!==void 0&&S.unobserve(W,J.ref),b.unsubscribe(),G.unsubscribe(),K.unsubscribe(),a.unsubscribe())}
if(J.ref!==void 0){r$a(S,W);S.observe(W,J.ref);var x=new D0({timestamp:Y.timeProvider.now(),value:Object.assign({},$g,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),b=u.pipe(b0(function(w){return $1h(w)}),gQ(function(w){return w.target===J.ref}),Bz(function(w){return{timestamp:new rQ(w.time,ggf),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:w.rootBounds||IY,topWindowViewportExternalGeometry:w.rootBounds||h$(Y,!0),measurementRequests:T,elementGeometrySourceName:"nio",intersectionGeometry:w.intersectionRect,elementGeometry:w.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:w.isIntersecting,isV2Visible:w.isVisible}}}),FO(x),Js()).subscribe(c),T=new yw,K=T.subscribe(function(){m(W);
c.next({timestamp:Y.timeProvider.now(),value:x.value.value});J.ref!==void 0&&(S.unobserve(W,J.ref),S.observe(W,J.ref))}),G=f0h(P,J).subscribe(function(){T.next()}),v=!1,a=J.JSC$7212_released.subscribe(function(){return C()});
return C}})};
GH8=function(Y,S){var P=Y.getOnBackgrounded().pipe(Bz(function(){return"b"}));
return q41(S,P).pipe(ID(1),Hz(Y.queue))};
aY=function(Y){return function(S){var P;return S.pipe(As(function(u){return void(P=u.timestamp)}),Bz(function(u){return u.value}),Y,Bz(function(u){return{timestamp:P,
value:u}}))}};
Lx=function(Y,S,P){P=P===void 0?function(u,W){return u===W}:P;
return Y.timestamp.equals(S.timestamp)&&P(Y.value,S.value)};
px=function(Y,S){return S.pipe(Bz(function(P){return new wh(Y.timeProvider,{timestamp:Y.timeProvider.now(),value:P})}))};
hqE=function(Y){return function(S){return S.pipe(aih(Y),Bz(function(P){var u=_.n(P);P=u.next().value;u=u.next().value;var W=P.value;return{timestamp:P.timestamp,value:W>=1?!0:W<=0?!1:W>=u}}))}};
D18=function(){return tw(gQ(function(Y,S){return S>0}),vg9,i0(-1),aD())};
I0K=function(Y,S,P){return Y?C7([S,P]).pipe(gQ(function(u){var W=_.n(u);u=W.next().value;W=W.next().value;return u.timestamp.equals(W.timestamp)}),Bz(function(u){var W=_.n(u);
u=W.next().value;W=W.next().value;return u.value>W.value?u:W})):S};
wk8=function(Y){return function(S){var P=S.pipe(a09),u=S.pipe(L8Y);return Y instanceof Aw?Y.pipe(oD(function(W){return I0K(W,P,u)})):I0K(Y.value,P,u)}};
tZh=function(Y,S,P,u){var W=u.geometryIsOccluded,m=u.exposureThreshold,J=u.wasLargeAdAtRender,c=u.allowLargeAdThreshold,C=u.largeAdExposureThreshold,x=u.mayUseViewportShareExposure,b=u.hasMeasurementStarted;u=u.useIntersectionObserverV2;S=pkE(Y,P,S);P=F8K(Y,P);u=sYK(S,u);var T=d1Y(Y,W,x,S),K=T.pipe(Bz(function(zJ){return zJ.value}),aD(),Hz(Y),l0(function(zJ,O){return Math.max(zJ,O)},0)),G=T.pipe(Bz(function(zJ){return zJ.value}),D18(),Hz(Y)),v=S.pipe(l0E,Bz(function(zJ){return zJ.value}),ID(2),aD(),
Hz(Y));
J=XkJ(Y,S,J,c);var a=J.pipe(i0(!1),aD(),Bz(function(zJ){return zJ?C:m}));
c=T.pipe(hqE(a),aD(),Hz(Y));var w=C7([c,S]).pipe(gQ(function(zJ){var O=_.n(zJ);zJ=O.next().value;O=O.next().value;return zJ.timestamp.equals(O.timestamp)}),Bz(function(zJ){var O=_.n(zJ);
zJ=O.next().value;O=O.next().value;return{visible:zJ.value,geometry:O.value.elementGeometry}}),l0(function(zJ,O){return!O.visible&&zJ.visible?zJ:O},{visible:!1,
geometry:IY}),Bz(function(zJ){return zJ.geometry}),i0(IY),Hz(Y),aD(Oa));
x=x instanceof Aw?x.pipe(aD(),DD()):Bk;a=C7([x,a]).pipe(DD());var F=S.pipe(gQ(function(zJ){return zJ.value.viewportGeometrySourceName!=="ns"&&zJ.value.elementGeometrySourceName!=="ns"}),l0(function(zJ){return zJ+1},0),i0(0),Hz(Y)),U=P.pipe(DD(!0),i0(!1),Hz(Y));
U=C7([b,U]).pipe(Bz(function(zJ){var O=_.n(zJ);zJ=O.next().value;O=O.next().value;return zJ&&!O}),Hz(Y));
var V=S.pipe(ZxX,aD()),M=V.pipe(Bz(function(zJ){return zJ.value}),l0(function(zJ,O){return Math.max(zJ,O)},0),aD(),Hz(Y));
Y=V.pipe(Bz(function(zJ){return zJ.value}),D18(),Hz(Y));
return{shouldResetExposureSignals:x,shouldResetViewabilitySignals:a,geometrySignals:{readyGeometryWithDefault:S,measurementStrategy:S.pipe(ix1),creativePosition:w.pipe(aD(Oa)),visible:c.pipe(aD(Lx)),timestampedExposure:T.pipe(aD(Lx)),maximumExposure:K,minimumExposure:G,browserSize:S.pipe(ogY,aD(_.Wt)),timestampedScreenShare:V,maxScreenShare:M,minScreenShare:Y,geometricMeasurementErrors:P,measurementRequests:S.pipe(Bz(function(zJ){return zJ.value.measurementRequests})),
isLargeAd:J,geometryIsOccluded:W,hasMeasurementStarted:b,geometryMeasurable:U,validMeasurementCount:F,loadTimeExposure:v,v2VisibilityBitVector:u}}};
F8K=function(Y,S){return S.pipe(gQ(function(){return!1}),Bz(function(P){return P}),hs(function(P){return FM(new eY(P),Y)}))};
pkE=function(Y,S,P){return S.pipe(cwa(Bk),Hz(Y)).pipe(aD(function(u,W){return Lx(u,W,J$K)}),i0({timestamp:P.now(),
value:$g}),Hz(Y))};
d1Y=function(Y,S,P,u){P=u.pipe(wk8(P),aY(Bz(function(W){return Math.round(W*100)/100})),Hz(Y));
return S instanceof eY?P:C7([P,S]).pipe(Bz(function(W){var m=_.n(W);W=m.next().value;m=m.next().value;return{timestamp:m.timestamp.maximum(W.timestamp),value:m.value?0:W.value}}),aD(Lx),Hz(Y))};
XkJ=function(Y,S,P,u){S=[S.pipe(Bz(function(W){return W.value.elementGeometry.width*W.value.elementGeometry.height>=242500}))];
P instanceof Aw&&S.push(P.pipe(Bz(function(W){return!!W})));
P=C7(S);return u?P.pipe(Bz(function(W){return W.some(function(m){return m})}),i0(!1),aD(),Hz(Y)):FM(new eY(!1),Y)};
sYK=function(Y,S){Y=C7([Y,S]).pipe(Bz(function(W){var m=_.n(W);W=m.next().value;if(m.next().value&&W.value.isIntersecting)return W.value.isV2Visible}),aD());
var P=Y.pipe(Bz(function(W){return W===void 0?!0:W}),l0(function(W,m){return W||!m},!1)),u=Y.pipe(l0(function(W,m){return m===void 0?W:m?!1:W!=null?W:!0},void 0),Bz(function(W){return!!W}));
return C7([S,REu(Y,P,u)]).pipe(Bz(function(W){var m=_.n(W);W=m.next().value;var J=_.n(m.next().value);m=J.next().value;var c=J.next().value;J=J.next().value;var C=0;if(!W)return 0;if(m===void 0)return 16;m&&(C|=1);m||(C|=2);c&&(C|=4);J&&(C|=8);return C}))};
kH1=function(Y,S,P,u,W){var m=sy.timeThresholdMs;var J=J===void 0?new A$U(S,u):J;return(new Aw(function(c){var C=P.pipe(i0(void 0),oD(function(){return U1U(W)})).pipe(Bz(function(x){var b=x.value;
x=x.timestamp;var T=b.visible;b=b.consecutiveViewTime;var K=b>=m;K||!T?dh(J):(x=Math.max(0,$t(S.now(),x)),QYh(J,Math.max(0,m-b-x)));return K}),l0(function(x,b){return b||x},!1),aD()).subscribe(c);
return function(){J.dispose();C.unsubscribe()}})).pipe(ts(function(c){return!c},!0),Hz(Y))};
U1U=function(Y){return uMa([Y,Y.pipe(jYf())]).pipe(Bz(function(S){var P=_.n(S);S=P.next().value;P=P.next().value;return{timestamp:S.timestamp,value:{visible:S.value,consecutiveViewTime:P.value}}}),aD(function(S,P){return Lx(S,P,function(u,W){return u.consecutiveViewTime===W.consecutiveViewTime&&u.visible===W.visible})}))};
MZf=function(){return tw(m1K(),l0(function(Y,S){return Math.max(Y,S)},0),Bz(function(Y){return Math.round(Y)}))};
y$X=function(Y){return tw(hqE(zq(Y)),MZf())};
Nhf=function(Y,S){return S instanceof Aw?S.pipe(oD(function(P){return(P=P?15:null)?mc(new ck(P)):Y})):(S=S.value?15:null)?mc(new ck(S)):Y};
Hx1=function(Y){var S=new ck(13);if(Y.length<1)return{chain:Ea,capturedErrors:Ea};var P=new yw,u=Y[0];return{chain:Y.slice(1).reduce(function(W,m){return W.pipe(hs(function(J){P.next(J);return m}))},u).pipe(hs(function(W){P.next(W);
return mc(S)}),FO(new yw),Js()),
capturedErrors:P}};
VZu=function(Y,S){var P=Y.pipe(FO(new yw),Js());return oD(function(u){return P.pipe(S(u))})};
OxJ=function(Y,S){if(Y.inCrossDomainIframe)return mc(new ck(6));var P=new yw;return f7(zq({}),S,P).pipe(Bz(function(){return{timestamp:Y.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:eqf(Y),topWindowViewportExternalGeometry:h$(Y,!0),measurementRequests:P,viewportLocalAppOffset:{x:0,y:0}}}}),Ng(Y.queue))};
eqf=function(Y){var S=h$(Y,!1);if(!Y.inIframe||!l9(Y.global.parent)||Y.global.parent===Y.global)return S;var P=new XM(Y.global.parent,Y.debugChannel);P.beaconFactory=Y.beaconFactory;P=eqf(P);Y=Y.global.frameElement.getBoundingClientRect();return RA$(xga(RA$(P,Y),{x:S.left-Y.left,y:S.top-Y.top}),S)};
Y_1=function(Y){if(Y.prerendering)return 3;var S;return(S={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[Y.visibilityState||Y.webkitVisibilityState||Y.mozVisibilityState||""])!=null?S:0};
S_a=function(Y){return Y.document.JSC$7223_onVisibilityChange.pipe(Bz(function(S){return S==="visible"}),aD(),Hz(Y.queue))};
PV9=function(Y,S,P){var u;return S.pipe(aD(),oD(function(W){return P.pipe(Bz(function(){if(!u){u=!0;try{W.next()}finally{u=!1}}return!0}))}),i0(!1),Hz(Y.queue))};
uIE=function(Y){return tw(aY(Bz(function(S){return S>=1?!0:S<=0?!1:S>=Y})),zq9(),Bz(function(S){return Math.round(S)}))};
zJJ=function(Y,S,P,u,W){var m=WoE;if(m.length>1)for(var J=0;J<m.length-1;J++)if(m[J]<m[J+1])throw Error();J=W.pipe(i0(void 0),oD(function(){return P.pipe(jYf())}),aD(),Hz(Y));
W=W.pipe(i0(void 0),oD(function(){return P.pipe(MZf())}),aD(),Hz(Y));
return{totalMeasurementTime:u.pipe(i0(void 0),oD(function(){return S.pipe(Bz(function(c){return{timestamp:c.timestamp,value:!0}}),zq9())}),aD(),Hz(Y)),
totalUnviewedTime:u.pipe(i0(void 0),oD(function(){return S.pipe(Bz(function(c){return{timestamp:c.timestamp,value:c.value===0}}),zq9())}),aD(),Hz(Y)),
maxTimeOnScreen:u.pipe(i0(void 0),oD(function(){return S.pipe(ngE(y$X,m))}),aD(_.Wt),Hz(Y)),
timeOnScreen:u.pipe(i0(void 0),oD(function(){return S.pipe(ngE(uIE,m),Bz(function(c){return c.map(function(C,x){return x>0?C-c[x-1]:C})}))}),aD(_.Wt),Hz(Y)),
maxConsecutiveViewTime:W,consecutiveViewTime:J.pipe(aD(Lx),Hz(Y))}};
nS1=function(Y){var S=!0;S=S===void 0?!1:S;return tw(oD(function(P){return mZJ(Y.document,P,S)}),Hz(Y.queue))};
j6a=function(Y,S,P){var u=P.pipe(Bz(function(W){return{value:W,timestamp:Y.timeProvider.now()}}),aD(Lx));
return S instanceof Aw?S.pipe(aD(),oD(function(W){return W?FM(new eY({value:!1,timestamp:Y.timeProvider.now()}),Y.queue):u})):S.value===!1?u:new eY(!1)};
JFa=function(Y,S,P,u,W,m,J){var c=sy;S=S instanceof Aw?S.pipe(i0(!1),aD()):S;var C=!Y.isMobile();P=j6a(Y,P,u);Y=J.measurableCreative.pipe(P9K(Y.queue));return Object.assign({},c,{geometryIsOccluded:P,wasLargeAdAtRender:W,allowLargeAdThreshold:C,mayUseViewportShareExposure:S,hasMeasurementStarted:Y,useIntersectionObserverV2:m})};
cFa=function(Y,S,P,u,W,m){var J=1;m=m===void 0?!0:m;J=J===void 0?.01:J;var c=c===void 0?Y.timeProvider.intervalObservable(100).pipe(Hz(Y.queue)):c;return Y.performanceMonitor.timeExecution(916,function(){return B7J(Y,S.pipe(Ng(Y.queue)),P.pipe(Ng(Y.queue)),u,W,m,J,c)})()};
B7J=function(Y,S,P,u,W,m,J,c){var C=S_a(Y).pipe(Bz(function(b){return!b})),x=new CVa(Y,[new q_Y(Y,WoE),
new RJh(Y,c)]);c=kqh(xZX,bNK);return Z7K(Y,S,function(b,T){var K=FM(new eY(T.element),b.queue).pipe(nS1(b),Hz(b.queue)),G={loadedElement:K,shouldMeasure:K.pipe(DD(!0)),measurableCreative:K.pipe(Bz(function(zJ){var O=O===void 0?Symbol():O;return Object.freeze({symbol:O,element:FM(new eY(zJ),b.queue)})})),
creativeSearchResult:FM(new eY("mue"),b.queue)},v=new eY(!1),a=new eY(!1),w=new eY(17),F=new eY(!1),U=new eY(!1),V=FM(Z0,b.queue);v=x.buildGeometrySource(G,{inApp:v,useV2:!1,requestSource:FM(w,b.queue)}).geometrySource;G=JFa(b,F,a,C,U,V,G);a=tZh(b.queue,b.timeProvider,v,G);G=a.geometrySignals;F=a.shouldResetViewabilitySignals;a=zJJ(b.queue,G.timestampedExposure,G.visible,a.shouldResetExposureSignals,F);F=kH1(b.queue,b.timeProvider,F,G.measurementRequests,G.visible);U=P.pipe(gQ(function(zJ){return zJ===
T.element.ref}),Bz(function(){return"ur"}));
V=Kpu(b.timeProvider,W).pipe(DD("t"));U=GH8(b,f7(U,V));V=PV9(b,G.measurementRequests,U.pipe(gQ(function(zJ){return zJ!==null})));
v=U.pipe(gQ(function(zJ){return zJ!==null}),Bz(function(){return Y_1(b.global.document)===1}));
var M=T7J(b.document);return Object.assign({},{beaconFactory:new eY(b.beaconFactory),context:new eY(b),inferredPingId:new eY("lidar2"),timeOnScreenPingId:new eY("lidartos"),binaryContext:new eY(17),binaryVersion:new eY(u),requestSource:w,contextValidationErrors:new eY(b.validate()?null:new Cx),contextVisibilityKnown:new eY(M),payloadMapper:new eY(UgY),endOfSessionReason:U,timeOnScreenReason:U,requestMeasurementOnEndOfSession:V,hasImpressionFired:KoK,crossDomainIframeState:new eY(b.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Z0,inFetchLaterBeaconExperiment:Z0,isTurtlex:Z0,turtlexReportEventData:new eY(""),reportFencedFrameEvent:Bk,isViewableAttributionEnabled:Z0,inViewableAttributionExperiment:new eY(0),fetchBeaconFactory:Bk,supportsPendingBeacon:Z0,supportsFetchLater:Z0,emit:new eY(NQu),beginToRenderEvent:new eY(Symbol()),activeViewUnmeasurableEvent:new eY(Symbol()),activeViewViewableEvent:new eY(Symbol()),creativeFound:KoK,immediateUrlPrefixes:new eY(T.immediateUrls),timeOnScreenUrlPrefixes:new eY(T.timeOnScreenUrls),
cpmavUrls:Bk,viewableRelayUrls:Bk,measurementDeferralState:new eY(2),urlSerializer:new eY(YyU),viewUrlSerializer:new eY(ESX),isCreativeLoaded:K.pipe(P9K(b.queue)),pageVisible:C.pipe(Bz(function(zJ){return!zJ})),
eosPageVisible:v,timestampedExposureHistory:G.timestampedExposure.pipe(l0(function(zJ,O){zJ.push(O);return zJ},[]))},G,{viewable:px(b,F),
maxTimeOnScreen:px(b,a.maxTimeOnScreen),timeOnScreen:px(b,a.timeOnScreen),maxConsecutiveViewTime:px(b,a.maxConsecutiveViewTime),consecutiveViewTime:a.consecutiveViewTime.pipe(Bz(function(zJ){return new wh(b.timeProvider,zJ)})),
totalMeasurementTime:px(b,a.totalMeasurementTime),totalUnviewedTime:px(b,a.totalUnviewedTime),userAgentClientHints:M2$(b),clientOrderPingCounter:new eY(new ot8)})},QD$(Y,J),MYh(m?ysa(c,fb9):ysa(c,gS9),$Zh))};
rF8=function(Y,S){return(Y=(new RegExp("[^#]*[?&]"+S+"=([^&#]*)")).exec(Y))?Y[1]:null};
Gl8=function(Y){var S=_.Ch.apply(1,arguments).filter(Boolean).join("&");if(!S)return Y;var P=Y.match(/[?&]adurl=/);return P?Y.slice(0,P.index+1)+S+"&"+Y.slice(P.index+1):Y+(Y.indexOf("?")<0?"?":"&")+S};
i9=function(Y,S){return S?"&"+Y+"="+encodeURIComponent(S):""};
hJ8=function(){try{var Y,S;return!!((Y=window)==null?0:(S=Y.top)==null?0:S.location.href)&&!1}catch(P){return!0}};
_.oY=function(Y){Y&&typeof Y.dispose=="function"&&Y.dispose()};
_.t$=function(Y){for(var S=0,P=arguments.length;S<P;++S){var u=arguments[S];_.eK(u)?_.t$.apply(null,u):_.oY(u)}};
DZh=function(){var Y=vS8();Y=Y===void 0?"bevasrsg":Y;return new Promise(function(S){var P=window===window.top?window:hJ8()?window:window.top,u=P[Y],W;((W=u)==null?0:W.bevasrs)?S(new A$(u.bevasrs)):(u||(u={},u=(u.nqfbel=[],u),P[Y]=u),u.nqfbel.push(function(m){S(new A$(m))}))})};
Ib8=function(Y){var S={c:Y.qf,e:Y.lFf,mc:Y.arr,me:Y.d8O};Y.kM&&(S.co={c:Y.kM.uxO,a:Y.kM.sxb,s:Y.kM.nJ2});return S};
ab$=function(Y){var S,P,u={qf:Y.c,lFf:Y.e,arr:(S=Y.mc)!=null?S:!1,d8O:(P=Y.me)!=null?P:!1};Y.co&&(u.kM={uxO:Y.co.c,sxb:Y.co.a,nJ2:Y.co.s});return u};
Lo$=function(Y){return function(){var S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,Y(),2);S=P.yieldResult;return P.return({f:function(){return S.mDE()},
c:function(u){return S.til(u)},
m:function(u){return S.z8(ab$(u))},
mws:function(u){return S.m3(ab$(u))}})})}};
whK=function(Y,S){var P=vS8();P=P===void 0?"bevasrsg":P;S={s:function(m){var J;return Y.snapshot(Object.assign({},m.c&&{qf:m.c},m.s&&{nIf:m.s},{enR:(J=m.p)!=null?J:!0}))},
e:function(m){var J;return void((J=Y.x1f)==null?void 0:J.call(Y,m))},
c:function(m,J){return Y.jCE(m,J)},
p:Y.qwe,l:function(){return Y.g4f()},
wpc:S?Lo$(S):void 0};var u=window===window.top?window:hJ8()?window:window.top,W=u[P];if(W){W.bevasrs=S;if(W.nqfbel!==void 0)for(P=_.n(W.nqfbel),u=P.next();!u.done;u=P.next())u=u.value,u(S);W.nqfbel=void 0}else W={},W=(W.bevasrs=S,W.nqfbel=void 0,W),u[P]=W};
Foa=function(Y){var S=S===void 0?49:S;var P=[];_.Uy(Y,ph8,6,_.QI()).forEach(function(u){_.kg(u,2)<=S&&P.push(_.kg(u,1))});
return P};
s6Y=function(Y){var S=S===void 0?49:S;var P=[];_.Uy(Y,ph8,6,_.QI()).forEach(function(u){_.kg(u,2)>S&&P.push(_.kg(u,1))});
return P};
dZf=function(Y){Y.then(function(){},function(){})};
_.M1=function(Y){return{fieldType:1,fieldName:Y}};
yI=function(Y){return{fieldType:2,fieldName:Y}};
_.N1=function(Y){return{fieldType:3,fieldName:Y}};
lb$=function(){function Y(){W[0]=1732584193;W[1]=4023233417;W[2]=2562383102;W[3]=271733878;W[4]=3285377520;b=x=0}
function S(T){for(var K=J,G=0;G<64;G+=4)K[G/4]=T[G]<<24|T[G+1]<<16|T[G+2]<<8|T[G+3];for(G=16;G<80;G++)T=K[G-3]^K[G-8]^K[G-14]^K[G-16],K[G]=(T<<1|T>>>31)&4294967295;T=W[0];var v=W[1],a=W[2],w=W[3],F=W[4];for(G=0;G<80;G++){if(G<40)if(G<20){var U=w^v&(a^w);var V=1518500249}else U=v^a^w,V=1859775393;else G<60?(U=v&a|w&(v|a),V=2400959708):(U=v^a^w,V=3395469782);U=((T<<5|T>>>27)&4294967295)+U+F+V+K[G]&4294967295;F=w;w=a;a=(v<<30|v>>>2)&4294967295;v=T;T=U}W[0]=W[0]+T&4294967295;W[1]=W[1]+v&4294967295;W[2]=
W[2]+a&4294967295;W[3]=W[3]+w&4294967295;W[4]=W[4]+F&4294967295}
function P(T,K){if(typeof T==="string"){T=unescape(encodeURIComponent(T));for(var G=[],v=0,a=T.length;v<a;++v)G.push(T.charCodeAt(v));T=G}K||(K=T.length);G=0;if(x==0)for(;G+64<K;)S(T.slice(G,G+64)),G+=64,b+=64;for(;G<K;)if(m[x++]=T[G++],b++,x==64)for(x=0,S(m);G+64<K;)S(T.slice(G,G+64)),G+=64,b+=64}
function u(){var T=[],K=b*8;x<56?P(c,56-x):P(c,64-(x-56));for(var G=63;G>=56;G--)m[G]=K&255,K>>>=8;S(m);for(G=K=0;G<5;G++)for(var v=24;v>=0;v-=8)T[K++]=W[G]>>v&255;return T}
for(var W=[],m=[],J=[],c=[128],C=1;C<64;++C)c[C]=0;var x,b;Y();return{reset:Y,update:P,digest:u,digestString:function(){for(var T=u(),K="",G=0;G<T.length;G++)K+="0123456789ABCDEF".charAt(Math.floor(T[G]/16))+"0123456789ABCDEF".charAt(T[G]%16);return K}}};
tLa=function(Y,S){S=S===void 0?Xh$:S;if(!ZNK){var P;Y=(P=Y.navigator)==null?void 0:P.userAgentData;if(!Y||typeof Y.getHighEntropyValues!=="function"||Y.brands&&typeof Y.brands.map!=="function")return Promise.reject(Error("ya"));iNa((Y.brands||[]).map(function(W){var m=new oSE;m=_.zH(m,1,W.brand);return _.zH(m,2,W.version)}));
typeof Y.mobile==="boolean"&&_.Hk(VI,2,Y.mobile);ZNK=Y.getHighEntropyValues(S)}var u=new Set(S);return ZNK.then(function(W){var m=VI.clone();u.has("platform")&&_.zH(m,3,W.platform);u.has("platformVersion")&&_.zH(m,4,W.platformVersion);u.has("architecture")&&_.zH(m,5,W.architecture);u.has("model")&&_.zH(m,6,W.model);u.has("uaFullVersion")&&_.zH(m,7,W.uaFullVersion);return m.serialize()}).catch(function(){return VI.serialize()})};
eZ=function(Y,S,P,u){this.initialValue_=Y;this.maxValue_=S;this.currBaseValue_=this.currValue_=Y;this.randomFactor_=P||0;this.backoffFactor_=u||2};
Oy=function(Y){this.src=Y;this.listeners={};this.typeCount_=0};
klJ=function(){for(var Y;Y=AFa.remove();){try{Y.fn.call(Y.scope)}catch(S){ua(S)}UZh.put(Y)}Q6$=!1};
_.YS=function(Y){switch(Y){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
MLJ=function(Y){switch(Y){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.yFa=function(){};
unK=function(Y){return{sen:new N7$(Y),errorCount:new HNa(Y),eventCount:new VLh(Y),inV:new eJE(Y),aBB:new ONK(Y),kbb:new YuE(Y),kvp:new Sua(Y),gmJ:new Pyh(Y)}};
a69=function(Y,S,P,u){Y=W29(zfu(mbh(new _.SL(1828,"0"),Y),new ndh));S.length&&hfh(Y,vdJ(new DbX,S));u!==void 0&&(Y.destinationUrl=u);var W=new I6a(1828,"","",!1,"",Y.build());_.Ph(W,Y);var m=new uV({flush:function(J){try{W.flush(J)}catch(c){P(c)}}});
m.addOnDisposeCallback(function(){setTimeout(function(){try{m.snapshotAndFlush()}finally{W.dispose()}})});
m.invocationLimit=1E5;m.flushInterval=3E4;m.JSC$7659_flushTimer.setInterval(3E4);return m};
Wh=function(){var Y,S,P;return(P=(Y=globalThis.performance)==null?void 0:(S=Y.now)==null?void 0:S.call(Y))!=null?P:Date.now()};
wJa=function(Y,S,P){if(Y.disable)return new L2h;S=S?Foa(S):[];if(P)return P.vuI(S),P.share();Y={rD:Y.rD,ywH:Y.w76,etX:Y.v72,destinationUrl:Y.destinationUrl,iFf:Y.iFf,mkE:Y.mkE};P=S;P=P===void 0?[]:P;return new zl(Y,P)};
_.pJJ=function(Y){if(!Y)return null;Y=_.mo(Y,4);return Y===null||Y===void 0?null:_.YU(Y)};
db$=function(Y,S){return S?F2a(S):Y?sIh(Y):Promise.resolve()};
F2a=function(Y){return new Promise(function(S,P){var u=_.nN("SCRIPT"),W=_.pJJ(Y);_.I9(u,W);u.onload=function(){_.jL(u);S()};
u.onerror=function(){_.jL(u);P(Error("Ja"))};
(JF("HEAD")[0]||document.documentElement).appendChild(u)})};
sIh=function(Y){return new Promise(function(S){var P=_.nN("SCRIPT");if(Y){var u=_.mo(Y,6);u=u===null||u===void 0?null:_.hw(u)}else u=null;_.Di(P,u);(JF("HEAD")[0]||document.documentElement).appendChild(P);_.jL(P);S()})};
Bh=function(Y,S,P){var u,W=new Promise(function(m){u=setTimeout(m,S)});
return Promise.race([Y.finally(function(){return void clearTimeout(u)}),
W.then(P)])};
l6h=function(Y,S){try{return globalThis.sessionStorage.setItem(Y,S),!0}catch(P){return!1}};
XJu=function(Y,S,P,u){S=S===void 0?0:S;P=P===void 0?Y.length:P;var W=0;for(u&&(W=XJu(u));S<P;S++)u=typeof Y==="string"?Y.charCodeAt(S):Y[S],W=ZJU(31,W)+u|0;return W};
iJh=function(Y,S){return[XJu(Y,0,Y.length>>1,S),XJu(Y,Y.length>>1)]};
oda=function(Y){var S=_.n(iJh(Y,ch));Y=S.next().value;S=S.next().value;return Y.toString(16)+S.toString(16)};
thh=function(Y,S){var P=iJh(S);Y=new Uint32Array(Y.buffer);S=Y[0];var u=_.n(P);P=u.next().value;u=u.next().value;for(var W=1;W<Y.length;W+=2){for(var m=S,J=W,c=P,C=u,x=0;x<22;x++)J=J>>>8|J<<24,J+=m|0,J^=c+38293,m=m<<3|m>>>29,m^=J,C=C>>>8|C<<24,C+=c|0,C^=x+38293,c=c<<3|c>>>29,c^=C;m=[m,J];Y[W]^=m[0];W+1<Y.length&&(Y[W+1]^=m[1])}};
AxK=function(Y,S,P,u,W){var m=(4-(ch.length+P.length)%4)%4,J=new Uint8Array(4+m+ch.length+4+P.length),c=new DataView(J.buffer),C=0;c.setUint32(C,Math.random()*4294967295);C=C+4+m;J.set(ch,C);C+=ch.length;c.setUint32(C,W);J.set(P,C+4);thh(J,u);return Y.insert(S,function(x){return void globalThis.sessionStorage.removeItem(x)})?l6h(S,_.QB(J))?"s":"t":"i"};
Ub$=function(Y,S){var P=globalThis.sessionStorage.getItem(Y);if(!P)return["m"];try{var u=_.z3(P);thh(u,S)}catch(W){return globalThis.sessionStorage.removeItem(Y),["c"]}for(S=4;S<7&&u[S]===0;)S++;for(P=0;P<ch.length;P++)if(u[S++]!==ch[P])return globalThis.sessionStorage.removeItem(Y),["d"];P=(new DataView(u.buffer)).getUint32(S);return Math.floor(Date.now()/1E3)>=P?(globalThis.sessionStorage.removeItem(Y),["e"]):["a",new Uint8Array(u.buffer,S+4)]};
QI$=function(Y){return globalThis.TextEncoder?(new TextEncoder).encode(Y):_.CN(Y)};
k69=function(Y){var S=Y,P;return function(){if(S){var u=S;S=void 0;P=u.apply(this,arguments)}return P}};
qZ=function(Y){return Zs(function(S){if(S instanceof Y)return!0;var P,u,W=S==null?void 0:(P=S.ownerDocument)==null?void 0:(u=P.defaultView)==null?void 0:u[Y.name];return Mhh(W)&&S instanceof W})};
_.bV=function(Y,S,P){_.R6.call(this);this.JSC$7874_listener_=Y;this.JSC$7874_interval_=S||0;this.handler_=P;this.callback_=(0,_.xS)(this.JSC$7876_doAction_,this)};
_.Tl=function(Y){Y=yxE(Y);return _.YU(Y)};
yxE=function(Y){return Y===null?"null":Y===void 0?"undefined":Y};
HJa=function(Y){if(Y&&Y.focus)if(Y!==document.activeElement)Y.focus();else return NKa(function(){return _.B(function(S){document.activeElement&&document.activeElement.blur();return S.return(NKa(function(){Y.focus()}))})})};
_.VhK=function(Y){var S=S===void 0?5:S;setTimeout(function(){var P;return _.B(function(u){u.nextAddress==1&&(P=document.activeElement);if(u.nextAddress!=5)return(document.activeElement===P||document.activeElement===document.body)&&S>=0&&Y?_.q(u,HJa(Y),5):u.jumpTo(0);if(document.activeElement===Y)return u.return();Y=Y.parentElement;--S;return u.jumpTo(2)})},15)};
NKa=function(Y){return new Promise(function(S){requestAnimationFrame(function(){S(Y())})})};
efu=function(Y){if(_.KN)Y(_.KN);else{var S;((S=E_)!=null?S:E_=[]).push(Y)}};
$S=function(){!_.KN&&_.fN&&_.OJY(_.fN());return _.KN};
_.OJY=function(Y){_.KN=Y;var S;(S=E_)==null||S.forEach(efu);E_=void 0};
_.r7=function(Y){_.KN&&_.KN.beforeLoadModuleCode(Y)};
_.Gl=function(){_.KN&&_.KN.JSC$8818_setLoaded()};
hF=function(Y){return(0,_.Ud)(Y)?Number(Y):String(Y)};
vh=function(Y){this.action=Y;this.wfv=!1};
YWh=function(Y,S){vh.call(this,"set-drive-options");this.appId=Y;this.appOrigin=S};
SWE=function(Y){vh.call(this,"visibility");this.visible=Y};
Pkh=function(Y,S,P){Db.call(this,Y,S,P)};
u3a=function(Y){I6.call(this,Y)};
WNK=function(Y){Y=Y&&Y.getWindow()||window;return Y.gadgets&&Y.gadgets.rpc};
zyf=function(Y,S){var P=S&&S.getWindow()||window;if(WNK(S))Y();else if(a6)a6.push(Y);else var u=a6=[Y],W=P.setInterval(function(){if(WNK(S)){P.clearInterval(W);for(var m=0;m<u.length;m++)u[m]();a6=null}},100)};
nZE=function(Y,S){var P=new LN(Y);_.Ph(S,P);var u={passive:!1};S.listen(P,"mousewheel",function(W){return void mPY(Y,W)},u).listen(Y,"scroll",function(W){return void mPY(Y,W)},u)};
mPY=function(Y,S){var P;a:{for(P=S.target;P;){if(P.nodeType==1){var u=_.w7(P,"overflowY");if(u=="auto"||u=="scroll")break a}P=P.parentNode}P=null}if(!P||!_.pN(Y,P)||P.scrollHeight==P.clientHeight||S.deltaY>0&&Math.abs(P.scrollTop-(P.scrollHeight-P.clientHeight))<=1||S.deltaY<0&&P.scrollTop==0)S.preventDefault(),S.stopPropagation()};
iV=function(Y,S,P,u,W,m,J,c,C){c=c===void 0?!1:c;C=C===void 0?!1:C;Db.call(this,void 0,void 0,void 0);Db.call(this,m?m+" picker modal-dialog":"picker modal-dialog",!0,P);_.FI(Y,"protocol");this.iframeManager_=new jja;this.targetId_=s_();this.rpcToken_=s_();Y=_.d7(Y);_.lV(Y,"hostId");P=_.lV(Y,"parent");this.useGapi_=!C&&!0||(P==null?void 0:P.includes("onepick.corp.google.com"));c&&_.XI(Y,"fv2","true");this.setUrl(Y.toString());this.preferredDialogWidth_=u;this.preferredDialogHeight_=W;u!==void 0||
W!==void 0?u=!0:(u=_.lV(_.d7(Y.toString()),"hostId"),JA9||(JA9=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),u=!JA9.has(u));this.autoSizeDialog_=u;this.JSC$8064_gadgetsDomHelper_=J||this.JSC$8015_dom_;S&&(J=this.JSC$8064_gadgetsDomHelper_,S=_.lV(_.d7(this.JSC$8066_url_),"grugl")=="true"?Bwh:cAK,WNK(J)||(J=J||Wk(document),u=J.createElement("SCRIPT"),_.I9(u,S),u.type="text/javascript",J.JSC$7241_document_.body.appendChild(u)));
Y=Y.toString();S=null;J=Y.indexOf("/picker?");J>-1?S=Y.substring(0,J+8-1):jK(Y,"/picker")&&(S=Y);S&&this.setRelayUrl(S+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(Y=this.buttons_,Y.JSC$8049_element_=this.buttonEl_,Y.render()):_.a9(this.buttonEl_,Cka),_.Zb(this.buttonEl_,!!this.buttons_))};
_.bEf=function(Y){var S=S===void 0?qWK:S;var P=_.Pt(Y),u=function(m){m=_.n(m);m.next();m=o6(m);return S(P,m)},W=function(m){var J=_.n(m);
m=J.next().value;J=o6(J);return Y.apply(m,J)};
return function(){var m=_.Ch.apply(0,arguments),J=this||_.Pa,c=Ryu.get(J);c||(c={},Ryu.set(J,c));return _.xPY(c,[this].concat(_.cz(m)),W,u)}};
AF=function(Y){var S={};Y=Y.replace(/\r/g,"").split("\n");for(var P=0;P<Y.length;P++){var u=Y[P],W=u.indexOf(":");W<0||(S[u.substring(0,W)]=u.substring(W+2,u.length))}return S};
TwU=function(Y,S,P){P=P===void 0?function(){}:P;
S=_.n(S);for(var u=S.next();!u.done;u=S.next()){var W=_.n(u.value);u=W.next().value;W=W.next().value;if(u instanceof Array&&u.includes(Y)||u===Y)return W()}return P()};
_.kS=function(Y,S,P){P=P===void 0?function(){}:P;
return Y?S():P()};
_.EZX=function(Y){var S;return((S=KN8.documentOverride)!=null?S:Y).__wizdispatcher};
y2=function(Y){var S=MZ;MZ=Y;return S};
f4Y=function(Y,S){var P;if((P=Y)==null?0:P.isDisposed)throw Error("nb`"+String(Y.debugName));for(;Y!==void 0;){P=Y;if(P.retrieve)return P.retrieve(S,{optional:!0});Y=Y.parent}return NZ};
Hh=function(Y){return{"\u0275prov":{providedIn:"root",token:Symbol(Y),factory:void 0,value:void 0}}};
gZ1=function(Y){var S=y2(Y);Y={};return Y[Symbol.dispose]=function(){y2(S)},Y};
$P1=function(Y,S){Y.disposables||(Y.disposables=[]);Y.disposables.push(S)};
eL=function(Y){var S=MZ;S&&!S.isDisposed&&($P1(S,function(){return void V2(Y)}),Y.parent=S)};
rAJ=function(Y){if(Y.disposables){for(var S=_.n(Y.disposables),P=S.next();!P.done;P=S.next())P=P.value,P();Y.disposables.length=0}};
V2=function(Y){if(!Y.isDisposed){Y.isDisposed=!0;var S;(S=Y[Symbol.dispose])==null||S.call(Y);delete Y.parent;rAJ(Y)}};
pR8=function(Y){var S={retrieve:function(P){switch(P.\u0275prov.token){case GBJ.\u0275prov.token:var u=Y.asyncDeps;break;case hyu.\u0275prov.token:u=Y.rootElement;break;case vZh.\u0275prov.token:u=Y.modelRootElement;break;case DPf.\u0275prov.token:u=Y.appContext;break;case I4$.\u0275prov.token:u=Y.rendererData;break;case a4X.\u0275prov.token:u=Y.injectingConstructor;break;case LNh.\u0275prov.token:u=Y.dispatcher}if(u)P=u;else a:{for(u=S.parent;u;){var W=u;if(W.retrieve){P=W.retrieve(P);break a}u=
u.parent}u=P.\u0275prov.token;W=wRh[u];W!==void 0?P=W:(W=P.\u0275prov.providedIn,P.\u0275prov.factory?(P=P.\u0275prov.factory(),u&&W==="root"&&(wRh[u]=P)):P=NZ)}return P}};
eL(S);return S};
sj$=function(Y){var S="";var P=_.Pa._F_jsUrl;if(typeof document!=="undefined"&&document&&document.getElementById&&(Y=document.getElementById(Y))){var u=Y.tagName.toUpperCase();if(u=="SCRIPT"||u=="LINK")S=Y.src?Y.src:Y.getAttribute("href")}if(P&&S){if(P!=S)throw Error("ub`"+P+"`"+S);S=P}else S=P||S;if(!FNa(S))throw Error("vb");return S};
XR$=function(){if(!dPa){dPa=!0;try{var Y=sj$(_.Pa._F_jsUrl?"":"base-js")}catch(u){return}var S=l4X(O_(Y)),P=Object.keys(S);P.length!==0&&efu(function(u){for(var W=_.n(P),m=W.next();!m.done;m=W.next()){m=m.value;for(var J=_.n(Object.keys(S[m])),c=J.next();!c.done;c=J.next())u.addExtraEdge(m,c.value)}})}};
ZEf=function(Y,S,P){var u;return Y&&S?Y+"__"+S:(u=Y!=null?Y:S)!=null?u:P};
oZE=function(){var Y=Object.assign({},iEh);Object.getOwnPropertyNames(iEh).forEach(function(S){Yd[S]!==void 0&&(Y[S]=Yd[S])});
return Y};
Sh=function(Y,S){if(Yd.enablePerformanceTiming){var P,u;(u=(P=performance).mark)==null||u.call(P,Y+"Start__"+S)}};
PJ=function(Y,S){if(Yd.enablePerformanceTiming){var P,u;(u=(P=performance).measure)==null||u.call(P,Y+"__"+S,Y+"Start__"+S)}};
AA$=function(Y,S){var P=Object.create(tXK);P.debugName=S;!MZ||eL(P);S=y2(P);try{Y(P)}finally{y2(S)}return function(){return void V2(P)}};
Qja=function(Y){return uy(Y)&&UPa in Y};
kBE=function(Y,S){return Object.is(Y,S)};
z6=function(Y){var S=WJ;WJ=Y;return S};
yAf=function(Y){if(m2)throw Error("da");if(WJ!==null){var S=WJ.nextProducerIndex++;nJ(WJ);S<WJ.producerNode.length&&WJ.producerNode[S]!==Y&&jh(WJ)&&Jx(WJ.producerNode[S],WJ.producerIndexOfThis[S]);WJ.producerNode[S]!==Y&&(WJ.producerNode[S]=Y,WJ.producerIndexOfThis[S]=jh(WJ)?MX$(Y,WJ,S):0);WJ.producerLastReadVersion[S]=Y.version}};
VXY=function(Y){if(!jh(Y)||Y.dirty)if(Y.dirty||Y.lastCleanEpoch!==NwX)(Y.producerMustRecompute(Y)||HEX(Y))&&Y.producerRecomputeValue(Y),Y.dirty=!1,Y.lastCleanEpoch=NwX};
eyX=function(Y){if(Y.liveConsumerNode!==void 0){var S=m2;m2=!0;try{for(var P=_.n(Y.liveConsumerNode),u=P.next();!u.done;u=P.next()){var W=u.value;W.dirty||(Y=void 0,W.dirty=!0,eyX(W),(Y=W.consumerMarkedDirty)==null||Y.call(W,W))}}finally{m2=S}}};
OE1=function(){var Y;return((Y=WJ)==null?void 0:Y.consumerAllowSignalWrites)!==!1};
YhU=function(Y){Y&&(Y.nextProducerIndex=0);return z6(Y)};
ShK=function(Y,S){z6(S);if(Y&&Y.producerNode!==void 0&&Y.producerIndexOfThis!==void 0&&Y.producerLastReadVersion!==void 0){if(jh(Y))for(S=Y.nextProducerIndex;S<Y.producerNode.length;S++)Jx(Y.producerNode[S],Y.producerIndexOfThis[S]);for(;Y.producerNode.length>Y.nextProducerIndex;)Y.producerNode.pop(),Y.producerLastReadVersion.pop(),Y.producerIndexOfThis.pop()}};
HEX=function(Y){nJ(Y);for(var S=0;S<Y.producerNode.length;S++){var P=Y.producerNode[S],u=Y.producerLastReadVersion[S];if(u!==P.version)return!0;VXY(P);if(u!==P.version)return!0}return!1};
MX$=function(Y,S,P){PYK(Y);if(Y.liveConsumerNode.length===0&&Y.producerNode!==void 0)for(var u=0;u<Y.producerNode.length;u++)Y.producerIndexOfThis[u]=MX$(Y.producerNode[u],Y,u);Y.liveConsumerIndexOfThis.push(P);return Y.liveConsumerNode.push(S)-1};
Jx=function(Y,S){PYK(Y);if(Y.liveConsumerNode.length===1&&Y.producerNode!==void 0)for(var P=0;P<Y.producerNode.length;P++)Jx(Y.producerNode[P],Y.producerIndexOfThis[P]);P=Y.liveConsumerNode.length-1;Y.liveConsumerNode[S]=Y.liveConsumerNode[P];Y.liveConsumerIndexOfThis[S]=Y.liveConsumerIndexOfThis[P];Y.liveConsumerNode.length--;Y.liveConsumerIndexOfThis.length--;S<Y.liveConsumerNode.length&&(P=Y.liveConsumerIndexOfThis[S],Y=Y.liveConsumerNode[S],nJ(Y),Y.producerIndexOfThis[P]=S)};
jh=function(Y){var S,P;return Y.consumerIsAlwaysLive||((P=Y==null?void 0:(S=Y.liveConsumerNode)==null?void 0:S.length)!=null?P:0)>0};
nJ=function(Y){Y.producerNode!=null||(Y.producerNode=[]);Y.producerIndexOfThis!=null||(Y.producerIndexOfThis=[]);Y.producerLastReadVersion!=null||(Y.producerLastReadVersion=[])};
PYK=function(Y){Y.liveConsumerNode!=null||(Y.liveConsumerNode=[]);Y.liveConsumerIndexOfThis!=null||(Y.liveConsumerIndexOfThis=[])};
WGu=function(Y){var S=Object.create(uV1);S.computation=Y;Y=function(){VXY(S);yAf(S);if(S.value===BJ)throw S.error;return S.value};
Y[cJ]=S;return Y};
mY9=function(Y,S){var P=Object.create(zau);P.value=Y;S!==void 0&&(P.equal=S);Y=function(){yAf(P);return P.value};
Y[cJ]=P;return Y};
JcJ=function(Y,S){Y=mY9(Y,S);var P=Y[cJ];return[Y,function(u){return n29(P,u)},
function(u){OE1()||j4a(P);n29(P,u(P.value))}]};
n29=function(Y,S){OE1()||j4a(Y);if(!Y.equal(Y.value,S)){Y.value=S;Y.version++;NwX++;eyX(Y);var P;(P=Bk9)==null||P(Y)}};
CJ=function(Y){var S=z6(null);try{return Y()}finally{z6(S)}};
_.qb=function(Y,S,P){P=P===void 0?"":P;Y=JcJ(Y,S==null?void 0:S.equals);var u=Y[0],W=u[cJ];W.debugName=ZEf(S==null?void 0:S.debugName,P,"[signal]");if(!Yd.enablePerformanceTiming)return Y;var m=Y[1],J=Y[2];return[u,function(c){cca(function(){return void m(c)},W)},
function(c){cca(function(){return void J(c)},W)}]};
cca=function(Y,S){Sh("signalSet",S.debugName);try{Y()}finally{PJ("signalSet",S.debugName)}};
CYu=function(Y,S){var P=_.n(_.qb(Y,void 0,"cPpJzc"));Y=P.next().value;P=P.next().value;Y[RI]=P;Y[by]=S;return Y};
qh$=function(Y){return!!Y&&typeof Y==="object"&&Object.getPrototypeOf(Y)===Object.prototype};
Ra$=function(Y){return typeof Y==="function"&&RI in Y&&typeof Y[RI]==="function"};
xYJ=function(Y,S){Object.defineProperty(Y,by,{get:function(){return S}})};
KJ=function(Y,S){if(T6(Y)){var P=Y.map(function(m){return KJ(m,S)});
xYJ(P,S);return P}if(qh$(Y)){P={};Y=_.n(Object.entries(Y));for(var u=Y.next();!u.done;u=Y.next()){var W=_.n(u.value);u=W.next().value;W=W.next().value;P[u]=KJ(W,S)}xYJ(P,S);return P}return CYu(Y,S)};
bz8=function(Y){if(T6(Y))return Y.map(function(W){return bz8(W)});
if(qh$(Y)){var S={};Y=_.n(Object.entries(Y));for(var P=Y.next();!P.done;P=Y.next()){var u=_.n(P.value);P=u.next().value;u=u.next().value;S[P]=bz8(u)}return S}return Ra$(Y)?Y():Y};
KG8=function(){var Y={height:0,width:0};if(!qh$(Y))throw Error("Hb");var S=Symbol("Ib");return[KJ(Y,S),function(P,u){if(P[by]===S)if(typeof u==="function"){var W=[].concat(_.cz(bz8(P)));u=u(W)||W;Tk9(P,[].concat(_.cz(u)))}else Tk9(P,u);else throw Error("Jb");}]};
Tk9=function(Y,S){if(Ra$(Y))Y[RI](S);else if(T6(Y)&&T6(S))S=KJ(S,Y[by]),Y.length=0,Y.push.apply(Y,_.cz(S));else if((qh$(Y)||T6(Y))&&(T6(S)||typeof S==="object"&&S!==null)){S=_.n(Object.entries(S));for(var P=S.next();!P.done;P=S.next()){var u=_.n(P.value);P=u.next().value;u=u.next().value;var W=Y,m=W[P];Object.hasOwn(Y,P)?Tk9(m,u):W[P]=KJ(u,Y[by])}}else throw Error("Kb");};
E2K=function(Y){return Object.create(Object.assign({},Eu,Y))};
g2X=function(){var Y;return(Y=fA8)!=null?Y:fA8=E2K({consumerAllowSignalWrites:!0})};
_.fJ=function(Y,S,P){P=P===void 0?"":P;Y=WGu(Y);var u=Y[cJ];u.debugName=ZEf(S==null?void 0:S.debugName,P,"[computed]");(S==null?void 0:S.equals)!=null&&(u.equal=S.equals);return Y};
gK=function(Y){var S=z6($YX);try{Y()}finally{z6(S)}};
aA9=function(Y){if(!Y.isDisposed)switch(Y.effectType){case rcY:G_1.schedule(Y);break;case ha9:v2h.schedule(Y);break;case DY1:IAE.schedule(Y);break;default:_.O6(Y.effectType)}};
wQ1=function(Y){LGf.push(Y);return function(){var S=LGf.indexOf(Y);S!==-1&&LGf.splice(S,1)}};
FGa=function(){if($d>0)G_1.flush();else for(var Y=_.n(pQX),S=Y.next();!S.done;S=Y.next())S.value.flush()};
dYh=function(Y){for(var S=_.n(Y),P=S.next();!P.done;P=S.next()){var u=P.value;for(P=[u];u.parent!==void 0;)u=u.parent,s48(u)&&Y.has(u)&&P.push(u);for(;P.length>0;){u=P.pop();try{u.run()}finally{Y.delete(u)}}}};
XQa=function(Y){$d--;if(Y){lA8.length=0;Y=_.n(pQX);for(var S=Y.next();!S.done;S=Y.next())S.value.clear()}else if(!($d>0)){for(;lA8.length>0;){Y=lA8.shift();if(!Y)throw Error("Lb");try{Y()}catch(P){ua(P)}}FGa()}};
ZzU=function(Y){var S=Y.component;var P=Y.debugInstance;Y=Y.fn;var u,W=(u=S.debugName)!=null?u:S.name;rK={name:P?W+" ("+P+")":W,isReactive:S.componentType!==G6,parent:rK};S=Y();rK=rK.parent;return S};
hx=function(){var Y=rK;return Y?Y.isReactive:!1};
vJ=function(Y,S){S=S===void 0?{}:S;var P=rK;S.stack&&(rK=S.stack);try{return Y()}catch(c){Y=c;S=rK;for(var u=0,W=S;W!==null;)u++,W=W.parent;if(u!==0&&!Y.componentStack)try{if(Y.componentStack=S,Yd.enableComponentStacksInErrorMessages){var m=iz$(S),J=Y.message+"\n\nComponent stack: "+m;Y.stack&&(Y.stack=Y.stack.replace(Y.message,J));Y.message=J}}catch(C){}if(Y!==o2X){tHE=rK;m=[];for(J=MZ;J;)S=void 0,m.push((S=J.debugName)!=null?S:"[context]"),S=void 0,J=(S=J.parent)!=null?S:null;Aca=m.reverse()}o2X=
Y;throw Y;}finally{rK=P}};
iz$=function(Y){for(var S=[];S.length<20&&Y;)S.push(Y.name),Y=Y.parent;return S.join(" > ")};
UYE=function(Y,S,P){S=Object.create(S);S.componentStack=rK;S.effectFn=Y;P&&(S.debugName=P);eL(S);return S};
_.D6=function(Y,S){Y=UYE(Y,Q41,S);aA9(Y)};
_.II=function(Y,S){Y=UYE(Y,k_u,S);aA9(Y)};
_.aI=function(Y){var S=MZ;if(S){var P=rK;$P1(S,function(){var u=z6(g2X());try{vJ(function(){return void Y()},{stack:P})}finally{z6(u)}})}};
LJ=function(Y,S){var P={};(S===void 0||S)&&eL(P);S=y2(P);try{Y(P)}finally{y2(S)}return function(){return void V2(P)}};
_.wK=function(Y){return typeof Y==="function"?Y():(Y==null?0:Y[MHa])?Y.get():Y};
ycY=function(Y){if(MZ)throw Error("rb");LJ(Y,!1)};
pJ=function(Y,S){Y=y2(Y);try{return CJ(S)}finally{y2(Y)}};
Fn=function(Y,S,P){P=P===void 0?3:P;var u=tHE,W,m;var J=(m=(W=Aca)==null?void 0:W.slice())!=null?m:[];S={componentStack:u,contextTrace:J,errorSeverity:P,featureFlags:oZE(),tagName:S};return[Y,S]};
VHa=function(Y,S,P){if(Object.hasOwnProperty.call(Nk$,Y)&&(Y=Nk$[Y],Object.hasOwnProperty.call(Y,S)&&(Y=Y[S],Y instanceof Array))){for(var u=null,W=!1,m=0,J=Y.length;m<J;++m){var c=Y[m],C=c.contingentAttribute;if(!C)return c.contract;u===null&&(u={});C=Object.hasOwnProperty.call(u,C)?u[C]:u[C]=P(C);if(C===c.requiredValue)return c.contract;C==null&&(W=!0)}if(W)return null}S=Hzu[S];return typeof S==="number"?S:null};
YQX=function(Y,S,P){var u=null;(Y=eaK[Y])&&(u=Y[S]);return typeof u!=="number"&&((Y=eaK["*"])&&(u=Y[S]),typeof u!=="number")?!1:!0===Ozu[u][String(P).toLowerCase()]};
PX9=function(Y,S){S=VHa(Y.toLowerCase(),S,function(){var u;(u=Yd.handleError)==null||u.call.apply(u,[Yd].concat(_.cz(Fn(Error("Qb"),Y.toLowerCase()))))});
if(S===null)return null;var P;return(P=SQh[S])!=null?P:null};
uBu=function(Y,S,P){if(P===null||P===void 0)return P;Y=PX9(Y,S);return Y===null?P:Y(S,P)};
WV1=function(){};
su=function(Y,S){for(;Y.length>S;)Y.pop()};
zl1=function(Y){Y=Array(Y);su(Y,0);return Y};
mR1=function(Y,S,P){if(P==null)Y.removeAttribute(S);else{var u;(u=S.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":S.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?Y.setAttributeNS(u,S,P):Y.setAttribute(S,P)}};
nF$=function(Y,S,P){Y[S]=P};
Jia=function(Y,S,P){Y=Y.style;if(typeof P==="string")Y.cssText=P;else{Y.cssText="";for(var u in P)if(jda.call(P,u)){S=Y;var W=u,m=P[u];W.indexOf("-")>=0?S.setProperty(W,m):S[W]=m}}};
Bcf=function(Y,S,P){var u=typeof P;u==="object"||u==="function"?Y[S]=P:mR1(Y,S,P)};
ciK=function(){var Y=new WV1;Y[dK.default]=Bcf;Y.style=Jia;return Y};
CXE=function(Y,S,P,u){(u[S]||u[dK.default])(Y,S,P)};
Rlu=function(Y,S,P){S=new qQX(S,P);return Y.__incrementalDOMData=S};
ly=function(Y,S){if(Y.__incrementalDOMData)return Y.__incrementalDOMData;var P=Y.nodeType===1?Y.localName:Y.nodeName,u=Y.nodeType===1?Y.getAttribute("key"):null;S=Rlu(Y,P,Y.nodeType===1?u||S:null);if(Y.nodeType===1&&(Y=Y.attributes,P=Y.length)){u=S._attrsArr||(S._attrsArr=zl1(P*2));for(var W=0,m=0;W<P;W+=1,m+=2){var J=Y[W],c=J.value;u[m]=J.name;u[m+1]=c}}return S};
xR$=function(Y,S,P,u,W){return S==P&&u==W};
bZ9=function(Y){for(var S=Xn,P=Z6();P!==Y;){var u=P.nextSibling;S.removeChild(P);iy.deleted.push(P);P=u}};
Z6=function(){return oI?oI.nextSibling:Xn.firstChild};
tx=function(){oI=Z6()};
EFJ=function(Y,S,P){tx();var u;a:{if(u=oI){do{var W=u,m=Y,J=S,c=ly(W,J);if(Tcu(W,m,c.nameOrCtor,J,c.key))break a}while(S&&(u=u.nextSibling))}u=null}u||(Y==="#text"?(P=Q1.createTextNode(""),Rlu(P,"#text",null),Y=P):(u=Q1,W=Xn,typeof Y==="function"?u=new Y:u=(W=Y==="svg"?"http://www.w3.org/2000/svg":Y==="math"?"http://www.w3.org/1998/Math/MathML":W==null||ly(W).nameOrCtor==="foreignObject"?null:W.namespaceURI)?u.createElementNS(W,Y):u.createElement(Y),Rlu(u,Y,S),Y=u,P&&Y.setAttribute("nonce",P)),iy.created.push(Y),
u=Y);P=u;if(P!==oI){if(KVX.indexOf(P)>=0)for(Y=Xn,S=P.nextSibling,u=oI;u!==null&&u!==P;)W=u.nextSibling,Y.insertBefore(u,S),u=W;else Xn.insertBefore(P,oI);oI=P}};
fRY=function(Y,S,P){EFJ(Y,S,P);Xn=oI;oI=null;return Xn};
gFf=function(){bZ9(null);oI=Xn;Xn=Xn.parentNode};
kd=function(){oI=Xn.lastChild};
GZa=function(Y,S){S=S===void 0?{}:S;var P=S.matches===void 0?xR$:S.matches;return function(u,W,m){var J=iy,c=Q1,C=KVX,x=Mb,b=y1,T=oI,K=Xn,G=Tcu;Q1=u.ownerDocument;iy=new $Ru(u);Tcu=P;Mb=[];y1=[];oI=null;var v=Xn=u.parentNode,a,w=riJ.call(u);if((a=w.nodeType===11||w.nodeType===9?w.activeElement:null)&&u.contains(a)){for(w=[];a!==v;)w.push(a),a=a.parentNode||(v?a.host:null);v=w}else v=[];KVX=v;try{return Y(u,W,m)}finally{u=iy,Nb&&u.deleted.length>0&&Nb(u.deleted),Q1=c,iy=J,Tcu=G,Mb=x,y1=b,oI=T,Xn=K,
KVX=C}}};
hlu=function(Y,S,P,u){HJ.push(CXE);HJ.push(Y);HJ.push(S);HJ.push(P);HJ.push(u)};
DRa=function(Y,S,P){var u=y1;S=S._attrsArr||(S._attrsArr=zl1(u.length));for(var W=!S.length||!1,m=0;m<u.length;m+=2){var J=u[m];if(W)S[m]=J;else if(S[m]!==J)break;var c=u[m+1];if(W||S[m+1]!==c)S[m+1]=c,hlu(Y,J,c,P)}if(m<u.length||m<S.length){for(m=W=m;m<S.length;m+=2)V1[S[m]]=S[m+1];for(m=W;m<u.length;m+=2)W=u[m],J=u[m+1],V1[W]!==J&&hlu(Y,W,J,P),S[m]=W,S[m+1]=J,delete V1[W];su(S,u.length);for(var C in V1)hlu(Y,C,void 0,P),delete V1[C]}Y=vFh;vFh=P=HJ.length;for(C=Y;C<P;C+=5)(0,HJ[C])(HJ[C+1],HJ[C+
2],HJ[C+3],HJ[C+4]);vFh=Y;su(HJ,Y);su(u,0)};
eh=function(Y){EFJ("#text",null);var S=oI;var P=ly(S);if(P.text!==Y){P=P.text=Y;for(var u=1;u<arguments.length;u+=1)P=(0,arguments[u])(P);S.data!==P&&(S.data=P)}};
FVK=function(Y,S,P){if(P===!1&&IRf.has(S))mR1(Y,S,null);else if(S!=="idomKey"&&S!=="skip"&&S!=="skipchildren"&&S!=="children"&&S!=="el"){if(S.startsWith("on"))if(S[2]===":"){if(P===void 0||P===null){var u;(u=Yd.handleError)==null||u.call.apply(u,[Yd].concat(_.cz(Fn(Error("Wb`"+S),Y.tagName))));Y[S]=void 0;return}if(typeof P!=="object"||P===null)throw Error("Xb`"+S+"`"+typeof P);if(typeof P.getFn!=="function")throw Error("Yb`"+S+"`"+Object.keys(P));var W=P.getFn(0),m=S.slice(3);if((u=hx())&&Y["on"+
m]===void 0)Y.addEventListener(m,W),_.aI(function(){return void Y.removeEventListener(m,W)});
else if(u||!aR$.includes(m))Y["on"+m]=W}else{LVE(Y,S,P);return}else if(S.startsWith("data-")&&typeof P==="string")try{P=w_h(P)}catch(J){P="zSoyz"}typeof P!=="function"||Y._disposeEffects!=null?(Yd.enableAttributeSanitization&&(P=uBu(Y.tagName,S,P)),S==="style"?p_1(Y,S,P):S.startsWith("prop:")?(S=S.slice(5),Y[S]=P):LVE(Y,S,P)):(Y._signalProps||(Y._signalProps=[]),Y._signalValues||(Y._signalValues=[]),Y._signalProps.push(S))}};
sdu=function(Y,S,P){P=(P===void 0?{}:P).isReactive;if(S==null?0:S.el){var u=S.el;if(typeof u==="function")u(Y);else{var W;(W=u.onRender)==null||W.call(u,Y);Y._disposeRef||(Y._disposeRef=function(){var m;(m=u.onUnmount)==null||m.call(u);delete Y._disposeRef},P&&_.aI(function(){var m;
return void((m=Y._disposeRef)==null?void 0:m.call(Y))}))}}};
dRX=function(Y){return uy(Y)&&Ou in Y};
lRh=function(Y){return dRX(Y)?Y[Ou].flattened:Y};
X_$=function(Y,S){var P=_.Ch.apply(2,arguments),u;S=(u=S)!=null?u:{};u={};return u.type=Y,u.props=S,u.children=P,u[YZ]=!0,u};
_.SX=function(Y){return Y.children};
PR=function(Y){var S=ZZ1!==X_$;ZZ1=Y?iZa:X_$;return S};
uk=function(Y){return _.SS(Y)?"nodeType"in Y:!1};
WR=function(){return document.createTextNode("")};
zB=function(Y){Y=document.createTextNode(String(Y));Y._isSignalTextNode=!0;return Y};
oFa=function(Y){var S=document.createElement("div");if(!(Y instanceof TT)){if(Y.contentKind!==mN)throw Error("Ub");Y=Kh(Y.toString())}_.a9(S,Y);Y=_.n(S.childNodes);for(var P=Y.next();!P.done;P=Y.next())P.value._isSafeOrSanitizedHtmlNode=!0;return S};
nE=function(Y){Y=typeof Y;return Y==="string"||Y==="number"||Y==="boolean"};
tq8=function(Y){return Y instanceof OU||zT(Y)||"function"==typeof _.ph&&Y instanceof _.ph||!1};
Ai1=function(Y,S){var P=Y.parentElement;if(!P)return S;P.replaceChild(S,Y);return S};
URa=function(Y,S){var P=Y[0].parentElement;if(P)if(Y[0].previousSibling||Y[Y.length-1].nextSibling){P.insertBefore(S,Y[0]);for(var u=Y.length-1;u>=0;u--)P.removeChild(Y[u])}else P.textContent="",P.appendChild(S);return S};
Qd$=function(Y,S){if(Y[0].parentElement)for(var P=Y[0].parentElement,u=S.length,W=Y.length,m=u,J=0,c=0,C=Y[W-1].nextSibling,x=null;J<W||c<m;)if(Y[J]===S[c])J++,c++;else{for(;Y[W-1]===S[m-1];)W--,m--;if(W===J)for(var b=m<u?c?S[c-1].nextSibling:S[m-c]:C;c<m;){var T=S[c++];P.insertBefore(T,b)}else if(m===c)for(;J<W;)b=Y[J],x&&x.has(b)||P.removeChild(b),J++;else if(Y[J]===S[m-1]&&S[c]===Y[W-1])b=Y[--W].nextSibling,P.insertBefore(S[c++],Y[J++].nextSibling),P.insertBefore(S[--m],b),Y[W]=S[m];else{if(!x)for(x=
new Map,b=c;b<m;)x.set(S[b],b++);b=x.get(Y[J]);if(b==null)P.removeChild(Y[J]),J++;else if(c<b&&b<m){T=J;for(var K=1,G=void 0;++T<W&&T<m&&(G=x.get(Y[T]))!=null&&G===b+K;)K++;if(K>b-c)for(T=Y[J];c<b;)P.insertBefore(S[c++],T);else P.replaceChild(S[c++],Y[J++])}else J++}}return S};
Mqh=function(Y){if(Array.isArray(Y)){if(Y.length>1)throw Error("gc`"+Y.length+"`"+Y.map(kZX).join(", "));Y=Y[0]}if(Y==null)return null;if(!(Y instanceof _.GT)){var S,P;if((S=window)==null?0:(P=S.trustedTypes)==null?0:P.isScript(Y))throw Error("fc");if(String(Y).trim().length===0)return null;throw Error("hc`"+kZX(Y));}return Y};
yi8=function(Y){if(Array.isArray(Y)){if(Y.length>1)throw Error("ic`"+Y.length+"`"+Y.map(kZX).join(", "));Y=Y[0]}if(Y==null)return null;if(!gE9(Y)){if(String(Y).trim().length===0)return null;throw Error("jc`"+kZX(Y));}return Y};
kZX=function(Y){return"("+typeof Y+") "+(Y!=null&&typeof Y==="object"?Y.constructor.name:typeof Y)+" "+Y};
cR=function(Y,S){function P(){W=!1;S.isControlFlowComponent&&$d++;var m=u[0],J=u[Ou].flattened,c=PR(!0);try{var C=Y(),x=Nch(m,C,u);Array.isArray(x)||(u[Ou].flattened=[x]);var b=u[Ou].flattened;if(J&&(!Array.isArray(J)||J.length!==0)){var T=Array.isArray(J)?J[0]:J,K=T[BR],G=T._disposeEffects;T._disposeEffects=void 0;T=Array.isArray(b)?b[0]:b;T[BR]=K;T[BR]&&(T[BR].numNodes=T===b?1:b.length);T._disposeEffects=G}u[0]=x;S.isControlFlowComponent&&XQa(!1)}catch(v){throw S.isControlFlowComponent&&XQa(!0),
v;}finally{PR(c)}}
S=S===void 0?{}:S;var u=HZE(),W=!0;_.II(function(){(Vqh==null?0:Vqh.logger)&&!W?Vqh.logger.logGraft(u[0],P):P()},S.debugName);
return u};
Nch=function(Y,S,P){for(;typeof S==="function";)S=S();if(S!=null&&S[YZ]){var u,W,m;(m=Yd.handleError)==null||m.call.apply(m,[Yd].concat(_.cz(Fn(Error("kc`"+((u=S.type)==null?void 0:u.TAG_NAME)),(W=S.type)==null?void 0:W.TAG_NAME))))}if(Y==null)return S==null?WR():nE(S)?zB(S):tq8(S)?zB(S.toString()):uk(S)?S:S.length===0?WR():elX(S,P);if(uk(Y)){if(S==null)return Ai1(Y,WR());if(nE(S))return OZX(Y,S);if(tq8(S))return OZX(Y,S.toString());if(uk(S))return Ai1(Y,S);if(S.length===0)return Ai1(Y,WR());S=elX(S,
P);Qd$([Y],P[Ou].flattened);return S}Y=qP(Y);if(S==null)return URa(Y,WR());if(nE(S))return URa(Y,zB(S));if(tq8(S))return URa(Y,zB(S.toString()));if(uk(S))return Qd$(Y,[S])[0];if(S.length===0)return URa(Y,WR());S=elX(S,P);Qd$(Y,P[Ou].flattened);return S};
OZX=function(Y,S){Y.nodeType===Node.TEXT_NODE?Y.textContent!==String(S)&&(Y.textContent=String(S)):Y=Ai1(Y,zB(S));return Y};
qP=function(Y,S,P){return Yfu(Y,S!=null?S:[],P===void 0?!1:P)};
elX=function(Y,S){var P=qP(Y,void 0,!0);if(P.length===0)return WR();S[Ou].flattened=P;return Y};
Yfu=function(Y,S,P,u,W){S=S===void 0?[]:S;P=P===void 0?!1:P;W=W===void 0?-1:W;if(Y==null)return S;if(Y instanceof Rj)return Y=Y.render(),Yfu(Y,S,P,u,W);if(uk(S)&&S.nodeType===Node.ELEMENT_NODE)switch(S.tagName){case "SCRIPT":P=Mqh(Y);P!==null&&_.Di(S,P);return;case "STYLE":P=yi8(Y);P!==null&&(S.textContent=_.$8a(P));return}nE(Y)&&(Y=zB(Y),u&&P&&(u[W]=Y));if(Y!=null&&Y.contentKind===mN||Y instanceof TT){P=oFa(Y);P=Array.from(P.childNodes);P=_.n(P);for(Y=P.next();!Y.done;Y=P.next())SfX(S,Y.value);return S}tq8(Y)&&
(Y=zB(Y.toString()),u&&P&&(u[W]=Y));if(uk(Y))return SfX(S,Y);if(Array.isArray(Y)){for(var m=0;m<Y.length;m++)Yfu(Y[m],S,P,Y,m);return S}if(typeof Y==="function"){Y=cR(Y,{debugName:"qmF2ne"})[0];if(Array.isArray(Y)){P=_.n(Y);for(Y=P.next();!Y.done;Y=P.next())SfX(S,Y.value);return S}u&&P&&(u[W]=Y);return SfX(S,Y)}if(Y!=null&&Y[YZ]){u=PR(!0);W=ZZ1;try{m=W.apply(null,[Y.type,Y.props].concat(_.cz(Y.children)))}finally{PR(u)}return Yfu(m,S,P)}var J;(J=Yd.handleError)==null||J.call.apply(J,[Yd].concat(_.cz(Fn(Error("lc")))));
return S};
HZE=function(Y){var S={};S=Object.assign([],(S[Ou]={flattened:[]},S));if(!Y)return S;S[0]=elX(Y,S);return S};
SfX=function(Y,S){Array.isArray(Y)?Y.push(S):Y.appendChild(S);return Y};
xZ=function(Y){if(!Yd.enableLazyTsx)return Y;if(Array.isArray(Y)){for(var S=0;S<Y.length;S++)Y[S]=xZ(Y[S]);return Y}return Y instanceof Rj?(Y=Y.render(),xZ(Y)):Y};
WUa=function(Y,S){var P,u,W=PE8(Y),m=function(G){u=G;G=PR(!0);var v=z6(bk);Sh("render",W);try{P=xZ(Y(S))}finally{PJ("render",W),z6(v),PR(G)}};
m=Yd.enableContextPerComponent?AA$(m,W):LJ(m,Yd.alwaysTrackContexts||!!MZ);Qja(u);if(!S.renderedFromIdom){var J=y2(u);try{return u_8(Y,S,P),P}finally{y2(J)}}!dRX(P)&&Array.isArray(P)&&(P=HZE(P));var c=lRh(P);J=Array.isArray(c)?c[0]:c;var C=!1;if(J){var x,b=(x=S==null?void 0:S.idomKey)!=null?x:Y;x=c!==J;J._disposeEffects=m;var T=J[BR]||{},K=dRX(P)?P:T.sourceDynamicRange;Object.assign(T,{key:b,numNodes:x?c.length:1,context:u,higherOrder:!!J[BR],sourceDynamicRange:K});J[BR]=T}else C=!0;(function(){var G=
y2(u);try{u_8(Y,S,c)}finally{y2(G)}})();
C&&m();return P};
PE8=function(Y){var S,P;return(P=(S=Y.debugName)!=null?S:Y.name)!=null?P:"[component]"};
z_8=function(Y){var S={},P;for(P in Y)S={prev$jscomp$23:void 0,next$jscomp$25:void 0},S.prev$jscomp$23=TB[P],S.next$jscomp$25=Y[P],TB[P]=function(u){return function(){var W=_.Ch.apply(0,arguments);u.prev$jscomp$23.apply(null,_.cz(W));u.next$jscomp$25.apply(null,_.cz(W))}}(S)};
msa=function(){if(hx())throw Error("mc");return KE};
nG$=function(Y,S){if(!Y.__unmounted&&S){Y.__unmounted=!0;try{Y.didUnmount()}catch(W){var P,u;(u=Yd.handleError)==null||u.call.apply(u,[Yd].concat(_.cz(Fn(W,(P=Y.JSC$8135___type)==null?void 0:P.TAG_NAME))))}TB.didUnmount(Y);Y.el=null;S.__instance&&delete S.__instance}};
JpK=function(Y,S,P){Y._signalProps!=null&&Y._disposeEffects==null&&((P===void 0?0:P)?Y._disposeEffects=LJ(function(){return void jza(Y,S)},Yd.alwaysTrackContexts||!!MZ):jza(Y,S))};
jza=function(Y,S){_.II(function(){for(var P=Y._signalProps,u=Y._signalValues,W=0;W<P.length;W++){var m=P[W],J=S[m]();u[W]!==J&&(u[W]=J,FVK(Y,m,J))}},"e3YVbb")};
B6E=function(Y,S,P){var u,W=[];Y._disposeEffects=LJ(function(){_.II(function(){var m=P();if(m===null||m===void 0)m="";if(nE(m)||m===null)u!=null||(u=document.createTextNode("")),u.parentNode!==Y&&(u._isSignalTextNode=!0,Y.insertBefore(u,S)),u.textContent=String(m);else if(m!=null&&m.contentKind===mN||m instanceof TT){for(var J=W.length>0?W[W.length-1].nextSibling:S,c=_.n(W),C=c.next();!C.done;C=c.next())Y.removeChild(C.value);m=oFa(m);W=Array.from(m.childNodes);m=_.n(W);for(c=m.next();!c.done;c=m.next())Y.insertBefore(c.value,
J)}else throw C=(c=(J=rK)==null?void 0:J.name)!=null?c:"unknown",Error("bc`"+C+"`"+typeof m);},"VvDgC")},Yd.alwaysTrackContexts||!!MZ)};
qf$=function(Y,S){var P=_.Ch.apply(2,arguments);S!=null||(S={});return!Yd.enableLazyTsx||rK!=null&&!hx()?cp8(Y,S,P):new CEh(Y,S,P)};
cp8=function(Y,S,P){if(Y===_.SX)return P;if(typeof Y==="function")return rK&&!hx()&&(S.renderedFromIdom=!0),ZzU({component:Y,debugInstance:S.debugInstance,fn:function(){var m=R_h(Y,S,P);if(m)return m;P.length>0&&(S.children=P.length===1?P[0]:P);m=S;if(Y.componentType!==G6)var J=!1;else{m||(m={});var c=new EW(m,Y),C=z6(bk);try{J=c.render(m)}finally{z6(C)}J instanceof HTMLElement&&(J.__instance=c,c.el=J,c.JSC$8135___type=Y,Y.TAG_NAME=J.tagName.toLowerCase(),TB.didPatch(c))}return J===!1?WUa(Y,S):J}});
var u=xsE(Y,S),W;for(W in S)FVK(u,W,S[W]);JpK(u,S);qP(P,u);sdu(u,S,{isReactive:!0});b_h(u,S);return u};
xsE=function(Y,S){Y=(T6f.has(Y.toLowerCase())?0:KUh.has(Y.startsWith("svg:")?Y.replace("svg:",""):Y))?document.createElementNS("http://www.w3.org/2000/svg",Y.startsWith("svg:")?Y.replace("svg:",""):Y):EGh(Y,S)||document.createElement(Y);Y[fNY]=!0;return Y};
gG1=function(Y){if(Y){var S;(S=Y._disposeRef)==null||S.call(Y);var P;(P=Y._disposeEffects)==null||P.call(Y);Y.__instance&&Y.__instance instanceof fE&&(S=Y.__instance,nG$(S,Y),S instanceof EW&&S.disposeEffects());for(S=0;S<Y.childNodes.length;S++)gG1(Y.childNodes[S])}};
rp8=function(Y){$sh.push(Y)===1&&requestAnimationFrame(function(){setTimeout(function(){var S=[].concat(_.cz($sh));$sh=[];S=_.n(S);for(var P=S.next();!P.done;P=S.next()){P=P.value;try{for(var u=0;u<P.length;u++)gG1(P[u])}catch(W){u=P=void 0,(u=(P=Yd).handleError)==null||u.call.apply(u,[P].concat(_.cz(Fn(W))))}}})})};
_.R=function(Y,S){return ZZ1.apply(null,[Y,S].concat(_.cz(_.Ch.apply(2,arguments))))};
h_a=function(){var Y=document.body.firstElementChild;window.ng||Y.__ngContext__||(Y.__ngContext__={},Y.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=Gy8)};
_.gw=function(Y){var S=Y.cond;if(S===void 0)return Y.else&&Y.else();var P=_.fJ(function(){return!!S()},void 0,"y0Xknf"),u=function(){var W=S();
if(!W){var m;(m=Yd.handleError)==null||m.call.apply(m,[Yd].concat(_.cz(Fn(vGK.nonNullableCondIsNull()))))}return W};
return cR(function(){var W=P(),m;LJ(function(){var J=z6(bk);try{m=xZ(W?Y.then(u):Y.else&&Y.else())}finally{z6(J)}},!0);
return m},{debugName:Y.debugInstance,
isControlFlowComponent:!0})};
DsX=function(Y){return _.gw(Y)};
_.$Z=function(Y){return Y.keyBy==="INDEX"?IN$(Y):aNa(Y)};
LU1=function(Y){Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next()){var P=void 0;(P=S.value)==null||P()}};
aNa=function(Y){var S=Y.keyBy===void 0||Y.keyBy==="REFERENCE",P=S?function(b){return b}:Y.keyBy,u=[],W=[],m=[],J=[],c=[],C=[],x=!0;
_.aI(function(){LU1(J)});
return cR(function(){var b=Y.each(),T=b.length;if(T===0){if(u.length===0&&!x)return m;LU1(J);u=b;W=[];for(b=0;b<u.length;b++)W.push(P(u[b]));m=[];J=[];c=[];C=[];Y.fallback&&(J[0]=wKX(function(){m[0]=xZ(Y.fallback())}));
x=!1;return m}for(var K=new pK1,G=u.length-1;G>=0;G--)K.push(W[G],G);G=Array(T);for(var v=Array(T),a=Array(T),w=Array(T),F=Array(S?0:T),U={i$jscomp$485:0};U.i$jscomp$485<T;U={i$jscomp$485:U.i$jscomp$485,item$jscomp$103:void 0,key$jscomp$523:void 0},U.i$jscomp$485++){U.item$jscomp$103=b[U.i$jscomp$485];U.key$jscomp$523=P(U.item$jscomp$103);var V=K.pop(U.key$jscomp$523);V!=null?(a[U.i$jscomp$485]=m[V],v[U.i$jscomp$485]=W[V],G[U.i$jscomp$485]=J[V],w[U.i$jscomp$485]=c[V],S||(F[U.i$jscomp$485]=C[V]),gK(function(M){return function(){w[M.i$jscomp$485](M.i$jscomp$485);
if(!S)F[M.i$jscomp$485](M.item$jscomp$103)}}(U)),delete J[V]):G[U.i$jscomp$485]=wKX(function(M){return function(){var zJ=_.n(_.qb(M.i$jscomp$485,void 0,"g4fKif")),O=zJ.next().value;
zJ=zJ.next().value;w[M.i$jscomp$485]=zJ;v[M.i$jscomp$485]=M.key$jscomp$523;if(S)a[M.i$jscomp$485]=xZ(Y.children(M.item$jscomp$103,O));else{var ca=_.n(_.qb(M.item$jscomp$103,void 0,"Ile0Kc"));zJ=ca.next().value;ca=ca.next().value;F[M.i$jscomp$485]=ca;a[M.i$jscomp$485]=xZ(Y.children(zJ,O))}}}(U))}LU1(J);
u=b;W=v;m=a;J=G;c=w;C=F;x=!1;return a},{debugName:Y.debugInstance,
isControlFlowComponent:!0})};
IN$=function(Y){var S=[],P=[],u=[],W=[],m=!1;_.aI(function(){for(var J=_.n(W),c=J.next();!c.done;c=J.next())c=c.value,c()});
return cR(function(){var J=Y.each();m&&J.length>0&&(W.pop()(),S.pop(),m=!1);for(var c=Array(J.length),C={i$jscomp$486:0};C.i$jscomp$486<J.length;C={i$jscomp$486:C.i$jscomp$486},C.i$jscomp$486++)if(C.i$jscomp$486<S.length)S[C.i$jscomp$486]!==J[C.i$jscomp$486]&&(gK(function(b){return function(){return void P[b.i$jscomp$486](J[b.i$jscomp$486])}}(C)),S[C.i$jscomp$486]=J[C.i$jscomp$486]),c[C.i$jscomp$486]=u[C.i$jscomp$486];
else{var x=wKX(function(b){return function(){S[b.i$jscomp$486]=J[b.i$jscomp$486];var T=_.n(_.qb(J[b.i$jscomp$486],void 0,"QVJXFd")),K=T.next().value;T=T.next().value;P[b.i$jscomp$486]=T;c[b.i$jscomp$486]=xZ(Y.children(K,b.i$jscomp$486))}}(C));
W[C.i$jscomp$486]=x}for(;S.length>J.length;)S.pop(),W.pop()(),P.pop();J.length===0&&!m&&Y.fallback&&(C=wKX(function(){c[0]=xZ(Y.fallback())}),W[0]=C,m=!0);
return u=c},{debugName:Y.debugInstance,
isControlFlowComponent:!0})};
wKX=function(Y){var S=MZ;return LJ(function(P){var u=z6(bk);try{P.parent=S,Y(P)}finally{z6(u)}},!1)};
_.rw=function(Y){return Y};
_.GB=function(Y){return{isDefault:!0,children:Y.children}};
_.hA=function(Y){var S=FUX(Y),P=_.fJ(function(){return sz$(S)},void 0,"BHmkEe");
return cR(function(){var u=P(),W;LJ(function(){var m=z6(bk);try{W=xZ(u())}finally{z6(m)}});
return W},{debugName:Y.debugInstance,
isControlFlowComponent:!0})};
FUX=function(Y){Y=Y.children;return Array.isArray(Y)?Y:[Y]};
dsX=function(Y){var S=Y.props;Y=Y.getChildren()[0];return S.when?{when:S.when,children:Y}:{isDefault:!0,children:Y}};
sz$=function(Y){var S=function(){return null};
Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())if(P=P.value,P!=null&&P[YZ]&&(P=P.type===_.GB?{isDefault:!0,children:P.children[0]}:{when:P.props.when,children:P.children[0]}),P instanceof Rj&&(P=dsX(P)),P.isDefault)S=P.children;else if(P.when())return P.children;return S};
lNa=function(Y){var S=null,P;return{value:null,onRender:function(u){if(P&&u!==P){var W;(W=S)==null||W();P._disposeRef=void 0}P=u;S=Y(u)||null},
onUnmount:function(){var u;(u=S)==null||u();S=null}}};
Z_h=function(Y){var S=msa();if(S==null)throw XKY.PRIMITIVE_INVALID_HOOK_CALL();var P=S.hookCounter++;S.hooks||(S.hooks=[]);var u=S.hooks;u[P]||(u[P]={key:Y,host:S});if(Y!==u[P].key){var W,m;Y=((W=S.JSC$8135___type)==null?void 0:W.name)||((m=S.functionComponent)==null?void 0:m.name);throw XKY.OUT_OF_ORDER_HOOK_CALL(Y);}return u[P]};
i_J=function(Y,S){return!Y||Y.length!==(S==null?void 0:S.length)||Y.some(function(P,u){return P!==S[u]})};
vR=function(Y,S){var P=Z_h("onChange"),u=msa();i_J(P.deps,S)&&(P.deps=S,P.pendingEffect=Y,u.__syncEffects||(u.__syncEffects=[]),u.__syncEffects.push(P))};
Us$=function(Y,S){var P;S!=null?P=S:P=_.EZX(document).getAppContext();P.get(oG9).JSC$25258_getEventTarget().dispatchEvent(new tuf(ApX,Y,mN))};
_.D4=function(Y,S){var P=P===void 0?{enableDevtools:!1}:P;var u=vJ(function(){var W=z6(bk);try{return LJ(function(){var m=_.EZX(_.Ey(Y)),J;var c=pR8({rootElement:{value:Y},appContext:P.appContext||(m==null?void 0:(J=m.getOptionalAppContext)==null?void 0:J.call(m)),dispatcher:m});m=y2(c);c=PR(!0);$d++;try{qP(S(),Y),XQa(!1)}catch(C){throw XQa(!0),C;}finally{PR(c),y2(m)}},!1)}finally{z6(W)}});
Y[Qzf]=!0;P.legacyTriggerSoyRendererEvents&&Us$(Y,P.appContext);return function(){Y.textContent="";u();Y[Qzf]=!1}};
_.Ij=function(Y){if(s48(WJ)){var S;(S=Yd.handleError)==null||S.call.apply(S,[Yd].concat(_.cz(Fn(Error("ac")))))}var P=MZ,u=rK;Promise.resolve().then(function(){P&&!P.isDisposed&&vJ(function(){var W=y2(P);try{Y()}finally{y2(W)}},{stack:u})})};
aj=function(Y,S){vR(function(){return CJ(Y)},S)};
_.LE=function(Y){hx()?_.Ij(function(){CJ(Y)}):vR(function(){return CJ(Y)},[])};
Muh=function(Y){var S=[].concat(_.cz(Y));Y.length=0;Y=_.n(S);for(S=Y.next();!S.done;S=Y.next()){S=S.value;kyK(S);var P=S.pendingEffect;S.pendingEffect=null;if(P=P==null?void 0:P())S.pendingCleanup=P}};
kyK=function(Y){var S=Y.pendingCleanup;Y.pendingCleanup=null;S==null||S()};
ypJ=function(Y,S){if(hx())return Y();var P=Z_h("useMemoInternal");i_J(P.deps,S)&&(P.deps=S,P.value=Y());return P.value};
ww=function(Y,S){return ypJ(Y,S)};
pE=function(Y){return ypJ(Y,[])};
N69=function(){var Y=_.Ch.apply(0,arguments),S=pE(function(){return Y.map(function(P){return _.qb(P,void 0,"lnSD0c")})});
aj(function(){for(var P=0;P<Y.length;P++)(0,S[P][1])(Y[P])},Y);
return S.map(function(P){return _.n(P).next().value})};
F3=function(Y){return pE(function(){return{value:Y}})};
_.sW=function(Y,S){if(!Y)return null;Y=Object.keys(Y);Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next()){P=P.value;var u=P.toLowerCase();if(u.indexOf(S,u.length-S.length)>-1)return P}return null};
_.lk=function(){var Y=arguments,S=_.dw;Y.length>1?S[Y[0]]=Y[1]:Y.length===1&&Object.assign(S,Y[0])};
_.X3=function(Y,S){return Y in _.dw?_.dw[Y]:S};
_.Z4=function(Y,S){return!!_.X3(Y,S)};
H_K=function(Y){var S=_.dw.EXPERIMENT_FLAGS;return S?S[Y]:void 0};
e_9=function(Y){VuJ.forEach(function(S){return S(Y)})};
_.oj=function(Y){return Y&&window.yterr?function(){try{return Y.apply(this,arguments)}catch(S){_.ik(S)}}:Y};
_.ik=function(Y){var S=_.tA("yt.logging.errors.log");S?S(Y,"ERROR",void 0,void 0,void 0,void 0,void 0):(S=_.X3("ERRORS",[]),S.push([Y,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.lk("ERRORS",S));e_9(Y)};
_.AA=function(Y,S,P,u,W){var m=_.tA("yt.logging.errors.log");m?m(Y,"WARNING",S,P,u,void 0,W):(m=_.X3("ERRORS",[]),m.push([Y,"WARNING",S,P,u,void 0,W]),_.lk("ERRORS",m))};
YEX=function(Y,S){S=Y.split(S);for(var P={},u=0,W=S.length;u<W;u++){var m=S[u].split("=");if(m.length===1&&m[0]||m.length===2)try{var J=O_1(m[0]||""),c=O_1(m[1]||"");if(J in P){var C=P[J];Array.isArray(C)?_.Y_(C,c):P[J]=[C,c]}else P[J]=c}catch(K){var x=K,b=m[0],T=String(YEX);x.args=[{key:b,value:m[1],query:Y,method:SE9===T?"unchanged":T}];Pga.hasOwnProperty(b)||_.AA(x)}}return P};
uDa=function(Y){var S=[];_.RY.forEach(Y,function(P,u){var W=_.UW(u);_.Q4(Array.isArray(P)?P:[P],function(m){m==""?S.push(W):S.push(W+"="+_.UW(m))})});
return S.join("&")};
_.kZ=function(Y){Y.charAt(0)==="?"&&(Y=Y.substring(1));return YEX(Y,"&")};
_.MP=function(Y){return Y.indexOf("?")!==-1?(Y=(Y||"").split("#")[0],Y=Y.split("?",2),_.kZ(Y.length>1?Y[1]:Y[0])):{}};
_.y4=function(Y,S){return Wua(Y,S||{},!0)};
zTX=function(Y,S){return Wua(Y,S||{},!1)};
Wua=function(Y,S,P){var u=Y.split("#",2);Y=u[0];u=u.length>1?"#"+u[1]:"";var W=Y.split("?",2);Y=W[0];W=_.kZ(W[1]||"");for(var m in S)if(P||!_.RY.containsKey(W,m))W[m]=S[m];return _.NP(Y,W)+u};
Y2=function(Y){if(!S)var S=window.location.href;var P=_.HR(Y)[1]||null,u=_.eX(Y);return P&&u?OW(Y,S):u?_.eX(S)===u&&(Number(_.HR(S)[4]||null)||null)===(Number(_.HR(Y)[4]||null)||null):!0};
_.ny9=function(Y){Y=mzJ(Y);return Y===null?!1:Y[0]==="com"&&Y[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
mzJ=function(Y){Y=_.eX(Y);return Y!==null?Y.split(".").reverse():null};
O_1=function(Y){return Y&&Y.match(jW$)?Y:SH(Y)};
_.PQ=function(Y){return new JJf(Y)};
_.E=function(){BuX||(BuX=new cJa);return BuX};
qEa=function(Y){var S=_.uY,P,u;_.B(function(W){P=_.E();return(u=P.resolve(_.PQ(S)))?(Y(u),W.return(Promise.resolve(u))):W.return(P.resolve(new Cg8(S)).then(function(m){Y(m);return m}))})};
_.f=function(Y){Y=WQ(Y);return typeof Y==="string"&&Y==="false"?!1:!!Y};
_.z_=function(Y,S){Y=WQ(Y);return Y===void 0&&S!==void 0?S:Number(Y||0)};
RTE=function(Y){Y=WQ(Y);return Array.isArray(Y)?_.b9(Y,function(S){return Number(S||0)}):[Number(Y||0)]};
_.mG=function(Y){Y=WQ(Y);return Y!==void 0?String(Y):""};
_.nz=function(Y){Y=WQ(Y);return Array.isArray(Y)?_.b9(Y,function(S){return String(S||"")}):[String(Y||"")]};
xz1=function(){return _.X3("EXPERIMENTS_TOKEN","")};
WQ=function(Y){return _.X3("EXPERIMENT_FLAGS",{})[Y]};
boE=function(){for(var Y=[],S=_.X3("EXPERIMENTS_FORCED_FLAGS",{}),P=_.n(Object.keys(S)),u=P.next();!u.done;u=P.next())u=u.value,Y.push({key:u,value:String(S[u])});P=_.X3("EXPERIMENT_FLAGS",{});u=_.n(Object.keys(P));for(var W=u.next();!W.done;W=u.next())W=W.value,W.startsWith("force_")&&S[W]===void 0&&Y.push({key:W,value:String(P[W])});return Y};
KuX=function(){if(!Tuf)return null;var Y=Tuf();return"open"in Y?Y:null};
EyY=function(Y){switch(jH(Y)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
jH=function(Y){return Y&&"status"in Y?Y.status:-1};
_.Jc=function(Y,S){typeof Y==="function"&&(Y=_.oj(Y));return window.setTimeout(Y,S)};
_.BQ=function(Y,S){typeof Y==="function"&&(Y=_.oj(Y));return window.setInterval(Y,S)};
_.cQ=function(Y){window.clearTimeout(Y)};
gyf=function(Y){Y=_.MP(Y);for(var S=_.n(fYE),P=S.next();!P.done;P=S.next())if(Y[P.value]!==void 0)return!0;return!1};
G4$=function(Y,S,P,u,W,m,J,c){P=P===void 0?"GET":P;u=u===void 0?"":u;c=c===void 0?!1:c;var C=KuX();if(!C)return null;var x=function(){(C&&"readyState"in C?C.readyState:0)===4&&S&&_.oj(S)(C)};
"onloadend"in C?C.addEventListener("loadend",x,!1):C.onreadystatechange=x;_.f("debug_forward_web_query_parameters")&&(Y=$zY(Y,window.location.search));C.open(P,Y,!0);m&&(C.responseType=m);J&&(C.withCredentials=!0);P=P==="POST"&&(window.FormData===void 0||!(u instanceof FormData));if(W=rJJ(Y,W))for(var b in W)C.setRequestHeader(b,W[b]),"content-type"===b.toLowerCase()&&(P=!1);P&&C.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(c&&"setAttributionReporting"in XMLHttpRequest.prototype){Y=
{eventSourceEligible:!0,triggerEligible:!1};try{C.setAttributionReporting(Y)}catch(T){_.AA(T)}}C.send(u);return C};
rJJ=function(Y,S){S=S===void 0?{}:S;var P=Y2(Y),u=_.X3("INNERTUBE_CLIENT_NAME"),W=_.f("web_ajax_ignore_global_headers_if_set"),m;for(m in hT$){var J=_.X3(hT$[m]),c=m==="X-Goog-AuthUser"||m==="X-Goog-PageId";m!=="X-Goog-Visitor-Id"||J||(J=_.X3("VISITOR_DATA"));var C;if(!(C=!J)){if(!(C=P||(_.eX(Y)?!1:!0))){C=Y;var x;if(x=_.f("add_auth_headers_to_remarketing_google_dot_com_ping")&&m==="Authorization"&&(u==="TVHTML5"||u==="TVHTML5_UNPLUGGED"||u==="TVHTML5_SIMPLY"))x=mzJ(C),x=x===null?!1:x[1]==="google"?
!0:x[2]==="google"?x[0]==="au"&&x[1]==="com"?!0:x[0]==="uk"&&x[1]==="co"?!0:!1:!1;x&&(C=_.Cz(C)||"",C=C.split("/"),C="/"+(C.length>1?C[1]:""),x=C==="/pagead");C=x?!0:!1}C=!C}C||W&&S[m]!==void 0||u==="TVHTML5_UNPLUGGED"&&c||(S[m]=J)}"X-Goog-EOM-Visitor-Id"in S&&"X-Goog-Visitor-Id"in S&&delete S["X-Goog-Visitor-Id"];if(P||!_.eX(Y))S["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(P||!_.eX(Y)){try{var b=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(T){}b&&(S["X-YouTube-Time-Zone"]=
b)}document.location.hostname.endsWith("youtubeeducation.com")||!P&&_.eX(Y)||(S["X-YouTube-Ad-Signals"]=uDa(vyh()));return S};
_.Dzf=function(Y,S){var P=_.eX(Y);_.f("debug_handle_relative_url_for_query_forward_killswitch")||!P&&Y2(Y)&&(P=document.location.hostname);var u=_.Cz(Y);u=(P=P&&(P.endsWith("youtube.com")||P.endsWith("youtube-nocookie.com")))&&u&&u.startsWith("/api/");if(!P||u)return Y;var W=_.kZ(S),m={};_.Q4(fYE,function(J){W[J]&&(m[J]=W[J])});
return zTX(Y,m)};
IYu=function(Y,S){S.method="POST";S.postParams||(S.postParams={});return _.qY(Y,S)};
aYa=function(Y,S){var P=_.X3("XSRF_FIELD_NAME"),u;S.headers&&(u=S.headers["Content-Type"]);return!S.excludeXsrf&&(!_.eX(Y)||S.withCredentials||_.eX(Y)===document.location.hostname)&&S.method==="POST"&&(!u||u==="application/x-www-form-urlencoded")&&!(S.postParams&&S.postParams[P])};
_.qY=function(Y,S){var P=S.format||"JSON";Y=Luf(Y,S);var u=weK(Y,S),W=!1,m=peK(Y,function(C){if(!W){W=!0;c&&_.cQ(c);var x=EyY(C),b=null,T=400<=C.status&&C.status<500,K=500<=C.status&&C.status<600;if(x||T||K)b=Fuh(Y,P,C,S.convertToSafeHtml);x&&(x=sWJ(P,C,b));b=b||{};T=S.context||_.Pa;x?S.onSuccess&&S.onSuccess.call(T,C,b):S.onError&&S.onError.call(T,C,b);S.onFinish&&S.onFinish.call(T,C,b)}},S.method,u,S.headers,S.responseType,S.withCredentials);
u=S.timeout||0;if(S.onTimeout&&u>0){var J=S.onTimeout;var c=_.Jc(function(){W||(W=!0,m.abort(),_.cQ(c),J.call(S.context||_.Pa,m))},u)}return m};
Luf=function(Y,S){S.includeDomain&&(Y=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+Y);var P=_.X3("XSRF_FIELD_NAME");if(S=S.urlParams)S[P]&&delete S[P],Y=_.y4(Y,S);return Y};
weK=function(Y,S){var P=_.X3("XSRF_FIELD_NAME"),u=_.X3("XSRF_TOKEN"),W=S.postBody||"",m=S.postParams;aYa(Y,S)&&(m||(m={}),m[P]=u);(_.f("ajax_parse_query_data_only_when_filled")&&m&&Object.keys(m).length>0||m)&&typeof W==="string"&&(W=_.kZ(W),_.RY.extend(W,m),W=S.postBodyFormat&&S.postBodyFormat==="JSON"?JSON.stringify(W):_.R4(W));m=W||m&&!_.RY.isEmpty(m);!dzu&&m&&S.method!=="POST"&&(dzu=!0,_.ik(Error("Gc")));return W};
Fuh=function(Y,S,P,u){var W=null;switch(S){case "JSON":try{var m=P.responseText}catch(J){throw u=Error("Hc"),u.params=Y,_.AA(u),J;}Y=P.getResponseHeader("Content-Type")||"";m&&Y.indexOf("json")>=0&&(m.substring(0,5)===")]}'\n"&&(m=m.substring(5)),W=JSON.parse(m));break;case "XML":if(Y=(Y=P.responseXML)?lYE(Y):null)W={},_.Q4(Y.getElementsByTagName("*"),function(J){W[J.tagName]=XeX(J)})}u&&ZoE(W);
return W};
ZoE=function(Y){if(_.SS(Y))for(var S in Y)S==="html_content"||jK(S,"_html")?Y[S]=Kh(Y[S]):ZoE(Y[S])};
sWJ=function(Y,S,P){if(S&&S.status===204)return!0;switch(Y){case "JSON":return!!P;case "XML":return Number(P&&P.return_code)===0;case "RAW":return!0;default:return!!P}};
lYE=function(Y){return Y?(Y=("responseXML"in Y?Y.responseXML:Y).getElementsByTagName("root"))&&Y.length>0?Y[0]:null:null};
XeX=function(Y){var S="";_.Q4(Y.childNodes,function(P){S+=P.nodeValue});
return S};
ioh=function(Y){if(Y.name==="JavaException")return!0;Y=Y.stack;return Y.includes("chrome://")||Y.includes("chrome-extension://")||Y.includes("moz-extension://")};
_.x2=function(Y){_.R6.call(this);this.JSC$8310_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!Y};
trh=function(Y,S){var P=Y.length,u=0,W=function(){return Y.charCodeAt(u++)};
do{var m=oyE(W);if(m===Infinity)break;var J=m>>3;switch(m&7){case 0:m=oyE(W);if(J===S)return m;break;case 1:if(J===S)return;u+=8;break;case 2:m=oyE(W);if(J===S)return Y.substr(u,m);u+=m;break;case 5:if(J===S)return;u+=4;break;default:return}}while(u<P)};
oyE=function(Y){var S=Y(),P=S&127;if(S<128)return P;S=Y();P|=(S&127)<<7;if(S<128)return P;S=Y();P|=(S&127)<<14;if(S<128)return P;S=Y();return S<128?P|(S&127)<<21:Infinity};
Uza=function(Y,S,P,u){if(Y)if(Array.isArray(Y)){var W=u;for(u=0;u<Y.length&&!(Y[u]&&(W+=AJu(u,Y[u],S,P),W>500));u++);u=W}else if(typeof Y==="object")for(W in Y){if(Y[W]){var m=W;var J=Y[W],c=S,C=P;m=typeof J!=="string"||m!=="clickTrackingParams"&&m!=="trackingParams"?0:(J=trh(atob(J.replace(/-/g,"+").replace(/_/g,"/")),2))?AJu(m+".ve",J,c,C):0;u+=m;u+=AJu(W,Y[W],S,P);if(u>500)break}}else P[S]=bY(Y),u+=P[S].length;else P[S]=bY(Y),u+=P[S].length;return u};
AJu=function(Y,S,P,u){P+="."+Y;Y=bY(S);u[P]=Y;return P.length+Y.length};
bY=function(Y){try{return(typeof Y==="string"?Y:String(JSON.stringify(Y))).substr(0,500)}catch(S){return"unable to serialize "+typeof Y+" ("+S.message+")"}};
QWh=function(Y){switch(Y){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.Kz=function(Y,S,P,u,W){_.T_.set(Y,S,{maxAge:P,path:"/",domain:u===void 0?"youtube.com":u,secure:W===void 0?!1:W})};
_.k4Y=function(Y,S,P){_.T_.remove(Y,S===void 0?"/":S,P===void 0?"youtube.com":P)};
_.Eh=function(){if(_.f("embeds_web_enable_cookie_detection_fix")){if(!_.Pa.navigator.cookieEnabled)return!1}else if(!_.T_.isEnabled())return!1;if(!_.T_.isEmpty())return!0;_.f("embeds_web_enable_cookie_detection_fix")?_.T_.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.T_.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.T_.get("TESTCOOKIESENABLED")!=="1")return!1;_.T_.remove("TESTCOOKIESENABLED");return!0};
MrU=function(){var Y=_.Pa.navigator;return Y?Y.connection:void 0};
yJ$=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(Y){}};
_.Ho$=function(){var Y=MrU();if(Y){var S=Nuh[Y.type||"unknown"]||"CONN_UNKNOWN";Y=Nuh[Y.effectiveType||"unknown"]||"CONN_UNKNOWN";S==="CONN_CELLULAR_UNKNOWN"&&Y!=="CONN_UNKNOWN"&&(S=Y);if(S!=="CONN_UNKNOWN")return S;if(Y!=="CONN_UNKNOWN")return Y}};
eTE=function(){var Y=MrU();if(Y!=null&&Y.effectiveType)return Vr$.hasOwnProperty(Y.effectiveType)?Vr$[Y.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.gk=function(){try{return _.fz(),!0}catch(Y){return!1}};
_.fz=function(Y){if(_.X3("DATASYNC_ID")!==void 0)return _.X3("DATASYNC_ID");throw new _.$2("Datasync ID not set",Y===void 0?"unknown":Y);};
_.rk=function(Y){this.mechanism=Y};
G_=function(Y){this.mechanism=Y};
hc=function(Y){this.storage_=Y;this.cachedIsStorageAvailable_=null};
Ooh=function(){var Y=null;try{Y=_.Pa.localStorage||null}catch(S){}hc.call(this,Y)};
Y2$=function(){var Y=null;try{Y=_.Pa.sessionStorage||null}catch(S){}hc.call(this,Y)};
vQ=function(Y,S){this.mechanism_=Y;this.JSC$8412_prefix_=S+"::"};
_.S2J=function(Y){var S=new Ooh;return S.isAvailable()?Y?new vQ(S,Y):S:null};
_.P6$=function(Y){var S=new Y2$;return S.isAvailable()?Y?new vQ(S,Y):S:null};
W9a=function(){var Y;return(Y=uvh())==null?void 0:Y.get("LAST_RESULT_ENTRY_KEY",!0)};
_.a4=function(Y){zjf||(_.DA?_.DA.logError(Y):(_.I4.push({type:"ERROR",payload:Y}),_.I4.length>10&&_.I4.shift()))};
Lz=function(Y,S){zjf||(_.DA?_.DA.logEvent(Y,S):(_.I4.push({type:"EVENT",eventType:Y,payload:S}),_.I4.length>10&&_.I4.shift()))};
wk=function(Y){if(Y.indexOf(":")>=0)throw Error("Oc");};
pz=function(Y){return Y.substr(0,Y.indexOf(":"))||Y};
jkE=function(){return(mqY||n5X)&&FV("applewebkit")&&!FV("version")&&(!FV("safari")||FV("gsa/"))};
FV=function(Y){var S=_.Rh();return S?S.toLowerCase().indexOf(Y)>=0:!1};
c9h=function(Y,S,P,u){S=pz(S);var W=Y instanceof Error?Y:Error("Pc`"+Y);if(W instanceof sh)return W;Y={objectStoreNames:P,dbName:S,dbVersion:u};if(W.name==="QuotaExceededError")return new sh("QUOTA_EXCEEDED",Y);if(_.dk&&W.name==="UnknownError")return new sh("QUOTA_MAYBE_EXCEEDED",Y);if(W instanceof J9J)return new sh("MISSING_INDEX",Object.assign({},Y,{objectStore:W.objectStore,index:W.index}));if(W.name==="InvalidStateError"&&BfY.some(function(m){return W.message.includes(m)}))return new sh("EXECUTE_TRANSACTION_ON_CLOSED_DB",
Y);
if(W.name==="AbortError")return new sh("UNKNOWN_ABORT",Y,W.message);W.args=[Object.assign({},Y,{name:"IdbError",originalName:W.name})];W.level="WARNING";return W};
lY=function(Y,S,P){var u=W9a();return new sh("IDB_NOT_SUPPORTED",{context:{caller:Y,publicName:S,version:P,hasSucceededOnce:u==null?void 0:u.hasSucceededOnce}})};
C6K=function(Y){if(!Y)throw Error();throw Y;};
q2h=function(Y){return Y};
RjK=function(Y,S,P){var u=function(){try{Y.removeEventListener("success",W),Y.removeEventListener("error",m)}catch(J){}},W=function(){S(Y.result);
u()},m=function(){P(Y.error);
u()};
Y.addEventListener("success",W);Y.addEventListener("error",m)};
xqu=function(Y){return new Promise(function(S,P){RjK(Y,S,P)})};
iY=function(Y){return new XV(new ZA(function(S,P){RjK(Y,S,P)}))};
bM1=function(Y,S){return new XV(new ZA(function(P,u){var W=function(){var m=Y?S(Y):null;m?m.then(function(J){Y=J;W()},u):P()};
W()}))};
K91=function(Y,S,P){return new Promise(function(u,W){var m=S!==void 0?self.indexedDB.open(Y,S):self.indexedDB.open(Y);var J=P.blocked,c=P.blocking,C=P.terminated,x=P.upgrade,b=P.closed,T,K=function(){T||(T=new o4(m.result,{closed:b}));return T};
m.addEventListener("upgradeneeded",function(G){try{if(G.newVersion===null)throw Error("Uc");if(m.transaction===null)throw Error("Vc");G.dataLoss&&G.dataLoss!=="none"&&Lz("IDB_DATA_CORRUPTED",{reason:G.dataLossMessage||"unknown reason",dbName:pz(Y)});var v=K(),a=new Tfh(m.transaction);x&&x(v,function(w){return G.oldVersion<w&&G.newVersion>=w},a);
a.done.catch(function(w){W(w)})}catch(w){W(w)}});
m.addEventListener("success",function(){var G=m.result;c&&G.addEventListener("versionchange",function(){c(K())});
G.addEventListener("close",function(){Lz("IDB_UNEXPECTEDLY_CLOSED",{dbName:pz(Y),dbVersion:G.version});C&&C()});
u(K())});
m.addEventListener("error",function(){W(m.error)});
J&&m.addEventListener("blocked",function(){J()})})};
E5K=function(Y,S,P){P=P===void 0?{}:P;return K91(Y,S,P)};
_.Ac=function(Y,S){S=S===void 0?{}:S;var P,u,W,m;return _.B(function(J){if(J.nextAddress==1)return _.ND(J,2),P=self.indexedDB.deleteDatabase(Y),u=S,(W=u.blocked)&&P.addEventListener("blocked",function(){W()}),_.q(J,xqu(P),4);
if(J.nextAddress!=2)return _.tc(J,0);m=_.O4(J);throw c9h(m,Y,"",-1);})};
g5E=function(Y,S){var P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,_.Uh(fC9,S),2);P=u.yieldResult;return u.return(_.Ql(P,["databases"],{enableRetries:!0,mode:"readwrite"},function(W){var m=W.objectStore("databases");return m.get(Y.actualName).then(function(J){if(J?Y.actualName!==J.actualName||Y.publicName!==J.publicName||Y.userIdentifier!==J.userIdentifier:1)return m.put(Y).then(function(){})})}))})};
_.k2=function(Y,S){var P;return _.B(function(u){if(u.nextAddress==1)return Y?_.q(u,_.Uh(fC9,S),2):u.return();P=u.yieldResult;return u.return(P.delete("databases",Y))})};
_.$qK=function(Y,S){var P,u;return _.B(function(W){return W.nextAddress==1?(P=[],_.q(W,_.Uh(fC9,S),2)):W.nextAddress!=3?(u=W.yieldResult,_.q(W,_.Ql(u,["databases"],{enableRetries:!0,mode:"readonly"},function(m){P.length=0;return MY(m.objectStore("databases"),{},function(J){Y(J.getValue())&&P.push(J.getValue());return J.continue()})}),3)):W.return(P)})};
r9$=function(Y,S){return _.$qK(function(P){return P.publicName===Y&&P.userIdentifier!==void 0},S)};
v5U=function(){var Y,S,P,u;return _.B(function(W){switch(W.nextAddress){case 1:Y=W9a();if((S=Y)==null?0:S.hasSucceededOnce)return W.return(!0);var m;if(m=G5E)m=/WebKit\/([0-9]+)/.exec(_.Rh()),m=!!(m&&parseInt(m[1],10)>=600);m&&(m=/WebKit\/([0-9]+)/.exec(_.Rh()),m=!(m&&parseInt(m[1],10)>=602));if(m||_.yl)return W.return(!1);try{if(P=self,!(P.indexedDB&&P.IDBIndex&&P.IDBKeyRange&&P.IDBObjectStore))return W.return(!1)}catch(J){return W.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return W.return(!1);
_.ND(W,2);u={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.q(W,g5E(u,hj8),4);case 4:return _.q(W,_.k2("yt-idb-test-do-not-use",hj8),5);case 5:return W.return(!0);case 2:return _.O4(W),W.return(!1)}})};
ICE=function(){if(Dqh!==void 0)return Dqh;zjf=!0;return Dqh=v5U().then(function(Y){zjf=!1;var S;if((S=uvh())!=null&&S.expiringStorage_){var P;S={hasSucceededOnce:((P=W9a())==null?void 0:P.hasSucceededOnce)||Y};var u;(u=uvh())==null||u.set("LAST_RESULT_ENTRY_KEY",S,2592E3,!0)}return Y})};
NY=function(){return _.tA("ytglobal.idbToken_")||void 0};
_.Vl=function(){var Y=NY();return Y?Promise.resolve(Y):ICE().then(function(S){(S=S?hj8:void 0)&&_.HQ("ytglobal.idbToken_",S);return S})};
aCX=function(Y){if(!_.gk())throw Y=new sh("AUTH_INVALID",{dbName:Y}),_.a4(Y),Y;var S=_.fz();return{actualName:Y+":"+S,publicName:Y,userIdentifier:S}};
L9a=function(Y,S,P,u){var W,m,J,c,C,x;return _.B(function(b){switch(b.nextAddress){case 1:return m=(W=Error().stack)!=null?W:"",_.q(b,_.Vl(),2);case 2:J=b.yieldResult;if(!J)throw c=lY("openDbImpl",Y,S),_.f("ytidb_async_stack_killswitch")||(c.stack=c.stack+"\n"+m.substring(m.indexOf("\n")+1)),_.a4(c),c;wk(Y);C=P?{actualName:Y,publicName:Y,userIdentifier:void 0}:aCX(Y);_.ND(b,3);return _.q(b,g5E(C,J),5);case 5:return _.q(b,E5K(C.actualName,S,u),6);case 6:return b.return(b.yieldResult);case 3:return x=
_.O4(b),_.ND(b,7),_.q(b,_.k2(C.actualName,J),9);case 9:_.tc(b,8);break;case 7:_.O4(b);case 8:throw x;}})};
w3U=function(Y,S,P){P=P===void 0?{}:P;return L9a(Y,S,!1,P)};
p3h=function(Y,S,P){P=P===void 0?{}:P;return L9a(Y,S,!0,P)};
F9K=function(Y,S){S=S===void 0?{}:S;var P,u;return _.B(function(W){if(W.nextAddress==1)return _.q(W,_.Vl(),2);if(W.nextAddress!=3){P=W.yieldResult;if(!P)return W.return();wk(Y);u=aCX(Y);return _.q(W,_.Ac(u.actualName,S),3)}return _.q(W,_.k2(u.actualName,P),0)})};
sk9=function(Y,S,P){Y=Y.map(function(u){return _.B(function(W){return W.nextAddress==1?_.q(W,_.Ac(u.actualName,S),2):_.q(W,_.k2(u.actualName,P),0)})});
return Promise.all(Y).then(function(){})};
dq8=function(Y){var S=S===void 0?{}:S;var P,u;return _.B(function(W){if(W.nextAddress==1)return _.q(W,_.Vl(),2);if(W.nextAddress!=3){P=W.yieldResult;if(!P)return W.return();wk(Y);return _.q(W,r9$(Y,P),3)}u=W.yieldResult;return _.q(W,sk9(u,S,P),0)})};
lCK=function(Y,S){S=S===void 0?{}:S;var P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,_.Vl(),2);if(u.nextAddress!=3){P=u.yieldResult;if(!P)return u.return();wk(Y);return _.q(u,_.Ac(Y,S),3)}return _.q(u,_.k2(Y,P),0)})};
eH=function(Y,S){return X3$(Y,S)};
iMa=function(Y){return _.Uh(ZMX(),Y)};
o59=function(Y,S,P,u){var W,m,J;return _.B(function(c){switch(c.nextAddress){case 1:return W={config:Y,hashData:S,timestamp:u!==void 0?u:(0,_.Oh)()},_.q(c,iMa(P),2);case 2:return m=c.yieldResult,_.q(c,m.clear("hotConfigStore"),3);case 3:return _.q(c,m.put("hotConfigStore",W),4);case 4:return J=c.yieldResult,c.return(J)}})};
tfU=function(Y,S,P,u,W){var m,J,c;return _.B(function(C){switch(C.nextAddress){case 1:return m={config:Y,hashData:S,configData:P,timestamp:W!==void 0?W:(0,_.Oh)()},_.q(C,iMa(u),2);case 2:return J=C.yieldResult,_.q(C,J.clear("coldConfigStore"),3);case 3:return _.q(C,J.put("coldConfigStore",m),4);case 4:return c=C.yieldResult,C.return(c)}})};
A9$=function(Y){var S,P;return _.B(function(u){return u.nextAddress==1?_.q(u,iMa(Y),2):u.nextAddress!=3?(S=u.yieldResult,P=void 0,_.q(u,_.Ql(S,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(W){return _.YF(W.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(m){P=m.getValue()})}),3)):u.return(P)})};
Uqu=function(Y){var S,P;return _.B(function(u){return u.nextAddress==1?_.q(u,iMa(Y),2):u.nextAddress!=3?(S=u.yieldResult,P=void 0,_.q(u,_.Ql(S,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(W){return _.YF(W.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(m){P=m.getValue()})}),3)):u.return(P)})};
QkJ=function(){return _.B(function(Y){return _.q(Y,dq8("ytGcfConfig"),0)})};
k5a=function(){return"INNERTUBE_API_KEY"in _.dw&&"INNERTUBE_API_VERSION"in _.dw};
_.Sq=function(){return{innertubeApiKey:_.X3("INNERTUBE_API_KEY"),innertubeApiVersion:_.X3("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.X3("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.X3("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.X3("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.X3("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.X3("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.X3("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.X3("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Z4("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Z4("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.X3("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.OMX=function(Y){var S={client:{hl:Y.innertubeContextHostLanguage,gl:Y.innertubeContextGeoLocation,clientName:Y.innertubeContextClientName,clientVersion:Y.innertubeContextClientVersion,configInfo:Y.innertubeContextClientConfigInfo}};navigator.userAgent&&(S.client.userAgent=String(navigator.userAgent));var P=_.Pa.devicePixelRatio;P&&P!=1&&(S.client.screenDensityFloat=String(P));P=xz1();P!==""&&(S.client.experimentsToken=P);P=boE();P.length>0&&(S.request={internalExperimentFlags:P});MfU(Y,void 0,S);
y98(void 0,S);Nfu(void 0,S);HM8(Y,void 0,S);Vfu(void 0,S);_.f("start_client_gcf")&&ej9(void 0,S);_.X3("DELEGATED_SESSION_ID")&&!_.f("pageid_as_header_web")&&(S.user={onBehalfOfUser:_.X3("DELEGATED_SESSION_ID")});!_.f("fill_delegate_context_in_gel_killswitch")&&(Y=_.X3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(S.user=Object.assign({},S.user,{serializedDelegationContext:Y}));Y=_.X3("INNERTUBE_CONTEXT");var u;if(_.f("enable_persistent_device_token")&&(Y==null?0:(u=Y.client)==null?0:u.rolloutToken)){var W;
S.client.rolloutToken=Y==null?void 0:(W=Y.client)==null?void 0:W.rolloutToken}u=Object;W=u.assign;Y=S.client;P={};for(var m=_.n(Object.entries(_.kZ(_.X3("DEVICE","")))),J=m.next();!J.done;J=m.next()){var c=_.n(J.value);J=c.next().value;c=c.next().value;J==="cbrand"?P.deviceMake=c:J==="cmodel"?P.deviceModel=c:J==="cbr"?P.browserName=c:J==="cbrver"?P.browserVersion=c:J==="cos"?P.osName=c:J==="cosver"?P.osVersion=c:J==="cplatform"&&(P.platform=c)}S.client=W.call(u,Y,P);return S};
MfU=function(Y,S,P){Y=Y.innertubeContextClientName;if(Y==="WEB"||Y==="MWEB"||Y===1||Y===2)if(S){P=_.P_(S,YV$,96)||new YV$;var u=SVf();u=Object.keys(PjK).indexOf(u);u=u===-1?null:u;u!==null&&_.uX(P,3,u);_.N8(S,96,P)}else P&&(P.client.mainAppWebInfo=(u=P.client.mainAppWebInfo)!=null?u:{},P.client.mainAppWebInfo.webDisplayMode=SVf())};
y98=function(Y,S){var P=_.tA("yt.embedded_player.embed_url");P&&(Y?(S=_.P_(Y,ukE,7)||new ukE,_.zH(S,4,P),_.N8(Y,7,S)):S&&(S.thirdParty={embedUrl:P}))};
Nfu=function(Y,S){var P;if(_.f("web_log_memory_total_kbytes")&&((P=_.Pa.navigator)==null?0:P.deviceMemory)){var u;P=(u=_.Pa.navigator)==null?void 0:u.deviceMemory;Y?_.mV(Y,95,$c(P*1E6)):S&&(S.client.memoryTotalKbytes=""+P*1E6)}};
HM8=function(Y,S,P){if(Y.appInstallData)if(S){var u;P=(u=_.P_(S,nZ,62))!=null?u:new nZ;_.zH(P,6,Y.appInstallData);_.N8(S,62,P)}else P&&(P.client.configInfo=P.client.configInfo||{},P.client.configInfo.appInstallData=Y.appInstallData)};
Vfu=function(Y,S){var P=_.Ho$();P&&(Y?_.uX(Y,61,Ws$[P]):S&&(S.client.connectionType=P));_.f("web_log_effective_connection_type")&&(P=eTE())&&(Y?_.uX(Y,94,zB8[P]):S&&(S.client.effectiveConnectionType=P))};
_.jA$=function(Y,S,P){P=P===void 0?{}:P;var u={};_.X3("EOM_VISITOR_DATA")?u={"X-Goog-EOM-Visitor-Id":_.X3("EOM_VISITOR_DATA")}:u={"X-Goog-Visitor-Id":P.visitorData||_.X3("VISITOR_DATA","")};if(S&&S.includes("www.youtube-nocookie.com"))return u;S=P.authorization||_.X3("AUTHORIZATION");S||(Y?S="Bearer "+_.tA("gapi.auth.getToken")().access_token:(mTh.instance||(mTh.instance=new mTh),Y=no1(),_.f("pageid_as_header_web")||delete Y["X-Goog-PageId"],u=Object.assign({},u,Y)));S&&(u.Authorization=S);return u};
ej9=function(Y,S){var P=J61();if(P){var u=P.coldConfigData,W=P.coldHashData;P=P.hotHashData;if(Y){var m;S=(m=_.P_(Y,nZ,62))!=null?m:new nZ;u=_.zH(S,1,u);_.zH(u,3,W).setHotHashData(P);_.N8(Y,62,S)}else S&&(S.client.configInfo=S.client.configInfo||{},u&&(S.client.configInfo.coldConfigData=u),W&&(S.client.configInfo.coldHashData=W),P&&(S.client.configInfo.hotHashData=P))}};
Ji=function(Y){for(var S=Y.length;--S>=0;)Y[S]=0};
BP$=function(Y,S,P,u,W){this.static_tree=Y;this.extra_bits=S;this.extra_base=P;this.elems=u;this.max_length=W;this.has_stree=Y&&Y.length};
c6a=function(Y,S){this.dyn_tree=Y;this.max_code=0;this.stat_desc=S};
B_=function(Y,S){Y.pending_buf[Y.pending++]=S&255;Y.pending_buf[Y.pending++]=S>>>8&255};
c_=function(Y,S,P){Y.bi_valid>16-P?(Y.bi_buf|=S<<Y.bi_valid&65535,B_(Y,Y.bi_buf),Y.bi_buf=S>>16-Y.bi_valid,Y.bi_valid+=P-16):(Y.bi_buf|=S<<Y.bi_valid&65535,Y.bi_valid+=P)};
CZ=function(Y,S,P){c_(Y,P[S*2],P[S*2+1])};
CjY=function(Y,S){var P=0;do P|=Y&1,Y>>>=1,P<<=1;while(--S>0);return P>>>1};
qVa=function(Y,S,P){var u=Array(16),W=0,m;for(m=1;m<=15;m++)u[m]=W=W+P[m-1]<<1;for(P=0;P<=S;P++)W=Y[P*2+1],W!==0&&(Y[P*2]=CjY(u[W]++,W))};
RBJ=function(Y){var S;for(S=0;S<286;S++)Y.dyn_ltree[S*2]=0;for(S=0;S<30;S++)Y.dyn_dtree[S*2]=0;for(S=0;S<19;S++)Y.bl_tree[S*2]=0;Y.dyn_ltree[512]=1;Y.opt_len=Y.static_len=0;Y.last_lit=Y.matches=0};
xT1=function(Y){Y.bi_valid>8?B_(Y,Y.bi_buf):Y.bi_valid>0&&(Y.pending_buf[Y.pending++]=Y.bi_buf);Y.bi_buf=0;Y.bi_valid=0};
bba=function(Y,S,P){xT1(Y);B_(Y,P);B_(Y,~P);qR.arraySet(Y.pending_buf,Y.window,S,P,Y.pending);Y.pending+=P};
TPK=function(Y,S,P,u){var W=S*2,m=P*2;return Y[W]<Y[m]||Y[W]===Y[m]&&u[S]<=u[P]};
KsJ=function(Y,S,P){for(var u=Y.heap[P],W=P<<1;W<=Y.heap_len;){W<Y.heap_len&&TPK(S,Y.heap[W+1],Y.heap[W],Y.depth)&&W++;if(TPK(S,u,Y.heap[W],Y.depth))break;Y.heap[P]=Y.heap[W];P=W;W<<=1}Y.heap[P]=u};
r69=function(Y,S,P){var u=0;if(Y.last_lit!==0){do{var W=Y.pending_buf[Y.d_buf+u*2]<<8|Y.pending_buf[Y.d_buf+u*2+1];var m=Y.pending_buf[Y.l_buf+u];u++;if(W===0)CZ(Y,m,S);else{var J=Rd[m];CZ(Y,J+256+1,S);var c=EoU[J];c!==0&&(m-=f9u[J],c_(Y,m,c));W--;J=W<256?xF[W]:xF[256+(W>>>7)];CZ(Y,J,P);c=goE[J];c!==0&&(W-=$TJ[J],c_(Y,W,c))}}while(u<Y.last_lit)}CZ(Y,256,S)};
Gda=function(Y,S){var P=S.dyn_tree,u=S.stat_desc.static_tree,W=S.stat_desc.has_stree,m=S.stat_desc.elems,J,c=-1;Y.heap_len=0;Y.heap_max=573;for(J=0;J<m;J++)P[J*2]!==0?(Y.heap[++Y.heap_len]=c=J,Y.depth[J]=0):P[J*2+1]=0;for(;Y.heap_len<2;){var C=Y.heap[++Y.heap_len]=c<2?++c:0;P[C*2]=1;Y.depth[C]=0;Y.opt_len--;W&&(Y.static_len-=u[C*2+1])}S.max_code=c;for(J=Y.heap_len>>1;J>=1;J--)KsJ(Y,P,J);C=m;do J=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],KsJ(Y,P,1),u=Y.heap[1],Y.heap[--Y.heap_max]=J,Y.heap[--Y.heap_max]=
u,P[C*2]=P[J*2]+P[u*2],Y.depth[C]=(Y.depth[J]>=Y.depth[u]?Y.depth[J]:Y.depth[u])+1,P[J*2+1]=P[u*2+1]=C,Y.heap[1]=C++,KsJ(Y,P,1);while(Y.heap_len>=2);Y.heap[--Y.heap_max]=Y.heap[1];J=S.dyn_tree;C=S.max_code;u=S.stat_desc.static_tree;W=S.stat_desc.has_stree;m=S.stat_desc.extra_bits;var x=S.stat_desc.extra_base,b=S.stat_desc.max_length,T,K=0;for(T=0;T<=15;T++)Y.bl_count[T]=0;J[Y.heap[Y.heap_max]*2+1]=0;for(S=Y.heap_max+1;S<573;S++){var G=Y.heap[S];T=J[J[G*2+1]*2+1]+1;T>b&&(T=b,K++);J[G*2+1]=T;if(!(G>
C)){Y.bl_count[T]++;var v=0;G>=x&&(v=m[G-x]);var a=J[G*2];Y.opt_len+=a*(T+v);W&&(Y.static_len+=a*(u[G*2+1]+v))}}if(K!==0){do{for(T=b-1;Y.bl_count[T]===0;)T--;Y.bl_count[T]--;Y.bl_count[T+1]+=2;Y.bl_count[b]--;K-=2}while(K>0);for(T=b;T!==0;T--)for(G=Y.bl_count[T];G!==0;)u=Y.heap[--S],u>C||(J[u*2+1]!==T&&(Y.opt_len+=(T-J[u*2+1])*J[u*2],J[u*2+1]=T),G--)}qVa(P,c,Y.bl_count)};
hB$=function(Y,S,P){var u,W=-1,m=S[1],J=0,c=7,C=4;m===0&&(c=138,C=3);S[(P+1)*2+1]=65535;for(u=0;u<=P;u++){var x=m;m=S[(u+1)*2+1];++J<c&&x===m||(J<C?Y.bl_tree[x*2]+=J:x!==0?(x!==W&&Y.bl_tree[x*2]++,Y.bl_tree[32]++):J<=10?Y.bl_tree[34]++:Y.bl_tree[36]++,J=0,W=x,m===0?(c=138,C=3):x===m?(c=6,C=3):(c=7,C=4))}};
voX=function(Y,S,P){var u,W=-1,m=S[1],J=0,c=7,C=4;m===0&&(c=138,C=3);for(u=0;u<=P;u++){var x=m;m=S[(u+1)*2+1];if(!(++J<c&&x===m)){if(J<C){do CZ(Y,x,Y.bl_tree);while(--J!==0)}else x!==0?(x!==W&&(CZ(Y,x,Y.bl_tree),J--),CZ(Y,16,Y.bl_tree),c_(Y,J-3,2)):J<=10?(CZ(Y,17,Y.bl_tree),c_(Y,J-3,3)):(CZ(Y,18,Y.bl_tree),c_(Y,J-11,7));J=0;W=x;m===0?(c=138,C=3):x===m?(c=6,C=3):(c=7,C=4)}}};
DTY=function(Y){var S=4093624447,P;for(P=0;P<=31;P++,S>>>=1)if(S&1&&Y.dyn_ltree[P*2]!==0)return 0;if(Y.dyn_ltree[18]!==0||Y.dyn_ltree[20]!==0||Y.dyn_ltree[26]!==0)return 1;for(P=32;P<256;P++)if(Y.dyn_ltree[P*2]!==0)return 1;return 0};
bX=function(Y,S,P){Y.pending_buf[Y.d_buf+Y.last_lit*2]=S>>>8&255;Y.pending_buf[Y.d_buf+Y.last_lit*2+1]=S&255;Y.pending_buf[Y.l_buf+Y.last_lit]=P&255;Y.last_lit++;S===0?Y.dyn_ltree[P*2]++:(Y.matches++,S--,Y.dyn_ltree[(Rd[P]+256+1)*2]++,Y.dyn_dtree[(S<256?xF[S]:xF[256+(S>>>7)])*2]++);return Y.last_lit===Y.lit_bufsize-1};
KZ=function(Y,S){Y.msg=TZ[S];return S};
EQ=function(Y){for(var S=Y.length;--S>=0;)Y[S]=0};
fZ=function(Y){var S=Y.state,P=S.pending;P>Y.avail_out&&(P=Y.avail_out);P!==0&&(qR.arraySet(Y.output,S.pending_buf,S.pending_out,P,Y.next_out),Y.next_out+=P,S.pending_out+=P,Y.total_out+=P,Y.avail_out-=P,S.pending-=P,S.pending===0&&(S.pending_out=0))};
rc=function(Y,S){var P=Y.block_start>=0?Y.block_start:-1,u=Y.strstart-Y.block_start,W=0;if(Y.level>0){Y.strm.data_type===2&&(Y.strm.data_type=DTY(Y));Gda(Y,Y.l_desc);Gda(Y,Y.d_desc);hB$(Y,Y.dyn_ltree,Y.l_desc.max_code);hB$(Y,Y.dyn_dtree,Y.d_desc.max_code);Gda(Y,Y.bl_desc);for(W=18;W>=3&&Y.bl_tree[I9Y[W]*2+1]===0;W--);Y.opt_len+=3*(W+1)+5+5+4;var m=Y.opt_len+3+7>>>3;var J=Y.static_len+3+7>>>3;J<=m&&(m=J)}else m=J=u+5;if(u+4<=m&&P!==-1)c_(Y,S?1:0,3),bba(Y,P,u);else if(Y.strategy===4||J===m)c_(Y,2+(S?
1:0),3),r69(Y,gc,$F);else{c_(Y,4+(S?1:0),3);P=Y.l_desc.max_code+1;u=Y.d_desc.max_code+1;W+=1;c_(Y,P-257,5);c_(Y,u-1,5);c_(Y,W-4,4);for(m=0;m<W;m++)c_(Y,Y.bl_tree[I9Y[m]*2+1],3);voX(Y,Y.dyn_ltree,P-1);voX(Y,Y.dyn_dtree,u-1);r69(Y,Y.dyn_ltree,Y.dyn_dtree)}RBJ(Y);S&&xT1(Y);Y.block_start=Y.strstart;fZ(Y.strm)};
GZ=function(Y,S){Y.pending_buf[Y.pending++]=S};
hi=function(Y,S){Y.pending_buf[Y.pending++]=S>>>8&255;Y.pending_buf[Y.pending++]=S&255};
a91=function(Y,S){var P=Y.max_chain_length,u=Y.strstart,W=Y.prev_length,m=Y.nice_match,J=Y.strstart>Y.w_size-262?Y.strstart-(Y.w_size-262):0,c=Y.window,C=Y.w_mask,x=Y.prev,b=Y.strstart+258,T=c[u+W-1],K=c[u+W];Y.prev_length>=Y.good_match&&(P>>=2);m>Y.lookahead&&(m=Y.lookahead);do{var G=S;if(c[G+W]===K&&c[G+W-1]===T&&c[G]===c[u]&&c[++G]===c[u+1]){u+=2;for(G++;c[++u]===c[++G]&&c[++u]===c[++G]&&c[++u]===c[++G]&&c[++u]===c[++G]&&c[++u]===c[++G]&&c[++u]===c[++G]&&c[++u]===c[++G]&&c[++u]===c[++G]&&u<b;);
G=258-(b-u);u=b-258;if(G>W){Y.match_start=S;W=G;if(G>=m)break;T=c[u+W-1];K=c[u+W]}}}while((S=x[S&C])>J&&--P!==0);return W<=Y.lookahead?W:Y.lookahead};
DR=function(Y){var S=Y.w_size,P;do{var u=Y.window_size-Y.lookahead-Y.strstart;if(Y.strstart>=S+(S-262)){qR.arraySet(Y.window,Y.window,S,S,0);Y.match_start-=S;Y.strstart-=S;Y.block_start-=S;var W=P=Y.hash_size;do{var m=Y.head[--W];Y.head[W]=m>=S?m-S:0}while(--P);W=P=S;do m=Y.prev[--W],Y.prev[W]=m>=S?m-S:0;while(--P);u+=S}if(Y.strm.avail_in===0)break;W=Y.strm;P=Y.window;m=Y.strstart+Y.lookahead;var J=W.avail_in;J>u&&(J=u);J===0?P=0:(W.avail_in-=J,qR.arraySet(P,W.input,W.next_in,J,m),W.state.wrap===
1?W.adler=LsE(W.adler,P,J,m):W.state.wrap===2&&(W.adler=v_(W.adler,P,J,m)),W.next_in+=J,W.total_in+=J,P=J);Y.lookahead+=P;if(Y.lookahead+Y.insert>=3)for(u=Y.strstart-Y.insert,Y.ins_h=Y.window[u],Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[u+1])&Y.hash_mask;Y.insert&&!(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[u+3-1])&Y.hash_mask,Y.prev[u&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=u,u++,Y.insert--,Y.lookahead+Y.insert<3););}while(Y.lookahead<262&&Y.strm.avail_in!==0)};
wua=function(Y,S){for(var P;;){if(Y.lookahead<262){DR(Y);if(Y.lookahead<262&&S===0)return 1;if(Y.lookahead===0)break}P=0;Y.lookahead>=3&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+3-1])&Y.hash_mask,P=Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart);P!==0&&Y.strstart-P<=Y.w_size-262&&(Y.match_length=a91(Y,P));if(Y.match_length>=3)if(P=bX(Y,Y.strstart-Y.match_start,Y.match_length-3),Y.lookahead-=Y.match_length,Y.match_length<=Y.max_lazy_match&&Y.lookahead>=3){Y.match_length--;
do Y.strstart++,Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+3-1])&Y.hash_mask,Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart;while(--Y.match_length!==0);Y.strstart++}else Y.strstart+=Y.match_length,Y.match_length=0,Y.ins_h=Y.window[Y.strstart],Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+1])&Y.hash_mask;else P=bX(Y,0,Y.window[Y.strstart]),Y.lookahead--,Y.strstart++;if(P&&(rc(Y,!1),Y.strm.avail_out===0))return 1}Y.insert=Y.strstart<2?Y.strstart:2;return S===4?(rc(Y,
!0),Y.strm.avail_out===0?3:4):Y.last_lit&&(rc(Y,!1),Y.strm.avail_out===0)?1:2};
Id=function(Y,S){for(var P,u;;){if(Y.lookahead<262){DR(Y);if(Y.lookahead<262&&S===0)return 1;if(Y.lookahead===0)break}P=0;Y.lookahead>=3&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+3-1])&Y.hash_mask,P=Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart);Y.prev_length=Y.match_length;Y.prev_match=Y.match_start;Y.match_length=2;P!==0&&Y.prev_length<Y.max_lazy_match&&Y.strstart-P<=Y.w_size-262&&(Y.match_length=a91(Y,P),Y.match_length<=5&&(Y.strategy===1||Y.match_length===3&&
Y.strstart-Y.match_start>4096)&&(Y.match_length=2));if(Y.prev_length>=3&&Y.match_length<=Y.prev_length){u=Y.strstart+Y.lookahead-3;P=bX(Y,Y.strstart-1-Y.prev_match,Y.prev_length-3);Y.lookahead-=Y.prev_length-1;Y.prev_length-=2;do++Y.strstart<=u&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+3-1])&Y.hash_mask,Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart);while(--Y.prev_length!==0);Y.match_available=0;Y.match_length=2;Y.strstart++;if(P&&(rc(Y,!1),Y.strm.avail_out===0))return 1}else if(Y.match_available){if((P=
bX(Y,0,Y.window[Y.strstart-1]))&&rc(Y,!1),Y.strstart++,Y.lookahead--,Y.strm.avail_out===0)return 1}else Y.match_available=1,Y.strstart++,Y.lookahead--}Y.match_available&&(bX(Y,0,Y.window[Y.strstart-1]),Y.match_available=0);Y.insert=Y.strstart<2?Y.strstart:2;return S===4?(rc(Y,!0),Y.strm.avail_out===0?3:4):Y.last_lit&&(rc(Y,!1),Y.strm.avail_out===0)?1:2};
puX=function(Y,S){for(var P,u,W,m=Y.window;;){if(Y.lookahead<=258){DR(Y);if(Y.lookahead<=258&&S===0)return 1;if(Y.lookahead===0)break}Y.match_length=0;if(Y.lookahead>=3&&Y.strstart>0&&(u=Y.strstart-1,P=m[u],P===m[++u]&&P===m[++u]&&P===m[++u])){for(W=Y.strstart+258;P===m[++u]&&P===m[++u]&&P===m[++u]&&P===m[++u]&&P===m[++u]&&P===m[++u]&&P===m[++u]&&P===m[++u]&&u<W;);Y.match_length=258-(W-u);Y.match_length>Y.lookahead&&(Y.match_length=Y.lookahead)}Y.match_length>=3?(P=bX(Y,1,Y.match_length-3),Y.lookahead-=
Y.match_length,Y.strstart+=Y.match_length,Y.match_length=0):(P=bX(Y,0,Y.window[Y.strstart]),Y.lookahead--,Y.strstart++);if(P&&(rc(Y,!1),Y.strm.avail_out===0))return 1}Y.insert=0;return S===4?(rc(Y,!0),Y.strm.avail_out===0?3:4):Y.last_lit&&(rc(Y,!1),Y.strm.avail_out===0)?1:2};
FsE=function(Y,S){for(var P;;){if(Y.lookahead===0&&(DR(Y),Y.lookahead===0)){if(S===0)return 1;break}Y.match_length=0;P=bX(Y,0,Y.window[Y.strstart]);Y.lookahead--;Y.strstart++;if(P&&(rc(Y,!1),Y.strm.avail_out===0))return 1}Y.insert=0;return S===4?(rc(Y,!0),Y.strm.avail_out===0?3:4):Y.last_lit&&(rc(Y,!1),Y.strm.avail_out===0)?1:2};
ad=function(Y,S,P,u,W){this.good_length=Y;this.max_lazy=S;this.nice_length=P;this.max_chain=u;this.func=W};
sAf=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 qR.Buf16(1146);this.dyn_dtree=new qR.Buf16(122);this.bl_tree=new qR.Buf16(78);EQ(this.dyn_ltree);EQ(this.dyn_dtree);EQ(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new qR.Buf16(16);this.heap=new qR.Buf16(573);EQ(this.heap);this.heap_max=this.heap_len=0;this.depth=new qR.Buf16(573);EQ(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};
dTa=function(Y,S){if(!Y||!Y.state||S>5||S<0)return Y?KZ(Y,-2):-2;var P=Y.state;if(!Y.output||!Y.input&&Y.avail_in!==0||P.status===666&&S!==4)return KZ(Y,Y.avail_out===0?-5:-2);P.strm=Y;var u=P.last_flush;P.last_flush=S;if(P.status===42)if(P.wrap===2)Y.adler=0,GZ(P,31),GZ(P,139),GZ(P,8),P.gzhead?(GZ(P,(P.gzhead.text?1:0)+(P.gzhead.hcrc?2:0)+(P.gzhead.extra?4:0)+(P.gzhead.name?8:0)+(P.gzhead.comment?16:0)),GZ(P,P.gzhead.time&255),GZ(P,P.gzhead.time>>8&255),GZ(P,P.gzhead.time>>16&255),GZ(P,P.gzhead.time>>
24&255),GZ(P,P.level===9?2:P.strategy>=2||P.level<2?4:0),GZ(P,P.gzhead.os&255),P.gzhead.extra&&P.gzhead.extra.length&&(GZ(P,P.gzhead.extra.length&255),GZ(P,P.gzhead.extra.length>>8&255)),P.gzhead.hcrc&&(Y.adler=v_(Y.adler,P.pending_buf,P.pending,0)),P.gzindex=0,P.status=69):(GZ(P,0),GZ(P,0),GZ(P,0),GZ(P,0),GZ(P,0),GZ(P,P.level===9?2:P.strategy>=2||P.level<2?4:0),GZ(P,3),P.status=113);else{var W=8+(P.w_bits-8<<4)<<8;W|=(P.strategy>=2||P.level<2?0:P.level<6?1:P.level===6?2:3)<<6;P.strstart!==0&&(W|=
32);P.status=113;hi(P,W+(31-W%31));P.strstart!==0&&(hi(P,Y.adler>>>16),hi(P,Y.adler&65535));Y.adler=1}if(P.status===69)if(P.gzhead.extra){for(W=P.pending;P.gzindex<(P.gzhead.extra.length&65535)&&(P.pending!==P.pending_buf_size||(P.gzhead.hcrc&&P.pending>W&&(Y.adler=v_(Y.adler,P.pending_buf,P.pending-W,W)),fZ(Y),W=P.pending,P.pending!==P.pending_buf_size));)GZ(P,P.gzhead.extra[P.gzindex]&255),P.gzindex++;P.gzhead.hcrc&&P.pending>W&&(Y.adler=v_(Y.adler,P.pending_buf,P.pending-W,W));P.gzindex===P.gzhead.extra.length&&
(P.gzindex=0,P.status=73)}else P.status=73;if(P.status===73)if(P.gzhead.name){W=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>W&&(Y.adler=v_(Y.adler,P.pending_buf,P.pending-W,W)),fZ(Y),W=P.pending,P.pending===P.pending_buf_size)){var m=1;break}m=P.gzindex<P.gzhead.name.length?P.gzhead.name.charCodeAt(P.gzindex++)&255:0;GZ(P,m)}while(m!==0);P.gzhead.hcrc&&P.pending>W&&(Y.adler=v_(Y.adler,P.pending_buf,P.pending-W,W));m===0&&(P.gzindex=0,P.status=91)}else P.status=91;if(P.status===
91)if(P.gzhead.comment){W=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>W&&(Y.adler=v_(Y.adler,P.pending_buf,P.pending-W,W)),fZ(Y),W=P.pending,P.pending===P.pending_buf_size)){m=1;break}m=P.gzindex<P.gzhead.comment.length?P.gzhead.comment.charCodeAt(P.gzindex++)&255:0;GZ(P,m)}while(m!==0);P.gzhead.hcrc&&P.pending>W&&(Y.adler=v_(Y.adler,P.pending_buf,P.pending-W,W));m===0&&(P.status=103)}else P.status=103;P.status===103&&(P.gzhead.hcrc?(P.pending+2>P.pending_buf_size&&fZ(Y),
P.pending+2<=P.pending_buf_size&&(GZ(P,Y.adler&255),GZ(P,Y.adler>>8&255),Y.adler=0,P.status=113)):P.status=113);if(P.pending!==0){if(fZ(Y),Y.avail_out===0)return P.last_flush=-1,0}else if(Y.avail_in===0&&(S<<1)-(S>4?9:0)<=(u<<1)-(u>4?9:0)&&S!==4)return KZ(Y,-5);if(P.status===666&&Y.avail_in!==0)return KZ(Y,-5);if(Y.avail_in!==0||P.lookahead!==0||S!==0&&P.status!==666){u=P.strategy===2?FsE(P,S):P.strategy===3?puX(P,S):LZ[P.level].func(P,S);if(u===3||u===4)P.status=666;if(u===1||u===3)return Y.avail_out===
0&&(P.last_flush=-1),0;if(u===2&&(S===1?(c_(P,2,3),CZ(P,256,gc),P.bi_valid===16?(B_(P,P.bi_buf),P.bi_buf=0,P.bi_valid=0):P.bi_valid>=8&&(P.pending_buf[P.pending++]=P.bi_buf&255,P.bi_buf>>=8,P.bi_valid-=8)):S!==5&&(c_(P,0,3),bba(P,0,0),S===3&&(EQ(P.head),P.lookahead===0&&(P.strstart=0,P.block_start=0,P.insert=0))),fZ(Y),Y.avail_out===0))return P.last_flush=-1,0}if(S!==4)return 0;if(P.wrap<=0)return 1;P.wrap===2?(GZ(P,Y.adler&255),GZ(P,Y.adler>>8&255),GZ(P,Y.adler>>16&255),GZ(P,Y.adler>>24&255),GZ(P,
Y.total_in&255),GZ(P,Y.total_in>>8&255),GZ(P,Y.total_in>>16&255),GZ(P,Y.total_in>>24&255)):(hi(P,Y.adler>>>16),hi(P,Y.adler&65535));fZ(Y);P.wrap>0&&(P.wrap=-P.wrap);return P.pending!==0?0:1};
l9U=function(Y){if(!(this instanceof l9U))return new l9U(Y);Y=this.options=qR.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},Y||{});Y.raw&&Y.windowBits>0?Y.windowBits=-Y.windowBits:Y.gzip&&Y.windowBits>0&&Y.windowBits<16&&(Y.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new XuX;this.strm.avail_out=0;var S=this.strm;var P=Y.level,u=Y.method,W=Y.windowBits,m=Y.memLevel,J=Y.strategy;if(S){var c=1;P===-1&&(P=6);W<0?(c=0,W=-W):W>15&&
(c=2,W-=16);if(m<1||m>9||u!==8||W<8||W>15||P<0||P>9||J<0||J>4)S=KZ(S,-2);else{W===8&&(W=9);var C=new sAf;S.state=C;C.strm=S;C.wrap=c;C.gzhead=null;C.w_bits=W;C.w_size=1<<C.w_bits;C.w_mask=C.w_size-1;C.hash_bits=m+7;C.hash_size=1<<C.hash_bits;C.hash_mask=C.hash_size-1;C.hash_shift=~~((C.hash_bits+3-1)/3);C.window=new qR.Buf8(C.w_size*2);C.head=new qR.Buf16(C.hash_size);C.prev=new qR.Buf16(C.w_size);C.lit_bufsize=1<<m+6;C.pending_buf_size=C.lit_bufsize*4;C.pending_buf=new qR.Buf8(C.pending_buf_size);
C.d_buf=C.lit_bufsize;C.l_buf=3*C.lit_bufsize;C.level=P;C.strategy=J;C.method=u;if(S&&S.state){S.total_in=S.total_out=0;S.data_type=2;P=S.state;P.pending=0;P.pending_out=0;P.wrap<0&&(P.wrap=-P.wrap);P.status=P.wrap?42:113;S.adler=P.wrap===2?0:1;P.last_flush=0;if(!ZbE){u=Array(16);for(m=J=0;m<28;m++)for(f9u[m]=J,W=0;W<1<<EoU[m];W++)Rd[J++]=m;Rd[J-1]=m;for(m=J=0;m<16;m++)for($TJ[m]=J,W=0;W<1<<goE[m];W++)xF[J++]=m;for(J>>=7;m<30;m++)for($TJ[m]=J<<7,W=0;W<1<<goE[m]-7;W++)xF[256+J++]=m;for(W=0;W<=15;W++)u[W]=
0;for(W=0;W<=143;)gc[W*2+1]=8,W++,u[8]++;for(;W<=255;)gc[W*2+1]=9,W++,u[9]++;for(;W<=279;)gc[W*2+1]=7,W++,u[7]++;for(;W<=287;)gc[W*2+1]=8,W++,u[8]++;qVa(gc,287,u);for(W=0;W<30;W++)$F[W*2+1]=5,$F[W*2]=CjY(W,5);ibK=new BP$(gc,EoU,257,286,15);ooa=new BP$($F,goE,0,30,15);tRJ=new BP$([],A6X,0,19,7);ZbE=!0}P.l_desc=new c6a(P.dyn_ltree,ibK);P.d_desc=new c6a(P.dyn_dtree,ooa);P.bl_desc=new c6a(P.bl_tree,tRJ);P.bi_buf=0;P.bi_valid=0;RBJ(P);P=0}else P=KZ(S,-2);P===0&&(S=S.state,S.window_size=2*S.w_size,EQ(S.head),
S.max_lazy_match=LZ[S.level].max_lazy,S.good_match=LZ[S.level].good_length,S.nice_match=LZ[S.level].nice_length,S.max_chain_length=LZ[S.level].max_chain,S.strstart=0,S.block_start=0,S.lookahead=0,S.insert=0,S.match_length=S.prev_length=2,S.match_available=0,S.ins_h=0);S=P}}else S=-2;if(S!==0)throw Error(TZ[S]);Y.header&&(S=this.strm)&&S.state&&S.state.wrap===2&&(S.state.gzhead=Y.header);if(Y.dictionary){var x;typeof Y.dictionary==="string"?x=UT9(Y.dictionary):QAK.call(Y.dictionary)==="[object ArrayBuffer]"?
x=new Uint8Array(Y.dictionary):x=Y.dictionary;Y=this.strm;m=x;J=m.length;if(Y&&Y.state)if(x=Y.state,S=x.wrap,S===2||S===1&&x.status!==42||x.lookahead)S=-2;else{S===1&&(Y.adler=LsE(Y.adler,m,J,0));x.wrap=0;J>=x.w_size&&(S===0&&(EQ(x.head),x.strstart=0,x.block_start=0,x.insert=0),P=new qR.Buf8(x.w_size),qR.arraySet(P,m,J-x.w_size,x.w_size,0),m=P,J=x.w_size);P=Y.avail_in;u=Y.next_in;W=Y.input;Y.avail_in=J;Y.next_in=0;Y.input=m;for(DR(x);x.lookahead>=3;){m=x.strstart;J=x.lookahead-2;do x.ins_h=(x.ins_h<<
x.hash_shift^x.window[m+3-1])&x.hash_mask,x.prev[m&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=m,m++;while(--J);x.strstart=m;x.lookahead=2;DR(x)}x.strstart+=x.lookahead;x.block_start=x.strstart;x.insert=x.lookahead;x.lookahead=0;x.match_length=x.prev_length=2;x.match_available=0;Y.next_in=u;Y.input=W;Y.avail_in=P;x.wrap=S;S=0}else S=-2;if(S!==0)throw Error(TZ[S]);this._dict_set=!0}};
kdK=function(Y,S){S=S||{};S.gzip=!0;S=new l9U(S);S.push(Y,!0);if(S.err)throw S.msg||TZ[S.err];return S.result};
y6a=function(Y,S){var P=MR8();P&&P.publish.call(P,Y.toString(),Y,S)};
Obf=function(Y,S,P){var u=MR8();if(!u)return 0;var W=u.subscribe(Y.toString(),function(m,J){var c=_.tA("ytPubsub2Pubsub2SkipSubKey");c&&c==W||(c=function(){if(NPY[W])try{if(J&&Y instanceof Hb$&&Y!=m)try{var C=Y.dataClass,x=J;if(!x.args||!x.version)throw Error("Xc");try{if(!C.version_){var b=new C;C.version_=b.version}var T=C.version_}catch(K){}if(!T||x.version!=T)throw Error("Yc");try{J=Reflect.construct(C,_.NU(x.args))}catch(K){throw K.message="yt.pubsub2.Data.deserialize(): "+K.message,K;}}catch(K){throw K.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+Y.toString()+": "+K.message,K;}S.call(P||window,J)}catch(K){_.ik(K)}},VRX[Y.toString()]?_.tA("yt.scheduler.instance")?_.wc.addLowPriorityJob(c):_.Jc(c,0):c())});
NPY[W]=!0;eB8[Y.toString()]||(eB8[Y.toString()]=[]);eB8[Y.toString()].push(W);return W};
upY=function(){var Y=YC9,S=Obf(SCK,function(P){Y.apply(void 0,arguments);PIh(S)});
return S};
PIh=function(Y){var S=MR8();S&&(typeof Y==="number"&&(Y=[Y]),_.Q4(Y,function(P){S.unsubscribeByKey(P);delete NPY[P]}))};
MR8=function(){return _.tA("ytPubsub2Pubsub2Instance")};
WZh=function(Y,S,P){P=P===void 0?{sampleRate:.1}:P;Math.random()<Math.min(.02,P.sampleRate/100)&&y6a("meta_logging_csi_event",{timerName:Y,timelineData:S})};
_.zoK=function(Y){return Y?(Y=Y.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.hw(Y):null:null};
_.pZ=function(Y){return Y?(Y=Y.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.YU(Y):null:null};
nWY=function(){maK||(maK=_.pZ(_.X3("WORKER_SERIALIZATION_URL")));return maK||void 0};
_.JEJ=function(){var Y=nWY();jRa||Y===void 0||(jRa=new Worker(_.S2(Y),void 0));return jRa};
_.BT8=function(){return typeof Worker==="function"&&nWY()?!0:!1};
_.Ro$=function(){if(_.BT8()&&!cE1){var Y=function(P){P=P.data;if(P.op==="gzippedGelBatch"){var u=CIa.get(P.key);u&&(qC1(P.gzippedBatch,u.latencyPayload,u.url,u.options,u.sendFn),CIa.delete(P.key))}},S=_.JEJ();
S&&(S.addEventListener("message",Y),S.onerror=function(){CIa.clear()},cE1=!0)}};
gW8=function(Y,S,P,u,W){W=W===void 0?!1:W;var m={startTime:(0,_.Oh)(),ticks:{},infos:{}};if(FB)try{var J=xau(S);if(J!=null&&(J>bAh||J<TT1))u(Y,P);else{if(_.f("gzip_gel_with_worker")&&(_.f("initial_gzip_use_main_thread")&&!KZ9||!_.f("initial_gzip_use_main_thread"))){cE1||_.Ro$();var c=_.JEJ();if(c&&!W){CIa.set(EWa,{latencyPayload:m,url:Y,options:P,sendFn:u});c.postMessage({op:"gelBatchToGzip",serializedBatch:S,key:EWa});EWa++;return}}var C=kdK(fSf(S));qC1(C,m,Y,P,u)}}catch(x){_.AA(x),u(Y,P)}else u(Y,
P)};
qC1=function(Y,S,P,u,W){KZ9=!1;var m=(0,_.Oh)();S.ticks.gelc=m;sQ++;_.f("disable_compression_due_to_performance_degredation")&&m-S.startTime>=$a1&&(rE$++,_.f("abandon_compression_after_N_slow_zips")?sQ===_.z_("compression_disable_point")&&rE$>GM8&&(FB=!1):FB=!1);hoJ(S);u.headers||(u.headers={});u.headers["Content-Encoding"]="gzip";u.postBody=Y;u.postParams=void 0;W(P,u)};
vWf=function(Y){var S=S===void 0?!1:S;var P=P===void 0?!1:P;var u=(0,_.Oh)(),W={startTime:u,ticks:{},infos:{}},m=S?_.tA("yt.logging.gzipForFetch",!1):!0;if(FB&&m){if(!Y.body)return Y;try{var J=P?Y.body:typeof Y.body==="string"?Y.body:JSON.stringify(Y.body);m=J;if(!P&&typeof J==="string"){var c=xau(J);if(c!=null&&(c>bAh||c<TT1))return Y;P=S?{level:1}:void 0;m=kdK(fSf(J),P);var C=(0,_.Oh)();W.ticks.gelc=C;if(S){sQ++;if((_.f("disable_compression_due_to_performance_degredation")||_.f("disable_compression_due_to_performance_degradation_lr"))&&
C-u>=$a1)if(rE$++,_.f("abandon_compression_after_N_slow_zips")||_.f("abandon_compression_after_N_slow_zips_lr")){S=rE$/sQ;var x=GM8/_.z_("compression_disable_point");sQ>0&&sQ%_.z_("compression_disable_point")===0&&S>=x&&(FB=!1)}else FB=!1;hoJ(W)}}Y.headers=Object.assign({},{"Content-Encoding":"gzip"},Y.headers||{});Y.body=m;return Y}catch(b){return _.AA(b),Y}}else return Y};
xau=function(Y){try{return(new Blob(Y.split(""))).size}catch(S){return _.AA(S),null}};
hoJ=function(Y){_.f("gel_compression_csi_killswitch")||!_.f("log_gel_compression_latency")&&!_.f("log_gel_compression_latency_lr")||WZh("gel_compression",Y,{sampleRate:.1})};
Da1=function(){this.blockSize=-1};
dc=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var Y=1;Y<this.blockSize;++Y)this.pad_[Y]=0;this.total_=this.inbuf_=0;this.reset()};
aSh=function(Y){Y=Object.assign({},Y);delete Y.Authorization;var S=ISY();if(S){var P=new dc;P.update(_.X3("INNERTUBE_API_KEY"));P.update(S);Y.hash=_.QB(P.digest(),3)}return Y};
XB=function(){LZJ||(LZJ=new _.lX("yt.innertube"));return LZJ};
wTa=function(Y,S,P,u){if(u)return null;u=XB().get("nextId",!0)||1;var W=XB().get("requests",!0)||{};W[u]={method:Y,request:S,authState:aSh(P),requestTime:Math.round((0,_.Oh)())};XB().set("nextId",u+1,86400,!0);XB().set("requests",W,86400,!0);return u};
pTE=function(Y){var S=XB().get("requests",!0)||{};delete S[Y];XB().set("requests",S,86400,!0)};
sRK=function(Y){var S=XB().get("requests",!0);if(S){for(var P in S){var u=S[P];if(!(Math.round((0,_.Oh)())-u.requestTime<6E4)){var W=u.authState,m=aSh(_.jA$(!1));_.RY.equals(W,m)&&(W=u.request,"requestTimeMs"in W&&(W.requestTimeMs=Math.round((0,_.Oh)())),FZf(Y,u.method,W,{}));delete S[P]}}XB().set("requests",S,86400,!0)}};
da8=function(Y){var S;return(Y=Y==null?void 0:(S=Y.error)==null?void 0:S.code)&&Y>=400&&Y<=599?!1:!0};
lSu=function(Y){var S;Y=Y==null?void 0:(S=Y.error)==null?void 0:S.code;return!(Y!==400&&Y!==415)};
ZAE=function(){if(XTY)return XTY();var Y={};XTY=eH("LogsDatabaseV2",{objectStores:(Y.LogsRequestsStore={addedAtVersion:2},Y),shared:!1,upgrade:function(S,P,u){P(2)&&ZR(S,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});P(3);P(5)&&(u=u.objectStore("LogsRequestsStore"),u.JSC$8471_wrapped.indexNames.contains("newRequest")&&u.JSC$8471_wrapped.deleteIndex("newRequest"),ti(u,"newRequestV2",["status","interface","timestamp"]));P(7)&&S.JSC$8456_wrapped.objectStoreNames.contains("sapisid")&&S.JSC$8456_wrapped.deleteObjectStore("sapisid");
P(9)&&S.JSC$8456_wrapped.objectStoreNames.contains("SWHealthLog")&&S.JSC$8456_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return XTY()};
Ai=function(Y){return _.Uh(ZAE(),Y)};
oWY=function(Y,S){var P,u,W,m;return _.B(function(J){if(J.nextAddress==1)return P={startTime:(0,_.Oh)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.q(J,Ai(S),2);if(J.nextAddress!=3)return u=J.yieldResult,W=Object.assign({},Y,{options:JSON.parse(JSON.stringify(Y.options)),interface:_.X3("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.q(J,u.put("LogsRequestsStore",W),3);m=J.yieldResult;P.ticks.tc=(0,_.Oh)();iA9(P);return J.return(m)})};
tkf=function(Y,S){var P,u,W,m,J,c,C,x;return _.B(function(b){if(b.nextAddress==1)return P={startTime:(0,_.Oh)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.q(b,Ai(S),2);if(b.nextAddress!=3)return u=b.yieldResult,W=_.X3("INNERTUBE_CONTEXT_CLIENT_NAME",0),m=[Y,W,0],J=[Y,W,(0,_.Oh)()],c=IDBKeyRange.bound(m,J),C="prev",_.f("use_fifo_for_networkless")&&(C="next"),x=void 0,_.q(b,_.Ql(u,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(T){return _.YF(T.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:c,direction:C},function(K){K.getValue()&&(x=K.getValue(),Y==="NEW"&&(x.status="QUEUED",K.update(x)))})}),3);
P.ticks.tc=(0,_.Oh)();iA9(P);return b.return(x)})};
AEU=function(Y,S){var P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,Ai(S),2);P=u.yieldResult;return u.return(_.Ql(P,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(W){var m=W.objectStore("LogsRequestsStore");return m.get(Y).then(function(J){if(J)return J.status="QUEUED",m.put(J).then(function(){return J})})}))})};
UaE=function(Y,S,P,u){P=P===void 0?!0:P;var W;return _.B(function(m){if(m.nextAddress==1)return _.q(m,Ai(S),2);W=m.yieldResult;return m.return(_.Ql(W,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(J){var c=J.objectStore("LogsRequestsStore");return c.get(Y).then(function(C){return C?(C.status="NEW",P&&(C.sendCount+=1),u!==void 0&&(C.options.compress=u),c.put(C).then(function(){return C})):XV.resolve(void 0)})}))})};
QRh=function(Y,S){var P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,Ai(S),2);P=u.yieldResult;return u.return(P.delete("LogsRequestsStore",Y))})};
kMh=function(Y){var S,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,Ai(Y),2);S=u.yieldResult;P=(0,_.Oh)()-2592E6;return _.q(u,_.Ql(S,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(W){return MY(W.objectStore("LogsRequestsStore"),{},function(m){if(m.getValue().timestamp<=P)return m.delete().then(function(){return m.continue()})})}),0)})};
Mkh=function(){_.B(function(Y){return _.q(Y,dq8("LogsDatabaseV2"),0)})};
iA9=function(Y){_.f("nwl_csi_killswitch")||WZh("networkless_performance",Y,{sampleRate:1})};
_.NT8=function(Y){return _.Uh(yEY(),Y)};
HA8=function(Y){var S,P;_.B(function(u){if(u.nextAddress==1)return _.q(u,_.NT8(Y),2);S=u.yieldResult;P=(0,_.Oh)()-2592E6;return _.q(u,_.Ql(S,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(W){return MY(W.objectStore("SWHealthLog"),{},function(m){if(m.getValue().timestamp<=P)return m.delete().then(function(){return m.continue()})})}),0)})};
Vk9=function(Y){var S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,_.NT8(Y),2);S=P.yieldResult;return _.q(P,S.clear("SWHealthLog"),0)})};
_.UQ=function(Y,S,P,u,W,m,J){W=W===void 0?"":W;m=m===void 0?!1:m;J=J===void 0?!1:J;if(Y)if(P&&!FV("cobalt"))_.AA(new _.$2("Legacy referrer-scrubbed ping detected")),Y&&eof(Y,void 0,{scrubReferrer:!0});else if(W)G4$(Y,S,"POST",W,u);else if(_.X3("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||u||J)G4$(Y,S,"GET","",u,void 0,m,J);else{b:{try{c:{var c=new OAX({url:Y});if(rF8(c.JSC$7352_url_,"dsh")==="1")var C=null;else{var x=rF8(c.JSC$7352_url_,"ae");if(x==="1"){var b=rF8(c.JSC$7352_url_,"adurl");if(b)try{C={version:3,
directUrl:decodeURIComponent(b),asyncUrl:Gl8(c.JSC$7352_url_,"act=1","ri=1",YR9(c))};break c}catch(v){}}C=x==="2"?{version:4,directUrl:Gl8(c.JSC$7352_url_,"dct=1","suid="+c.suid_,""),asyncUrl:Gl8(c.JSC$7352_url_,"act=1","ri=1","suid="+c.suid_)}:null}}if(C){var T=_.Cz(Y);var K=!(!T||!T.endsWith("/aclk")||_.FI(Y,"ri")!=="1");break b}}catch(v){}K=!1}if(K){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(Y,"")){var G=!0;break b}}catch(v){}G=!1}G?(S&&S(),P=!0):P=!1}else P=
!1;P||eof(Y,S)}};
eof=function(Y,S,P){P=P===void 0?{}:P;var u=new Image,W=""+SR8++;PMX[W]=u;u.onload=u.onerror=function(){S&&PMX[W]&&S();delete PMX[W]};
P.scrubReferrer&&(u.referrerPolicy="no-referrer");u.src=Y};
Qn=function(Y,S){uQE(Y,S==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
WMa=function(Y){var S;return((S=document.featurePolicy)==null?0:S.allowedFeatures().includes("attribution-reporting"))?Y+"&nis=6":Y+"&nis=5"};
zC9=function(Y){if(!Y)return!1;try{var S;if(((S=_.kZ(Y))==null?void 0:S.asm)==="4")return!0}catch(P){_.ik(P)}return!1};
uQE=function(Y,S){S?(Y=WMa(Y),_.UQ(Y,void 0,void 0,void 0,"",!0,!0)):_.UQ(Y)};
n99=function(){myh||(myh=new _.lX("yt.offline"));return myh};
jKf=function(Y){if(_.f("offline_error_handling")){var S=n99().get("errors",!0)||{};S[Y.message]={name:Y.name,stack:Y.stack};Y.level&&(S[Y.message].level=Y.level);n99().set("errors",S,2592E3,!0)}};
B2X=function(Y,S,P,u){u=u===void 0?!1:u;S=_.f("web_fp_via_jspb")?Object.assign({},S):S;_.f("use_cfr_monitor")&&JKX(Y,S);if(_.f("use_request_time_ms_header"))S.headers&&Y2(Y)&&(S.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Oh)())));else{var W;if((W=S.postParams)==null?0:W.requestTimeMs)S.postParams.requestTimeMs=Math.round((0,_.Oh)())}P&&Object.keys(S).length===0?_.UQ(Y):S.compress?S.postBody?(typeof S.postBody!=="string"&&(S.postBody=JSON.stringify(S.postBody)),gW8(Y,S.postBody,
S,_.qY,u)):gW8(Y,JSON.stringify(S.postParams),S,IYu,u):_.qY(Y,S)};
cKh=function(Y,S){_.f("use_event_time_ms_header")&&Y2(Y)&&(S.headers||(S.headers={}),S.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Oh)())));return S};
_.qR1=function(){CMa||(CMa=new _.kF({logOfflineErrors:!0,enablePolling:!0}));return CMa};
JKX=function(Y,S){var P=S.onError?S.onError:function(){};
S.onError=function(W,m){MR().requestComplete(Y,!1);P(W,m)};
var u=S.onSuccess?S.onSuccess:function(){};
S.onSuccess=function(W,m){MR().requestComplete(Y,!0);u(W,m)}};
_.RCK=function(){return _.eX(document.location.toString())!=="www.youtube-nocookie.com"};
_.T21=function(){return _.tA("ytNetworklessLoggingInitializationOptions")?_.xyh.isNwlInitialized:_.bVU};
KM9=function(Y,S){if(_.f("polymer_on_demand_shady_dom")){var P;var u=(P=Y.__shady_native_firstElementChild)!=null?P:Y.firstElementChild}else u=Y.firstElementChild;for(;u;){if(Y=S(u)?u:KM9(u,S))return Y;u=u.nextElementSibling}return null};
fVh=function(){var Y=document;if("visibilityState"in Y)return Y.visibilityState;var S=E9J+"VisibilityState";if(S in Y)return Y[S]};
_.g9u=function(Y,S){var P;yn(Y,function(u){P=S[u];return!!P});
return P};
_.H_=function(Y){var S=$y$(Y);S?S.focus():_.NR(Y)};
$y$=function(Y){return(Y=KM9(Y,function(S){return _.Vn(S)?rK1(S)&&!!S.offsetParent:!1}))?Y:null};
_.NR=function(Y,S){Y.hasAttribute("tabindex")||Y.setAttribute("tabindex","-1");Y.focus(S)};
GpJ=function(Y,S,P,u){u=u===void 0?{}:u;Y.addEventListener&&(S!="mouseenter"||"onmouseenter"in document?S!="mouseleave"||"onmouseenter"in document?S=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(S="MozMousePixelScroll"):S="mouseout":S="mouseover");return _.RY.findKey(eq,function(W){var m=typeof W[4]==="boolean"&&W[4]==!!u,J=_.SS(W[4])&&_.SS(u)&&_.RY.equals(W[4],u);return!!W.length&&W[0]==Y&&W[1]==S&&W[2]==P&&(m||J)})};
_.YG=function(Y,S,P,u){u=u===void 0?{}:u;if(!Y||!Y.addEventListener&&!Y.attachEvent)return"";var W=GpJ(Y,S,P,u);if(W)return W;W=++hCa.count+"";var m=!(S!="mouseenter"&&S!="mouseleave"||!Y.addEventListener||"onmouseenter"in document);var J=m?function(c){c=new OQ(c);if(!_.rh(c.relatedTarget,function(C){return C==Y},!0))return c.currentTarget=Y,c.type=S,P.call(Y,c)}:function(c){c=new OQ(c);
c.currentTarget=Y;return P.call(Y,c)};
J=_.oj(J);Y.addEventListener?(S=="mouseenter"&&m?S="mouseover":S=="mouseleave"&&m?S="mouseout":S=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(S="MozMousePixelScroll"),v9Y()||typeof u==="boolean"?Y.addEventListener(S,J,u):Y.addEventListener(S,J,!!u.capture)):Y.attachEvent("on"+S,J);eq[W]=[Y,S,P,J,u];return W};
_.IV9=function(Y,S,P){var u=u===void 0?{}:u;var W=_.YG(Y,S,function(){_.Dyu(W);P.apply(Y,arguments)},u)};
_.Dyu=function(Y){Y&&(typeof Y=="string"&&(Y=[Y]),_.Q4(Y,function(S){if(S in eq){var P=eq[S],u=P[0],W=P[1],m=P[3];P=P[4];u.removeEventListener?v9Y()||typeof P==="boolean"?u.removeEventListener(W,m,P):u.removeEventListener(W,m,!!P.capture):u.detachEvent&&u.detachEvent("on"+W,m);delete eq[S]}}))};
Su=function(Y){this.callback_=Y;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(Y=0;Y<4;Y++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.YG(window,"mousemove",(0,_.xS)(this.onMouseMove_,this));this.timerId_=_.BQ((0,_.xS)(this.checkPosition_,this),25)};
LM9=function(){var Y={};var S=Y.preferMobileEvents===void 0?!1:Y.preferMobileEvents;Y=Y.enableScrollEventListener===void 0?!0:Y.enableScrollEventListener;if(_.tA("_lact",window)==null){var P=parseInt(_.X3("LACT"),10);P=isFinite(P)?Date.now()-Math.max(P,0):-1;_.HQ("_lact",P,window);_.HQ("_fact",P,window);P==-1&&_.PK();_.YG(document,"keydown",_.PK);_.YG(document,"keyup",_.PK);_.YG(document,"mousedown",_.PK);_.YG(document,"mouseup",_.PK);S?_.YG(window,"touchmove",function(){aVh("touchmove",200)},{passive:!0}):
(_.YG(window,"resize",function(){aVh("resize",200)}),Y&&_.YG(window,"scroll",function(){aVh("scroll",200)}));
new Su(function(){aVh("mouse",100)});
_.YG(document,"touchstart",_.PK,{passive:!0});_.YG(document,"touchend",_.PK,{passive:!0})}};
aVh=function(Y,S){wqa[Y]||(wqa[Y]=!0,_.wc.addLowPriorityJob(function(){_.PK();wqa[Y]=!1},S))};
_.PK=function(){_.tA("_lact",window)==null&&LM9();var Y=Date.now();_.HQ("_lact",Y,window);_.tA("_fact",window)==-1&&_.HQ("_fact",Y,window);(Y=_.tA("ytglobal.ytUtilActivityCallback_"))&&Y()};
_.uE=function(){var Y=_.tA("_lact",window);return Y==null?-1:Math.max(Date.now()-Y,0)};
_.n_=function(Y,S,P){var u=_.WK();if(u&&S){var W=u.subscribe(Y,function(){var m=arguments,J=function(){zy[W]&&S.apply&&typeof S.apply=="function"&&S.apply(P||window,m)};
try{_.pq8[Y]?J():_.Jc(J,0)}catch(c){_.ik(c)}},P);
zy[W]=!0;mU[Y]||(mU[Y]=[]);mU[Y].push(W);return W}return 0};
_.FM9=function(Y){var S=_.WK();S&&(typeof Y==="number"?Y=[Y]:typeof Y==="string"&&(Y=[parseInt(Y,10)]),_.Q4(Y,function(P){S.unsubscribeByKey(P);delete zy[P]}))};
_.sKu=function(Y,S){var P=_.WK();P&&P.publish.apply(P,arguments)};
_.lV9=function(Y){var S=_.WK();if(S)if(S.clear(Y),Y)dyU(Y);else for(var P in mU)dyU(P)};
_.WK=function(){return _.Pa.ytPubsubPubsubInstance};
dyU=function(Y){mU[Y]&&(Y=mU[Y],_.Q4(Y,function(S){zy[S]&&delete zy[S]}),Y.length=0)};
XqY=function(){var Y,S;return"h5vcc"in ju&&((Y=ju.h5vcc.traceEvent)==null?0:Y.traceBegin)&&((S=ju.h5vcc.traceEvent)==null?0:S.traceEnd)?1:"performance"in ju&&ju.performance.mark&&ju.performance.measure?2:0};
ZVu=function(Y){var S=XqY();switch(S){case 1:ju.h5vcc.traceEvent.traceBegin("YTLR",Y);break;case 2:ju.performance.mark(Y+"-start");break;case 0:break;default:_.O6(S,"unknown trace type")}};
iVY=function(Y){var S=XqY();switch(S){case 1:ju.h5vcc.traceEvent.traceEnd("YTLR",Y);break;case 2:S=Y+"-start";var P=Y+"-end";ju.performance.mark(P);ju.performance.measure(Y,S,P);break;case 0:break;default:_.O6(S,"unknown trace type")}};
o9X=function(Y){var S,P;(P=(S=window).onerror)==null||P.call(S,Y.message,"",0,0,Y)};
tVh=function(Y){if(_.f("web_lifecycle_error_handling_killswitch"))return Y();try{return Y()}catch(S){o9X(S)}};
AK1=function(Y){return[Y.auth===void 0?"undefined":Y.auth,Y.isJspb===void 0?"undefined":Y.isJspb,Y.cttAuthInfo===void 0?"undefined":Y.cttAuthInfo,Y.tier===void 0?"undefined":Y.tier].join("/")};
_.g=function(Y,S){if(Y)return Y[S.name]};
BK=function(){var Y=_.tA("yt.logging.ims");Y||(Y=new Jp,_.HQ("yt.logging.ims",Y));return Y};
eCK=function(Y,S){if(Y.endpoint==="log_event"){UyJ(Y);var P=QKa(Y),u=kpU(Y.payload)||"",W=MVE(u),m=200;if(W){if(W.enabled===!1&&!_.f("web_payload_policy_disabled_killswitch"))return;m=yKh(W.tier);if(m===400){N2$(Y,S);return}}cK[P]=!0;P={cttAuthInfo:P,isJspb:!1,tier:m};BK().storePayload(P,Y.payload);HVa(S,!1,P,VVE(u))}};
YXh=function(Y,S,P){if(S.endpoint==="log_event"){UyJ(void 0,S);var u=QKa(S,!0),W=MVE(Y),m=200;if(W){if(W.enabled===!1&&!_.f("web_payload_policy_disabled_killswitch"))return;m=yKh(W.tier);if(m===400){OVa(Y,S,P);return}}cK[u]=!0;u={cttAuthInfo:u,isJspb:!0,tier:m};BK().storePayload(u,yB(S.payload));HVa(P,!0,u,VVE(Y))}};
HVa=function(Y,S,P,u){S=S===void 0?!1:S;u=u===void 0?!1:u;Y&&(C_=new Y);Y=_.z_("tvhtml5_logging_max_batch_ads_fork")||_.z_("tvhtml5_logging_max_batch")||_.z_("web_logging_max_batch")||100;var W=(0,_.Oh)(),m=SX9(S,P.tier),J=m.lastDebounceQueueFromLogTimeMs;u&&(m.useVideoStatsEndPoint=!0);u=0;P&&(u=BK().getSequenceCount(P));var c=function(){Ppf({writeThenSend:!0},S,P.tier)};
u>=1E3?c():u>=Y?u2a||(u2a=Wm$(function(){c();u2a=void 0},0)):W-J>=10&&(zn8(S,P.tier),m.lastDebounceQueueFromLogTimeMs=W)};
N2$=function(Y,S){if(Y.endpoint==="log_event"){_.f("more_accurate_gel_parser")&&BK().storePayload({isJspb:!1},Y.payload);UyJ(Y);var P=QKa(Y),u=new Map;u.set(P,[Y.payload]);var W=kpU(Y.payload)||"";S&&(C_=new S);return new _.qs(function(m,J){C_&&C_.isReady()?mh9(u,C_,m,J,{bypassNetworkless:!0},!0,VVE(W)):m()})}};
OVa=function(Y,S,P){if(S.endpoint==="log_event"){UyJ(void 0,S);var u=QKa(S,!0),W=new Map;W.set(u,[yB(S.payload)]);P&&(C_=new P);return new _.qs(function(m){C_&&C_.isReady()?nBh(W,C_,m,{bypassNetworkless:!0},!0,VVE(Y)):m()})}};
QKa=function(Y,S){var P="";if(Y.dangerousLogToVisitorSession)P="visitorOnlyApprovedKey";else if(Y.cttAuthInfo){if(S===void 0?0:S){S=Y.cttAuthInfo.token;P=Y.cttAuthInfo;var u=new j_K;P.videoId?u.setVideoId(P.videoId):P.playlistId&&Rz(u,2,JIJ,wZ(P.playlistId));B0X[S]=u}else S=Y.cttAuthInfo,P={},S.videoId?P.videoId=S.videoId:S.playlistId&&(P.playlistId=S.playlistId),cIX[Y.cttAuthInfo.token]=P;P=Y.cttAuthInfo.token}return P};
Ppf=function(Y,S,P){Y=Y===void 0?{}:Y;S=S===void 0?!1:S;new _.qs(function(u,W){var m=SX9(S,P),J=m.useVideoStatsEndPoint;m.useVideoStatsEndPoint=!1;Cph(m.queueTimer);Cph(m.queueMaxTimer);m.queueMaxTimer=0;C_&&C_.isReady()?P===void 0&&_.f("enable_web_tiered_gel")?qX$(u,W,Y,S,300,J):qX$(u,W,Y,S,P,J):(zn8(S,P),u())})};
qX$=function(Y,S,P,u,W,m){var J=C_;P=P===void 0?{}:P;u=u===void 0?!1:u;W=W===void 0?200:W;m=m===void 0?!1:m;var c=new Map,C=new Map,x={isJspb:u,cttAuthInfo:void 0,tier:W},b={isJspb:u,cttAuthInfo:void 0};if(u){S=_.n(Object.keys(cK));for(W=S.next();!W.done;W=S.next())W=W.value,C=_.f("enable_web_tiered_gel")?BK().smartExtractMatchingEntries({keys:[x,b],sizeLimit:1E3}):BK().extractMatchingEntries({isJspb:!0,cttAuthInfo:W}),C.length>0&&c.set(W,C),(_.f("web_fp_via_jspb_and_json")&&P.writeThenSend||!_.f("web_fp_via_jspb_and_json"))&&
delete cK[W];nBh(c,J,Y,P,!1,m)}else{c=_.n(Object.keys(cK));for(x=c.next();!x.done;x=c.next())x=x.value,b=_.f("enable_web_tiered_gel")?BK().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:x,tier:W},{isJspb:!1,cttAuthInfo:x}],sizeLimit:1E3}):BK().extractMatchingEntries({isJspb:!1,cttAuthInfo:x}),b.length>0&&C.set(x,b),(_.f("web_fp_via_jspb_and_json")&&P.writeThenSend||!_.f("web_fp_via_jspb_and_json"))&&delete cK[x];mh9(C,J,Y,S,P,!1,m)}};
zn8=function(Y,S){Y=Y===void 0?!1:Y;S=S===void 0?200:S;var P=function(){Ppf({writeThenSend:!0},Y,S)},u=SX9(Y,S),W=u===Rnu||u===xhJ?5E3:bc$;
_.f("web_gel_timeout_cap")&&!u.queueMaxTimer&&(W=Wm$(function(){P()},W),u.queueMaxTimer=W);
Cph(u.queueTimer);W=_.X3("LOGGING_BATCH_TIMEOUT",_.z_("web_gel_debounce_ms",1E4));_.f("shorten_initial_gel_batch_timeout")&&T0K&&(W=Kmf);W=Wm$(function(){_.z_("gel_min_batch_size")>0?BK().getSequenceCount({cttAuthInfo:void 0,isJspb:Y,tier:S})>=EBh&&P():P()},W);
u.queueTimer=W};
mh9=function(Y,S,P,u,W,m,J){W=W===void 0?{}:W;var c=Math.round((0,_.Oh)()),C=Y.size,x=fQE(J);Y=_.n(Y);var b=Y.next();for(J={};!b.done;J={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},b=Y.next()){var T=_.n(b.value);b=T.next().value;T=T.next().value;J.batchRequest=_.RY.unsafeClone({context:_.OMX(S.config_||_.Sq())});if(!_.eK(T)&&!_.f("throw_err_when_logevent_malformed_killswitch")){u();break}J.batchRequest.events=T;
(T=cIX[b])&&gB1(J.batchRequest,b,T);delete cIX[b];J.dangerousLogToVisitorSession=b==="visitorOnlyApprovedKey";$hE(J.batchRequest,c,J.dangerousLogToVisitorSession);rIf(W);J.onSuccess$jscomp$3=function(K){_.f("start_client_gcf")&&_.wc.addLowPriorityJob(function(){return _.B(function(G){return _.q(G,GYf(K),0)})});
C--;C||P()};
J.networkFailures=0;J.onError$jscomp$5=function(K){return function(){K.networkFailures++;if(W.bypassNetworkless&&K.networkFailures===1)try{FZf(S,x,K.batchRequest,hnK({writeThenSend:!0},K.dangerousLogToVisitorSession,K.onSuccess$jscomp$3,K.onError$jscomp$5,m)),T0K=!1}catch(G){_.ik(G),u()}C--;C||P()}}(J);
try{FZf(S,x,J.batchRequest,hnK(W,J.dangerousLogToVisitorSession,J.onSuccess$jscomp$3,J.onError$jscomp$5,m)),T0K=!1}catch(K){_.ik(K),u()}}};
nBh=function(Y,S,P,u,W,m){u=u===void 0?{}:u;var J=Math.round((0,_.Oh)()),c={value:Y.size},C=new Map([].concat(_.cz(Y)));C=_.n(C);for(var x=C.next();!x.done;x=C.next()){var b=_.n(x.value).next().value,T=Y.get(b);x=new vBY;var K=S.config_||_.Sq(),G=new xG,v=new Dha;_.zH(v,1,K.innertubeContextHostLanguage);_.zH(v,2,K.innertubeContextGeoLocation);_.uX(v,16,K.innertubeContextClientNameFieldNumber);_.zH(v,17,K.innertubeContextClientVersion);if(K.innertubeContextClientConfigInfo){var a=K.innertubeContextClientConfigInfo,
w=new nZ;a.coldConfigData&&_.zH(w,1,a.coldConfigData);a.appInstallData&&_.zH(w,6,a.appInstallData);a.coldHashData&&_.zH(w,3,a.coldHashData);a.hotHashData&&w.setHotHashData(a.hotHashData);_.N8(v,62,w)}(a=_.Pa.devicePixelRatio)&&a!=1&&_.mV(v,65,_.S_(a));a=xz1();a!==""&&_.zH(v,54,a);a=boE();if(a.length>0){w=new IQf;for(var F=0;F<a.length;F++){var U=new bE;U.setKey(a[F].key);Rz(U,2,aQ$,wZ(a[F].value));Ty(w,15,bE,U)}_.N8(G,5,w)}MfU(K,v);y98(G);Nfu(v);HM8(K,v);Vfu(v);_.f("start_client_gcf")&&ej9(v);_.X3("DELEGATED_SESSION_ID")&&
!_.f("pageid_as_header_web")&&(K=new K_,_.zH(K,3,_.X3("DELEGATED_SESSION_ID")));!_.f("fill_delegate_context_in_gel_killswitch")&&(a=_.X3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(w=_.P_(G,K_,3)||new K_,K=G,a=_.zH(w,18,a),_.N8(K,3,a));K=v;a=_.n(Object.entries(_.kZ(_.X3("DEVICE",""))));for(w=a.next();!w.done;w=a.next())F=_.n(w.value),w=F.next().value,F=F.next().value,w==="cbrand"?_.zH(K,12,F):w==="cmodel"?_.zH(K,13,F):w==="cbr"?_.zH(K,87,F):w==="cbrver"?_.zH(K,88,F):w==="cos"?_.zH(K,18,
F):w==="cosver"?_.zH(K,19,F):w==="cplatform"&&_.uX(K,42,QWh(F));G.setClient(v);_.N8(x,1,G);if(v=B0X[b])a:{if(_.mo(v,g6(v,JIJ,1)))G=1;else if(v.getPlaylistId())G=2;else break a;_.N8(x,4,v);v=x.getContext()||new xG;K=_.P_(v,K_,3)||new K_;a=new $G;a.setToken(b);_.uX(a,1,G);Ty(K,12,$G,a);_.N8(v,3,K)}delete B0X[b];b=b==="visitorOnlyApprovedKey";Lmh()||_.r6(x,2,J);!b&&(G=_.X3("EVENT_ID"))&&(v=wZh(),K=new pZ9,_.zH(K,1,G),_.r6(K,2,v),_.N8(x,5,K));rIf(u);if(_.f("jspb_serialize_with_worker")&&(G=_.JEJ())&&
u.writeThenSend){_.Fm$.set(s_Y,{client:S,resolve:P,networklessOptions:u,isIsolated:W,useVSSEndpoint:m,dangerousLogToVisitorSession:b,requestsOutstanding:c});G.postMessage({op:"gelBatchToSerialize",batchRequest:yB(x),clientEvents:T,key:s_Y});s_Y++;break}if(T){G=[];for(v=0;v<T.length;v++)try{G.push(new Gy(T[v]))}catch(V){_.ik(new _.$2("Transport failed to deserialize "+String(T[v])))}T=G}else T=[];T=_.n(T);for(G=T.next();!G.done;G=T.next())Ty(x,3,Gy,G.value);T={startTime:(0,_.Oh)(),ticks:{},infos:{}};
x=x.serialize();T.ticks.geljspc=(0,_.Oh)();_.f("log_jspb_serialize_latency")&&WZh("gel_jspb_serialize",T,{sampleRate:.1});_.dha(x,S,P,u,W,m,b,c)}};
_.dha=function(Y,S,P,u,W,m,J,c){u=u===void 0?{}:u;c=c===void 0?{value:0}:c;m=fQE(m);u=hnK(u,J,function(C){_.f("start_client_gcf")&&_.wc.addLowPriorityJob(function(){return _.B(function(x){return _.q(x,GYf(C),0)})});
c.value--;c.value||P()},function(){c.value--;
c.value||P()},W);
u.headers["Content-Type"]="application/json+protobuf";u.postBodyFormat="JSPB";u.postBody=Y;FZf(S,m,"",u);T0K=!1};
rIf=function(Y){_.f("always_send_and_write")&&(Y.writeThenSend=!1)};
hnK=function(Y,S,P,u,W){Y={retry:!0,onSuccess:P,onError:u,networklessOptions:Y,dangerousLogToVisitorSession:S,bypassMonitoring:!!W,headers:{},postBodyFormat:"",postBody:"",compress:_.f("compress_gel")||_.f("compress_gel_lr")};Lmh()&&(Y.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Oh)())));return Y};
$hE=function(Y,S,P){Lmh()||(Y.requestTimeMs=String(S));_.f("unsplit_gel_payloads_in_logs")&&(Y.unsplitGelPayloadsInLogs=!0);!P&&(S=_.X3("EVENT_ID"))&&(P=wZh(),Y.serializedClientEventId={serializedEventId:S,clientCounter:String(P)})};
wZh=function(){var Y=_.X3("BATCH_CLIENT_COUNTER")||0;Y||(Y=Math.floor(Math.random()*65535/2));Y++;Y>65535&&(Y=1);_.lk("BATCH_CLIENT_COUNTER",Y);return Y};
gB1=function(Y,S,P){if(P.videoId)var u="VIDEO";else if(P.playlistId)u="PLAYLIST";else return;Y.credentialTransferTokenTargetId=P;Y.context=Y.context||{};Y.context.user=Y.context.user||{};Y.context.user.credentialTransferTokens=[{token:S,scope:u}]};
UyJ=function(Y,S){var P=_.mG("il_payload_scraping")==="enable_il_payload_scraping";if(!_.tA("yt.logging.transport.enableScrapingForTest"))if(P)lQE=[],_.HQ("yt.logging.transport.enableScrapingForTest",!0),_.HQ("yt.logging.transport.scrapedPayloadsForTesting",lQE),_.HQ("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.HQ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.HQ("yt.logging.transport.scrapeClientEvent",!0);else return;P=_.tA("yt.logging.transport.scrapedPayloadsForTesting");var u=_.tA("yt.logging.transport.payloadToScrape");S&&(S=_.tA("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(S.payload)())&&P.push(S);S=_.tA("yt.logging.transport.scrapeClientEvent");if(u&&u.length>=1)for(var W=0;W<u.length;W++)if(Y&&Y.payload[u[W]])if(S)P.push(Y.payload);else{var m=void 0;P.push(((m=Y)==null?void 0:m.payload)[u[W]])}_.HQ("yt.logging.transport.scrapedPayloadsForTesting",
P)};
Lmh=function(){return _.f("use_request_time_ms_header")||_.f("lr_use_request_time_ms_header")};
Wm$=function(Y,S){return _.f("transport_use_scheduler")===!1?_.Jc(Y,S):_.f("logging_avoid_blocking_during_navigation")||_.f("lr_logging_avoid_blocking_during_navigation")?_.hp(_.wc,function(){if(_.XZa().currentState==="none")Y();else{var P={};_.XZa().install((P.none={callback:Y},P))}},S):_.hp(_.wc,Y,S)};
Cph=function(Y){_.f("transport_use_scheduler")?_.wc.cancelJob(Y):_.cQ(Y)};
GYf=function(Y){var S,P,u,W,m,J,c,C,x,b;return _.B(function(T){return T.nextAddress==1?(u=(S=Y)==null?void 0:(P=S.responseContext)==null?void 0:P.globalConfigGroup,W=_.g(u,Zc1),J=(m=u)==null?void 0:m.hotHashData,c=_.g(u,ic1),x=(C=u)==null?void 0:C.coldHashData,(b=_.E().resolve(_.PQ(vK)))?J?W?_.q(T,oB1(b,J,W),2):_.q(T,oB1(b,J),2):T.jumpTo(2):T.return()):x?c?_.q(T,tDh(b,x,c),0):_.q(T,tDh(b,x),0):T.jumpTo(0)})};
SX9=function(Y,S){S=S===void 0?200:S;return Y?S===300?Rnu:AIh:S===300?xhJ:UhX};
MVE=function(Y){if(_.f("enable_web_tiered_gel")){Y=Q_f[Y||""];var S,P,u,W=_.E().resolve(_.PQ(vK))==null?void 0:(S=kYX())==null?void 0:(P=S.loggingHotConfig)==null?void 0:(u=P.eventLoggingConfig)==null?void 0:u.payloadPolicies;if(W)for(S=0;S<W.length;S++)if(W[S].payloadNumber===Y)return W[S]}};
kpU=function(Y){Y=Object.keys(Y);Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())if(S=S.value,Q_f[S])return S};
yKh=function(Y){switch(Y){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
VVE=function(Y){return Y==="gelDebuggingEvent"};
fQE=function(Y){return(Y===void 0?0:Y)&&_.f("vss_through_gel_video_stats")?"video_stats":"log_event"};
Iz=function(Y,S,P,u){u=u===void 0?{}:u;var W={},m=Math.round(u.timestamp||(0,_.Oh)());W.eventTimeMs=m<Number.MAX_SAFE_INTEGER?m:0;W[Y]=S;Y=_.uE();W.context={lastActivityMs:String(u.timestamp||!isFinite(Y)?-1:Y)};u.sequenceGroup&&!_.f("web_gel_sequence_info_killswitch")&&(Y=W.context,S=u.sequenceGroup,S={index:MDX(S),groupKey:S},Y.sequence=S,u.endOfSequence&&delete DN[u.sequenceGroup]);(u.sendIsolatedPayload?N2$:eCK)({endpoint:"log_event",payload:W,cttAuthInfo:u.cttAuthInfo,dangerousLogToVisitorSession:u.dangerousLogToVisitorSession},
P)};
MDX=function(Y){DN[Y]=Y in DN?DN[Y]+1:0;return DN[Y]};
_.L_=function(Y,S,P){P=P===void 0?{}:P;var u=az;_.Z4("ytLoggingEventsDefaultDisabled",!1)&&az===az&&(u=null);Iz(Y,S,u,P)};
_.w6=function(){if(_.f("web_fp_via_jspb")){var Y=!0;Y=Y===void 0?!1:Y;var S=yI1;yI1=[];if(S){S=_.n(S);for(var P=S.next();!P.done;P=S.next())P=P.value,Y?Iz(P.payloadName,P.payload,az,P.options):_.L_(P.payloadName,P.payload,P.options)}Ppf(void 0,!0);if(!_.f("web_fp_via_jspb_and_json"))return}Ppf(void 0,!1)};
N0$=function(Y,S){var P;if((P=S)==null?0:P.componentStack)return S;if(Y=Y.componentStack)S||(S={}),S.componentStack=iz$(Y);return S};
Hc8=function(){_.Q4(_.X3("ERRORS")||[],function(Y){_.p_.apply(null,Y)});
_.lk("ERRORS",[])};
_.F_=function(Y){_.p_(Y)};
_.sf=function(Y){_.p_(Y,"WARNING")};
VDh=function(Y){Y instanceof Error?_.p_(Y):(Y=_.SS(Y)?JSON.stringify(Y):String(Y),Y=new _.$2(Y),Y.name="RejectedPromiseError",_.sf(Y))};
enu=function(Y,S,P,u,W,m){S=S===void 0?"Unknown file":S;P=P===void 0?0:P;var J=!1,c=H_K("log_window_onerror_fraction");if(c&&Math.random()<c)J=!0;else{c=document.getElementsByTagName("script");for(var C=0,x=c.length;C<x;C++)if(c[C].src.indexOf("/debug-")>0){J=!0;break}}J&&(J=!1,W?J=!0:(typeof Y==="string"?c=Y:ErrorEvent&&Y instanceof ErrorEvent?(J=!0,c=Y.message,S=Y.filename,P=Y.lineno,u=Y.colno):(c="Unknown error",S="Unknown file",P=0),W=new _.$2(c),W.name="UnhandledWindowError",W.message=c,W.fileName=
S,W.lineNumber=P,isNaN(u)?delete W.columnNumber:W.columnNumber=u),_.f("wiz_enable_component_stack_propagation_killswitch")||(m=N0$(W,m)),m&&_.d6(W,m),J?_.p_(W):_.sf(W))};
_.p_=function(Y,S,P,u,W,m,J,c){m=m===void 0?{}:m;m.name=P||_.X3("INNERTUBE_CONTEXT_CLIENT_NAME",1);m.version=u||_.X3("INNERTUBE_CONTEXT_CLIENT_VERSION");P=m;S=S===void 0?"ERROR":S;J=J===void 0?!1:J;S=S===void 0?"ERROR":S;J=J===void 0?!1:J;if(Y&&(Y.hasOwnProperty("level")&&Y.level&&(S=Y.level),_.f("console_log_js_exceptions")&&(u=[],u.push("Name: "+Y.name),u.push("Message: "+Y.message),Y.hasOwnProperty("params")&&u.push("Error Params: "+JSON.stringify(Y.params)),Y.hasOwnProperty("args")&&u.push("Error args: "+
JSON.stringify(Y.args)),u.push("File name: "+Y.fileName),u.push("Stacktrace: "+Y.stack),u=u.join("\n"),window.console.log(u,Y)),!(OcJ>=5))){u=[];W=_.n(YDa);for(m=W.next();!m.done;m=W.next()){m=m.value;try{m()&&u.push(m())}catch(w){}}u=[].concat(_.cz(SD$),_.cz(u));var C=P28(Y);W=C.message||"Unknown Error";m=C.name||"UnknownError";var x=C.stack||Y.stacktrace||"Not available";if(x.startsWith(m+": "+W)){var b=x.split("\n");b.shift();x=b.join("\n")}b=C.lineNumber||"Not available";C=C.fileName||"Not available";
var T=0;if(Y.hasOwnProperty("args")&&Y.args&&Y.args.length)for(var K=0;K<Y.args.length&&!(T=Uza(Y.args[K],"params."+K,P,T),T>=500);K++);else if(Y.hasOwnProperty("params")&&Y.params){var G=Y.params;if(typeof Y.params==="object")for(K in G){if(G[K]){var v="params."+K,a=bY(G[K]);P[v]=a;T+=v.length+a.length;if(T>500)break}}else P.params=bY(G)}if(u.length)for(K=0;K<u.length&&!(T=Uza(u[K],"params.context."+K,P,T),T>=500);K++);navigator.vendor&&!P.hasOwnProperty("vendor")&&(P["device.vendor"]=navigator.vendor);
K={message:W,name:m,lineNumber:b,fileName:C,stack:x,params:P,sampleWeight:1};P=Number(Y.columnNumber);isNaN(P)||(K.lineNumber=K.lineNumber+":"+P);if(Y.level==="IGNORED")Y=0;else a:{Y=u58();P=_.n(Y.messageWeights);for(u=P.next();!u.done;u=P.next())if(u=u.value,K.message&&K.message.match(u.messageRegExp)){Y=u.weight;break a}Y=_.n(Y.callbackWeights);for(P=Y.next();!P.done;P=Y.next())if(P=P.value,P.callback(K)){Y=P.weight;break a}Y=1}K.sampleWeight=Y;Y=_.n(W4K);for(P=Y.next();!P.done;P=Y.next())if(P=
P.value,P.patternsForType[K.name])for(W=_.n(P.patternsForType[K.name]),u=W.next();!u.done;u=W.next())if(m=u.value,u=K.message.match(m.regexp)){K.params["params.error.original"]=u[0];W=m.groups;m={};for(b=0;b<W.length;b++)m[W[b]]=u[b+1],K.params["params.error."+W[b]]=u[b+1];K.message=P.messageFn(m);break}K.params||(K.params={});Y=u58();K.params["params.errorServiceSignature"]="msg="+Y.messageWeights.length+"&cb="+Y.callbackWeights.length;K.params["params.serviceWorker"]="false";_.Pa.document&&_.Pa.document.querySelectorAll&&
(K.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new lE(zMY,"sample")).constructor!==lE&&(K.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(K);if(K.sampleWeight!==0&&!mGa.has(K.message)){if(J&&_.f("web_enable_error_204"))nJu(S===void 0?"ERROR":S,K);else{S=S===void 0?"ERROR":S;S==="ERROR"?(jea.publish("handleError",K),_.f("record_app_crashed_web")&&JL9===0&&K.sampleWeight===1&&(JL9++,J={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.f("report_client_error_with_app_crash_ks")||(J.systemHealth={crashData:{clientError:{logMessage:{message:K.message}}}}),_.L_("appCrashed",J)),B8U++):S==="WARNING"&&jea.publish("handleWarning",K);if(_.f("kevlar_gel_error_routing")){J=S;c=c===void 0?{}:c;b:{Y=_.n(cLU);for(P=Y.next();!P.done;P=Y.next())if(FV(P.value.toLowerCase())){Y=!0;break b}Y=!1}if(Y)c=void 0;else{P={stackTrace:K.stack};K.fileName&&(P.filename=K.fileName);Y=K.lineNumber&&K.lineNumber.split?K.lineNumber.split(":"):[];Y.length!==
0&&(Y.length!==1||isNaN(Number(Y[0]))?Y.length!==2||isNaN(Number(Y[0]))||isNaN(Number(Y[1]))||(P.lineNumber=Number(Y[0]),P.columnNumber=Number(Y[1])):P.lineNumber=Number(Y[0]));Y={level:"ERROR_LEVEL_UNKNOWN",message:K.message,errorClassName:K.name,sampleWeight:K.sampleWeight};J==="ERROR"?Y.level="ERROR_LEVEL_ERROR":J==="WARNING"&&(Y.level="ERROR_LEVEL_WARNNING");P={isObfuscated:!0,browserStackInfo:P};c.pageUrl=window.location.href;c.kvPairs=[];_.X3("FEXP_EXPERIMENTS")&&(c.experimentIds=_.X3("FEXP_EXPERIMENTS"));
u=_.X3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!H_K("web_disable_gel_stp_ecatcher_killswitch")&&u)for(W=_.n(Object.keys(u)),m=W.next();!m.done;m=W.next())m=m.value,c.kvPairs.push({key:m,value:String(u[m])});if(u=K.params)for(W=_.n(Object.keys(u)),m=W.next();!m.done;m=W.next())m=m.value,c.kvPairs.push({key:"client."+m,value:String(u[m])});u=_.X3("SERVER_NAME");W=_.X3("SERVER_VERSION");u&&W&&(c.kvPairs.push({key:"server.name",value:u}),c.kvPairs.push({key:"server.version",value:W}));c={errorMetadata:c,
stackTrace:P,logMessage:Y}}c&&(_.L_("clientError",c),(J==="ERROR"||_.f("errors_flush_gel_always_killswitch"))&&_.w6())}_.f("suppress_error_204_logging")||nJu(S,K)}try{mGa.add(K.message)}catch(w){}OcJ++}}};
nJu=function(Y,S){var P=S.params||{};Y={urlParams:{a:"logerror",t:"jserror",type:S.name,msg:S.message.substr(0,250),line:S.lineNumber,level:Y,"client.name":P.name},postParams:{url:_.X3("PAGE_NAME",window.location.href),file:S.fileName},method:"POST"};P.version&&(Y["client.version"]=P.version);if(Y.postParams){S.stack&&(Y.postParams.stack=S.stack);S=_.n(Object.keys(P));for(var u=S.next();!u.done;u=S.next())u=u.value,Y.postParams["client."+u]=P[u];if(P=_.X3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(S=
_.n(Object.keys(P)),u=S.next();!u.done;u=S.next())u=u.value,Y.postParams[u]=P[u];(P=_.X3("LAVA_VERSION"))&&(Y.postParams["lava.version"]=P);P=_.X3("SERVER_NAME");S=_.X3("SERVER_VERSION");P&&S&&(Y.postParams["server.name"]=P,Y.postParams["server.version"]=S)}_.qY(_.X3("ECATCHER_REPORT_HOST","")+"/error_204",Y)};
_.C2f=function(Y,S){S=S===void 0?"ERROR":S;var P=P===void 0?{}:P;var u=_.tA("ytbin.polymer.shared.lib.tampering.info");u&&(u=u())&&(P["params.tamperingInfo"]=u.sort().join(","));_.p_(Y,S,void 0,void 0,!0,P)};
_.d6=function(Y){var S=_.Ch.apply(1,arguments);Y.args||(Y.args=[]);Array.isArray(Y.args)&&Y.args.push.apply(Y.args,_.cz(S))};
qD$=function(Y){Y.level="IGNORED"};
RMJ=function(Y,S){SD$.push(Y);S();SD$.pop()};
ZN=function(Y,S){for(var P in S)S.hasOwnProperty(P)&&(Y=_.X_(Y,P,S[P]));return Y};
_.xGX=function(Y,S,P){P=P===void 0?!1:P;if(!Y)return null;if(Y.adInfoDialogEndpoint||Y.backstageImageUploadEndpoint||Y.confirmDialogEndpoint||Y.clientActionEndpoint||Y.createBackstagePostDialogEndpoint||Y.createCommentReplyDialogEndpoint||Y.flowEndpoint||Y.guideBuilderEndpoint||Y.liveChatDialogEndpoint||Y.modalEndpoint||Y.openPopupAction||Y.shareEndpoint||Y.shareEntityEndpoint||Y.showLiveChatItemEndpoint||Y.subscriptionManagerEndpoint||Y.unlimitedCreateFamilyEndpoint||Y.unlimitedFamilyFlowEndpoint||
Y.updateCommentDialogEndpoint||Y.updateCommentReplyDialogEndpoint||Y.userFeedbackEndpoint||Y.videoEditorEndpoint||Y.ypcCancelSurveyEndpoint)return S=_.z_("polymer_report_client_url_requested_rate"),!P&&Math.random()<S&&_.sf(new _.$2("urlForEndpoint used on client endpoint",Y)),null;var u=_.z_("polymer_report_missing_web_navigation_endpoint_rate");if(Y.liveChatEndpoint||Y.liveChatReplayEndpoint)u=0;if(!Y.commandMetadata&&!Y.clickTrackingParams&&Math.random()<u){var W={},m;for(m in Y)W[m]="1";_.sf(new _.$2("Missing navigation data",
W))}W="";if(Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.url)W=Y.commandMetadata.webCommandMetadata.url;else if(Y.searchEndpoint)Math.random()<u&&_.sf(new _.$2("Should not manually handle search",Y)),W="/results?search_query="+encodeURIComponent(Y.searchEndpoint.query).replace(/%20/g,"+"),Y.searchEndpoint.params&&(W+="&sp="+Y.searchEndpoint.params);else if(Y.watchEndpoint)Math.random()<u&&_.sf(new _.$2("Should not manually handle watch",Y)),W="/watch?v="+
Y.watchEndpoint.videoId,Y.watchEndpoint.playlistId&&(W+="&list="+Y.watchEndpoint.playlistId),Y.watchEndpoint.index&&(W+="&index="+Y.watchEndpoint.index),Y.watchEndpoint.startTimeSeconds&&(W+="&t="+Y.watchEndpoint.startTimeSeconds);else if(Y.browseEndpoint)u=Y.browseEndpoint.browseId,(m=Y.browseEndpoint.canonicalBaseUrl)?W=m:u&&(W=u.substr(0,2),W=W==="FE"?u==="FEwhat_to_watch"?"/":u==="FEmy_videos"?"/my_videos":"/feed/"+u.substr(2):W==="VL"?"/playlist?list="+u.substr(2):"/channel/"+u),W&&Y.browseEndpoint.query&&
(W=ZN(W+"/search",{query:Y.browseEndpoint.query})),W&&Y.browseEndpoint.params&&(W=ZN(W,{params:Y.browseEndpoint.params}));else{if(Y.urlEndpoint)return Y.urlEndpoint.url;Y.signInEndpoint?(W="https://accounts.google.com/ServiceLogin",u={},_.RY.extend(u,S||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),S=u):Y.uploadEndpoint?W="//www.youtube.com/upload":Y.liveChatEndpoint?(W=Y.liveChatEndpoint,u=_.RY.clone(W),_.SS(W.continuation)&&(m=Object.keys(W.continuation)[0],
u.continuation=W.continuation[m].continuation),W=ZN("/youtubei/v1/live_chat/get_live_chat",u)):Y.liveChatReplayEndpoint?(W=_.RY.clone(Y.liveChatReplayEndpoint),W.currentPlayerState&&(_.RY.extend(W,W.currentPlayerState),delete W.currentPlayerState),W=ZN("/youtubei/v1/live_chat/get_live_chat_replay",W)):Y.liveChatItemContextMenuEndpoint?W=ZN("/youtubei/v1/live_chat/get_item_context_menu",Y.liveChatItemContextMenuEndpoint):Y.liveChatPurchaseMessageEndpoint?W=ZN("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
Y.liveChatPurchaseMessageEndpoint):Y.openSuperStickerBuyFlowCommand?W=ZN("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",Y.openSuperStickerBuyFlowCommand):Y.videoEditEndpoint?W=ZN("/edit",{video_id:Y.videoEditEndpoint.videoId}):Y.liveDashboardEndpoint?W=Y.liveDashboardEndpoint.videoId?ZN("/live_dashboard",{v:Y.liveDashboardEndpoint.videoId}):"/live_dashboard":Y.signalNavigationEndpoint&&Y.signalNavigationEndpoint.signal&&Y.signalNavigationEndpoint.signal==="WEBCAM"?W="/webcam":Y.getPdgBuyFlowCommand&&
(W=ZN(Y.getPdgBuyFlowCommand.buyflowApiPath,{params:Y.getPdgBuyFlowCommand.params}))}return W||P?ZN(W,S||{}):(_.sf(new _.$2("Error: Can't construct url for endpoint","keys:"+Object.keys(Y).sort().join(","),Y)),null)};
bs8=function(Y){if(Y){if(Y.browseEndpoint)return!!Y.browseEndpoint.nofollow;if(Y.watchEndpoint)return!!Y.watchEndpoint.nofollow;if(Y.urlEndpoint)return!!Y.urlEndpoint.nofollow}return!1};
_.K4u=function(Y,S){var P=S+Y,u=T8E.get(P);if(u)return u;Y=S+"-"+Y.replace(/([A-Z])/g,"-$1").toLowerCase();T8E.set(P,Y);return Y};
EJh=function(Y){var S=_.sW(Y,"action")||_.sW(Y,"command")||_.sW(Y,"endpoint");if(!S)return null;S=_.K4u(S,"yt");_.g(Y,_.iE)&&(S+="-"+_.g(Y,_.iE).signal.toLowerCase().replace(/_/g,"-"));return S};
rL9=function(Y){try{var S=Object.keys(Y)}catch(W){return[]}for(var P=0;P<S.length;P++){var u=S[P];if(fZJ.test(u)||gJf.test(u))return $Gf(Y[u])}return[]};
$Gf=function(Y){return Y.command?[Y.command]:Y.onExecutionAction?[Y.onExecutionAction]:Y.onResponseReceivedCommand?[Y.onResponseReceivedCommand]:Y.updateFlowCommand?[Y.updateFlowCommand]:Y.clientActions?Y.clientActions:Y.action?[Y.action]:Y.actions||Y.commands||Y.onResponseReceivedActions||Y.onResponseReceivedCommands||Y.onResponseReceivedEndpoints||[]};
hMU=function(Y,S){S=S===void 0?!1:S;var P=_.E().resolve(_.PQ(oz));P||(P=new GRh,_.E().addProvider({provide:oz,useValue:P}));return P&&Y&&!_.RY.isEmpty(Y)?P.getUrl(Y,S):""};
vJh=function(Y,S,P){P=P===void 0?"":P;if(S){Y.data=S;var u=hMU(S);u?(xU(Y,u),bs8(S)||!Y2(u)?Y.rel="nofollow":Y.removeAttribute("rel"),_.g(S,_.tp)&&_.g(S,_.tp).target==="TARGET_NEW_WINDOW"?Y.target="_blank":P?Y.target=P:Y.removeAttribute("target")):(Y.removeAttribute("href"),Y.removeAttribute("rel"),Y.removeAttribute("target"))}};
_.kG=function(Y,S){var P=MZ;if(hx())DG$(Y,function(){var m=_.Ch.apply(0,arguments);pJ(P,function(){S.apply(null,_.cz(m))})});
else{var u=_.Ap.getInstance(),W=F3(S);vR(function(){W.value=S});
_.LE(function(){var m={},J=_.Uf(u,(m[Y]=function(){var c=_.Ch.apply(0,arguments);pJ(P,function(){W.value.apply(W,_.cz(c))})},m));
return function(){var c={};_.QZ(u,(c[Y]="",c),J)}})}};
_.Ms=function(Y){return hx()?IZJ(Y):aZa(Y)};
_.yZ=function(Y){return hx()?IZJ(Y):aZa(Y)};
aZa=function(Y){return pE(function(){return IZJ(Y)})};
IZJ=function(Y){var S=lNa(function(P){S.value&&S.value===P||(S.__count=S.__count?S.__count+1:1);S.value=P;var u=function(){var W=z6(null);try{return Y==null?void 0:Y(P)}finally{z6(W)}}();
return function(){u==null||u();S.value=null}});
return S};
L4a=function(Y){var S=MZ,P=rK;return{getFn:function(){return function(u){S.isDisposed||vJ(function(){return CJ(function(){return Y(u)})},{stack:P})!==!0&&u.stopPropagation()}}}};
F4J=function(Y,S){if(hx())wFa(Y,function(u){var W=z6(null);try{S(u)}finally{z6(W)}});
else{var P=F3(S);vR(function(){P.value=S});
_.LE(function(){var u=Y.value;if(u){var W=function(m){P.value(m)};
u.addEventListener("yt-service-request-sent",W,void 0);return function(){u?u.removeEventListener("yt-service-request-sent",W,void 0):pFu(Y)}}pFu(Y)})}};
pFu=function(Y){var S;(S=Yd.handleError)==null||S.call.apply(S,[Yd].concat(_.cz(Fn(XKY.LOG_NULL_EL_REF_VALUE(),Y.__expectedTagName,2))))};
Ns=function(Y){if(typeof Y.children==="function")return Y.children(),null;Y=_.n(Y.children);for(var S=Y.next();!S.done;S=Y.next())S=S.value,S();return null};
sef=function(Y){var S;return((S=Y.prototype)==null?void 0:S.render)===void 0};
dG8=function(Y){Y=Y.items.map(Y.children);return Y.length>0&&typeof Y[0]==="string"?Y.join(""):Y};
XF8=function(Y,S,P){P=P===void 0?!1:P;vJ(function(){return lZu(Y,S,P)})};
lZu=function(Y,S,P){P=((P===void 0?0:P)?Zs1:isa)(Y,function(){HK(S)});
return P===null?Y:P};
HK=function(Y){if(Y!==void 0&&Y!==null)if(Y instanceof Rj)for(var S=Xn;Z6()!=null&&fNY in Z6()&&S.contains(Z6());)tx();else if(Array.isArray(Y))for(S=_.n(Y),Y=S.next();!Y.done;Y=S.next())HK(Y.value);else if(Y instanceof OU||"function"==typeof _.ph&&Y instanceof _.ph)eh(Y.toString());else if(uk(Y)){if(Z6()!==Y){var P,u;S=(u=(P=rK)==null?void 0:P.name)!=null?u:"unknown";throw Error("ec`"+Y.tagName+"`"+S);}tx()}else if(Y!=null&&Y.contentKind===mN||Y instanceof TT)for(S=oFa(Y),S=Array.from(S.childNodes),
S=_.n(S),Y=S.next();!Y.done;Y=S.next())Xn.appendChild(Y.value),tx();else if(zT(Y)&&(Y=Y.toString()),P=typeof Y,P==="boolean"||P==="number"||P==="string")eh(Y);else if(typeof Y==="function"){S=Xn;var W=Z6();W&&(W._isSignalTextNode||W._isSafeOrSanitizedHtmlNode)||B6E(S,W,Y);tx()}else if(Y.type===dG8)HK(Y.type(Object.assign({},Y.props,{children:Y.children[0]})));else{TB.beforeVisit(Y);if(typeof Y.type==="string"){a:{Y.__open||fRY(Y.type,Y.props.idomKey);W=Xn;for(S in Y.props)if(Y.props[S]!==oJK){var m=
Y.props[S];P=y1;P.push(S);P.push(m)}S=Yd.attributes;S=S===void 0?VZ:S;m=Xn;P=ly(m);DRa(m,P,S);JpK(W,Y.props,!0);if((Y.props.skip||Y.props.skipchildren)&&Xn.hasChildNodes())kd();else{if(Y.type==="style"&&yi8(Y.children)===null){kd();S=void 0;break a}HK(Y.children)}gFf();Y.__open&&(Y.__open=!1);sdu(W,Y.props);S=W}return S}if(Y.type===_.SX)HK(Y.children);else if(!tCE(Y)){S=Y;try{ALh(S)}catch(J){Y=J,(m=Yd.handleError)==null||m.call.apply(m,[Yd].concat(_.cz(Fn(Y,(W=S.type)==null?void 0:W.TAG_NAME))))}S.__open&&
(gFf(),S.__open=!1)}}};
UGh=function(Y,S){var P;sef(Y)?P=new EW(S,Y):P=new Y(S);P.JSC$8135___type=Y;P.__updateContext={nextState:P.state,isForced:!1};return P};
ALh=function(Y){var S=Y.type,P=S.TAG_NAME;if(S===Ns)Y.props.children=Y.children,S(Y.props);else{Y.children.length>0&&(Y.props.children=Y.children);var u;(u=Y.props).idomKey||(u.idomKey=S);if(P){var W=fRY(P,Y.props.idomKey);Y.__open=!0;var m=W.__instance}m||(m=UGh(S,Y.props),m.props=null,W&&(W.__instance=m,m.el=W));var J;P=((J=m.__updateContext)!=null?J:{nextState:m.state,isForced:!1}).nextState;m.__updateContext=void 0;S.getDerivedStateFromProps&&(P=S.getDerivedStateFromProps(Y.props,P));m.props=
Y.props;m.state=P;J=function(){var c=m;TB.beforeRender(c);var C=c.render(c.props);TB.afterRender(c,C);C?(c.props.idomKey&&(C.props.idomKey=c.props.idomKey),c=C):c=void 0;if(C=c)if(C.__open=Y.__open,c=HK(C),Y.__open=C.__open,!S.TAG_NAME)if(c)S.TAG_NAME=c.tagName.toLowerCase(),c.__instance=m,m.el=c;else{var x;if((x=m.hooks)==null?0:x.length){var b;(b=Yd.handleError)==null||b.call.apply(b,[Yd].concat(_.cz(Fn(Error("kd")))))}}m.didPatch();TB.didPatch(m)};
(P=m.functionComponent)?ZzU({component:P,debugInstance:m.props.debugInstance,fn:J}):J()}};
tCE=function(Y){var S=Y.type;if(!sef(S)||S===Ns||S.componentType===G6)return!1;Y.props.children=Y.children.length>1?Y.children:Y.children[0];var P,u=(P=Y.props.idomKey)!=null?P:Y.type,W;if(Z6()&&((W=Z6()[BR])==null?void 0:W.key)===u){var m=Z6(),J=m[BR];if(!J)throw Error("dc`"+m.tagName);var c;(c=J.updateSignalsFromIdomProps)==null||c.call(J,Y.props);QeU(J);return!0}if(kR$.has(S.name))throw c=S.name,S=(J=(m=rK)==null?void 0:m.name)!=null?J:"unknown",Error("cc`"+c+"`"+S);R_h(Y.type,Y.props,Y.children);
Y.props.renderedFromIdom=!0;(c=ZzU({component:Y.type,debugInstance:Y.props.debugInstance,fn:function(){return WUa(Y.type,Y.props)}}))&&MCJ(c);
return!0};
yLf=function(Y){for(var S=0;S<qP(Y).length;S++)tx()};
QeU=function(Y){var S=N8a();if(S)yLf(S);else for(var P=0;P<Y.numNodes;P++)(S=N8a())?yLf(S):tx()};
N8a=function(){var Y;return(Y=Z6()[BR])==null?void 0:Y.sourceDynamicRange};
MCJ=function(Y){Y=lRh(Y);Y=Array.isArray(Y)?Y:[Y];Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())Xn.insertBefore(S.value,Z6()),tx()};
HsE=function(Y){var S=msa(),P=pE(function(){return{value:typeof Y==="function"?Y():Y}});
return[P.value,function(u){if(KE!==null){var W;(W=Yd.handleError)==null||W.call.apply(W,[Yd].concat(_.cz(Fn(Error("ld")))))}P.value=typeof u==="function"?u(P.value):u;S.__updateContext={nextState:S.state,isForced:!0};u=y2(S.effectContext);W=PR(!1);try{if(S.el){var m,J={},c=(J.props=S.props,J.type=S.JSC$8135___type,J.children=(m=S.props.children)!=null?m:[],J[YZ]=!0,J);try{XF8(S.el,c,!0)}catch(b){var C,x;(x=Yd.handleError)==null||x.call.apply(x,[Yd].concat(_.cz(Fn(b,(C=S.JSC$8135___type)==null?void 0:
C.TAG_NAME))))}}}finally{PR(W),y2(u)}}]};
eu=function(Y,S){var P=MZ,u=function(W){pJ(P,function(){S(W)})};
window.addEventListener(Y,u,void 0);_.aI(function(){window.removeEventListener(Y,u,void 0)})};
_.Yy=function(Y,S){var P=MZ;_.LE(function(){var u,W=(u=S.observer)!=null?u:_.E().resolve(Of);if(u=Y.value){var m=VCY(u),J=[];S.showOption&&J.push(W.observe(u,function(){pJ(P,function(){S.visibilityCallback(!0)})},S.showOption));
S.hideOption&&J.push(W.observe(u,function(){pJ(P,function(){S.visibilityCallback(!1)})},S.hideOption));
S.prescanOption&&S.prescanCallback&&J.push(W.observe(u,function(){pJ(P,function(){S.prescanCallback()})},S.prescanOption));
var c;m.visibilityMonitorKeys=((c=m.visibilityMonitorKeys)!=null?c:[]).concat(J)}})};
VCY=function(Y){var S;return(S=Y.polymerController)!=null?S:Y};
_.Sr=function(Y){Y.componentType=G6};
SnX=function(Y,S){var P=eM1;return _.R(_.SX,null,_.kS(Yd.enableLazyTsx,function(){return _.R(Osu,{id:P,value:Y,children:S})},function(){var u=Ynh(P,Y);
eL(u);u=y2(u);try{return S()}finally{y2(u)}}))};
Osu=function(Y){var S=Y.children;Y=Ynh(Y.id,Y.value);eL(Y);Y=y2(Y);try{return _.R(_.SX,null,xZ(S()))}finally{y2(Y)}};
Ynh=function(Y,S){return Object.assign(Object.create(PNK),{id:Y,contextValue:S})};
utY=function(Y){var S,P=MZ;_.II(function(){var u=y2(P),W=PR(!S);try{if(S)XF8(S,Y.children(),!0);else if(S=xZ(Y.children()),!(S instanceof Element))throw Error("md");}finally{PR(W),y2(u)}});
return S};
WRa=function(Y){var S,P=LJ(function(){var u=PR(!0);try{S=qP(Y())}finally{PR(u)}},!1);
return[S,P]};
mw1=function(Y){Y=Y.buf.charCodeAt(Y.pos++);return zih[Y]};
Pe=function(Y){var S=0,P=0;do{var u=mw1(Y);S|=(u&31)<<P;P+=5}while(u&32);return S<0?S+4294967296:S};
Jg9=function(Y,S,P){nsJ(Y,S);Y[S][jFh].unshift(P)};
nsJ=function(Y,S){if(!Y[S]||!Y[S][jFh]){var P=Y[S],u=P?[P]:[];Y[S]=function(){for(var W=_.n(u),m=W.next();!m.done;m=W.next())m.value.apply(this,arguments)};
Y[S][jFh]=u}};
BLa=function(Y){if(!Y)return[];var S=[];Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())P=P.value,Array.isArray(P)?S.push.apply(S,_.cz(BLa(P))):S.push(P);return S};
_.We=function(Y,S){if(Y&&cgE.test(Y)||Y==="//")return Y;if(CNa===void 0){CNa=!1;try{var P=new URL("b","http://a");P.pathname="c%20d";CNa=P.href==="http://a/c%20d"}catch(u){}}S||(S=document.baseURI||window.location.href);if(CNa)try{return(new URL(Y,S)).href}catch(u){return Y}ug||(ug=document.implementation.createHTMLDocument("temp"),ug.base=ug.createElement("base"),ug.head.appendChild(ug.base),ug.anchor=ug.createElement("a"),ug.body.appendChild(ug.anchor));ug.base.href=S;ug.anchor.href=Y;return ug.anchor.href||
Y};
RiK=function(Y,S){return Y.replace(qnu,function(P,u,W,m){return u+"'"+_.We(W.replace(/["']/g,""),S)+"'"+m})};
xwY=function(Y){return Y.substring(0,Y.lastIndexOf("/")+1)};
KRh=function(){bR9=!1;for(var Y=z4.length,S=0;S<Y;S++){var P=z4[S];if(P)try{P()}catch(u){setTimeout(function(){throw u;})}}z4.splice(0,Y);
TL9+=Y};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(Y){console.log("["+Y.is+"]: registered")};
fKU=function(Y){Esa.push(Y)};
mu=function(Y){return gs$[Y]||(gs$[Y]=Y.indexOf("-")<0?Y:Y.replace($wX,function(S){return S[1].toUpperCase()}))};
no=function(Y){return gs$[Y]||(gs$[Y]=Y.replace(rgK,"-$1").toLowerCase())};
GIh=function(Y,S){var P=S.parentInfo&&GIh(Y,S.parentInfo);if(P)for(Y=P.firstChild,P=0;Y;Y=Y.nextSibling){if(S.parentIndex===P++)return Y}else return Y};
hi1=function(Y,S){Y=Y._methodHost||Y;return function(P){if(Y[S])Y[S](P,P.detail);else console.warn("listener method `"+S+"` not defined")}};
jr=function(Y){return Y.indexOf(".")>=0};
JJ=function(Y){var S=Y.indexOf(".");return S===-1?Y:Y.slice(0,S)};
vsX=function(Y,S){return Y.indexOf(S+".")===0};
Be=function(Y,S){return S.indexOf(Y+".")===0};
ce=function(Y,S,P){return S+P.slice(Y.length)};
DwK=function(Y,S){return Y===S||vsX(Y,S)||Be(Y,S)};
Co=function(Y){if(Array.isArray(Y)){for(var S=[],P=0;P<Y.length;P++)for(var u=Y[P].toString().split("."),W=0;W<u.length;W++)S.push(u[W]);return S.join(".")}return Y};
IKY=function(Y){return Array.isArray(Y)?Co(Y).split("."):Y.toString().split(".")};
qz=function(Y,S,P){S=IKY(S);for(var u=0;u<S.length;u++){if(!Y)return;Y=Y[S[u]]}P&&(P.path=S.join("."));return Y};
aKK=function(Y,S,P){var u=IKY(S),W=u[u.length-1];if(u.length>1){for(S=0;S<u.length-1;S++)if(Y=Y[u[S]],!Y)return;Y[W]=P}else Y[S]=P;return u.join(".")};
LRY=function(Y,S,P){var u=Y[S];if(!u)u=Y[S]={};else if(!Y.hasOwnProperty(S)&&(u=Y[S]=Object.create(Y[S]),P))for(var W in u)for(Y=u[W],S=u[W]=Array(Y.length),P=0;P<Y.length;P++)S[P]=Y[P];return u};
xy=function(Y,S,P,u,W,m){if(S){var J=!1,c=RW++,C;for(C in P){var x=W?JJ(C):C;if(x=S[x])for(var b=0,T=x.length,K=void 0;b<T&&(K=x[b]);b++)K.info&&K.info.lastRun===c||W&&!wXh(C,K.trigger)||(K.info&&(K.info.lastRun=c),K.fn(Y,C,P,u,K.info,W,m),J=!0)}return J}return!1};
wXh=function(Y,S){if(S){var P=S.name;return P==Y||!(!S.structured||!vsX(P,Y))||!(!S.wildcard||!Be(P,Y))}return!0};
pX1=function(Y,S,P,u,W){S=typeof W.method==="string"?Y[W.method]:W.method;P=W.property;S?S.call(Y,Y.__data[P],u[P]):W.dynamicFn||console.warn("observer method `"+W.method+"` not defined")};
FRU=function(Y,S,P,u){P={value:P,queueProperty:!0};u&&(P.path=u);(0,_.bg)(Y).dispatchEvent(new CustomEvent(S,{detail:P}))};
sFh=function(Y,S,P,u,W,m){m=(u=(m?JJ(S):S)!=S?S:null)?qz(Y,u):Y.__data[S];u&&m===void 0&&(m=P[S]);FRU(Y,W.eventName,m,u)};
dw8=function(Y,S,P,u,W){P=Y.__data[S];T4&&(P=T4(P,W.attrName,"attribute",Y));Y._propertyToAttribute(S,W.attrName,P)};
XXE=function(Y){var S=Y.constructor.__orderedComputedDeps;if(!S){S=new Map;for(var P=Y.__computeEffects,u=lK1(Y),W=u.counts,m=u.ready,J=u.total;u=m.shift();)S.set(u,S.size),(u=P[u])&&u.forEach(function(c){c=c.info.methodInfo;--J;--W[c]===0&&m.push(c)});
J!==0&&console.warn("Computed graph for "+Y.localName+" incomplete; circular?");Y.constructor.__orderedComputedDeps=S}return S};
lK1=function(Y){var S=Y.__computeInfo,P={};Y=Y.__computeEffects;var u=[],W=0,m;for(m in S){var J=S[m];W+=P[m]=J.args.filter(function(C){return!C.literal}).length+(J.dynamicFn?1:0)}for(var c in Y)S[c]||u.push(c);
return{counts:P,ready:u,total:W}};
iRa=function(Y,S,P,u,W){S=ZRa(Y,S,P,u,W);if(S===Ko)return!1;W=W.methodInfo;if(Y.__dataHasAccessor&&Y.__dataHasAccessor[W])return Y._setPendingProperty(W,S,!0);Y[W]=S;return!1};
Agh=function(Y,S,P,u,W,m,J){P.bindings=P.bindings||[];u={kind:u,target:W,parts:m,literal:J,isCompound:m.length!==1};P.bindings.push(u);u.target&&u.kind!="attribute"&&u.kind!="text"&&!u.isCompound&&u.parts[0].mode==="{"&&(P=u.parts[0],m=P.negate,u.listenerEvent=P.event||no(W)+"-changed",u.listenerNegate=m);W=S.nodeInfoList.length;for(P=0;P<u.parts.length;P++){var c=u.parts[P];c.compoundIndex=P;m=Y;J=S;var C=u,x=c,b=W;if(!x.literal)if(C.kind==="attribute"&&C.target[0]==="-")console.warn("Cannot set attribute "+
C.target+' because "-" is not a valid attribute starting character');else for(c=x.dependencies,C={index:b,binding:C,part:x,evaluator:m},x=0;x<c.length;x++)b=c[x],typeof b=="string"&&(b=osu(b),b.wildcard=!0),m._addTemplatePropertyEffect(J,b.rootProperty,{fn:ti$,info:C,trigger:b})}};
ti$=function(Y,S,P,u,W,m,J){J=J[W.index];var c=W.binding,C=W.part;m&&C.source&&S.length>C.source.length&&c.kind=="property"&&!c.isCompound&&J.__isPropertyEffectsClient&&J.__dataHasAccessor&&J.__dataHasAccessor[c.target]?(P=P[S],S=ce(C.source,c.target,S),J._setPendingPropertyOrPath(S,P,!1,!0)&&Y._enqueueClient(J)):(S=W.evaluator._evaluateBinding(Y,C,S,P,u,m),S!==Ko&&(c.isCompound&&(P=J.__dataCompoundStorage[c.target],P[C.compoundIndex]=S,S=P.join("")),c.kind==="attribute"||c.target!=="textContent"&&
(c.target!=="value"||J.localName!=="input"&&J.localName!=="textarea")||(S=S==void 0?"":S),C=S,T4&&(C=T4(C,c.target,c.kind,J)),c.kind=="attribute"?Y._valueToNodeAttribute(J,C,c.target):(c=c.target,J.__isPropertyEffectsClient&&J.__dataHasAccessor&&J.__dataHasAccessor[c]?J.__readOnly&&J.__readOnly[c]||J._setPendingProperty(c,C)&&Y._enqueueClient(J):Y._setUnmanagedPropertyToNode(J,c,C))))};
UwJ=function(Y,S,P){if(P.listenerEvent){var u=P.parts[0];Y.addEventListener(P.listenerEvent,function(W){var m=P.target,J=u.source,c=u.negate,C=W.detail,x=C&&C.path;x?(J=ce(m,J,x),W=C&&C.value):W=W.currentTarget[m];S.__readOnly&&S.__readOnly[J]||!S._setPendingPropertyOrPath(J,c?!W:W,!0,!!x)||C&&C.queueProperty||S._invalidateProperties()})}};
QF9=function(Y,S,P,u,W,m){m=S.static||m&&(typeof m!=="object"||m[S.methodName]);W={methodName:S.methodName,args:S.args,methodInfo:W,dynamicFn:m};for(var J=0,c=void 0;J<S.args.length&&(c=S.args[J]);J++)c.literal||Y._addPropertyEffect(c.rootProperty,P,{fn:u,info:W,trigger:c});m&&Y._addPropertyEffect(S.methodName,P,{fn:u,info:W});return W};
ZRa=function(Y,S,P,u,W){u=Y._methodHost||Y;var m=u[W.methodName];if(m)return Y=Y._marshalArgs(W.args,S,P),Y===Ko?Ko:m.apply(u,Y);W.dynamicFn||console.warn("method `"+W.methodName+"` not defined")};
kI8=function(Y){for(var S="",P=0;P<Y.length;P++)S+=Y[P].literal||"";return S};
NL8=function(Y){if(Y=Y.match(/([^\s]+?)\(([\s\S]*)\)/)){var S={methodName:Y[1],static:!0,args:MiU};return Y[2].trim()?yg9(Y[2].replace(/\\,/g,"&comma;").split(","),S):S}return null};
yg9=function(Y,S){S.args=Y.map(function(P){P=osu(P);P.literal||(S.static=!1);return P},this);
return S};
osu=function(Y){Y=Y.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var S={name:Y,value:"",literal:!1},P=Y[0];P==="-"&&(P=Y[1]);P>="0"&&P<="9"&&(P="#");switch(P){case "'":case '"':S.value=Y.slice(1,-1);S.literal=!0;break;case "#":S.value=Number(Y),S.literal=!0}S.literal||(S.rootProperty=JJ(Y),S.structured=jr(Y),S.structured&&(S.wildcard=Y.slice(-2)==".*",S.wildcard&&(S.name=Y.slice(0,-2))));return S};
HR1=function(Y,S,P){Y=qz(Y,P);Y===void 0&&(Y=S[P]);return Y};
ViJ=function(Y,S,P,u){u={indexSplices:u};EE&&!Y._overrideLegacyUndefined&&(S.splices=u);Y.notifyPath(P+".splices",u);Y.notifyPath(P+".length",S.length);EE&&!Y._overrideLegacyUndefined&&(u.indexSplices=[])};
fo=function(Y,S,P,u,W,m){ViJ(Y,S,P,[{index:u,addedCount:W,removed:m,object:S,type:"splice"}])};
ei8=function(Y){Y=RiK((Y.body?Y.body:Y).textContent,Y.baseURI);var S=document.createElement("style");S.textContent=Y;return S};
YPh=function(Y){Y=Y.trim().split(/\s+/);for(var S=[],P=0;P<Y.length;P++)S.push.apply(S,_.cz(ORK(Y[P])));return S};
ORK=function(Y){var S=gu.import(Y);if(!S)return console.warn("Could not find style data in module named",Y),[];if(S._styles===void 0){Y=[];Y.push.apply(Y,_.cz(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(S)));var P=S.querySelector("template");P&&Y.push.apply(Y,_.cz(SPh(P,S.assetpath)));S._styles=Y}return S._styles};
SPh=function(Y,S){if(!Y._styles){for(var P=[],u=Y.content.querySelectorAll("style"),W=0;W<u.length;W++){var m=u[W],J=m.getAttribute("include");J&&P.push.apply(P,_.cz(YPh(J).filter(function(c,C,x){return x.indexOf(c)===C})));
S&&(m.textContent=RiK(m.textContent,S));P.push(m)}Y._styles=P}return Y._styles};
PL1=function(Y){return(Y=gu.import(Y))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Y):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(Y){var S=[];Y=Y.querySelectorAll("link[rel=import][type~=css]");for(var P=0;P<Y.length;P++){var u=Y[P];if(u.import){var W=u.import;if((u=u.hasAttribute("shady-unscoped"))&&!W._unscopedStyle){var m=ei8(W);m.setAttribute("shady-unscoped","");W._unscopedStyle=m}else W._style||(W._style=ei8(W));S.push(u?W._unscopedStyle:W._style)}}return S};
WAJ=function(Y){Y=Y.trim().split(/\s+/);for(var S="",P=0;P<Y.length;P++)S+=uJ1(Y[P]);return S};
uJ1=function(Y){var S=gu.import(Y);if(S&&S._cssText===void 0){var P=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(S),u=S.querySelector("template");u&&(P+=z38(u,S.assetpath));S._cssText=P||null}S||console.warn("Could not find style data in module named",Y);return S&&S._cssText||""};
z38=function(Y,S){var P="";Y=SPh(Y,S);for(S=0;S<Y.length;S++){var u=Y[S];u.parentNode&&u.parentNode.removeChild(u);P+=u.textContent}return P};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(Y){var S="";Y=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Y);for(var P=0;P<Y.length;P++)S+=Y[P].textContent;return S};
$y=function(Y,S){return{index:Y,removed:[],addedCount:S}};
jqa=function(Y,S,P,u){var W=0,m=0,J=0,c=0,C=Math.min(S-W,u-m);if(W==0&&m==0)a:{for(J=0;J<C;J++)if(Y[J]!==P[J])break a;J=C}if(S==Y.length&&u==P.length){c=Y.length;for(var x=P.length,b=0;b<C-J&&nIK(Y[--c],P[--x]);)b++;c=b}W+=J;m+=J;S-=c;u-=c;if(S-W==0&&u-m==0)return[];if(W==S){for(S=$y(W,0);m<u;)S.removed.push(P[m++]);return[S]}if(m==u)return[$y(W,S-W)];C=W;J=m;u=u-J+1;c=S-C+1;S=Array(u);for(x=0;x<u;x++)S[x]=Array(c),S[x][0]=x;for(x=0;x<c;x++)S[0][x]=x;for(x=1;x<u;x++)for(b=1;b<c;b++)if(Y[C+b-1]===
P[J+x-1])S[x][b]=S[x-1][b-1];else{var T=S[x-1][b]+1,K=S[x][b-1]+1;S[x][b]=T<K?T:K}C=S.length-1;J=S[0].length-1;u=S[C][J];for(Y=[];C>0||J>0;)C==0?(Y.push(2),J--):J==0?(Y.push(3),C--):(c=S[C-1][J-1],x=S[C-1][J],b=S[C][J-1],T=x<b?x<c?x:c:b<c?b:c,T==c?(c==u?Y.push(0):(Y.push(1),u=c),C--,J--):T==x?(Y.push(3),C--,u=x):(Y.push(2),J--,u=b));Y.reverse();S=void 0;C=[];for(J=0;J<Y.length;J++)switch(Y[J]){case 0:S&&(C.push(S),S=void 0);W++;m++;break;case 1:S||(S=$y(W,0));S.addedCount++;W++;S.removed.push(P[m]);
m++;break;case 2:S||(S=$y(W,0));S.addedCount++;W++;break;case 3:S||(S=$y(W,0)),S.removed.push(P[m]),m++}S&&C.push(S);return C};
Jqa=function(Y,S){return jqa(Y,Y.length,S,S.length)};
nIK=function(Y,S){return Y===S};
cqa=function(Y){if(Y instanceof Bv8)return Y.value;throw Error("Dd`"+Y);};
CLU=function(Y,S){for(var P in S)P===null?Y.style.removeProperty(P):Y.style.setProperty(P,S[P])};
qPU=function(Y,S){return(Y=window.getComputedStyle(Y).getPropertyValue(S))?Y.trim():""};
Tva=function(Y){requestAnimationFrame(function(){R3J?R3J(Y):(xE9||(xE9=new Promise(function(S){b2u=S}),document.readyState==="complete"?b2u():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&b2u()})),xE9.then(function(){Y&&Y()}))})};
fwX=function(Y){KAU=Y&&Y.shimcssproperties?!1:EI9||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
h3X=function(Y){if(!(gIY.indexOf(Y)>-1)&&Y!=="touchend"&&$E8&&rqa&&GzE)return{passive:!0}};
aw$=function(Y){for(var S=vIJ?["click"]:gIY,P=0,u;P<S.length;P++)u=S[P],Y?(DEa.length=0,document.addEventListener(u,Iwa,!0)):document.removeEventListener(u,Iwa,!0)};
ru=function(Y){var S=Y.type;return gIY.indexOf(S)>-1?S==="mousemove"?(S=Y.buttons===void 0?1:Y.buttons,Y instanceof window.MouseEvent&&!LAa&&(S=wLK[Y.which]||0),!!(S&1)):(Y.button===void 0?0:Y.button)===0:!1};
pLX=function(Y){if(Y.type==="click"){if(Y.detail===0)return!0;var S=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y);if(!S.nodeType||S.nodeType!==Node.ELEMENT_NODE)return!0;S=S.getBoundingClientRect();var P=Y.pageX;Y=Y.pageY;return!(P>=S.left&&P<=S.right&&Y>=S.top&&Y<=S.bottom)}return!1};
FA9=function(Y,S,P){Y.movefn=S;Y.upfn=P;document.addEventListener("mousemove",S);document.addEventListener("mouseup",P)};
G4=function(Y){document.removeEventListener("mousemove",Y.movefn);document.removeEventListener("mouseup",Y.upfn);Y.movefn=null;Y.upfn=null};
sqK=function(Y,S){for(var P=document.elementFromPoint(Y,S),u=P;u&&u.shadowRoot&&!window.ShadyDOM;){var W=u;u=u.shadowRoot.elementFromPoint(Y,S);if(W===u)break;u&&(P=u)}return P};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y){var S=dEY(Y);return S.length>0?S[0]:Y.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y){var S=Y.type,P=Y.currentTarget.__polymerGestures;if(P&&(P=P[S])){if(!Y.__polymerGesturesHandled&&(Y.__polymerGesturesHandled={},S.slice(0,5)==="touch")){var u=Y.changedTouches[0];S==="touchstart"&&Y.touches.length===1&&(lwa=u.identifier);if(lwa!==u.identifier)return;$E8||(S==="touchstart"||S==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y)}u=
Y.__polymerGesturesHandled;if(!u.skip){for(var W=0,m;W<hJ.length;W++)m=hJ[W],P[m.name]&&!u[m.name]&&m.flow&&m.flow.start.indexOf(Y.type)>-1&&m.reset&&m.reset();for(W=0;W<hJ.length;W++)m=hJ[W],P[m.name]&&!u[m.name]&&(u[m.name]=!0,m[S](Y))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y){var S=Y.changedTouches[0],P=Y.type;if(P==="touchstart")XL$=S.clientX,Z29=S.clientY,i2E=!1;else if(P==="touchmove"&&!i2E){i2E=!0;P="auto";for(var u=dEY(Y),W=0,m;W<u.length;W++)if(m=u[W],m.__polymerGesturesTouchAction){P=m.__polymerGesturesTouchAction;break}u=!1;W=Math.abs(XL$-S.clientX);S=Math.abs(Z29-S.clientY);Y.cancelable&&(P==="none"?u=!0:P==="pan-x"?u=S>W:P==="pan-y"&&(u=W>S));u?Y.preventDefault():
ve("track")}};
IW=function(Y,S,P){return DY[S]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y,S,P),!0):!1};
aW=function(Y,S,P){return DY[S]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y,S,P),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y,S,P){var u=DY[S],W=u.deps,m=u.name,J=Y.__polymerGestures;J||(Y.__polymerGestures=J={});for(var c=0,C,x;c<W.length;c++)C=W[c],vIJ&&gIY.indexOf(C)>-1&&C!=="click"||((x=J[C])||(J[C]=x={_count:0}),x._count===0&&Y.addEventListener(C,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,h3X(C)),x[m]=(x[m]||0)+1,x._count=(x._count||0)+1);Y.addEventListener(S,P);u.touchAction&&_.Lo(Y,u.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y,S,P){var u=DY[S],W=u.deps;u=u.name;var m=Y.__polymerGestures;if(m)for(var J=0,c,C;J<W.length;J++)c=W[J],(C=m[c])&&C[u]&&(C[u]=(C[u]||1)-1,C._count=(C._count||1)-1,C._count===0&&Y.removeEventListener(c,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,h3X(c)));Y.removeEventListener(S,P)};
oIa=function(Y){hJ.push(Y);for(var S=0;S<Y.emits.length;S++)DY[Y.emits[S]]=Y};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y){for(var S=0,P;S<hJ.length;S++){P=hJ[S];for(var u=0,W;u<P.emits.length;u++)if(W=P.emits[u],W===Y)return P}return null};
_.Lo=function(Y,S){$E8&&Y instanceof HTMLElement&&wu.run(function(){Y.style.touchAction=S});
Y.__polymerGesturesTouchAction=S};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y,S,P){S=new Event(S,{bubbles:!0,cancelable:!0,composed:!0});S.detail=P;(0,_.bg)(Y).dispatchEvent(S);S.defaultPrevented&&(Y=P.preventer||P.sourceEvent)&&Y.preventDefault&&Y.preventDefault()};
ve=function(Y){Y=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y);Y.info&&(Y.info.prevent=!0)};
po=function(Y,S,P,u){S&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S,Y,{x:P.clientX,y:P.clientY,sourceEvent:P,preventer:u,prevent:function(W){return ve(W)}})};
tFa=function(Y,S,P){if(Y.prevent)return!1;if(Y.started)return!0;P=Math.abs(Y.y-P);return Math.abs(Y.x-S)>=5||P>=5};
Aqf=function(Y,S,P){if(S){var u=Y.moves[Y.moves.length-2],W=Y.moves[Y.moves.length-1],m=W.x-Y.x,J=W.y-Y.y,c=0;if(u){var C=W.x-u.x;c=W.y-u.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S,"track",{state:Y.state,x:P.clientX,y:P.clientY,dx:m,dy:J,ddx:C,ddy:c,sourceEvent:P,hover:function(){return sqK(P.clientX,P.clientY)}})}};
Qqh=function(Y,S,P){var u=Math.abs(S.clientX-Y.x),W=Math.abs(S.clientY-Y.y),m=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(P||S);!m||UE9[m.localName]&&m.hasAttribute("disabled")||!(isNaN(u)||isNaN(W)||u<=25&&W<=25||pLX(S))||Y.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m,"tap",{x:S.clientX,y:S.clientY,sourceEvent:S,preventer:P})};
kzu=function(Y,S,P,u,W){var m;W&&(m=typeof P==="object"&&P!==null)&&(u=Y.__dataTemp[S]);u=u!==P&&(u===u||P===P);m&&u&&(Y.__dataTemp[S]=P);return u};
yqf=function(){if(FD&&!sE){if(!MFa){MFa=!0;var Y=document.createElement("style");Y.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(Y)}return!0}return!1};
H21=function(){return Nvf};
VF$=function(Y,S){Nvf=Y;Object.setPrototypeOf(Y,S.prototype);new S;Nvf=null};
e31=function(Y,S){for(var P=0;P<S.length;P++){var u=S[P];if(!!Y!=!!u.__hideTemplateChildren__)if(u.nodeType===Node.TEXT_NODE)Y?(u.__polymerTextContent__=u.textContent,u.textContent=""):u.textContent=u.__polymerTextContent__;else if(u.localName==="slot")if(Y)u.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.bg)((0,_.bg)(u).parentNode).replaceChild(u.__polymerReplaced__,u);else{var W=u.__polymerReplaced__;W&&(0,_.bg)((0,_.bg)(W).parentNode).replaceChild(u,W)}else u.style&&(Y?(u.__polymerDisplay__=
u.style.display,u.style.display="none"):u.style.display=u.__polymerDisplay__);u.__hideTemplateChildren__=Y;u._showHideChildren&&u._showHideChildren(Y)}};
O28=function(Y){return(Y=Y.__dataHost)&&Y._methodHost||Y};
PJh=function(Y,S,P){var u=P.mutableData?Ysh:du;lg.mixin&&(u=lg.mixin(u));var W=function(){return u.apply(this,arguments)||this};
_.r(W,u);W.prototype.__templatizeOptions=P;W.prototype._bindTemplate(Y);Ssa(W,Y,S,P);return W};
naX=function(Y,S,P,u){var W=P.forwardHostProp;if(W&&S.hasHostProps){var m=Y.localName=="template",J=S.templatizeTemplateClass;if(!J){if(m){var c=P.mutableData?uW1:WF$;J=function(){return c.apply(this,arguments)||this};
_.r(J,c);J=S.templatizeTemplateClass=J}else{var C=Y.constructor;J=function(){return C.apply(this,arguments)||this};
_.r(J,C);J=S.templatizeTemplateClass=J}var x=S.hostProps,b;for(b in x)J.prototype._addPropertyEffect("_host_"+b,J.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:z69(W)}),J.prototype._createNotifyingProperty("_host_"+b);XD&&u&&mF1(S,P,u)}Y.__dataProto&&Object.assign(Y.__data,Y.__dataProto);if(m)VF$(Y,J),Y.__dataTemp={},Y.__dataPending=null,Y.__dataOld=null,Y._enableProperties();else{Object.setPrototypeOf(Y,J.prototype);S=S.hostProps;for(var T in S)T="_host_"+T,T in Y&&(S=Y[T],delete Y[T],Y.__data[T]=
S)}}};
z69=function(Y){return function(S,P,u){Y.call(S.__templatizeOwner,P.substring(6),u[P])}};
Ssa=function(Y,S,P,u){var W=P.hostProps||{},m;for(m in u.instanceProps){delete W[m];var J=u.notifyInstanceProp;J&&Y.prototype._addPropertyEffect(m,Y.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:jf9(J)})}if(u.forwardHostProp&&S.__dataHost)for(var c in W)P.hasHostProps||(P.hasHostProps=!0),Y.prototype._addPropertyEffect(c,Y.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Jh1()})};
jf9=function(Y){return function(S,P,u){Y.call(S.__templatizeOwner,S,P,u[P])}};
Jh1=function(){return function(Y,S,P){Y.__dataHost._setPendingPropertyOrPath("_host_"+S,P[S],!0,!0)}};
lg=function(Y,S,P){if(ZY&&!O28(Y))throw Error("Jd");P=P||{};if(Y.__templatizeOwner)throw Error("Kd");Y.__templatizeOwner=S;var u=(S?S.constructor:du)._parseTemplate(Y),W=u.templatizeInstanceClass;W||(W=PJh(Y,u,P),u.templatizeInstanceClass=W);var m=O28(Y);naX(Y,u,P,m);P=function(){return W.apply(this,arguments)||this};
_.r(P,W);P.prototype._methodHost=m;P.prototype.__dataHost=Y;P.prototype.__templatizeOwner=S;P.prototype.__hostProps=u.hostProps;return P};
mF1=function(Y,S,P){P=P.constructor._properties;Y=Y.propertyEffects;S=S.instanceProps;for(var u in Y)if(!(P[u]||S&&S[u]))for(var W=Y[u],m=0;m<W.length;m++){var J=W[m].info.part;if(!J.signature||!J.signature.static){console.warn("Property '"+u+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
BHE=function(Y,S){for(var P;S;)if(P=S.__dataHost?S:S.__templatizeInstance)if(P.__dataHost!=Y)S=P.__dataHost;else return P;else S=(0,_.bg)(S).parentNode;return null};
ig=function(Y){return Y.localName==="slot"};
chu=function(){for(var Y=oW.prototype,S="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),P={},u=0;u<S.length;P={method$jscomp$32:void 0},u++)P.method$jscomp$32=S[u],Y[P.method$jscomp$32]=function(W){return function(){return this.node[W.method$jscomp$32].apply(this.node,arguments)}}(P)};
CJu=function(Y,S){for(var P={},u=0;u<S.length;P={name$jscomp$377:void 0},u++)P.name$jscomp$377=S[u],Object.defineProperty(Y,P.name$jscomp$377,{get:function(W){return function(){return this.node[W.name$jscomp$377]}}(P),
configurable:!0})};
qsK=function(){for(var Y=oW.prototype,S=["textContent","innerHTML","className"],P={},u=0;u<S.length;P={name$jscomp$378:void 0},u++)P.name$jscomp$378=S[u],Object.defineProperty(Y,P.name$jscomp$378,{get:function(W){return function(){return this.node[W.name$jscomp$378]}}(P),
set:function(W){return function(m){this.node[W.name$jscomp$378]=m}}(P),
configurable:!0})};
R6a=function(){tJ=document.documentElement.getAttribute("dir");tJ=document.documentElement.getAttribute("dir");for(var Y=0;Y<AJ.length;Y++){var S=AJ[Y];S.__autoDirOptOut||S.setAttribute("dir",tJ)}};
KF1=function(){UE=!0;requestAnimationFrame(function(){UE=!1;xFa(b6a);setTimeout(function(){for(var Y=0,S=Q6.length;Y<S;Y++)THf(Q6.shift())})})};
xFa=function(Y){for(;Y.length;)THf(Y.shift())};
THf=function(Y){var S=Y[0],P=Y[1];Y=Y[2];try{P.apply(S,Y)}catch(u){setTimeout(function(){throw u;})}};
_.Ea8=function(Y,S,P){UE||KF1();b6a.push([Y,S,P])};
_.ky=function(Y,S,P){UE||KF1();Q6.push([Y,S,P])};
$FY=function(Y,S){S=S===void 0?!1:S;if(!f_a||!gaY||!f_a.handlesDynamicScoping)return null;var P=gaY.ScopingShim;if(!P)return null;var u=P.scopeForNode(Y),W=(0,_.bg)(Y).getRootNode(),m=function(J){if((0,_.bg)(J).getRootNode()===W){var c=Array.from(f_a.nativeMethods.querySelectorAll.call(J,"*"));c.push(J);for(J=0;J<c.length;J++){var C=c[J];if((0,_.bg)(C).getRootNode()===W){var x=P.currentScopeForNode(C);x!==u&&(x!==""&&P.unscopeNode(C,x),P.scopeNode(C,u))}}}};
m(Y);return S?(S=new MutationObserver(function(J){for(var c=0;c<J.length;c++)for(var C=J[c],x=0;x<C.addedNodes.length;x++){var b=C.addedNodes[x];b.nodeType===Node.ELEMENT_NODE&&m(b)}}),S.observe(Y,{childList:!0,
subtree:!0}),S):null};
rhh=function(){document.body.removeAttribute("unresolved")};
I_9=function(Y){var S=Y=Y.replace(GtU,"").replace(h6a,""),P=new vaY;P.start=0;P.end=S.length;for(var u=P,W=0,m=S.length;W<m;W++)if(S[W]==="{"){u.rules||(u.rules=[]);var J=u,c=J.rules[J.rules.length-1]||null;u=new vaY;u.start=W+1;u.parent=J;u.previous=c;J.rules.push(u)}else S[W]==="}"&&(u.end=W+1,u=u.parent||P);return DFa(P,Y)};
DFa=function(Y,S){var P=S.substring(Y.start,Y.end-1);Y.parsedCssText=Y.cssText=P.trim();Y.parent&&(P=S.substring(Y.previous?Y.previous.end:Y.parent.start,Y.start-1),P=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(P),P=P.replace(a_X," "),P=P.substring(P.lastIndexOf(";")+1),P=Y.parsedSelector=Y.selector=P.trim(),Y.atRule=P.indexOf("@")===0,Y.atRule?P.indexOf("@media")===0?Y.type=4:P.match(LFU)&&(Y.type=7,Y.keyframesName=Y.selector.split(a_X).pop()):P.indexOf("--")===
0?Y.type=1E3:Y.type=1);if(P=Y.rules)for(var u=0,W=P.length,m=void 0;u<W&&(m=P[u]);u++)DFa(m,S);return Y};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(Y){return Y.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var S=arguments[1],P=6-S.length;P--;)S="0"+S;return"\\"+S})};
wBa=function(Y,S,P){P=P===void 0?"":P;var u="";if(Y.cssText||Y.rules){var W=Y.rules;if(W&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(W))for(var m=0,J=W.length,c=void 0;m<J&&(c=W[m]);m++)u=wBa(c,S,u);else S?S=Y.cssText:(S=Y.cssText,S=S.replace(pBa,"").replace(FFU,""),S=S.replace(sfY,"").replace(dFX,"")),(u=S.trim())&&(u="  "+u+"\n")}u&&(Y.selector&&(P+=Y.selector+" {\n"),P+=u,Y.selector&&(P+="}\n\n"));return P};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(Y){Y=Y[0];return!!Y&&!!Y.selector&&Y.selector.indexOf("--")===0};
XB9=function(Y){if(Y=l_a[Y])Y._applyShimCurrentVersion=Y._applyShimCurrentVersion||0,Y._applyShimValidatingVersion=Y._applyShimValidatingVersion||0,Y._applyShimNextVersion=(Y._applyShimNextVersion||0)+1};
Z6X=function(Y){return Y._applyShimCurrentVersion===Y._applyShimNextVersion};
oa8=function(Y){Y._applyShimValidatingVersion=Y._applyShimNextVersion;Y._validating||(Y._validating=!0,i6E.then(function(){Y._applyShimCurrentVersion=Y._applyShimNextVersion;Y._validating=!1}))};
AhX=function(Y){if(!Y)return"";typeof Y==="string"&&(Y=I_9(Y));return wBa(Y,tba)};
UFE=function(Y){!Y.__cssRules&&Y.textContent&&(Y.__cssRules=I_9(Y.textContent));return Y.__cssRules||null};
ktK=function(Y,S,P,u){if(Y){var W=!1,m=Y.type;if(u&&m===4){var J=Y.selector.match(Qff);J&&(window.matchMedia(J[1]).matches||(W=!0))}m===1?S(Y):P&&m===7?P(Y):m===1E3&&(W=!0);if((Y=Y.rules)&&!W)for(W=0,m=Y.length,J=void 0;W<m&&(J=Y[W]);W++)ktK(J,S,P,u)}};
MbK=function(Y,S){var P=Y.indexOf("var(");if(P===-1)return S(Y,"","","");a:{var u=0;var W=P+3;for(var m=Y.length;W<m;W++)if(Y[W]==="(")u++;else if(Y[W]===")"&&--u===0)break a;W=-1}u=Y.substring(P+4,W);P=Y.substring(0,P);Y=MbK(Y.substring(W+1),S);m=u.indexOf(",");if(m===-1)return S(P,u.trim(),"",Y);W=u.substring(0,m).trim();u=u.substring(m+1).trim();return S(P,W,u,Y)};
yhu=function(Y){if(Mz!==void 0)return Mz;if(Y.__cssBuild===void 0){var S=Y.getAttribute("css-build");if(S)Y.__cssBuild=S;else{a:{S=Y.localName==="template"?Y.content.firstChild:Y.firstChild;if(S instanceof Comment&&(S=S.textContent.trim().split(":"),S[0]==="css-build")){S=S[1];break a}S=""}if(S!==""){var P=Y.localName==="template"?Y.content.firstChild:Y.firstChild;P.parentNode.removeChild(P)}Y.__cssBuild=S}}return Y.__cssBuild||""};
H68=function(Y,S,P,u){for(var W=S._noAccessors,m=Object.getOwnPropertyNames(S),J=0;J<m.length;J++){var c=m[J];if(!(c in u))if(W)Y[c]=S[c];else{var C=Object.getOwnPropertyDescriptor(S,c);C&&(C.configurable=!0,Object.defineProperty(Y,c,C))}}for(var x in NHh)S[x]&&(P[x]=P[x]||[],P[x].push(S[x]))};
VbE=function(Y,S,P){S=S||[];for(var u=Y.length-1;u>=0;u--){var W=Y[u];W?Array.isArray(W)?VbE(W,S):S.indexOf(W)<0&&(!P||P.indexOf(W)<0)&&S.unshift(W):console.warn("behavior is null, check for missing or 404 import")}return S};
e6U=function(Y,S){for(var P in S){var u=Y[P],W=S[P];Y[P]=!("value"in W)&&u&&"value"in u?Object.assign({value:u.value},W):W}};
S$E=function(Y,S,P){var u={},W=function(){return S.apply(this,arguments)||this};
_.r(W,S);W._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(J)for(var C=0,x;C<J.length;C++)x=J[C],x.properties&&this.createProperties(x.properties),x.observers&&this.createObservers(x.observers,x.properties);Y.properties&&this.createProperties(Y.properties);Y.observers&&this.createObservers(Y.observers,Y.properties);this._prepareTemplate()}else S._finalizeClass.call(this)};
W.prototype.created=function(){S.prototype.created.call(this);var C=u.created;if(C)for(var x=0;x<C.length;x++)C[x].call(this)};
W.prototype._registered=function(){var C=W.prototype;if(!C.hasOwnProperty("__hasRegisterFinished")){C.__hasRegisterFinished=!0;S.prototype._registered.call(this);FD&&c(C);C=Object.getPrototypeOf(this);var x=u.beforeRegister;if(x)for(var b=0;b<x.length;b++)x[b].call(C);if(x=u.registered)for(b=0;b<x.length;b++)x[b].call(C)}};
W.prototype._applyListeners=function(){S.prototype._applyListeners.call(this);var C=u.listeners;if(C)for(var x=0;x<C.length;x++){var b=C[x];if(b)for(var T in b)this._addMethodEventListenerToNode(this,T,b[T])}};
W.prototype._ensureAttributes=function(){var C=u.hostAttributes;if(C)for(var x=C.length-1;x>=0;x--){var b=C[x],T;for(T in b)this._ensureAttribute(T,b[T])}S.prototype._ensureAttributes.call(this)};
W.prototype.ready=function(){S.prototype.ready.call(this);var C=u.ready;if(C)for(var x=0;x<C.length;x++)C[x].call(this)};
W.prototype.attached=function(){S.prototype.attached.call(this);var C=u.attached;if(C)for(var x=0;x<C.length;x++)C[x].call(this)};
W.prototype.detached=function(){S.prototype.detached.call(this);var C=u.detached;if(C)for(var x=0;x<C.length;x++)C[x].call(this)};
W.prototype.attributeChanged=function(C,x,b){S.prototype.attributeChanged.call(this);var T=u.attributeChanged;if(T)for(var K=0;K<T.length;K++)T[K].call(this,C,x,b)};
_.y6.Object.defineProperties(W,{properties:{configurable:!0,enumerable:!0,get:function(){var C={};if(J)for(var x=0;x<J.length;x++)e6U(C,J[x].properties);e6U(C,Y.properties);return C}},
observers:{configurable:!0,enumerable:!0,get:function(){var C=[];if(J)for(var x=0,b;x<J.length;x++)b=J[x],b.observers&&(C=C.concat(b.observers));Y.observers&&(C=C.concat(Y.observers));return C}}});
if(P){Array.isArray(P)||(P=[P]);var m=S.prototype.behaviors;var J=VbE(P,null,m);W.prototype.behaviors=m?m.concat(P):J}var c=function(C){if(J)for(var x=J,b=0;b<x.length;b++)H68(C,x[b],u,O6a);H68(C,Y,u,Y$h)};
FD||c(W.prototype);W.generatedFrom=Y;return W};
zNJ=function(Y){var S=typeof Y!=="string"?Y:{is:Y,notifyObserversOnUndefined:!0};S.fastInit===void 0&&(S.fastInit=!0);return function(P){if(!S.disableInheritanceCheck&&Object.getPrototypeOf(P.prototype).constructor!==_.Nz)throw Error("Od");var u=P.prototype;u.is=S.is;Jg9(u,"created",function(){this.hostElement=this;this.polymerController=this});
P1a(u,P,S.fastInit);S.notifyObserversOnUndefined&&(u._overrideLegacyUndefined=!0);if(uja)for(var W=_.n(Object.getOwnPropertyNames(u)),m=W.next();!m.done;m=W.next()){m=m.value;var J=Object.getOwnPropertyDescriptor(u,m);J.enumerable===!1&&(J.enumerable=!0,Object.defineProperty(u,m,J))}if("template"in P)var c=function(){return P.template};
else S.template!==void 0&&(c=S.template);if(c!==void 0){var C;Object.defineProperty(u,"_template",{get:function(){C===void 0&&(C=c());return C},
set:function(x){C=x},
configurable:!0,enumerable:!0})}Polymer(u);P[Wwf]=u}};
m2U=function(Y){Y=Y===void 0?{}:Y;Y.fastInit===void 0&&(Y.fastInit=!0);return function(S){if(!Y.disableInheritanceCheck&&Object.getPrototypeOf(S.prototype).constructor!==He)throw Error("Pd");P1a(S.prototype,S,Y.fastInit)}};
P1a=function(Y,S,P){P=P===void 0?!1:P;nXh(S);P?Jg9(Y,"created",function(){this.disableEnforceFastDefaultValuesCheck||jBu(S,this)}):Jg9(Y,"ready",function(){for(var u={},W=_.n(BLa(this.behaviors)),m=W.next();!m.done;m=W.next())m=m.value,m.properties&&Object.assign(u,Jkh(this,m.properties));
Object.assign(u,Jkh(this,this.properties));jBu(S,this);W=_.n(Object.keys(u));for(m=W.next();!m.done;m=W.next())m=m.value,this[m]=u[m]})};
jBu=function(Y,S){if(uja){Y=new Y;for(var P=_.n(Object.getOwnPropertyNames(Y)),u=P.next();!u.done;u=P.next())u=u.value,S[u]=Y[u];for(P=S;P&&P!==Object.prototype;P=Object.getPrototypeOf(P)){u=_.n(Object.getOwnPropertyNames(P));for(var W=u.next();!W.done;W=u.next())W=W.value,Y.hasOwnProperty(W)||Object.defineProperty(Y,W,BxK(S,W))}}else Y.apply(S)};
BxK=function(Y,S){return{get:function(){var P=Y[S];return P instanceof Function?P.bind(Y):P},
set:function(P){Y[S]=P}}};
Jkh=function(Y,S){if(!S)return{};for(var P={},u=_.n(Object.keys(S)),W=u.next();!W.done;W=u.next())if(W=W.value,!S[W].readOnly){var m=Y[W];m!==void 0&&(P[W]=m)}return P};
nXh=function(Y){var S=new Y;Y=Y.prototype.properties||{};for(var P=_.n(Object.keys(Y)),u=P.next();!u.done;u=P.next())if(u=u.value,S.hasOwnProperty(u)){var W=Y[u];typeof W==="function"&&(Y[u]=W={type:W});S[u]!=null&&W.type===Object&&(W.type=ckX(S[u].constructor))}};
ckX=function(Y){for(var S=_.n(C1a),P=S.next();!P.done;P=S.next())if(P=P.value,Y===P)return P;return Object};
q$Y=function(Y){return function(S,P){S.behaviors=S.behaviors||[];S.behaviors.push(Y||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",S,P).prototype:void 0));Object.defineProperty(S,P,{get:function(){return this},
enumerable:!0,configurable:!0})}};
RNJ=function(Y){Y=Y===void 0?{}:Y;return function(S,P){S.properties=S.properties||{};Y.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Y.type=ckX(Reflect.getMetadata("design:type",S,P)):Y.type=String);var u=Y,W=S.properties[P];S.properties[P]=W?Object.assign({},W,u):u}};
x29=function(Y){return function(S,P){S.listeners=S.listeners||{};S.listeners[Y]=P}};
ba$=function(){var Y=_.Ch.apply(0,arguments);if(Y.length===0)throw Error("Qd");return function(S,P){S.observers=S.observers||[];S.observers.push(P+"("+Y.join(",")+")")}};
Tx8=function(){var Y=_.Ch.apply(0,arguments);return function(S,P,u){var W=Object.getOwnPropertyDescriptor(S,P).get,m="__compute__"+P;Object.defineProperty(S,m,{value:W,enumerable:!0});S.properties=S.properties||{};W=S.properties[P];W||(W={},S.properties[P]=W);W.computed=m+"("+Y.join(",")+")";u.get=void 0}};
_.V6=function(Y,S,P){_.R6.call(this);this.JSC$9084_id_=null;this.usingListeners_=!1;this.JSC$9084_listener_=Y;this.handler_=P;this.JSC$9084_win_=S||window;this.callback_=(0,_.xS)(this.JSC$9086_doAction_,this)};
er=function(Y){this.range_=Y};
Sf=function(Y){this.range_=Y};
W3=function(Y,S,P){_.R6.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=Y;this.scrollTimer_=new _.P3(50);this.JSC$9163_eventHandler_=new _.u6(this);this.scrollDelta_=new _.TH;this.containerIsActuallyContent_=Y.tagName==="BODY"||Y.tagName==="HTML";this.containerBounds_=Kw9(Y);this.containerIsActuallyContent_&&(Y=_.Pk(),this.containerBounds_.height=Y.height,this.containerBounds_.width=Y.width);this.margin_=S||0;if(S){if(S=this.containerBounds_.clone(),Y=this.margin_){var u=
Math.min(Y,S.height*.25);S.top+=u;S.height-=2*u;Y=Math.min(Y,S.width*.25);S.left+=Y;S.width-=2*Y}}else S=this.containerBounds_;this.scrollBounds_=S;P||this.JSC$9163_eventHandler_.listen(_.Ey(this.containerNode_),"mousemove",this.JSC$9165_onMouseMove);this.JSC$9163_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9165_onTick_)};
_.z5=function(Y){this.mechanism=Y};
m9=function(Y,S){this.JSC$9261_key_=Y;this.JSC$9261_value_=S};
fdJ=function(Y){if(Y>=55296&&Y<=57343||Y>1114111)return"\ufffd";Y in EXE&&(Y=EXE[Y]);var S="";Y>65535&&(Y-=65536,S+=String.fromCharCode(Y>>>10&1023|55296),Y=56320|Y&1023);return S+=String.fromCharCode(Y)};
gXK=function(Y,S){return Y<S?1:-1};
rkX=function(){return function(Y){return Y.charAt(1)==="#"?Y.charAt(2)==="X"||Y.charAt(2)==="x"?fdJ(parseInt(Y.substr(3),16)):fdJ(parseInt(Y.substr(2),10)):$2u[Y.slice(1,-1)]}};
vXX=function(Y){return Y.slice(1,Y.length-1).trim().replace(GUf,function(S){return hN8[S]||" "})};
nM=function(Y){return Y===32||Y===9};
jf=function(Y,S){return S<Y.length?Y.charCodeAt(S):-1};
D2a=function(Y){for(;Y;){if(Y._lastLineBlank)return!0;var S=Y.type;if(S==="list"||S==="item")Y=Y._lastChild;else break}return!1};
J9=function(Y){if(IdY.test(Y)){var S=1,P=0,u=0;for(Y[P]=="|"&&P++;P<Y.length;){switch(Y[P]){case "|":u=1;break;case " ":break;case "\t":break;default:u&&(u=0,S++)}P++}return adf.test(Y)?-S:S}return 0};
Lwa=function(Y){return Y=="table"||Y=="row"||Y=="cell"};
wsu=function(){return new B3("document",[[1,1],[0,0]])};
ps1=function(){};
c3=function(){var Y={safe:!1};Y=Y||{};Y.softbreak=Y.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=Y};
XsU=function(Y,S){var P="";if(Y)if(Y=Y.toLowerCase(),Y===" "||FwK.test(Y))P="space";else if(sBa.test(Y))P="esc";else if(Y.length==1){if(!S||d2E.test(Y))P=Y}else P=ldJ.test(Y)?Y.replace("arrow",""):Y=="multiply"?"*":Y;return P};
tNX=function(Y,S){var P=Y.hasModifiers;if(S.key)P=XsU(S.key,P);else if(S.detail&&S.detail.key)P=XsU(S.detail.key,P);else{P=S.keyIdentifier;var u="";P&&(P in Za1?u=Za1[P]:ia1.test(P)?(P=parseInt(P.replace("U+","0x"),16),u=String.fromCharCode(P).toLowerCase()):u=P.toLowerCase());(P=u)||(P=S.keyCode,u="",Number(P)&&(P>=65&&P<=90?u=String.fromCharCode(32+P):P>=112&&P<=123?u="f"+(P-112+1):P>=48&&P<=57?u=String(P-48):P>=96&&P<=105?u=String(P-96):u=oXE[P]),P=u);P=P||""}return P===Y.key&&(!Y.hasModifiers||
!!S.shiftKey===!!Y.shiftKey&&!!S.ctrlKey===!!Y.ctrlKey&&!!S.altKey===!!Y.altKey&&!!S.metaKey===!!Y.metaKey)};
U2U=function(Y){return Y.length===1?{combo:Y,key:Y,event:"keydown"}:Y.split("+").reduce(function(S,P){var u=P.split(":");P=u[0];u=u[1];P in Akh?(S[Akh[P]]=!0,S.hasModifiers=!0):(S.key=P,S.event=u||"keydown");return S},{combo:Y.split(":").shift()})};
QB1=function(Y){return Y.trim().split(" ").map(function(S){return U2U(S)})};
kUu=function(Y,S){if(Y&&Y.fn){var P=Y.fn;Y.fn=function(){try{P.apply(this,arguments)}catch(u){if(u instanceof CM)console.warn("Argument '"+u.arg+"'"+(S?" for method '"+S+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw u;}}}return Y};
MNU=function(){var Y=_.Ch.apply(0,arguments);return Y.length===0?function(S){return S}:Y.length===1?Y[0]:Y.reduce(function(S,P){return function(){return S(P.apply(null,_.cz(_.Ch.apply(0,arguments))))}})};
yk1=function(){var Y=_.Ch.apply(0,arguments);return function(S){return function(P,u){P=S(P,u);var W=function(){throw Error("Ae");},m={getState:P.getState,
dispatch:function(J){return W.apply(null,[J].concat(_.cz(_.Ch.apply(1,arguments))))}};
u=Y.map(function(J){return J(m)});
W=MNU.apply(null,_.cz(u))(P.dispatch);return Object.assign({},P,{dispatch:W})}}};
VNa=function(Y){Object.keys(Y).forEach(function(S){var P=Y[S];if(typeof P(void 0,{type:Nxa})==="undefined")throw Error("Be`"+S);if(typeof P(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Haa()})==="undefined")throw Error("Ce`"+S+"`"+Nxa);})};
Rk=function(Y){for(var S=Object.keys(Y),P={},u=0;u<S.length;u++){var W=S[u];typeof Y[W]==="function"&&(P[W]=Y[W])}var m=Object.keys(P);try{VNa(P)}catch(c){var J=c}return function(c,C){c=c===void 0?{}:c;if(J)throw J;for(var x=!1,b={},T=0;T<m.length;T++){var K=m[T],G=c[K],v=(0,P[K])(G,C);if(typeof v==="undefined")throw c=C&&C.type,Error("De`"+(c?'"'+String(c)+'"':"(unknown type)")+"`"+K);b[K]=v;x=x||v!==G}return(x=x||m.length!==Object.keys(c).length)?b:c}};
eN8=function(Y,S,P){function u(){if(b)throw Error("Ee");return c}
function W(G){if(typeof G!=="function")throw Error("Fe`"+typeof G);if(b)throw Error("Ge");var v=!0;x===C&&(x=C.slice());x.push(G);return function(){if(v){if(b)throw Error("He");v=!1;x===C&&(x=C.slice());var a=x.indexOf(G);x.splice(a,1);C=null}}}
function m(G){if(typeof G!=="object"||G===null)var v=!1;else{for(v=G;Object.getPrototypeOf(v)!==null;)v=Object.getPrototypeOf(v);v=Object.getPrototypeOf(G)===v}if(!v)throw Error("Ie`"+typeof G);if(typeof G.type==="undefined")throw Error("Je");if(b)throw Error("Ke");try{b=!0,c=J(c,G)}finally{b=!1}v=C=x;for(var a=0;a<v.length;a++)(0,v[a])();return G}
if(typeof S==="function"&&typeof P==="function"||typeof P==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof S==="function"&&typeof P==="undefined"&&(P=S,S=void 0);if(typeof P!=="undefined"){if(typeof P!=="function")throw Error("Me`"+typeof P);return P(eN8)(Y,S)}if(typeof Y!=="function")throw Error("Ne`"+typeof Y);var J=Y,c=S,C=[],x=C,b=!1;m({type:Nxa});var T={},K=(T.dispatch=m,T.subscribe=W,T.getState=u,T.replaceReducer=function(G){if(typeof G!=="function")throw Error("Oe`"+
typeof G);J=G;m({type:Oa8});return K},T[YMa]=function(){var G={};
return G.subscribe=function(v){function a(){v.next&&v.next(u())}
if(typeof v!=="object"||v===null)throw new TypeError("Pe`"+typeof v);a();return{unsubscribe:W(a)}},G[YMa]=function(){return this},G},T);
return K};
SM$=function(Y){function S(){W&&(W=!1,Y());m&&u()}
function P(){requestAnimationFrame(S)}
function u(){var c=Date.now();if(W){if(c-J<2)return;m=!0}else W=!0,m=!1,setTimeout(P,20);J=c}
var W=!1,m=!1,J=0;return u};
x5=function(Y){return typeof Y==="number"?Y:parseFloat(Y)||0};
PWf=function(Y){return _.Ch.apply(1,arguments).reduce(function(S,P){return S+x5(Y["border-"+P+"-width"])},0)};
_.h=function(Y,S){S=E4(Kh(S));Y.innerHTML=S};
zx$=function(Y){var S=u08;S||(S=WXE(),S=u08=_.RY.transpose(S));S=S[Y];return typeof S==="string"?S:_.b6(Y)};
mif=function(Y){Y=String(Y).toLowerCase();var S=WXE()[Y];return typeof S==="string"?S:_.T5(Y)};
nnf=function(Y){Y=Y.toLowerCase();Y=WXE()[Y];return typeof Y==="string"?Y:null};
WXE=function(){if(!jJa){for(var Y=Object.assign({},Jva),S=_.n(BVK),P=S.next();!P.done;P=S.next())P=P.value,Y[P.toLowerCase()]=P;jJa=Y}return jJa};
qMh=function(Y,S){var P=window.customElements;return P&&P.get(Y)||cvE[Y]===!0?2:S.name==="HTMLUnknownElement"?1:S.name==="HTMLElement"&&CWu.test(Y)?3:0};
bj1=function(Y,S){switch(S){case "innerHTML":return RxX(Y)===1?2:null;case "textContent":return Y=RxX(Y),Y===1||Y===6?1:null;default:var P,u;return(u=(P=xih[Y.localName])==null?void 0:P[S])!=null?u:null}};
RxX=function(Y){var S=Y.localName,P=qMh(S,Y.constructor);switch(P){case 0:case 1:return TVE(S,Y);case 3:case 2:return 1;default:_.O6(P,"got an unknown element classification")}};
TVE=function(Y,S){var P=Object.hasOwnProperty.call(KXa,Y)?KXa[Y]:null;return P!==null?P:Object.hasOwnProperty.call(EnY,Y)&&S instanceof SVGElement?EnY[Y]:null};
fpu=function(Y,S){return S};
$ia=function(Y){return(Y=Y.split(gna,2))?{url:Y[0],metadata:Y[1]}:null};
GeY=function(Y){var S=String(Y.url).replace(rvE,encodeURIComponent);if(Y=Y.metadata){rvE.lastIndex=0;if(rvE.test(Y))return null;S+=" "+Y}return S};
Iph=function(Y){function S(x){var b=x.localName;if(!x.getAttribute("is")&&qMh(b,x.constructor)===2){var T;return(T=C)!=null?T:C=document.createElement("polyresinuncustomized")}(x=c[b])||(x=c[b]=document.createElement(b));return x}
var P=Y.reportHandler||void 0,u=Y.safeTypesBridge||hx9,W=/^$/;if(Y=Y.allowedIdentifierPrefixes){Y=_.n(Y);for(var m=Y.next();!m.done;m=Y.next())W=new RegExp(W.source+"|^"+_.vnh(m.value))}P&&P(!1,"initResin",null);var J=Dia(W,u,P),c={},C=null;return function(x,b,T){var K=x.nodeType;if(K!==Node.ELEMENT_NODE){if(K===Node.TEXT_NODE){b=x.parentElement;T=!b;if(b&&b.nodeType===Node.ELEMENT_NODE){K=b.localName;var G=qMh(K,b.constructor);switch(G){case 0:case 1:b=TVE(K,b);T=b===1||b===6;break;case 3:case 2:T=
!0;break;default:_.O6(G,"got an unknown element classification")}}if(T)return function(F){return""+u(F,"STRING",F)}}return function(F){if(!F&&F!==document.all)return F;
P&&P(!0,"Failed to sanitize "+(x.parentElement&&x.parentElement.nodeName)+" #text node to value "+F,x.parentElement);return KM}}var v=x.localName;
K=S(x);var a=null;switch(T){case "attribute":if(mif(b)in K)break;return function(F){return F};
case "property":if(b in K){a=bj1(K,b);break}if((G=nnf(b))&&G in K)break;return function(F){return F};
default:_.O6(T,"got an unknown resin type, expected either 'property' or 'attribute'")}var w=T==="attribute"?b.toLowerCase():zx$(b);a||(a=VHa(v,w,function(F){var U=x.getAttribute(F);return!U||/[\[\{]/.test(F)?null:U}));
return function(F){var U=E2,V=null;if(!F&&F!==document.all)return F;if(a!=null){var M=J[a],zJ=M.safeType;V=M.safeReplacement;zJ&&(U=u(F,zJ,E2));U===E2&&(M.filterString?(U=String(u(F,"STRING",F)),U=M.filterString(v,w,U)):M.filterRaw&&(U=M.filterRaw(v,w,F,x)),U===V&&(U=E2))}U===E2&&(U=V||KM,P&&P(!0,"Failed to sanitize attribute of <"+v+">: <"+v+" "+w+'="'+F+'">',x));return U}}};
Dia=function(Y,S,P){return[,{filterRaw:function(u,W,m){return m},
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:apa,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:apa,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:KM,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:LX1,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(u,W,m){m=
String(m).toLowerCase();return YQX(u,W,m)?m:KM},
safeReplacement:KM,safeType:void 0},,{filterRaw:void 0,filterString:function(u,W,m){return Y.test(m)?m:KM},
safeReplacement:KM,safeType:"CONSTANT"},{filterRaw:function(u,W,m,J){if(typeof m==="string")var c=(c=m.match(wWX))?c.map($ia).filter(Boolean):[];else if(Array.isArray(m))c=m;else return apa;var C=c;c=[];var x=[],b={};if(Array.isArray(C))for(var T=0,K=C.length;T<K;++T){var G=C[T],v=G&&G.url;if(v){var a=S(v,"URL",b);if(a){var w=a!==b;(w?c:x).push({url:w?a:v,metadata:G.metadata})}}}else x.push(C);C=x.length?JSON.stringify(x):null;x=E2;if(c.length){if(!Array.isArray(c))throw Error();x=c.map(GeY).filter(Boolean).join(" , ")||
E2}C&&P&&P(!0,"Failed to sanitize attribute value of <"+u+">: <"+u+" "+W+'="'+m+'">: '+C,J);return x===E2?apa:x},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
pWh=function(Y){var S=Iph(Y);return function(P,u,W,m){return m||m===document.all?S(P,u,W)(m):m}};
fM=function(Y,S){function P(){function W(c,C,x){for(C=Reflect.getMetadata("parameters",c)||[];C.length<=x;)C.push(null);C[x]=C[x]||[];C[x].push(J);Reflect.defineMetadata(C,c);return c}
var m=_.Ch.apply(0,arguments);if(this instanceof P)return u.apply(this,m),this;var J=new (Function.prototype.bind.apply(P,[null].concat(_.cz(m))));W.annotation=J;return W}
var u=FXY(S);P.prototype.toString=function(){return"@"+Y};
return P.annotationCls=P};
FXY=function(Y){return function(){var S=_.Ch.apply(0,arguments),P=this;Y.forEach(function(u,W){W=S[W];if(Array.isArray(u))P[u[0]]=W&&W!==void 0?W:u[1];else for(var m in u)P[m]=W&&W[m]!==void 0?W[m]:u[m]})}};
sJE=function(Y){return Y!==void 0&&Y!==null};
gf=function(Y){if(typeof Y==="string")return Y;if(Y===void 0||Y===null)return""+Y;if(Y.overriddenName)return Y.overriddenName;if(Y.name)return Y.name;Y=Y.toString();var S=Y.indexOf("\n");return S===-1?Y:Y.substring(0,S)};
diK=function(Y){Y.__forward_ref__=diK;Y.toString=function(){return gf(this())};
return Y};
$5=function(Y){return typeof Y==="function"&&Y.hasOwnProperty("__forward_ref__")&&Y.__forward_ref__===diK?Y():Y};
lpY=function(Y){return Y?Y.map(function(S){return new (Function.prototype.bind.apply(S.type.annotationCls,[null].concat(_.cz(S.args?S.args:[]))))}):[]};
XWX=function(Y){for(var S=[],P=0;P<Y.length;++P){if(S.indexOf(Y[P])>-1){S.push(Y[P]);break}S.push(Y[P])}return S};
ZjE=function(Y){return Y.length>1?" ("+XWX(Y.slice().reverse()).map(function(S){return gf(S.token)}).join(" -> ")+")":""};
on1=function(Y,S,P,u){if(u){var W=Error("We``"+(u instanceof Error?u.message:u));W.ngOriginalError=u}else W=Error();W.addKey=ijh;W.keys=[S];W.injectors=[Y];W.constructResolvingMessage=P;W.message=W.constructResolvingMessage();W.ngOriginalError=u;return W};
ijh=function(Y,S){this.injectors.push(Y);this.keys.push(S);this.message=this.constructResolvingMessage()};
t5U=function(Y,S){return on1(Y,S,function(){return"No provider for "+gf(this.keys[0].token)+"!"+ZjE(this.keys)})};
AvX=function(Y,S){return on1(Y,S,function(){return"Cannot instantiate cyclic dependency!"+ZjE(this.keys)})};
Ui9=function(Y,S,P){return on1(Y,P,function(){var u=gf(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+u+"!"+ZjE(this.keys)+"."},S)};
QJ9=function(Y,S){for(var P=[],u=0,W=S.length;u<W;u++){var m=S[u];m&&m.length!=0?P.push(m.map(gf).join(" ")):P.push("?")}return Error("$e`"+gf(Y)+"`"+P.join(", ")+"`"+gf(Y))};
exa=function(Y){var S=void 0,P=void 0;if(Y&&Y.useClass!==void 0){S=Y.useClass;var u=$5(Y.useClass);var W=kea.factory(u);u=M5U(u)}else Y&&Y.useExisting!==void 0?(W=function(m){return m},u=[yv$(rf.get($5(Y.useExisting)))]):Y&&Y.useFactory!==void 0?(W=Y.useFactory,u=NVf(Y.useFactory,Y.deps)):(P=Y.useValue,W=function(){return Y.useValue},u=Hju);
return new V5E(W,u,S,P)};
YgX=function(Y){return new Oju(rf.get($5(Y.provide)),[exa(Y)],Y.multi)};
Pda=function(Y){Y=SgY(Y,[]).map(YgX);for(var S=new Map,P=0;P<Y.length;P++){var u=Y[P],W=S.get(u.key.id);if(W){if(u.multiProvider!==W.multiProvider)throw Error("bf`"+W+"`"+u);if(u.multiProvider)for(var m=0;m<u.resolvedFactories.length;m++)W.resolvedFactories.push(u.resolvedFactories[m]);else S.set(u.key.id,u)}else W=void 0,u.multiProvider?W=new Oju(u.key,u.resolvedFactories.slice(),u.multiProvider):W=u,S.set(u.key.id,W)}return Array.from(S.values())};
SgY=function(Y,S){Y.forEach(function(P){if(P instanceof us$)S.push({provide:P,useClass:P});else if(P&&typeof P=="object"&&P.provide!==void 0)S.push(P);else if(P instanceof Array)SgY(P,S);else throw Error("Ze`"+P);});
return S};
NVf=function(Y,S){if(S){var P=S.map(function(u){return[u]});
return S.map(function(u){return W0f(Y,u,P)})}return M5U(Y)};
M5U=function(Y){var S=kea.parameters(Y);if(!S)return[];if(S.some(function(P){return P==null}))throw QJ9(Y,S);
return S.map(function(P){return W0f(Y,P,S)})};
W0f=function(Y,S,P){var u=null,W=!1;if(!Array.isArray(S))return S instanceof zkK?mA$(S.token,W,null):mA$(S,W,null);for(var m=null,J=0;J<S.length;++J){var c=S[J];if(c instanceof us$)u=c;else if(c instanceof zkK)u=c.token;else if(c instanceof nQ9)W=!0;else if(c instanceof jLX||c instanceof J_Y)m=c}u=$5(u);if(u!=null)return mA$(u,W,m);throw QJ9(Y,P);};
mA$=function(Y,S,P){return new BIX(rf.get($5(Y)),S,P)};
c_a=function(Y,S){for(var P=Array(Y.providers.length),u=0;u<Y.providers.length;++u){var W=u;if(u<0||u>=Y.providers.length)throw Error("af`"+u);P[W]=S(Y.providers[u])}return P};
CdX=function(Y){return typeof Y==="function"&&kea.parameters(Y).every(function(S){return!!S})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(Y)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(Y)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y,S){var P,u;if(Y.contains(S))return!0;Y=_.G5(Y).querySelectorAll("content,slot");for(P=0;P<Y.length;++P){var W=_.G5(Y[P]).getDistributedNodes();for(u=0;u<W.length;++u)if(W[u].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W[u],S))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){Y.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Y)&&Y.preventDefault();Y.targetTouches&&(Y=Y.targetTouches[0],qg9=Y.pageX,Rka=Y.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var Y=0,S=h9.length;Y<S;Y++)document.addEventListener(h9[Y],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var Y=0,S=h9.length;Y<S;Y++)document.removeEventListener(h9[Y],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){var S=_.G5(Y).rootTarget;Y.type!=="touchmove"&&xAu!==S&&(xAu=S,bX8=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.G5(Y).path));if(!bX8.length)return!0;if(Y.type==="touchstart")return!1;Y=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Y);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(bX8,Y.deltaX,Y.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){for(var S=[],P=Y.indexOf(TIE),u=0;u<=P;u++)if(Y[u].nodeType===Node.ELEMENT_NODE){var W=Y[u],m=W.style;m.overflow!=="scroll"&&m.overflow!=="auto"&&(m=window.getComputedStyle(W));m.overflow!=="scroll"&&m.overflow!=="auto"||S.push(W)}return S};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y,S,P){if(S||P)for(var u=Math.abs(P)>=Math.abs(S),W=0;W<Y.length;W++){var m=Y[W];if(u?P<0?m.scrollTop>0:m.scrollTop<m.scrollHeight-m.clientHeight:S<0?m.scrollLeft>0:m.scrollLeft<m.scrollWidth-m.clientWidth)return m}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){var S={deltaX:Y.deltaX,deltaY:Y.deltaY};"deltaX"in Y||("wheelDeltaX"in Y&&"wheelDeltaY"in Y?(S.deltaX=-Y.wheelDeltaX,S.deltaY=-Y.wheelDeltaY):"wheelDelta"in Y?(S.deltaX=0,S.deltaY=-Y.wheelDelta):"axis"in Y?(S.deltaX=Y.axis===1?Y.detail:0,S.deltaY=Y.axis===2?Y.detail:0):Y.targetTouches&&(Y=Y.targetTouches[0],S.deltaX=qg9-Y.pageX,S.deltaY=Rka-Y.pageY));return S};
K01=function(Y){this.element=Y;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
flX=function(Y){this.element=Y;this.color=window.getComputedStyle(Y).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.G5(this.waveContainer).appendChild(this.wave);EQh(this)};
v3=function(Y,S){for(var P in Y)if(P.toLowerCase()===S.toLowerCase())return Y[P]};
gQ9=function(Y,S){for(var P in Y)if(P.toLowerCase()===S.toLowerCase()){delete Y[P];break}};
r_X=function(Y){Y=_.RY.clone(Y);for(var S=0;S<$A8.length;++S){var P=$A8[S],u=v3(Y,P);u&&(Y["X-Goog-Upload-Header-"+P]=u,gQ9(Y,P))}return Y};
G2f=function(Y){Y=_.RY.clone(Y);gQ9(Y,"X-Goog-Upload-Status")};
vQh=function(Y){return hkY.some(function(S){return S.test(Y)})};
L0u=function(Y,S){var P;var u=(P=Y.formContent)==null?void 0:P.locale;P=u==null?void 0:u.split("-")[0];u=u&&DAf.includes(u)?u:P&&DAf.includes(P)?P:void 0;u=(u!=null?u:"en").replaceAll("-","_").toLowerCase();var W;Y=((W=Y.initializationData)==null?0:W.useNightlyRelease)?"nightly":"live";var m;return(S==null?0:(m=S.getEnableAlohaBinarySplit)==null?0:m.call(S))?_.kt(IlX,Y):_.kt(ala,Y,u)};
p9a=function(Y,S,P,u){if(w9X)return w9X;var W=L0u(Y,u);return w9X=S.feedbackV2GlobalObject?Promise.resolve(S.feedbackV2GlobalObject):new Promise(function(m,J){var c=_.nN("SCRIPT");_.I9(c,W);c.onload=function(){S.feedbackV2GlobalObject?m(S.feedbackV2GlobalObject):J(Error("ef"))};
c.onerror=function(){J(Error("ff`"+W.toString()))};
P.body.appendChild(c)})};
sLJ=function(Y,S,P,u){if(F0h)return F0h;var W=L0u(Y,u);return F0h=S.feedbackV2GlobalObject?Promise.resolve(S.feedbackV2GlobalObject):new Promise(function(m,J){var c=_.nN("SCRIPT");_.I9(c,W);c.onload=function(){S.feedbackV2GlobalObject?m(S.feedbackV2GlobalObject):J(Error("ef"))};
c.onerror=function(){J(Error("ff`"+W.toString()))};
P.body.appendChild(c)})};
dAE=function(Y,S,P,u,W){W=W===void 0?!0:W;var m,J,c,C,x;return _.B(function(b){switch(b.nextAddress){case 1:return m=Date.now(),_.q(b,p9a(Y,P,u,S),2);case 2:J=b.yieldResult;if(!(W||((C=Y.initializationData)==null?0:C.useNightlyRelease)||((x=Y.initializationData)==null?0:x.isLocalServer))){c=J.initializeFeedbackClient(Y,m,S);b.jumpTo(3);break}return _.q(b,J.initializeFeedbackClientAsync(Y,m,S),4);case 4:c=b.yieldResult;case 3:return c.initiateAloha(),b.return(c)}})};
ll1=function(Y,S,P,u){var W,m,J;return _.B(function(c){if(c.nextAddress==1)return W=Date.now(),_.q(c,sLJ(Y,P,u.document,S),2);if(c.nextAddress!=3)return m=c.yieldResult,_.q(c,m.initializeFeedbackClientAsync(Y,W,S,u),3);J=c.yieldResult;J.initiateAloha();return c.return(J)})};
X9K=function(Y,S,P){var u=!0;u=u===void 0?!0:u;var W,m,J,c,C,x,b,T,K,G;return _.B(function(v){W=P||_.Pa;if((m=S)==null?0:(c=(J=m).getEnableAlohaBinarySplit)==null?0:c.call(J)){C=W;if(C.isFormOpened)throw x=Error("gf"),x.name="DuplicateFormError",x;C.isFormOpened=!0;Y.callbacks=Y.callbacks||{};b=Y.callbacks.onClose||function(){};
Y.callbacks.onClose=function(a){C.isFormOpened=!1;b(a)};
try{return v.return(ll1(Y,S,C,W))}catch(a){throw C.isFormOpened=!1,a;}}else{T=W;if(T.isFormOpened)throw K=Error("gf"),K.name="DuplicateFormError",K;T.isFormOpened=!0;Y.callbacks=Y.callbacks||{};G=Y.callbacks.onClose||function(){};
Y.callbacks.onClose=function(a){T.isFormOpened=!1;G(a)};
try{return v.return(dAE(Y,S,T,W.document,u))}catch(a){throw T.isFormOpened=!1,a;}}_.Yt(v)})};
A_1=function(Y,S){return _.B(function(P){return P.return(new Promise(function(u){var W=ZXE(S!=null?S:"")+"/aloha_form_properties?productId="+Y;iX$(W,function(m){m=m.target;var J=null;try{var c=JSON,C=c.stringify;if(m.JSC$7668_xhr_){var x=m.JSC$7668_xhr_.responseText;x.indexOf(")]}'\n")==0&&(x=x.substring(5));var b=(0,_.DC)(x)}else b=void 0;J=SUh(oQY,C.call(c,b))}catch(T){C=new oQY,b=tmh(),b=_.Ik(b,13,!1),b=_.Ik(b,14,!0),b=_.Ik(b,15,!0),b=_.Ik(b,20,!1),J=_.N8(C,1,b)}u(J)},"GET","",{},2E3,!0)}))})};
ZXE=function(Y){return vQh(Y)?Y:"https://www.google.com/tools/feedback"};
Mmh=function(Y){Y=Y.match(new RegExp(UAE,"gi"))||[];Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;a:{var P=_.n(QLu);for(var u=P.next();!u.done;u=P.next())if(u.value.test(S)){P=!1;break a}P=!0}if(!P)a:{P=_.n(k29);for(u=P.next();!u.done;u=P.next())if(u.value.test(S)){P=!0;break a}P=!1}if(P)return!0}return!1};
y_1=function(Y){switch(Y){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
HXY=function(Y){if(window.crypto&&window.crypto.getRandomValues)try{var S=Array(Y),P=new Uint8Array(Y);window.crypto.getRandomValues(P);for(var u=0;u<S.length;u++)S[u]=P[u];return S}catch(m){}S=Array(Y);for(P=0;P<Y;P++){u=Date.now();for(var W=0;W<u%23;W++)S[P]=Math.random();S[P]=Math.floor(Math.random()*256)}if(NIX)for(P=1,u=0;u<NIX.length;u++)S[P%Y]^=S[(P-1)%Y]/4^NIX.charCodeAt(u),P++;return S};
ak=function(Y){Y=HXY(Y);for(var S=[],P=0;P<Y.length;P++)S.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Y[P]&63));return S.join("")};
ek8=function(Y){Y&&_.L_("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Vm8,clientScreenNonce:Y})};
OXY=function(Y){return _.X3("client-screen-nonce-store",{})[Y===void 0?0:Y]};
Yx1=function(Y,S){S=S===void 0?0:S;var P=_.X3("client-screen-nonce-store");P||(P={},_.lk("client-screen-nonce-store",P));P[S]=Y};
SxU=function(Y){Y=Y===void 0?0:Y;return Y===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+Y};
PGa=function(Y){return _.X3(SxU(Y===void 0?0:Y))};
_.wf=function(Y){return(Y=PGa(Y===void 0?0:Y))?new _.LM({veType:Y,youtubeData:void 0,jspbYoutubeData:void 0}):null};
u$1=function(){var Y=_.X3("csn-to-ctt-auth-info");Y||(Y={},_.lk("csn-to-ctt-auth-info",Y));return Y};
WJ$=function(){return Object.values(_.X3("client-screen-nonce-store",{})).filter(function(Y){return Y!==void 0})};
_.pM=function(Y){Y=OXY(Y===void 0?0:Y);if(!Y&&!_.Z4("USE_CSN_FALLBACK",!0))return null;Y||(Y="UNDEFINED_CSN");return Y?Y:null};
m4a=function(Y){for(var S=_.n(Object.values(zzu)),P=S.next();!P.done;P=S.next())if(_.pM(P.value)===Y)return!0;return!1};
nM9=function(Y,S,P){var u=u$1();(P=_.pM(P))&&delete u[P];S&&(u[Y]=S)};
Fv=function(Y){return u$1()[Y]};
_.jiK=function(Y,S,P,u){P=P===void 0?0:P;if(Y!==OXY(P)||S!==_.X3(SxU(P)))if(nM9(Y,u,P),Yx1(Y,P),_.lk(SxU(P),S),S=function(){setTimeout(function(){ek8(Y)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(S)}catch(W){S()}else S()};
JyU=function(Y,S){S=S===void 0?"":S;var P=[],u;for(u in Y)if(Y.hasOwnProperty(u)){var W=S!==""?S+"."+u:u;typeof Y[u]==="object"?P.push.apply(P,_.cz(JyU(Y[u],W))):P.push([W,Y[u]])}P.sort();return P};
_.cya=function(Y){var S=_.Ch.apply(1,arguments);if(!s2(Y)||S.some(function(u){return!s2(u)}))throw Error("hf");
S=_.n(S);for(var P=S.next();!P.done;P=S.next())Byu(Y,P.value)};
Byu=function(Y,S){for(var P in S)if(s2(S[P])){if(P in Y&&!s2(Y[P]))throw Error("jf");P in Y||(Y[P]={});Byu(Y[P],S[P])}else if(CGJ(S[P])){if(P in Y&&!CGJ(Y[P]))throw Error("kf");P in Y||(Y[P]=[]);qxE(Y[P],S[P])}else Y[P]=S[P];return Y};
qxE=function(Y,S){S=_.n(S);for(var P=S.next();!P.done;P=S.next())P=P.value,s2(P)?Y.push(Byu({},P)):CGJ(P)?Y.push(qxE([],P)):Y.push(P);return Y};
s2=function(Y){return typeof Y==="object"&&!Array.isArray(Y)};
CGJ=function(Y){return typeof Y==="object"&&Array.isArray(Y)};
x4X=function(Y){for(var S=_.n(Object.entries(Rz9)),P=S.next();!P.done;P=S.next())if(P=_.n(P.value),P.next(),P=P.next().value,P==="SLI_STATUS_"+Y)return P;return"SLI_STATUS_UNKNOWN"};
_.df=function(Y,S,P,u){return bla(Y,S,function(){return new _.Ty9(Y,S,P,u)})};
_.KJa=function(){return _.df("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
EMh=function(){return _.df("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
l6=function(){return _.df("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
fjE=function(){return _.df("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
gMa=function(){return _.df("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
$4U=function(){return _.df("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
hzX=function(Y){Y&&(Y.dataset?Y.dataset[ryh()]="true":_.Lh([_.Ua(Gjf)],Y,"data-loaded","true".toString()))};
vM$=function(Y){return Y?Y.dataset?Y.dataset[ryh()]:Y.getAttribute("data-loaded"):null};
ryh=function(){return D4u.loaded||(D4u.loaded="loaded".replace(/\-([a-z])/g,function(Y,S){return S.toUpperCase()}))};
_.Xv=function(Y,S,P){Iju(Y,S,P===void 0?null:P)};
_.LJh=function(Y,S){Y&&S&&(Y=""+_.Pt(S),(Y=ajh[Y])&&_.FM9(Y))};
Iju=function(Y,S,P){P=P===void 0?null:P;var u=_.wyE(Y),W=document.getElementById(u),m=W&&vM$(W),J=W&&!m;m?S&&S():(S&&(m=_.n_(u,S),S=""+_.Pt(S),ajh[S]=m),J||(W=py8(Y,u,function(){vM$(W)||(hzX(W),_.sKu(u),_.Jc(function(){_.lV9(u)},0))},P)))};
py8=function(Y,S,P,u){u=u===void 0?null:u;var W=_.nN("SCRIPT");W.id=S;W.onload=function(){P&&setTimeout(P,0)};
W.onreadystatechange=function(){switch(W.readyState){case "loaded":case "complete":W.onload()}};
u&&W.setAttribute("nonce",u);_.I9(W,_.Tl(Y));Y=document.getElementsByTagName("head")[0]||document.body;Y.insertBefore(W,Y.firstChild);return W};
_.wyE=function(Y){var S=document.createElement("a");xU(S,Y);return"js-"+ZC(S.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.d4E=function(){var Y=_.RY.clone(FJ9),S;return(new _.qs(function(P,u){Y.onSuccess=function(W){EyY(W)?P(new si1(W)):u(new _.i6("Request failed, status="+jH(W),"net.badstatus",W))};
Y.onError=function(W){u(new _.i6("Unknown request error","net.unknown",W))};
Y.onTimeout=function(W){u(new _.i6("Request timed out","net.timeout",W))};
S=_.qY("//googleads.g.doubleclick.net/pagead/id",Y)})).thenCatch(function(P){if(P instanceof _.ok){var u;
(u=S)==null||u.abort()}return _.t9(P)})};
ljE=function(Y){var S=_.X3("INNERTUBE_HOST_OVERRIDE");S&&(Y=String(S)+String(_.A9(Y)));return Y};
XyK=function(Y){var S={};_.f("json_condensed_response")&&(S.prettyPrint="false");return Y=zTX(Y,S)};
_.U2=function(Y){return Y2(Y)?"same-origin":"include"};
_.Qx=function(Y){return Y2(Y)?"same-origin":"cors"};
k5=function(Y,S,P){P=P===void 0?{}:P;Y={method:S===void 0?"POST":S,mode:_.Qx(Y),credentials:_.U2(Y)};S={};for(var u=_.n(Object.keys(P)),W=u.next();!W.done;W=u.next())W=W.value,P[W]&&(S[W]=P[W]);Object.keys(S).length>0&&(Y.headers=S);return Y};
_.Mq=function(Y,S){S=S===void 0?{}:S;return"service:"+Y+"/"+Object.keys(S).sort().map(function(P){return P+":"+S[P]}).join("/")};
Zlu=function(Y){var S,P,u,W;Y=(S=_.g(Y,_.yx))==null?void 0:(P=S.watchEndpointSupportedOnesieConfig)==null?void 0:(u=P.html5PlaybackOnesieConfig)==null?void 0:(W=u.commonConfig)==null?void 0:W.url;if(!Y)return[];S=new _.Nq(Y);return S.JSC$7905_domain_?["https://"+S.JSC$7905_domain_+"/generate_204"]:[]};
_.tjK=function(){return ilu()||jkE()||oME&&FV("version/")?!0:_.X3("EOM_VISITOR_DATA")?!1:!0};
Aya=function(Y){var S=Y.docid||Y.video_id||Y.videoId||Y.id;if(S)return S;S=Y.raw_player_response;S||(Y=Y.player_response)&&(S=JSON.parse(Y));return S&&S.videoDetails&&S.videoDetails.videoId||null};
_.QiY=function(Y){a:{var S="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(S="EMBEDDED_PLAYER_MODE_PFL");var P=Y.raw_embedded_player_response;if(!P&&(Y=Y.embedded_player_response))try{P=JSON.parse(Y)}catch(W){break a}if(P)b:for(var u in U4a)if(U4a[u]==P.embeddedPlayerMode){S=U4a[u];break b}}return S==="EMBEDDED_PLAYER_MODE_PFL"};
_.kjh=function(){if(_.f("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.tjK())return Error("pf");var Y=_.X3("PLAYER_VARS",{});if(_.RY.get(Y,"privembed",!1)=="1")return Error("qf");if(_.QiY(Y))return Error("rf")};
Mja=function(Y){return Y.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
H3=function(Y){return!isNaN(Number(Y))&&!_.Ba(Y)};
_.ef=function(Y,S,P,u){u=u===void 0?!0:u;var W=_.X3("VALID_SESSION_TEMPDATA_DOMAINS",[]),m=_.eX(window.location.href);m&&W.push(m);m=_.eX(Y);if(_.Au(W,m)||!m&&_.m$(Y,"/"))if(W=document.createElement("a"),xU(W,Y),Y=W.href)if(Y=_.A9(Y),Y=_.Vx(Y))u&&!S.csn&&(S.itct||S.ved)&&(S=Object.assign({csn:_.pM()},S)),P?(P=parseInt(P,10),isFinite(P)&&P>0&&yya(Y,S,P)):yya(Y,S)};
Hlh=function(Y){var S=_.X3("VALID_SESSION_TEMPDATA_DOMAINS",[]),P=_.eX(window.location.href);P&&S.push(P);P=_.eX(Y);if(!(_.Au(S,P)||!P&&_.m$(Y,"/")))return null;Y=_.A9(Y);(Y=_.Vx(Y))?(Y=Nyf(Y),Y=(Y=_.T_.get(Y,void 0)||null)?_.kZ(Y):{}):Y=null;return Y};
yya=function(Y,S,P){Y=Nyf(Y);S=S?_.R4(S):"";P=P||5;_.tjK()&&_.Kz(Y,S,P)};
Nyf=function(Y){for(var S=_.n(Vj8),P=S.next();!P.done;P=S.next())Y=_.O2(Y,P.value);return"ST-"+ZC(Y).toString(36)};
ez9=function(Y,S){Y.commandMetadata&&_.g(Y.commandMetadata,_.Yo)&&_.g(Y.commandMetadata,_.Yo).url&&(Y=_.MP(_.g(Y.commandMetadata,_.Yo).url).adurl)&&_.ny9(Y)&&_.ef(_.A9(Y),{encoded_ad_playback_context:S})};
_.Olh=function(Y){if(Y.requestFullscreen)Y=Y.requestFullscreen(void 0);else if(Y.webkitRequestFullscreen)Y=Y.webkitRequestFullscreen();else if(Y.mozRequestFullScreen)Y=Y.mozRequestFullScreen();else if(Y.msRequestFullscreen)Y=Y.msRequestFullscreen();else if(Y.webkitEnterFullscreen)Y=Y.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return Y instanceof Promise?Y:Promise.resolve()};
_.Pu=function(Y){var S;_.g9u(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.SR()==Y&&(S=document):S=Y;if(S&&(Y=_.g9u(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],S))){Y.call(S)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.SR=function(){var Y=Y===void 0?!1:Y;var S=_.g9u(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(Y)for(;S&&S.shadowRoot;)S=S.shadowRoot.fullscreenElement;return S?S:null};
_.uj=function(Y,S){S=S===void 0?!0:S;Y.addEventListener("wheel",Yja);Y.overscrollConfig={cooldown:S}};
_.zd=function(Y){Y.overscrollConfig=void 0;Y.removeEventListener("wheel",Yja)};
Yja=function(Y){var S=Y.deltaY,P=Y.target,u=null;if(window.Polymer&&window.Polymer.Element){if(P=Y.path||Y.composedPath&&Y.composedPath()){P=_.n(P);for(var W=P.next();!W.done&&(W=W.value,!SjK(W,S));W=P.next())if(W.overscrollConfig){u=W;break}}}else for(;P&&!SjK(P,S);){if(P.overscrollConfig){u=P;break}P=P.parentElement}u&&(S=u.overscrollConfig,S.cooldown?(u=Y.deltaY,P=S.lastDeltaY||0,S.lastDeltaY=u,W=S.lastStopped||0,P&&W&&P>0==u>0?Math.abs(P)>=Math.abs(u)?(u=W+1200,P=!1):(u=W+600,P=!0):(u=Date.now()+
600,P=!0),u>Date.now()&&(Y.preventDefault(),P&&(S.lastStopped=Date.now()))):Y.preventDefault())};
SjK=function(Y,S){return S<0&&Y.scrollTop>0||S>0&&Y.scrollTop<Y.scrollHeight-Y.clientHeight-1?(Y=getComputedStyle(Y).overflowY,Y=="auto"||Y=="scroll"):!1};
_.ms=function(Y,S,P,u){u||(u={bubbles:!0,cancelable:!1,composed:!0});P!==null&&P!==void 0&&(u.detail=P);S=new CustomEvent(S,u);Y.dispatchEvent(S);return S};
_.nb=function(Y,S,P,u){S=new Pif(S,!(u===void 0||!u),P);_.ms(Y,"yt-action",S);return S.returnValue};
_.jR=function(Y,S,P){return _.nb(Y,S,P,!0)};
_.J6=function(Y,S,P){return _.nb(Y,S,P)[0]};
_.cu=function(Y,S,P,u){S&&S.length&&S.forEach(function(W){var m=EJh(W);m&&(_.f("handle_service_request_actions")&&W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.sendPost?_.Bu(P?P:Y,[W]):_.jR(Y,m,[W,P,u]))})};
_.Bu=function(Y,S){var P=[Y];S&&P.push.apply(P,S);S=_.nb(Y,"yt-service-request",P);return S.length>0&&(S=S[0],_.ms(Y,"yt-service-request-sent",S),S&&S.ajaxPromise)?(S.ajaxPromise.then(function(u){_.ms(Y,"yt-service-request-completed",u)},function(u){_.ms(Y,"yt-service-request-error",{error:u,
params:P})},Y),S.ajaxPromise):_.Cb()};
_.RA=function(Y,S){if(_.f("handle_service_request_actions"))_.cu(S,Y,S);else{Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next()){P=P.value;var u=void 0;((u=_.g(P,_.qT))==null?0:u.commands)?_.RA(_.g(P,_.qT).commands,S):(u=void 0,((u=_.g(P,_.xo))==null?0:u.actions)?_.RA(_.g(P,_.xo).actions,S):(u=void 0,((u=_.g(P.commandMetadata,_.Yo))==null?0:u.sendPost)?_.Bu(S,[P]):_.cu(S,[P],S)))}}};
_.WIh=function(Y,S,P){S=S===void 0?{}:S;typeof S==="function"&&(S={callback:S});P||S._c&&S._c.jsl&&S._c.jsl.h||_.RY.extend(S,{_c:{jsl:{h:_.X3("GAPI_HINT_PARAMS")}}});(S.gapiHintOverride||_.X3("GAPI_HINT_OVERRIDE"))&&(P=_.MP(document.location.href).gapi_jsh)&&_.RY.extend(S,{_c:{jsl:{h:P}}});uyU(Y,S)};
_.Td=function(Y,S,P){S=S===void 0?{}:S;Y=(Y=Y in bj?bj[Y]:P)||"";P={};for(var u in S){P={key$jscomp$788:P.key$jscomp$788};P.key$jscomp$788=u;var W=function(m){return function(){return String(S[m.key$jscomp$788])}}(P);
Y=Y.replace(new RegExp("\\$\\{"+P.key$jscomp$788+"\\}","gi"),W);Y=Y.replace(new RegExp("\\$"+P.key$jscomp$788,"gi"),W)}return Y};
_.fb=function(Y,S){return zO9(Y in bj?bj[Y]:{},S)};
zO9=function(Y,S){var P=_.X3("I18N_PLURAL_RULES");P||(P=function(u){return u==1?"one":"other"});
return(Y=Y["case"+S]||Y[P(S)])?Y.replace("#",S.toString()):S+""};
j7X=function(Y){var S=md9(Y),P=document.getElementById(S),u=P&&vM$(P);u||P&&!u||(P=nqh(Y,S,function(){if(!vM$(P)){hzX(P);_.sKu(S);var W=_.gP(_.lV9,S);_.Jc(W,0)}}))};
nqh=function(Y,S,P){var u=document.createElement("link");u.id=S;u.onload=function(){P&&setTimeout(P,0)};
Y=_.Tl(Y);_.wE(u,Y,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(u);return u};
md9=function(Y){var S=_.nN("A");xU(S,Wx(Y));return"css-"+ZC(S.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.BU1=function(Y){var S=Jzh();Y!==S&&(S=_.$o(),!_.f("web_autonav_allow_off_by_default")&&Y||_.rP(0,141,!0),_.rP(0,140,!Y),S.save())};
Jzh=function(){var Y=_.$o();return _.f("web_autonav_allow_off_by_default")&&!Y.getFlag(141)&&_.X3("AUTONAV_OFF_BY_DEFAULT")?!1:!Y.getFlag(140)};
cza=function(Y,S){var P,u;Y=((P=Y.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(u=P.videoAuthorizationToken)==null?void 0:u.credentialTransferTokens)||[];for(P=0;P<Y.length;++P)if(Y[P].scope===S)return Y[P].token||void 0};
CiJ=function(Y){for(var S=0,P=0;P<Y.length;P++)S=S*31+Y.charCodeAt(P),P<Y.length-1&&(S%=0x800000000000);return S%1E5};
_.Gd=function(Y){return _.tA("ytcsi."+(Y||"")+"data_")||qjE(Y)};
_.ROf=function(Y){Y=_.Gd(Y);Y.metadata||(Y.metadata={});return Y.metadata};
_.xdE=function(Y){Y=_.Gd(Y);Y.tick||(Y.tick={});return Y.tick};
_.bQU=function(Y){Y=_.Gd(Y);if(Y.gel){var S=Y.gel;S.gelInfos||(S.gelInfos={});S.gelTicks||(S.gelTicks={})}else Y.gel={gelTicks:{},gelInfos:{}};return Y.gel};
_.TUK=function(Y){Y=_.bQU(Y);Y.gelInfos||(Y.gelInfos={});return Y.gelInfos};
KIf=function(Y){var S=_.Gd(Y).nonce;S||(S=ak(16),_.Gd(Y).nonce=S);return S};
qjE=function(Y){var S={tick:{},info:{}};_.HQ("ytcsi."+(Y||"")+"data_",S);return S};
EqE=function(){var Y=_.tA("ytcsi.debug");Y||(Y=[],_.HQ("ytcsi.debug",Y),_.HQ("ytcsi.reference",{}));return Y};
_.gqa=function(Y){Y=Y||"";var S=fHJ();if(S[Y])return S[Y];var P=EqE(),u={timerName:Y,info:{},tick:{},span:{},jspbInfo:[]};P.push(u);return S[Y]=u};
$dY=function(Y){Y=Y||"";var S=fHJ();S[Y]&&delete S[Y];var P=EqE(),u={timerName:Y,info:{},tick:{},span:{},jspbInfo:[]};P.push(u);S[Y]=u};
fHJ=function(){var Y=_.tA("ytcsi.reference");if(Y)return Y;EqE();return _.tA("ytcsi.reference")};
_.G99=function(Y){return rz9[Y]||"LATENCY_ACTION_UNKNOWN"};
IHu=function(Y,S,P){P=P===void 0?{}:P;var u=!1;_.Z4("ytLoggingEventsDefaultDisabled",!1)&&(u=!0);u=u?null:az;P=P===void 0?{}:P;var W=Math.round(P.timestamp||(0,_.Oh)());_.r6(S,1,W<Number.MAX_SAFE_INTEGER?W:0);W=new hO8;if(P.lact)_.r6(W,1,isFinite(P.lact)?P.lact:-1);else if(P.timestamp)_.r6(W,1,-1);else{var m=_.uE();_.r6(W,1,isFinite(m)?m:-1)}if(P.sequenceGroup&&!_.f("web_gel_sequence_info_killswitch")){m=P.sequenceGroup;var J=MDX(m),c=new vq8;c.setIndex(J);_.zH(c,1,m);_.N8(W,3,c);P.endOfSequence&&
delete Dd$[P.sequenceGroup]}_.N8(S,33,W);(P.sendIsolatedPayload?OVa:YXh)(Y,{endpoint:"log_event",payload:S,cttAuthInfo:P.cttAuthInfo,dangerousLogToVisitorSession:P.dangerousLogToVisitorSession},u)};
_.vu=function(){return(_.f("csi_use_time_origin")||_.f("csi_use_time_origin_tvhtml5"))&&_.h6.timeOrigin?Math.floor(_.h6.timeOrigin):_.h6.timing.navigationStart};
_.aHK=function(Y,S){_.D9("_start",Y,S)};
_.IA=function(Y,S){if(!_.f("web_csi_action_sampling_enabled")||!_.Gd(S).actionDisabled){var P=_.gqa(S||"");_.cya(P.info,Y);Y.loadType&&(P=Y.loadType,_.ROf(S).loadType=P);_.cya(_.TUK(S),Y);P=KIf(S);S=_.Gd(S).cttAuthInfo;LIh().info(Y,P,S)}};
wOa=function(){var Y,S,P,u;return((u=_.E().resolve(_.PQ(vK))==null?void 0:(Y=kYX())==null?void 0:(S=Y.loggingHotConfig)==null?void 0:(P=S.csiConfig)==null?void 0:P.debugTicks)!=null?u:[]).map(function(W){return Object.values(W)[0]})};
_.D9=function(Y,S,P){if(!_.f("web_csi_action_sampling_enabled")||!_.Gd(P).actionDisabled){var u=KIf(P),W;if(W=_.f("web_csi_debug_sample_enabled")&&u){(_.E().resolve(_.PQ(vK))==null?0:kYX())&&!pOU&&(pOU=!0,_.D9("gcfl",(0,_.Oh)(),P));var m,J,c;W=(_.E().resolve(_.PQ(vK))==null?void 0:(m=kYX())==null?void 0:(J=m.loggingHotConfig)==null?void 0:(c=J.csiConfig)==null?void 0:c.debugSampleWeight)||0;if(m=W!==0)b:{m=wOa();if(m.length>0)for(J=0;J<m.length;J++)if(Y===m[J]){m=!0;break b}m=!1}m?(W=CiJ(u)%W!==0,
_.Gd(P).debugTicksExcludedLogged||(m={},m.debugTicksExcluded=W,_.IA(m,P)),_.Gd(P).debugTicksExcludedLogged=!0):W=!1}if(!W){Y[0]!=="_"&&FIf(Y,P,S);W=_.gqa(P||"");W.tick[Y]=S||(0,_.Oh)();if(W.callback&&W.callback[Y])for(W=_.n(W.callback[Y]),m=W.next();!m.done;m=W.next())m=m.value,m();W=_.bQU(P);W.gelTicks&&(W.gelTicks[Y]=!0);m=_.xdE(P);W=S||(0,_.Oh)();_.f("log_repeated_ytcsi_ticks")?Y in m||(m[Y]=W):m[Y]=W;m=_.Gd(P).cttAuthInfo;Y==="_start"?LIh().baseline(u,S,m):LIh().tick(Y,u,S,m);_.s71(P);return W}}};
FIf=function(Y,S,P){if(_.h6.mark)if(Y.startsWith("mark_")||(Y="mark_"+Y),S&&(Y+=" ("+S+")"),P===void 0||_.f("web_csi_disable_alt_time_performance_mark"))_.h6.mark(Y);else{P=_.f("csi_use_performance_navigation_timing")||_.f("csi_use_performance_navigation_timing_tvhtml5")?P-_.h6.timeOrigin:P-(_.h6.timeOrigin||_.h6.timing.navigationStart);try{_.h6.mark(Y,{startTime:P})}catch(u){}}};
dd$=function(){var Y,S=(Y=_.h6.getEntriesByType)==null?void 0:Y.call(_.h6,"mark");S&&S.forEach(function(P){if(P.name.startsWith("mark_")){var u;(u=_.h6.clearMarks)==null||u.call(_.h6,P.name)}})};
_.lHE=function(){switch(fVh()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.XOJ=function(Y){var S={},P=function(m,J,c){J=J.match("_rid")?J.split("_rid")[0]:J;typeof c==="number"&&(c=JSON.stringify(c));m.requestIds?m.requestIds.push({endpoint:J,id:c}):m.requestIds=[{endpoint:J,id:c}]};
Y=_.n(Object.entries(Y));for(var u=Y.next();!u.done;u=Y.next()){var W=_.n(u.value);u=W.next().value;W=W.next().value;switch(u){case "GetBrowse_rid":P(S,u,W);break;case "GetGuide_rid":P(S,u,W);break;case "GetHome_rid":P(S,u,W);break;case "GetPlayer_rid":P(S,u,W);break;case "GetSearch_rid":P(S,u,W);break;case "GetSettings_rid":P(S,u,W);break;case "GetTrending_rid":P(S,u,W);break;case "GetWatchNext_rid":P(S,u,W);break;case "yt_red":S.isRedSubscriber=!!W;break;case "yt_ad":S.isMonetized=!!W}}return S};
_.ZQ8=function(Y){var S=_.aA("aft",Y);if(S)return S;S=_.X3((Y||"")+"TIMING_AFT_KEYS",["ol"]);for(var P=S.length,u=0;u<P;u++){var W=_.aA(S[u],Y);if(W)return W}return NaN};
_.iQY=function(Y,S){_.HQ("ytglobal.timing"+(S||"")+"ready_",Y)};
_.aA=function(Y,S){if(Y=_.xdE(S)[Y])return typeof Y==="number"?Y:Y[Y.length-1]};
_.s71=function(Y){var S=_.aA("_start",Y),P=_.ZQ8(Y),u=!oqf;S&&P&&u&&(y6a(tvu,new Az$(Math.round(P-S),Y)),oqf=!0)};
Q7Y=function(Y){qjE(Y);Udh();dd$();Y||(_.X3("TIMING_ACTION")&&_.lk("PREVIOUS_ACTION",_.X3("TIMING_ACTION")),_.lk("TIMING_ACTION",""))};
_.k9u=function(Y){Y=Y===void 0?{}:Y;_.oj(function(){Lb();$dY();Q7Y();_.iQY(!1);Y.cttAuthInfo&&(_.Gd().cttAuthInfo=Y.cttAuthInfo);_.lk("TIMING_AFT_KEYS",[]);Y.isHot?_.wP({loadType:"hot"}):_.wP({loadType:"warm"});_.lk("TIMING_ACTION","");delete _.X3("TIMING_INFO",{}).yt_lt;_.oj(_.aHK)(Y.startTime,void 0)})()};
_.pb=function(Y,S,P,u){S=S===void 0?{}:S;_.oj(function(){var W=P?P:Y;Mv$(W);var m=S.sampleRate;if(!_.f("web_csi_action_sampling_enabled")||m===void 0||m<=1)m=!1;else{var J=KIf(W);m=CiJ(J)%m!==0}m&&(_.Gd(W).actionDisabled=!0);_.gqa(W||"").info.actionType=Y;S.cttAuthInfo&&(_.Gd(W).cttAuthInfo=S.cttAuthInfo);_.lk(W+"TIMING_ACTION",Y);_.oj(_.aHK)(S.startTime,W);m={actionType:u||_.G99(Y)};S.logPreviousAction&&(m.previousAction=_.G99(_.X3("TIMING_ACTION")));(J=_.pM())&&J!=="UNDEFINED_CSN"&&(m.clientScreenNonce=
J);_.wP(m,W);_.iQY(!0,W)})()};
Mv$=function(Y){_.oj(function(){Lb(Y);$dY(Y);Q7Y(Y)})()};
yzJ=function(){_.oj(function(){var Y=[],S;for(S in _.tA("ytcsi.".slice(0,-1)))S.endsWith("data_")&&Y.push(S.slice(0,-5));Y=_.n(Y);for(S=Y.next();!S.done;S=Y.next())Mv$(S.value);Lb()})()};
_.HQ9=function(Y){return _.oj(function(){return _.NUK("_start",Y)})()};
_.wP=function(Y,S,P){_.oj(_.IA)(Y,S,P===void 0?!1:P)};
_.Fk=function(Y,S,P){return _.oj(_.D9)(Y,S,P)};
_.NUK=function(Y,S){return _.oj(function(){var P=_.xdE(S);return Y in P})()};
eO1=function(Y){if(!_.f("universal_csi_network_ticks"))return"";Y=_.Cz(Y)||"";for(var S=Object.keys(Vv8),P=0;P<S.length;P++){var u=S[P];if(Y.includes(u))return u}return""};
YbY=function(Y){if(!_.f("universal_csi_network_ticks"))return function(){};
var S=Vv8[Y];return S?(_.sV(S),function(){var P=_.f("universal_csi_network_ticks")?(P=OQh[Y])?_.sV(P):!1:!1;return P}):function(){}};
_.sV=function(Y,S,P){return _.oj(function(){if(_.NUK(Y,P))return!1;_.Fk(Y,S,P);return!0})()};
_.dP=function(Y,S,P){_.oj(function(){if(!_.HQ9(P)||_.NUK(Y,P))return!1;_.Fk(Y,S,P);return!0})()};
_.lj=function(Y){return _.oj(_.aA)(Y,void 0)};
Lb=function(Y){_.HQ9(Y)&&_.Fk("aa",void 0,Y)};
_.zua=function(Y,S,P,u,W,m,J,c,C){var x=Sbf();c=new _.LM({veType:S,youtubeData:m,jspbYoutubeData:c});m=Xk({},x);W&&(m.cttAuthInfo=W);W={csn:x,pageVe:c.getAsJson()};_.f("expectation_logging")&&C&&C.screenCreatedLoggingExpectations&&(W.screenCreatedLoggingExpectations=C.screenCreatedLoggingExpectations);P&&P.visualElement?(W.implicitGesture={parentCsn:P.clientScreenNonce,gesturedVe:P.visualElement.getAsJson()},J&&(W.implicitGesture.gestureType=J)):P&&_.sf(new _.$2("newScreen() parent element does not have a VE - rootVe",
S));u&&(W.cloneCsn=u);Y?Iz("screenCreated",W,Y,m):_.L_("screenCreated",W,m);y6a(SCK,new PTa(x));Z9.clear();uP1.clear();WQf.clear();return x};
ij=function(Y,S,P,u,W){_.mKh(Y,S,P,[u],W===void 0?!1:W)};
_.mKh=function(Y,S,P,u,W){W=W===void 0?!1:W;for(var m=Xk({cttAuthInfo:Fv(S)||void 0},S),J=_.n(u),c=J.next();!c.done;c=J.next()){c=c.value;var C=c.getAsJson();(_.RY.isEmpty(C)||!C.trackingParams&&!C.veType)&&_.sf(Error("uf"));if(_.f("no_client_ve_attach_unless_shown")){var x=nNY(c,S);if(C.veType&&!uP1.has(x)&&!WQf.has(x)&&!W){if(!_.f("il_attach_cache_limit")||Z9.size<1E3){Z9.set(x,[Y,S,P,c]);return}_.f("il_attach_cache_limit")&&Z9.size>1E3&&_.sf(new _.$2("IL Attach cache exceeded limit"))}c=nNY(P,
S);Z9.has(c)?jx$(P,S):WQf.set(c,!0)}}u=u.filter(function(b){b.csn!==S?(b.csn=S,b=!0):b=!1;return b});
P={csn:S,parentVe:P.getAsJson(),childVes:_.b9(u,function(b){return b.getAsJson()})};
S==="UNDEFINED_CSN"?oA("visualElementAttached",m,P):Y?Iz("visualElementAttached",P,Y,m):_.L_("visualElementAttached",P,m)};
Bg1=function(Y,S,P,u,W){JV9(Y,S,P,W)};
JV9=function(Y,S,P,u){cV1(P,S);var W=Xk({cttAuthInfo:Fv(S)||void 0},S);P={csn:S,ve:P.getAsJson(),eventType:1};u&&(P.clientData=u);S==="UNDEFINED_CSN"?oA("visualElementShown",W,P):Y?Iz("visualElementShown",P,Y,W):_.L_("visualElementShown",P,W)};
CT9=function(Y,S,P,u){cV1(P,S);var W=Xk({cttAuthInfo:Fv(S)||void 0},S);P={csn:S,ve:P.getAsJson(),eventType:4};u&&(P.clientData=u);S==="UNDEFINED_CSN"?oA("visualElementShown",W,P):Y?Iz("visualElementShown",P,Y,W):_.L_("visualElementShown",P,W)};
qbh=function(Y,S,P,u,W){var m=(u=u===void 0?!1:u)?16:8;u=Xk({cttAuthInfo:Fv(S)||void 0,endOfSequence:u},S);P={csn:S,ve:P.getAsJson(),eventType:m};W&&(P.clientData=W);S==="UNDEFINED_CSN"?oA("visualElementHidden",u,P):Y?Iz("visualElementHidden",P,Y,u):_.L_("visualElementHidden",P,u)};
xKf=function(Y,S,P,u,W){Ru8(Y,S,P,void 0,u,W)};
Ru8=function(Y,S,P,u,W){cV1(P,S);u=u||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var m=Xk({cttAuthInfo:Fv(S)||void 0},S);P={csn:S,ve:P.getAsJson(),gestureType:u};W&&(P.clientData=W);S==="UNDEFINED_CSN"?oA("visualElementGestured",m,P):Y?Iz("visualElementGestured",P,Y,m):_.L_("visualElementGestured",P,m)};
bwh=function(Y,S,P,u){var W=Xk({cttAuthInfo:Fv(S)||void 0},S);P={csn:S,ve:P.getAsJson(),clientData:u};S==="UNDEFINED_CSN"?oA("visualElementStateChanged",W,P):Y?Iz("visualElementStateChanged",P,Y,W):_.L_("visualElementStateChanged",P,W)};
Tgu=function(){var Y=HXY(16);for(var S=[],P=0;P<Y.length;P++)S.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Y[P]&63));return S.join("")};
oA=function(Y,S,P){KQY.push({payloadName:Y,payload:P,jspbPayload:void 0,options:S});ENa||(ENa=upY())};
YC9=function(Y){if(KQY){for(var S=_.n(KQY),P=S.next();!P.done;P=S.next())P=P.value,P.payload&&(P.payload.csn=Y.csn,_.L_(P.payloadName,P.payload,P.options));KQY.length=0}ENa=0};
nNY=function(Y,S){return""+Y.getAsJson().veType+Y.getAsJson().veCounter+S};
cV1=function(Y,S){if(_.f("no_client_ve_attach_unless_shown")){var P=nNY(Y,S);uP1.set(P,!0);jx$(Y,S)}};
jx$=function(Y,S){Y=nNY(Y,S);Z9.has(Y)&&(S=Z9.get(Y)||[],ij(S[0],S[1],S[2],S[3],!0),Z9.delete(Y))};
Xk=function(Y,S){_.f("log_sequence_info_on_gel_web")&&(Y.sequenceGroup=S);return Y};
_.t6=function(Y,S,P){_.oj(ij)(void 0,Y,S,P)};
_.A6=function(Y,S){_.oj(Bg1)(void 0,Y,S,void 0,void 0,void 0)};
_.UV=function(Y,S,P){_.oj(function(){_.Q4(S,function(u){CT9(void 0,Y,u,P)})})()};
_.QP=function(Y,S,P,u){_.oj(function(){_.Q4(S,function(W){qbh(void 0,Y,W,P,u)})})()};
_.ko=function(Y,S,P){_.oj(xKf)(void 0,Y,S,P,void 0)};
_.MT=function(Y,S,P,u){_.oj(Ru8)(void 0,Y,S,P,u,void 0)};
_.yP=function(Y,S,P){_.oj(bwh)(void 0,Y,S,P,void 0)};
fT8=function(Y,S){NT.set(Y,S)};
gN1=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(Y){return(+Y^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+Y/4).toString(16)})};
hu9=function(Y,S){S=S===void 0?{}:S;if(Hu&&Hu.sample(Y,S)){var P=$KY++,u,W;Y=new rV9(Y,S,performance.now(),P,Grf,(W=(u=VP)==null?void 0:u.traceId)!=null?W:P);if(VP){var m;(m=VP).children||(m.children=[]);VP.children.push(Y)}P=_.n(Hu.spanProcessors);for(u=P.next();!u.done;u=P.next())m=W=void 0,(m=(W=u.value).onSpanStart)==null||m.call(W,Y);return VP=Y}};
vN8=function(Y){var S;return(S=Hu)==null?void 0:S.sample(Y,void 0)};
DKX=function(Y){Grf=gN1();Hu=Y};
IT8=function(Y,S,P){if(!Y)return S(P);var u=void 0;try{return S(P)}catch(W){throw u="error",W;}finally{Y==null||Y.close(u)}};
aTY=function(Y,S){var P=Object.keys(Y);Y=new _.$2("[Command Handler] "+S,{filteredCommandNames:P,originalCommand:Y});_.p_(Y)};
LQY=function(Y,S){aTY(Y,S+" was called but not set")};
wHh=function(Y){return function(){return new Y}};
eR=function(Y){return function(){return _.E().resolve(Y)}};
pH1=function(Y,S){var P=_.g(Y,_.iE);if(P&&(P=S[P.signal]))return P();Y=_.n(Object.keys(Y));for(P=Y.next();!P.done;P=Y.next())if(P=P.value,S[P]&&(P=S[P]))return P()};
OV=function(Y,S,P,u){return{browseEndpoint:{browseId:Y},commandMetadata:{webCommandMetadata:{url:S,rootVe:P,webPageType:u===void 0?"WEB_PAGE_TYPE_BROWSE":u}}}};
FQJ=function(Y,S,P){var u=S=S===void 0?0:S;P=P===void 0?0:P;var W=P-u;return _.YW(Y,"PPSV",void 0,void 0,(W>600?0:W<60||P<=0||u/P>.9)?0:S)};
_.YW=function(Y,S,P,u,W){var m="/watch?v="+Y;Y={videoId:Y};S&&(Y.playlistId=S,m+="&list="+S);u&&(m+="&pp="+u);W&&(Y.startTimeSeconds=W,m+="&t="+W+"s");S={watchEndpoint:Y,commandMetadata:{webCommandMetadata:{url:m,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};P&&(S.clickTrackingParams=P);u&&(_.g(S,_.yx).playerParams=u);return S};
sx1=function(Y){return{browseEndpoint:{browseId:"VL"+Y},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+Y,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
dKJ=function(Y){if(Y){var S;if(Y){var P=(S=_.g(Y.commandMetadata,_.Yo))==null?void 0:S.url;S=!(!P||P==="/service_ajax")}else S=!1;if(S)return Y;var u;if(Y=(u=_.g(Y,_.qT))==null?void 0:u.commands)for(u=_.n(Y),Y=u.next();!Y.done;Y=u.next())if(Y=dKJ(Y.value))return Y}};
_.Sk=function(Y){return{runs:[{text:Y}]}};
lTX=function(Y,S){return Y&&S?{runs:[{text:Y,navigationEndpoint:S}]}:void 0};
PT=function(Y){return Y?_.Sk(Y):void 0};
_.uI=function(Y){return Y?{simpleText:Y}:void 0};
_.WT=function(Y){var S=Y.type;Y=Y.payload;S={type:S};Y!==void 0&&(S.payload=Y);return S};
XH9=function(Y,S,P){for(var u=Object.assign({},Y),W=_.n(Object.keys(S)),m=W.next();!m.done;m=W.next()){m=m.value;var J=Y[m],c=S[m];if(c===void 0)delete u[m];else if(J===void 0)u[m]=c;else if(Array.isArray(c)&&Array.isArray(J))u[m]=P?[].concat(_.cz(J),_.cz(c)):c;else if(!Array.isArray(c)&&_.SS(c)&&!Array.isArray(J)&&_.SS(J))u[m]=XH9(J,c,P);else if(typeof c===typeof J)u[m]=c;else return S=new _.$2("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:m,originalValue:J,updateValue:c}),
_.p_(S),Y}return u};
oNU=function(Y){if(!Y.length)return"";try{if(ZwJ)return ZwJ.decode(Y);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(Y)}catch(J){}for(var S=0,P=[],u=Y.length;S<u;){for(var W=0;W<1024&&S<u;){var m=Y[S++];if(m<128)iw$[W++]=m;else{if(m<224)m=(m&31)<<6|Y[S++]&63;else if(m<240)m=(m&15)<<12|(Y[S++]&63)<<6|Y[S++]&63;else{if(W+1===1024){--S;break}m=(m&7)<<18|(Y[S++]&63)<<12|(Y[S++]&63)<<6|Y[S++]&63;m-=65536;iw$[W++]=55296|m>>10;m=56320|m&1023}iw$[W++]=m}}m=String.fromCharCode.apply(String,
iw$);W<1024&&(m=m.substring(0,W));P.push(m)}return P.join("")};
AVJ=function(Y,S){var P;if((P=tdX)==null?0:P.encodeInto)return S=tdX.encodeInto(Y,S),S.read<Y.length?Y.length*4:S.written;for(var u=P=0;u<Y.length;u++){var W=Y.charCodeAt(u);W<128?S[P++]=W:(W<2048?S[P++]=W>>6|192:((W&64512)===55296&&u+1<Y.length&&(Y.charCodeAt(u+1)&64512)===56320?(W=65536+((W&1023)<<10)+(Y.charCodeAt(++u)&1023),S[P++]=W>>18|240,S[P++]=W>>12&63|128):S[P++]=W>>12|224,S[P++]=W>>6&63|128),S[P++]=W&63|128)}return P};
UKa=function(Y,S){Y=new Uint8Array(Y);S&&Y.set(S);return Y};
_.mZ=function(Y){Y=new Qxh(new kra([_.z3(decodeURIComponent(Y))]));if(MdX(Y,2)){var S=zM(Y);var P=Y.pos;P=Y.arrayView.getDataView(P===void 0?0:P,S===void 0?-1:S);P=new Uint8Array(P.buffer,P.byteOffset,P.byteLength);Y.pos+=S;S=P}else S=void 0;S=S?oNU(S):void 0;Y=MdX(Y,4)?zM(Y):void 0;P=yV8[Y];if(typeof P==="undefined")throw Y=new _.$2("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:Y}),_.p_(Y),Y;return{entityTypeFieldNumber:Y,entityType:P,entityId:S}};
_.JE=function(Y,S,P){P=P===void 0?0:P;var u=new Ng9;if(tdX)Y=tdX.encode(Y);else{var W=new Uint8Array(Math.ceil(Y.length*1.2)),m=AVJ(Y,W);W.length<m&&(W=new Uint8Array(m),m=AVJ(Y,W));W.length>m&&(W=W.subarray(0,m));Y=W}Y!==void 0&&(nA(u,18),W=Y.length,nA(u,W),jk(u,W),u.buf.set(Y,u.pos),u.pos+=W);Y=HwJ[S];if(typeof Y==="undefined")throw P=new _.$2("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:S}),_.p_(P),P;Y!==void 0&&(nA(u,32),nA(u,Y));nA(u,40);nA(u,1);S=new Uint8Array(u.buf.buffer,
u.buf.byteOffset,u.pos);return encodeURIComponent(_.QB(S,P))};
Vd8=function(Y){Y=Y.key||Y.id;if(!Y)throw Error("yf");return Y};
Ow1=function(Y,S){Y=Y===void 0?{}:Y;return euY(Y,S)};
YqX=function(Y,S,P,u){if(u===void 0)return u=Object.assign({},Y[S]||{}),P=(delete u[P],u),u={},Object.assign({},Y,(u[S]=P,u));var W={},m={};return Object.assign({},Y,(m[S]=Object.assign({},Y[S],(W[P]=u,W)),m))};
Sqh=function(Y,S,P,u,W){var m=Y[S];if(m==null||!m[P])return Y;u=XH9(m[P],u,W==="REPEATED_FIELDS_MERGE_OPTION_APPEND");W={};m={};return Object.assign({},Y,(m[S]=Object.assign({},Y[S],(W[P]=u,W)),m))};
_.BT=function(Y,S,P){return Y[S]?Y[S][P]||null:null};
uKu=function(){if(Pvh)return Pvh();var Y={};Pvh=eH("PersistentEntityStoreDb",{objectStores:(Y.EntityStore={addedAtVersion:1},Y.EntityAssociationStore={addedAtVersion:2},Y),shared:!1,upgrade:function(S,P){P(1)&&ti(ZR(S,"EntityStore",{keyPath:"key"}),"entityType","entityType");P(2)&&(S=ZR(S,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),ti(S,"byParentEntityKey","parentEntityKey"),ti(S,"byChildEntityKey","childEntityKey"))},
version:3});return Pvh()};
WTE=function(Y){return _.Uh(uKu(),Y)};
cT=function(Y){return window.Int32Array?new Int32Array(Y):Array(Y)};
mJJ=function(Y){return _.Uh(z7K(),Y)};
nfa=function(Y){return new CA("WRONG_DATA_TYPE",{encoderVersion:Y})};
jME=function(Y){return Y instanceof Error?new CA("UNKNOWN_ENCODE_ERROR",{originalMessage:Y.message}):new CA("UNKNOWN_ENCODE_ERROR")};
J7U=function(Y){return Y instanceof Error?new CA("UNKNOWN_DECODE_ERROR",{originalMessage:Y.message}):new CA("UNKNOWN_DECODE_ERROR")};
BF8=function(Y,S){Y=Y instanceof CA?Y:S(Y);_.p_(Y);throw Y;};
c71=function(Y){Y=(new TextEncoder).encode(Y).subarray(0,16);var S=new Uint8Array(16);S.set(Y);return S};
qqa=function(Y){var S=Cva[Y];if(S)return S;_.sf(new _.$2("Entity model not found.",{entityType:Y}))};
_.qa=function(){R7K||(R7K=xJJ());return R7K};
xJJ=function(){var Y,S,P;return _.B(function(u){if(u.nextAddress==1)return _.ND(u,2),_.q(u,_.Vl(),4);if(u.nextAddress!=2){Y=u.yieldResult;if(!Y||!_.gk()||typeof _.Pa.BroadcastChannel==="undefined")return u.return();S=new brh;return u.return(new RR(Y,S))}P=_.O4(u);P instanceof Error&&_.p_(P);return u.return()})};
_.xW=function(Y,S){var P;return _.B(function(u){if(u.nextAddress==1){P=Y.mutations;if(!P||P.length<=0)return u.return();S&&S.dispatch(_.WT({type:"ENTITY_LOADED",payload:P}));return _.q(u,TF1(P),2)}P.length=0;_.Yt(u)})};
TF1=function(Y){var S;return _.B(function(P){return P.nextAddress==1?_.q(P,_.qa(),2):(S=P.yieldResult)?_.q(P,_.TM(S,"readwrite",function(u){for(var W={},m=_.n(Y),J=m.next(),c={};!J.done;c={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},J=m.next())c.mutation$jscomp$4=J.value,c.mutation$jscomp$4.entityKey&&KTU(c.mutation$jscomp$4)&&(c.mutationEntityType$jscomp$3=(0,_.RY.getAnyKey)(c.mutation$jscomp$4.payload),J=void 0,c.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(J=function(C){return function(){return _.Ef9(u,
C.mutation$jscomp$4.payload[C.mutationEntityType$jscomp$3],C.mutationEntityType$jscomp$3)}}(c)),c.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(J=function(C){return function(){return fou(u,C.mutation$jscomp$4.entityKey)}}(c)),c.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(J=function(C){return function(){return gfa(u,C.mutation$jscomp$4.entityKey,C.mutation$jscomp$4.payload[C.mutationEntityType$jscomp$3],C.mutationEntityType$jscomp$3)}}(c)),J&&(W[c.mutation$jscomp$4.entityKey]=
W[c.mutation$jscomp$4.entityKey]?W[c.mutation$jscomp$4.entityKey].then(J):J()));
return XV.all(Object.values(W))}),0):P.return()})};
KTU=function(Y){var S;Y=(S=Y.options)==null?void 0:S.persistenceOption;return Y==="ENTITY_PERSISTENCE_OPTION_PERSIST"||Y==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
GfK=function(Y,S){var P,u;_.B(function(W){if(W.nextAddress==1)return _.q(W,_.qa(),2);if(W.nextAddress!=3)return(P=W.yieldResult)?_.q(W,_.TM(P,"readonly",function(m){var J={},c=Object.keys(S).map(function(C){var x=S[C]?[].concat(_.cz(S[C])):[];return $Ju(m,C,x,J)});
return XV.all(c).then(function(){return J})}),3):W.return();
u=W.yieldResult;Object.keys(u).length>0&&Y.dispatch(r7E(u));_.Yt(W)})};
$Ju=function(Y,S,P,u){return KA(Y,S,P).then(function(W){u[S]=h7Y(P,W)})};
h7Y=function(Y,S){if(S.length!==Y.length)throw Error("Bf");return S.reduce(function(P,u,W){P[Y[W]]=u;return P},{})};
IoJ=function(Y){var S=Y.filter(function(W){var m;return(W==null?void 0:(m=W.transferEntity)==null?void 0:m.transferState)==="TRANSFER_STATE_COMPLETE"}).length,P=Y.filter(function(W){var m;
return(W==null?void 0:(m=W.transferEntity)==null?void 0:m.transferState)==="TRANSFER_STATE_FAILED"}).length,u=Y.filter(function(W){var m;
return(W==null?void 0:(m=W.transferEntity)==null?void 0:m.transferState)&&vf8.includes(W.transferEntity.transferState)});
if(!(S||u!=null&&u.length))return 0;S=_.DJ9(u)+S;Y=Y.length-P;return Y===0?0:Math.round(S*100/Y)/100};
_.DJ9=function(Y){var S=[];S=S.concat.apply(S,_.cz(Y.filter(function(m){return m.streamEntity}).map(function(m){var J=Object.assign({},m.streamEntity),c,C=(c=m.transferEntity)==null?void 0:c.transferState;
J.streamsProgress=J.streamsProgress||[];J.streamsProgress=J.streamsProgress.map(function(x){var b=Object.assign({},x);b.numBytesDownloaded=C==="TRANSFER_STATE_COMPLETE"?x.numTotalBytes:x.numBytesDownloaded;return b});
return J}).map(function(m){return m.streamsProgress})));
var P=Y=0;S=_.n(S);for(var u=S.next();!u.done;u=S.next()){var W=u.value;u=Number(W.numBytesDownloaded);W=Number(W.numTotalBytes);P+=isNaN(u)?0:u;Y+=isNaN(W)?0:W}return Y===0?0:Math.round(P*100/Y)/100};
aoK=function(Y){if(!Y||!Y.expirationTimestamp||!Y.action)return!1;var S=(0,_.Oh)()/1E3;return Number(Y.expirationTimestamp)>=S};
EC=function(Y){return Y&&Y.expirationTimestamp&&Y.action?aoK(Y)&&Y.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.fA=function(Y){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(Y||"TRANSFER_STATE_UNKNOWN")};
LTJ=function(Y){var S=new Ng9;if(Y!==void 0){var P=Math.ceil(Math.log2(Y.length*4+2)/7);P=P===void 0?2:P;nA(S,10);S.submessagePosStack.push(S.pos);S.submessagePosStack.push(P);S.pos+=P;jk(S,Y.length*1.2);P=AVJ(Y,S.buf.subarray(S.pos));S.pos+P>S.buf.length&&(jk(S,P),P=AVJ(Y,S.buf.subarray(S.pos)));S.pos+=P;Y=S.submessagePosStack.pop();P=S.submessagePosStack.pop();for(var u=S.pos-P-Y;Y--;){var W=Y?128:0;S.view.setUint8(P++,u&127|W);u>>=7}}S=new Uint8Array(S.buf.buffer,S.buf.byteOffset,S.pos);return(new TextDecoder("utf-8")).decode(S)};
_.gT=function(Y){var S=0;Y=_.n(Y);for(var P=Y.next(),u={};!P.done;u={transferState$jscomp$3:void 0},P=Y.next()){var W=P.value,m=void 0;P=(m=W.streamEntity)!=null?m:{};m=void 0;u.transferState$jscomp$3=(m=W.transferEntity)==null?void 0:m.transferState;m=W=void 0;((W=P)==null?0:(m=W.streamsProgress)==null?0:m.length)&&P.streamsProgress.forEach(function(J){return function(c){c=Number(J.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?c.numTotalBytes:c.numBytesDownloaded);isFinite(c)&&(S+=c)}}(u))}return S};
wm1=function(Y){return Y.some(function(S){var P;if(!(S==null?0:(P=S.transferEntity)==null?0:P.transferState)){var u;return!(S==null?0:(u=S.policyEntity)==null?0:u.action)||S.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return vf8.includes(S.transferEntity.transferState)})};
pmE=function(Y,S){if(!S)return!1;if(_.f("of_pb_en_po_ks"))return!0;var P;Y=(P=_.BT(Y,"offlineVideoPolicy",_.JE(S,"offlineVideoPolicy")))!=null?P:void 0;return!!Y&&EC(Y)};
_.sMY=function(Y){var S=["TRANSFER_STATE_COMPLETE"];S=S===void 0?FT8:S;return Y.filter(function(P){var u,W;return S.includes((W=(u=P.transferEntity)==null?void 0:u.transferState)!=null?W:"TRANSFER_STATE_UNKNOWN")})};
dJK=function(Y,S){if(S){var P,u=(P=_.BT(Y,"playbackData",_.JE(S,"playbackData")))!=null?P:null,W;P=(W=_.BT(Y,"transfer",_.JE(S,"transfer")))!=null?W:null;var m;W=(m=_.BT(Y,"offlineVideoStreams",_.JE(S,"offlineVideoStreams")))!=null?m:null;var J;Y=(J=_.BT(Y,"offlineVideoPolicy",_.JE(S,"offlineVideoPolicy")))!=null?J:null;if(u||P||W||Y)return{playbackDataEntity:u,transferEntity:P,streamEntity:W,policyEntity:Y}}};
_.$W=function(Y){var S=Y.playbackData;if(!S)return[];var P=[];S=_.n(Object.keys(S));for(var u=S.next();!u.done;u=S.next()){var W=u.value;if(!loX(Y,_.mZ(W).entityId)&&(u=dJK(Y,_.mZ(W).entityId))){var m=void 0,J=void 0;W=(J=Number((m=_.BT(Y,"playbackData",W))==null?void 0:m.streamDownloadTimestampSeconds))!=null?J:(0,_.Oh)();P.push({entity:u,streamDownloadTimestamp:W})}}return P.sort(function(c,C){var x=c.streamDownloadTimestamp,b=C.streamDownloadTimestamp;return b===x?c.entity.streamEntity&&!C.entity.streamEntity?
1:-1:b-x}).map(function(c){return c.entity})};
Xm8=function(Y){return _.sMY(_.$W(Y))};
_.Zr$=function(Y){return _.$W(Y).filter(function(S){var P;if(((P=S.policyEntity)==null?0:P.action)&&S.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var u;if((u=S.transferEntity)==null?0:u.transferState){var W;return vf8.includes((W=S.transferEntity)==null?void 0:W.transferState)}return!0})};
loX=function(Y,S){var P;return((P=_.BT(Y,"downloadStatusEntity",_.JE(S,"downloadStatusEntity")))==null?void 0:P.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
irK=function(Y){var S;if(Y==null?0:(S=Y.playbackDataEntity)==null?0:S.key)return _.mZ(Y.playbackDataEntity.key).entityId;var P;if(Y==null?0:(P=Y.transferEntity)==null?0:P.key)return _.mZ(Y.transferEntity.key).entityId;var u;if(Y==null?0:(u=Y.streamEntity)==null?0:u.key)return _.mZ(Y.streamEntity.key).entityId;var W;if(Y==null?0:(W=Y.policyEntity)==null?0:W.key)return _.mZ(Y.policyEntity.key).entityId};
tpJ=function(Y){var S=new Set,P;Y=(P=Y.mainDownloadsListEntity)==null?void 0:P[of$];var u;if(!(Y==null?0:(u=Y.downloads)==null?0:u.length))return S;var W;Y==null||(W=Y.downloads)==null||W.forEach(function(m){(m==null?0:m.videoItem)&&S.add(m.videoItem)});
return S};
rT=function(Y,S){if(S){var P=_.BT(Y,"mainVideoEntity",_.JE(S,"mainVideoEntity")),u=_.BT(Y,"downloadStatusEntity",_.JE(S,"downloadStatusEntity")),W=_.BT(Y,"ytMainChannelEntity",_.JE(S,"ytMainChannelEntity")),m={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};Y=dJK(Y,S);u=(u==null?void 0:u.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.f("woffle_render_failed_download_state_ks")&&(u==null?void 0:u.downloadState)==="DOWNLOAD_STATE_FAILED";!Y&&u&&(Y=m);if(Y&&P&&
W)return Object.assign({},{videoEntity:P,channelEntity:W},Y)}};
UJU=function(Y,S){return A7a(Y,S)==="TRANSFER_STATE_COMPLETE"&&pmE(Y,S)};
QMK=function(Y,S){if(!S)return!1;var P;Y=(P=_.BT(Y,"playbackData",_.JE(S,"playbackData")))!=null?P:void 0;return!!Y&&!!Y.playerResponseJson};
A7a=function(Y,S){if(!S)return"TRANSFER_STATE_UNKNOWN";var P=_.BT(Y,"transfer",_.JE(S,"transfer"));if(P){var u;return(u=P.transferState)!=null?u:"TRANSFER_STATE_UNKNOWN"}P=_.BT(Y,"offlineOrchestrationActionWrapperEntity",_.JE(S,"offlineOrchestrationActionWrapperEntity"));Y=_.BT(Y,"mainVideoEntity",_.JE(S,"mainVideoEntity"));return P||Y?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
kf9=function(Y,S){if(!S)return"TRANSFER_STATE_UNKNOWN";if(Y=_.BT(Y,"transfer",_.JE(S,"transfer"))){var P;return(P=Y.transferState)!=null?P:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
Mph=function(Y,S){return S&&(Y=_.BT(Y,"videoPlaybackPositionEntity",_.JE(S,"videoPlaybackPositionEntity")),Y==null?0:Y.lastPlaybackPositionSeconds)?Number(Y.lastPlaybackPositionSeconds):0};
NFK=function(Y,S){return y7u(Y).some(function(P){var u;return(P==null?void 0:(u=P.mainPlaylistEntity)==null?void 0:u.playlistId)===S})};
Vph=function(Y,S,P){var u=HrX(Y,S);if(!u.length)return[];S=[];u=_.n(u);for(var W=u.next();!W.done;W=u.next()){W=W.value;var m=rT(Y,W);P&&A7a(Y,W)!=="TRANSFER_STATE_COMPLETE"||m&&S.push(m)}return S};
HrX=function(Y,S){if(!S)return[];var P=_.JE(S,"mainPlaylistEntity"),u;S=(u=Y.mainPlaylistEntity)==null?void 0:u[P];u=[];if(S==null||!S.videos)return u;S=_.n(S.videos);for(P=S.next();!P.done;P=S.next()){P=P.value;var W=void 0,m=void 0,J=void 0,c=(W=Y)==null?void 0:(m=W.mainPlaylistVideoEntity)==null?void 0:(J=m[P])==null?void 0:J.video;c&&(P=_.mZ(c).entityId)&&u.push(P)}return u};
IWf=function(Y,S){if(S){var P=_.BT(Y,"mainPlaylistEntity",_.JE(S,"mainPlaylistEntity")),u=_.BT(Y,"mainPlaylistDownloadStateEntity",_.JE(S,"mainPlaylistDownloadStateEntity"));Y=_.BT(Y,"ytMainChannelEntity",_.JE(S,"ytMainChannelEntity"));if(u&&P)return Object.assign({},{mainPlaylistEntity:P,mainPlaylistDownloadStateEntity:u},!!Y&&{channelEntity:Y})}};
y7u=function(Y){return aW1(Y).sort(function(S,P){return P.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return S.downloadedPlaylistEntities})};
aW1=function(Y){var S=Y.mainPlaylistDownloadStateEntity,P=[];if(!S)return P;for(var u=_.n(Object.keys(S)),W=u.next();!W.done;W=u.next()){var m=W.value;W=IWf(Y,_.mZ(m).entityId);var J=void 0;m=Number((J=S[m])==null?void 0:J.addedTimestampMillis);J=isNaN(m)?(0,_.Oh)():m;W!==void 0&&P.push({downloadedPlaylistEntities:W,addedTimestampMillis:J})}return P};
LlY=function(Y){var S,P=(S=Y.mainPlaylistVideoEntity)!=null?S:{};return new Set(y7u(Y).reduce(function(u,W){u=u===void 0?[]:u;var m,J;W==null||(m=W.mainPlaylistEntity)==null||(J=m.videos)==null||J.forEach(function(c){var C;(c=(C=P[c])==null?void 0:C.video)&&u.push(c)});
return u},[]))};
wYa=function(Y){return"downloadedMusicPlaylistEntities"in Y};
pYa=function(Y){return"mainPlaylistEntity"in Y&&"mainPlaylistDownloadStateEntity"in Y};
Fla=function(Y){return"videoEntity"in Y&&"channelEntity"in Y};
sS9=function(Y){var S=Y.musicPlaylistDownloadMetadataEntity,P=[];if(!S)return P;for(var u=_.n(Object.keys(S)),W=u.next();!W.done;W=u.next()){W=W.value;a:{var m=Y,J=_.mZ(W).entityId;if(J){var c=_.BT(m,"musicPlaylist",_.JE(J,"musicPlaylist"));m=_.BT(m,"musicPlaylistDownloadMetadataEntity",_.JE(J,"musicPlaylistDownloadMetadataEntity"));if(c&&m){c={musicPlaylistEntity:c,musicPlaylistDownloadStateEntity:m};break a}}c=void 0}m=void 0;W=Number((m=S[W])==null?void 0:m.addedTimestampMillis);W=isNaN(W)?(0,_.Oh)():
W;c!==void 0&&P.push({downloadedMusicPlaylistEntities:c,addedTimestampMillis:W})}return P};
d7a=function(Y){var S=new Set;Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())if(P=P.value,"musicPlaylistEntity"in P&&"musicPlaylistDownloadStateEntity"in P){P=_.n(P.musicPlaylistEntity.tracks);for(var u=P.next();!u.done;u=P.next())S.add(u.value)}return S};
lW8=function(Y,S){if(S){var P=_.BT(Y,"musicTrack",_.JE(S,"musicTrack")),u=_.BT(Y,"musicArtist",_.JE(S,"musicArtist"))||{};if((Y=dJK(Y,S))&&P&&u)return Object.assign({},{musicTrackEntity:P,musicArtistEntity:u},Y)}};
XYE=function(Y){var S=Y.musicTrackDownloadMetadataEntity,P=[];if(!S)return[];S=_.n(Object.keys(S));for(var u=S.next();!u.done;u=S.next()){var W=u.value;u=lW8(Y,_.mZ(W).entityId);var m=void 0;W=Number((m=_.BT(Y,"musicTrackDownloadMetadataEntity",W))==null?void 0:m.addedTimestampMillis);m=isNaN(W)?(0,_.Oh)():W;u!==void 0&&P.push({downloadedMusicEntities:u,addedTimestampMillis:m})}return P};
o1X=function(Y,S){if(!S)return[];if(Object.values(ZDh).includes(S))return iD$(Y,S);S=_.JE(S,"musicPlaylist");var P;Y=(P=Y.musicPlaylist)==null?void 0:P[S];P=[];if(Y==null||!Y.tracks)return P;Y=_.n(Y.tracks);for(S=Y.next();!S.done;S=Y.next())(S=_.mZ(S.value).entityId)&&P.push(S);return P};
iD$=function(Y,S){var P=new Set,u=sS9(Y).map(function(m){return m.downloadedMusicPlaylistEntities});
u=d7a(u);u=_.n(u);for(var W=u.next();!W.done;W=u.next())(W=_.mZ(W.value).entityId)&&P.add(W);return tB1(Y).downloadedMusicEntities.filter(function(m){var J;if((J=m.musicTrackEntity)!=null&&J.videoId){m=m.musicTrackEntity;if(J=S==="PPOM"?!0:!P.has(m.videoId))b:switch(m=m.musicVideoType,S){case "PPSE":J=m==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:J=m!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}m=J}else m=!1;return m}).map(function(m){var J;
return(J=m.musicTrackEntity)==null?void 0:J.videoId})};
tB1=function(Y){var S=XYE(Y).sort(function(P,u){return u.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return"downloadedMusicEntities"in P?P.downloadedMusicEntities:wYa(P)?P.downloadedMusicPlaylistEntities:{}});
Y=sS9(Y).sort(function(P,u){return u.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return"downloadedMusicEntities"in P?P.downloadedMusicEntities:wYa(P)?P.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:S,downloadedMusicPlaylistEntities:Y}};
U7$=function(Y,S){S=_.X3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?o1X(Y,S):HrX(Y,S);if(!S.length)return"TRANSFER_STATE_UNKNOWN";S=S.map(function(P){return kf9(Y,P)});
return AnX(S)};
AnX=function(Y){var S=new Set(Y);if(S.has("TRANSFER_STATE_FAILED")&&S.size===1)return"TRANSFER_STATE_FAILED";S.delete("TRANSFER_STATE_FAILED");if(S.has("TRANSFER_STATE_UNKNOWN")&&S.size===1)return"TRANSFER_STATE_PRE_TRANSFER";S.delete("TRANSFER_STATE_UNKNOWN");if(S.has("TRANSFER_STATE_PRE_TRANSFER")&&S.size===1||S.size===0)return"TRANSFER_STATE_PRE_TRANSFER";Y=S.has("TRANSFER_STATE_TRANSFERRING");S=S.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return Y||S?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
GM=function(Y){var S=Y.mainVideoDownloadStateEntity,P=[];if(!S)return[];S=_.n(Object.keys(S));for(var u=S.next();!u.done;u=S.next()){var W=u.value;if(!loX(Y,_.mZ(W).entityId)){u=rT(Y,_.mZ(W).entityId);var m=void 0,J=void 0;W=(J=Number((m=_.BT(Y,"mainVideoDownloadStateEntity",W))==null?void 0:m.addedTimestampMillis))!=null?J:(0,_.Oh)();u!==void 0&&P.push({downloadedVideoEntities:u,addedTimestampMillis:W})}}return P};
QSa=function(Y){return GM(Y).sort(function(S,P){return P.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return S.downloadedVideoEntities})};
_.MB9=function(Y){var S=LlY(Y),P=_.hE(Y),u=tpJ(Y),W=GM(Y).filter(function(J){var c,C;if((J==null?void 0:(c=J.downloadedVideoEntities)==null?void 0:(C=c.transferEntity)==null?void 0:C.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var x,b;J=J==null?void 0:(x=J.downloadedVideoEntities)==null?void 0:(b=x.videoEntity)==null?void 0:b.key;return _.f("kevlar_use_library_entity")?J&&(u.has(J)||P[J]):J&&!S.has(J)}),m=aW1(Y).filter(function(J){return U7$(Y,J.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.cz(W),_.cz(m)).sort(function(J,c){return c.addedTimestampMillis-J.addedTimestampMillis}).map(function(J){return k8U(J)})};
yn1=function(Y,S){if(S&&pmE(Y,S)){var P,u,W=(u=(P=_.BT(Y,"playbackData",_.JE(S,"playbackData")))!=null?P:void 0)==null?void 0:u.playerResponseJson;if(W){try{var m=JSON.parse(W);var J=_.BT(Y,"transfer",_.JE(S,"transfer")),c=Mph(Y,S);c&&(m=Object.assign({},m,{playerConfig:Object.assign({},m.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+c*1E3}}})}));m.cotn=J==null?void 0:J.cotn}catch(C){}return m}}};
_.VBX=function(Y){var S,P,u;Y=(u=(P=((S=Y.downloadsPageViewConfigurationEntity)!=null?S:{})[NpX])==null?void 0:P.smartDownloadsOptInBannerVisibility)!=null?u:{};var W;return(W=_.g(Y,HDE))!=null?W:{}};
_.hE=function(Y){var S,P,u;Y=(u=(P=((S=Y.mainDownloadsListEntity)!=null?S:{})[_.eDJ])==null?void 0:P.downloads)!=null?u:[];S={};P=_.n(Y);for(u=P.next();!u.done;u=P.next())Y=void 0,S[(Y=u.value.videoItem)!=null?Y:""]=!0;return S};
ODa=function(Y){var S=_.hE(Y);if(Object.keys(S).length===0)return!1;var P=Y.mainVideoEntity;if(!P)return!0;P=_.n(Object.keys(P));for(var u=P.next();!u.done;u=P.next()){u=u.value;var W=_.mZ(u).entityId;if(S[u]&&!loX(Y,W))return!1}return!0};
_.vT=function(Y){var S=_.hE(Y);return GM(Y).sort(function(P,u){return P.addedTimestampMillis-u.addedTimestampMillis}).map(function(P){return P.downloadedVideoEntities}).filter(function(P){var u;
return(P=P==null?void 0:(u=P.videoEntity)==null?void 0:u.key)&&!!S[P]})};
k8U=function(Y){return"downloadedVideoEntities"in Y?Y.downloadedVideoEntities:"downloadedPlaylistEntities"in Y?Y.downloadedPlaylistEntities:{}};
YwU=function(Y){var S=_.hE(Y),P=LlY(Y),u=GM(Y).filter(function(W){var m,J;return(W=W==null?void 0:(m=W.downloadedVideoEntities)==null?void 0:(J=m.videoEntity)==null?void 0:J.key)&&!S[W]&&!P.has(W)});
Y=aW1(Y);return[].concat(_.cz(u),_.cz(Y)).sort(function(W,m){return m.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return k8U(W)})};
_.DS=function(Y){if(!_.f("kevlar_use_library_entity"))return YwU(Y);var S=GM(Y).filter(function(u){var W,m;if(W=u=u==null?void 0:(W=u.downloadedVideoEntities)==null?void 0:(m=W.videoEntity)==null?void 0:m.key){var J,c,C;W=((c=(J=Y.mainDownloadsListEntity)==null?void 0:J[of$])==null?0:(C=c.downloads)==null?0:C.length)?tpJ(Y).has(u):!1}return W}),P=aW1(Y);
return[].concat(_.cz(S),_.cz(P)).sort(function(u,W){return W.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return k8U(u)})};
SwE=function(Y){var S=_.hE(Y),P=LlY(Y);return QSa(Y).filter(function(u){var W;return(u=u==null?void 0:(W=u.videoEntity)==null?void 0:W.key)&&!S[u]&&!P.has(u)})};
PO8=function(Y){if(!_.f("kevlar_use_library_entity"))return SwE(Y);var S=_.hE(Y),P=tpJ(Y);return QSa(Y).filter(function(u){var W;return(u=u==null?void 0:(W=u.videoEntity)==null?void 0:W.key)&&!S[u]&&P.has(u)})};
uZJ=function(Y,S){S=_.JE(S,"settingEntity");var P,u,W;return!!((W=(u=((P=Y.settingEntity)!=null?P:{})[S])==null?void 0:u.settingOptionValue)!=null?W:{}).boolValue};
_.IR=function(Y){var S=_.vT(Y);if(wm1(S))return 0;var P=[];S=_.n(S);for(var u=S.next();!u.done;u=S.next()){u=u.value;var W=void 0,m=void 0;if((W=u)==null?0:(m=W.videoEntity)==null?0:m.key)W=_.mZ(u.videoEntity.key).entityId,u=Y,W=_.JE(W,"mainVideoDownloadStateEntity"),u=_.BT(u,"mainVideoDownloadStateEntity",W),(u=Number(u==null?void 0:u.addedTimestampMillis))&&P.push(u)}return Math.max.apply(Math,_.cz(P))};
_.LA=function(Y){return Y.ui.richGridMiniMode};
_.wT=function(Y){return Y.ui.richGridItemsPerRow};
_.Wa9=function(Y){return Y.ui.richGridSlimItemsPerRow};
_.zSY=function(Y){return Y.ui.guideIsExpanded};
_.pA=function(Y){return Y.ui.miniplayerIsActive};
_.m$$=function(Y){return Y.ui.singleOptionSurveyIsActive};
_.Fp=function(Y){return Y.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.npY=function(Y){return Y.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.j8Y=function(Y){return Y.ui.inlinePreviewIsActive};
_.JfJ=function(Y){return Y.ui.inlinePreviewIsEnabled};
_.BDX=function(Y){return Y.ui.miniplayerPlaybackState};
cfh=function(Y){return Y.ui.isOnline};
_.COX=function(Y){return Y.ui.frostedGlassMode};
_.sC=function(Y,S){return A7a(Y.entities,S)};
_.dT=function(Y,S){return U7$(Y.entities,S)};
qw8=function(Y,S){var P;if(S){var u;Y=(u=_.BT(Y.entities,"offlineVideoPolicy",_.JE(S,"offlineVideoPolicy")))==null?void 0:u.action}else Y=void 0;return(P=Y)!=null?P:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
RSh=function(Y,S){var P;S?(Y=_.BT(Y.entities,"offlineVideoPolicy",_.JE(S,"offlineVideoPolicy")),Y=Number(Y==null?void 0:Y.expirationTimestamp)):Y=void 0;return(P=Y)!=null?P:0};
_.x$a=function(Y){return _.$W(Y.entities).length};
bP$=function(Y,S){return rT(Y.entities,S)};
TDf=function(Y,S){return IWf(Y.entities,S)};
lI=function(Y,S){return(Y=rT(Y.entities,S))?_.DJ9([Y]):0};
_.KaY=function(Y,S){var P=_.X3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(P){var u=Y.entities;var W=o1X(u,S);if(W.length){var m=[];W=_.n(W);for(var J=W.next();!J.done;J=W.next())(J=lW8(u,J.value))&&m.push(J);u=m}else u=[]}else u=Vph(Y.entities,S);var c;if(P){var C=Y.entities;S?(S=_.JE(S,"musicPlaylist"),C=(c=C.musicPlaylist)==null?void 0:c[S],c=C!=null&&C.tracks?C.tracks.length:0):c=0}else c=Y.entities,S?(S=_.JE(S,"mainPlaylistEntity"),c=(C=c.mainPlaylistEntity)==null?void 0:C[S],c=c!=null&&c.videos?
c.videos.length:0):c=0;return u.length!==c?0:u?IoJ(u):0};
_.Eph=function(Y){return Y.download.isLeaderTab};
_.fPh=function(Y,S,P){if(!S&&P){var u=Y.entities;if(P){var W=LTJ(P),m,J;S=(J=(m=_.BT(u,"offlineabilityEntity",_.JE(W,"offlineabilityEntity")))==null?void 0:m.addToOfflineButtonState)!=null?J:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else S="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else m=Y.entities,S?(J=LTJ(S),S=(W=(u=_.BT(m,"offlineabilityEntity",_.JE(J,"offlineabilityEntity")))==null?void 0:u.addToOfflineButtonState)!=null?W:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):S="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return S};
gp9=function(Y,S){Y=Y.entities;if(S){S=LTJ(S);var P,u;S=(u=(P=_.BT(Y,"offlineabilityEntity",_.JE(S,"offlineabilityEntity")))==null?void 0:P.addToOfflineButtonState)!=null?u:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else S="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return S};
_.$$Y=function(Y){var S=Y.entities;Y=cfh(Y);var P=uZJ(S,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.f("kevlar_modern_downloads_page")&&P)var u=!1;else{var W,m;S=(m=(W=((u=S.downloadsPageViewConfigurationEntity)!=null?u:{})[NpX])==null?void 0:W.smartDownloadsOptInBannerVisibility)!=null?m:{};u=Y?!!S.visibleWithConnection:!!S.visibleWithoutConnection}return u};
_.rfa=function(Y){return uZJ(Y.entities,"SMART_DOWNLOADS_ENABLED")};
_.GNE=function(Y){return ODa(Y.entities)};
hSf=function(Y){return _.vT(Y.entities).every(function(S){var P;return(S==null?void 0:(P=S.transferEntity)==null?void 0:P.transferState)&&!vf8.includes(S.transferEntity.transferState)})};
_.vpX=function(Y,S){return loX(Y.entities,S)};
D$1=function(Y,S){if(S){var P,u;Y=(u=(P=_.BT(Y.entities,"downloadStatusEntity",_.JE(S,"downloadStatusEntity")))==null?void 0:P.downloadState)!=null?u:"DOWNLOAD_STATE_UNKNOWN"}else Y="DOWNLOAD_STATE_UNKNOWN";return Y};
Xp=function(Y,S){return Mph(Y.entities,S)};
wgh=function(Y){Y=_.IPY(Y);var S=Y.hours===void 0?0:Y.hours,P=Y.minutes===void 0?0:Y.minutes,u=Y.seconds===void 0?0:Y.seconds,W=S>0;Y=[];W&&(S=_.aPu(S),Y.push(S));S=W;S=S===void 0?!1:S;P=(["af","be","lt"].includes(_.ZS)||S)&&P<10?Laa().format(P):(new Intl.NumberFormat("en-u-nu-latn")).format(P);Y.push(P);P=Laa().format(u);Y.push(P);P=":";"da fi id si sr sr-Latn".split(" ").includes(_.ZS)&&(P=".");return Y.join(P)};
_.IPY=function(Y){var S=Y.hours||0,P=Y.minutes||0,u=Y.seconds||0;S=u+P*60+S*3600+(Y.days||0)*86400+(Y.weeks||0)*604800+(Y.months||0)*2629800+(Y.years||0)*31557600;if(S<=0)return{hours:0,minutes:0,seconds:0};Y=S;S=Math.floor(Y/3600);Y%=3600;P=Math.floor(Y/60);u=Math.floor(Y%60);return{hours:S,minutes:P,seconds:u}};
_.aPu=function(Y){Y=(new Intl.NumberFormat("en-u-nu-latn")).format(Y);var S=["fr"],P="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(_.ZS)?Y.replace(",","\u00a0"):S.includes(_.ZS)?Y.replace(",","\u202f"):P.includes(_.ZS)?Y.replace(",","."):Y};
Laa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
pgh=function(Y){try{return(new _.iI(5)).format(Y)}catch(S){}};
oR=function(Y){return{thumbnailOverlayDownloadingRenderer:{state:Y}}};
Fah=function(Y){if(Y=pgh(Y))return{thumbnailOverlaySidePanelRenderer:{text:_.Sk(Y),icon:{iconType:"PLAYLISTS"}}}};
s81=function(){var Y=_.Td("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Sk(Y),icon:{iconType:"PLAY_ALL"}}}};
d$$=function(Y){Y=_.tE(Y,2);return _.ZS!=="ru"&&_.ZS!=="es_419"&&_.ZS!=="es-419"&&_.ZS!=="es"&&_.ZS!=="es_US"&&_.ZS!=="es-US"&&_.ZS!=="fr"&&_.ZS!=="pl"&&_.ZS!=="it"&&_.ZS!=="nl"&&_.ZS!=="uk"&&_.ZS!=="fr_CA"&&_.ZS!=="fr-CA"||Y===""?Y:Y[0].toLocaleUpperCase()+Y.substring(1)};
XgE=function(Y){return function(S){var P=Y(),u=_.tE(S,P.dateFormat);S=_.tE(S,P.timeFormat);var W=lPh.DATETIMEFORMATS[P.joinerStyle];W=W.replace(/'(?!')/g,"");W=W.replace("{0}",S);W=W.replace("{1}",u);return P.capitalize(W)}};
ZPX=function(Y){return Y?typeof Y.seconds==="string"&&(Y.nanos===void 0||typeof Y.nanos==="number"):!1};
iP$=function(Y){return new Date(Number(Y.seconds)*1E3+(Y.nanos||0)*1E-6)};
_.tE=function(Y,S){if(typeof Y.getTime==="function")Y={date:Y};else if(ZPX(Y))Y={date:iP$(Y)};else if(typeof ZPX(Y.timestamp)&&typeof Y.i18nInternalSecondsEastOfUtc==="number")Y={date:iP$(Y.timestamp),timeZone:AE(-Y.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(Y));var P=Y;Y=P.date;P=P.timeZone;S=opK(S).format(Y,P);_.ZS==="zh-TW"&&(Y=P?Number(opK("H").format(Y,P)):Y.getHours(),S=Y<5?S.replace("\u4e0a\u5348","\u51cc\u6668"):Y<8?S.replace("\u4e0a\u5348","\u65e9\u4e0a"):Y<12?
S.replace("\u4e0a\u5348","\u4e0a\u5348"):Y<13?S.replace("\u4e0b\u5348","\u4e2d\u5348"):Y<19?S.replace("\u4e0b\u5348","\u4e0b\u5348"):S.replace("\u4e0b\u5348","\u665a\u4e0a"));return S};
opK=function(Y){if(tT9.has(Y))return tT9.get(Y);var S=Af$(Y);S=U$K(S);Q8a!==!0&&(Q8a=!0);kNX=!0;kNX=!1;S=new UC(S,lPh);tT9.set(Y,S);return S};
Af$=function(Y){return(new UC(Y,lPh)).patternParts_.map(function(S){return S.type===0?"'"+S.text+"'":S.text}).join("")};
U$K=function(Y){return _.ZS==="en"||_.ZS==="es_US"||_.ZS==="es-US"?Y:Y.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(S,P,u){return"H".repeat(P.length)+u})};
YGY=function(Y,S){MTa||(_.Qc=_.yf8,MTa=new ND$);var P=MTa;a:if(Y=HPJ(Y),S=HPJ(S||new Date),Y>S)P=Y.getTime()-S.getTime()>6048E5?_.tE(Y,1):VTh(Y);else{for(var u=0;eSX(Y,12*(u+1))<S;)++u;if(u>0)P=P.format(-u,0);else{for(u=0;eSX(Y,u+1)<S;)++u;if(u>0)P=P.format(-u,2);else{Y=S.getTime()-Y.getTime();S=_.n(OPY);for(u=S.next();!u.done;u=S.next()){u=u.value;var W=u.unit,m=Math.floor(Y/u.unitDuration);if(m>=(u.threshold===void 0?1:u.threshold)){P=P.format(-m,W);break a}}P=P.format(-0,7)}}}return P};
HPJ=function(Y){if(typeof Y.getTime==="function")return Y;if(ZPX(Y))return iP$(Y);throw Error("Df`"+JSON.stringify(Y));};
eSX=function(Y,S){for(var P=0,u;;++P)if(u=new Date(Y.getFullYear(),Y.getMonth()+S,Y.getDate()-P,Y.getHours(),Y.getMinutes(),Y.getSeconds()),u.getMonth()===(Y.getMonth()+S)%12)return u};
_.kW=function(Y){return{runs:[{text:Y}]}};
_.Ma=function(Y){if(Y&&Y.simpleText)return Y.simpleText;var S="";if(Y&&Y.runs)for(var P=0;P<Y.runs.length;P++)Y.runs[P].text&&(S+=Y.runs[P].text);return S};
PAh=function(Y,S,P,u){return Y.videoEntity&&!Y.policyEntity&&P!=="DOWNLOAD_STATE_FAILED"?[oR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:EC(Y.policyEntity)&&S!=="TRANSFER_STATE_FAILED"&&S!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?S==="TRANSFER_STATE_PAUSED_BY_USER"?[oR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.fA(S)?[oR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Y.videoEntity.lengthSeconds?SGf(Y.videoEntity.lengthSeconds,u):[]:
[oR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
SGf=function(Y,S){var P=[{thumbnailOverlayTimeStatusRenderer:{text:_.Sk(wgh({seconds:Y})),style:"DEFAULT"}}];S&&(Y=S<=0||Y<=0?0:S>=Y?100:Math.ceil(S*100/Y),Y>0&&P.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:Y}}));return P};
uoa=function(Y,S,P,u,W){if(S==="TRANSFER_STATE_UNKNOWN"||!Y)return{};if(_.fA(S)||S==="TRANSFER_STATE_PRE_TRANSFER")var m=[oR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var J,c;if(S==="TRANSFER_STATE_COMPLETE"&&((J=Y.mainPlaylistEntity)==null?0:(c=J.videos)==null?0:c.length)){if(_.f("web_modern_collections_v2")){var C;var x=(m=Y.mainPlaylistEntity)==null?void 0:(C=m.videos)==null?void 0:C.length;m=(m=pgh(x))?{thumbnailOverlayBottomPanelRenderer:{text:_.Sk(m),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var b;m=Fah((x=Y.mainPlaylistEntity)==null?void 0:(b=x.videos)==null?void 0:b.length)}var T;m=[s81(),Object.assign({},(T=m)!=null?T:{})]}else m=[]}T=m;a:if(S==="TRANSFER_STATE_PRE_TRANSFER")P=PT(_.Td("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(S==="TRANSFER_STATE_TRANSFER_IN_QUEUE")P=PT(_.Td("WAITING_TO_DOWNLOAD"));else if(_.fA(S))P=Math.floor(P*100).toString(),P=PT(_.Td("DOWNLOADING_PERCENT",{percent:P},"Downloading... "+P+"%"));else{if(u&&(_.f("playlist_is_offline_selector_killswitch")&&
(W=_.E().resolve(_.kF).isNetworkAvailable()),W)){P=lTX(_.Td("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),sx1(u));break a}P=void 0}S=S==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Td("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},T.length?{thumbnailOverlays:T}:{},P?{viewPlaylistText:P}:{viewPlaylistText:_.kW("")},S.length?{badges:S}:{})};
WDh=function(Y,S,P,u,W,m){if(S==="TRANSFER_STATE_UNKNOWN"||!Y)return{};if(u==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var J=PAh(Y,S,u);if(Y.videoEntity&&!Y.policyEntity&&u!=="DOWNLOAD_STATE_FAILED"){var c=_.Td("WAITING_TO_DOWNLOAD");if(c)return{shortViewCountText:_.kW(c),publishedTimeText:void 0,thumbnailOverlays:J}}if(!EC(Y.policyEntity)){m=Y.policyEntity&&!aoK(Y.policyEntity)?_.Td("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Td("TRANSFER_FAILED",{},"Download failed");var C;if((C=Y.policyEntity)==null?0:C.shortMessageForDisabledAction)m=Y.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:PT(m),publishedTimeText:void 0,thumbnailOverlays:J}}if(S==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.kW(_.Td("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:J};if(S==="TRANSFER_STATE_FAILED"||S==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.kW(_.Td("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:J};if(S==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(C=_.Td("WAITING_TO_DOWNLOAD"),u==="DOWNLOAD_STATE_PAUSED"&&(C=_.Td("DOWNLOAD_PAUSED",{},"Download paused")),C))return{shortViewCountText:_.kW(C),publishedTimeText:void 0,thumbnailOverlays:J};if(_.fA(S))return Y=Math.floor(P*100).toString(),{shortViewCountText:_.kW(_.Td("DOWNLOADING_PERCENT",{percent:Y},"Downloading... "+Y+"%")),publishedTimeText:void 0,thumbnailOverlays:J};S=void 0;Y.videoEntity.publishedTimestampMillis&&
(S=new Date,W&&(S=new Date(W)),S=PT(YGY(new Date(Number(Y.videoEntity.publishedTimestampMillis)),S)));W=[];_.f("kevlar_woffle_badge_killswitch")||(W=[{metadataBadgeRenderer:{label:_.Td("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var x;Y=PT((x=Y.videoEntity.localizedStrings)==null?void 0:x.viewCount);return Object.assign({},m?{shortViewCountText:void 0}:{shortViewCountText:Y},m?{}:{publishedTimeText:S},{badges:W,thumbnailOverlays:J})};
mnE=function(Y,S){Y=Y===void 0?z2h:Y;switch(S.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:S.payload.playlistId,inviteLinkURL:S.payload.inviteLinkUrl};default:return Y}};
jQJ=function(Y,S){Y=Y===void 0?nmE:Y;switch(S.type){case "SET_CURRENT_FORM_ID":return S=S.payload.formId,Y.currentFormId===S?Y:{currentFormId:S,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var P=S.payload;S=P.groupId;P=P.command;if(Y.currentFormId){var u=Object.assign({},Y.commandsMap);u[S]=P;Y=Object.assign({},Y,{commandsMap:u})}return Y;case "RESET_COMMAND_MAP":return Object.assign({},Y,{commandsMap:{}});default:return Y}};
BGh=function(Y,S){Y=Y===void 0?J5J:Y;switch(S.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},Y,{guideIsExpanded:S.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},Y,{scrollAtTop:S.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},Y,{guideIsVisibleButNotPersistent:S.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},Y,{miniplayerIsActive:S.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},Y,{singleOptionSurveyIsActive:S.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},Y,{slimlineSurveyRatingSelectedIndex:S.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},Y,{richGridMiniMode:S.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},Y,{richGridItemsPerRow:S.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},Y,{richGridSlimItemsPerRow:S.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},Y,{richGridContainerWidth:S.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},Y,{richGridStyle:S.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},Y,{currentPageType:S.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},Y,{inlinePreviewIsActive:S.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},Y,{inlinePreviewIsEnabled:S.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},Y,{darkModeIsEnabled:S.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
Y,{miniplayerPlaybackState:S.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},Y,{tabGesturesIsActive:S.payload});case "SET_ONLINE_STATUS":return Object.assign({},Y,{isOnline:S.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},Y,{chipBarIsSticky:S.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},Y,{frostedGlassMode:S.payload});default:return Y}};
CAJ=function(Y,S){Y=Y===void 0?c5a:Y;switch(S.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},Y,{transcription:S.payload});case "SET_OVERLAY_STATE":return Object.assign({},Y,{overlay:S.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return Y}};
$nJ=function(){return Rk(Object.assign({},{continuation:qGK,entities:Ow1,download:R29,reportChannelAbuse:xnX,share:bdX,talkToRecs:TGE,ui:BGh,voiceSearch:CAJ,watch:KDf,ypc:Ema,shorts:f39,radioButtonGroup:jQJ,collabInviteLink:mnE},gmY))};
h2$=function(){return _.f("web_player_entities_middleware")?new yc($nJ(),[r5a,GEY]):new yc($nJ(),[r5a])};
_.Na=function(){vmu||(vmu=h2$());return vmu};
Dnh=function(Y,S,P){if(Y.length)return{titleText:_.Sk(S!=null?S:_.Td("DOWNLOADS",void 0,"Downloads")),contents:Y.map(function(u){var W=u.videoEntity;u={videoId:W.videoId,title:PT(W.title),shortBylineText:PT(u.channelEntity.title),thumbnail:W.thumbnail};var m=W.videoId?Xp(_.Na().getState(),W.videoId):0;W.videoId&&P?u.navigationEndpoint=_.YW(W.videoId,P,void 0,void 0,m):W.videoId&&(u.navigationEndpoint=FQJ(W.videoId,m,W.lengthSeconds));W.lengthSeconds&&(u.thumbnailOverlays=SGf(W.lengthSeconds,m));return{playlistPanelVideoRenderer:u}}),
totalVideos:Y.length}};
I31=function(Y){return(Y=(0,_.RY.getValueByKeys)(Y,"playlistId"))?{playlistId:Y}:null};
a39=function(){return{}};
LDa=function(Y,S){return new _.qs(function(P,u){Y.then(function(W){if(W){if(W=S(W))return P(W);u()}},u)})};
wpf=function(Y){var S,P,u,W=(S=Y.contents)==null?void 0:(P=S.twoColumnWatchNextResults)==null?void 0:(u=P.autoplay)==null?void 0:u.autoplay,m,J,c;S=(m=Y.contents)==null?void 0:(J=m.twoColumnWatchNextResults)==null?void 0:(c=J.playlist)==null?void 0:c.playlist;return W&&S&&S.playlistId?{rawResponse:Y,autoplayRenderer:W,playlistPanelRenderer:S,playlistId:S.playlistId}:null};
FDJ=function(Y){var S=S===void 0?"UNKNOWN_INTERFACE":S;if(Y.length===1)return Y[0];var P=pp$[S];if(P){P=new RegExp(P);for(var u=_.n(Y),W=u.next();!W.done;W=u.next())if(W=W.value,P.exec(W))return W}var m=[];Object.entries(pp$).forEach(function(J){var c=_.n(J);J=c.next().value;c=c.next().value;S!==J&&m.push(c)});
P=new RegExp(m.join("|"));Y.sort(function(J,c){return J.length-c.length});
u=_.n(Y);for(W=u.next();!W.done;W=u.next())if(W=W.value,!P.exec(W))return W;return Y[0]};
_.HT=function(Y){return"/youtubei/v1/"+FDJ(Y)};
_.Vc=function(Y){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:Y}}}}};
_.ek=function(Y){return _.Vc(_.kW(Y))};
sQh=function(Y,S){var P={mode:"NORMAL"};Y&&(P.autoplayVideo=Y.navigationEndpoint,P.nextButtonVideo=Y.navigationEndpoint);S&&(P.previousButtonVideo=S.navigationEndpoint);return P};
XpE=function(Y,S,P){if(!P||!P.sets)return{sets:[sQh(Y,S)]};var u=P.sets.find(function(J){return J.mode==="NORMAL"}),W=(0,_.RY.unsafeClone)(P);
if(!u)return W.sets.push(sQh(Y,S)),W;if(!Y)return P;u=_.RY.getValueByKeys.apply(null,[u].concat(_.cz(dn$)));var m=_.RY.getValueByKeys.apply(null,[Y].concat(_.cz(l3Y)));if(u===m)return P;W.sets=W.sets.filter(function(J){return J.mode!=="NORMAL"});
W.sets.push(sQh(Y,S));return W};
Zd1=function(Y){return!!Y.playlistPanelVideoRenderer&&!Y.playlistPanelVideoRenderer.unplayableText};
id8=function(Y){return!!Y.playlistPanelVideoRenderer&&!!Y.playlistPanelVideoRenderer.title};
omh=function(Y,S){if(S.contents&&!(Y>=S.contents.length)&&(Y=S.contents.slice(Y).find(Zd1)))return Y.playlistPanelVideoRenderer};
tah=function(Y,S){if(S.contents)return(S=S.contents.find(function(P){return!!P.playlistPanelVideoRenderer&&P.playlistPanelVideoRenderer.videoId===Y}))?S.playlistPanelVideoRenderer:void 0};
A5a=function(Y,S){return S.contents?S.contents.findIndex(function(P){return!!P.playlistPanelVideoRenderer&&P.playlistPanelVideoRenderer.videoId===Y}):-1};
UnE=function(Y,S){return S.contents?S.contents.findIndex(function(P){return!!P.playlistPanelVideoRenderer&&P.playlistPanelVideoRenderer.playlistSetVideoId===Y}):-1};
QQu=function(Y,S){Y.contents&&S!==-1&&Y.contents.splice(S,1).length===1&&Y.totalVideos!==void 0&&(--Y.totalVideos,delete Y.videoCountText)};
_.kEu=function(Y){var S=[];if(!Y||!Y.contents)return S;Y=_.n(Y.contents);for(var P=Y.next();!P.done;P=Y.next())P=P.value,P.playlistPanelVideoRenderer&&P.playlistPanelVideoRenderer.videoId&&S.push(P.playlistPanelVideoRenderer.videoId);return S};
_.Ma9=function(Y){if(Y&&Y.contents)return(Y=Y.contents.find(function(S){return!!S.playlistPanelVideoRenderer&&!!S.playlistPanelVideoRenderer.selected})||Y.contents[Y.currentIndex])?Y.playlistPanelVideoRenderer:void 0};
y58=function(Y,S,P,u,W,m,J){W=W===void 0?!1:W;m=m===void 0?!1:m;J=J===void 0?!1:J;if(Y.contents&&Y.contents.length!==0){u&&(Y.contents=Y.contents.filter(u));u=Y.contents.length;for(var c=0;c<u;c++){var C=Y.contents[c].playlistPanelVideoRenderer;C&&(c===S?(m&&delete C.menu,C.indexText=_.kW("\u25b6")):W||Y.isInfinite||C.indexText===void 0?delete C.indexText:C.indexText=_.kW((c+1+P).toString()))}Y.currentIndex=S+P;J&&(delete Y.videoCountText,Y.totalVideos=u)}};
Vaa=function(Y){Y=NG9(Y,!0);if(Y){var S=Y.length;var P=-55%S;P<0&&(P=S+P);Y=Y.slice(S-P)+Y.slice(0,S-P)}else Y="";P="";for(S=0;S<Y.length&&Y[S]!==Hda;S++)P+=Y[S];return P};
e2a=function(Y,S){var P=document.body;S=S===void 0?function(c){return c}:S;
var u,W=null;Y=_.n(Y);for(u=Y.next();!u.done;u=Y.next()){var m=u.value;u=document.createElement("div");W||(W=u);var J=m[0];m=m[1];J&&(u.id=S(J));if(m)for(J=_.n(m),m=J.next();!m.done;m=J.next())u.classList.add(S(m.value));P.appendChild(u);P=u}return[W,P]};
Odf=function(Y,S){for(var P="",u=0;u<S;u++)P+=Y.charAt(Math.floor(Math.random()*Y.length));return P};
OC=function(Y){return Odf("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",Y)};
Y9=function(Y){return Odf("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",Y)};
SV=function(Y){return Odf("0123456789",Y)};
Pq=function(){var Y=performance.now(),S=new Date;var P="2."+S.getFullYear()+String(S.getMonth()+1).padStart(2,"0")+String(S.getDate()).padStart(2,"0");for(var u,W=Math.floor(Math.random()*11)+15,m=[],J=0;J<W;J++)m.push(Math.floor(Math.random()*26476865)+24547720);u=m.join(",");var c=OC(10),C=OC(100),x=OC(102),b=OC(106),T=OC(108),K=OC(11),G=OC(1140),v=OC(123),a=OC(14),w=OC(16),F=OC(1900),U=OC(23),V=OC(26),M=OC(34),zJ=OC(397),O=OC(44),ca=OC(5),hu=OC(72),ah=OC(74),va=OC(75),yX=OC(88),la=OC(91),w1="rr4---sn-5hneknek rr4---sn-q4flrnss rr5---sn-q4fl6n6z rr5---sn-q4flrn7k rr3---sn-aigl6nl7 rr4---sn-q4fzen7s rr4---sn-ntq7yner rr4---sn-q4flrnek rr2---sn-q4fzenee rr5---sn-ntqe6nee rr3---sn-q4fl6ndl rr1---sn-q4flrnlz rr4---sn-q4fzenee rr1---sn-5hne6nzs rr5---sn-aigl6n6s rr1---sn-ntqe6nel rr1---sn-q4fl6nlz rr3---sn-ntqe6nes rr4---sn-5hne6n6e rr5---sn-q4fl6nzy".split(" ");
var U9=w1[Math.floor(Math.random()*w1.length)];var nu=(new Date("2010-01-01")).getTime();var Yc=(new Date(nu+Math.random()*((new Date).getTime()-nu))).toISOString().split("T")[0];for(var tu,$_=[],fu=0;fu<4;fu++)$_.push(Math.floor(Math.random()*100));tu=$_.join(".");var G3=Number(SV(5)),wd=Number(SV(6)),Wd=Number(SV(7)),kE=Number(SV(9)),n8=SV(1),P6=SV(10),ML=SV(16),zc=SV(19),Ku=SV(2),uo=SV(20),qL=SV(21),Zf=SV(3),Cu=SV(4),hm=SV(5),Iu=SV(6),Fi=SV(7),tj=SV(8),vd=SV(9);var OE=Odf("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var Tc=[Y9(5),Y9(5),Y9(5)].join("%2C"),XO=[SV(3),SV(5),SV(5)].join("%2C"),Y5=Y9(0),L7=Y9(1),tF=Y9(10),jX=Y9(108),XF=Y9(11),bI=Y9(12),g7=Y9(13),Wu=Y9(14),V4=Y9(15),y3=Y9(16),W_=Y9(17),E9=Y9(18),FE=Y9(19),ia=Y9(2),Rs=Y9(20),W6=Y9(22),DB=Y9(23),c6=Y9(24),T3=Y9(266),x_=Y9(3),xc=Y9(30),kc=Y9(34),mh=Y9(35),ZD=Y9(36),JA=Y9(4),pS=Y9(40),qg=Y9(43),zZ=Y9(47),L6=Y9(5),QX=Y9(6),C1=Y9(7),fS=Y9(75),KS=Y9(8),RD=Y9(80),Pz=Y9(9),IN="https://www."+Y9(12)+".com",Kj={},EM={},qQ={},w68={},R3={},to={},Ao={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:u}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:P},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Y9(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:P},{key:"client.name",value:"WEB"},{key:"client.fexp",value:u}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:qL+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Y9(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:pS,ypcGetOfflineUpsellEndpoint:{params:RD}},trackingParams:mh+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&cnr="+Ku+"&ratebypass=yes&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&c=WEB&txp="+Fi+"&n="+w+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:wd,width:640,height:360,lastModified:ML,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Fi,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+XO+"&mn="+
Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&cnr="+Ku+"&ratebypass=yes&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&c=WEB&txp="+Fi+"&n="+w+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+jX+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:wd,width:1280,
height:720,lastModified:ML,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Fi,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+XO+"&mn="+Tc+"&ms="+
Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+vd+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Wd,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:vd,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wd,approxDurationMs:Fi},{itag:248,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+XO+"&mn="+Tc+"&ms="+Tc+"&mv="+
L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fwebm&ns="+c6+"&gir="+x_+"&clen="+vd+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/webm; codecs="vp9"',bitrate:Wd,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:vd,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Fi},{itag:399,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+vd+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Wd,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:vd,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Fi},{itag:136,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+vd+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&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="+T,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Wd,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:vd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:wd,approxDurationMs:Fi},{itag:247,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+XO+"&mn="+
Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fwebm&ns="+c6+"&gir="+x_+"&clen="+vd+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&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="+T,mimeType:'video/webm; codecs="vp9"',bitrate:Wd,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:vd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:wd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Fi},{itag:398,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+vd+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&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="+T,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Wd,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:vd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:wd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Fi},{itag:135,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&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="+T,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:wd,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:wd,approxDurationMs:Fi},{itag:244,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+XO+"&mn="+
Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fwebm&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+jX+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/webm; codecs="vp9"',bitrate:wd,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:wd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Fi},{itag:397,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:wd,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:wd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Fi},{itag:134,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&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="+T,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:wd,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:wd,highReplication:!0,approxDurationMs:Fi},{itag:243,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fwebm&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/webm; codecs="vp9"',bitrate:wd,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:wd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Fi},{itag:396,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&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="+T,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:wd,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:wd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Fi},{itag:133,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&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="+T,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:wd,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:wd,approxDurationMs:Fi},{itag:242,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+XO+"&mn="+
Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fwebm&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&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="+T,mimeType:'video/webm; codecs="vp9"',bitrate:wd,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:wd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Fi},{itag:395,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&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="+T,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:wd,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:wd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Fi},{itag:160,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:wd,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:G3,approxDurationMs:Fi},{itag:278,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+XO+"&mn="+
Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fwebm&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&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="+T,mimeType:'video/webm; codecs="vp9"',bitrate:wd,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:G3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Fi},{itag:394,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&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="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=video%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:G3,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:G3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Fi},{itag:140,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=audio%2Fmp4&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:wd,
initRange:{start:"0",end:"631"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:wd,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Fi,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+
Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=audio%2Fwebm&ns="+c6+"&gir="+x_+"&clen="+Fi+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'audio/webm; codecs="opus"',bitrate:G3,initRange:{start:"0",end:"265"},indexRange:{start:Zf,
end:Cu},lastModified:ML,contentLength:Fi,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:G3,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Fi,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=audio%2Fwebm&ns="+
c6+"&gir="+x_+"&clen="+Fi+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+Fi+"&n="+y3+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'audio/webm; codecs="opus"',bitrate:G3,initRange:{start:"0",end:"265"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:Fi,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:G3,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Fi,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+U9+".googlevideo.com/videoplayback?expire="+P6+"&ei="+U+"&ip="+tu+"&id=o-AF"+qg+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+XO+"&mn="+Tc+"&ms="+Tc+"&mv="+L7+"&mvi="+n8+"&pl="+Ku+"&initcwndbps="+Fi+"&siu="+n8+"&spc="+O+"&vprv="+n8+"&svpuc="+n8+"&mime=audio%2Fwebm&ns="+c6+"&gir="+x_+"&clen="+tj+"&dur="+tj+"&lmt="+ML+"&mt="+P6+"&fvip=3&keepalive="+x_+"&c=WEB&txp="+
Fi+"&n="+y3+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'audio/webm; codecs="opus"',bitrate:wd,initRange:{start:"0",end:"265"},indexRange:{start:Zf,end:Cu},lastModified:ML,contentLength:tj,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:wd,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Fi,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="+vd+"&docid="+K+"&ei="+U+"&feature="+c+"&fexp="+Y5+"&ns="+ia+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+L7+"&el="+tF+"&len="+Cu+"&of="+W6+
"&uga="+Ku+"&vm="+T3},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+vd+"&docid="+K+"&ei="+U+"&feature="+c+"&fexp="+Y5+"&ns="+ia+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+L7+"&el="+tF+"&len="+Cu+"&of="+W6+"&uga="+Ku+"&vm="+T3},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+vd+"&docid="+K+"&ei="+U+"&feature="+c+"&fexp="+Y5+"&ns="+ia+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
L7+"&el="+tF+"&len="+Cu+"&of="+W6+"&uga="+Ku+"&vm="+T3},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+U+"&m="+yX+"&oid="+W6+"&plid="+w+"&pltype="+C1+"&ptchn="+W6+"&ptk="+a+"&video_id="+K},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+vd+"&docid="+K+"&ei="+U+"&event="+Wu+"&feature="+c+"&fexp="+Y5+"&ns="+ia+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+L7},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+K+"&ei="+U+"&feature="+
c+"&len="+Cu+"&ns="+ia+"&plid="+w+"&ver="+n8,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+K+"&caps="+x_+"&opi="+vd+"&xoaf="+n8+"&hl="+ia+"&ip="+tu+"&ipbits="+n8+"&expire="+P6+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+tu+"&key="+x_+"&lang="+ca,name:{simpleText:Pz},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+K+"&caps="+x_+"&opi="+vd+"&xoaf="+n8+"&hl="+ia+"&ip="+tu+"&ipbits="+n8+"&expire="+P6+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+tu+"&key="+x_+"&kind="+x_+"&lang="+ia,name:{simpleText:W_},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:XF,title:V4,lengthSeconds:"1155",keywords:[y3,tF,L6,Pz],
channelId:c6,isOwnerViewing:!1,shortDescription:Rs,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+ZD+"G&rs="+kc,width:168,height:94},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+ZD+"G&rs="+kc,width:196,height:110},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+ZD+"G&rs="+M,width:246,height:138},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+ZD+"G&rs="+M,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
K+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Fi,author:g7,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Fi,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+W6+"/featured_channel.jpg?v="+KS,width:40,height:40}]},trackingParams:mh+"=",navigationEndpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{url:"/channel/"+c6,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:c6}},channelName:g7,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Rs}]},subscribed:!1,enabled:!0,type:"FREE",channelId:c6,showPreferences:!1,subscribedButtonText:{runs:[{text:E9}]},unsubscribedButtonText:{runs:[{text:Wu}]},trackingParams:mh+"=",unsubscribeButtonText:{runs:[{text:FE}]},serviceEndpoints:[{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[c6],params:KS}},{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:pS,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:mh+"=",dialogMessages:[{runs:[{text:Wu},{text:Pz},{text:W_}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:JA}]},serviceEndpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[c6],params:KS}},accessibility:{label:Pz},trackingParams:mh+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:XF}]},accessibility:{label:g7},trackingParams:mh+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:bI}},unsubscribeAccessibility:{accessibilityData:{label:XF}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:tj},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[c6],params:KS}},unsubscribeCommand:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[c6],params:KS}},addToWatchLaterCommand:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:XF,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:XF}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+K+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+ZD+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
K+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+XF,width:1280,height:720},title:{simpleText:XF},description:{simpleText:g7},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Rs,externalChannelId:c6,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:Fi,category:"Travel & Events",publishDate:Yc,ownerChannelName:g7,uploadDate:Yc}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:W_},trackingParams:mh+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:pS,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:mh+"="}}],headerText:{simpleText:E9},icon:{infoCardIconRenderer:{trackingParams:mh+"="}},closeButton:{infoCardIconRenderer:{trackingParams:mh+"="}},trackingParams:mh+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:mh+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+XF+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:OE,interpreterSafeUrl:(Kj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+xc+".js",Kj),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:tF},{text:Rs,bold:!0}]},endpoint:{clickTrackingParams:pS,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:mh+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Rs}]},actionButton:{buttonRenderer:{text:{runs:[{text:L6}]},navigationEndpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+K,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
K,target:"TARGET_NEW_WINDOW"}},trackingParams:mh+"="}},trackingParams:mh+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+hu+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+hu+"=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:Fi,endMs:Fi,title:{accessibility:{accessibilityData:{label:g7}},simpleText:QX},metadata:{simpleText:W_},callToAction:{simpleText:FE},dismiss:{simpleText:QX},endpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{url:"/channel/"+c6,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:c6}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:E9}]},subscribed:!1,enabled:!0,type:"FREE",channelId:c6,showPreferences:!1,
subscribedButtonText:{runs:[{text:bI}]},unsubscribedButtonText:{runs:[{text:XF}]},trackingParams:mh+"=",unsubscribeButtonText:{runs:[{text:g7}]},serviceEndpoints:[{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[c6],params:KS}},{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:pS,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:mh+
"=",dialogMessages:[{runs:[{text:C1},{text:Rs},{text:V4}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Rs}]},serviceEndpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[c6],params:KS}},accessibility:{label:tF},trackingParams:mh+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:L6}]},
accessibility:{label:g7},trackingParams:mh+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:tF}},unsubscribeAccessibility:{accessibilityData:{label:bI}}}},trackingParams:mh+"=",isSubscribe:!0,id:uo}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+ZD+"G&rs="+M,width:168,height:94},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+ZD+"G&rs="+kc,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+ZD+"G&rs="+M,width:246,height:138},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+ZD+"G&rs="+M,width:336,height:188},{url:"https://i.ytimg.com/vi/"+K+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Fi,endMs:Fi,title:{accessibility:{accessibilityData:{label:FE}},simpleText:W_},metadata:{simpleText:QX},endpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
XF,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:XF,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+U9+".googlevideo.com/videoplayback?source=youtube&oeis="+n8+"&c=WEB&oad="+Cu+"&ovd="+Cu+"&oaad="+hm+"&oavd="+hm+"&ocs="+Zf+"&oewis="+n8+"&oputc="+n8+"&ofpcc="+n8+"&siu="+n8+"&msp="+n8+"&odepv="+n8+
"&id=o-AF"+qg+"&ip="+tu+"&initcwndbps="+Fi+"&mt="+P6+"&oweuc="+Y5}}}}},trackingParams:mh+"=",id:uo,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Rs}},simpleText:C1},style:"DEFAULT"}}]}}],startMs:Fi,trackingParams:mh+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:n8,offsetEndMilliseconds:hm},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vd+";dc_trk_cid="+vd+";dc_dbm_token="+T+";ord="+P6+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n8+";dc_rui="+n8+";dc_exteid="+uo+";dc_av="+Zf+";dc_sk="+n8+";dc_ctype="+Ku+";dc_ref=http://www.youtube.com/video/"+XF+";dc_pubid="+n8+";dc_btype=23?gclid="+la+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+n8+"&ns="+n8+"&event="+n8+"&device="+n8+"&content_v="+K+"&el="+tF+"&ei="+U+"&devicever="+P+"&bti="+Fi+"&format="+Iu+"&break_type="+n8+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+n8+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+tu+"&slot_pos="+n8+"&slot_len="+n8+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+XO+"&ad_len="+hm+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
XF+"&aqi="+U+"&ad_rmp="+n8+"&sli="+n8}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+
";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Iu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Fi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&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"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&ctype="+Zf+"&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"+
G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_engaged_view&ctype="+Zf+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Iu+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
vd+";dc_trk_cid="+vd+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n8+";ord="+vd+";dc_rui="+n8+";dc_exteid="+zc+";dc_av="+n8+";dc_sk="+n8+";dc_ctype="+Ku+";dc_pubid="+n8+";dc_btype=3?gclid="+la+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+x+"&sig="+DB+"&ad_cpn=[AD_CPN]&id="+QX+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+QX+"&dc_pubid="+n8+"&dc_exteid="+uo+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+x+"&sig="+DB+"&ad_cpn=[AD_CPN]&id="+QX+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+n8},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+QX+"&avm="+n8+"&dc_pubid="+n8+"&dc_exteid="+
uo+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&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="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
x+"&sig="+DB+"&ad_cpn=[AD_CPN]&id="+QX+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+n8},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+QX+"&dc_pubid="+n8+"&dc_exteid="+uo+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Iu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Iu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:pS,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+
Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+K+"/mqdefault.jpg",width:320,height:180}]},trackingParams:mh+"="},trackingParams:mh+
"=",templatedCountdown:{templatedAdText:{text:E9,isTemplated:!0,trackingParams:mh+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:QX,isTemplated:!1,trackingParams:mh+"="},trackingParams:mh+"="}},trackingParams:mh+"=",skipOffsetMilliseconds:5E3}},trackingParams:mh+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Pz},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:mh+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Wu,isTemplated:!1,trackingParams:mh+"="},trackingParams:mh+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Pz,isTemplated:!0,trackingParams:mh+"="}},trackingParams:mh+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:pS,openPopupAction:{popup:{aboutThisAdRenderer:{url:(EM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+ia+"&origin=www.youtube.com&ata_theme="+JA,EM),trackingParams:mh+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:mh+"="}},hoverText:{runs:[{text:Pz}]},trackingParams:mh+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zZ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:mh+"="},headline:{text:y3,isTemplated:!1,trackingParams:mh+"="},description:{text:XF,
trackingParams:mh+"="},actionButton:{buttonRenderer:{text:{simpleText:Wu},navigationEndpoint:{clickTrackingParams:pS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vd+";dc_trk_cid="+vd+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n8+";ord="+vd+";dc_rui="+n8+";dc_exteid="+uo+";dc_av="+n8+";dc_sk="+n8+";dc_ctype="+Ku+";dc_pubid="+n8+";dc_btype=3?gclid="+la+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:mh+"="}},startMs:n8,trackingParams:mh+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:C1},elementId:W_}},elementId:L6,trackingParams:mh+"=",legacyInfoCardVastExtension:L6,sodarExtensionData:{siub:Pz,bgub:XF,scs:V4,bgp:W_},externalVideoId:XF,adLayoutLoggingData:{serializedAdServingDataEntry:g7},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zZ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:mh+"="},
headline:{text:FE,isTemplated:!1,trackingParams:mh+"="},description:{text:V4,isTemplated:!1,trackingParams:mh+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:y3},navigationEndpoint:{clickTrackingParams:pS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vd+";dc_trk_cid="+vd+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n8+";ord="+vd+";dc_rui="+n8+";dc_exteid="+
uo+";dc_av="+n8+";dc_sk="+n8+";dc_ctype="+Ku+";dc_pubid="+n8+";dc_btype=3?gclid="+la+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+
n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mh+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:mh+"="}},navigationEndpoint:{clickTrackingParams:pS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vd+";dc_trk_cid="+
vd+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n8+";ord="+vd+";dc_rui="+n8+";dc_exteid="+uo+";dc_av="+n8+";dc_sk="+n8+";dc_ctype="+Ku+";dc_pubid="+n8+";dc_btype=3?gclid="+la+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+
v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:mh+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:mh+"="},abandonCommands:{commands:[{clickTrackingParams:pS,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&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="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+
n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:pS,commandExecutorCommand:{commands:[{clickTrackingParams:pS,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Pz,isTemplated:!1,trackingParams:mh+
"="},trackingParams:mh+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:JA},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Fi+";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="+vd+";dc_trk_cid="+vd+";ord="+P6+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n8+";dc_rui="+n8+";dc_exteid="+uo+";dc_av="+Zf+";dc_sk="+n8+";dc_ctype="+Ku+";dc_ref=http://www.youtube.com/video/"+XF+";dc_pubid="+n8+";dc_btype=23?gclid="+la+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+n8+"&ns="+n8+"&event="+n8+"&device="+n8+"&content_v="+K+"&el="+tF+"&ei="+U+"&devicever="+P+"&bti="+Fi+"&format="+Iu+"&break_type="+n8+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+n8+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+tu+"&slot_pos="+n8+"&slot_len="+n8+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
XO+"&ad_len="+hm+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+XF+"&aqi="+U+"&ad_rmp="+n8+"&sli="+n8}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Iu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+
V+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Fi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&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"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&ctype="+Zf+"&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"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_engaged_view&ctype="+Zf+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Iu+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+x+"&sig="+DB+"&ad_cpn=[AD_CPN]&id="+
QX+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+QX+"&dc_pubid="+n8+"&dc_exteid="+uo+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+x+
"&sig="+DB+"&ad_cpn=[AD_CPN]&id="+QX+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+n8},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+QX+"&avm="+n8+"&dc_pubid="+n8+"&dc_exteid="+uo+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&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="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+x+"&sig="+DB+"&ad_cpn=[AD_CPN]&id="+QX+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+n8},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+QX+"&dc_pubid="+n8+"&dc_exteid="+uo+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Iu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Iu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+
Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+K+"/mqdefault.jpg",width:320,height:180}]},trackingParams:mh+"="},trackingParams:mh+"=",templatedCountdown:{templatedAdText:{text:Pz,isTemplated:!0,trackingParams:mh+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Rs,isTemplated:!1,trackingParams:mh+"="},trackingParams:mh+"="}},
trackingParams:mh+"=",skipOffsetMilliseconds:5E3}},trackingParams:mh+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:JA},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mh+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:W_,isTemplated:!1,trackingParams:mh+"="},trackingParams:mh+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:y3,
isTemplated:!0,trackingParams:mh+"="}},trackingParams:mh+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:pS,openPopupAction:{popup:{aboutThisAdRenderer:{url:(qQ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+ia+"&origin=www.youtube.com&ata_theme="+JA,qQ),trackingParams:mh+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:mh+"="}},hoverText:{runs:[{text:g7}]},trackingParams:mh+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ah+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:mh+"="},headline:{text:XF,isTemplated:!1,trackingParams:mh+"="},description:{text:V4,trackingParams:mh+"="},actionButton:{buttonRenderer:{text:{simpleText:C1},navigationEndpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:mh+"="}},startMs:n8,trackingParams:mh+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:g7},elementId:E9}},elementId:KS,trackingParams:mh+"=",legacyInfoCardVastExtension:y3,sodarExtensionData:{siub:XF,bgub:tF,scs:g7,bgp:KS},externalVideoId:XF,adLayoutLoggingData:{serializedAdServingDataEntry:Pz},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ah+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:mh+"="},headline:{text:L6,
isTemplated:!1,trackingParams:mh+"="},description:{text:bI,isTemplated:!1,trackingParams:mh+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:tF},navigationEndpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mh+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:mh+"="}},navigationEndpoint:{clickTrackingParams:pS,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+
n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mh+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:mh+"="},abandonCommands:{commands:[{clickTrackingParams:pS,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&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="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+Ku+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:pS,commandExecutorCommand:{commands:[{clickTrackingParams:pS,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:bI,isTemplated:!1,trackingParams:mh+"="},trackingParams:mh+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:bI},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n8+";dc_exteid="+uo+";met="+n8+";ecn"+n8+"="+n8+";etm1="+n8+";eid1="+
Fi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:KS}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:FE}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hm,offsetEndMilliseconds:Iu},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+U+"&m_pos="+Ku+"&token=ALHj"+zJ+"&index="+n8+"&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="+P+"&m_pos_ms="+hm}},adSlotLoggingData:{serializedSlotAdServingDataEntry:V4}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Iu,offsetEndMilliseconds:Iu},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+U+"&m_pos="+Zf+"&token=ALHj"+zJ+"&index="+n8+"&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="+
P+"&m_pos_ms="+Iu}},adSlotLoggingData:{serializedSlotAdServingDataEntry:y3}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Iu,offsetEndMilliseconds:Iu},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+U+"&m_pos="+Zf+"&token=ALHj"+zJ+"&index="+n8+"&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="+
P+"&m_pos_ms="+Iu}},adSlotLoggingData:{serializedSlotAdServingDataEntry:W_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Iu,offsetEndMilliseconds:Iu},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+U+"&m_pos="+Zf+"&token=ALHj"+zJ+"&index="+n8+"&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="+
P+"&m_pos_ms="+Iu}},adSlotLoggingData:{serializedSlotAdServingDataEntry:tF}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Iu,offsetEndMilliseconds:Ku},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+U+"&m_pos="+Zf+"&token=ALHj"+zJ+"&index="+n8+"&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="+
P+"&m_pos_ms="+Iu}},adSlotLoggingData:{serializedSlotAdServingDataEntry:XF}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Ku,offsetEndMilliseconds:Ku},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+U+"&m_pos="+Ku+"&token=ALHj"+zJ+"&index="+n8+"&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="+
P+"&m_pos_ms="+Ku}},adSlotLoggingData:{serializedSlotAdServingDataEntry:QX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:KS,isTemplated:!1,trackingParams:mh+"="},description:{text:g7,isTemplated:!1,trackingParams:mh+"="},actionButton:{buttonRenderer:{text:{simpleText:bI},navigationEndpoint:{clickTrackingParams:pS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
vd+";dc_trk_cid="+vd+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n8+";ord="+vd+";dc_rui="+n8+";dc_exteid="+uo+";dc_av="+n8+";dc_sk="+n8+";dc_ctype="+Ku+";dc_pubid="+n8+";dc_btype=3?gclid="+la+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mh+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zZ+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:mh+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+va+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:mh+"="},navigationEndpoint:{clickTrackingParams:pS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vd+";dc_trk_cid="+vd+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n8+";ord="+vd+
";dc_rui="+n8+";dc_exteid="+uo+";dc_av="+n8+";dc_sk="+n8+";dc_ctype="+Ku+";dc_pubid="+n8+";dc_btype=3?gclid="+la+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mh+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pS,openPopupAction:{popup:{aboutThisAdRenderer:{url:(w68.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+ia+"&origin=www.youtube.com&ata_theme="+JA,w68),trackingParams:mh+"="}},popupType:"DIALOG"}},trackingParams:mh+"="}},hoverText:{runs:[{text:XF}]},trackingParams:mh+"="}},adVideoId:XF,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:tF},associatedCompositePlayerBytesLayoutId:y3}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:JA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:XF,isTemplated:!1,trackingParams:mh+"="},description:{text:C1,isTemplated:!1,trackingParams:mh+"="},actionButton:{buttonRenderer:{text:{simpleText:W_},navigationEndpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+
v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:mh+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ah+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:mh+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+fS+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:mh+"="},navigationEndpoint:{clickTrackingParams:pS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+
n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mh+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pS,openPopupAction:{popup:{aboutThisAdRenderer:{url:(R3.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+ia+"&origin=www.youtube.com&ata_theme="+JA,R3),trackingParams:mh+"="}},popupType:"DIALOG"}},trackingParams:mh+"="}},
hoverText:{runs:[{text:JA}]},trackingParams:mh+"="}},adVideoId:XF,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+XF+"&cid="+V+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:tF},associatedCompositePlayerBytesLayoutId:y3}},adSlotLoggingData:{serializedSlotAdServingDataEntry:y3}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:E9,
isTemplated:!1,trackingParams:mh+"="},description:{text:XF,isTemplated:!1,trackingParams:mh+"="},actionButton:{buttonRenderer:{text:{simpleText:Wu},navigationEndpoint:{clickTrackingParams:pS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vd+";dc_trk_cid="+vd+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n8+";ord="+vd+";dc_rui="+n8+";dc_exteid="+uo+";dc_av="+n8+";dc_sk="+n8+";dc_ctype="+
Ku+";dc_pubid="+n8+";dc_btype=3?gclid="+la+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+
M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mh+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zZ+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:mh+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+va+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:mh+
"="},navigationEndpoint:{clickTrackingParams:pS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vd+";dc_trk_cid="+vd+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n8+";ord="+vd+";dc_rui="+n8+";dc_exteid="+uo+";dc_av="+n8+";dc_sk="+n8+";dc_ctype="+Ku+";dc_pubid="+n8+";dc_btype=3?gclid="+la+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+G+"____________"+v+"AxAA&ase=2&num="+n8+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+IN+"&label=video_click_to_advertiser_site&ctype="+Zf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:mh+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pS,openPopupAction:{popup:{aboutThisAdRenderer:{url:(to.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+ia+"&origin=www.youtube.com&ata_theme="+JA,to),trackingParams:mh+"="}},popupType:"DIALOG"}},trackingParams:mh+
"="}},hoverText:{runs:[{text:FE}]},trackingParams:mh+"="}},adVideoId:XF,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+G+"____________"+v+"AxAA&sigh="+K+"&cid="+V+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:W_},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:y3}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Rs}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:xc,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:xc,command:{innertubeCommand:{clickTrackingParams:pS,ypcGetOfflineUpsellEndpoint:{params:RD}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:mh+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:P6,nanos:kE}}}},mE9=JSON.stringify(Ao),Uc=performance.now()-Y;return{objectRepresentation:Ao,jsonRepresentation:mE9,generationTime:Uc}};
Yeu=function(Y,S){if(Y===S)return!0;if(!Y||!S||typeof Y!==typeof S)return!1;if(Y instanceof Array&&S instanceof Array){if(Y.length!==S.length)return!1;for(var P=0;P<Y.length;P++)if(!Yeu(Y[P],S[P]))return!1;return!0}if(typeof Y==="object"&&typeof S==="object"&&Y&&S){for(P in Y)if(!(P in S&&Yeu(Y[P],S[P])))return!1;for(var u in S)if(!(u in Y))return!1;return!0}return!1};
_.Wq=function(){if(!uM){uM=new uV(new Sef);var Y=_.z_("client_streamz_web_flush_count",-1);Y!==-1&&(uM.invocationLimit=Y)}return uM};
zp=function(Y,S,P,u){if(Y===S)return!0;if(Array.isArray(Y)&&Array.isArray(S)){if(Y.length!==S.length)return!1;for(var W=0;W<Y.length;W++)if(!zp(Y[W],S[W],P,u))return!1;return!0}if(Y instanceof Set||S instanceof Set){if(Y instanceof Set&&S instanceof Set){if(Y.size!==S.size)return!1;u=_.n(Y.values());for(W=u.next();!W.done;W=u.next())if(!S.has(W.value))return!1;return!0}return!1}if(Y instanceof Function){if(u)return!0;Y.name===""&&_.p_(Error("Hf"),"ERROR");return!1}if(Y instanceof Date&&S instanceof
Date)return Y.getTime()===S.getTime();if(Y instanceof Object&&S instanceof Object){if(P4h(Y)&&P4h(S))try{return Y.equals(S)}catch(J){_.p_(Error("If`"+J),"ERROR")}W=Object.getOwnPropertyNames(Y).filter(function(J){return P?Y[J]!==void 0:!0});
var m=Object.getOwnPropertyNames(S).filter(function(J){return P?S[J]!==void 0:!0});
if(W.length!==m.length)return!1;W=_.n(W);for(m=W.next();!m.done;m=W.next())if(m=m.value,!zp(Y[m],S[m],P,u))return!1;return!0}return!1};
P4h=function(Y){Y=Object.getPrototypeOf(Y).equals;return Y instanceof Function&&Y.length===1};
zea=function(){return _.B(function(Y){if(Y.nextAddress==1)return uhE!==2?Y.jumpTo(2):_.q(Y,Wef(),3);Y.nextAddress!=2&&(uhE=Y.yieldResult);return Y.return(uhE)})};
jmE=function(){return _.B(function(Y){if(Y.nextAddress==1)return _.f("ab_pl_man")?mCU!==2?Y.jumpTo(2):_.q(Y,nAa(),3):Y.return(1);Y.nextAddress!=2&&(mCU=Y.yieldResult);return Y.return(mCU)})};
cD9=function(){return _.B(function(Y){if(Y.nextAddress==1)return _.f("ab_fk_sk_cl")?JDK!==2?Y.jumpTo(2):_.q(Y,BmX(),3):Y.return(1);Y.nextAddress!=2&&(JDK=Y.yieldResult);return Y.return(JDK)})};
ReE=function(){return _.B(function(Y){if(Y.nextAddress==1)return _.f("ab_det_apb_b")?C49!==2?Y.jumpTo(2):_.q(Y,qeU(),3):Y.return(1);Y.nextAddress!=2&&(C49=Y.yieldResult);return Y.return(C49)})};
Tm1=function(){var Y;return _.B(function(S){if(S.nextAddress==1)return _.q(S,Promise.all([zea(),ReE(),jmE(),cD9()]),2);if(S.nextAddress!=3)return xCa()?S.return(!0):_.q(S,bfa(),3);Y=S.yieldResult;return S.return(Y===0)})};
xCa=function(){var Y=new Keh;mM(Y,EAh(),"j.s_");mM(Y,uhE,"f.i_");mM(Y,C49,"a.b_");mM(Y,mCU,"p.m_");mM(Y,JDK,"i.f_");fG$===2&&(fG$=gAU(e2a($Cu)));mM(Y,fG$,"e.h_");_.f("ks_det_gpbl")||mM(Y,rDa(),"p.i_");_.f("ks_get_o_pp")||mM(Y,GS9(),"g.o_");_.f("ab_deg_unex_thr")||mM(Y,heh(),"a.o_");mM(Y,vAX,"s.t_");_.f("ab_det_sc_inj_enf")&&mM(Y,DCE(),"s.i_");mM(Y,IG9,"d.p_");_.f("ab_det_pp_ov")&&mM(Y,aGf(LeK),"o.p_");mM(Y,wUh()===0?0:pUX(),"o.a_");return _.f("debug_sk_em_precheck")?!0:Y.qQy};
sma=function(){var Y=[].concat(_.cz(Fea));try{var S=Pq();Y.push({jsonRepresentation:S.jsonRepresentation,objectRepresentation:S.objectRepresentation})}catch(P){Y=[].concat(_.cz(Fea))}return Y};
dCh=function(){var Y=["adPlacements","adSlots"];try{return Y.filter(function(){return!0}).length!==Y.length?0:1}catch(S){return 0}};
GS9=function(){if(dCh()===0)return 0;var Y=Pq(),S=Y.objectRepresentation,P=(0,_.RY.unsafeClone)(S),u=[];if(S&&typeof S==="object")for(var W in S)u.push(W);else return 4;Y=Y.objectRepresentation.adPlacements;if(!(Y&&Y.length>0))return 4;try{if(!Yeu(u,Object.getOwnPropertyNames(S)))return 0}catch(m){return 0}return Yeu(P,S)?1:0};
aGf=function(Y){var S=Object.getOwnPropertyNames(Object.prototype);Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next()){P=NG9(P.value);for(var u=_.n(S),W=u.next();!W.done;W=u.next())if(P===W.value)return 0}return 1};
lG9=function(Y){var S=Vaa(Y[1]);if(Y[0]===null)return S;Y=Y[0];for(var P={},u=0;u<Y.length;u++){var W=Vaa(Y[u]);if(u===0)P[W]=S;else{var m={};m[W]=P;P=m}}return P};
wUh=function(){for(var Y=XU$,S=0;S<Y.length;S++){var P=lG9(Y[S]),u=[];u.push(P);if(u.length===0)return 0}return 1};
pUX=function(){for(var Y=XU$,S={},P=0;P<Y.length;S={u0e:void 0},P++){var u=[lG9(Y[P])];S.u0e=[];u.forEach(function(W){return function(m){W.u0e[W.u0e.length]=m}}(S));
if(S.u0e.length===0)return 0}return 1};
EAh=function(){for(var Y=_.n(sma()),S=Y.next();!S.done;S=Y.next()){var P=S.value;S=P.jsonRepresentation;P=P.objectRepresentation;try{var u=JSON.parse(S);if(!zp(u,P,!1,!1))return 0}catch(W){return 0}}return 1};
DCE=function(){try{var Y=_.nz("ab_det_sc_inj_val");Y.length===1&&Y[0]===""&&(Y=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var S=document.querySelectorAll("script"),P=_.n(S),u=P.next();!u.done;u=P.next())for(var W=u.value,m=_.n(Y),J=m.next();!J.done;J=m.next()){var c=J.value;S=void 0;if((S=W.textContent)==null?0:S.includes(c))return 0}}catch(C){return 4}return 1};
bfa=function(){var Y,S,P,u,W,m,J;return _.B(function(c){switch(c.nextAddress){case 1:_.ND(c,2),Y=_.n(Fea),S=Y.next();case 4:if(S.done)return c.return(1);u=P=S.value;W=u.jsonRepresentation;m=u.objectRepresentation;return _.q(c,(new Response(W,{status:200})).json(),7);case 7:J=c.yieldResult;if(!zp(J,m,!1,!1))return c.return(0);S=Y.next();c.jumpTo(4);break;case 2:return _.O4(c),c.return(4)}})};
heh=function(){try{btoa("abc")}catch(Y){return 0}return 1};
Wef=function(){var Y,S,P,u,W,m,J,c,C,x,b;return _.B(function(T){switch(T.nextAddress){case 1:_.ND(T,2),Y=_.n(sma()),S=Y.next();case 4:if(S.done)return T.return(1);u=P=S.value;W=u.jsonRepresentation;m=u.objectRepresentation;J=btoa(W);c="data:application/json;base64,"+J;C=new Request(c);Object.defineProperty(C,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(C,"method",{get:function(){return"POST"}});
Object.defineProperty(C,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(C,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(C,"body",{get:function(){return new ReadableStream}});
return _.q(T,fetch(C),7);case 7:return x=T.yieldResult,_.q(T,x.json(),8);case 8:b=T.yieldResult;if(!zp(b,m,!1,!1))return T.return(0);S=Y.next();T.jumpTo(4);break;case 2:return _.O4(T),T.return(4)}})};
gAU=function(Y){var S=_.n(Y);Y=S.next().value;S=S.next().value;try{var P=document.createElement("div");document.body.appendChild(P);var u=getComputedStyle(P).display;document.body.removeChild(P);if(u==="none")return 4;var W=getComputedStyle(S).display==="none"?0:1;document.body.removeChild(Y);return W}catch(m){return 4}};
BmX=function(){var Y,S,P;return _.B(function(u){Y=new _.nV;S=document.createElement("button");S.classList.add("ytp-ad-skip-button");S.style.opacity="0";S.style.height="0px";S.style.width="0px";S.style.padding="0px";S.style.border="none";P=function(){S.parentElement&&S.parentElement.removeChild(S)};
S.onclick=function(){Y.resolve(0);P()};
document.body.appendChild(S);setTimeout(function(){P();Y.resolve(1)},50);
return u.return(Y.promise)})};
nAa=function(){var Y,S,P,u,W,m,J;return _.B(function(c){Y=new _.nV;S=document.createElement("ytd-player");try{document.body.prepend(S)}catch(C){return c.return(4)}P=function(){S.parentElement&&S.parentElement.removeChild(S)};
S.getElementsByTagName("div").length>0?u=S.getElementsByTagName("div")[0]:(u=document.createElement("div"),S.appendChild(u));W=document.createElement("div");u.appendChild(W);m=document.createElement("video");J=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"});m.src=_.mp(_.cx(J));m.ontimeupdate=function(){P();Y.resolve(0)};
W.appendChild(m);m.classList.add("html5-main-video");setTimeout(function(){W.classList.add("ad-interrupting")},200);
setTimeout(function(){P();Y.resolve(1)},5E3);
return c.return(Y.promise)})};
Zf9=function(Y,S){var P,u;return _.B(function(W){switch(W.nextAddress){case 1:P=[],u=0;case 2:if(!(u<3)){W.jumpTo(4);break}return _.q(W,fetch(Y,{cache:"no-store",method:S}).then(function(m){P.push(m.status)}).catch(function(){P.push(-1)}),3);
case 3:u++;W.jumpTo(2);break;case 4:return W.return(P)}})};
ifh=function(Y){return Y.domainLookupStart===0&&Y.domainLookupEnd===0&&Y.connectStart===0&&Y.connectEnd===0};
oA8=function(Y,S,P){P=P===void 0?"GET":P;var u,W,m,J,c,C,x,b,T,K;return _.B(function(G){if(G.nextAddress==1)return _.q(G,Promise.all([Zf9(Y,P),Zf9(S,P)]),2);u=G.yieldResult;W=_.n(u);m=W.next().value;J=W.next().value;c=m;C=J;if(Math.min.apply(Math,_.cz(C))!==Math.max.apply(Math,_.cz(C))||Math.min.apply(Math,_.cz(c))!==Math.max.apply(Math,_.cz(c)))return G.return(2);if(Math.min.apply(Math,_.cz(C))===Math.min.apply(Math,_.cz(c)))return G.return(1);b=(x=performance.getEntriesByName(Y))==null?void 0:x[0];
K=(T=performance.getEntriesByName(S))==null?void 0:T[0];return b&&K?ifh(K)?G.return(1):ifh(b)?G.return(0):G.return(1):G.return(2)})};
qeU=function(){var Y;return _.B(function(S){var P=[];var u;var W,m,J;(W=u=(W=Pq().objectRepresentation.streamingData)==null?void 0:(m=W.formats)==null?void 0:(J=m[0])==null?void 0:J.url)&&W&&!u.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(W=W.replace("initcwndbps","ctier=L&initcwndbps"),u={testUrl:W,baseUrl:u,method:"GET"}):u=void 0;u&&P.push(u);_.f("ab_net_tp_e")&&P.push({testUrl:_.Pa.location.origin+"/ad_companion",baseUrl:_.Pa.location.origin+"/generate_204",method:"OPTIONS"});if(_.f("ad_net_pb_ab")){var c;
b:{u=/api\/stats\/ads/;var C,x,b,T;W=(c=Pq().objectRepresentation.adPlacements)==null?void 0:(C=c[0])==null?void 0:(x=C.adPlacementRenderer)==null?void 0:(b=x.renderer)==null?void 0:(T=b.linearAdSequenceRenderer)==null?void 0:T.linearAds;if(W!=null&&W.length&&(c=_.g(W[0],toa))&&(c=c.pings,c!=null&&c.impressionPings))for(C=[].concat(_.cz(c.impressionPings)),c.progressPings&&(C=[].concat(_.cz(C),_.cz(c.progressPings))),c=_.n(C),C=c.next();!C.done;C=c.next())if(C=C.value,C.baseUrl&&u.test(C.baseUrl)){c=
C.baseUrl.replace("https://www.youtube.com","");break b}c=void 0}c&&P.push({testUrl:_.Pa.location.origin+c,baseUrl:_.Pa.location.origin+"/feed/download",method:"GET"})}if(_.f("ad_net_pb_pbp")){var K;b:{c=/api\/stats\/qoe/;if(C=Pq().objectRepresentation.playbackTracking){x=[];x.push(C==null?void 0:(K=C.videostatsPlaybackUrl)==null?void 0:K.baseUrl);var G;x.push(C==null?void 0:(G=C.videostatsDelayplayUrl)==null?void 0:G.baseUrl);var v;x.push(C==null?void 0:(v=C.videostatsWatchtimeUrl)==null?void 0:
v.baseUrl);var a;x.push(C==null?void 0:(a=C.ptrackingUrl)==null?void 0:a.baseUrl);var w;x.push(C==null?void 0:(w=C.qoeUrl)==null?void 0:w.baseUrl);var F;x.push(C==null?void 0:(F=C.atrUrl)==null?void 0:F.baseUrl);K=_.n(x);for(G=K.next();!G.done;G=K.next())if((G=G.value)&&c.test(G)){K=G.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}K=void 0}K&&P.push({testUrl:_.Pa.location.origin+K,baseUrl:_.Pa.location.origin+"/feed/download",method:"GET"})}P=P.length!==0?P[Math.floor(Math.random()*
P.length)]:void 0;return(Y=P)?S.return(oA8(Y.testUrl,Y.baseUrl,Y.method)):S.return(4)})};
rDa=function(){if(_.Pa.c0R===void 0||_.Pa.c0R===null||typeof _.Pa.c0R!=="function")return 2;try{return _.Pa.c0R()===!0?0:1}catch(Y){return 0}};
ADh=function(Y){switch(Y){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.O6(Y,"unknown result type")}};
_.UC8=function(Y,S){var P=Number(_.X3("CATSTAT",0));if(S.mUx===void 0)return P;S=S.mUx;Y=ADh(Y);return P&~(3<<S)|Y<<S};
Qmh=function(Y){var S,P;if((Y=(S=Y.auxiliaryUi)==null?void 0:(P=S.messageRenderers)==null?void 0:P.bkaEnforcementMessageViewModel)&&Y.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return Y};
Moh=function(){for(var Y=_.n(Object.values(_.kSX)),S=Y.next();!S.done;S=Y.next())S=S.value,S.isAsync&&S.mUx&&_.lk("CATSTAT",_.UC8(2,S))};
_.cq=function(Y,S){Y=_.jV("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",Y);(S===void 0?0:S)?_.yD8(Y,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.JK(_.Bq(),Y,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Hfa=function(){if(!Nm8){if(Polymer.Base){var Y=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{Y.apply(this,arguments)}catch(T){_.ik(T)}};
var S=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{S.apply(this,arguments)}catch(T){_.ik(T)}};
var P=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{P.apply(this,arguments)}catch(T){_.ik(T)}};
var u=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{u.apply(this,arguments)}catch(T){_.ik(T)}};
var W=Polymer.Base._listen,m=new WeakMap;Polymer.Base._listen=function(T,K,G){var v=function(){try{G.apply(this,arguments)}catch(a){_.ik(a)}};
m.set(G,v);W.call(this,T,K,v)};
var J=Polymer.Base._unlisten;Polymer.Base._unlisten=function(T,K,G){J.call(this,T,K,m.get(G))}}if(Polymer.Async){var c=Polymer.Async,C=c._atEndOfMicrotask;
c._atEndOfMicrotask=function(){try{C.apply(c,arguments)}catch(T){_.ik(T)}}}if(Polymer.RenderStatus){var x=Polymer.RenderStatus,b=x.afterNextRender;
x.afterNextRender=function(T,K,G){b.call(x,T,function(){try{K.apply(this,arguments)}catch(v){_.ik(v)}},G)}}Nm8=!0}};
_.eeh=function(Y){var S=Y?_.Cz(Y):"";if(S){if(S.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(S.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(S.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(S.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(S.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(S.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";S=S.toLowerCase();if(S==="/")return"home";if(S===
"/channel_memberships")return"channel-memberships-shopfront";if(S.indexOf("/feed/trending")===0)return"trending";if(S.indexOf("/feed/explore")===0)return"explore";if(S.indexOf("/live")===0)return"live";if(S.indexOf("/results")===0)return"search";if(S.indexOf("/sports")===0)return"sports";if(S.indexOf("/fashion")===0||S.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(S))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(S))return"learning";
if(S.indexOf("/channel/")===0||S.indexOf("/user/")===0||S.indexOf("/gaming")===0||S.indexOf("/post/")===0)return"channel";if(Vo$(Y))return"show";if(S==="/playlist"||S.indexOf("/playlist/")===0||S==="/view_play_list"||S.indexOf("/view_play_list/")===0||S.indexOf("/show/")===0)return"playlist";if(S==="/feed/history"||S.indexOf("/feed/history/")===0)return"history";if(S==="/new")return"labs";if(S==="/feed/subscriptions")return"subscriptions";if(S.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(S==="/history_controls")return"standalone";if(S.indexOf("/account")===0||S==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(S.indexOf("/paid_memberships")===0||S.indexOf("/refund")===0||S.indexOf("/purchases")===0||S.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(S.indexOf("/product")===0)return"yts-products";if(S.indexOf("/premium")===0||S.indexOf("/musicpremium")===0)return S.indexOf("/premium/offers")===0||S.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(S===
"/cart/checkout"||S==="/cart")return"ypc-checkout";if(S.indexOf("/feed/downloads")===0||S.indexOf("/redeem")===0||S.indexOf("/reporthistory")===0)return"browse";if(S.indexOf("/hashtag")===0)return"hashtag-landing-page";if(S.indexOf("/handle")===0)return"handle";if(S.indexOf("/source")===0)return"audio-pivot";if(S.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(S.indexOf("/playables")===0)return"playables";if(S.indexOf("/create/live/join")===0)return"open-in-app";if(S.indexOf("/shorts")===
0)return"shorts";if(S.indexOf("/feed/channels")===0)return"subscriptions-channels";(S=Y?_.Cz(Y):"")&&S.indexOf("/watch")===0&&_.f("web_watch_enable_learning_journey")?(Y=_.MP(Y),Y=!!Y.list&&Y.list.indexOf("LJPP")===0):Y=!1;if(Y)return"learning-journey-watch"}};
Vo$=function(Y){var S=Y?_.Cz(Y):"";if(!S)return!1;S=S.toLowerCase();return S.indexOf("/show/")===0||S.indexOf("/playlist")===0&&(Y=_.MP(Y),Y.list&&Y.list.indexOf("EL")===0)?!0:!1};
RK=function(Y){var S="unknown",P;var u=((P=_.g(Y==null?void 0:Y.commandMetadata,_.Yo))==null?void 0:P.webPageType)||"";u?(P=u.toLowerCase(),P.startsWith("web_page_type_")&&(P=P.slice(14))):P=u;P&&Of8[P.toUpperCase()]?S=Of8[P.toUpperCase()]:_.g(Y,_.CV)||_.g(Y,YLX)?S="browse":_.g(Y,_.qy)?S="search":_.g(Y,_.yx)&&(S="watch");S==="unknown"&&_.sf(Error("Kf`"+JSON.stringify({clickTrackingParams:Y==null?void 0:Y.clickTrackingParams,commandMetadata:Y==null?void 0:Y.commandMetadata,allEndpointKeys:Object.keys(Y||
[])})));return S};
_.x9=function(Y){if(!_.SLX||Y)_.SLX=_.Pk();return _.SLX};
_.Psh=function(Y){return!!_.g(Y,_.yx)||!!_.g(Y,_.bM)&&_.f("kevlar_enable_shorts_prefetch")};
_.uR1=function(Y,S){Y=_.g(Y,_.yx)||_.g(Y,_.bM);return"v"+Y.videoId+(Y.playlistId?"-pl"+Y.playlistId:"")+(S?"-an1":"")+(Y.params?"-pr"+Y.params:"")};
zwh=function(Y){var S=_.z_("web_pbj_log_warning_rate",0);S=S>0&&Math.random()<S;if(!_.g(Y,_.bM))return S&&_.sf(Error("Nf")),!1;var P;return _.f("shorts_controller_retrieve_seedless_sequence_v2")&&((P=_.g(Y,_.bM))==null?void 0:P.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:Wia(Y)?!0:(S&&_.sf(Error("Of")),!1)};
Wia=function(Y){var S=(_.g(Y,_.yx)||_.g(Y,_.bM)).videoId;if(!S||!mV$.test(S))return!1;var P;return(Y=(P=_.g(Y.commandMetadata,_.Yo))==null?void 0:P.url)&&(Y.includes(S)||Y.startsWith("/clip"))?!0:!1};
_.j1u=function(){var Y=_.$o();return Y.getFlag(192)?Y.getFlag(190):!(_.f("web_watch_cinematics_disabled_by_default")||_.f("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&nOh())};
_.Tp=function(Y,S,P){var u={};u.currentUrl=S;u.vis=Y.vis!==void 0?Y.vis:0;u.splay=!1;S=_.$o();u.autoCaptionsDefaultOn=S.getFlag(66);S.getFlag(141)?S.getFlag(140)?u.autonavState="STATE_OFF":u.autonavState="STATE_ON":u.autonavState="STATE_NONE";u.html5Preference="HTML5_PREF_WANTS";isNaN(_.X3("STS"))||(u.signatureTimestamp=_.X3("STS"));Y.autonav&&(u.autoplay=!0,u.autonav=!0);Y.mutedAutoplay&&(u.autoplay=!0,u.mutedAutoplay=!0);Y.inlinePlayback&&(u.autoplay=!0,u.autonav=!1,u.isInlineUnmutedPlayback=!!Y.inlineUnmuted);
u.referer=P;u.lactMilliseconds=Y.lact!==void 0?Y.lact.toString():"-1";_.f("enable_unknown_lact_fix_on_html5")&&u.lactMilliseconds==="-1"&&_.sf(new _.$2("Unknown LACT is set in playbackContext.",{"lact in tempData":Y.lact||"undefined",autonav:Y.autonav||"undefined"}));Y={};S.getFlag(194)&&(Y.hasShownAmbientMode=!0);S.getFlag(192)&&(Y.hasToggledOffAmbientMode=!0);_.j1u()&&(Y.watchAmbientModeEnabled=!0);u.watchAmbientModeContext=Y;return u};
JO9=function(Y){var S={},P=Y.pbis||0;P&&(S.playbackBeginsInSeconds=P);Y.prefetch_reason&&Y.prefetch_reason==="hc_pbis"&&(S.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return S};
_.BCf=function(Y){var S=new KV(_.X3("ONE_PICK_URL",""));S.urlParamMap_.set("hostId",Y);(Y=_.X3("GAPI_LOCALE"))&&S.urlParamMap_.set("hl",Y);(Y=_.X3("SESSION_INDEX"))&&S.urlParamMap_.set("authuser",Y);(Y=_.X3("DELEGATED_SESSION_ID"))&&S.urlParamMap_.set("groupId",Y);return S};
Csh=function(){var Y=_.E(),S=Y.resolve(_.ER);Y=Y.resolve(_.fV);return new cO9(S,Y)};
RwU=function(Y){if(window.IntersectionObserver)return new qL9(Y,400);throw new TypeError("Xf");};
bku=function(){var Y=Hammer.TouchAction,S=Y.prototype.preventDefaults;Y.prototype.preventDefaults=function(P){var u=this.actions.indexOf("pan-down")>-1;if(!u)return S.call(this,P);if(!xVu){var W=P.srcEvent;P=P.direction;var m;if((m=this.manager)==null?0:m.session.prevented)W.preventDefault();else if(u&&P&Hammer.DIRECTION_DOWN)return this.preventSrc(W)}}};
TC1=function(Y){if(!Y||Y.size===0)return Hammer.DIRECTION_ALL;if(Y.size===2){if(Y.has("up")&&Y.has("down"))return Hammer.DIRECTION_VERTICAL;if(Y.has("right")&&Y.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(Y.size===1){if(Y.has("up"))return Hammer.DIRECTION_UP;if(Y.has("down"))return Hammer.DIRECTION_DOWN;if(Y.has("right"))return Hammer.DIRECTION_RIGHT;if(Y.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.EOE=function(){return KiX?Promise.resolve(KiX):new Promise(function(Y,S){var P=self.indexedDB.open("swpushnotificationsdb");P.onerror=S;P.onsuccess=function(){var u=P.result;if(u.objectStoreNames.contains("swpushnotificationsstore"))KiX=u,Y(KiX);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.EOE()};
P.onupgradeneeded=fXY})};
fXY=function(Y){Y=Y.target.result;Y.objectStoreNames.contains("swpushnotificationsstore")&&Y.deleteObjectStore("swpushnotificationsstore");Y.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
$Vh=function(Y){var S=gOh(),P;return _.B(function(u){switch(u.nextAddress){case 1:return _.ND(u,2),_.q(u,Y.match(S,{cacheName:"yt-appshell-assets"}),4);case 4:P=u.yieldResult;_.tc(u,3);break;case 2:_.O4(u);case 3:return u.return(P)}})};
gOh=function(){var Y=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?rOE.registration.scope:GVU;Y.endsWith("/")&&(Y=Y.slice(0,-1));return Y+"/app_shell_home"};
hw9=function(Y){Y.map(function(S){return S.source}).join("|")};
_.vOY=function(Y){return _.B(function(S){return S.return($Vh(Y))})};
DVU=function(){var Y=window.caches,S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,_.vOY(Y),2);S=P.yieldResult;return P.return(!!S)})};
s11=function(){_.B(function(Y){if(Y.nextAddress==1){if(IXf)return Y.jumpTo(0);IXf=!0;if(_.f("enable_system_health_primes_monitoring"))return _.BQ(aXh,3E4),LiK(),Y.return();if(!(Math.random()<_.z_("web_system_health_fraction")))return Y.jumpTo(0);w0J={heightPixels:screen.height,widthPixels:screen.width};g2&&!isNaN(g2.jsHeapSizeLimit)&&(w0J.memoryTotalKbytes=String(Math.round(g2.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(w0J.devicePixelRatio=window.devicePixelRatio);return _.q(Y,p0J(),4)}_.BQ(aXh,
3E4);return _.q(Y,FiX(),0)})};
p0J=function(){return _.B(function(Y){if(Y.nextAddress==1)return $9.intersectionObserverPresent="IntersectionObserver"in window,$9.serviceWorkerPresent="serviceWorker"in navigator,$9.webSharePresent="share"in navigator,$9.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,$9.cacheStoragePresent="caches"in window,$9.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,$9.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
$9.webkitTemporaryStoragePresent="webkitTemporaryStorage"in r2&&r2.webkitTemporaryStorage&&"queryUsageAndQuota"in r2.webkitTemporaryStorage,$9.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.q(Y,ICE(),2);$9.indexedDbPresent=Y.yieldResult;$9.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;$9.broadcastChannelPresent="BroadcastChannel"in window;$9.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
($9.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,$9.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Yt(Y)})};
aXh=function(){var Y=9E4+Math.random()*2E3;_.uE()>Y||(_.f("enable_system_health_primes_monitoring")?LiK():FiX())};
FiX=function(){var Y;return _.B(function(S){if(S.nextAddress==1)return _.q(S,dV$(),2);Y=S.yieldResult;_.L_("systemHealthCaptured",Y);_.Yt(S)})};
LiK=function(){var Y={metric:{}},S=lX1();S.networkEvents.length&&(Y.metric.networkEvents=X08(S));_.L_("systemHealthCaptured",Y)};
dV$=function(){var Y,S,P,u,W,m,J,c,C,x;return _.B(function(b){switch(b.nextAddress){case 1:Y={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};S=window.screen;_.f("enable_is_extended_monitoring")&&S&&"isExtended"in S&&(Y.isExtended=!!S.isExtended);P={metric:{staticContext:w0J,dynamicContext:Y,webMetric:ZkJ,webApiSupport:$9}};
if(u=_.pM())P.csn=u;g2&&(P.metric.webMetric.currentHeapKbytes=Math.round(g2.usedJSHeapSize/1E3));window.matchMedia&&(P.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,P.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,P.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in r2&&typeof r2.getBattery==="function")){b.jumpTo(2);break}return _.q(b,r2.getBattery(),3);case 3:if(W=
b.yieldResult)P.metric.dynamicContext.chargingStatus=W.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(P.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if($9.storageEstimatePresent)return _.q(b,navigator.storage.estimate(),8);if(!$9.webkitTemporaryStoragePresent){b.jumpTo(5);break}return _.q(b,ika(),7);case 7:m=b.yieldResult;b.jumpTo(5);break;case 8:m=b.yieldResult;case 5:return P.metric.dynamicContext.deviceStorageQuotaMbytes=((J=m)==null?0:J.quota)?String(Math.round(m.quota/
1048576/10)*10):"-1",P.metric.dynamicContext.deviceStorageUsageMbytes=((c=m)==null?0:c.usage)?String(Math.round(m.usage/1048576/10)*10):"-1",C=P.metric.dynamicContext,_.q(b,DVU(),9);case 9:return C.hasAppShell=b.yieldResult,x=lX1(),x.networkEvents.length&&(P.metric.networkEvents=X08(x)),b.return(P)}})};
ika=function(){return new Promise(function(Y){var S;$9.webkitTemporaryStoragePresent&&(S=r2.webkitTemporaryStorage)!=null&&S.queryUsageAndQuota?r2.webkitTemporaryStorage.queryUsageAndQuota(function(P,u){Y({usage:P,quota:u})}):Y(void 0)})};
_.Gp=function(Y){Y&=16777215;Y=[(Y&16711680)>>16,(Y&65280)>>8,Y&255];return oOa(Y[0],Y[1],Y[2])};
_.hK=function(Y){Y=[(Y&16711680)>>>16,(Y&65280)>>>8,Y&255,(Y&4278190080)>>>24];var S=_.tG8(Y,function(P){return P==(P&255)});
Y[3]=(Y[3]/255).toFixed(3);if(!S)throw Error("Yf`"+Y.join(","));return"rgba("+Y.join(",")+")"};
_.AOh=function(Y){return[(Y&16711680)>>>16,(Y&65280)>>>8,Y&255]};
_.UVh=function(Y){Y=Y.map(function(S){S/=255;return S<=.03928?S/12.92:Math.pow((S+.05)/1.05,2.4)});
return Y[0]*.2126+Y[1]*.7152+Y[2]*.0722};
vq=function(Y,S){Y=_.AOh(Y);return"rgba("+Y[0]+", "+Y[1]+", "+Y[2]+", "+S+")"};
_.Q19=function(){try{return!!self.localStorage}catch(Y){return!1}};
NC8=function(){if(kVE())_.sf(Error("Zf"));else{var Y=document.createElement("iframe");Y.style.display="none";var S=S===void 0?window.location.href:S;var P=_.pZ(_.X3("PERSIST_IDENTITY_IFRAME_URL"));S=P?P:(new URL(S)).host.indexOf("studio")===0?_.kt(MG$,"persist_identity"):_.kt(yOa,"persist_identity");_.TXh(Y,1,S);Y.id="persist_identity";var u;(u=document.body)==null||u.appendChild(Y)}};
kVE=function(){var Y=Hkh;Y||(Y=document.querySelector("#persist_identity"));return Y};
VGE=function(){var Y=!1;try{Y=!!window.sessionStorage.getItem("session_logininfo")}catch(S){Y=!0}return(_.X3("INNERTUBE_CLIENT_NAME")==="WEB"||_.X3("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&Y};
ew8=function(Y,S){if(!VGE())return!1;S||(S=_.X3("LOGIN_INFO"));return S?(Y.session_logininfo=S,!0):!1};
Yv8=function(Y,S){Y=Y===void 0?!1:Y;if((S===void 0||!S)&&OkK!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Z4("LOG_STICKINESS",!1)){S=_.pM();var P=_.wf(),u={identityStickinessData:{initialState:OkK}};S&&P&&_.yP(S,P,u)}if(S=kVE())if(P=S.src?(new URL(S.src)).origin:"*",Y){var W;(W=S.contentWindow)==null||W.postMessage({action:"clear"},P)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(Y=window.sessionStorage.getItem("session_logininfo"))){var m;(m=S.contentWindow)==null||m.postMessage({loginInfo:Y},P)}};
_.DV=function(Y){Y=Y===void 0?!0:Y;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.lk("LOGIN_INFO",""),Y&&window.sessionStorage.setItem("from_switch_account","1"),Yv8(!0,Y)}catch(S){}};
Sva=function(Y){Y&&(Y.startsWith("https://accounts.google.com/AddSession")?_.DV():Y.startsWith("https://accounts.google.com/ServiceLogin")?_.DV():Y.startsWith("https://myaccount.google.com")&&_.d7(Y).getPath().endsWith("/youtubeoptions")&&_.DV())};
IK=function(Y,S){Sva(Y);if(_.Z4("LOGGED_IN",!0)&&VGE()){var P=Hlh(Y);P==null&&(P={});ew8(P,S)&&_.ef(Y,P)}};
PlJ=function(){function Y(S){for(S=S.target;S&&S.nodeName!=="A";)if(S=S.parentNode,!(S&&S instanceof HTMLElement))return;if(S&&!S.hasAttribute("download")&&S.getAttribute("rel")!=="external"&&S.href)return S.href}
document.addEventListener("mousedown",function(S){S.button!==0&&(S=Y(S))&&IK(S)});
document.addEventListener("click",function(S){(S=Y(S))&&IK(S)})};
zKJ=function(){var Y=new uch;try{if(_.Z4("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(c){Y.increment(5,!1);return}if(_.X3("LOGIN_INFO")){var S=WyX?WyX:window.location;_.X3("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&NC8();var P=Hlh(S.href);P==null&&(P={});var u=P.session_logininfo,W=Number(window.sessionStorage.getItem("stickiness_reload")),m=u===_.X3("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
W>=2||m)W>=2?Y.increment(2,m):m?Y.increment(7,m):window.sessionStorage.getItem("session_logininfo")||(Y.increment(3,m),OkK="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.X3("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.X3("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))Y.increment(4,m),window.sessionStorage.removeItem("stickiness_reload");
else if(W<2){window.sessionStorage.setItem("stickiness_reload",String(W+1));var J=S.href;J=_.O2(J,"sttick");IK(J,window.sessionStorage.getItem("session_logininfo"));J=_.y4(J,{sttick:W});Y.increment(W,m);_.Fm(S,J)}}else Y.increment(6,!1)}else _.DV(!1)}catch(c){}};
_.aK=function(Y,S,P,u,W){S=S===void 0?{}:S;P=P===void 0?"":P;u=u===void 0?window:u;Y=_.NP(Y,S);IK(Y);P=_.Bx(Y+P,W);_.Fm(u.location,P)};
mc1=function(Y){if(Y.urlEndpoint){if(Y=_.MP(Y.urlEndpoint.url),Y.adurl)return SH(Y.adurl)}else if(Y.watchEndpoint)return"//www.youtube.com/watch?v="+Y.watchEndpoint.videoId;return null};
nR8=function(Y){if(!Y||!Y.reportingPings)return null;var S={};Y.reportingPings.forEach(function(P){P.pingType in S?S[P.pingType].push(P.url):S[P.pingType]=[P.url]});
return{adpings:uDa(S)}};
_.w2=function(Y){Y=Y===void 0?!1:Y;var S=_.$o(),P="USER_INTERFACE_THEME_LIGHT";S.getFlag(165)?P="USER_INTERFACE_THEME_DARK":S.getFlag(174)?P="USER_INTERFACE_THEME_LIGHT":_.LV()&&(P="USER_INTERFACE_THEME_DARK");return Y?P:j5U()||P};
_.J8X=function(){return!_.f("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.LV=function(){return _.J8X()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.pV=function(){var Y=_.$o();return _.J8X()&&!Y.getFlag(165)&&!Y.getFlag(174)};
j5U=function(){var Y=Y===void 0?window.location.href:Y;if(_.f("kevlar_disable_theme_param"))return null;var S=_.Cz(Y);if(_.BaU(S))return"USER_INTERFACE_THEME_DARK";try{var P=_.MP(Y).theme;return c8$.get(P)||null}catch(u){}return null};
_.BaU=function(Y){return _.f("enable_dark_theme_only_on_shorts")?!(Y==null||!Y.startsWith("/shorts/")):!1};
_.RK9=function(Y,S,P,u,W){S=S===void 0?!1:S;P=P===void 0?!1:P;var m=_.X3("INNERTUBE_CONTEXT");if(!m)return _.p_(Error("cg")),{};m=(0,_.RY.unsafeClone)(m);_.f("web_no_tracking_params_in_shell_killswitch")||delete m.clickTracking;m.client||(m.client={});var J=m.client;J.clientName==="MWEB"&&J.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(J.clientFormFactor=_.X3("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");J.screenWidthPoints=window.innerWidth;J.screenHeightPoints=window.innerHeight;J.screenPixelDensity=
Math.round(window.devicePixelRatio||1);J.screenDensityFloat=window.devicePixelRatio||1;J.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());J.userInterfaceTheme=_.w2();if(!S){var c=_.Ho$();c&&(J.connectionType=c);_.f("web_log_effective_connection_type")&&(c=eTE())&&(m.client.effectiveConnectionType=c)}var C;if(_.f("web_log_memory_total_kbytes")&&((C=_.Pa.navigator)==null?0:C.deviceMemory)){var x;C=(x=_.Pa.navigator)==null?void 0:x.deviceMemory;m.client.memoryTotalKbytes=""+C*1E6}S&&u&&!_.f("web_it_context_set_original_url_ks")&&
(J.originalUrl=Clf(_.Pa.location.href,u).toString());_.f("web_gcf_hashes_innertube")&&(c=J61())&&(x=c.coldConfigData,C=c.coldHashData,c=c.hotHashData,m.client.configInfo=m.client.configInfo||{},x&&(m.client.configInfo.coldConfigData=x),C&&(m.client.configInfo.coldHashData=C),c&&(m.client.configInfo.hotHashData=c));x=_.MP(_.Pa.location.href);!_.f("web_populate_internal_geo_killswitch")&&x.internalcountrycode&&(J.internalGeo=x.internalcountrycode);!_.f("web_populate_client_screen_killswitch")&&W&&(J.clientScreen=
W);J.clientName==="MWEB"||J.clientName==="WEB"?(J.mainAppWebInfo={graftUrl:u||_.Pa.location.href},_.f("kevlar_woffle")&&_.FQ.instance&&(u=_.FQ.instance,J.mainAppWebInfo.pwaInstallabilityStatus=!u.appInstalledEventFired&&u.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),J.mainAppWebInfo.webDisplayMode=SVf(),J.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):J.clientName==="TVHTML5"&&(!_.f("web_lr_app_quality_killswitch")&&
(u=_.X3("LIVING_ROOM_APP_QUALITY"))&&(J.tvAppInfo=Object.assign(J.tvAppInfo||{},{appQuality:u})),u=_.X3("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(J.tvAppInfo=Object.assign(J.tvAppInfo||{},{certificationScope:u}));!_.f("web_populate_time_zone_itc_killswitch")&&(u=yJ$())&&(J.timeZone=u);(u=xz1())?J.experimentsToken=u:delete J.experimentsToken;J=boE();u=_.qvh();u=(0,_.RY.getValues)(u.tokenJars);m.request=Object.assign({},m.request,{internalExperimentFlags:J,consistencyTokenJars:u});!_.f("web_prequest_context_killswitch")&&
(J=_.X3("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(m.request.externalPrequestContext=J);u=_.$o();J=u.getFlag(58);u=u.get("gsml","");m.user=Object.assign({},m.user);J&&(m.user.enableSafetyMode=J);u&&(m.user.lockedSafetyMode=!0);_.f("warm_op_csn_cleanup")?P&&(S=_.pM())&&(m.clientScreenNonce=S):!S&&(S=_.pM())&&(m.clientScreenNonce=S);Y&&(m.clickTracking={clickTrackingParams:Y});if(Y=_.tA("yt.mdx.remote.remoteClient_"))m.remoteClient=Y;_.sR.getInstance().setLocationOnInnerTubeContext(m);try{var b=vyh(),
T=b.bid;delete b.bid;m.adSignalsInfo={params:[],bid:T};for(var K=_.n(Object.entries(b)),G=K.next();!G.done;G=K.next()){var v=_.n(G.value),a=v.next().value,w=v.next().value;b=a;T=w;Y=void 0;(Y=m.adSignalsInfo.params)==null||Y.push({key:b,value:""+T})}var F,U;if(((F=m.client)==null?void 0:F.clientName)==="TVHTML5"||((U=m.client)==null?void 0:U.clientName)==="TVHTML5_UNPLUGGED"){var V=_.X3("INNERTUBE_CONTEXT");V.adSignalsInfo&&(m.adSignalsInfo.advertisingId=V.adSignalsInfo.advertisingId,m.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",m.adSignalsInfo.limitAdTracking=V.adSignalsInfo.limitAdTracking)}}catch(M){_.p_(M)}return m};
_.d2=function(){return{isShellLoad:_.Z4("IS_SHELL_LOAD",!1)}};
bGh=function(){navigator.serviceWorker.getRegistrations().then(function(Y){Y.forEach(xcJ)})};
xcJ=function(Y){Y&&_.Taa(Ky1,Y.scope)};
_.Taa=function(Y,S){S={scope:S||_.mG("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.S2(Y),S)};
lM=function(Y,S,P,u){if(S&&S.serializedYpcCujLoggingParams){if(P){var W={};W.transactionErrorType=P;u&&(W.errorMessage=u);S.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:W}}}P={};P.ypcCujContext=S;Y=_.jV("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",Y,P);_.JK(_.Bq(),Y,"FLOW_TYPE_YPC_ACQUISITION")}};
_.ER$=function(Y,S,P,u){var W={};W.serializedTransactionFlowLoggingParams=S;P&&(W.errorType=P);u&&(W.errorMessage=u);_.L_(Y,W);_.w6()};
_.f7a=function(Y){Y&&_.ER$("transactionFlowStarted",Y)};
_.gRJ=function(Y){Y&&_.ER$("transactionFlowCancelled",Y)};
_.XQ=function(Y,S,P){S&&_.ER$("transactionFlowFailed",S,Y,P)};
_.ZV=function(){this.megabloxUrl_=null};
_.iM=function(Y){try{var S=$ca==null?void 0:$ca.composedPath(Y)}catch(P){S=Y.composedPath?Y.composedPath():[]}return S&&S.length>0?S:Y.composedPath?Y.composedPath():[]};
_.oK=function(Y){return _.iM(Y)[0]};
_.tK=function(Y){if(!(Y instanceof Element))return null;Y=Y.classList?Array.from(Y.classList):void 0;if(!Y)return null;var S=Y.indexOf("style-scope");return S>-1&&S+1<Y.length?Y[S+1]:null};
AK=function(Y){if(!(Y instanceof HTMLElement))return null;var S=Y&&(Y.$$||Y.polymerController)?Y.tagName.toLowerCase():null;return S?S:_.tK(Y)};
r88=function(Y,S){return Y.replace(/[^a-z]*[^\s]+/g,function(P){return P+".style-scope."+S})};
Gn9=function(Y,S){return S?Y.split(",").map(function(P){return r88(P.trim(),S)}).join(", "):Y};
_.UR=function(Y){var S,P,u,W;return(W=(u=(P=(S=Y.root)!=null?S:Y.shadowRoot)!=null?P:Y.__shady_native_shadowRoot)!=null?u:Y.__shady_shadowRoot)!=null?W:Y};
Qm=function(Y){return Y instanceof ShadowRoot?ShadowRoot:Y instanceof DocumentFragment?DocumentFragment:Y instanceof Document?Document:HTMLElement};
hK1=function(Y){var S,P,u;return(u=(P=(S=Y.parentElement)!=null?S:Y.__shady_native_parentElement)!=null?P:Y.__shady_parentElement)!=null?u:null};
vR9=function(Y){var S,P,u;return(u=(P=(S=Y.parentNode)!=null?S:Y.__shady_native_parentNode)!=null?P:Y.__shady_parentNode)!=null?u:null};
Dcf=function(Y){var S,P,u;return(u=(P=(S=Y.__shady_parentNode)!=null?S:Y.__shady_native_parentNode)!=null?P:Y.parentNode)!=null?u:null};
I7Y=function(Y){var S,P;return(P=(S=vR9(Y))!=null?S:Y.host)!=null?P:null};
a78=function(Y){var S,P,u;return(u=(P=(S=Y.nextSibling)!=null?S:Y.__shady_native_nextSibling)!=null?P:Y.__shady_nextSibling)!=null?u:null};
Lyu=function(Y){var S,P,u;return(u=(P=(S=Y.previousSibling)!=null?S:Y.__shady_native_previousSibling)!=null?P:Y.__shady_previousSibling)!=null?u:null};
wfY=function(Y){var S,P,u;return(u=(P=(S=Y.nextElementSibling)!=null?S:Y.__shady_native_nextElementSibling)!=null?P:Y.__shady_nextElementSibling)!=null?u:null};
pfh=function(Y){var S,P,u;return(u=(P=(S=Y.previousElementSibling)!=null?S:Y.__shady_native_previousElementSibling)!=null?P:Y.__shady_previousElementSibling)!=null?u:null};
FyE=function(Y){var S,P,u;return new Set([].concat(_.cz((S=Y.children)!=null?S:[]),_.cz((P=Y.__shady_native_children)!=null?P:[]),_.cz((u=Y.__shady_children)!=null?u:[])))};
s5K=function(Y){var S,P,u;return new Set([].concat(_.cz((S=Y.childNodes)!=null?S:[]),_.cz((P=Y.__shady_native_childNodes)!=null?P:[]),_.cz((u=Y.__shady_childNodes)!=null?u:[])))};
dc8=function(Y){if(!Y)return null;var S=_.tK(Y);if(!S){var P;return(P=Node.prototype.getRootNode)==null?void 0:P.call(Y)}S=S.toUpperCase();for(Y=hK1(Y);Y&&Y.tagName!==S;)Y=hK1(Y);return Y?_.UR(Y):null};
l71=function(Y){for(;Y&&!(Y instanceof HTMLElement);)Y=I7Y(Y);return Y};
Xf$=function(Y){var S=l71(Y);return Y===S?_.tK(Y):S?AK(S):null};
ZGa=function(Y){return(Y=l71(Y))?AK(Y):null};
iGX=function(Y){if(Y instanceof Comment)return!1;if(Y instanceof Text){var S,P;if(((P=(S=Y.textContent)==null?void 0:S.trim())!=null?P:"")==="")return!1}return!0};
k9=function(Y,S,P){var u=S(Y);for(P=P===void 0?ZGa(Y):P;u&&(Xf$(u)!==P||!iGX(u));)Y=u,u=S(Y);return u};
oR8=function(Y,S,P){if(!S)return null;Y=ZGa(Y);return Xf$(S)===Y&&iGX(S)?S:k9(S,P,Y)};
t4h=function(Y){return k9(Y,Dcf,_.tK(Y))};
A8K=function(Y){return k9(Y,wfY)};
Ucu=function(Y){return k9(Y,a78)};
Q51=function(Y){return k9(Y,pfh)};
kn1=function(Y){return k9(Y,Lyu)};
M4$=function(Y){return oR8(Y,Y.firstChild||Y.__shady_native_firstChild||Y.__shady_firstChild||null,a78)};
y89=function(Y){var S,P,u;var W=(u=(P=(S=Y.firstElementChild)!=null?S:Y.__shady_native_firstElementChild)!=null?P:Y.__shady_firstElementChild)!=null?u:null;return oR8(Y,W,wfY)};
NaJ=function(Y){var S,P,u;var W=(u=(P=(S=Y.lastChild)!=null?S:Y.__shady_native_lastChild)!=null?P:Y.__shady_lastChild)!=null?u:null;return oR8(Y,W,Lyu)};
HG8=function(Y){var S,P,u;var W=(u=(P=(S=Y.lastElementChild)!=null?S:Y.__shady_native_lastElementChild)!=null?P:Y.__shady_lastElementChild)!=null?u:null;return oR8(Y,W,pfh)};
V4U=function(Y){var S=ZGa(Y);return Array.from(s5K(Y)).filter(function(P){return Xf$(P)===S})};
eKh=function(Y){var S=AK(Y);return Array.from(FyE(Y)).filter(function(P){return _.tK(P)===S})};
_.My=function(Y,S,P){if(Y instanceof HTMLElement&&_.tK(Y)===P){var u=Array.from(Y.classList).indexOf("style-scope");if(u===-1)Y.classList.add("style-scope"),Y.classList.add(S);else if(!(u+1>=Y.classList.length)){u=Y.classList[u+1];var W,m;Y==null||(W=Y.classList)==null||(m=W.replace)==null||m.call(W,u,S)}}if(Y instanceof HTMLElement||Y instanceof DocumentFragment)for(W=_.n(FyE(Y)),m=W.next();!m.done;m=W.next())_.My(m.value,S,P);return Y};
ym=function(Y,S){if(Y instanceof HTMLElement&&_.tK(Y)===S){var P=Array.from(Y.classList).indexOf("style-scope");P===-1||P+1>=Y.classList.length||Y.classList.remove("style-scope",Y.classList[P+1])}if(Y instanceof HTMLElement||Y instanceof DocumentFragment){P=_.n(Y.children);for(var u=P.next();!u.done;u=P.next())ym(u.value,S)}return Y};
_.OGa=function(Y,S){return Qm(Y).prototype.appendChild.call(Y,S)};
YOa=function(Y,S){if(Y===S)return!0;Y=s5K(Y);return Array.from(Y).some(function(P){return YOa(P,S)})};
_.I=function(Y,S){if(Y instanceof Ny)return Y;(S==null?0:S.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(Y,"ownerDocument")&&Object.defineProperty(Y,"ownerDocument",{get:function(){return window.document}});
return new Ny(Y)};
Pnf=function(){var Y=Ny.prototype,S=[].concat(_.cz(SOY?[]:["getRootNode"]),["setAttribute","removeAttribute"]);S=_.n(S);for(var P=S.next(),u={};!P.done;u={method$jscomp$49:void 0},P=S.next())u.method$jscomp$49=P.value,Y[u.method$jscomp$49]=function(W){return function(){return this.host[W.method$jscomp$49].apply(this.host,arguments)}}(u)};
WEU=function(){var Y=Ny.prototype,S=[].concat(_.cz(SOY?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.cz(u4J?[]:["querySelector","querySelectorAll"]));S=_.n(S);for(var P=S.next(),u={};!P.done;u={method$jscomp$50:void 0},P=S.next())u.method$jscomp$50=P.value,Y[u.method$jscomp$50]=function(W){return function(){return this.root[W.method$jscomp$50].apply(this.root,arguments)}}(u)};
nxU=function(){var Y=Ny.prototype,S=[].concat(_.cz(z49?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.cz(mHf?[]:["parentNode"]));S=_.n(S);for(var P=S.next(),u={};!P.done;u={prop$jscomp$62:void 0},P=S.next())u.prop$jscomp$62=P.value,Object.defineProperty(Y,u.prop$jscomp$62,{get:function(W){return function(){return this.host[W.prop$jscomp$62]}}(u),
configurable:!0})};
BB8=function(){var Y=Ny.prototype,S=["activeElement"].concat(_.cz(z49?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.cz(jrY?[]:["children"]),_.cz(JdJ?[]:["lastChild"]));S=_.n(S);for(var P=S.next(),u={};!P.done;u={prop$jscomp$63:void 0},P=S.next())u.prop$jscomp$63=P.value,Object.defineProperty(Y,u.prop$jscomp$63,{get:function(W){return function(){return this.root[W.prop$jscomp$63]}}(u),
configurable:!0})};
cda=function(){for(var Y=Ny.prototype,S=_.n(["innerHTML","textContent"]),P=S.next(),u={};!P.done;u={prop$jscomp$64:void 0},P=S.next())u.prop$jscomp$64=P.value,Object.defineProperty(Y,u.prop$jscomp$64,{get:function(W){return function(){return this.root[W.prop$jscomp$64]}}(u),
set:function(W){return function(m){this.root[W.prop$jscomp$64]=m}}(u),
configurable:!0})};
CnU=function(Y){var S=Ny.prototype;Y=_.n(Object.entries(Y));for(var P=Y.next(),u={};!P.done;u={fn$jscomp$358:void 0},P=Y.next()){var W=_.n(P.value);P=W.next().value;W=W.next().value;u.fn$jscomp$358=W;S[P]=function(m){return function(){return m.fn$jscomp$358.apply(null,[this.host.node||this.host].concat(_.cz(arguments)))}}(u)}};
R4U=function(){for(var Y=Ny.prototype,S=_.n(Object.entries(qOU)),P=S.next(),u={};!P.done;u={fn$jscomp$359:void 0},P=S.next()){var W=_.n(P.value);P=W.next().value;W=W.next().value;u.fn$jscomp$359=W;Object.defineProperty(Y,P,{get:function(m){return function(){return m.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.cz(arguments)))}}(u),
configurable:!0})}};
_.Hq=function(Y){return Y instanceof xHh||Y instanceof Document?Y:new xHh(Y)};
b$h=function(){for(var Y=xHh.prototype,S=_.n("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),P=S.next(),u={};!P.done;u={method$jscomp$51:void 0},P=S.next())u.method$jscomp$51=P.value,Y[u.method$jscomp$51]=function(W){return function(){return HTMLElement.prototype[W.method$jscomp$51].call.apply(HTMLElement.prototype[W.method$jscomp$51],[this.node].concat(_.cz(arguments)))}}(u)};
TBa=function(){for(var Y=xHh.prototype,S=_.n("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),P=S.next(),u={};!P.done;u={prop$jscomp$65:void 0},P=S.next())u.prop$jscomp$65=P.value,Object.defineProperty(Y,u.prop$jscomp$65,{get:function(W){return function(){var m;return(m=this.node["__shady_native_"+W.prop$jscomp$65])!=null?m:this.node[W.prop$jscomp$65]}}(u),
configurable:!0})};
_.Vm=function(Y,S,P){P===void 0&&(P=!Y.classList.contains(S));P?Y.classList.add(S):Y.classList.remove(S)};
_.eV=function(Y,S,P){P===void 0&&(P=!Y.hasAttribute(S));if(S==="class")throw Error("gg");P?_.Hq(Y).setAttribute(S,""):_.Hq(Y).removeAttribute(S)};
KEE=function(Y){return(Y.localName!=="slot"?[]:(0,_.OR)(Y).assignedNodes({flatten:!0})).filter(function(S){return S.nodeType===Node.ELEMENT_NODE})};
_.Exu=function(Y){return(Y=_.I(Y).querySelector("slot"))&&Y.localName==="slot"?KEE(Y):[]};
_.PZ=function(Y,S){window.ShadyCSS&&window.ShadyCSS.styleSubtree(Y,S)};
fFU=function(Y,S){var P=S.bind(Y);return function(u){P(u,u.detail)}};
_.up=function(Y,S){var P=gx8.get(Y);P||(P=new WeakMap,gx8.set(Y,P));if(P.has(S))return P.get(S);if(_.f("web_fi_listen_disable_bound_fn_helper")){var u=S.bind(Y);Y=function(W){u(W,W==null?void 0:W.detail)}}else Y=fFU(Y,S);
P.set(S,Y);return Y};
GXK=function(Y,S){$H8(Y);Y.created[rd1].push(S)};
$H8=function(Y){if(!Y.created||!Y.created[rd1]){var S=Y.created,P=S?[S]:[];Y.created=function(){for(var u=_.n(P),W=u.next();!W.done;W=u.next())W.value.apply(this)};
Y.created[rd1]=P}};
h4X=function(Y){return function(){var S=_.Ch.apply(0,arguments);return function(P,u,W){Y.apply(null,_.cz(S))(P,u,W)}}};
vxa=function(){return function(){var Y=_.Ch.apply(0,arguments);return function(S,P,u){q$Y.apply(null,_.cz(Y))(S,P,u)}}};
_.p=function(Y){return vxa()(Y)};
_.d=function(){return h4X(Tx8).apply(null,_.cz(_.Ch.apply(0,arguments)))};
_.WZ=function(Y){return _.f("pbcm_fi_listen_decorators")?DH8(Y):h4X(x29)(Y)};
DH8=function(Y){return function(S,P){GXK(S,function(){var u=this[P],W=_.f("web_fi_listen_disable_bound_fn_helper")?function(m){u(m,m.detail)}.bind(this):fFU(this,u);
IF9.has(Y)?IW(this.hostElement,Y,W):this.hostElement.addEventListener(Y,W)})}};
_.zY=function(){return h4X(ba$).apply(null,_.cz(_.Ch.apply(0,arguments)))};
_.X=function(Y){Y=Y===void 0?{}:Y;return h4X(RNJ)(Y)};
_.mm=function(Y){if(Y.hostElement&&Y!==Y.hostElement){var S=_.G5(Y.hostElement);S=Y.renderIdom?S:S.shadowRoot}S||(Y=Y.root,S=Y instanceof Node?_.G5(Y):null);return S};
_.nc=function(Y){return aFJ?LE1(Y):function(S,P){Object.defineProperty(S,P,{get:function(){var u;return(u=_.mm(this))==null?void 0:u.querySelector(Y)},
enumerable:!0,configurable:!0})}};
LE1=function(Y){return function(S,P){Object.defineProperty(S,P,{get:function(){var u,W=(u=_.I(this.hostElement))==null?void 0:u.querySelector(Y);if(W)return W;var m;u=(m=this.is)!=null?m:"yt-undefined-target";wb$!=null||(wb$=Date.now());(ZC(u)+wb$)%100>_.z_("pbcm_fi_query_decorators_fallback_logging_pct")||(pbh!=null||(pbh=new FEa),srY.has(u)||(srY.add(u),pbh.increment(u)));var J;return(J=_.mm(this))==null?void 0:J.querySelector(Y)},
enumerable:!0,configurable:!0})}};
_.jD=function(Y){return aFJ?dHX(Y):function(S,P){Object.defineProperty(S,P,{get:function(){var u;return(u=_.mm(this))==null?void 0:u.querySelectorAll(Y)},
enumerable:!0,configurable:!0})}};
dHX=function(Y){return function(S,P){Object.defineProperty(S,P,{get:function(){var u,W=(u=_.I(this.hostElement))==null?void 0:u.querySelectorAll(Y);if(W==null?0:W.length)return W;var m;return(m=_.mm(this))==null?void 0:m.querySelectorAll(Y)},
enumerable:!0,configurable:!0})}};
lFX=function(Y){return function(S){if(![_.Nz,_.Z].includes(Object.getPrototypeOf(S.prototype).constructor))throw Error("hg");zNJ(Object.assign({},typeof Y!=="string"?Y:{is:Y,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(S)}};
_.BZ=function(){var Y=Y===void 0?{}:Y;return function(S){if(![He,_.JI].includes(Object.getPrototypeOf(S.prototype).constructor))throw Error("ig");m2U(Object.assign({},Y,{disableInheritanceCheck:!0}))(S)}};
Z$u=function(Y,S){XbE[Y]!=null||(XbE[Y]=new Set);XbE[Y].add(S)};
_.cZ=function(){var Y=_.zY.apply(null,_.cz(_.Ch.apply(0,arguments)));return function(S,P){Z$u(S.is,P);Y(S,P)}};
R_=function(Y,S,P){if(Cc(Y)&&!i$$.has(S)){S=S.replace(/^JSC\$[\d]+_/,"");S=S.replace(/\.\d+(\.|$)/g,function(m,J){return".#"+J});
qh[Y]!=null||(qh[Y]={});var u,W;(u=qh[Y])[W=S]!=null||(u[W]=new Set);qh[Y][S].has(P)||(qh[Y][S].add(P),_.L_("polymerPropertyAccessEvent",{componentName:Y,propertyName:S,accessType:P}))}};
oxE=function(){return _.f("polymer_property_access_logging_debug")||_.f("polymer_enable_property_access_logging")};
Cc=function(Y){if(_.f("polymer_property_access_logging_debug"))return!0;if(!_.f("polymer_enable_property_access_logging"))return!1;tME||(tME=Date.now());return(ZC(Y)+tME)%100<_.z_("polymer_property_access_logging_percent")};
AdK=function(Y,S){return Cc(S)&&Y.hostElement.loggingStatus?new Proxy(Y,{get:function(P,u,W){if(P.hostElement.loggingStatus.bypassProxyController)return P[u];P.hostElement.loggingStatus.isExternalGet=!0;var m=P[u];P.hostElement.loggingStatus.isExternalGet=!1;if(m instanceof Function)return function(){var J=_.Ch.apply(0,arguments);try{return P.hostElement.loggingStatus.currentExternalCall=u,R_(S,u,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),m.apply(this===W?P:this,J)}finally{P.hostElement.loggingStatus.currentExternalCall=
void 0}};
R_(S,u,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return m},
set:function(P,u,W){if(P.hostElement.loggingStatus.bypassProxyController)return P[u]=W,!0;P.hostElement.loggingStatus.isRendererStamper?R_(S,u,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):P.hostElement.loggingStatus.isDeclarativeExternal||R_(S,u,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{P.hostElement.loggingStatus.currentExternalSet=u,P[u]=W}finally{P.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):Y};
UHh=function(Y,S){Y&&Y.loggingStatus&&!Y.loggingStatus.isDeclarativeExternal&&!Y.loggingStatus.isExternalGet&&Y.loggingStatus.currentExternalSet!==S&&R_(Y.tagName.toLowerCase(),S,"PROPERTY_ACCESS_GET_INTERNAL")};
xB=function(Y,S,P){Y&&(P||Y.loggingStatus&&!Y.loggingStatus.isInitializing&&!Y.loggingStatus.isDefiningPropertyAccessor&&Y.loggingStatus.currentExternalSet!==S)&&R_(Y.tagName.toLowerCase(),S,"PROPERTY_ACCESS_SET_INTERNAL")};
QrE=function(){return{_definePropertyAccessor:function(Y,S){var P=this,u=P.hostElement.loggingStatus;u&&(u.isDefiningPropertyAccessor=!0);var W=P[Y];W!==void 0&&(P.__data?P._setPendingProperty(Y,W):(P.__dataProto!=null||(P.__dataProto={}),P.__dataProto[Y]=W));u&&(u.isDefiningPropertyAccessor=!1);Object.defineProperty(this,Y,{get:function(){UHh(P.hostElement,Y);return this.__data[Y]},
set:function(m){S||this._setPendingProperty(Y,m,!0)&&this._invalidateProperties()}})},
created:function(){var Y=this._setPendingProperty.bind(this);this._setPendingProperty=function(S,P,u){xB(this.hostElement,S);return Y.apply(this,[S,P,u])}}}};
kXa=function(Y){oxE()&&_.p(bp.prototype)(Y.prototype,"__templateBindingLoggingBehavior")};
MM1=function(Y,S){if(S.resolvedFactories.length!==Y.resolvedFactories.length)return!0;S=_.n(S.resolvedFactories.entries());for(var P=S.next();!P.done;P=S.next()){var u=_.n(P.value);P=u.next().value;u=u.next().value;if(u.providerClass){if(u.providerClass!==Y.resolvedFactories[P].providerClass)return!0}else if(u.providerValue){if(u.providerValue!==Y.resolvedFactories[P].providerValue)return!0}else if(u.factory!==Y.resolvedFactories[P].factory)return!0}return!1};
ydJ=function(Y,S){Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())if(P=P.value,P.constructor===Array)ydJ(P,S);else{var u=S;u.has(P)||(P.inject&&u.add(P),P.behaviors&&ydJ(P.behaviors,u))}};
TY=function(Y,S){var P=Y[S];Y[S]=function(){var u=_.Ch.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(P)return P.apply(this,u)}};
e49=function(){_.Kc.Class=function(P,u){P=NBE(P,u);TY(P.prototype,"created");return P};
TY(EX.prototype,"_initializeProperties");TY(_.fc.prototype,"_initializeProperties");if(H$E)TY(VMa,"created");else{var Y=function(){TY(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))Y();else{var S=customElements.define;customElements.define=function(P,u,W){S.call(customElements,P,u,W);P==="tp-yt-iron-list"&&(Y(),customElements.define=S)}}}};
YJJ=function(Y,S){Y.prototype.behaviors=Y.prototype.behaviors||[];Y.prototype.behaviors.unshift(O$U.InjectBehavior);Y.prototype.provide=S};
_.r0=function(Y){return function(S){if(!Y.disableElementRegistration){Y.noInjection||YJJ(S,Y.providers);var P=S.prototype;P.__templateHelpers||q$Y(g0.prototype)(P,"__templateHelpers");P=Y.is;SJa||(SJa=Date.now());(ZC(P)+SJa)%100<_.z_("polymer_log_prop_change_observer_percent")&&q$Y($B.prototype)(S.prototype,"__propertyObserverObserver");S.prototype.behaviors=S.prototype.behaviors||[];S.prototype.behaviors.unshift(_.P79.YtHostElementBehavior);kXa(S);lFX({is:Y.is,notifyObserversOnUndefined:Y.notifyObserversOnUndefined!==
!1,fastInit:Y.fastInit,template:Y.template,disableEnforceFastDefaultValuesCheck:!0})(S)}}};
_.t=function(Y){return _.r0({is:Y.is,template:Y.template,disableElementRegistration:Y.disableElementRegistration,cssBuildOptOut:Y.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
zvY=function(Y,S){if(uaK){Y=new Y;for(var P=_.n(Object.getOwnPropertyNames(Y)),u=P.next();!u.done;u=P.next())u=u.value,S[u]=Y[u];for(P=S;P&&P!==Object.prototype;P=Object.getPrototypeOf(P)){u=_.n(Object.getOwnPropertyNames(P));for(var W=u.next();!W.done;W=u.next())W=W.value,Y.hasOwnProperty(W)||Object.defineProperty(Y,W,WW1(S,W))}}else Y.apply(S)};
WW1=function(Y,S){return{get:function(){var P=Y[S];return P instanceof Function?P.bind(Y):P},
set:function(P){Y[S]=P}}};
nw1=function(Y,S){for(var P=Y._noAccessors,u=_.n(Object.getOwnPropertyNames(Y)),W=u.next();!W.done;W=u.next())if(W=W.value,!mrX.has(W))if(P)S[W]=Y[W];else{var m=Object.getOwnPropertyDescriptor(Y,W);m&&(m.configurable=!0,Object.defineProperty(S,W,m))}};
jT$=function(Y,S,P){return function(u){if(P){var W=P();u.model=W}if(Y[S])Y[S](u,u.detail)}};
GY=function(Y){var S=[];if(typeof Y==="string")Y.length>0&&S.push.apply(S,_.cz(Y.split(".")));else{Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())P=P.value,typeof P==="string"?S.push.apply(S,_.cz(P.split("."))):S.push(P)}return S};
hI=function(Y,S){if(S[S.length-1]!=="*"&&S[S.length-1]!=="splices"){for(var P=0;P<S.length;P++){if(!Y)return;Y=Y[S[P]]}return Y}};
JB8=function(Y,S){if(Y.length>S.length)return!1;for(var P=0;P<Y.length;P++)if(Y[P]!==S[P])return!1;return!0};
cBU=function(Y,S,P){if(S.type==="compute"){var u=S.getter.bind(P);var W=S.args}else u=function(){return P[S.method.methodName].apply(P,_.cz(_.Ch.apply(0,arguments)))},W=S.method.args;
B$a(Y,S.propertyKey,u,W,S.value)};
qJY=function(Y,S){if(S.readOnly){var P=Object.getOwnPropertyDescriptor(Y.model,S.propertyKey);Object.defineProperty(Y.model,S.propertyKey,{get:P.get,set:function(){}});
Y.model[C7h(S.propertyKey)]=P.set}};
Rva=function(Y,S,P){if(P){var u=S.propertyKey,W=S.selector;S=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.cz(S.selectorArgs.map(function(m){return{type:"path",path:m}})));
B$a(Y,u,function(m){var J=_.Ch.apply(1,arguments);return W.apply(null,[P.getState()].concat(_.cz(J)))},S)}};
bCU=function(Y,S,P){var u=_.b6(S.propertyKey)+"-changed";xr8(Y,function(W){var m={value:W.value,queueProperty:!0};W.path.split(".").length>1&&(m.path=W.path);P.dispatchEvent(new CustomEvent(u,{detail:m}))},[{type:"wildcard",
path:S.propertyKey}])};
T$J=function(Y,S,P){xr8(Y,function(){P[S.method.methodName].apply(P,_.cz(_.Ch.apply(0,arguments)))},S.method.args)};
C7h=function(Y){return"_set"+(Y.charAt(0).toUpperCase()+Y.slice(1))};
KWK=function(){var Y,S=LJ(function(P){Y=P},!1);
return[Y,S]};
rB1=function(Y){Y=Y.trim().replace(EwJ,",").replace(fq9,"$1");var S=Y[0];S==="-"&&(S=Y[1]);if(S>="0"&&S<="9")return{type:"literal",value:Number(Y)};if(S==="'"||S==='"')return{type:"literal",value:Y.slice(1,-1)};if(S=Y.match(gwK)){S=S[1];var P=$rh[S];if(P)return{type:P,path:Y.slice(0,-(S.length+1))}}return{type:"path",path:Y}};
Dra=function(Y){var S=Y.match(G$X);if(S)return Y={methodName:S[1],args:hv1},S[2].trim()&&(S=S[2].replace(vwh,"&comma;").split(","),Y.args=S.map(rB1)),Y};
IqX=function(Y,S,P){S=_.b6(S);var u=T4;u&&(P=u(P,S,"attribute",Y));vZ(Y,P,S)};
vZ=function(Y,S,P){S=aqY(S);S===void 0?Y.removeAttribute(P):Y.setAttribute(P,S)};
aqY=function(Y){switch(typeof Y){case "object":if(Y instanceof Date)return Y.toString();if(Y){var S=window.trustedTypes?window.trustedTypes.isHTML(Y)||window.trustedTypes.isScript(Y)||window.trustedTypes.isScriptURL(Y):void 0;if(S)return Y;try{return JSON.stringify(Y)}catch(P){_.sf(Error("Eg`"+Y))}}break;case "boolean":return Y?"":void 0;default:return Y!==null&&Y!==void 0?Y.toString():void 0}};
LWY=function(Y){if(Y===void 0)throw Error("Fg");return Y};
drh=function(Y,S,P,u){var W=w41(u);if(W.length){u=P;var m="property";p4u.test(P)?m="attribute":P[P.length-1]==="$"&&(P=P.slice(0,-1),m="attribute");var J=FWa(W);J&&m==="attribute"&&(P==="class"&&Y.hasAttribute("class")&&(J+=" "+Y.getAttribute(P)),vZ(Y,J,P));m==="attribute"&&u==="disable-upgrade$"&&Y.setAttribute("disable-upgrade","");Y.localName==="input"&&u==="value"&&Y.setAttribute("value","");Y.removeAttribute(u);m==="property"&&(P=_.T5(P));S=LWY(S);sTJ(S,m,P,W);return!0}return P.slice(0,3)===
"on-"?(Y.removeAttribute(P),(m=S).events!=null||(m.events=[]),S.events.push({name:P.slice(3),value:u}),!0):P==="id"?(S.id=u,!0):!1};
w41=function(Y){for(var S=[],P=0,u;(u=lq8.exec(Y))!==null;){u.index>P&&S.push({type:"literal",value:Y.slice(P,u.index)});var W=u[1][0];P=!!u[2];u=u[3].trim();if(W==="{")throw Error("Gg");(W=Dra(u))?S.push({type:"method",negate:P,signature:W}):S.push({type:"path",negate:P,path:u});P=lq8.lastIndex}P&&P<Y.length&&(Y=Y.substring(P))&&S.push({type:"literal",value:Y});return S};
FWa=function(Y){for(var S="",P=0;P<Y.length;P++){var u=Y[P];u.type==="literal"&&(S+=u.value)}return S};
sTJ=function(Y,S,P,u){Y.bindings!=null||(Y.bindings=[]);Y.bindings.push({kind:S,target:P,parts:u})};
tQu=function(Y,S,P){var u=!1;if(Y.localName==="template"){u=P;var W=S.stripWhitespace;W=X4a(Y,W===void 0?!1:W);var m=Y.content.ownerDocument.createDocumentFragment();W.content=m;m.appendChild(Y.content);u&&(u.templateInfo=W);u=!0}else Y.localName==="slot"&&(S.hasInsertionPoint=!0);if(Y.firstChild&&(W=P,Y.localName!=="script"&&Y.localName!=="style")){m=0;for(var J=Y.firstChild;J;){var c=J;if(c.localName==="template"){var C=c.getAttribute("is");if((J=C==="dom-if")||C==="dom-repeat"){c.removeAttribute("is");
C=c.ownerDocument.createElement("ps-"+C);c.parentNode.replaceChild(C,c);C.appendChild(c);var x=Array.from(c.attributes);x=_.n(x);for(var b=x.next();!b.done;b=x.next())b=b.value,J?ZC9.has(b.name)&&vZ(C,b.value,b.name):iC1.has(b.name)?vZ(C,b.value,b.name):owX.has(b.name),c.removeAttribute(b.name);J=C}else J=c}if(J.nodeType===Node.TEXT_NODE){c=void 0;C=Y;for(x=J;((c=x.nextSibling)==null?void 0:c.nodeType)===Node.TEXT_NODE;)b=void 0,(b=x).textContent!=null||(b.textContent=""),x.nextSibling.textContent&&
(x.textContent+=x.nextSibling.textContent),C.removeChild(x.nextSibling);if(S.stripWhitespace&&J.textContent&&!J.textContent.trim()){Y.removeChild(J);J=J.nextSibling;continue}}tQu(J,S,{parentIndex:m,parentInfo:W});J.parentNode&&m++;J=J.nextSibling}}var T;if((T=Y.hasAttributes)==null?0:T.call(Y)){T=P=LWY(P);W=!1;m=Array.from(Y.attributes);m=_.n(m);for(c=m.next();!c.done;c=m.next())c=c.value,W=drh(Y,T,c.name,c.value)||W;u=W||u}Y.nodeType===Node.TEXT_NODE&&(T=w41(Y.textContent),T.length&&(Y.textContent=
FWa(T)||" ",P=LWY(P),sTJ(P,"text","textContent",T),u=!0));P&&u&&(P.infoIndex=S.nodeInfoList.push(P)-1)};
X4a=function(Y,S){S={nodeInfoList:[],stripWhitespace:(S===void 0?!1:S)||Y.hasAttribute("strip-whitespace")};tQu(Y.content,S);return S};
ABJ=function(Y){Object.assign(Y,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
Ur9=function(Y,S){for(;Y;){var P=Y.signals[S];if(P)return P;Y=Y.parentScope}};
k$J=function(Y,S,P,u){S.signalCache!=null||(S.signalCache={});var W=S.signalCache[P];if(!W){var m=P.split("."),J=Ur9(u,m[0]);if((J==null?void 0:J.type)==="signal")W=function(){var K=J.type==="mutable"?J.signal.getWithPath([]):J.getter();return{rootWasDefined:K!==void 0,value:hI(K,m.slice(1))}};
else if((J==null?void 0:J.type)==="mutable"){var c=J.signal,C=J.signal.getPathMutationSignal(m.slice(1));W=function(){var K=pJ(Y.owner,function(){return c.getWithPath([])}),G,v=(G=C())==null?void 0:G.value;
return{rootWasDefined:K!==void 0,value:v}}}else{var x,b;
u=_.f("web_polysi_immutable_root_fix_killswitch")?!((x=Y.options)==null?0:(b=x.immutableProps)==null?0:b.has(m[0])):!QTE(Y,m[0]);if(m.length>1&&u){var T=Y.getPathMutationSignal(m);W=function(){var K=pJ(Y.owner,function(){return Y.getWithPath([m[0]])}),G,v=(G=T())==null?void 0:G.value;
return{rootWasDefined:K!==void 0,value:v}}}else W=function(){var K=Y.getWithPath(m);
return{rootWasDefined:K!==void 0,value:K}}}S.signalCache[P]=W}return W()};
yBX=function(Y,S,P,u,W,m){S=S.parts.map(function(c,C){if(c.type==="literal"){P.partWasDefined!=null||(P.partWasDefined=[]);var x;(x=P.partWasDefined)[C]||(x[C]=c.value!==void 0);return c.value}var b;if(c.type==="method"){var T,K=(T=(b=P.partWasDefined)==null?void 0:b[C])!=null?T:!1;K||(K=c.signature.args.every(function(a){return a.type==="literal"}));
var G=!1,v=!0;b=c.signature.args.map(function(a){if(a.type==="literal")return a.value;if(a.type!=="path")throw Error("Hg`"+a.type);var w=k$J(Y,P,a.path,W);a=w.value;w=w.rootWasDefined;G||(G=w);v&&(v=w);return a});
K||(K=m===1?v:G);P.partWasDefined!=null||(P.partWasDefined={});P.partWasDefined[C]=K;if(!K)return;b=(C=k$J(Y,P,c.signature.methodName,W).value)&&typeof C==="function"?C.apply(u,b):void 0}else T=k$J(Y,P,c.path,W),b=T.value,P.partWasDefined!=null||(P.partWasDefined={}),(K=P.partWasDefined)[C]||(K[C]=b!==void 0||T.rootWasDefined);c.negate&&(b=!b);return b});
if(S.length===1){var J;return((J=P.partWasDefined)==null?0:J[0])?S[0]:MQ9}return S.join("")};
N$9=function(Y){return typeof Y==="object"&&!!Y&&"notifyPath"in Y&&"canNotifyPath"in Y};
HCY=function(Y){return typeof Y==="object"&&!!Y&&"notifyPath"in Y};
VQa=function(Y){return"polymerController"in Y};
ev8=function(Y,S){S=""+GY(S)[0];if(N$9(Y))return Y.canNotifyPath(S);if(VQa(Y)&&N$9(Y.polymerController))return Y.polymerController.canNotifyPath(S);if(HCY(Y)){var P;return!((P=Y.properties)==null||!P[S])}if(VQa(Y)&&HCY(Y.polymerController)){var u;return!((u=Y.polymerController.properties)==null||!u[S])}return!1};
OCh=function(Y,S,P){N$9(Y)||HCY(Y)?Y.notifyPath(S,P):VQa(Y)&&(N$9(Y.polymerController)||HCY(Y.polymerController))&&Y.polymerController.notifyPath(S,P)};
SiE=function(Y,S,P){if(P!==MQ9){Y.kind==="attribute"||Y.target!=="textContent"&&(Y.target!=="value"||S.localName!=="input"&&S.localName!=="textarea")||(P=P===void 0?"":P);var u,W=(u=YiX.Polymer)==null?void 0:u.sanitizeDOMValue;W&&(P=W(P,Y.target,Y.kind,S));if(Y.kind==="attribute"){Y=Y.target;if(Y==="class"||Y==="name"||Y==="slot")S=(0,_.OR)(S);vZ(S,P,Y)}else if(Y=Y.target,P!==S[Y]||typeof P==="object")S.loggingStatus&&(S.loggingStatus.isDeclarativeExternal=!0,R_(S.localName,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
S[Y]=P,S.loggingStatus&&(S.loggingStatus.isDeclarativeExternal=!1)}};
PCY=function(Y,S,P,u,W){var m=S.parts[0];if(S.parts.length!==1||m.type!=="path"||!ev8(P,S.target))return!1;var J=_.n(m.path.split(".")),c=J.next().value,C=o6(J);if(!_.f("web_polysi_immutable_root_fix_killswitch")&&QTE(Y,c))return!1;J=Ur9(W,c);if((J==null?void 0:J.type)==="signal")return!1;u.signalCache!=null||(u.signalCache={});W=u.signalCache[m.path];var x;W=(x=W)==null?void 0:x().value;if((W==null?void 0:W.path)!==void 0){u=GY(W.path);var b=GY(m.path);u=[S.target].concat(_.cz(u.slice(b.length-1)));
OCh(P,u,m.negate?!W.value:W.value);return!0}var T;J?T=J.signal:T=DQ(Y,c);var K=T.getChangeRecordSignal(C),G=!1;W=function(){if(!G){var a=pJ(Y.owner,function(){return T.getWithPath([])});
G||(G=a!==void 0)}return{value:K(),rootWasDefined:G}};
u.signalCache[m.path]=W;u.partWasDefined!=null||(u.partWasDefined={});c=W();(b=u.partWasDefined)[0]||(b[0]=c.rootWasDefined);var v=pJ(Y.owner,function(){return T.getWithPath(C)});
u.partWasDefined[0]&&pJ(Y.owner,function(){return void SiE(S,P,m.negate?!v:v)});
return!0};
uC$=function(Y,S,P,u,W,m,J){if(!PCY(Y,S,P,u,m)){var c=yBX(Y,S,u,W,m,J);pJ(Y.owner,function(){return void SiE(S,P,c)})}};
WL1=function(Y,S,P,u,W,m,J){P=_.n(P);for(var c=P.next(),C={};!c.done;C={infoIndex:void 0},c=P.next()){c=c.value;var x=c.bindings;C.infoIndex=c.infoIndex;c=c.parentInfo;if(x){x=_.n(x);for(var b=x.next(),T={};!b.done;T={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},b=x.next()){T.b$jscomp$254=b.value;if(C.infoIndex===void 0)throw Error("Ig");T.bindingCtx$jscomp$4={};Y.effect(function(K,G){return function(){W&&!W()||uC$(Y,K.b$jscomp$254,S[G.infoIndex],K.bindingCtx$jscomp$4,u,m,J)}}(T,C))}}c&&WL1(Y,
S,[c],u,W,m,J)}};
zdK=function(Y,S){Y=(S.parentInfo?zdK(Y,S.parentInfo):Y).firstChild;for(var P=0;Y;Y=Y.nextSibling)if(S.parentIndex===P++)return Y;throw Error("Jg");};
nT9=function(Y,S,P,u){Y=document.importNode(Y.content,!0);Y.__noInsertionPoint=!(u==null?0:u.hasInsertionPoint);for(var W=Array(S.length),m={},J=0;J<S.length;J++){var c=S[J],C=zdK(Y,c);W[J]=C;c.id&&(m[c.id]=C);if(c.templateInfo){var x=C.parentElement;x&&(x.templateInfo=c.templateInfo,x.parentSignalProxy=P,x.eventListenerHost=u.eventListenerHost,x.stampingEnabled=u.enabledSignal,x.parentScope=u.scope)}x=void 0;if((x=c.events)==null?0:x.length)for(x=0;x<c.events.length;x++){var b=c.events[x];mQ$(u.eventListenerHost,
C,b.name,b.value,u.getModel)}}WL1(P,W,S,u.thisCtx,u.enabledSignal,u.scope,u.methodInvocationRequirement);return{root:Y,nodes:W,nodesById:m}};
JMY=function(Y,S){Y=Y();var P;(P=j31.ShadyCSS)==null||P.prepareTemplate(Y,S);S=X4a(Y);return{template:Y,nodeInfoList:S.nodeInfoList,hasInsertionPoint:S.hasInsertionPoint}};
CCh=function(){BbE=!1;for(var Y=I_.length,S=0;S<Y;S++){var P=I_[S];if(P)try{P()}catch(u){Promise.resolve().then(function(){throw u;})}}I_.splice(0,Y);
cMf+=Y};
biK=function(Y){BbE||(BbE=!0,qia.textContent=(RdJ++).toString());I_.push(Y);return xQ9++};
_.w0=function(Y,S,P){a_++;Y=S?new TbU(a_,Y,S,P):new KLa(a_,Y);Lc.set(a_,Y);return a_};
ETX=function(Y){(Y=Lc.get(Y))&&Y.cancel()};
gTh=function(Y,S){Y=fga.get(Y);return Y?(S=Y.get(S))?S:null:null};
_.pc=function(Y,S,P,u){var W=gTh(Y,S);if(!W){W=new $Qa;var m=fga.get(Y);m||(m=new Map,fga.set(Y,m));m.set(S,W)}Y=P.bind(Y);W.run(Y,u,void 0)};
_.rMf=function(Y,S){var P;(P=gTh(Y,S))==null||P.cancel()};
GwK=function(Y){var S;(S=gTh(Y,"doRender"))==null||S.flush()};
F2=function(Y){var S;return(S=Y.hostElement)!=null?S:Y};
hdf=function(Y){var S=Y.indexOf(".");return S===-1?Y:Y.slice(0,S)};
vTa=function(Y,S,P,u,W,m){m=(W=(u=m?hdf(S):S)?S:null)?Y.get(W):Y.__data[S];W&&m===void 0&&(m=P[S]);_.ms(Y.hostElement,Mja(u)+"-changed",{value:m,queueProperty:!0,path:W!=null?W:void 0},{bubbles:!1,composed:!1})};
DQh=function(Y,S){Y.__isReflecting=!0;IqX(Y.hostElement,S,Y.__data[S]);Y.__isReflecting=!1};
Igf=function(Y){if(Y._onIronRequestResizeNotifications){var S=Y._onIronRequestResizeNotifications.bind(Y);Y._onIronRequestResizeNotifications=function(P){_.oK(P)!==Y.hostElement&&S(P)}}Y._ariaActiveAttributeChanged&&(Y._ariaActiveAttributeChanged=Y._ariaActiveAttributeChanged.bind(Y.hostElement));
Y._activeChanged&&(Y._activeChanged=function(P){Y.toggles?vZ(Y.hostElement,P?"true":"false",Y.ariaActiveAttribute):Y.hostElement.removeAttribute(Y.ariaActiveAttribute);Y._changedButtonState()});
Y._asyncClick&&(Y._asyncClick=function(){_.w0(function(){Y.hostElement.click()},1)});
!Y.keyEventTarget||Y.keyEventTarget instanceof EventTarget||(Y.keyEventTarget=F2(Y.keyEventTarget));Y._disabledChanged&&(Y._disabledChanged=Y._disabledChanged.bind(Y.hostElement));Y._observeItems&&(Y._observeItems=function(P){var u=F2(P);return _.G5(u).observeNodes(function(W){Y._updateItems();Y._updateSelected();_.ms(u,"iron-items-changed",W,{bubbles:!1,cancelable:!1})})});
Y._updateItems&&Y._updateItems===_.sX._updateItems&&(Y._updateItems=function(){var P=_.G5(Y.hostElement).queryDistributedElements(Y.selectable||"*");P=Array.prototype.filter.call(P,Y._bindFilterItem);Y._setItems(P)});
Y._computeKeyboardClass&&(Y._computeKeyboardClass=function(P){_.Vm(Y.hostElement,"keyboard-focus",P)});
Y.ensureRipple&&(Y.ensureRipple=function(P){if(Y.hasRipple&&!Y.hasRipple()){if(!Y._createRipple)return;Y._ripple=Y._createRipple();Y._ripple.noink=Y.noink;var u=Y._rippleContainer||Y.hostElement;u&&_.I(u).appendChild(Y._ripple)}var W;if(P&&((W=Y._ripple)==null?0:W.uiDownAction)){u=_.I(Y._rippleContainer||Y.hostElement);var m;W=(m=P.composedPath())==null?void 0:m[0];u.contains(W)&&Y._ripple.uiDownAction(P)}});
Y._updateMultiselectable&&(Y._updateMultiselectable=function(P){P?Y.hostElement.setAttribute("aria-multiselectable","true"):Y.hostElement.removeAttribute("aria-multiselectable")})};
agY=function(Y,S,P){P=_.n(P);for(var u=P.next();!u.done;u=P.next())zvY(u.value.constructor,Y);zvY(S.constructor,Y)};
wM$=function(Y,S){Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())if(P=P.value,P.type==="signal"){var u=P.propertyKey;if(S.hasOwnProperty(u)&&S[u]!=null&&P.attributeType===Object){a:{u=S[u].constructor;for(var W=_.n(LLY),m=W.next();!m.done;m=W.next())if(m=m.value,u===m){u=m;break a}u=Object}P.attributeType=u}}};
pMa=function(){};
FLK=function(Y){var S;return(S=Y.hostElement)!=null?S:Y};
s38=function(){throw Error("Ng");};
dQa=function(Y,S){Y.constructor.prototype.useSignals=!0;var P=new Y.constructor;agY(P,Y,S.behaviors);wM$(S.reactiveSchemas,P);P={};for(var u=_.n(S.reactiveSchemas),W=u.next();!W.done;W=u.next())W=W.value,W.type==="signal"&&(P[W.propertyKey]=W.attributeType);var m={copyPropertiesToProto:s38,didRegister:!1,typesForSignals:P},J=["disable-upgrade"].concat(_.cz(S.observedAttributes)),c=function(C){d0.call(this,Y,S,m,C)};
_.r(c,d0);_.y6.Object.defineProperties(c,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return J}}});
m.copyPropertiesToProto=function(){for(var C=0;C<S.behaviors.length;C++)nw1(S.behaviors[C],c.prototype);nw1(Y,c.prototype)};
S.legacyOptimizations||m.copyPropertiesToProto();c.prototype.is=Y.is;return c};
lgJ=function(Y,S){if(Object.getPrototypeOf(S.prototype).constructor!==_.Z)throw Error("Og");S.prototype.is=Y.is;return dQa(S.prototype,Y)};
XMu=function(Y){return Y.type==="compute"||Y.type==="computeWithMethod"};
Zia=function(Y){for(var S=Y.reactiveSchemas.filter(XMu),P=new Map,u=new Map,W=new Map,m=_.n(S),J=m.next();!J.done;J=m.next())J=J.value,P.set(J.propertyKey,J),u.set(J.propertyKey,[]),W.set(J.propertyKey,0);m=0;S=_.n(S);for(J=S.next();!J.done;J=S.next()){J=J.value;for(var c=_.n(J.type==="computeWithMethod"?J.method.args:J.args),C=c.next();!C.done;C=c.next())C=C.value,C.type!=="literal"&&(C=C.path.split(".")[0],u.has(C)&&(u.get(C).push(J.propertyKey),W.set(J.propertyKey,W.get(J.propertyKey)+1),m++))}J=
[].concat(_.cz(u.keys())).filter(function(x){return W.get(x)===0});
for(S=[];J.length;)for(c=J.shift(),S.push(P.get(c)),c=_.n(u.get(c)),C=c.next();!C.done;C=c.next())C=C.value,W.set(C,W.get(C)-1),m--,W.get(C)===0&&J.push(C);P=Y.reactiveSchemas.filter(function(x){return!XMu(x)});
Y.reactiveSchemas=[].concat(_.cz(P),_.cz(S))};
iia=function(Y,S){if(S.properties)for(var P=_.n(Object.entries(S.properties)),u=P.next();!u.done;u=P.next()){var W=_.n(u.value);u=W.next().value;W=W.next().value;Y.properties[u]=typeof W==="function"?{type:W}:W}S.observers&&Y.observers.push.apply(Y.observers,_.cz(S.observers));S.disabledPolySiReactions&&Y.disabledPolySiReactions.push.apply(Y.disabledPolySiReactions,_.cz(S.disabledPolySiReactions))};
oTX=function(Y,S){for(var P=S.length-1;P>=0;P--){var u=S[P];Array.isArray(u)?oTX(Y,u):Y.indexOf(u)<0&&Y.unshift(u)}};
t3h=function(Y,S){Y.reactiveSchemas=Y.reactiveSchemas.filter(function(P){return P.type==="observe"&&S.includes(P.method.methodName)||XMu(P)&&S.includes(P.propertyKey)?!1:!0})};
UQU=function(Y,S){var P=S.prototype,u,W,m={is:Y.is,reactiveSchemas:[],observedAttributes:[],behaviors:[O$U.InjectBehavior,g0.prototype],disableElementRegistration:Y.disableElementRegistration,provide:(u=Y.providers)!=null?u:[],reactivityMode:Y.reactivityMode,signalProperties:(W=P.signalProperties)!=null?W:[]};"template"in S?m.templateGetter=function(){return S.template}:Y.getTemplate&&(m.templateGetter=Y.getTemplate);
P.behaviors&&oTX(m.behaviors,P.behaviors);AMa(m,S);return m};
AMa=function(Y,S){for(var P=S.prototype,u={properties:{},observers:[],disabledPolySiReactions:[]},W=_.n(Y.behaviors),m=W.next();!m.done;m=W.next())iia(u,m.value);iia(u,P);if(Y.signalProperties)for(P=_.n(Y.signalProperties),W=P.next();!W.done;W=P.next())delete u.properties[W.value];P=_.n(Object.entries(u.properties));for(W=P.next();!W.done;W=P.next()){m=_.n(W.value);W=m.next().value;m=m.next().value;var J=void 0;if((J=Y.signalProperties)==null||!J.includes(W)){J=void 0;var c=Y,C=m.type;if(!C)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{C=Reflect.getMetadata("design:type",S,W);for(var x=_.n(Q3f),b=x.next();!b.done;b=x.next())if(b=b.value,C===b){C=b;break a}C=Object}else C=String;m.computed||m.selector||(c.reactiveSchemas.push({type:"signal",propertyKey:W,value:m.value,attributeType:C,readOnly:m.readOnly}),c.observedAttributes.push(_.b6(W)));m.reflectToAttribute&&c.reactiveSchemas.push({type:"reflect",propertyKey:W});if(m.computed){C=Dra(m.computed);if(!C)throw Error("Pg");c.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:W,method:C,value:m.value})}m.observer&&c.reactiveSchemas.push({type:"observe",method:{methodName:m.observer,args:[{type:"path",path:W}]}});m.notify&&c.reactiveSchemas.push({type:"notify",propertyKey:W});m.selector&&c.reactiveSchemas.push({type:"redux",propertyKey:W,selector:m.selector,selectorArgs:(J=m.selectorArgs)!=null?J:[]})}}kw9&&Zia(Y);S=_.n(u.observers);for(W=S.next();!W.done;W=S.next())P=Y,W=W.value,(m=Dra(W))?P.reactiveSchemas.push({type:"observe",method:m}):console.log('Warning: unable to parse observe declaration: "'+
W+'"');t3h(Y,u.disabledPolySiReactions)};
M3a=function(Y,S){for(var P=0;P<S.length;P++){var u=S[P],W=void 0;(W=u).showHideApi!=null||(W.showHideApi={});W=void 0;!!Y!==!((W=u.showHideApi)==null||!W.hideTemplateChildren)&&(u.nodeType===Node.TEXT_NODE?Y?(u.showHideApi.polymerTextContent=u.textContent,u.textContent=""):(W=void 0,u.textContent=(W=u.showHideApi.polymerTextContent)!=null?W:null):u instanceof Element&&u.localName==="slot"?Y?(u.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.OR)((0,_.OR)(u).parentNode).replaceChild(u.showHideApi.polymerReplaced,
u)):(W=u.showHideApi.polymerReplaced)&&(0,_.OR)((0,_.OR)(W).parentNode).replaceChild(u,W):u instanceof HTMLElement&&u.style&&(Y?(u.showHideApi.polymerDisplay=u.style.display,u.style.display="none"):u.style.display=u.showHideApi.polymerDisplay));u.showHideApi.hideTemplateChildren=Y;u.showHideChildren&&u.showHideChildren(Y)}};
NbJ=function(){if(!yM$){var Y=document.createElement("style");Y.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(Y);yM$=!0}};
Hi9=function(Y,S){return pJ(Y,function(){for(var P={},u=S,W=new Set;u;){for(var m=_.n(Object.entries(u.signals)),J=m.next();!J.done;J=m.next()){var c=_.n(J.value);J=c.next().value;c=c.next().value;W.has(J)||(W.add(J),P[J]=c.type==="mutable"?c.signal.getWithPath([]):c.getter())}u=u.parentScope}return P})};
lp=function(){return _.f("disable_hidden_dom_if_using_stamper")||_.f("creator_disable_hidden_dom_if_using_stamper")};
V3X=function(){var Y=!1,S=_.n(_.qb(!0,void 0,"UQbJQc")),P=S.next().value,u=S.next().value;return[function(){return Y?!1:P()},
function(){Y=!0;u(!1)}]};
ed$=function(Y,S){var P=_.X2().getState();return S?Y.apply(null,[P].concat(_.cz(S))):Y(P)};
Sk8=function(){if(Oia)return Oia;var Y=_.n(_.qb(0,void 0,"Nl6eIe")),S=Y.next().value;Y.next();var P=Y.next().value;_.X2().subscribe(function(){Yk$(P)});
return Oia=S};
Yk$=function(Y){_.f("delay_redux_signal_update_killswitch")?Y(function(S){return S+1}):PFE||(PFE=!0,Promise.resolve().then(function(){Y(function(S){return S+1});
PFE=!1}))};
_.X2=function(){return uza.getAppStore()};
ZQ=function(Y,S){return uza.getSelectFn()(Y,S)};
_.ip=function(Y){uza.getDispatchFn()(Y)};
WCf=function(Y,S){var P={},u;for(u in Y)P[u]=S(Y[u],u);return P};
_.o_=function(Y,S){return function(){var P;return(P=_.wK(Y))!=null?P:S}};
_.tI=function(Y,S){var P=Object.assign({},Y),u;for(u in S)S.hasOwnProperty(u)&&(P[u]=_.o_(Y[u],S[u]));return P};
zWf=function(Y,S,P){Y instanceof Element&&(P.debugName||(P.debugName="<"+Y.tagName.toLowerCase()+(Y.tagName.includes("-")?">":"."+Y.className+">")),_.f("ytwiz_enable_debug_component_props")&&(Y.debugProps||(Y.debugProps=WCf(S,function(u){return function(){return u()}}))))};
_.AI=function(Y,S){var P=function(u){var W={stack:[],error:void 0,hasError:!1};try{var m=mSU={};var J=nlf(W,hu9("component()")),c;if(((c=P)==null?0:c.idomCompat)&&u.renderedFromIdom){J==null||J.attr("idomCompat",!0);var C,x=typeof P.idomCompat==="object"?(C=P)==null?void 0:C.idomCompat.callbacks:{},b=_.n(jou(u,x,P.debugName)),T=b.next().value;b.next();var K=b.next().value,G=J29(Y,T);m.privateValue=G;mSU=void 0;zWf(G,T,P);J==null||J.attr("debugName",P.debugName);var v=lRh(G),a=Array.isArray(v)?v[0]:
v;a[BR]||(a[BR]={});a[BR].updateSignalsFromIdomProps=K;return G}var w=WCf(u,B5$);var F=J29(Y,w);m.privateValue=F;mSU=void 0;zWf(F,w,P);J==null||J.attr("debugName",P.debugName);return F}catch(U){W.error=U,W.hasError=!0}finally{c2K(W)}};
P.debugName=S===void 0?"":S;return P};
J29=function(Y,S){Y=Y(S);return xZ(Y)};
CFa=function(Y,S){Y[S]||(Y=new _.$2("IDOM interop setter undefined. Key:",S),_.p_(Y))};
B5$=function(Y,S){return S==="children"||typeof Y==="function"||Y===void 0?Y:function(){return _.wK(Y)}};
jou=function(Y,S,P){var u={},W={},m={},J={},c;for(c in Y){J={key$jscomp$886:J.key$jscomp$886};J.key$jscomp$886=c;var C=Y[J.key$jscomp$886];if(J.key$jscomp$886==="children")u[J.key$jscomp$886]=C;else if(typeof C==="function")J.key$jscomp$886 in S||C.length>0?(m[J.key$jscomp$886]=C,u[J.key$jscomp$886]=function(b){return function(){return m[b.key$jscomp$886].apply(m,_.cz(_.Ch.apply(0,arguments)))}}(J)):u[J.key$jscomp$886]=C;
else if(!(Y[J.key$jscomp$886]===void 0&&J.key$jscomp$886 in S)){var x=_.n(_.qb(Y[J.key$jscomp$886],{debugName:"__cwis:"+P+":"+J.key$jscomp$886},"lEtjrb"));C=x.next().value;x=x.next().value;u[J.key$jscomp$886]=C;W[J.key$jscomp$886]=x}}return[u,W,function(b){var T={},K;for(K in b)T={key$jscomp$887:T.key$jscomp$887,val$jscomp$116:void 0},T.key$jscomp$887=K,T.val$jscomp$116=b[T.key$jscomp$887],T.key$jscomp$887!=="children"&&(typeof T.val$jscomp$116==="function"?T.key$jscomp$887 in S?m[T.key$jscomp$887]=
T.val$jscomp$116:T.val$jscomp$116.length>0&&(m[T.key$jscomp$887]=T.val$jscomp$116,_.sf(new _.$2("Callback detected that was not set in the idomCompat callbacks map. Key:",T.key$jscomp$887))):T.key$jscomp$887 in S&&T.val$jscomp$116===void 0||(CFa(W,T.key$jscomp$887),gK(function(G){return function(){W[G.key$jscomp$887](G.val$jscomp$116)}}(T))))}]};
xSK=function(Y,S,P){var u=S$E(Y.prototype,qk1,Y.prototype.behaviors);u.prototype.is=S;u.prototype.localName=S;P&&RW1(u,P);return function(W){W&&(u.prototype.hostElement=W);var m=new u;m.root=m;m.hostElement=W;return m}};
RW1=function(Y,S){var P;Object.defineProperty(Y.prototype,"_template",{get:function(){P===void 0&&(P=S());return P},
set:function(u){P=u},
configurable:!0,enumerable:!0})};
f2X=function(Y,S,P,u){function W(){if(!G){for(var v=new Set,a=_.n(b),w=a.next();!w.done;w=a.next()){w=w.value;for(var F=_.n(Object.getOwnPropertyNames(w)),U=F.next();!U.done;U=F.next()){U=U.value;var V=void 0,M=(V=Object.getOwnPropertyDescriptor(w,U))==null?void 0:V.value;M&&M instanceof Function&&!UX(U)&&v.add(U)}}a=_.n(Object.entries(Object.getOwnPropertyDescriptors(Y.prototype)));for(w=a.next();!w.done;w=a.next())F=_.n(w.value),w=F.next().value,F=F.next().value,F.value instanceof Function&&!UX(w)&&
v.add(w);G=v}return G}
bmE(Y,S,u==null?void 0:u.providers);P1a(Y.prototype,Y,!0);var m=xSK(Y,S,P),J,c=(J=Y.prototype.properties)!=null?J:{},C,x,b=(x=(C=Y.prototype.behaviors)==null?void 0:C.flat(Infinity))!=null?x:[];P=_.n(b);for(J=P.next();!J.done;J=P.next())c=Object.assign({},J.value.properties,c);var T=[].concat(_.cz(T5X),_.cz(Object.keys(c).map(function(v){return _.b6(v)}))),K=!1,G;
return{ctor:function(v,a){var w=m(v),F,U;v=[].concat(_.cz((F=u==null?void 0:u.allowedProps)!=null?F:[]),_.cz((U=u==null?void 0:u.allowedPropsFromBehaviors)!=null?U:[]));w.allowedProps=v.length>0?v:void 0;F={};U=_.n(T);for(v=U.next();!v.done;v=U.next())v=v.value,F[v]=_.T5(v);w.__dataAttributes=F;var V=w.ready.bind(w);w.ready=function(){a.beforeReady();V();if(Cc(S)&&!K){var M=w.__templateInfo;if(M==null?0:M.hostProps){M=_.n(Object.keys(M.hostProps));for(var zJ=M.next();!zJ.done;zJ=M.next())R_(S,zJ.value,
"PROPERTY_ACCESS_GET_INTERNAL")}K=!0}};
w._overrideLegacyUndefined=!0;return w},
props:c,observedAttributes:T,getInitialMethods:W,getPropsToForwardBeforeRegister:function(){for(var v=[],a=new Set,w=_.n(Object.keys(c)),F=w.next();!F.done;F=w.next())F=F.value,v.push([F,c[F].readOnly]),a.add(F);w=W();F=_.n(Object.keys(Object.getOwnPropertyDescriptors(Y.prototype)));for(var U=F.next();!U.done;U=F.next())U=U.value,!KCf(U)||w.has(U)||a.has(U)||(v.push([U,!1]),a.add(U));a=_.n(Elu);for(w=a.next();!w.done;w=a.next())v.push([w.value,!0]);return v},
getPropsToForwardBeforeReady:function(v){for(var a=[],w=_.n(Object.entries(v)),F=w.next();!F.done;F=w.next()){var U=_.n(F.value);F=U.next().value;U=U.next().value;if(KCf(F)&&!(U instanceof Function)&&(a.push([F,!1]),Cc(S))){var V=U=void 0;(V=(U=v)._createPropertyAccessor)==null||V.call(U,F)}}return a},
shouldForwardProp:KCf,shouldLog:Cc}};
bmE=function(Y,S,P){YJJ(Y,P);Y.prototype.behaviors.unshift(glE);if(oxE()){if(Cc(S)){var u;(u=Y.prototype).behaviors!=null||(u.behaviors=[]);Y.prototype.behaviors.unshift(QrE())}kXa(Y)}_.p(g0.prototype)(Y.prototype,"__templateHelpers")};
UX=function(Y){return $Sh.has(Y)||Y.startsWith("__compute__")};
KCf=function(Y){return!UX(Y)&&!Y.startsWith("_")&&!Y.endsWith("_")};
DSU=function(Y,S){function P(){var K=C();K=_.n(K);for(var G=K.next();!G.done;G=K.next()){var v=_.n(G.value);G=v.next().value;v=v.next().value;r2a(T.prototype,G,v)}u=!0}
var u=!1,W=Y.ctor,m=Y.getInitialMethods,J=Y.observedAttributes,c=Y.getPropsToForwardBeforeReady,C=Y.getPropsToForwardBeforeRegister,x=Y.shouldForwardProp,b=Y.shouldLog,T=function(){var K=HTMLElement.call(this)||this;K.didForwardDynamicProps=!1;K.loggingStatus={};u||P();K.inst=W(K,{beforeReady:function(){K.didForwardDynamicProps||(K.forwardDynamicProps(),K.didForwardDynamicProps=!0)}});
K.controllerProxy=AdK(K.inst,S);K.forwardMethods();return K};
_.r(T,HTMLElement);T.prototype.forwardMethods=function(){for(var K=this,G=_.n(this.inst.getExtraMethodsToForward()),v=G.next(),a={};!v.done;a={method$jscomp$61:void 0},v=G.next()){var w=_.n(v.value);v=w.next().value;w=w.next().value;a.method$jscomp$61=w;this[v]=function(F){return function(){return F.method$jscomp$61.call.apply(F.method$jscomp$61,[K.inst].concat(_.cz(_.Ch.apply(0,arguments))))}}(a)}G=_.n(m());
for(a=G.next();!a.done;a=G.next())a=a.value,x(a)&&Gx8(this,a),b(S)&&!UX(a)&&hWJ(this.inst,a)};
T.prototype.forwardDynamicProps=function(){var K=c(this.inst);K=_.n(K);for(var G=K.next();!G.done;G=K.next()){var v=_.n(G.value);G=v.next().value;v=v.next().value;r2a(this,G,v);b(S)&&!UX(G)&&vl1(this.inst,G)}};
T.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
T.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
T.prototype.attributeChangedCallback=function(K,G,v){this.inst.attributeChangedCallbackWrapper(K,G,v)};
_.y6.Object.defineProperties(T.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return S}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.y6.Object.defineProperties(T,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return J}}});
customElements.define(S,T)};
r2a=function(Y,S,P){Y.hasOwnProperty(S)||Object.defineProperty(Y,S,{get:function(){var u,W=((u=Y.is)!=null?u:Y.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||R_(W,S,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,u=this.polymerController[S],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,u},
set:function(u){if(!P){var W,m=((W=Y.is)!=null?W:Y.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||R_(m,S,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=S,this.loggingStatus.bypassProxyController=!0,this.polymerController[S]!==u&&(W={},this.polymerController.setProperties((W[S]=u,W)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Gx8=function(Y,S,P){var u=Y.polymerController;Y[S]=function(){var W=_.Ch.apply(0,arguments);Y.loggingStatus.currentExternalCall=S;Y.loggingStatus.bypassProxyController=!0;var m,J=((m=Y.is)!=null?m:Y.tagName).toLowerCase();R_(J,S,"PROPERTY_ACCESS_CALL_EXTERNAL");var c;m=(c=P!=null?P:u[S])==null?void 0:c.call.apply(c,[u].concat(_.cz(W)));Y.loggingStatus.currentExternalCall=void 0;Y.loggingStatus.bypassProxyController=!1;return m}};
hWJ=function(Y,S){var P=Y.hostElement,u=Y[S];Y[S]=function(){var W=_.Ch.apply(0,arguments);if(P.loggingStatus.currentExternalCall!==S){var m,J=((m=P.is)!=null?m:P.tagName).toLowerCase();R_(J,S,"PROPERTY_ACCESS_CALL_INTERNAL")}return u==null?void 0:u.apply(Y,W)}};
vl1=function(Y,S){var P=Object.getOwnPropertyDescriptor(Y,S);P&&!P.get&&Object.defineProperty(Y,S,{get:function(){UHh(Y.hostElement,S);return P.value},
set:function(u){xB(Y.hostElement,S);P.value=u}})};
I2a=function(Y){return _.f("poly_si_dom_repeat_detached_fix_killswitch")||Y.tagName!=="PS-DOM-REPEAT"?Y.tagName==="DOM-REPEAT":!0};
LC9=function(Y,S){var P=a2Y(Y);Y instanceof Element&&P.unshift(Y);Y=_.n(P.filter(I2a));for(var u=Y.next();!u.done;u=Y.next()){u=_.n(u.value.__instances);for(var W=u.next();!W.done;W=u.next())if(W=W.value,W.root){W=Array.from(W.root.children);W=_.n(W);for(var m=W.next();!m.done;m=W.next())P.push.apply(P,_.cz(LC9(m.value,S)))}}return P.filter(function(J){return J.usePatchedLifecycles&&J.lifecycleIsConnected===S})};
a2Y=function(Y){var S=null;Y instanceof Element?S=Element.prototype.querySelectorAll:Y instanceof DocumentFragment&&(S=DocumentFragment.prototype.querySelectorAll);return S?Array.from(S.call(Y,"*")):[]};
Qs=function(Y){CJ(function(){for(var S=_.n(LC9(Y,!1)),P=S.next();!P.done;P=S.next()){P=P.value;P.lifecycleIsConnected=!0;try{var u=void 0,W=void 0,m=void 0,J=void 0;(u=(J=P.polymerController)!=null?J:P)==null||(m=(W=u).connectedCallback)==null||m.call(W)}catch(c){_.p_(c)}}})};
kB=function(Y){CJ(function(){for(var S=_.n(LC9(Y,!0)),P=S.next();!P.done;P=S.next()){P=P.value;P.lifecycleIsConnected=!1;try{var u=void 0,W=void 0,m=void 0,J=void 0;(u=(J=P.polymerController)!=null?J:P)==null||(m=(W=u).disconnectedCallback)==null||m.call(W)}catch(c){_.p_(c)}}})};
XSE=function(){if(!wSK){wSK=!0;var Y=[Node];Mh&&Y.push(Mh.Wrapper);var S=Node.prototype.insertBefore,P=Node.prototype.removeChild;Y=_.n(Y);for(var u=Y.next(),W={};!u.done;W={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},u=Y.next())u=u.value,W.nativeInsertBefore=u.prototype.insertBefore,u.prototype.insertBefore=function(J){return function(c,C){if(c instanceof DocumentFragment){var x=Array.from(c.children);c=J.nativeInsertBefore.call(this,c,C);
if(this.isConnected&&J.nativeInsertBefore===S)for(C=_.n(x),x=C.next();!x.done;x=C.next())Qs(x.value);return c}x=c instanceof Element&&c.isConnected;C=J.nativeInsertBefore.call(this,c,C);x&&kB(c);this.isConnected&&Qs(c);return C}}(W),W.nativeAppendChild=u.prototype.appendChild,u.prototype.appendChild=function(J){return function(c){if(c instanceof DocumentFragment){var C=Array.from(c.children);
c=J.nativeAppendChild.call(this,c);if(this.isConnected){C=_.n(C);for(var x=C.next();!x.done;x=C.next())Qs(x.value)}return c}C=c instanceof Element&&c.isConnected;x=J.nativeAppendChild.call(this,c);C&&kB(c);this.isConnected&&Qs(c);return x}}(W),W.nativeRemoveChild=u.prototype.removeChild,u.prototype.removeChild=function(J){return function(c){var C=c instanceof Element&&c.isConnected,x=J.nativeRemoveChild.call(this,c);
C&&P===J.nativeRemoveChild&&kB(c);return x}}(W),W.nativeReplaceChild=u.prototype.replaceChild,u.prototype.replaceChild=function(J){return function(c,C){if(c instanceof DocumentFragment){var x=Array.from(c.children);
c=J.nativeReplaceChild.call(this,c,C);if(this.isConnected)for(kB(C),C=_.n(x),x=C.next();!x.done;x=C.next())Qs(x.value);return c}x=c instanceof Element&&c.isConnected;var b=this.isConnected,T=J.nativeReplaceChild.call(this,c,C);b&&kB(C);x&&kB(c);b&&Qs(c);return T}}(W);
Y=[Element];Mh&&Y.push(Mh.Wrapper);Y=_.n(Y);u=Y.next();for(W={};!u.done;W={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},u=Y.next())u=u.value,u.prototype.before=pS$(u.prototype.before),u.prototype.after=pS$(u.prototype.after),W.nativeReplaceWith=u.prototype.replaceWith,u.prototype.replaceWith=function(J){return function(){var c=_.Ch.apply(0,arguments),C=_.n(FCU(c)),x=C.next().value,
b=C.next().value;C=this.isConnected;J.nativeReplaceWith.apply(this,c);c=_.n(b);for(b=c.next();!b.done;b=c.next())kB(b.value);if(C)for(kB(this),x=_.n(x),C=x.next();!C.done;C=x.next())C=C.value,C instanceof Element&&Qs(C)}}(W),W.nativeRemove=u.prototype.remove,u.prototype.remove=function(J){return function(){var c=this.isConnected;
J.nativeRemove.call(this);c&&kB(this)}}(W),W.nativeInsertAdjacentElement=u.prototype.insertAdjacentElement,u.prototype.insertAdjacentElement=function(J){return function(c,C){var x=C.isConnected;
c=J.nativeInsertAdjacentElement.call(this,c,C);x&&kB(C);c.isConnected&&Qs(c);return c}}(W),W.nativeSetAttribute=u.prototype.setAttribute,u.prototype.setAttribute=function(J){return function(c,C){var x=soJ(this);
if(!x.usePatchedLifecycles)return J.nativeSetAttribute.call(this,c,C);var b=this.getAttribute(c);J.nativeSetAttribute.call(this,c,C);C=this.getAttribute(c);dS8(x,c,b,C)}}(W),W.nativeRemoveAttribute=u.prototype.removeAttribute,u.prototype.removeAttribute=function(J){return function(c){var C=soJ(this);
if(!C.usePatchedLifecycles)return J.nativeRemoveAttribute.call(this,c);var x=this.getAttribute(c);J.nativeRemoveAttribute.call(this,c);x!==null&&dS8(C,c,x,null)}}(W),W.nativeToggleAttribute=u.prototype.toggleAttribute,u.prototype.toggleAttribute=function(J){return function(c,C){var x=soJ(this);
if(!this.usePatchedLifecycles)return J.nativeToggleAttribute.call(this,c,C);var b=this.getAttribute(c),T=b!==null;C=J.nativeToggleAttribute.call(this,c,C);C!==T&&dS8(x,c,b,C?"":null);return C}}(W);
Y=[Document,DocumentFragment,Element,ShadowRoot];Mh&&Y.push(Mh.Wrapper);Y=_.n(Y);for(W=Y.next();!W.done;W=Y.next())W=W.value,W.prototype.prepend=pS$(W.prototype.prepend),W.prototype.append=pS$(W.prototype.append);(Mh==null?void 0:Mh.noPatch)===!0&&l2X();document.readyState==="complete"?Qs(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Qs(document.body)});
var m=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");m&&m.get&&m.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:m.enumerable,configurable:!0,get:m.get,set:function(J){J||kB(this);m.set.call(this,J);return J}})}};
pS$=function(Y){return function(){var S=_.Ch.apply(0,arguments),P=_.n(FCU(S)),u=P.next().value;P=P.next().value;Y.apply(this,S);S=_.n(P);for(P=S.next();!P.done;P=S.next())kB(P.value);if(this.isConnected)for(u=_.n(u),S=u.next();!S.done;S=u.next())S=S.value,S instanceof Element&&Qs(S)}};
l2X=function(){for(var Y=_.n(ZmE),S=Y.next();!S.done;S=Y.next()){S=S.value.prototype;for(var P=_.n(im1),u=P.next();!u.done;u=P.next()){u=u.value;var W=Object.getOwnPropertyDescriptor(S,u);W&&Object.defineProperty(S,"__shady_native_"+u,W)}}};
dS8=function(Y,S,P,u){var W,m;if((W=Y.polymerController)==null?0:(m=W.observedAttributes)==null?0:m.includes(S))if(Y=Y.polymerController,Y.attributeChangedCallbackWrapper)Y.attributeChangedCallbackWrapper.call(Y,S,P,u);else{var J;(J=Y.attributeChangedCallback)==null||J.call(Y,S,P,u)}};
FCU=function(Y){var S=[],P=[];Y=_.n(Y);for(var u=Y.next();!u.done;u=Y.next())u=u.value,u instanceof Element&&u.isConnected&&P.push(u),u instanceof DocumentFragment?S.push.apply(S,_.cz(Array.from(u.children))):S.push(u);return[S,P]};
soJ=function(Y){return!(Y instanceof Element)&&Y.node instanceof Element?Y.node:Y};
ol9=function(Y,S){var P=S?["children"].concat(_.cz(S)):["children"];S=[];P=_.n(P);for(var u=P.next();!u.done;u=P.next()){var W=u.value;if(Y.hasOwnProperty(W)){u=Y[W];u=typeof u==="function"?u():u;u=xZ(Array.isArray(u)?u:[u]).flat();if(W!=="children"){W=Mja(W);for(var m=_.n(u),J=m.next();!J.done;J=m.next())J=J.value,J instanceof Element&&J.setAttribute("slot",W)}S.push(u)}}S.length===0?Y=[]:(Y=xZ(_.R("div",null,S)),Y=Array.from(Y.childNodes));return Y};
t6h=function(Y,S,P){var u={};_.II(function(){var W={},m;for(m in S)if(S.hasOwnProperty(m)){var J=void 0,c=void 0;if(!(((J=P.slotProps)==null?0:J.includes(m))||m==="children"||((c=P.callbackProps)==null?0:c.includes(m))||m==="ref")&&(J=_.wK(S[m]),u[m]!==J)){u[m]=J;c=void 0;var C=(c=Y.hostElement)!=null?c:Y;if(m==="className"||m==="id")C[m]=J;W[m]=J}}gK(function(){if(Y.setProperties)Y.setProperties(W);else for(var x=_.n(Object.entries(W)),b=x.next();!b.done;b=x.next()){var T=_.n(b.value);b=T.next().value;
T=T.next().value;Y[b]=T}})})};
USE=function(Y,S,P,u){var W=ol9(P,u.slotProps),m=_.f("web_wcw_disable_slot_host_shady_dom_wrap")?Y:(0,_.OR)(Y);W=_.n(W);for(var J=W.next();!J.done;J=W.next())m.appendChild(J.value);t6h(S,P,u);u=_.n(u.callbackProps||[]);W=u.next();for(m={};!W.done;m={kebabEventName:void 0,eventListener:void 0},W=u.next())J=W=W.value,String(W).substring(0,2)==="on"&&P[J]?(m.kebabEventName=Mja(String(W).substring(2)),m.eventListener=P[J],Y.addEventListener(m.kebabEventName,m.eventListener),_.aI(function(b){return function(){Y.removeEventListener(b.kebabEventName,
b.eventListener)}}(m))):S[J]=P[J];
if(P.ref){P=_.n(A21(P.ref));var c=P.next().value,C=P.next().value,x=S.attached.bind(S);S.attached=function(){c(Y);x()};
_.aI(function(){C()})}};
A21=function(Y){if(typeof Y==="function"){var S;return[function(P){S=Y(P)},
function(){var P;(P=S)==null||P()}]}if(!Y.onRender||!Y.onUnmount)throw Error("Tg");
return[Y.onRender,Y.onUnmount]};
y2J=function(Y,S,P,u,W){u=u===void 0?{}:u;var m=Qoh,J=!1;m?(J=!0,Qoh=void 0):(kxE=S,m=document.createElement(S),kxE=void 0);var c=m;c.usePatchedLifecycles=!0;c.lifecycleIsConnected=!1;m.loggingStatus={};var C=M6K(Y,S,m,u,W);_.aI(function(){c.lifecycleIsConnected&&(c.lifecycleIsConnected=!1,C.disconnectedCallback())});
J||USE(m,C,P,u);return m};
M6K=function(Y,S,P,u,W){W=W===void 0?f2X:W;N5h[S]!=null||(N5h[S]=W(Y,S,u==null?void 0:u.getTemplate,u));var m=N5h[S],J=m.ctor;W=m.getInitialMethods;var c=m.getPropsToForwardBeforeReady;Y=m.getPropsToForwardBeforeRegister;u=m.shouldForwardProp;var C=m.observedAttributes,x=m.shouldLog,b=J(P,{beforeReady:function(){var T=b;T._takeAttributes?T._takeAttributes():T.setPropertiesFromInitialAttributeValues&&T.setPropertiesFromInitialAttributeValues();T=_.n(c(P.polymerController));for(var K=T.next();!K.done;K=
T.next()){var G=_.n(K.value);K=G.next().value;G=G.next().value;r2a(P,K,G);x(S)&&!UX(K)&&vl1(P.polymerController,K)}P.polymerController=AdK(b,S)}});
P.polymerController=b;P.polymerController.observedAttributes=C;m=_.n(b.getExtraMethodsToForward());for(J=m.next();!J.done;J=m.next())C=_.n(J.value),J=C.next().value,C=C.next().value,Gx8(P,J,C);W=_.n(W());for(m=W.next();!m.done;m=W.next())m=m.value,u(m)&&Gx8(P,m),x(S)&&!UX(m)&&hWJ(b,m);Y=_.n(Y());for(u=Y.next();!u.done;u=Y.next())W=_.n(u.value),u=W.next().value,W=W.next().value,r2a(P,u,W);return b};
V61=function(Y,S){return ys===S?(Y.isInert=!0,ys="",!0):Hm$===S?(Y.isInert=!0,Hm$="",!0):!1};
eW9=function(Y){var S=Nh;Nh=Y;return S};
YKX=function(Y){if(HZ.has(Y))Hm$=Y;else if(Vs.has(Y)&&Nh&&OmY(Nh)===Y){var S;(S=Nh)._numRenders!=null||(S._numRenders=0);Nh._numRenders++;if(Nh._numRenders>1)throw Error("Ug");return Nh}};
SKh=function(Y){HZ.has(OmY(Y))?Hm$=OmY(Y):Vs.has(OmY(Y))&&Nh!==Y&&(Y._isInert=!0)};
OmY=function(Y){var S;return(S=Y==null?void 0:Y.tagName.toLowerCase())!=null?S:""};
PHX=function(Y,S){if(Y.componentType===G6)throw Error("Vg");Vs.add(S);var P=function(){var u=HTMLElement.call(this)||this;u.is=S;if(kxE===S)return u.isInert=!0,u;u.createElement();return u};
_.r(P,HTMLElement);P.prototype.createElement=function(){if(!this.isInert){Qoh=this;var u=_.n(WRa(function(){return _.R(Y,null)})).next().value;
Qoh=void 0;ABJ(this);return u}};
customElements.define(S,P)};
WOh=function(Y,S,P,u,W){Y.prototype.is=S;(u==null?0:u.useSink)?u6$(Y,S,P,u,W):(P=f2X(Y,S,P,u),DSU(P,S));return Y};
u6$=function(Y,S,P,u,W){XSE();var m=_.AI(function(J){return y2J(Y,S,J,Object.assign({},u,{getTemplate:P}),W)},"a");
PHX(m,S);return m};
mMu=function(Y){return!z0U.has(Y)};
JPh=function(Y,S,P,u){function W(){if(!T){for(var K=new Set(nhK),G=_.n(m.behaviors),v=G.next();!v.done;v=G.next()){v=v.value;for(var a=_.n(Object.getOwnPropertyNames(v)),w=a.next();!w.done;w=a.next()){w=w.value;var F=void 0,U=(F=Object.getOwnPropertyDescriptor(v,w))==null?void 0:F.value;U&&U instanceof Function&&K.add(w)}}G=_.n(Object.entries(Object.getOwnPropertyDescriptors(Y.prototype)));for(v=G.next();!v.done;v=G.next())a=_.n(v.value),v=a.next().value,a=a.next().value,a.value instanceof Function&&
K.add(v);T=K}return T}
var m=UQU({is:S,disableElementRegistration:!1,getTemplate:P,providers:u==null?void 0:u.providers,reactivityMode:u==null?void 0:u.reactivityMode},Y);if((u==null?0:u.allowedProps)||(u==null?0:u.allowedPropsFromBehaviors)){var J,c;m.allowedProps=[].concat(_.cz((J=u.allowedProps)!=null?J:[]),_.cz((c=u.allowedPropsFromBehaviors)!=null?c:[]))}var C=lgJ(m,Y);S=C.observedAttributes;var x={};P=_.n(m.reactiveSchemas);for(u=P.next();!u.done;u=P.next())if(u=u.value,u.type==="signal")x[u.propertyKey]={readOnly:u.readOnly},
u.readOnly&&(x[C7h(u.propertyKey)]={readOnly:!0});else if(u.type==="compute"||u.type==="computeWithMethod"||u.type==="redux")x[u.propertyKey]={readOnly:!0};var b=m.reactiveSchemas.length,T;return{ctor:function(K,G){K=new C(K);K.beforeReady=G.beforeReady;return K},
props:x,observedAttributes:S,getInitialMethods:W,getPropsToForwardBeforeRegister:function(){for(var K=[],G=new Set,v=_.n(jOu),a=v.next();!a.done;a=v.next())a=a.value,K.push([a,a!=="observers"&&a!=="properties"]),G.add(a);v=_.n(Object.keys(x));for(a=v.next();!a.done;a=v.next())a=a.value,K.push([a,x[a].readOnly]),G.add(a);v=W();a=_.n(Object.keys(Object.getOwnPropertyDescriptors(Y.prototype)));for(var w=a.next();!w.done;w=a.next())w=w.value,!mMu(w)||v.has(w)||G.has(w)||(K.push([w,!1]),G.add(w));K.push(["allowedProps",
!0]);return K},
getPropsToForwardBeforeReady:function(K){var G=[];K=_.n(Object.keys(K));for(var v=K.next();!v.done;v=K.next()){v=v.value;var a=W();mMu(v)&&!a.has(v)&&G.push([v,!1])}K=_.n(m.reactiveSchemas.slice(b));for(v=K.next();!v.done;v=K.next())v=v.value,v.type!=="compute"&&v.type!=="computeWithMethod"&&v.type!=="redux"&&v.type!=="signal"||G.push([v.propertyKey,v.type==="signal"?v.readOnly:!0]);return G},
shouldForwardProp:mMu,shouldLog:Cc}};
_.A=function(Y,S,P,u){var W,m,J=(m=(W=u)==null?void 0:W.mode)!=null?m:0;u!=null||(u={});var c;(c=u).reactivityMode!=null||(c.reactivityMode=0);J===1&&_.nz("creator_poly_si_disable_list").includes(S)&&(J=2);return J===1?WOh(Y,S,P,Object.assign({},u,{useSink:!0}),JPh):WOh(Y,S,P,Object.assign({},u,{useSink:J===2}))};
_.eD=function(){return function(Y,S,P,u){var W,m,J=(m=(W=u)==null?void 0:W.mode)!=null?m:2;u!=null||(u={});var c;(c=u).reactivityMode!=null||(c.reactivityMode=0);if(J===0)throw Error("Wg`"+J);return u6$(Y,S,P,u,J===1?JPh:void 0)}};
_.OX=function(Y){return _.f("creator_poly_si_killswitch")?!1:_.f("force_all_poly_si_batches")&&(Y==="poly_si_all_on_test_check"||Y==="creator_poly_si_batch_050"?0:Y)||document.documentElement.hasAttribute("use-signals")?!0:!Y||_.f(Y+"_holdback_enabled")&&_.f("kevlar_polysi_holdback")?!1:_.f(Y)};
YJ=function(Y){return Y?Y.icon?Y.icon.iconType.toLowerCase():Y.customThumbnail?"member":"":""};
B4K=function(Y){if(!Y)return"";Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())if((S=S.value)&&S.liveChatAuthorBadgeRenderer&&(S=YJ(S.liveChatAuthorBadgeRenderer))&&S!=="verified")return S;return""};
cPJ=function(Y,S){if(!Y)return null;var P;return((P=Y.find(function(u){return u&&u.liveChatAuthorBadgeRenderer?YJ(u.liveChatAuthorBadgeRenderer)===S:!1}))==null?void 0:P.liveChatAuthorBadgeRenderer)||null};
_.T4Y=function(Y){var S=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;Y=CHE(Y);S=CHE(S);var P=qK9(Y.hex);S=qK9(S.hex);var u=S[0]/255;var W=S[1]/255,m=S[2]/255,J=Math.max(u,W,m),c=Math.min(u,W,m),C=0,x=0,b=.5*(J+c);J!=c&&(J==u?C=60*(W-m)/(J-c):J==W?C=60*(m-u)/(J-c)+120:J==m&&(C=60*(u-W)/(J-c)+240),x=0<b&&b<=.5?(J-c)/(2*b):(J-c)/(2-2*b));u=[Math.round(C+360)%360,x,b];P=R0U(P,S);for(Y=xMK(Y.hex);P<4.5;){Y=u[2]>=.5?Y.darker((4.5-P)/2):Y.brighter((4.5-P)/2);P=Y.toString();
W=b0a(P);if(!W.length)throw Error("Sd`"+P);P=W;P=R0U(P,S)}return Y.hex()};
R0U=function(Y,S){Y=_.UVh(Y);S=_.UVh(S);return(Math.max(Y,S)+.05)/(Math.min(Y,S)+.05)};
_.SC=function(Y){return"#"+("000000"+(Y&16777215).toString(16)).slice(-6)};
_.KOa=function(Y){for(var S=0,P=0;P<Y.length;P++)S=Y.charCodeAt(P)+((S<<5)-S);Y="#";for(P=0;P<3;P++)Y+=("00"+(S>>P*8&255).toString(16)).slice(-2);return Y};
Ehh=function(Y){Y=(Y||"").split(":");Y.length===1&&Y.unshift("yt-icons");Y[1]=Y[1].toLowerCase();return Y};
h0a=function(Y,S){var P=(S=S===void 0?!1:S)?fk9:gha,u=S?$MJ:rPE;Y.getIconNames().forEach(function(W){W=S?W:W.substring(W.indexOf(":")+1);Y.name==="yt-icons"?GL8.add(W):W.includes("-filled")?P.add(W):u.add(W)})};
PF=function(Y,S,P,u){P=P===void 0?!1:P;u=u===void 0?!1:u;var W,m,J;return _.B(function(c){if(c.nextAddress==1)return _.q(c,vhJ,2);if(u)return c.return(GL8.has(Y));W=P?fk9:gha;m=P?$MJ:rPE;return S?(J=Y.includes("-filled")?Y:Y.concat("-filled"),c.return(W.has(J))):c.return(m.has(Y))})};
_.ak1=function(Y){if(DM1(Y))return Y;var S=Y=Y.toLowerCase();(Y=IkY.get(Y))&&(S=Y);return S};
_.u2=function(Y){if(DM1(Y))return Y.toString();var S=LOK.get(Y);if(S)return S;S=Y.toLowerCase();var P="yt-icons",u=S.replace(/_/g,"-");switch(Y){case "MY_CHANNEL":S="account_circle";break;case "ADD_TO_LIBRARY":S="add";break;case "ALERT_WARN_RED":S="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":S="person_music";break;case "BLOCK_USER":S="block";break;case "CAPTIONS":S="closed_caption";break;case "CLOSED_CAPTION":P="av";S="closed-caption";break;case "COLLECTION":P="maps";S="layers";break;case "CONTACT":P=
"icons";S="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":P="ytcp-icons";S=u.split("creator-studio-")[1];break;case "DISMISSAL":S="close";break;case "DO_NOT_DISTURB":S="block";break;case "DOGFOOD":P="icons";S="pets";break;case "DRAFT":S="paper_corner_folded";break;
case "EMPTY_LIKE":S="like_outline";break;case "EXIT_APP":S="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":S=u;break;case "GAMES":P="ytg";S="my-games";break;case "GO_TO_PAGE":S="arrow-forward";break;case "GROUP":P="social";break;case "HIDE":S="not_interested";break;case "INPUT_COMPONENT":P="icons";S="settings-input-component";break;case "KIDS_BLOCK":S="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":P="ytg";S="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":P=
"ytg";S="membership-post-purchase";break;case "MULTIVIEW":S="screen_multi_view";break;case "MY_LOCATION":P="maps";S=u;break;case "NOTIFICATIONS_INBOX":S="NOTIFICATIONS";break;case "NEXT":S="chevron_right";break;case "OFFLINE":S="power-settings-new";break;case "PAUSE":P="miniplayer";break;case "PAYMENT":P="icons";break;case "PHONE_DOWNLOAD":S="phone_download";break;case "PREMIUM_STANDALONE":P="yt-logos";S="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":P="yt-logos";S="premium_standalone_cairo";
break;case "QUESTION_ANSWER":S="question_answer";break;case "REDEEM":P="icons";S="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":S="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":S="library_add";break;case "SCHOOL":P="yt-sys-icons";S="creator_academy";break;case "SETTINGS_LIGHT":S="settings_applications";break;case "SETTINGS_MATERIAL":S="settings";break;case "SEARCH_HISTORY":S="watch_history";break;case "SHOPPING_BAG":S="bag";break;case "SOCIAL":case "PEOPLE":P=
"yt-icons";S="people";break;case "STAFF_PICK":P="ytg";S="spotlight";break;case "START_DVR":S="add";break;case "STOP_DVR":P="av";S="stop";break;case "TAB_LIKED":S="like";break;case "TAB_INBOX":S="mail";break;case "TERMS_OF_SERVICE":P="icons";S="description";break;case "TRENDING":S="fire";break;case "UNBLOCK_USER":S="remove";break;case "UNPLUGGED_DARK_THEME":P="image";S="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":S="live";break;case "UNPLUGGED_SPORTS":P="ytu";S="visibility-off";break;
case "VIDEOS":P="av";S="play-circle-filled";break;case "YOUTUBE":P="yt-logos";S="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":P="yt-logos-ext";S="yt-logo-red-updated";break;case "YOUTUBE_LOGO":P="yt-logos-ext";S="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":P="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":P="shorts";S=u;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":P="yt-sys-icons";S="youtube_improve_tv";break;case "OUTLINE_BAG":P=
"yt-sys-icons";S="bag";break;case "QUEUE_PLAY_LAST":P="yt-sys-icons";S="list_queue_last";break;case "SLASH_CIRCLE_LEFT":S="slash_circle_left";break;case "SPEED_1_POINT_2X":S="1_point_2x";break;case "SPEED_1_POINT_5X":S="1_point_5x";break;case "SPEED_1_POINT_8X":S="1_point_8x";break;case "SPEED_POINT_2X":S="point_2x";break;case "SPEED_POINT_5X":S="point_5x";break;case "SPEED_POINT_8X":S="point_8x";break;case "SPEED_1X":S="1x";break;case "SPEED_2X":S="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":P="yt-sys-icons";
S="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":P="yt-sys-icons";S="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":P="yt-sys-icons",S="tic_tac_toe"}S=P+":"+S;LOK.set(Y,S);return S};
DM1=function(Y){var S;_.f("kevlar_use_wil_icons")?S=!!_.E().resolve(_.WF).resolveIcon({iconName:Y.toString()}):S=!1;return S};
_.m4=function(Y,S,P,u){P=P===void 0?{}:P;u=u===void 0?!1:u;P===null&&(P={});var W=_.nz("kevlar_command_handler_command_banlist");W=_.n(W);for(var m=W.next();!m.done;m=W.next())if(m=Y?Y.hasOwnProperty(m.value):void 0,m)return!1;W=_.g(Y.commandMetadata,_.Yo);return u&&W!=null&&W.url?!1:!S.disableCommandHandlerOverride&&_.zR.instance?(u=_.zR.instance,P.form||(P.form={element:S}),P.form.element||(P.form.element=S),!P.clickedVisualElement&&S.visualElement&&(P.clickedVisualElement=S.visualElement),u.resolveCommand(Y,
P),!0):!1};
wvE=function(Y,S){Y=ns(Y);for(var P=_.n(Y.visibilityMonitorKeys||[]),u=P.next();!u.done;u=P.next())S.unobserveByKey(u.value);Y.visibilityMonitorKeys=void 0};
dM8=function(Y,S){if(_.pM()){if(_.f("kevlar_vimio_use_shared_monitor"))pvU(Y,S.data);else if(!pvU(Y,S.data))return;var P=S.data,u=FO8(P);if(_.f("enable_client_ve_spec_logging"))wvE(Y,S.observer);else{var W=ns(Y);W.trackedParams&&W.trackedParams!==u&&wvE(Y,S.observer)}W=ns(Y);!P||W.data&&W.data===P||(W.data=P);sOh(Y,S);W.trackedParams=u}};
sOh=function(Y,S){var P=S.observer;if(!P&&_.f("web_skip_missing_vimio_observer")){var u,W;_.sf(new _.$2("VisibilityObserver is not defined.",Y.tagName,Y.trackedParams,(u=S.data)==null?void 0:u.trackingParams,(W=S.data)==null?void 0:W.loggingDirectives))}else{var m=S.layer,J=S.visibilityCallback||function(){},c=S.prescanCallback,C=ns(Y);
u=[];S.showOption&&u.push(P.observe(Y,function(){S.skipLogging&&S.skipLogging()||_.jC().reportShown(C,void 0,m);J(!0)},S.showOption));
S.hideOption&&u.push(P.observe(Y,function(){_.jC().reportHidden(C,void 0,m);J(!1)},S.hideOption));
S.prescanOption&&c&&u.push(P.observe(Y,function(){c()},S.prescanOption));
C.visibilityMonitorKeys=u}};
pvU=function(Y,S){Y=ns(Y);if(Y.visualElement&&!S)return!0;if(!S)return!1;var P=!1;if(_.f("enable_client_ve_spec_logging")){var u,W;P=!!((u=S.loggingDirectives)==null?0:(W=u.clientVeSpec)==null?0:W.uiType)}u=FO8(S);if(!u&&!P)return!1;_.f("mweb_component_visibility_logging")&&(Y.veContainer||(Y.veContainer={}),Y.veContainer.trackingParams=u);if(Y.trackedParams&&Y.trackedParams===u)return!1;var m;if(_.f("enable_client_ve_spec_logging")&&((m=Y.visualElement)==null?0:m.isClientVe())){var J;m=(J=Y.visualElement)==
null?void 0:J.getAsJspb();var c,C,x,b;if(_.kg(m,2)===((c=S.loggingDirectives)==null?void 0:(C=c.clientVeSpec)==null?void 0:C.uiType)&&_.kg(m,3,-1)===((x=S.loggingDirectives)==null?void 0:(b=x.clientVeSpec)==null?void 0:b.elementIndex))return!1}if(_.f("enable_client_ve_spec_logging")){var T,K;!Y.visualElement&&((T=S.loggingDirectives)==null?0:(K=T.clientVeSpec)==null?0:K.uiType)&&(c=S.loggingDirectives.clientVeSpec,S=c.uiType,J=c.elementIndex,c=c.clientYoutubeData,Y.visualElement=_.JL(_.BF(),{veType:S,
elementIndex:J,clientYouTubeData:c}))}return!0};
FO8=function(Y){if(Y==null?0:Y.rendererContext){var S=_.g(Y.rendererContext,_.lkY);if(S==null?0:S.loggingDirectives)return S.loggingDirectives.trackingParams}return(Y==null?0:Y.loggingDirectives)?Y.loggingDirectives.trackingParams:Y==null?void 0:Y.trackingParams};
ns=function(Y){var S;return(S=Y.polymerController)!=null?S:Y};
ohJ=function(Y){_.jC();if(_.oj(cF().JSC$10324_elementShouldLogGesture).bind(cF())(Y,4)){Xvh(Y);var S=Z09(Y);i0J.set(Y,S)}};
Xvh=function(Y){i0J.has(Y)&&(i0J.get(Y).cancel("untrack hover element"),i0J.delete(Y))};
Z09=function(Y){var S,P=[],u=!1,W=new _.qs(function(m,J){Cs(Y,"mouseenter",_.oj(function(){var c,C,x;return _.B(function(b){if(b.nextAddress==1)return S=(0,_.Oh)(),c=t1K(Y),P.push(c),C=APY(Y,function(){u=!0;J(Error("Xg"))}),_.q(b,c,2);
if(b.nextAddress!=3)return C&&qG(C),x=UM9(Y),P.push(x),_.q(b,x,3);m();_.Yt(b)})}))});
W.then(function(){var m=(0,_.Oh)()-S;m=Math.round(m);if(!(500>m||6E5<=m)){var J=Y.getScreenLayer?Y.getScreenLayer():void 0;J=_.pM(J)||"";var c=QOa(_.jC(),Y);_.MT(J,Y.visualElement?Y.visualElement:_.Re(c),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:m}})}ohJ(Y)},function(){xJ&&(xJ(),xJ=null);
u&&(Xvh(Y),ohJ(Y))});
return W};
t1K=function(Y){var S;return(new _.qs(function(P,u){xJ=function(){u(Error("Yg"))};
S=_.wc.debounce(_.oj(function(){qG(W);P()}),1,100);
var W=_.b2(Y,"mousemove",S)})).thenCatch(function(){var P=_.wc.cancelDebouncedJobMap.get(S);
P&&_.wc.cancelJob(P)})};
UM9=function(Y){var S;return(new _.qs(function(P,u){xJ=function(){u(Error("Zg"))};
S=Cs(Y,"mouseleave",_.oj(function(){P()}))})).thenCatch(function(){qG(S)})};
APY=function(Y,S){return Cs(Y,"mouseleave",_.oj(S))};
M1J=function(Y){kLh&&_.TR.cancel(kLh);kLh=_.TR.run(function(){_.ms(Y,"yt-visibility-refresh");kLh=0})};
yPX=function(Y){Y=Number(Y);return"rgba("+[Y>>16&255,Y>>8&255,Y&255,(Y>>24&255)/255].join()+")"};
H0u=function(Y){if(!Y)return!1;if(_.g(Y,_.N4E))return!0;var S;if(Y=(S=_.g(Y,_.qT))==null?void 0:S.commands)for(S=_.n(Y),Y=S.next();!Y.done;Y=S.next())if(_.g(Y.value,_.N4E))return!0;return!1};
V1K=function(Y){var S=!0;S=S===void 0?!0:S;if(!Y.useSignals&&!Y.experimentalPropertiesChanged||_.f("experimental_templating_behavior_nopatch_killswitch")){var P=Y._propertiesChanged;Y._propertiesChanged=function(u,W,m){S?Y.debounceRender():Y.doRender();P&&P.call(Y,u,W,m)}}};
e0h=function(Y,S){if(Y.useSignals||Y.experimentalPropertiesChanged)if(_.f("experimental_templating_behavior_nopatch_killswitch"))Y.experimentalPropertiesChanged=function(){};
else return;var P=new Set,u=[Y].concat(_.cz(Y.behaviors));u=_.n(u);for(var W=u.next();!W.done;W=u.next()){W=W.value;for(var m in W.properties)P.has(m)||(Y._addPropertyEffect(m,"function",S),P.add(m))}};
O0u=function(){var Y=Polymer.Element,S=Y._prepareTemplate;Y._prepareTemplate=function(){S.call(this);var P=this.prototype;if(P.experimentalTemplatingInUse&&P.experimentalTemplatingInUse()&&P.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.p_(Error("$g"));else{P=this.template.content.childNodes;for(var u=P.length-1;u>=0;u--){var W=P[u];W.nodeName!=="STYLE"&&W.nodeName!=="LINK"&&W.nodeName!=="SCRIPT"&&W.nodeName!=="#comment"&&W.remove()}}}};
Yp9=function(Y){var S=!0;S=S===void 0?!0:S;O0u();var P=Y.ready;Y.ready=function(){this._template=null;P.call(this)};
e0h(Y,S?Y.debounceRender:Y.doRender)};
PSY=function(Y,S,P){if(P===null||P===void 0)return P;var u=VHa(Y.tagName.toLowerCase(),S,function(){throw Error("Qb");});
if(u===null)return P;u=SpX[u];var W;if((W=u.isUnwrappable)==null?0:W.call(u,P)){if(u.unwrap)return u.unwrap(P);throw Error("ch");}return u.filterString?u.filterString(Y.tagName,S,String(P)):P};
uq8=function(Y,S,P){var u=S[S.length-1]!=="$",W=PSY(Y,S,P);if(u)if(typeof W==="function"&&S.startsWith("reactiveon")&&S===S.toLowerCase()){var m=MZ;nF$(Y,S.slice(8),function(J){pJ(m,function(){W(J)})})}else Y[S]=W;
else P=W==null?null:String(W),mR1(Y,S.slice(0,-1),P)};
Ks=function(Y){W1u.length===0&&requestAnimationFrame(function(){setTimeout(function(){var S=W1u.slice();W1u.length=0;S=_.n(S);for(var P=S.next();!P.done;P=S.next()){P=P.value;try{P()}catch(u){_.t9(u)}}})});
W1u.push(Y)};
zta=function(Y){if(Y){var S=Y.component;if(S){var P;S==null||(P=S.events)==null||P.publish("DISCONNECTED");var u;S==null||(u=S.onDisconnected)==null||u.call(S)}var W,m;(W=Y.__spec)==null||(m=W.didUnmount)==null||m.call(W);for(S=0;S<Y.childNodes.length;S++)zta(Y.childNodes[S])}};
fs=function(Y,S,P){var u=S&&S.key,W=Mb;W[0]=Y;W[1]=u;W[2]=void 0;for(var m in S)S.hasOwnProperty(m)&&(Y=S[m],u=y1,u.push(m),u.push(Y));S=Mb;a:{if(m=Mb[2])for(Y=0;Y<m.length;Y+=2)if(m[Y]==="nonce"){m=m[Y+1];break a}m=""}m=fRY(S[0],S[1],m);Y=ly(m);u=S[2];if(!Y.staticsApplied&&(Y.staticsApplied=!0,u&&u.length))if((W=Y._attrsArr)&&W.length){for(W=0;W<u.length;W+=2)ED[u[W]]=W+1;W=Y._attrsArr||(Y._attrsArr=zl1(0));for(var J=0,c=0;c<W.length;c+=2){var C=W[c],x=W[c+1],b=ED[C];b?u[b]===x&&delete ED[C]:(W[J]=
C,W[J+1]=x,J+=2)}su(W,J);for(var T in ED)CXE(m,T,u[ED[T]],VZ),delete ED[T]}else for(T=0;T<u.length;T+=2)CXE(m,u[T],u[T+1],VZ);DRa(m,Y,VZ);su(S,0);P&&P(Xn);gFf()};
mpX=function(Y){var S=Y.toString().toLowerCase();return function(P,u){fs(S,P,u)}};
_.g8=function(Y,S,P){P===void 0?delete Y[S.name]:Y[S.name]=P};
_.$J=function(Y){var S={androidIncludeFontPadding:!1},P=0,u=[],W=[],m=[];if(Y.simpleText)return S.content=Y.simpleText,S;if(Y.runs===void 0)return S.content="",S;Y=_.n(Y.runs);for(var J=Y.next();!J.done;J=Y.next()){J=J.value;var c=J.text,C=void 0,x=(C=c)==null?void 0:C.length;if(c&&x){u.push(c);if(J.bold||J.italics||J.strikethrough||J.underline||J.textColor!=null&&J.textColor!==0||J.deemphasize){c=W;C=c.push;var b={startIndex:P,length:x};J.bold&&(b.weightLabel="FONT_WEIGHT_MEDIUM");J.italics&&(b.italic=
!0);J.strikethrough&&(b.strikethrough="LINE_STYLE_SINGLE");J.underline&&(b.underline="LINE_STYLE_SINGLE");J.textColor!=null&&J.textColor!==0?document.documentElement.hasAttribute("dark")?b.fontColor=J.darkModeTextColor||J.textColor:b.fontColor=J.textColor:J.deemphasize&&(document.documentElement.hasAttribute("dark")?b.fontColor=parseInt("ff"+nba("#aaa").substring(1),16):b.fontColor=parseInt("ff"+nba("#606060").substring(1),16));C.call(c,b)}J.navigationEndpoint&&(c=m,C=c.push,b={startIndex:P,length:x,
onTap:{innertubeCommand:J.navigationEndpoint}},J.loggingDirectives&&_.g8(b,jPh,J.loggingDirectives),C.call(c,b));P+=x}}S.content=u.join("");S.styleRuns=W.length?W:void 0;S.commandRuns=m.length?m:void 0;return S};
Bs8=function(Y){if(Y==null||!Y.runs)return!0;Y=_.n(Y.runs);for(var S=Y.next();!S.done;S=Y.next())if(S=S.value,S.bracket||S.errorUnderline||S.deemphasize||_.g(S,r8)||_.g(S,JRf))return!1;return!0};
cRJ=function(Y,S){return function(P){var u=S.unit;if(u!==P)throw Error("fh`"+Y+"`"+u+"`"+P);return S}};
GR=function(Y){if(!((Y==null?0:Y.value)&&(Y==null?0:Y.unit)))return"";switch(Y.unit){case "DIMENSION_UNIT_FRACTION":var S="%";break;default:S="px"}Y=Y.value;S==="%"&&(Y*=100);return""+Y+S};
CSX=function(Y){try{return Y()}catch(S){_.sf(S)}};
_.vF=function(Y){var S=_.g(Y,_.hL);if(S)return S;if((S=_.g(Y,qph))&&S.commands)return RtE(S.commands);if((S=_.g(Y,xp9))&&S.commands)return RtE(S.commands);if((Y=_.g(Y,bph))&&Y.identifier&&Y.command&&(Ts8||(Ts8=[]),!Ts8.includes(Y.identifier)))return Ts8.push(Y.identifier),_.g(Y.command,_.hL)};
RtE=function(Y){if(Y.length!==0){var S=[];Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())(P=_.vF(P.value))&&S.push(P);return{commandExecutorCommand:{commands:S}}}};
_.Ie=function(Y){var S=Y.defaultTarget,P=Y.elementConfig,u=Y.elementsCommand,W=Y.skipOnClick,m=Y.forceNewState,J=Y.additionalCommandArgs,c=Y.innertubeCommand||_.vF(u);if(c){Y={};var C=K1K(c);u=C.navigatingCommand;C=C.href;u&&C?(Y.href$=C,EbY(Y,u,C,S),_.f("web_atagconfig_pointerdown")&&f8h(Y,u),m&&(Y["force-new-state$"]=!0)):(Y.role$="button",Y.href$="javascript:void(0);");_.g(c,gbK)&&(Y["aria-haspopup$"]=!0);W||(Y.onclick=function(x){if($pa(x)){var b=Object.assign({},{form:{element:x.target,event:x}},
J);x.preventDefault();_.DZ(c,b)}});
return Object.assign({},P,Y)}};
rRu=function(Y){if(Y.length){if(Y.length===1)return Y[0];var S={};_.g8(S,_.qT,{commands:Y});return S}};
GhU=function(Y){return Y&&Y.href$!=="javascript:void(0);"};
K1K=function(Y){var S,P=((S=_.g(Y,_.qT))==null?void 0:S.commands)||[Y];Y=_.n(P);for(S=Y.next();!S.done;S=Y.next()){S=S.value;var u=void 0,W=void 0;P=(W=_.g((u=S)==null?void 0:u.commandMetadata,_.Yo))==null?void 0:W.url;_.f("web_remove_web_navigation_endpoint_data")||(u=void 0,P=P||((u=_.g(S,htu))==null?void 0:u.url));if(P&&P!=="/service_ajax"){if(u=j2(P,vbu))return Y=_.mp(u),{navigatingCommand:S,href:Y};_.sf(new _.$2("AttributedString URL could not be sanitized",P))}}return{}};
$pa=function(Y){return Y.button!==void 0?Y.button===0&&!(Y.shiftKey||Y.altKey||Y.metaKey||Y.ctrlKey):!(Y.shiftKey||Y.altKey||Y.metaKey||Y.ctrlKey)};
EbY=function(Y,S,P,u){P=!Y2(P);var W,m,J;if((W=_.g(S,_.CV))!=null&&W.nofollow||(m=_.g(S,_.yx))!=null&&m.nofollow||(J=_.g(S,_.tp))!=null&&J.nofollow||P)Y.rel$="nofollow";var c;S=((c=_.g(S,_.tp))==null?void 0:c.target)==="TARGET_NEW_WINDOW"?"_blank":u===void 0?"":u;Y.target$=S};
f8h=function(Y,S){S.clickTrackingParams&&(Y.params={itct:S.clickTrackingParams});Y.onpointerdown=function(P){DpJ(P)};
Y._data=S};
I8X=function(Y){(Y.loggingUrls||[]).forEach(function(S){Qn(S.baseUrl,S.attributionSrcMode)})};
a8Y=function(Y){Y.currentTarget._data&&I8X(Y.currentTarget._data)};
DpJ=function(Y){var S=Y.currentTarget;Y=CSX(function(){return S.href});
var P=S.params;Y&&_.ef(Y,P||{},8,!0)};
L1J=function(Y,S){if(S=_.g(S,_.tp))(S==null?void 0:S.target)==="TARGET_NEW_WINDOW"&&(Y.target="_blank"),S.nofollow&&(Y.rel="nofollow")};
w$J=function(Y){Y=_.g(Y==null?void 0:Y.commandMetadata,_.Yo);return(Y==null?0:Y.url)?Y.url:null};
_.ae=function(Y,S){(Y=_.vF(Y))&&_.DZ(Y,S)};
_.DZ=function(Y,S){qEa(function(P){S?P.resolveCommand(Y,S):P.resolveCommand(Y)})};
dpX=function(Y,S){var P=["yt-core-attributed-string__link"];S!=null&&S.noLinkColor||((S==null?0:S.isOverlay)?P.push("yt-core-attributed-string__link--overlay-call-to-action-color"):P.push("yt-core-attributed-string__link--call-to-action-color"),(S==null?0:S.linkInheritColor)&&P.push("yt-core-attributed-string--link-inherit-color"));P={className:P.join(" "),tabindex$:"0"};var u=Y.onTap||Y.onLongPress;if(!u)return P;var W=p$K(Y);W&&(P["aria-label$"]=W);S=_.Ie({elementsCommand:u,elementConfig:P,skipOnClick:!(S==
null||!S.skipOnClick),forceNewState:!0});Y.onLongPress&&(u=new F19(function(){var m=_.vF(Y.onLongPress);m&&_.E().resolve(_.uY).resolveCommand(m)}),S&&sPY(u,S));
return S||P};
p$K=function(Y){var S,P;return(S=Y.onTapOptions)==null?void 0:(P=S.accessibilityInfo)==null?void 0:P.accessibilityLabel};
l88=function(Y){var S=Y;Y<=16777215&&(S+=parseInt("ff000000",16));return _.hK(S)};
X$Y=function(Y){var S=Y.isDarkTheme;var P=Y.extension;Y=Y.runColor;var u=void 0;if(P=P==null?void 0:P.colorMap){S=S?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";P=_.n(P);for(var W=P.next();!W.done;W=P.next())if(W=W.value,S===W.key){u=W.value;break}}u==null&&Y&&(u=Y);if(u)return l88(u)};
Ls=function(Y){var S=Y.config;var P=Y.image;var u=Y.imageConfig;var W=Y.imageWrapperConfig;var m=Y.run;var J=Y.tag;var c=Y.textLength;var C=Y.startIndex===void 0?0:Y.startIndex;Y=Y.length;C===void 0&&(C=0);m={run:m,startIndex:C,endIndex:Y!==void 0?C+Y:c,tag:J};P&&(m.image=P);u&&(m.imageConfig=u);W&&(m.imageWrapperConfig=W);S&&(m.config=S);return m};
ip1=function(Y,S){var P=[];P.push("yt-core-attributed-string");(S==null?0:S.className)&&P.push(S==null?void 0:S.className);(S==null?0:S.ellipsisTruncate)?P.push("yt-core-attributed-string--ellipsis-truncate"):(S==null?0:S.noWrap)?P.push("yt-core-attributed-string--white-space-no-wrap"):(S==null?0:S.noPreWrap)||P.push("yt-core-attributed-string--white-space-pre-wrap");(S==null?0:S.linkInheritColor)&&P.push("yt-core-attributed-string--link-inherit-color");Y.alignment&&P.push(Zp8(Y.alignment));Y.lineBreakMode&&
P.push("yt-core-attributed-string--word-wrapping");return P.join(" ")};
oba=function(Y){if(Y.weight)return Y.weight;switch(Y.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
tea=function(Y){switch(Y){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
Zp8=function(Y){switch(Y){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
Upa=function(Y,S,P){var u=S;Y.content&&P&&(P=Y.content.indexOf("\n"),P!==-1&&(u=Math.min(S,P)));if(!Y.content||Y.content.length<=u)S=Y;else if(Y.attachmentRuns||Y.commandRuns||Y.decorationRuns||Y.styleRuns||Y.paragraphStyleRuns){S=w8(Y.content,u);P=u;var W=Y.attachmentRuns;if(W){var m=[];W=_.n(W);for(var J=W.next();!J.done;J=W.next())J=Object.assign({},J.value),J.startIndex===void 0||J.startIndex>=P||(J.length||(J.length=0),J.length+J.startIndex>P&&(J.length=P-J.startIndex),m.push(J));P=m}else P=
void 0;m=ARh(u,Y.commandRuns);W=u;var c=Y.decorationRuns;if(c){J=[];c=_.n(c);for(var C=c.next();!C.done;C=c.next()){C=C.value;var x=_.g(C.textDecorator,ps);if(x&&x.startIndex!==void 0&&!(x.startIndex>=W)){C=Object.assign({},C,{textDecorator:{highlightTextDecorator:Object.assign({},x)}});x=_.g(C.textDecorator,ps);if(!x.length||x.length+x.startIndex>W)x.length=W-x.startIndex;J.push(C)}}W=J}else W=void 0;J=ARh(u,Y.styleRuns);if(c=Y.paragraphStyleRuns)for(Y=[],c=_.n(c),C=c.next();!C.done;C=c.next()){var b=
C.value;C=Object.assign({},b);if(!(C.startIndex===void 0||C.startIndex>=u)){if(!C.length||C.length+C.startIndex>u)C.length=u-C.startIndex;x=[];var T=void 0,K=void 0;if((T=b)==null?0:(K=T.listGroup)==null?0:K.listItems)for(b=_.n(b.listGroup.listItems),T=b.next();!T.done;T=b.next())if(T=Object.assign({},T.value),!(T.startIndex===void 0||T.startIndex>=u)){if(!T.length||T.length+T.startIndex>u)T.length=u-T.startIndex;x.push(T)}x.length>0&&(C.listGroup||(C.listGroup={}),C.listGroup=Object.assign({},C.listGroup,
{listItems:x}));Y.push(C)}}else Y=void 0;S={content:S,attachmentRuns:P,commandRuns:m,decorationRuns:W,styleRuns:J,paragraphStyleRuns:Y}}else S=Object.assign({},Y,{content:w8(Y.content,u)});return S};
ARh=function(Y,S){if(S){var P=[];S=_.n(S);for(var u=S.next();!u.done;u=S.next())if(u=Object.assign({},u.value),!(u.startIndex===void 0||u.startIndex>=Y)){if(!u.length||u.length+u.startIndex>Y)u.length=Y-u.startIndex;P.push(u)}return P}};
w8=function(Y,S){var P=S,u;if(u=P>0)u=Y.charCodeAt(P-1),u=u>=55296&&u<=56319;u&&(P=Y.charCodeAt(P),u=P>=56320&&P<=57343);u&&--S;return Y.substring(0,S)};
yRf=function(Y,S,P){P=P===void 0?QP$:P;if(Y){var u=_.E().resolve(Of);u||_.f("mweb_no_observer_killswitch")?dM8(Y,{data:S,observer:u,visibilityCallback:P,hideOption:kh$,showOption:MeK,layer:Y.layer}):_.sf(new _.$2("Warning: monitorVisibility called with null observer",Y.tagName,S==null?void 0:S.loggingDirectives,S==null?void 0:S.trackingParams))}else _.sf(new _.$2("Warning: monitorVisibility called with null element",S==null?void 0:S.loggingDirectives,S==null?void 0:S.trackingParams,S==null?void 0:
S.rendererContext))};
S7X=function(Y,S){var P=[],u=Y.content.length,W,m=(W=_.E().resolve(_.PQ(_.F5)))==null?void 0:W();if(Y.paragraphStyleRuns){W=_.n(Y.paragraphStyleRuns);for(var J=W.next();!J.done;J=W.next()){var c=P.push,C=c.apply;var x=void 0;J=J.value;if((x=J.listGroup)!=null&&x.listItems){x=[];b:switch(J.listGroup.listType){case "LIST_TYPE_BULLET":var b="ul";break b;default:b="span"}x.push(Ls({run:J,textLength:u,tag:b,config:{className:"yt-core-attributed-string__list-group"},startIndex:J.startIndex,length:J.length}));
b=_.n(J.listGroup.listItems);for(var T=b.next();!T.done;T=b.next()){T=T.value;b:switch(J.listGroup.listType){case "LIST_TYPE_BULLET":var K="li";break b;default:K="span"}x.push(Ls({run:J,textLength:u,tag:K,startIndex:T.startIndex,length:T.length}))}J=x}else J=[];C.call(c,P,_.cz(J))}}if(Y.styleRuns&&(S==null||!S.noStyleRuns))for(W=_.n(Y.styleRuns),c=W.next();!c.done;c=W.next()){c=c.value;C=X$Y({extension:_.g(c.styleRunExtensions,NsJ),isDarkTheme:m===void 0?!1:m,runColor:c.fontColor});x=[];C&&x.push("yt-core-attributed-string--link-inherit-color");
c.italic&&x.push("yt-core-attributed-string--italicized");c.underline&&c.strikethrough?x.push("yt-core-attributed-string--underline-strikethrough",tea(c.underline)):c.underline?x.push("yt-core-attributed-string--underlined",tea(c.underline)):c.strikethrough&&x.push("yt-core-attributed-string--strikethrough",tea(c.strikethrough));if(c.baselineOffset){a:switch(c.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":J="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":J=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:J="yt-core-attributed-string--baseline-offset-unknown"}x.push(J)}J=x.join(" ");x=c;b={};if(x.weight||x.weightLabel)b.fontWeight=oba(x).toString();C&&(b.color=C);P.push(Ls({run:c,textLength:u,tag:"span",config:{className:J,style:b},startIndex:c.startIndex,length:c.length}))}if(Y.decorationRuns)for(W=_.n(Y.decorationRuns),c=W.next();!c.done;c=W.next())c=c.value,C={},c.textDecorator&&(b=c.textDecorator,J=m===void 0?!1:m,T=[],x=
_.g(b,ps),b=_.g(b,Hpu),x?(b=T,T=b.concat,K=[],(J=X$Y({extension:_.g(x.highlightTextDecoratorExtensions,Ve9),isDarkTheme:J,runColor:x.backgroundColor}))&&K.push("background-color: "+J+";"),x.backgroundCornerRadius!==void 0&&K.push("border-radius: "+x.backgroundCornerRadius+"px;"),x.leftPadding!==void 0&&K.push("padding-left: "+x.leftPadding+"px;"),x.rightPadding!==void 0&&K.push("padding-right: "+x.rightPadding+"px;"),x.topPadding!==void 0&&K.push("padding-top: "+x.topPadding+"px;"),x.bottomPadding!==
void 0&&K.push("padding-bottom: "+x.bottomPadding+"px;"),T=T.call(b,K)):b&&(x=T,T=x.concat,J=J?"#2ba640":"#107516",J=b.color?l88(b.color):J,J=["padding: 2px;","border-top: solid "+J+" 2px;","border-bottom: solid "+J+" 2px;","background: linear-gradient(135deg, "+J+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+J+" 3px, rgba(0, 0, 0, 0) 3px);"],T=T.call(x,J)),J=T.join(" "),C.style$=J,J=c.textDecorator,x=[],b=_.g(J,Hpu),_.g(J,ps)?x.push("yt-core-attributed-string--highlight-text-decorator"):
b&&x.push("yt-core-attributed-string--bracket-text-decorator"),J=x.join(" "),C.className=J,C.dir="auto"),J=_.g(c.textDecorator,ps),x=_.g(c.textDecorator,Hpu),b=_.g(c.textDecorator,ps),T=_.g(c.textDecorator,Hpu),P.push(Ls({run:c,textLength:u,tag:"span",config:C,startIndex:(J==null?void 0:J.startIndex)||(x==null?void 0:x.startIndex)||0,length:(b==null?void 0:b.length)||(T==null?void 0:T.length)||0}));if(Y.commandRuns&&(S==null||!S.noEndpoints))for(m=_.n(Y.commandRuns),W=m.next();!W.done;W=m.next())W=
W.value,c=dpX(W,S),P.push(Ls({run:W,textLength:u,tag:"a",config:c,startIndex:W.startIndex,length:W.length}));if(Y.attachmentRuns)for(Y=_.n(Y.attachmentRuns),m=Y.next();!m.done;m=Y.next()){m=m.value;C=c=void 0;W={className:"yt-core-attributed-string--inline-block-mod"};if((C=m.element)==null?0:C.properties){C=(c=m.element)==null?void 0:c.properties;c=[];C=_.g(C,etY);if(C==null?0:C.margin)C=C.margin,C.left&&c.push("margin-left: "+GR(C.left)+";"),C.right&&c.push("margin-right: "+GR(C.right)+";"),C.top&&
c.push("margin-top: "+GR(C.top)+";"),C.bottom&&c.push("margin-bottom: "+GR(C.bottom)+";");c=c.length!==0?c.join(" "):void 0;W.style$=c}J=void 0;c={alt:"",preserveHeight:!0,preserveWidth:!0};C=["yt-core-attributed-string__image-element"];if(m.alignment){a:switch(m.alignment){case "ALIGNMENT_BASELINE":x="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":x="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:x=
"yt-core-attributed-string__image-element--image-alignment-bottom"}C.push(x)}if((J=m.element)==null?0:J.properties)J=[],x=_.g(m.element.properties,etY),(x==null?0:x.height)&&J.push("height: "+GR(x.height)+";"),(x==null?0:x.width)&&J.push("width: "+GR(x.width)+";"),J=J.length!==0?J.join(" "):void 0,c.style$=J,x=void 0,J=((x=_.g(m.element.properties,OpU))==null?void 0:x.label)||"",c.alt=J;c.className=C.join(" ");C=void 0;b=x=void 0;J=((b=m.element)==null?0:b.type)?(x=_.g(m.element.type,Y7U))==null?
void 0:x.image:void 0;P.push(Ls({run:m,textLength:u,tag:"img",image:J,imageConfig:c,imageWrapperConfig:W,startIndex:m.startIndex,length:(C=m.length)!=null?C:0}))}if(S==null?0:S.headerRuns)for(S=_.n(S.headerRuns),Y=S.next();!Y.done;Y=S.next())if(Y=Y.value,Y.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(Y.headerMapping)){a:{switch(Y.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":m=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":m="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":m="yt-core-attributed-string--heading-3";break a}m=void 0}P.push(Ls({run:Y,textLength:u,tag:"span",config:m?{className:m}:void 0,startIndex:Y.startIndex,length:Y.length}))}return P};
_.sD=function(Y){return(Y==null?void 0:Y.content)!==void 0};
Pc1=function(Y){return _.sD(Y)?Y:_.$J(Y)};
u78=function(Y){return Y.image!==void 0&&Y.imageConfig!==void 0};
Wqa=function(Y,S){if(S==null?0:S.userInput)for(Y=_.n(Y),S=Y.next();!S.done;S=Y.next())if(S=S.value,S.tag!=="a"&&S.tag!=="li"){var P=void 0;(P=S).config||(P.config={});S.config.dir=S.tag==="ul"?_.E().resolve(_.d8):"auto"}};
zpu=function(Y){return function(S){var P=Y.run;(P.onTap!==void 0||P.onLongPress!==void 0)&&_.g(P,jPh)&&yRf(S,{loggingDirectives:_.g(P,jPh)})}};
mvX=function(Y){return function(S){for(var P in Y)(VZ[P]||VZ[dK["default"]])(S,P,Y[P])}};
BtU=function(Y,S){ni8(S);var P={data:null,start:0,end:Y.length,parts:[]};S=_.n(S);for(var u=S.next();!u.done;u=S.next())u=u.value,j$a(P,u.startIndex,u.endIndex,u);JWU(Y,P);return P};
j$a=function(Y,S,P,u){for(var W=_.n(Y.parts),m=W.next();!m.done;m=W.next()){m=m.value;if(typeof m==="string")throw Error("hh");if(m.start<=S&&P<=m.end){j$a(m,S,P,u);return}}Y.parts.push({data:u,parts:[],start:S,end:P})};
JWU=function(Y,S){for(var P=S.parts.length;P>=0;P--){var u=S.parts[P],W=S.parts[P-1],m=P===S.parts.length?S.end:u.start;W=P===0?S.start:W.end;m!==W&&S.parts.splice(P,0,Y.slice(W,m));u&&JWU(Y,u)}};
ni8=function(Y){Y.sort(function(S,P){if(S.startIndex<P.startIndex)return-1;if(P.startIndex<S.startIndex)return 1;S=S.endIndex-S.startIndex;P=P.endIndex-P.startIndex;return S>P?-1:P>S?1:0})};
_.cWX=function(Y){var S=Y.thumbnails;if(S){Y={sources:[]};S=_.n(S);for(var P=S.next();!P.done;P=S.next()){P=P.value;var u={};u.url=P.url;u.width=P.width;u.height=P.height;Y.sources.push(u)}return Y}};
CcE=function(Y,S,P,u){if(!S)return Y.length>=1?Y[Y.length-1]:null;if(u)for(var W=_.n(Y),m=W.next();!m.done;m=W.next()){m=m.value;var J=void 0,c=(J=m.url)==null?void 0:J.indexOf(u);if(c!==void 0&&c>=0)return m}u=_.n(Y);for(W=u.next();!W.done;W=u.next())if(W=W.value,W.width&&W.height&&(P&&W.width>=S||!P&&W.height>=S))return W;for(S=Y.length-1;S>=0;S--)if(P&&Y[S].width||!P&&Y[S].height)return Y[S];return Y[0]};
_.q7J=function(Y){var S;return(Y=(S=Y.sources)==null?void 0:S[0])?Y.width/Y.height:0};
RpK=function(Y){if(Y.sources){Y=_.n(Y.sources);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;var P=void 0;if((P=S.clientResource)==null?0:P.imageName)return S}}};
xvK=function(Y){var S;if((S=Y.clientResource)!=null&&S.imageColor)return _.hK(Y.clientResource.imageColor)};
_.Ttu=function(Y,S,P,u,W,m,J){if(!S||S.length===0||S[0].clientResource)return null;if(P&&S[0].url)return S[0].url;u===void 0&&(u=!0);if(u){var c;Y=bBa*(W||(Y==null?void 0:(c=Y.getBoundingClientRect())==null?void 0:c.width)||0)}else{var C;Y=bBa*(m||(Y==null?void 0:(C=Y.getBoundingClientRect())==null?void 0:C.height)||0)}S=CcE(S,Y,u,J);return(S==null?0:S.url)?S.url:(S==null?0:S.imageData)?S.imageData:null};
Kq1=function(Y,S,P){P=P?[P]:[];Y.opacity&&P.push("opacity: "+Y.opacity+";");S&&Y.placeholderColor?(Y=_.hK(Y.placeholderColor),P.push("background-color: "+Y+";")):P.push("background-color: transparent;");return P.join(" ")};
Eia=function(Y,S,P,u,W){var m=["yt-core-image"];S&&m.push(S);P||m.push("yt-core-image--fill-parent-height");u||m.push("yt-core-image--fill-parent-width");switch(Y.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":m.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":m.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":m.push("yt-core-image--content-mode-center");break;default:m.push("yt-core-image--content-mode-scale-to-fill")}Y.flipForRtlLayout&&
m.push("yt-core-image--flip-rtl");switch(W){case "TOP_START":var J;m.push(((J=document.body)==null?void 0:J.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return m.join(" ")};
gi8=function(Y){var S;if(Y==null?0:(S=Y.clientResource)==null?0:S.imageName){var P;Y=(P=Y.clientResource)==null?void 0:P.imageName;a:{switch(Y){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":P="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":P="yt-logos-ext:yt-logo-updated";break a}P=void 0}return P||fta.get(Y)||Y}};
l2=function(Y){return _.f("mweb_wiz_skip_render")?$vf(Y):rW$(Y)};
$vf=function(Y){return function(S){var P=fRY("wink-root");kd();gFf();XF8(P,_.R(Y,S))}};
rW$=function(Y){var S=S===void 0?!1:S;return function(P){if(!S||!_.f("mweb_skip_keto_to_c3_if_no_data")||P.data!==void 0){var u=PR(!1);try{var W=P.children;_.f("mweb_render_outside_patch_killswitch")||Xn?W?HK(_.R(Y,P,W)):HK(_.R(Y,P)):_.sf(new _.$2("ketoToC3 called outside of a patch",{tagName:Y.TAG_NAME}))}finally{PR(u)}}}};
GCY=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
vi1=function(Y,S){Y.onViewportEntered=S;hp$.observe(Y)};
Dvu=function(){var Y={rootMargin:"10%",threshold:.01};_.f("mweb_enable_set_io_root_to_null_safari")?Y.root=null:_.f("mweb_enable_set_io_root_to_body_safari")&&(Y.root=document.body);return new IntersectionObserver(function(S,P){S.filter(function(u){return u.intersectionRect.height>0}).forEach(function(u){u=u.target;
if(!_.f("mweb_enable_only_update_image_when_connected")||u.isConnected!==!1){var W;(W=u.onViewportEntered)==null||W.call(u);P.unobserve(u)}})},Y)};
ItU=function(Y,S,P,u,W){function m(){if(u){var c=u.loadedClass,C=u.notifyOnUnloaded;c&&_.X5(Y,c);C&&Y.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function J(){var c=P(S,Y);c&&Y.getAttribute("src")!==c&&(_.f("mweb_enable_only_update_image_when_connected")&&Y.isConnected===!1||c===Y.src||(Y.src=c),m())}
W=W===void 0?!0:W;Y.removeAttribute("src");m();S&&(W?vi1(Y,J):J())};
at8=function(Y,S){for(var P in S)P==="className"?Y.className=S[P]:(VZ[P]||VZ[dK.default])(Y,P,S[P])};
Lqh=function(Y,S,P,u){l2(_.ZZ)({contentMode:S.contentMode,loadedClass:S.loadedClass,isPreloaded:S.isPreloaded,notifyOnLoaded:S.notifyOnLoaded,notifyOnUnloaded:S.notifyOnUnloaded,preferredThumbnail:S.preferredThumbnail,preserveHeight:S.preserveHeight,preserveWidth:S.preserveWidth,objectPosition:S.objectPosition,targetWidth:S.targetWidth,targetHeight:S.targetHeight,shouldShowPlaceholder:S.shouldShowPlaceholder,useWidth:S.useWidth,alt:S.alt,className:S.className,onerror:S.onerror,onload:S.onload,style$:S.style$,
color:S.color,width:S.width,height:S.height,"aria-hidden$":S["aria-hidden$"],draggable:S.draggable,"data-disabled$":S["data-disabled$"],data:Y,callback:P,renderLazy:u===void 0?!0:u,hideOn404:!1})};
pja=function(Y,S,P){P=P===void 0?!1:P;var u=Y.sources!==void 0?Y:_.cWX(Y);if(u){var W=S.onload;S.onload=function(C){var x=C.target;P&&x.naturalWidth===120||_.i2(x,"yt-core-image--loaded");S.notifyOnLoaded&&x.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));W==null||W(C)};
S.targetWidth&&S.preserveWidth&&(S.width=S.targetWidth);S.targetHeight&&S.preserveHeight&&(S.height=S.targetHeight);var m=RpK(u),J=m&&gi8(m);if(J)return(Y=xvK(m))&&(S.color=Y),{type:"icon",iconName:J,config:Object.assign({},S,S.alt?{}:{"aria-hidden$":"true"},{"aria-label$":S.alt,role:"img"})};if(Y.sources===void 0){S.alt=Y.accessibility&&Y.accessibility.accessibilityData&&Y.accessibility.accessibilityData.label||S.alt;S.style$=Kq1(Y,S.shouldShowPlaceholder,S.style$);var c;S.isPreloaded=!((c=_.g(Y,
wjh))==null||!c.isPreloaded)}S.contentMode&&!u.contentMode&&(u.contentMode=S.contentMode);S.className=Eia(u,S.className,S.preserveHeight,S.preserveWidth,S.objectPosition);S.loadedClass="yt-core-image--loaded";return{type:"image",image:u,config:S}}};
_.Fqh=function(){var Y=_.Ch.apply(0,arguments);return _.yZ(function(S){var P=Y.map(function(u){return u(S)});
return function(){return void P.forEach(function(u){return void(u==null?void 0:u())})}})};
s$Y=function(Y,S){var P=S==null?void 0:S.initial;return _.fJ(function(){_.wK(!0);return P=Y(P)},{equals:S==null?void 0:S.isEqual},"rSlKsc")};
dvU=function(Y,S){if(Y===S)return!0;if(Y===void 0||S===void 0)return!1;var P,u,W,m,J,c,C,x;return Y.content===S.content&&((P=Y.styleRuns)==null?void 0:P.length)===((u=S.styleRuns)==null?void 0:u.length)&&((W=Y.commandRuns)==null?void 0:W.length)===((m=S.commandRuns)==null?void 0:m.length)&&((J=Y.attachmentRuns)==null?void 0:J.length)===((c=S.attachmentRuns)==null?void 0:c.length)&&((C=Y.decorationRuns)==null?void 0:C.length)===((x=S.decorationRuns)==null?void 0:x.length)};
ZBX=function(Y,S){if(Y){var P=Pc1(Y);if(P!=null&&P.content)if(_.f("attr_string_reactive"))l2(ltJ)({text:Y,config:S});else{var u=!(S==null||!S.ariaLabel)||!(P.commandRuns&&P.commandRuns.length!==0||P.paragraphStyleRuns&&P.paragraphStyleRuns.length!==0);Y=u?S==null?void 0:S.ariaLabel:null;u=u?"text":null;fs("span",{className:ip1(P,S),dir$:(S==null?0:S.userInput)?"auto":void 0,"aria-label$":Y,role$:u},function(){if(P.styleRuns||P.commandRuns||P.attachmentRuns||P.decorationRuns){var W=S7X(P,S);Wqa(W,
S);W=BtU(P.content,W);W=_.n(W.parts);for(var m=W.next();!m.done;m=W.next())Xja(m.value)}else eh(P.content)})}}};
Xja=function(Y){typeof Y==="string"?eh(Y):u78(Y.data)?fs("span",Y.data.imageWrapperConfig,function(){Lqh(Y.data.image,Y.data.imageConfig)}):fs(Y.data.tag,Y.data.config,function(S){zpu(Y.data)(S);
S=_.n(Y.parts);for(var P=S.next();!P.done;P=S.next())Xja(P.value)})};
oia=function(Y){return Y.parts.map(iB$)};
iB$=function(Y){if(typeof Y==="string")return Y;Y=u78(Y.data)?_.R("span",{el:_.Fqh(mvX(Y.data.imageWrapperConfig))},_.R(_.ZZ,Object.assign({},{data:Y.data.image},Y.data.imageConfig))):_.R(Y.data.tag,{el:_.Fqh(zpu(Y.data),mvX(Y.data.config))},Y.parts.map(iB$));return xZ(Y)};
t0$=function(Y,S){return Y===S?!0:Y===void 0||S===void 0?!1:Y.noStyleRuns===S.noStyleRuns&&Y.noLinkColor===S.noLinkColor&&Y.noEndpoints===S.noEndpoints&&Y.headerRuns===S.headerRuns&&Y.isOverlay===S.isOverlay&&Y.linkInheritColor===S.linkInheritColor&&Y.userInput===S.userInput};
AWE=function(Y){return function(){var S,P,u,W,m,J,c,C,x,b,T,K,G,v;return{ariaLabel:(S=Y.ariaLabel)==null?void 0:S.call(Y),className:(P=Y.className)==null?void 0:P.call(Y),ellipsisTruncate:(u=Y.ellipsisTruncate)==null?void 0:u.call(Y),isOverlay:(W=Y.isOverlay)==null?void 0:W.call(Y),linkInheritColor:(m=Y.linkInheritColor)==null?void 0:m.call(Y),noEndpoints:(J=Y.noEndpoints)==null?void 0:J.call(Y),noStyleRuns:(c=Y.noStyleRuns)==null?void 0:c.call(Y),noLinkColor:(C=Y.noLinkColor)==null?void 0:C.call(Y),
noPreWrap:(x=Y.noPreWrap)==null?void 0:x.call(Y),noWrap:(b=Y.noWrap)==null?void 0:b.call(Y),skipOnClick:(T=Y.skipOnClick)==null?void 0:T.call(Y),stopPropagation:(K=Y.stopPropagation)==null?void 0:K.call(Y),userInput:(G=Y.userInput)==null?void 0:G.call(Y),headerRuns:(v=Y.headerRuns)==null?void 0:v.call(Y)}}};
UvY=function(Y){return Y.value===""||Y.value==="true"?!0:Y.value==="false"?!1:isNaN(Number(Y.value))?Y.value:Number(Y.value)};
oe=function(Y,S){Y=new Q$Y(Y,S);_.p_(Y);throw Y;};
kCa=function(Y,S,P){var u=eW9(Y);Y._numRenders=0;try{var W=WRa(function(){return _.R(S,Object.assign({},P))})}catch(J){var m=function(c){c.args||(c.args=[]);
c.args.push("Error in web component wrapper");c.args.push(Y.tagName.toLowerCase());return c};
_.F_(J instanceof Error?m(J):new Q$Y("Wiz rendering error",Y.tagName.toLowerCase()));throw J;}finally{eW9(u)}return W};
_.AL=function(Y,S,P){function u(x){var b={};x=_.n(x);for(var T=x.next();!T.done;T=x.next()){T=T.value;var K=void 0,G=void 0,v=void 0,a=_.T5((v=(G=(K=T).getAttribute)==null?void 0:G.call(K,"slot"))!=null?v:"children");if(K=b[a])K.push(T);else if(a in m||a==="children")b[a]=[T]}if(M0f)for(x=_.n(Object.keys(b)),a=x.next(),T={};!a.done;T={content$jscomp$55:void 0},a=x.next())a=a.value,a!=="children"&&(T.content$jscomp$55=b[a],b[a]=function(w){return function(){return w.content$jscomp$55}}(T));
return b}
P=P===void 0?{}:P;Y.componentType!==G6||oe("Components must be marked reactive to be used from web component wrapper.",S);HZ.has(S)&&oe("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",S);var W,m=(W=P.props)!=null?W:{};Vs.add(S);var J=yWh();P=function(){var x=J.apply(this,arguments)||this;x.rawProps={};x.queuingRender=!1;x.dispose=function(){};
x.isWebComponentWrapper=!0;x.isReparenting=!1;x.hasAttached=!1;return x};
_.r(P,J);P.prototype.render=function(){this.hasAttached=!0;for(var x=_.n([].concat(_.cz(this.attributes))),b=x.next();!b.done;b=x.next())b=b.value,b.name!=="slot"&&this.removeAttribute(b.name);x=Object.assign({},this.componentProps,this.slotProps);b=_.n(kCa(this,Y,x));x=b.next().value;b=b.next().value;!(x[0]instanceof Element)||x.length>1?oe("Wrapped Wiz components must return a single root element.",S):(x=x[0].tagName.toLowerCase(),x!==S&&oe("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(x+" !== '"+S),S),this.dispose=b)};
P.prototype.setUpProps=function(){for(var x=this.rawProps,b=this.attributes,T=_.n(Object.keys(m)),K=T.next();!K.done;K=T.next()){K=K.value;var G=void 0;((G=this)==null?0:G[K])&&this[K]!==Nth&&x[K]===void 0&&(x[K]=this[K],(G=Object.getOwnPropertyDescriptor(this.constructor.prototype,K))&&Object.defineProperty(this,K,G))}T=_.n(b);for(K=T.next();!K.done;K=T.next()){G=K.value;K=_.T5(G.name);var v=K==="class"&&!b.getNamedItem("class-name");if(K in m||v)G=UvY(G),K!=="class"||x.className?x[K]=G:x.className=
G}b={};for(var a in m)m[a]===_.tL||M0f&&m[a]===HB9||(x[a]instanceof Function&&oe("Function props must be configured as STATIC, not SIGNAL.",S),K=_.n(_.qb(x[a],void 0,"vGbZpc")),T=K.next().value,K=K.next().value,b[a]=K,x[a]=T);x=_.n([x,b]);this.componentProps=x.next().value;this.setters=x.next().value;this.slotProps=u(this.childNodes)};
P.prototype.connectedCallback=function(){ys===S&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in m&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
P.prototype.disconnectedCallback=function(){if(!this._isInert){var x;a:{if(_.V0K)for(x=this;x;){if(_.epa.has(x)){x=!0;break a}x=x.parentElement}x=!1}if(x)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){x=_.n([].concat(_.cz(this.attributes)));for(var b=x.next();!b.done;b=x.next())b=b.value,b.name!=="slot"&&this.removeAttribute(b.name)}this.innerText="";ABJ(this)}}};
P.prototype._setPendingPropertyOrPath=function(){};
P.prototype.notifyPath=function(){};
_.y6.Object.defineProperties(P.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
W=_.n(Object.keys(m));for(var c=W.next(),C={};!c.done;C={prop$jscomp$103:void 0},c=W.next())C.prop$jscomp$103=c.value,Object.defineProperty(P.prototype,C.prop$jscomp$103,{set:function(x){return function(b){var T=this;this._isInert||(this.setters?gK(function(){var K,G;return void((G=(K=T.setters)[x.prop$jscomp$103])==null?void 0:G.call(K,b))}):(this.rawProps[x.prop$jscomp$103]=b,this.queuingRender&&x.prop$jscomp$103==="data"&&b!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(C),
get:OBh.has(C.prop$jscomp$103)?void 0:function(){return Nth}});
customElements.define(S,P)};
_.Yr1=function(Y,S){return(Y=_.UD(Y,S))?_.mp(_.Bx(Y)):null};
_.Qz=function(Y){if(Y=_.UD(Y,Number.MAX_VALUE,void 0,"width"))return _.Bx(Y)};
_.UD=function(Y,S,P,u){u=u===void 0?"width":u;if(!Y||!Y.length)return null;if(_.f("kevlar_tuner_should_always_use_device_pixel_ratio")){var W=window.devicePixelRatio;_.f("kevlar_tuner_should_clamp_device_pixel_ratio")?W=Math.min(W,_.z_("kevlar_tuner_clamp_device_pixel_ratio")):_.f("kevlar_tuner_should_use_thumbnail_factor")&&(W=_.z_("kevlar_tuner_thumbnail_factor"));Sr$=W}else Sr$||(Sr$=window.devicePixelRatio);W=Sr$;_.f("kevlar_tuner_should_always_use_device_pixel_ratio")?S*=W:W>1&&(S*=W);if(_.f("kevlar_tuner_min_thumbnail_quality"))return Y[0].url||
null;W=Y.length;if(_.f("kevlar_tuner_max_thumbnail_quality"))return Y[W-1].url||null;if(P)for(var m=0;m<W;m++)if(Y[m].url.indexOf(P)>=0)return Y[m].url||null;for(P=0;P<W;P++)if(Y[P][u]>=S)return Y[P].url||null;for(S=W-1;S>0;S--)if(Y[S][u])return Y[S].url||null;return Y[0].url||null};
Wt1=function(){kJ.size?setTimeout(function(){MG(Pwa)},0):uLY=0};
Pwa=function(){var Y=(0,_.Oh)(),S=null,P=!1;kJ.forEach(function(W){W.loaded=!0;W.loadTime=Y;W.pendingPaint=!1;var m=z$$.get(W);m&&m.resolve(Y);S=W;P||!W.ftlEligible&&W.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(P=!0)});
var u;((u=S)==null?0:u.markDirty)&&S.markDirty();kJ.clear();uLY=0;P&&mj8(Y)};
nPK=function(Y){kJ.add(Y);Y.pendingPaint=!0;uLY||(uLY=_.yz(_.wc,Wt1))};
jyJ=function(Y){Y.loaded=!1;Y.loadTime=Infinity;var S=z$$.get(Y);S&&(S.reject(Error("nh")),z$$.delete(Y));Y.pendingPaint&&(kJ.delete(Y),Y.pendingPaint=!1)};
_.JNa=function(Y){var S=Y.indexOf(":");return S===-1?{originalName:Y}:{originalName:Y.substring(0,S),datasyncId:Y.substring(S+1)}};
_.cNJ=function(){return _.B(function(Y){if(Bzu!==void 0)return Y.return(Bzu);Bzu=new Promise(function(S){var P;return _.B(function(u){switch(u.nextAddress){case 1:return _.ND(u,2),_.q(u,_.NG.open("test-only"),4);case 4:return _.q(u,_.NG.delete("test-only"),5);case 5:_.tc(u,3);break;case 2:if(P=_.O4(u),P instanceof Error&&P.name==="SecurityError")return S(!1),u.return();case 3:S("caches"in window),_.Yt(u)}})});
return Y.return(Bzu)})};
R$h=function(){return _.B(function(Y){if(Y.nextAddress==1)return _.q(Y,_.cNJ(),2);if(!Y.yieldResult)return Y.return(void 0);CwK||(CwK=new qr9);return Y.return(CwK)})};
xjX=function(Y){var S,P,u,W;return _.B(function(m){switch(m.nextAddress){case 1:return _.q(m,R$h(),2);case 2:S=m.yieldResult;if(!S)throw Error("ph");return _.q(m,S.open("yt-player-local-img"),3);case 3:return P=m.yieldResult,_.q(m,P.match(Y),4);case 4:u=m.yieldResult;if(!u)throw Error("qh");return _.q(m,u.blob(),5);case 5:return W=m.yieldResult,m.return(W)}})};
b58=function(Y,S){for(var P in Y)if(Y.hasOwnProperty(P)&&S[P])return P;return null};
Tz1=function(Y){return"stamp"+Y.replace("-","_")+"_"};
Kta=function(Y){var S=Y.match(/\[\[([\w\.]+)\]\]/);if(S&&S.length>1)return S[1];_.p_(Error("sh`"+Y));return null};
EPh=function(Y){return Y===void 0?_.Z4("REUSE_COMPONENTS",!1):Y||!1};
$ja=function(Y,S,P){P&&(S.is?(f5a.has(S)&&(Y=f5a.get(S),P=Y.listener,delete S[Y.property],P.type==="element"&&S.removeEventListener(P.eventName,P.handler),f5a.delete(S)),gPa(S)):S.__proto__==HTMLElement.prototype&&(S=new _.$2("Rendererstamper removed a non custom element","Stamper: "+Y+" element: "+(S&&S.nodeName)),_.sf(S)))};
rNa=function(Y,S,P,u){var W=S.node?S.node:S;_.I(P).parentNode===W&&(S.removeChild(P),$ja(Y,P,u));if(Y=HF.get(P))HF.delete(P),_.wc.cancelJob(Y);P.hidden=!1};
GK8=function(Y,S,P,u){if(S&&S.children&&(P=S.children[P]))if(_.Z4("DEFERRED_DETACH"))for(;P&&!HF.has(P);){var W=Y,m=S,J=P,c=u;J.hidden=!0;W=_.hp(_.wc,rNa.bind(null,W,m,J,c),0);HF.set(J,W);P=P.nextElementSibling}else for(;(J=S.lastElementChild)&&(S.removeChild(J),$ja(Y,J,u),J!=P););};
h$$=function(Y){var S=_.Ms();_.LE(function(){for(var P=_.n(Y.slotContent),u=P.next();!u.done;u=P.next())S.value.appendChild(u.value)});
return _.R("__slot-el",{el:S,skip:!0})};
_.Vz=function(Y,S,P){P=P===void 0?vPX:P;HZ.add(S);var u;(u=P).propNames!=null||(u.propNames=[]);var W=new Set(P.propNames),m=yWh();u=function(){var x=m.call(this)||this;x.props={};x.isUpdating=!1;x.hasAttached=!1;x.isInert=!1;x.updateQueued=!1;x.initialClasses=[];V61(x,S);return x};
_.r(u,m);u.prototype.forwardKebabCaseProp=function(x,b){x=_.T5(x);if(W.has(x)||x==="children")this.props[x]=b};
u.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var x=_.n(this.initialClasses),b=x.next();!b.done;b=x.next())(b=b.value)&&this.classList.add(b);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
u.prototype.handleSlottedContent=function(){for(var x=new Map,b=_.n(this.children),T=b.next();!T.done;T=b.next()){T=T.value;var K=void 0,G=(K=T.getAttribute("slot"))!=null?K:"children";(K=x.get(G))?K.push(T):x.set(G,[T]);if(!T.getAttribute("key")){var v=void 0,a=void 0;T.setAttribute("key",G+"_"+((a=(v=K)==null?void 0:v.length)!=null?a:0))}}x=_.n(x);for(b=x.next();!b.done;b=x.next())T=_.n(b.value),b=T.next().value,T=T.next().value,this.forwardKebabCaseProp(b,_.R(h$$,{slotContent:T}))};
u.prototype.connectedCallback=function(){var x=this;if(!V61(this,S)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var b=_.n(this.attributes),T=b.next();!T.done;T=b.next())T=T.value,this.forwardKebabCaseProp(T.name,UvY(T));this.handleSlottedContent();P.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){x.afterFirstPatch()});
this.hasAttached=!0}};
u.prototype.attributeChangedCallback=function(x,b,T){this.isInert||this.isUpdating||this.isConnected||x!=="class"||this.initialClasses.push.apply(this.initialClasses,_.cz(T.split(" ")))};
u.prototype.disconnectedCallback=function(){gG1(this)};
u.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var x,b;XF8(this,_.R(Y,Object.assign({},this.props,{idomKey:(b=(x=this.__incrementalDOMData)==null?void 0:x.key)!=null?b:S})),!0)}catch(K){var T=K instanceof Error?K:new _.$2("Wiz rendering error");T.args||(T.args=[]);T.args.push("Error in deprecated web component wrapper");T.args.push(S.toLowerCase());_.p_(T);throw K;}finally{this.updateQueued=this.isUpdating=!1}}};
u.prototype.enqueueUpdate=function(){var x=this;return _.B(function(b){if(P.synchronous)return x.update(),b.return();if(x.updateQueued)return b.return();x.updateQueued=!0;return b.return(Promise.resolve().then(function(){x.update()}))})};
u.prototype.notifyPath=function(){P.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.y6.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var J=_.n(P.propNames),c=J.next(),C={};!c.done;C={prop$jscomp$105:void 0},c=J.next())C.prop$jscomp$105=c.value,Object.defineProperty(u.prototype,C.prop$jscomp$105,{set:function(x){return function(b){this.isInert||b===this.props[x.prop$jscomp$105]||(this.props[x.prop$jscomp$105]=b,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(C)});
customElements.define(S,u)};
_.DjY=function(Y,S){return _.BT(Y.entities,"markersEngagementPanelSyncEntity",S)};
I5Y=function(Y,S){return _.BT(Y.entities,"fantasyWinProbabilityEntity",S)};
a51=function(Y,S){return _.BT(Y.entities,"fantasyTeamEntity",S)};
Lt9=function(Y,S){return _.BT(Y.entities,"fantasyPlayerEntity",S)};
w8h=function(Y,S){return _.BT(Y.entities,"booleanEntity",S)};
p89=function(Y,S){return _.BT(Y.entities,"qrCodeEntity",S)};
FtE=function(Y){return _.BT(Y.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
sy1=function(){if(eC)return eC;if(window.lottie)return eC=Promise.resolve(window.lottie);var Y=_.pZ(_.X3("LOTTIE_URL"));return Y?eC=new Promise(function(S,P){var u=document.createElement("script");u.addEventListener("load",function(){S(lottie)});
u.addEventListener("error",function(W){var m="Lottie library failed to load.";W?W.message&&(m+=" Original description: "+W.message,_.d6(W,m)):W=Error(m);_.sf(W);P(W)});
u.setAttribute("async","");_.I9(u,Y);document.head.appendChild(u)}):Promise.reject(Error("th"))};
dj1=function(){return eC?eC:sy1()};
l5K=function(){var Y=FtE(_.Na().getState());if(Y&&Y.animationStyle)switch(Y.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return OD.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return OD.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return OD.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
X8Y=function(Y){if(Y)switch(Y){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.f("kevlar_use_wil_icons"))return(Y=l5K())?Y:OD.get("LIKE")}};
Z5h=function(Y){var S=X8Y(Y);if(S)return S;switch(Y){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return OD.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return OD.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return OD.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return OD.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return OD.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return OD.get("NOTIFICATION_BELL")}};
oPX=function(Y,S){if(!Y||i5E)S=!1;else{if(Y.closest){var P=!!X8Y(S);P=_.X3("ID_TOKEN")&&P?!!Y.closest("segmented-like-dislike-button-view-model"):!1}else P=!1;if(!P)if(Y.closest)if(P=!_.X3("ID_TOKEN"),Y=Y.closest("ytd-subscription-notification-toggle-button-renderer-next"),P||!Y)P=!1;else{var u;P=((u=Y.data)==null?void 0:u.targetId)==="notification-bell"&&S!=="EXPAND_MORE"}else P=!1;S=P}return S};
tI8=function(Y){var S,P;return _.B(function(u){switch(u.nextAddress){case 1:return _.ND(u,2),_.q(u,fetch(Y),4);case 4:return S=u.yieldResult,_.q(u,S.json(),5);case 5:return u.return(u.yieldResult);case 2:P=_.O4(u),_.sf(P),_.Yt(u)}})};
ANh=function(Y,S){var P,u,W;return _.B(function(m){if(m.nextAddress==1)return(P=S?Y.pathDarkTheme:Y.path)?_.q(m,Promise.all([tI8(P),sy1()]),2):m.return();u=m.yieldResult;W=u[0];Ys.set(P,W);_.Yt(m)})};
_.Si=function(){var Y=_.Ch.apply(0,arguments);return function(){for(var S="",P=_.n(Y),u=P.next();!u.done;u=P.next())if(u=u.value,typeof u==="function"&&(u=u()),u)if(typeof u==="string")S+=" "+u;else for(var W in u)if(u.hasOwnProperty(W)){var m=u[W];typeof m==="function"&&(m=m());m&&(S+=" "+W)}S=S.trim()||void 0;return _.wK(S)}};
_.PX=function(Y){var S;var P=Y.data;var u=Y.className;var W=Y.animationName;var m=Y.animationRef;var J=(S=Y.elRefForInterop)||_.Ms(),c;_.aI(function(){var b;return void((b=c)==null?void 0:b.destroy())});
var C;_.D6(function(){var b=_.wK(W);if(b!==C){C=b;var T=Object.assign({},{animationName:b,animationRef:_.wK(m)},_.wK(P));try{_.E().resolve(Uj9)().then(function(v){var a;(a=c)==null||a.destroy();a=T.animationRef;var w=T.listeners;v=v.loadAnimation(Object.assign({},{container:J.value},T.animationConfig));a&&(a.lottieEl=v);if(w)for(a=_.n(Object.entries(w)),w=a.next();!w.done;w=a.next()){var F=_.n(w.value);w=F.next().value;(F=F.next().value)&&v.addEventListener(w,F)}c=v})}catch(v){b=v;
var K="LottieComponent error.";b.message&&(K+=" Original description: "+b.message);_.d6(b,K);_.sf(b);var G;((G=T.listeners)==null?0:G.error)&&T.listeners.error(b)}}});
var x=_.Si("ytLottieComponentHost",u);return _.R(DsX,{cond:function(){return!S},
then:function(){return _.R("lottie-component",{class:x,el:J})}})};
QyK=function(Y){var S=_.Ms(),P=_.n(N69(Y.data.animationConfig.name||"",Y.className)),u=P.next().value;P=P.next().value;var W=pE(function(){return Y.data.animationRef});
aj(function(){Y.data.animationRef&&(Y.data.animationRef.lottieEl=W==null?void 0:W.lottieEl)},[Y.data.animationRef]);
return _.R("lottie-component",{skip:!0,class:_.Si(P,"ytLottieComponentHost"),el:S},_.R(_.PX,{data:Y.data,animationRef:W,animationName:u,elRefForInterop:S}))};
MIa=function(Y,S,P,u){function W(J,c){if(S.value===c&&Y!=null&&Y.value){for(;Y.value.firstChild;)Y.value.removeChild(Y.value.firstChild);Y.value.classList.add("yt-spec-icon-shape");J(Y.value,u)}}
P=_.kKa(_.E().resolve(_.WF),P);if(typeof P==="function")S.value=null,W(P,null);else{var m=new _.qs(P.then,P);S.value=m;m.then(function(J){W(J,m)})}};
Nz1=function(Y,S){var P=document.createElement("div"),u=_.D4(P,function(){return _.R(_.gw,{cond:Y,then:function(W){return _.R(yNK,{data:W,options:S})}})});
return[P,u]};
_.uN=function(){for(var Y=[],S=_.n(_.Ch.apply(0,arguments)),P=S.next();!P.done;P=S.next())if(P=P.value)if(typeof P==="string")Y.push(P);else{P=_.n(Object.entries(P));for(var u=P.next();!u.done;u=P.next()){var W=_.n(u.value);u=W.next().value;(W=W.next().value)&&Y.push(u)}}return Y.join(" ")};
O58=function(Y){var S=_.Ms(),P=F3(),u=H3(Y.character)||H3(Y.previousCharacter);vR(function(){if(Y.marginMultiplier){var W;(W=P.value)==null||W.cancel();u?(W=Y.previousCharacter?Number(Y.previousCharacter)+10:Y.rollUp?0:30,Y.shouldAnimate||(W-=H5a(Y,W))):(W=Y.rollUp?0:2,Y.shouldAnimate||(W-=Y.rollUp?-1:1));S.value.style.marginTop="-"+W*Y.marginMultiplier+"px";Y.shouldAnimate?P.value=VIX(S.value,Y,W,u):S.value.style.display=Y.character?"":"none"}});
return _.R("animated-rolling-character",{el:S,class:"animated-rolling-character-wiz"},_.kS(u,function(){for(var W=[],m=1;m<30;m++)W.push(_.R("div",null,m%10));return _.R(_.SX,null,_.R("div",null,"\u00a0"),W,_.R("div",null,"\u00a0"))},function(){return e$a(Y.character)}))};
e$a=function(Y){return _.R(_.SX,null,_.R("div",null,"\u00a0"),_.R(_.SX,null,_.kS(!Y||_.Ba(Y),function(){return _.R("div",null,"\u00a0")},function(){return _.R("div",null,Y)})),_.R("div",null,"\u00a0"))};
VIX=function(Y,S,P,u){P=new Animation(new KeyframeEffect(Y,[{transform:"translateY(0px)"},{transform:"translateY("+(u?H5a(S,P):S.rollUp?-1:1)*S.marginMultiplier+"px)"}],YTK),document.timeline);S.character?(Y.style.display="",P.onfinish=null):P.onfinish=function(){Y.style.display="none"};
P.play();return P};
H5a=function(Y,S){var P=Number(Y.character)+10;if(Y.previousCharacter)if(Y.character){var u=Number(Y.character),W=Number(Y.previousCharacter);Y=Y.rollUp?W<u?P:P+10:W<u?P-10:P}else Y=Y.rollUp?30:0;else Y=Y.character==="0"?P:Y.rollUp?P-10:P+10;return S-Y};
_.WX=function(Y,S){return function(P){var u={},W;for(W in P){var m=void 0,J=void 0;((m=S)==null?0:(J=m.callbacks)==null?0:J[W])||(u[W]=P[W])}return _.R(utY,null,function(){for(var c in u)P[c]=_.wK(u[c]);P.disableReactiveLogging=!0;return _.R(Y,Object.assign({},P))})}};
_.zI=function(Y){var S=F3(),P=F3();aj(function(){S.value=Y.numberText;P.value=Y.numberValue},[Y.numberText]);
var u=Y.fontSizeMultiplier?Y.heightPx*Y.fontSizeMultiplier:Y.heightPx,W=ww(function(){if(Y.numberText){var J=Y.numberText;var c=Y.forceRollUp||!P.value||!Y.numberValue||P.value<Y.numberValue;var C=!!Y.shouldAnimate,x=S.value,b=[],T=0,K=0,G=(x?x.replace(/\D/g,"").length:0)-(J?J.replace(/\D/g,"").length:0);x=x?x.split(/(\d)/).filter(Boolean):[];for(J=J.split(/(\d)/).filter(Boolean);G<0;){var v=J[K];b.push({character:v,rollUp:c,marginMultiplier:u,shouldAnimate:C});K++;H3(v)&&G++}for(;T<G;)v=x[T],b.push({previousCharacter:v,
rollUp:c,marginMultiplier:u,shouldAnimate:C}),T++,H3(v)||G++;for(;K<J.length;)G=J[K],v=x[T],H3(G)===H3(v)?(K++,T++):H3(G)?(T++,G=void 0):H3(v)&&(K++,v=void 0),b.push({character:G,previousCharacter:v,rollUp:c,marginMultiplier:u,shouldAnimate:C});c=b}else c=[];return c},[Y.numberText]),m=Y.numberText?["height: "+u+"px;",
"line-height: "+Y.heightPx+"px;"].join(" "):"";return _.R("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:m,dir:"ltr","aria-hidden":"true"},W.map(function(J){return _.R(O58,Object.assign({},J))}))};
ST1=function(Y){var S=Y.nodeName;if(Y.id)return S+="#"+Y.id;if(Y.classList)for(var P=_.n(Y.classList),u=P.next();!u.done;u=P.next())S+="."+u.value;Y.parentElement&&(S=ST1(Y.parentElement)+" > "+S);return S};
PPf=function(Y){return function(S){var P=hu9("event",{type:S.type});P&&S.target&&P.attr("nodepath",ST1(S.target));return IT8(P,Y,S)}};
_.mR=function(Y){Y&&vN8("event")&&(Y=PPf(Y));return L4a(function(S){var P,u=(P=Y)==null?void 0:P(S);return typeof u==="boolean"?u:!0})};
nR=function(Y){return function(){return Y()?Y():void 0}};
ubu=function(Y){return new KeyframeEffect(Y,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
W3a=function(Y){return new KeyframeEffect(Y,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
z9E=function(Y){var S=_.n(_.qb(Y,void 0,"Clci1e")),P=S.next().value,u=S.next().value;P.current=Y;return[P,function(W){return void u(P.current=W)}]};
_.ji=function(Y){var S=s$Y(function(){return z9E(Y())},{isEqual:function(P,u){return P[0].current===u[0].current}});
return[function(){return S()[0]()},
function(P){return void S()[1](P)}]};
_.Jg=function(Y){return function(){var S="",P;for(P in Y){for(var u=Y[P];typeof u==="function";)u=u();u!==void 0&&u!==null&&(S+="; "+P+": "+u)}return S.length>0?_.wK(S.slice(2)):_.wK()}};
muh=function(Y){switch(Y){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
Jlh=function(Y,S,P,u,W,m){var J=nC9(Y),c=J.disabled,C=J.iconPosition,x=J.style,b=J.focused,T=function(){return!!v()&&C()==="icon-only"},K=function(){return!!v()&&C()==="icon-only-40"},G=function(){return!!v()&&C()==="icon-with-label"},v=function(){return!!S||!(u==null||!u())};
return{type:function(){return x()==="call-to-action-inverse"?"text":x()==="overlay-dark"&&Y().type!=="filled"&&Y().type!=="tonal"?"tonal":Y().type},
shouldFocus:function(){return(b()||(m==null?void 0:m()))&&!c()},
hasIconLeading:function(){return!!v()&&C()==="leading"},
hasIconTrailing:function(){return!!v()&&C()==="trailing"},
hasIconLeadingTrailing:function(){return!!v()&&!!(P||W!=null&&W())&&C()==="leading-trailing"},
hasIconOnly:T,hasIconOnly40:K,hasIconWithLabel:G,iconButton:function(){return T()||K()||G()},
visiblyDisabled:function(){return(c()?"disabled":Y().state)==="disabled"||c()},
overrideSmallSizeIcon:function(){return jUK(Y(),v())},
iconToRender:S?S:function(){return _.R(_.BX,{icon:u,size:function(){return cX(Y(),!0)},
active:function(){return Y().toggled}})},
secondaryIconToRender:P?P:function(){return _.R(_.BX,{icon:W,size:function(){return cX(Y(),!0)},
active:function(){return Y().toggled}})}}};
nC9=function(Y){return{size:function(){return Y().size},
style:function(){return Y().style},
focused:function(){return Y().focused},
disabled:function(){return Y().disabled},
onTap:function(S){var P,u;return(u=(P=Y()).onTap)==null?void 0:u.call(P,S)},
alignByText:function(){return Y().alignByText},
aTagConfig:function(){return Y().aTagConfig},
customColors:function(){return Y().customColors},
segmentedPosition:function(){return Y().segmentedPosition},
toggled:function(){return Y().toggled},
toggleable:function(){return Y().toggleable},
accessibilityLabel:function(){return Y().accessibilityLabel},
onToggle:function(S){var P,u;return(u=(P=Y()).onToggle)==null?void 0:u.call(P,S)},
iconPosition:function(){return Y().iconPosition},
oneOffCustomTextWrap:function(){return Y().oneOffCustomTextWrap},
disableTextEllipsis:function(){return Y().disableTextEllipsis},
tooltipText:function(){return Y().tooltipText},
ariaHidden:function(){return Y().ariaHidden},
tabIndex:function(){return Y().tabIndex},
buttonText:function(){return Y().buttonText},
formattedButtonText:function(){return Y().formattedButtonText},
animatedTextProps:function(){return Y().animatedTextProps}}};
B3a=function(Y){return Y.style==="overlay-dark"?4:Y.style==="overlay"?Y.type==="filled"?4:3:Y.type==="filled"||Y.style==="call-to-action-inverse"||Y.style==="mono-inverse"?2:1};
jUK=function(Y,S){S=(Y.iconPosition==="icon-only"||Y.iconPosition==="icon-only-40"||Y.iconPosition==="icon-with-label")&&S;return!Y.segmentedPosition&&S&&Y.size==="S"};
clX=function(){return!_.f("web_disable_backdrop_filter")};
cX=function(Y,S){switch(Y.size){case "XS":return 16;case "S":return jUK(Y,S)?24:16;default:return 24}};
CP9=function(Y){switch(Y){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
qT$=function(Y){switch(Y){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
R98=function(Y){switch(Y){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
xuU=function(Y){if(Y.style==="overlay-dark"&&Y.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
bUK=function(Y){if(!Y)return{};var S=Y.color,P=Y.backgroundColor;Y=Y.borderColor;var u="";S&&(u+="color: "+S+";");P&&(u+="background-color: "+P+";");Y&&(u+="border-color: "+Y+";");return{style:u}};
T3E=function(Y,S){if(!MZ){var P;ycY(function(){return P=SnX(Y,S)});
return P}return SnX(Y,S)};
K3K=function(){var Y=f4Y(MZ||void 0,eM1);return Y===NZ||(Y==null?void 0:Y.name)==="\u0275NotFound"?void 0:Y};
gCu=function(Y){var S=Y.data;var P=Y.icon;var u=Y.secondaryIcon;var W=Y.iconName;var m=Y.secondaryIconName;K3K();var J=S.size;Y=S.style;var c=S.focused,C=S.disabled,x=S.onTap,b=S.alignByText,T=S.aTagConfig,K=S.customColors,G=S.segmentedPosition,v=S.toggled,a=S.toggleable,w=S.accessibilityLabel,F=S.onToggle,U=S.iconPosition,V=S.oneOffCustomTextWrap,M=S.disableTextEllipsis,zJ=S.tooltipText,O=S.ariaHidden,ca=S.tabIndex,hu=!!P||!!W,ah=P,va=u;if(W){var yX=cX(S,!0);ah=function(){return _.R(_.BX,{icon:W,
size:yX,active:S.toggled})}}if(m){var la=cX(S,!0);
va=function(){return _.R(_.BX,{icon:m,size:la,active:S.toggled})}}var w1=S.state;
P=S.type;Y==="call-to-action-inverse"&&(P="text");Y==="overlay-dark"&&P!=="filled"&&P!=="tonal"&&(P="tonal");var U9=hu&&U==="leading",nu=hu&&U==="trailing",Yc=hu&&(!!u||!!m)&&U==="leading-trailing";u=hu&&U==="icon-only";var tu=hu&&U==="icon-only-40";U=hu&&U==="icon-with-label";var $_=u||tu||U;C&&(w1="disabled");var fu=w1==="disabled"||C;hu=jUK(S,hu);w1={};var G3=_.uN((w1["yt-spec-button-shape-next"]=!0,w1[CP9(P)]=!0,w1[qT$(Y)]=!fu,w1["yt-spec-button-shape-next--disabled"]=!!fu,w1[R98(J)]=!0,w1["yt-spec-button-shape-next--focused"]=
!!c&&!C,w1["yt-spec-button-shape-next--icon-trailing"]=nu,w1["yt-spec-button-shape-next--icon-leading"]=U9,w1["yt-spec-button-shape-next--icon-leading-trailing"]=Yc,w1["yt-spec-button-shape-next--icon-button"]=u||U,w1["yt-spec-button-shape-next--icon-only-default"]=tu,w1["yt-spec-button-shape-next--align-by-text"]=!!b,w1["yt-spec-button-shape-next--segmented-start"]=G==="start",w1["yt-spec-button-shape-next--segmented-end"]=G==="end",w1["yt-spec-button-shape-next--override-small-size-icon"]=hu,w1["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!V,w1["yt-spec-button-shape-next--disable-text-ellipsis"]=!!M,w1["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=clX(),w1)),wd=_.mR(function(Wd){x==null||x(Wd);a&&(F==null||F(Wd))});
J=function(){return T?_.R(_.CR,{aTagConfig:T,disabled:C,className:G3,style:bUK(K).style,title:zJ!=null?zJ:"",ariaLabel:w,ariaCurrent:a&&v},_.R(_.SX,null,ECa(S,U9,Yc,nu,$_,ah,va))):_.R("button",{"on:click":wd,class:G3,title:zJ!=null?zJ:"",style:C&&T?"pointer-events:none":bUK(K).style,disabled:C,"aria-pressed":a?!!v:void 0,"aria-label":w?w:void 0,"aria-disabled":fu,"aria-hidden":O,tabindex:ca},_.R(_.SX,null,ECa(S,U9,Yc,nu,$_,ah,va)))};
c={};Y=(c["yt-spec-button-shape-with-label"]=!0,c["yt-spec-button-shape-with-label--is-overlay"]=Y==="overlay"||Y==="overlay-dark",c);return _.R("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},U?_.R("label",{class:_.uN(Y)},J(),_.R("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},f1$(S))):J())};
f1$=function(Y){var S=Y.formattedButtonText,P=Y.animatedTextProps,u=Y.buttonText,W=Y.oneOffCustomTextWrap;Y=Y.iconPosition;return P?_.R(_.zI,{numberText:P.numberText,numberValue:P.numberValue,heightPx:P.heightPx,fontSizeMultiplier:P.fontSizeMultiplier,shouldAnimate:P.shouldAnimate,forceRollUp:P.forceRollUp}):S?(P=Y==="icon-with-label"||W,_.R(_.qw,{text:Object.assign({},S,P?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!P})):u};
ECa=function(Y,S,P,u,W,m,J){return _.R(_.SX,null,_.kS(m&&(S||P||W),function(){return _.R(_.SX,null,_.R("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},m==null?void 0:m()))}),_.kS((Y.buttonText||Y.formattedButtonText||Y.animatedTextProps)&&!W,function(){return _.R(_.SX,null,_.R("div",{class:"yt-spec-button-shape-next__button-text-content"},f1$(Y)))}),_.kS(u,function(){return _.R(_.SX,null,_.R("div",{class:"yt-spec-button-shape-next__icon"},m==null?void 0:m()))}),_.kS(P,function(){return _.R(_.SX,
null,_.R("div",{class:"yt-spec-button-shape-next__secondary-icon"},J==null?void 0:J()))}),_.kS(!Y.disabled&&!0,function(){return _.R(_.RF,{model:{color:B3a(Y)}})}))};
$uE=function(Y,S,P){l2(gCu)({data:Y,icon:S?function(){return _.R(Ns,null,S)}:void 0,
secondaryIcon:P?function(){return _.R(Ns,null,P)}:void 0})};
vC$=function(Y,S,P){var u=Y.buttonText,W=Y.formattedButtonText,m=Y.formattedButtonTextLegacy,J=Y.animatedTextProps,c=Y.style,C=Y.size,x=Y.focused,b=Y.disabled,T=Y.onTap,K=Y.alignByText,G=Y.aTagConfig,v=Y.customColors,a=Y.segmentedPosition,w=Y.toggled,F=Y.toggleable,U=Y.accessibilityLabel,V=Y.onToggle,M=Y.iconPosition,zJ=Y.oneOffCustomTextWrap,O=Y.disableTextEllipsis,ca=Y.tooltipText,hu=Y.ariaHidden,ah=Y.tabIndex,va=Y.state,yX=Y.type;c==="call-to-action-inverse"&&(yX="text");c==="overlay-dark"&&yX!==
"filled"&&yX!=="tonal"&&(yX="tonal");var la=!!S&&M==="leading",w1=!!S&&M==="trailing",U9=!!S&&!!P&&M==="leading-trailing",nu=!!S&&M==="icon-only",Yc=!!S&&M==="icon-only-40",tu=!!S&&M==="icon-with-label",$_=nu||Yc||tu;b&&(va="disabled");var fu=va==="disabled"||b;va=jUK(Y,!!S);var G3={},wd=(G3["yt-spec-button-shape-next"]=!0,G3[CP9(yX)]=!0,G3[qT$(c)]=!fu,G3["yt-spec-button-shape-next--disabled"]=!!fu,G3[R98(C)]=!0,G3["yt-spec-button-shape-next--focused"]=!!x&&!b,G3["yt-spec-button-shape-next--icon-trailing"]=
w1,G3["yt-spec-button-shape-next--icon-leading"]=la,G3["yt-spec-button-shape-next--icon-leading-trailing"]=U9,G3["yt-spec-button-shape-next--icon-button"]=nu||tu,G3["yt-spec-button-shape-next--icon-only-default"]=Yc,G3["yt-spec-button-shape-next--align-by-text"]=!!K,G3["yt-spec-button-shape-next--segmented-start"]=a==="start",G3["yt-spec-button-shape-next--segmented-end"]=a==="end",G3["yt-spec-button-shape-next--override-small-size-icon"]=va,G3["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!zJ,G3["yt-spec-button-shape-next--disable-text-ellipsis"]=!!O,G3["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=clX(),G3),Wd=function(){if(J)l2(_.zI)(J);else if(m)m(M==="icon-with-label"||zJ?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(W){var Ku=M==="icon-with-label"||zJ;ZBX(Object.assign({},W,Ku?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!Ku})}else u&&eh(u)},
kE=function(Ku){T==null||T(Ku);
F&&(V==null||V(Ku))},n8=G?rlY:GPh,P6=G?"aria-current$":"aria-pressed$",ML=function(){S&&(la||U9||$_)&&function(){xs({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){S()})}();
(u||W||m||J)&&!$_&&function(){xs({className:"yt-spec-button-shape-next__button-text-content"},function(){Wd()})}();
w1&&function(){xs({className:"yt-spec-button-shape-next__icon"},function(){S()})}();
U9&&function(){xs({className:"yt-spec-button-shape-next__secondary-icon"},function(){P()})}();
b||l2(_.RF)({model:{color:B3a(Y)}})},zc=function(){var Ku={};
n8(Object.assign({},(Ku.className=_.uN(wd),Ku.onclick=G?void 0:kE,Ku.disabled=b,Ku["aria-disabled$"]=fu,Ku.style=b&&G?"pointer-events:none":void 0,Ku[P6]=F?!!w:void 0,Ku["aria-label$"]=U,Ku.title$=ca!=null?ca:"",Ku["aria-hidden$"]=hu,Ku.tabindex$=ah,Ku),G,bUK(v)),function(){ML()})};
tu?(C={},c=(C["yt-spec-button-shape-with-label"]=!0,C["yt-spec-button-shape-with-label--is-overlay"]=c==="overlay"||c==="overlay-dark",C),h9Y({className:_.uN(c)},function(){zc();xs({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},Wd)})):zc()};
DuE=function(Y,S,P){_.f("web_wiz_button_shape")?$uE(Y,S,P):vC$(Y,S,P)};
bN=function(Y,S){_.DZ(Y,Object.assign({},S,{forceClickLogging:!0}))};
I1u=function(Y,S,P,u){var W=void 0;return function(m){var J=_.vF(P?Y==null?void 0:Y.onDisabledTap:Y==null?void 0:Y.onTap);if(J){var c;W=(c=W)!=null?c:S==null?void 0:S.value;if(J)if(_.f("web_button_vm_click_client_ve_killswitch"))bN(J,Object.assign({},{form:{element:W,event:m}},void 0));else{var C;c=J==null?void 0:J.clickTrackingParams;var x,b=Y==null?void 0:(C=Y.loggingDirectives)==null?void 0:(x=C.clientVeSpec)==null?void 0:x.uiType;C=b&&!c?_.TI(b):void 0;bN(J,Object.assign({},{form:{element:W,event:m}},
{clickedVisualElement:C}))}}u&&u(m)}};
a1K=function(Y){switch(Y){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
L3a=function(Y){switch(Y){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
w1$=function(Y){switch(Y){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
p1U=function(Y){switch(Y){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
F3J=function(Y,S){return _.BT(Y.entities,"engagementToolbarStateEntityPayload",S)};
dua=function(Y){(Y=_.Re(Y))&&_.sU$(Y)};
_.sU$=function(Y){var S=_.pM();S&&_.A6(S,Y)};
l1Y=function(Y,S,P){_.nb(Y,"yt-open-popup-action",[S,P||Y])};
X1U=function(Y,S){var P=_.sW(Y,"endpoint"),u=_.sW(Y,"action");return(P=u?u:P)&&S&&(P=S.navigationEndpointPopupMap[P])&&(Y=_.tA(P,Y),(P=_.sW(Y,"renderer"))&&S.supportedPopups.hasOwnProperty(P))?{openPopupAction:{popupType:S.popupTypeMap[P],popup:Y}}:null};
ZU1=function(Y,S,P,u){if(u){var W;P=P==null?void 0:(W=P.data)==null?void 0:W.contents;(W=P instanceof Array&&P.length?P[0]:P)&&(P=_.sW(W,"renderer"))&&u.supportedPopups.hasOwnProperty(P)&&(S.stopPropagation(),l1Y(Y,{openPopupAction:{popupType:u.popupTypeMap[P],popup:W}}))}};
t$J=function(Y,S,P,u){u=u===void 0?!1:u;var W=iU8(S);if(W){W.href&&IK(W.href);var m=S.button;m=m!==void 0?m===0&&!KR(S):!KR(S);W.data&&m&&oCY(Y,W,S,P,u)}};
oCY=function(Y,S,P,u,W){W=W===void 0?!1:W;var m=_.z_("pbj_navigate_limit",-1)===0;Ala(S);_.E().resolve(_.PQ(oz));var J=S.data;if(Object.keys(J).length!==0)if(!_.f("unplugged_web_disable_actions_for_cec_endpoint")&&_.g(J,_.qT))_.f("endpoint_behavior_command_executor_fix_killswitch")||(P.preventDefault(),P.stopPropagation()),_.cu(Y,[J],Y);else if(u=X1U(J,u))J.loggingUrls&&J.loggingUrls.forEach(function(C){C.baseUrl&&_.UQ(C.baseUrl)}),P.preventDefault(),P.stopPropagation(),l1Y(Y,u,S);
else{var c=UuE(0,S.data,P);if(Y=S.getForm)Y=Y(),c.tempData=c.tempData||{},c.tempData=Object.assign({},c.tempData,Y);Y=_.iM(P);if(u=Y.find(function(C){return!!C.visualElement}))c.createScreenConfig=c.createScreenConfig||{},c.createScreenConfig.clickedVisualElement=u.visualElement;
if(!m)if(P.preventDefault(),P.stopPropagation(),_.g(J,_.QUa)&&!W&&_.zR.instance)_.zR.instance.resolveCommand(J,c);else if(_.f("kevlar_command_handler_formatted_string")&&!W&&_.zR.instance&&kP1(J))W=Y.find(function(C){return!!C.is})||P.target,P={form:Object.assign({},c,{event:P,
element:W,originatingNode:S})},_.zR.instance.resolveCommand(J,P);else{J=_.iM(P);P=[];for(W=0;W<J.length;W++)(m=J[W].is)&&P.push(m);RMJ({parents:P.join(","),text:S.innerText},function(){_.ms(S,"yt-navigate",c)})}}};
M$a=function(Y){if(Y=iU8(Y))Ala(Y),Sva(Y.href)};
iU8=function(Y){Y=_.iM(Y);for(var S,P=0;P<Y.length;P++)if(S=Y[P],S.tagName==="A"&&S.classList.contains("yt-simple-endpoint")){if(!S.data)break;return S}return null};
KR=function(Y){return Y.shiftKey||Y.altKey||Y.metaKey||Y.ctrlKey};
ylu=function(Y,S){var P={itct:S.clickTrackingParams};_.f("kevlar_client_side_screens")&&(!_.g(S,_.bM)||_.f("kevlar_exclude_endpoint_killswitch"))&&(P.endpoint=JSON.stringify(S));_.f("enable_unknown_lact_fix_on_html5")&&_.E().resolve(_.PQ(_.En))&&(P.lact=_.uE());ew8(P);_.ef(Y,P)};
Ala=function(Y){Y.href&&Object.keys(Y.data).length!==0&&ylu(Y.href,Y.data)};
kP1=function(Y){for(var S=_.n(N3h),P=S.next();!P.done;P=S.next())if(Y[P.value])return!1;return!0};
_.fR=function(Y,S){if(S){var P={};HUu.forEach(function(u){u=V$X(S,u,"--yt-lightsource-");Object.assign(P,u)});
e98.forEach(function(u){u=V$X(S,u,"--yt-basic-");Object.assign(P,u)});
_.PZ(Y,P)}};
V$X=function(Y,S,P){var u={};u[P+_.b6(S)]=Y&&Y[S]?_.hK(Y[S]):"";return u};
_.$s=function(Y,S,P){gL[Y]||(gL[Y]={});gL[Y][S]=P};
_.rL=function(Y){gL[Y]||(gL[Y]={});return gL[Y]};
OUE=function(Y){if(!Y)return{};var S=Y.foregroundTitleColor,P=Y.backgroundColor;Y=Y.borderColor;var u="text";Y?u="outline":P&&(u="filled");return{type:u,customColors:{color:S?_.hK(S):void 0,backgroundColor:P?_.hK(P):void 0,borderColor:Y?_.hK(Y):void 0}}};
WrE=function(Y){var S=Y.renderer;var P=Y.element;var u=Y.commandController;var W=Y.onTapCallback;var m=Y.skipCommandHandling;var J=Y.overrides;var c=Y.forceIcon;var C=Y.forceModernIconButton;var x=Y.forceDisabled;var b=Y.isSubscribe===void 0?!1:Y.isSubscribe;var T=Y.isPressed===void 0?!1:Y.isPressed;var K=Y.useButtonSize===void 0?!1:Y.useButtonSize;Y=Yt1(S);b&&(Y.style="mono",Y.type="filled");c=!S.icon||!c&&S.text?S.icon?S.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:C?"icon-only":"icon-only-40";c==="icon-only-40"&&(Y.type="text");var G;C=Object;b=C.assign;K=Sth(S,K);T=!!S.isSelected||!_.f("web_propagate_is_pressed_killswitch")&&!!T;var v=S.isSelected!==void 0;x=x===void 0?S.isDisabled:x;var a=S.text?_.$J(S.text):void 0;var w,F,U,V=((w=S.accessibilityData)==null?void 0:(F=w.accessibilityData)==null?void 0:F.label)||((U=S.accessibility)==null?void 0:U.label);w=V?V:_.Ma(S.text);P=Pt$(S,P,u,W,m);u=urX(S);u!=null&&u.length?(u=_.Ie({innertubeCommand:rRu(u),
forceNewState:!0}),u=GhU(u)?u:void 0):u=void 0;return b.call(C,{},Y,K,{iconPosition:c},J,{focused:!1,toggled:T,toggleable:v,disabled:x,formattedButtonText:a,accessibilityLabel:w,onTap:P,aTagConfig:u},OUE((G=S.colorData)==null?void 0:G.basicColorPaletteData),{oneOffCustomTextWrap:S.oneOffCustomTextWrap})};
Pt$=function(Y,S,P,u,W){return function(m){var J=urX(Y);u(J,m);if(!W){J=_.n(J);for(var c=J.next();!c.done;c=J.next())bN(c.value,{form:{element:S,event:m},commandController:P})}}};
urX=function(Y){var S=[];Y.command&&S.push(Y.command);Y.serviceEndpoint&&S.push(Y.serviceEndpoint);Y.navigationEndpoint&&S.push(Y.navigationEndpoint);return S};
Sth=function(Y,S){if(S)switch(Y.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(Y.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
Yt1=function(Y){switch(Y.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.GI=function(Y){return _.fJ(function(){Sk8()();return ZQ(Y)},void 0,"Icv7j")};
hg=function(Y,S){return _.BT(Y.entities,"likeStatusEntity",S)};
zch=function(Y,S){return _.BT(Y.entities,"likeCountEntity",S)};
_.mkE=function(Y,S){return _.BT(Y.entities,"stringEntity",S)};
nKU=function(Y,S){if(!Y)return!1;var P,u=(P=_.g(Y,_.xo))==null?void 0:P.signal;if(u&&S.signalEndpointMap)return!!S.signalEndpointMap[u];var W;if((P=(W=_.g(Y,_.vX))==null?void 0:W.request)&&S.continuationEndpointMap)return!!S.continuationEndpointMap[P];for(var m in Y)if(S.commandEndpointMap[m])return!0;return!1};
jE8=function(Y,S){if(S.streamingEndpointMap)for(var P in Y)if(S.streamingEndpointMap[P]&&(Y=S.streamingEndpointMap[P]))return Y()};
J41=function(Y,S){var P,u=(P=_.g(Y,_.xo))==null?void 0:P.signal;if(u&&S.signalEndpointMap&&(P=S.signalEndpointMap[u]))return P();var W;if((P=(W=_.g(Y,_.vX))==null?void 0:W.request)&&S.continuationEndpointMap&&(W=S.continuationEndpointMap[P]))return W();for(var m in Y)if(S.commandEndpointMap[m]&&(Y=S.commandEndpointMap[m]))return Y()};
BrE=function(Y){var S={"Content-Type":"application/json"};_.X3("EOM_VISITOR_DATA")?S["X-Goog-EOM-Visitor-Id"]=_.X3("EOM_VISITOR_DATA"):_.X3("VISITOR_DATA")&&(S["X-Goog-Visitor-Id"]=_.X3("VISITOR_DATA"));S["X-Youtube-Bootstrap-Logged-In"]=_.X3("LOGGED_IN",!1);_.X3("DEBUG_SETTINGS_METADATA")&&(S["X-Debug-Settings-Metadata"]=_.X3("DEBUG_SETTINGS_METADATA"));Y!=="cors"&&((Y=_.X3("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(S["X-Youtube-Client-Name"]=Y),(Y=_.X3("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(S["X-Youtube-Client-Version"]=
Y),(Y=_.X3("CHROME_CONNECTED_HEADER"))&&(S["X-Youtube-Chrome-Connected"]=Y),(Y=_.X3("DOMAIN_ADMIN_STATE"))&&(S["X-Youtube-Domain-Admin-State"]=Y),_.Z4("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(Y=_.X3("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(S["X-YouTube-Lava-Device-Context"]=Y));return S};
c4K=function(Y,S){S.watchNextResponse||S.reelItemWatchResponse?S.watchNextResponse?Y.content=S.watchNextResponse:Y.content=S.reelItemWatchResponse:S.playerResponse?Y.player=S.playerResponse:S.reelWatchSequenceResponse&&(Y.reelSequence=S.reelWatchSequenceResponse)};
DK=function(Y){return function(){return new Y}};
IF=function(Y){var S=_.E();return function(){return S.resolve(Y)}};
_.aF=function(Y){if(!Y)return null;for(var S=[],P=0;P<Y.textSegments.length;P++){var u=Y.textSegments[P];u.text?S.push(u):u.emojiId&&S.push({emoji_id:u.emojiId})}return{text_segments:S}};
b3h=function(Y,S,P,u,W,m,J){m=m===void 0?[]:m;var c=new _.LR;c.endpoint=P;if(!P)return _.F_(new _.$2("handle undefined endpoint",S.tagName)),c;var C=rL9(P);C.length&&(_.cu(Y,C,S,u),c.actions=C);P.loggingUrls&&P.loggingUrls.forEach(function(b){b.baseUrl&&Qn(b.baseUrl,b.attributionSrcMode)});
C=!_.f("web_skip_impression_click_killswitch")&&u&&u.impression;if(P.clickTrackingParams&&!CtX(P)&&!qtJ(S)&&!C&&(C=_.BF(),!_.wL(C,S))){var x=S.getScreenLayer&&S.getScreenLayer();x?C.clickCommand(P,null,x):C.clickCommand(P,null)}C=!1;for(x=0;x<m.length;x++)if((0,m[x])(S,P,u)){C=!0;break}!C&&Rcu(P)&&(c.ajaxPromise=xk8(Y,S,P,u,W,J));return c};
qtJ=function(Y){var S;return(Y=(S=Y.data)==null?void 0:S.navigationEndpoint)&&!!Y.clickTrackingParams};
CtX=function(Y){var S=_.g(Y,_.xo);if(S&&(S=S.signal)&&Tr9.indexOf(S)>=0)return!0;for(var P in Y)if(KrJ.indexOf(P)>=0)return!0;return!1};
Rcu=function(Y){var S;if(((S=_.g(Y,_.xo))==null?void 0:S.signal)==="CLIENT_SIGNAL")return!1;for(var P in Y)if(EKh.indexOf(P)>=0)return!1;Y=Object.keys(Y);return Y.length===1&&Y[0]==="loggingUrls"?!1:!0};
Dka=function(Y,S,P,u,W,m,J){var c=_.pR.instance;if(c&&_.Ft(c,u))var C=_.sn(c,u,W).then(function(b){return(b==null?0:b.data)?b:{data:b}});
else C=Y.requestDataForServiceEndpoint(u,W),_.g(u,feJ)||_.g(u,gK8)||_.g(u,_.$kJ)||_.g(u,r4Y)||_.sf(new _.$2("No RequestBuilder for endpoint",u));var x=_.dL();x.promise.thenCatch(function(){var b=_.sW(u,"action")||_.sW(u,"command")||_.sW(u,"endpoint");b&&(b=u[b],b.hasOwnProperty("onFailureAction")?_.cu(S,[b.onFailureAction],P):b.hasOwnProperty("onFailureCommand")&&_.cu(S,b.onFailureCommand,P));C.cancel("Resolver promise rejected")});
C.then(function(b){if(b){var T=b.error;if(T){if(m&&m.onServerError)m.onServerError(u,b);x.reject(new _.$2("Response error",u,T))}else if(b=b.data)if(T=b.error){if(m&&m.onServerError)m.onServerError(u,b);x.reject(new _.$2("Returned error",u,T))}else{GaK(S,P,b,u);hcJ(b);if(T=$Gf(b))for(var K=_.n(T),G=K.next();!G.done;G=K.next()){G=G.value;var v=_.E().resolve(_.PQ(vKJ))||lN;if(!_.pR.instance||!v.some(function(w){return!!_.g(u,w)})||_.f("kevlar_response_processor_allowlist_killswitch")){var a=v=void 0;
((a=_.g((v=G)==null?void 0:v.commandMetadata,_.Yo))==null?0:a.sendPost)?_.Bu(S,[G]):_.cu(S,[G],P)}}(K=_.g(b==null?void 0:b.frameworkUpdates,Xt))&&J&&J(K);if(m&&m.onSuccess)m.onSuccess(u,b);x.resolve(new _.ZK(b,T))}}else x.reject(new _.$2("Invalid service endpoint provided",u))},function(b){x.reject(b)});
return x.promise};
hcJ=function(Y){var S;(Y=(S=_.g(Y==null?void 0:Y.onResponseReceivedCommand,_.Ie9))==null?void 0:S.continuationItems)&&(Y==null?void 0:Y.length)===1&&_.g(Y[0],aeE)&&_.Fk("so_r",void 0,"search_overview_answer")};
xk8=function(Y,S,P,u,W,m){var J;return(J=S.getNetworkManager&&S.getNetworkManager()?S.getNetworkManager():_.E().resolve(_.PQ(_.ER)))?Dka(J,Y,S,P,u,W,m):_.t9("No network manager.")};
GaK=function(Y,S,P,u){if(P=P.trackingParams||P.loggingDirectives&&P.loggingDirectives.trackingParams){var W;(_.g(u,Lrf)||_.g(u,wDU)||_.g(u,pDX))&&u.clickTrackingParams?W=_.Re(u.clickTrackingParams):_.f("web_graft_to_parent_command")&&u.clickTrackingParams&&(W=_.Re(u.clickTrackingParams));var m;u=(m=S.getScreenLayer)==null?void 0:m.call(S);S=_.BF().graftServerVe(P,W,u);_.jR(Y,"yt-store-grafted-ve-action",[S])}};
_.Frh=function(Y){var S=new Image;return new _.qs(function(P,u){S.addEventListener("load",function(){P()});
S.addEventListener("error",function(){u()});
S.src=Y})};
sEa=function(Y){return!!Y};
dk8=function(Y){return!!Y};
le$=function(Y,S,P){var u=Y.rowIndex;u!==void 0&&_.jR(Y.hostElement,"yt-section-reactive-dismissal",[u,S,P])};
_.iN=function(Y,S,P){Y=_.n(Y);for(var u=Y.next();!u.done;u=Y.next()){u=u.value;if(u===S)break;for(var W=_.n(P),m=W.next();!m.done;m=W.next())if(m=m.value,u.tagName===m||!_.f("web_event_button_role_check_killswitch")&&u.role==="button"&&m==="BUTTON")return!0}return!1};
_.oF=function(Y,S,P){Y=_.n(Y);for(var u=Y.next();!u.done;u=Y.next()){u=u.value;if(u===S)break;for(var W=_.n(P),m=W.next();!m.done;m=W.next())if(u.id===m.value)return!0}return!1};
tg=function(Y,S){if(!Y&&!S)return"medium";Y=Math.max(Y||0,S||0);return Y>=256?"large":Y>=96?"medium":"small"};
XDU=function(Y){switch(Y){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Q5=function(){var Y=_.E().resolve(_.PQ(_.Ag));return Y?(Y=Y.getCurrentPage())?_.Un(Y):null:null};
_.ks=function(){var Y=_.Q5();if(!Y){var S=_.E().resolve(_.PQ(_.Ag)),P=S?typeof S:"no page manager";S=S?S.getCurrentPage():null;P=new _.$2("Player is missing when requested.",P,S?S.tagName:"no page");_.p_(P)}return Y};
_.Un=function(Y){return Y&&Y.getPlayer?Y.getPlayer():null};
Z3u=function(Y,S){Y={args:{raw_player_response:Y}};S&&(Y.args=Object.assign({},Y.args,S));return Y};
i3a=function(Y){if(Y.args){if(Y.args.raw_player_response)return Y.args.raw_player_response;if(Y.args.player_response)return JSON.parse(Y.args.player_response)}};
_.oKU=function(Y,S){var P={url:"/watch?v="+Y.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};Y.playlistId&&(P.url+="&list="+Y.playlistId);Y.playerParams&&(P.url+="&pp="+Y.playerParams);Y={watchEndpoint:Y,commandMetadata:{webCommandMetadata:P}};S&&(Y.clickTrackingParams=S);return Y};
A4a=function(){return tsh||!!_.tA("yt.player.Application")};
QE9=function(){return Uk1||!!document.querySelector("link#player-css")};
Msh=function(){function Y(){tsh=!0;kau.resolve()}
var S,P;return _.B(function(u){kau||(kau=new _.nV,A4a()?Y():(S=document.createElement("script"),S.addEventListener("load",Y),P=_.Tl(_.X3("PLAYER_JS_URL")),_.I9(S,P),document.head.appendChild(S)));return u.return(kau.promise)})};
NrE=function(){function Y(){Uk1=!0;y4Y.resolve()}
if(!y4Y)if(y4Y=new _.nV,QE9())Y();else{var S=document.createElement("link");S.id="player-css";S.addEventListener("load",Y);var P=_.Tl(_.X3("PLAYER_CSS_URL"));_.wE(S,P,"stylesheet");document.head.appendChild(S)}return y4Y.promise};
H3h=function(){return A4a()&&QE9()?Promise.resolve([]):Promise.all([Msh(),NrE()])};
Vsh=function(Y,S,P){var u={args:{}};Y&&(u.args.raw_player_response=Y);S&&(u.args.raw_watch_next_response=S);P&&(u.args=Object.assign({},u.args,P));return u};
SIa=function(Y,S,P){var u=!1;u=u===void 0?!0:u;Y=typeof Y==="string"?_.Mw(document,Y):Y;var W=ecX+"_"+_.Pt(Y),m=O3h[W];if(m&&u)return YIf(S,P)?m.api.loadVideoByPlayerVars(S.args||null):m.loadNewVideoConfig(S),m.api;m=new y5(Y,W,S,P,void 0);O3h[W]=m;m.addOnDisposeCallback(function(){delete O3h[m.getId()]});
return m.api};
YIf=function(Y,S){return S&&S.serializedExperimentFlags?S.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):Y&&Y.args&&Y.args.fflags?Y.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
Pz$=function(){var Y=new _.nV;Y.resolved=!1;var S=Y.resolve;Y.resolve=function(P){Y.resolved=!0;S(P)};
return Y};
W_h=function(Y){var S={};ueh().install((S.document_disposed={callback:Y},S))};
Nw=function(Y,S){if(!Y&&Math.random()<=_.z_("kevlar_unified_player_logging_threshold")){Y=Error("vh`"+(S?S:"Unspecified error"));if(_.f("kevlar_unified_player_throw_errors"))throw Y;_.sf(Y)}};
_.zGa=function(){var Y=_.tA("ytDebugData.callbacks");Y||(Y={},_.HQ("ytDebugData.callbacks",Y));return Y};
njf=function(Y,S){var P=_.zGa();if(_.f("web_dd_iu")||mN1.includes(Y))P[Y]=S};
jcu=function(){return _.B(function(Y){return Y.return({isLeader:_.Eph(_.Na().getState()),c:_.X3("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.X3("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Jau=function(){var Y;_.B(function(S){if(S.nextAddress==1)return njf("APP_STATE",jcu),_.q(S,_.E().resolve(_.HX),2);Y=S.yieldResult;njf("PI",function(){return _.B(function(P){return P.return(Y.getVideoStats())})});
_.Yt(S)})};
BYU=function(Y){var S=_.Vx(_.A9(_.Pa.location.href));Y=_.Vx(_.A9(Y));return _.f("kevlar_clear_non_displayable_url_params")?S==V5(Y):V5(S)==V5(Y)};
V5=function(Y){var S=_.ca8(Y);Y=Y.slice(0);var P=["frags"];_.f("kevlar_hide_pp_url_param")&&P.push("pp");_.f("kevlar_hide_time_continue_url_param")&&P.push("time_continue");P=_.n(P);for(var u=P.next();!u.done;u=P.next())u=u.value,Y=_.O2(_.Vx(Y),u);return _.Vx(Y)+(S?"#"+S:"")};
ei=function(Y,S){S=Number(S)*1E3;var P=Math.round((0,_.Oh)()),u=P.toString();Y={innertubeResponse:Y,serverDateTimestampMs:u,lastModifiedTimestampMs:u,expireTimestampMs:(P+S).toString()};if(S=_.X3("INNERTUBE_CONTEXT_CLIENT_NAME"))Y.clientName=S;return Y};
qI9=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++Cza};
_.RGK=function(){var Y=_.wf(),S=_.pM();S&&Y&&_.QP(S,[Y],!0)};
bKa=function(Y){return Y&&xN8.some(function(S){return Y.includes(S)})};
$NX=function(Y){var S=_.g(Y,_.tp);if(!S)return!1;var P=S.url,u=S.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!P)return _.p_(Error("Ah")),!1;if(S.target==="TARGET_NEW_WINDOW"){var W={};_.f("resolve_url_parent_tracking_params")&&(!_.eX(P)||OW(window.location.href,P))&&(W={endpoint:Y,itct:Y.clickTrackingParams});ew8(W);Y=null;try{if(u){a:{var m=P,J=W;u=u===void 0?!1:u;J&&_.ef(m,J);var c=_.Bx(m),C=_.mp(c);m!=C&&_.AA(Error("$f`"+m));m=C;try{if(u){C=m;C=WMa(C);IK(C);Y=_.$U(window,C,"_blank",
"attributionsrc");break a}}catch(K){_.ik(K)}IK(m);Y=_.$U(window,c,"_blank")}TYu(_.E().resolve(K_Y),Y,P);return!0}}catch(K){_.p_(K)}_.ef(P,W);W={target:"_blank",noopener:_.f("set_window_noopener_ks")&&!S.allowOpener};S=window;c=zT(P)?P:_.Bx(typeof P.href!="undefined"?P.href:String(P));Y=self.crossOriginIsolated!==void 0;m="strict-origin-when-cross-origin";window.Request&&(m=(new Request("/")).referrerPolicy);C=W.noreferrer;if(Y&&C&&m==="unsafe-url")throw Error("qe");m=C&&!Y;C=W.target||P.target;u=
[];J=[];var x=!1;for(T in W){var b=W[T];switch(T){case "width":case "height":case "top":case "left":u.push(T+"="+b);break;case "target":break;case "noopener":case "noreferrer":b?J.push(T):(x=!0,J.push(T+"=false"));break;case "attributionsrc":u.push(T+(b?"="+b:""));break;default:u.push(T+"="+(b?1:0))}}var T=C!==void 0&&!["_blank","_self","_top","_parent",""].includes(C);T=r1()&&T;Eja&&Y&&u.length===0&&J.length>0&&!T&&!x?(J.length===2&&(J=["noreferrer"]),_.$U(S,c,C,J[0]),Y=f$1()):(T=u.join(","),_.p8()&&
S.navigator&&S.navigator.standalone&&C&&C!="_self"?(T=_.nN("A"),xU(T,c),T.target=C,m&&(T.rel="noreferrer"),((W=W.attributionsrc)||W==="")&&T.setAttribute("attributionsrc",W),W=document.createEvent("MouseEvent"),W.initMouseEvent("click",!0,!0,S,1),T.dispatchEvent(W),T=f$1()):m?(T=_.$U(S,"",C,T),S=_.mp(c),T&&(T.opener=null,S===""&&(S="javascript:''"),S='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+On(S)+'">',S=Kh(S),(W=T.document)&&W.write&&(W.write(E4(S)),
W.close()))):((T=_.$U(S,c,C,T))&&W.noopener&&(T.opener=null),T&&W.noreferrer&&(T.opener=null)),Y=T);TYu(_.E().resolve(K_Y),Y,P);return!0}T=_.Cz(P);T=bKa(T)||P==="https://studio.youtube.com/";S=!(!_.eX(P)||OW(window.location.href,P));W=P.indexOf("disable_polymer=1")>=0;if(S||W||T)IK(P),Lb(),_.aK(P,void 0,void 0,window.top,gjf);else return _.sf(new _.$2("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",Y)),!1;return!0};
_.hG9=function(Y,S){S=S===void 0?0:S;if(!(_.g(Y,raK)||_.g(Y,GOJ)||_.g(Y,_.tp)&&_.g(Y,_.tp).url))return!1;var P,u=(P=_.g(Y,_.tp))==null?void 0:P.url;P=u?{externalLinkData:{url:u}}:null;return _.BF().clickCommand(Y,P,S)};
_.YI=function(Y,S){return _.BT(Y.entities,"subscriptionStateEntity",S)};
vj9=function(Y,S){return _.BT(Y.entities,"subscriptionNotificationStateEntity",S)};
DNf=function(Y,S){return _.BT(Y.entities,"upcomingEventReminderStateEntity",S)};
I$9=function(Y,S){return _.BT(Y.entities,"engagementToolbarSurfaceEntityPayload",S)};
a$U=function(Y,S){return _.BT(Y.entities,"triStateButtonStateEntityPayload",S)};
L_U=function(Y,S){return _.BT(Y.entities,"commerceCartCheckoutButtonEntity",S)};
_.wCu=function(Y,S){return _.BT(Y.entities,"playlistLoopStateEntity",S)};
pCJ=function(Y,S){return _.BT(Y.entities,"commandEntity",S)};
scX=function(Y,S,P,u,W){W=W===void 0?{}:W;return function(m){var J,c;var C=((J=Y.loggingDirectives)==null?0:(c=J.clientVeSpec)==null?0:c.uiType)?_.TI(Y.loggingDirectives.clientVeSpec.uiType):void 0;W.clickedVisualElement||(W.clickedVisualElement=C);C=F_K(Y,S);P(C,m);C=_.n(C);for(J=C.next();!J.done;J=C.next()){J=J.value;c=u;var x=m,b=W;b.form?b.form.event=x:b.form={element:c,event:x};bN(J,b)}}};
F_K=function(Y,S){var P=[];S?(Y.toggledCommand&&P.push(Y.toggledCommand),Y.toggledServiceEndpoint&&P.push(Y.toggledServiceEndpoint)):(Y.defaultCommand&&P.push(Y.defaultCommand),Y.defaultServiceEndpoint&&P.push(Y.defaultServiceEndpoint),Y.defaultNavigationEndpoint&&P.push(Y.defaultNavigationEndpoint));return P};
dNE=function(Y,S){var P=Y.toggledStyle||Y.style,u;switch((u=S?P:Y.style)==null?void 0:u.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"}}};
l$K=function(Y,S){S=S.uniqueId+"-border";var P,u;var W=(u=(P=_.E().resolve(_.PQ(_.F5)))==null?void 0:P())!=null?u:!1;return{animationRef:Y,animationConfig:{name:S,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(W?"dark":"light")+"_v2.json"}}};
_.SF=function(){return _.B(function(Y){return Y.nextAddress==1?_.q(Y,_.E().resolve(_.HX),2):Y.return(_.E().resolve(XC$)())})};
_.PL=function(){return _.E().resolve(XC$)()};
_.uL=function(){return pE(function(){return{lottieEl:void 0}})};
ZKa=function(Y,S){return Y.startsWith(S.uniqueId)};
iKK=function(Y){var S,P;_.B(function(u){if(u.nextAddress==1)return _.q(u,_.SF(),2);S=u.yieldResult;if((P=S)==null||!P.addEventListener)return WL(),u.return();S.addEventListener("onCueRangeEnter",Y);_.Yt(u)})};
oj9=function(Y){var S,P;_.B(function(u){if(u.nextAddress==1)return _.q(u,_.SF(),2);S=u.yieldResult;if((P=S)==null||!P.removeEventListener)return WL(),u.return();S.removeEventListener("onCueRangeEnter",Y);_.Yt(u)})};
txX=function(Y){var S,P,u,W,m;_.B(function(J){if(J.nextAddress==1)return _.q(J,_.SF(),2);S=J.yieldResult;if((P=S)==null||!P.addCueRange)return WL(),J.return();u=_.n(Y.timings);for(W=u.next();!W.done;W=u.next())m=W.value,S.addCueRange(Y.uniqueId+"-"+m,m/1E3,(m+100)/1E3);_.Yt(J)})};
AaY=function(Y){var S,P,u,W,m;_.B(function(J){if(J.nextAddress==1)return _.q(J,_.SF(),2);S=J.yieldResult;if((P=S)==null||!P.removeCueRange)return WL(),J.return();u=_.n(Y.timings);for(W=u.next();!W.done;W=u.next())m=W.value,S.removeCueRange(Y.uniqueId+"-"+m);_.Yt(J)})};
UNE=function(){var Y,S,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,_.SF(),2);Y=u.yieldResult;if((S=Y)==null||!S.getPlayerState)return WL(),u.return();P=Y.getPlayerState();return u.return(P===2)})};
WL=function(){_.sf(new _.$2("Smartimation player does not exist or is corrupted"))};
yaX=function(Y){var S=QcJ;kOU.push(Y);Mx$||(S(function(){for(var P=_.n(kOU),u=P.next();!u.done;u=P.next())u=u.value,u();kOU.length=0;Mx$=!1}),Mx$=!0)};
QcJ=function(Y){Promise.resolve().then(Y)};
zz=function(Y){Y=_.n(HsE(Y));var S=Y.next().value,P=Y.next().value,u=!1;_.LE(function(){return function(){u=!0}});
return[S,function(W){yaX(function(){u&&!_.f("cow_prevent_state_setter_after_cleanup_killswitch")||P(W)})}]};
HKu=function(Y){function S(x){var b;return _.B(function(T){if(T.nextAddress==1)return(b=!ZKa(x,u)||!u.enabled)?T.jumpTo(2):_.q(T,UNE(),3);T.nextAddress!=2&&(b=T.yieldResult);if(b)return T.return();P();setTimeout(function(){C(!1)},1500);
_.Yt(T)})}
function P(){setTimeout(function(){C(!0);var x;(x=m.lottieEl)==null||x.goToAndPlay(0)},150)}
var u=Y.settings;var W=Y.className;Y=Y.children;var m=_.uL(),J=_.n(zz(!1)),c=J.next().value,C=J.next().value;u||(u={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.sf(new _.$2("Smartimation Settings is undefined")));aj(function(){if(u.experimentEnabled)return u.enabled?iKK(S):(C(!1),oj9(S)),function(){oj9(S)}},[u.enabled,
u.experimentEnabled]);aj(function(){if(u.experimentEnabled)return txX(u),function(){AaY(u)}},[u.timings.join("")]);
return _.R("yt-smartimation",{class:_.Si(W,NYY(c,u))},_.kS(u.experimentEnabled,function(){return _.R("div",{class:"smartimation__border"},_.R(QyK,{className:"smartimation__border-gradient",data:l$K(m,u)}))}),_.R("div",{class:"smartimation__content"},Y))};
NYY=function(Y,S){var P=["smartimation"];S.experimentEnabled&&P.push("smartimation--experiment-enabled");Y&&P.push("smartimation--active-border");try{var u;var W=(u=window.CSS)!=null&&u.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(m){_.sf(new _.$2("Smartimation CSS.supports threw an error")),W=!1}W&&P.push("smartimation--enable-masking");
return P.join(" ")};
VxJ=function(){try{var Y;return(Y=window.CSS)!=null&&Y.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(S){return _.sf(new _.$2("Smartimation CSS.supports threw an error")),!1}};
Wja=function(Y,S,P,u,W){var m=Y.playlistId?eGa:OK8;S=S();P=P();W=!!Y.videoId&&W()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.fA(S))return Yoh({data:Y,actionType:m,disabled:W},P);if(Y.videoId&&u())return So$({data:Y,actionType:m,disabled:W});switch(S){case "TRANSFER_STATE_UNKNOWN":return So$({data:Y,actionType:m,disabled:W});case "TRANSFER_STATE_FAILED":return Y.videoId?PRJ({data:Y,actionType:m,disabled:W}):uNJ({data:Y,actionType:m,disabled:W});case "TRANSFER_STATE_COMPLETE":return uNJ({data:Y,
actionType:m,disabled:W});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Yoh({data:Y,actionType:m,disabled:W},P);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return Y.videoId?PRJ({data:Y,actionType:m,disabled:W}):So$({data:Y,actionType:m,disabled:W});default:return So$({data:Y,actionType:m,disabled:W})}};
zZX=function(Y,S){var P=Y.onTapCommand,u=_.vF(P);if(Y.videoId&&_.g(u,_.mA))return _.g(u,_.mA).action=S,P;Y.playlistId&&_.g(u,_.n2)&&(_.g(u,_.n2).action=S);return P};
So$=function(Y){var S=Y.data;var P=Y.actionType;Y=Y.disabled;return{text:mXJ,iconType:"OFFLINE_DOWNLOAD",onTap:zZX(S,P.ACTION_ADD),disabled:Y}};
Yoh=function(Y,S){var P=Y.data;var u=Y.actionType;Y=Y.disabled;var W="OFFLINE_DOWNLOAD";S>=0&&S<=.1?W="OFFLINE_DOWNLOADING_ZERO":S>.1&&S<=.3?W="OFFLINE_DOWNLOADING_TWENTY":S>.3&&S<=.5?W="OFFLINE_DOWNLOADING_FORTY":S>.5&&S<=.7?W="OFFLINE_DOWNLOADING_SIXTY":S>.7&&S<1?W="OFFLINE_DOWNLOADING_EIGHTY":S===1&&(W="OFFLINE_PIN");return{text:n8Y,iconType:W,onTap:zZX(P,u.ACTION_REMOVE_WITH_PROMPT),disabled:Y}};
uNJ=function(Y){var S=Y.data;var P=Y.actionType;Y=Y.disabled;return{text:jGa,iconType:"OFFLINE_PIN",onTap:zZX(S,P.ACTION_REMOVE_WITH_PROMPT),disabled:Y}};
PRJ=function(Y){var S=Y.data;var P=Y.actionType;Y=Y.disabled;return{text:J3u,iconType:"OFFLINE_DOWNLOAD",onTap:zZX(S,P.ACTION_RETRY),disabled:Y}};
BjK=function(){var Y=_.n(zz(!1)),S=Y.next().value,P=Y.next().value;return function(){P(!S)}};
c3E=function(Y){return pE(function(){return{value:Y}})};
CRu=function(Y,S){var P=c3E(Y),u=c3E(S);aj(function(){P.value=Y},[Y]);
aj(function(){u.value=S},S&&S.length>=1?S:[void 0]);
var W=pE(function(){return{value:void 0}});
if(Y!==P.value||u.value!==S||W.value===void 0)W.value=ZQ(Y,S);var m=BjK();_.LE(function(){function J(){var C=ZQ(P.value,S);C!==W.value&&(W.value=C,m())}
var c=_.X2().subscribe(J);J();return c});
return W.value};
_.jF=function(Y,S){return CRu(Y,[S])};
_.Jq=function(Y,S){var P=Sk8();return _.fJ(function(){P();return ZQ(Y,[_.wK(S)||""])},void 0,"HaeHEc")};
qoY=function(Y){var S=_.Jq(_.sC,function(){return Y().videoId}),P=_.Jq(_.dT,function(){return Y().playlistId});
return function(){return Y().videoId?S:Y().playlistId?P:_.n(_.qb("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
RZE=function(Y){var S=_.Jq(lI,function(){return Y().videoId}),P=_.Jq(_.KaY,function(){return Y().playlistId});
return function(){return Y().videoId?S:Y().playlistId?P:_.n(_.qb(0,void 0,"K4tgOc")).next().value}};
xXh=function(Y){var S=_.Jq(_.vpX,function(){return Y().videoId});
return function(){return Y().videoId?S:_.n(_.qb(!1,void 0,"Oaxwcf")).next().value}};
bgU=function(Y){var S=_.Jq(gp9,function(){return Y().videoId});
return function(){return Y().videoId?S:_.n(_.qb("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
Tjh=function(){return{}};
fau=function(Y){var S=Y.backgroundLottieRef;var P=Y.foregroundLottieRef;var u=Y.children;var W=Y.wrapperClass;Y=Y.disableAnimation;Y=(_.f("web_animated_actions")||_.f("web_animated_actions_v2"))&&!Y;return _.R("yt-animated-action",{class:_.Si("animated-action__container",W)},_.R("div",{class:"animated-action__content-with-background"},_.kS(Y,function(){return _.R(KjU,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:S,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(E8J()?"dark":"light")+"_v5.json"}}})}),u),_.kS(Y,function(){return _.R(KjU,{lottiePlayerProps:{animationRef:P,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(E8J()?"dark":"light")+"_v4.json"}}})}))};
KjU=function(Y){var S=Y.wrapperClass;var P=Y.lottieClass;Y=Y.lottiePlayerProps;return _.R("div",{class:_.uN("animated-action__lottie",S),"aria-hidden":"true"},_.R(QyK,{className:P,data:Y}))};
E8J=function(){var Y,S;return(S=(Y=_.E().resolve(_.PQ(_.F5)))==null?void 0:Y())!=null?S:!1};
g8K=function(){var Y,S;return(S=(Y=_.E().resolve(_.PQ(_.F5)))==null?void 0:Y())!=null?S:!1};
r3a=function(Y,S){Y=Y===void 0?$Xf:Y;switch(S.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},Y,{isOpen:S.payload});default:return Y}};
hZ1=function(Y,S){Y=Y===void 0?GFh:Y;switch(S.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},Y,{isAllowed:S.payload});default:return Y}};
DXY=function(Y,S){Y=Y===void 0?v8a:Y;switch(S.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},Y,{errorMessage:S.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},Y,{title:S.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},Y,{privacy:S.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},Y,{isDisabled:S.payload});default:return Y}};
aaa=function(Y,S){Y=Y===void 0?IaY:Y;switch(S.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},Y,{isOpen:S.payload});default:return Y}};
wo1=function(Y,S){Y=Y===void 0?LjK:Y;switch(S.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},Y,{isFullscreen:S.payload});case "SET_NAVIGATION_BUTTON":var P=S.payload.targetId,u=Object.assign({},Y.navigationButtons);u[P]=S.payload.button;return Object.assign({},Y,{navigationButtons:u});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},Y,{topPanelId:S.payload});case "SET_SECONDARY_HEADER":return P=S.payload.panelId,u=Object.assign({},Y.secondaryHeader),u[P]=S.payload.secondaryHeader,
Object.assign({},Y,{secondaryHeader:u});default:return Y}};
dXh=function(){return Rk(Object.assign({},{entities:Ow1,voiceSearch:CAJ,engagementPanel:wo1,bottomSheet:r3a,cinematicSetting:hZ1,shorts:f39,drawerLayout:aaa,createPlaylist:DXY,locationCollection:poU,reportChannel:FjX,reportForm:sGu},gmY))};
la$=function(Y,S){return"https://www.gstatic.com/youtube/img/lottie/"+Y+"/"+S+".json"};
XoJ=function(Y){return{lottiePlayerProps:{animationConfig:{name:Y.name,path:la$("custom_animated_like_icon",Y.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:Y.totalFrames,lazyLoad:!0}};
Zgh=function(Y,S){_.wc.addLowPriorityJob(function(){var P,u,W;return _.B(function(m){switch(m.nextAddress){case 1:return _.ND(m,2),_.q(m,sy1(),4);case 4:return _.q(m,fetch(Y),5);case 5:return P=m.yieldResult,_.q(m,P.json(),6);case 6:u=m.yieldResult;Ys.set(Y,u);requestAnimationFrame(function(){S(u)});
_.tc(m,0);break;case 2:W=_.O4(m),_.sf(W),_.Yt(m)}})})};
ig8=function(Y){var S={animationConfig:{},listeners:{}},P=function(){Y(!0)};
S.listeners.data_failed=P;S.listeners.error=P;S.listeners.data_ready=function(){Y(!1)};
return S};
BL=function(Y){var S=Y.model;var P=Y.subscribed;var u=Y.isOverlay;var W=Y.element;var m=Y.commandController;var J=Y.notificationState;if(P){var c,C;var x=(S==null?void 0:(c=S.buttonStyle)==null?void 0:c.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:S==null?void 0:(C=S.unsubscribeButtonContent)==null?void 0:C.buttonText}else{var b;x=S==null?void 0:(b=S.subscribeButtonContent)==null?void 0:b.buttonText}a:{var T;switch(S==null?void 0:(T=S.buttonStyle)==
null?void 0:T.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":c="S";break a;default:c="M"}}a:if(u)u="overlay";else switch(S.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":u="overlay";break a;default:u="mono"}a:if(P)var K="tonal";else switch((K=S.buttonStyle)==
null?void 0:K.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":K="tonal";break a;default:K="filled"}return{style:u,type:K,state:S.disableSubscribeButton?"disabled":"active",size:c,focused:Y.focused,toggled:P,accessibilityLabel:o8a(S,P,J),buttonText:x,iconPosition:S.disableNotificationBell?"none":"leading-trailing",onTap:tEa(S,P,W,m),disableTextEllipsis:!!Y.disableTextEllipsis}};
tEa=function(Y,S,P,u){return function(W){if(S){var m;var J=Y.disableNotificationBell?_.vF(Y==null?void 0:(m=Y.unsubscribeButtonContent)==null?void 0:m.onTapCommand):_.vF(Y==null?void 0:Y.onShowSubscriptionOptions)}else{var c;J=_.vF(Y==null?void 0:(c=Y.subscribeButtonContent)==null?void 0:c.onTapCommand)}J&&bN(J,{form:{element:P},commandController:u});W.stopPropagation()}};
o8a=function(Y,S,P){if(S){if(Y==null?0:Y.disableNotificationBell){var u;return Y==null?void 0:(u=Y.unsubscribeButtonContent)==null?void 0:u.accessibilityText}switch(P){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var W;return Y==null?void 0:(W=Y.bellAccessibilityData)==null?void 0:W.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var m;return Y==null?void 0:(m=Y.bellAccessibilityData)==null?void 0:m.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var J;return Y==null?void 0:(J=
Y.bellAccessibilityData)==null?void 0:J.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var c;return Y==null?void 0:(c=Y.bellAccessibilityData)==null?void 0:c.disabledLabel;default:var C;return Y==null?void 0:(C=Y.unsubscribeButtonContent)==null?void 0:C.accessibilityText}}else{var x;return Y==null?void 0:(x=Y.subscribeButtonContent)==null?void 0:x.accessibilityText}};
C2=function(Y){if(!Y)return null;switch(Y){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":Y="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":Y="NOTIFICATIONS_OFF";break;default:Y="NOTIFICATIONS_NONE"}return Y};
A3X=function(Y,S,P){P.subscribed!==S&&((P=P.key)&&_.ip(_.qE("subscriptionStateEntity",P,{key:P,subscribed:S})),Y.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:S})),S||_.nb(Y,"yt-unsubscribe-action"))};
QGa=function(Y){Y=_.g(_.vF(Y),_.Rq);var S,P,u,W;return(W=_.g(Y==null?void 0:(S=Y.panelLoadingStrategy)==null?void 0:(P=S.inlineContent)==null?void 0:(u=P.sheetViewModel)==null?void 0:u.content,UXa))==null?void 0:W.listItems};
kF9=function(Y,S){if(Y.onShowSubscriptionOptions&&S&&(Y=QGa(Y.onShowSubscriptionOptions),Y!=null&&Y.length)){var P=C2(S);Y.forEach(function(u){u=_.g(u,_.xI);var W,m,J,c,C=u==null?void 0:(W=u.leadingImage)==null?void 0:(m=W.sources)==null?void 0:(J=m[0])==null?void 0:(c=J.clientResource)==null?void 0:c.imageName;u&&C&&(u.isSelected=C===P)})}};
ME9=function(Y,S,P,u){S&&P?Y.style.width=P+"px":!S&&u&&(Y.style.width=u+"px")};
y31=function(Y,S,P){var u;(u=Y.lottieEl)==null||u.goToAndPlay(0);var W;(W=S.lottieEl)==null||W.goToAndPlay(0);_.bL(_.wc,function(){var m;(m=P.lottieEl)==null||m.goToAndPlay(0)},300)};
OgY=function(Y){var S=_.Ms(),P=_.Ms(),u=_.Ms(),W=_.uL(),m=_.uL(),J=_.uL(),c=_.E().resolve(Nj8),C,x=(C=_.jF(_.YI,Y.data.stateEntityStoreKey))!=null?C:void 0,b,T,K,G=(K=_.jF(vj9,(T=(b=Y.data.notificationStateEntityStoreKeys)==null?void 0:b.subsNotificationStateKey)!=null?T:""))!=null?K:void 0;C=!!Y.data.disableNotificationBell;var v=!Y.data.enableSubscribeButtonPostClickAnimation;b=_.n(zz(0));var a=b.next().value,w=b.next().value;b=_.n(zz(0));var F=b.next().value,U=b.next().value;b=_.n(zz(!1));var V=
b.next().value,M=b.next().value;b=_.n(zz(!1));var zJ=b.next().value,O=b.next().value,ca=F3(!1),hu=F3("");b=_.n(zz(!1));var ah=b.next().value,va=b.next().value,yX=function(){O(!0);_.bL(_.wc,function(){O(!1)},1500)};
aj(function(){zJ&&!v&&x&&y31(W,m,J)},[zJ]);
aj(function(){!v&&x&&(Y.animateWidth&&ME9(S.value,!!x.subscribed,a,F),x.subscribed&&x.key===hu.value&&yX(),x.key&&(hu.value=x.key))},[x==null?void 0:x.subscribed,
x==null?void 0:x.key]);var la=ww(function(){var G3=Y.data,wd=!(x==null||!x.subscribed),Wd=!!Y.isOverlay,kE=V?S.value:void 0,n8=G==null?void 0:G.state;kF9(G3,n8);return BL({model:G3,subscribed:wd,isOverlay:Wd,element:kE,notificationState:n8,disableTextEllipsis:!0,focused:ah})},[Y.data,
x,G,ah,Y.isOverlay,V]),w1=function(){var G3=_.E().resolve(_.PQ(_.Tz));G3&&va(G3.isKeyBoardInUse())},U9=function(){va(!1)};
F4J(S,function(G3){nu();x&&(G3.detail.endpoint.subscribeEndpoint||G3.detail.endpoint.unsubscribeEndpoint)&&A3X(S.value,!x.subscribed,x)});
_.kG("yt-player-subscribe",function(G3){x&&G3===Y.data.channelId&&A3X(S.value,!0,x)});
_.kG("yt-player-unsubscribe",function(G3){x&&G3===Y.data.channelId&&A3X(S.value,!1,x)});
_.kG("yt-update-subscribe-button-action",function(G3){G3=_.g(G3,Hga);x&&G3&&G3.channelId===Y.data.channelId&&A3X(S.value,!!G3.subscribed,x)});
_.LE(function(){S.value&&(S.value.addEventListener("focusin",w1),S.value.addEventListener("focusout",U9));_.hp(_.wc,function(){nu()});
M(!0);return function(){S.value&&(S.value.removeEventListener("focusin",w1),S.value.removeEventListener("focusout",U9))}});
var nu=function(){if(!v&&Y.animateWidth&&(P==null?0:P.value)&&(u==null?0:u.value)&&!ca.value){var G3=_.n((x==null?0:x.subscribed)?[P,u]:[u,P]),wd=G3.next().value;G3=G3.next().value;wd=Math.ceil(wd.value.getBoundingClientRect().width);G3=Math.ceil(G3.value.getBoundingClientRect().width);w(wd);U(G3);ME9(S.value,!(x==null||!x.subscribed),wd,G3);ca.value=!0}},Yc=function(){var G3=C2(G==null?void 0:G.state);
return v||G3!=="NOTIFICATIONS_NONE"?function(){return c(G3)}:function(){l2(VEY)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:J})}};
b=function(){var G3=C2(G==null?void 0:G.state);return v||G3!=="NOTIFICATIONS_NONE"?function(){return _.R(_.BX,{icon:G3!=null?G3:void 0})}:function(){return _.R(VEY,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:J})}};
var tu=!(x==null||!x.subscribed)&&!C&&!(G==null||!G.state),$_=!(x==null?0:x.subscribed),fu=$_&&!C&&!(G==null||!G.state);C={};T={};return _.R("yt-subscribe-button-view-model",{class:_.uN("yt-subscribe-button-view-model-wiz",(C["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(x==null||!x.subscribed)&&Y.animateWidth&&zJ,C["yt-subscribe-button-view-model-wiz--hidden"]=!(x==null?0:x.subscribed)&&Y.data.hideWhenUnsubscribed,C)),el:S},_.R(eZ8,{backgroundLottieRef:W,foregroundLottieRef:m,wrapperClass:_.uN("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(T["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=Y.animateWidth&&zJ,T["yt-subscribe-button-view-model-wiz__static-width"]=!Y.animateWidth,T)),disableAnimation:v},_.R("div",{el:P,class:_.uN("yt-subscribe-button-view-model-wiz__container"),idomKey:Y.data.channelId},_.f("web_wiz_button_shape")?_.R(gCu,{data:la,icon:tu?b():void 0,secondaryIcon:tu?function(){return _.R(_.BX,{icon:"EXPAND"})}:void 0}):_.R(Ns,null,function(){DuE(la,tu?Yc():void 0,tu?function(){return c("EXPAND")}:
void 0)}))),_.R("div",{el:u,
class:"yt-subscribe-button-view-model-wiz__invisible"},!Y.animateWidth||v||ca.value?null:_.f("web_wiz_button_shape")?_.R(gCu,{data:BL({model:Y.data,subscribed:$_,isOverlay:!!Y.isOverlay,element:S.value,disableTextEllipsis:!0}),icon:fu?function(){var G3;return _.R(_.BX,{icon:(G3=C2(G==null?void 0:G.state))!=null?G3:void 0})}:void 0,
secondaryIcon:fu?function(){return _.R(_.BX,{icon:"EXPAND"})}:void 0}):_.R(Ns,null,function(){DuE(BL({model:Y.data,
subscribed:$_,isOverlay:!!Y.isOverlay,element:S.value,disableTextEllipsis:!0}),fu?function(){return c(C2(G==null?void 0:G.state))}:function(){},fu?function(){return c("EXPAND")}:void 0)})))};
YAf=function(Y){if(Y){switch(Y){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":Y="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":Y="NOTIFICATIONS_OFF";break;default:Y="NOTIFICATIONS_NONE"}return Y}};
SAf=function(Y,S,P){P.subscribed!==S&&((P=P.key)&&_.ip(_.qE("subscriptionStateEntity",P,{key:P,subscribed:S})),Y.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:S})),S||_.nb(Y,"yt-unsubscribe-action"))};
P5a=function(Y){Y=_.g(_.vF(Y),_.Rq);var S,P,u,W;return(W=_.g(Y==null?void 0:(S=Y.panelLoadingStrategy)==null?void 0:(P=S.inlineContent)==null?void 0:(u=P.sheetViewModel)==null?void 0:u.content,UXa))==null?void 0:W.listItems};
uS8=function(Y,S){if(Y.onShowSubscriptionOptions&&S&&(Y=P5a(Y.onShowSubscriptionOptions),Y!=null&&Y.length)){var P=YAf(S);Y.forEach(function(u){u=_.g(u,_.xI);var W,m,J,c,C=u==null?void 0:(W=u.leadingImage)==null?void 0:(m=W.sources)==null?void 0:(J=m[0])==null?void 0:(c=J.clientResource)==null?void 0:c.imageName;u&&C&&(u.isSelected=C===P)})}};
Wk8=function(Y,S,P,u){S&&P?Y.style.width=P+"px":!S&&u&&(Y.style.width=u+"px")};
zYu=function(Y,S,P){var u;(u=Y.lottieEl)==null||u.goToAndPlay(0);var W;(W=S.lottieEl)==null||W.goToAndPlay(0);_.bL(_.wc,function(){var m;(m=P.lottieEl)==null||m.goToAndPlay(0)},300)};
K2=function(){return _.E().resolve(_.PQ(mf$))||{}};
n0a=function(Y){return typeof Y==="function"};
_.EP=function(Y){Object.keys(Y);var S=function(P,u){var W=S.mapping||Y;if(!P)return _.R(_.SX,null);if(Array.isArray(P)&&(P=jgE(W,S,P),Array.isArray(P))){if(!P.length)return _.R(_.SX,null);if(P.length>1){for(var m=!1,J=!1,c=[],C={},x=0;x<P.length;C={data$jscomp$1824:void 0},x++)if(C.data$jscomp$1824=P[x],C.data$jscomp$1824){var b=JQf(C.data$jscomp$1824,W),T=b.mappingEntry;b=b.rendererName;T&&b&&(T&&(!n0a(T)&&BWX(T)&&(J=!0),!n0a(T)&&T.asyncId||(m=!0)),c.push(cQE(C.data$jscomp$1824,T,b,S,u)))}return J&&
!m?_.R(_.SX,null,C51()):_.R(_.SX,null,c)}P=P[0]}if(!P)return _.R(_.SX,null);P=jgE(W,S,[P])[0];if(!P)return _.R(_.SX,null);m=JQf(P,W);W=m.mappingEntry;m=m.rendererName;return W&&m?_.R(_.SX,null,cQE(P,W,m,S,u)):_.R(_.SX,null)};
S.mapping=Y;return S};
_.qA8=function(Y){var S=void 0,P;for(P in Y)if(Y.hasOwnProperty(P)){S=P;break}return S};
jgE=function(Y,S,P){var u,W=(u=K2().preProcessOptions)==null?void 0:u.idomOptions;if(!W)return P;K2();return W.preProcessPropsIdom(Y,P,S.triggerRerender)};
JQf=function(Y,S){return(Y=_.qA8(Y))?{mappingEntry:S[Y],rendererName:Y}:{mappingEntry:void 0,rendererName:void 0}};
cQE=function(Y,S,P,u,W){if(!S)return _.R(_.SX,null);var m={};W&&W[P]&&(m=Object.assign({},W[P]));Y[P]!==void 0&&(m.data=Y[P]);if(n0a(S))return S.debugName||(S.debugName=P),_.R(S,m);S.asyncId&&(u.pendingIdsMap=u.pendingIdsMap||{},u.pendingIdsMap[P]=S.asyncId);return S.templateFn?S.templateFn(m):BWX(S)?C51():_.R(_.SX,null)};
BWX=function(Y){var S;return(S=Y.showPlaceholder)!=null?S:K2().defaultShowPlaceholder};
C51=function(){var Y=K2().placeholder;return Y()};
RY9=function(Y,S){S=S===void 0?{shouldPersist:!0}:S;return{useUpdatableData:function(P,u){var W=[],m=_.n(_.ji(function(){var x=P();if(u!=null&&u.length&&W){var b=W.length>0;for(var T=!1,K=0;K<u.length;K++){var G=u[K]();b&&G!==W[K]&&(T=!0);W[K]=G}b=T}else b=!1;if(b)_.f2.remove(C());else if(b=_.f2.get(C()))return b;return x})),J=m.next().value,c=m.next().value,C=_.fJ(function(){return Y(P())},void 0,"VFraLb");
_.D6(function(){if(C()!=null){gv.set(C(),[J,c,!1]);var x=C();_.aI(function(){gv.delete(x)})}});
return[J,function(x){c(x);S.shouldPersist&&_.f2.set(C(),x)}]},
getData:function(P){var u;return(u=gv.get(Y(P)))==null?void 0:u[0]()},
updateData:function(P,u){P=Y(P);var W=gv.get(P);if(!W)return!1;var m=_.n(W);W=m.next().value;m=m.next().value;u=u(W());m(u);S.shouldPersist&&_.f2.set(P,u);return!0},
useUpdatableDataIdom:function(P,u){var W=Y(P),m=_.f2.get(W),J=_.n(zz(m!=null?m:P)),c=J.next().value,C=J.next().value,x=F3(m!=null?m:P);aj(function(){if(W!=null)return gv.set(W,[function(){return x.value},
function(b){C(b);x.value=b},
gv.has(W)]),_.wc.addJob(function(){_.$I(_.wc,function(){var b=gv.get(W);b&&(b[2]=!1)},0)},8),function(){var b;
((b=gv.get(W))==null?0:b[2])||gv.delete(W)}},[W]);
aj(function(){c!==P&&(C(P),x.value=P)},u?[].concat(_.cz(u),[W]):[W]);
return[c,C]}}};
xf$=function(Y){var S=_.n(_.qb(!0,void 0,"bKtO6d")),P=S.next().value;S.next();return function(){var u=xZ(Y.children());return _.R(_.gw,{cond:P,then:function(){return u},
else:Y.fallback})}()};
_.rv=function(Y){var S=be1(Y),P=S.data,u=S.mapping,W=S.wrapper;S=S.pendingFallback;var m=function(){return TWY(_.wK(P))},J=function(){var c=m(),C=[];
c=_.n(c);for(var x=c.next();!x.done;x=c.next()){var b=void 0;x=x.value;var T=void 0;for(b in x)if(!(!x).hasOwnProperty(b)){T=b;break}(b=T)&&C.push(b)}return C};
return Y.data?_.R(xf$,{fallback:S},function(){return _.R(_.$Z,{each:J},function(c,C){var x=W?function(T){return W(function(){return u[c](T,C)},b,C)}:function(T){return u[c](T,C)};
x.debugName||(x.debugName=String(c));if(!u[String(c)])return document.createComment("");var b=Kku(m,c,C);return _.R(x,{data:b})})}):_.R(_.SX,null)};
be1=function(Y){var S=Y.targetId||E0E(Y.children);if(!Y.data||!S||_.f("mweb_new_replaceables_killswitch"))return Object.assign({},Y,{mapping:Y.children,wrapper:void 0});var P="stamper-"+fzh++,u=function(){var c;return(c=_.wK(Y.targetId))!=null?c:P};
S=_.n(g0E(function(){var c=TWY(Y.data());c.targetId=u;return c})).next().value;
var W=Object.assign({},K2().replaceableMapping,Y.children);if(Y.replacementWrapper){var m=W.notificationTextRenderer,J=W.notificationMultiActionRenderer;m&&(W.notificationTextRenderer=function(c,C){return Y.replacementWrapper(m({data:c.data},C))});
J&&(W.notificationMultiActionRenderer=function(c,C){return Y.replacementWrapper(J({data:c.data},C))})}return Object.assign({},Y,{data:S,
mapping:W,wrapper:function(c,C,x){return T3E({targetId:u,stamperIndex:x},c)}})};
Kku=function(Y,S,P){var u;return _.fJ(function(){var W=Y()[P()];if(W)u=W[S];else return _.sf(new _.$2("Stamper failed to find "+String(S)+" at index "+P()+" of data array of length "+(Y().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),u;return W[S]},void 0,"DHuMIe")};
E0E=function(Y){Y=_.n(Object.keys(Y));for(var S=Y.next();!S.done;S=Y.next())if(S=S.value,$fu.includes(S)||rQK.includes(S)||GGa.includes(S))return!0;return!1};
TWY=function(Y){return Y?Array.isArray(Y)?Y:[Y]:[]};
hYa=function(Y){Y=_.g(Y,_.Gz);return(Y==null?void 0:Y.iconName)&&!(Y==null?0:Y.title)};
IzJ=function(Y,S,P){var u;return _.R(_.SX,null,Y==null?void 0:(u=Y.actions)==null?void 0:u.map(function(W){return _.R("div",{class:function(){var m={"yt-flexible-actions-view-model-wiz__action":!0};m["yt-flexible-actions-view-model-wiz__action--row-action"]=S;m["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(hYa(W))var J=!0;else if(J=_.g(W,_.hq),(J==null?0:J.isToggled)&&hYa(J==null?void 0:J.toggledButtonViewModel)||(J==null||!J.isToggled)&&hYa(J==null?void 0:J.defaultButtonViewModel))J=
!0;else{var c;J=((c=_.g(W,v0f))==null?0:c.playlistId)?!0:!1}m=(m["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=J,m["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=P,m);return _.uN(m)}},Df$([W],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!S}}))}))};
azh=function(Y){var S=Y.layout===1,P,u=((P=Y.data)==null?void 0:P.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";P={};u=(P["yt-flexible-actions-view-model-wiz"]=!0,P["yt-flexible-actions-view-model-wiz--inline"]=!S,P["yt-flexible-actions-view-model-wiz--scrollable"]=u,P);var W,m;return _.R("yt-flexible-actions-view-model",{class:_.uN(Y.className,u)},(W=Y.data)==null?void 0:(m=W.actionsRows)==null?void 0:m.map(function(J){if(S){var c;return _.R("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
IzJ(J,S,!((c=Y.data)==null||!c.respectActionIntrinsicWidth)))}return IzJ(J,S,!1)}))};
Lkh=function(Y){return!(Y==null||!Y.iconName||(Y==null?0:Y.title))};
wnY=function(Y){var S=_.g(Y.data.toggleButtonViewModel,_.hq),P,u=(P=Y.data.dislikeEntityKey)!=null?P:"",W=_.jF(hg,u);S=Object.assign({},S,{isToggled:W?W.likeStatus==="DISLIKE":S.isToggled});return _.R("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.R(_.vL,{data:S,buttonShapeOverrides:Y.buttonShapeOverrideables,onToggle:function(m){W&&m!==(W.likeStatus==="DISLIKE")&&W.key&&_.ip(_.Dw("likeStatusEntity",W.key,{likeStatus:m?"DISLIKE":"INDIFFERENT",hadUserInteraction:m}))}}))};
FkX=function(Y){var S=_.f("web_supports_animations_api"),P=_.g(Y.data.toggleButtonViewModel,_.hq),u,W,m,J,c=_.n(zz({numberText:(J=(u=Y.likeCountEntity)==null?void 0:(W=u.likeCountIfIndifferent)==null?void 0:W.content)!=null?J:"",numberValue:Number((m=Y.likeCountEntity)==null?void 0:m.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),C=c.next().value,x=c.next().value,b,T,K,G;u=_.n(zz({numberText:(G=(b=Y.likeCountEntity)==null?void 0:(T=b.likeCountIfLiked)==null?void 0:T.content)!=null?
G:"",numberValue:Number((K=Y.likeCountEntity)==null?void 0:K.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));b=u.next().value;var v=u.next().value;T=_.n(zz(void 0));var a=T.next().value,w=T.next().value,F;T=(F=Y.data.likeStatusEntityKey)!=null?F:"";var U,V;F=(V=(U=Y.likeCountEntity)==null?void 0:U.key)!=null?V:"";var M=_.jF(hg,T),zJ=_.jF(zch,F);U=ww(function(){return(M==null?void 0:M.likeStatus)==="LIKE"},[M]);
aj(function(){var O,ca=zJ&&((O=zJ.likeCountIfIndifferent)==null?void 0:O.content)!==C.numberText;if(!a&&ca){var hu,ah;x({numberText:(ah=zJ==null?void 0:(hu=zJ.likeCountIfIndifferent)==null?void 0:hu.content)!=null?ah:"",numberValue:Number(zJ==null?void 0:zJ.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var va,yX;v({numberText:(yX=zJ==null?void 0:(va=zJ.likeCountIfLiked)==null?void 0:va.content)!=null?yX:"",numberValue:Number(zJ==null?void 0:zJ.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[zJ]);
P=Object.assign({},P,{isToggled:U});S=S&&Y.likeCountEntity;return _.R("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.R(_.vL,{data:P,buttonShapeOverrides:Y.buttonShapeOverrideables,animatedTextPropsDefault:S?C:void 0,animatedTextPropsToggled:S?b:void 0,onToggle:function(O){pna(O,M,a,w)},
style:function(){return Y.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
pna=function(Y,S,P,u){P&&_.wc.cancelJob(P);P=_.wc.addLowPriorityJob(function(){u(void 0)},5E3);
u(P);S&&Y!==(S.likeStatus==="LIKE")&&S.key&&_.ip(_.qE("likeStatusEntity",S.key,{key:S.key,likeStatus:Y?"LIKE":"INDIFFERENT",hadUserInteraction:Y}))};
Ze9=function(Y){var S,P=_.g((S=Y.data)==null?void 0:S.likeButtonViewModel,sg9),u;S=_.g((u=Y.data)==null?void 0:u.dislikeButtonViewModel,dfY);var W,m=(W=_.jF(hg,(P==null?void 0:P.likeStatusEntityKey)||""))!=null?W:P==null?void 0:P.likeStatusEntity;u=ww(function(){var J=Y.data,c;J=(J==null?void 0:(c=J.timedAnimationData)==null?void 0:c.animationTiming)||[];return{uniqueId:"like-dislike",timings:J,enabled:(m==null?void 0:m.likeStatus)==="INDIFFERENT"&&J.length>0,experimentEnabled:J.length>0}},[Y.data,
m]);return _.R("segmented-like-dislike-button-view-model",{class:_.uN(Y.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.R(_.lzJ,{settings:u},_.R("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},P?_.R(FkX,{data:P,likeCountEntity:Y.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,S?_.R(Xnh,{data:S,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
ieU=function(Y,S){var P=NT.get(Y)||{layerNode:S};P.layerNode=S;fT8(Y,P);Y.getScreenLayer=function(){return Iq(P.layerNode)}};
o0u=function(Y){var S;Y=Y.parentNode;for(var P;Y&&((S=NT.get(Y))==null||!S.isRenderer)&&!((P=Y.polymerController)!=null?P:Y).isRenderer_;)Y=Y.parentNode||Y.host;if(S=Y)return NT.get(S)};
tlf=function(Y){if(Y){NT.delete(Y);var S=_.E().resolve(Of);wvE(Y,S)}};
Ufa=function(Y,S,P){if(P===void 0?0:P){if(P=Y.getAttribute("client-ve-type"),S.data&&!S.disableReactiveLogging||P)_.II(function(){AQu(Y,_.wK(S.data))}),_.aI(function(){return void tlf(Y)})}else typeof S.data!=="function"&&AQu(Y,S.data)};
AQu=function(Y,S){QgU++;kGE(Y,S)&&_.wc.addJob(function(){_.$I(_.wc,function(){if(kGE(Y,S)&&Y.ownerDocument.documentElement===document.documentElement&&Y){var P;if(Y.getAttribute("layer")){var u=P=Number(Y.getAttribute("layer")),W=NT.get(Y);W?W.layerNode.layer=u:ieU(Y,new MlE(u));(u=o0u(Y))&&(W=NT.get(Y))!=null&&(W.layerNode.parent=u.layerNode)}else if(P=NT.get(Y))P=Iq(P.layerNode);else{P=Iq;u=new MlE;if(W=o0u(Y))u.parent=W.layerNode;ieU(Y,u);P=P(u)}P!=null||(P=0);u=Y.getAttribute("client-ve-type");
W=Number(u);var m=!1;u=!1;var J=NT.get(Y),c;if((c=J)&&!(c=J[yQf]!==S)&&(c=W)){var C;c=((C=NT.get(Y))==null?void 0:C.clientVeType)===void 0}c&&(J[yQf]=S,m=u=J.isRenderer=!0);NT.has(Y)&&(NT.get(Y).clientVeType=W);Y.visualElement&&(u=!0);(C=S==null?void 0:S.loggingDirectives)&&C.clientVeSpec&&(J=NWE(_.jC(),Y),C=_.HeK(_.BF(),C,J||void 0,P))&&(Y.visualElement=C);!Y.visualElement&&W&&m&&(Y.veType=W,C=void 0,_.f("wiz_next_client_ve_parent_fix")&&(C=NWE(_.jC(),Y)),C=_.JL(_.BF(),Y,C,P),Y.visualElement=C);
u&&(C=_.E().resolve(Of),dM8(Y,{data:S,observer:C,layer:P,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
kGE=function(Y,S){return(S==null?0:S.trackingParams)||(S==null?0:S.loggingDirectives)||_.g(S==null?void 0:S.rendererContext,_.lkY)||Y.getAttribute("client-ve-type")?!0:!1};
eYU=function(Y){return _.f("cow_logging_in_component_wrapper")?function(S){Ufa(S,Y,!0)}:VlK};
VlK=function(){};
_.OeU=function(Y,S){return _.BT(Y.entities,"accountLinkStatusEntity",S)};
Y8Y=function(Y,S){return _.BT(Y.entities,"hatsSurveyEntity",S)};
S8U=function(Y,S){return _.BT(Y.entities,"hatsSurveyStateEntity",S)};
P3f=function(Y,S){return _.BT(Y.entities,"quantityIncrementerEntity",S)};
n48=function(Y){var S=Y.data;var P=Y.className===void 0?"":Y.className;var u=Y.setMinWidth;Y=Y.forceIconOnly;var W=_.Ms(eYU({data:S}));u=u?"ytwAccountLinkButtonViewModelHostMinWidth":"";var m=_.Jq(_.OeU,function(){var T;return(T=_.wK(S).accountLinkStatusEntityKey)!=null?T:""}),J=_.Jq(_.OeU,function(){var T;
return(T=_.wK(S).accountLinkStatusSecondaryEntityKey)!=null?T:""}),c=function(){if(!_.f("web_account_link_secondary_killswitch")){var T,K;
return((T=m())==null?void 0:T.linked)||((K=J())==null?void 0:K.linked)}var G;return(G=m())==null?void 0:G.linked};
_.D6(function(){var T=m();if(T){var K=uTu(new WH$,zRY(new m9a,!!T.linked));_.SF().then(function(G){G&&(G.setAccountLinkState(_.QB(K.JSC$9931_serializeBinary(),4)),G.updateAccountLinkingConfig(!!T.linked))})}});
var C=function(){return _.g(_.wK(S).toggleButtonViewModel,_.hq)};
_.kG("yt-signal-action-show-account-link-dialog",function(){if(C()){var T=c()?C().toggledButtonViewModel:C().defaultButtonViewModel;T=_.g(T,_.Gz);var K;if((K=m())==null?0:K.isWarning){K=_.g(_.wK(S).warningButtonViewModel,_.Gz);if(!K){_.AA(Error("Bh"));return}T=K}var G;(K=_.vF((G=T)==null?void 0:G.onTap))&&_.RA([K],W.value)}else _.AA(Error("Ch"))});
var x=function(){var T=C();return Object.assign({},T,{isToggled:c()})},b=Y?{iconPosition:"icon-only"}:{};
return _.R("account-link-button-view-model",{class:_.Si("ytwAccountLinkButtonViewModelHost",function(){return _.wK(P)},u),
el:W,"button-renderer":!0},_.R("div",null,_.R(_.gw,{cond:function(){var T;if((T=m())==null?0:T.isWarning)return(T=_.g(_.wK(S).warningButtonViewModel,_.Gz))||_.AA(Error("Bh")),T},
then:function(T){return _.R(_.aq,{data:T,buttonOverrides:b})},
else:function(){return _.R(_.vL,{data:x,buttonShapeOverrides:b})}})))};
jl8=function(Y){switch(Y){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
Jr9=function(Y){switch(Y){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
Be$=function(Y){switch(Y){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.C31=function(Y){var S=_.z_("web_generic_client_event_wait_period ",0);S||(S=3E5);var P=crE.get(Y);!_.f("enable_web_client_experiment_event_timeout_killswitch")&&P&&(0,_.Oh)()-P<S||(crE.set(Y,(0,_.Oh)()),_.L_("genericClientExperimentEvent",{eventType:Y}))};
x9X=function(Y){var S=Y.data;var P=Y.children;var u=q8h(S),W=(S==null?0:S.thumbnailSize)?S.thumbnailSize:"medium";Y=!(S==null||!S.doubleStack);var m=!(S==null||!S.experimentEnabled),J={},c=(J["collections-stack-wiz__collection-stack1"]=!0,J[RR1(W)]=!0,J);if(S==null?0:S.customClassName1stStack)c[S.customClassName1stStack]=!0;W={};var C=(W["collections-stack-wiz__collection-stack2"]=Y,W["collections-stack-wiz__collection-stack2--responsive-mode"]=S==null?void 0:S.enableResponsiveMode,W);if(S==null?
0:S.customClassName2ndStack)C[S.customClassName2ndStack]=!0;return _.R("yt-collections-stack",{class:"collections-stack-wiz",hidden:!m},_.kS(S,function(){return _.R("div",null,_.kS(S.doubleStack,function(){return _.R("div",{class:_.uN(C),style:"background-color:"+u})}),_.R("div",{class:_.uN(c),
style:"background-color:"+u}),P)}))};
RR1=function(Y){switch(Y){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
q8h=function(Y){if(!Y)return"";var S,P=(S=_.E().resolve(_.PQ(_.F5)))==null?void 0:S(),u;if(!P&&((u=Y.vibrantColorPalette)==null?0:u.iconInactiveColor))return vq(Y.vibrantColorPalette.iconInactiveColor,"1");var W;return P&&((W=Y.darkColorPalette)==null?0:W.iconInactiveColor)?vq(Y.darkColorPalette.iconInactiveColor,"1"):Y.color?vq(Y.color,"1"):Y.sampledThumbnailColor?(Y=Y.sampledThumbnailColor,"rgba("+Y.red+","+Y.green+","+Y.blue+");"):""};
_.L2=function(Y,S){if(!Y.includes("DATE_PLACEHOLDER"))return Y;var P=new Date(0);P.setUTCSeconds(S);return Y.replace("DATE_PLACEHOLDER",bt$(P))};
_.wv=function(Y){Y=_.TeJ(Y);return _.f("web_watch_enable_single_column_grid_view")?Y:!1};
_.TeJ=function(Y){return Y.watch.isWatchNarrowWidth};
KH$=function(Y,S,P){return function(u){var W=Y.command;W&&(bN(W,{form:{element:P}}),S([W],u))}};
fMf=function(Y,S,P,u,W){return function(m){var J=E4J(Y,P);J&&bN(J,{form:{element:u},commandController:W});S&&S.stopPropagation&&m.stopPropagation()}};
E4J=function(Y,S){if(Y.signInEndpoint&&!_.f("web_subscribe_sign_in_endpoint_killswitch"))return Y.signInEndpoint;if(S){if(Y.serviceEndpoints)return Y.serviceEndpoints[1];if(Y.onUnsubscribeEndpoints)return Y.onUnsubscribeEndpoints[0]}else{if(Y.serviceEndpoints)return Y.serviceEndpoints[0];if(Y.onSubscribeEndpoints)return Y.onSubscribeEndpoints[0]}};
g4X=function(Y,S){var P,u,W,m;S=S&&((P=Y.unsubscribeAccessibility)==null?void 0:(u=P.accessibilityData)==null?void 0:u.label)||((W=Y.subscribeAccessibility)==null?void 0:(m=W.accessibilityData)==null?void 0:m.label);return Y.longSubscriberCountText?[S,_.Ma(Y.longSubscriberCountText)].filter(function(J){return J}).join(" "):S};
p2=function(Y,S){return S||(Y==null?0:Y.isChannelDelegate)?"disabled":"active"};
$9X=function(Y,S){var P;switch((P=Y.style)==null?void 0:P.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:p2(Y)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:p2(Y)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:p2(Y,!0)};case "OVERLAY":return S?{style:"overlay",type:"tonal",state:p2(Y)}:{style:"overlay",type:"filled",state:p2(Y)};default:return S?{style:"mono",type:"tonal",state:p2(Y)}:{style:"mono",type:"filled",state:p2(Y)}}};
rra=function(Y,S){var P=Y.map(function(u){return u.toString()});
return _.mR(function(u){if(P.includes(u.key)){S&&u.preventDefault();var W;(W=u.currentTarget)==null||W.click()}})};
_.FJ=function(){return rra(["Enter"])};
_.GsK=function(){return rra(["Enter"," "],!0)};
_.sP=function(Y){if(Y.composedPath)return Y.composedPath();if(!Y.__composedPath){for(var S=[],P=Y.target;P;)S.push(P),P=P.parentNode;S.push(window);Y.__composedPath=S}return Y.__composedPath};
_.hRX=function(Y,S,P){Y=_.n(Y);for(var u=Y.next();!u.done;u=Y.next()){u=u.value;if(u===S)break;for(var W=_.n(P),m=W.next();!m.done;m=W.next())if(m=m.value,u.tagName===m||u.role==="button"&&m==="BUTTON")return!0}return!1};
D99=function(Y,S){var P,u=(P=S.observer)!=null?P:_.E().resolve(Of);if(Y){P=v4a(Y);var W=[];S.showOption&&W.push(u.observe(Y,function(){S.visibilityCallback(!0)},S.showOption));
S.hideOption&&W.push(u.observe(Y,function(){S.visibilityCallback(!1)},S.hideOption));
S.prescanOption&&S.prescanCallback&&W.push(u.observe(Y,function(){S.prescanCallback()},S.prescanOption));
var m;P.visibilityMonitorKeys=((m=P.visibilityMonitorKeys)!=null?m:[]).concat(W)}};
v4a=function(Y){var S;return(S=Y.polymerController)!=null?S:Y};
_.lL=function(Y){return!!_.dv(Y)};
_.XJ=function(Y,S){var P=K3K();aj(function(){var u=Y.value;if(u)return IMY(u,S),aMK(u,S,void 0,void 0,void 0,P)},[S])};
_.Zw=function(Y,S,P,u,W,m){var J=K3K();_.D6(function(){var c=Y.value;c&&(IMY(c,S(),m),c=aMK(c,S(),P,u,W,J),_.aI(c))})};
IMY=function(Y,S,P){var u=LH1(S),W=ww$(S);S=u&&pwh;var m=W&&FH9;(u||W)&&D99(Y,{visibilityCallback:function(J){var c=_.E().resolve(_.uY);J&&u?c.resolveCommand(u,{form:{element:P?Y:void 0},disableClickTracking:!0}):!J&&W&&c.resolveCommand(W,{form:{element:P?Y:void 0},disableClickTracking:!0})},
showOption:S,hideOption:m})};
aMK=function(Y,S,P,u,W,m){var J=new Map;if(S=_.dv(S)){var c;Y=(u==null?void 0:(c=u.onTap)==null?void 0:c.value)||Y;P=slY(S,Y,P==null?void 0:P.onTap,W,m);Y.addEventListener("click",P);J.set("click",P)}return function(){for(var C=_.n(J),x=C.next();!x.done;x=C.next()){var b=_.n(x.value);x=b.next().value;b=b.next().value;Y.removeEventListener(x,b)}}};
_.dv=function(Y){var S;return(Y=(S=_.g(Y,d98))==null?void 0:S.onTap)&&_.vF(Y)};
LH1=function(Y){var S;return(Y=(S=_.g(Y,d98))==null?void 0:S.onVisible)&&_.vF(Y)};
ww$=function(Y){var S;return(Y=(S=_.g(Y,d98))==null?void 0:S.onHidden)&&_.vF(Y)};
slY=function(Y,S,P,u,W){var m=function(c){_.E().resolve(_.uY).resolveCommand(Y,c)},J=function(c){u&&_.hRX(_.sP(c),S,u)||m(c.target?{form:{element:c.target,
sourceData:Y,mutationContext:W}}:void 0)};
P&&(J=function(c){P(c,m)});
return J};
lMK=function(Y){var S=Y.data;var P=Y.className;Y=Y.alwaysShow;var u=_.Ms();_.XJ(u,S.rendererContext);a:switch(S.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var W="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:W="ytThumbnailHoverOverlayViewModelStyleCover"}W=_.uN("ytThumbnailHoverOverlayViewModelScrim",W);var m,J=(m=_.g(S==null?void 0:S.rendererContext,_.iL))==null?void 0:m.label,c=_.dv(S.rendererContext)!==void 0;m=c?"button":void 0;c=c?0:void 0;var C=_.GsK(),x={};return _.R("thumbnail-hover-overlay-view-model",
{el:u,class:_.uN("ytThumbnailHoverOverlayViewModelHost",P,(x.ytThumbnailHoverOverlayViewModelHostForceHover=Y,x)),"aria-label":J,role:m,tabindex:c,"on:keypress":C},_.R("div",{class:W},S.icon?_.R(_.ZZ,{data:S.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,S.text?_.R(_.qw,{text:S.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
XwK=function(Y){switch(Y){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
Zta=function(Y){switch(Y){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
ita=function(Y){switch(Y){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
o4$=function(Y){switch(Y){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
t7$=function(Y){return Y==="medium"||Y==="48"||Y==="large"||Y==="extra-large"||Y==="extra-extra-large"||Y==="giant"};
ArJ=function(Y){return!!((Y==null?0:Y.includes(3))||(Y==null?0:Y.includes(5)))};
Ql9=function(Y){return{size:U9$(Y.data.avatarImageSize),onTap:Y.onTap,decorations:Y.decorations||[],badgeText:Y.badgeText,accessibilityText:Y.accessibilityText,avatarButtonCustomClassName:Y.avatarButtonCustomClassName}};
U9$=function(Y){switch(Y){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
ksU=function(Y){function S(){P.endpoint&&_.ae(P.endpoint)}
var P=Y.data;var u=Y.decorations;var W=Y.avatarButtonCustomClassName;Y=Y.isOverlay;return _.R("avatar-view-model",null,P.image?_.R(oq,{data:Ql9({data:P,onTap:P.endpoint?S:void 0,decorations:u,badgeText:void 0,accessibilityText:P.accessibilityText,avatarButtonCustomClassName:W}),image:P.image,iconType:"RADAR_LIVE",overlays:function(){return _.R(tq,{data:P})},
isOverlay:Y}):null)};
yrE=function(Y){var S=Y.data;var P=Y.avatar;var u=Y.onTap;var W=Y.element;Y=Y.commandController;u=u?M78(u,W,Y):void 0;W=[];S.liveData&&W.push(0);var m;Y=(m=S.liveData)==null?void 0:m.liveBadgeText;var J;m=(J=_.g(S.rendererContext,_.iL))==null?void 0:J.label;return Ql9({data:P,onTap:u,decorations:W,badgeText:Y,accessibilityText:m?m:S.a11yLabel})};
M78=function(Y,S,P){return function(){bN(Y,{form:{element:S},commandController:P})}};
NeY=function(Y,S,P,u){return S?yrE({data:Y,avatar:S,onTap:P,element:u}):{size:"medium"}};
HtK=function(Y){var S=Y.data;Y=Y.className;var P=_.yZ(),u=_.g(S.avatar,_.Aq),W=_.dv(S.rendererContext),m,J=NeY(S,u,W,(m=P.value)!=null?m:void 0);return _.R("yt-decorated-avatar-view-model",{class:_.uN("yt-decorated-avatar-view-model-wiz",Y),el:P},_.kS(u==null?void 0:u.image,function(){var c,C,x;return _.R(oq,{data:J,image:u.image,iconType:"RADAR_LIVE",overlays:function(){return _.R(tq,{data:u})},
idomKey:u==null?void 0:(c=u.image)==null?void 0:(C=c.sources)==null?void 0:(x=C.at(0))==null?void 0:x.url})}))};
V7$=function(Y){switch(Y){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
eRa=function(Y){switch(Y){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
OtU=function(Y){var S=0;Y.avatars&&(S+=Y.avatars.length);Y.decoratedText&&(S+=1);return S};
SFf=function(Y){var S=Y.data,P=S.avatars,u=S.text,W=S.rendererContext,m=S.decoratedText,J=(S=_.Ms())&&_.lL(W);_.XJ(S,W);var c=OtU(Y.data)>1,C,x=P&&P.length>0?V7$((C=_.g(P[0],_.Aq))==null?void 0:C.avatarImageSize):0,b,T=P&&P.length>0?(b=_.g(P[0],_.Aq))==null?void 0:b.avatarImageSize:"AVATAR_SIZE_UNKNOWN",K,G;C={};return _.R("yt-avatar-stack-view-model",{el:S,class:_.uN("yt-avatar-stack-view-model-wiz",Y.className,(C["yt-avatar-stack-view-model-wiz--tappable"]=J,C["yt-avatar-stack-view-model-wiz--is-overlay"]=
Y.isOverlay,C["yt-avatar-stack-view-model-wiz--medium-text"]=Y.useMediumText,C)),tabindex:J?0:void 0,role:J?"link":void 0,"aria-label":(G=(K=_.g(W,_.iL))==null?void 0:K.label)!=null?G:""},_.kS(P&&!Y.hideAvatar,function(){return _.R("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.kS(m,function(){var v={};return _.R("div",{class:_.uN("yt-avatar-stack-view-model-wiz__text-container",(v["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=T==="AVATAR_SIZE_XXS"||T==="AVATAR_SIZE_XS",
v["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=Y.isOverlay&&(T==="AVATAR_SIZE_XXS"||T==="AVATAR_SIZE_XS"),v)),style:"width: "+x+"px; height: "+x+"px"},_.R(_.qw,{text:m,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),P.slice().reverse().map(function(v){return _.R("div",{class:eRa(T)},YFK(v,{avatarViewModel:{decorations:Y.decorations?Y.decorations:c?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:Y.isOverlay}}))}))}),_.kS(u,function(){return _.R(_.qw,{text:u,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
PUu=function(Y){switch(Y){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
u11=function(Y){switch(Y){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
Wbh=function(Y){switch(Y){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
zgY=function(Y){var S=Y.data;return _.R("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:Y.hidden===void 0?!1:Y.hidden},_.R(_.qw,{text:S.title,className:"yt-thumbnail-overlay-title-view-model__title"}),S.subtitle?_.R(_.qw,{text:S.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
mmK=function(Y){switch(Y){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
nuf=function(Y){var S=Y.data;Y=Y.hidden===void 0?!1:Y.hidden;var P={};Y={class:_.uN("yt-page-indicator-view-model",(P["yt-page-indicator-view-model__indicator--hidden"]=!S.indicatorCount,P)),hidden:Y};if(S.indicatorCount){P=[];for(var u=0;u<S.indicatorCount;u++){var W={};W=_.uN("yt-page-indicator-view-model__indicator",(W["yt-page-indicator-view-model__indicator--selected"]=S.selectedIndex===u,W));P.push(_.R("div",{class:W}))}S=_.R(_.SX,null,P)}else S=_.R(_.SX,null);return _.R("yt-page-indicator-view-model",
Y,S)};
JX$=function(Y){Y&&(j0a(Y)?delete Y.inlinePlayerData:"inlinePlaybackEndpoint"in Y&&delete Y.inlinePlaybackEndpoint)};
BSf=function(Y){if("accessibilityText"in Y)return Y.accessibilityText||"";if("title"in Y){var S,P,u;return((S=Y.title)==null?void 0:(P=S.accessibility)==null?void 0:(u=P.accessibilityData)==null?void 0:u.label)||""}if("accessibility"in Y){var W,m;return((W=Y.accessibility)==null?void 0:(m=W.accessibilityData)==null?void 0:m.label)||""}return""};
j0a=function(Y){return"inlinePlayerData"in Y};
UP=function(Y){return new cXh(Y)};
_.CUY=function(Y,S,P,u,W,m){var J=function(x){x.preventDefault()},c=function(){var x=Y.value;
if(x)return(x._data=S)?(x.addEventListener("touchstart",DpJ,{passive:!0}),x.addEventListener("click",a8Y),S.clickTrackingParams&&(x.params={itct:S.clickTrackingParams}),L1J(x,S),xU(x,w$J(S)||"")):x.addEventListener("click",J),function(){S?(x.removeEventListener("touchstart",DpJ,{passive:!0}),x.removeEventListener("click",a8Y)):x.removeEventListener("click",J)}},C=function(){var x=Y.value;
if(x){var b=_.Ie({innertubeCommand:S,elementsCommand:P,forceNewState:u,stopPropagation:m});if(b)return x._data=b._data,b["aria-haspopup$"]&&x.setAttribute("aria-haspopup",b["aria-haspopup$"].toString()),b["force-new-state$"]&&x.setAttribute("force-new-state",b["force-new-state$"].toString()),b.href$&&xU(x,b.href$),b.rel$&&(x.rel=b.rel$),b.role$&&x.setAttribute("role",b.role$),b.target$&&(x.target=b.target$),x.params=b.params,b.onclick&&x.addEventListener("click",b.onclick),b.onpointerdown&&x.addEventListener("onpointerdown",
b.onpointerdown),function(){b.onclick&&x.removeEventListener("click",b.onclick);b.onpointerdown&&x.removeEventListener("onpointerdown",b.onpointerdown)}}};
aj(W?C:c,[S,P])};
qFU=function(Y){var S=Y.children;var P=Y.className;var u=Y.dir;var W=Y.style;var m=Y.role;var J=Y.ariaSelected;var c=Y.ariaLabel;var C=Y.ariaHidden;var x=Y.ariaLabelledby;var b=Y.ariaDescribedby;var T=Y.command;var K=Y.elementsCommand;var G=Y.forceNewState;var v=Y.isPlaceholder;var a=Y.tabIdentifier;var w=Y.target;var F=Y.tabIndex;var U=Y.useATagConfig;var V=Y.stopPropagation;Y=_.Ms();_.CUY(Y,T,K,G,U,V);K=_.mR(function(){return V===!1});
return _.R("a",{el:Y,"on:click":K,class:P,style:W,dir:u,role:m?m:T?void 0:"group","aria-hidden":C?!0:void 0,"aria-label":c,"aria-labelledby":x,"aria-describedby":b,"aria-selected":J,tabindex:F!==void 0?F:void 0,target:w,"tab-identifier":a,"force-new-state":G?!0:void 0,"is-placeholder":v?!0:void 0},S)};
xmY=function(Y){var S=Y.data;Y=_.mR(function(){var W=_.g(S.onTap,_.hL);W&&_.E().resolve(_.uY).resolveCommand(W);return!1});
var P={sources:[{url:S.thumbnailUrl,width:120,height:90}]},u=S.rating&&S.ratingA11yLabel&&S.reviewsCount&&S.reviewsCountA11yLabel;return _.R("place-data-view-model",null,S.placeName&&S.placeCategory?_.R("div",{class:"yt-spec-place-data-view-model-shape","on:click":Y},_.R(_.ZZ,{data:P,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+RgK}),_.R(qFU,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.g(S.onTap,_.hL),forceNewState:!0,
useATagConfig:!0},_.R("h3",{class:"yt-spec-place-data-view-model-shape__name",title:S.placeName},S.placeName)),_.R("div",{class:"yt-spec-place-data-view-model-shape__metadata"},u?_.R("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.R("span",{class:"score",title:S.ratingA11yLabel},S.rating),_.R("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.R(_.BX,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.R("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:S.reviewsCountA11yLabel},S.reviewsCount)):_.R("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.R("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.R("span",{class:"category",title:S.placeCategory},S.placeCategory)))):null)};
bnY=function(Y){return function(S){Y&&(Y.thumbnailElRef=S.thumbnailElRef,Y.thumbnail=S.thumbnail,Y.thumbnailOverlays=S.thumbnailOverlays,Y.thumbnailSize=S.thumbnailSize)}};
TS9=function(Y){var S;return(S=Y.sharedUi)==null?void 0:S.animatedThumbnailEnabled};
Kb9=function(Y){var S;return(S=Y.sharedUi)==null?void 0:S.inlinePreviewEnabled};
_.Eu8=function(Y){var S;return(S=Y.sharedUi)==null?void 0:S.currentPageSubType};
fxE=function(){return _.R("div",{class:"yt-pinking"},_.R("svg",{class:"yt-pinking__pinking-left"},_.R("defs",null,_.R("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.R("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.R("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.R("svg",{class:"yt-pinking__pinking-right"},_.R("defs",null,_.R("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.R("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.R("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
guh=function(Y){switch(Y){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
Dmh=function(Y){var S=[],P=Y.data,u=tg(Y.width,Y.height),W=_.E().resolve(_.PQ($mf)),m=_.Ms(function(){S.push("elRef.value set")});
_.LE(function(){S.push("onInit");return function(){S.push("onCleanup")}});
_.LE(function(){var w;(w=Y.playbackRef)==null||w.call(Y,{thumbnailElRef:m,thumbnail:P.image,thumbnailOverlays:P.overlays,thumbnailSize:u})});
var J=CRu(TS9),c,C=(c=Y.aspectRatio)!=null?c:0,x=(c=(P.image?_.q7J(P.image):C)<=1&&C===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",b=function(){m.value||_.sf(new _.$2("Thumbnail elRef.value is null",S.join("\n")));W&&m.value&&W(m.value)},T={};
a:{if(!Y.disableRounding&&!Y.isClip)switch(u){case "large":var K="yt-thumbnail-view-model--large";break a;case "small":K="yt-thumbnail-view-model--small";break a;default:K="yt-thumbnail-view-model--medium";break a}K=void 0}C=_.uN("yt-thumbnail-view-model",Y.className,guh(C),K,(T["yt-thumbnail-view-model--cinematic"]=c,T));T=void 0;var G,v;(K=c?(G=Y.data)==null?void 0:(v=G.backgroundColor)==null?void 0:v.lightTheme:void 0)&&(T="background-color:"+vq(K,"1")+";");var a;G=Y.hovered&&u!=="large"&&((a=
P.overlays)==null?void 0:a.some(function(w){return _.g(w,rXh)}));
return _.R("yt-thumbnail-view-model",{class:C,style:T,el:m},_.kS(c,function(){return _.R("div",{class:"yt-thumbnail-view-model__blurred-image"},_.R(_.ZZ,{data:P.image,alt:"",contentMode:x,targetWidth:Y.width,onload:b}))}),_.R("div",{class:"yt-thumbnail-view-model__image"},_.R(_.ZZ,{data:P.image,
alt:"",contentMode:x,targetWidth:Y.width,onload:b}),null),_.kS(!G,function(){return Gbu(P.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:u,isClip:Y.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:Y.lockupExperiments}})}),_.kS(Y.hovered,function(){return hg$(P.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.kS(Y.hovered&&J,function(){return vuh(P.overlays)}),_.kS(Y.isClip,function(){return fxE()}))};
IxY=function(Y){switch(Y){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
FbJ=function(Y){var S=_.n(zz(-1)),P=S.next().value,u=S.next().value,W=pE(function(){return new axX(u)});
_.LE(function(){Lb9(W,Y.data.thumbnails.length);return function(){wr$(W)}});
var m;return _.R("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(m=Y.data.thumbnails)==null?void 0:m.map(function(J,c){var C=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!Y.data.primaryThumbnail&&c===0&&C.push("yt-collection-thumbnail-slideshow--first-slide");c<=P&&C.push("yt-collection-thumbnail-slideshow--show-slide");c=C.join(" ");return _.R("div",{class:c},prK(J,{thumbnailViewModel:{disableRounding:Y.disableRounding}}))}))};
dmE=function(Y){var S=_.n(zz(!1)),P=S.next().value,u=S.next().value;_.LE(function(){if(Y){var W=_.E().resolve(_.PQ(s01));if(W){var m={triggeringElement:Y,onDwellTriggeredFn:function(){u(!0)},
onDwellEndFn:function(){u(!1)}};
W.registerElement(m);return function(){W.unregisterElement(m)}}}});
return P};
lxX=function(Y){var S=_.n(_.qb(!1,void 0,"RIOonf")),P=S.next().value,u=S.next().value;_.LE(function(){var W=Y==null?void 0:Y();if(W){var m=_.E().resolve(_.PQ(s01));if(m){var J={triggeringElement:W,onDwellTriggeredFn:function(){u(!0)},
onDwellEndFn:function(){u(!1)}};
m.registerElement(J);_.aI(function(){m.unregisterElement(J)})}}});
return P};
in9=function(Y){var S,P=(S=_.E().resolve(_.PQ(_.F5)))==null?void 0:S(),u=dmE(Y.triggeringElement),W=!!Y.data.primaryThumbnail,m=function(){var c;return _.R("div",null,Xrh(Y.data.primaryThumbnail,{thumbnailViewModel:{width:Y.width,height:Y.height,aspectRatio:Y.aspectRatio,disableRounding:Y.disableRounding,className:W?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:Y.hovered,playbackRef:Y.playbackRef}}),_.kS(u&&((c=Y.data.thumbnails)==null?void 0:c.length),function(){return _.R("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.R(ZnU,{data:Y.data,disableRounding:!W}))}))};
S=Y.data.stackColor;var J={experimentEnabled:W,thumbnailSize:tg(Y.width,Y.height),doubleStack:Y.doubleStack,color:P?S==null?void 0:S.darkTheme:S==null?void 0:S.lightTheme,enableResponsiveMode:!1};return _.R("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.kS(W,function(){return _.R(x9X,{data:J},m())}),_.kS(!W,m))};
ouY=function(Y,S,P){P?P(S):_.ae(S,Y.target?{form:{element:Y.target}}:void 0)};
_.QR=function(Y,S,P,u){_.D6(function(){var W=Y.value;if(W){var m=new Map,J,c=(J=S())==null?void 0:J.onTap;c&&(J=function(C){a:{var x=C.composedPath();x=_.n(x);for(var b=x.next();!b.done;b=x.next()){b=b.value;if(b===W)break;if(b.className.indexOf("HostIsClickableAdComponent")>=0||b.tagName==="A".toString()||b.tagName==="BUTTON".toString()){x=!0;break a}}x=!1}x||(_.f("enable_square_image_components_ui_web_with_float_button")?_.ms(Y.value,"yt-navigate",{endpoint:_.vF(c)}):ouY(C,c,P))},(u==null?0:u())||
_.f("enable_web_home_top_landscape_image_layout_level_click")?(W.addEventListener("tap",J),m.set("tap",J)):(W.addEventListener("click",J),m.set("click",J)));
_.aI(function(){for(var C=_.n(m),x=C.next();!x.done;x=C.next()){var b=_.n(x.value);x=b.next().value;b=b.next().value;W.removeEventListener(x,b)}})}})};
tz8=function(Y,S){var P,u=(P=Y.interaction)==null?void 0:P.onTap;if(Y=_.Ie({elementsCommand:u,forceNewState:!0,skipOnClick:!0}))return Y.onclick=function(W){$pa(W)&&(W.preventDefault(),u&&ouY(W,u,S))},GhU(Y)?Y:void 0};
AXa=function(Y){switch(Y){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Uma=function(Y){switch(Y){case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
Q0$=function(Y){switch(Y){case "AD_BUTTON_STYLE_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.kb8=function(Y){return _.f("rich_grid_enable_dynamic_offset")&&Y?Math.max(Math.round((Y-_.z_("rich_grid_dynamic_offset_anchor_width",1300))/100*_.z_("rich_grid_dynamic_offset_offset_per_100",10)),_.z_("rich_grid_dynamic_offset_lower_bound",-60)):0};
Mzu=function(Y,S){switch(S){case 4:return 16;case 1:return Y<528?16:Y<1024?32:48;case 2:return(Y>=528?16:8)/2;case 3:return(Y<528?16:Y<1024?32:48)+(Y>=528?16:8)/2;default:return 0}};
yXh=function(Y){var S=Y.originalContainerWidth;var P=Y.sizing;var u=Y.standardUnit;if(Y.isCompactList&&S<528)return 1;switch(P){case "STANDARD":return u;case "COMPACT":return u+1;case "EXTRA_COMPACT":return _.f("web_responsive_extra_compact_2x")?u*2:_.f("web_responsive_current")?u===1?2:u%2===0?u/2*3:u+2:u<4?u*2:Math.ceil(u*3/2);case "MINI":return u>1?u*2:3;default:return u}};
Hn1=function(Y){var S=Y.containerWidth;var P=Y.peek;var u=Y.gutter;var W=Y.numItems;Y=Y.ignoreMaxWidthLimit;S=P?Math.max((S-P-u*W)/W,0):Math.max((S-u*(W-1))/W,0);return Y?S:Math.min(S,NSh)};
_.kI=function(Y){var S=Y.containerWidth;var P=Y.hasPeek;var u=Y.sizing;var W=Y.marginSettings;var m=Y.isCompactList;var J=Y.enableFullBleedForSingleCol;var c=Y.standardUnitMinWidth;u=u||"STANDARD";P=!!P;Y=S>=528?16:8;var C=P?S>=528?48:24:0;W=Mzu(S,W);var x=Math.max(S-W*2,0);c=_.f("kevlar_disable_min_width_override")?void 0:c;c=Math.min(Math.max(Math.floor((x-C+Y)/((c!=null?c:Vz$)+_.kb8(S)+Y)),1),6);var b=(J=!!J&&c===1)||c===1&&u!=="STANDARD";P=P||b?x:Math.min(x,(NSh+Y)*c-Y);u=yXh({originalContainerWidth:S,
sizing:u,standardUnit:c,isCompactList:m});return{itemWidth:Hn1({containerWidth:P,peek:C,gutter:Y,numItems:u,ignoreMaxWidthLimit:b}),gutter:Y,maxContainerWidth:P,numItems:u,margin:J?0:W,contentMargin:Mzu(S,1),typographyBump:Hn1({containerWidth:P,peek:C,gutter:Y,numItems:c,ignoreMaxWidthLimit:b})>400&&!(m&&S<528),standardUnit:c}};
egf=function(Y){switch(Y){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.On8=function(Y){if(Y){var S;if((S=Y.responsiveContainerConfiguration)==null?0:S.responsiveSize)return egf(Y.responsiveContainerConfiguration.responsiveSize);if(Y.layoutSizing)switch(Y.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
Y5a=function(Y){if(Y.fullbleed)return 1;switch(Y.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
Wf$=function(Y,S,P,u,W,m,J,c){a:switch(Y){case 4:m=!!(m&&m<100);break a;default:m=!1}a:switch(Y){case 3:case 4:var C=u==="LOCKUP_CONTENT_TYPE_CHANNEL"||u==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:C=!1}a:switch(Y){case 5:var x=!0;break a;case 4:x=!1;break a;default:x=!1}a:if(Y===4&&u==="LOCKUP_CONTENT_TYPE_SOURCE")var b=1;else switch(Y){case 3:b=1;break a;default:b=0}return{isOverlay:x,isCard:S5Y(u,J),sizing:S!=null?S:"STANDARD",typographyBump:P!=null?P:!1,isTiny:m,isCentered:C,isCollection:PhX(u),
arrangement:b,addMarginForFullbleed:Y===1&&u!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:Y===1&&u==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:uHh(u,W,c),disableRounding:Y===5||S5Y(u,J)||Y===1&&u==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:PhX(u)?2:0,useLegacyTypography:!(c==null||!c.useLegacyTypography),useRichGridLegacyTypography:!(c==null||!c.useRichGridLegacyTypography)}};
PhX=function(Y){switch(Y){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
S5Y=function(Y,S){if(S&&Y==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(Y){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
uHh=function(Y,S,P){if(S&&(P==null||!P.alwaysRespectPodcastShowAspectRatio||Y!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(Y){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
zVU=function(Y){switch(Y){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
jn1=function(Y,S,P){a:switch(Y.badgeStyle){case "BADGE_OVERLAY":var u=!0;break a;default:u=!1}return{type:S?16:mta(Y.badgeStyle),brNzRatingBadgeType:nV1(Y.badgeStyle),text:Y.badgeText,icon:Y.iconName,isOverlay:u,modern:P||_.f("web_modern_badge_view_model")}};
mta=function(Y){switch(Y){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
nV1=function(Y){switch(Y){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
BNJ=function(Y){var S=Y.data?jn1(Y.data,!!Y.workaroundShortsIsThumbnailBadge,Y.modern):void 0;return _.R("yt-badge-view-model",{class:_.uN("yt-badge-view-model-wiz",Y.class)},_.kS(S==null?void 0:S.brNzRatingBadgeType,function(){return _.R(JGa,{data:S})}),_.kS(S&&!S.brNzRatingBadgeType,function(){return _.R(_.ME,{data:S})}))};
_.yR=function(Y){if(Y){var S;return((S=_.E().resolve(_.PQ(_.F5)))==null?0:S())?Y.darkThemeImage:Y.image}};
q5f=function(Y,S,P,u,W,m){if(!P)return W&&m&&S==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+W+"px; height: "+m+"px;":"";W=P.size;P=P.allowFullWidth;if(S==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&P)return"width: 100%;";if(W===void 0)return"";switch(Y){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+W+"px; height: "+W+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+W+"px; height: "+1/cGh*
W+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+W*Chf+"px; height: "+W+"px;";default:return(u==null?0:u.height)&&(u==null?0:u.width)?u.width/u.height>1?"max-width: "+W*Chf+"px;":"max-width: "+W+"px;":"max-width: "+W+"px;"}};
RV$=function(Y){var S;return Y&&((S=_.yR(Y.themedImage))!=null?S:Y.image)};
xth=function(Y){var S;return Y==null?void 0:(S=Y.sources)==null?void 0:S[0]};
TNh=function(Y,S){var P,u;return!!((Y==null?0:(P=Y.byline)==null?0:P.hideAvatar)&&((u=_.g(S,bHu))==null?void 0:u.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
Kfh=function(Y,S){var P,u;return!!((Y==null?0:(P=Y.byline)==null?0:P.addPadding)&&((u=_.g(S,bHu))==null?void 0:u.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
EVJ=function(Y,S,P,u){var W={},m=(W["yt-content-metadata-view-model-wiz__delimiter"]=!0,W["yt-content-metadata-view-model-wiz__delimiter--standalone"]=u,W);return _.kS(S-1>P,function(){return _.R("span",{class:_.uN(m),"aria-hidden":!0},Y)})};
gVE=function(Y,S){return _.R(_.qw,{text:Y.text,linkInheritColor:!0,className:fnX(S),userInput:!0})};
rGY=function(Y){var S=Y.metadataPart;var P=Y.isOverlay;var u=Y.useMediumText;var W=Y.hideAvatar;var m=1;S.maxLines!==void 0&&(m=S.maxLines);return _.R(_.SX,null,_.kS(S.avatarStack,function(){return $th(S.avatarStack,{avatarStackViewModel:{isOverlay:P,useMediumText:u,hideAvatar:W}})}),_.kS(S.text,function(){var J=m;
return _.R(_.SX,null,S.tooltip?_.R("span",{title:S.tooltip,role:"tooltip"},gVE(S,J)):gVE(S,J))}))};
fnX=function(Y){switch(Y){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
GQJ=function(Y){var S=Y.metadataRow;var P=Y.isInline;var u=Y.delimiter;var W=Y.isOverlay;var m=Y.useMediumText;var J=Y.extensions;var c=TNh(J==null?void 0:J.lockupMetadata,S);Y=Kfh(J==null?void 0:J.lockupMetadata,S);J=!!((J==null?0:J.lockupMetadata)&&S.badges);var C={};Y=(C["yt-content-metadata-view-model-wiz__metadata-row"]=!0,C["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=P,C["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=Y,C["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
J,C);var x,b;return _.R("div",{class:_.uN(Y)},(x=S.badges)==null?void 0:x.map(function(T){return _.R("div",{class:"yt-content-metadata-view-model-wiz__badge"},$th(T))}),(b=S.metadataParts)==null?void 0:b.map(function(T,K){return _.R(_.SX,null,rGY({metadataPart:T,
isOverlay:W,useMediumText:m,hideAvatar:c}),EVJ(u,S.metadataParts.length,K,!1))}),_.kS(S.isSpacerRow&&!P,function(){return _.R("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
hVh=function(Y){var S=Y.className;var P=Y.data;var u=Y.layout===void 0?0:Y.layout;var W=Y.isOverlay===void 0?!1:Y.isOverlay;var m=Y.useMediumText;var J=Y.extensions;Y=_.Ms();var c=u===0;u={};u=(u["yt-content-metadata-view-model-wiz"]=!0,u["yt-content-metadata-view-model-wiz--inline"]=c,u["yt-content-metadata-view-model-wiz--tappable"]=_.lL(P.rendererContext),u["yt-content-metadata-view-model-wiz--medium-text"]=m,u);_.XJ(Y,P.rendererContext);return _.R("yt-content-metadata-view-model",{class:_.uN(S,
u),el:Y},_.kS(P.metadataRows,function(){return P.metadataRows.map(function(C,x){return _.R(_.SX,null,GQJ({metadataRow:C,isInline:c,delimiter:P.delimiter,isOverlay:W,useMediumText:m,extensions:J}),_.kS(c&&!C.isSpacerRow,function(){return EVJ(P.delimiter,P.metadataRows.length,x,!0)}))})}))};
vVY=function(Y){switch(Y){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
Dth=function(Y){if(Y==null?0:Y.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(Y==null?void 0:Y.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
Inh=function(Y){if(Y==null?0:Y.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(Y==null?void 0:Y.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
Lfa=function(Y){var S,P,u,W,m,J,c={},C=_.uN(Dth(Y.lockupStyle),Inh(Y.lockupStyle),(c["yt-lockup-metadata-view-model-wiz"]=!0,c["yt-lockup-metadata-view-model-wiz--overlay"]=(S=Y.lockupStyle)==null?void 0:S.isOverlay,c["yt-lockup-metadata-view-model-wiz--card"]=(P=Y.lockupStyle)==null?void 0:P.isCard,c["yt-lockup-metadata-view-model-wiz--centered"]=(u=Y.lockupStyle)==null?void 0:u.isCentered,c["yt-lockup-metadata-view-model-wiz--typography-bump"]=(W=Y.lockupStyle)==null?void 0:W.typographyBump,c["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(m=Y.lockupStyle)==null?void 0:m.useLegacyTypography,c["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(J=Y.lockupStyle)==null?void 0:J.useRichGridLegacyTypography,c)),x,b,T,K,G,v;return _.R("yt-lockup-metadata-view-model",{class:C},_.kS(Y.data.image,function(){return _.R("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},anU(Y.data.image))}),_.R("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.R("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(x=Y.data.title)==null?void 0:x.content},_.kS(Y.data.title,function(){return _.R(_.CR,{command:Y.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:Y.lockupAccessibilityLabel},_.R(_.qw,{text:Y.data.title}))})),_.R("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},anU(Y.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((b=Y.lockupStyle)==null?void 0:b.typographyBump)||((T=Y.lockupStyle)==null?void 0:T.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((K=Y.lockupStyle)==null?void 0:K.arrangement)===0,addPadding:((G=Y.lockupStyle)==null?void 0:G.arrangement)===1}}}}})),_.kS(Y.data.attribution,function(){return _.R("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},anU(Y.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))})),_.R("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},
anU(Y.data.menuButton,((v=Y.lockupStyle)==null?0:v.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
wVa=function(Y){switch(Y.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
pVh=function(Y){var S=_.Eu8(_.X2().getState())||"";return Y?Y+S:""};
Ffh=function(Y){switch(Y){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
dtf=function(Y){var S=_.n(_.qb(void 0,void 0,"BIquNb")),P=S.next().value,u=S.next().value,W=_.n(_.qb(void 0,void 0,"eR0GH"));S=W.next().value;var m=W.next().value,J=_.n(_.qb(void 0,void 0,"UmkP0"));W=J.next().value;var c=J.next().value;J=_.mR(function(b){if(snh(_.sP(b)))return!1;u(b);m(void 0);c(void 0);return!0});
var C=_.mR(function(b){Y==null||Y(b);if(snh(_.sP(b)))return!1;m(b);u(void 0);c(void 0);return!0}),x=_.mR(function(b){snh(_.sP(b))||(c(b),m(void 0),u(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:P,pointerDownEvent:S,pointerLeaveEvent:W},touchFeedbackOnPointerUp:J,touchFeedbackOnPointerDown:C,touchFeedbackOnPointerLeave:x}};
snh=function(Y){var S=["BUTTON".toString()];Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next()){P=P.value;for(var u=_.n(S),W=u.next();!W.done;W=u.next())if(P.tagName===W.value)return!0}return!1};
ln8=function(Y){switch(Y){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
XVf=function(Y){var S;return Upa(Y,((S=Y.content)==null?void 0:S.length)||0,!0)};
ZHJ=function(Y){var S=XVf(Y),P,u;return(((P=Y.content)==null?void 0:P.length)||0)>(((u=S.content)==null?void 0:u.length)||0)};
iHu=function(Y){var S=Y.isTruncated;var P=Y.isAbsoluteButton;var u=Y.lineHeight;var W=Y.contentRef.value,m=Y.placeholderTruncationTextRef.value,J=Y.truncationTextRef.value;Y=Y.appDirection==="rtl";if(W&&m){var c=m.offsetLeft;Y&&(c=W.offsetWidth-m.offsetWidth-m.offsetLeft);if(S){S=m.offsetWidth;m=W.offsetWidth;var C=P?m-S-70:c-70;u="linear-gradient(\n      to top, transparent 0%,\n      transparent "+u+"px,\n      #000 "+u+"px,\n      #000 100%), linear-gradient(\n      to "+((Y?"left":"right")+",\n      #000 0px,\n      #000 "+
C+"px,\n      transparent "+(P?m-S:C+70)+"px)");W.style.setProperty("-webkit-mask-image",u);W.style.setProperty("mask-image",u)}else W.style.setProperty("-webkit-mask-image",""),W.style.setProperty("mask-image","");P?Y?(J.style.setProperty("left","0"),J.style.setProperty("right","unset")):(J.style.setProperty("left",""),J.style.setProperty("right","0")):Y?(J.style.setProperty("left","unset"),J.style.setProperty("right",c+"px")):(J.style.setProperty("left",c+"px"),J.style.setProperty("right","unset"))}};
oVY=function(Y,S,P,u,W){var m=_.Ms(),J=_.Ms(),c=_.Ms(),C=XVf(Y),x=_.E().resolve(_.d8),b=_.n(zz(ZHJ(Y))),T=b.next().value,K=b.next().value,G=F3(null);aj(function(){function v(){if(m.value&&J.value&&c.value){var F=m.value;F.scrollHeight-F.offsetHeight>1?(K(!0),u||iHu({isTruncated:!0,isAbsoluteButton:!0,lineHeight:P,contentRef:m,placeholderTruncationTextRef:J,truncationTextRef:c,appDirection:x})):(F=ZHJ(Y),K(F),u||iHu({isTruncated:F,isAbsoluteButton:!1,lineHeight:P,contentRef:m,placeholderTruncationTextRef:J,
truncationTextRef:c,appDirection:x}))}}
var a,w;(a=G.value)==null||(w=a.stop)==null||w.call(a);a=new _.NE(v,17);v();G.value=a},[Y.content,
S,P,x,u,W]);_.LE(function(){var v=function(){var w,F;(w=G.value)==null||(F=w.fire)==null||F.call(w)};
if(window.ResizeObserver){var a=new ResizeObserver(v);a.observe(m.value);return function(){var w,F;(w=G.value)==null||(F=w.stop)==null||F.call(w);a.disconnect()}}window.addEventListener("resize",v);
return function(){var w,F;(w=G.value)==null||(F=w.stop)==null||F.call(w);window.removeEventListener("resize",v)}});
return{isTruncated:T,displayText:C,contentRef:m,placeholderTruncationTextRef:J,truncationTextRef:c}};
tJ$=function(Y){return _.R("button",{"aria-disabled":!0,disabled:!0,class:Y.className,el:Y.elRef,style:"line-height: "+Y.lineHeight+"px;"},_.R(_.qw,{text:Y.text}))};
AGE=function(Y){var S=Y.text;var P=Y.alwaysShowTruncationText;var u=Y.truncationText;var W=Y.onExpandClick;var m=Y.lineHeight===void 0?16:Y.lineHeight;var J=Y.maxLines===void 0?2:Y.maxLines;var c=Y.disableTextMask===void 0?!1:Y.disableTextMask;var C=Y.isOverlay===void 0?!1:Y.isOverlay;var x=Y.accessibilityLabel===void 0?"":Y.accessibilityLabel;var b=Y.useMediumText===void 0?!1:Y.useMediumText;Y=_.mR(function(){return void(W==null?void 0:W())});
var T=oVY(S,J,m,c,b),K=T.isTruncated;S=T.displayText;var G=T.contentRef,v=T.placeholderTruncationTextRef;T=T.truncationTextRef;var a={};P=_.uN((a["truncated-text-wiz__absolute-button"]=!c,a["truncated-text-wiz__bottom-button"]=c,a["truncated-text-wiz--hidden"]=!(P||K),a));c={};C=_.uN((c["truncated-text-wiz"]=!0,c["truncated-text-wiz--overlay"]=C,c["truncated-text-wiz--medium-text"]=b,c));return _.R("truncated-text",{class:C,"on:click":Y,style:"line-height: "+m+"px;"},_.R("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:G,style:"max-height: "+J*m+"px;"},_.R(_.qw,{text:S}),_.R(tJ$,{text:u,lineHeight:m,elRef:v,className:"truncated-text-wiz__inline-button"})),_.R("button",{"aria-label":x,class:P,el:T,style:"line-height: "+m+"px;"},_.R(_.qw,{text:u})))};
Uth=function(Y){return{content:Y!=null?Y:""}};
MJU=function(Y){var S=Y.data;var P;Y={class:Y.className};a:switch(S.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var u="yt-video-attribute-view-model--vertical";break a;default:u="yt-video-attribute-view-model--horizontal"}a:switch(S.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var W="yt-video-attribute-view-model--image-small";break a;default:W="yt-video-attribute-view-model--image-large"}a:switch(S.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var m="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":m="yt-video-attribute-view-model--image-avatar";break a;default:m=""}a:switch(S.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var J="yt-video-attribute-view-model--metadata-header";break a;default:J=""}a:switch(S.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var c="yt-video-attribute-view-model--container-card";break a;default:c=""}var C=_.vF(S.onTap)||_.dv(S.rendererContext)?"yt-video-attribute-view-model--clickable":"";
u=["yt-video-attribute-view-model",u,W,m,J,c,C].join(" ");if(S.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var x="";else W=S.lightColorPalette,m=S.darkColorPalette,J=((x=_.E().resolve(_.PQ(_.F5)))==null?0:x())&&m?m:W,x=(x=J==null?void 0:J.section2Color)?_.hK(x):"";return _.R("yt-video-attribute-view-model",Y,_.R("div",{class:u,style:_.Jg({"background-color":x})},_.R(qFU,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(P=_.vF(S.onTap))!=
null?P:_.dv(S.rendererContext),role:"group",forceNewState:!0},S.heroText||S.image?_.R(QnE,{data:S}):null,_.R(kQ9,{data:S,sizeSmall:S.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
yGh=function(Y){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:Y.overflowMenuA11yLabel,onTap:function(S){S.preventDefault();S.stopPropagation();if(Y.overflowMenuOnTap){var P=_.Ie({elementsCommand:Y.overflowMenuOnTap,forceNewState:!0});if(P==null?0:P.onclick)P.onclick(S)}}}};
QnE=function(Y){Y=Y.data;var S,P=((S=_.E().resolve(_.PQ(_.F5)))==null?0:S())&&Y.darkThemeImage?Y.darkThemeImage:Y.image;S=yGh(Y);return _.R("div",{class:"yt-video-attribute-view-model__hero-section"},P?_.R(_.ZZ,{data:P,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):Y.heroText?_.R("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.R("span",{class:"yt-video-attribute-view-model__hero-text"},Y.heroText)):null,Y.overflowMenuOnTap?
_.R("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.R(HL,{data:S,iconName:"MORE_VERT"})):null)};
kQ9=function(Y){var S=Y.data;var P=S.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",u={};Y={class:_.uN("yt-video-attribute-view-model__metadata",(u["yt-video-attribute-view-model--small-font"]=Y.sizeSmall,u)),role:"link"};u=_.R("h1",{class:"yt-video-attribute-view-model__title"},S.title);P=S.subtitle?_.R("h4",{class:"yt-video-attribute-view-model__subtitle"},P?_.R(AGE,{text:Uth(S.subtitle),truncationText:Uth(S.subtitleTruncationText),maxLines:2}):_.R("span",null,S.subtitle)):null;if(S.secondarySubtitle){var W=
S.secondarySubtitle;if(W!=null&&W.attachmentRuns){for(var m=[],J=_.n(W.attachmentRuns),c=J.next();!c.done;c=J.next())c=c.value,c.element&&m.push(Object.assign({},c,{element:Object.assign({},c.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));W=Object.assign({},W,{attachmentRuns:m})}W=_.R("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.R(_.qw,{text:W}))}else W=null;return _.R("div",Y,u,P,W,S.buttonViewModel?
NN9(S.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
VJU=function(Y){var S={};S=_.uN("video-summary-content-view-model-wiz",Y.className,(S["video-summary-content-view-model-wiz--is-search"]=!!Y.isSearch,S));var P=_.g(Y.data.likeButtonViewModel,sg9),u=_.g(Y.data.dislikeButtonViewModel,dfY),W=ww(function(){var m=[],J,c=(J=Y.data)==null?void 0:J.paragraphs;if(c==null||!c.length)return[];for(J=0;J<c.length;J++){var C=_.g(c[J],HHJ),x=void 0;J>0&&(x=_.g(c[J-1],HHJ));x&&!!x.marker===!!C.marker?m[m.length-1].paragraphs.push(C):m.push({isList:!!C.marker,paragraphs:[C]})}return m},
[Y.data]);
return _.R("video-summary-content-view-model",{class:S},W.map(function(m){return m.isList?_.R("ul",{class:"video-summary-content-view-model-wiz__list"},m.paragraphs.map(function(J){return _.R("li",{class:"video-summary-content-view-model-wiz__list-item"},_.R(_.qw,{text:J.text}))})):m.paragraphs.map(function(J){return _.R("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.R(_.qw,{text:J.text}))})}),_.kS(!!P&&!!u,function(){return _.R("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.R("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.R(FkX,{data:P,
disableIconAnimation:!0})),_.R(Xnh,{data:u}))}))};
_.VR=function(Y,S,P,u,W){u=u===void 0?{}:u;if(!W||Math.random()<5E-4){S=S||null;P=P||null;Y=Y instanceof Error?Y:new _.$2(Y);if(Y.args)for(var m=_.n(Y.args),J=m.next();!J.done;J=m.next())J=J.value,J instanceof Object&&(u=Object.assign({},J,u));u.category="H5 Ads Control Flow";S&&(u.slot=S?"slot:  "+S.slotType:"");P&&(u.layout=P?"layout:  "+P.layoutType:"",u.layoutId=P.layoutId);W&&(u.known_error_aggressively_sampled=!0);Y.args=[u];_.sf(Y)}};
_.eVK=function(Y,S){_.nb(Y,"yt-open-popup-action",[_.Vc(S),Y])};
Y3h=function(Y){if(!Y)return"";if(OH9[Y])return OH9[Y];eF||(eF=_.nN("A"));eF.href!==Y&&xU(eF,Y);var S=eF.pathname;OH9[Y]=S.startsWith("/")?S:"/"+S;return OH9[Y]};
S3f=function(){var Y=Y3h(window.location.href);if(Y==="/")return"home";if(Y.startsWith("/results"))return"search";if(Y.startsWith("/watch"))return"watch";if(Y.startsWith("/shorts"))return"shorts";if(Y.startsWith("/hashtag"))return"hashtag";if(Y.startsWith("/create_channel"))return"create_channel";if(Y.startsWith("/@")||Y.startsWith("/user/")||Y.startsWith("/channel/"))return"channel";if(Y.startsWith("/experiments"))return"experiments";if(Y.startsWith("/sponsor_channel"))return"sponsorship";if(Y.startsWith("/select_site"))return"settings";
if(Y.startsWith("/locate"))return"locate";if(Y.startsWith("/redeem"))return"redeem";if(Y.startsWith("/musicpremium")||Y.startsWith("/premium")||Y.startsWith("/red"))return"premium";if(Y.startsWith("/paid_memberships"))return"paid_memberships";if(Y.startsWith("/oops"))return"oops";if(Y.startsWith("/clip"))return"clip";var S;return(OP==null?void 0:(S=OP.response)==null?void 0:S.page)==="404"?"404":Y.startsWith("/feed/history")?"history":Y.startsWith("/feed/library")?"library":Y.startsWith("/feed/subscriptions")?
"subscriptions":Y.startsWith("/feed/trending")?"trending":Y.startsWith("/feed/news_destination")?"news":Y.startsWith("/playlist")?"playlist":Y.startsWith("/minor_moment")?"minor_moment":Y.startsWith("/playable/")||Y.match("^/playables/(?!saved).")?"mini_app":Y.startsWith("/playables")?"playables":Y.startsWith("/create/live/join")?"open_in_app":Y.startsWith("/feed/explore")?"explore":"browse"};
_.zHu=function(){var Y=OP==null?void 0:OP.response,S=Y==null?void 0:Y.endpoint;if(!S)return(Y==null?void 0:Y.page)==="watch"?"watch":S3f();var P;Y=(P=_.g(S==null?void 0:S.commandMetadata,_.Yo))==null?void 0:P.webPageType;P=!1;if(Y&&!PQ1.includes(Y))switch(Y){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var u;return((u=_.g(S==null?void 0:S.commandMetadata,_.Yo))==null?0:u.url)&&Y3h(_.g(S.commandMetadata,_.Yo).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var W;return(S=(W=_.g(S,_.CV))==null?void 0:W.browseId)?uwh[S]||"browse":"browse";default:P=!0}if(_.g(S,_.Ya)||_.g(S,Wdu))return"sponsorship";W=Y3h(window.location.href);if(W.startsWith("/experiments"))return"experiments";if(W.startsWith("/create_channel"))return"create_channel";
if(_.g(S,_.tp)&&W.startsWith("/shorts"))return"shorts";if(_.g(S,_.tp)&&W.startsWith("/watch"))return"watch";P&&(S=new _.$2("Unsupported mWeb page type",{pathname:W,webPageType:Y}),_.p_(S));return"browse"};
CQh=function(Y){var S=Y.data;var P=Y.inlineMetadata;var u=Y.aspectRatio;var W=Y.scrimStyle;var m=Y.useDefaultStyle;var J=Y.className;var c=F3(new mO8);Y=_.f("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";Y=m?Y==="SHORTS_LOCKUP_STYLE_SLIM":S.style==="SHORTS_LOCKUP_STYLE_SLIM";P=P||Y||!1;W=W!==void 0?W:1;var C=_.Ms(function(w){c.value&&(c.value.hostElement=w,a())});
_.Yy(C,{visibilityCallback:function(w){w&&S.onFirstVisible&&_.ae(S.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});J=_.uN("shortsLockupViewModelHost",J);var x=_.Ie({elementsCommand:S.onTap}),b=_.Ms();_.CUY(b,_.vF(S.onTap));var T=_.mR(function(w){if(x==null?0:x.onclick)x.onclick(w);return!1}),K=_.Ms(),G=[];
G.push("shortsLockupViewModelHostThumbnailContainer");u===1?G.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):u===2&&G.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");Y||G.push("shortsLockupViewModelHostThumbnailContainerRounded");_.f("web_shorts_2_by_3_lockups_study")||_.f("desktop_search_enable_two_by_three_shorts_aspect_ratio")||G.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var v,a=function(){if(c.value){var w;(w=v)==null||
Sb(w);w=c.value;var F;w.hostElement&&((F=w.data)==null?0:F.inlinePlayerData)&&(v=UP({mediaRenderer:w,lockupElement:w.hostElement,thumbnailElement:K.value,videoPreviewOpts:nrh}))}};
aj(function(){c.value&&(c.value.data=S,a())},[S]);
return _.R("ytm-shorts-lockup-view-model",{el:C,class:J},_.R("a",{el:b,"on:click":T,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!P,tabindex:P?0:-1},_.R("div",{el:K,class:G.join(" ")},_.kS(S.thumbnail,function(){return _.R(_.SX,null,_.R(_.ZZ,{data:S.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),P?_.R(jwX,{data:S,
scrimStyle:W,useDefaultStyle:m}):null,JUh(S.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),P&&S.menuOnTap?_.R(B_h,{data:S,inlineMetadata:P}):null,P?null:_.R(cUJ,{useDefaultStyle:m,data:S}))};
jwX=function(Y){var S=Y.data;var P=Y.scrimStyle;var u=Y.useDefaultStyle;var W=_.f("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";Y=u&&_.f("web_hide_primary_text_for_pivot_panel");var m={};u=_.uN("shortsLockupViewModelHostInlineMetadata",(m.shortsLockupViewModelHostMetadataRounded=!(u?W==="SHORTS_LOCKUP_STYLE_SLIM":S.style==="SHORTS_LOCKUP_STYLE_SLIM"),m.shortsLockupViewModelHostInlineMetadataShortScrim=P===3&&!_.f("enable_shorts_lockup_new_scrim"),
m.shortsLockupViewModelHostInlineMetadataShortScrimNew=P===3&&_.f("enable_shorts_lockup_new_scrim"),m.shortsLockupViewModelHostInlineMetadataMediumScrim=P===2||P===4,m.shortsLockupViewModelHostShowOverPlayer=!0,m));var J,c;W={};return _.R("div",{class:u+" image-overlay-text"},_.R("h3",{class:_.Si("shortsLockupViewModelHostMetadataTitle",(W.shortsLockupViewModelHostMetadataTitleTextShadow=P===4,W)),"aria-label":S.accessibilityText},_.kS(((J=S.overlayMetadata)==null?void 0:J.primaryText)&&!Y,function(){return _.R(_.qw,
{text:S.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((c=S.overlayMetadata)==null?0:c.secondaryText)?_.R(q3a,{data:S,
scrimStyle:P}):null)};
cUJ=function(Y){var S=Y.data;var P=_.f("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";Y=(Y.useDefaultStyle?P==="SHORTS_LOCKUP_STYLE_SLIM":S.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var u=_.Ie({elementsCommand:S.onTap});P=_.Ms();_.CUY(P,_.vF(S.onTap));var W=_.mR(function(T){if(u==null?0:u.onclick)u.onclick(T);return!1}),m,J,
c,C,x,b={};
return _.R("div",{class:Y+" image-overlay-text","on:click":W},_.R("h3",{class:_.Si("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(b.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((m=S.overlayMetadata)==null?0:(J=m.primaryText)==null?0:J.content),b)),"aria-label":S.accessibilityText},_.R("a",{el:P,"on:click":W,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(c=S.overlayMetadata)==null?void 0:(C=c.primaryText)==
null?void 0:C.content},_.kS(S.overlayMetadata,function(){return _.R(_.qw,{text:S.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((x=S.overlayMetadata)==null?0:x.secondaryText)?_.R(q3a,{data:S,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,S.menuOnTap?_.R(B_h,{data:S,inlineMetadata:!1}):null)};
q3a=function(Y){var S=Y.data;var P=Y.scrimStyle;Y=Y.className;var u,W={};return _.R("div",{class:_.Si((W.shortsLockupViewModelHostMetadataSubhead=P!==4,W.shortsLockupViewModelHostMetadataSubheadNew=_.f("enable_shorts_lockup_new_scrim"),W.shortsLockupViewModelHostMetadataSubheadTextShadow=P===4,W),Y),"aria-hidden":"true"},_.R(_.qw,{text:(u=S.overlayMetadata)==null?void 0:u.secondaryText,noStyleRuns:!0}))};
B_h=function(Y){var S={};S=_.uN((S.shortsLockupViewModelHostInlineMetadataMenu=Y.inlineMetadata,S.shortsLockupViewModelHostOutsideMetadataMenu=!Y.inlineMetadata,S.shortsLockupViewModelHostShowOverPlayer=!0,S));return _.R("div",{class:S},_.R(HL,{data:{style:Y.inlineMetadata?"overlay":"mono",accessibilityLabel:Y.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(P){P.preventDefault();P.stopPropagation();var u=_.Ie({elementsCommand:Y.data.menuOnTap,forceNewState:!0});
if(u==null?0:u.onclick)u.onclick(P)}},
iconName:"MORE_VERT"}))};
PB=function(Y,S,P,u){return Y&&S?Y!==P||S!==u?(_.VR(Error("Ih"),void 0,void 0,{"stored-slot":Y,"stored-layout":S,"latest-slot":P,"latest-layout":u}),!1):!0:!1};
RHu=function(Y,S,P){return Y({targetId:S},function(u){return P.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},u,{header:P.continuationItems?P.continuationItems[0]:void 0}):Object.assign({},u,{contents:P.continuationItems?P.continuationItems:[]})})};
xOu=function(Y,S,P,u){if(S=S.trackingParams){var W,m=(W=P.getScreenLayer)==null?void 0:W.call(P);P=_.pM(m);W=_.wf(m);if(P&&W){var J=_.Re(S);_.f("combine_ve_grafts")?Y.graftServerVe(S,W,m):_.t6(P,W,J);u==null||u(J)}}};
T_h=function(Y){var S;return((S=bFX.get(Y))==null?void 0:S.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
fE$=function(Y,S){var P={type:S.slotType,controlFlowManagerLayer:KdY.get(S.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};S.slotEntryTrigger&&(P.entryTriggerType=S.slotEntryTrigger.triggerType);S.slotPhysicalPosition!==1&&(P.slotPhysicalPosition=S.slotPhysicalPosition);if(Y){P.debugData={slotId:S.slotId};if(Y=S.slotEntryTrigger)P.debugData.slotEntryTriggerData=Eru(Y);Y=S.slotFulfillmentTriggers;P.debugData.fulfillmentTriggerData=[];Y=_.n(Y);for(var u=Y.next();!u.done;u=Y.next())P.debugData.fulfillmentTriggerData.push(Eru(u.value));
S=S.slotExpirationTriggers;P.debugData.expirationTriggerData=[];S=_.n(S);for(Y=S.next();!Y.done;Y=S.next())P.debugData.expirationTriggerData.push(Eru(Y.value))}return P};
Eru=function(Y,S){var P={type:Y.triggerType};S!=null&&(P.category=S);Y.triggeringSlotId!=null&&(P.triggerSourceData||(P.triggerSourceData={}),P.triggerSourceData.associatedSlotId=Y.triggeringSlotId);Y.triggeringLayoutId!=null&&(P.triggerSourceData||(P.triggerSourceData={}),P.triggerSourceData.associatedLayoutId=Y.triggeringLayoutId);return P};
grh=function(Y,S,P,u){S={opportunityType:S};Y&&(u||P)&&(u=_.b9(u||[],function(W){return fE$(Y,W)}),S.debugData=Object.assign({},P&&P.length>0?{associatedSlotId:P}:{},u.length>0?{slots:u}:{}));
return S};
$Oa=function(Y){return uJ(Y.opportunityAdapterMap).concat(uJ(Y.triggerAdapterMap)).concat(uJ(Y.fulfillmentAdapterFactoryMap)).concat(uJ(Y.slotAdapterFactoryMap)).concat(uJ(Y.layoutRenderingAdapterFactoryMap))};
uJ=function(Y){var S=[];Y=_.n(Y.values());for(var P=Y.next();!P.done;P=Y.next())P=P.value,P.isAdsControlFlowEventListener&&S.push(P);return S};
zt=function(Y){var S=Y.slotId,P=Y.slotType,u=Y.slotPhysicalPosition;return S===void 0?new WB("Cannot construct a slot due to the missing id.",{adSlotMetadata:Y}):P===void 0?new WB("Cannot construct a slot due to the missing type.",{adSlotMetadata:Y}):u===void 0?new WB("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:Y}):{slotId:S,slotType:P,slotPhysicalPosition:u,managerLayer:"external",adSlotLoggingData:Y.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new rUa}};
Gua=function(Y){var S=Y.layoutId,P=Y.layoutType;return S===void 0?new mF("Cannot construct a layout due to the missing id.",{adLayoutMetadata:Y}):P===void 0?new mF("Cannot construct a layout due to the missing type.",{adLayoutMetadata:Y}):{layoutId:S,layoutType:P,managerLayer:"external",adLayoutLoggingData:Y.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new rUa,interactionLoggingAdsClientData:{}}};
hH$=function(Y){if((Y=Y.value)&&Y.querySelector("img")){var S=Y.querySelector("img");S.addEventListener("error",function(){xjX(S.src).then(function(P){(P=_.cx(P).toString())?S.src=P:S.removeAttribute("src")}).catch(function(){S.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
jb=function(Y,S){if(S&&(vr$(S.viewableCommand)||vr$(S.endOfSessionCommand))){Y=Y.value;var P=DOU(S==null?void 0:S.viewableCommand);S=DOU(S==null?void 0:S.endOfSessionCommand);if(!n6){var u=_.X3("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);n6=new IEh((u==null?void 0:u.length)===2?u[1]:null)}aE9(n6,Y);Lda(n6,Y,P,S)}};
Jh=function(Y){n6&&aE9(n6,Y.value)};
vr$=function(Y){Y=_.vF(Y);return!(Y==null||!Y.loggingUrls)&&Y.loggingUrls.length>0};
DOU=function(Y){if(!Y)return[];var S=[],P,u;((u=(P=_.vF(Y))==null?void 0:P.loggingUrls)!=null?u:[]).forEach(function(W){W.baseUrl&&S.push(W.baseUrl)});
return S};
wNY=function(Y){return Y.shorts.isDesktopSmallWidth};
_.pN8=function(Y){return Y.shorts.isWatchWhileMode};
_.BB=function(Y){return Y.shorts.isFullscreen};
_.cB=function(Y){return Y.shorts.isShortsPipActive};
swU=function(Y){var S,P;if(Y=(S=_.g(Y.reelsAdCardButtoned,Fda))==null?void 0:(P=S.animatedRenderingConfig)==null?void 0:P.easeOutSeconds)return Y+"s"};
lEJ=function(Y,S,P){return _.B(function(u){return u.return(new Promise(function(W){var m=new Image;m.onload=function(){W(new dOX(Y,S,P,m.naturalWidth,m.naturalHeight))};
m.src=P.toString()}))})};
XNu=function(Y,S){return Math.round(Y/1E-5)===Math.round(S/1E-5)};
ZF8=function(Y,S){return Math.round(Y/1E-5)===Math.round(S/1E-5)};
iFK=function(Y,S){return Y.year===S.year&&Y.month===S.month&&Y.day===S.day};
or1=function(Y,S){return Y.year!==S.year?Y.year<S.year:Y.month!==S.month?Y.month<S.month:Y.day<S.day};
AUY=function(Y){return Y.day===twh(Y.year,Y.month)?Y.month===11?{year:Y.year+1,month:0,day:1}:{year:Y.year,month:Y.month+1,day:1}:{year:Y.year,month:Y.month,day:Y.day+1}};
UOu=function(){var Y=new Date,S={year:Y.getFullYear(),month:Y.getMonth(),day:Y.getDate()};return{start:S,end:{year:Y.getFullYear()+2,month:Y.getMonth(),day:Y.getDate()},selectedDate:AUY(S)}};
QwU=function(Y){return(new UC(2)).format(new Date(Y.year,Y.month,Y.day))};
kua=function(Y){return{year:Y.getFullYear(),month:Y.getMonth(),day:Y.getDate()}};
MwE=function(Y,S){Y=(Y+(Number(S.utcOffsetSec)+(new Date(Y*1E3)).getTimezoneOffset()*60))*1E3;S=kua(new Date(Y));return{date:S,secondsSinceMidnight:Math.floor((Y-(new Date(S.year,S.month,S.day)).getTime())/1E3)}};
yUJ=function(Y,S){S=S.months.findIndex(function(P){return P.year===Y.year&&P.month===Y.month});
return S>=0?S:void 0};
N_E=function(Y){if(!Y)return!1;try{if(Y.host&&Y.host.tagName==="YT-FORMATTED-STRING"&&Y.host.id==="contenteditable-textarea"||Y.nodeType===Node.ELEMENT_NODE&&Y.tagName==="YTD-COMMENTBOX")return!0}catch(S){return!1}return N_E(Y.parentNode)};
C6=function(Y){return Y?!(Y.tagName!=="A"||!Y.href||!Y.classList.contains("yt-simple-endpoint")):!1};
HFa=function(Y){return Y?Y.tagName==="IMG"&&Y.classList.contains("emoji"):!1};
Vwh=function(Y,S,P){if(!Y)return null;var u=C6(Y);if(u&&P)return S=Y.pathname.substring(Y.pathname.indexOf("/channel/")+9),document.createTextNode("@"+S);if(u&&!P)return document.createTextNode("");if(HFa(Y))return P=Y.alt,Y=Y.dataset.emojiId,!Y&&S&&(S=_.qF(S,P))&&S.isCustomEmoji&&(Y=S.emojiId),Y?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+Y+">"):document.createTextNode(P);u=Y.cloneNode(!1);for(var W=0;W<Y.childNodes.length;++W){var m=Vwh(Y.childNodes[W],S,P);m&&u.appendChild(m)}return u};
Rf=function(Y){return Y?C6(Y)?Y:Rf(Y.lastChild):null};
eHE=function(Y){return Y?C6(Y)?Y:eHE(Y.firstChild):null};
OFh=function(Y){if(!Y)return null;for(var S=Y.previousSibling;S;)if(S.nodeType===Node.ELEMENT_NODE&&S.nodeName==="BR")S=S.previousSibling;else if(S.nodeType===Node.TEXT_NODE&&/\s+/.test(S.textContent))S=S.previousSibling;else break;(S=Rf(S))?Y=S:Y=(Y=Y.parentNode)?Rf(Y.previousElementSibling):null;return Y};
Ycf=function(Y){if(!Y)return null;for(var S=Y.nextSibling;S;)if(S.nodeType===Node.ELEMENT_NODE&&S.nodeName==="BR")S=S.nextSibling;else if(S.nodeType===Node.TEXT_NODE&&/\s+/.test(S.textContent))S=S.nextSibling;else break;return(S=eHE(S))?S:Ycf(Y.parentNode)};
Sc8=function(Y){var S=_.xa(),P=S.JSC$9117_getStartNode();if(!N_E(P.parentNode))return null;S=S.JSC$9117_getStartOffset();if(P.nodeType===Node.TEXT_NODE){var u=_.rh(P,C6);if(u){if(Y&&S===0||!Y&&S===P.length)return u}else{if(Y&&S===P.length)return!P||P.nodeName==="BR"||P.nextElementSibling&&_.bJ(P.nextElementSibling,"display")==="block"?null:eHE(P.nextElementSibling);if(!Y&&S===0)return P?Rf(P.previousElementSibling):null}}if(P.nodeType===Node.ELEMENT_NODE)if(Y){if(0<=S&&S<P.childNodes.length)return eHE(P.childNodes[S])}else if(0<
S&&S<=P.childNodes.length)return Rf(P.childNodes[S-1]);return null};
PbK=function(Y,S,P){if(!Y)return null;if(Y.nodeType===Node.TEXT_NODE)if(P){var u=OFh(Y);if(u&&!/^\s+\S/.test(Y.wholeText.substr(0,S)))return u}else if((u=Ycf(Y))&&!/\S\s+/.test(Y.wholeText.substr(S,Y.wholeText.length)))return u;return Y.nodeType===Node.ELEMENT_NODE?P?OFh(Y.childNodes[S]):Ycf(Y.childNodes[S]):PbK(Y.parentNode,S,P)};
u8J=function(Y){if(Y.hasChildNodes())switch(Y.tagName){case "DIV":case "A":case "SPAN":var S="";for(Y=Y.firstChild;Y;Y=Y.nextSibling)S+=u8J(Y);return S;default:return""}else switch(Y.nodeType){case 3:return Y.textContent;default:return""}};
Tt=function(Y,S){return Y.year===S.year&&Y.month===S.month&&Y.day===S.day};
K6=function(Y,S){return Y.year!==S.year?Y.year<S.year:Y.month!==S.month?Y.month<S.month:Y.day<S.day};
W7K=function(Y){return{year:Y.getFullYear(),month:Y.getMonth(),day:Y.getDate()}};
zb1=function(Y){var S=d$$;S=S===void 0?d$$:S;S(new Date(Y.year,Y.month,Y.day))};
Es=function(Y){return W7K(new Date(Number(Y.seconds)*1E3))};
m39=function(Y){return Y.year!==void 0&&Y.month!==void 0&&Y.day!==void 0};
nk1=function(Y){return Y.start!==void 0&&Y.end!==void 0};
jvh=function(Y){return nk1(Y)?Y.start:Y};
Jof=function(Y){return nk1(Y)?Y.end:void 0};
coa=function(Y,S){for(var P=[],u=new Date(Y.start.year,Y.start.month);u.getFullYear()<Y.end.year||u.getFullYear()===Y.end.year&&u.getMonth()<=Y.end.month;){var W=P,m=W.push,J=u.getFullYear(),c=u.getMonth(),C=Y,x=S,b=void 0,T=[],K=Object.freeze({extraCssClass:"invisible"}),G=new Date(J,c),v=W7K(G);G=G.getDay();for(var a=W7K(new Date);v.month===c;){G!==BRU&&b||(b=Array.from({length:7}).fill(K),T.push(b));var w={date:{year:J,month:c,day:v.day},extraCssClass:"",debugClass:""};w.extraCssClass=x(w.date,
v,a,C).trim();b[(G-BRU+7)%7]=w;v=v.day===twh(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};G=(G+1)%7}m.call(W,{weeks:T,monthLabel:f6.SHORTMONTHS[c]+" "+J,year:J,month:c,monthLabelExtraCssClass:T[0][2]===K?"shift-down-label":""});u.setMonth(u.getMonth()+1)}return P};
Cb8=function(Y,S){S=S.months.findIndex(function(P){return P.year===Y.year&&P.month===Y.month});
return S>=0?S:void 0};
Rba=function(Y,S){a:{var P=P===void 0?[2,3]:P;P=_.n(P);for(var u=P.next();!u.done;u=P.next()){var W=new Date;if((new qcK(u.value)).parse(S,W,{validate:!0})){W.setHours(0,0,0,0);S=W;break a}}S=null}if(!S)return{isValid:!1,value:void 0};S=W7K(S);P=Y.end;return K6(S,Y.start)||K6(P,S)?{isValid:!1,value:void 0}:{isValid:!0,value:S}};
Ek8=function(Y){var S=x3J;S=S===void 0?bWa:S;var P=Y.columnsToShow||[],u=TR8(Y.columnDimensions,Y.columnsToShow,Y.leftFloatingColumns,S);return P.map(function(W,m){var J=Y.columns[W];if(J===void 0)throw Error("Oh");var c=u?u[m]:"";var C=Y.getCustomTooltip?Y.getCustomTooltip(W,J.headerTooltipParagraphs):J.headerTooltipParagraphs;var x=K7U(Y,W);return{type:W,index:m,style:c,classes:x,headerName:J.headerName||"",headerIcon:J.headerIcon,headerTooltipParagraphs:C||[],headerTooltipHelpContext:J.headerTooltipHelpContext,
sortOrders:J.sortOrders||[],selectionState:J.isSelectionCheckbox?Y.selectionState:void 0}})};
K7U=function(Y,S){var P=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],u=Y.columns[S];if(u===void 0)return"";var W=P.includes("DEFAULTS")&&u.cssClass?[u.cssClass]:[];if(P.includes("SORTING")){u.sortOrders&&u.sortOrders.length&&W.push("sortable");if(Y.sorting&&Y.sorting.columnType===S)a:switch(Y.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var m="column-sorted";break a;default:m=""}else m="";m&&W.push(m)}P.includes("FLOATING")&&(S=Y.columnsToShow.indexOf(S),Y.leftFloatingColumns&&S<Y.leftFloatingColumns&&
W.push("floating-column"),Y.leftFloatingColumns&&S===Y.leftFloatingColumns-1&&W.push("last-floating-column"));P.includes("RIGHT_ALIGN")&&u.rightAlignHeader&&W.push("right-align");return W.filter(function(J){return J}).join(" ")};
TR8=function(Y,S,P,u){P=P===void 0?0:P;u=u===void 0?bWa:u;if(Y){var W=[],m=0;frh(Y,S,u).forEach(function(J,c){var C="min-width:"+J.minWidth+"px;padding-left:"+J.paddingLeft+"px;padding-right:"+J.paddingRight+"px;flex:"+J.flexGrow+" 0 "+J.minWidth+"px;";J.maxWidth!==Infinity&&(C=[C,"max-width:"+J.maxWidth+"px;"].join(""));m>0&&c<P&&(C=[C,"left:"+m+"px;"].join(""));W.push(C);m+=J.minWidth+J.paddingLeft+J.paddingRight});
return W}};
frh=function(Y,S,P){P=P===void 0?bWa:P;return S.map(function(u,W){u=Y&&Y[u]||{};var m=W===0?P.paddingLeftFirstColumn:P.padding;u.paddingLeft!==void 0&&(m=u.paddingLeft);W=W===S.length-1?P.paddingRightLastColumn:P.padding;u.paddingRight!==void 0&&(W=u.paddingRight);return{paddingLeft:m,paddingRight:W,minWidth:u.minWidth!==void 0?u.minWidth:P.minWidth,maxWidth:u.maxWidth!==void 0?u.maxWidth:P.maxWidth,flexGrow:u.flexGrow!==void 0?u.flexGrow:P.flexGrow}})};
gkh=function(Y){var S=Y.reduce(function(u,W){var m=W.columnId,J={};W.headerText&&(J.headerName=_.Ma(W.headerText));W.rightAlignHeader&&(J.rightAlignHeader=W.rightAlignHeader);var c;if((c=W.headerIcon)==null?0:c.iconType)J.headerIcon=_.u2(W.headerIcon.iconType);u[m]=J;return u},{}),P=Y.filter(function(u){return!u.hideColumn}).map(function(u){return u.columnId});
Y=Y.filter(function(u){return!!u.dimensions}).reduce(function(u,W){u[W.columnId]=W.dimensions;
return u},{});
return{columns:S,columnsToShow:P,columnDimensions:Y}};
_.$3a=function(Y){return Y?Y.simpleText?Y.simpleText:Y.runs?Y.runs.map(function(S){return S.text}).join(""):"":""};
D3f=function(Y){var S=Y.data;var P=Y.onTap;var u=Y.isSelected;var W=Y.onFocusIn;if(!S)return{};Y=ro1(S);u===void 0&&(u=S==null?void 0:S.isSelected);var m;return{text:GmX(S,Y),startIcon:(m=S.icon)==null?void 0:m.iconType,state:u?0:2,type:0,onTap:hbX(S,P),accessibilityLabel:vk9(S,Y),onFocusIn:function(){return W==null?void 0:W()}}};
GmX=function(Y,S){if(!S)return Y.text?_.$3a(Y.text):void 0};
hbX=function(Y,S){return function(P){S==null||S(P,Y)}};
ro1=function(Y){Y=Y.style&&Y.style.styleType;return!IrJ&&Y==="STYLE_EXPLORE_LAUNCHER_CHIP"};
vk9=function(Y,S){if(S){var P,u,W;return(W=(P=Y.accessibilityData)==null?void 0:(u=P.accessibilityData)==null?void 0:u.label)!=null?W:GmX(Y,!1)}};
gH=function(Y){return{signalAction:{signal:Y}}};
wlh=function(){return _.X3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?ara:_.L7u};
plU=function(Y,S){Y=Y===void 0?"SOFT_RELOAD_PAGE":Y;S=S===void 0?49504:S;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Sk(_.Td("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:S}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:Y}}]}}}};
F7U=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Sk(_.Td("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:wlh()}};
svY=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Sk(_.Td("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:wlh()}};
d3X=function(Y,S){var P=_.Sk(_.Td("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),u=_.Sk(_.Td("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),W={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Sk(_.Td("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};W.serviceEndpoint=Y?Y:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[gH("SOFT_RELOAD_PAGE")]}};return{title:P,bodyText:u,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:W},
style:{value:S!=null?S:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
Xl9=function(Y){Y=Y===void 0?{}:Y;return{title:_.Sk(Y.localizedZeroStateTitleText===void 0?"":Y.localizedZeroStateTitleText),bodyText:_.Sk(Y.localizedZeroStateMessage===void 0?"":Y.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Sk(Y.localizedZeroStateButtonText===void 0?"":Y.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[lrY]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.okY=function(Y,S,P,u,W,m,J,c){u=u===void 0?!1:u;W=W===void 0?!1:W;m=m===void 0?0:m;J=J===void 0?-Infinity:J;c=c===void 0?!1:c;var C=[],x=_.Sk(_.Td("SMART_DOWNLOADS",void 0,"Smart downloads"));J=_.Sk(ZW$(m,J,Y.length));m=void 0;u?m=Y.length>0?iW$(Y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.f("kevlar_manual_downloads_above"),x,J):c?{alertBannerViewModel:{heading:{content:P.localizedOptInBannerTitleText===void 0?"":P.localizedOptInBannerTitleText},body:{content:P.localizedPromptMessage===
void 0?"":P.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Td("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Td("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:_.eDJ}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.Sk(_.Td("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"}}}:W&&(m={alertBannerViewModel:{heading:{content:P.localizedOptInBannerTitleText===void 0?"":P.localizedOptInBannerTitleText},body:{content:P.localizedOptInMessage===
void 0?"":P.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Td("TURN_ON",void 0,"Turn on"),accessibilityText:_.Td("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}}}}}});P=_.Sk(_.Td("YOUR_DOWNLOADS",void 0,"Your downloads"));W=void 0;S.length>0?(W=void 0,_.f("kevlar_display_downloads_numbers")&&(W=_.Sk(_.fb("VIDEO_COUNT",S.length))),W=iW$(S,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,P,W)):u||Y.length||(W={backgroundPromoRenderer:{bodyText:_.Sk(_.Td("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}}}});m&&!_.f("kevlar_manual_downloads_above")&&C.push({richSectionRenderer:{content:m,loggingDirectives:{clientVeSpec:{uiType:139572}}}});W&&C.push({richSectionRenderer:{content:W,loggingDirectives:{clientVeSpec:{uiType:51721}}}});m&&_.f("kevlar_manual_downloads_above")&&C.push({richSectionRenderer:{content:m,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(S.length>0||u&&Y.length>0)&&C.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Sk(_.Td("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:C}};
_.Ao8=function(Y){return tt9(Y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.U38=function(Y){return tt9(Y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
tt9=function(Y,S){var P=[];Y=iW$(Y,S,!0);P.push({richSectionRenderer:{content:Y}});return{contents:P}};
iW$=function(Y,S,P,u,W){P=P===void 0?!1:P;Y={isExpanded:P,contents:$a(Y),entitySelectorType:S};u&&(Y.title=u);W&&(Y.subtitle=W);P||(_.f("kevlar_smart_downloads_show_more_button")?(Y.showMoreButton={buttonRenderer:{accessibility:{label:_.Td("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Sk(_.Td("SHOW_MORE",void 0,"Show more"))}},Y.showLessButton={buttonRenderer:{accessibility:{label:_.Td("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Sk(_.Td("SHOW_LESS",void 0,"Show less"))}}):(Y.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Td("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},Y.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.Td("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},Y.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Td("VIEW_ALL",void 0,"View all"),accessibilityText:_.Td("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:OV("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:Y}};
$a=function(Y){var S=[];Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())if(P=P.value,Fla(P)){var u=S,W=u.push;var m=void 0;if(P==null?0:(m=P.videoEntity)==null?0:m.videoId){m=Xp(_.Na().getState(),P.videoEntity.videoId);var J=_.Na().getState();var c=_.JE(P.videoEntity.videoId,"mainVideoEntity");J=!!_.hE(J.entities)[c];J={videoId:P.videoEntity.videoId,title:PT(P.videoEntity.title),shortBylineText:PT(P.channelEntity.title),thumbnail:P.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:J&&_.f("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:FQJ(P.videoEntity.videoId,m,P.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Td("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};P.videoEntity.lengthSeconds&&(J.thumbnailOverlays=SGf(P.videoEntity.lengthSeconds,m));J.isWatched=m>0;_.f("kevlar_modern_downloads_page")&&(J.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:P.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Td("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},J.badges=void 0);P=J}else P={};W.call(u,{richItemRenderer:{content:{videoRenderer:P},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(pYa(P)){u=S;W=u.push;var C=c=m=void 0,x=void 0,b=void 0,T=void 0,K=void 0,G=void 0,v=void 0,a=void 0,w=void 0,F=void 0;J=P.mainPlaylistEntity.playlistId;var U=P==null?void 0:(F=P.mainPlaylistEntity)==null?void 0:(w=F.thumbnailStyleData)==null?void 0:(a=w[0])==null?void 0:(v=a.value)==null?void 0:(G=v.collageThumbnail)==
null?void 0:G.coverThumbnail;if(J&&U){G=sx1(J);!_.f("enable_offline_playlist_page")&&(P==null?0:(K=P.mainPlaylistEntity)==null?0:K.videos)&&(K=P==null?void 0:(T=P.mainPlaylistEntity)==null?void 0:(b=T.videos)==null?void 0:b[0],b=_.mZ(K).entityId,b=JSON.parse(b).videoId,b!==void 0&&(T=Xp(_.Na().getState(),b),G=_.YW(b,J,void 0,void 0,T)));b=[];if(P==null?0:(x=P.mainPlaylistEntity)==null?0:(C=x.videos)==null?0:C.length)b=[s81(),Object.assign({},(c=Fah(P==null?void 0:P.mainPlaylistEntity.videos.length))!=
null?c:{})];P={playlistId:J,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:U}},navigationEndpoint:G,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:b,title:PT(P.mainPlaylistEntity.title),shortBylineText:PT(P==null?void 0:(m=P.channelEntity)==null?void 0:m.title),badges:[{metadataBadgeRenderer:{label:_.Td("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.f("kevlar_modern_downloads_page")&&(P.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:Qvu,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:J,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Td("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},P.badges=void 0)}else P=void 0;W.call(u,{richItemRenderer:{content:{playlistRenderer:P},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return S};
ZW$=function(Y,S,P){Y=Y?kmX(Y):"";S!==void 0&&isFinite(S)?S===0?S=_.Td("UPDATING",void 0,"Updating..."):(S=YGY(new Date(S),new Date),S=_.Td("UPDATED_TIME",{relative_time:S},"Updated "+S)):S="";var u="";Y&&S&&(u=" \u2022 ");if(P&&_.f("kevlar_display_downloads_numbers")){P=_.fb("VIDEO_COUNT",P);if(Y||S)u=" \u2022 ";return P+u+Y+u+S}return Y+u+S};
Mtf=function(Y){return y7u(Y.entities).length};
_.yo8=function(Y,S){var P=egf(Y.responsiveSize),u;Y=!((u=Y.responsiveMap)==null||!u.some(function(W){return W.containerSize==="CONTAINER_SIZE_NARROW"&&W.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:S,sizing:P,enableFullBleedForSingleCol:!1,isCompactList:P==="COMPACT"&&Y}};
NRf=function(Y,S){return _.BT(Y.entities,"votingEntity",S)};
HW8=function(Y){if(Y){var S;return((S=_.E().resolve(_.PQ(_.F5)))==null?0:S())?Y.darkTheme:Y.lightTheme}};
VtU=function(Y,S,P){return _.R(_.SX,null,TwU(P,[[0,function(){return _.R("h2",{class:S},Y)}],
[1,function(){return _.R("h3",{class:S},Y)}],
[2,function(){return _.R("h4",{class:S},Y)}]],function(){return _.R("h2",{class:S},Y)}))};
eb1=function(Y){var S=["shelf-header-layout-wiz"];Y.disableHorizontalPadding&&S.push("shelf-header-layout-wiz--disable-horizontal-padding");Y.disableVerticalPadding&&S.push("shelf-header-layout-wiz--disable-vertical-padding");Y.useResponsiveLayout&&(S.push("shelf-header-layout-wiz--responsive"),Y.forceSmallLayout&&S.push("shelf-header-layout-wiz--narrow"));Y.isOverlay&&S.push("shelf-header-layout-wiz--is-overlay");Y.onClick&&S.push("shelf-header-layout-wiz--tappable");var P=["shelf-header-layout-wiz__title"];
Y.forceSmallLayout&&P.push("shelf-header-layout-wiz__title--small-title");var u=["shelf-header-layout-wiz__leading-image"];Y.circularImage&&u.push("shelf-header-layout-wiz__leading-image--circular-image");var W=_.mR(function(m){var J;(J=Y.onClick)==null||J.call(Y,m)});
return _.R("yt-shelf-header-layout",{class:S.join(" "),"on:click":W,tabindex:Y.onClick?0:void 0},Y.leadingIcon?_.R("div",{class:"shelf-header-layout-wiz__leading-icon"},_.R(_.BX,{icon:Y.leadingIcon})):Y.leadingImage?_.R("div",{class:u.join(" ")},Y.leadingImage()):_.R(_.SX,null),_.R("div",{class:"shelf-header-layout-wiz__label-container"},Y.superlabel?_.R("div",{class:"shelf-header-layout-wiz__superlabel"},Y.superlabel()):_.R(_.SX,null),_.R("div",{class:"shelf-header-layout-wiz__title-row"},VtU(Y.title(),
P.join(" "),Y.tagLevel),_.kS(Y.detail,function(){return _.R("div",{class:"shelf-header-layout-wiz__detail"},Y.detail())})),Y.sublabel?_.R("div",{class:"shelf-header-layout-wiz__sublabel"},Y.sublabel()):_.R(_.SX,null)),Y.trailingActions?_.R("div",{class:"shelf-header-layout-wiz__trailing-actions"},Y.trailingActions()):_.R(_.SX,null))};
OW8=function(Y){var S=_.g(Y==null?void 0:Y.avatar,_.Aq),P,u=(P=Y==null?void 0:Y.image)!=null?P:_.yR(Y==null?void 0:Y.themedImage);return _.R(_.SX,null,_.kS(u,function(){return _.R(_.ZZ,{data:u,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.kS(S,function(){return _.R(_.rH,{data:S})}))};
Px$=function(Y){var S=_.g(Y.bottomBadge,YzU),P=S&&Y.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.R(_.SX,null,_.kS(S,function(){return S&&_.R(Szh,{data:S,class:P})}),_.kS(Y.sublabel,function(){return _.R(_.qw,{text:Y.sublabel})}))};
ulh=function(Y){var S=_.g(Y.topBadge,YzU),P=S&&Y.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.R(_.SX,null,_.kS(S,function(){return S&&_.R(Szh,{data:S,class:P})}),_.kS(Y.superlabel,function(){return _.R(_.qw,{text:Y.superlabel})}))};
z18=function(Y){var S=Y.data;var P=Y.disableHorizontalPadding;var u=Y.disableVerticalPadding;var W=Y.forceSmallLayout;var m=Y.useResponsiveLayout;Y=Y.isOverlay;var J=S.sublabel||S.bottomBadge,c=S.superlabel||S.topBadge,C=_.lL(S.rendererContext);P={title:function(){return _.R(_.qw,{text:S.headline})},
sublabel:J&&function(){return Px$(S)},
superlabel:c&&function(){return ulh(S)},
leadingImage:S.leadingAccessory&&function(){return OW8(S.leadingAccessory)},
trailingActions:S.trailingActions&&function(){return _.R(_.SX,null,WK9(S.trailingActions))},
disableHorizontalPadding:P,disableVerticalPadding:u,forceSmallLayout:W,useResponsiveLayout:m,isOverlay:Y,onClick:C?function(x){var b=_.dv(S.rendererContext);b&&_.DZ(b,{form:{element:x.target,event:x}})}:void 0};
u=(u=HW8(S==null?void 0:S.backgroundColor))?"background-color: "+_.hK(u)+";":void 0;return _.R("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:u},_.R(eb1,Object.assign({},P)))};
mWX=function(Y,S){if(Y.simpleText)return Object.assign({},Y,{simpleText:w8(Y.simpleText,S)});if(!Y.runs)return Y;for(var P=Object.assign({},Y,{runs:[]}),u=0,W=_.n(Y.runs),m=W.next();!m.done;m=W.next())if(m=m.value,m.text)if(u+m.text.length<=S)P.runs.push(m),u+=m.text.length;else return P.runs.push(Object.assign({},m,{text:w8(m.text,S-u)})),P;return Y};
n3Y=function(Y,S){return _.BT(Y.entities,"chipBarStateEntity",S)};
jXh=function(Y,S){return _.BT(Y.entities,"chipEntity",S)};
BO1=function(Y,S,P,u){return function(){var W=J1a.has(Y.displayType)&&Y.selected,m=W&&Y.deselectCommand?Y.deselectCommand:Y.tapCommand;!m||W&&u||_.ae(m,{form:{element:S==null?void 0:S.value}});P==null||P()}};
c1h=function(Y,S){return{triggeringElement:Y,onDwellTriggeredFn:function(){var P={triggeringElement:Y,loadVideoPreviewEventData:S},u=document.querySelector(".video-preview");u&&u.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:P}))},
onDwellEndFn:function(){var P=document.querySelector(".video-preview");P&&P.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Cxh=function(Y,S){var P=_.E().resolve(_.PQ(s01)),u=function(){var W=S();return P&&W?c1h(Y.value,W):null};
_.D6(function(){var W=u();P&&W&&Promise.resolve().then(function(){P.registerElement(W)});
_.aI(function(){P&&W&&Promise.resolve().then(function(){P.unregisterElement(W)})})})};
R1a=function(Y){var S=Y.dataset.resizeObserverId;if(S)return S;S=""+qzE++;return Y.dataset.resizeObserverId=S};
xWU=function(Y,S){var P=R1a(Y);Gt.has(P)||Gt.set(P,new Set);Gt.get(P).add(S);hh.has(P)&&S(Object.assign({},{target:Y},hh.get(P)))};
bL$=function(Y){Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;var P=R1a(S.target),u=Object.assign({},{target:S.target},hh.get(P));if(u!=null&&u.contentRect?u.contentRect.width!==S.contentRect.width||u.contentRect.height!==S.contentRect.height:1)for(hh.set(P,{borderBoxSize:S.borderBoxSize,contentBoxSize:S.contentBoxSize,contentRect:S.contentRect,devicePixelContentBoxSize:S.devicePixelContentBoxSize}),P=_.n(Gt.get(P)||[]),u=P.next();!u.done;u=P.next())u=u.value,u(S)}};
KK8=function(){return vB?vB:vB=new TO9(bL$)};
E38=function(Y,S){var P=R1a(Y);Gt.has(P)&&(Gt.get(P).delete(S),Gt.get(P).size===0&&(Gt.delete(P),hh.delete(P),vB.unobserve(Y),delete Y.dataset.resizeObserverId));Gt.size===0&&vB&&(vB.disconnect(),vB=void 0)};
g3K=function(Y,S){var P=_.E().resolve(Of);return fyK.map(function(u){return P.observe(Y,S,u)})};
$Wf=function(Y){var S=_.E().resolve(Of);Y.forEach(function(P){S.unobserveByKey(P)})};
_.h1a=function(Y,S){var P=Object.assign({},r11,S);S=_.n(KG8());var u=S.next().value,W=S.next().value,m=function(J){var c=J.contentRect.height;if((J=J.contentRect.width)||c||P.canHaveZeroSize)u.width()===J&&u.height()===c||W(u,{height:c,width:J})};
_.LE(function(){var J=Y instanceof HTMLElement?Y:Y.value,c=Gih(m,P.throttleMs),C=[];P.useVisibilityObserver&&(C=g3K(J,function(x,b){requestAnimationFrame(function(){b==="visible"?(xWU(J,c),KK8().observe(J)):E38(J,c)})}));
C.length||(xWU(J,c),KK8().observe(J));_.aI(function(){C.length&&($Wf(C),C.length=0);E38(J,c)})});
return u};
DWJ=function(Y){var S=Y.data;var P=Y.callback;var u=Y.enableSingleChipSelection;var W=Y.disableChipsScrollAnimation;var m=_.Ms();Y={};Y=_.n(zz(S.autoselectedChipIndex!=null?(Y[S.autoselectedChipIndex]=!0,Y):{}));var J=Y.next().value,c=Y.next().value,C=function(){var M=m.value;return M==null||M.scrollLeft-1<=0},x=function(){var M=m.value;
return M==null?!1:M.scrollLeft+1>=(M==null?NaN:M.scrollWidth)-(M==null?NaN:M.clientWidth)};
Y=_.n(zz(C()));var b=Y.next().value,T=Y.next().value;Y=_.n(zz(x()));var K=Y.next().value,G=Y.next().value;Y=S.isHorizontallyScrollable;var v=function(M){m.value!=null&&(_.X3("HTML_DIR")==="rtl"&&(M=-M),m.value.scrollBy({left:M,behavior:W?"instant":"smooth"}))},a=function(){v(-320)},w=function(){v(320)},F=_.mR(function(){var M=C(),zJ=x();
M!==b&&T(M);zJ!==K&&G(zJ)}),U={},V={};
return _.R("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},(S==null?void 0:S.title)&&_.R("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},S.title),_.R("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.kS(S.previousButton!=null,function(){var M={};return _.R("div",{class:_.uN("ytChipsShelfViewModelLeftArrowContainer",(M.ytChipsShelfViewModelLeftArrowContainerIsHidden=b,M))},v3u(S.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:a}}))}),_.R("div",
{el:m,
"on:scroll":F,class:_.uN("ytChipsShelfViewModelChipsScrollContainer",(U.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!Y,U))},_.R("div",{class:_.uN("ytChipsShelfViewModelChipsContainer",(V.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!Y,V.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!Y&&!1,V))},(S.contents||[]).map(function(M,zJ){return _.R("div",{class:"ytChipsShelfViewModelChipWrapper"},v3u(M,{chipViewModel:{callback:function(O,ca){if(u){var hu=
{};c((hu[zJ]=ca,hu))}else hu={},c(Object.assign({},J,(hu[zJ]=ca,hu)));P==null||P(O,ca,zJ)},
disableDeselection:u,selected:!!J[zJ]}}))}))),_.kS(S.nextButton!=null,function(){var M={};
return _.R("div",{class:_.uN("ytChipsShelfViewModelRightArrowContainer",(M.ytChipsShelfViewModelRightArrowContainerIsHidden=K,M))},v3u(S.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:w}}))})))};
Iy9=function(){return IrJ&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true"};
aya=function(Y,S){if(!((S==null?0:S.entitySelectorType)&&(S==null?0:S.entityKey)))return{};switch(S.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return Y=_.mkE(Y,S.entityKey),Y=Y==null?void 0:Y.value,S=!1,Y==="CAPTIONS_UNAVAILABLE"&&(S=!0,Y=""),Object.assign({},!!Y&&{selectionText:{content:Y}},{isSelected:!!Y},!!Y&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:S});default:return{}}};
w71=function(Y,S,P,u,W){Y=S?Y.switchOffCommand:Y.switchOnCommand;if(u&&W)LKK(Y,P,W);else{var m,J;(m=_.Ie({elementsCommand:Y}))==null||(J=m.onclick)==null||J.call(m,P)}};
LKK=function(Y,S,P){Y=_.Ie({elementsCommand:Y,additionalCommandArgs:{commandController:{onSuccess:function(){P(!1)},
onServerError:function(){P(!1)}}}});
if(Y==null?0:Y.onclick)Y.onclick(S),P(!0)};
FKh=function(Y){if(Y)return _.g(Y,p7Y)};
sX9=function(Y){Y=Y.selectElementClass;var S={};Y=_.uN("checkbox-shape-wiz__checkbox",Y,(S["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!Y,S));return _.R("div",{class:Y,"aria-hidden":"true"},_.R(_.BX,{icon:"BOX_EMPTY"}),_.R(_.BX,{icon:"BOX_CHECK",active:!0}))};
dWh=function(Y){var S=Y.name;var P=Y.onChange;var u=Y.onClick;var W=Y.checked===void 0?!1:Y.checked;var m=Y.labelRenderable;var J=Y.hasLeadingLabel;var c=Y.labelClass;var C=Y.isCompact;var x=Y.selectElementClass;var b=Y.disableHorizontalPadding;Y="checkbox"+_.D_(_.If);var T=_.Ms(),K=_.mR(function(a){u==null||u(a);return!1}),G=_.mR(function(a){T.value.checked=W;
P==null||P(a);return!1}),v={};
c=_.uN("checkbox-shape-wiz",c,(v["checkbox-shape-wiz--compact"]=!!C,v["checkbox-shape-wiz--disable-horizontal-padding"]=!!b,v));return _.R("checkbox-shape",null,_.R("label",{class:c},_.R("input",{el:T,class:"checkbox-shape-wiz__input",id:Y,checked:W,name:S,type:"checkbox","on:change":G,"on:click":K}),_.kS(!J,function(){return sX9({isLeading:!0,selectElementClass:x})}),_.kS(m,function(){return _.R("div",{class:"checkbox-shape-wiz__label"},m==null?void 0:m())}),_.kS(J,function(){return sX9({isLeading:!1,
selectElementClass:x})})))};
lyY=function(Y){var S=Y.useCheckIcon===void 0?!1:Y.useCheckIcon;var P=Y.selectElementClass;Y=S?"CHECK":"CIRCLE";var u="",W=_.f("radio_shape_filled_icon_manual_setting_killswitch");W&&(u=S?"CHECK":"CIRCLE_FILLED");var m={};P=_.uN("radio-shape-wiz__radio",P,(m["radio-shape-wiz__radio--check-icon"]=!!S,m["radio-shape-wiz__radio--radio-default-style"]=!P,m));return W?_.R("div",{class:P,"aria-hidden":"true"},_.R(_.BX,{icon:Y}),_.R(_.BX,{icon:u,active:!S})):_.R("div",{class:P,"aria-hidden":"true"},_.R(_.BX,
{icon:Y}),_.R(_.BX,{icon:Y,active:!S}))};
X7$=function(Y){function S(){var M;((M=_.E().resolve(_.PQ(_.Tz)))==null?0:M.isKeyBoardInUse())&&w.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function P(){w.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var u=Y.name;var W=Y.onChange;var m=Y.onClick;var J=Y.checked===void 0?!1:Y.checked;var c=Y.labelRenderable;var C=Y.useCheckIcon;var x=Y.hasLeadingLabel;var b=Y.labelClass;var T=Y.isCompact;var K=Y.selectElementClass;var G=Y.ariaLabel;var v=Y.className;Y=pE(function(){return"radio"+_.D_(_.If)});
var a=_.Ms(),w=_.Ms(),F=_.mR(function(M){a.value.checked=J;W==null||W(M);return!1}),U=_.mR(function(M){m==null||m(M);
return!1}),V=["radio-shape-wiz"];
v&&V.push(v);v={};b=_.uN("radio-shape-wiz__label-container",b,(v["radio-shape-wiz--compact"]=!!T,v));vR(function(){document.activeElement===a.value&&S()});
_.LE(function(){var M=a.value;M.addEventListener("focusin",S);M.addEventListener("focusout",P);return function(){M.removeEventListener("focusin",S);M.removeEventListener("focusout",P)}});
return _.R("radio-shape",{class:V.join(" ")},_.R("input",{el:a,class:"radio-shape-wiz__input",id:Y,"prop:checked":J,name:u,type:"radio","on:change":F,"on:click":U,"aria-label":G}),_.R("label",{class:b,for:Y,el:w},_.kS(!x,function(){return lyY({checked:J,useCheckIcon:C,isLeading:!0,selectElementClass:K})}),_.kS(c,function(){return _.R("div",{class:"radio-shape-wiz__label",
"aria-hidden":G?"true":"false"},c==null?void 0:c())}),_.kS(x,function(){return lyY({checked:J,
useCheckIcon:C,isLeading:!1,selectElementClass:K})})))};
ZL1=function(Y,S){return!!(S&&(Y.leadingImage||Y.leadingAccessory)||!S&&(Y.trailingImage||Y.trailingButton||Y.trailingButtons||Y.selectionText))};
tW9=function(Y){var S=Y.data;var P=Y.isLeading;var u=Y.hideSelectionTextChevron;if(ZL1(S,P)){var W=_.uN("yt-list-item-view-model-wiz__button-container");Y={};var m=_.uN("yt-list-item-view-model-wiz__image-container",(Y["yt-list-item-view-model-wiz__leading"]=P,Y["yt-list-item-view-model-wiz__trailing"]=!P,Y)),J=P?S.leadingImage:S.trailingImage,c=_.uN("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");Y={};var C=_.uN("yt-list-item-view-model-wiz__accessory",(Y["yt-list-item-view-model-wiz__leading"]=
P,Y["yt-list-item-view-model-wiz__trailing"]=!P,Y)),x=!!S.selectionText,b=iLa(S.listItemIconAfterSelectionText);return function(){var T;return _.R(_.SX,null,_.kS(J,function(){return _.R("div",{class:m,"aria-hidden":"true"},_.R(_.ZZ,{data:J,alt:"",preserveWidth:!0,preserveHeight:!0,className:c}))}),_.kS(P&&S.leadingAccessory,function(){return _.R("div",{class:m},o3J(S.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:c}}))}),_.kS(!P&&S.trailingButton,function(){return _.R("div",{class:W},
o3J(S.trailingButton,{buttonViewModel:{className:C}}))}),_.kS(!P&&((T=S.trailingButtons)==null?void 0:T.buttons),function(){var K;
return _.R("div",{class:W},o3J((K=S.trailingButtons)==null?void 0:K.buttons,{buttonViewModel:{className:C},accountLinkButtonViewModel:{className:C},switchButtonViewModel:{className:C},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:C}}))}),_.kS(!P&&x,function(){return _.R(_.SX,null,_.R(_.qw,{text:S.selectionText,
className:_.uN("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.kS(!u,function(){return _.R(_.BX,{icon:b,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
iLa=function(Y){switch(Y){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":return"expand_more";default:return"chevron_right"}};
A1f=function(Y){return Y.title||Y.subtitle?function(){return _.R("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.R("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.kS(Y.title,function(){return _.R(_.qw,{text:Y.title,className:"yt-list-item-view-model-wiz__title"})})),_.kS(Y.subtitle,function(){return _.R(_.qw,{text:Y.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.R(_.SX,null)}};
UWE=function(Y){function S(){var yX;((yX=_.E().resolve(_.PQ(_.Tz)))==null?0:yX.isKeyBoardInUse())&&zJ.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function P(){zJ.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var u=Y.data;var W=Y.isMenuItem;var m=Y.isCompact;var J=Y.onTap;var c=Y.trailingAccessory;var C=Y.hideSelectionTextChevron;var x=Y.disabled;var b=Y.inPopup;var T=Y.disableHorizontalPadding;var K=Y.isOverlay;Y=CRu(function(yX){return aya(yX,u)});
var G=_.f("enable_web_shorts_captions_language_command")?Object.assign({},u,Y):u;Y=!(G.isSelected===void 0||!G.selectionStyle||G.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var v=(_.lL(G.rendererContext)||J)&&!Y,a=_.lL(G.rendererContext)||Y;x=!!G.isDisabled||!!x;var w={};K=_.uN("yt-list-item-view-model-wiz",(w["yt-list-item-view-model-wiz--is-overlay"]=!!K,w));w={};var F=_.uN("yt-list-item-view-model-wiz__label",(w["yt-list-item-view-model-wiz__container"]=!Y,w["yt-list-item-view-model-wiz__container--disabled"]=
x,w["yt-list-item-view-model-wiz__container--has-subtitle"]=!!G.subtitle,w["yt-list-item-view-model-wiz__container--compact"]=!!m,w["yt-list-item-view-model-wiz__container--tappable"]=v,w["yt-list-item-view-model-wiz__container--in-popup"]=!!b,w));x={};x=_.uN("yt-list-item-view-model-wiz__container",(x["yt-list-item-view-model-wiz__container--tappable"]=a,x["yt-list-item-view-model-wiz__container--compact"]=!!m,x["yt-list-item-view-model-wiz__container--in-popup"]=!!b,x["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!T,x));w=G.leadingImage||G.leadingAccessory;var U=_.uN("yt-list-item-view-model-wiz__image-container",w?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),V=_.f("apply_button_role_to_list_item");b=_.Ms();var M=_.Ms(),zJ=V?M:b,O=function(){var yX,la,w1;return _.R(_.SX,null,(yX=tW9({data:G,isLeading:!0,hideSelectionTextChevron:!!C}))==null?void 0:yX(),(la=A1f(G))==null?void 0:la(),c?_.R("div",{class:"yt-list-item-view-model-wiz__trailing"},c()):(w1=tW9({data:G,isLeading:!1,
hideSelectionTextChevron:!!C}))==null?void 0:w1())},ca=function(){return V?_.R("div",{class:F,
el:M,role:a||v?"button":void 0,tabindex:J||v?0:void 0,"on:keydown":va,"on:click":ah},O()):_.R("div",{class:F,el:M},O())},hu={labelRenderable:ca,
isCompact:m,checked:G.isSelected,hasLeadingLabel:!!w,labelClass:x,selectElementClass:U,disableHorizontalPadding:!!T};_.XJ(b,G.rendererContext);var ah=_.mR(function(yX){return void(J==null?void 0:J(yX))}),va=_.FJ();
_.LE(function(){v&&(zJ.value.addEventListener("focusin",S),zJ.value.addEventListener("focusout",P));return function(){zJ.value&&v&&(zJ.value.removeEventListener("focusin",S),zJ.value.removeEventListener("focusout",P))}});
m=_.mR(function(){return!1});
return _.R("yt-list-item-view-model",{el:b,class:K,role:W?"menuitem":"listitem",tabindex:V?void 0:J||v?0:void 0,"on:keydown":V?m:va,"on:click":V?m:ah},_.kS(Y,function(){return TwU(G.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.R(dWh,Object.assign({},hu))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.R(X7$,Object.assign({},hu))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.R(X7$,Object.assign({},hu,{useCheckIcon:!0}))}]],function(){return ca()})},function(){return ca()}))};
NOY=function(Y,S,P){if(S)return[QX$];switch(Y){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[af];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return P?[af]:[ki9,af];case "TRANSFER_STATE_PAUSED_BY_USER":return[MW9,af];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[y1E,af];default:return[QX$]}};
HL9=function(Y,S,P,u){return NOY(Y,S,u).map(function(W){var m=W.text,J=W.iconType,c=W.videoAction;W=W.playlistAction;m=m?{content:m}:void 0;J=J&&{sources:[{clientResource:{imageName:J}}]};var C=(0,_.RY.unsafeClone)(P);if(C){var x=_.g(C,_.mA),b=_.g(C,_.n2);x&&c?x.action=c:b&&W&&(b.action=W)}return{title:m,leadingImage:J,rendererContext:C&&{commandContext:{onTap:{innertubeCommand:C}}}}})};
VWa=function(Y){Y=_.dv(Y.rendererContext);var S;return(S=_.g(Y,_.n2))==null?void 0:S.playlistId};
e1h=function(Y){var S;return(S=Y.listItems)==null?void 0:S.some(function(P){var u;return _.lL((u=_.g(P,_.xI))==null?void 0:u.rendererContext)})};
YZf=function(Y){var S=Y.data;var P=Y.isCompact;var u=Y.hideSelectionTextChevron;var W=Y.inPopup;Y=Y.isOverlay;var m=e1h(S)&&W,J={};return _.R("yt-list-view-model",{class:_.uN("yt-list-view-model-wiz",(J["yt-list-view-model-wiz--kaios-spat-nav"]=Iy9(),J)),role:m?"menu":"list"},OL8(S.listItems,{listItemViewModel:{isMenuItem:m,isCompact:P,hideSelectionTextChevron:u,inPopup:W,isOverlay:Y},downloadListItemViewModel:{isMenuItem:m,isCompact:P,inPopup:W}}))};
wH=function(Y){var S=_.E().resolve(_.PQ(_.F5));return S!=null&&S()?Y.darkThemeColorPalette:Y.lightThemeColorPalette};
FW=function(Y){return{primaryTextColor:p6(Y,0),secondaryTextColor:p6(Y,1),optionColor:p6(Y,2),backgroundColor:p6(Y,3),videoBackgroundColor:p6(Y,4)}};
p6=function(Y,S){if(Y){switch(S){case 0:Y=Y.primaryTitleColor;break;case 1:Y=Y.secondaryTitleColor;break;case 2:Y=Y.surgeColor;break;case 3:Y=Y.section2Color;break;case 4:Y=Y.section3Color;break;default:return}if(Y)return _.Gp(Y)}};
SZ9=function(Y){return Y?_.hK(Y):""};
PqE=function(Y){return(Y==null?void 0:Y.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
uXJ=function(Y,S){var P;return"linear-gradient(to bottom, "+((P=S==null?void 0:S.map(function(u){var W=Y?u.darkThemeColor:u.lightThemeColor;return W?_.hK(W)+" "+((u==null?void 0:u.startLocation)||0)*100+"%":"transparent"}))==null?void 0:P.join(", "))+")"};
Wv1=function(Y){var S=Y.className;var P=Y.data;var u=Y.isOverlay;var W=Y.maxLinesOverride;var m=Y.useMediumText;Y=_.Ms();var J=P.description,c=P.alwaysShowTruncationText,C=P.truncationText,x=P.maxLines,b,T=!((b=_.g(P.rendererContext,d98))==null||!b.onTap),K,G,v=(G=(K=_.g(P.rendererContext,_.iL))==null?void 0:K.label)!=null?G:"";b=_.n(zz(!1));var a=b.next().value,w=b.next().value;_.XJ(Y,P.rendererContext);b=_.mR(function(){P.expandOnTap&&w(!a);return!1});
K={};return _.R("yt-description-preview-view-model",{el:Y,class:_.uN("yt-description-preview-view-model-wiz",S,(K["yt-description-preview-view-model-wiz--clickable"]=T,K["yt-description-preview-view-model-wiz--is-overlay"]=u,K)),"on:click":b},_.kS(J,function(){var F={};return a?_.R("div",{class:_.uN("yt-description-preview-view-model-wiz__description",(F["yt-description-preview-view-model-wiz__description--medium-text"]=m,F))},_.R(_.qw,{text:J})):_.R(AGE,{text:J,alwaysShowTruncationText:c,truncationText:C,
maxLines:W!=null?W:x,isOverlay:u,accessibilityLabel:v,useMediumText:m})}))};
nHa=function(Y,S,P,u,W){var m=!Y.metadata;var J=S?_.g(Y.heroImage,zsf):_.g(Y.animatedImage||Y.image,zsf);if(!J)return{size:0};Y=J.style;var c=J.layoutMode;J=xth(RV$(J));if(S)S=m0h(P,Y,c,J,W);else a:if(m)S=P===1?{size:48}:{size:72};else switch(P){case 1:S={size:72};break a;case 2:S={size:120};break a;default:S=u<4?{size:120}:{size:160}}return S};
m0h=function(Y,S,P,u,W){if(!((u==null?0:u.height)&&(u==null?0:u.width)))return{size:0};var m=u.width;u=u.height;if(W)return S==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||S==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&m>u?{size:312/Chf}:S==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(P!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||Y!==1&&Y!==2||S!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&S!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&S!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(S==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||S==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||u===m)switch(Y){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(S==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||u>m)switch(Y){case 1:case 3:return{size:240*cGh};default:return{size:360*cGh}}switch(Y){case 1:case 2:return{size:1/Chf*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.jVf=function(Y){if(!("matchMedia"in window))return _.AA(Error("Ph")),function(){return!1};
var S=window.matchMedia(Y);Y=_.n(_.qb(S.matches,void 0,"jLJc8e"));var P=Y.next().value,u=Y.next().value,W=function(m){u(m.matches)};
S.addEventListener?(S.addEventListener("change",W),_.aI(function(){S.removeEventListener("change",W)})):S.addListener&&(S.addListener(W),_.aI(function(){S.removeListener(W)}));
return P};
Jef=function(Y){return Y==="IMAGE_BANNER_STYLE_INSET"||Y==="IMAGE_BANNER_STYLE_UNKNOWN"};
BMa=function(){var Y=_.f("web_enable_sink_page_header_view_model"),S=Y?_.qb:zz;if(!("matchMedia"in window))return _.AA(Error("Ph")),0;var P=pE(function(){return window.matchMedia("(max-width: 527.9px)")}),u=pE(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),W=pE(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),m=pE(function(){return window.matchMedia("(min-width: 1024px)")}),J=_.n(S(P.matches)),c=J.next().value,C=J.next().value;
J=_.n(S(u.matches));var x=J.next().value,b=J.next().value;J=_.n(S(W.matches));var T=J.next().value,K=J.next().value;S=_.n(S(m.matches));var G=S.next().value,v=S.next().value,a=pE(function(){return function(V){C(V.matches)}}),w=pE(function(){return function(V){b(V.matches)}}),F=pE(function(){return function(V){K(V.matches)}}),U=pE(function(){return function(V){v(V.matches)}});
_.LE(function(){P.addEventListener?(P.addEventListener("change",a),u.addEventListener("change",w),W.addEventListener("change",F),m.addEventListener("change",U)):P.addListener&&(P.addListener(a),u.addListener(w),W.addListener(F),m.addListener(U));var V=function(){P.removeEventListener?(P.removeEventListener("change",a),u.removeEventListener("change",w),W.removeEventListener("change",F),m.removeEventListener("change",U)):P.removeListener&&(P.removeListener(a),u.removeListener(w),W.removeListener(F),
m.removeListener(U))};
if(Y)_.aI(V);else return V});
return Y?function(){return c()?1:x()?2:T()?3:G()?4:0}:c?1:x?2:T?3:G?4:0};
ceJ=function(Y){var S=0;Y=_.n([Y.title,Y.metadata,Y.actions,Y.description,Y.attribution]);for(var P=Y.next();!P.done;P=Y.next())P.value&&S++;return S};
qZ8=function(Y,S,P){var u=Y.image,W=_.g(u,CqE),m=W==null?void 0:W.avatar,J=_.g(m,_.Aq);if(u&&m&&J){switch(S){case 1:J.avatarImageSize="AVATAR_SIZE_XL";break;case 2:J.avatarImageSize="AVATAR_SIZE_XXL";break;default:P<4?J.avatarImageSize="AVATAR_SIZE_XXL":J.avatarImageSize="AVATAR_SIZE_XXXL"}_.f("web_enable_sink_page_header_view_model")&&(_.g8(m,_.Aq,Object.assign({},J)),W.avatar=Object.assign({},m),_.g8(u,CqE,Object.assign({},W)),Y.image=Object.assign({},u))}};
Rsa=function(Y){return Y===1||Y===2?1:0};
x0h=function(Y,S){return Y?_.R("div",{class:"page-header-view-model-wiz__scroll-container"},S()):S()};
TMh=function(Y){var S=Y.data;var P=Y.noPadding;var u=Y.enableBanner;var W=Y.cinematicContainerTopbarOffset;var m=Y.allowCinematicContainerOverflow;var J=Y.displayAsSidebar;var c=Y.displayAsPanel;Y=ceJ(S);var C=!!S.heroImage,x=!!S.image||!!S.animatedImage,b=!!S.background,T=J||c?1:BMa(),K=T===1,G=T===2,v=K||G,a=T===4,w=nHa(S,C,T,Y,J),F={};P=_.uN((F["page-header-view-model-wiz"]=!0,F["page-header-view-model-wiz--no-padding"]=!!P,F["page-header-view-model-wiz--small-top-padding"]=K&&!S.actions||G&&!(x||
C),F["page-header-view-model-wiz--small-bottom-padding"]=v&&!S.actions,F["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!m,F["page-header-view-model-wiz--display-as-sidebar"]=J,F["page-header-view-model-wiz--display-as-panel"]=c,F));m={};var U=_.uN((m["page-header-view-model-wiz__page-header-headline"]=!0,m["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=w.allowFullWidth,m)),V=v&&!w.allowFullWidth;c=(m=K&&(C||x)&&Y>0)&&c;G={};c=(G["page-header-view-model-wiz__page-header-title"]=
!0,G["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!m,G["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=m&&!c,G["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=c,G["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=b,G);m={};m=(m["page-header-view-model-wiz__page-header-headline-image"]=!0,m["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
C&&v,m);var M;G={};var zJ=(G["page-header-view-model-wiz__page-header-banner-container"]=u,G["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=u&&((M=_.g(S.banner,_.b48))==null?void 0:M.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",G);M={};M=(M["page-header-view-model-wiz__page-header-content-metadata"]=!0,M["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=b,M);G={};G=(G["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
G["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!S.metadata||v,G["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!v,G);F={};F=(F["page-header-view-model-wiz__page-header-attribution"]=!0,F["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=b,F);var O={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:b,
maxLinesOverride:K?void 0:1,useMediumText:a},dynamicTextViewModel:{className:_.uN(c)},contentPreviewImageViewModel:{className:_.uN(m),imageSizeConfig:w},contentMetadataViewModel:{layout:K?1:0,className:_.uN(M),isOverlay:b,useMediumText:a},flexibleActionsViewModel:{layout:Rsa(T),className:_.uN(G)},attributionViewModel:{className:_.uN(F),useMediumText:a},decoratedAvatarViewModel:{className:_.uN(m)},cinematicContainerViewModel:{topbarOffset:W},flexibleContainer:{isOverlay:b}};x&&qZ8(S,T,Y);return _.R("yt-page-header-view-model",
{class:P},_.kS(b,function(){return _.R("div",{class:"page-header-view-model-wiz__page-header-background"},ss(S.background,O))}),x0h(!!J,function(){return _.R("div",{class:"page-header-view-model-wiz__page-header-content"},_.kS(u&&(S==null?void 0:S.banner),function(){return _.R("div",{class:_.uN(zJ)},ss(S==null?void 0:S.banner,O))}),_.R("div",{class:U},_.kS(x,function(){return ss((S==null?void 0:S.animatedImage)||(S==null?void 0:S.image),O)}),_.kS(C&&!V,function(){return ss(S==null?void 0:S.heroImage,
O)}),_.R("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.kS(C&&V,function(){return _.R("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},ss(S==null?void 0:S.heroImage,O))}),_.kS(S==null?void 0:S.title,function(){return ss(S==null?void 0:S.title,O)}),_.kS(S.metadata,function(){return ss(S.metadata,O)}),_.kS(S.description&&!K,function(){return ss(S.description,O)}),_.kS(S.attribution&&!v,function(){return ss(S.attribution,O)}),_.kS(S.actions&&
!v,function(){return ss(S.actions,O)}))),_.R("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.kS(S.description&&K,function(){return ss(S.description,O)}),_.kS(S.attribution&&v,function(){return ss(S.attribution,O)}),_.kS(S.actions&&v,function(){return ss(S.actions,O)})),_.R("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.kS(S.bottomMetadataFlexibleContainer,function(){return ss(S.bottomMetadataFlexibleContainer,O)})))}))};
EHE=function(Y){var S,P=((S=_.E().resolve(_.PQ(_.F5)))==null?0:S())&&Y.data.darkThemeImage?Y.data.darkThemeImage:Y.data.image;S=_.R("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.R("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},P?_.R(_.ZZ,{data:P,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),Kva(Y.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));P=_.R(_.qw,{text:Y.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var u=Y.data;if(u.bodyText){var W=[];u=_.n(u.bodyText);for(var m=u.next();!m.done;m=u.next())W.push(_.R(_.qw,{text:m.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else W=_.R(_.SX,null);return _.R("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},S,P,W,Kva(Y.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.R(_.qw,{text:Y.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.R(_.qw,{text:Y.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
gH8=function(Y){Y=(new fUJ).parse(Y);return(new c3).render(Y).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(S){var P=S.split(":").map(Number),u=0,W=0;if(P.length===3)P=_.n(P),u=P.next().value,W=P.next().value,P=P.next().value;else if(P.length===2)P=_.n(P),W=P.next().value,P=P.next().value;else if(P.length===1)P=_.n(P).next().value;else throw Error("Qh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(u*3600+W*60+P)+'" role="button">'+S+"</span>"})};
$0J=function(Y){Y=_.n(Y.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var S=Y.next(),P={};!S.done;P={clickHandler$jscomp$4:void 0},S=Y.next()){S=S.value;P.clickHandler$jscomp$4=function(W){W=Number(W.target.getAttribute("data-time"));if(isNaN(W))throw Error("Rh");var m=document.querySelector("video");m&&(m.currentTime=W)};
var u=function(W){return function(m){m.key!=="Enter"&&m.key!=="Space"||(0,W.clickHandler$jscomp$4)(m)}}(P);
S.setAttribute("tabindex","0");S.removeEventListener("click",P.clickHandler$jscomp$4);S.removeEventListener("keydown",u);S.addEventListener("click",P.clickHandler$jscomp$4);S.addEventListener("keydown",u)}};
re$=function(){return _.R("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.R(dH,{percentWidth:100}),_.R(dH,{animationDelay:200}),_.R(dH,{animationDelay:400}),_.R(dH,{animationDelay:600}),_.R(dH,{animationDelay:800,percentWidth:60}),_.R("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.R(dH,{percentWidth:100}),_.R(dH,{animationDelay:200}),_.R(dH,{animationDelay:400}),_.R(dH,{animationDelay:600,percentWidth:50}))};
dH=function(Y){return _.R("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(Y.percentWidth===void 0?100:Y.percentWidth)+"%"},_.R("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(Y.animationDelay===void 0?0:Y.animationDelay)+"ms"}))};
GvK=function(){var Y=_.n(_.qb(function(){return""},void 0,"v2wS5e")),S=Y.next().value;
return[function(){return S()()},
Y.next().value]};
vHJ=function(Y){Y=Y===void 0?{}:Y;return{title:_.Sk(Y.localizedOptInBannerTitleText===void 0?"":Y.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Sk(Y.localizedOptInMessage===void 0?"":Y.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Sk(_.Td("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:_.Sk(_.Td("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:[hs9]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
D01=function(Y,S){Y=Y?kmX(Y):"";S!==void 0&&isFinite(S)?S===0?S=_.Td("UPDATING",void 0,"Updating..."):(S=YGY(new Date(S),new Date),S=_.Td("UPDATED_TIME",{relative_time:S},"Updated "+S)):S="";var P="";Y&&S&&(P=" \u2022 ");return _.Sk(Y+P+S)};
Lvh=function(Y,S,P,u,W,m){S=S===void 0?0:S;var J=IU9[S],c=J.title,C=J.iconType,x=J.topButtonRenderer,b=J.sectionClientVE;J=J.videoClientVE;var T;if(S!==1||Y.length){P=[];Y=_.n(Y);for(u=Y.next();!u.done;u=Y.next()){var K=u.value;if(Fla(K))P.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:K.videoEntity.videoId,title:PT(K.videoEntity.title),shortBylineText:PT(K.channelEntity.title),thumbnail:K.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:K.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Td("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:J}}}}}});else if(pYa(K)){u=P;var G=u.push;var v=void 0,a=void 0,w=void 0,F=void 0,U=void 0,V=void 0,M=void 0,zJ=void 0,O=K.mainPlaylistEntity.playlistId,ca=K==null?void 0:(zJ=K.mainPlaylistEntity)==null?void 0:(M=zJ.thumbnailStyleData)==null?void 0:(V=M[0])==null?void 0:(U=V.value)==null?void 0:(F=U.collageThumbnail)==null?void 0:F.coverThumbnail;F=sx1(O);if(!_.f("enable_offline_playlist_page")&&
(K==null?0:(w=K.mainPlaylistEntity)==null?0:w.videos)){b:{w=K==null?void 0:(a=K.mainPlaylistEntity)==null?void 0:a.videos;a=_.Na().getState().entities;if(w!=null&&w.length&&a)for(w=_.n(w),U=w.next();!U.done;U=w.next())if(U=_.mZ(U.value).entityId,(U=JSON.parse(U).videoId)&&kf9(a,U)==="TRANSFER_STATE_COMPLETE"){a=U;break b}a=""}a!==void 0&&(F=Xp(_.Na().getState(),a),F=_.YW(a,O,void 0,void 0,F))}a=lTX(_.Td("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),sx1(O));K=O&&ca&&a?{playlistId:O,navigationEndpoint:F,
viewPlaylistText:a,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:ca}},title:PT(K.mainPlaylistEntity.title),shortBylineText:PT(K==null?void 0:(v=K.channelEntity)==null?void 0:v.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:aUh,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:O,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Td("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:J}}}:
void 0;G.call(u,{gridPlaylistRenderer:K})}}J={gridRenderer:{items:P}};S===1&&(T=D01(W,m))}else if(u){var hu=_.Sk((G=P==null?void 0:P.localizedPromptMessage)!=null?G:"");J={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Sk(_.Td("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.eDJ}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Sk(_.Td("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};T=D01(W,m)}else hu=_.Sk(_.Td("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
J={};return{contents:[{shelfRenderer:{title:c,titleAnnotation:T,icon:{iconType:C},subtitle:hu,content:J,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:x}]}}}}],loggingDirectives:{clientVeSpec:{uiType:b}}}};
wch=function(Y,S,P,u,W,m,J,c){P=P===void 0?{}:P;u=u===void 0?!1:u;W=W===void 0?!1:W;m=m===void 0?!1:m;J=J===void 0?0:J;c=c===void 0?-Infinity:c;if(!S.length&&!Y.length&&!u)return W?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:Xl9(P)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Sk(_.Td("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 C=[];Y.length&&C.push(Lvh(Y,0));u?C.push(Lvh(S,1,P,m,J,c)):W&&C.push({contents:[{statementBannerRenderer:vHJ(P)}]});(u&&S.length||Y.length)&&C.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Sk(_.Td("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 C.map(function(x){return{itemSectionRenderer:x}})};
lJ=function(Y,S){if(typeof Y!=="object")return null;Y=_.n(Object.entries(Y));for(var P=Y.next();!P.done;P=Y.next()){var u=_.n(P.value);P=u.next().value;u=u.next().value;if(P===S)return P;if(u=lJ(u,S))return P+"."+u}return null};
XW=function(Y){var S=Y.content;return(Y=Y.styleRuns)&&S?{runs:Y.map(function(P){var u={text:S.slice(P.startIndex,P.startIndex+P.length)};P.fontColor&&(u.textColor=P.fontColor);return u})}:{simpleText:S}};
sVa=function(Y,S,P,u){var W=pc1;u&&(Y.quantity=u);if(!Y.quantity||!Y.maxQuantity)return{};u=Y.minusButton;var m=Y.plusButton,J,c,C,x;return{value:Y.quantity,maxValue:Y.maxQuantity,onChangeCallback:function(b){W(Y,b)},
minusLabel:(J=_.g(u,Fva))==null?void 0:J.label,minimumReachedLabel:(c=_.g(u,Fva))==null?void 0:c.limitReachedLabel,plusLabel:(C=_.g(m,Fva))==null?void 0:C.label,maximumReachedLabel:(x=_.g(m,Fva))==null?void 0:x.limitReachedLabel,disabled:S,onRemoveCommand:P}};
pc1=function(Y,S){var P=Y.quantityIncrementerEntityKey;if(P){var u={};u.quantity=S;_.ip(_.Dw("quantityIncrementerEntity",P,u));Y.onChangeCommand&&_.ae(Y.onChangeCommand)}};
d0J=function(Y){return _.f("kevlar_comments_clone_data_killswitch")?Y:_.RY.unsafeClone(Y)};
Z4a=function(Y,S){(Y=lU1(Y))&&(S?Xch.push({command:Y,sourceData:{},commandContext:void 0}):_.E().resolve(_.uY).resolveCommand(Y))};
lU1=function(Y){return _.g(Y,_.hL)};
i4K=function(){var Y=window.performance.timeOrigin+window.performance.now(),S=(new _.Z_).setSeconds(Y/1E9);return _.Bd(S,2,_.qI(Y%1E9),0)};
iJ=function(Y,S){var P=_.g(_.g(Y,_.hL),oHa);P&&(S&&(P.serializedAdditionalMetadata=_.QB(S)),Z4a(Y,!0))};
tyY=function(Y){switch(Y){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
Ae8=function(){return!!_.X3("ID_TOKEN")};
kvh=function(Y){return Y instanceof Error&&Y.cause instanceof U0a&&Y.cause.rpcErrorCode!==void 0?!QVE.includes(Y.cause.rpcErrorCode):!0};
yeu=function(){return _.NP(Mya,{authuser:""+(_.X3("SESSION_INDEX")||0)})};
Us=function(Y,S,P,u){P=P===void 0?"MINI_APP_SDK_API_UNSPECIFIED":P;u=u===void 0?"":u;var W=new _.$2;P={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:u,sdkApi:P};Y instanceof Error&&(W.message=Y.message,W.name=Y.name,Y.cause instanceof U0a&&Y.cause.rpcErrorCode!==void 0&&(P.rpcErrorCode=Y.cause.rpcErrorCode));var m;(m=S.onError)==null||m.call(S,{loggingError:W,metadata:P})};
H48=function(Y,S,P,u){switch(Y){case "MINI_APP_SOURCE_GAMESNACKS":return new Qi(S,P,u);default:return new NMK(S,P,u)}};
VyK=function(Y){switch(Y){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
esX=function(Y){switch(Y){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
O4h=function(Y){switch(Y){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
YSJ=function(){return Math.floor(Math.random()*4)+1};
SSE=function(Y,S,P,u){Y=_.n(Object.entries(Y));for(var W=Y.next(),m={};!W.done;m={message$jscomp$954:void 0},W=Y.next()){var J=_.n(W.value);W=J.next().value;J=J.next().value;m.message$jscomp$954=J;S.push(setTimeout(function(c){return function(){u(!1);P(c.message$jscomp$954.text)}}(m),m.message$jscomp$954.delayMs));
Number(W)>0&&S.push(setTimeout(function(){u(!0)},m.message$jscomp$954.delayMs-400))}};
P89=function(Y,S){var P=P===void 0?QP$:P;_.f("mweb_fix_monitor_visibility_after_render")?Y&&Ks(function(){yRf(Y,S,P)}):Ks(function(){yRf(Y,S,P)})};
m69=function(Y){ugh||(ugh=WBX(new _.iI(1,void 0,void 0,zQ$),0));var S=ugh.format(Math.floor(Y));S=_.ZS==="be"||_.ZS==="bg"||_.ZS==="es"||_.ZS==="et"||_.ZS==="hu"||_.ZS==="ka"||_.ZS==="lv"||_.ZS==="pl"||_.ZS==="pt-PT"||_.ZS==="sq"?S.replace(new RegExp("^(\\d)"+zQ$.GROUP_SEP.replace(".","\\.")+"(\\d+("+zQ$.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):S;return Y>=1E3&&Y<=9999&&S[1]==="."&&(_.ZS==="sl"||_.ZS==="it")?S.replace(".",""):S};
nzJ=function(Y,S){fs("ytd-button-renderer",{data:Y,className:S?S.className:"",overrides:S==null?void 0:S.buttonOverrides},kd)};
Bi1=function(Y,S,P,u){if(Y)return u=u||Y.likeStatus,S?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:u==="LIKE",isDisabled:!Y.likesAllowed,defaultIcon:{iconType:P},defaultText:u==="LIKE"?Y.likeCountWithUnlikeText:Y.likeCountText,toggledText:u==="LIKE"?Y.likeCountText:Y.likeCountWithLikeText,defaultNavigationEndpoint:jCE(Y,"LIKE"),defaultServiceEndpoint:JS1(Y,"LIKE"),toggledServiceEndpoint:JS1(Y,"INDIFFERENT"),defaultTooltip:_.Ma(Y.likeCountTooltipText),toggledTooltip:_.Ma(Y.likeCountTooltipText),
targetId:Y.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:u==="DISLIKE",isDisabled:!Y.likesAllowed,defaultIcon:{iconType:P},defaultText:u==="DISLIKE"?Y.dislikeCountWithUndislikeText:Y.dislikeCountText,toggledText:u==="DISLIKE"?Y.dislikeCountText:Y.dislikeCountWithDislikeText,defaultNavigationEndpoint:jCE(Y,"DISLIKE"),defaultServiceEndpoint:JS1(Y,"DISLIKE"),toggledServiceEndpoint:JS1(Y,"INDIFFERENT"),defaultTooltip:_.Ma(Y.dislikeCountTooltipText),
toggledTooltip:_.Ma(Y.dislikeCountTooltipText)}};
jCE=function(Y,S){if(S==="LIKE")return Y.likeCommand;if(S==="DISLIKE")return Y.dislikeNavigationEndpoint};
JS1=function(Y,S){var P;return(P=Y.serviceEndpoints)==null?void 0:P.find(function(u){var W;return((W=_.g(u,_.ka))==null?void 0:W.status)===S})};
cSY=function(Y,S){S=S===void 0?{}:S;if(Y){var P=!!S.activeState,u=S.iconSize,W=S.className,m=S["aria-hidden$"],J=S["aria-label$"],c=S.role;S=S.style$+";width: "+((S.width||u)+"px;height: ")+((S.height||u)+"px;color: ")+(S.color+";");Y={icon:Y};P!==void 0&&(Y.active=P);u!==void 0&&(Y.size=u);S!==void 0&&(Y.style=S);W!==void 0&&(Y.className=W);m!==void 0&&(Y.ariaHidden=m);J!==void 0&&(Y.ariaLabel=J);c!==void 0&&(Y.role=c);fs("yt-icon",Y,kd)}};
_.RQK=function(Y,S,P){return window.spf&&!_.f("web_disable_spfjs_client")?C8J(Y,S,P):qS9(Y,S)};
C8J=function(Y,S,P){var u=null,W=(new _.qs(function(m,J){var c={};if(S){c.method=S.method;var C=S.postParams||{};aYa(Y,S)&&(C[_.X3("XSRF_FIELD_NAME")]=_.X3("XSRF_TOKEN"));c.postData=_.R4(C);S.type&&(c.type=S.type);C=S.headers}c.headers=rJJ(Y,C);_.f("debug_forward_web_query_parameters")&&(Y=_.Dzf(Y,window.location.search));c.experimental_headers=c.headers;c.onError=function(x){x.err&&x.xhr&&(x.err.params={url:x.xhr.responseURL,response:x.xhr.responseText.substr(0,64)});J(x.err)};
c.onPartDone=function(x){P&&P.call(null,x.part)};
c.onDone=function(x){var b=x69(x.response,"xsrf_token");OW(window.location.href,Y)&&b&&_.lk("XSRF_TOKEN",b);if(b=x69(x.response,"service_worker_killswitch"))_.lk("SERVICE_WORKER_KILLSWITCH",b),bGh();m(x.response)};
u=spf.request(Y,c)})).then(bT9);
W.thenCatch(function(m){var J=m instanceof _.ok,c=m&&m.hasOwnProperty("params")&&m.params.response?m.params.response:"";m instanceof Error&&(c?J?qD$(m):c===')]}\'\n{"reload":"now"}'?qD$(m):(TiY(m,Y,c),KBh(m,c)?_.sf(m):_.p_(m)):qD$(m));u&&u.abort()});
return W};
bT9=function(Y){if(Y.type==="multipart"){var S=Y.timing;Y=Y.parts.reduce(function(P,u){Object.assign(P,u);return P},{});
Y.timing=Y.timing||{};Object.assign(Y.timing,S);Y.type="reduced"}return Y};
qS9=function(Y,S){S=S===void 0?{}:S;var P=null,u=new _.qs(function(W,m){S.onFinish=function(J){if(J.readyState===XMLHttpRequest.DONE)if(J.status===200){if(J.responseType!=="json"){var c=J.response;c.substring(0,5)===")]}'\n"&&(c=c.substring(5));try{var C=JSON.parse(c)}catch(x){C=x}}else C=J.response;C instanceof Error?m(C):(c=x69(C,"xsrf_token"),OW(window.location.href,Y)&&c&&_.lk("XSRF_TOKEN",c),J=J.responseURL,window.performance&&window.performance.getEntriesByName?(c=window.performance.getEntriesByName(J).pop())?
J={responseStart:(0,_.Oh)()-(c.responseEnd-c.responseStart)}:(Math.random()<.01&&(c=Error("ci"),c.params=J,_.sf(c)),J={responseStart:-1}):J={responseStart:0},C.timing=C.timing||{},Object.assign(C.timing,J),W(C))}else m(Error("bi`"+J.status))};
(P=_.qY(Y,S))||m(Error("bi`"+P.status))});
u.thenCatch(function(W){W instanceof Error&&(TiY(W,Y),KBh(W)&&(W.level="WARNING"))});
_.f("cancel_pending_navs")&&u.thenCatch(function(){P.abort()});
return u};
x69=function(Y,S){var P=Y[S],u=Y.parts;Y.type==="multipart"&&u&&(P=(Y=u.find(function(W){return S in W}))&&Y[S]);
return P};
TiY=function(Y,S,P){var u=Y.message||"";S={original:u,url:S};if(P)if(u=u.match(/position:?\s*(\d+)/)){u=u&&Number(u[1])?Number(u[1]):0;var W=Math.max(u-25,0);S.position=u;S.response=P.substring(W,u+25)}else S.response=P.substring(0,50);_.d6(Y,S);try{Y.message="JSON parse error"}catch(m){}};
KBh=function(Y,S){Y=Y.message||"";Y=!!(Y.indexOf("<")>=0||Y.indexOf("end of ")>=0||Y.indexOf("Unterminated string")>=0||Y.indexOf("Unexpected EOF"));if(!Y&&S)for(var P=S.length,u=!1,W=0;W<P;W++)if(u&&S[W]==="\\")W++;else if(S[W]==='"')u=!u;else if(S[W]==="<"&&!u){Y=!0;break}return Y};
Ezu=function(){return document.documentElement.hasAttribute("dark")};
_.fha=function(Y,S){if(Y!=="GFEEDBACK"&&Y!=="GUIDED_HELP")_.ik(Error("di`"+Y));else{var P=_.E().resolve(_.PQ(_.Ag));if(P&&(P=P.getCurrentPage())&&P.getServiceTrackingParams&&(P=P.getServiceTrackingParams()))for(var u=0,W;W=P[u++];)if(W.service===Y){if(Y=W.params)for(P=0;u=Y[P++];)S[u.key]=u.value;break}}};
_.gzh=function(Y){var S=_.Q5();S&&(S=S.getPlayer())&&(S.pauseVideo(),Y.playback_id=S.getVideoData().cpn,Y.eid=S.getVideoData().eventId,Object.assign(Y,S.getFeedbackProductData()))};
$6E=function(){var Y={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.X3("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(Y.enableAnonymousFeedback=!0);_.X3("SESSION_INDEX")&&(Y.authuser=String(_.X3("SESSION_INDEX")));_.f("enable_pageid_for_feedback")&&_.X3("DELEGATED_SESSION_ID")&&(Y.pageId=String(_.X3("DELEGATED_SESSION_ID")));return Y};
_.MF=function(Y){_.f("enable_ypc_spinners")&&_.nb(Y,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},Y])};
_.yi=function(Y){_.f("enable_ypc_spinners")&&_.nb(Y,"yt-close-popup-action",["yt-loading-renderer"])};
rSE=function(Y){return new Promise(function(S,P){_.DZ({verifyCommand:{recaptchaToken:Y.recaptchaResponse}},{commandController:{onSuccess:function(u,W){W||P("ChallengeService did not return a response.");var m;S({challengeCompleted:(m=W.verified)!=null?m:!1})},
onServerError:function(u,W){P(W)}}})})};
GDJ=function(Y,S,P,u){S({recaptchaResponse:u}).then(function(W){W.challengeCompleted?_.Eh()?(P(3),_.E().resolve(_.uY).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:Y}})):P(2):P(4)},function(){P(4)})};
hQa=function(Y,S,P){_.Xv("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.X3("HL"),function(){var u;(u=window.grecaptcha)==null||u.ready(function(){var W=window.grecaptcha;W?(P(W.render(Y,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:GDJ.bind(null,Y,rSE,S)})),S(1)):S(4)})})};
vza=function(Y,S){return function(){switch(S()){case 0:return Y().captchaLoadingMessage;case 1:return Y().challengeReason;case 3:return Y().captchaSuccessfulMessage;case 2:return Y().captchaCookieSetFailureMessage;case 4:return Y().captchaFailedMessage;default:return Y().challengeReason}}()};
_.NF=function(){if(!D6a){var Y=document.querySelector("#player.skeleton");Y&&(_.jL(Y),D6a=!0)}};
_.ahY=function(){return Ih$=xCa()};
pIY=function(){return _.B(function(Y){return LBK!==void 0?Y.return():_.q(Y,wIf(),0)})};
wIf=function(){return _.B(function(Y){if(Y.nextAddress==1)return _.q(Y,Tm1(),2);Ih$=Y.yieldResult;LBK=_.wc.addLowPriorityJob(wIf,5E3);_.Yt(Y)})};
ZTK=function(Y){var S=S===void 0?FBK:S;var P,u,W=(P=Y.responseContext)==null?void 0:(u=P.mainAppWebResponseContext)==null?void 0:u.trackingParam;if(!W){S.increment("MISSING");var m,J,c,C,x,b;_.sf(new _.$2("282054944_a",{na4:!!((m=Y.responseContext)==null?0:(J=m.mainAppWebResponseContext)==null?0:J.loggedOut),g24:((c=Y.responseContext)==null?void 0:c.mainAppWebResponseContext)===void 0,dUr:Y.responseContext===void 0,kq2:(C=Y.playabilityStatus)==null?void 0:C.contextParams,mQB:(((x=Y.streamingData)==
null?void 0:x.formats)||[]).length>0,o94:(((b=Y.streamingData)==null?void 0:b.adaptiveFormats)||[]).length>0,os:!!Y.offlineState,cotn:Y.cotn}));return 2}P="";try{P=sCE(W)}catch(G){return S.increment("C_ERROR"),_.p_(G),2}try{var T=_.d61(P);var K=lh1(T)}catch(G){return S.increment("P_ERROR"),_.p_(G),2}K=_.Uy(K,XIa,1,_.QI());W=[];K=_.n(K);for(T=K.next();!T.done;T=K.next())u=T.value,T=u.getPath(),P=(0,_.RY.getValueByKeys)(Y,T.split(".")),P=String(P===void 0||P===null?"":P),u=u.getValue()||"",m=/[+\-\/_]/g,
P.replace(m,"")!==u.replace(m,"")&&(S.increment("MISMATCH"),_.f("ab_mis_log_err")&&(P=new _.$2("282054944_p",{yDy:T,g:String(P),e:String(u)}),_.p_(P)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(T)||(T.match(/enforcementMessageViewModel/i)?W.push(3):W.push(2)));if(W.length>0)return Math.max.apply(Math,_.cz(W));S.increment("SUCCESS");return 1};
tn1=function(Y){var S=new HB;if(Y.interpreterJavascript){var P=_.zoK(Y.interpreterJavascript);P=vx(P).toString();var u=new iTa;_.zH(u,6,P);_.N8(S,1,u,lf)}else Y.interpreterUrl&&(P=_.pZ(Y.interpreterUrl),P=_.S2(P).toString(),u=new _.ozh,_.zH(u,4,P),_.N8(S,2,u,lf));Y.interpreterHash&&_.Vi(S,3,Y.interpreterHash,lf);Y.program&&_.Vi(S,4,Y.program,lf);Y.globalName&&_.Vi(S,5,Y.globalName,lf);Y.clientExperimentsStateBlob&&_.Vi(S,7,Y.clientExperimentsStateBlob,lf);return S};
eb=function(Y){var S={};Y=_.n(Y.split("&"));for(var P=Y.next();!P.done;P=Y.next())P=P.value.split("="),P.length===2&&(S[P[0]]=P[1]);return S};
ASa=function(Y){return Number(Y.t)||7200};
vS8=function(){if(_.f("bg_st_hr"))return"havuokmhhs-0";var Y,S=((Y=performance)==null?void 0:Y.timeOrigin)||0;return"havuokmhhs-"+Math.floor(S)};
U6h=function(){return new Promise(function(Y){var S=window.top;S.ntpevasrs!==void 0?Y(new Os(S.ntpevasrs)):(S.ntpqfbel===void 0&&(S.ntpqfbel=[]),S.ntpqfbel.push(function(P){Y(new Os(P))}))})};
QCU=function(Y){var S=Y.ozI.bind(Y);_.HQ("yt.aba.att",S);Y=Y.pdV.bind(Y);_.HQ("yt.aba.att2",Y)};
MnE=function(Y){switch(_.Cz(Y.input)){case _.HT(kDU):var S={};return S.encryptedVideoId=Y.innerTubeRequest.externalVideoId,S}return{}};
Ni$=function(Y){switch(_.Cz(Y.input)){case _.HT(kDU):if(_.f("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.HT(YX):if(_.f("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&Y.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.HT(ySE):var S,P;if(_.f("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((P=_.g((S=Y.config)==null?void 0:S.command,
Lrf))==null?0:P.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.VnU=function(Y){var S;if(Y.playlistVideoRenderer&&((S=Y.playlistVideoRenderer)==null?0:S.engagementBar))return HTa(Y.playlistVideoRenderer.engagementBar);if(_.g(Y,SN)){var P;if(Y=(P=_.g(Y,SN))==null?void 0:P.engagementBar)return HTa(Y)}return""};
HTa=function(Y){if(!Y)return"";Y=_.g(Y,_.eQX);if(Y==null||!Y.actions)return"";Y=_.n(Y.actions);for(Y=Y.next();!Y.done;Y=Y.next()){Y=_.g(Y.value,_.OTJ);var S=void 0;if((S=Y)==null||!S.itemId)break;return Y.itemId}return""};
_.YBU=function(Y){var S;if(Y.playlistVideoRenderer&&((S=Y.playlistVideoRenderer)==null?0:S.videoId))return Y.playlistVideoRenderer.videoId;if(_.g(Y,SN)){var P,u;if(Y=(P=_.g(Y,SN))==null?void 0:(u=P.playlistItemData)==null?void 0:u.videoId)return Y}return""};
_.SBY=function(Y){var S;if(Y.playlistVideoRenderer&&((S=Y.playlistVideoRenderer)==null?0:S.voteCount))return Y.playlistVideoRenderer.voteCount;if(_.g(Y,SN)){var P,u;if(Y=(P=_.g(Y,SN))==null?void 0:(u=P.playlistItemData)==null?void 0:u.voteCount)return Y}return 0};
_.Ps=function(Y,S){return _.BT(Y.entities,"flowStateEntity",S)};
uGJ=function(Y,S,P,u){var W=void 0;Y=_.n(Y[S.iconName]||[]);for(var m=Y.next();!m.done;m=Y.next()){m=m.value;var J=S.iconSize;var c=S.iconStyle;J=!J||J===m[2];var C=Peh[m[0]];u&&u!==m[1]||!J||c&&c!==C?c=!1:W?(c=Peh[m[0]],c=!!S.iconStyle||c==="youtube_outline",J=W.version<=m[1],c=(!!S.iconSize||m[2]===24)&&c&&J):c=!0;c&&(W={name:S.iconName,style:Peh[m[0]],size:m[2],version:m[1],allowMirroring:!!m[3],url:P(S.iconName,m)})}return W};
WxE=function(Y,S,P,u){return Y+(""+Peh[P[0]]+((u===void 0?0:u)?"_experimental":"")+"/"+S+"/v"+P[1]+"/")+(P[2]+"px.svg")};
u1=function(Y){return _.f("web_bookmark_playlist_save_icon")?"bookmark":Y};
z5Y=function(Y,S){return WxE("https://fonts.gstatic.com/s/i/",Y,S)};
meK=function(Y,S){return WxE("https://fonts.gstatic.com/s/i/",Y,S,!0)};
ne$=function(Y,S){return WxE("https://www.gstatic.com/youtube/img/icons/web/",Y,S)};
jHu=function(Y){var S=Y.enabled;var P=Y.itemPlaybackModel;var u=Y.thumbnailElRef;var W=Y.containerElRef;var m=Y.options;var J;_.D6(function(){var c=W==null?void 0:W.value;var C,x=(C=u())==null?void 0:C.value;C=P();var b=m();if(S&&C&&c&&x&&(b==null?0:b.thumbnail)){var T,K;c={mediaRenderer:{data:C,hostElement:c},lockupElement:c,thumbnailElement:x,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.vF((T=C.inlinePlayerData)==null?void 0:T.onVisible),navigationEndpoint:_.vF((K=C.inlinePlayerData)==
null?void 0:K.onSelect),thumbnail:b.thumbnail,thumbnailOverlays:b.thumbnailOverlays||[],accessibilityText:b.accessibilityText||""},thumbnailSize:b.thumbnailSize,enableRounding:b.enableRounding}}}else c=void 0;if(T=c){var G;(G=J)==null||Sb(G);J=UP(T)}});
_.aI(function(){var c;(c=J)==null||Sb(c)})};
JCE=function(Y){Y=atob(Y);for(var S=[],P=0;P<Y.length;P++)S.push(Y.charCodeAt(P));return new Blob([new Uint8Array(S)],{type:"image/png"})};
cC$=function(Y,S,P,u){u=u===void 0?"INSERTION_POSITION_UNSPECIFIED":u;return Y({targetId:S},function(W){var m,J=(m=W.contents)!=null?m:[];m=P!=null?P:[];var c=BAK(J);switch(u){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},W,{contents:[].concat(_.cz(J.slice(0,c)),_.cz(m),_.cz(J.slice(c+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},W,{contents:[].concat(_.cz(m),_.cz(J))});case "INSERTION_POSITION_LAST":return Object.assign({},W,{contents:[].concat(_.cz(J),_.cz(m))});
default:return W}})};
qBu=function(Y,S,P,u,W){W=W===void 0?"RELATIVE_INSERTION_POSITION_AFTER":W;return Y({targetId:S},function(m){var J,c=(J=m.contents)!=null?J:[];J=CeK(c,P);if(J<0)return m;J=W==="RELATIVE_INSERTION_POSITION_BEFORE"?J:J+1;return Object.assign({},m,{contents:[].concat(_.cz(c.slice(0,J)),_.cz(u),_.cz(c.slice(J)))})})};
BAK=function(Y){var S=Y.findIndex(function(P){return _.g(P,_.Ws)});
return S>=0?S:Y.length};
CeK=function(Y,S){return Y.map(function(P){return _.g(P,_.R5X)}).findIndex(function(P){return(P==null?void 0:P.targetId)===S})};
bIK=function(Y,S,P){return Y({targetId:S},function(u){var W,m=(W=u.contents)!=null?W:[];return Object.assign({},u,{contents:xe1(m,P)})})};
xe1=function(Y,S){return Y.filter(function(P){var u=S.includes;a:{P=_.n(Object.values(P));for(var W=P.next();!W.done;W=P.next())if((W=W.value)&&W.targetId){P=W.targetId;break a}P=""}return!u.call(S,P||"")})};
_.TAf=function(Y,S){return{engagementPanelSectionListRenderer:{panelIdentifier:Y,identifier:S,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
KxK=function(Y){return Y.getOption("captions","tracklist",{includeAsr:!0})};
Eeu=function(Y){var S=KxK(Y);if(S==null?0:S.length)return S;Y.loadModule("captions");return KxK(Y)};
fJK=function(Y,S,P){if(Y.getVideoData){var u,W=(u=Eeu(Y))==null?void 0:u.find(function(m){return m.languageCode===P});
u=_.JE("/youtube/app/player_caption_language_entity_key","stringEntity",2);S.dispatch(_.qE("stringEntity",u,{key:u,value:(W==null?void 0:W.displayName)||""}));W?Y.setOption("captions","track",W):(Y.setOption("captions","stickyLoading",{}),Y.setOption("captions","track",{}))}};
geE=function(Y){return Y.getOption("captions","tracklist",{includeAsr:!0})};
$eK=function(Y){return Y.getOption("captions","tracklist",{includeAsr:!0})};
rC$=function(Y){var S=$eK(Y);if(S==null?0:S.length)return S;Y.loadModule("captions");return $eK(Y)};
G0X=function(Y){var S=Y.getOption("captions","track");if(S)return S;Y.loadModule("captions");return Y.getOption("captions","track")};
h5X=function(Y){var S=rC$(Y);if(S!=null&&S.length){var P=G0X(Y);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Td("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(P==null?0:P.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.cz(S.map(function(u){return{listItemViewModel:{title:{content:u.displayName},
isSelected:u.languageCode===(P==null?void 0:P.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:u.languageCode}}]}}}}}}}})))}}}}}}}}};
aJ9=function(Y){return new Promise(function(S,P){if(Y===void 0)_.p_(Error("Ei"),"ERROR"),P(Error("Ei"));else{P=new _.veU;var u=_.DeJ();P=P.init();var W=_.IJK(_.X3("YPC_MB_URL"),!0);Promise.all([P,W]).then(function(){var m=payments.business.integration.ClientTokenFactory.createClientToken(Y,u);S(m)})}})};
pia=function(Y,S,P,u,W,m,J){var c=_.dL();P=P.replace(/-/g,"+").replace(/_/g,"/");var C=_.$o().get("hl"),x=_.zU(_.ZV),b=S==null?void 0:S.element;b&&_.MF(b);LxU(S,!0);_.wiY(x,P,c.resolve,function(){b&&_.yi(b)},function(T){b&&_.yi(b);
c.reject(T)},C,u?function(T){u&&_.sn(Y,u,{backend_analytics:T})}:void 0,c.resolve,W,m,J);
return c.promise};
LxU=function(Y,S){!(Y=Y==null?void 0:Y.element)||Y.tagName!=="YT-BUTTON-RENDERER"&&Y.tagName!=="YTD-BUTTON-RENDERER"||(Y.disabled=S)};
Fxf=function(){var Y=_.Td("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Sk(Y),actionButton:{buttonRenderer:svY()}}},popupType:"TOAST"}};
sHE=function(){var Y=_.Td("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Sk(Y),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
dea=function(Y){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:Y}]}}};
mw=function(Y,S,P,u){var W;return _.B(function(m){if(m.nextAddress==1)return _.ND(m,2),_.q(m,Y,4);if(m.nextAddress!=2)return(W=_.$W(S.getState().entities).length>0)?m.return({title:_.Sk(_.Td("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Sk(_.Td("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:F7U()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
m.return(d3X(P,u));_.O4(m);return m.return(d3X(P,u))})};
lJY=function(Y,S){return S?S==="PPSV"||NFK(Y,S):!1};
Xiu=function(Y){Y.responseContext||(Y.responseContext={});Y.responseContext.maxAgeSeconds=0;return Y};
jN=function(Y){var S;return _.B(function(P){return P.nextAddress==1?_.q(P,ZIa(Y,"service:topbar:fallback"),2):(S=P.yieldResult)&&_.na(S)?P.return(Xiu(_.na(S))):P.return()})};
iI8=function(Y){var S;return _.B(function(P){return P.nextAddress==1?_.q(P,ZIa(Y,"service:downloads_settings:fallback"),2):(S=P.yieldResult)&&_.na(S)?P.return(S):P.return()})};
ZIa=function(Y,S){var P;return _.B(function(u){if(u.nextAddress==1)return Y?_.q(u,Y.get(S),2):u.return();P=u.yieldResult;return!P||!_.na(P)||!isNaN(Number(P.data.expireTimestampMs))&&P.isExpired()?u.return():u.return(P)})};
oe8=function(Y){var S=_.E().resolve(Jk).getState().entities;return Y.playlistId?lJY(S,Y.playlistId):!1};
tUE=function(Y,S){var P;if(S==null?0:(P=S.requestTemplate)==null?0:P.panelId)Y.panelId=S.requestTemplate.panelId;var u;if(S==null?0:(u=S.requestTemplate)==null?0:u.params)Y.params=S.requestTemplate.params};
UeX=function(){if(ACK)return ACK();var Y=!_.f("idb_response_store_auth_killswitch"),S={};ACK=eH("yt-it-response-store",{objectStores:(S.ResponseStore={addedAtVersion:1},S),shared:!Y,upgrade:function(P,u){u(1)&&(P=ZR(P,"ResponseStore",{keyPath:["key","clientName"]}),ti(P,"byExpiration","expireTimestampMs"),ti(P,"byInterface","clientName"))},
version:1});return ACK()};
QHE=function(Y){return _.Uh(UeX(),Y)};
MUU=function(Y,S){var P;return _.B(function(u){return u.nextAddress==1?_.q(u,_.Vl(),2):(P=u.yieldResult)?u.return(new k0X(Y,S,P)):u.return()})};
yCE=function(Y){var S=Object.keys(Y)[0];if(S)return Y.screenExit&&(S=S+";"+Y.screenExit.screen),S};
NAY=function(Y){var S=new Map;Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())P=P.value,P!=null&&(S.has(P.taskType)||S.set(P.taskType,[]),S.get(P.taskType).push(P));return S};
HI$=function(Y){return!isNaN(Y)&&Y>0};
VU$=function(Y){Y=[].concat(_.cz(Y)).sort(function(P,u){return P-u});
var S=Math.floor(Y.length/2);return Y.length%2?Y[S]:(Y[S-1]+Y[S])/2};
OIX=function(){e5h||(Object.assign(Yd,{handleError:function(Y,S){var P={errorSeverity:S.errorSeverity.toString(),wizFeatureFlags:Object.entries(S.featureFlags).join("\n")};N0$(S,P);S=S.errorSeverity;S===3?_.p_(Y,"ERROR",void 0,void 0,void 0,P):S===2&&_.p_(Y,"WARNING",void 0,void 0,void 0,P);_.f("cow_if_errors_in_popup")&&S===3&&Y.message.indexOf("<If>")!==-1&&window.alert(Y.message)},
enableComponentStacksInErrorMessages:!1}),e5h=!0)};
Puh=function(Y,S){_.HQ("yt.logging.errors.log",_.p_);Hc8();YHU(u58(),S);window.onerror=Y;_.f("wiz_next_error_handler_killswitch")||OIX();SHU=VDh;window.addEventListener("unhandledrejection",function(P){if(P.reason instanceof Error){var u=P.reason;_.d6(u,{source:"unhandledrejection"});u.name==="AbortError"&&(u.level="WARNING")}VDh(P.reason);P.preventDefault()})};
_.uA8=function(Y){return Y.a11y.ephemeralAction||null};
_.WPh=function(Y){var S,P,u,W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V,M,zJ,O,ca,hu,ah,va,yX,la,w1,U9,nu,Yc,tu,$_,fu,G3,wd,Wd,kE,n8;return _.B(function(P6){if(P6.nextAddress==1)return _.q(P6,_.TM(Y,{mode:"readonly",enableRetries:!0},function(ML){return KA(ML,"playbackData").then(function(zc){var Ku=zc.map(function(Cu){return Cu.transfer}).filter(function(Cu){return!!Cu}),uo=zc.map(function(Cu){return Cu.offlineVideoPolicy}).filter(function(Cu){return!!Cu}),qL=zc.filter(function(Cu){return!!Cu.key}).map(function(Cu){return _.JE(_.mZ(Cu.key).entityId,
"downloadStatusEntity")});
Ku=KA(ML,"transfer",Ku);uo=KA(ML,"offlineVideoPolicy",uo);qL=KA(ML,"downloadStatusEntity",qL);var Zf=Ku.then(function(Cu){Cu=Cu.reduce(function(hm,Iu){(Iu==null?0:Iu.offlineVideoStreams)&&hm.push.apply(hm,_.cz(Iu.offlineVideoStreams));return hm},[]).filter(function(hm){return!!hm});
return KA(ML,"offlineVideoStreams",Cu)});
return XV.all([Ku,uo,Zf,qL]).then(function(Cu){var hm=_.n(Cu);Cu=hm.next().value;var Iu=hm.next().value;var Fi=hm.next().value;hm=hm.next().value;return[zc,Cu,Iu,Fi,hm]})})}),2);
if(P6.nextAddress!=3)return S=P6.yieldResult,_.q(P6,_.TM(Y,{mode:"readonly",enableRetries:!0},function(ML){return KA(ML,"mainDownloadsListEntity").then(function(zc){var Ku,uo;return(uo=(Ku=zc[0])==null?void 0:Ku.downloads)!=null?uo:[]})}),3);
P=P6.yieldResult;u=_.n(S);W=u.next().value;m=u.next().value;J=u.next().value;c=u.next().value;C=u.next().value;x=W;b=m;T=J;K=c;G=C;v={};a={};w={};F={};U={};V=[];M=_.n(b);for(zJ=M.next();!zJ.done;zJ=M.next())(O=zJ.value)&&(v[O.key]=O);ca=_.n(T);for(hu=ca.next();!hu.done;hu=ca.next())(ah=hu.value)&&(a[ah.key]=ah);va=_.n(G);for(yX=va.next();!yX.done;yX=va.next())(la=yX.value)&&(w[la.key]=la);w1=_.n(K);for(U9=w1.next();!U9.done;U9=w1.next())(nu=U9.value)&&(F[nu.key]=nu);Yc=_.n(P);for(tu=Yc.next();!tu.done;tu=
Yc.next())$_=tu.value,fu=void 0,U[(fu=$_.videoItem)!=null?fu:""]=!0,$_.videoItem&&(wd=G3=void 0,Wd=(wd=(G3=_.mZ($_.videoItem))==null?void 0:G3.entityId)!=null?wd:"",V.push({externalVideoId:Wd}));kE=x.filter(function(ML){if(!ML||!ML.key||!ML.offlineVideoPolicy)return!1;ML=_.mZ(ML.key).entityId;ML=_.JE(ML,"downloadStatusEntity");var zc;return!(ML&&((zc=w[ML])==null?void 0:zc.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
n8=kE.map(function(ML){var zc=v[ML.transfer],Ku=[];if(zc==null?0:zc.offlineVideoStreams)for(var uo=_.n(zc.offlineVideoStreams),qL=uo.next();!qL.done;qL=uo.next())(qL=F[qL.value])&&Ku.push(qL);uo=a[ML.offlineVideoPolicy];qL=U;var Zf=ML==null?void 0:ML.playerResponseTimestamp,Cu=_.mZ(uo.key).entityId;ML=_.JE(Cu,"mainVideoEntity");if(uo.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var hm="OFFLINE_VIDEO_STATE_DISABLED";uo.expirationTimestamp&&Number(uo.expirationTimestamp)<Date.now()/1E3&&(hm="OFFLINE_VIDEO_STATE_EXPIRED")}else if(uo.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")hm="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(zc==null?void 0:zc.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":hm="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":hm="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":hm="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":hm="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":hm="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":hm="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:hm="OFFLINE_VIDEO_STATE_UNKNOWN"}if(hm==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(zc==null?void 0:zc.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":hm="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":hm="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":hm=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Cu={id:Cu,videoState:hm};if(zc==null?0:zc.cotn)Cu.cotn=zc.cotn;if(zc==null?0:zc.maximumDownloadQuality)Cu.selectedVideoQuality=zc==null?void 0:zc.maximumDownloadQuality;if(zc==null?0:zc.lastProgressTimeMs)Cu.lastProgressTimeMs=zc.lastProgressTimeMs;Zf&&(Cu.playerResponseSavedTimeMs=String(Number(Zf)*1E3));zc=String;Zf=0;Ku=_.n(Ku);for(hm=Ku.next();!hm.done;hm=Ku.next())if(hm=hm.value,hm.streamsProgress){hm=_.n(hm.streamsProgress);for(var Iu=hm.next();!Iu.done;Iu=
hm.next()){var Fi=void 0;Zf+=Number((Fi=Iu.value.numBytesDownloaded)!=null?Fi:0)}}Cu.downloadedBytes=zc(Zf);Cu.selectedOfflineMode=qL[ML]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";uo.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Cu.offlinePlaybackDisabledReason=uo.offlinePlaybackDisabledReason);return Cu});
return P6.return({offlineVideos:n8,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:V}}})})};
zrE=function(){var Y;return _.B(function(S){return S.nextAddress==1?_.q(S,_.qa(),2):(Y=S.yieldResult)?S.return(_.WPh(Y)):S.return({state:"PES Unavailable"})})};
jbY=function(){var Y,S,P,u;return _.B(function(W){if(W.nextAddress==1)return _.q(W,_.qa(),2);if(W.nextAddress!=3)return(Y=W.yieldResult)?_.q(W,m5X(Y),3):W.return({state:"PES Unavailable"});S=W.yieldResult;P={};u=S.reduce(function(m,J){m[J.key]=J;return m},P);
return W.return(nLu(u))})};
nLu=function(Y){for(var S={},P=[],u=_.n(Object.keys(Y)),W=u.next();!W.done;W=u.next()){var m=W.value;W=Y[m];var J=void 0;if(((J=W)==null?void 0:J.entityType)==="mainVideoEntity"){delete Y[m];var c=W.data;W={};if(c){var C=void 0;J=(C=c.videoId)!=null?C:"vid-"+m;m=Y;W.video=c;delete W.video.formattedDescription;delete W.video.thumbnail;c.owner&&(C=m[c.owner],C==null?0:C.data)&&(delete m[C.key],W.video.owner=C.data,delete W.video.owner.avatar);if(c=c.downloadState)if(C=m[c],C==null?0:C.data)if(delete m[c],
c=C.data.playbackData)if(C=m[c],C!=null&&C.data){delete m[c];c=C.data;delete c.playerResponseJson;W.playbackData=c;if(c.transfer&&(C=m[c.transfer],C==null?0:C.data)){delete m[C.key];var x=C.data;W.transfer=x;C=[];x=_.n(x.offlineVideoStreams||[]);for(var b=x.next();!b.done;b=x.next())if(b=m[b.value])delete m[b.key],C.push(b.data);C&&(W.streams=C)}(c=c.offlineVideoPolicy)&&(c=m[c])&&c.data&&(delete m[c.key],W.offlineVideoPolicy=c.data)}S[J]=W}}else W&&W.entityType==="offlineOrchestrationActionWrapperEntity"&&
W.data&&(delete Y[W.key],J=W.data,m=void 0,P.push({id:J.rootActionId,type:((m=J.actionProto)==null?void 0:m.actionType)||"",entity:W}))}S.wrapperEntities=P;Object.keys(Y).length>0&&(S.unknownKeys=Y);return S};
JtX=function(){var Y,S,P,u,W,m,J,c,C;return _.B(function(x){if(x.nextAddress==1)return Y=!!(new _.lX("")).expiringStorage_,u=!!((S=_.Pa.crypto)==null?0:(P=S.subtle)==null?0:P.importKey),W=!!_.Pa.BroadcastChannel,m=!!_.Pa.navigator.locks,_.q(x,ICE(),2);J=x.yieldResult;c=Y&&u&&W&&m&&J;C={isSupported:c};if(c)return x.return(C);C.missingBrowserFeatures=[];J||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");Y||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
u||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");W||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");m||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return x.return(C)})};
Bq1=function(){var Y;return!((Y=Bs?Bs:null)==null||!Y.window)};
_.Cu9=function(Y){if(_.Df()&&_.B1Y("Chromium")>=120){var S=_.cta().mediaSession;try{S.setActionHandler("enterpictureinpicture",function(){Y()})}catch(P){}}};
qHf=function(Y){for(var S=[],P=_.n(document.styleSheets),u=P.next(),W={};!u.done;W={node$jscomp$721:void 0},u=P.next())W.node$jscomp$721=u.value.ownerNode,W.node$jscomp$721&&(W.node$jscomp$721 instanceof HTMLStyleElement||W.node$jscomp$721 instanceof HTMLLinkElement)&&S.push(new Promise(function(m){return function(J){var c=m.node$jscomp$721.cloneNode(!0);c.onload=function(){J()};
c.onerror=function(){_.sf(Error("gj"));J()};
Y.document.head.appendChild(c)}}(W)));
return Promise.all(S)};
rtK=function(Y){var S=[_.Ua(Rru),_.Ua(x51),_.Ua(bya)];Tqa(window.document.documentElement,Y.document.documentElement,[_.Ua(KP9),_.Ua(ELE),_.Ua(fuY),_.Ua(gLa),_.Ua($51)]);Tqa(window.document.body,Y.document.body,S)};
Tqa=function(Y,S,P){Y=_.n(Y.attributes);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value)try{_.Lh(P,S,u.name,u.value)}catch(W){}};
hrY=function(Y,S){Y=new _.cs(Y.document.documentElement);Y.start(Ggh,S);return Y};
vL$=function(Y){var S=Y.document.documentElement;S.addEventListener("click",function(P){t$J(S,P)});
S.addEventListener("touchstart",function(P){M$a(P)});
S.addEventListener("mousedown",function(P){M$a(P)})};
Iuh=function(Y,S,P,u){u=u===void 0?!1:u;S=new D5K(S||Y,P||Y);return{x:Y.x+((u===void 0?0:u)?S.lengthX*-1:S.lengthX)*.2,y:Y.y+((u===void 0?0:u)?S.lengthY*-1:S.lengthY)*.2}};
auK=function(Y){if(!Y)return!1;var S=Y.status==="OK"||Y.status==="LIVE_STREAM_OFFLINE",P,u,W,m=(W=(P=Y.errorScreen)==null?void 0:P.playerLegacyDesktopYpcTrailerRenderer)!=null?W:(u=Y.errorScreen)==null?void 0:u.ypcTrailerRenderer;return!!S||!!m};
_.LPa=function(Y,S){if(!Y)return!1;var P,u=(P=Y.errorScreen)==null?void 0:P.playerLegacyDesktopYpcOfferRenderer,W;S=!!(S==null?0:(W=S.playerOverlayRenderer)==null?0:W.gatedActionsOverlayRenderer);return!!auK(Y)||!!u||!!S};
w2Y=function(Y){return Y.includes("gclid")||Y.includes("gad_source")};
FPa=function(Y){var S=[],P=0;return{push:function(u){S[P]=u;P=(P+1)%Y},
iterate:function(){return function W(){var m,J,c;return _.p2X(W,function(C){switch(C.nextAddress){case 1:_.V3(C,2),m=S.length,J=0;case 4:if(!(J<m)){C.jumpTo(2);break}c=P+J;return _.q(C,S[c%m],7);case 7:J++;C.jumpTo(4);break;case 2:_.Hx(C),_.e2(C,0)}})}()}}};
d59=function(){var Y=_.z_("web_max_tracing_events",0);_.f("web_enable_tracing")&&Y>0&&sb1(Y)};
sb1=function(Y){var S=FPa(Y);DKX({sample:function(P,u){return P==="event"?!luf.has(u==null?void 0:u.type):!1},
spanProcessors:[{onSpanStart:function(P){S.push(P)}}]});
jea.subscribe("handleError",function(P){Object.assign(P.params,{breadcrumbs:JSON.stringify(Array.from(S.iterate()))})})};
X21=function(Y){return new Promise(function(S){window.setTimeout(S,Y)})};
Zy$=function(Y){var S={bicf:function(m){Y.bMb=m},
blc:function(){return Y.getLatestChallengeResponse()},
bcr:function(m){Y.pPy.push(m)}},P=window.top;
P.ntpevasrs=S;if(P.ntpqfbel!==void 0)for(var u=_.n(P.ntpqfbel),W=u.next();!W.done;W=u.next())W=W.value,W(S);P.ntpqfbel=void 0};
iyU=function(Y){return _.B(function(S){if(S.nextAddress==1)return _.ND(S,2),_.q(S,Y.mDE(),4);if(S.nextAddress!=2)return _.tc(S,0);_.O4(S);_.Yt(S)})};
oLh=function(Y){var S,P;(S=Y.ytcsi)==null||(P=S.tick)==null||P.call(S,"pot_ist")};
tAh=function(Y){if(Y instanceof Error){var S=_.tA("yt.logging.errors.log");S&&S(Y,"WARNING")}};
Ath=function(Y){try{var S=JSON.parse(Y);if(S.bgChallenge)return S}catch(P){}};
Qb9=function(){var Y=window,S={networkStatusManagerPromise:_.E().resolve(new Cg8(_.kF)),initialChallengeSli:_.f("wpo_att_sli")?new _.Ty9("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};Y=Y===void 0?window:Y;var P=Y.ytAtR,u;S==null||(u=S.initialChallengeSli)==null||_.Ca(u);if(P){if(P=Ath(P)){var W;S==null||(W=S.initialChallengeSli)==null||_.q2(W,"SUCCESS");U5a(P,S)}Y.ytAtR=void 0}else Y.ytAtRC=function(m){if(m=Ath(m)){var J;S==null||(J=S.initialChallengeSli)==null||_.q2(J,
"SUCCESS");U5a(m,S);Y.ytAtRC=void 0}}};
ytE=function(){if(kgJ)return kgJ;try{var Y=_.nN("IFRAME");_.fh(Y,_.kt(MAh));Y.sandbox.add("allow-same-origin");Y.style.display="none";document.body.appendChild(Y);return kgJ=Y}catch(S){Y=new _.$2("Failed to create sandbox iframe"),_.p_(Y)}};
Nqh=function(Y){var S,P;return(P=Y==null?void 0:(S=Y.contentWindow)==null?void 0:S.fetch)!=null?P:window.fetch};
HyK=function(Y){var S,P;return(P=Y==null?void 0:(S=Y.contentWindow)==null?void 0:S.JSON.parse)!=null?P:JSON.parse};
VA$=function(Y){var S,P;return(P=Y==null?void 0:(S=Y.contentWindow)==null?void 0:S.Request)!=null?P:window.Request};
Y1K=function(){if(fVh()==="hidden")var Y="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else fVh()==="visible"&&(Y="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",erf=null);Y&&Oya(Y)};
Oya=function(Y){if(Y==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||Y==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(S1h===Y)return;S1h=Y}var S=9E4+Math.random()*2E3;if(Y!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.uE()>S)&&fVh()==="visible"){S=-1;erf&&(S=Math.round((0,_.Oh)()-erf));var P=String;var u=_.tA("_fact",window);u=u==null||u==-1?-1:Math.max(Date.now()-u,0);_.L_("foregroundHeartbeat",{firstActivityMs:P(u),clientDocumentNonce:Vm8,index:String(PZE),lastEventDeltaMs:String(S),trigger:Y});
_.HQ("_fact",-1,window);PZE++;erf=(0,_.Oh)()}};
_.uxh=function(){try{return!!self.sessionStorage}catch(Y){return!1}};
WgY=function(){var Y=navigator;return new Promise(function(S,P){var u;(u=Y.webkitTemporaryStorage)!=null&&u.queryUsageAndQuota?Y.webkitTemporaryStorage.queryUsageAndQuota(function(W,m){S({usage:W,quota:m})},function(W){P(W)}):P(Error("oj"))})};
zFu=function(Y,S,P){Y.componentType!==G6&&P instanceof HTMLElement&&S&&!_.f("cow_logging_in_component_wrapper")&&Ufa(P,S,!0)};
mlU=function(Y,S,P){S=S===void 0?{}:S;var u,W=(u=_.g(Y.commandMetadata,_.Yo))==null?void 0:u.url;u=S.form||{};!P||u.element||u.skipDefaultElement||(S.form=S.form||{},S.form.element=P);if(W&&W!=="/service_ajax")return{type:0,command:Y,form:S.form};if(_.f("kevlar_service_command_check")){if(_.Ft(_.E().resolve(_.fV),Y))return Object.assign({},{type:1,command:Y},S)}else{var m;if((m=_.g(Y.commandMetadata,_.Yo))==null?0:m.apiUrl)return Object.assign({},{type:1,command:Y},S)}return{type:2,command:Y,form:S.form}};
nDX=function(Y){if(Y.form){var S=Y.form,P=Object.assign({},S);S=S.element;P=(delete P.element,P);if(S)return[_.Bu(S,[Y.command,P,Y.commandController])]}return[]};
jtU=function(Y){if(Y.form){var S=Y.form,P=Object.assign({},S);S=S.element;P=(delete P.element,P);S&&_.cu(S,[Y.command],S,P)}};
BnY=function(Y,S,P){var u=new JZ1(Y,S),W=new RB(Y,S,P);Y={"/youtubei/v1/browse":new xX(Y,S,P),"/youtubei/v1/player":u,"/youtubei/v1/navigation/resolve_url":new b1,"/youtubei/v1/next":W,"/youtubei/v1/guide":new TU(P),"/youtubei/v1/search":new Ka(Y,S,P),"/youtubei/v1/reel/reel_item_watch":new E$(Y,S,P),"/youtubei/v1/get_watch":new fa(u,W)};Y["/youtubei/v1/account/account_menu"]=new gx;Y["/youtubei/v1/notification/get_notification_menu"]=new $X;return Y};
GU=function(){var Y=_.E().resolve(rx);return Promise.resolve(cZ$(Y,_.Pa.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
CZE=function(Y){return Y&&(Y=_.hk(_.ca8(Y)))?(new URLSearchParams(Y)).get("service"):null};
IB=function(Y,S){_.yz(_.vs(),function(){_.Fk("adl")});
_.E().resolve(q1K)(S);Y=Y.root;Y.loadData&&Y.loadData(S);(S==null?0:S.response)?_.q2(fjE(),"SUCCESS"):_.sf(new _.$2("Lifecycle: No response in data",_.Z4("IS_SHELL_LOAD"),S?S.page:"NO_PAGE",S?S.endpoint:"NO_ENDPOINT"));Y.polymerController.$["page-manager"].lazyPrepareCriticalPages((S==null?void 0:S.page)||"",S.endpoint);var P,u;((u=_.g(S==null?void 0:(P=S.endpoint)==null?void 0:P.commandMetadata,_.Yo))==null?0:u.webPageType)&&_.Na().dispatch(_.Dd(_.g(S.endpoint.commandMetadata,_.Yo).webPageType))};
RFh=function(){var Y,S;return _.B(function(P){switch(P.nextAddress){case 1:Y=window;if(!Y.getDataPromise){P.jumpTo(2);break}_.ND(P,3);return _.q(P,Y.getDataPromise(),5);case 5:return P.return(P.yieldResult);case 3:return _.O4(P),_.q(P,GU(),6);case 6:return P.return(P.yieldResult);case 2:if(Y.getInitialData)return S=Y.getInitialData(),Y.getInitialData=void 0,P.return(S);throw Error("qj`"+_.Pa.location.href);}})};
bvX=function(){_.lk("CSI_SERVICE_NAME","youtube");_.wP({loadType:"cold"});_.f("kevlar_log_lcp")&&xlh(function(Y){_.Fk("lcp",Y.value)})};
TnU=function(){var Y=_.FI(document.location.href,"enable");Y&&Y.indexOf("scraper")>-1&&_.lk("ADD_SCRAPER_ATTRIBUTES",!0)};
$lX=function(Y){var S=Y.root;Y=[Kga,EDX,_.aB];_.f("web_feedback_endpoint_autolog_allowlist_killswitch")&&Y.push(_.La,fvu);gDa(function(P,u){return mlU(P,u,S)},function(P){if(!P.command)return[];
var u;((u=P.form)==null?0:u.element)?P.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},P.form,{endpoint:P.command})})):S.handleNavigate(P);return[]},Y);
_.E().addProvider({provide:_.uY,useValue:_.zR.instance})};
GA$=function(){var Y={},S={},P;for(P in rZE){var u=_.n(_.qb(rZE[P],void 0,"UAX5pb"));Y[P]=u.next().value;S[P]=u.next().value}return[Y,function(W){for(var m in W){var J=void 0;(J=S[m])==null||J(W[m])}}]};
_.DlK=function(Y,S){var P=_.RY.getValueByKeys(Y,"contents","twoColumnWatchNextResults","results","results","contents"),u=_.RY.getValueByKeys(Y,"contents","twoColumnWatchNextResults","playlist","playlist")||null,W=null,m=null;if(u)W=_.RY.getValueByKeys(u,"titleText"),m=_.RY.unsafeClone(_.RY.getValueByKeys(u,"longBylineText")),P="",m&&(P=_.Ma(m)),m=_.kW(P);else if(P){P=_.n(P);for(var J=P.next();!J.done;J=P.next())J=J.value,J.videoPrimaryInfoRenderer&&(W=_.RY.getValueByKeys.apply(_.RY,[J].concat(_.cz(hFX)))),
J.videoSecondaryInfoRenderer&&(m=_.RY.getValueByKeys.apply(_.RY,[J].concat(_.cz(vDf))))}else _.AA(Error("vj"));var c;Y.currentVideoEndpoint?c=Y.currentVideoEndpoint:_.AA(Error("wj"));var C;S&&(C=_.RY.getValueByKeys(S,"playabilityStatus","miniplayer","miniplayerRenderer"));Y={miniplayerTitle:W,miniplayerSubtitle:m,watchEndpoint:c,playlistData:u};C&&(Y.miniplayerRenderer=C);return Y};
IvE=function(Y){if(Y)return _.$J(Y)};
_.ava=function(){return{isFullscreen:function(){throw Error("xj");},
toggleFullscreen:function(){throw Error("yj");},
exitFullscreen:function(){throw Error("zj");},
isAutonavEnabled:function(){throw Error("Aj");},
setAutonavEnabled:function(){throw Error("Bj");},
isAutoplaySetExplicitly:function(){throw Error("Cj");}}};
Lg9=function(Y){return Y.videoDuration?Y.numTaps>1&&Y.tapDirection!==0?_.wx(Y.draggedTime/Y.videoDuration,0,1):_.wx((Y.playedTime||0)/Y.videoDuration,0,1):0};
wPf=function(Y){return Y.videoDuration?Y.isDragging||Y.numTaps>1&&Y.tapDirection!==0?_.wx(Y.draggedTime/Y.videoDuration,0,1):_.wx((Y.playedTime||0)/Y.videoDuration,0,1):0};
FgJ=function(Y){var S,P,u;return _.g(Y==null?void 0:(S=Y.markersMap)==null?void 0:(P=S.find(function(W){return W.key==="HEATSEEKER"}))==null?void 0:(u=P.value)==null?void 0:u.heatmap,pPX)};
sta=function(Y){var S,P;return(P=(S=FgJ(Y))==null?void 0:S.heatMarkersDecorations)!=null?P:[]};
dla=function(Y){if(_.f("mweb_supported_chapters_killswitch"))return!0;var S;return!!(Y==null?0:(S=Y.markersMap)==null?0:S.find(function(P){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(P.key)}))};
_.lv9=function(Y){var S=Object,P=S.assign,u;Y={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(u=Y==null?void 0:Y.getPlayerState())!=null?u:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return P.call(S,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},Y,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
XPu=function(Y){return function(S){var P=Y(),u,W=(u=P.playerApi)==null?void 0:u.getPlayerState();S&&S!==P.playerState&&(S===1||S===2)&&P.setState({playerState:W})}};
ivf=function(Y){return function(S){var P=Y(),u=P.playerApi;u&&(S==null?void 0:S.type)==="newdata"&&(ZvE&&(clearTimeout(ZvE),ZvE=void 0),_.f("web_shorts_use_progress_state_for_gapless")?(S=u==null?void 0:u.getProgressState(S==null?void 0:S.playertype),S=S.seekableEnd-S.seekableStart):S=u==null?void 0:u.getDuration(S==null?void 0:S.playertype),P.setState({playedTime:0,videoDuration:S}))}};
oDJ=function(Y){return function(S){var P=Y(),u=P.playerApi;if(u){var W=u.getPresentingPlayerType();_.f("web_shorts_use_progress_state_for_gapless")?(u=u.getProgressState(W),u=u.seekableEnd-u.seekableStart):u=u.getDuration(W);P.setState({playedTime:S,videoDuration:u})}}};
Ulh=function(Y){var S=Y.element;var P=Y.veType;var u=Y.storedVisualElement===void 0?null:Y.storedVisualElement;var W=Y.elementIndex===void 0?0:Y.elementIndex;Y=Y.clientYouTubeData;var m=_.pM();m!==tPK&&(AZa.clear(),tPK=m);if(S.visualElement&&AZa.has(S.visualElement))return null;if(u&&AZa.has(u))return S.visualElement=u,null;P=_.JL(_.BF(),{veType:P,elementIndex:W,clientYouTubeData:Y});if(!P)return null;S.visualElement=P;AZa.add(P);return P};
_.pa=function(Y,S,P,u){P=P===void 0?null:P;u=u===void 0?QP$:u;var W=W===void 0?null:W;Ks(function(){if(S){P instanceof Function&&(P=P());var m=Ulh({element:S,veType:Y,storedVisualElement:P,clientYouTubeData:void 0});m&&(yRf(S,W),u(m))}})};
kA1=function(Y){_.pa(112394,Y,function(){return QtJ},function(S){QtJ=S})};
Nnu=function(Y,S){if(!Y)return[];var P,u,W;Y=((P=Y.markersMap)==null?void 0:(u=P.find(function(m){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(m.key)}))==null?void 0:(W=u.value)==null?void 0:W.chapters)||[];
!MP9(Y)||(S==null?0:S.ignoreStub)||(Y=[yZE()].concat(_.cz(Y)));return Y};
yZE=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
MP9=function(Y){if(Y.length===0)return!1;var S;return((S=_.g(Y[0],Fj))==null?void 0:S.timeRangeStartMillis)!==0};
s$=function(Y){return Y?Y.timeRangeStartMillis||0:0};
VPK=function(Y,S){if(Y.isDragging&&S)return Y=Hvf(Y,S),Y===-1?yZE():Nnu(S)[Y]};
Hvf=function(Y,S){return Y.isDragging&&S?Nnu(S,{ignoreStub:!0}).findIndex(function(P,u,W){P=eFK(Y);return OvX(P,W,u).scrubberHovering}):-1};
eFK=function(Y){return Object.assign({},Y,{videoDuration:Y.videoDuration*1E3,playedTime:Y.playedTime*1E3,draggedTime:Y.draggedTime*1E3})};
OvX=function(Y,S,P){var u=s$(_.g(S[P],Fj));S=s$(_.g(S[P+1],Fj))||Y.videoDuration;P=Y.isDragging;var W;if(W=Y.isDragging)W=Y.draggedTime,W=W!==null&&W>=u&&W<S;var m=Y.playedTime;return m!==null&&m>=u&&m<S?{videoPosition:"active",isScrubbing:P,scrubberHovering:W}:Y.playedTime<u?{videoPosition:"pending",isScrubbing:P,scrubberHovering:W}:{videoPosition:"seen",isScrubbing:P,scrubberHovering:W}};
YY1=function(Y,S){return Y.videoPosition==="seen"||(S===void 0?0:S)>0};
SY9=function(Y,S,P){S=Y/S.storyboardInterval;var u=Nnu(P);if(!u.length)return-S*72;P=0;u=_.n(u);for(var W=u.next();!W.done;W=u.next())if(s$(_.g(W.value,Fj))/1E3<Y)P++;else break;return-(S*72)-P*56};
PDU=function(Y){return Y?Y.width/Y.columns:0};
uda=function(Y){return Y.isHovering?Y.hoveredTime:Y.draggedTime};
W68=function(Y,S){Y=Y.draggedTime*1E3;return Y>=S.visibleTimeRangeStartMillis&&Y<=S.visibleTimeRangeEndMillis};
_.zm1=function(Y){if(Y===void 0||Number.isNaN(Y))return"--:--";var S=Math.abs(Math.floor(Y)),P=Math.floor(S/86400),u=Math.floor(S%86400/3600),W=Math.floor(S%3600/60);S=Math.floor(S%60);var m="";P>0&&(m+=P+":",u<10&&(m+="0"));if(P>0||u>0)m+=u+":",W<10&&(m+="0");m+=W+":";S<10&&(m+="0");m+=S;return Y>=0?m:"-"+m};
mxX=function(Y,S){return function(){var P=uda(Y());var u=S();var W=Y().playerApi;if(W&&W.getNumberOfStoryboardLevels()!==0){var m=W.getStoryboardFrameIndex(P,1);m!==-1?u=W.getStoryboardFrame(m,1):(P=W.getStoryboardFrameIndex(P,0),W=W.getStoryboardFrame(P,0),u&&W&&(W.height*=3,W.width*=3),u=W)}else u=null;if(!u)return null;S()&&(u.width=90*u.columns,u.height=160*u.rows);return u}};
_.dx=function(Y){if(!Y||Y.getVideoData)return Y};
n$h=function(){var Y;return{playerApi:(Y=_.PL())!=null?Y:void 0}};
_.CD1=function(Y){function S(V){V!==0||b?V>50&&(b||!K)?(T(!1),G(!0)):V<=50&&(b||K)&&(T(!1),G(!1)):T(!0)}
function P(){var V;return _.B(function(M){if(M.nextAddress==1)return _.q(M,_.SF(),2);(V=M.yieldResult)&&(V.isMuted()?T(!0):T(!1));_.Yt(M)})}
var u=Y.noSlider;Y=_.Ms();var W=_.Ms(),m=_.yZ(),J=_.n(zz(!1)),c=J.next().value,C=J.next().value,x=_.n(zz(!1));J=x.next().value;x=x.next().value;var b=J,T=x;x=_.n(zz(!0));J=x.next().value;x=x.next().value;var K=J,G=x;_.LE(function(){function V(){C(!0)}
function M(){C(!1)}
u?(P(),S(b?0:100)):m&&m.value&&(m.value.addEventListener("focus",V),m.value.addEventListener("focusout",M),jaf(m.value).then(function(){S(Number(J0h(m.value)))}));
W&&W.value&&(W.value.addEventListener("focus",V),W.value.addEventListener("focusout",M));return function(){var zJ;m==null||(zJ=m.value)==null||zJ.removeEventListener("focus",V);var O;m==null||(O=m.value)==null||O.removeEventListener("focusout",M);W.value.removeEventListener("focus",V);W.value.removeEventListener("focusout",M)}});
var v=_.mR(function(){if(m&&m.value){var V=Number(J0h(m.value));Bo8(V);m.value.style.setProperty("--gradient-percent",V+"%");S(V)}return!1});
J={};var a=(J.ytdDesktopShortsVolumeControlsSliderContainer=!0,J.ytdDesktopShortsVolumeControlsSliderContainerExpanded=c,J);J={};c=(J.ytdDesktopShortsVolumeControlsBackgroundScrim=!0,J.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=u?!1:c,J);J=_.mR(function(){C(!0)});
x=_.mR(function(){C(!1)});
var w=_.mR(function(){if(m&&m.value||u)c0J(m.value,b,u),T(!b);return!1}),F=_.f("web_shorts_keyboard_enable_mute_shortcut")?b?_.Td("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.Td("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):b?_.Td("UNMUTE_VOLUME",void 0,"Unmute"):_.Td("MUTE_VOLUME",void 0,"Mute"),U={sources:[{clientResource:{imageName:b?"VOLUME_OFF_FILLED":K?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.R("desktop-shorts-volume-controls",{"on:pointerleave":x,class:"ytdDesktopShortsVolumeControlsHost",el:Y},_.R("div",{class:_.uN(c)}),_.R("button",{"aria-label":F,title:F,el:W,"on:click":w,"on:pointerenter":J,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},U?_.R(_.ZZ,{data:U,alt:F,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null),_.kS(!u,function(){return _.R("div",{class:_.uN(a)},_.R("input",{"aria-label":_.Td("VOLUME"),title:_.Td("VOLUME"),el:m,"on:input":v,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",
id:"volume-input"}))}))};
jaf=function(Y){var S,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,_.SF(),2);S=u.yieldResult;P=50;S&&(P=S.getVolume(),S.isMuted()?qY$(Y,0):qY$(Y,P));_.Yt(u)})};
Bo8=function(Y){var S;_.B(function(P){if(P.nextAddress==1)return _.q(P,_.SF(),2);if(S=P.yieldResult)S.unMute(!0),S.setVolume(Y,!0);_.Yt(P)})};
qY$=function(Y,S){Y&&(Y.value=""+S,Y.style.setProperty("--gradient-percent",S+"%"))};
J0h=function(Y){var S;return(S=Y==null?void 0:Y.value)!=null?S:0};
c0J=function(Y,S,P){var u;_.B(function(W){if(W.nextAddress==1)return _.q(W,_.SF(),2);u=W.yieldResult;S&&u?(u.unMute(!0),!P&&Y&&qY$(Y,u.getVolume())):u&&(u.mute(!0),!P&&Y&&qY$(Y,0));_.Yt(W)})};
RmX=function(){var Y;_.B(function(S){if(S.nextAddress==1)return _.q(S,_.SF(),2);Y=S.yieldResult;if(!Y)return S.return();Y.isMuted()?Y.unMute(!0):Y.mute(!0);_.Yt(S)})};
xxX=function(Y){var S=_.E().resolve(_.l1).getPlayerElement();S&&Y&&(Y===1?S.pause():S.play())};
bY1=function(Y){_.jR(Y,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Tou=function(Y){_.jR(Y,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
E$h=function(Y){return _.D4(Y.document.body,function(){return _.R(K6E,null)})};
fma=function(){var Y=window.performance.getEntriesByType("navigation");return Y?Y.map(function(S){return S.type}).includes("reload"):!1};
ImU=function(){Xj(Xj(Xj(Xj(Xj(Xj(Xj(_.E().resolve(_.Zd),_.g$$),_.$xE),_.r0Y),_.Goh),_.hm$),_.v$E),_.Dx$)};
am1=function(Y,S){S=S===void 0?!1:S;var P,u,W,m;return _.B(function(J){if(J.nextAddress==1)return S||!_.f("kevlar_shorts_seedless_retry_initial_load")||(P=window,u=!(!P.getDataPromise&&!P.getInitialData),u)?_.q(J,RFh(),2):(setTimeout(am1.bind(window,Y,!0),1E3),J.return());if(J.nextAddress!=3)return W=J.yieldResult,_.q(J,L6h(W),3);m=J.yieldResult;IB(Y,m);_.Yt(J)})};
L6h=function(Y){var S;if((S=Y.response)==null||!S.replacementEndpoint)return _.Cb(Y);S=_.E().resolve(rx);Y=Y.response;_.g(Y.replacementEndpoint,_.bM)&&Y.sequenceContinuation&&(_.g(Y.replacementEndpoint,_.bM).sequenceParams=Y.sequenceContinuation);return i1(S,Y.replacementEndpoint,{},_.Pa.location.href,"shorts",function(){},function(){return!1})};
wGf=function(Y){var S=_.Na(),P,u=_.g((P=Y.response)==null?void 0:P.frameworkUpdates,Xt),W;P=_.g((W=Y.playerResponse)==null?void 0:W.frameworkUpdates,Xt);var m;Y=_.g((m=Y.reelWatchSequenceResponse)==null?void 0:m.frameworkUpdates,Xt);u&&_.xW(u,S);P&&_.xW(P,S);Y&&_.xW(Y,S)};
pGf=function(Y){var S;_.f("enable_redirect_linking_for_desktop_web_client")&&((S=window.location.hash)==null?0:S.includes("redirect_state"))&&Y.url&&(Y.url=Y.url.toString()+window.location.hash)};
dxU=function(Y){var S=_.E(),P=S.resolve(rx);S=S.resolve(_.F6E);Y.endpoint&&(P=sau(P,Y.endpoint),P.content&&Y.response&&_.oB(S,Y.response,P.content),P.player&&Y.playerResponse&&_.oB(S,Y.playerResponse,P.player),P.reelSequence&&Y.reelWatchSequenceResponse&&_.oB(S,Y.reelWatchSequenceResponse,P.reelSequence))};
tk=function(Y,S){wGf(S);var P;(S==null?0:S.url)&&((P=window.location.hash)==null?0:P.includes("redirect_state"))&&(pGf(S),(P=CZE(S.url))&&_.nb(Y.root,"yt-initialize-third-party",[P,S]));dxU(S);P=_.E();var u=P.resolve(lmK);S.playerResponse&&P.resolve(XGK).handleResponse(S.playerResponse);if(S.playerResponse){P=void 0;if(_.f("ab_v_vid_sig")&&S.endpoint){var W,m=(W=_.g(S.endpoint,_.yx))!=null?W:_.g(S.endpoint,_.bM);m&&(P=m.videoId)}ZYh(u,S.playerResponse,P)}S.playerResponse&&Qmh(S.playerResponse)&&_.f("web_enable_ab_rsp_cl")?
pIY().then(function(){iYa(u,S.playerResponse);IB(Y,S)}):IB(Y,S)};
t9E=function(Y){if(Y=Y.root.data){var S=_.E().resolve(o$K);Y.endpoint&&(Y.response&&S.handleResponse(Y.response,void 0,document.querySelector("ytd-app")),Y.playerResponse&&S.handleResponse(Y.playerResponse),Y.reelWatchSequenceResponse&&S.handleResponse(Y.reelWatchSequenceResponse))}};
A0X=function(Y){var S,P,u,W,m,J;return _.B(function(c){switch(c.nextAddress){case 1:S=window;if(!S.getDataPromise){c.jumpTo(2);break}_.ND(c,3);return _.q(c,S.getDataPromise(),5);case 5:P=c.yieldResult;tk(Y,P);_.tc(c,4);break;case 3:return _.O4(c),_.q(c,GU(),6);case 6:u=c.yieldResult,IB(Y,u);case 4:return c.return();case 2:if(!_.f("sw_nav_preload_pbj")){c.jumpTo(7);break}S.fetchInitialData=function(){var C;return _.B(function(x){if(x.nextAddress==1)return _.q(x,GU(),2);C=x.yieldResult;IB(Y,C);_.Yt(x)})};
if(S.getInitialData){S.loadInitialData=function(C){tk(Y,C)};
W=S.getInitialData();S.getInitialData=void 0;tk(Y,W);c.jumpTo(8);break}S.fetchInitialData=void 0;return _.q(c,GU(),9);case 9:m=c.yieldResult,IB(Y,m);case 8:return c.return();case 7:S.getInitialData?(J=S.getInitialData(),S.getInitialData=void 0,tk(Y,J)):S.loadInitialData=function(C){tk(Y,C)},_.Yt(c)}})};
UxX=function(Y){var S=0;return function(){return S<Y.length?{done:!1,value:Y[S++]}:{done:!0}}};
Qaa=typeof Object.defineProperties=="function"?Object.defineProperty:function(Y,S,P){if(Y==Array.prototype||Y==Object.prototype)return Y;Y[S]=P.value;return Y};
ko1=function(Y){Y=["object"==typeof globalThis&&globalThis,Y,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var S=0;S<Y.length;++S){var P=Y[S];if(P&&P.Math==Math)return P}throw Error("a");};
_.y6=ko1(this);Ak=function(Y,S){if(S)a:{var P=_.y6;Y=Y.split(".");for(var u=0;u<Y.length-1;u++){var W=Y[u];if(!(W in P))break a;P=P[W]}Y=Y[Y.length-1];u=P[Y];S=S(u);S!=u&&S!=null&&Qaa(P,Y,{configurable:!0,writable:!0,value:S})}};
Ak("Symbol",function(Y){if(Y)return Y;var S=function(m,J){this.$jscomp$symbol$id_=m;Qaa(this,"description",{configurable:!0,writable:!0,value:J})};
S.prototype.toString=function(){return this.$jscomp$symbol$id_};
var P="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",u=0,W=function(m){if(this instanceof W)throw new TypeError("b");return new S(P+(m||"")+"_"+u++,m)};
return W});
Ak("Symbol.iterator",function(Y){if(Y)return Y;Y=Symbol("c");for(var S="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),P=0;P<S.length;P++){var u=_.y6[S[P]];typeof u==="function"&&typeof u.prototype[Y]!="function"&&Qaa(u.prototype,Y,{configurable:!0,writable:!0,value:function(){return M9J(UxX(this))}})}return Y});
Ak("Symbol.asyncIterator",function(Y){return Y?Y:Symbol("d")});
var M9J=function(Y){Y={next:Y};Y[Symbol.iterator]=function(){return this};
return Y},y0E=typeof Object.create=="function"?Object.create:function(Y){var S=function(){};
S.prototype=Y;return new S},Noh=function(){function Y(){function P(){}
new P;Reflect.construct(P,[],function(){});
return new P instanceof P}
if(typeof Reflect!="undefined"&&Reflect.construct){if(Y())return Reflect.construct;var S=Reflect.construct;return function(P,u,W){P=S(P,u);W&&Reflect.setPrototypeOf(P,W.prototype);return P}}return function(P,u,W){W===void 0&&(W=P);
W=y0E(W.prototype||Object.prototype);return Function.prototype.apply.call(P,W,u)||W}}(),HYa;
if(typeof Object.setPrototypeOf=="function")HYa=Object.setPrototypeOf;else{var V9u;a:{var em$={a:!0},OYX={};try{OYX.__proto__=em$;V9u=OYX.a;break a}catch(Y){}V9u=!1}HYa=V9u?function(Y,S){Y.__proto__=S;if(Y.__proto__!==S)throw new TypeError("e`"+Y);return Y}:null}U$=HYa;
_.r=function(Y,S){Y.prototype=y0E(S.prototype);Y.prototype.constructor=Y;if(U$)U$(Y,S);else for(var P in S)if(P!="prototype")if(Object.defineProperties){var u=Object.getOwnPropertyDescriptor(S,P);u&&Object.defineProperty(Y,P,u)}else Y[P]=S[P];Y.superClass_=S.prototype};
_.n=function(Y){var S=typeof Symbol!="undefined"&&Symbol.iterator&&Y[Symbol.iterator];if(S)return S.call(Y);if(typeof Y.length=="number")return{next:UxX(Y)};throw Error("f`"+String(Y));};
o6=function(Y){for(var S,P=[];!(S=Y.next()).done;)P.push(S.value);return P};
_.cz=function(Y){return Y instanceof Array?Y:o6(_.n(Y))};
_.Q0=function(Y){return YNa(Y,Y)};
YNa=function(Y,S){Y.raw=S;Object.freeze&&(Object.freeze(Y),Object.freeze(S));return Y};
kX=function(Y,S){return Object.prototype.hasOwnProperty.call(Y,S)};
SNa=typeof Object.assign=="function"?Object.assign:function(Y,S){for(var P=1;P<arguments.length;P++){var u=arguments[P];if(u)for(var W in u)kX(u,W)&&(Y[W]=u[W])}return Y};
Ak("Object.assign",function(Y){return Y||SNa});
var P_u=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},uuJ=function(Y){if(Y.isRunning_)throw new TypeError("h");
Y.isRunning_=!0};
P_u.prototype.JSC$6608_next_=function(Y){this.yieldResult=Y};
var Wn9=function(Y,S){Y.abruptCompletion_={exception:S,isException:!0};Y.nextAddress=Y.catchAddress_||Y.finallyAddress_};
P_u.prototype.return=function(Y){this.abruptCompletion_={return:Y};this.nextAddress=this.finallyAddress_};
_.q=function(Y,S,P){Y.nextAddress=P;return{value:S}};
P_u.prototype.jumpTo=function(Y){this.nextAddress=Y};
_.Yt=function(Y){Y.nextAddress=0};
_.ND=function(Y,S,P){Y.catchAddress_=S;P!=void 0&&(Y.finallyAddress_=P)};
_.V3=function(Y,S){Y.catchAddress_=0;Y.finallyAddress_=S||0};
_.tc=function(Y,S,P){Y.nextAddress=S;Y.catchAddress_=P||0};
_.O4=function(Y,S){Y.catchAddress_=S||0;S=Y.abruptCompletion_.exception;Y.abruptCompletion_=null;return S};
_.Hx=function(Y,S,P,u){u?Y.finallyContexts_[u]=Y.abruptCompletion_:Y.finallyContexts_=[Y.abruptCompletion_];Y.catchAddress_=S||0;Y.finallyAddress_=P||0};
_.e2=function(Y,S,P){P=Y.finallyContexts_.splice(P||0)[0];(P=Y.abruptCompletion_=Y.abruptCompletion_||P)?P.isException?Y.nextAddress=Y.catchAddress_||Y.finallyAddress_:P.jumpTo!=void 0&&Y.finallyAddress_<P.jumpTo?(Y.nextAddress=P.jumpTo,Y.abruptCompletion_=null):Y.nextAddress=Y.finallyAddress_:Y.nextAddress=S};
zIU=function(Y){this.JSC$6613_context_=new P_u;this.program_=Y};
n7$=function(Y,S){uuJ(Y.JSC$6613_context_);var P=Y.JSC$6613_context_.yieldAllIterator_;if(P)return m_u(Y,"return"in P?P["return"]:function(u){return{value:u,done:!0}},S,Y.JSC$6613_context_.return);
Y.JSC$6613_context_.return(S);return M2(Y)};
m_u=function(Y,S,P,u){try{var W=S.call(Y.JSC$6613_context_.yieldAllIterator_,P);if(!(W instanceof Object))throw new TypeError("g`"+W);if(!W.done)return Y.JSC$6613_context_.isRunning_=!1,W;var m=W.value}catch(J){return Y.JSC$6613_context_.yieldAllIterator_=null,Wn9(Y.JSC$6613_context_,J),M2(Y)}Y.JSC$6613_context_.yieldAllIterator_=null;u.call(Y.JSC$6613_context_,m);return M2(Y)};
M2=function(Y){for(;Y.JSC$6613_context_.nextAddress;)try{var S=Y.program_(Y.JSC$6613_context_);if(S)return Y.JSC$6613_context_.isRunning_=!1,{value:S.value,done:!1}}catch(P){Y.JSC$6613_context_.yieldResult=void 0,Wn9(Y.JSC$6613_context_,P)}Y.JSC$6613_context_.isRunning_=!1;if(Y.JSC$6613_context_.abruptCompletion_){S=Y.JSC$6613_context_.abruptCompletion_;Y.JSC$6613_context_.abruptCompletion_=null;if(S.isException)throw S.exception;return{value:S.return,done:!0}}return{value:void 0,done:!0}};
jZX=function(Y){this.next=function(S){uuJ(Y.JSC$6613_context_);Y.JSC$6613_context_.yieldAllIterator_?S=m_u(Y,Y.JSC$6613_context_.yieldAllIterator_.next,S,Y.JSC$6613_context_.JSC$6608_next_):(Y.JSC$6613_context_.JSC$6608_next_(S),S=M2(Y));return S};
this.throw=function(S){uuJ(Y.JSC$6613_context_);Y.JSC$6613_context_.yieldAllIterator_?S=m_u(Y,Y.JSC$6613_context_.yieldAllIterator_["throw"],S,Y.JSC$6613_context_.JSC$6608_next_):(Wn9(Y.JSC$6613_context_,S),S=M2(Y));return S};
this.return=function(S){return n7$(Y,S)};
this[Symbol.iterator]=function(){return this}};
_.p2X=function(Y,S){S=new jZX(new zIU(S));U$&&Y.prototype&&U$(S,Y.prototype);return S};
Jba=function(Y){function S(u){return Y.next(u)}
function P(u){return Y.throw(u)}
return new Promise(function(u,W){function m(J){J.done?u(J.value):Promise.resolve(J.value).then(S,P).then(m,W)}
m(Y.next())})};
_.B=function(Y){return Jba(new jZX(new zIU(Y)))};
AYa=function(Y){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return Y};
this.next=function(S){return Promise.resolve(Y.next(S))};
this["throw"]=function(S){return new Promise(function(P,u){var W=Y["throw"];W!==void 0?P(W.call(Y,S)):(P=Y["return"],P!==void 0&&P.call(Y),u(new TypeError("i")))})};
Y["return"]!==void 0&&(this["return"]=function(S){return Promise.resolve(Y["return"](S))})};
_.Ch=function(){for(var Y=Number(this),S=[],P=Y;P<arguments.length;P++)S[P-Y]=arguments[P];return S};
Ak("globalThis",function(Y){return Y||_.y6});
Ak("Reflect",function(Y){return Y?Y:{}});
Ak("Reflect.construct",function(){return Noh});
Ak("Reflect.setPrototypeOf",function(Y){return Y?Y:U$?function(S,P){try{return U$(S,P),!0}catch(u){return!1}}:null});
Ak("Promise",function(Y){function S(){this.batch_=null}
function P(J){return J instanceof W?J:new W(function(c){c(J)})}
if(Y&&(typeof _.y6.PromiseRejectionEvent!=="undefined"||!_.y6.Promise||_.y6.Promise.toString().indexOf("[native code]")===-1))return Y;S.prototype.asyncExecute=function(J){if(this.batch_==null){this.batch_=[];var c=this;this.asyncExecuteFunction(function(){c.executeBatch_()})}this.batch_.push(J)};
var u=_.y6.setTimeout;S.prototype.asyncExecuteFunction=function(J){u(J,0)};
S.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var J=this.batch_;this.batch_=[];for(var c=0;c<J.length;++c){var C=J[c];J[c]=null;try{C()}catch(x){this.asyncThrow_(x)}}}this.batch_=null};
S.prototype.asyncThrow_=function(J){this.asyncExecuteFunction(function(){throw J;})};
var W=function(J){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var c=this.createResolveAndReject_();try{J(c.resolve,c.reject)}catch(C){c.reject(C)}};
W.prototype.createResolveAndReject_=function(){function J(x){return function(b){C||(C=!0,x.call(c,b))}}
var c=this,C=!1;return{resolve:J(this.resolveTo_),reject:J(this.JSC$6629_reject_)}};
W.prototype.resolveTo_=function(J){if(J===this)this.JSC$6629_reject_(new TypeError("j"));else if(J instanceof W)this.settleSameAsPromise_(J);else{a:switch(typeof J){case "object":var c=J!=null;break a;case "function":c=!0;break a;default:c=!1}c?this.resolveToNonPromiseObj_(J):this.fulfill_(J)}};
W.prototype.resolveToNonPromiseObj_=function(J){var c=void 0;try{c=J.then}catch(C){this.JSC$6629_reject_(C);return}typeof c=="function"?this.settleSameAsThenable_(c,J):this.fulfill_(J)};
W.prototype.JSC$6629_reject_=function(J){this.settle_(2,J)};
W.prototype.fulfill_=function(J){this.settle_(1,J)};
W.prototype.settle_=function(J,c){if(this.state_!=0)throw Error("k`"+J+"`"+c+"`"+this.state_);this.state_=J;this.result_=c;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
W.prototype.scheduleUnhandledRejectionCheck_=function(){var J=this;u(function(){if(J.notifyUnhandledRejection_()){var c=_.y6.console;typeof c!=="undefined"&&c.error(J.result_)}},1)};
W.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var J=_.y6.CustomEvent,c=_.y6.Event,C=_.y6.dispatchEvent;if(typeof C==="undefined")return!0;typeof J==="function"?J=new J("unhandledrejection",{cancelable:!0}):typeof c==="function"?J=new c("unhandledrejection",{cancelable:!0}):(J=_.y6.document.createEvent("CustomEvent"),J.initCustomEvent("unhandledrejection",!1,!0,J));J.promise=this;J.reason=this.result_;return C(J)};
W.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var J=0;J<this.onSettledCallbacks_.length;++J)m.asyncExecute(this.onSettledCallbacks_[J]);this.onSettledCallbacks_=null}};
var m=new S;W.prototype.settleSameAsPromise_=function(J){var c=this.createResolveAndReject_();J.callWhenSettled_(c.resolve,c.reject)};
W.prototype.settleSameAsThenable_=function(J,c){var C=this.createResolveAndReject_();try{J.call(c,C.resolve,C.reject)}catch(x){C.reject(x)}};
W.prototype.then=function(J,c){function C(K,G){return typeof K=="function"?function(v){try{x(K(v))}catch(a){b(a)}}:G}
var x,b,T=new W(function(K,G){x=K;b=G});
this.callWhenSettled_(C(J,x),C(c,b));return T};
W.prototype.catch=function(J){return this.then(void 0,J)};
W.prototype.callWhenSettled_=function(J,c){function C(){switch(x.state_){case 1:J(x.result_);break;case 2:c(x.result_);break;default:throw Error("l`"+x.state_);}}
var x=this;this.onSettledCallbacks_==null?m.asyncExecute(C):this.onSettledCallbacks_.push(C);this.isRejectionHandled_=!0};
W.resolve=P;W.reject=function(J){return new W(function(c,C){C(J)})};
W.race=function(J){return new W(function(c,C){for(var x=_.n(J),b=x.next();!b.done;b=x.next())P(b.value).callWhenSettled_(c,C)})};
W.all=function(J){var c=_.n(J),C=c.next();return C.done?P([]):new W(function(x,b){function T(v){return function(a){K[v]=a;G--;G==0&&x(K)}}
var K=[],G=0;do K.push(void 0),G++,P(C.value).callWhenSettled_(T(K.length-1),b),C=c.next();while(!C.done)})};
return W});
var y0=function(Y,S,P){if(Y==null)throw new TypeError("m`"+P);if(S instanceof RegExp)throw new TypeError("n`"+P);return Y+""};
Ak("String.prototype.startsWith",function(Y){return Y?Y:function(S,P){var u=y0(this,S,"startsWith"),W=u.length,m=S.length;P=Math.max(0,Math.min(P|0,u.length));for(var J=0;J<m&&P<W;)if(u[P++]!=S[J++])return!1;return J>=m}});
Ak("Object.setPrototypeOf",function(Y){return Y||U$});
Ak("Symbol.dispose",function(Y){return Y?Y:Symbol("o")});
Ak("SuppressedError",function(Y){function S(P,u,W){if(!(this instanceof S))return new S(P,u,W);W=Error(W);"stack"in W&&(this.stack=W.stack);this.message=W.message;this.error=P;this.suppressed=u}
if(Y)return Y;_.r(S,Error);S.prototype.name="SuppressedError";return S});
var BJ8=function(Y,S,P){Y instanceof String&&(Y=String(Y));for(var u=Y.length,W=0;W<u;W++){var m=Y[W];if(S.call(P,m,W,Y))return{i:W,v:m}}return{i:-1,v:void 0}};
Ak("Array.prototype.find",function(Y){return Y?Y:function(S,P){return BJ8(this,S,P).v}});
Ak("WeakMap",function(Y){function S(){}
function P(C){var x=typeof C;return x==="object"&&C!==null||x==="function"}
function u(C){if(!kX(C,m)){var x=new S;Qaa(C,m,{value:x})}}
function W(C){var x=Object[C];x&&(Object[C]=function(b){if(b instanceof S)return b;Object.isExtensible(b)&&u(b);return x(b)})}
if(function(){if(!Y||!Object.seal)return!1;try{var C=Object.seal({}),x=Object.seal({}),b=new Y([[C,2],[x,3]]);if(b.get(C)!=2||b.get(x)!=3)return!1;b.delete(C);b.set(x,4);return!b.has(C)&&b.get(x)==4}catch(T){return!1}}())return Y;
var m="$jscomp_hidden_"+Math.random();W("freeze");W("preventExtensions");W("seal");var J=0,c=function(C){this.JSC$6636_id_=(J+=Math.random()+1).toString();if(C){C=_.n(C);for(var x;!(x=C.next()).done;)x=x.value,this.set(x[0],x[1])}};
c.prototype.set=function(C,x){if(!P(C))throw Error("p");u(C);if(!kX(C,m))throw Error("q`"+C);C[m][this.JSC$6636_id_]=x;return this};
c.prototype.get=function(C){return P(C)&&kX(C,m)?C[m][this.JSC$6636_id_]:void 0};
c.prototype.has=function(C){return P(C)&&kX(C,m)&&kX(C[m],this.JSC$6636_id_)};
c.prototype.delete=function(C){return P(C)&&kX(C,m)&&kX(C[m],this.JSC$6636_id_)?delete C[m][this.JSC$6636_id_]:!1};
return c});
Ak("Map",function(Y){if(function(){if(!Y||typeof Y!="function"||!Y.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),C=new Y(_.n([[c,"s"]]));if(C.get(c)!="s"||C.size!=1||C.get({x:4})||C.set({x:4},"t")!=C||C.size!=2)return!1;var x=C.entries(),b=x.next();if(b.done||b.value[0]!=c||b.value[1]!="s")return!1;b=x.next();return b.done||b.value[0].x!=4||b.value[1]!="t"||!x.next().done?!1:!0}catch(T){return!1}}())return Y;
var S=new WeakMap,P=function(c){this[0]={};this[1]=m();this.size=0;if(c){c=_.n(c);for(var C;!(C=c.next()).done;)C=C.value,this.set(C[0],C[1])}};
P.prototype.set=function(c,C){c=c===0?0:c;var x=u(this,c);x.list||(x.list=this[0][x.id]=[]);x.entry?x.entry.value=C:(x.entry={next:this[1],previous:this[1].previous,head:this[1],key:c,value:C},x.list.push(x.entry),this[1].previous.next=x.entry,this[1].previous=x.entry,this.size++);return this};
P.prototype.delete=function(c){c=u(this,c);return c.entry&&c.list?(c.list.splice(c.index,1),c.list.length||delete this[0][c.id],c.entry.previous.next=c.entry.next,c.entry.next.previous=c.entry.previous,c.entry.head=null,this.size--,!0):!1};
P.prototype.clear=function(){this[0]={};this[1]=this[1].previous=m();this.size=0};
P.prototype.has=function(c){return!!u(this,c).entry};
P.prototype.get=function(c){return(c=u(this,c).entry)&&c.value};
P.prototype.entries=function(){return W(this,function(c){return[c.key,c.value]})};
P.prototype.keys=function(){return W(this,function(c){return c.key})};
P.prototype.values=function(){return W(this,function(c){return c.value})};
P.prototype.forEach=function(c,C){for(var x=this.entries(),b;!(b=x.next()).done;)b=b.value,c.call(C,b[1],b[0],this)};
P.prototype[Symbol.iterator]=P.prototype.entries;var u=function(c,C){var x=C&&typeof C;x=="object"||x=="function"?S.has(C)?x=S.get(C):(x=""+ ++J,S.set(C,x)):x="p_"+C;var b=c[0][x];if(b&&kX(c[0],x))for(c=0;c<b.length;c++){var T=b[c];if(C!==C&&T.key!==T.key||C===T.key)return{id:x,list:b,index:c,entry:T}}return{id:x,list:b,index:-1,entry:void 0}},W=function(c,C){var x=c[1];
return M9J(function(){if(x){for(;x.head!=c[1];)x=x.previous;for(;x.next!=x.head;)return x=x.next,{done:!1,value:C(x)};x=null}return{done:!0,value:void 0}})},m=function(){var c={};
return c.previous=c.next=c.head=c},J=0;
return P});
Ak("Set",function(Y){if(function(){if(!Y||typeof Y!="function"||!Y.prototype.entries||typeof Object.seal!="function")return!1;try{var P=Object.seal({x:4}),u=new Y(_.n([P]));if(!u.has(P)||u.size!=1||u.add(P)!=u||u.size!=1||u.add({x:4})!=u||u.size!=2)return!1;var W=u.entries(),m=W.next();if(m.done||m.value[0]!=P||m.value[1]!=P)return!1;m=W.next();return m.done||m.value[0]==P||m.value[0].x!=4||m.value[1]!=m.value[0]?!1:W.next().done}catch(J){return!1}}())return Y;
var S=function(P){this.JSC$6650_map_=new Map;if(P){P=_.n(P);for(var u;!(u=P.next()).done;)this.add(u.value)}this.size=this.JSC$6650_map_.size};
S.prototype.add=function(P){P=P===0?0:P;this.JSC$6650_map_.set(P,P);this.size=this.JSC$6650_map_.size;return this};
S.prototype.delete=function(P){P=this.JSC$6650_map_.delete(P);this.size=this.JSC$6650_map_.size;return P};
S.prototype.clear=function(){this.JSC$6650_map_.clear();this.size=0};
S.prototype.has=function(P){return this.JSC$6650_map_.has(P)};
S.prototype.entries=function(){return this.JSC$6650_map_.entries()};
S.prototype.values=function(){return this.JSC$6650_map_.values()};
S.prototype.keys=S.prototype.values;S.prototype[Symbol.iterator]=S.prototype.values;S.prototype.forEach=function(P,u){var W=this;this.JSC$6650_map_.forEach(function(m){return P.call(u,m,m,W)})};
return S});
Ak("Math.log2",function(Y){return Y?Y:function(S){return Math.log(S)/Math.LN2}});
Ak("Object.values",function(Y){return Y?Y:function(S){var P=[],u;for(u in S)kX(S,u)&&P.push(S[u]);return P}});
Ak("Object.is",function(Y){return Y?Y:function(S,P){return S===P?S!==0||1/S===1/P:S!==S&&P!==P}});
Ak("Array.prototype.includes",function(Y){return Y?Y:function(S,P){var u=this;u instanceof String&&(u=String(u));var W=u.length;P=P||0;for(P<0&&(P=Math.max(P+W,0));P<W;P++){var m=u[P];if(m===S||Object.is(m,S))return!0}return!1}});
Ak("String.prototype.includes",function(Y){return Y?Y:function(S,P){return y0(this,S,"includes").indexOf(S,P||0)!==-1}});
Ak("Array.from",function(Y){return Y?Y:function(S,P,u){P=P!=null?P:function(c){return c};
var W=[],m=typeof Symbol!="undefined"&&Symbol.iterator&&S[Symbol.iterator];if(typeof m=="function"){S=m.call(S);for(var J=0;!(m=S.next()).done;)W.push(P.call(u,m.value,J++))}else for(m=S.length,J=0;J<m;J++)W.push(P.call(u,S[J],J));return W}});
Ak("Object.entries",function(Y){return Y?Y:function(S){var P=[],u;for(u in S)kX(S,u)&&P.push([u,S[u]]);return P}});
Ak("Number.isFinite",function(Y){return Y?Y:function(S){return typeof S!=="number"?!1:!isNaN(S)&&S!==Infinity&&S!==-Infinity}});
Ak("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Ak("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Ak("Number.isInteger",function(Y){return Y?Y:function(S){return Number.isFinite(S)?S===Math.floor(S):!1}});
Ak("Number.isSafeInteger",function(Y){return Y?Y:function(S){return Number.isInteger(S)&&Math.abs(S)<=Number.MAX_SAFE_INTEGER}});
Ak("String.prototype.endsWith",function(Y){return Y?Y:function(S,P){var u=y0(this,S,"endsWith");P===void 0&&(P=u.length);P=Math.max(0,Math.min(P|0,u.length));for(var W=S.length;W>0&&P>0;)if(u[--P]!=S[--W])return!1;return W<=0}});
var cba=function(Y,S){Y instanceof String&&(Y+="");var P=0,u=!1,W={next:function(){if(!u&&P<Y.length){var m=P++;return{value:S(m,Y[m]),done:!1}}u=!0;return{done:!0,value:void 0}}};
W[Symbol.iterator]=function(){return W};
return W};
Ak("Array.prototype.entries",function(Y){return Y?Y:function(){return cba(this,function(S,P){return[S,P]})}});
Ak("Math.imul",function(Y){return Y?Y:function(S,P){S=Number(S);P=Number(P);var u=S&65535,W=P&65535;return u*W+((S>>>16&65535)*W+u*(P>>>16&65535)<<16>>>0)|0}});
Ak("Math.trunc",function(Y){return Y?Y:function(S){S=Number(S);if(isNaN(S)||S===Infinity||S===-Infinity||S===0)return S;var P=Math.floor(Math.abs(S));return S<0?-P:P}});
Ak("Number.isNaN",function(Y){return Y?Y:function(S){return typeof S==="number"&&isNaN(S)}});
Ak("Array.prototype.keys",function(Y){return Y?Y:function(){return cba(this,function(S){return S})}});
Ak("Array.prototype.values",function(Y){return Y?Y:function(){return cba(this,function(S,P){return P})}});
Ak("Array.prototype.fill",function(Y){return Y?Y:function(S,P,u){var W=this.length||0;P<0&&(P=Math.max(0,W+P));if(u==null||u>W)u=W;u=Number(u);u<0&&(u=Math.max(0,W+u));for(P=Number(P||0);P<u;P++)this[P]=S;return this}});
var N2=function(Y){return Y?Y:Array.prototype.fill};
Ak("Int8Array.prototype.fill",N2);Ak("Uint8Array.prototype.fill",N2);Ak("Uint8ClampedArray.prototype.fill",N2);Ak("Int16Array.prototype.fill",N2);Ak("Uint16Array.prototype.fill",N2);Ak("Int32Array.prototype.fill",N2);Ak("Uint32Array.prototype.fill",N2);Ak("Float32Array.prototype.fill",N2);Ak("Float64Array.prototype.fill",N2);
Ak("Object.fromEntries",function(Y){return Y?Y:function(S){var P={};if(!(Symbol.iterator in S))throw new TypeError("r`"+S);S=S[Symbol.iterator].call(S);for(var u=S.next();!u.done;u=S.next()){u=u.value;if(Object(u)!==u)throw new TypeError("s");P[u[0]]=u[1]}return P}});
Ak("String.prototype.replaceAll",function(Y){return Y?Y:function(S,P){if(S instanceof RegExp&&!S.global)throw new TypeError("t");return S instanceof RegExp?this.replace(S,P):this.replace(new RegExp(String(S).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),P)}});
Ak("Object.getOwnPropertySymbols",function(Y){return Y?Y:function(){return[]}});
Ak("String.prototype.repeat",function(Y){return Y?Y:function(S){var P=y0(this,null,"repeat");if(S<0||S>1342177279)throw new RangeError("u");S|=0;for(var u="";S;)if(S&1&&(u+=P),S>>>=1)P+=P;return u}});
Ak("Array.prototype.findIndex",function(Y){return Y?Y:function(S,P){return BJ8(this,S,P).i}});
Ak("Array.prototype.flatMap",function(Y){return Y?Y:function(S,P){var u=[];Array.prototype.forEach.call(this,function(W,m){W=S.call(P,W,m,this);Array.isArray(W)?u.push.apply(u,W):u.push(W)});
return u}});
Ak("String.prototype.codePointAt",function(Y){return Y?Y:function(S){var P=y0(this,null,"codePointAt"),u=P.length;S=Number(S)||0;if(S>=0&&S<u){S|=0;var W=P.charCodeAt(S);if(W<55296||W>56319||S+1===u)return W;S=P.charCodeAt(S+1);return S<56320||S>57343?W:(W-55296)*1024+S+9216}}});
Ak("String.fromCodePoint",function(Y){return Y?Y:function(S){for(var P="",u=0;u<arguments.length;u++){var W=Number(arguments[u]);if(W<0||W>1114111||W!==Math.floor(W))throw new RangeError("v`"+W);W<=65535?P+=String.fromCharCode(W):(W-=65536,P+=String.fromCharCode(W>>>10&1023|55296),P+=String.fromCharCode(W&1023|56320))}return P}});
Ak("String.prototype.padStart",function(Y){return Y?Y:function(S,P){var u=y0(this,null,"padStart");S-=u.length;P=P!==void 0?String(P):" ";return(S>0&&P?P.repeat(Math.ceil(S/P.length)).substring(0,S):"")+u}});
Ak("Promise.prototype.finally",function(Y){return Y?Y:function(S){return this.then(function(P){return Promise.resolve(S()).then(function(){return P})},function(P){return Promise.resolve(S()).then(function(){throw P;
})})}});
Ak("Object.hasOwn",function(Y){return Y?Y:function(S,P){return Object.prototype.hasOwnProperty.call(S,P)}});
var C_f=function(Y){Y=Math.trunc(Y)||0;Y<0&&(Y+=this.length);if(!(Y<0||Y>=this.length))return this[Y]};
Ak("Array.prototype.at",function(Y){return Y?Y:C_f});
var Hs=function(Y){return Y?Y:C_f};
Ak("Int8Array.prototype.at",Hs);Ak("Uint8Array.prototype.at",Hs);Ak("Uint8ClampedArray.prototype.at",Hs);Ak("Int16Array.prototype.at",Hs);Ak("Uint16Array.prototype.at",Hs);Ak("Int32Array.prototype.at",Hs);Ak("Uint32Array.prototype.at",Hs);Ak("Float32Array.prototype.at",Hs);Ak("Float64Array.prototype.at",Hs);Ak("String.prototype.at",function(Y){return Y?Y:C_f});
Ak("Math.sign",function(Y){return Y?Y:function(S){S=Number(S);return S===0||isNaN(S)?S:S>0?1:-1}});
Ak("Array.prototype.flat",function(Y){return Y?Y:function(S){S=S===void 0?1:S;var P=[];Array.prototype.forEach.call(this,function(u){Array.isArray(u)&&S>0?(u=Array.prototype.flat.call(u,S-1),P.push.apply(P,u)):P.push(u)});
return P}});
Ak("String.raw",function(Y){return Y?Y:function(S,P){if(S==null)throw new TypeError("w");for(var u=S.raw,W=u.length,m="",J=0;J<W;++J)m+=u[J],J+1<W&&J+1<arguments.length&&(m+=String(arguments[J+1]));return m}});
Ak("Reflect.ownKeys",function(Y){return Y?Y:function(S){var P=[],u=Object.getOwnPropertyNames(S);S=Object.getOwnPropertySymbols(S);for(var W=0;W<u.length;W++)(u[W].substring(0,14)=="jscomp_symbol_"?S:P).push(u[W]);return P.concat(S)}});
Ak("Object.getOwnPropertyDescriptors",function(Y){return Y?Y:function(S){for(var P={},u=Reflect.ownKeys(S),W=0;W<u.length;W++)P[u[W]]=Object.getOwnPropertyDescriptor(S,u[W]);return P}});
Ak("WeakSet",function(Y){if(function(){if(!Y||!Object.seal)return!1;try{var P=Object.seal({}),u=Object.seal({}),W=new Y([P]);if(!W.has(P)||W.has(u))return!1;W.delete(P);W.add(u);return!W.has(P)&&W.has(u)}catch(m){return!1}}())return Y;
var S=function(P){this.JSC$6656_map_=new WeakMap;if(P){P=_.n(P);for(var u;!(u=P.next()).done;)this.add(u.value)}};
S.prototype.add=function(P){this.JSC$6656_map_.set(P,!0);return this};
S.prototype.has=function(P){return this.JSC$6656_map_.has(P)};
S.prototype.delete=function(P){return this.JSC$6656_map_.delete(P)};
return S});
Ak("Promise.allSettled",function(Y){function S(u){return{status:"fulfilled",value:u}}
function P(u){return{status:"rejected",reason:u}}
return Y?Y:function(u){var W=this;u=Array.from(u,function(m){return W.resolve(m).then(S,P)});
return W.all(u)}});
Ak("Number.parseInt",function(Y){return Y||parseInt});
_._DumpException=window._DumpException||function(Y){throw Y;};
window._DumpException=_._DumpException;var qNa,V0,eN,O$,RIh,x_h,bOh,TJJ,XY,Kn8;qNa=qNa||{};_.Pa=this||self;_.HQ=function(Y,S,P){Y=Y.split(".");P=P||_.Pa;for(var u;Y.length&&(u=Y.shift());)Y.length||S===void 0?P[u]&&P[u]!==Object.prototype[u]?P=P[u]:P=P[u]={}:P[u]=S};
V0=function(Y){var S=_.tA("WIZ_global_data.oxN3nb");Y=S&&S[Y];return Y!=null?Y:!1};
eN=_.Pa._F_toggles||[];O$=function(){};
O$.get=function(){return null};
_.tA=function(Y,S){Y=Y.split(".");S=S||_.Pa;for(var P=0;P<Y.length;P++)if(S=S[Y[P]],S==null)return null;return S};
_.Yn=function(Y){Y.instance_=void 0;Y.getInstance=function(){return Y.instance_?Y.instance_:Y.instance_=new Y}};
_.m5=function(Y){var S=typeof Y;return S!="object"?S:Y?Array.isArray(Y)?"array":S:"null"};
_.eK=function(Y){var S=_.m5(Y);return S=="array"||S=="object"&&typeof Y.length=="number"};
_.SS=function(Y){var S=typeof Y;return S=="object"&&Y!=null||S=="function"};
_.Pt=function(Y){return Object.prototype.hasOwnProperty.call(Y,RIh)&&Y[RIh]||(Y[RIh]=++x_h)};
RIh="closure_uid_"+(Math.random()*1E9>>>0);x_h=0;bOh=function(Y,S,P){return Y.call.apply(Y.bind,arguments)};
TJJ=function(Y,S,P){if(!Y)throw Error();if(arguments.length>2){var u=Array.prototype.slice.call(arguments,2);return function(){var W=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(W,u);return Y.apply(S,W)}}return function(){return Y.apply(S,arguments)}};
_.xS=function(Y,S,P){_.xS=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?bOh:TJJ;return _.xS.apply(null,arguments)};
_.gP=function(Y,S){var P=Array.prototype.slice.call(arguments,1);return function(){var u=P.slice();u.push.apply(u,arguments);return Y.apply(this,u)}};
_.S5=function(){return Date.now()};
XY=function(Y){return Y};
_.PW=function(Y,S){function P(){}
P.prototype=S.prototype;Y.superClass_=S.prototype;Y.prototype=new P;Y.prototype.constructor=Y;Y.base=function(u,W,m){for(var J=Array(arguments.length-2),c=2;c<arguments.length;c++)J[c-2]=arguments[c];return S.prototype[W].apply(u,J)}};
Kn8=function(Y){return Y};var nlf,c2K;_.Q=function(Y,S,P,u){var W=arguments.length,m=W<3?S:u===null?u=Object.getOwnPropertyDescriptor(S,P):u,J;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")m=Reflect.decorate(Y,S,P,u);else for(var c=Y.length-1;c>=0;c--)if(J=Y[c])m=(W<3?J(m):W>3?J(S,P,m):J(S,P))||m;return W>3&&m&&Object.defineProperty(S,P,m),m};
_.k=function(Y,S){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(Y,S)};
nlf=function(Y,S){if(S!==null&&S!==void 0){if(typeof S!=="object"&&typeof S!=="function")throw new TypeError("x");if(P===void 0){if(!Symbol.dispose)throw new TypeError("z");var P=S[Symbol.dispose]}if(typeof P!=="function")throw new TypeError("A");Y.stack.push({value:S,dispose:P,async:!1})}return S};
c2K=function(Y){function S(m){Y.error=Y.hasError?new SuppressedError(m,Y.error,"An error was suppressed during disposal."):m;Y.hasError=!0}
function P(){for(;u=Y.stack.pop();)try{if(!u.async&&W===1)return W=0,Y.stack.push(u),Promise.resolve().then(P);if(u.dispose){var m=u.dispose.call(u.value);if(u.async)return W|=2,Promise.resolve(m).then(P,function(J){S(J);return P()})}else W|=1}catch(J){S(J)}if(W===1)return Y.hasError?Promise.reject(Y.error):Promise.resolve();
if(Y.hasError)throw Y.error;}
var u,W=0;P()};_.PW(_.YY,Error);_.YY.prototype.name="CustomError";var E7h;var fc8=void 0,g7a,$_h=typeof TextDecoder!=="undefined",uE9,Paa=typeof String.prototype.isWellFormed==="function",S9J=typeof TextEncoder!=="undefined";var rbU;_.CN=function(Y){for(var S=[],P=0,u=0;u<Y.length;u++){var W=Y.charCodeAt(u);W<128?S[P++]=W:(W<2048?S[P++]=W>>6|192:((W&64512)==55296&&u+1<Y.length&&(Y.charCodeAt(u+1)&64512)==56320?(W=65536+((W&1023)<<10)+(Y.charCodeAt(++u)&1023),S[P++]=W>>18|240,S[P++]=W>>12&63|128):S[P++]=W>>12|224,S[P++]=W>>6&63|128),S[P++]=W&63|128)}return S};
rbU=function(Y){for(var S=[],P=0,u=0;P<Y.length;){var W=Y[P++];if(W<128)S[u++]=String.fromCharCode(W);else if(W>191&&W<224){var m=Y[P++];S[u++]=String.fromCharCode((W&31)<<6|m&63)}else if(W>239&&W<365){m=Y[P++];var J=Y[P++],c=Y[P++];W=((W&7)<<18|(m&63)<<12|(J&63)<<6|c&63)-65536;S[u++]=String.fromCharCode(55296+(W>>10));S[u++]=String.fromCharCode(56320+(W&1023))}else m=Y[P++],J=Y[P++],S[u++]=String.fromCharCode((W&15)<<12|(m&63)<<6|J&63)}return S.join("")};var G7K,hIa,v7K,D_9,Icu,ach,LnU;_.uW=String.prototype.trim?function(Y){return Y.trim()}:function(Y){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(Y)[1]};
G7K=/&/g;hIa=/</g;v7K=/>/g;D_9=/"/g;Icu=/'/g;ach=/\x00/g;LnU=/[\x00&<>"']/;var WW=!!(eN[0]&4096),w5$=!!(eN[0]&8192),p59=!!(eN[0]&2),Fna=!!(eN[0]&4),sZa=!!(eN[0]&16),d_h=!!(eN[0]>>14&1);var xY=WW?w5$:V0(610401301),lc1=WW?p59:V0(513659523),X5E=WW?Fna:V0(568333945),Eja=WW?sZa:V0(1331761403),ZOf=WW?d_h:V0(1981196515);var TJ,iOf=_.Pa.navigator;TJ=iOf?iOf.userAgentData||null:null;var yn;_.oh=function(Y,S){return Array.prototype.indexOf.call(Y,S,void 0)};
_.Q4=function(Y,S,P){Array.prototype.forEach.call(Y,S,P)};
_.ze=function(Y,S,P){return Array.prototype.filter.call(Y,S,P)};
_.b9=function(Y,S,P){return Array.prototype.map.call(Y,S,P)};
yn=function(Y,S,P){return Array.prototype.some.call(Y,S,P)};
_.tG8=function(Y,S,P){return Array.prototype.every.call(Y,S,P)};var mX=function(Y){mX[" "](Y);return Y},fx;
mX[" "]=function(){};
fx=function(Y,S){try{return mX(Y[S]),!0}catch(P){}return!1};
_.xPY=function(Y,S,P,u){u=u?u(S):S;return Object.prototype.hasOwnProperty.call(Y,u)?Y[u]:Y[u]=P(S)};var o7E,t8E,Ab$,QZE,k71,oME,M89,yb9,NJu,IrJ,V8$,eI8,ufh;_.cta=function(){return _.Pa.navigator||null};
o7E=$Y();_.nj=zhu();_.yl=f8("Edge");t8E=_.yl||_.nj;_.j5=f8("Gecko")&&!(_.qU(_.Rh(),"WebKit")&&!f8("Edge"))&&!(f8("Trident")||f8("MSIE"))&&!f8("Edge");_.Jv=_.qU(_.Rh(),"WebKit")&&!f8("Edge");Ab$=_.Jv&&f8("Mobile");_.U_a=_.q9f();QZE=_.Rhh();k71=(L8()?TJ.platform==="Linux":f8("Linux"))||_.xUX();oME=_.cua();M89=CaK();yb9=f8("iPad");NJu=f8("iPod");_.HO1=_.p8();IrJ=_.qU(_.Rh(),"KaiOS");V8$=function(){var Y=_.Pa.document;return Y?Y.documentMode:void 0};
a:{var OO8="",Yl9=function(){var Y=_.Rh();if(_.j5)return/rv:([^\);]+)(\)|;)/.exec(Y);if(_.yl)return/Edge\/([\d\.]+)/.exec(Y);if(_.nj)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Y);if(_.Jv)return/WebKit\/(\S+)/.exec(Y);if(o7E)return/(?:Version)[ \/]?(\S+)/.exec(Y)}();
Yl9&&(OO8=Yl9?Yl9[1]:"");if(_.nj){var Slh=V8$();if(Slh!=null&&Slh>parseFloat(OO8)){eI8=String(Slh);break a}}eI8=OO8}_.PmK=eI8;if(_.Pa.document&&_.nj){var WSh=V8$();ufh=WSh?WSh:parseInt(_.PmK,10)||void 0}else ufh=void 0;_.z8Y=ufh;var mqY,n5X,mBJ;_.BW=r1();mqY=CaK()||f8("iPod");n5X=f8("iPad");mBJ=_.nYh();_.cW=_.Df();_.dk=_.Ih()&&!_.p8();var n6E,Cj,jpu,kTJ,JTa,NG9,cTY,B9J;n6E={};Cj=null;jpu=_.j5||_.Jv;kTJ=jpu||typeof _.Pa.btoa=="function";JTa=jpu||!_.dk&&typeof _.Pa.atob=="function";_.QB=function(Y,S){S===void 0&&(S=0);B9J();S=n6E[S];for(var P=Array(Math.floor(Y.length/3)),u=S[64]||"",W=0,m=0;W<Y.length-2;W+=3){var J=Y[W],c=Y[W+1],C=Y[W+2],x=S[J>>2];J=S[(J&3)<<4|c>>4];c=S[(c&15)<<2|C>>6];C=S[C&63];P[m++]=x+J+c+C}x=0;C=u;switch(Y.length-W){case 2:x=Y[W+1],C=S[(x&15)<<2]||u;case 1:Y=Y[W],P[m]=S[Y>>2]+S[(Y&3)<<4|x>>4]+C+u}return P.join("")};
NG9=function(Y,S){if(JTa&&!S)return _.Pa.atob(Y);var P="";cTY(Y,function(u){P+=String.fromCharCode(u)});
return P};
_.d61=function(Y){var S=[];cTY(Y,function(P){S.push(P)});
return S};
_.z3=function(Y){var S=Y.length,P=S*3/4;P%3?P=Math.floor(P):_.C8("=.",Y[S-1])&&(P=_.C8("=.",Y[S-2])?P-2:P-1);var u=new Uint8Array(P),W=0;cTY(Y,function(m){u[W++]=m});
return W!==P?u.subarray(0,W):u};
cTY=function(Y,S){function P(C){for(;u<Y.length;){var x=Y.charAt(u++),b=Cj[x];if(b!=null)return b;if(!_.Ba(x))throw Error("E`"+x);}return C}
B9J();for(var u=0;;){var W=P(-1),m=P(0),J=P(64),c=P(64);if(c===64&&W===-1)break;S(W<<2|m>>4);J!=64&&(S(m<<4&240|J>>2),c!=64&&S(J<<6&192|c))}};
B9J=function(){if(!Cj){Cj={};for(var Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),S=["+/=","+/","-_=","-_.","-_"],P=0;P<5;P++){var u=Y.concat(S[P].split(""));n6E[P]=u;for(var W=0;W<u.length;W++){var m=u[W];Cj[m]===void 0&&(Cj[m]=W)}}}};var Xa$=typeof Uint8Array!=="undefined",DUu=!_.nj&&typeof btoa==="function",IfK=/[-_.]/g,hhJ={"-":"+",_:"/",".":"="},Lu={};var as,qlE;as=function(Y,S){if(S!==Lu)throw Error("G");this.JSC$6687_value_=Y;if(Y!=null&&Y.length===0)throw Error("F");};
_.pu=function(){return CmU||(CmU=new as(null,Lu))};
qlE=function(Y){return new Uint8Array(EU(Y)||0)};
as.prototype.isEmpty=function(){return this.JSC$6687_value_==null};
as.prototype.sizeBytes=function(){var Y=EU(this);return Y?Y.length:0};
var EU=function(Y){if(Lu!==Lu)throw Error("G");var S=Y.JSC$6687_value_;S=S==null||Xa$&&S!=null&&S instanceof Uint8Array?S:typeof S==="string"?af8(S):null;return S==null?S:Y.JSC$6687_value_=S},CmU;var wa$=void 0;var bf=typeof Symbol==="function"&&typeof Symbol()==="symbol",R8h=ct("jas",void 0,!0),dZ=ct(void 0,"0di"),q8=ct(void 0,"1oa"),ZI=ct(void 0,Symbol()),hUU=ct(void 0,"0ub"),iuJ=ct(void 0,"0ubs"),suh=ct(void 0,"0ubsb"),Qs$=ct(void 0,"0actk"),FY=ct("m_m","messagePrototypeMarker",!0),XtK=ct(void 0,"vps"),DLJ=ct();var F$a,pah,Pd,xBE;F$a={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};pah=Object.defineProperties;_.E6=bf?R8h:"internalArrayState";xBE=[];gd(xBE,7);Pd=Object.freeze(xBE);var sd={},Ds={},bqK=function(Y,S,P){this.iterable=Y;this.mapper=S;this.thisArg=P};
bqK.prototype.next=function(){var Y=this.iterable.next();Y.done||(Y.value=this.mapper.call(this.thisArg,Y.value));return Y};
bqK.prototype[Symbol.iterator]=function(){return this};
var T99=Object.freeze({}),lf={};_.KSf=Zs(function(Y){return Y!==null&&Y!==void 0});var Au$=Zs(function(Y){return typeof Y==="number"}),tKh=Zs(function(Y){return typeof Y==="string"}),UUJ=Zs(function(Y){return typeof Y==="boolean"}),E6u=Zs(function(Y){return Y!=null&&typeof Y==="object"&&typeof Y.then==="function"}),Mhh=Zs(function(Y){return typeof Y==="function"}),uy=Zs(function(Y){return!!Y&&(typeof Y==="object"||typeof Y==="function")});var os=typeof _.Pa.BigInt==="function"&&typeof _.Pa.BigInt(0)==="bigint";var $Bu,fOY,rTX,g6K;_.Ud=Zs(function(Y){return os?Y>=fOY&&Y<=g6K:Y[0]==="-"?Qh9(Y,$Bu):Qh9(Y,rTX)});
$Bu=Number.MIN_SAFE_INTEGER.toString();fOY=os?BigInt(Number.MIN_SAFE_INTEGER):void 0;rTX=Number.MAX_SAFE_INTEGER.toString();g6K=os?BigInt(Number.MAX_SAFE_INTEGER):void 0;var GkU=typeof Uint8Array.prototype.slice==="function",Am=0,QJ=0,iK;var f1,rZ,n1,G1,ehU;f1=typeof BigInt==="function"?BigInt.asIntN:void 0;_.DI=typeof BigInt==="function"?BigInt.asUintN:void 0;rZ=Number.isSafeInteger;n1=Number.isFinite;G1=Math.trunc;ehU=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Zu8={};var rmh={},h8h=function(){try{var Y=function(){return Noh(Map,[],this.constructor)};
_.r(Y,Map);mX(new Y);return!1}catch(S){return!0}}(),qi=function(){this.JSC$6715_map_=new Map};
_.z=qi.prototype;_.z.get=function(Y){return this.JSC$6715_map_.get(Y)};
_.z.set=function(Y,S){this.JSC$6715_map_.set(Y,S);this.size=this.JSC$6715_map_.size;return this};
_.z.delete=function(Y){Y=this.JSC$6715_map_.delete(Y);this.size=this.JSC$6715_map_.size;return Y};
_.z.clear=function(){this.JSC$6715_map_.clear();this.size=this.JSC$6715_map_.size};
_.z.has=function(Y){return this.JSC$6715_map_.has(Y)};
_.z.entries=function(){return this.JSC$6715_map_.entries()};
_.z.keys=function(){return this.JSC$6715_map_.keys()};
_.z.values=function(){return this.JSC$6715_map_.values()};
_.z.forEach=function(Y,S){return this.JSC$6715_map_.forEach(Y,S)};
qi.prototype[Symbol.iterator]=function(){return this.entries()};
var MI=function(){if(h8h)return Object.setPrototypeOf(qi.prototype,Map.prototype),Object.defineProperties(qi.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),qi;var Y=function(){return Noh(Map,[],this.constructor)};
_.r(Y,Map);return Y}(),lo=function(Y,S,P,u){P=P===void 0?KhY:P;
u=u===void 0?KhY:u;var W=MI.call(this)||this;W.arrayState=Y[_.E6]|0;W.valueCtor=S;W.keyToApi=P;W.valueToApi=W.valueCtor?fs9:u;for(var m=0;m<Y.length;m++){var J=Y[m],c=P(J[0],!1,!0),C=J[1];S?C===void 0&&(C=null):C=u(J[1],!1,!0,void 0,void 0,W.arrayState);MI.prototype.set.call(W,c,C)}return W};
_.r(lo,MI);var v6$=function(Y){if(Y.arrayState&2)throw Error("K");};
_.z=lo.prototype;_.z.clear=function(){v6$(this);MI.prototype.clear.call(this)};
_.z.delete=function(Y){v6$(this);return MI.prototype.delete.call(this,this.keyToApi(Y,!0,!1))};
_.z.entries=function(){if(this.valueCtor){var Y=MI.prototype.keys.call(this);Y=new bqK(Y,g_E,this)}else Y=MI.prototype.entries.call(this);return Y};
_.z.values=function(){if(this.valueCtor){var Y=MI.prototype.keys.call(this);Y=new bqK(Y,lo.prototype.get,this)}else Y=MI.prototype.values.call(this);return Y};
_.z.forEach=function(Y,S){this.valueCtor?MI.prototype.forEach.call(this,function(P,u,W){Y.call(S,W.get(u),u,W)}):MI.prototype.forEach.call(this,Y,S)};
_.z.set=function(Y,S){v6$(this);Y=this.keyToApi(Y,!0,!1);return Y==null?this:S==null?(MI.prototype.delete.call(this,Y),this):MI.prototype.set.call(this,Y,this.valueToApi(S,!0,!0,this.valueCtor,!1,this.arrayState))};
_.z.has=function(Y){return MI.prototype.has.call(this,this.keyToApi(Y,!1,!1))};
_.z.get=function(Y){Y=this.keyToApi(Y,!1,!1);var S=MI.prototype.get.call(this,Y);if(S!==void 0){var P=this.valueCtor;return P?(P=this.valueToApi(S,!1,!0,P,this.callToMutableOnAccess,this.arrayState),P!==S&&MI.prototype.set.call(this,Y,P),P):S}};
lo.prototype[Symbol.iterator]=function(){return this.entries()};
lo.prototype.toJSON=void 0;var $Lh;var ptY=function(){},ou=function(Y,S){for(var P in Y)!isNaN(P)&&S(Y,+P,Y[P])},FhU=function(Y){var S=new ptY;
ou(Y,function(P,u,W){S[u]=eS(W)});
S.reviveUnknownFields=Y.reviveUnknownFields;return S},Is1={reviveIntoImmutable:!0};var wtJ;var o_E,tSY;var DBU,jc,Rz,g6,IO9,rV,Ty,aOf,LSf,Dp,wAU,IJ,wV,pj;DBU=_.tm(0);_.RJ={};_.xn=function(Y,S,P,u,W){S=jc(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S,P,W);if(S!==null||u&&Y.noLegacyNull!==Ds)return S};
jc=function(Y,S,P,u){if(S===-1)return null;var W=S+(P?0:-1),m=Y.length-1;if(!(m<1+(P?0:-1))){if(W>=m){var J=Y[m];if(J!=null&&typeof J==="object"&&J.constructor===Object){P=J[S];var c=!0}else if(W===m)P=J;else return}else P=Y[W];if(u&&P!=null){u=u(P);if(u==null)return u;if(!Object.is(u,P))return c?J[S]=u:Y[W]=u,u}return P}};
_.mV=function(Y,S,P,u){YE(Y);var W=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Sc(W,W[_.E6]|0,S,P,u);return Y};
_.bW=function(Y,S,P){Y=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return xE(Y,Y[_.E6]|0,S,P)!==void 0};
_.Te=function(Y,S,P,u){var W=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return xE(W,W[_.E6]|0,S,g6(Y,u,P))!==void 0};
_.QI=function(Y){return Y===T99?2:4};
_.fj=function(Y,S){Y=_.xn(Y,S,void 0,void 0,eUK);return Y==null?_.pu():Y};
Rz=function(Y,S,P,u){YE(Y);var W=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=W[_.E6]|0;if(u==null){var J=Yd9(W);if(Sd1(J,W,m,P)===S)J.set(P,0);else return Y}else m=PoE(W,m,P,S);Sc(W,m,S,u);return Y};
_.gV=function(Y,S,P,u){var W=Y[_.E6]|0,m=Xi(W);W=PoE(Y,W,P,S,m);Sc(Y,W,S,u,m)};
g6=function(Y,S,P){return _.$n(Y,S)===P?P:-1};
_.$n=function(Y,S){Y=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Sd1(Yd9(Y),Y,void 0,S,void 0)};
IO9=function(Y,S,P){var u=Y[_.E6]|0,W=Xi(u),m=jc(Y,P,W);if(m!=null&&m[FY]===sd){if(!Is(m))return e_(m),m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var J=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(m)&&(J=m);if(J){var c=J[_.E6]|0;c&2&&(J=VB(J,c))}J=H6(J,S,!0);J!==m&&Sc(Y,u,P,J,W);return J};
_.P_=function(Y,S,P,u){var W=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=W[_.E6]|0;S=xE(W,m,S,P,u);if(S==null)return S;m=W[_.E6]|0;if(!Is(Y,m)){var J=E_K(S);J!==S&&(e_(Y)&&(W=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=W[_.E6]|0),S=J,Sc(W,m,P,S,u))}return S};
_.Uy=function(Y,S,P,u){var W=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return uYa(Y,W,W[_.E6]|0,S,P,u,!1,!0)};
_.N8=function(Y,S,P,u){P=W5f(P);_.mV(Y,S,P,u);return Y};
_.Hd=function(Y,S,P,u){u=W5f(u);Rz(Y,S,P,u);return Y};
rV=function(Y,S,P){YE(Y);var u=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=u[_.E6]|0;if(P==null)return Sc(u,W,S),Y;for(var m=P===Pd?7:P[_.E6]|0,J=m,c=nS(m),C=c||Object.isFrozen(P),x=!0,b=!0,T=0;T<P.length;T++){var K=P[T];c||(K=Is(K),x&&(x=!K),b&&(b=K))}c||(m=x?13:5,m=b?m&-4097:m|4096);C&&m===J||(P=eS(P),J=0,m=uK(m,W));m!==J&&gd(P,m);Sc(u,W,S,P);return Y};
Ty=function(Y,S,P,u){mIJ(Y,S,P,u);return Y};
aOf=function(Y,S,P){mIJ(Y,S,Ge,void 0,P,1,!0);return Y};
_.hv=function(Y,S,P){Y=_.xn(Y,S,void 0,P);Y!=null&&(typeof Y==="bigint"?(0,_.Ud)(Y)?Y=Number(Y):(Y=f1(64,Y),Y=(0,_.Ud)(Y)?Number(Y):String(Y)):Y=_.j_(Y)?typeof Y==="number"?gZ(Y):Ed(Y):void 0);return Y};
_.vW=function(Y,S){var P=P===void 0?!1:P;var u;return(u=_.VK1(_.xn(Y,S)))!=null?u:P};
_.kg=function(Y,S,P){P=P===void 0?0:P;var u;return(u=_.T1(_.xn(Y,S)))!=null?u:P};
LSf=function(Y,S){var P=P===void 0?0:P;Y=_.K1(_.xn(Y,S));return Y!=null?Y:P};
Dp=function(Y,S,P){P=P===void 0?DBU:P;Y=_.xn(Y,S);S=typeof Y;Y=Y==null?Y:S==="bigint"?_.tm(f1(64,Y)):_.j_(Y)?S==="string"?S6K(Y):PfY(Y):void 0;return Y!=null?Y:P};
wAU=function(Y){var S=S===void 0?DBU:S;Y=_.xn(Y,23);var P=typeof Y;Y=Y==null?Y:P==="bigint"?_.tm((0,_.DI)(64,Y)):_.j_(Y)?P==="string"?_.cmJ(Y):_.Bd8(Y):void 0;return Y!=null?Y:S};
IJ=function(Y,S){var P=P===void 0?0:P;var u;return(u=_.xn(Y,S,void 0,void 0,_.z1))!=null?u:P};
_.aJ=function(Y,S,P,u){P=P===void 0?"":P;var W;return(W=_.p1(_.xn(Y,S,u)))!=null?W:P};
_.Lj=function(Y,S){var P=P===void 0?0:P;var u;return(u=_.B6(_.xn(Y,S)))!=null?u:P};
wV=function(Y,S){var P=P===void 0?"0":P;Y=Cff(_.xn(Y,S),!0);return Y!=null?Y:P};
pj=function(Y,S,P){return _.aJ(Y,g6(Y,P,S))};
_.F0=function(Y,S,P,u){return _.P_(Y,S,g6(Y,u,P),void 0)};
_.mo=function(Y,S){return _.p1(_.xn(Y,S,void 0,_.RJ))};
_.Hk=function(Y,S,P){return _.mV(Y,S,H81(P))};
_.Ik=function(Y,S,P){return _.Bd(Y,S,H81(P),!1)};
_.sM=function(Y,S,P){return _.mV(Y,S,_.qI(P))};
_.r6=function(Y,S,P){return _.mV(Y,S,$c(P))};
_.zH=function(Y,S,P){return _.mV(Y,S,wZ(P))};
_.Vi=function(Y,S,P,u){return _.Bd(Y,S,wZ(P),"",u)};
_.uX=function(Y,S,P){return _.mV(Y,S,P==null?P:_.Jj(P))};
_.dV=function(Y,S,P){return _.Bd(Y,S,P==null?P:_.Jj(P),0)};var bK=function(Y,S,P){this.buffer=Y;if(P&&!S)throw Error();this.JSC$6727_isImmutable=S};var pA8=function(Y,S,P,u){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6730_start_=0;this.init(Y,S,P,u)},lW,spK,dBE,XAh,hX9;
_.z=pA8.prototype;_.z.init=function(Y,S,P,u){var W=u===void 0?{}:u;u=W.aliasBytesFields===void 0?!1:W.aliasBytesFields;W=W.treatNewDataAsImmutable===void 0?!1:W.treatNewDataAsImmutable;this.aliasBytesFields=u;this.treatNewDataAsImmutable=W;Y&&(Y=ncX(Y,this.treatNewDataAsImmutable),this.bytes_=Y.buffer,this.bytesAreImmutable_=Y.JSC$6727_isImmutable,this.JSC$6730_start_=S||0,this.end_=P!==void 0?this.JSC$6730_start_+P:this.bytes_.length,this.cursor_=this.JSC$6730_start_)};
_.z.free=function(){this.clear();FSY.length<100&&FSY.push(this)};
_.z.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6730_start_=0;this.aliasBytesFields=!1};
_.z.reset=function(){this.cursor_=this.JSC$6730_start_};
_.z.atEnd=function(){return this.cursor_==this.end_};
_.X0=function(Y,S){var P=0,u=0,W=0,m=Y.bytes_,J=Y.cursor_;do{var c=m[J++];P|=(c&127)<<W;W+=7}while(W<32&&c&128);W>32&&(u|=(c&127)>>4);for(W=3;W<32&&c&128;W+=7)c=m[J++],u|=(c&127)<<W;lW(Y,J);if(c<128)return S(P>>>0,u>>>0);throw Error("X");};
lW=function(Y,S){Y.cursor_=S;if(S>Y.end_)throw Error("Y`"+S+"`"+Y.end_);};
_.iW=function(Y){var S=Y.bytes_,P=Y.cursor_,u=S[P++],W=u&127;if(u&128&&(u=S[P++],W|=(u&127)<<7,u&128&&(u=S[P++],W|=(u&127)<<14,u&128&&(u=S[P++],W|=(u&127)<<21,u&128&&(u=S[P++],W|=u<<28,u&128&&S[P++]&128&&S[P++]&128&&S[P++]&128&&S[P++]&128&&S[P++]&128)))))throw Error("X");lW(Y,P);return W};
_.oJ=function(Y){var S=Y.bytes_,P=Y.cursor_,u=S[P],W=S[P+1],m=S[P+2];S=S[P+3];lW(Y,Y.cursor_+4);return(u<<0|W<<8|m<<16|S<<24)>>>0};
spK=function(Y){var S=_.oJ(Y);Y=_.oJ(Y);return yuu(S,Y)};
dBE=function(Y){var S=_.oJ(Y),P=_.oJ(Y);Y=(P>>31)*2+1;var u=P>>>20&2047;S=4294967296*(P&1048575)+S;return u==2047?S?NaN:Y*Infinity:u==0?Y*4.9E-324*S:Y*Math.pow(2,u-1075)*(S+4503599627370496)};
_.lOh=function(Y){for(var S=0,P=Y.cursor_,u=P+10,W=Y.bytes_;P<u;){var m=W[P++];S|=m;if((m&128)===0)return lW(Y,P),!!(S&127)}throw Error("X");};
XAh=function(Y,S){if(S<0)throw Error("Z`"+S);var P=Y.cursor_,u=P+S;if(u>Y.end_)throw Error("Y`"+(Y.end_-P)+"`"+S);Y.cursor_=u;return P};
hX9=function(Y,S){if(S==0)return _.pu();var P=XAh(Y,S);Y.aliasBytesFields&&Y.bytesAreImmutable_?P=Y.bytes_.subarray(P,P+S):(Y=Y.bytes_,S=P+S,P=P===S?new Uint8Array(0):GkU?Y.slice(P,S):new Uint8Array(Y.subarray(P,S)));return P.length==0?_.pu():new as(P,Lu)};
pA8.prototype.getDataView=function(){var Y=this.dataView_;Y||(Y=this.bytes_,Y=this.dataView_=new DataView(Y.buffer,Y.byteOffset,Y.byteLength));return Y};
var FSY=[];var iq8=function(Y,S,P,u){if(FSY.length){var W=FSY.pop();W.init(Y,S,P,u);Y=W}else Y=new pA8(Y,S,P,u);this.decoder_=Y;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Zq$(this,u)},Zq$=function(Y,S){S=S===void 0?{}:S;
Y.discardUnknownFields=S.discardUnknownFields===void 0?!1:S.discardUnknownFields},IIJ=function(Y,S,P,u){if(o69.length){var W=o69.pop();
Zq$(W,u);W.decoder_.init(Y,S,P,u);return W}return new iq8(Y,S,P,u)},rjX,aN,tgE,o69;
iq8.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;o69.length<100&&o69.push(this)};
iq8.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
rjX=function(Y){if(Y.decoder_.atEnd())return!1;Y.fieldCursor_=Y.decoder_.cursor_;var S=_.iW(Y.decoder_)>>>0,P=S>>>3;S&=7;if(!(S>=0&&S<=5))throw Error("T`"+S+"`"+Y.fieldCursor_);if(P<1)throw Error("U`"+P+"`"+Y.fieldCursor_);Y.nextField_=P;Y.nextWireType_=S;return!0};
aN=function(Y){switch(Y.nextWireType_){case 0:Y.nextWireType_!=0?aN(Y):_.lOh(Y.decoder_);break;case 1:Y=Y.decoder_;lW(Y,Y.cursor_+8);break;case 2:if(Y.nextWireType_!=2)aN(Y);else{var S=_.iW(Y.decoder_)>>>0;Y=Y.decoder_;lW(Y,Y.cursor_+S)}break;case 5:Y=Y.decoder_;lW(Y,Y.cursor_+4);break;case 3:S=Y.nextField_;do{if(!rjX(Y))throw Error("V");if(Y.nextWireType_==4){if(Y.nextField_!=S)throw Error("W");break}aN(Y)}while(1);break;default:throw Error("T`"+Y.nextWireType_+"`"+Y.fieldCursor_);}};
tgE=function(Y,S,P){var u=Y.decoder_.end_,W=_.iW(Y.decoder_)>>>0,m=Y.decoder_.cursor_+W,J=m-u;J<=0&&(Y.decoder_.end_=m,P(S,Y,void 0,void 0,void 0),J=m-Y.decoder_.cursor_);if(J)throw Error("S`"+W+"`"+(W-J));Y.decoder_.cursor_=m;Y.decoder_.end_=u};
_.ATa=function(Y){var S=_.iW(Y.decoder_)>>>0;Y=Y.decoder_;var P=XAh(Y,S);Y=Y.bytes_;if($_h){var u=Y,W;(W=g7a)||(W=g7a=new TextDecoder("utf-8",{fatal:!0}));S=P+S;u=P===0&&S===u.length?u:u.subarray(P,S);try{var m=W.decode(u)}catch(x){if(fc8===void 0){try{W.decode(new Uint8Array([128]))}catch(b){}try{W.decode(new Uint8Array([97])),fc8=!0}catch(b){fc8=!1}}!fc8&&(g7a=void 0);throw x;}}else{m=P;S=m+S;P=[];for(var J=null,c,C;m<S;)c=Y[m++],c<128?P.push(c):c<224?m>=S?SK():(C=Y[m++],c<194||(C&192)!==128?(m--,
SK()):P.push((c&31)<<6|C&63)):c<240?m>=S-1?SK():(C=Y[m++],(C&192)!==128||c===224&&C<160||c===237&&C>=160||((W=Y[m++])&192)!==128?(m--,SK()):P.push((c&15)<<12|(C&63)<<6|W&63)):c<=244?m>=S-2?SK():(C=Y[m++],(C&192)!==128||(c<<28)+(C-144)>>30!==0||((W=Y[m++])&192)!==128||((u=Y[m++])&192)!==128?(m--,SK()):(c=(c&7)<<18|(C&63)<<12|(W&63)<<6|u&63,c-=65536,P.push((c>>10&1023)+55296,(c&1023)+56320))):SK(),P.length>=8192&&(J=Y9$(J,P),P.length=0);m=Y9$(J,P)}return m};
_.UBJ=function(Y){var S=_.iW(Y.decoder_)>>>0;return hX9(Y.decoder_,S)};
_.QpK=function(Y,S,P){var u=_.iW(Y.decoder_)>>>0;for(u=Y.decoder_.cursor_+u;Y.decoder_.cursor_<u;)P.push(S(Y.decoder_))};
o69=[];_.Gc=function(Y,S,P){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y,S,P)};
_.Gc.prototype.toJSON=function(){return yB(this)};
_.Gc.prototype.serialize=function(Y){return JSON.stringify(yB(this,Y))};
var SUh=function(Y,S){if(S==null||S=="")return new Y;S=JSON.parse(S);if(!Array.isArray(S))throw Error("$");return new Y(lfY(S))};
_.Gc.prototype.getExtension=function(Y){v_f(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y.fieldIndex);asa(this,Y.fieldIndex);return Y.ctor?Y.isRepeated?Y.getExtensionFn(this,Y.ctor,Y.fieldIndex,_.QI(),Y.JSC$6740_hasMessageId):Y.getExtensionFn(this,Y.ctor,Y.fieldIndex,Y.JSC$6740_hasMessageId):Y.isRepeated?Y.getExtensionFn(this,Y.fieldIndex,_.QI(),Y.JSC$6740_hasMessageId):Y.getExtensionFn(this,Y.fieldIndex,Y.defaultValue,Y.JSC$6740_hasMessageId)};
_.Gc.prototype.clone=function(){var Y=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return new this.constructor(VB(Y,Y[_.E6]|0,!1))};
_.Gc.prototype[FY]=sd;_.Gc.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var kk9=function(Y,S){this.JSC$6742_lo=Y>>>0;this.JSC$6742_hi=S>>>0},yTY=function(Y){if(!Y)return Mgh||(Mgh=new kk9(0,0));
if(!/^\d+$/.test(Y))return null;VJ(Y);return new kk9(Am,QJ)},Mgh,ocK=function(Y,S){this.JSC$6744_lo=Y>>>0;
this.JSC$6744_hi=S>>>0},Z1X=function(Y){if(!Y)return N9h||(N9h=new ocK(0,0));
if(!/^-?\d+$/.test(Y))return null;VJ(Y);return new ocK(Am,QJ)},N9h;var HqE=function(){this.JSC$6746_buffer_=[]},i1u,VgU;
HqE.prototype.length=function(){return this.JSC$6746_buffer_.length};
HqE.prototype.end=function(){var Y=this.JSC$6746_buffer_;this.JSC$6746_buffer_=[];return Y};
i1u=function(Y,S,P){for(;P>0||S>127;)Y.JSC$6746_buffer_.push(S&127|128),S=(S>>>7|P<<25)>>>0,P>>>=7;Y.JSC$6746_buffer_.push(S)};
VgU=function(Y,S){for(;S>127;)Y.JSC$6746_buffer_.push(S&127|128),S>>>=7;Y.JSC$6746_buffer_.push(S)};
_.t_E=function(Y,S){if(S>=0)VgU(Y,S);else{for(var P=0;P<9;P++)Y.JSC$6746_buffer_.push(S&127|128),S>>=7;Y.JSC$6746_buffer_.push(1)}};
_.oN=function(Y,S){Y.JSC$6746_buffer_.push(S>>>0&255);Y.JSC$6746_buffer_.push(S>>>8&255);Y.JSC$6746_buffer_.push(S>>>16&255);Y.JSC$6746_buffer_.push(S>>>24&255)};var e89,sU,UIa,M_9;e89=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new HqE};
sU=function(Y,S){S.length!==0&&(Y.blocks_.push(S),Y.totalLength_+=S.length)};
_.cja=function(Y,S){_.ZB(Y,S,2);S=Y.encoder_.end();sU(Y,S);S.push(Y.totalLength_);return S};
_.Cou=function(Y,S){var P=S.pop();for(P=Y.totalLength_+Y.encoder_.length()-P;P>127;)S.push(P&127|128),P>>>=7,Y.totalLength_++;S.push(P);Y.totalLength_++};
_.ZB=function(Y,S,P){VgU(Y.encoder_,S*8+P)};
UIa=function(Y,S,P){if(P!=null){switch(typeof P){case "string":yTY(P)}_.ZB(Y,S,1);switch(typeof P){case "number":Y=Y.encoder_;kJU(P);_.oN(Y,Am);_.oN(Y,QJ);break;case "bigint":P=BigInt.asUintN(64,P);P=new kk9(Number(P&BigInt(4294967295)),Number(P>>BigInt(32)));Y=Y.encoder_;S=P.JSC$6742_hi;_.oN(Y,P.JSC$6742_lo);_.oN(Y,S);break;default:P=yTY(P),Y=Y.encoder_,S=P.JSC$6742_hi,_.oN(Y,P.JSC$6742_lo),_.oN(Y,S)}}};
M_9=function(Y,S,P){_.ZB(Y,S,2);VgU(Y.encoder_,P.length);sU(Y,Y.encoder_.end());sU(Y,P)};var ju$,S09,u9K;ju$=_.gX();_.Oqa=_.gX();_.Y0K=_.gX();S09=_.gX();_.tv=_.gX();_.P$h=_.gX();u9K=_.gX();_.WYE=_.gX();_.zPK=_.gX();var $E=function(Y,S,P){this.$$binaryReaderFn=Y;this.$$binaryWriterFn=S;Y=XY(ju$);this.$$isMsg=!!Y&&P===Y||!1},b1J=JjY(function(Y,S,P,u,W){if(Y.nextWireType_!==2)return!1;
tgE(Y,IO9(S,u,P),W);return!0},qdh),TZX=JjY(function(Y,S,P,u,W){if(Y.nextWireType_!==2)return!1;
tgE(Y,IO9(S,u,P),W);return!0},qdh),wX=Symbol(),hY=Symbol(),$Ih=Symbol(),L5$=Symbol(),vc$=Symbol(),RX1,xIa;var eXa,moh,nvY,j2a,JH1,Blf,cHX,C$9,q0J,RPu,xo$,Tlu,KYa,fLh,gv9;eXa=function(Y,S){var P=new e89;p6h(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P,rX(wX,LS,FF,S));sU(P,P.encoder_.end());Y=new Uint8Array(P.totalLength_);S=P.blocks_;for(var u=S.length,W=0,m=0;m<u;m++){var J=S[m];Y.set(J,W);W+=J.length}P.blocks_=[Y];return Y};
moh=_.dX(function(Y,S,P){if(Y.nextWireType_!==1)return!1;_.lK(S,P,dBE(Y.decoder_));return!0},X6h,u9K);
nvY=_.dX(function(Y,S,P,u){if(Y.nextWireType_!==1)return!1;_.gV(S,P,u,dBE(Y.decoder_));return!0},X6h,u9K);
j2a=_.dX(function(Y,S,P,u){if(Y.nextWireType_!==5)return!1;var W=_.oJ(Y.decoder_);Y=(W>>31)*2+1;var m=W>>>23&255;W&=8388607;_.gV(S,P,u,m==255?W?NaN:Y*Infinity:m==0?Y*1.401298464324817E-45*W:Y*Math.pow(2,m-150)*(W+8388608));return!0},function(Y,S,P){S=_.z1(S);
S!=null&&(_.ZB(Y,P,5),Y=Y.encoder_,P=iK||(iK=new DataView(new ArrayBuffer(8))),P.setFloat32(0,+S,!0),QJ=0,Am=P.getUint32(0,!0),_.oN(Y,Am))},_.gX());
_.Av=_.dX(function(Y,S,P){if(Y.nextWireType_!==0)return!1;_.lK(S,P,_.X0(Y.decoder_,NL));return!0},_.tY,_.tv);
JH1=_.dX(function(Y,S,P){if(Y.nextWireType_!==0)return!1;Y=_.X0(Y.decoder_,NL);_.lK(S,P,Y===0?void 0:Y);return!0},_.tY,_.tv);
Blf=_.dX(function(Y,S,P,u){if(Y.nextWireType_!==0)return!1;_.gV(S,P,u,_.X0(Y.decoder_,NL));return!0},_.tY,_.tv);
_.UM=_.dX(function(Y,S,P){if(Y.nextWireType_!==0)return!1;_.lK(S,P,_.iW(Y.decoder_));return!0},Ajh,S09);
cHX=_.dX(function(Y,S,P){if(Y.nextWireType_!==0)return!1;Y=_.iW(Y.decoder_);_.lK(S,P,Y===0?void 0:Y);return!0},Ajh,S09);
C$9=_.dX(function(Y,S,P,u){if(Y.nextWireType_!==0)return!1;_.gV(S,P,u,_.iW(Y.decoder_));return!0},Ajh,S09);
q0J=_.dX(function(Y,S,P){if(Y.nextWireType_!==1)return!1;_.lK(S,P,spK(Y.decoder_));return!0},_.QuX,_.P$h);
RPu=_.lIJ(function(Y,S,P){if(Y.nextWireType_!==1&&Y.nextWireType_!==2)return!1;S=_.CS(S,S[_.E6]|0,P);Y.nextWireType_==2?_.QpK(Y,spK,S):S.push(spK(Y.decoder_));return!0},function(Y,S,P){S=_.dIa(RUu,S,!1);
if(S!=null)for(var u=0;u<S.length;u++)UIa(Y,P,S[u])},_.P$h);
_.QL=_.dX(function(Y,S,P){if(Y.nextWireType_!==0)return!1;_.lK(S,P,_.lOh(Y.decoder_));return!0},_.k1u,_.Oqa);
xo$=_.dX(function(Y,S,P,u){if(Y.nextWireType_!==0)return!1;_.gV(S,P,u,_.lOh(Y.decoder_));return!0},_.k1u,_.Oqa);
_.kn=_.dX(function(Y,S,P){if(Y.nextWireType_!==2)return!1;_.lK(S,P,_.ATa(Y));return!0},_.yjX,_.Y0K);
_.b9Y=_.dX(function(Y,S,P,u){if(Y.nextWireType_!==2)return!1;_.gV(S,P,u,_.ATa(Y));return!0},_.yjX,_.Y0K);
Tlu=_.lIJ(function(Y,S,P){if(Y.nextWireType_!==2)return!1;Y=_.ATa(Y);_.CS(S,S[_.E6]|0,P).push(Y);return!0},function(Y,S,P){S=_.dIa(_.p1,S,!0);
if(S!=null)for(var u=0;u<S.length;u++){var W=Y,m=P,J=S[u];J!=null&&M_9(W,m,W$X(J))}},_.Y0K);
KYa=void 0;KYa=KYa===void 0?ju$:KYa;_.Mi=new $E(function(Y,S,P,u,W){if(Y.nextWireType_!==2)return!1;u=H6(void 0,u,!0);_.CS(S,S[_.E6]|0,P).push(u);tgE(Y,u,W);return!0},function(Y,S,P,u,W){if(Array.isArray(S))for(var m=0;m<S.length;m++)NZu(Y,S[m],P,u,W)},KYa);
_.yL=JjY(function(Y,S,P,u,W,m){if(Y.nextWireType_!==2)return!1;var J=S[_.E6]|0;PoE(S,J,m,P,Xi(J));S=IO9(S,u,P);tgE(Y,S,W);return!0},NZu);
_.Evh=_.dX(function(Y,S,P){if(Y.nextWireType_!==2)return!1;_.lK(S,P,_.UBJ(Y));return!0},_.H1h,_.WYE);
fLh=_.dX(function(Y,S,P,u){if(Y.nextWireType_!==2)return!1;_.gV(S,P,u,_.UBJ(Y));return!0},_.H1h,_.WYE);
gv9=_.dX(function(Y,S,P,u){if(Y.nextWireType_!==0)return!1;_.gV(S,P,u,_.iW(Y.decoder_)>>>0);return!0},function(Y,S,P){S=_.K1(S);
S!=null&&S!=null&&(_.ZB(Y,P,0),VgU(Y.encoder_,S))},_.gX());
_.Ni=_.dX(function(Y,S,P){if(Y.nextWireType_!==0)return!1;_.lK(S,P,_.iW(Y.decoder_));return!0},_.V_Y,_.zPK);var GWJ=function(){var Y=$o8,S=rHu;this.fieldIndex=175237375;this.ctor=S;this.isRepeated=0;this.getExtensionFn=_.P_;this.defaultValue=void 0;this.JSC$6740_hasMessageId=Y.messageId!=null?lf:void 0};
GWJ.prototype.register=function(){mX(this)};var hPX=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(hPX,_.Gc);var vvu=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(vvu,_.Gc);var WzJ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(WzJ,_.Gc);var DoY=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(DoY,_.Gc);var ILU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(ILU,_.Gc);var aL$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(aL$,_.Gc);var LYY=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(LYY,_.Gc);LYY.prototype.getData=function(){return _.fj(this,2)};var wEh=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(wEh,_.Gc);var pEh=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(pEh,_.Gc);pEh.prototype.getStyle=function(){return _.P_(this,hPX,1)};var yy=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(yy,_.Gc);yy.prototype.getPayloadCase=function(){return _.$n(this,Vy)};
yy.prototype.getStyle=function(){return _.F0(this,pEh,6,Vy)};
var FYh=function(){var Y=new yy,S=new ILU;return _.Hd(Y,7,Vy,S)},s29=function(){var Y=new yy,S=new aL$;
return _.Hd(Y,8,Vy,S)},Vy=[1,
2,3,4,5,6,7,8];var doJ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(doJ,_.Gc);var lLE=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(lLE,_.Gc);var XEJ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(XEJ,_.Gc);var Z9$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Z9$,_.Gc);var i9a=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(i9a,_.Gc);var ov8=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(ov8,_.Gc);var tOa=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(tOa,_.Gc);var AH$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(AH$,_.Gc);AH$.prototype.getData=function(){return _.fj(this,2)};var UoU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(UoU,_.Gc);var uFY=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(uFY,_.Gc);uFY.prototype.getPayloadCase=function(){return _.$n(this,HW)};
var HW=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var VL=function(Y,S){Y=Error.call(this,Y);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.code=S===void 0?2:S};
_.r(VL,Error);var Q2u=Promise;var kWf=function(Y){this.channelPromise=Y};
kWf.prototype.send=function(Y,S,P){this.channelPromise.then(function(u){u.send(Y,S,P)})};var MOU=function(Y,S){this.data=Y;this.channel=S};
MOU.prototype.reply=function(Y,S,P){this.channel.send(Y,S,P)};var yH1=function(Y){this.JSC$6818_port_=Y};
yH1.prototype.send=function(Y,S,P){P=P===void 0?[]:P;var u=new MessageChannel;NlE(u.port1,S);this.JSC$6818_port_.postMessage(Y,[u.port2].concat(P))};
var H9h=function(Y,S){NlE(Y,S);return new yH1(Y)},NlE=function(Y,S){S&&(Y.onmessage=function(P){S(new MOU(P.data,H9h(P.ports[0])))})};var VO1=function(Y){this.verifier_=Y},ePU=function(Y){var S=Object.create(null);
(typeof Y==="string"?[Y]:Y).forEach(function(P){if(P==="null")throw Error("ba");S[P]=!0});
return function(P){return S[P]===!0}};_.O9X=function(){if(!_.Pa.addEventListener||!Object.defineProperty)return!1;var Y=!1,S=Object.defineProperty({},"passive",{get:function(){Y=!0}});
try{var P=function(){};
_.Pa.addEventListener("test",P,S);_.Pa.removeEventListener("test",P,S)}catch(u){}return Y}();var Y9h;_.e5=function(Y){var S=Y.destination;var P=Y.iframe;var u=Y.origin;var W=Y.channelName===void 0?"ZNWN1d":Y.channelName;var m=Y.onMessage===void 0?void 0:Y.onMessage;Y=Y.onEstablished===void 0?void 0:Y.onEstablished;return Y9h({destination:S,getSource:function(){return P.contentWindow},
originVerifier:u instanceof VO1?u:typeof u==="function"?new VO1(u):new VO1(ePU(u)),channelName:W,onMessage:m,onEstablished:Y})};
Y9h=function(Y){var S=Y.destination;var P=Y.getSource;var u=Y.originVerifier;var W=Y.token===void 0?void 0:Y.token;var m=Y.channelName;var J=Y.onMessage===void 0?void 0:Y.onMessage;var c=Y.onEstablished===void 0?void 0:Y.onEstablished;return new kWf(new Q2u(function(C,x){var b=function(T){T.source&&T.source===P()&&u.verifier_(T.origin)&&(T.data.n||T.data)===m&&(S.removeEventListener("message",b,!1),W&&T.data.t!==W?x(Error("ca`"+m+"`"+W+"`"+T.data.t)):(C(H9h(T.ports[0],J)),c&&c(T)))};
S.addEventListener("message",b,!1)}))};var S93=function(Y){try{Y()}catch(S){ua(S)}};var uE6=function(Y){var S=this;var P=Y.getMessageType;var u=Y.onUnregisteredMessage===void 0?function(){}:Y.onUnregisteredMessage;
var W=Y.onBeforeRegisteredMessage===void 0?function(){}:Y.onBeforeRegisteredMessage;
Y=Y.onAfterRegisteredMessage===void 0?function(){}:Y.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=P;this.onUnregisteredMessage_=u;this.onBeforeRegisteredMessage_=W;this.onAfterRegisteredMessage_=Y;this.onMessage=function(m){return Paf(S,m)}};
uE6.prototype.register=function(Y,S){this.registry_.set(Y,S);return this};
var Paf=function(Y,S){var P=Y.getMessageType_(S.data),u=Y.registry_.get(P);u?(S93(function(){return Y.onBeforeRegisteredMessage_(S,P)}),S93(function(){return u(S)}),S93(function(){return Y.onAfterRegisteredMessage_(S,P)})):S93(function(){return Y.onUnregisteredMessage_(S,P)})};var W$J=function(Y){this.JSC$6835_channel_=Y},mU6,nYs;
W$J.prototype.send=function(Y,S,P){this.JSC$6835_channel_.send(yB(Y),S,P)};
_.zhm=function(Y,S){return function(P){var u=new Y(P.data);return S(new MOU(u,P.channel))}};
mU6=function(Y){return function(S){return Y(new MOU(S.data,new W$J(S.channel)))}};
nYs=function(Y,S){return mU6(_.zhm(Y,S))};var jhU=function(Y,S,P,u){this.registry=Y;this.delegate=S;this.receiveMessageConstructor=P;this.createInitMessage=u;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},PKY=function(Y){var S=new uE6({getMessageType:Y.getPayloadCase});
return new jhU(S,new W$J(_.e5({iframe:Y.child,destination:window,origin:Y.origin,channelName:Y.channelName,onMessage:nYs(Y.receiveMessageConstructor,S.onMessage)})),Y.receiveMessageConstructor,Y.createInitMessage)},Juf=function(Y,S){Y.createInitMessage=S};
jhU.prototype.send=function(Y){if(!this.initialised)throw new VL("Attempted to send a message before initialisation.");this.delegate.send(Y)};
var B1_=function(Y,S){return _.B(function(P){if(!Y.initialised)throw new VL("Attempted to send a message before initialisation.");return P.return(new Promise(function(u){Y.delegate.send(S,nYs(Y.receiveMessageConstructor,u))}))})};
jhU.prototype.init=function(){var Y=this;return _.B(function(S){if(Y.initialised)throw new VL("Attempted to initialise twice. The SDK can only be initialised once.");if(Y.createInitMessage!==void 0){var P=Y.delegate,u=P.send,W=Y.createInitMessage;var m=new vvu;var J=[].concat(_.cz(Y.features));m=_.JY(m,1,J,_.Jj);u.call(P,W.call(Y,m))}Y.initialised=!0;_.Yt(S)})};
var OM=function(Y,S){if(Y.initialised)throw new VL('Attempted to set up API "'+S+'" after initialisation. All APIs must be set up before initialising the SDK.');Y.features.add(S);return Y.registry};
_.y6.Object.defineProperties(jhU.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var cuf=function(Y){this.channel=Y;this.registered=!1};
cuf.prototype.update=function(Y){if(this.channel.isInitialised){if(!this.registered)throw new VL("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var S=new yy;var P=new DoY;P=_.Hk(P,1,Y);S=_.Hd(S,2,Vy,P);this.channel.send(S)}else this.register();this.JSC$6849_audioEnabled=Y};
cuf.prototype.register=function(){OM(this.channel,1);this.registered=!0};
cuf.prototype.isAudioEnabled=function(){return this.JSC$6849_audioEnabled};var CaS=function(Y){this.channel=Y};
_.z=CaS.prototype;_.z.onFirstFrameReady=function(Y){OM(this.channel,2).register(11,function(S){S=_.F0(S.data,doJ,11,HW);if(!S)throw new VL("Unexpectedly nonexistent GameFirstFrameReadyEvent");Y(_.aJ(S,1))})};
_.z.onReady=function(Y){OM(this.channel,2).register(4,function(S){S=_.F0(S.data,XEJ,4,HW);if(!S)throw new VL("Unexpectedly nonexistent GameReadyEvent");Y(_.aJ(S,1))})};
_.z.onLevelComplete=function(Y){OM(this.channel,2).register(5,function(S){S=_.F0(S.data,Z9$,5,HW);if(!S)throw new VL("Unexpectedly nonexistent LevelCompleteEvent");Y(_.aJ(S,1),_.kg(S,2))})};
_.z.onGameOver=function(Y){OM(this.channel,2).register(6,function(S){S=_.F0(S.data,lLE,6,HW);if(!S)throw new VL("Unexpectedly nonexistent GameOverEvent");Y(_.aJ(S,1))})};
_.z.pause=function(){var Y=this;if(!this.channel.isInitialised)return OM(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new VL("Using unregistered Game Feature: pause.");var S=FYh();return new Promise(function(P){return _.B(function(u){if(u.nextAddress==1)return _.q(u,B1_(Y.channel,S),2);P();_.Yt(u)})})};
_.z.resume=function(){var Y=this;if(!this.channel.isInitialised)return OM(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new VL("Using unregistered Game Feature: resume.");var S=s29();return new Promise(function(P){return _.B(function(u){if(u.nextAddress==1)return _.q(u,B1_(Y.channel,S),2);P();_.Yt(u)})})};var q9s=function(Y){this.channel=Y};
q9s.prototype.onReady=function(Y){OM(this.channel,5).register(8,function(S){if(!_.F0(S.data,i9a,8,HW))throw new VL("Unexpectedly nonexistent PageReadyEvent");Y()})};var RhU=function(Y){this.channel=Y};
RhU.prototype.onChange=function(Y){OM(this.channel,3).register(7,function(S){S=_.F0(S.data,ov8,7,HW);if(!S)throw new VL("Unexpectedly nonexistent ScoreEvent");Y(_.aJ(S,1),_.kg(S,2))})};var xUJ={load:function(){throw new VL("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new VL("Storage used, but storage.onSave() listener not set!");}},b83=function(Y){this.channel=Y;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},T1t=function(Y){OM(Y.channel,4).register(2,xUJ.load).register(3,xUJ.save);
Y.initialSetupDone=!0};
b83.prototype.onLoad=function(Y){this.initialSetupDone||T1t(this);this.loadRegistered||(this.loadRegistered=!0,OM(this.channel,4).register(2,function(S){var P,u,W;return _.B(function(m){if(m.nextAddress==1){P=_.F0(S.data,tOa,2,HW);if(!P)throw new VL("Unexpectedly nonexistent StorageLoad");u=_.aJ(P,1);return _.q(m,Y(u),2)}W=m.yieldResult;var J=S.reply,c=new yy;var C=new LYY;C=_.zH(C,1,u);C=_.mV(C,2,_.s6(W,!1));c=_.Hd(c,3,Vy,C);J.call(S,c);_.Yt(m)})}))};
b83.prototype.onSave=function(Y){this.initialSetupDone||T1t(this);this.saveRegistered||(this.saveRegistered=!0,OM(this.channel,4).register(3,function(S){var P,u,W;return _.B(function(m){if(m.nextAddress==1){P=_.F0(S.data,AH$,3,HW);if(!P)throw new VL("Unexpectedly nonexistent StorageSave");u=_.aJ(P,1);W=qlE(P.getData());return _.q(m,Y(u,W),2)}var J=S.reply,c=new yy;var C=new wEh;C=_.zH(C,1,u);c=_.Hd(c,4,Vy,C);J.call(S,c);_.Yt(m)})}))};var K$J=function(Y){this.channel=Y};
K$J.prototype.update=function(Y){if(!this.channel.features.has(6))throw new VL("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var S=new yy,P=new pEh;Y=_.N8(P,1,Y);S=_.Hd(S,6,Vy,Y);this.channel.send(S)};
K$J.prototype.register=function(){OM(this.channel,6)};var EYs=function(Y){this.channel=Y;this.userActivityLoggingIntervalMs=0};
EYs.prototype.onUserActivity=function(Y,S){this.userActivityLoggingIntervalMs=S;OM(this.channel,7).register(9,function(P){if(!_.F0(P.data,UoU,9,HW))throw new VL("Unexpectedly nonexistent ClickEvent");Y()})};var ffS=function(Y){var S=this;this.channel=Y;this.init=this.channel.init.bind(this.channel);this.page=new q9s(this.channel);this.game=new CaS(this.channel);this.audio=new cuf(this.channel);this.score=new RhU(this.channel);this.storage=new b83(this.channel);this.style=new K$J(this.channel);this.userActivity=new EYs(this.channel);Juf(this.channel,function(P){var u=new WzJ;P=_.N8(u,1,P);P=_.sM(P,3,S.userActivity.userActivityLoggingIntervalMs);u=S.audio.isAudioEnabled();u!==void 0&&_.Hk(P,2,u);u=new yy;
return _.Hd(u,5,Vy,P)})};var gYt=function(){this.timedFunctionContext=0};
gYt.prototype.timeExecution=function(Y,S){var P=this;return function(){var u=_.Ch.apply(0,arguments);P.timedFunctionContext=Y;return S.apply(null,_.cz(u))}};var $UU=function(){var Y={};this.priorityTasks=(Y[3]=[],Y[2]=[],Y[1]=[],Y);this.isFlushing=!1},Vw=function(Y,S,P){var u=ruL(Y,P);
Y.priorityTasks[P].push(S);u&&Y.priorityTasks[P].length===1&&Y.flush()},ruL=function(Y,S){return Object.keys(Y.priorityTasks).map(function(P){return Number(P)}).filter(function(P){return!isNaN(P)&&P>S}).every(function(P){return Y.priorityTasks[P].length===0})};
$UU.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(Y){return Y.length>0});)GJL(this,3),GJL(this,2),GJL(this,1)}catch(Y){throw Object.values(this.priorityTasks).forEach(function(S){return void S.splice(0,S.length)}),Y;
}finally{this.isFlushing=!1}}};
var GJL=function(Y,S){for(;ruL(Y,S)&&Y.priorityTasks[S].length>0;)Y.priorityTasks[S][0](),Y.priorityTasks[S].shift()};
_.y6.Object.defineProperties($UU.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(Y){return Y.length>0})}}});var BX8={};var hh3=globalThis.trustedTypes,m88=hh3,jNX;var OU=function(Y){this.privateDoNotAccessOrElseWrappedResourceUrl=Y};
OU.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var vYJ=_.Q0([""]),DUm=YNa(["\x00"],["\\0"]),IfS=YNa(["\n"],["\\n"]),afu=YNa(["\x00"],["\\u0000"]);Px(function(Y){return Y(vYJ)})||Px(function(Y){return Y(DUm)})||Px(function(Y){return Y(IfS)})||Px(function(Y){return Y(afu)});var Jw;_.uB=function(Y,S){this.privateDoNotAccessOrElseWrappedUrl=S};
_.uB.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.L$_=Wx("about:blank");Jw=Wx("about:invalid#zClosurez");var cYU=function(Y){this.isValid=Y},wah=new cYU(function(Y){return/^[^:]*([/?#]|$)/.test(Y)}),paU=nh("data"),F$f=nh("http"),sht=nh("https"),dUd=nh("ftp"),lf_=nh("mailto"),Xah=nh("intent"),Z8s=nh("vnd.youtube"),CKK=[paU,
F$f,sht,lf_,dUd,wah],qUa=ec(function(){return typeof URL==="function"}),i8S=["data:",
"http:","https:","mailto:","ftp:"],x8X=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var TT=function(Y){this.privateDoNotAccessOrElseWrappedHtml=Y};
TT.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var Cka=ec(function(){return new TT(hh3?hh3.emptyHTML:"")});var oYU={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"},gE=function(Y,S){var P=Error.call(this,Y+" cannot be used with intent "+oYU[S]);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.type=Y;this.intent=S;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.r(gE,Error);_.GT=function(Y){this.privateDoNotAccessOrElseWrappedScript=Y};
_.GT.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var EEa=function(Y){this.privateDoNotAccessOrElseWrappedAttributePrefix=Y};
EEa.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var fBK="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var P28=function(Y){var S=_.tA("window.location.href");Y==null&&(Y='Unknown Error of type "null/undefined"');if(typeof Y==="string")return{message:Y,name:"Unknown error",lineNumber:"Not available",fileName:S,stack:"Not available"};var P=!1;try{var u=Y.lineNumber||Y.line||"Not available"}catch(J){u="Not available",P=!0}try{var W=Y.fileName||Y.filename||Y.sourceURL||_.Pa.$googDebugFname||S}catch(J){W="Not available",P=!0}S=tKU(Y);if(!(!P&&Y.lineNumber&&Y.fileName&&Y.stack&&Y.message&&Y.name)){P=Y.message;
if(P==null){if(Y.constructor&&Y.constructor instanceof Function){if(Y.constructor.name)P=Y.constructor.name;else if(P=Y.constructor,YQ[P])P=YQ[P];else{P=String(P);if(!YQ[P]){var m=/function\s+([^\(]+)/m.exec(P);YQ[P]=m?m[1]:"[Anonymous]"}P=YQ[P]}P='Unknown Error of type "'+P+'"'}else P="Unknown Error of unknown type";typeof Y.toString==="function"&&Object.prototype.toString!==Y.toString&&(P+=": "+Y.toString())}return{message:P,name:Y.name||"UnknownError",lineNumber:u,fileName:W,stack:S||"Not available"}}return{message:Y.message,
name:Y.name,lineNumber:Y.lineNumber,fileName:Y.fileName,stack:S}},tKU=function(Y,S){S||(S={});
S[Auh(Y)]=!0;var P=Y.stack||"",u=Y.cause;u&&!S[Auh(u)]&&(P+="\nCaused by: ",u.stack&&u.stack.indexOf(u.toString())==0||(P+=typeof u==="string"?u:u.message+"\n"),P+=tKU(u,S));Y=Y.errors;if(Array.isArray(Y)){u=1;var W;for(W=0;W<Y.length&&!(u>4);W++)S[Auh(Y[W])]||(P+="\nInner error "+u++ +": ",Y[W].stack&&Y[W].stack.indexOf(Y[W].toString())==0||(P+=typeof Y[W]==="string"?Y[W]:Y[W].message+"\n"),P+=tKU(Y[W],S));W<Y.length&&(P+="\n... "+(Y.length-W)+" more inner errors")}return P},Auh=function(Y){var S=
"";
typeof Y.toString==="function"&&(S=""+Y);return S+Y.stack},YQ={};var UU3,SH,On,kJL,MKJ,Qh6,s_,ZC,N13;UU3=function(Y,S){for(var P=Y.split("%s"),u="",W=Array.prototype.slice.call(arguments,1);W.length&&P.length>1;)u+=P.shift()+W.shift();return u+P.join("%s")};
_.UW=function(Y){return encodeURIComponent(String(Y))};
SH=function(Y){return decodeURIComponent(Y.replace(/\+/g," "))};
On=function(Y){LnU.test(Y)&&(Y.indexOf("&")!=-1&&(Y=Y.replace(G7K,"&amp;")),Y.indexOf("<")!=-1&&(Y=Y.replace(hIa,"&lt;")),Y.indexOf(">")!=-1&&(Y=Y.replace(v7K,"&gt;")),Y.indexOf('"')!=-1&&(Y=Y.replace(D_9,"&quot;")),Y.indexOf("'")!=-1&&(Y=Y.replace(Icu,"&#39;")),Y.indexOf("\x00")!=-1&&(Y=Y.replace(ach,"&#0;")));return Y};
kJL=function(Y){var S={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var P=_.Pa.document.createElement("div");return Y.replace(Qh6,function(u,W){var m=S[u];if(m)return m;W.charAt(0)=="#"&&(W=Number("0"+W.slice(1)),isNaN(W)||(m=String.fromCharCode(W)));m||(_.a9(P,Kh(u+" ")),m=P.firstChild.nodeValue.slice(0,-1));return S[u]=m})};
MKJ=function(Y){return Y.replace(/&([^;]+);/g,function(S,P){switch(P){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return P.charAt(0)!="#"||(P=Number("0"+P.slice(1)),isNaN(P))?S:String.fromCharCode(P)}})};
Qh6=/&([^;\s<&]+);?/g;_.vnh=function(Y){return String(Y).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.yum=String.prototype.repeat?function(Y,S){return Y.repeat(S)}:function(Y,S){return Array(S+1).join(Y)};
_.Sm=function(Y,S){if(!Number.isFinite(Y))return String(Y);Y=String(Y);var P=Y.indexOf(".");P===-1&&(P=Y.length);var u=Y[0]==="-"?"-":"";u&&(Y=Y.substring(1));return u+(0,_.yum)("0",Math.max(0,S-P))+Y};
s_=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.S5()).toString(36)};
ZC=function(Y){for(var S=0,P=0;P<Y.length;++P)S=31*S+Y.charCodeAt(P)>>>0;return S};
_.T5=function(Y){return String(Y).replace(/\-([a-z])/g,function(S,P){return P.toUpperCase()})};
_.b6=function(Y){return String(Y).replace(/([A-Z])/g,"-$1").toLowerCase()};
N13=function(Y){return Y.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(S,P,u){return P+u.toUpperCase()})};var H8d=function(){this.names=new Map};
H8d.prototype.getName=function(Y){var S=this.names.get(Y);if(S)return S;var P;S=(P=Y.description)!=null?P:s_();this.names.set(Y,S);return S};var VKd=function(Y){var S=Error.call(this,Y?Y.length+" errors occurred during unsubscription:\n"+Y.map(function(P,u){return u+1+") "+P.toString()}).join("\n  "):"");
this.message=S.message;"stack"in S&&(this.stack=S.stack);this.errors=Y;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.r(VKd,Error);var Xm=function(Y){this.initialTeardown=Y;this.closed=!1;this._teardowns=this._parentage=null};
_.z=Xm.prototype;
_.z.unsubscribe=function(){if(!this.closed){this.closed=!0;var Y=this._parentage;if(Array.isArray(Y))for(var S=_.n(Y),P=S.next();!P.done;P=S.next())P.value.remove(this);else Y==null||Y.remove(this);S=this.initialTeardown;if(dE(S))try{S()}catch(m){var u=m instanceof VKd?m.errors:[m]}var W=this._teardowns;if(W)for(this._teardowns=null,S=_.n(W),P=S.next();!P.done;P=S.next()){P=P.value;try{dE(P)?P():P.unsubscribe()}catch(m){P=void 0,u=(P=u)!=null?P:[],m instanceof VKd?u=[].concat(_.cz(u),_.cz(m.errors)):
u.push(m)}}if(u)throw new VKd(u);}};
_.z.add=function(Y){if(Y&&Y!==this)if(this.closed)dE(Y)?Y():Y.unsubscribe();else{if(Y instanceof Xm){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}var S;(this._teardowns=(S=this._teardowns)!=null?S:[]).push(Y)}};
_.z._hasParent=function(Y){var S=this._parentage;return S===Y||Array.isArray(S)&&S.includes(Y)};
_.z._addParent=function(Y){var S=this._parentage;this._parentage=Array.isArray(S)?(S.push(Y),S):S?[S,Y]:Y};
_.z._removeParent=function(Y){var S=this._parentage;S===Y?this._parentage=null:Array.isArray(S)&&s4(S,Y)};
_.z.remove=function(Y){var S=this._teardowns;S&&s4(S,Y);Y instanceof Xm&&Y._removeParent(this)};
var ehL=new Xm;ehL.closed=!0;Xm.JSC$6945_EMPTY=ehL;var Gch=function(){setTimeout.apply(null,_.cz(_.Ch.apply(0,arguments)))};var P9=function(Y){Xm.call(this);this.JSC$6950_isStopped=!1;this.destination=Y instanceof P9?Y:new ud(!Y||dE(Y)?{next:Y!=null?Y:void 0}:Y);rY1(Y)&&Y.add(this)};
_.r(P9,Xm);P9.JSC$6945_EMPTY=Xm.JSC$6945_EMPTY;P9.create=function(Y,S,P){return new W9(Y,S,P)};
_.z=P9.prototype;_.z.next=function(Y){this.JSC$6950_isStopped||this._next(Y)};
_.z.error=function(Y){this.JSC$6950_isStopped||(this.JSC$6950_isStopped=!0,this._error(Y))};
_.z.complete=function(){this.JSC$6950_isStopped||(this.JSC$6950_isStopped=!0,this._complete())};
_.z.unsubscribe=function(){this.closed||(this.JSC$6950_isStopped=!0,Xm.prototype.unsubscribe.call(this))};
_.z._next=function(Y){this.destination.next(Y)};
_.z._error=function(Y){this.destination.error(Y);this.unsubscribe()};
_.z._complete=function(){this.destination.complete();this.unsubscribe()};
var ud=function(Y){this.partialObserver=Y};
ud.prototype.next=function(Y){var S=this.partialObserver;if(S.next)try{S.next(Y)}catch(P){iB(P)}};
ud.prototype.error=function(Y){var S=this.partialObserver;if(S.error)try{S.error(Y)}catch(P){iB(P)}else iB(Y)};
ud.prototype.complete=function(){var Y=this.partialObserver;if(Y.complete)try{Y.complete()}catch(S){iB(S)}};
var W9=function(Y,S,P){P9.call(this);var u;dE(Y)||!Y?u={next:Y!=null?Y:void 0,error:S!=null?S:void 0,complete:P!=null?P:void 0}:u=Y;this.destination=new ud(u)};
_.r(W9,P9);W9.JSC$6945_EMPTY=P9.JSC$6945_EMPTY;W9.create=P9.create;var Q3=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Aw=function(Y){Y&&(this._subscribe=Y)};
_.z=Aw.prototype;_.z.lift=function(Y){var S=new Aw;S.source=this;S.operator=Y;return S};
_.z.subscribe=function(Y,S,P){Y=Y&&Y instanceof P9||Y&&dE(Y.next)&&dE(Y.error)&&dE(Y.complete)&&rY1(Y)?Y:new W9(Y,S,P);S=this.operator;P=this.source;Y.add(S?S.call(Y,P):P?this._subscribe(Y):this._trySubscribe(Y));return Y};
_.z._trySubscribe=function(Y){try{return this._subscribe(Y)}catch(S){Y.error(S)}};
_.z.forEach=function(Y,S){var P=this;S=vEE(S);return new S(function(u,W){var m=P.subscribe(function(J){try{Y(J)}catch(c){W(c),m==null||m.unsubscribe()}},W,u)})};
_.z._subscribe=function(Y){var S;return(S=this.source)==null?void 0:S.subscribe(Y)};
Aw.prototype[Q3]=function(){return this};
Aw.prototype.pipe=function(){var Y=_.Ch.apply(0,arguments);return Y.length?hLa(Y)(this):this};
Aw.create=function(Y){return new Aw(Y)};var O8U=function(){var Y=Error.call(this,"object unsubscribed");this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.r(O8U,Error);var yw=function(){this.observers=[];this.hasError=this.JSC$6966_isStopped=this.closed=!1;this.thrownError=null};
_.r(yw,Aw);_.z=yw.prototype;_.z.lift=function(Y){var S=new z2(this,this);S.operator=Y;return S};
_.z._throwIfClosed=function(){if(this.closed)throw new O8U;};
_.z.next=function(Y){this._throwIfClosed();if(!this.JSC$6966_isStopped){var S=this.observers.slice();S=_.n(S);for(var P=S.next();!P.done;P=S.next())P.value.next(Y)}};
_.z.error=function(Y){this._throwIfClosed();if(!this.JSC$6966_isStopped){this.hasError=this.JSC$6966_isStopped=!0;this.thrownError=Y;for(var S=this.observers;S.length;)S.shift().error(Y)}};
_.z.complete=function(){this._throwIfClosed();if(!this.JSC$6966_isStopped){this.JSC$6966_isStopped=!0;for(var Y=this.observers;Y.length;)Y.shift().complete()}};
_.z.unsubscribe=function(){this.JSC$6966_isStopped=this.closed=!0;this.observers=null};
_.z._trySubscribe=function(Y){this._throwIfClosed();return Aw.prototype._trySubscribe.call(this,Y)};
_.z._subscribe=function(Y){this._throwIfClosed();this._checkFinalizedStatuses(Y);return this._innerSubscribe(Y)};
_.z._innerSubscribe=function(Y){var S=this,P=this.JSC$6966_isStopped,u=this.observers;return this.hasError||P?Xm.JSC$6945_EMPTY:(u.push(Y),new Xm(function(){return s4(S.observers,Y)}))};
_.z._checkFinalizedStatuses=function(Y){var S=this.thrownError,P=this.JSC$6966_isStopped;this.hasError?Y.error(S):P&&Y.complete()};
yw.create=function(Y,S){return new z2(Y,S)};
var z2=function(Y,S){yw.call(this);this.destination=Y;this.source=S};
_.r(z2,yw);z2.create=yw.create;z2.prototype.next=function(Y){var S,P;(S=this.destination)==null||(P=S.next)==null||P.call(S,Y)};
z2.prototype.error=function(Y){var S,P;(S=this.destination)==null||(P=S.error)==null||P.call(S,Y)};
z2.prototype.complete=function(){var Y,S;(Y=this.destination)==null||(S=Y.complete)==null||S.call(Y)};
z2.prototype._subscribe=function(Y){var S,P;return(P=(S=this.source)==null?void 0:S.subscribe(Y))!=null?P:Xm.JSC$6945_EMPTY};var D0=function(Y){yw.call(this);this._value=Y};
_.r(D0,yw);D0.create=yw.create;D0.prototype._subscribe=function(Y){var S=yw.prototype._subscribe.call(this,Y);!S.closed&&Y.next(this._value);return S};
D0.prototype.getValue=function(){var Y=this.thrownError,S=this._value;if(this.hasError)throw Y;this._throwIfClosed();return S};
D0.prototype.next=function(Y){yw.prototype.next.call(this,this._value=Y)};
_.y6.Object.defineProperties(D0.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Ea=new Aw(function(Y){return Y.complete()});var U4=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var sNa=function(Y){return Y&&typeof Y.length==="number"&&typeof Y!=="function"};var Y6_={now:function(){return(Y6_.delegate||Date).now()},
delegate:void 0};var sa=function(Y,S,P){Y=Y===void 0?Infinity:Y;S=S===void 0?Infinity:S;P=P===void 0?Y6_:P;yw.call(this);this.JSC$6988_bufferSize=Y;this.windowTime=S;this.timestampProvider=P;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=S===Infinity;this.JSC$6988_bufferSize=Math.max(1,Y);this.windowTime=Math.max(1,S)};
_.r(sa,yw);sa.create=yw.create;sa.prototype.next=function(Y){var S=this.buffer,P=this.infiniteTimeWindow,u=this.timestampProvider,W=this.windowTime;this.JSC$6966_isStopped||(S.push(Y),!P&&S.push(u.now()+W));S6S(this);yw.prototype.next.call(this,Y)};
sa.prototype._subscribe=function(Y){this._throwIfClosed();S6S(this);for(var S=this._innerSubscribe(Y),P=this.infiniteTimeWindow,u=this.buffer.slice(),W=0;W<u.length&&!Y.closed;W+=P?1:2)Y.next(u[W]);this._checkFinalizedStatuses(Y);return S};
var S6S=function(Y){var S=Y.JSC$6988_bufferSize,P=Y.timestampProvider,u=Y.buffer;Y=Y.infiniteTimeWindow;var W=(Y?1:2)*S;S<Infinity&&W<u.length&&u.splice(0,u.length-W);if(!Y){S=P.now();P=0;for(Y=1;Y<u.length&&u[Y]<=S;Y+=2)P=Y;P&&u.splice(0,P+1)}};var uiJ=function(Y,S){S=S===void 0?Pf_:S;this.schedulerActionCtor=Y;this.now=S};
uiJ.prototype.schedule=function(Y,S,P){S=S===void 0?0:S;return(new this.schedulerActionCtor(this,Y)).schedule(P,S)};
var Pf_=Y6_.now;var hE$=function(){var Y=Error.call(this,"no elements in sequence");this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.r(hE$,Error);var jY=function(Y,S,P,u,W){P9.call(this,Y);this.onUnsubscribe=W;S&&(this._next=function(m){try{S(m)}catch(J){this.destination.error(J)}});
P&&(this._error=function(m){try{P(m)}catch(J){this.destination.error(J)}this.unsubscribe()});
u&&(this._complete=function(){try{u()}catch(m){this.destination.error(m)}this.unsubscribe()})};
_.r(jY,P9);jY.JSC$6945_EMPTY=P9.JSC$6945_EMPTY;jY.create=P9.create;jY.prototype.unsubscribe=function(){var Y;this.closed||(Y=this.onUnsubscribe)!=null&&Y.call(this);P9.prototype.unsubscribe.call(this)};var p7=function(Y,S){this.source=Y;this.subjectFactory=S;this._subject=null;this._refCount=0;this._connection=null};
_.r(p7,Aw);p7.create=Aw.create;p7.prototype._subscribe=function(Y){return Wht(this).subscribe(Y)};
var Wht=function(Y){var S=Y._subject;if(!S||S.JSC$6966_isStopped)Y._subject=Y.subjectFactory();return Y._subject};
p7.prototype._teardown=function(){this._refCount=0;var Y=this._connection;this._subject=this._connection=null;Y==null||Y.unsubscribe()};
p7.prototype.connect=function(){var Y=this,S=this._connection;if(!S){S=this._connection=new Xm;var P=Wht(this);S.add(this.source.subscribe(new jY(P,void 0,function(u){Y._teardown();P.error(u)},function(){Y._teardown();
P.complete()},function(){return Y._teardown()})));
S.closed&&(this._connection=null,S=Xm.JSC$6945_EMPTY)}return S};var Mch=Array.isArray;var NXE=Array.isArray,zUi=Object,HSh=zUi.getPrototypeOf,Vcf=zUi.prototype,eLE=zUi.keys;var xt=function(Y,S,P){P9.call(this,Y);this._next=S;this.shouldComplete=P};
_.r(xt,P9);xt.JSC$6945_EMPTY=P9.JSC$6945_EMPTY;xt.create=P9.create;xt.prototype._complete=function(){this.shouldComplete()?P9.prototype._complete.call(this):this.unsubscribe()};var mDE=["addListener","removeListener"],zEJ=["addEventListener","removeEventListener"],j9h=["on","off"];var m0=function(){Xm.call(this)};
_.r(m0,Xm);m0.JSC$6945_EMPTY=Xm.JSC$6945_EMPTY;m0.prototype.schedule=function(){return this};var mL_=function(Y,S){return setInterval.apply(null,[Y,S].concat(_.cz(_.Ch.apply(2,arguments))))};var nX=function(Y,S){Xm.call(this);this.scheduler=Y;this.work=S;this.pending=!1};
_.r(nX,m0);nX.JSC$6945_EMPTY=m0.JSC$6945_EMPTY;nX.prototype.schedule=function(Y,S){S=S===void 0?0:S;if(this.closed)return this;this.state=Y;Y=this.id;var P=this.scheduler;Y!=null&&(this.id=n_J(this,Y,S));this.pending=!0;this.delay=S;this.id=this.id||this.requestAsyncId(P,this.id,S);return this};
nX.prototype.requestAsyncId=function(Y,S,P){P=P===void 0?0:P;return mL_(Y.flush.bind(Y,this),P)};
var n_J=function(Y,S,P){P=P===void 0?0:P;if(P!=null&&Y.delay===P&&Y.pending===!1)return S;clearInterval(S)};
nX.prototype.execute=function(Y,S){if(this.closed)return Error("la");this.pending=!1;if(Y=this._execute(Y,S))return Y;this.pending===!1&&this.id!=null&&(this.id=n_J(this,this.id,null))};
nX.prototype._execute=function(Y){var S=!1;try{this.work(Y)}catch(u){S=!0;var P=!!u&&u||Error(u)}if(S)return this.unsubscribe(),P};
nX.prototype.unsubscribe=function(){if(!this.closed){var Y=this.id,S=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;s4(S,this);Y!=null&&(this.id=n_J(this,Y,null));this.delay=null;m0.prototype.unsubscribe.call(this)}};var jst=function(Y,S){S=S===void 0?Pf_:S;uiJ.call(this,Y,S);this.actions=[];this.active=!1;this.scheduled=void 0};
_.r(jst,uiJ);jst.prototype.flush=function(Y){var S=this.actions;if(this.active)S.push(Y);else{var P;this.active=!0;do if(P=Y.execute(Y.state,Y.delay))break;while(Y=S.shift());this.active=!1;if(P){for(;Y=S.shift();)Y.unsubscribe();throw P;}}};var Bk=new Aw(Zi);var JwU=Array.isArray;var jm=function(Y,S){nX.call(this,Y,S);this.scheduler=Y;this.work=S};
_.r(jm,nX);jm.JSC$6945_EMPTY=nX.JSC$6945_EMPTY;jm.prototype.schedule=function(Y,S){S=S===void 0?0:S;if(S>0)return nX.prototype.schedule.call(this,Y,S);this.delay=S;this.state=Y;this.scheduler.flush(this);return this};
jm.prototype.execute=function(Y,S){return S>0||this.closed?nX.prototype.execute.call(this,Y,S):this._execute(Y,S)};
jm.prototype.requestAsyncId=function(Y,S,P){P=P===void 0?0:P;return P!=null&&P>0||P==null&&this.delay>0?nX.prototype.requestAsyncId.call(this,Y,S,P):Y.flush(this)};var Jmf=function(){jst.apply(this,arguments)};
_.r(Jmf,jst);var QNh=new Jmf(jm);var Bdu=function(){this.performanceMonitor=new gYt;this.queue=new $UU;this.internalSymbol=Symbol();this.debugNames=new H8d};
Bdu.prototype.getOnBackgrounded=function(){return Bk};
_.y6.Object.defineProperties(Bdu.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var J_=function(Y,S){S=Error.call(this,S?Y+": "+S:String(Y));this.message=S.message;"stack"in S&&(this.stack=S.stack);this.code=Y;this.__proto__=J_.prototype;this.name=String(Y)};
_.r(J_,Error);var ck=function(Y){J_.call(this,1E3,'sfr:"'+Y+'"');this.measurementStrategyFailureReason=Y;this.__proto__=ck.prototype};
_.r(ck,J_);var Cx=function(){J_.call(this,1003);this.__proto__=Cx.prototype};
_.r(Cx,J_);var B9=function(){J_.call(this,1009);this.__proto__=B9.prototype};
_.r(B9,J_);var cm3=function(){J_.call(this,1011);this.__proto__=cm3.prototype};
_.r(cm3,J_);var Cfs=function(){J_.call(this,1007);this.__proto__=Cx.prototype};
_.r(Cfs,J_);var m8=function(Y){J_.call(this,1004,String(Y));this.inputObservableIndex=Y;this.__proto__=m8.prototype};
_.r(m8,J_);var lDa=function(Y){J_.call(this,1010,Y);this.__proto__=nx.prototype};
_.r(lDa,J_);var nx=function(Y){J_.call(this,1005,Y);this.__proto__=nx.prototype};
_.r(nx,J_);var q6f=function(Y){var S=_.Ch.apply(1,arguments),P=this;this.orderedFactories=[];this.orderedFactories.push(Y);S.forEach(function(u){P.orderedFactories.push(u)})};
q6f.prototype.isSupported=function(Y){return this.orderedFactories.some(function(S){return S.isSupported(Y)})};
q6f.prototype.makeBeacon=function(Y,S){for(var P=0;P<this.orderedFactories.length;P++)if(this.orderedFactories[P].isSupported(S))return this.orderedFactories[P].makeBeacon(Y,S);throw new B9;};var ggf=Symbol("ma"),RUm=Symbol("na"),rQ=function(Y,S){this.value=Y;this.timeline=S},$t=function(Y,S){if(S.timeline!==Y.timeline)throw new Cfs;
return Y.value-S.value};
_.z=rQ.prototype;_.z.equals=function(Y){return $t(this,Y)===0};
_.z.maximum=function(Y){if(Y.timeline!==this.timeline)throw new Cfs;return this.value>=Y.value?this:Y};
_.z.round=function(){return new rQ(Math.round(this.value),this.timeline)};
_.z.add=function(Y){return new rQ(this.value+Y,this.timeline)};
_.z.toString=function(){return String(this.value)};var c9=function(Y,S){this.context=Y;this.JSC$7072_pinger=S};
c9.prototype.isSupported=function(Y){return this.JSC$7072_pinger.isSupported(Y)};
c9.prototype.makeBeacon=function(Y,S){if(!this.isSupported(S))throw new B9;return new CX(this.context,this.JSC$7072_pinger,S!=null?S:void 0,Y)};
var CX=function(Y,S,P,u){var W=this;this.JSC$7078_pinger=S;this.properties=P;this.url=u;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var m;this.method=(m=P==null?void 0:P.beaconMethod)!=null?m:"GET";this.backgroundedSubscription=Y.getOnBackgrounded().subscribe(function(){W.sendNow()})};
CX.prototype.deactivate=function(){this.internalIsPending=!1};
CX.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7078_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var Y,S;this.JSC$7078_pinger.pingWithHeadersAndBody((Y=this.properties)!=null?Y:{},this.customHeaders,(S=this.body)!=null?S:"",this.url)}else this.JSC$7078_pinger.ping(this.url);this.internalIsPending=!1}catch(P){}else this.internalIsPending=!1};
CX.prototype.setHeader=function(Y){this.customHeaders.set(Y,void 0)};
_.y6.Object.defineProperties(CX.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var buJ=function(){for(var Y=_.n(_.Ch.apply(0,arguments)),S=Y.next();!S.done;S=Y.next())if(S=S.value,S.available()){this.timeProvider=S;return}this.timeProvider=new xLu};
_.z=buJ.prototype;_.z.available=function(){return this.timeProvider.available()};
_.z.now=function(){return this.timeProvider.now()};
_.z.setTimeout=function(Y,S){return this.timeProvider.setTimeout(Y,S)};
_.z.clearTimeout=function(Y){this.timeProvider.clearTimeout(Y)};
_.z.interval=function(Y,S){var P=this.intervalObservable(Y).subscribe(S);return function(){return void P.unsubscribe()}};
_.z.intervalObservable=function(Y){return this.timeProvider.intervalObservable(Y)};
_.y6.Object.defineProperties(buJ.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var xLu=function(){this.timeline=Symbol()};
_.z=xLu.prototype;_.z.available=function(){return!1};
_.z.now=function(){return new rQ(0,this.timeline)};
_.z.setTimeout=function(){return 0};
_.z.clearTimeout=function(){};
_.z.interval=function(){return function(){}};
_.z.intervalObservable=function(){return Bk};var qA=function(Y,S){this.intrinsicFunctionNamespace=Y;this.performanceMonitor=S};
_.z=qA.prototype;_.z.setTimeout=function(Y,S){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,Y),S)};
_.z.clearTimeout=function(Y){this.intrinsicFunctionNamespace.clearTimeout(Y)};
_.z.interval=function(Y,S){var P=this.intervalObservable(Y).subscribe(S);return function(){return void P.unsubscribe()}};
_.z.intervalObservable=function(Y){var S=this;return new Aw(function(P){var u=0,W=S.intrinsicFunctionNamespace.setInterval(function(){P.next(u++)},Y);
return function(){S.intrinsicFunctionNamespace.clearInterval(W)}})};
_.z.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var TdJ=function(Y,S){qA.call(this,Y,S);this.timeline=RUm};
_.r(TdJ,qA);TdJ.prototype.now=function(){return new rQ(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
TdJ.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&qA.prototype.available.call(this)};var Kh_=function(Y,S){qA.call(this,Y,S);this.timeline=ggf};
_.r(Kh_,qA);Kh_.prototype.now=function(){return new rQ(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Kh_.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&qA.prototype.available.call(this)};var fs6=function(Y){this.context=Y;if(E_S===void 0)a:{var S,P,u=(S=Y.global)==null?void 0:(P=S.document)==null?void 0:P.createElement("meta");if(u)try{u.httpEquiv="origin-trial";u.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";Y.global.document.head.append(u);E_S=u;break a}catch(W){}E_S=void 0}},
E_S;
fs6.prototype.isSupported=function(Y){return EU$(this.context)!==void 0&&!(Y==null||!Y.endOfSession)&&!RL(this.context)&&!(Y==null?0:Y.attributionEnabled)&&!(Y==null?0:Y.customHeaders)&&!(Y==null?0:Y.customBody)};
fs6.prototype.makeBeacon=function(Y,S){if(!this.isSupported(S))throw new B9;return new xQ(this.context,Y,S)};
var xQ=function(Y,S,P){this.context=Y;this.properties=P;this.JSC$7105_urlWithoutToken=S;var u;this.beaconMethod=(u=P==null?void 0:P.beaconMethod)!=null?u:"GET";Y=EU$(this.context);if(Y===void 0)throw Error();this.fetchLater=Y;g_i(this,$Ls(this))},g_i=function(Y,S){Y.beaconResult&&Y.beaconResult.activated||(Y.beaconAbort=new AbortController,Y.beaconResult=Y.fetchLater(S,{method:Y.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:Y.beaconAbort.signal,activateAfter:96E4}))},$Ls=function(Y){Y=Y.JSC$7105_urlWithoutToken;
return(Y.slice(-1)[0]==="&"?Y:Y+"&")+"flapi=1"};
xQ.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
xQ.prototype.sendNow=function(){};
xQ.prototype.setHeader=function(){};
_.y6.Object.defineProperties(xQ.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7105_urlWithoutToken},
set:function(Y){this.JSC$7105_urlWithoutToken=Y;Y=$Ls(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);g_i(this,Y)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var rmU=function(Y){this.context=Y};
rmU.prototype.isSupported=function(){return!RL(this.context)&&!!this.context.global.fetch};
rmU.prototype.ping=function(){var Y=this;return f7.apply(null,_.cz(_.Ch.apply(0,arguments).map(function(S){return MD(Y.context.global.fetch(S,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(Bz(function(P){return P.status===200}))}))).pipe(vUf(function(S){return S}),IiJ())};
rmU.prototype.pingWithHeadersAndBody=function(Y,S,P){for(var u=_.Ch.apply(3,arguments),W=this,m=new Headers,J=_.n(S.entries()),c=J.next();!c.done;c=J.next()){var C=_.n(c.value);c=C.next().value;C=C.next().value;m.set(c,C)}var x,b=(x=Y.keepAlive)!=null?x:!1;f7.apply(null,_.cz(u.map(function(T){return MD(W.context.global.fetch(T,Object.assign({},{method:String(Y.beaconMethod),cache:"no-cache"},b?{keepalive:!0}:{},{mode:"no-cors",headers:m,body:P}))).pipe(Bz(function(K){return K.status===200}))}))).pipe(vUf(function(T){return T}),
IiJ())};var G3s,Gih;_.bd=function(){};
_.XE=function(Y){return Y};
G3s=function(Y){var S=S||0;return function(){return Y.apply(this,Array.prototype.slice.call(arguments,0,S))}};
_.T2=function(Y){var S=!1,P;return function(){S||(P=Y(),S=!0);return P}};
_.KX=function(Y,S){var P=0;return function(u){_.Pa.clearTimeout(P);var W=arguments;P=_.Pa.setTimeout(function(){Y.apply(void 0,W)},S)}};
Gih=function(Y,S){var P=0,u=!1,W=[],m=function(){P=0;u&&(u=!1,J())},J=function(){P=_.Pa.setTimeout(m,S);
var c=W;W=[];Y.apply(void 0,c)};
return function(c){W=arguments;P?u=!0:J()}};var v_s=function(){return xY&&TJ?TJ.mobile:!hUL()&&(f8("iPod")||f8("iPhone")||f8("Android")||f8("IEMobile"))},hUL=function(){return xY&&TJ?!TJ.mobile&&(f8("iPad")||f8("Android")||f8("Silk")):f8("iPad")||f8("Android")&&!f8("Mobile")||f8("Silk")};var DL3;_.RY={};DL3="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.RY.add=function(Y,S,P){if(Y!==null&&S in Y)throw Error("pa`"+S);Y[S]=P};
_.RY.clear=function(Y){for(var S in Y)delete Y[S]};
_.RY.clone=function(Y){var S={},P;for(P in Y)S[P]=Y[P];return S};
_.RY.contains=function(Y,S){return wxa(Y,S)};
_.RY.containsKey=function(Y,S){return Y!==null&&S in Y};
_.RY.containsValue=wxa;_.RY.create=s9h;_.RY.createImmutableView=function(Y){var S=Y;Object.isFrozen&&!Object.isFrozen(Y)&&(S=Object.create(Y),Object.freeze(S));return S};
_.RY.createSet=dDJ;_.RY.equals=function(Y,S){for(var P in Y)if(!(P in S)||Y[P]!==S[P])return!1;for(var u in S)if(!(u in Y))return!1;return!0};
_.RY.every=function(Y,S,P){for(var u in Y)if(!S.call(P,Y[u],u,Y))return!1;return!0};
_.RY.extend=function(Y,S){for(var P,u,W=1;W<arguments.length;W++){u=arguments[W];for(P in u)Y[P]=u[P];for(var m=0;m<DL3.length;m++)P=DL3[m],Object.prototype.hasOwnProperty.call(u,P)&&(Y[P]=u[P])}};
_.RY.filter=function(Y,S,P){var u={},W;for(W in Y)S.call(P,Y[W],W,Y)&&(u[W]=Y[W]);return u};
_.RY.findKey=pxU;_.RY.findValue=function(Y,S,P){return(S=pxU(Y,S,P))&&Y[S]};
_.RY.forEach=function(Y,S,P){for(var u in Y)S.call(P,Y[u],u,Y)};
_.RY.get=function(Y,S,P){return Y!==null&&S in Y?Y[S]:P};
_.RY.getAllPropertyNames=function(Y,S,P){if(!Y)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return LpX(Y);for(var u={};Y&&(Y!==Object.prototype||S)&&(Y!==Function.prototype||P);){for(var W=Object.getOwnPropertyNames(Y),m=0;m<W.length;m++)u[W[m]]=!0;Y=Object.getPrototypeOf(Y)}return LpX(u)};
_.RY.getAnyKey=function(Y){for(var S in Y)return S};
_.RY.getAnyValue=function(Y){for(var S in Y)return Y[S]};
_.RY.getCount=function(Y){var S=0,P;for(P in Y)S++;return S};
_.RY.getKeys=LpX;_.RY.getSuperClass=function(Y){return(Y=Object.getPrototypeOf(Y.prototype))&&Y.constructor};
_.RY.getValueByKeys=function(Y,S){var P=_.eK(S),u=P?S:arguments;for(P=P?0:1;P<u.length;P++){if(Y==null)return;Y=Y[u[P]]}return Y};
_.RY.getValues=function(Y){var S=[],P=0,u;for(u in Y)S[P++]=Y[u];return S};
_.RY.isEmpty=function(Y){for(var S in Y)return!1;return!0};
_.RY.isImmutableView=function(Y){return!!Object.isFrozen&&Object.isFrozen(Y)};
_.RY.map=function(Y,S,P){var u={},W;for(W in Y)u[W]=S.call(P,Y[W],W,Y);return u};
_.RY.remove=function(Y,S){var P;(P=S in Y)&&delete Y[S];return P};
_.RY.set=function(Y,S,P){Y[S]=P};
_.RY.setIfUndefined=function(Y,S,P){return S in Y?Y[S]:Y[S]=P};
_.RY.setWithReturnValueIfNotSet=function(Y,S,P){if(S in Y)return Y[S];P=P();return Y[S]=P};
_.RY.some=function(Y,S,P){for(var u in Y)if(S.call(P,Y[u],u,Y))return!0;return!1};
_.RY.transpose=function(Y){var S={},P;for(P in Y)S[Y[P]]=P;return S};
_.RY.unsafeClone=FpE;var Isd,ast,Lhu,wt3,OW,FhL,sss,dLm,Zuu,iu3,o_i;Isd=function(Y,S,P,u,W,m,J){var c="";Y&&(c+=Y+":");P&&(c+="//",S&&(c+=S+"@"),c+=P,u&&(c+=":"+u));W&&(c+=W);m&&(c+="?"+m);J&&(c+="#"+J);return c};
ast=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.HR=function(Y){return Y.match(ast)};
_.hk=function(Y,S){return Y?S?decodeURI(Y):decodeURIComponent(Y):Y};
Lhu=function(Y){Y=_.HR(Y)[1]||null;!Y&&_.Pa.self&&_.Pa.self.location&&(Y=_.Pa.self.location.protocol.slice(0,-1));return Y?Y.toLowerCase():""};
_.eX=function(Y){return _.hk(_.HR(Y)[3]||null,!0)};
_.Cz=function(Y){return _.hk(_.HR(Y)[5]||null,!0)};
_.ca8=function(Y){var S=Y.indexOf("#");return S<0?null:Y.slice(S+1)};
wt3=function(Y){Y=_.HR(Y);return Isd(Y[1],Y[2],Y[3],Y[4])};
_.pt_=function(Y){Y=_.HR(Y);return Isd(Y[1],null,Y[3],Y[4])};
_.A9=function(Y){Y=_.HR(Y);return Isd(null,null,null,null,Y[5],Y[6],Y[7])};
_.Vx=function(Y){var S=Y.indexOf("#");return S<0?Y:Y.slice(0,S)};
OW=function(Y,S){Y=_.HR(Y);S=_.HR(S);return Y[3]==S[3]&&Y[1]==S[1]&&Y[4]==S[4]};
FhL=function(Y,S){if(Y){Y=Y.split("&");for(var P=0;P<Y.length;P++){var u=Y[P].indexOf("="),W=null;if(u>=0){var m=Y[P].substring(0,u);W=Y[P].substring(u+1)}else m=Y[P];S(m,W?SH(W):"")}}};
sss=function(Y){var S=Y.indexOf("#");S<0&&(S=Y.length);var P=Y.indexOf("?");if(P<0||P>S){P=S;var u=""}else u=Y.substring(P+1,S);return[Y.slice(0,P),u,Y.slice(S)]};
dLm=function(Y,S){return S?Y?Y+"&"+S:S:Y};
_.lsu=function(Y,S){if(!S)return Y;Y=sss(Y);Y[1]=dLm(Y[1],S);return Y[0]+(Y[1]?"?"+Y[1]:"")+Y[2]};
_.XtS=function(Y,S,P){if(Array.isArray(S))for(var u=0;u<S.length;u++)_.XtS(Y,String(S[u]),P);else S!=null&&P.push(Y+(S===""?"":"="+_.UW(S)))};
_.R4=function(Y){var S=[],P;for(P in Y)_.XtS(P,Y[P],S);return S.join("&")};
_.NP=function(Y,S){S=_.R4(S);return _.lsu(Y,S)};
_.Eg=function(Y,S,P){P=P!=null?"="+_.UW(P):"";return _.lsu(Y,S+P)};
Zuu=function(Y,S,P,u){for(var W=P.length;(S=Y.indexOf(P,S))>=0&&S<u;){var m=Y.charCodeAt(S-1);if(m==38||m==63)if(m=Y.charCodeAt(S+W),!m||m==61||m==38||m==35)return S;S+=W+1}return-1};
iu3=/#|$/;_.FI=function(Y,S){var P=Y.search(iu3),u=Zuu(Y,0,S,P);if(u<0)return null;var W=Y.indexOf("&",u);if(W<0||W>P)W=P;u+=S.length+1;return SH(Y.slice(u,W!==-1?W:0))};
o_i=/[?&]($|#)/;_.O2=function(Y,S){for(var P=Y.search(iu3),u=0,W,m=[];(W=Zuu(Y,u,S,P))>=0;)m.push(Y.substring(u,W)),u=Math.min(Y.indexOf("&",W)+1||P,P);m.push(Y.slice(u));return m.join("").replace(o_i,"$1")};
_.X_=function(Y,S,P){return _.Eg(_.O2(Y,S),S,P)};
_.tS_=function(Y){var S=sss(window.location.href),P=S[1],u=[];P&&P.split("&").forEach(function(W){var m=W.indexOf("=");m=m>=0?W.slice(0,m):W;Y.hasOwnProperty(m)||u.push(W)});
S[1]=dLm(u.join("&"),_.R4(Y));return S[0]+(S[1]?"?"+S[1]:"")+S[2]};var fX=function(Y,S,P,u,W){this.allowedElements=Y;this.elementPolicies=S;this.allowedGlobalAttributes=P;this.globalAttributePolicies=u;this.globallyAllowedAttributePrefixes=W},Amu=function(Y,S,P){P=Y.elementPolicies.get(P);
return(P==null?0:P.has(S))?P.get(S):Y.allowedGlobalAttributes.has(S)?{policyAction:1}:(P=Y.globalAttributePolicies.get(S))?P:Y.globallyAllowedAttributePrefixes&&[].concat(_.cz(Y.globallyAllowedAttributePrefixes)).some(function(u){return S.indexOf(u)===0})?{policyAction:1}:{policyAction:0}};var UL_="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(" "),
Qsh=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],k3d="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
MSU=[["dir",{policyAction:3,conditions:ec(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:ec(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:ec(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:ec(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],ymL=new fX(new Set(UL_),new Map(Qsh),new Set(k3d),new Map(MSU)),Ndh=new fX(new Set(UL_.concat(["BUTTON",
"INPUT"])),new Map(Qsh),new Set(ec(function(){return k3d.concat(["class","id","name"])})),new Map(ec(function(){return MSU.concat([["style",
{policyAction:1}]])})));var Hu3,VSi,Oud;Hu3=function(Y,S,P,u){this.JSC$7165_sanitizerTable=Y;this.styleElementSanitizer=S;this.styleAttributeSanitizer=P;this.JSC$7165_resourceUrlPolicy=u;this.changes=[]};
_.eUS=function(Y,S){var P=document.implementation.createHTMLDocument("");Y=VSi(Y,S,P);P=P.body;P.appendChild(Y);P=(new XMLSerializer).serializeToString(P);P=P.slice(P.indexOf(">")+1,P.lastIndexOf("</"));return Kh(P)};
VSi=function(Y,S,P){S=Xx8(S,P);S=document.createTreeWalker(S,5,function(c){if(c.nodeType===3)c=1;else if(ihh(c))if(c=Zh8(c),c===null)c=2;else{var C=Y.JSC$7165_sanitizerTable;c=c!=="FORM"&&(C.allowedElements.has(c)||C.elementPolicies.has(c))?1:2}else c=2;return c});
for(var u=S.nextNode(),W=P.createDocumentFragment(),m=W;u!==null;){var J=void 0;if(u.nodeType===3)Y.styleElementSanitizer&&m.nodeName==="STYLE"?(u=Y.styleElementSanitizer(u.data),J=Y.createTextNode(u)):J=Y.createTextNode(u.data);else if(ihh(u))J=Oud(Y,u,P);else throw Error("da");m.appendChild(J);if(u=S.firstChild())m=J;else for(;!(u=S.nextSibling())&&(u=S.parentNode());)m=m.parentNode}return W};
Hu3.prototype.createTextNode=function(Y){return document.createTextNode(Y)};
Oud=function(Y,S,P){var u,W=Zh8(S);P=P.createElement(W);S=S.attributes;for(var m=_.n(S),J=m.next();!J.done;J=m.next()){var c=J.value;J=c.name;c=c.value;var C=Amu(Y.JSC$7165_sanitizerTable,J,W);a:{if(u=C.conditions){u=_.n(u);for(var x=u.next();!x.done;x=u.next()){var b=_.n(x.value);x=b.next().value;b=b.next().value;var T=void 0;if((x=(T=S.getNamedItem(x))==null?void 0:T.value)&&!b.has(x)){u=!1;break a}}}u=!0}if(u)switch(C.policyAction){case 1:Qw(P,J,c);break;case 2:C=_.RL8(c);c=C!==void 0&&i8S.indexOf(C.toLowerCase())!==
-1?c:"about:invalid#zClosurez";Qw(P,J,c);break;case 3:Qw(P,J,c.toLowerCase());break;case 4:Y.styleAttributeSanitizer?(c=Y.styleAttributeSanitizer(c),Qw(P,J,c)):Qw(P,J,c);break;case 5:Y.JSC$7165_resourceUrlPolicy?(C={type:2,attributeName:J,elementName:W},c=lia(c),(c=Y.JSC$7165_resourceUrlPolicy(c,C))&&Qw(P,J,c.toString())):Qw(P,J,c);break;case 6:if(Y.JSC$7165_resourceUrlPolicy){C={type:2,attributeName:J,elementName:W};u=[];c=_.n(c.split(","));for(x=c.next();!x.done;x=c.next())b=_.n(x.value.trim().split(/\s+/,
2)),x=b.next().value,b=b.next().value,u.push({url:x,descriptor:b});c={parts:[]};u=_.n(u);for(x=u.next();!x.done;x=u.next())x=x.value,b=lia(x.url),(b=Y.JSC$7165_resourceUrlPolicy(b,C))&&c.parts.push({url:b.toString(),descriptor:x.descriptor});Qw(P,J,oUX(c))}else Qw(P,J,c)}}return P};
_.Yd6=ec(function(){return new Hu3(ymL)});
_.Sdd=ec(function(){return new Hu3(Ndh)});var Poi=function(){this.calledBuild=!1;this.JSC$7177_sanitizerTable=ymL},uYf=function(){Poi.apply(this,arguments)};
_.r(uYf,Poi);uYf.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new Hu3(this.JSC$7177_sanitizerTable,void 0,void 0,this.JSC$7177_resourceUrlPolicy)};var W5s=/[^#]*/;var l9=function(Y){try{return!!Y&&Y.location.href!=null&&fx(Y,"foo")}catch(S){return!1}},mI3=function(Y){var S=zXi;
if(S)for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&Y(S[P],P,S)},ncJ=function(){var Y=[];
mI3(function(S){Y.push(S)});
return Y},zXi={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"},juh=_.T2(function(){return ncJ()}),BZi=function(){var Y=Jj_("IFRAME"),
S={};
_.Q4(juh(),function(P){Y.sandbox&&Y.sandbox.supports&&Y.sandbox.supports(P)&&(S[P]=!0)});
return S},Jj_=function(Y,S){S=S===void 0?document:S;
return S.createElement(String(Y).toLowerCase())};var gI=function(Y){this.context=Y};
gI.prototype.isSupported=function(Y){return(Y==null?0:Y.attributionEnabled)||(Y==null?void 0:Y.beaconMethod)==="POST"||(Y==null?0:Y.customHeaders)||(Y==null?0:Y.customBody)||(Y==null?0:Y.keepAlive)?!1:!RL(this.context)};
gI.prototype.ping=function(){var Y=this;return zq(_.Ch.apply(0,arguments).map(function(S){try{var P=Y.context.global,u=!1;u=u===void 0?!1:u;P.google_image_requests||(P.google_image_requests=[]);var W=Jj_("IMG",P.document);u&&(W.attributionSrc="");W.src=S;P.google_image_requests.push(W);return!0}catch(m){return!1}}).every(function(S){return S}))};
gI.prototype.pingWithHeadersAndBody=function(Y,S,P){this.ping.apply(this,_.cz(_.Ch.apply(3,arguments)))};var cjf=function(Y){this.context=Y};
cjf.prototype.isSupported=function(Y){return Com&&!RL(this.context)&&AwK(this.context)!==void 0&&!(Y==null?0:Y.attributionEnabled)&&(Y==null?void 0:Y.beaconMethod)!=="POST"&&!(Y==null?0:Y.customHeaders)&&!(Y==null?0:Y.customBody)};
cjf.prototype.makeBeacon=function(Y,S){if(!this.isSupported(S))throw new B9;return new $Q(this.context,Y)};
var Com=!1,$Q=function(Y,S){this.context=Y;this.JSC$7199_urlWithoutToken=S;Y=AwK(this.context);if(Y===void 0)throw Error();this.wrappedBeacon=new Y(qds(this),{})},qds=function(Y){Y=Y.JSC$7199_urlWithoutToken;
return(Y.slice(-1)[0]==="&"?Y:Y+"&")+"pbapi=1"};
$Q.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
$Q.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
$Q.prototype.setHeader=function(){};
_.y6.Object.defineProperties($Q.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7199_urlWithoutToken},
set:function(Y){this.JSC$7199_urlWithoutToken=Y;this.wrappedBeacon.setURL(qds(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(Y){if(Y!=="GET")throw new B9;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var RXd=function(Y){this.context=Y};
RXd.prototype.isSupported=function(Y){if((Y==null?0:Y.attributionEnabled)||(Y==null?void 0:Y.beaconMethod)==="GET"||(Y==null?0:Y.customHeaders)||(Y==null?0:Y.customBody)||(Y==null?0:Y.keepAlive))return!1;var S;return!RL(this.context)&&((S=this.context.global.navigator)==null?void 0:S.sendBeacon)!==void 0};
RXd.prototype.ping=function(){var Y=this;return zq(_.Ch.apply(0,arguments).map(function(S){var P;return(P=Y.context.global.navigator)==null?void 0:P.sendBeacon(S)}).every(function(S){return S}))};
RXd.prototype.pingWithHeadersAndBody=function(Y,S,P){this.ping.apply(this,_.cz(_.Ch.apply(3,arguments)))};var eY=function(Y){this.value=Y},FM=function(Y,S){return zq(Y.value).pipe(Hz(S))},Z0=new eY(!1),KoK=new eY(!0);var GH=function(Y){this.value=Y;this.releasedSubject=new yw};
GH.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.y6.Object.defineProperties(GH.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7212_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var P08=["FRAME","IMG","IFRAME"],Hh9=/^[01](px)?$/,Sah=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},YaK=function(){var Y=new Sah;
Y.crossDomainLoadedDefault=!0;Y.pendingImagesBlockLoad=!0;return Y};var xIt=function(Y,S){var P=JsX(Y);if(P)if(P.onCreativeLoad)P.onCreativeLoad(S);else{var u=S?[S]:[],W=function(m){for(var J=0;J<u.length;++J)try{u[J](1,m)}catch(c){}u={push:function(c){c(1,m)}}};
P.onCreativeLoad=function(m){u.push(m)};
P.setAttribute("data-creative-load-listener","");P.addEventListener("creativeLoad",function(m){W(m.detail)});
_.Pa.addEventListener("message",function(m){jDY(P,W,m)})}};var rI=function(Y,S){var P=this;this.global=Y;this.parentContext=S;this.JSC$7223_onVisibilityChange=this.document?f7(zq(!0),K7(this.document,"visibilitychange")).pipe(Gq(this.parentContext.performanceMonitor,748),Bz(function(){return P.getVisibilityState()}),aD()):zq("visible");
this.document?K7(this.document,"DOMContentLoaded").pipe(Gq(this.parentContext.performanceMonitor,739),ID(1)):zq(yw$("DOMContentLoaded"))},T7J=function(Y){return Y.document!==null&&Y.document.visibilityState!==void 0};
rI.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
rI.prototype.querySelector=function(Y){return this.document?this.document.querySelector(Y):null};
rI.prototype.querySelectorAll=function(Y){return this.document?_.NU(this.document.querySelectorAll(Y)):[]};
rI.prototype.elementFromPoint=function(Y,S){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;Y=this.document.elementFromPoint(Y,S);return Y===null?null:new GH(Y)};
var mZJ=function(Y,S,P){P=P===void 0?!1:P;if(S.ref===void 0||!Y.document)return zq(S).pipe(Gq(Y.parentContext.performanceMonitor,749));var u=new sa(1),W=function(){u.next(S)};
P||xIt(S.ref,W);uOY(S.ref,W);return u.pipe(Gq(Y.parentContext.performanceMonitor,749),ID(1))};
_.y6.Object.defineProperties(rI.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return fx(this.global,"document")?this.global.document||null:null}}});var BQ9=_.Q0(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),cs1=_.Q0(["./reach_worklet.js"]),C0a=_.Q0(["./reach_worklet.js"]),b13=_.Q0(["./reach_worklet.html"]),TZJ=_.Q0(["./reach_worklet.js"]),K5S=_.Q0(["./reach_worklet.js"]);_.kt(b13);_.kt(TZJ);_.kt(K5S);var IY={left:0,top:0,width:0,height:0};var G2;_.wx=function(Y,S,P){return Math.min(Math.max(Y,S),P)};
G2=function(Y,S,P){return Y+P*(S-Y)};_.TH=function(Y,S){this.x=Y!==void 0?Y:0;this.y=S!==void 0?S:0};
_.z=_.TH.prototype;_.z.clone=function(){return new _.TH(this.x,this.y)};
_.z.equals=function(Y){return Y instanceof _.TH&&(this==Y?!0:this&&Y?this.x==Y.x&&this.y==Y.y:!1)};
_.z.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.z.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.z.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.z.translate=function(Y,S){Y instanceof _.TH?(this.x+=Y.x,this.y+=Y.y):(this.x+=Number(Y),typeof S==="number"&&(this.y+=S));return this};
_.z.scale=function(Y,S){this.x*=Y;this.y*=typeof S==="number"?S:Y;return this};_.SZ=function(Y,S){this.width=Y;this.height=S};
_.z=_.SZ.prototype;_.z.clone=function(){return new _.SZ(this.width,this.height)};
_.z.area=function(){return this.width*this.height};
_.z.aspectRatio=function(){return this.width/this.height};
_.z.isEmpty=function(){return!this.area()};
_.z.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.z.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.z.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.z.scale=function(Y,S){this.width*=Y;this.height*=typeof S==="number"?S:Y;return this};var lE=function(Y,S){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=Y===zMY&&S||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=EcU};
lE.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var fIu=function(Y){return Y instanceof lE&&Y.constructor===lE&&Y.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===EcU?Y.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},EcU={},zMY={};
new lE(zMY,"");var Wk,JF,v9,gcu,G1h,rjJ,Kx,vch,II3,DIs,LX,aIt,lI3,dIf,sus,X6U,Z1J,i1m,ocS,rK1,t_i,UIt,QuJ,AjU,h_;Wk=function(Y){return Y?new h_(_.Ey(Y)):E7h||(E7h=new h_)};
_.Mw=function(Y,S){return typeof S==="string"?Y.getElementById(S):S};
JF=function(Y,S){return(S||document).getElementsByTagName(String(Y))};
_.$IU=function(Y){return gcu("yt-formatted-string","paper-input-input",Y)};
v9=function(Y,S,P,u){Y=u||Y;return(S=S&&S!="*"?String(S).toUpperCase():"")||P?Y.querySelectorAll(S+(P?"."+P:"")):Y.getElementsByTagName("*")};
gcu=function(Y,S,P){var u=document,W=Y&&Y!="*"?String(Y).toUpperCase():"";return W||S?(P||u).querySelector(W+(S?"."+S:"")):v9(u,Y,S,P)[0]||null};
G1h=function(Y,S){_.RY.forEach(S,function(P,u){u=="style"?Y.style.cssText=P:u=="class"?Y.className=P:u=="for"?Y.htmlFor=P:rjJ.hasOwnProperty(u)?Y.setAttribute(rjJ[u],P):_.m$(u,"aria-")||_.m$(u,"data-")?Y.setAttribute(u,P):Y[u]=P})};
rjJ={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"};_.Pk=function(Y){Y=(Y||window).document;Y=Y.compatMode=="CSS1Compat"?Y.documentElement:Y.body;return new _.SZ(Y.clientWidth,Y.clientHeight)};
_.hX6=function(Y){var S=_.Dl(Y);Y=Y.defaultView;return new _.TH(Y.pageXOffset||S.scrollLeft,Y.pageYOffset||S.scrollTop)};
_.Dl=function(Y){return Y.scrollingElement?Y.scrollingElement:_.Jv||Y.compatMode!="CSS1Compat"?Y.body||Y.documentElement:Y.documentElement};
Kx=function(Y){return Y?Y.defaultView:window};
_.IL=function(Y,S,P){return vch(document,arguments)};
vch=function(Y,S){var P=S[1],u=DIs(Y,String(S[0]));P&&(typeof P==="string"?u.className=P:Array.isArray(P)?u.className=P.join(" "):G1h(u,P));S.length>2&&II3(Y,u,S,2);return u};
II3=function(Y,S,P,u){function W(c){c&&S.appendChild(typeof c==="string"?Y.createTextNode(c):c)}
for(;u<P.length;u++){var m=P[u];if(!_.eK(m)||_.SS(m)&&m.nodeType>0)W(m);else{a:{if(m&&typeof m.length=="number"){if(_.SS(m)){var J=typeof m.item=="function"||typeof m.item=="string";break a}if(typeof m==="function"){J=typeof m.item=="function";break a}}J=!1}_.Q4(J?_.NU(m):m,W)}}};
_.nN=function(Y){return DIs(document,Y)};
DIs=function(Y,S){S=String(S);Y.contentType==="application/xhtml+xml"&&(S=S.toLowerCase());return Y.createElement(S)};
_.aL=function(){return document.createTextNode("\n")};
LX=function(Y){if(Y.nodeType!=1)return!1;switch(Y.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
aIt=function(Y,S){II3(_.Ey(Y),Y,arguments,1)};
_.wI=function(Y){for(var S;S=Y.firstChild;)Y.removeChild(S)};
_.pX=function(Y,S){S.parentNode&&S.parentNode.insertBefore(Y,S)};
_.Fs=function(Y,S){S.parentNode&&S.parentNode.insertBefore(Y,S.nextSibling)};
_.jL=function(Y){return Y&&Y.parentNode?Y.parentNode.removeChild(Y):null};
_.L5h=function(Y,S){var P=S.parentNode;P&&P.replaceChild(Y,S)};
_.w6u=function(Y){var S,P=Y.parentNode;if(P&&P.nodeType!=11)if(Y.removeNode)Y.removeNode(!1);else{for(;S=Y.firstChild;)P.insertBefore(S,Y);_.jL(Y)}};
_.sg=function(Y){return Y.children!=void 0?Y.children:Array.prototype.filter.call(Y.childNodes,function(S){return S.nodeType==1})};
_.F5m=function(Y){return Y.nextElementSibling!==void 0?Y.nextElementSibling:_.p6U(Y.nextSibling,!0)};
_.p6U=function(Y,S){for(;Y&&Y.nodeType!=1;)Y=S?Y.nextSibling:Y.previousSibling;return Y};
_.Vn=function(Y){return _.SS(Y)&&Y.nodeType==1};
_.pN=function(Y,S){if(!Y||!S)return!1;if(Y.contains&&S.nodeType==1)return Y==S||Y.contains(S);if(typeof Y.compareDocumentPosition!="undefined")return Y==S||!!(Y.compareDocumentPosition(S)&16);for(;S&&Y!=S;)S=S.parentNode;return S==Y};
lI3=function(Y,S){if(Y==S)return 0;if(Y.compareDocumentPosition)return Y.compareDocumentPosition(S)&2?1:-1;if("sourceIndex"in Y||Y.parentNode&&"sourceIndex"in Y.parentNode){var P=Y.nodeType==1,u=S.nodeType==1;if(P&&u)return Y.sourceIndex-S.sourceIndex;var W=Y.parentNode,m=S.parentNode;return W==m?sus(Y,S):!P&&_.pN(W,S)?-1*dIf(Y,S):!u&&_.pN(m,Y)?dIf(S,Y):(P?Y.sourceIndex:W.sourceIndex)-(u?S.sourceIndex:m.sourceIndex)}u=_.Ey(Y);P=u.createRange();P.selectNode(Y);P.collapse(!0);Y=u.createRange();Y.selectNode(S);
Y.collapse(!0);return P.compareBoundaryPoints(_.Pa.Range.START_TO_END,Y)};
dIf=function(Y,S){var P=Y.parentNode;if(P==S)return-1;for(;S.parentNode!=P;)S=S.parentNode;return sus(S,Y)};
sus=function(Y,S){for(;S=S.previousSibling;)if(S==Y)return-1;return 1};
X6U=function(Y){var S,P=arguments.length;if(!P)return null;if(P==1)return arguments[0];var u=[],W=Infinity;for(S=0;S<P;S++){for(var m=[],J=arguments[S];J;)m.unshift(J),J=J.parentNode;u.push(m);W=Math.min(W,m.length)}m=null;for(S=0;S<W;S++){J=u[0][S];for(var c=1;c<P;c++)if(J!=u[c][S])return m;m=J}return m};
_.Ey=function(Y){return Y.nodeType==9?Y:Y.ownerDocument||Y.document};
Z1J=function(Y){return Y.contentDocument||Y.contentWindow.document};
_.dI=function(Y,S){if("textContent"in Y)Y.textContent=S;else if(Y.nodeType==3)Y.data=String(S);else if(Y.firstChild&&Y.firstChild.nodeType==3){for(;Y.lastChild!=Y.firstChild;)Y.removeChild(Y.lastChild);Y.firstChild.data=String(S)}else _.wI(Y),Y.appendChild(_.Ey(Y).createTextNode(String(S)))};
i1m={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};ocS={IMG:" ",BR:"\n"};rK1=function(Y){var S;Y.tagName=="A"&&Y.hasAttribute("href")||Y.tagName=="INPUT"||Y.tagName=="TEXTAREA"||Y.tagName=="SELECT"||Y.tagName=="BUTTON"?S=!Y.disabled&&(!Y.hasAttribute("tabindex")||t_i(Y)):S=Y.hasAttribute("tabindex")&&t_i(Y);return S};
t_i=function(Y){Y=Y.tabIndex;return typeof Y==="number"&&Y>=0&&Y<32768};
UIt=function(Y){var S=[];AjU(Y,S,!0);Y=S.join("");Y=Y.replace(/ \xAD /g," ").replace(/\xAD/g,"");Y=Y.replace(/\u200B/g,"");Y=Y.replace(/ +/g," ");Y!=" "&&(Y=Y.replace(/^\s*/,""));return Y};
QuJ=function(Y){var S=[];AjU(Y,S,!1);return S.join("")};
AjU=function(Y,S,P){if(!(Y.nodeName in i1m))if(Y.nodeType==3)P?S.push(String(Y.nodeValue).replace(/(\r\n|\r|\n)/g,"")):S.push(Y.nodeValue);else if(Y.nodeName in ocS)S.push(ocS[Y.nodeName]);else for(Y=Y.firstChild;Y;)AjU(Y,S,P),Y=Y.nextSibling};
_.k1m=function(Y,S,P){if(!S&&!P)return null;var u=S?String(S).toUpperCase():null;return _.rh(Y,function(W){return(!u||W.nodeName==u)&&(!P||typeof W.className==="string"&&_.Au(W.className.split(/\s+/),P))},!0)};
_.rh=function(Y,S,P){Y&&!P&&(Y=Y.parentNode);for(P=0;Y;){if(S(Y))return Y;Y=Y.parentNode;P++}return null};
h_=function(Y){this.JSC$7241_document_=Y||_.Pa.document||document};
_.z=h_.prototype;_.z.getElement=function(Y){return _.Mw(this.JSC$7241_document_,Y)};
_.z.$=h_.prototype.getElement;_.z.getElementsByTagName=function(Y,S){return(S||this.JSC$7241_document_).getElementsByTagName(String(Y))};
_.z.getElementsByTagNameAndClass=function(Y,S,P){return v9(this.JSC$7241_document_,Y,S,P)};
_.z.$$=h_.prototype.getElementsByTagNameAndClass;_.z.setProperties=G1h;_.z.JSC$7243_createDom=function(Y,S,P){return vch(this.JSC$7241_document_,arguments)};
_.z.createElement=function(Y){return DIs(this.JSC$7241_document_,Y)};
_.z.createTextNode=function(Y){return this.JSC$7241_document_.createTextNode(String(Y))};
_.z.getWindow=function(){return this.JSC$7241_document_.defaultView};
var u9=function(Y){return _.hX6(Y.JSC$7241_document_)};
_.z=h_.prototype;_.z.appendChild=function(Y,S){Y.appendChild(S)};
_.z.append=aIt;_.z.canHaveChildren=LX;_.z.removeNode=_.jL;_.z.getChildren=_.sg;_.z.contains=_.pN;_.z=Yg.prototype;_.z.getWidth=function(){return this.right-this.left};
_.z.getHeight=function(){return this.bottom-this.top};
_.z.clone=function(){return new Yg(this.top,this.right,this.bottom,this.left)};
_.z.contains=function(Y){return this&&Y?Y instanceof Yg?Y.left>=this.left&&Y.right<=this.right&&Y.top>=this.top&&Y.bottom<=this.bottom:Y.x>=this.left&&Y.x<=this.right&&Y.y>=this.top&&Y.y<=this.bottom:!1};
_.z.expand=function(Y,S,P,u){_.SS(Y)?(this.top-=Y.top,this.right+=Y.right,this.bottom+=Y.bottom,this.left-=Y.left):(this.top-=Y,this.right+=Number(S),this.bottom+=Number(P),this.left-=Number(u));return this};
_.z.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};
_.z.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};
_.z.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};
_.z.translate=function(Y,S){Y instanceof _.TH?(this.left+=Y.x,this.right+=Y.x,this.top+=Y.y,this.bottom+=Y.y):(this.left+=Y,this.right+=Y,typeof S==="number"&&(this.top+=S,this.bottom+=S));return this};
_.z.scale=function(Y,S){S=typeof S==="number"?S:Y;this.left*=Y;this.right*=Y;this.top*=S;this.bottom*=S;return this};var pzE=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(pzE,_.Gc);pzE.prototype.getVersion=function(){return _.aJ(this,2)};var wz1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(wz1,_.Gc);var hAU=function(Y,S){return _.zH(Y,2,S)},Lc8=function(Y,S){return _.zH(Y,3,S)};
wz1.prototype.getModel=function(){return _.aJ(this,4)};
var Dgh=function(Y,S){return _.zH(Y,4,S)},Gqh=function(Y,S){return _.zH(Y,5,S)},aDK=function(Y,S){return _.zH(Y,9,S)},rs9=function(Y,S){return rV(Y,10,S)},$gh=function(Y,S){return _.Hk(Y,11,S)},vth=function(Y,S){return _.zH(Y,1,S)},IDE=function(Y,S){return _.Hk(Y,7,S)};var fD9="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var XM=function(Y,S,P,u){Y=Y===void 0?window:Y;S=S===void 0?null:S;P=P===void 0?new gYt:P;u=u===void 0?qaK():u;Bdu.call(this);var W=this;this.global=Y;this.debugChannel=S;this.performanceMonitor=P;this.onPageHide=Tq(function(){return K7(W.global,"pagehide")}).pipe(Gq(this.performanceMonitor,941));
this.onLoad=Tq(function(){return K7(W.global,"load")}).pipe(Gq(this.performanceMonitor,738),ID(1));
this.onResize=Tq(function(){return K7(W.global,"resize")}).pipe(Gq(this.performanceMonitor,741));
this.onMessage=Tq(function(){return K7(W.global,"message")}).pipe(Gq(this.performanceMonitor,740));
this.document=new rI(this.global,this);this.timeProvider=new buJ(new Kh_(this.intrinsicFunctionNamespace,this.performanceMonitor),new TdJ(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new q6f(new fs6(this),new cjf(this),new c9(this,new rmU(this)),new c9(this,new RXd(this)),new c9(this,new gI(this)))};
_.r(XM,Bdu);var RL=function(Y){var S=Y.global;return!!Y.global.HTMLFencedFrameElement&&!!S.fence&&typeof S.fence.reportEvent==="function"};
_.z=XM.prototype;_.z.reportFencedFrameEvent=function(Y){RL(this)&&this.global.fence.reportEvent(Y)};
_.z.getOnBackgrounded=function(){return this.onPageHide.pipe(Gq(this.performanceMonitor,942),Hz(this.queue),Bz(function(){}))};
_.z.postMessage=function(Y,S,P){P=P===void 0?[]:P;this.global.postMessage(Y,S,P)};
_.z.getWidth=function(){return l9(this.global)?this.global.width:0};
_.z.getHeight=function(){return l9(this.global)?this.global.height:0};
_.z.isMobile=function(){return hUL()||v_s()};
var h$=function(Y,S){try{var P=TQh(S,Y.global,Y.isMobile());return{left:P.left,top:P.top,width:P.getWidth(),height:P.getHeight()}}catch(u){return IY}};
XM.prototype.validate=function(){var Y=this.beaconFactory.isSupported()||RL(this);return this.global&&this.timeProvider.available()&&Y};
var Q9J=function(Y){return(Y=sDu(Y.global))?MD(Y):null};
_.y6.Object.defineProperties(XM.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(Y){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!l9(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}}});_.M_6=!_.nj&&!_.Ih();var ESX=function(Y){return Y};var gS9=function(Y){return Y.pipe(gQ(function(S){var P=S.endOfSessionReason;var u;return((u=S.viewable)==null?void 0:u.extrapolateToNow().value)||P!=void 0}),ID(1),vz())};var ot8=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},tYu=function(Y){var S=Y.sequenceNumber.toString(10).padStart(2,"0");
S=""+Y.startTime+S;Y.sequenceNumber<99&&Y.sequenceNumber++;return S};var bNK=tw(ts(function(Y){return Y.endOfSessionReason===void 0}),Bz(function(Y){return Object.assign({},Y,{timestamps:jZ(Y)})}),gQ(function(Y){var S=Y.viewable;
Y=Y.timestamps;var P;return(P=S==null?void 0:S.extrapolateUsingTimestampMap(Y).value)!=null?P:!1}),Bz(function(Y){var S=Y.beaconFactory;
var P=Y.timestampedExposureHistory;var u=Y.timeOnScreen;var W=Y.binaryContext;Y=Y.timestamps;if(S===void 0||P===void 0||u===void 0||W===void 0)return!1;if(u.extrapolateUsingTimestampMap(Y).value.every(function(m){return m>=0}))return!0;
P=P.map(function(m){return m.timestamp+":"+m.value}).join(",");
u=J$({bin:W,tos:u},Y);S.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+u+("&eh="+P)).sendNow();return!0}),ts(function(Y){return!Y}),vz());var UgY=function(Y){return{id:Y.pingId,mcvt:Y.maxConsecutiveViewTime,p:Y.creativePosition,asp:Y.adSpeedPosition,tm:Y.totalMeasurementTime,tu:Y.totalUnviewedTime,mtos:Y.maxTimeOnScreen,tos:Y.timeOnScreen,v:Y.binaryVersion,bin:Y.binaryContext,avms:Y.measurementStrategy,bs:Y.browserSize,mc:Y.maximumExposure,"if":Y.crossDomainIframeState,vu:Y.delayedImpressionJsState,app:Y.inApp,mse:Y.mraidError,mtop:Y.mraidSituation,itpl:Y.injectedTemplateId,adk:Y.adKey,exk:Y.awbidKey,rs:Y.requestSource,la:Y.isLargeAd,
cr:Y.isContentRecommendationAd,uach:Y.userAgentClientHints,vs:Y.viewState,r:Y.reasonCode,pay:Y.hasCpmavUrl,co:Y.clientPingOrderCounter,rst:Y.adRenderStartTime,rpt:Y.adRenderPeriodTime,isd:Y.initialScrollDepth,lsd:Y.loadedScrollDepth,context:Y.errorContext,msg:Y.errorMessage,stack:Y.errorStack,name:Y.errorName,ec:Y.hasElementChanged,sfr:Y.strategyFailureReasons,met:Y.creativeSearchResult,wmsd:Y.webMeasurementStartDiagnostic,pv:Y.pageVisible,epv:Y.eosPageVisible,pbe:Y.inStatefulBeaconExperiment,fle:Y.inFetchLaterBeaconExperiment,
vae:Y.inViewableAttributionExperiment,spb:Y.supportsPendingBeacon,sfl:Y.supportsFetchLater,ffslot:Y.isFencedFrameSlotTurtlex,reach:Y.sharedStorageReachMode,io2:Y.v2VisibilityBitVector,rxdbg:Y.rxDebugger,omida:Y.omidAppId,omidp:Y.omidPartner,omidpv:Y.omidPartnerVersion,omidor:Y.omidOcclusionReasons,omidv:Y.omidVersion,omids:Y.omidSessionType,omidam:Y.omidAccessMode,omidct:Y.omidCreativeType,omidia:Y.omidInApp,omiddc:Y.omidDeviceCategory,omidlat:Y.omidLastActivity,omiddit:Y.omidDeviceIdleTime,qid:Y.errorEscapedQueryId}};var fb9=function(Y){var S=[];return Y.pipe(Bz(function(P){var u=P.beaconFactory,W=P.fetchBeaconFactory,m=P.timeOnScreen,J=P.timeOnScreenUrlPrefixes,c=P.payloadMapper,C=P.timeOnScreenPingId,x=P.timeOnScreenReason,b=P.urlSerializer,T=P.viewable,K=P.hasImpressionFired,G=P.inStatefulBeaconExperiment,v=P.supportsPendingBeacon,a=P.supportsFetchLater,w=P.turtlexReportEventData;if(!P.geometryMeasurable||!K||P.maxTimeOnScreen===void 0||m===void 0||J===void 0||c===void 0||C===void 0||b===void 0||u===void 0)return!1;
if(P.isTurtlex){if(x===void 0)return!1;J=P.reportFencedFrameEvent;if(!J)return!1;J({eventType:"active-view-time-on-screen",eventData:w!=null?w:"",destination:["buyer"]});return!0}if(!(G||a||x))return!1;w=jZ(P);var F;T=(F=T==null?void 0:T.extrapolateUsingTimestampMap(w).value)!=null?F:!1;F=b(Object.assign({},P,{pingId:C,viewState:T?4:3,reasonCode:x!=null?x:"u",payloadMapper:c,urlPrefixes:J}),w);if(G){for(;S.length>J.length;)P=void 0,(P=S.shift())==null||P.deactivate();F.forEach(function(V,M){M>=S.length?
S.push(u.makeBeacon(V)):S[M].url=V});
return v&&W&&x!==void 0?(F.forEach(function(V){W.makeBeacon(V).sendNow()}),!0):x!==void 0}if(v&&W&&x!==void 0)return F.forEach(function(V){W.makeBeacon(V).sendNow()}),!0;
if(a&&W){for(;S.length>J.length;)v=void 0,(v=S.shift())==null||v.deactivate();var U=b(Object.assign({},P,{pingId:C,viewState:T?4:3,reasonCode:x!=null?x:"u",payloadMapper:c,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),w)[0];F.forEach(function(V,M){M>=S.length?S.push(u.makeBeacon(U,{endOfSession:!0})):S[M].url=U});
return x!==void 0?(F.forEach(function(V){W.makeBeacon(V).sendNow()}),!0):x!==void 0}return x!==void 0?(F.forEach(function(V){u.makeBeacon(V).sendNow()}),!0):!1}),ts(function(P){return!P}),vz())};var $Zh=tw(gQ(function(Y){return Y.immediateUrlPrefixes!==void 0&&Y.payloadMapper!==void 0&&Y.urlSerializer!==void 0&&Y.inferredPingId!==void 0&&Y.beaconFactory!==void 0}),gQ(function(Y){return eAa(Y)!==null}),H7X(function(Y){return Y.activeViewUnmeasurableEvent},function(Y){return Y.emit}),Bz(function(Y){if(Y.isTurtlex){var S=Y.reportFencedFrameEvent;
if(S){var P;S({eventType:"active-view-unmeasurable",eventData:(P=Y.turtlexReportEventData)!=null?P:"",destination:["buyer"]})}}else{P=void 0;var u=eAa(Y);if(u==="x"){var W,m=(W=Y.geometricMeasurementErrors)!=null?W:Y.contextValidationErrors;m&&(S=m.stack,P=m.message)}Y.urlSerializer(Object.assign({},Y,{urlPrefixes:Y.immediateUrlPrefixes,payloadMapper:Y.payloadMapper,pingId:Y.inferredPingId,viewState:2,reasonCode:u,errorMessage:P,errorStack:S}),jZ(Y)).forEach(function(J){Y.beaconFactory.makeBeacon(J).sendNow()})}}),
ID(1),vz());var O7f=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var xZX=tw(gQ(function(Y){return Y.payloadMapper!==void 0&&Y.immediateUrlPrefixes!==void 0&&Y.urlSerializer!==void 0&&Y.inferredPingId!==void 0&&Y.beaconFactory!==void 0}),Bz(function(Y){return Object.assign({},Y,{timestamps:jZ(Y)})}),gQ(function(Y){var S=Y.viewable;
var P=Y.hasImpressionFired;Y=Y.timestamps;var u;return!!P&&((u=S==null?void 0:S.extrapolateUsingTimestampMap(Y).value)!=null?u:!1)}),H7X(function(Y){return Y.activeViewViewableEvent},function(Y){return Y.emit}),Bz(function(Y){var S=Y.beaconFactory,P=Y.turtlexReportEventData;
if(Y.isTurtlex){var u=Y.reportFencedFrameEvent;if(!u)return!1;u({eventType:"active-view-viewable",eventData:P!=null?P:"",destination:["buyer"]});return!0}P=Y.urlSerializer(Object.assign({},Y,{urlPrefixes:Y.immediateUrlPrefixes,payloadMapper:Y.payloadMapper,pingId:Y.inferredPingId,viewState:4,reasonCode:"v"}),Y.timestamps);(u=Y.cpmavUrls)&&u.length>0&&Y.viewUrlSerializer&&Y.viewUrlSerializer(u,Y).forEach(function(W){S.makeBeacon(W).sendNow()});
(u=Y.viewableRelayUrls)&&u.length>0&&Y.viewUrlSerializer&&Y.viewUrlSerializer(u,Y).forEach(function(W){S.makeBeacon(W).sendNow()});
P.forEach(function(W){S.makeBeacon(W,{attributionEnabled:Y.isViewableAttributionEnabled}).sendNow()});
return!0}),ts(function(Y){return!Y}),vz());var ogY=Bz(function(Y){return[Y.value.topWindowViewportExternalGeometry.width,Y.value.topWindowViewportExternalGeometry.height]});var vk=function(Y,S){this.callback=Y;this.options=S;this.intersectionObserverV2=this.intersectionObserverV1=null},r$a=function(Y,S){S?Y.intersectionObserverV2||(S=Object.assign({},Y.options,{delay:100,
trackVisibility:!0}),Y.intersectionObserverV2=new IntersectionObserver(Y.callback,S)):Y.intersectionObserverV1||(Y.intersectionObserverV1=new IntersectionObserver(Y.callback,Y.options))},yjJ=function(Y,S){Y=S?Y.intersectionObserverV2:Y.intersectionObserverV1;
if(!Y)throw new cm3;return Y};
vk.prototype.observe=function(Y,S){yjJ(this,Y).observe(S)};
vk.prototype.unobserve=function(Y,S){yjJ(this,Y).unobserve(S)};
vk.prototype.disconnect=function(Y){yjJ(this,Y).disconnect()};
vk.prototype.takeRecords=function(Y){return yjJ(this,Y).takeRecords()};var $g={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:IY,topWindowViewportExternalGeometry:IY,measurementRequests:new yw,elementGeometrySourceName:"ns",elementGeometry:IY,intersectionGeometry:IY,viewportLocalAppOffset:{x:0,y:0}};var ld=function(Y,S,P,u){this.left=Y;this.top=S;this.width=P;this.height=u};
_.z=ld.prototype;_.z.clone=function(){return new ld(this.left,this.top,this.width,this.height)};
_.z.boundingRect=function(Y){var S=Math.max(this.left+this.width,Y.left+Y.width),P=Math.max(this.top+this.height,Y.top+Y.height);this.left=Math.min(this.left,Y.left);this.top=Math.min(this.top,Y.top);this.width=S-this.left;this.height=P-this.top};
_.z.contains=function(Y){return Y instanceof _.TH?Y.x>=this.left&&Y.x<=this.left+this.width&&Y.y>=this.top&&Y.y<=this.top+this.height:this.left<=Y.left&&this.left+this.width>=Y.left+Y.width&&this.top<=Y.top&&this.top+this.height>=Y.top+Y.height};
_.z.distance=function(Y){var S=Y.x<this.left?this.left-Y.x:Math.max(Y.x-(this.left+this.width),0);Y=Y.y<this.top?this.top-Y.y:Math.max(Y.y-(this.top+this.height),0);return Math.sqrt(S*S+Y*Y)};
_.z.getSize=function(){return new _.SZ(this.width,this.height)};
_.z.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};
_.z.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};
_.z.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};
_.z.translate=function(Y,S){Y instanceof _.TH?(this.left+=Y.x,this.top+=Y.y):(this.left+=Y,typeof S==="number"&&(this.top+=S));return this};
_.z.scale=function(Y,S){S=typeof S==="number"?S:Y;this.left*=Y;this.width*=Y;this.top*=S;this.height*=S;return this};var H1s,id,BhE,Zl,YUJ,O1m,SUs,Kw9,PK_,Wz3;_.Xs=function(Y,S,P){if(typeof S==="string")(S=_.NZm(Y,S))&&(Y.style[S]=P);else for(var u in S){P=Y;var W=S[u],m=_.NZm(P,u);m&&(P.style[m]=W)}};
H1s={};_.NZm=function(Y,S){var P=H1s[S];if(!P){var u=_.T5(S);P=u;Y.style[u]===void 0&&(u=(_.Jv?"Webkit":_.j5?"Moz":null)+N13(u),Y.style[u]!==void 0&&(P=u));H1s[S]=P}return P};
_.bJ=function(Y,S){var P=_.Ey(Y);return P.defaultView&&P.defaultView.getComputedStyle&&(Y=P.defaultView.getComputedStyle(Y,null))?Y[S]||Y.getPropertyValue(S)||"":""};
_.w7=function(Y,S){return _.bJ(Y,S)||(Y.currentStyle?Y.currentStyle[S]:null)||Y.style&&Y.style[S]};
_.V__=function(Y){return _.w7(Y,"position")};
id=function(Y,S,P){if(S instanceof _.TH){var u=S.x;S=S.y}else u=S,S=P;Y.style.left=Zl(u,!1);Y.style.top=Zl(S,!1)};
BhE=function(Y){try{return Y.getBoundingClientRect()}catch(S){return{left:0,top:0,right:0,bottom:0}}};
_.gh=function(Y){var S=_.Ey(Y),P=new _.TH(0,0);if(Y==(S?_.Ey(S):document).documentElement)return P;Y=BhE(Y);S=u9(Wk(S));P.x=Y.left+S.x;P.y=Y.top+S.y;return P};
_.eXt=function(Y,S,P){if(S instanceof _.SZ)P=S.height,S=S.width;else if(P==void 0)throw Error("sa");Y.style.width=Zl(S,!0);Y.style.height=Zl(P,!0)};
Zl=function(Y,S){typeof Y=="number"&&(Y=(S?Math.round(Y):Y)+"px");return Y};
YUJ=function(Y){return O1m(Y)};
O1m=function(Y){var S=SUs;if(_.w7(Y,"display")!="none")return S(Y);var P=Y.style,u=P.display,W=P.visibility,m=P.position;P.visibility="hidden";P.position="absolute";P.display="inline";Y=S(Y);P.display=u;P.position=m;P.visibility=W;return Y};
SUs=function(Y){var S=Y.offsetWidth,P=Y.offsetHeight,u=_.Jv&&!S&&!P;return(S===void 0||u)&&Y.getBoundingClientRect?(Y=BhE(Y),new _.SZ(Y.right-Y.left,Y.bottom-Y.top)):new _.SZ(S,P)};
Kw9=function(Y){var S=_.gh(Y);Y=O1m(Y);return new ld(S.x,S.y,Y.width,Y.height)};
PK_=function(Y,S){Y=Y.style;"opacity"in Y?Y.opacity=S:"MozOpacity"in Y?Y.MozOpacity=S:"filter"in Y&&(Y.filter=S===""?"":"alpha(opacity="+Number(S)*100+")")};
_.Zb=function(Y,S){Y.style.display=S?"":"none"};
_.uF_=function(Y){return"rtl"==_.w7(Y,"direction")};
Wz3=function(Y){var S=_.bJ(Y,"marginLeft"),P=_.bJ(Y,"marginRight"),u=_.bJ(Y,"marginTop");Y=_.bJ(Y,"marginBottom");return new Yg(parseFloat(u),parseFloat(P),parseFloat(Y),parseFloat(S))};
_.zLt=function(Y){var S=_.bJ(Y,"borderLeftWidth"),P=_.bJ(Y,"borderRightWidth"),u=_.bJ(Y,"borderTopWidth");Y=_.bJ(Y,"borderBottomWidth");return new Yg(parseFloat(u),parseFloat(P),parseFloat(Y),parseFloat(S))};var m8u=function(Y){return Y.intersectionGeometry.width*Y.intersectionGeometry.height/(Y.elementGeometry.width*Y.elementGeometry.height)},a09=aY(tw(Bz(function(Y){var S;
return(S=Y.exposureOverride)!=null?S:m8u(Y)}),Bz(function(Y){return isFinite(Y)?Y:0}))),l0E=aY(tw(Bz(function(Y){var S;
return(S=Y.exposureOverride)!=null?S:m8u(Y)}),Bz(function(Y){return isFinite(Y)?Y:-1})));var oL=function(Y,S){this.a=Y;this.b=S;if(Y.clock.timeline!==S.clock.timeline)throw Error();};
oL.prototype.equivalentTo=function(Y){return Y instanceof oL?this.a.equivalentTo(Y.a)&&this.b.equivalentTo(Y.b):!1};
oL.prototype.extrapolateToTime=function(Y){var S=this.a.extrapolateToTime(Y).value,P=this.b.extrapolateToTime(Y).value;return{timestamp:Y,value:[S,P]}};
_.y6.Object.defineProperties(oL.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var Y=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),S=this.a.lastMeasurement.timestamp.equals(Y)?this.a.lastMeasurement.value:this.a.extrapolateToTime(Y).value,P=this.b.lastMeasurement.timestamp.equals(Y)?this.b.lastMeasurement.value:this.b.extrapolateToTime(Y).value;return{timestamp:Y,value:[S,P]}}}});var t_=function(Y,S){this.input=Y;this.mapFunction=S;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
t_.prototype.equivalentTo=function(Y){return Y instanceof t_?this.input.equivalentTo(Y.input)&&this.mapFunction===Y.mapFunction:!1};
t_.prototype.extrapolateToTime=function(Y){Y=this.input.extrapolateToTime(Y);return{timestamp:Y.timestamp,value:this.mapFunction(Y.value)}};
_.y6.Object.defineProperties(t_.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var A_=function(){};
A_.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
A_.prototype.extrapolateUsingTimestampMap=function(Y){var S=this.clock.timeline,P,u=(P=Y.get(S))!=null?P:this.clock.now();Y.set(S,u);return this.extrapolateToTime(u)};
A_.prototype.map=function(Y){return new nE6(this,Y)};
A_.prototype.joinWith=function(Y){return new jNJ(this,Y)};
var jNJ=function(){oL.apply(this,arguments);this.map=A_.prototype.map;this.joinWith=A_.prototype.joinWith;this.extrapolateToNow=A_.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=A_.prototype.extrapolateUsingTimestampMap};
_.r(jNJ,oL);var nE6=function(){t_.apply(this,arguments);this.map=A_.prototype.map;this.joinWith=A_.prototype.joinWith;this.extrapolateToNow=A_.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=A_.prototype.extrapolateUsingTimestampMap};
_.r(nE6,t_);var wh=function(Y,S){this.lastMeasurement=S;this.extrapolateToNow=A_.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=A_.prototype.extrapolateUsingTimestampMap;this.map=A_.prototype.map;this.joinWith=A_.prototype.joinWith;this.clock=Y};
wh.prototype.equivalentTo=function(Y){return Y.active};
wh.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.y6.Object.defineProperties(wh.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var ix1=Bz(function(Y){if(Y.value.viewportGeometrySourceName==="omid"){if(Y.value.elementGeometrySourceName==="nio")return"omio";if(Y.value.elementGeometrySourceName==="geo")return"omgeo"}return Y.value.elementGeometrySourceName==="geo"||Y.value.elementGeometrySourceName==="nio"?Y.value.viewportGeometrySourceName:Y.value.elementGeometrySourceName});var vg9=tw(gQ(function(Y){return!isNaN(Y)}),l0(function(Y,S){return isNaN(Y)?S:Math.min(Y,S)},NaN),aD());var L8Y=aY(tw(Bz(function(Y){return Y.intersectionGeometry.width*Y.intersectionGeometry.height/(Y.exposedViewportLocalGeometry.width*Y.exposedViewportLocalGeometry.height)}),Bz(function(Y){return isFinite(Y)?Math.min(1,Y):0})));var ZxX=tw(aY(Bz(function(Y){Y=Y.exposureOverride?Y.elementGeometry.width*Y.elementGeometry.height*Y.exposureOverride/(Y.topWindowViewportExternalGeometry.width*Y.topWindowViewportExternalGeometry.height):Y.intersectionGeometry.width*Y.intersectionGeometry.height/(Y.topWindowViewportExternalGeometry.width*Y.topWindowViewportExternalGeometry.height);return isFinite(Y)?Y:0})));var A$U=function(Y,S){var P=this;this.timeProvider=Y;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=S.pipe(aD()).subscribe(function(u){dh(P);P.measurementRequestObserver=u})},QYh=function(Y,S){dh(Y);
Y.lastMeasurementRequest=Y.timeProvider.setTimeout(function(){var P;return void((P=Y.measurementRequestObserver)==null?void 0:P.next())},S)},dh=function(Y){Y.lastMeasurementRequest!==null&&Y.timeProvider.clearTimeout(Y.lastMeasurementRequest);
Y.lastMeasurementRequest=null};
A$U.prototype.dispose=function(){dh(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var JY3=function(){};var CVa=function(Y,S){this.context=Y;this.strategies=S};
_.r(CVa,JY3);CVa.prototype.buildGeometrySource=function(Y,S){var P=this.strategies.map(function(m){return m.buildGeometrySource(Y,S)}),u=Hx1(P.map(function(m){return m.geometrySource})),W=u.capturedErrors.pipe(BXu());
return{geometrySource:u.chain.pipe(Hz(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:W,strategyErrors:u.capturedErrors}].concat(_.cz(P.map(function(m){return m.additionalOutputs}))))}};
var BXu=function(){return l0(function(Y,S){S instanceof ck?Y.push(S.measurementStrategyFailureReason):Y.push(-1);return Y},[])};var RJh=function(Y,S){this.context=Y;this.poller=S};
_.r(RJh,JY3);RJh.prototype.buildGeometrySource=function(Y,S){var P=VZu(OxJ(this.context,this.poller),C9a(this.context,S.requestSource));return{geometrySource:Nhf(Y.measurableCreative.pipe(P),S.inApp),additionalOutputs:{}}};var q_Y=function(Y,S,P){P=P===void 0?K89(Y,S):P;this.context=Y;this.intersectionObserverStrategy=P};
_.r(q_Y,JY3);q_Y.prototype.buildGeometrySource=function(Y,S){var P=this.intersectionObserverStrategy(S.useV2);return{geometrySource:Nhf(Y.measurableCreative.pipe(P,EgJ(this.context)),S.inApp),additionalOutputs:{}}};var cYL=function(Y,S,P){var u=u===void 0?Symbol():u;this.element=Y;this.immediateUrls=S;this.timeOnScreenUrls=P;this.symbol=u};var sy=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),WoE=Object.freeze([1,.75,sy.exposureThreshold,sy.largeAdExposureThreshold,0]);var IEh=function(Y){var S=S===void 0?36E5:S;var P=P===void 0?!0:P;this.creatives=new yw;this.elementsToUnregister=new yw;this.elementMap=new Map;var u=new XM(window,null);u.beaconFactory=new c9(u,new gI(u));cFa(u,this.creatives,this.elementsToUnregister,Y,S,P).subscribe()},Lda=function(Y,S,P,u){if(!Y.elementMap.has(S)){var W=new GH(S);
Y.elementMap.set(S,W);Y.creatives.next(new cYL(W,P,u))}},aE9=function(Y,S){Y.elementsToUnregister.next(S);
var P=Y.elementMap.get(S);P!==void 0&&(P.release(),Y.elementMap.delete(S))};var OAX=function(Y){var S=Y.url;Y=Y.uaDataValues;this.JSC$7352_url_=S;this.uaDataValues_=Y;this.suid_=(new Date).getTime()-17040672E5},YR9=function(Y){Y=Y.uaDataValues_;
if(!Y)return"";var S=i9("uap",Y.platform)+i9("uapv",Y.platformVersion)+i9("uafv",Y.uaFullVersion)+i9("uaa",Y.architecture)+i9("uam",Y.model)+i9("uab",Y.bitness);Y.fullVersionList&&(S+="&uafvl="+encodeURIComponent(Y.fullVersionList.map(function(P){return encodeURIComponent(P.brand)+";"+encodeURIComponent(P.version)}).join("|")));
Y.wow64!=null&&(S+="&uaw="+Number(Y.wow64));return S.slice(1)};var CKS=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(CKS,_.Gc);CKS.prototype.getId=function(){return _.aJ(this,1)};var Ug=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Ug,_.Gc);Ug.prototype.getSeconds=function(){return Dp(this,1)};
Ug.prototype.setSeconds=function(Y){return _.Bd(this,1,$c(Y),"0")};_.Z_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(_.Z_,_.Gc);_.Z_.prototype.getSeconds=function(){return Dp(this,1)};
_.Z_.prototype.setSeconds=function(Y){return _.Bd(this,1,$c(Y),"0")};
_.qUf=function(Y){var S=Number(wV(Y,1));Y=_.kg(Y,2);return new Date(S*1E3+Y/1E6)};var Qh=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Qh,_.Gc);Qh.prototype.getUrl=function(){return _.aJ(this,1)};
Qh.prototype.setUrl=function(Y){return _.Vi(this,1,Y)};
Qh.prototype.getHeight=function(){return _.kg(this,2)};
Qh.prototype.getWidth=function(){return _.kg(this,3)};var kQ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(kQ,_.Gc);kQ.prototype.getAspectRatio=function(){return IJ(this,1)};
kQ.prototype.setAspectRatio=function(Y){return _.Bd(this,1,_.S_(Y),0)};
kQ.prototype.getDuration=function(){return _.P_(this,Ug,2)};var RLu=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(RLu,_.Gc);var x8J=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(x8J,_.Gc);var bSh=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(bSh,_.Gc);var TXU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(TXU,_.Gc);var Kzs=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Kzs,_.Gc);var EEt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(EEt,_.Gc);var fBS=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(fBS,_.Gc);var gE6=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(gE6,_.Gc);var $8f=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r($8f,_.Gc);var MA=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(MA,_.Gc);var yh=[2,4,5,6,7];var rYd=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(rYd,_.Gc);var Ge=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Ge,_.Gc);_.z=Ge.prototype;_.z.getId=function(){return _.P_(this,CKS,1)};
_.z.getName=function(){return _.aJ(this,2)};
_.z.setDescription=function(Y){return _.Vi(this,3,Y)};
_.z.getUrl=function(){return _.aJ(this,8)};
_.z.setUrl=function(Y){return _.Vi(this,8,Y)};
var NA=function(Y){return _.Uy(Y,Qh,10,_.QI())};
Ge.prototype.getOwner=function(Y){var S=_.mz(this,40,_.p1,3,!0);dd(S,Y);return S[Y]};
Ge.prototype.getVersion=function(){return Dp(this,45)};
var H9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(H9,_.Gc);_.Gcs=[0,JH1,cHX];_.hLt=[0,JH1,cHX];var vEi=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(vEi,_.Gc);var Vh=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Vh,_.Gc);Vh.prototype.getStatus=function(){return _.Lj(this,1)};
Vh.prototype.removeItem=function(Y){return aOf(this,2,Y)};var D8_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(D8_,_.Gc);D8_.prototype.getName=function(){return _.aJ(this,8)};var em=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(em,_.Gc);em.prototype.getCommand=function(){return _.Lj(this,1)};
em.prototype.getSource=function(){return _.P_(this,D8_,2)};
em.prototype.setVisible=function(Y){return _.Ik(this,5,Y)};
em.prototype.removeItem=function(Y){return aOf(this,7,Y)};var IBL=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(IBL,_.Gc);IBL.prototype.getCommand=function(){return _.Lj(this,1)};
IBL.prototype.removeItem=function(Y){return aOf(this,4,Y)};
var aBh=_.M8(IBL);var Og=function(Y,S,P){P=P===void 0?Error():P;var u=Error.call(this);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.code=Y;S+=":";P instanceof Error?(this.message=S+P.message,this.stack=P.stack||""):(this.message=S+String(P),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(Og,Error);_.R6=function(){this.JSC$7410_disposed_=this.JSC$7410_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.R6.prototype.JSC$7410_disposed_=!1;_.R6.prototype.isDisposed=function(){return this.JSC$7410_disposed_};
_.R6.prototype.dispose=function(){this.JSC$7410_disposed_||(this.JSC$7410_disposed_=!0,this.disposeInternal())};
_.R6.prototype[Symbol.dispose]=function(){this.dispose()};
_.Ph=function(Y,S){Y.addOnDisposeCallback(_.gP(_.oY,S))};
_.R6.prototype.addOnDisposeCallback=function(Y,S){this.JSC$7410_disposed_?S!==void 0?Y.call(S):Y():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),S&&(Y=Y.bind(S)),this.onDisposeCallbacks_.push(Y))};
_.R6.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var YM=function(Y){_.R6.call(this);this.wpc=Y};
_.r(YM,_.R6);YM.prototype.mDE=function(){return this.wpc.f()};
YM.prototype.til=function(Y){return this.wpc.c(Y)};
YM.prototype.z8=function(Y){return this.wpc.m(Ib8(Y))};
YM.prototype.m3=function(Y){return this.wpc.mws(Ib8(Y))};
var A$=function(Y){_.R6.call(this);var S=this;this.g6=Y;this.hej="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.uL1=void 0;this.qwe=this.g6.p;this.h9b=this.x1f.bind(this);this.addOnDisposeCallback(function(){return void LzL(S)})};
_.r(A$,_.R6);var wds=function(Y){var S;return _.B(function(P){if(P.nextAddress==1){if(!Y.g6.wpc)throw new Og(30,"NWA");return Y.b4e?P.return(Y.b4e):_.q(P,Y.g6.wpc(),2)}S=P.yieldResult;Y.b4e=new YM(S);return P.return(Y.b4e)})};
A$.prototype.snapshot=function(Y){return this.g6.s(Object.assign({},Y.qf&&{c:Y.qf},Y.nIf&&{s:Y.nIf},Y.qO4!==void 0&&{p:Y.qO4}))};
A$.prototype.x1f=function(Y){this.g6.e(Y)};
A$.prototype.jCE=function(Y,S){return this.g6.c(Y,S,!1)};
var LzL=function(Y){Y.uL1!==void 0&&(Y.hej.forEach(function(S){var P;(P=Y.uL1)==null||P.removeEventListener(S,Y.h9b)}),Y.uL1=void 0)};
A$.prototype.g4f=function(){return this.g6.l()};var pd6,Sj=function(){_.R6.apply(this,arguments);this.yHb=1;this[pd6]=this.dispose};
_.r(Sj,_.R6);Sj.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.yHb++;return this};
Sj.prototype.dispose=function(){--this.yHb||_.R6.prototype.dispose.call(this)};
pd6=Symbol.dispose;var N7$=function(Y){this.lNs=Y;Y.addNewEventMetric("/client_streamz/bg/frs",_.N1("mk"))};
N7$.prototype.record=function(Y,S){this.lNs.record("/client_streamz/bg/frs",Y,S)};
var ONK=function(Y){this.gsT=Y;Y.addNewEventMetric("/client_streamz/bg/wrl",_.N1("mn"),yI("ac"),yI("sc"),_.N1("rk"),_.N1("mk"))};
ONK.prototype.record=function(Y,S,P,u,W,m){this.gsT.record("/client_streamz/bg/wrl",Y,S,P,u,W,m)};
var VLh=function(Y){this.klr=Y;Y.addNewCounter("/client_streamz/bg/ec",_.N1("en"),_.N1("mk"))};
VLh.prototype.increment=function(Y,S){this.klr.JSC$7659_incrementCounter("/client_streamz/bg/ec",Y,S)};
var eJE=function(Y){this.aN9=Y;Y.addNewEventMetric("/client_streamz/bg/el",_.N1("en"),_.N1("mk"))};
eJE.prototype.record=function(Y,S,P){this.aN9.record("/client_streamz/bg/el",Y,S,P)};
var HNa=function(Y){this.d66=Y;Y.addNewCounter("/client_streamz/bg/cec",yI("ec"),_.N1("mk"))};
HNa.prototype.increment=function(Y,S){this.d66.JSC$7659_incrementCounter("/client_streamz/bg/cec",Y,S)};
var YuE=function(Y){this.jDb=Y;Y.addNewCounter("/client_streamz/bg/po/csc",yI("cs"),_.N1("mk"))};
YuE.prototype.increment=function(Y,S){this.jDb.JSC$7659_incrementCounter("/client_streamz/bg/po/csc",Y,S)};
var Sua=function(Y){this.qOk=Y;Y.addNewCounter("/client_streamz/bg/po/ctav",_.N1("av"),_.N1("mk"))};
Sua.prototype.increment=function(Y,S){this.qOk.JSC$7659_incrementCounter("/client_streamz/bg/po/ctav",Y,S)};
var Pyh=function(Y){this.wO9=Y;Y.addNewCounter("/client_streamz/bg/po/cwsc",_.N1("su"),_.N1("mk"))};
Pyh.prototype.increment=function(Y,S){this.wO9.JSC$7659_incrementCounter("/client_streamz/bg/po/cwsc",Y,S)};var DbX=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(DbX,_.Gc);var vdJ=function(Y,S){return _.JY(Y,3,S,O8h)};var Fzd=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Fzd,_.Gc);var sNt=[1,2,3];var d8m=[0,sNt,_.b9Y,C$9,xo$];var lBd=[0,_.Mi,[0,moh,_.Av]];var Xd_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Xd_,_.Gc);var ZS3=[1,2,3];var iSm=[0,ZS3,Blf,nvY,_.yL,lBd];var oEm=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(oEm,_.Gc);var tcm=[0,_.Mi,d8m,iSm];var AYf=[0,[1,2,3],_.yL,[0,_.kn,-1,_.QL],_.yL,[0,_.kn,-1,_.UM,_.QL],_.yL,[0,_.kn]];var U8t=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(U8t,_.Gc);U8t.prototype.JSC$7479_serializeBinary=O1u([0,_.kn,AYf,Tlu,_.Mi,tcm,q0J,RPu]);var QNs=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(QNs,_.Gc);var yYs=function(Y){var S=new U8t;S=_.zH(S,1,Y.JSC$7595_metricName);var P=kci(Y);S=_.JY(S,3,P,_.L1);P=[];for(var u=[],W=_.n(Y.cellMap.keys()),m=W.next();!m.done;m=W.next())u.push(m.value.split(","));for(W=0;W<u.length;W++){m=u[W];for(var J=Y.cellType,c=Y.getCells(m)||[],C=[],x=0;x<c.length;x++){var b=c[x],T=b&&b.cellValue;b=new Xd_;switch(J){case 3:T=Number(T);Number.isFinite(T)&&Rz(b,1,ZS3,$c(T));break;case 2:Rz(b,2,ZS3,_.S_(Number(T)))}C.push(b)}J=C;for(c=0;c<J.length;c++){C=J[c];x=new oEm;C=_.N8(x,
2,C);x=[];b=Mcs(Y);for(T=0;T<b.length;T++){var K=b[T],G=m[T],v=new Fzd;switch(K){case 3:Rz(v,1,sNt,wZ(String(G)));break;case 2:K=Number(G);Number.isFinite(K)&&Rz(v,2,sNt,_.qI(K));break;case 1:Rz(v,3,sNt,H81(G==="true"))}x.push(v)}rV(C,1,x);P.push(C)}}rV(S,4,P);return S};var NXi=function(Y){if(!Y)return"";if(/^about:(?:blank|srcdoc)$/.test(Y))return window.origin||"";Y.indexOf("blob:")===0&&(Y=Y.substring(5));Y=Y.split("#")[0].split("?")[0];Y=Y.toLowerCase();Y.indexOf("//")==0&&(Y=window.location.protocol+Y);/^[\w\-]*:\/\//.test(Y)||(Y=window.location.href);var S=Y.substring(Y.indexOf("://")+3),P=S.indexOf("/");P!=-1&&(S=S.substring(0,P));P=Y.substring(0,Y.indexOf("://"));if(!P)throw Error("ua`"+Y);if(P!=="http"&&P!=="https"&&P!=="chrome-extension"&&P!=="moz-extension"&&
P!=="file"&&P!=="android-app"&&P!=="chrome-search"&&P!=="chrome-untrusted"&&P!=="chrome"&&P!=="app"&&P!=="devtools")throw Error("va`"+P);Y="";var u=S.indexOf(":");if(u!=-1){var W=S.substring(u+1);S=S.substring(0,u);if(P==="http"&&W!=="80"||P==="https"&&W!=="443")Y=":"+W}return P+"://"+S+Y};var Vcs=function(Y,S,P){var u=String(_.Pa.location.href);return u&&Y&&S?[S,HSs(NXi(u),Y,P||null)].join(" "):null},HSs=function(Y,S,P){var u=[],W=[];
if((Array.isArray(P)?2:1)==1)return W=[S,Y],_.Q4(u,function(c){W.push(c)}),eLi(W.join(" "));
var m=[],J=[];_.Q4(P,function(c){J.push(c.key);m.push(c.value)});
P=Math.floor((new Date).getTime()/1E3);W=m.length==0?[P,S,Y]:[m.join(":"),P,S,Y];_.Q4(u,function(c){W.push(c)});
Y=eLi(W.join(" "));Y=[P,Y];J.length==0||Y.push(J.join(""));return Y.join("_")},eLi=function(Y){var S=lb$();
S.update(Y);return S.digestString().toLowerCase()};var Py=function(Y){this.JSC$7490_document_=Y||{cookie:""}},OS6;
_.z=Py.prototype;_.z.isEnabled=function(){if(!_.Pa.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};
_.z.set=function(Y,S,P){var u=!1;if(typeof P==="object"){var W=P.sameSite;u=P.secure||!1;var m=P.domain||void 0;var J=P.path||void 0;var c=P.maxAge}if(/[;=\s]/.test(Y))throw Error("wa`"+Y);if(/[;\r\n]/.test(S))throw Error("xa`"+S);c===void 0&&(c=-1);P=m?";domain="+m:"";J=J?";path="+J:"";u=u?";secure":"";c=c<0?"":c==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+c*1E3)).toUTCString();this.JSC$7490_document_.cookie=Y+"="+S+P+J+c+u+(W!=null?";samesite="+W:"")};
_.z.get=function(Y,S){for(var P=Y+"=",u=(this.JSC$7490_document_.cookie||"").split(";"),W=0,m;W<u.length;W++){m=_.uW(u[W]);if(m.lastIndexOf(P,0)==0)return m.slice(P.length);if(m==Y)return""}return S};
_.z.remove=function(Y,S,P){var u=this.containsKey(Y);this.set(Y,"",{maxAge:0,path:S,domain:P});return u};
_.z.getKeys=function(){return OS6(this).keys};
_.z.getValues=function(){return OS6(this).values};
_.z.isEmpty=function(){return!this.JSC$7490_document_.cookie};
_.z.getCount=function(){return this.JSC$7490_document_.cookie?(this.JSC$7490_document_.cookie||"").split(";").length:0};
_.z.containsKey=function(Y){return this.get(Y)!==void 0};
_.z.containsValue=function(Y){for(var S=OS6(this).values,P=0;P<S.length;P++)if(S[P]==Y)return!0;return!1};
_.z.clear=function(){for(var Y=OS6(this).keys,S=Y.length-1;S>=0;S--)this.remove(Y[S])};
OS6=function(Y){Y=(Y.JSC$7490_document_.cookie||"").split(";");for(var S=[],P=[],u,W,m=0;m<Y.length;m++)W=_.uW(Y[m]),u=W.indexOf("="),u==-1?(S.push(""),P.push(W)):(S.push(W.substring(0,u)),P.push(W.substring(u+1)));return{keys:S,values:P}};
_.T_=new Py(typeof document=="undefined"?null:document);var ilu=function(){var Y=_.Pa.__SAPISID||_.Pa.__APISID||_.Pa.__3PSAPISID||_.Pa.__1PSAPISID||_.Pa.__OVERRIDE_SID;if(Y)return!0;typeof document!=="undefined"&&(Y=new Py(document),Y=Y.get("SAPISID")||Y.get("APISID")||Y.get("__Secure-3PAPISID")||Y.get("__Secure-1PAPISID"));return!!Y},Y4s=function(Y,S,P,u){(Y=_.Pa[Y])||typeof document==="undefined"||(Y=(new Py(document)).get(S));
return Y?Vcs(Y,P,u):null},ISY=function(Y){var S=NXi(String(_.Pa.location.href)),P=[];
if(ilu()){S=S.indexOf("https:")==0||S.indexOf("chrome-extension:")==0||S.indexOf("chrome-untrusted://new-tab-page")==0||S.indexOf("moz-extension:")==0;var u=S?_.Pa.__SAPISID:_.Pa.__APISID;u||typeof document==="undefined"||(u=new Py(document),u=u.get(S?"SAPISID":"APISID")||u.get("__Secure-3PAPISID"));(u=u?Vcs(u,S?"SAPISIDHASH":"APISIDHASH",Y):null)&&P.push(u);S&&((S=Y4s("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",Y))&&P.push(S),(Y=Y4s("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",Y))&&P.push(Y))}return P.length==
0?null:P.join(" ")};var S4s=function(){this.minSize=1024};
S4s.prototype.compress=function(Y){var S,P,u,W;return _.B(function(m){switch(m.nextAddress){case 1:return S=new CompressionStream("gzip"),P=(new Response(S.readable)).arrayBuffer(),u=S.writable.getWriter(),_.q(m,u.write((new TextEncoder).encode(Y)),2);case 2:return _.q(m,u.close(),3);case 3:return W=Uint8Array,_.q(m,P,4);case 4:return m.return(new W(m.yieldResult))}})};
S4s.prototype.isSupported=function(Y){return Y<this.minSize?!1:typeof CompressionStream!=="undefined"};var PBh=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(PBh,_.Gc);var uG=function(Y,S){this.intervalMs=Y;this.callback=S;this.enabled=!1;this.nowFn=function(){return _.S5()};
this.lastTimeMs=this.nowFn()};
uG.prototype.setInterval=function(Y){this.intervalMs=Y;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
uG.prototype.start=function(){var Y=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){Y.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
uG.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
uG.prototype.tick=function(){var Y=this;if(this.enabled){var S=Math.max(this.nowFn()-this.lastTimeMs,0);S<this.intervalMs*.8?this.timer=setTimeout(function(){Y.tick()},this.intervalMs-S):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var umu=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(umu,_.Gc);var Wpf=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Wpf,_.Gc);var zE3=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(zE3,_.Gc);zE3.prototype.getTransmissionType=function(){return _.Lj(this,1)};var oSE=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(oSE,_.Gc);oSE.prototype.getVersion=function(){return _.aJ(this,2)};var Wy=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Wy,_.Gc);var iNa=function(Y){rV(VI,1,Y)};
Wy.prototype.getModel=function(){return _.aJ(this,6)};
var mDi=_.M8(Wy);var nU6=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(nU6,_.Gc);var Xh$=["platform","platformVersion","architecture","model","uaFullVersion"],VI=new Wy,ZNK=null;var j9s=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(j9s,_.Gc);var JwL=function(Y){return _.uX(Y,1,1)};var BE3=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y,4)};
_.r(BE3,_.Gc);_.zj=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y,36)};
_.r(_.zj,_.Gc);_.zj.prototype.getExperimentIds=function(){return _.P_(this,PBh,16)};var cwt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y,19)};
_.r(cwt,_.Gc);cwt.prototype.setLogSource=function(Y){return _.uX(this,2,Y)};
cwt.prototype.setScheduler=function(Y){return _.uX(this,10,Y)};var q4d=function(Y,S){this.isServiceWorkerScope=S=S===void 0?!1:S;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new cwt;Number.isInteger(Y)&&this.logRequest.setLogSource(Y);S||(this.locale=document.documentElement.getAttribute("lang"));CBh(this,new j9s)};
q4d.prototype.setLogSource=function(Y){this.logRequest.setLogSource(Y);return this};
var CBh=function(Y,S){_.N8(Y.logRequest,1,S);_.Lj(S,1)||JwL(S);Y.isServiceWorkerScope||(S=mJ(Y),_.aJ(S,5)||_.zH(S,5,Y.locale));Y.uach&&(S=mJ(Y),_.P_(S,Wy,9)||_.N8(S,9,Y.uach))},REm=function(Y,S){Y.transmissionType=S},xDt=function(Y){var S=S===void 0?Xh$:S;
var P=Y.isServiceWorkerScope?void 0:Kx();P?tLa(P,S).then(function(u){Y.uach=mDi(u!=null?u:"[]");u=mJ(Y);_.N8(u,9,Y.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},mJ=function(Y){Y=_.P_(Y.logRequest,j9s,1);
var S=_.P_(Y,nU6,11);S||(S=new nU6,_.N8(Y,11,S));return S};
q4d.prototype.build=function(Y,S,P,u,W,m){S=S===void 0?0:S;P=P===void 0?0:P;u=u===void 0?null:u;W=W===void 0?0:W;m=m===void 0?0:m;if(!this.isServiceWorkerScope){var J=mJ(this);var c=new zE3;c=_.uX(c,1,this.transmissionType);c=_.Hk(c,2,this.isFinal);P=_.sM(c,3,P>0?P:void 0);P=_.sM(P,4,W>0?W:void 0);P=_.sM(P,5,m>0?m:void 0);W=P.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;m=W[_.E6]|0;P=Is(P,m)?P:new P.constructor(VB(W,m,!0));_.N8(J,10,P)}J=this.logRequest.clone();P=Date.now().toString();J=
_.mV(J,4,$c(P));Y=Y.slice();Y=rV(J,3,Y);u&&(J=new umu,u=_.sM(J,13,u),J=new Wpf,u=_.N8(J,2,u),J=new BE3,u=_.N8(J,1,u),u=_.uX(u,2,9),_.N8(Y,18,u));S&&_.r6(Y,14,S);return Y};eZ.prototype.currBackoffCount_=0;eZ.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
eZ.prototype.getValue=function(){return this.currValue_};
var bhs=function(Y){Y.currBaseValue_=Math.min(Y.maxValue_,Y.currBaseValue_*Y.backoffFactor_);Y.currValue_=Math.min(Y.maxValue_,Y.currBaseValue_+(Y.randomFactor_?Math.round(Y.randomFactor_*(Math.random()-.5)*2*Y.currBaseValue_):0));Y.currBackoffCount_++};var $o8=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y,8)};
_.r($o8,_.Gc);var TE_=_.M8($o8);var rHu=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(rHu,_.Gc);var nl;nl=new GWJ;var jj=function(Y){_.R6.call(this);var S=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7568_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$7568_sendBeaconApiEnabled=!1;this.logSource=Y.logSource;this.getAuthHeaderValue=
Y.getAuthHeaderValue||function(){};
this.logRequestBuilder=new q4d(Y.logSource,Y.isServiceWorkerScope);this.network=Y.network||null;this.productID=Y.productID||null;this.clearcutUrl=Y.urlOverride||null;this.sessionIndex=Y.sessionIndex||null;this.disableAutomaticFlush=Y.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!Y.disableWithCredentials;this.isServiceWorkerScope=Y.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Kx()&&!!Kx().navigator&&Kx().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(Kpm())).searchParams&&!!(new URL(Kpm())).searchParams.set;var P=JwL(new j9s);CBh(this.logRequestBuilder,P);this.flushBackoff=new eZ(1E4,3E5,.1);Y=EUh(this,Y.backgroundJobDeferrer);this.JSC$7568_flushTimer=new uG(this.flushBackoff.getValue(),Y);this.backupTimer=new uG(6E5,Y);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){fif(S);
var u;(u=S.metalogService)==null||u.flush()}}),document.addEventListener("pagehide",function(){fif(S);
var u;(u=S.metalogService)==null||u.flush()}))};
_.r(jj,_.R6);var EUh=function(Y,S){return Y.isBrowserSupported?S?function(){S().then(function(){Y.flush()})}:function(){Y.flush()}:function(){}};
jj.prototype.disposeInternal=function(){fif(this);this.JSC$7568_flushTimer.stop();this.backupTimer.stop();_.R6.prototype.disposeInternal.call(this)};
var gUd=function(Y){Y.clearcutUrl||(Y.clearcutUrl=Kpm());try{return(new URL(Y.clearcutUrl)).toString()}catch(S){return(new URL(Y.clearcutUrl,Kx().location.origin)).toString()}};
jj.prototype.dispatch=function(Y){if(Y instanceof _.zj)this.log(Y);else try{var S=new _.zj,P=Y.serialize();var u=_.zH(S,8,P);this.log(u)}catch(W){Jy(this,4,1)}};
var Jy=function(Y,S,P){Y.metalogService&&Y.metalogService.increment(S,P)};
jj.prototype.log=function(Y){Jy(this,2,1);if(this.isBrowserSupported){Y=Y.clone();var S=this.sequencePosition++;Y=_.r6(Y,21,S);this.componentId&&_.zH(Y,26,this.componentId);S=Y;if(Cff(_.xn(S,1))==null){var P=Date.now();P=Number.isFinite(P)?P.toString():"0";_.mV(S,1,$c(P))}_.hv(S,15)!=null||_.r6(S,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(P=this.experimentIds.clone(),_.N8(S,16,P));Jy(this,1,1);S=this.pendingEvents.length-1E3+1;S>0&&(this.pendingEvents.splice(0,S),this.numLogsDroppedSinceLastFlush+=
S,Jy(this,3,S));this.pendingEvents.push(Y);this.disableAutomaticFlush||this.JSC$7568_flushTimer.enabled||this.JSC$7568_flushTimer.start()}};
jj.prototype.flush=function(Y,S){var P=this;if(this.pendingEvents.length===0)Y&&Y();else if(this.JSC$7568_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,$Ds(this);else{var u=Date.now();if(this.noFlushUntilMs>u&&this.startWaitingMs<u)S&&S("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?REm(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var W=this.pendingEvents.length,
m=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),J=this.getAuthHeaderValue();if(J&&this.lastFailedAuth===J)S&&S("stale-auth-token");else{this.pendingEvents=[];this.JSC$7568_flushTimer.enabled&&this.JSC$7568_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;u=m.serialize();var c;this.JSC$7568_compressor&&this.JSC$7568_compressor.isSupported(u.length)&&
(c=this.JSC$7568_compressor.compress(u));var C=rws(this,u,J),x=function(K){P.flushBackoff.reset();P.JSC$7568_flushTimer.setInterval(P.flushBackoff.getValue());if(K){var G=null;try{var v=JSON.stringify(JSON.parse(K.replace(")]}'\n","")));G=TE_(v)}catch(a){}G&&(K=Number(Dp(G,1,_.tm("-1"))),K>0&&(P.startWaitingMs=Date.now(),P.noFlushUntilMs=P.startWaitingMs+K),v_f(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,nl.fieldIndex),asa(G,nl.fieldIndex),G=nl.ctor?nl.getExtensionFn(G,nl.ctor,nl.fieldIndex,
nl.JSC$6740_hasMessageId):nl.getExtensionFn(G,nl.fieldIndex,null,nl.JSC$6740_hasMessageId),G=G===null?void 0:G)&&(G=_.kg(G,1,-1),G!==-1&&(P.flushBackoff=new eZ(G<1?1:G,3E5,.1),P.JSC$7568_flushTimer.setInterval(P.flushBackoff.getValue())))}Y&&Y();P.numRetriesSinceLastSuccessfulFlush=0},b=function(K,G){var v=_.Uy(m,_.zj,3,_.QI());
var a=Number(Dp(m,14));bhs(P.flushBackoff);P.JSC$7568_flushTimer.setInterval(P.flushBackoff.getValue());K===401&&J&&(P.lastFailedAuth=J);a&&(P.numLogsDroppedSinceLastFlush+=a);G===void 0&&(G=P.isRetryable(K));G&&(P.pendingEvents=v.concat(P.pendingEvents),P.disableAutomaticFlush||P.JSC$7568_flushTimer.enabled||P.JSC$7568_flushTimer.start());Jy(P,7,1);S&&S("net-send-failed",K);++P.numRetriesSinceLastSuccessfulFlush},T=function(){P.network&&P.network.send(C,x,b)};
c?c.then(function(K){Jy(P,5,W);C.requestHeaders["Content-Encoding"]="gzip";C.requestHeaders["Content-Type"]="application/binary";C.body=K;C.bodyType=2;T()},function(){Jy(P,6,W);
T()}):T()}}}};
var rws=function(Y,S,P){P=P===void 0?null:P;var u=u===void 0?Y.withCredentials:u;var W={},m=new URL(gUd(Y));P&&(W.Authorization=P);Y.sessionIndex&&(W["X-Goog-AuthUser"]=Y.sessionIndex,m.searchParams.set("authuser",Y.sessionIndex));Y.pageId&&(Object.defineProperty(W,"X-Goog-PageId",{value:Y.pageId}),m.searchParams.set("pageId",Y.pageId));return{url:m.toString(),body:S,bodyType:1,requestHeaders:W,requestType:"POST",withCredentials:u,timeoutMillis:Y.timeoutMillis}},fif=function(Y){Y.logRequestBuilder.isFinal=
!0;
Y.flush();Y.logRequestBuilder.isFinal=!1},$Ds=function(Y){GTh(Y,function(S,P){S=new URL(S);
S.searchParams.set("format","json");var u=!1;try{u=Kx().navigator.sendBeacon(S.toString(),P.serialize())}catch(W){}u||(Y.isSendBeaconSupported=!1);return u})},GTh=function(Y,S){if(Y.pendingEvents.length!==0){var P=new URL(gUd(Y));
P.searchParams.delete("format");var u=Y.getAuthHeaderValue();u&&P.searchParams.set("auth",u);P.searchParams.set("authuser",Y.sessionIndex||"0");for(u=0;u<10&&Y.pendingEvents.length;++u){var W=Y.pendingEvents.slice(0,32),m=Y.logRequestBuilder.build(W,Y.numLogsDroppedSinceLastFlush,Y.numRetriesSinceLastSuccessfulFlush,Y.productID,Y.persistedLogRecoveredCount,Y.persistedLogExpiredCount);if(!S(P.toString(),m)){++Y.numRetriesSinceLastSuccessfulFlush;break}Y.numLogsDroppedSinceLastFlush=0;Y.numRetriesSinceLastSuccessfulFlush=
0;Y.persistedLogRecoveredCount=0;Y.persistedLogExpiredCount=0;Y.pendingEvents=Y.pendingEvents.slice(W.length)}Y.JSC$7568_flushTimer.enabled&&Y.JSC$7568_flushTimer.stop()}};
jj.prototype.isRetryable=function(Y){return 500<=Y&&Y<600||Y===401||Y===0};
var Kpm=function(){return"https://play.google.com/log?format=json&hasfast=true"};var hEh=function(){this.abortSupported=typeof AbortController!=="undefined"};
hEh.prototype.send=function(Y,S,P){var u=this,W,m,J,c,C,x,b,T,K,G;return _.B(function(v){switch(v.nextAddress){case 1:return m=(W=u.abortSupported?new AbortController:void 0)?setTimeout(function(){W.abort()},Y.timeoutMillis):void 0,_.ND(v,2,3),J=Object.assign({},{method:Y.requestType,
headers:Object.assign({},Y.requestHeaders)},Y.body&&{body:Y.body},Y.withCredentials&&{credentials:"include"},{signal:Y.timeoutMillis&&W?W.signal:null}),_.q(v,fetch(Y.url,J),5);case 5:c=v.yieldResult;if(c.status!==200){(C=P)==null||C(c.status);v.jumpTo(3);break}if((x=S)==null){v.jumpTo(7);break}return _.q(v,c.text(),8);case 8:x(v.yieldResult);case 7:case 3:_.Hx(v);clearTimeout(m);_.e2(v,0);break;case 2:b=_.O4(v);switch((T=b)==null?void 0:T.name){case "AbortError":(K=P)==null||K(408);break;default:(G=
P)==null||G(400)}v.jumpTo(3)}})};
hEh.prototype.getTransmissionType=function(){return 4};_.SL=function(Y,S){S=S===void 0?"0":S;_.R6.call(this);this.logSource=Y;this.sessionIndex=S;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7586_clearExperimentIds=this.productID=null;this.JSC$7586_sendBeaconApiEnabled=!1;this.pageId=null};
_.r(_.SL,_.R6);var mbh=function(Y,S){Y.buildLabel=S;return Y},zfu=function(Y,S){Y.network=S;
return Y},hfh=function(Y,S){Y.JSC$7586_clearExperimentIds=S},W29=function(Y){Y.JSC$7586_sendBeaconApiEnabled=!0;
return Y};
_.SL.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.SL.prototype.build=function(){this.network||(this.network=new hEh);var Y=new jj({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:ISY,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Ph(this,Y);if(this.buildLabel){var S=this.buildLabel,P=mJ(Y.logRequestBuilder);
_.zH(P,7,S)}Y.JSC$7568_compressor=new S4s;this.componentId&&(Y.componentId=this.componentId);this.productID&&(Y.productID=this.productID);this.pageId&&(Y.pageId=this.pageId);this.JSC$7586_clearExperimentIds&&((P=this.JSC$7586_clearExperimentIds)?(Y.experimentIds||(Y.experimentIds=new PBh),S=Y.experimentIds,P=P.serialize(),_.zH(S,4,P)):Y.experimentIds&&_.mV(Y.experimentIds,4));this.JSC$7586_sendBeaconApiEnabled&&(Y.JSC$7568_sendBeaconApiEnabled=Y.isSendBeaconSupported);xDt(Y.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(Y);return Y};var I6a=function(Y,S,P,u,W,m,J){Y=Y===void 0?-1:Y;S=S===void 0?"":S;P=P===void 0?"":P;u=u===void 0?!1:u;W=W===void 0?"":W;_.R6.call(this);this.logSource=Y;this.componentId=S;m?S=m:(Y=new _.SL(Y,"0"),Y.componentId=S,_.Ph(this,Y),P!==""&&(Y.destinationUrl=P),u&&(Y.serviceWorkerScopeEnabled=!0),W&&mbh(Y,W),J&&zfu(Y,J),S=Y.build());this.JSC$7590_transport=S};
_.r(I6a,_.R6);I6a.prototype.flush=function(Y){Y=Y||[];if(Y.length){for(var S=new QNs,P=[],u=0;u<Y.length;u++){var W=Y[u],m=yYs(W);P.push(m);W.clear()}rV(S,1,P);this.JSC$7590_transport.dispatch(S);this.JSC$7590_transport.flush()}};var vUs=function(Y){this.cellValue=Y};var By=function(Y,S,P){this.JSC$7595_metricName=Y;this.cellType=S;this.fields=P||[];this.cellMap=new Map},Mcs=function(Y){return Y.fields.map(function(S){return S.fieldType})},kci=function(Y){return Y.fields.map(function(S){return S.fieldName})};
_.z=By.prototype;_.z.addCell=function(Y){var S=_.Ch.apply(1,arguments),P=this.getCells(S);P?P.push(new vUs(Y)):this.JSC$7595_setCell(Y,S)};
_.z.JSC$7595_setCell=function(Y){var S=this.JSC$7595_getKey(_.Ch.apply(1,arguments));this.cellMap.set(S,[new vUs(Y)])};
_.z.getCells=function(){var Y=this.JSC$7595_getKey(_.Ch.apply(0,arguments));return this.cellMap.has(Y)?this.cellMap.get(Y):void 0};
_.z.getCell=function(){var Y=this.getCells(_.Ch.apply(0,arguments));return Y&&Y.length?Y[0]:void 0};
_.z.clear=function(){this.cellMap.clear()};
_.z.JSC$7595_getKey=function(){var Y=_.Ch.apply(0,arguments);return Y?Y.join(","):"key"};var DDt=function(Y,S){By.call(this,Y,3,S)};
_.r(DDt,By);DDt.prototype.JSC$7598_incrementCounterBy=function(Y){var S=_.Ch.apply(1,arguments),P=0,u=this.getCell(S);u&&(P=u.cellValue);this.JSC$7595_setCell(P+Y,S)};var Ii3=function(Y,S){By.call(this,Y,2,S)};
_.r(Ii3,By);Ii3.prototype.record=function(Y){this.addCell(Y,_.Ch.apply(1,arguments))};_.cy=function(Y){this.id=Y};
_.cy.prototype.toString=function(){return this.id};_.Cl=function(Y,S){this.type=Y instanceof _.cy?String(Y):Y;this.currentTarget=this.target=S;this.defaultPrevented=this.propagationStopped_=!1};
_.Cl.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Cl.prototype.preventDefault=function(){this.defaultPrevented=!0};_.q4=function(Y,S){_.Cl.call(this,Y?Y.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;Y&&this.init(Y,S)};
_.PW(_.q4,_.Cl);
_.q4.prototype.init=function(Y,S){var P=this.type=Y.type,u=Y.changedTouches&&Y.changedTouches.length?Y.changedTouches[0]:null;this.target=Y.target||Y.srcElement;this.currentTarget=S;S=Y.relatedTarget;S||(P=="mouseover"?S=Y.fromElement:P=="mouseout"&&(S=Y.toElement));this.relatedTarget=S;u?(this.clientX=u.clientX!==void 0?u.clientX:u.pageX,this.clientY=u.clientY!==void 0?u.clientY:u.pageY,this.screenX=u.screenX||0,this.screenY=u.screenY||0):(this.offsetX=_.Jv||Y.offsetX!==void 0?Y.offsetX:Y.layerX,
this.offsetY=_.Jv||Y.offsetY!==void 0?Y.offsetY:Y.layerY,this.clientX=Y.clientX!==void 0?Y.clientX:Y.pageX,this.clientY=Y.clientY!==void 0?Y.clientY:Y.pageY,this.screenX=Y.screenX||0,this.screenY=Y.screenY||0);this.button=Y.button;this.keyCode=Y.keyCode||0;this.key=Y.key||"";this.charCode=Y.charCode||(P=="keypress"?Y.keyCode:0);this.ctrlKey=Y.ctrlKey;this.altKey=Y.altKey;this.shiftKey=Y.shiftKey;this.metaKey=Y.metaKey;this.pointerId=Y.pointerId||0;this.pointerType=Y.pointerType;this.state=Y.state;
this.timeStamp=Y.timeStamp;this.event_=Y;Y.defaultPrevented&&_.q4.superClass_.preventDefault.call(this)};
_.q4.prototype.stopPropagation=function(){_.q4.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.q4.prototype.preventDefault=function(){_.q4.superClass_.preventDefault.call(this);var Y=this.event_;Y.preventDefault?Y.preventDefault():Y.returnValue=!1};var aiU="closure_listenable_"+(Math.random()*1E6|0),Ri=function(Y){return!(!Y||!Y[aiU])};var LpJ=0;var wxt=function(Y,S,P,u,W){this.listener=Y;this.proxy=null;this.src=S;this.type=P;this.capture=!!u;this.handler=W;this.key=++LpJ;this.removed=this.callOnce=!1},pxL=function(Y){Y.removed=!0;
Y.listener=null;Y.proxy=null;Y.src=null;Y.handler=null};Oy.prototype.add=function(Y,S,P,u,W){var m=Y.toString();Y=this.listeners[m];Y||(Y=this.listeners[m]=[],this.typeCount_++);var J=Fpi(Y,S,u,W);J>-1?(S=Y[J],P||(S.callOnce=!1)):(S=new wxt(S,this.src,m,!!u,W),S.callOnce=P,Y.push(S));return S};
Oy.prototype.remove=function(Y,S,P,u){Y=Y.toString();if(!(Y in this.listeners))return!1;var W=this.listeners[Y];S=Fpi(W,S,P,u);return S>-1?(pxL(W[S]),_.kY(W,S),W.length==0&&(delete this.listeners[Y],this.typeCount_--),!0):!1};
var s9s=function(Y,S){var P=S.type;if(!(P in Y.listeners))return!1;var u=_.MU(Y.listeners[P],S);u&&(pxL(S),Y.listeners[P].length==0&&(delete Y.listeners[P],Y.typeCount_--));return u};
Oy.prototype.removeAll=function(Y){Y=Y&&Y.toString();var S=0,P;for(P in this.listeners)if(!Y||P==Y){for(var u=this.listeners[P],W=0;W<u.length;W++)++S,pxL(u[W]);delete this.listeners[P];this.typeCount_--}return S};
Oy.prototype.getListener=function(Y,S,P,u){Y=this.listeners[Y.toString()];var W=-1;Y&&(W=Fpi(Y,S,P,u));return W>-1?Y[W]:null};
Oy.prototype.hasListener=function(Y,S){var P=Y!==void 0,u=P?Y.toString():"",W=S!==void 0;return _.RY.some(this.listeners,function(m){for(var J=0;J<m.length;++J)if(!(P&&m[J].type!=u||W&&m[J].capture!=S))return!0;return!1})};
var Fpi=function(Y,S,P,u){for(var W=0;W<Y.length;++W){var m=Y[W];if(!m.removed&&m.listener==S&&m.capture==!!P&&m.handler==u)return W}return-1};var dD3,lit,Xxu,ihs,oUJ,Cs,qG,UD_,t2i,AwS,xM,Q93,Zhu;dD3="closure_lm_"+(Math.random()*1E6|0);lit={};Xxu=0;_.b2=function(Y,S,P,u,W){if(u&&u.once)return Cs(Y,S,P,u,W);if(Array.isArray(S)){for(var m=0;m<S.length;m++)_.b2(Y,S[m],P,u,W);return null}P=Zhu(P);return Ri(Y)?Y.listen(S,P,_.SS(u)?!!u.capture:!!u,W):ihs(Y,S,P,!1,u,W)};
ihs=function(Y,S,P,u,W,m){if(!S)throw Error("za");var J=_.SS(W)?!!W.capture:!!W,c=xM(Y);c||(Y[dD3]=c=new Oy(Y));P=c.add(S,P,u,J,m);if(P.proxy)return P;u=oUJ();P.proxy=u;u.src=Y;u.listener=P;if(Y.addEventListener)_.O9X||(W=J),W===void 0&&(W=!1),Y.addEventListener(S.toString(),u,W);else if(Y.attachEvent)Y.attachEvent(t2i(S.toString()),u);else if(Y.addListener&&Y.removeListener)Y.addListener(u);else throw Error("Aa");Xxu++;return P};
oUJ=function(){var Y=AwS,S=function(P){return Y.call(S.src,S.listener,P)};
return S};
Cs=function(Y,S,P,u,W){if(Array.isArray(S)){for(var m=0;m<S.length;m++)Cs(Y,S[m],P,u,W);return null}P=Zhu(P);return Ri(Y)?Y.listenOnce(S,P,_.SS(u)?!!u.capture:!!u,W):ihs(Y,S,P,!0,u,W)};
_.bG=function(Y,S,P,u,W){if(Array.isArray(S))for(var m=0;m<S.length;m++)_.bG(Y,S[m],P,u,W);else u=_.SS(u)?!!u.capture:!!u,P=Zhu(P),Ri(Y)?Y.unlisten(S,P,u,W):Y&&(Y=xM(Y))&&(S=Y.getListener(S,P,u,W))&&qG(S)};
qG=function(Y){if(typeof Y==="number"||!Y||Y.removed)return!1;var S=Y.src;if(Ri(S))return s9s(S.eventTargetListeners_,Y);var P=Y.type,u=Y.proxy;S.removeEventListener?S.removeEventListener(P,u,Y.capture):S.detachEvent?S.detachEvent(t2i(P),u):S.addListener&&S.removeListener&&S.removeListener(u);Xxu--;(P=xM(S))?(s9s(P,Y),P.typeCount_==0&&(P.src=null,S[dD3]=null)):pxL(Y);return!0};
UD_=function(Y,S,P,u,W){P=Zhu(P);u=!!u;return Ri(Y)?Y.getListener(S,P,u,W):Y?(Y=xM(Y))?Y.getListener(S,P,u,W):null:null};
t2i=function(Y){return Y in lit?lit[Y]:lit[Y]="on"+Y};
AwS=function(Y,S){if(Y.removed)Y=!0;else{S=new _.q4(S,this);var P=Y.listener,u=Y.handler||Y.src;Y.callOnce&&qG(Y);Y=P.call(u,S)}return Y};
xM=function(Y){Y=Y[dD3];return Y instanceof Oy?Y:null};
Q93="__closure_events_fn_"+(Math.random()*1E9>>>0);Zhu=function(Y){if(typeof Y==="function")return Y;Y[Q93]||(Y[Q93]=function(S){return Y.handleEvent(S)});
return Y[Q93]};_.Tj=function(){_.R6.call(this);this.eventTargetListeners_=new Oy(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.PW(_.Tj,_.R6);_.Tj.prototype[aiU]=!0;_.z=_.Tj.prototype;_.z.setParentEventTarget=function(Y){this.parentEventTarget_=Y};
_.z.addEventListener=function(Y,S,P,u){_.b2(this,Y,S,P,u)};
_.z.removeEventListener=function(Y,S,P,u){_.bG(this,Y,S,P,u)};
_.z.dispatchEvent=function(Y){var S,P=this.parentEventTarget_;if(P)for(S=[];P;P=P.parentEventTarget_)S.push(P);P=this.actualEventTarget_;var u=Y.type||Y;if(typeof Y==="string")Y=new _.Cl(Y,P);else if(Y instanceof _.Cl)Y.target=Y.target||P;else{var W=Y;Y=new _.Cl(u,P);_.RY.extend(Y,W)}W=!0;var m;if(S)for(m=S.length-1;!Y.propagationStopped_&&m>=0;m--){var J=Y.currentTarget=S[m];W=kT3(J,u,!0,Y)&&W}Y.propagationStopped_||(J=Y.currentTarget=P,W=kT3(J,u,!0,Y)&&W,Y.propagationStopped_||(W=kT3(J,u,!1,Y)&&
W));if(S)for(m=0;!Y.propagationStopped_&&m<S.length;m++)J=Y.currentTarget=S[m],W=kT3(J,u,!1,Y)&&W;return W};
_.z.disposeInternal=function(){_.Tj.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.z.listen=function(Y,S,P,u){return this.eventTargetListeners_.add(String(Y),S,!1,P,u)};
_.z.listenOnce=function(Y,S,P,u){return this.eventTargetListeners_.add(String(Y),S,!0,P,u)};
_.z.unlisten=function(Y,S,P,u){return this.eventTargetListeners_.remove(String(Y),S,P,u)};
_.z.removeAllListeners=function(Y){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(Y):0};
var kT3=function(Y,S,P,u){S=Y.eventTargetListeners_.listeners[String(S)];if(!S)return!0;S=S.concat();for(var W=!0,m=0;m<S.length;++m){var J=S[m];if(J&&!J.removed&&J.capture==P){var c=J.listener,C=J.handler||J.src;J.callOnce&&s9s(Y.eventTargetListeners_,J);W=c.call(C,u)!==!1&&W}}return W&&!u.defaultPrevented};
_.Tj.prototype.getListener=function(Y,S,P,u){return this.eventTargetListeners_.getListener(String(Y),S,P,u)};
_.Tj.prototype.hasListener=function(Y,S){return this.eventTargetListeners_.hasListener(Y!==void 0?String(Y):void 0,S)};var Kl=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(Y){return Y&&AsyncContext.Snapshot.wrap(Y)}:function(Y){return Y};var M2h=function(Y,S){this.create_=Y;this.reset_=S;this.occupants_=0;this.JSC$7630_head_=null};
M2h.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var Y=this.JSC$7630_head_;this.JSC$7630_head_=Y.next;Y.next=null}else Y=this.create_();return Y};
M2h.prototype.put=function(Y){this.reset_(Y);this.occupants_<100&&(this.occupants_++,Y.next=this.JSC$7630_head_,this.JSC$7630_head_=Y)};var ywh=function(){this.workTail_=this.workHead_=null};
ywh.prototype.add=function(Y,S){var P=UZh.get();P.set(Y,S);this.workTail_?this.workTail_.next=P:this.workHead_=P;this.workTail_=P};
ywh.prototype.remove=function(){var Y=null;this.workHead_&&(Y=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),Y.next=null);return Y};
var UZh=new M2h(function(){return new NEd},function(Y){return Y.reset()}),NEd=function(){this.next=this.scope=this.fn=null};
NEd.prototype.set=function(Y,S){this.fn=Y;this.scope=S;this.next=null};
NEd.prototype.reset=function(){this.next=this.scope=this.fn=null};var Hh6,Q6$,AFa,V2f;Q6$=!1;AFa=new ywh;_.Ex=function(Y,S){Hh6||V2f();Q6$||(Hh6(),Q6$=!0);AFa.add(Y,S)};
V2f=function(){var Y=Promise.resolve(void 0);Hh6=function(){Y.then(klJ)}};var eEL=function(Y){Y.prototype.$goog_Thenable=!0},Ohd=function(Y){if(!Y)return!1;
try{return!!Y.$goog_Thenable}catch(S){return!1}};var YaS,SaU,P0u,Wcd,zA_,mgi,BQ6,qaS,TQU,xgt,SHU;_.qs=function(Y,S){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(Y!=_.bd)try{var P=this;Y.call(S,function(u){P.resolve_(2,u)},function(u){P.resolve_(3,u)})}catch(u){this.resolve_(3,u)}};
YaS=function(){this.next=this.context=this.JSC$7641_onRejected=this.JSC$7641_onFulfilled=this.child=null;this.always=!1};
YaS.prototype.reset=function(){this.context=this.JSC$7641_onRejected=this.JSC$7641_onFulfilled=this.child=null;this.always=!1};
SaU=new M2h(function(){return new YaS},function(Y){Y.reset()});
P0u=function(Y,S,P){var u=SaU.get();u.JSC$7641_onFulfilled=Y;u.JSC$7641_onRejected=S;u.context=P;return u};
_.Cb=function(Y){if(Y instanceof _.qs)return Y;var S=new _.qs(_.bd);S.resolve_(2,Y);return S};
_.t9=function(Y){return new _.qs(function(S,P){P(Y)})};
Wcd=function(Y,S,P){uO_(Y,S,P,null)||_.Ex(_.gP(S,Y))};
_.fl=function(Y){return new _.qs(function(S,P){var u=Y.length,W=[];if(u)for(var m=function(x,b){u--;W[x]=b;u==0&&S(W)},J=function(x){P(x)},c,C=0;C<Y.length;C++)c=Y[C],Wcd(c,_.gP(m,C),J);
else S(W)})};
zA_=function(Y){return new _.qs(function(S){var P=Y.length,u=[];if(P)for(var W=function(c,C,x){P--;u[c]=C?{fulfilled:!0,value:x}:{fulfilled:!1,reason:x};P==0&&S(u)},m,J=0;J<Y.length;J++)m=Y[J],Wcd(m,_.gP(W,J,!0),_.gP(W,J,!1));
else S(u)})};
mgi=function(Y){return new _.qs(function(S,P){var u=Y.length,W=[];if(u)for(var m=function(x){S(x)},J=function(x,b){u--;
W[x]=b;u==0&&P(W)},c,C=0;C<Y.length;C++)c=Y[C],Wcd(c,m,_.gP(J,C));
else S(void 0)})};
_.dL=function(){var Y,S,P=new _.qs(function(u,W){Y=u;S=W});
return new nt_(P,Y,S)};
_.qs.prototype.then=function(Y,S,P){return jD_(this,Kl(typeof Y==="function"?Y:null),Kl(typeof S==="function"?S:null),P)};
eEL(_.qs);BQ6=function(Y,S,P,u){JsJ(Y,P0u(S||_.bd,P||null,u))};
_.gy=function(Y,S){S=Kl(S);S=P0u(S,S);S.always=!0;JsJ(Y,S);return Y};
_.qs.prototype.finally=function(Y){var S=this;Y=Kl(Y);return new Promise(function(P,u){BQ6(S,function(W){Y();P(W)},function(W){Y();
u(W)})})};
_.qs.prototype.thenCatch=function(Y,S){return jD_(this,null,Kl(Y),S)};
_.qs.prototype.catch=_.qs.prototype.thenCatch;_.qs.prototype.cancel=function(Y){if(this.state_==0){var S=new _.ok(Y);_.Ex(function(){csd(this,S)},this)}};
var csd=function(Y,S){if(Y.state_==0)if(Y.parent_){var P=Y.parent_;if(P.callbackEntries_){for(var u=0,W=null,m=null,J=P.callbackEntries_;J&&(J.always||(u++,J.child==Y&&(W=J),!(W&&u>1)));J=J.next)W||(m=J);W&&(P.state_==0&&u==1?csd(P,S):(m?(u=m,u.next==P.callbackEntriesTail_&&(P.callbackEntriesTail_=u),u.next=u.next.next):C0f(P),qaS(P,W,3,S)))}Y.parent_=null}else Y.resolve_(3,S)},JsJ=function(Y,S){Y.callbackEntries_||Y.state_!=2&&Y.state_!=3||RAh(Y);
Y.callbackEntriesTail_?Y.callbackEntriesTail_.next=S:Y.callbackEntries_=S;Y.callbackEntriesTail_=S},jD_=function(Y,S,P,u){var W=P0u(null,null,null);
W.child=new _.qs(function(m,J){W.JSC$7641_onFulfilled=S?function(c){try{var C=S.call(u,c);m(C)}catch(x){J(x)}}:m;
W.JSC$7641_onRejected=P?function(c){try{var C=P.call(u,c);C===void 0&&c instanceof _.ok?J(c):m(C)}catch(x){J(x)}}:J});
W.child.parent_=Y;JsJ(Y,W);return W.child};
_.qs.prototype.unblockAndFulfill_=function(Y){this.state_=0;this.resolve_(2,Y)};
_.qs.prototype.unblockAndReject_=function(Y){this.state_=0;this.resolve_(3,Y)};
_.qs.prototype.resolve_=function(Y,S){this.state_==0&&(this===S&&(Y=3,S=new TypeError("Ba")),this.state_=1,uO_(S,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=S,this.state_=Y,this.parent_=null,RAh(this),Y!=3||S instanceof _.ok||xgt(this,S)))};
var uO_=function(Y,S,P,u){if(Y instanceof _.qs)return BQ6(Y,S,P,u),!0;if(Ohd(Y))return Y.then(S,P,u),!0;if(_.SS(Y))try{var W=Y.then;if(typeof W==="function")return b7L(Y,W,S,P,u),!0}catch(m){return P.call(u,m),!0}return!1},b7L=function(Y,S,P,u,W){var m=!1,J=function(C){m||(m=!0,P.call(W,C))},c=function(C){m||(m=!0,u.call(W,C))};
try{S.call(Y,J,c)}catch(C){c(C)}},RAh=function(Y){Y.executing_||(Y.executing_=!0,_.Ex(Y.executeCallbacks_,Y))},C0f=function(Y){var S=null;
Y.callbackEntries_&&(S=Y.callbackEntries_,Y.callbackEntries_=S.next,S.next=null);Y.callbackEntries_||(Y.callbackEntriesTail_=null);return S};
_.qs.prototype.executeCallbacks_=function(){for(var Y;Y=C0f(this);)qaS(this,Y,this.state_,this.result_);this.executing_=!1};
qaS=function(Y,S,P,u){if(P==3&&S.JSC$7641_onRejected&&!S.always)for(;Y&&Y.hadUnhandledRejection_;Y=Y.parent_)Y.hadUnhandledRejection_=!1;if(S.child)S.child.parent_=null,TQU(S,P,u);else try{S.always?S.JSC$7641_onFulfilled.call(S.context):TQU(S,P,u)}catch(W){SHU.call(null,W)}SaU.put(S)};
TQU=function(Y,S,P){S==2?Y.JSC$7641_onFulfilled.call(Y.context,P):Y.JSC$7641_onRejected&&Y.JSC$7641_onRejected.call(Y.context,P)};
xgt=function(Y,S){Y.hadUnhandledRejection_=!0;_.Ex(function(){Y.hadUnhandledRejection_&&SHU.call(null,S)})};
SHU=ua;_.ok=function(Y){_.YY.call(this,Y)};
_.PW(_.ok,_.YY);_.ok.prototype.name="cancel";var nt_=function(Y,S,P){this.promise=Y;this.resolve=S;this.reject=P};var $M;_.P3=function(Y,S){_.Tj.call(this);this.JSC$7653_interval_=Y||1;this.timerObject_=S||_.Pa;this.boundTick_=(0,_.xS)(this.tick_,this);this.last_=_.S5()};
_.PW(_.P3,_.Tj);_.z=_.P3.prototype;_.z.enabled=!1;_.z.JSC$7655_timer_=null;_.z.setInterval=function(Y){this.JSC$7653_interval_=Y;this.JSC$7655_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7655_timer_&&this.stop()};
_.z.tick_=function(){if(this.enabled){var Y=_.S5()-this.last_;Y>0&&Y<this.JSC$7653_interval_*.8?this.JSC$7655_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7653_interval_-Y):(this.JSC$7655_timer_&&(this.timerObject_.clearTimeout(this.JSC$7655_timer_),this.JSC$7655_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.z.start=function(){this.enabled=!0;this.JSC$7655_timer_||(this.JSC$7655_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7653_interval_),this.last_=_.S5())};
_.z.stop=function(){this.enabled=!1;this.JSC$7655_timer_&&(this.timerObject_.clearTimeout(this.JSC$7655_timer_),this.JSC$7655_timer_=null)};
_.z.disposeInternal=function(){_.P3.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
$M=function(Y,S,P){if(typeof Y==="function")P&&(Y=(0,_.xS)(Y,P));else if(Y&&typeof Y.handleEvent=="function")Y=(0,_.xS)(Y.handleEvent,Y);else throw Error("Ca");return Number(S)>2147483647?-1:_.Pa.setTimeout(Y,S||0)};
_.Kci=function(Y){var S=null;return(new _.qs(function(P,u){S=$M(function(){P(void 0)},Y);
S==-1&&u(Error("Da"))})).thenCatch(function(P){_.Pa.clearTimeout(S);
throw P;})};var uV=function(Y){_.R6.call(this);this.streamzLogger=Y;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7659_flushTimer=new _.P3(this.flushInterval);this.JSC$7659_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Ph(this,this.JSC$7659_flushTimer)};
_.r(uV,_.R6);uV.prototype.sendIsolatedPayload=function(Y){this.shouldSendIsolatedPayload=Y;this.invocationLimit=1};
var EtJ=function(Y){Y.JSC$7659_flushTimer.enabled||Y.JSC$7659_flushTimer.start();Y.invocationCount++;Y.invocationCount>=Y.invocationLimit&&Y.snapshotAndFlush()};
uV.prototype.snapshotAndFlush=function(){var Y=this.metricMap.values();Y=[].concat(_.cz(Y)).filter(function(S){return S.cellMap.size});
Y.length&&this.streamzLogger.flush(Y,this.shouldSendIsolatedPayload);fD6(Y);this.invocationCount=0;this.JSC$7659_flushTimer.enabled&&this.JSC$7659_flushTimer.stop()};
uV.prototype.addNewCounter=function(Y){var S=_.Ch.apply(1,arguments);this.metricMap.has(Y)||this.metricMap.set(Y,new DDt(Y,S))};
uV.prototype.addNewEventMetric=function(Y){var S=_.Ch.apply(1,arguments);this.metricMap.has(Y)||this.metricMap.set(Y,new Ii3(Y,S))};
var gtJ=function(Y,S){return Y.disabledMetrics.has(S)?void 0:Y.metricMap.get(S)};
uV.prototype.JSC$7659_incrementCounter=function(Y){this.JSC$7659_incrementCounterBy(Y,1,_.Ch.apply(1,arguments))};
uV.prototype.JSC$7659_incrementCounterBy=function(Y,S){var P=_.Ch.apply(2,arguments),u=gtJ(this,Y);u&&u instanceof DDt&&(u.JSC$7598_incrementCounterBy(S,P),EtJ(this))};
uV.prototype.record=function(Y,S){var P=_.Ch.apply(2,arguments),u=gtJ(this,Y);u&&u instanceof Ii3&&(u.record(S,P),EtJ(this))};
var fD6=function(Y){for(var S=0;S<Y.length;S++)Y[S].clear()};_.ry=function(Y,S,P){P=P===void 0?{}:P;S=Error.call(this,S);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.code=Y;this.metadata=P;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(_.ry,Error);_.ry.prototype.toString=function(){var Y="RpcError("+(MLJ(this.code)||String(this.code))+")";this.message&&(Y+=": "+this.message);return Y};_.$gs=_.Pa.JSON.parse;_.Gj=_.Pa.JSON.stringify;_.DC=_.Pa.JSON.parse;_.rs6=function(Y){switch(Y){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var GqU=function(Y){switch(Y){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var hAL,vts=function(){};
_.PW(vts,_.yFa);vts.prototype.createInstance=function(){return new XMLHttpRequest};
hAL=new vts;_.hy=function(Y){_.Tj.call(this);this.headers=new Map;this.JSC$7668_xmlHttpFactory_=Y||null;this.JSC$7668_active_=!1;this.JSC$7668_xhr_=null;this.JSC$7668_lastUri_="";this.JSC$7668_lastErrorCode_=0;this.JSC$7668_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7668_timeoutId_=null;this.responseType_="";this.JSC$7668_withCredentials_=!1};
_.PW(_.hy,_.Tj);var Dgs=/^https?$/i,IDi=["POST","PUT"],aDS=[],iX$=function(Y,S,P,u,W,m,J){var c=new _.hy;aDS.push(c);S&&c.listen("complete",S);c.listenOnce("ready",c.cleanupSend_);m&&(c.timeoutInterval_=Math.max(0,m));J&&(c.JSC$7668_withCredentials_=J);c.send(Y,P,u,W)};
_.hy.prototype.cleanupSend_=function(){this.dispose();_.MU(aDS,this)};
_.hy.prototype.send=function(Y,S,P,u){if(this.JSC$7668_xhr_)throw Error("Ea`"+this.JSC$7668_lastUri_+"`"+Y);S=S?S.toUpperCase():"GET";this.JSC$7668_lastUri_=Y;this.JSC$7668_lastError_="";this.JSC$7668_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7668_active_=!0;this.JSC$7668_xhr_=this.createXhr();this.JSC$7668_xhr_.onreadystatechange=Kl((0,_.xS)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7668_xhr_.open(S,String(Y),!0),this.inOpen_=!1}catch(J){Lcu(this,J);return}Y=P||"";P=new Map(this.headers);
if(u)if(Object.getPrototypeOf(u)===Object.prototype)for(var W in u)P.set(W,u[W]);else if(typeof u.keys==="function"&&typeof u.get==="function"){W=_.n(u.keys());for(var m=W.next();!m.done;m=W.next())m=m.value,P.set(m,u.get(m))}else throw Error("Fa`"+String(u));u=Array.from(P.keys()).find(function(J){return"content-type"==J.toLowerCase()});
W=_.Pa.FormData&&Y instanceof _.Pa.FormData;!_.Au(IDi,S)||u||W||P.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");S=_.n(P);for(u=S.next();!u.done;u=S.next())P=_.n(u.value),u=P.next().value,P=P.next().value,this.JSC$7668_xhr_.setRequestHeader(u,P);this.responseType_&&(this.JSC$7668_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7668_xhr_&&this.JSC$7668_xhr_.withCredentials!==this.JSC$7668_withCredentials_&&(this.JSC$7668_xhr_.withCredentials=this.JSC$7668_withCredentials_);
try{this.JSC$7668_timeoutId_&&(clearTimeout(this.JSC$7668_timeoutId_),this.JSC$7668_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7668_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7668_xhr_.send(Y),this.inSend_=!1}catch(J){Lcu(this,J)}};
_.hy.prototype.createXhr=function(){return this.JSC$7668_xmlHttpFactory_?this.JSC$7668_xmlHttpFactory_.createInstance():hAL.createInstance()};
_.hy.prototype.timeout_=function(){typeof qNa!="undefined"&&this.JSC$7668_xhr_&&(this.JSC$7668_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7668_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var Lcu=function(Y,S){Y.JSC$7668_active_=!1;Y.JSC$7668_xhr_&&(Y.inAbort_=!0,Y.JSC$7668_xhr_.abort(),Y.inAbort_=!1);Y.JSC$7668_lastError_=S;Y.JSC$7668_lastErrorCode_=5;wzd(Y);pzi(Y)},wzd=function(Y){Y.errorDispatched_||(Y.errorDispatched_=!0,Y.dispatchEvent("complete"),Y.dispatchEvent("error"))};
_.hy.prototype.abort=function(Y){this.JSC$7668_xhr_&&this.JSC$7668_active_&&(this.JSC$7668_active_=!1,this.inAbort_=!0,this.JSC$7668_xhr_.abort(),this.inAbort_=!1,this.JSC$7668_lastErrorCode_=Y||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),pzi(this))};
_.hy.prototype.disposeInternal=function(){this.JSC$7668_xhr_&&(this.JSC$7668_active_&&(this.JSC$7668_active_=!1,this.inAbort_=!0,this.JSC$7668_xhr_.abort(),this.inAbort_=!1),pzi(this,!0));_.hy.superClass_.disposeInternal.call(this)};
_.hy.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Fc3(this);else this.onReadyStateChangeEntryPoint_()};
_.hy.prototype.onReadyStateChangeEntryPoint_=function(){Fc3(this)};
var Fc3=function(Y){if(Y.JSC$7668_active_&&typeof qNa!="undefined")if(Y.inSend_&&_.vy(Y)==4)setTimeout(Y.onReadyStateChange_.bind(Y),0);else if(Y.dispatchEvent("readystatechange"),Y.isComplete()){Y.JSC$7668_active_=!1;try{if(Y.isSuccess())Y.dispatchEvent("complete"),Y.dispatchEvent("success");else{Y.JSC$7668_lastErrorCode_=6;try{var S=_.vy(Y)>2?Y.JSC$7668_xhr_.statusText:""}catch(P){S=""}Y.JSC$7668_lastError_=S+" ["+Y.getStatus()+"]";wzd(Y)}}finally{pzi(Y)}}},pzi=function(Y,S){if(Y.JSC$7668_xhr_){Y.JSC$7668_timeoutId_&&
(clearTimeout(Y.JSC$7668_timeoutId_),Y.JSC$7668_timeoutId_=null);
var P=Y.JSC$7668_xhr_;Y.JSC$7668_xhr_=null;S||Y.dispatchEvent("ready");try{P.onreadystatechange=null}catch(u){}}};
_.hy.prototype.isActive=function(){return!!this.JSC$7668_xhr_};
_.hy.prototype.isComplete=function(){return _.vy(this)==4};
_.hy.prototype.isSuccess=function(){var Y=this.getStatus(),S;if(!(S=GqU(Y))){if(Y=Y===0)Y=Lhu(String(this.JSC$7668_lastUri_)),Y=!Dgs.test(Y);S=Y}return S};
_.vy=function(Y){return Y.JSC$7668_xhr_?Y.JSC$7668_xhr_.readyState:0};
_.z=_.hy.prototype;_.z.getStatus=function(){try{return _.vy(this)>2?this.JSC$7668_xhr_.status:-1}catch(Y){return-1}};
_.z.getResponseText=function(){try{return this.JSC$7668_xhr_?this.JSC$7668_xhr_.responseText:""}catch(Y){return""}};
_.z.getResponse=function(){try{if(!this.JSC$7668_xhr_)return null;if("response"in this.JSC$7668_xhr_)return this.JSC$7668_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7668_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7668_xhr_)return this.JSC$7668_xhr_.mozResponseArrayBuffer}return null}catch(Y){return null}};
_.z.getAllResponseHeaders=function(){return this.JSC$7668_xhr_&&_.vy(this)>=2?this.JSC$7668_xhr_.getAllResponseHeaders()||"":""};
_.z.getLastError=function(){return typeof this.JSC$7668_lastError_==="string"?this.JSC$7668_lastError_:String(this.JSC$7668_lastError_)};var ndh=function(){};
ndh.prototype.send=function(Y,S,P){S=S===void 0?function(){}:S;
P=P===void 0?function(){}:P;
iX$(Y.url,function(u){u=u.target;u.isSuccess()?S(u.getResponseText()):P(u.getStatus())},Y.requestType,Y.body,Y.requestHeaders,Y.timeoutMillis,Y.withCredentials)};
ndh.prototype.getTransmissionType=function(){return 1};var sDm=function(Y,S){this.logger=Y;this.event=S;this.startTime=Wh()};
sDm.prototype.done=function(){this.logger.zX(this.event,Wh()-this.startTime)};
var Dj=function(){Sj.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.r(Dj,Sj);var Ii=function(Y,S,P){var u=Wh();S=S();Y.zX(P,Wh()-u);return S},L2h=function(){Dj.apply(this,arguments)};
_.r(L2h,Dj);_.z=L2h.prototype;_.z.u6H=function(){};
_.z.vJ=function(){};
_.z.zX=function(){};
_.z.logError=function(){};
_.z.yH=function(){};
_.z.oEg=function(){};
_.z.uVp=function(){};
_.z.htg=function(){};
_.z.vuI=function(){};
var dg6=function(Y){Dj.call(this);var S=this;this.logger=Y;this.TEST_ONLY={zAY:function(){return S.logger},
getExperimentIds:function(){return S.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void S.logger.dispose()})};
_.r(dg6,Dj);_.z=dg6.prototype;_.z.update=function(Y){this.logger.dispose();this.logger=Y};
_.z.vJ=function(Y){this.logger.vJ(Y)};
_.z.zX=function(Y,S){this.logger.zX(Y,S)};
_.z.logError=function(Y){this.logger.logError(Y)};
_.z.yH=function(){this.logger.yH()};
_.z.oEg=function(Y){this.logger.oEg(Y)};
_.z.uVp=function(Y){this.logger.uVp(Y)};
_.z.htg=function(Y){this.logger.htg(Y)};
_.z.vuI=function(Y){this.logger.vuI(Y)};
_.z.u6H=function(Y){this.logger.u6H(Y)};
var lDf=function(Y,S){_.R6.call(this);var P=this;this.callback=Y;this.uZr=S;this.eWw=-S;this.addOnDisposeCallback(function(){return void clearTimeout(P.timer)})};
_.r(lDf,_.R6);var Xzi=function(Y){if(Y.timer===void 0){var S=Math.max(0,Y.eWw+Y.uZr-Wh());Y.timer=setTimeout(function(){try{Y.callback()}finally{Y.eWw=Wh(),Y.timer=void 0}},S)}},Z7S=function(Y,S){Dj.call(this);
this.metrics=Y;this.rD=S};
_.r(Z7S,Dj);_.z=Z7S.prototype;_.z.u6H=function(Y){this.metrics.sen.record(Y,this.rD)};
_.z.vJ=function(Y){this.metrics.eventCount.increment(Y,this.rD)};
_.z.zX=function(Y,S){this.metrics.inV.record(S,Y,this.rD)};
_.z.logError=function(Y){this.metrics.errorCount.increment(Y,this.rD)};
_.z.oEg=function(Y){this.metrics.kbb.increment(Y,this.rD)};
_.z.uVp=function(Y){this.metrics.kvp.increment(Y,this.rD)};
_.z.htg=function(Y){this.metrics.gmJ.increment(Y,this.rD)};
var zl=function(Y,S){S=S===void 0?[]:S;var P={rD:Y.rD||"_",ywH:Y.ywH||[],etX:Y.etX|0,destinationUrl:Y.destinationUrl,iFf:Y.iFf||function(){},
mkE:Y.mkE||function(m,J){return a69(m,J,P.iFf,P.destinationUrl)}},u=P.mkE("49",P.ywH.concat(S));
Z7S.call(this,unK(u),P.rD);var W=this;this.iSO=S;this.TEST_ONLY={getExperimentIds:function(){return W.options.ywH.concat(W.iSO).sort(function(m,J){return m-J})}};
this.options=P;this.service=u;this.h6r=!Y.mkE;this.flushDebouncer=new lDf(function(){return void W.service.snapshotAndFlush()},P.etX);
this.addOnDisposeCallback(function(){W.flushDebouncer.dispose();W.h6r&&W.service.dispose()})};
_.r(zl,Z7S);zl.prototype.vuI=function(Y){var S=this;this.flushDebouncer.dispose();this.h6r&&this.service.dispose();this.service=this.options.mkE("49",this.options.ywH.concat(Y));this.flushDebouncer=new lDf(function(){return void S.service.snapshotAndFlush()},this.options.etX);
this.metrics=unK(this.service);this.iSO=Y};
zl.prototype.yH=function(){Xzi(this.flushDebouncer)};var iTa=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(iTa,_.Gc);_.ozh=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(_.ozh,_.Gc);var HB=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y,0,HB.messageId)};
_.r(HB,_.Gc);var i7s=_.YUX(HB);HB.messageId="bfkj";var ph8=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(ph8,_.Gc);var otu=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(otu,_.Gc);var tYm=_.M8(otu);_.nV=function(){var Y=this;this.promise=new Promise(function(S,P){Y.resolve=S;Y.reject=P})};_.ai=function(Y){_.R6.call(this);var S=this;this.gWe=Math.floor(Math.random()*200);this.wef=new otu;if("challenge"in Y&&i7s(Y.challenge)){var P=_.aJ(Y.challenge,4,void 0,lf);var u=_.aJ(Y.challenge,5,void 0,lf);_.aJ(Y.challenge,7,void 0,lf)&&(this.wef=tYm(_.aJ(Y.challenge,7,void 0,lf)))}else P=Y.program,u=Y.globalName;this.addOnDisposeCallback(function(){var v,a,w;return _.B(function(F){if(F.nextAddress==1)return _.q(F,S.yZE,2);v=F.yieldResult;a=v.gYZ;(w=a)==null||w();_.Yt(F)})});
this.logger=wJa(Y.oc||{},this.wef,Y.y5y);_.Ph(this,this.logger);var W=new _.nV;this.yZE=W.promise;this.logger.vJ("t");var m=this.logger.share(),J=new sDm(m,"t"),c=function(v,a,w,F){if(!S.logger.isDisposed()){var U="k";a?U="h":w&&(U="u");U!=="k"?F!==0&&(S.logger.vJ(U),S.logger.zX(U,v)):S.gWe<=0?(S.logger.vJ(U),S.logger.zX(U,v),S.gWe=Math.floor(Math.random()*200)):S.gWe--}},C=function(v,a,w,F){Promise.resolve().then(function(){J.done();
m.yH();m.dispose();W.resolve({jn6:v,gYZ:a,tU5:w,iop:F})})};
if(!_.Pa[u])throw this.logger.logError(25),Error("Ga");if(!_.Pa[u].a)throw this.logger.logError(26),Error("Ha");try{var x=_.Pa[u].a;u=[];for(var b=[],T=Foa(this.wef),K=0;K<T.length;K++)u.push(T[K]),b.push(1);var G=s6Y(this.wef);for(T=0;T<G.length;T++)u.push(G[T]),b.push(2);this.coZ=_.n(x(P,C,!0,Y.jwT,c,[u,b],_.aJ(this.wef,5))).next().value;this.qwe=W.promise.then(function(){})}catch(v){throw this.logger.logError(28),v;
}};
_.r(_.ai,_.R6);_.ai.prototype.snapshot=function(Y){if(this.isDisposed())throw Error("Ia");this.logger.vJ("n");var S=this.logger.share();return this.yZE.then(function(P){var u=P.jn6;return new Promise(function(W){var m=new sDm(S,"n");u(function(J){m.done();S.u6H(J.length);S.yH();S.dispose();W(J)},[Y.qf,
Y.nIf,Y.zD9,Y.qO4])})})};
_.AsS=function(Y,S){if(Y.isDisposed())throw Error("Ia");Y.logger.vJ("n");var P=Ii(Y.logger,function(){return Y.coZ([S.qf,S.nIf,S.zD9,S.qO4])},"n");
Y.logger.u6H(P.length);Y.logger.yH();return P};
_.ai.prototype.x1f=function(Y){this.yZE.then(function(S){var P;(P=S.tU5)==null||P(Y)})};
_.ai.prototype.jCE=function(Y,S){return this.yZE.then(function(P){var u;return(u=P.iop)==null?void 0:u(Y,S,!1)})};
_.ai.prototype.g4f=function(){return this.logger.share()};var Ug_=function(){this.eiM={};this.cRR=null},QDh=function(){Ug_.instance||(Ug_.instance=new Ug_);
return Ug_.instance},MYU=function(Y,S){return kqU(Y,_.P_(S,iTa,1,lf),_.P_(S,_.ozh,2,lf),_.aJ(S,3,void 0,lf))},kqU=function(Y,S,P,u){if(!S&&!P)return Promise.resolve();
if(!u)return db$(S,P);var W;(W=Y.eiM)[u]||(W[u]=new Promise(function(m,J){db$(S,P).then(function(){Y.cRR=u;m()},function(c){delete Y.eiM[u];
J(c)})}));
return Y.eiM[u]};var ysf=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(ysf,_.Gc);var NQm=function(Y,S){return _.Vi(Y,1,S)},H7J=function(Y,S){return _.Vi(Y,2,S)};var Ll=function(Y){_.R6.call(this);var S=this;this.options=Y;this.pBZ=new _.nV;this.qwe=this.pBZ.promise;this.u9f=new _.nV;this.r7n=1;this.vUQ=new _.nV;this.qOE=[];this.gMZ=Y.gMZ||function(){};
this.logger=new dg6(wJa(Y.oc||{}));VYf(this,Y.gF,Y.qbj,Y.uFY,Y.yNa,Object.assign({},eAt,Y.ddH||{}));this.addOnDisposeCallback(function(){return void O7s(S)})};
_.r(Ll,_.R6);Ll.prototype.snapshot=function(Y){var S=this;return _.B(function(P){switch(P.nextAddress){case 1:if(S.isDisposed())throw Error("Ia");if(S.hn||S.z2Z){P.jumpTo(2);break}return _.q(P,S.u9f.promise,2);case 2:if(!S.hn){P.jumpTo(4);break}return _.q(P,S.hn.snapshot(Y),5);case 5:return P.return(P.yieldResult);case 4:throw S.z2Z;}})};
var YyL=function(Y){var S;return _.B(function(P){if(Y.isDisposed())throw Error("Ia");(S=Y.wN)!=null&&(S.endTimeMs=0,S.resolver(1));return _.q(P,Y.vUQ.promise,0)})},O7s=function(Y){Y.z2Z=Error("Ka");
Y.u9f.resolve();dZf(Y.pBZ.promise);Y.pBZ.reject(Error("Ka"));Y.logger.dispose();Promise.all(Y.qOE).then(function(){var P;return _.B(function(u){(P=Y.hn)==null||P.dispose();Y.hn=void 0;_.Yt(u)})});
Y.qOE=[];var S;(S=Y.wN)!=null&&(S.endTimeMs=0,S.resolver(1));dZf(Y.vUQ.promise);Y.vUQ.reject(Error("Ka"))};
Ll.prototype.x1f=function(Y){var S,P;(S=this.hn)==null||(P=S.x1f)==null||P.call(S,Y)};
Ll.prototype.jCE=function(Y,S){var P,u,W;return(W=(P=this.hn)==null?void 0:(u=P.jCE)==null?void 0:u.call(P,Y,S))!=null?W:Promise.resolve()};
var Syd=function(Y,S){var P=Y.gMZ;Y.gMZ=function(){P();S()}},P9S=function(Y,S){Y.isDisposed()||(Y.hn=S,Y.logger.update(S.g4f()),Y.u9f.resolve(),Y.pBZ.resolve(void 0),Y.gMZ())};
Ll.prototype.handleError=function(Y){if(!this.isDisposed()){this.z2Z=Y;this.u9f.resolve();var S,P;(P=(S=this.options).tLs)==null||P.call(S,Y)}};
var uMt=function(Y,S){S&&(Promise.all(Y.qOE).then(function(){return void S.dispose()}),Y.qOE=[])},wy=function(Y,S){Y.r7n=S;
var P,u;(u=(P=Y.options).xsL)==null||u.call(P,S)},W8d=function(Y){Y.isDisposed()||(Y.vUQ.resolve(),Y.vUQ=new _.nV)},VYf=function(Y,S,P,u,W,m){u=u===void 0?QDh():u;
W=W===void 0?Promise.resolve(void 0):W;var J,c,C,x,b,T,K,G,v,a,w,F;_.B(function(U){switch(U.nextAddress){case 1:return _.q(U,0,3);case 3:c=null;if(!J){U.jumpTo(6);break}wy(Y,7);_.ND(U,7);return _.q(U,Bh(J.snapshot({}),m.v9b,function(){return Promise.resolve("E:CTO")}),9);
case 9:c=U.yieldResult;_.tc(U,6);break;case 7:_.O4(U),c="E:UCE";case 6:C=void 0,x=J?m.vE5:m.uCT,b=new eZ(x,m.eoV,m.hor,m.pbp),T=1;case 10:if(!(T<=m.maxAttempts)){U.jumpTo(12);break}if(T===1){U.jumpTo(13);break}wy(Y,0);Y.wN=new zq6(b.getValue(),m.l05,m.by9);return _.q(U,Y.wN.promise,14);case 14:K=U.yieldResult,Y.wN=void 0,K===1?(T=1,b.reset()):bhs(b);case 13:_.ND(U,15);G=void 0;if(P){G=P;U.jumpTo(17);break}wy(Y,5);v=u.cRR;return _.q(U,Bh(m1S(S,v,c),m.emT,function(){return Promise.reject(Error("La"))}),
18);
case 18:G=U.yieldResult;case 17:return wy(Y,3),_.q(U,Bh(MYU(u,G),m.pqx,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return wy(Y,8),_.q(U,W,20);case 20:return a=new _.ai({challenge:G,oc:Y.options.oc,jwT:Y.options.jwT}),_.q(U,Bh(a.qwe,m.fn7,function(){return Promise.reject(Error("Na"))}),21);
case 21:C=a;U.jumpTo(12);break;case 15:w=_.O4(U),Y.handleError(w),W8d(Y);case 11:T++;U.jumpTo(10);break;case 12:if(Y.isDisposed()){U.jumpTo(5);break}C&&(P=void 0,uMt(Y,J),J=C,P9S(Y,C),W8d(Y));wy(Y,2);Y.wN=new zq6(m.bGb,m.l05,m.by9);return _.q(U,Y.wN.promise,22);case 22:Y.wN=void 0;if(Y.isDisposed()){U.jumpTo(5);break}U.jumpTo(3);break;case 5:(F=J)==null||F.dispose(),_.Yt(U)}})};
Ll.prototype.g4f=function(){return this.logger.share()};
var eAt={bGb:432E5,l05:3E5,by9:10,v9b:1E4,emT:3E4,pqx:3E4,fn7:6E4,uCT:1E3,vE5:6E4,eoV:6E5,hor:.25,pbp:2,maxAttempts:10},zq6=function(Y,S,P){var u=this;this.endTimeMs=Date.now()+Y;this.promise=new Promise(function(m){u.resolver=m});
var W=function(){var m=u.endTimeMs-Date.now();m<=P?u.resolver(0):setTimeout(W,Math.min(m,S))};
W()};var ngi,ZJU=(ngi=Math.imul)!=null?ngi:function(Y,S){return Y*S|0},ch=[196,
200,224,18],pl=function(Y,S,P){P=P===void 0?[]:P;this.maxItems=Y;this.sU=S===void 0?0:S;this.eZ=P},jYs=function(Y){var S=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!S)return new pl(Y);var P=S.split(",");if(P.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new pl(Y);S=P.slice(1);S.length===1&&S[0]===""&&(S=[]);P=Number(P[0]);return isNaN(P)||P<0||P>S.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new pl(Y)):new pl(Y,P,S)};
pl.prototype.serialize=function(){return String(this.sU)+","+this.eZ.join()};
pl.prototype.insert=function(Y,S){var P=void 0;if(this.eZ[this.sU]!==Y){var u=this.eZ.indexOf(Y);u!==-1?(this.eZ.splice(u,1),u<this.sU&&this.sU--,this.eZ.splice(this.sU,0,Y)):(P=this.eZ[this.sU],this.eZ[this.sU]=Y)}this.sU=(this.sU+1)%this.maxItems;Y=l6h("iU5q-!O9@$",this.serialize());P&&Y&&S(P);return Y};
var J$S=function(Y,S){this.logger=S;try{var P=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(u){P=!1}P&&(this.index=jYs(Y))},Bhi=function(Y,S,P,u,W){var m=Y.index?Ii(Y.logger,function(){return AxK(Y.index,oda(S),P,u,W)},"W"):"u";
Y.logger.htg(m)},c$u=function(Y,S,P){var u=_.n(Y.index?Ii(Y.logger,function(){return Ub$(oda(S),P)},"R"):["u"]),W=u.next().value;
u=u.next().value;Y.logger.uVp(W);return u};var C9f={toString:function(Y){var S=[],P=0;Y-=-2147483648;S[P++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Y%52);for(Y=Math.floor(Y/52);Y>0;)S[P++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Y%62),Y=Math.floor(Y/62);return S.join("")}};var x1S=function(Y){Y=qyJ(Y);for(var S=2654435769,P=2654435769,u=314159265,W=Y.length,m=W,J=0,c=function(){S-=P;S-=u;S^=u>>>13;P-=u;P-=S;P^=S<<8;u-=S;u-=P;u^=P>>>13;S-=P;S-=u;S^=u>>>12;P-=u;P-=S;P^=S<<16;u-=S;u-=P;u^=P>>>5;S-=P;S-=u;S^=u>>>3;P-=u;P-=S;P^=S<<10;u-=S;u-=P;u^=P>>>15};m>=12;m-=12,J+=12)S+=Rq_(Y,J),P+=Rq_(Y,J+4),u+=Rq_(Y,J+8),c();
u+=W;switch(m){case 11:u+=Y[J+10]<<24;case 10:u+=Y[J+9]<<16;case 9:u+=Y[J+8]<<8;case 8:P+=Y[J+7]<<24;case 7:P+=Y[J+6]<<16;case 6:P+=Y[J+5]<<8;case 5:P+=Y[J+4];case 4:S+=Y[J+3]<<24;case 3:S+=Y[J+2]<<16;case 2:S+=Y[J+1]<<8;case 1:S+=Y[J]}c();return C9f.toString(u)},qyJ=function(Y){for(var S=[],P=0;P<Y.length;P++)S.push(Y.charCodeAt(P));
return S},Rq_=function(Y,S){return Y[S]+(Y[S+1]<<8)+(Y[S+2]<<16)+(Y[S+3]<<24)};var bxh,F$=function(Y){_.R6.call(this);this.logger=Y;this.oBb=new _.nV;this[bxh]=this.dispose};
_.r(F$,_.R6);var Thm=function(Y,S){var P=setTimeout(function(){Y.oBb.resolve()},S);
Y.addOnDisposeCallback(function(){return void clearTimeout(P)})};
F$.prototype.m3=function(Y,S){var P=this.z8(Y);S==null||S(P);return Ii(this.logger,function(){return _.QB(P,2)},this.rwO)};
var K86=function(Y,S,P,u){return Ii(Y.logger,function(){return P?Y.m3(S,u):Y.z8(S,u)},Y.t1)};
bxh=Symbol.dispose;var Eg3=function(Y,S,P,u){F$.call(this,Y);this.o3r=S;this.tRr=P;this.t1="m";this.rwO="x";this.mKp=0;Thm(this,u)};
_.r(Eg3,F$);Eg3.prototype.z8=function(Y,S){var P=this;this.logger.vJ(this.t1);++this.mKp>=this.tRr&&this.oBb.resolve();var u=Y();Y=Ii(this.logger,function(){return P.o3r(u)},"C");
if(Y===void 0)throw new Og(17,"YNJ:Undefined");if(!(Y instanceof Uint8Array))throw new Og(18,"ODM:Invalid");S==null||S(Y);return Y};
var f0U=function(Y,S,P){F$.call(this,Y);this.p7b=S;this.t1="f";this.rwO="z";Thm(this,P)};
_.r(f0U,F$);f0U.prototype.z8=function(){return this.p7b};
var ggs=function(Y,S,P){F$.call(this,Y);this.c9p=S;this.t1="w";this.rwO="z";Thm(this,P)};
_.r(ggs,F$);ggs.prototype.z8=function(){var Y=this;return Ii(this.logger,function(){return _.z3(Y.c9p)},"d")};
ggs.prototype.m3=function(){return this.c9p};
var $1s=function(Y,S){F$.call(this,Y);this.error=S;this.t1="e";this.rwO="y"};
_.r($1s,F$);var r$f=function(Y,S){var P=(S(Y.error.message)+":"+S(Y.error.stack)).substring(0,2048);S=P.length+1;P=QI$(P);var u=new Uint8Array(4+P.length);u.set([42,S&127|128,S>>7,Y.error.code]);u.set(P,4);return u};
$1s.prototype.z8=function(){if(this.vMl)return this.vMl;this.vMl=r$f(this,function(Y){return"_"+x1S(Y)});
return r$f(this,function(Y){return Y})};
var GHu=function(Y,S,P){F$.call(this,Y);this.xFs=S;this.clientState=P;this.t1="S";this.rwO="q"};
_.r(GHu,F$);GHu.prototype.z8=function(){var Y=Math.floor(Date.now()/1E3),S=[Math.random()*255,Math.random()*255],P=S.concat([this.xFs&255,this.clientState],[Y>>24&255,Y>>16&255,Y>>8&255,Y&255]);Y=new Uint8Array(2+P.length);Y[0]=34;Y[1]=P.length;Y.set(P,2);P=Y.subarray(2);for(var u=S=S.length;u<P.length;++u)P[u]^=P[u%S];this.logger.oEg(this.clientState);return Y};var hqi={oM5:3E4,xqv:2E4},sx=function(Y){_.R6.call(this);var S=this;this.vXf=new _.nV;this.fLI=0;this.kh=void 0;this.state=2;this.g6=Y.g6;this.gF=Y.gF;this.ddH=Object.assign({},hqi,Y.ddH||{});this.logger=Y.g6.g4f();var P;this.onError=(P=Y.onError)!=null?P:function(){};
this.nDy=Y.nDy||!1;if(vg6(Y)){var u=this.g6;this.pgb=function(){return YyL(u).catch(function(J){J=S.reportError(new Og(S.un?20:32,"TRG:Disposed",J));S.kh=J;var c;(c=S.un)==null||c.dispose();S.un=void 0;S.vXf.reject(J)})};
Syd(u,function(){return void D1u(S)});
u.r7n===2&&D1u(this)}else this.pgb=Y.qPq,D1u(this);var W=this.logger.share();W.vJ("o");var m=new sDm(W,"o");this.vXf.promise.then(function(){m.done();W.yH();W.dispose()},function(){return void W.dispose()});
this.addOnDisposeCallback(function(){S.un?(S.un.dispose(),S.un=void 0):S.kh?S.logger.yH():(S.kh=S.reportError(new Og(32,"TNP:Disposed")),S.logger.yH(),S.vXf.reject(S.kh))});
_.Ph(this,this.logger)};
_.r(sx,_.R6);sx.prototype.mDE=function(){return this.vXf.promise};
var I0S=function(Y,S){if(!(S instanceof Og))if(S instanceof _.ry){var P=Error(S.toString());P.stack=S.stack;S=new Og(11,"EBH:Error",P)}else S=new Og(12,"BSO:Unknown",S);return Y.reportError(S)},D1u=function(Y){var S,P,u,W,m,J,c,C,x,b,T,K,G,v,a;
return _.B(function(w){switch(w.nextAddress){case 1:S=void 0;Y.fLI++;P=new _.nV;Y.g6 instanceof Ll&&Y.g6.qOE.push(P.promise);if(!Y.nDy){w.jumpTo(2);break}u=new _.nV;setTimeout(function(){return void u.resolve()});
return _.q(w,u.promise,2);case 2:return W=Y.logger.share(),_.ND(w,4,5),Y.state=5,m={},J=[],_.q(w,Bh(Y.g6.snapshot({qf:m,zD9:J}),Y.ddH.xqv,function(){return Promise.reject(new Og(15,"MDA:Timeout"))}),7);
case 7:c=w.yieldResult;if(Y.isDisposed())throw new Og(Y.un?20:32,"MDA:Disposed");C=J[0];Y.state=6;return _.q(w,Bh(a06(Y.gF,c),Y.ddH.oM5,function(){return Promise.reject(new Og(10,"BWB:Timeout"))}),8);
case 8:x=w.yieldResult;if(Y.isDisposed())throw new Og(Y.un?20:32,"BWB:Disposed");Y.state=7;S=Ii(W,function(){var U=L8_(Y,x,P,C);U.oBb.promise.then(function(){return void Y.pgb()});
return U},"i");
case 5:_.Hx(w);W.dispose();_.e2(w,6);break;case 4:b=_.O4(w);(T=S)==null||T.dispose();if(!Y.kh){K=I0S(Y,b);P.resolve();var F;if(F=Y.g6 instanceof Ll&&Y.fLI<2)a:if(b instanceof Og)F=b.code!==32&&b.code!==20&&b.code!==10;else{if(b instanceof _.ry)switch(b.code){case 2:case 13:case 14:case 4:break;default:F=!1;break a}F=!0}if(F)return G=(1+Math.random()*.25)*(Y.un?6E4:1E3),v=setTimeout(function(){return void Y.pgb()},G),Y.addOnDisposeCallback(function(){return void clearTimeout(v)}),w.return();
Y.kh=K}W.logError(Y.un?13:14);Y.vXf.reject(Y.kh);return w.return();case 6:Y.state=8,Y.fLI=0,(a=Y.un)==null||a.dispose(),Y.un=S,Y.vXf.resolve(),_.Yt(w)}})},L8_=function(Y,S,P,u){var W=LSf(S,2)*1E3;
if(W<=0)throw new Og(31,"TTM:Invalid");if(_.aJ(S,4))return new ggs(Y.logger,_.aJ(S,4),W);if(!LSf(S,3))return new f0U(Y.logger,qlE(_.fj(S,1)),W);if(!u)throw new Og(4,"PMD:Undefined");u=u(qlE(_.fj(S,1)));if(!(u instanceof Function))throw new Og(16,"APF:Failed");Y.czs=Math.floor((Date.now()+W)/1E3);Y=new Eg3(Y.logger,u,LSf(S,3),W);Y.addOnDisposeCallback(function(){return void P.resolve()});
return Y};
sx.prototype.z8=function(Y){return wku(this,Object.assign({},Y),!1)};
sx.prototype.m3=function(Y){return wku(this,Object.assign({},Y),!0)};
sx.prototype.til=function(Y){if(Y>150)return!1;try{return this.cache=new J$S(Y,this.logger),!0}catch(S){return this.reportError(new Og(22,"GBJ:init",S)),!1}};
sx.prototype.reportError=function(Y){this.logger.logError(Y.code);this.onError(Y);return Y};
var pki=function(Y,S){S=S instanceof Og?S:new Og(5,"TVD:error",S);return Y.reportError(S)},wku=function(Y,S,P){try{if(Y.isDisposed())throw new Og(21,"BNT:disposed");
if(!Y.un&&Y.kh)throw Y.kh;var u,W;return(W=(u=F8S(Y,S,P))!=null?u:sYS(Y,S,P))!=null?W:d1_(Y,S,P)}catch(m){if(!S.d8O)throw pki(Y,m);return l0i(Y,P,m)}},F8S=function(Y,S,P){var u;
return(u=Y.un)==null?void 0:K86(u,function(){return Xk3(Y,S)},P,function(W){var m;
if(Y.un instanceof Eg3&&((m=S.kM)==null?0:m.nJ2))try{var J;(J=Y.cache)==null||Bhi(J,Xk3(Y,S),W,S.kM.uxO,Y.czs-120)}catch(c){Y.reportError(new Og(24,"ELX:write",c))}})},sYS=function(Y,S,P){var u;
if((u=S.kM)!=null&&u.sxb)try{var W,m=(W=Y.cache)==null?void 0:c$u(W,Xk3(Y,S),S.kM.uxO);return m?P?Ii(Y.logger,function(){return _.QB(m,2)},"a"):m:void 0}catch(J){Y.reportError(new Og(23,"RXO:read",J))}},d1_=function(Y,S,P){var u={stack:[],
error:void 0,hasError:!1};try{if(!S.arr)throw new Og(29,"SDF:notready");return K86(nlf(u,new GHu(Y.logger,0,Y.state)),function(){return Xk3(Y,S)},P)}catch(W){u.error=W,u.hasError=!0}finally{c2K(u)}},l0i=function(Y,S,P){var u={stack:[],
error:void 0,hasError:!1};try{var W=pki(Y,P);return K86(nlf(u,new $1s(Y.logger,W)),function(){return[]},S)}catch(m){u.error=m,u.hasError=!0}finally{c2K(u)}},Xk3=function(Y,S){return S.lFf?S.lFf:S.qf?Ii(Y.logger,function(){return S.lFf=QI$(S.qf)},"c"):[]},vg6=function(Y){return Zs(function(S){if(!uy(S))return!1;
for(var P=_.n(Object.entries(Y)),u=P.next();!u.done;u=P.next()){var W=_.n(u.value);u=W.next().value;W=W.next().value;if(!(u in S)){if(W.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!W(S[u]))return!1}return!0})}({g6:function(Y){return Zs(function(S){return S instanceof Y})}(Ll)},"");var uch=function(){var Y=_.Wq();this.JSC$7807_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",yI("tick"),_.M1("from_st_cookie"))};
uch.prototype.increment=function(Y,S){this.JSC$7807_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",Y,S)};
var ZxJ=function(){var Y=_.Wq();this.JSC$7813_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.N1("status"))};
ZxJ.prototype.increment=function(Y){this.JSC$7813_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",Y)};
var ixd=function(){var Y=_.Wq();this.JSC$7816_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.N1("stage"),_.M1("is_using_ytd_player"),_.M1("has_expandable_tiles"))};
ixd.prototype.increment=function(Y,S,P){this.JSC$7816_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",Y,S,P)};
var og_=function(){var Y=_.Wq();this.JSC$7819_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/response_signature",_.N1("check_status"))};
og_.prototype.increment=function(Y){this.JSC$7819_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/response_signature",Y)};
var tZU=function(){var Y=_.Wq();this.JSC$7822_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.N1("sig"),yI("de"))};
tZU.prototype.increment=function(Y,S){this.JSC$7822_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/e_sig_log",Y,S)};
var A$L=function(){var Y=_.Wq();this.JSC$7825_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.N1("sig"),yI("de"))};
A$L.prototype.increment=function(Y,S){this.JSC$7825_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/e_sig_en",Y,S)};
_.U1L=function(){var Y=_.Wq();this.JSC$7828_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.N1("action"))};
_.U1L.prototype.increment=function(Y){this.JSC$7828_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/enforcement_intent",Y)};var FEa=function(){var Y=_.Wq();this.JSC$7831_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.N1("tagname"))};
FEa.prototype.increment=function(Y){this.JSC$7831_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",Y)};var dy=window;var QYU=(new Date).getTime();var kHd=function(Y){this.servicePromise_=Y;Y.then((0,_.xS)(function(){},this),function(){},this)},MZs=function(Y,S,P){Y.servicePromise_.then(function(u){var W=u[S];
if(!W)throw Error("Oa`"+S);return W.apply(u,P)})},Hxd=function(Y,S,P){for(var u=Array(arguments.length-2),W=2;W<arguments.length;W++)u[W-2]=arguments[W];
W=y$J(Y,S).then(function(m){return m.apply(null,u)},function(m){m=Error("Pa`"+S+"`"+Y,{cause:m});
delete Nhs[S];return _.t9(m)});
return new kHd(W)},Nhs={},y$J=function(Y,S){var P=Nhs[S];
if(P)return P;P=(P=_.tA(S))?_.Cb(P):(new _.qs(function(u,W){var m=(new h_(document)).createElement("SCRIPT");m.async=!0;_.I9(m,_.YU(fIu(Y)));m.onload=m.onreadystatechange=function(){m.readyState&&m.readyState!="loaded"&&m.readyState!="complete"||u()};
m.onerror=function(J){W(Error("Qa`"+S+"`"+Y,{cause:J}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(m)})).then(function(){var u=_.tA(S);
if(!u)throw Error("Ra`"+S+"`"+Y);return u});
return Nhs[S]=P};var VZm={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Ox3=function(){var Y=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=k69(function(){return _.B(function(S){if(S.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?S.return(Promise.resolve()):_.q(S,eqs(Y),2);Y.rsaForList.length>
0&&document.addEventListener("click",Y.requestAccessForHelpPanel);_.Yt(S)})});
this.requestAccessForHelpPanel=function(){if(!(Y.rsaForPromises.length>0)){for(var S=_.n(Y.rsaForList),P=S.next();!P.done;P=S.next()){P=P.value;try{Y.rsaForPromises.push(document.requestStorageAccessFor(P))}catch(u){}}Promise.all(Y.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){Y.reset()})}}};
Ox3.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var eqs=function(Y){var S,P,u,W;return _.B(function(m){switch(m.nextAddress){case 1:S=_.n(Object.values(VZm)),P=S.next();case 2:if(P.done){m.jumpTo(0);break}u=P.value;_.ND(m,5);return _.q(m,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:u}),7);case 7:W=m.yieldResult;W.state!=="granted"&&Y.rsaForList.push(u);_.tc(m,3);break;case 5:_.O4(m);m.jumpTo(0);break;case 3:P=S.next(),m.jumpTo(2)}})};(new Ox3).initialize();var Y_d=function(Y){this.JSC$7845_loader_=Y};
Y_d.prototype.startHelp=function(Y){MZs(this.JSC$7845_loader_,"startHelp",arguments)};
Y_d.prototype.JSC$7847_loadChatSupport=function(Y){MZs(this.JSC$7845_loader_,"loadChatSupport",arguments)};
var PV6=function(Y,S){S=S||{};Y=Hxd(S_t,"help.service.Lazy.create",Y,{apiKey:S.apiKey||S.apiKey,asxUiUri:S.asxUiUri||S.asxUiUri,environment:S.environment||S.environment,flow:S.flow||S.flow,frdProductData:S.frdProductData||S.frdProductData,frdProductDataSerializedJspb:S.frdProductDataSerializedJspb||S.frdProductDataSerializedJspb,helpCenterPath:S.helpCenterPath||S.helpCenterPath,locale:S.locale||S.locale||"en-US".replace(/-/g,"_"),nonce:S.nonce||S.nonce,productData:S.productData||S.productData,receiverUri:S.receiverUri||
S.receiverUri,renderApiUri:S.renderApiUri||S.renderApiUri,theme:S.theme||S.theme,window:S.window||S.window});return new Y_d(Y)},S_t=new lE(zMY,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var uIi=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(uIi,_.Gc);var Woi=_.M8(uIi);new Uint8Array([]);_.zJ3=new function(Y,S,P,u){this.configType=Y;this.flagName=P;this.defaultValue=u;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 nSd=function(){this.retriever=_.E().resolve(mZ3)};qZ(Node);qZ(Element);var j6f=qZ(HTMLElement);qZ(SVGElement);var JFt,B73,Zj,cFt;JFt=function(Y){return typeof Y.className=="string"?Y.className:Y.getAttribute&&Y.getAttribute("class")||""};
B73=function(Y){return Y.classList?Y.classList:JFt(Y).match(/\S+/g)||[]};
_.lG=function(Y,S){typeof Y.className=="string"?Y.className=S:Y.setAttribute&&Y.setAttribute("class",S)};
_.X$=function(Y,S){return Y.classList?Y.classList.contains(S):_.Au(B73(Y),S)};
_.i2=function(Y,S){if(Y.classList)Y.classList.add(S);else if(!_.X$(Y,S)){var P=JFt(Y);_.lG(Y,P+(P.length>0?" "+S:S))}};
Zj=function(Y,S){if(Y.classList)Array.prototype.forEach.call(S,function(W){_.i2(Y,W)});
else{var P={};Array.prototype.forEach.call(B73(Y),function(W){P[W]=!0});
Array.prototype.forEach.call(S,function(W){P[W]=!0});
S="";for(var u in P)S+=S.length>0?" "+u:u;_.lG(Y,S)}};
_.X5=function(Y,S){Y.classList?Y.classList.remove(S):_.X$(Y,S)&&_.lG(Y,Array.prototype.filter.call(B73(Y),function(P){return P!=S}).join(" "))};
cFt=function(Y,S){Y.classList?Array.prototype.forEach.call(S,function(P){_.X5(Y,P)}):_.lG(Y,Array.prototype.filter.call(B73(Y),function(P){return!_.Au(S,P)}).join(" "))};var CVt=function(Y){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=Y.document},xZJ=function(Y,S){q__(Y);
var P=document.createElement("div"),u;(u=S.parentNode)==null||u.insertBefore(P,S);P.tabIndex=0;P.id="fc-focus-trap-pre-div";P=document.createElement("div");var W;(W=S.parentNode)==null||W.insertBefore(P,S.nextSibling);P.tabIndex=0;P.id="fc-focus-trap-post-div";var m=RJs(Y,S),J=RJs(Y,S,!0);m&&J&&(Y.focusChangeHandler=function(){var c=Y.document.activeElement;if(c)if(_.pN(S,c))Y.previouslyFocusedElement=c;else if(c===Y.document.activeElement)switch(Y.previouslyFocusedElement){case m:J.focus();Y.previouslyFocusedElement=
J;break;default:m.focus(),Y.previouslyFocusedElement=m}},Y.document.addEventListener("focus",Y.focusChangeHandler,!0),Y.document.addEventListener("focusin",Y.focusChangeHandler))},q__=function(Y){Y.focusChangeHandler&&(document.removeEventListener("focus",Y.focusChangeHandler,!0),document.removeEventListener("focusin",Y.focusChangeHandler),Y.focusChangeHandler=null);
var S;(S=document.getElementById("fc-focus-trap-pre-div"))==null||S.remove();var P;(P=document.getElementById("fc-focus-trap-post-div"))==null||P.remove()},bNS=function(Y,S,P,u,W){P=P===void 0?!0:P;
var m;W=(m=W===void 0?null:W)!=null?m:RJs(Y,S,u===void 0?!1:u);W!==null&&(W.focus(),P&&xZJ(Y,S))};
CVt.prototype.disableButton=function(Y,S){S=S===void 0?null:S;Y.disabled=!0;S&&_.i2(Y,S)};
var RJs=function(Y,S,P){P=P===void 0?!1:P;if(rK1(S)&&!P)return S;var u=P?[].slice.call(S.children,0).reverse():S.children;u=_.n(u);for(var W=u.next();!W.done;W=u.next())if(W=W.value,j6f(W)&&(W=RJs(Y,W,P)))return W;return rK1(S)&&P?S:null};var T73=function(Y){this.originalBodyOverflow="";this.JSC$7873_domHelper=Wk(Y)};_.PW(_.bV,_.R6);_.z=_.bV.prototype;_.z.JSC$7876_id_=0;_.z.disposeInternal=function(){_.bV.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7874_listener_;delete this.handler_};
_.z.start=function(Y){this.stop();this.JSC$7876_id_=$M(this.callback_,Y!==void 0?Y:this.JSC$7874_interval_)};
_.z.stop=function(){this.isActive()&&_.Pa.clearTimeout(this.JSC$7876_id_);this.JSC$7876_id_=0};
_.z.fire=function(){this.stop();this.JSC$7876_doAction_()};
_.z.isActive=function(){return this.JSC$7876_id_!=0};
_.z.JSC$7876_doAction_=function(){this.JSC$7876_id_=0;this.JSC$7874_listener_&&this.JSC$7874_listener_.call(this.handler_)};_.u6=function(Y){_.R6.call(this);this.handler_=Y;this.JSC$7877_keys_={}};
_.PW(_.u6,_.R6);var KoS=[];_.u6.prototype.listen=function(Y,S,P,u){Array.isArray(S)||(S&&(KoS[0]=S.toString()),S=KoS);for(var W=0;W<S.length;W++){var m=_.b2(Y,S[W],P||this.handleEvent,u||!1,this.handler_||this);if(!m)break;this.JSC$7877_keys_[m.key]=m}return this};
_.u6.prototype.listenOnce=function(Y,S,P,u){return ESJ(this,Y,S,P,u)};
var ESJ=function(Y,S,P,u,W,m){if(Array.isArray(P))for(var J=0;J<P.length;J++)ESJ(Y,S,P[J],u,W,m);else{S=Cs(S,P,u||Y.handleEvent,W,m||Y.handler_||Y);if(!S)return Y;Y.JSC$7877_keys_[S.key]=S}return Y};
_.u6.prototype.unlisten=function(Y,S,P,u,W){if(Array.isArray(S))for(var m=0;m<S.length;m++)this.unlisten(Y,S[m],P,u,W);else if(Y=UD_(Y,S,P||this.handleEvent,_.SS(u)?!!u.capture:!!u,W||this.handler_||this))qG(Y),delete this.JSC$7877_keys_[Y.key];return this};
_.u6.prototype.removeAll=function(){_.RY.forEach(this.JSC$7877_keys_,function(Y,S){this.JSC$7877_keys_.hasOwnProperty(S)&&qG(Y)},this);
this.JSC$7877_keys_={}};
_.u6.prototype.disposeInternal=function(){_.u6.superClass_.disposeInternal.call(this);this.removeAll()};
_.u6.prototype.handleEvent=function(){throw Error("Sa");};var iG=function(){_.R6.call(this);this.services_={}};
_.PW(iG,_.R6);_.z=iG.prototype;_.z.logger=null;_.z.connect=function(Y){Y&&Y()};
_.z.isConnected=function(){return!0};
_.z.registerService=function(Y,S,P){this.services_[Y]={callback:S,objectPayload:!!P}};
_.z.getService=function(Y,S){var P=this.services_[Y];return P?P:this.defaultService_?{callback:_.gP(this.defaultService_,Y),objectPayload:_.SS(S)}:null};
var fb6=function(Y,S){if(S&&typeof Y==="string")try{return JSON.parse(Y)}catch(P){return null}else if(!S&&typeof Y!=="string")return(0,_.Gj)(Y);return Y};
iG.prototype.disposeInternal=function(){iG.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 oi=function(Y,S){this.sequence_=[];this.onCancelFunction_=Y;this.defaultScope_=S||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};
oi.prototype.cancel=function(Y){if(this.fired_)this.result_ instanceof oi&&this.result_.cancel();else{if(this.parent_){var S=this.parent_;delete this.parent_;Y?S.cancel(Y):(S.branches_--,S.branches_<=0&&S.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new ty(this))}};
oi.prototype.continue_=function(Y,S){this.blocked_=!1;gS6(this,Y,S)};
var gS6=function(Y,S,P){Y.fired_=!0;Y.result_=P;Y.hadError_=!S;$ZU(Y)},Glu=function(Y){if(Y.fired_){if(!Y.silentlyCanceled_)throw new rFu(Y);
Y.silentlyCanceled_=!1}};
oi.prototype.callback=function(Y){Glu(this);gS6(this,!0,Y)};
oi.prototype.errback=function(Y){Glu(this);gS6(this,!1,Y)};
var hJu=function(Y,S,P){Ay(Y,S,null,P)};
oi.prototype.finally=function(Y){var S=this;return new Promise(function(P,u){Ay(S,function(W){Y();P(W)},function(W){Y();
u(W)})})};
var Ay=function(Y,S,P,u){var W=Y.fired_;W||(S===P?S=P=Kl(S):(S=Kl(S),P=Kl(P)));Y.sequence_.push([S,P,u]);W&&$ZU(Y)};
oi.prototype.then=function(Y,S,P){var u,W,m=new _.qs(function(J,c){W=J;u=c});
Ay(this,W,function(J){J instanceof ty?m.cancel():u(J);return vSu},this);
return m.then(Y,S,P)};
eEL(oi);var DZs=function(Y,S){S instanceof oi?hJu(Y,(0,_.xS)(S.branch,S)):hJu(Y,function(){return S})};
oi.prototype.branch=function(Y){var S=new oi;Ay(this,S.callback,S.errback,S);Y&&(S.parent_=this,this.branches_++);return S};
oi.prototype.isError=function(Y){return Y instanceof Error};
var Ibu=function(Y){return yn(Y.sequence_,function(S){return typeof S[1]==="function"})},vSu={},$ZU=function(Y){if(Y.unhandledErrorId_&&Y.fired_&&Ibu(Y)){var S=Y.unhandledErrorId_,P=abh[S];
P&&(_.Pa.clearTimeout(P.JSC$7894_id_),delete abh[S]);Y.unhandledErrorId_=0}Y.parent_&&(Y.parent_.branches_--,delete Y.parent_);S=Y.result_;for(var u=P=!1;Y.sequence_.length&&!Y.blocked_;){var W=Y.sequence_.shift(),m=W[0],J=W[1];W=W[2];if(m=Y.hadError_?J:m)try{var c=m.call(W||Y.defaultScope_,S);c===vSu&&(c=void 0);c!==void 0&&(Y.hadError_=Y.hadError_&&(c==S||Y.isError(c)),Y.result_=S=c);if(Ohd(S)||typeof _.Pa.Promise==="function"&&S instanceof _.Pa.Promise)u=!0,Y.blocked_=!0}catch(C){S=C,Y.hadError_=
!0,Ibu(Y)||(P=!0)}}Y.result_=S;u&&(c=(0,_.xS)(Y.continue_,Y,!0),u=(0,_.xS)(Y.continue_,Y,!1),S instanceof oi?(Ay(S,c,u),S.blocking_=!0):S.then(c,u));P&&(S=new Loh(S),abh[S.JSC$7894_id_]=S,Y.unhandledErrorId_=S.JSC$7894_id_)},rFu=function(){_.YY.call(this)};
_.PW(rFu,_.YY);rFu.prototype.message="Deferred has already fired";rFu.prototype.name="AlreadyCalledError";var ty=function(){_.YY.call(this)};
_.PW(ty,_.YY);ty.prototype.message="Deferred was canceled";ty.prototype.name="CanceledError";var Loh=function(Y){this.JSC$7894_id_=_.Pa.setTimeout((0,_.xS)(this.throwError,this),0);this.JSC$7894_error_=Y};
Loh.prototype.throwError=function(){delete abh[this.JSC$7894_id_];throw this.JSC$7894_error_;};
var abh={};var whS={1:"NativeMessagingTransport"},phu=["pu","lru","pru","lpu","ppu"],s6_=function(){for(var Y=10,S=Fof,P=S.length,u="";Y-- >0;)u+=S.charAt(Math.floor(Math.random()*P));return u},Fof="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Ux=function(Y){_.R6.call(this);this.JSC$7897_domHelper_=Y||Wk()};
_.PW(Ux,_.R6);Ux.prototype.transportType=0;Ux.prototype.getWindow=function(){return this.JSC$7897_domHelper_.getWindow()};
Ux.prototype.getName=function(){return whS[String(this.transportType)]||""};var QK=function(Y,S,P,u,W){Ux.call(this,P);this.JSC$7900_channel_=Y;this.protocolVersion_=W||2;this.peerHostname_=S||"*";this.JSC$7900_eventHandler_=new _.u6(this);this.maybeAttemptToConnectTimer_=new _.P3(100,this.getWindow());this.oneSidedHandshake_=!!u;this.setupAckReceived_=new oi;this.setupAckSent_=new oi;this.JSC$7900_connected_=new oi;this.endpointId_=s6_();this.peerEndpointId_=null;this.oneSidedHandshake_?dZs(this.JSC$7900_channel_)==1?DZs(this.JSC$7900_connected_,this.setupAckReceived_):
DZs(this.JSC$7900_connected_,this.setupAckSent_):(DZs(this.JSC$7900_connected_,this.setupAckReceived_),this.protocolVersion_==2&&DZs(this.JSC$7900_connected_,this.setupAckSent_));hJu(this.JSC$7900_connected_,this.notifyConnected_,this);this.JSC$7900_connected_.callback(!0);this.JSC$7900_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.PW(QK,Ux);QK.prototype.peerProtocolVersion_=null;QK.prototype.initialized_=!1;QK.prototype.transportType=1;var lbh={};QK.prototype.sendTimerId_=0;
var iNf=function(Y){var S=Y.event_.data;if(typeof S!=="string")return!1;var P=S.indexOf("|"),u=S.indexOf(":");if(P==-1||u==-1)return!1;var W=S.substring(0,P);P=S.substring(P+1,u);S=S.substring(u+1);if(u=kM[W])return u.xpcDeliver(P,S,Y.event_.origin),!0;u=Xhh(S)[0];for(var m in kM){var J=kM[m];if(dZs(J)==1&&!J.isConnected()&&P=="tp"&&(u=="SETUP"||u=="SETUP_NTPV2")&&ZNS(J,Y.event_.origin))return delete kM[J.name],J.name=W,kM[W]=J,J.xpcDeliver(P,S),!0}return!1},oSi=function(Y){Y.protocolVersion_!=2||
Y.peerProtocolVersion_!=null&&Y.peerProtocolVersion_!=2||Y.send("tp","SETUP_NTPV2,"+Y.endpointId_);
Y.peerProtocolVersion_!=null&&Y.peerProtocolVersion_!=1||Y.send("tp","SETUP")},tLf=function(Y,S){if(Y.protocolVersion_!=2||Y.peerProtocolVersion_!=null&&Y.peerProtocolVersion_!=2||S!=2){if(Y.peerProtocolVersion_!=null&&Y.peerProtocolVersion_!=1||S!=1)return;
Y.send("tp","SETUP_ACK")}else Y.send("tp","SETUP_ACK_NTPV2");Y.setupAckSent_.fired_||Y.setupAckSent_.callback(!0)},AFt=function(Y,S){S>Y.peerProtocolVersion_&&(Y.peerProtocolVersion_=S);
Y.peerProtocolVersion_==1&&(Y.setupAckSent_.fired_||Y.oneSidedHandshake_||Y.setupAckSent_.callback(!0),Y.peerEndpointId_=null)};
_.z=QK.prototype;_.z.connect=function(){var Y=this.getWindow(),S=_.Pt(Y),P=lbh[S];typeof P!=="number"&&(P=0);P==0&&_.b2(Y.postMessage?Y:Y.document,"message",iNf,!1,QK);lbh[S]=P+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.z.maybeAttemptToConnect_=function(){var Y=dZs(this.JSC$7900_channel_)==0;this.oneSidedHandshake_&&Y||this.JSC$7900_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),oSi(this))};
_.z.send=function(Y,S){var P=this.JSC$7900_channel_.peerWindowObject_;P&&(this.send=function(u,W){var m=this,J=this.JSC$7900_channel_.name;this.sendTimerId_=$M(function(){m.sendTimerId_=0;try{var c=P.postMessage?P:P.document;c.postMessage&&c.postMessage(J+"|"+u+":"+W,m.peerHostname_)}catch(C){}},0)},this.send(Y,S))};
_.z.notifyConnected_=function(){var Y=this.JSC$7900_channel_,S=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;Y.isConnected()||Y.connectionDelay_&&Y.connectionDelay_.isActive()||(Y.state_=2,_.oY(Y.connectionDelay_),S!==void 0?(Y.connectionDelay_=new _.bV(Y.connectCb_,S),Y.connectionDelay_.start()):(Y.connectionDelay_=null,Y.connectCb_()))};
_.z.disposeInternal=function(){if(this.initialized_){var Y=this.getWindow(),S=_.Pt(Y),P=lbh[S];lbh[S]=P-1;P==1&&_.bG(Y.postMessage?Y:Y.document,"message",iNf,!1,QK)}this.sendTimerId_&&(_.Pa.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.oY(this.JSC$7900_eventHandler_);delete this.JSC$7900_eventHandler_;_.oY(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7900_connected_.cancel();delete this.JSC$7900_connected_;delete this.send;QK.superClass_.disposeInternal.call(this)};
var Xhh=function(Y){Y=Y.split(",");Y[1]=Y[1]||null;return Y};_.M4=function(Y){if(Y.getValues&&typeof Y.getValues=="function")return Y.getValues();if(typeof Map!=="undefined"&&Y instanceof Map||typeof Set!=="undefined"&&Y instanceof Set)return Array.from(Y.values());if(typeof Y==="string")return Y.split("");if(_.eK(Y)){for(var S=[],P=Y.length,u=0;u<P;u++)S.push(Y[u]);return S}return _.RY.getValues(Y)};
_.UZs=function(Y){if(Y.getKeys&&typeof Y.getKeys=="function")return Y.getKeys();if(!Y.getValues||typeof Y.getValues!="function"){if(typeof Map!=="undefined"&&Y instanceof Map)return Array.from(Y.keys());if(!(typeof Set!=="undefined"&&Y instanceof Set)){if(_.eK(Y)||typeof Y==="string"){var S=[];Y=Y.length;for(var P=0;P<Y;P++)S.push(P);return S}return _.RY.getKeys(Y)}}};
_.Q6h=function(Y,S,P){if(Y.forEach&&typeof Y.forEach=="function")Y.forEach(S,P);else if(_.eK(Y)||typeof Y==="string")Array.prototype.forEach.call(Y,S,P);else for(var u=_.UZs(Y),W=_.M4(Y),m=W.length,J=0;J<m;J++)S.call(P,W[J],u&&u[J],Y)};var Clf,Yq,PO,eJi,kl3,yFt,ML3,VLU,N7h;
_.Nq=function(Y,S){this.JSC$7905_domain_=this.userInfo_=this.scheme_="";this.JSC$7905_port_=null;this.fragment_=this.JSC$7905_path_="";this.JSC$7905_ignoreCase_=!1;var P;Y instanceof _.Nq?(this.JSC$7905_ignoreCase_=S!==void 0?S:Y.JSC$7905_ignoreCase_,_.yK(this,Y.scheme_),this.userInfo_=Y.userInfo_,_.N4(this,Y.JSC$7905_domain_),_.Hy(this,Y.JSC$7905_port_),_.VK(this,Y.getPath()),_.ej(this,Y.JSC$7905_queryData_.clone()),_.Ox(this,Y.fragment_)):Y&&(P=_.HR(String(Y)))?(this.JSC$7905_ignoreCase_=!!S,_.yK(this,
P[1]||"",!0),this.userInfo_=Yq(P[2]||""),_.N4(this,P[3]||"",!0),_.Hy(this,P[4]),_.VK(this,P[5]||"",!0),_.ej(this,P[6]||"",!0),_.Ox(this,P[7]||"",!0)):(this.JSC$7905_ignoreCase_=!!S,this.JSC$7905_queryData_=new _.Sv(null,this.JSC$7905_ignoreCase_))};
_.Nq.prototype.toString=function(){var Y=[],S=this.scheme_;S&&Y.push(PO(S,kl3,!0),":");var P=this.JSC$7905_domain_;if(P||S=="file")Y.push("//"),(S=this.userInfo_)&&Y.push(PO(S,kl3,!0),"@"),Y.push(_.UW(P).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),P=this.JSC$7905_port_,P!=null&&Y.push(":",String(P));if(P=this.getPath())this.JSC$7905_domain_&&P.charAt(0)!="/"&&Y.push("/"),Y.push(PO(P,P.charAt(0)=="/"?ML3:yFt,!0));(P=this.JSC$7905_queryData_.toString())&&Y.push("?",P);(P=this.fragment_)&&Y.push("#",PO(P,
N7h));return Y.join("")};
_.Nq.prototype.resolve=function(Y){var S=this.clone(),P=!!Y.scheme_;P?_.yK(S,Y.scheme_):P=!!Y.userInfo_;P?S.userInfo_=Y.userInfo_:P=!!Y.JSC$7905_domain_;P?_.N4(S,Y.JSC$7905_domain_):P=Y.JSC$7905_port_!=null;var u=Y.getPath();if(P)_.Hy(S,Y.JSC$7905_port_);else if(P=!!Y.JSC$7905_path_){if(u.charAt(0)!="/")if(this.JSC$7905_domain_&&!this.JSC$7905_path_)u="/"+u;else{var W=S.getPath().lastIndexOf("/");W!=-1&&(u=S.getPath().slice(0,W+1)+u)}W=u;if(W==".."||W==".")u="";else if(_.C8(W,"./")||_.C8(W,"/.")){u=
_.m$(W,"/");W=W.split("/");for(var m=[],J=0;J<W.length;){var c=W[J++];c=="."?u&&J==W.length&&m.push(""):c==".."?((m.length>1||m.length==1&&m[0]!="")&&m.pop(),u&&J==W.length&&m.push("")):(m.push(c),u=!0)}u=m.join("/")}else u=W}P?_.VK(S,u):P=Y.JSC$7905_queryData_.toString()!=="";P?_.ej(S,Y.JSC$7905_queryData_.clone()):P=!!Y.fragment_;P&&_.Ox(S,Y.fragment_);return S};
_.Nq.prototype.clone=function(){return new _.Nq(this)};
_.yK=function(Y,S,P){Y.scheme_=P?Yq(S,!0):S;Y.scheme_&&(Y.scheme_=Y.scheme_.replace(/:$/,""));return Y};
_.N4=function(Y,S,P){Y.JSC$7905_domain_=P?Yq(S,!0):S;return Y};
_.Hy=function(Y,S){if(S){S=Number(S);if(isNaN(S)||S<0)throw Error("Ta`"+S);Y.JSC$7905_port_=S}else Y.JSC$7905_port_=null;return Y};
_.Nq.prototype.getPath=function(){return this.JSC$7905_path_};
_.VK=function(Y,S,P){Y.JSC$7905_path_=P?Yq(S,!0):S;return Y};
_.ej=function(Y,S,P){S instanceof _.Sv?(Y.JSC$7905_queryData_=S,HNt(Y.JSC$7905_queryData_,Y.JSC$7905_ignoreCase_)):(P||(S=PO(S,VLU)),Y.JSC$7905_queryData_=new _.Sv(S,Y.JSC$7905_ignoreCase_));return Y};
_.XI=function(Y,S,P){Y.JSC$7905_queryData_.set(S,P);return Y};
_.lV=function(Y,S){return Y.JSC$7905_queryData_.get(S)};
_.Ox=function(Y,S,P){Y.fragment_=P?Yq(S):S;return Y};
_.ui=function(Y){_.XI(Y,"zx",s_());return Y};
_.d7=function(Y,S){return Y instanceof _.Nq?Y.clone():new _.Nq(Y,S)};
Clf=function(Y,S){Y instanceof _.Nq||(Y=_.d7(Y));S instanceof _.Nq||(S=_.d7(S));return Y.resolve(S)};
Yq=function(Y,S){return Y?S?decodeURI(Y.replace(/%25/g,"%2525")):decodeURIComponent(Y):""};
PO=function(Y,S,P){return typeof Y==="string"?(Y=encodeURI(Y).replace(S,eJi),P&&(Y=Y.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Y):null};
eJi=function(Y){Y=Y.charCodeAt(0);return"%"+(Y>>4&15).toString(16)+(Y&15).toString(16)};
kl3=/[#\/\?@]/g;yFt=/[#\?:]/g;ML3=/[#\?]/g;VLU=/[#\?@]/g;N7h=/#/g;_.Sv=function(Y,S){this.count_=this.keyMap_=null;this.encodedQuery_=Y||null;this.JSC$7906_ignoreCase_=!!S};
_.WO=function(Y){Y.keyMap_||(Y.keyMap_=new Map,Y.count_=0,Y.encodedQuery_&&FhL(Y.encodedQuery_,function(S,P){Y.add(SH(S),P)}))};
_.z=_.Sv.prototype;_.z.getCount=function(){_.WO(this);return this.count_};
_.z.add=function(Y,S){_.WO(this);this.encodedQuery_=null;Y=z9(this,Y);var P=this.keyMap_.get(Y);P||this.keyMap_.set(Y,P=[]);P.push(S);this.count_+=1;return this};
_.z.remove=function(Y){_.WO(this);Y=z9(this,Y);return this.keyMap_.has(Y)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(Y).length,this.keyMap_.delete(Y)):!1};
_.z.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.z.isEmpty=function(){_.WO(this);return this.count_==0};
_.z.containsKey=function(Y){_.WO(this);Y=z9(this,Y);return this.keyMap_.has(Y)};
_.z.containsValue=function(Y){var S=this.getValues();return _.Au(S,Y)};
_.z.forEach=function(Y,S){_.WO(this);this.keyMap_.forEach(function(P,u){P.forEach(function(W){Y.call(S,W,u,this)},this)},this)};
_.z.getKeys=function(){_.WO(this);for(var Y=Array.from(this.keyMap_.values()),S=Array.from(this.keyMap_.keys()),P=[],u=0;u<S.length;u++)for(var W=Y[u],m=0;m<W.length;m++)P.push(S[u]);return P};
_.z.getValues=function(Y){_.WO(this);var S=[];if(typeof Y==="string")this.containsKey(Y)&&(S=S.concat(this.keyMap_.get(z9(this,Y))));else{Y=Array.from(this.keyMap_.values());for(var P=0;P<Y.length;P++)S=S.concat(Y[P])}return S};
_.z.set=function(Y,S){_.WO(this);this.encodedQuery_=null;Y=z9(this,Y);this.containsKey(Y)&&(this.count_-=this.keyMap_.get(Y).length);this.keyMap_.set(Y,[S]);this.count_+=1;return this};
_.z.get=function(Y,S){if(!Y)return S;Y=this.getValues(Y);return Y.length>0?String(Y[0]):S};
_.ONS=function(Y,S,P){Y.remove(S);P.length>0&&(Y.encodedQuery_=null,Y.keyMap_.set(z9(Y,S),_.NU(P)),Y.count_+=P.length)};
_.Sv.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var Y=[],S=Array.from(this.keyMap_.keys()),P=0;P<S.length;P++){var u=S[P],W=_.UW(u);u=this.getValues(u);for(var m=0;m<u.length;m++){var J=W;u[m]!==""&&(J+="="+_.UW(u[m]));Y.push(J)}}return this.encodedQuery_=Y.join("&")};
_.Sv.prototype.clone=function(){var Y=new _.Sv;Y.encodedQuery_=this.encodedQuery_;this.keyMap_&&(Y.keyMap_=new Map(this.keyMap_),Y.count_=this.count_);return Y};
var z9=function(Y,S){S=String(S);Y.JSC$7906_ignoreCase_&&(S=S.toLowerCase());return S},HNt=function(Y,S){S&&!Y.JSC$7906_ignoreCase_&&(_.WO(Y),Y.encodedQuery_=null,Y.keyMap_.forEach(function(P,u){var W=u.toLowerCase();
u!=W&&(this.remove(u),_.ONS(this,W,P))},Y));
Y.JSC$7906_ignoreCase_=S};
_.Sv.prototype.extend=function(Y){for(var S=0;S<arguments.length;S++)_.Q6h(arguments[S],function(P,u){this.add(u,P)},this)};var mI=function(Y,S){iG.call(this);for(var P=0,u;u=phu[P];P++)if(u in Y&&!/^https?:\/\//.test(Y[u]))throw Error("Va`"+Y[u]+"`"+u);this.cfg_=Y;this.name=this.cfg_.cn||s6_();this.JSC$7901_domHelper_=S||Wk();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.u6(this);Y.lpu=Y.lpu||wt3(this.JSC$7901_domHelper_.getWindow().location.href)+"/robots.txt";Y.ppu=Y.ppu||wt3(Y.pu||"")+"/robots.txt";kM[this.name]=this;UD_(window,"unload",Yui)||Cs(window,"unload",Yui)};
_.PW(mI,iG);var Suf=RegExp("^%*tp$"),Pys=RegExp("^%+tp$");_.z=mI.prototype;_.z.connectionDelay_=null;_.z.peerWindowDeferred_=null;_.z.transport_=null;_.z.state_=1;_.z.isConnected=function(){return this.state_==2};
_.z.peerWindowObject_=null;_.z.iframeElement_=null;_.z.connect=function(Y){this.connectCb_=Y||_.bd;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?hJu(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.z.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7901_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var Y=this.iframeElement_.contentWindow;Y||(Y=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=Y}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$7901_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new QK(this,this.cfg_.ph,this.JSC$7901_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.z.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.oY(this.transport_);this.connectCb_=this.transport_=null;_.oY(this.connectionDelay_);this.connectionDelay_=null};
_.z.send=function(Y,S){if(this.isConnected()){try{var P=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(W){P=!1}if(P){_.SS(S)&&(S=(0,_.Gj)(S));P=this.transport_;var u=P.send;Suf.test(Y)&&(Y="%"+Y);Y=Y.replace(/[%:|]/g,encodeURIComponent);u.call(P,Y,S)}else this.close()}};
_.z.xpcDeliver=function(Y,S,P){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.xS)(this.xpcDeliver,this,Y,S,P));else if(ZNS(this,P)&&!this.isDisposed()&&this.state_!=3)if(Y&&Y!="tp")this.isConnected()&&(Y=Y.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),Y=Pys.test(Y)?Y.substring(1):Y,Y=this.getService(Y,S))&&(S=fb6(S,Y.objectPayload),S!=null&&Y.callback(S));else switch(Y=this.transport_,P=Xhh(S),S=P[1],P[0]){case "SETUP_ACK":AFt(Y,1);Y.setupAckReceived_.fired_||Y.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":Y.protocolVersion_==2&&(AFt(Y,2),Y.setupAckReceived_.fired_||Y.setupAckReceived_.callback(!0));break;case "SETUP":AFt(Y,1);tLf(Y,1);break;case "SETUP_NTPV2":Y.protocolVersion_==2&&(P=Y.peerProtocolVersion_,AFt(Y,2),tLf(Y,2),P!=1&&Y.peerEndpointId_==null||Y.peerEndpointId_==S||oSi(Y),Y.peerEndpointId_=S)}};
var dZs=function(Y){var S=Y.cfg_.role;return typeof S==="number"?S:window.parent==Y.peerWindowObject_?1:0},ZNS=function(Y,S){var P=Y.cfg_.ph;
return _.Ba(S==null?"":String(S))||_.Ba(P==null?"":String(P))||S==Y.cfg_.ph};
mI.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete kM[this.name];_.oY(this.peerLoadHandler_);delete this.peerLoadHandler_;mI.superClass_.disposeInternal.call(this)};
var Yui=function(){for(var Y in kM)_.oY(kM[Y])},kM={};var W26=function(Y,S){this.JSC$7915_win=Y;this.allowAdsHttpEndpoint=S;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7915_domHelper=Wk(Y);this.scrollManager=new T73(Y);this.accessibilityManager=new CVt(Y);unS(this)},unS=function(Y){var S=function(){Y.allowAdsPopup&&Y.allowAdsPopup.style.setProperty("display","none","important");
Y.wallElement.style.setProperty("display","","important");q__(Y.accessibilityManager);bNS(Y.accessibilityManager,Y.wallElement.querySelector(".fc-dialog-container"),!1,!1,Y.wallElement.querySelector(".fc-button-whitelist"));var W=Y.scrollManager;W.JSC$7873_domHelper.JSC$7241_document_.body.style.overflow=W.originalBodyOverflow};
Y.allowAdsPopup=Y.JSC$7915_domHelper.JSC$7243_createDom("DIV",{"class":"fc-whitelist-root"});Y.allowAdsPopup.style.setProperty("display","none","important");Y.JSC$7915_domHelper.appendChild(Y.JSC$7915_domHelper.JSC$7241_document_.body,Y.allowAdsPopup);var P=Y.JSC$7915_domHelper.JSC$7243_createDom("DIV",{"class":"fc-dialog-overlay"});Y.JSC$7915_domHelper.appendChild(Y.allowAdsPopup,P);var u=Y.JSC$7915_domHelper.JSC$7243_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:S});Y.JSC$7915_domHelper.appendChild(Y.allowAdsPopup,
u);P=Y.JSC$7915_domHelper.JSC$7243_createDom("IFRAME");P.className="fc-whitelist-dialog";P.frameBorder="0";P.id="fc-whitelist-iframe";P.tabIndex="0";_.fh(P,Y.allowAdsHttpEndpoint);Y.JSC$7915_domHelper.appendChild(u,P);u={};u.pu=_.S2(Y.allowAdsHttpEndpoint).toString();u.tp=1;u.cn="fc-whitelist-channel";u.ifrid=P.id;u.osh=!0;Y.allowAdsCrossPageChannel=new mI(u);Y.allowAdsCrossPageChannel.registerService("close",S);Y.allowAdsCrossPageChannel.registerService("refresh",function(){Y.JSC$7915_win.location.reload()});
Y.allowAdsCrossPageChannel.registerService("resize",function(W){if(W){var m=Y.allowAdsPopup.querySelector(".fc-whitelist-dialog");W.width&&m.style.setProperty("width",W.width,"important");W.height&&m.style.setProperty("height",W.height,"important")}},!0);
Y.allowAdsCrossPageChannel.connect()};
W26.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7915_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var nQ=window,jv=document,zfm=nQ.location,mbU=function(){},ndU=/\[native code\]/,Jz=function(Y,S,P){return Y[S]=Y[S]||P},jIJ=function(Y){Y=Y.sort();
for(var S=[],P=void 0,u=0;u<Y.length;u++){var W=Y[u];W!=P&&S.push(W);P=W}return S},BO=function(){var Y;
if((Y=Object.create)&&ndU.test(Y))Y=Y(null);else{Y={};for(var S in Y)Y[S]=void 0}return Y},CQ=Jz(nQ,"gapi",{});var qd={};qd=Jz(nQ,"___jsl",BO());Jz(qd,"I",0);Jz(qd,"hel",10);var Jx3=function(){var Y=zfm.href;if(qd.dpo)var S=qd.h;else{S=qd.h;var P=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),u=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(Y=Y&&(P.exec(Y)||u.exec(Y)))try{S=decodeURIComponent(Y[2])}catch(W){}}return S},BKs=function(Y){var S=Jz(qd,"PQ",[]);
qd.PQ=[];var P=S.length;if(P===0)Y();else for(var u=0,W=function(){++u===P&&Y()},m=0;m<P;m++)S[m](W)},cxU=function(Y){return Jz(Jz(qd,"H",BO()),Y,BO())};var R7=function(Y){this.JSC$7917_obj_=Y};
R7.prototype.value=function(){return this.JSC$7917_obj_};
R7.prototype.getWidth=function(){return this.JSC$7917_obj_.width};
R7.prototype.getHeight=function(){return this.JSC$7917_obj_.height};
R7.prototype.getStyle=function(){return this.JSC$7917_obj_.style};var Cyt=function(Y){this.JSC$7920_obj_=Y||{}};
_.z=Cyt.prototype;_.z.value=function(){return this.JSC$7920_obj_};
_.z.setUrl=function(Y){this.JSC$7920_obj_.url=Y;return this};
_.z.getUrl=function(){return this.JSC$7920_obj_.url};
_.z.getStyle=function(){return this.JSC$7920_obj_.style};
_.z.getId=function(){return this.JSC$7920_obj_.id};
_.z.getContext=function(){return this.JSC$7920_obj_.context};
var quJ=function(Y){Y.JSC$7920_obj_.attributes=Y.JSC$7920_obj_.attributes||{};return new R7(Y.JSC$7920_obj_.attributes)};var Rfs=function(){Cyt.apply(this,arguments)};
_.r(Rfs,Cyt);var xbJ=Jz(qd,"perf",BO());Jz(xbJ,"g",BO());var bJJ=Jz(xbJ,"i",BO());Jz(xbJ,"r",[]);BO();BO();var K2S=function(Y,S,P){S&&S.length>0&&(S=TK6(S),P&&P.length>0&&(S+="___"+TK6(P)),S.length>28&&(S=S.substr(0,28)+(S.length-28)),P=S,S=Jz(bJJ,"_p",BO()),Jz(S,P,BO())[Y]=(new Date).getTime(),S=xbJ.r,typeof S==="function"?S(Y,"_p",P):S.push([Y,"_p",P]))},TK6=function(Y){return Y.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Edm=BO(),f6i=[],xq=function(Y){throw Error("Ya`"+Y);};
f6i.push(["jsl",function(Y){for(var S in Y)if(Object.prototype.hasOwnProperty.call(Y,S)){var P=Y[S];typeof P=="object"?qd[S]=Jz(qd,S,[]).concat(P):Jz(qd,S,P)}if(S=Y.u)Y=Jz(qd,"us",[]),Y.push(S),(S=/^https:(.*)$/.exec(S))&&Y.push("http:"+S[1])}]);
var gdu=/^(\/[a-zA-Z0-9_\-]+)+$/,$bt=[/\/amp\//,/\/amp$/,/^\/amp$/],rx_=/^[a-zA-Z0-9\-_\.,!]+$/,G6_=/^gapi\.loaded_[0-9]+$/,hfs=/^[a-zA-Z0-9,._-]+$/,a66=function(Y,S,P,u,W){var m=Y.split(";"),J=m.shift(),c=Edm[J],C=null;c?C=c(m,S,P,u):xq("no hint processor for: "+J);C||xq("failed to generate load url");S=C;P=S.match(vd3);(u=S.match(DbJ))&&u.length===1&&I6t.test(S)&&P&&P.length===1||xq("failed sanity: "+Y);try{Y="?";if(W&&W.length>0){uf(W);var x=W.join(",");C=C+"?le="+x;Y="&"}if(qd.rol){var b=qd.ol;
b&&b.length&&(C=""+C+Y+"ol="+b.length)}}catch(T){}return C},pJ3=function(Y,S,P,u){Y=L2U(Y);
G6_.test(P)||xq("invalid_callback");S=wJf(S);u=u&&u.length?wJf(u):null;var W=function(m){return encodeURIComponent(m).replace(/%2C/g,",")};
return[encodeURIComponent(Y.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",W(Y.version),"/m=",W(S),u?"/exm="+W(u):"","/rt=j/sv=1/d=1/ed=1",Y.activeMods?"/am="+W(Y.activeMods):"",Y.resourceSig?"/rs="+W(Y.resourceSig):"",Y.zcms?"/t="+W(Y.zcms):"","/cb=",W(P)].join("")},L2U=function(Y){Y.charAt(0)!=="/"&&xq("relative path");
for(var S=Y.substring(1).split("/"),P=[];S.length;){Y=S.shift();if(!Y.length||Y.indexOf(".")==0)xq("empty/relative directory");else if(Y.indexOf("=")>0){S.unshift(Y);break}P.push(Y)}Y={};for(var u=0,W=S.length;u<W;++u){var m=S[u].split("="),J=decodeURIComponent(m[0]),c=decodeURIComponent(m[1]);m.length==2&&J&&c&&(Y[J]=Y[J]||c)}S="/"+P.join("/");gdu.test(S)||xq("invalid_prefix");P=0;for(u=$bt.length;P<u;++P)$bt[P].test(S)&&xq("invalid_prefix");P=F2t(Y,"k",!0);u=F2t(Y,"am");W=F2t(Y,"rs");Y=F2t(Y,"t");
return{pathPrefix:S,version:P,activeMods:u,resourceSig:W,zcms:Y}},wJf=function(Y){for(var S=[],P=0,u=Y.length;P<u;++P){var W=Y[P].replace(/\./g,"_").replace(/-/g,"_");
hfs.test(W)&&S.push(W)}return S.join(",")},F2t=function(Y,S,P){Y=Y[S];
!Y&&P&&xq("missing: "+S);if(Y){if(rx_.test(Y))return Y;xq("invalid: "+S)}return null},I6t=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,DbJ=/\/cb=/g,vd3=/\/\//g;
Edm.m=function(Y,S,P,u){(Y=Y[0])||xq("missing_hint");return"https://apis.google.com"+pJ3(Y,S,P,u)};
var sIU=decodeURI("%73cript"),dbh=/^[-+_0-9\/A-Za-z]+={0,2}$/,l6s=function(Y,S){for(var P=[],u=0;u<Y.length;++u){var W=Y[u],m;if(m=W){a:{for(m=0;m<S.length;m++)if(S[m]===W)break a;m=-1}m=m<0}m&&P.push(W)}return P},XJm=function(){var Y=qd.nonce;
return Y!==void 0?Y&&Y===String(Y)&&Y.match(dbh)?Y:qd.nonce=null:jv.querySelector?(Y=jv.querySelector("script[nonce]"))?(Y=Y.nonce||Y.getAttribute("nonce")||"",Y&&Y===String(Y)&&Y.match(dbh)?qd.nonce=Y:qd.nonce=null):null:null},odt=function(Y){if(jv.readyState!="loading")ZJL(Y);
else{var S=XJm(),P="";S!==null&&(P=' nonce="'+S+'"');Y="<"+sIU+' src="'+encodeURI(Y)+'"'+P+"></"+sIU+">";jv.write(iJs?iJs.createHTML(Y):Y)}},ZJL=function(Y){var S=jv.createElement(sIU);
S.setAttribute("src",iJs?iJs.createScriptURL(Y):Y);Y=XJm();Y!==null&&S.setAttribute("nonce",Y);S.async="true";(Y=jv.getElementsByTagName(sIU)[0])?Y.parentNode.insertBefore(S,Y):(jv.head||jv.body||jv.documentElement).appendChild(S)},AxS=function(Y,S,P){thU(function(){var u=S===Jx3()?Jz(CQ,"_",BO()):BO();
u=Jz(cxU(S),"_",u);Y(u)},P)},uyU=function(Y,S){var P=S||{};
typeof S=="function"&&(P={},P.callback=S);var u=(S=P)&&S._c;if(u)for(var W=0;W<f6i.length;W++){var m=f6i[W][0],J=f6i[W][1];J&&Object.prototype.hasOwnProperty.call(u,m)&&J(u[m],Y,S)}S=[];Y?S=Y.split(":"):P.features&&(S=P.features);if(!(Y=P.h)&&(Y=Jx3(),!Y))throw Error("Za");Ubh(S||[],P,Y)},Ubh=function(Y,S,P){Y=jIJ(Y)||[];
var u=S.callback,W=S.config,m=S.timeout,J=S.ontimeout,c=S.onerror,C=void 0;typeof c=="function"&&(C=c);var x=null,b=!1;if(m&&!J||!m&&J)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";c=Jz(cxU(P),"r",[]).sort();var T=Jz(cxU(P),"L",[]).sort(),K=qd.le||[],G=[].concat(c),v=function(V,M){if(b)return 0;nQ.clearTimeout(x);T.push.apply(T,a);var zJ=((CQ||{}).config||{}).update;zJ?zJ(W):W&&Jz(qd,"cu",[]).push(W);if(M){K2S("me0",V,G);try{AxS(M,P,C)}finally{K2S("me1",V,G)}}return 1};
m>0&&(x=nQ.setTimeout(function(){b=!0;J()},m));
var a=l6s(Y,T);if(a.length){a=l6s(Y,c);var w=Jz(qd,"CP",[]),F=w.length;w[F]=function(V){if(!V)return 0;K2S("ml1",a,G);var M=function(O){w[F]=null;v(a,V)&&BKs(function(){u&&u();O()})},zJ=function(){var O=w[F+1];
O&&O()};
F>0&&w[F-1]?w[F]=function(){M(zJ)}:M(zJ)};
if(a.length){var U="loaded_"+qd.I++;CQ[U]=function(V){w[F](V);CQ[U]=null};
Y=a66(P,a,"gapi."+U,c,K);c.push.apply(c,a);K2S("ml0",a,G);S.sync||nQ.___gapisync?odt(Y):ZJL(Y)}else w[F](mbU)}else v(a)&&u&&u()},QIh;
var k66=null,Mhs=_.Pa.trustedTypes;if(Mhs&&Mhs.createPolicy){try{k66=Mhs.createPolicy("goog#gapi",{createHTML:Kn8,createScript:Kn8,createScriptURL:Kn8})}catch(Y){_.Pa.console&&_.Pa.console.error(Y.message)}QIh=k66}else QIh=k66;var iJs=QIh,thU=function(Y,S){if(qd.hee&&qd.hel>0)try{return Y()}catch(P){S&&S(P),qd.hel--,uyU("debug_error",function(){try{window.___jsl.hefn(P)}catch(u){throw P;}})}else try{return Y()}catch(P){throw S&&S(P),P;
}},yxi=CQ.load;
yxi&&Jz(qd,"ol",[]).push(yxi);CQ.load=function(Y,S){return thU(function(){return uyU(Y,S)})};var E_;var NKf=function(Y,S){this.serviceId_=Y;this.moduleId_=S||null};
NKf.prototype.toString=function(){return this.serviceId_};
NKf.prototype.getModuleId=function(){return this.moduleId_};var oG9=new NKf("MpJwZc","MpJwZc");var ApX=new _.cy("a"),tuf=function(Y,S,P){_.Cl.call(this,Y,S);this.node=S;this.kind=P};
_.r(tuf,_.Cl);var HJt=function(){this.JSC$7933_keys_={};this.urlPrefix_="";this.JSC$7933_queryData_={}};
HJt.prototype.toString=function(){var Y=this.urlPrefix_+VhS(this),S=_.R4(this.JSC$7933_queryData_),P="";S!=""&&(P="?"+S);return Y+P};
var efm=function(Y){Y=bi(Y,"md");return!!Y&&Y!=="0"},VhS=function(Y){var S=[],P=(0,_.xS)(function(u){this.JSC$7933_keys_[u]!==void 0&&S.push(u+"="+this.JSC$7933_keys_[u])},Y);
efm(Y)?(P("md"),P("k"),P("ck"),P("am"),P("rs"),P("gssmodulesetproto"),P("slk"),P("dti")):(P("sdch"),P("k"),P("ck"),P("am"),P("rt"),"d"in Y.JSC$7933_keys_||T9(Y,"d","0"),P("d"),P("exm"),P("excm"),(Y.JSC$7933_keys_.excm||Y.JSC$7933_keys_.exm)&&S.push("ed=1"),P("im"),P("dg"),P("sm"),bi(Y,"br")!="1"&&bi(Y,"br")!="0"||P("br"),P("br-d"),bi(Y,"rb")=="1"&&P("rb"),bi(Y,"zs")!=="0"&&P("zs"),OJ_(Y)!==""&&P("wt"),P("gssmodulesetproto"),P("ujg"),P("sp"),P("rs"),P("cb"),P("ee"),P("slk"),P("dti"),P("m"));return S.join("/")},
bi=function(Y,S){return Y.JSC$7933_keys_[S]?Y.JSC$7933_keys_[S]:null},T9=function(Y,S,P){P?Y.JSC$7933_keys_[S]=P:delete Y.JSC$7933_keys_[S]},YWs=function(Y,S){Y.urlPrefix_=S},SWi=function(Y,S){S&&S.length>0?(S.sort(),T9(Y,"exm",S.join(","))):T9(Y,"exm",null)},Pks=function(Y,S){S&&S.length>0?(S.sort(),T9(Y,"excm",S.join(","))):T9(Y,"excm",null)},u3f=function(Y){return(Y=bi(Y,"m"))?Y.split(","):[]},OJ_=function(Y){switch(bi(Y,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},WNS=function(Y,S){var P=Object.keys(S).filter(function(u){return!!Object.keys(S[u]).length}).map(function(u){var W=Object.keys(S[u]);
W.length>1&&W.sort();return u+":"+W.join(",")});
P.sort();T9(Y,"ee",P.join(";"))},l4X=function(Y){var S=bi(Y,"ee");
if(!S)return{};Y={};S=_.n(S.split(";"));for(var P=S.next();!P.done;P=S.next()){var u=_.n(P.value.split(":"));P=u.next().value;u=u.next().value;Y[P]={};u=_.n(u.split(","));for(var W=u.next();!W.done;W=u.next())Y[P][W.value]=!0}return Y},zys=function(Y){delete Y.JSC$7933_keys_.m;
delete Y.JSC$7933_keys_.exm;delete Y.JSC$7933_keys_.ed};
HJt.prototype.clone=function(){return O_(this.toString())};
var O_=function(Y,S){S=S===void 0?!0:S;var P=mP_(Y),u=new HJt,W=_.HR(P)[5];_.RY.forEach(nZi,function(J){var c=W.match("/"+J+"=([^/]+)");c&&T9(u,J,c[1])});
var m="";m=Y.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";YWs(u,Y.substr(0,Y.indexOf(m)+m.length));if(!S)return u;(Y=_.HR(P)[6]||null)&&FhL(Y,function(J,c){u.JSC$7933_queryData_[J]=c});
return u},FNa=function(Y){Y=_.Cz(mP_(Y));
return Y===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(Y)?/\/k=/.test(Y):!1},mP_=function(Y){return Y.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?Y.substr(65):Y},nZi={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",INCLUDE_COMPILE_HINTS_COMMENT:"ichc",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},jjf=RegExp("^loaded_(g|h)?[_\\d]+$");_.KQ=function(Y){this.JSC$7945_id_=Y;this.opts={}};
_.KQ.prototype.JSC$7947_setLabel=function(Y){this.label_=Y||void 0;return this};
_.KQ.prototype.addUploadMetadata=function(Y,S){var P=this.opts.data||{};P[Y]=S;this.opts.data=P;return this};
var JA6=function(Y){var S=_.RY.filter(Y.opts,function(P){return P!==null});
S=_.RY.isEmpty(S)?null:S;Y=[Y.JSC$7945_id_,Y.label_,S];S=T1a(Y);return Y=Y.slice(0,S+1)};
_.KQ.prototype.toString=function(){var Y=JA6(this);return"("+_.b9(Y,function(S){return JSON.stringify(S)}).join(",")+")"};
_.KQ.prototype.getId=function(){return this.JSC$7945_id_};
_.KQ.prototype.getOptions=function(){return _.RY.clone(this.opts)};var Ej=function(){_.KQ.call(this,"image-search")};
_.r(Ej,_.KQ);Ej.prototype.setSize=function(Y){this.opts.imgsz=Y;return this};
Ej.prototype.JSC$7947_setLabel=function(Y){_.KQ.prototype.JSC$7947_setLabel.call(this,Y);return this};
Ej.prototype.addUploadMetadata=function(Y,S){_.KQ.prototype.addUploadMetadata.call(this,Y,S);return this};var fQ=function(){_.KQ.call(this,"maps")};
_.r(fQ,_.KQ);fQ.prototype.setZoom=function(Y){this.opts.zoom=Y;return this};
fQ.prototype.JSC$7947_setLabel=function(Y){_.KQ.prototype.JSC$7947_setLabel.call(this,Y);return this};
fQ.prototype.addUploadMetadata=function(Y,S){_.KQ.prototype.addUploadMetadata.call(this,Y,S);return this};_.gU=function(){_.KQ.call(this,"photos")};
_.r(_.gU,_.KQ);_.gU.prototype.JSC$7947_setLabel=function(Y){_.KQ.prototype.JSC$7947_setLabel.call(this,Y);return this};
_.gU.prototype.addUploadMetadata=function(Y,S){_.KQ.prototype.addUploadMetadata.call(this,Y,S);return this};var $q=function(){_.KQ.call(this,"url")};
_.r($q,_.KQ);var Bws=function(){var Y=new $q;Y.opts.type="video";Y.opts.site="youtube.com";return Y};
$q.prototype.JSC$7947_setLabel=function(Y){_.KQ.prototype.JSC$7947_setLabel.call(this,Y);return this};
$q.prototype.addUploadMetadata=function(Y,S){_.KQ.prototype.addUploadMetadata.call(this,Y,S);return this};var rU=function(){_.KQ.call(this,"video-search")};
_.r(rU,_.KQ);var cAS=function(){var Y=new rU;Y.opts.site="youtube.com";return Y};
rU.prototype.JSC$7947_setLabel=function(Y){_.KQ.prototype.JSC$7947_setLabel.call(this,Y);return this};
rU.prototype.addUploadMetadata=function(Y,S){_.KQ.prototype.addUploadMetadata.call(this,Y,S);return this};var Ckf=function(){_.KQ.call(this,"web")};
_.r(Ckf,_.KQ);Ckf.prototype.JSC$7947_setLabel=function(Y){_.KQ.prototype.JSC$7947_setLabel.call(this,Y);return this};
Ckf.prototype.addUploadMetadata=function(Y,S){_.KQ.prototype.addUploadMetadata.call(this,Y,S);return this};var G9=function(){this.items_=[];this.opts={}},qWS=function(Y){switch(Y){case "image-search":return new Ej;
case "maps":return new fQ;case "photos":return new _.gU;case "url":return new $q;case "video-search":return new rU;case "web":return new Ckf}return new _.KQ(Y)};
G9.prototype.addView=function(Y){this.items_.push(typeof Y==="string"?qWS(Y):Y);return this};
var Rym=function(Y){return"("+_.b9(Y.items_,function(S){return S.toString()}).join(",")+")"};
G9.prototype.toString=function(){return Rym(this)};
G9.prototype.getViews=function(Y,S){S=S===void 0?[]:S;for(var P=this.items_,u=0;u<P.length;u++){var W=P[u];W instanceof G9?W.getViews(Y,S):W.getId()==Y&&S.push(W)}return S};
G9.prototype.getOptions=function(){return _.RY.clone(this.opts)};var I6=function(Y){this.basePickerUrl_=Y||"https://docs.google.com/picker";this.nav_=new G9};
I6.prototype.nav_=null;I6.prototype.addView=function(Y){this.nav_.addView(Y);return this};
I6.prototype.getBaseUrl=function(){return this.basePickerUrl_};
I6.prototype.getViews=function(Y){return this.nav_.getViews(Y)};
_.xP_=function(Y,S){Y.callback_=S;return Y};var bEs=new Map;bEs.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");bEs.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");bEs.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var TwL=new Set;TwL.add("application/vnd.google-apps.kix");TwL.add("application/vnd.google-apps.ritz");TwL.add("application/vnd.google-apps.punch");var a4J=function(Y,S,P){var u=P&&_.aJ(P,1);P=KNu(P);var W=Y[0].getId();switch(_.Lj(W,2)){case 13:return EZJ(Y,S,u,P);case 3:return f4_(Y,S,u,P);case 10:return gZd(Y,S,u,P);case 27:return gZd(Y,S,u,P);case 12:return $Pd(Y,S);case 2:return rA3(Y,S,u,P);case 5:return GB3(Y,S,u,P);case 9:return hym(Y,S,u,P);case 6:return vZU(Y,S,u,P);case 25:return DPs(Y,S,u,P);case 1:return _.bW(Y[0],RLu,26)?I4h(Y,S,u,P):gZd(Y,S,u,P);default:return{}}},vZU=function(Y,S,P,u){Y=Y.map(function(W){return{id:W.getId().getId(),
serviceId:"youtube",name:W.getName(),description:_.aJ(W,3),type:hz(W),lastEditedUtc:_.qUf(_.P_(W,_.Z_,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:W.getUrl(),embedUrl:_.aJ(W,13),thumbnails:vO(NA(W))}});
return{action:S,docs:Y,viewToken:u,view:P||"youtube",v2Translated:!0}},rA3=function(Y,S,P,u){var W=Y.map(function(m){var J=m.getId().getId(),c=_.aJ(m,7),C=m.getName(),x=hz(m),b=_.qUf(_.P_(m,_.Z_,12)).getTime(),T=m.getUrl(),K=Number(wAU(m)),G=_.aJ(m,3),v=_.aJ(m,11),a=vO(NA(m));
var w=_.P_(m,H9,21);w=_.vW(w,1);var F=_.P_(m,H9,21);F=_.aJ(F,10);var U=_.aJ(m,13);var V=_.P_(m,H9,21);V=_.vW(V,9);var M=_.P_(m,H9,21);M=_.aJ(M,11);J={id:J,serviceId:"docs",mimeType:c,name:C,type:x,lastEditedUtc:b,url:T,sizeBytes:K,description:G,iconUrl:v,thumbnails:a,isShared:w,downloadUrl:F,embedUrl:U,copyable:V,resourceKey:M};c=_.P_(m,H9,21);_.vW(c,12)&&(J.uploadState="success",J.isNew=!0);c=_.P_(m,H9,21);_.bW(c,kQ,3)&&(m=_.P_(m,H9,21),m=_.P_(m,kQ,3),_.bW(m,Ug,2)&&(c=hF(m.getDuration().getSeconds()),
C=m.getDuration(),C=_.kg(C,2),J.duration=c+C/1E9),J.aspectRatio=m.getAspectRatio());return J});
return{action:S,docs:W,viewToken:u,view:P||"all",extraUserInputs:LNs(Y),v2Translated:!0}},GB3=function(Y,S,P,u){Y=Y.map(function(W){var m=_.P_(W,rYd,15);
m=_.P_(m,Qh,1);Ty(W,10,Qh,m);return{id:W.getId().getId(),serviceId:"web",mimeType:_.aJ(W,7),name:W.getName(),type:hz(W),url:W.getUrl(),description:_.aJ(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:vO(NA(W))}});
return{action:S,docs:Y,viewToken:u,view:P||"image-search",v2Translated:!0}},hym=function(Y,S,P,u){Y=Y.map(function(W){return{serviceId:"url",
name:NA(W)[0].getUrl().split("/").pop(),type:hz(W),mimeType:_.aJ(W,7),url:W.getUrl(),description:_.aJ(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:vO(NA(W))}});
return{action:S,docs:Y,viewToken:u,view:P||"url",v2Translated:!0}},I4h=function(Y,S,P,u){Y=Y.map(function(W){return{id:W.getId().getId(),
serviceId:"picasa",name:W.getName(),type:hz(W),description:_.aJ(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:vO(NA(W))}});
return{action:S,docs:Y,viewToken:u,view:P||"webcam",v2Translated:!0}},gZd=function(Y,S,P,u){return{action:S,
docs:Y.map(wRU),viewToken:u,view:pRu(P||"upload",Y),extraUserInputs:LNs(Y),v2Translated:!0}},pRu=function(Y,S){return S.some(function(P){var u;
return((u=_.P_(P,MA,30))==null?void 0:_.Lj(u,3))===9})?Y+"/gmailphotos":Y},f4_=function(Y,S,P,u){var W=Y.map(function(m){var J={id:m.getId().getId(),
serviceId:"picasa",mimeType:_.aJ(m,7),name:m.getName(),type:hz(m),lastEditedUtc:_.qUf(_.P_(m,_.Z_,12)).getTime(),url:m.getUrl(),sizeBytes:Number(wAU(m)),description:_.aJ(m,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:vO(NA(m)),mediaKey:m.getId().getId(),parentId:_.aJ(m,4)},c,C=(c=_.P_(m,TXU,18))==null?void 0:_.P_(c,bSh,3);C&&(J.latitude=IJ(C,1),J.longitude=IJ(C,2));var x;m=(x=_.P_(m,TXU,18))==null?void 0:Dp(x,6);x=m!=null?hF(m):void 0;x&&(J.version=
x);return J});
return{action:S,docs:W,viewToken:u,view:P||"photos",extraUserInputs:LNs(Y),v2Translated:!0}},EZJ=function(Y,S,P,u){Y=Y.map(function(W){return{id:W.getId().getId(),
serviceId:"et",name:NA(W)[0].getUrl().split("/").pop(),description:_.aJ(W,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:vO(NA(W),"etjpg")}});
return{action:S,docs:Y,viewToken:u,view:P||"et",v2Translated:!0}},DPs=function(Y,S,P,u){Y=Y.map(function(W){var m=W.getId().getId(),J=u["2"];
return{id:m,serviceId:J.type!=="gmail_themes"&&J.parent==="6226252643674576769"?"picasa":"static_themes",name:W.getName(),mimeType:_.aJ(W,7),type:hz(W),description:_.aJ(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:W.getUrl(),embedUrl:W.getUrl(),thumbnails:vO(NA(W))}});
return{action:S,docs:Y,viewToken:u,view:P||"photos",v2Translated:!0}},$Pd=function(Y,S){Y=Y.map(function(P){var u=_.P_(P,x8J,27);
u=_.mz(u,1,_.p1,_.QI())[0];return{id:P.getId().getId(),serviceId:"contacts",mimeType:_.aJ(P,7),name:P.getName(),description:_.aJ(P,3),url:"mailto:"+u,thumbnail:[{url:_.aJ(P,11)}],email:u}});
return{action:S,docs:Y,view:"contacts",v2Translated:!0}},KNu=function(Y){if(!Y)return{};
var S=_.aJ(Y,3);S=S&&JSON.parse(S)||{};return{0:_.aJ(Y,1),1:_.aJ(Y,2),2:S}},vO=function(Y,S){S=S===void 0?"":S;
if(!Y.length)return null;S=="etjpg"&&(Y=Y.filter(function(P){return P.getUrl().includes("w1200-h300")}));
return Y.map(function(P){return{url:P.getUrl(),height:P.getHeight(),width:P.getWidth(),type:S}})},LNs=function(Y){return{isAttachment:Y.some(function(S){return _.vW(S,31)})}},wRU=function(Y){var S,P={id:(S=Y.getId())==null?void 0:S.getId(),
serviceId:FNf(Y),mimeType:_.aJ(Y,7),name:Y.getName(),type:hz(Y),sizeBytes:Number(wAU(Y)),description:_.aJ(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:vO(NA(Y)),isNew:!0};if(S=_.P_(Y,MA,30)){P.dataUrl=_.aJ(S,1)||null;a:{var u=_.P_(Y,MA,30);switch(_.Lj(u,3)){case 9:u=_.F0(u,gE6,2,yh);u={remoteRefs:u&&_.aJ(u,1)};break a;case 10:case 15:u=_.F0(u,fBS,4,yh);var W=NA(Y);u={photo_id:u&&_.aJ(u,1),media_key:Y.getId().getId(),media_type:_.Lj(Y,6)===1?1:2,image_url:W&&
W[0].getUrl(),width:W&&String(W[0].getWidth()),height:W&&String(W[0].getHeight())};break a}u=null}P.uploadMetadata=u;P.uploadId=_.aJ(S,9)||null;P.uploadState=sjh(S)||null}(u=S&&_.F0(S,fBS,4,yh))&&(P.id=_.aJ(u,1));(u=S&&_.F0(S,$8f,5,yh))&&(P.contentId=_.aJ(u,1));(u=S&&_.F0(S,Kzs,7,yh))&&(P.contentId=_.aJ(u,1));(u=S&&_.F0(S,EEt,6,yh))&&(P.contentId=_.aJ(u,1));(S==null?void 0:_.Lj(S,3))===1&&(P.mediaKey=Y.getId().getId());return P},FNf=function(Y){var S;
switch(((S=_.P_(Y,MA,30))==null?void 0:_.Lj(S,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},hz=function(Y){switch(_.Lj(Y,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.aJ(Y,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},sjh=function(Y){switch(Y==null?void 0:_.Lj(Y,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var ZEs,dPf,l4J,XRh;_.DH=function(Y,S){var P=S||{};S=P.document||document;var u=_.S2(Y).toString(),W=(new h_(S)).createElement("SCRIPT"),m={script_:W,timeout_:void 0},J=new oi(dPf,m),c=null,C=P.timeout!=null?P.timeout:5E3;C>0&&(c=window.setTimeout(function(){l4J(W,!0);J.errback(new XRh(1,"Timeout reached for loading script "+u))},C),m.timeout_=c);
W.onload=W.onreadystatechange=function(){W.readyState&&W.readyState!="loaded"&&W.readyState!="complete"||(l4J(W,P.cleanupWhenDone||!1,c),J.callback(null))};
W.onerror=function(){l4J(W,!0,c);J.errback(new XRh(0,"Error while loading script "+u))};
m=P.attributes||{};_.RY.extend(m,{type:"text/javascript",charset:"UTF-8"});G1h(W,m);_.I9(W,Y);ZEs(S).appendChild(W);return J};
ZEs=function(Y){var S=JF("HEAD",Y);return S&&S.length!==0?S[0]:Y.documentElement};
dPf=function(){if(this&&this.script_){var Y=this.script_;Y&&Y.tagName=="SCRIPT"&&l4J(Y,!0,this.timeout_)}};
l4J=function(Y,S,P){P!=null&&_.Pa.clearTimeout(P);Y.onload=function(){};
Y.onerror=function(){};
Y.onreadystatechange=function(){};
S&&window.setTimeout(function(){_.jL(Y)},0)};
XRh=function(Y,S){var P="Jsloader error (code #"+Y+")";S&&(P+=": "+S);_.YY.call(this,P);this.code=Y};
_.PW(XRh,_.YY);var iEs=_.Q0(["https://apis.google.com/js/api.js"]),oZi=_.kt(iEs),Qjt=function(Y,S){var P=!1,u=tXS(Y,S).then(function(m){P=!0;return m}),W=_.Kci(5E3).then(function(){return P?tXS(Y,S):AAh(S).then(function(m){return UPt(m,Y)})});
return mgi([u,W])},tXS=function(Y,S){return kBi(S).then(function(P){return UPt(P,Y)})},UPt=function(Y,S){var P=_.m$(S,"gapi.")?S.slice(5):S;
return Y[P]?_.Cb(Y[P]):new _.qs(function(u,W){var m=$M(function(){W(Error("bb"))},3E4);
Y.load(S,{callback:function(){_.Pa.clearTimeout(m);u(Y[P])},
onerror:function(J){_.Pa.clearTimeout(m);W(J)}})})},kBi=function(Y){return Y.gapi&&Y.gapi.load?_.Cb(Y.gapi):AAh(Y)},AAh=function(Y){return _.DH(oZi,{document:Y.document}).then(function(){return Y.gapi})},MXh=function(){};
MXh.prototype.load=function(Y,S){S=S===void 0?window:S;var P=Date.now();return Qjt(Y,S).then(function(u){var W=Date.now();return{library:u,loadStartMs:P,loadEndMs:W}},function(u){throw u instanceof Error?u:Error(String(u));
})};var jja=function(){_.R6.call(this);this.gapiLoader_=new MXh;this.origin_=null;this.gapiPickerIframeResolver_=_.dL();this.gapiIframesResolver_=_.dL();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.r(jja,_.R6);var yAs=function(Y,S){var P=_.tA("gapi.iframes",S);return P?(Y=Date.now(),_.Cb({library:P,loadStartMs:Y,loadEndMs:Y})):Y.gapiLoader_.load("gapi.iframes",S)},NwJ=function(Y,S,P,u,W,m){var J=!0;
J=J===void 0?!1:J;yAs(Y,Kx(S.ownerDocument)).then(function(c){var C=c.library;Y.gapiIframesResolver_.resolve(C);c=Y.gapiPickerIframeResolver_;var x=c.resolve,b=J;b=b===void 0?!1:b;var T={};T["host-message-handler"]=P;Y.hostMessageHandlerInternal_=T;var K=_.d7(u);K=_.d7(K);K=_.Hy(_.N4(_.yK(new _.Nq,K.scheme_),K.JSC$7905_domain_),K.JSC$7905_port_).toString();Y.origin_=K;K=(new Rfs).setUrl(u);K.JSC$7920_obj_.where=S;K.JSC$7920_obj_.allowPost=b;K.JSC$7920_obj_.messageHandlers=T;b=_.tA("makeWhiteListIframesFilter",
C)([Y.origin_]);K.JSC$7920_obj_.messageHandlersFilter=b;W!=null&&(K.JSC$7920_obj_.id=W);m!=null&&(K.JSC$7920_obj_.rpctoken=m);b=quJ(K);b.JSC$7917_obj_.style={display:"block","min-width":"100%",width:"1px"};b.JSC$7917_obj_.height="100%";quJ(K).value().allow="camera 'src' "+Y.origin_;C=C.getContext().openChild(K.value());x.call(c,C)},function(c){Y.gapiIframesResolver_.reject(c);
Y.gapiPickerIframeResolver_.reject(c)});
return Y.gapiPickerIframeResolver_.promise},HEJ=function(Y,S){return _.fl([Y.gapiIframesResolver_.promise,
Y.gapiPickerIframeResolver_.promise]).then(function(P){var u=_.n(P);P=u.next().value;return(u=u.next().value)?u.send("picker-message-handler",S,void 0,_.tA("makeWhiteListIframesFilter",P)([Y.origin_])):_.t9(Error("cb"))})};
jja.prototype.disposeInternal=function(){VX_(this);_.R6.prototype.disposeInternal.call(this)};
var VX_=function(Y){Y.gapiPickerIframeResolver_.promise.then(function(S){S&&(S.unregister("host-message-handler"),delete Y.hostMessageHandlerInternal_["host-message-handler"])})};var eyJ=function(){this.nextId=0};var YhL=function(Y,S){switch(Y.action){case "select-contacts":Y=OEd(Y.contacts);break;case "visibility":Y=Y.visible;var P=new em;Y=_.dV(P,1,7).setVisible(Y);P={};P["iframe-command"]=Y.serialize();Y=P;break;default:Y=null}return Y?HEJ(S,Y):_.Cb()},OEd=function(Y){if(!Y||Y.length==0)return null;
var S=new em;_.dV(S,1,11);var P=new eyJ;Y.forEach(function(u){if(u.email){var W=new Ge;W=_.Vi(W,2,u.name?u.name:u.email);var m=new x8J;u=_.zXE(m,1,_.L1,u.email,_.p1);u=_.N8(W,27,u);W=new CKS;m=":"+(P.nextId++).toString(36);W=_.Vi(W,1,m);W=_.dV(W,2,12);u=_.N8(u,1,W)}else u=null;u&&Ty(S,7,Ge,u)});
Y={};Y["iframe-command"]=S.serialize();return Y};_.ShS=function(){if(QZE){var Y=/Windows NT ([0-9.]+)/;return(Y=Y.exec(_.Rh()))?Y[1]:"0"}return _.U_a?(Y=/1[0|1][_.][0-9_.]+/,(Y=Y.exec(_.Rh()))?Y[0].replace(/_/g,"."):"10"):oME?(Y=/Android\s+([^\);]+)(\)|;)/,(Y=Y.exec(_.Rh()))?Y[1]:""):M89||yb9||NJu?(Y=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(Y=Y.exec(_.Rh()))?Y[1].replace(/_/g,"."):""):""}();var I7;I7=function(Y){return(Y=Y.exec(_.Rh()))?Y[1]:""};
_.PYS=function(){if(_.BW)return I7(/Firefox\/([0-9.]+)/);if(_.nj||_.yl||o7E)return _.PmK;if(_.cW){if(_.p8()||_.q9f()){var Y=I7(/CriOS\/([0-9.]+)/);if(Y)return Y}return I7(/Chrome\/([0-9.]+)/)}if(_.dk&&!_.p8())return I7(/Version\/([0-9.]+)/);if(mqY||n5X){if(Y=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Rh()))return Y[1]+"."+Y[2]}else if(mBJ)return(Y=I7(/Android\s+([0-9.]+)/))?Y:I7(/Version\/([0-9.]+)/);return""}();var uVd=function(){};
_.Yn(uVd);uVd.prototype.nextId_=0;_.D_=function(Y){return":"+(Y.nextId_++).toString(36)};var a7=function(Y){_.Tj.call(this);this.JSC$8015_dom_=Y||Wk();this.JSC$8015_id_=null;this.inDocument_=!1;this.JSC$8015_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.PW(a7,_.Tj);a7.prototype.idGenerator_=uVd.getInstance();a7.prototype.getId=function(){return this.JSC$8015_id_||(this.JSC$8015_id_=_.D_(this.idGenerator_))};
a7.prototype.getElement=function(){return this.JSC$8015_element_};
var LQ=function(Y){Y.googUiComponentHandler_||(Y.googUiComponentHandler_=new _.u6(Y));return Y.googUiComponentHandler_},WGm=function(Y,S){if(Y==S)throw Error("db");
var P;if(P=S&&Y.parent_&&Y.JSC$8015_id_){P=Y.parent_;var u=Y.JSC$8015_id_;P=P.childIndex_&&u?_.RY.get(P.childIndex_,u)||null:null}if(P&&Y.parent_!=S)throw Error("db");Y.parent_=S;a7.superClass_.setParentEventTarget.call(Y,S)};
a7.prototype.setParentEventTarget=function(Y){if(this.parent_&&this.parent_!=Y)throw Error("eb");a7.superClass_.setParentEventTarget.call(this,Y)};
a7.prototype.JSC$8017_createDom=function(){this.JSC$8015_element_=this.JSC$8015_dom_.createElement("DIV")};
a7.prototype.render=function(Y){zam(this,Y)};
var zam=function(Y,S,P){if(Y.inDocument_)throw Error("fb");Y.JSC$8015_element_||Y.JSC$8017_createDom();S?S.insertBefore(Y.JSC$8015_element_,P||null):Y.JSC$8015_dom_.JSC$7241_document_.body.appendChild(Y.JSC$8015_element_);Y.parent_&&!Y.parent_.inDocument_||Y.enterDocument()};
_.z=a7.prototype;_.z.decorate=function(Y){if(this.inDocument_)throw Error("fb");if(Y&&this.canDecorate(Y)){this.wasDecorated_=!0;var S=_.Ey(Y);this.JSC$8015_dom_&&this.JSC$8015_dom_.JSC$7241_document_==S||(this.JSC$8015_dom_=Wk(Y));this.decorateInternal(Y);this.enterDocument()}else throw Error("gb");};
_.z.canDecorate=function(){return!0};
_.z.decorateInternal=function(Y){this.JSC$8015_element_=Y};
_.z.enterDocument=function(){this.inDocument_=!0;mY6(this,function(Y){!Y.inDocument_&&Y.getElement()&&Y.enterDocument()})};
_.z.exitDocument=function(){mY6(this,function(Y){Y.inDocument_&&Y.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.z.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);mY6(this,function(Y){Y.dispose()});
!this.wasDecorated_&&this.JSC$8015_element_&&_.jL(this.JSC$8015_element_);this.parent_=this.model_=this.JSC$8015_element_=this.childIndex_=this.children_=null;a7.superClass_.disposeInternal.call(this)};
_.z.getModel=function(){return this.model_};
_.z.addChild=function(Y,S){var P=this.children_?this.children_.length:0;if(Y.inDocument_&&(S||!this.inDocument_))throw Error("fb");if(P<0||P>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);Y.parent_==this?(_.RY.set(this.childIndex_,Y.getId(),Y),_.MU(this.children_,Y)):_.RY.add(this.childIndex_,Y.getId(),Y);WGm(Y,this);_.ffK(this.children_,P,0,Y);Y.inDocument_&&this.inDocument_&&Y.parent_==this?(S=this.getContentElement(),
(S.childNodes[P]||null)!=Y.getElement()&&(Y.getElement().parentElement==S&&S.removeChild(Y.getElement()),P=S.childNodes[P]||null,S.insertBefore(Y.getElement(),P))):S?(this.JSC$8015_element_||this.JSC$8017_createDom(),P=this.children_?this.children_[P+1]||null:null,zam(Y,this.getContentElement(),P?P.JSC$8015_element_:null)):this.inDocument_&&!Y.inDocument_&&Y.JSC$8015_element_&&Y.JSC$8015_element_.parentNode&&Y.JSC$8015_element_.parentNode.nodeType==1&&Y.enterDocument()};
_.z.getContentElement=function(){return this.JSC$8015_element_};
var mY6=function(Y,S){Y.children_&&Y.children_.forEach(S,void 0)};
a7.prototype.removeChild=function(Y,S){if(Y){var P=typeof Y==="string"?Y:Y.getId();Y=this.childIndex_&&P?_.RY.get(this.childIndex_,P)||null:null;P&&Y&&(_.RY.remove(this.childIndex_,P),_.MU(this.children_,Y),S&&(Y.exitDocument(),Y.JSC$8015_element_&&_.jL(Y.JSC$8015_element_)),WGm(Y,null))}if(!Y)throw Error("ib");return Y};_.PW(YWh,vh);_.PW(SWE,vh);var n26;var j4t=function(Y,S){S?Y.setAttribute("role",S):Y.removeAttribute("role")},wU=function(Y,S,P){Array.isArray(P)&&(P=P.join(" "));
var u="aria-"+S;P===""||P==void 0?(n26||(P={},n26=(P.atomic=!1,P.autocomplete="none",P.dropeffect="none",P.haspopup=!1,P.live="off",P.multiline=!1,P.multiselectable=!1,P.orientation="vertical",P.readonly=!1,P.relevant="additions text",P.required=!1,P.sort="none",P.busy=!1,P.disabled=!1,P.hidden=!1,P.invalid="false",P)),P=n26,S in P?Y.setAttribute(u,P[S]):Y.removeAttribute(u)):Y.setAttribute(u,P)};var Jc3;_.pQ=function(Y,S,P){_.Tj.call(this);this.target=Y;this.handle=S||Y;this.limits=P||new ld(NaN,NaN,NaN,NaN);this.JSC$8020_document_=_.Ey(Y);this.JSC$8020_eventHandler_=new _.u6(this);_.Ph(this,this.JSC$8020_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;_.b2(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Jc3};
_.PW(_.pQ,_.Tj);Jc3=_.Pa.document&&_.Pa.document.documentElement&&!!_.Pa.document.documentElement.setCapture&&!!_.Pa.document.releaseCapture;_.Bk6=function(Y,S){Y.hysteresisDistanceSquared_=Math.pow(S,2)};
_.z=_.pQ.prototype;_.z.getEnabled=function(){return this.enabled_};
_.z.setEnabled=function(Y){this.enabled_=Y};
_.z.disposeInternal=function(){_.pQ.superClass_.disposeInternal.call(this);_.bG(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8020_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8020_document_.releaseCapture();this.handle=this.target=null};
_.z.startDrag=function(Y){var S=Y.type=="mousedown";if(!this.enabled_||this.dragging_||S&&(Y.event_.button!=0||_.U_a&&Y.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Fy("start",this,Y.clientX,Y.clientY,Y)))this.dragging_=!0,S&&Y.preventDefault();else return;else S&&Y.preventDefault();S=this.JSC$8020_document_;var P=S.documentElement,u=!this.useSetCapture_;this.JSC$8020_eventHandler_.listen(S,["touchmove","mousemove"],this.handleMove_,
{capture:u,passive:!1});this.JSC$8020_eventHandler_.listen(S,["touchend","mouseup"],this.endDrag,u);this.useSetCapture_?(P.setCapture(!1),this.JSC$8020_eventHandler_.listen(P,"losecapture",this.endDrag)):this.JSC$8020_eventHandler_.listen(Kx(S),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8020_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,u);this.clientX=this.startX=Y.clientX;this.clientY=this.startY=Y.clientY;this.screenX=Y.screenX;this.screenY=Y.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=u9(Wk(this.JSC$8020_document_))}};
_.z.endDrag=function(Y,S){this.JSC$8020_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8020_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Fy("end",this,Y.clientX,Y.clientY,Y,cct(this,this.deltaX),CYm(this,this.deltaY),S||Y.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.z.handleMove_=function(Y){if(this.enabled_){var S=Y.clientX-this.clientX,P=Y.clientY-this.clientY;this.clientX=Y.clientX;this.clientY=Y.clientY;this.screenX=Y.screenX;this.screenY=Y.screenY;if(!this.dragging_){var u=this.startX-this.clientX,W=this.startY-this.clientY;if(u*u+W*W>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Fy("start",this,Y.clientX,Y.clientY,Y)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(Y);return}}P=qhh(this,S,P);S=P.x;P=P.y;this.dragging_&&this.dispatchEvent(new Fy("beforedrag",
this,Y.clientX,Y.clientY,Y,S,P))&&(Rah(this,Y,S,P),Y.preventDefault())}};
var qhh=function(Y,S,P){var u=u9(Wk(Y.JSC$8020_document_));S+=u.x-Y.pageScroll.x;P+=u.y-Y.pageScroll.y;Y.pageScroll=u;Y.deltaX+=S;Y.deltaY+=P;return new _.TH(cct(Y,Y.deltaX),CYm(Y,Y.deltaY))};
_.pQ.prototype.onScroll_=function(Y){var S=qhh(this,0,0);Y.clientX=this.clientX;Y.clientY=this.clientY;Rah(this,Y,S.x,S.y)};
var Rah=function(Y,S,P,u){Y.target.style.left=P+"px";Y.target.style.top=u+"px";Y.dispatchEvent(new Fy("drag",Y,S.clientX,S.clientY,S,P,u))},cct=function(Y,S){var P=Y.limits;
Y=isNaN(P.left)?null:P.left;P=isNaN(P.width)?0:P.width;return Math.min(Y!=null?Y+P:Infinity,Math.max(Y!=null?Y:-Infinity,S))},CYm=function(Y,S){var P=Y.limits;
Y=isNaN(P.top)?null:P.top;P=isNaN(P.height)?0:P.height;return Math.min(Y!=null?Y+P:Infinity,Math.max(Y!=null?Y:-Infinity,S))};
_.pQ.prototype.isDragging=function(){return this.dragging_};
var Fy=function(Y,S,P,u,W,m,J){_.Cl.call(this,Y);this.clientX=P;this.clientY=u;this.browserEvent=W;this.left=m!==void 0?m:S.deltaX;this.top=J!==void 0?J:S.deltaY};
_.PW(Fy,_.Cl);var sj=function(Y){this.JSC$8027_map_=new Map;var S=arguments.length;if(S>1){if(S%2)throw Error("oa");for(var P=0;P<S;P+=2)this.set(arguments[P],arguments[P+1])}else Y&&this.addAll(Y)};
_.z=sj.prototype;_.z.getCount=function(){return this.JSC$8027_map_.size};
_.z.getValues=function(){return Array.from(this.JSC$8027_map_.values())};
_.z.getKeys=function(){return Array.from(this.JSC$8027_map_.keys())};
_.z.containsKey=function(Y){return this.JSC$8027_map_.has(Y)};
_.z.containsValue=function(Y){return this.getValues().some(function(S){return S==Y})};
_.z.equals=function(Y,S){var P=this;S=S===void 0?function(u,W){return u===W}:S;
return this===Y?!0:this.JSC$8027_map_.size!=Y.getCount()?!1:this.getKeys().every(function(u){return S(P.JSC$8027_map_.get(u),Y.get(u))})};
_.z.isEmpty=function(){return this.JSC$8027_map_.size==0};
_.z.clear=function(){this.JSC$8027_map_.clear()};
_.z.remove=function(Y){return this.JSC$8027_map_.delete(Y)};
_.z.get=function(Y,S){return this.JSC$8027_map_.has(Y)?this.JSC$8027_map_.get(Y):S};
_.z.set=function(Y,S){this.JSC$8027_map_.set(Y,S);return this};
_.z.addAll=function(Y){if(Y instanceof sj){Y=_.n(Y.JSC$8027_map_);for(var S=Y.next();!S.done;S=Y.next()){var P=_.n(S.value);S=P.next().value;P=P.next().value;this.JSC$8027_map_.set(S,P)}}else if(Y)for(Y=_.n(Object.entries(Y)),S=Y.next();!S.done;S=Y.next())P=_.n(S.value),S=P.next().value,P=P.next().value,this.JSC$8027_map_.set(S,P)};
_.z.forEach=function(Y,S){var P=this;S=S===void 0?this:S;this.JSC$8027_map_.forEach(function(u,W){return Y.call(S,u,W,P)})};
_.z.clone=function(){return new sj(this)};(function(){for(var Y=["ms","moz","webkit","o"],S,P=0;S=Y[P]&&!_.Pa.requestAnimationFrame;++P)_.Pa.requestAnimationFrame=_.Pa[S+"RequestAnimationFrame"],_.Pa.cancelAnimationFrame=_.Pa[S+"CancelAnimationFrame"]||_.Pa[S+"CancelRequestAnimationFrame"];if(!_.Pa.requestAnimationFrame){var u=0;_.Pa.requestAnimationFrame=function(W){var m=(new Date).getTime(),J=Math.max(0,16-(m-u));u=m+J;return _.Pa.setTimeout(function(){W(m+J)},J)};
_.Pa.cancelAnimationFrame||(_.Pa.cancelAnimationFrame=function(W){clearTimeout(W)})}})();
var xY3=[[],[]],bzu=0,Tk6=!1,KGu=0,fAu=function(Y,S){var P=KGu++,u={measureTask:{id:P,fn:Y.measure,context:S},mutateTask:{id:P,fn:Y.mutate,context:S},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(u.args||(u.args=[]),u.args.length=0,u.args.push.apply(u.args,arguments),u.args.push(u.state)):u.args&&u.args.length!=0?(u.args[0]=u.state,u.args.length=1):u.args=[u.state];u.isScheduled||(u.isScheduled=!0,xY3[bzu].push(u));Tk6||(Tk6=!0,window.requestAnimationFrame(E2S))}},E2S=
function(){Tk6=!1;
var Y=xY3[bzu],S=Y.length;bzu=(bzu+1)%2;for(var P,u=0;u<S;++u){P=Y[u];var W=P.measureTask;P.isScheduled=!1;W.fn&&W.fn.apply(W.context,P.args)}for(u=0;u<S;++u)P=Y[u],W=P.mutateTask,P.isScheduled=!1,W.fn&&W.fn.apply(W.context,P.args),P.state={};Y.length=0};var g2J=_.Q0(["about:blank"]),$YJ=_.Q0(["javascript:undefined"]),rc_=_.kt(g2J);_.S2(rc_);var G_d=_.kt($YJ);_.S2(G_d);var dU=function(Y){_.Tj.call(this);this.JSC$8033_element_=Y;this.listenKeyIn_=_.b2(this.JSC$8033_element_,"focus",this,!0);this.listenKeyOut_=_.b2(this.JSC$8033_element_,"blur",this,!0)};
_.PW(dU,_.Tj);dU.prototype.handleEvent=function(Y){var S=new _.q4(Y.event_);S.type=Y.type=="focusin"||Y.type=="focus"?"focusin":"focusout";this.dispatchEvent(S)};
dU.prototype.disposeInternal=function(){dU.superClass_.disposeInternal.call(this);qG(this.listenKeyIn_);qG(this.listenKeyOut_);delete this.JSC$8033_element_};var ha6=function(Y,S){this.JSC$8036_element_=Y;this.JSC$8036_dom_=S};var li=function(Y,S){a7.call(this,S);this.useIframeMask_=!!Y;this.lastFocus_=null;this.resizeBackgroundTask_=fAu({mutate:this.resizeBackground_},this);fAu({mutate:this.updateModalAndBackground_},this)};
_.PW(li,a7);_.z=li.prototype;_.z.focusHandler_=null;_.z.visible_=!1;_.z.bgEl_=null;_.z.bgIframeEl_=null;_.z.tabCatcherElement_=null;_.z.backwardTabWrapInProgress_=!1;_.z.getCssClass=function(){return"goog-modalpopup"};
_.z.getBackgroundElement=function(){return this.bgEl_};
_.z.JSC$8017_createDom=function(){li.superClass_.JSC$8017_createDom.call(this);var Y=this.getElement(),S=_.uW(this.getCssClass()).split(" ");Zj(Y,S);Y.tabIndex=0;_.Zb(Y,!1);v2s(this);DYd(this)};
var v2s=function(Y){if(Y.useIframeMask_&&!Y.bgIframeEl_){var S=Y.JSC$8015_dom_.JSC$7243_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.fh(S,rc_);Y.bgIframeEl_=S;Y.bgIframeEl_.className=Y.getCssClass()+"-bg";_.Zb(Y.bgIframeEl_,!1);PK_(Y.bgIframeEl_,0)}Y.bgEl_||(Y.bgEl_=Y.JSC$8015_dom_.JSC$7243_createDom("DIV",Y.getCssClass()+"-bg"),_.Zb(Y.bgEl_,!1))},DYd=function(Y){Y.tabCatcherElement_||(Y.tabCatcherElement_=Y.JSC$8015_dom_.createElement("SPAN"),_.Zb(Y.tabCatcherElement_,
!1),Y.tabCatcherElement_.tabIndex=0,Y.tabCatcherElement_.style.position="absolute")};
_.z=li.prototype;_.z.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.z.canDecorate=function(Y){return!!Y&&Y.tagName=="DIV"};
_.z.decorateInternal=function(Y){li.superClass_.decorateInternal.call(this,Y);Y=_.uW(this.getCssClass()).split(" ");Zj(this.getElement(),Y);v2s(this);DYd(this);this.getElement().tabIndex=0;_.Zb(this.getElement(),!1)};
_.z.enterDocument=function(){this.bgIframeEl_&&_.pX(this.bgIframeEl_,this.getElement());_.pX(this.bgEl_,this.getElement());li.superClass_.enterDocument.call(this);_.Fs(this.tabCatcherElement_,this.getElement());this.focusHandler_=new dU(this.JSC$8015_dom_.JSC$7241_document_);LQ(this).listen(this.focusHandler_,"focusin",this.onFocus);IAi(this,!1)};
_.z.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.oY(this.focusHandler_);li.superClass_.exitDocument.call(this);_.jL(this.bgIframeEl_);_.jL(this.bgEl_);_.jL(this.tabCatcherElement_)};
_.z.setVisible=function(Y){if(Y!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&IAi(this,Y),Y){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8015_dom_.JSC$7241_document_.activeElement}catch(W){}this.updateModalAndBackground_();LQ(this).listen(this.JSC$8015_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8015_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);aA6(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Cs(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){LQ(this).unlisten(this.JSC$8015_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8015_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Cs(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var S=this.JSC$8015_dom_,P=S.JSC$7241_document_.body,u=S.JSC$7241_document_.activeElement||P;if(!this.lastFocus_||this.lastFocus_==P){this.lastFocus_=null;break a}(u==P||S.contains(this.getElement(),u))&&this.lastFocus_.focus()}catch(W){}this.lastFocus_=
null}}};
var IAi=function(Y,S){Y.modalAriaVisibilityHelper_||(Y.modalAriaVisibilityHelper_=new ha6(Y.JSC$8015_element_,Y.JSC$8015_dom_));Y=Y.modalAriaVisibilityHelper_;if(S){Y.hiddenElements_||(Y.hiddenElements_=[]);S=Y.JSC$8036_dom_.getChildren(Y.JSC$8036_dom_.JSC$7241_document_.body);for(var P=0;P<S.length;P++){var u=S[P],W;if(W=u!=Y.JSC$8036_element_)W=u.getAttribute("aria-hidden"),W=!(W==null||W==void 0?0:String(W));W&&(wU(u,"hidden",!0),Y.hiddenElements_.push(u))}}else if(Y.hiddenElements_){for(S=0;S<
Y.hiddenElements_.length;S++)Y.hiddenElements_[S].removeAttribute("aria-hidden");Y.hiddenElements_=null}};
li.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var aA6=function(Y,S){Y.bgIframeEl_&&_.Zb(Y.bgIframeEl_,S);Y.bgEl_&&_.Zb(Y.bgEl_,S);_.Zb(Y.getElement(),S);_.Zb(Y.tabCatcherElement_,S)};
_.z=li.prototype;_.z.onShow=function(){this.dispatchEvent("show")};
_.z.onHide=function(){aA6(this,!1);this.dispatchEvent("hide")};
_.z.isVisible=function(){return this.visible_};
_.z.focus=function(){this.focusElement_()};
_.z.resizeBackground_=function(){this.bgIframeEl_&&_.Zb(this.bgIframeEl_,!1);this.bgEl_&&_.Zb(this.bgEl_,!1);var Y=this.JSC$8015_dom_.JSC$7241_document_;var S=_.Pk(Kx(this.JSC$8015_dom_.JSC$7241_document_)||window);var P=Math.max(S.width,Math.max(Y.body.scrollWidth,Y.documentElement.scrollWidth));Y=Math.max(S.height,Math.max(Y.body.scrollHeight,Y.documentElement.scrollHeight));this.bgIframeEl_&&(_.Zb(this.bgIframeEl_,!0),_.eXt(this.bgIframeEl_,P,Y));this.bgEl_&&(_.Zb(this.bgEl_,!0),_.eXt(this.bgEl_,
P,Y))};
_.z.reposition=function(){var Y;if(_.V__(this.getElement())=="fixed")var S=Y=0;else S=u9(this.JSC$8015_dom_),Y=S.x,S=S.y;var P=YUJ(this.getElement());var u=_.Pk(Kx(this.JSC$8015_dom_.JSC$7241_document_)||window);Y=Math.max(Y+u.width/2-P.width/2,0);S=Math.max(S+u.height/2-P.height/2,0);id(this.getElement(),Y,S);id(this.tabCatcherElement_,Y,S)};
_.z.onFocus=function(Y){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():Y.target==this.tabCatcherElement_&&$M(this.focusElement_,0,this)};
_.z.focusElement_=function(){try{this.getElement().focus()}catch(Y){}};
_.z.disposeInternal=function(){_.oY(this.popupShowTransition_);this.popupShowTransition_=null;_.oY(this.popupHideTransition_);this.popupHideTransition_=null;_.oY(this.bgShowTransition_);this.bgShowTransition_=null;_.oY(this.bgHideTransition_);this.bgHideTransition_=null;li.superClass_.disposeInternal.call(this)};var Db=function(Y,S,P){li.call(this,S,P);this.JSC$8046_class_=Y||"modal-dialog";this.buttons_=(new Xy).addButton(LGs,!0).addButton(wQd,!1,!0)};
_.PW(Db,li);_.z=Db.prototype;_.z.escapeToCancel_=!0;_.z.hasTitleCloseButton_=!0;_.z.modal_=!0;_.z.draggable_=!0;_.z.backgroundElementOpacity_=.5;_.z.title_="";_.z.JSC$8048_dragger_=null;_.z.JSC$8048_disposeOnHide_=!1;_.z.titleEl_=null;_.z.titleTextEl_=null;_.z.titleTextId_=null;_.z.titleCloseEl_=null;_.z.contentEl_=null;_.z.buttonEl_=null;_.z.getCssClass=function(){return this.JSC$8046_class_};
_.z.setTitle=function(Y){this.title_=Y;this.titleTextEl_&&_.dI(this.titleTextEl_,Y)};
_.z.getTitle=function(){return this.title_};
_.z.getContent=function(){return""};
_.z.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var pQJ=function(Y){Y.getElement()||Y.render();return Y.getElement()};
Db.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Db.superClass_.getBackgroundElement.call(this)};
var FGf=function(Y,S){Y.backgroundElementOpacity_=S;Y.getElement()&&(S=Y.getBackgroundElement())&&PK_(S,Y.backgroundElementOpacity_)};
Db.prototype.setDraggable=function(Y){this.draggable_=Y;s4u(this,Y&&this.inDocument_)};
Db.prototype.JSC$8048_handleDrag=function(){};
var s4u=function(Y,S){var P=_.uW(Y.JSC$8046_class_+"-title-draggable").split(" ");Y.getElement()&&(S?Zj(Y.titleEl_,P):cFt(Y.titleEl_,P));S&&!Y.JSC$8048_dragger_?(S=new _.pQ(Y.getElement(),Y.titleEl_),Y.JSC$8048_dragger_=S,Zj(Y.titleEl_,P),_.b2(Y.JSC$8048_dragger_,"start",Y.setDraggerLimits_,!1,Y),_.b2(Y.JSC$8048_dragger_,"drag",Y.JSC$8048_handleDrag,!1,Y)):!S&&Y.JSC$8048_dragger_&&(Y.JSC$8048_dragger_.dispose(),Y.JSC$8048_dragger_=null)};
_.z=Db.prototype;
_.z.JSC$8017_createDom=function(){Db.superClass_.JSC$8017_createDom.call(this);var Y=this.getElement(),S=this.JSC$8015_dom_;this.titleTextId_=this.getId();var P=this.getId()+".contentEl";this.titleEl_=S.JSC$7243_createDom("DIV",this.JSC$8046_class_+"-title",this.titleTextEl_=S.JSC$7243_createDom("SPAN",{className:this.JSC$8046_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=S.JSC$7243_createDom("SPAN",this.JSC$8046_class_+"-title-close"));aIt(Y,this.titleEl_,this.contentEl_=
S.JSC$7243_createDom("DIV",{className:this.JSC$8046_class_+"-content",id:P}),this.buttonEl_=S.JSC$7243_createDom("DIV",this.JSC$8046_class_+"-buttons"));j4t(this.titleTextEl_,"heading");j4t(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;wU(this.titleCloseEl_,"label","Close");j4t(Y,"dialog");wU(Y,"labelledby",this.titleTextId_||"");_.Zb(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(Y=this.buttons_,Y.JSC$8049_element_=this.buttonEl_,Y.render());_.Zb(this.buttonEl_,!!this.buttons_);
FGf(this,this.backgroundElementOpacity_)};
_.z.decorateInternal=function(Y){Db.superClass_.decorateInternal.call(this,Y);Y=this.getElement();var S=this.JSC$8046_class_+"-content";this.contentEl_=v9(document,null,S,Y)[0];this.contentEl_||(this.contentEl_=this.JSC$8015_dom_.JSC$7243_createDom("DIV",S),Y.appendChild(this.contentEl_));S=this.JSC$8046_class_+"-title";var P=this.JSC$8046_class_+"-title-text",u=this.JSC$8046_class_+"-title-close";(this.titleEl_=v9(document,null,S,Y)[0])?(this.titleTextEl_=v9(document,null,P,this.titleEl_)[0],this.titleCloseEl_=
v9(document,null,u,this.titleEl_)[0]):(this.titleEl_=this.JSC$8015_dom_.JSC$7243_createDom("DIV",S),Y.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=UIt(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.IL("SPAN",{className:P,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;wU(Y,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8015_dom_.JSC$7243_createDom("SPAN",
u),this.titleEl_.appendChild(this.titleCloseEl_));_.Zb(this.titleCloseEl_,this.hasTitleCloseButton_);S=this.JSC$8046_class_+"-buttons";(this.buttonEl_=v9(document,null,S,Y)[0])?(this.buttons_=new Xy(this.JSC$8015_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8015_dom_.JSC$7243_createDom("DIV",S),Y.appendChild(this.buttonEl_),this.buttons_&&(Y=this.buttons_,Y.JSC$8049_element_=this.buttonEl_,Y.render()),_.Zb(this.buttonEl_,!!this.buttons_));FGf(this,this.backgroundElementOpacity_)};
_.z.enterDocument=function(){Db.superClass_.enterDocument.call(this);LQ(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);LQ(this).listen(this.buttonEl_,"click",this.onButtonClick_);s4u(this,this.draggable_);LQ(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var Y=this.getElement();j4t(Y,"dialog");this.titleTextEl_.id!==""&&wU(Y,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){Y=this.JSC$8015_dom_;
var S=this.getBackgroundElement();Y.removeNode(this.bgIframeEl_);Y.removeNode(S)}this.isVisible()&&IAi(this,!1)}};
_.z.exitDocument=function(){this.isVisible()&&this.setVisible(!1);s4u(this,!1);Db.superClass_.exitDocument.call(this)};
_.z.setVisible=function(Y){Y!=this.isVisible()&&(this.inDocument_||this.render(),Db.superClass_.setVisible.call(this,Y))};
_.z.onShow=function(){Db.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.z.onHide=function(){Db.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8048_disposeOnHide_&&this.dispose()};
_.z.setDraggerLimits_=function(){var Y=this.JSC$8015_dom_.JSC$7241_document_,S=_.Pk(Kx(Y)||window),P=Math.max(Y.body.scrollWidth,S.width);Y=Math.max(Y.body.scrollHeight,S.height);var u=YUJ(this.getElement());_.V__(this.getElement())=="fixed"?this.JSC$8048_dragger_.limits=new ld(0,0,Math.max(0,S.width-u.width),Math.max(0,S.height-u.height)):this.JSC$8048_dragger_.limits=new ld(0,0,P-u.width,Y-u.height)};
_.z.onTitleCloseClick_=function(){dYU(this)};
var dYU=function(Y){if(Y.hasTitleCloseButton_){var S=Y.buttons_,P=S&&S.cancelButton_;P?(S=S.get(P),Y.dispatchEvent(new ZH(P,S))&&Y.setVisible(!1)):Y.setVisible(!1)}},lAu=function(Y){Y.hasTitleCloseButton_=!1;
Y.titleCloseEl_&&_.Zb(Y.titleCloseEl_,Y.hasTitleCloseButton_)};
Db.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Db.superClass_.disposeInternal.call(this)};
Db.prototype.onButtonClick_=function(Y){a:{for(Y=Y.target;Y!=null&&Y!=this.buttonEl_;){if(Y.tagName=="BUTTON")break a;Y=Y.parentNode}Y=null}if(Y&&!Y.disabled){Y=Y.name;var S=this.buttons_.get(Y);this.dispatchEvent(new ZH(Y,S))&&this.setVisible(!1)}};
Db.prototype.onKey_=function(Y){var S=!1,P=!1,u=this.buttons_,W=Y.target;if(Y.type=="keydown")if(this.escapeToCancel_&&Y.keyCode==27){var m=u&&u.cancelButton_;W=W.tagName=="SELECT"&&!W.disabled;m&&!W?(P=!0,S=u.get(m),S=this.dispatchEvent(new ZH(m,S))):W||(S=!0)}else{if(Y.keyCode==9&&Y.shiftKey&&W==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(b){}$M(this.resetBackwardTabWrap_,0,this)}}else if(Y.keyCode==13){if(W.tagName=="BUTTON"&&!W.disabled)m=W.name;
else if(W==this.titleCloseEl_)dYU(this);else if(u){var J=u.defaultButton_,c;if(c=J)a:{c=JF("BUTTON",u.JSC$8049_element_);for(var C,x=0;C=c[x];x++)if(C.name==J||C.id==J){c=C;break a}c=null}W=(W.tagName=="TEXTAREA"||W.tagName=="SELECT"||W.tagName=="A")&&!W.disabled;!c||c.disabled||W||(m=J)}m&&u&&(P=!0,S=this.dispatchEvent(new ZH(m,String(u.get(m)))))}else W!=this.titleCloseEl_||Y.keyCode!=32&&Y.key!=" "||dYU(this);if(S||P)Y.stopPropagation(),Y.preventDefault();S&&this.setVisible(!1)};
var ZH=function(Y,S){this.type="dialogselect";this.key=Y;this.caption=S};
_.PW(ZH,_.Cl);var Xy=function(Y){sj.call(this);Y||Wk();this.cancelButton_=this.JSC$8049_element_=this.defaultButton_=null};
_.PW(Xy,sj);_.z=Xy.prototype;_.z.clear=function(){sj.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.z.set=function(Y,S,P,u){sj.prototype.set.call(this,Y,S);P&&(this.defaultButton_=Y);u&&(this.cancelButton_=Y);return this};
_.z.addButton=function(Y,S,P){return this.set(Y.key,Y.caption,S,P)};
_.z.render=function(){if(this.JSC$8049_element_){_.a9(this.JSC$8049_element_,Cka);var Y=Wk(this.JSC$8049_element_);this.forEach(function(S,P){S=Y.JSC$7243_createDom("BUTTON",{name:P},S);P==this.defaultButton_&&(S.className="goog-buttonset-default");this.JSC$8049_element_.appendChild(S)},this)}};
_.z.decorate=function(Y){if(Y&&Y.nodeType==1){this.JSC$8049_element_=Y;Y=JF("BUTTON",this.JSC$8049_element_);for(var S,P,u,W=0;S=Y[W];W++)if(P=S.name||S.id,u=UIt(S)||S.value,P){var m=W==0;this.set(P,u,m,S.name=="cancel");m&&_.i2(S,"goog-buttonset-default")}}};
_.z.getElement=function(){return this.JSC$8049_element_};
var LGs={key:"ok",caption:"OK"},wQd={key:"cancel",caption:"Cancel"},XQf={key:"yes",caption:"Yes"},ZzL={key:"no",caption:"No"},izh={key:"save",caption:"Save"},o2J={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Xy).addButton(LGs,!0,!0),(new Xy).addButton(LGs,!0).addButton(wQd,!1,!0),(new Xy).addButton(XQf,!0).addButton(ZzL,!1,!0),(new Xy).addButton(XQf).addButton(ZzL,!0).addButton(wQd,!1,!0),(new Xy).addButton(o2J).addButton(izh).addButton(wQd,!0,!0));_.PW(Pkh,Db);_.PW(u3a,I6);var tHi=_.Q0(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),Act=_.Q0(["//apis.google.com/js/rpc.js"]),cAK=_.kt(tHi),Bwh=_.kt(Act),a6=null;var LN=function(Y,S){_.Tj.call(this);this.JSC$8058_element_=Y;Y=_.Vn(this.JSC$8058_element_)?this.JSC$8058_element_:this.JSC$8058_element_?this.JSC$8058_element_.body:null;this.isRtl_=!!Y&&_.uF_(Y);this.listenKey_=_.b2(this.JSC$8058_element_,_.j5?"DOMMouseScroll":"mousewheel",this,S)};
_.PW(LN,_.Tj);LN.prototype.handleEvent=function(Y){var S=0,P=0,u=Y.event_;u.type=="mousewheel"?(Y=UYi(-u.wheelDelta),u.wheelDeltaX!==void 0?(S=UYi(-u.wheelDeltaX),P=UYi(-u.wheelDeltaY)):P=Y):(Y=u.detail,Y>100?Y=3:Y<-100&&(Y=-3),u.axis!==void 0&&u.axis===u.HORIZONTAL_AXIS?S=Y:P=Y);typeof this.maxDeltaX_==="number"&&(S=_.wx(S,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(P=_.wx(P,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(S=-S);S=new Q4d(Y,u,S,P);this.dispatchEvent(S)};
var UYi=function(Y){return _.Jv&&(_.U_a||k71)&&Y%40!=0?Y:Y/40};
LN.prototype.disposeInternal=function(){LN.superClass_.disposeInternal.call(this);qG(this.listenKey_);this.listenKey_=null};
var Q4d=function(Y,S,P,u){_.q4.call(this,S);this.type="mousewheel";this.detail=Y;this.deltaX=P;this.deltaY=u};
_.PW(Q4d,_.q4);_.zU=function(Y){var S="instance_";if(Y.instance_&&Y.hasOwnProperty(S))return Y.instance_;S=new Y;return Y.instance_=S};var JA9;var k_m=_.Q0(["https://about:blank"]),MHt=_.Q0(['javascript:""']),yc_=_.Q0(["about:blank"]);_.PW(iV,Pkh);_.z=iV.prototype;_.z.JSC$8066_url_="";_.z.JSC$8066_iframe_=null;_.z.iframeLoaded_=!1;_.z.loadedFired_=!1;_.z.callback_=function(){};
_.z.enterDocument=function(){iV.superClass_.enterDocument.call(this);nZE(this.getBackgroundElement(),LQ(this))};
_.z.render=function(Y){var S=this;iV.superClass_.render.call(this,Y);this.useGapi_?yAs(this.iframeManager_,window).then(function(){return Nkh(S)}).then(null,function(){S.callback_({action:"error"})}):Hzm(this)};
var Nkh=function(Y){var S=Y.JSC$8015_dom_.JSC$7243_createDom("div",["picker-dialog-content","picker-frame"]);_.Zb(S,!1);Y.getContentElement().appendChild(S);return NwJ(Y.iframeManager_,S,function(P){var u=aBh(P["iframe-command"]);switch(u.getCommand()){case 1:P=Y.callback_;u=_.P_(u,Vh,2);var W="";switch(u.getStatus()){case 2:W="cancel";break;case 1:W="picked";break;case 3:W="error"}var m=_.Uy(u,Ge,2,_.QI(T99));u=m.length===0?{action:W}:a4J(m,W,_.P_(u,vEi,7));P.call(Y,u);Y.setVisible(!1);break;case 4:lAu(Y);
Y.callback_({action:"loaded"});break;case 7:case 8:P=Y.callback_;a:{W=u.getCommand();m=_.P_(u,Vh,2);switch(W){case 7:W="uploadScheduled";break;case 8:W="uploadStateChange";break;default:u={};break a}u=_.Uy(m,Ge,2,_.QI(T99));if(u.length===0)u={action:W};else{var J=_.P_(m,vEi,7);m=J&&_.aJ(J,1);J=KNu(J);u=gZd(u,W,m,J)}}P.call(Y,u)}},Y.JSC$8066_url_,Y.targetId_,Y.rpcToken_).then(function(P){Y.JSC$8066_iframe_=P.getIframeEl();
VHf(Y);_.Zb(Y.JSC$8066_iframe_.parentElement,!0);_.i2(Y.getElement(),"picker-dialog");eaS(Y);return P})},Hzm=function(Y){Y.JSC$8066_iframe_=Y.JSC$8015_dom_.JSC$7243_createDom("IFRAME",{id:Y.targetId_,
name:Y.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.fh(Y.JSC$8066_iframe_,Ozm(Y));_.i2(Y.getElement(),"picker-dialog");Y.getContentElement().appendChild(Y.JSC$8066_iframe_);LQ(Y).listen(Y.JSC$8066_iframe_,"load",function(){return void VHf(Y)});
Y.JSC$8066_iframe_.src=Y.JSC$8066_url_;eaS(Y)},SQU=function(Y){YQJ(Y,(0,_.xS)(function(S){S.setAuthToken(this.targetId_,this.rpcToken_)},Y))},eaS=function(Y){var S=_.lV(_.d7(Y.JSC$8066_url_),"title");
S&&Y.setTitle(S)},Ozm=function(Y){return _.B1Y("Internet Explorer")>=7&&_.m$(Y.JSC$8066_url_,"https")?_.kt(k_m):_.nj?_.kt(MHt):_.kt(yc_)},VHf=function(Y){SQU(Y);
Y.iframeLoaded_=!0;Y.JSC$8066_iframe_.tabIndex=0;Y.isVisible()&&Y.focus()};
iV.prototype.handleKeydown_=function(Y){Y.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),Y.stopPropagation(),Y.preventDefault())};
var YQJ=function(Y,S){var P=Y.JSC$8064_gadgetsDomHelper_;zyf(function(){S(P.getWindow().gadgets.rpc)},P)};
iV.prototype.setUrl=function(Y){Y=_.XI(new _.Nq(Y),"rpcService",this.targetId_);_.XI(Y,"rpctoken",this.rpcToken_);_.Ox(Y,"rpctoken="+this.rpcToken_);_.yK(Y,"https");this.JSC$8066_url_=Y.toString();this.JSC$8066_iframe_&&(this.JSC$8066_iframe_.src=this.JSC$8066_url_)};
var PX6=function(Y,S){Y.callback_=S;YQJ(Y,(0,_.xS)(function(P){P.register(this.targetId_,(0,_.xS)(this.handlePickerAction_,this))},Y))};
iV.prototype.handlePickerAction_=function(Y){var S=Y.action;S=="loaded"&&(this.loadedFired_=!0,uBm(this,new SWE(this.isVisible())),WVd(this),lAu(this),LQ(this).unlisten(this.JSC$8015_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8066_iframe_.tabIndex=0);S!="picked"&&S!="cancel"||this.setVisible(!1);this.callback_(Y)};
var WVd=function(Y){Y.JSC$8066_appId_&&uBm(Y,new YWh(Y.JSC$8066_appId_,window.location.protocol+"//"+window.location.host))};
iV.prototype.setRelayUrl=function(Y){YQJ(this,(0,_.xS)(function(S){S.setRelayUrl(this.targetId_,Y)},this))};
var uBm=function(Y,S){Y.useGapi_&&YhL(S,Y.iframeManager_).then(null,function(){Y.callback_({action:"error"})});
YQJ(Y,(0,_.xS)(function(P){P.call(this.targetId_,"picker",null,S)},Y))};
iV.prototype.resizePicker_=function(){var Y=Kx(this.JSC$8015_dom_.JSC$7241_document_)||window;if(_.lV(_.d7(this.JSC$8066_url_),"ignoreLimits")=="true")Y=new _.SZ(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.lV(_.d7(this.JSC$8066_url_),"shadeDialog")=="true"){var S=pQJ(this);S=Wz3(S);var P=_.Pk(Y);Y=P.width-80;P=P.height-40;S&&(Y-=S.left?S.left:0,Y-=S.right?S.right:0,P-=S.top?S.top:0,P-=S.bottom?S.bottom:0);Y=new _.SZ(Y>0?Y:0,P>0?P:0)}else(S=this.preferredDialogWidth_)?(S=Math.max(320,
Math.min(1051,S)),(P=this.preferredDialogHeight_)||(P=_.Pk(Y).height*.85),P=Math.max(480,Math.min(650,P))):(S=_.Pk(Y),P=S.width*.618,P=P<S.height?Math.round(Math.max(480,Math.min(650,P*.85))):Math.round(Math.max(480,Math.min(650,S.height*.85))),S=Math.round(P/.618)),Y=_.Pk(Y),S=Math.min(S,Math.max(Y.width,320)),P=Math.min(P,Math.max(Y.height,480)),Y=new _.SZ(S,P);_.eXt(this.getContentElement(),Y);this.reposition()};
iV.prototype.reposition=function(){if(_.lV(_.d7(this.JSC$8066_url_),"shadeDialog")=="true"){var Y=YUJ(this.getElement()),S=_.Pk(this.JSC$8015_dom_.getWindow());Y=Math.floor(S.width/2-Y.width/2);S=pQJ(this);if(S=Wz3(S)){var P=S.left?S.left:0;P+=S.right?S.right:0;Y=Math.floor(Y-P/2)}Y=Y>0?Y:0;S=u9(this.JSC$8015_dom_).y;id(this.getElement(),Y,S)}else iV.superClass_.reposition.call(this)};
iV.prototype.setVisible=function(Y){if(Y!=this.isVisible()&&this.autoSizeDialog_){var S=this.JSC$8015_dom_.getWindow();Y?(this.resizePicker_(),LQ(this).listen(S,"resize",this.resizePicker_),this.iframeLoaded_||LQ(this).listen(S,"keydown",this.handleKeydown_)):(LQ(this).unlisten(S,"resize",this.resizePicker_),this.iframeLoaded_||LQ(this).unlisten(S,"keydown",this.handleKeydown_))}iV.superClass_.setVisible.call(this,Y);uBm(this,new SWE(Y))};
iV.prototype.focus=function(){iV.superClass_.focus.call(this);if(this.JSC$8066_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8066_iframe_.focus()}catch(Y){}};var KV=function(Y,S){S=S===void 0?iV:S;I6.call(this,Y);this.pickerConstructor=S;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(Y=window.location.origin)||(Y=window.location.protocol+"//"+window.location.host);Y&&this.urlParamMap_.set("origin",Y);this.postProcessors_=[]};
_.r(KV,u3a);KV.prototype.JSC$8071_disposeOnHide_=!1;
KV.prototype.build=function(){this.JSC$7972_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7972_appId_);this.getRelayUrl()||this.setRelayUrl(_.VK(_.Ox(_.ej(_.d7(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var Y=new this.pickerConstructor(zld(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);Y.JSC$8048_disposeOnHide_=this.JSC$8071_disposeOnHide_;
Y.JSC$8066_appId_=this.JSC$7972_appId_;Y.loadedFired_&&WVd(Y);PX6(Y,this.callback_);return Y};
var mRd=function(Y){Y.urlParamMap_.set("multiselectEnabled","true");return Y};
KV.prototype.getHeight=function(){return this.dialogHeight_};
KV.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
KV.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
KV.prototype.getWidth=function(){return this.dialogWidth_};
var nFh=function(Y){Y.JSC$8071_disposeOnHide_=void 0;return Y};
KV.prototype.setRelayUrl=function(Y){this.urlParamMap_.set("parent",Y);return this};
var jdf=function(Y,S){Y.urlParamMap_.set("selectButtonLabel",S);return Y};
KV.prototype.setSize=function(Y,S){this.dialogWidth_=Y;this.dialogHeight_=S;return this};
KV.prototype.setTitle=function(Y){this.urlParamMap_.set("title",Y);return this};
var zld=function(Y){Y.postProcessors_.length&&Y.urlParamMap_.set("pp",JSON.stringify(Y.postProcessors_));Y.urlParamMap_.set("nav",Rym(Y.nav_));var S=new _.Nq(Y.getBaseUrl());Y.urlParamMap_.forEach(function(P,u){_.XI(S,u,P)});
return S};var ciS=function(Y,S){Y.name!==void 0?(this.name=Y.name,this.code=Jit[Y.name]):(this.code=Y=Y.code,this.name=Bcs(Y));_.YY.call(this,UU3("%s %s",this.name,S))};
_.PW(ciS,_.YY);var Bcs=function(Y){var S=_.RY.findKey(Jit,function(P){return Y==P});
if(S===void 0)throw Error("lb`"+Y);return S},ii={},Jit=(ii.AbortError=3,ii.EncodingError=5,ii.InvalidModificationError=9,ii.InvalidStateError=7,ii.NotFoundError=1,ii.NotReadableError=4,ii.NoModificationAllowedError=6,ii.PathExistsError=12,ii.QuotaExceededError=10,ii.SecurityError=2,ii.SyntaxError=8,ii.TypeMismatchError=11,ii);var CXi=function(Y,S){_.Cl.call(this,Y.type,S);this.event_=Y};
_.PW(CXi,_.Cl);var qQJ=function(Y,S,P){P===void 0&&(P=Y.size);return Y.slice?Y.slice(S,P):null};var Ryu=new WeakMap,qWK=function(Y,S){Y=[Y];for(var P=S.length-1;P>=0;--P)Y.push(typeof S[P],S[P]);return Y.join("\v")};_.bEf(function(){if(!_.Pa.Blob)return!1;var Y=new Uint8Array(100);try{var S=new Blob([Y])}catch(P){return!1}return S.size!=100?!1:!0});
var Rlm=_.bEf(function(){if(!_.Pa.Blob)return!1;var Y=new Uint8Array(100);try{var S=new Blob([Y])}catch(P){return!1}return qQJ(S,0,1)===null?!1:!0});_.Pa.U3bHHf!=null||(_.Pa.U3bHHf=0);_.Pa.U3bHHf++;var KN8={};var MZ=void 0;var NZ=Symbol("tb");var LNh=Hh("WizInjectionContext_Dispatcher");var hyu=Hh("WizInjectionContext_RootElement");var DPf=Hh("WizInjectionContext_AppContext"),vZh=Hh("WizInjectionContext_ModelRootElement"),I4$=Hh("WizInjectionContext_RendererData"),a4X=Hh("WizInjectionContext_InjectingConstructor"),GBJ=Hh("WizInjectionContext_AsyncDeps"),wRh={};var dPa=!1;var xRh=Symbol("wb"),rcY=Symbol("xb"),DY1=Symbol("yb"),ha9=Symbol("zb"),s48=Zs(function(Y){return uy(Y)&&xRh in Y});var iEh={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:lc1,enableLazyTsx:X5E,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var Yd=Object.assign({},{attributes:{},handleError:function(Y){throw Y;}},iEh);var UPa=Symbol("Ab"),o7={},tXK=(o7[UPa]=!0,o7.debugName="[component]",o7.getComponentStack=function(){for(var Y=[],S=this;S;)Qja(S)&&Y.push(S.debugName),S=S.parent;return Y},o7.registerSignal=function(){},o7.registerEffect=function(){},o7);var WJ=null,m2=!1,NwX=1,cJ=Symbol("Bb"),Eu={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 tz=Symbol("Cb"),Az=Symbol("Db"),BJ=Symbol("Eb"),uV1=Object.assign({},Eu,{value:tz,dirty:!0,error:null,equal:kBE,kind:"computed",producerMustRecompute:function(Y){return Y.value===tz||Y.value===Az},
producerRecomputeValue:function(Y){if(Y.value===Az)throw Error("da");var S=Y.value;Y.value=Az;var P=YhU(Y),u=!1;try{var W=Y.computation();z6(null);u=S!==tz&&S!==BJ&&W!==BJ&&Y.equal(S,W)}catch(m){W=BJ,Y.error=m}finally{ShK(Y,P)}u?Y.value=S:(Y.value=W,Y.version++)}});var j4a=function(){throw Error();};var Bk9=null,zau=Object.assign({},Eu,{equal:kBE,value:void 0,kind:"signal"});Object.assign({},Eu,{value:tz,dirty:!0,error:null,equal:kBE,kind:"linkedSignal",producerMustRecompute:function(Y){return Y.value===tz||Y.value===Az},
producerRecomputeValue:function(Y){if(Y.value===Az)throw Error("da");var S=Y.value;Y.value=Az;var P=YhU(Y);try{var u=Y.source();var W=Y.computation(u,S===tz||S===BJ?void 0:{source:Y.sourceValue,value:S});Y.sourceValue=u}catch(m){W=BJ,Y.error=m}finally{ShK(Y,P)}S!==tz&&W!==BJ&&Y.equal(S,W)?Y.value=S:(Y.value=W,Y.version++)}});Object.assign({},Eu,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(Y){Y.schedule!==null&&Y.schedule(Y.ref)},
hasRun:!1,cleanupFn:function(){}});var RI=Symbol("Fb"),by=Symbol("Gb");var T6=Array.isArray;var fA8;var bZ6={},$YX=E2K(Object.assign({},{consumerAllowSignalWrites:!0},bZ6)),bk=E2K(Object.assign({},{consumerAllowSignalWrites:!0},bZ6));var lA8=[];var $d=0,Uj=function(){this.queue=new Set};
Uj.prototype.remove=function(Y){this.queue.delete(Y)};
Uj.prototype.clear=function(){this.queue.clear()};
var Tcm=function(){Uj.apply(this,arguments)};
_.r(Tcm,Uj);Tcm.prototype.schedule=function(Y){Y.hasRun?this.queue.add(Y):Y.run()};
Tcm.prototype.flush=function(){if(this.queue.size){var Y=this.queue;this.queue=new Set;dYh(Y)}};
var G_1=new Tcm,KVJ=function(){Uj.apply(this,arguments)};
_.r(KVJ,Uj);KVJ.prototype.schedule=function(Y){var S=this;return _.B(function(P){if(P.nextAddress==1)return Y.hasRun?P.jumpTo(2):_.q(P,Promise.resolve(),3);if(P.nextAddress!=2)return Y.run(),P.return();S.queue.add(Y);_.Yt(P)})};
KVJ.prototype.flush=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1){if(!Y.queue.size)return P.return();S=Y.queue;Y.queue=new Set;return _.q(P,Promise.resolve(),2)}dYh(S);_.Yt(P)})};
var IAE=new KVJ,EF3=function(){Uj.apply(this,arguments)};
_.r(EF3,Uj);EF3.prototype.schedule=function(Y){this.queue.add(Y)};
EF3.prototype.flush=function(){if(this.queue.size){var Y=this.queue;this.queue=new Set;dYh(Y)}};
var v2h=new EF3,pQX=[G_1,IAE,v2h],LGf=[];Bk9=function(){FGa();for(var Y=_.n(LGf),S=Y.next();!S.done;S=Y.next())S=S.value,S()};var G6=Symbol("Mb");var rK=null,o2X,tHE=null,Aca;var QH={},fR_=Object.assign({},Eu,(QH[xRh]=!0,QH.effectType=rcY,QH.isResettableContext=!0,QH.producerNode=void 0,QH.hasRun=!1,QH.effectFn=null,QH.consumerIsAlwaysLive=!0,QH.consumerAllowSignalWrites=!0,QH.consumerMarkedDirty=aA9,QH.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(m2)throw Error("Nb");this.dirty=!1;if(!this.hasRun||HEX(this)){this.hasRun=!0;rAJ(this);var Y=y2(this),S=YhU(this);Sh("effectRun",this.debugName);try{vJ(this.effectFn,{stack:this.componentStack})}finally{PJ("effectRun",
this.debugName),ShK(this,S),y2(Y)}}}},QH.componentStack=void 0,QH.debugName="[effect]",QH[Symbol.dispose]=function(){nJ(this);
if(jh(this))for(var Y=0;Y<this.producerNode.length;Y++)Jx(this.producerNode[Y],this.producerIndexOfThis[Y]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);Y=_.n(pQX);for(var S=Y.next();!S.done;S=Y.next())S.value.remove(this);V2(this)},QH));var Q41=Object.assign({},fR_,{effectType:DY1});var k_u=Object.assign({},fR_,{effectType:rcY});var MHa=Symbol("Ob");var IRf=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var YZ=Symbol("Pb");var Rj=function(){},fE=function(Y){this.props=Y;
this.__unmounted=!1};
fE.prototype.didPatch=function(){};
fE.prototype.didMount=function(){};
fE.prototype.didUnmount=function(){};
fE.prototype.didUpdate=function(){};var Hzu={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},Nk$={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}]}},KXa={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},Ozu=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],eaK={"*":{async:1,dir:0,loading:2,target:3}};var gFs=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,kq={},SQh=(kq[1]=null,kq[2]=function(Y,S){return S instanceof TT?E4(S):Jw.toString()},kq[3]=function(Y,S){return zT(S)?_.mp(S):gFs.test(String(S))?String(S):Jw.toString()},kq[4]=function(Y,S){return S instanceof OU?_.S2(S):Jw.toString()},kq[5]=function(Y,S){return String(S)},kq[7]=null,kq[8]=null,kq[10]=null,kq);var oJK=Symbol("Sb");var kmX=function(Y){var S=$Rm,P=Y,u="",W="",m=1;Y<0&&(Y=-Y);if(Y===Infinity)Y=(Infinity*Math.sign(P)).toString();else{for(var J=0;J<ri3.length;J++){var c=ri3[J];m=S[c];if(Y>=m||m<=1&&Y>.1*m){u=c;break}}u?(u+="B",W=" "):m=1;Y=Math.round(P/m*10)/10+W+u}return Y},ri3="Y Z E P T G M K  m u n".split(" "),$Rm={"":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};_.GZf=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 mN={};RegExp.prototype.hasOwnProperty("sticky");var w_h=function(Y){Y=String(Y);for(var S=function(u,W,m){for(var J=Math.min(W.length-m,u.length),c=0;c<J;c++){var C=W[m+c];if(u[c]!==("A"<=C&&C<="Z"?C.toLowerCase():C))return!1}return!0},P=0;(P=Y.indexOf("<",P))!=-1;){if(S("\x3c/script",Y,P)||S("\x3c!--",Y,P))return"zSoyz";
P+=1}return Y};var dK={default:"__default"};var jda=Object.prototype.hasOwnProperty;WV1.prototype=Object.create(null);var VZ=ciK();var Nb=null;var $Ru=function(Y){this.created=[];this.deleted=[];this.node=Y};var riJ=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var Y=this,S=Y;Y;)S=Y,Y=Y.parentNode;return S};var qQX=function(Y,S){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=Y;this.key=S;this.text=void 0};var iy=null,oI=null,Xn=null,Q1=null,KVX=[],Tcu=xR$,Mb=[],y1=[],isa=function(Y){return GZa(function(S,P,u){Xn=oI=S;oI=null;P(u);bZ9(null);oI=Xn;Xn=Xn.parentNode;return S},Y)}(),Zs1=function(Y){return GZa(function(S,P,u){var W={nextSibling:S};
oI=W;P(u);Xn&&bZ9(S.nextSibling);return W===oI?null:oI},Y)}();var HJ=[],vFh=0;var V1=new WV1;var ED=new WV1;var hlm=ciK(),LVE=hlm[dK.default],p_1=hlm.style,aR$=["focusin","focusout"];var R_h=function(){},u_8=function(){},EGh=function(){},b_h=function(){};var Ou=Symbol("Zb");var iZa,ZZ1=X_$;var BR=Symbol("$b");var Vqh={};var KUh=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(" ")),
T6f=new Set(["a","font","script","style","title"]);var TB={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var KE=null,EW=function(Y,S){fE.call(this,Y);var P=this;this.functionComponent=S;this.hooks=[];this.hookCounter=0;this.disposeEffects=LJ(function(u){P.effectContext=u;_.aI(function(){nG$(P,P.el)})},Yd.alwaysTrackContexts||!!MZ)};
_.r(EW,fE);EW.prototype.render=function(Y){var S=KE;KE=this;this.hookCounter=0;var P=z6(bk),u=y2(this.effectContext);try{return Sh("render",this.componentName),this.functionComponent(Y)}finally{PJ("render",this.componentName),y2(u),z6(P),KE=S}};
_.y6.Object.defineProperties(EW.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(S=(Y=this.functionComponent.debugName)!=null?Y:this.functionComponent.name)!=null?S:"[component]"}}});var fNY=Symbol("nc"),CEh=function(Y,S,P){this.kind=Y;this.props=S;this.children=P};
_.r(CEh,Rj);CEh.prototype.render=function(){return cp8(this.kind,this.props,this.children)};
CEh.prototype.getChildren=function(){return this.children};var $sh=[];j4a=function(Y){throw Error("sb`"+Y.debugName);};
(function(){var Y=Nb;Nb=function(S){Y==null||Y(S);rp8(S)}})();var vFU=void 0,DRt={},IRs=new WeakMap,Gy8={getComponent:function(Y){if(Y.hasAttribute("ng-version"))return DRt;if(!Y.__wizComponent)return null;Y=Y.__wizComponent;IRs.set(Y.propsAndState,Y);return Y.propsAndState},
getDirectiveMetadata:function(Y){if(Y===DRt)return{framework:"wiz",name:"<Root>",props:{}};Y=IRs.get(Y);if(!Y)throw Error("oc");return{framework:"wiz",name:Y.name,props:Object.fromEntries(Object.keys(Y.props).map(function(S){return[S,S]}))}},
"\u0275setProfiler":function(Y){var S;(S=vFU)==null||S();vFU=wQ1(function(){Y(2)})},
isSignal:function(Y){return typeof Y==="function"&&Y[cJ]!==void 0}};var vGK={nonNullableCondIsNull:function(){return Error("sc")}};_.R.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.R.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.R.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var pK1=function(){this.map=new Map};
pK1.prototype.push=function(Y,S){var P=this.map;P.has(Y)&&(this.multi||(this.multi=new Map),this.multi.set(S,P.get(Y)));P.set(Y,S)};
pK1.prototype.pop=function(Y){var S=this.map,P=S.get(Y),u;P!==void 0&&((u=this.multi)==null?0:u.has(P))?(S.set(Y,this.multi.get(P)),this.multi.delete(P)):S.delete(Y);return P};var XKY={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(Y){return Error("uc`"+Y)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(Y,S){return Error("yc`"+Y+"`"+S)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(Y){return Error("zc`"+Y)},
USE_ELEMENT_NOT_ASSIGNED:function(Y){return Error("Ac`"+String(Y))}};iZa=qf$;var Qzf=Symbol("Bc");z_8({beforeRender:function(Y){var S=y2(Y.effectContext);try{var P;((P=Y.__syncEffects)==null?0:P.length)&&Muh(Y.__syncEffects)}finally{y2(S)}},
didPatch:function(Y){var S=y2(Y.effectContext);try{var P;((P=Y.__syncEffects)==null?0:P.length)&&Muh(Y.__syncEffects)}finally{y2(S)}},
didUnmount:function(Y){var S;((S=Y.hooks)==null?0:S.length)&&Y.hooks.forEach(kyK)}});var aRh,LVi,w_U;aRh=_.Pa.window;_.dw=(aRh==null?void 0:(LVi=aRh.yt)==null?void 0:LVi.config_)||(aRh==null?void 0:(w_U=aRh.ytcfg)==null?void 0:w_U.data_)||{};_.HQ("yt.config_",_.dw);var p_d={},VuJ=[];_.$2=function(Y){var S=_.Ch.apply(1,arguments);var P=Error.call(this,Y);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.args=[].concat(_.cz(S));Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(_.$2,Error);var Pif=function(Y,S,P){this.actionName=Y;this.optionalAction=S===void 0?!1:S;this.args=P===void 0?null:P;this.returnValue=[]};_.N=function(Y){this.name=Y};_.iE=new _.N("signalAction");var jW$=/^[\w.]*$/,Pga={q:!0,search_query:!0},SE9=String(YEX);var Md;Md=Symbol("Cc");_.yH=function(Y){this.name=Y};
_.yH.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var JJf=function(Y){this.key=Y},Cg8=function(Y){this.deferredKey=Y},cJa=function(){var Y=this;
this.providers=new Map;this.JSC$8280_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(Y.providers)}}};
cJa.prototype.addProvider=function(Y){this.providers.set(Y.provide,Y);var S=this.JSC$8280_deferred.get(Y.provide);if(S)try{S.resolver(this.resolve(Y.provide))}catch(P){S.rejector(P)}};
cJa.prototype.resolve=function(Y){return Y instanceof Cg8?FVS(this,Y):Y instanceof JJf?sdm(this,Y.key,[],!0):sdm(this,Y,[])};
var FVS=function(Y,S){S=S.deferredKey;if(Y.JSC$8280_deferred.has(S))return Y.JSC$8280_deferred.get(S).promise;var P={};P.promise=new Promise(function(u,W){P.resolver=u;P.rejector=W});
Y.JSC$8280_deferred.set(S,P);return P.promise},sdm=function(Y,S,P,u){u=u===void 0?!1:u;
if(P.indexOf(S)>-1)throw Error("Dc`"+S);if(Y.cachedValues.has(S))return Y.cachedValues.get(S);if(!Y.providers.has(S)){if(u)return;throw Error("Ec`"+S);}u=Y.providers.get(S);P.push(S);if(u.useValue!==void 0)var W=u.useValue;else if(u.useFactory)W=u[Md]?dRJ(Y,u[Md],P):[],W=u.useFactory.apply(u,_.cz(W));else if(u.useClass){W=u.useClass;var m=W[Md]?dRJ(Y,W[Md],P):[];W=new (Function.prototype.bind.apply(W,[null].concat(_.cz(m))))}else throw Error("Fc`"+S);P.pop();u.skipCache||Y.cachedValues.set(S,W);return W},
dRJ=function(Y,S,P){return S?S.map(function(u){return u instanceof JJf?sdm(Y,u.key,P,!0):sdm(Y,u,P)}):[]};var BuX;var oz=new _.yH("ENDPOINT_HANDLER_TOKEN");_.tp=new _.N("urlEndpoint");var lRs=function(){this.data=[];this.cachedPackedInt52=-1};
lRs.prototype.set=function(Y,S){S=S===void 0?!0:S;0<=Y&&Y<52&&Number.isInteger(Y)&&this.data[Y]!==S&&(this.data[Y]=S,this.cachedPackedInt52=-1)};
lRs.prototype.get=function(Y){return!!this.data[Y]};
var X_h=function(Y){Y.cachedPackedInt52===-1&&(Y.cachedPackedInt52=Y.data.reduce(function(S,P,u){return S+(P?Math.pow(2,u):0)},0));
return Y.cachedPackedInt52};var vyh=function(Y){var S=ZZd;Y=Y===void 0?_.tA("yt.ads.biscotti.lastId_")||"":Y;var P=Object,u=P.assign,W={};W.dt=QYU;W.flash="0";a:{try{var m=S.JSC$8286_win_.top.location.href}catch(hu){m=2;break a}m=m?m===S.doc_.location.href?0:1:2}W=(W.frm=m,W);try{W.u_tz=-(new Date).getTimezoneOffset();var J=J===void 0?dy:J;try{var c=J.history.length}catch(hu){c=0}W.u_his=c;var C;W.u_h=(C=dy.screen)==null?void 0:C.height;var x;W.u_w=(x=dy.screen)==null?void 0:x.width;var b;W.u_ah=(b=dy.screen)==null?void 0:b.availHeight;
var T;W.u_aw=(T=dy.screen)==null?void 0:T.availWidth;var K;W.u_cd=(K=dy.screen)==null?void 0:K.colorDepth}catch(hu){}c=S.JSC$8286_win_;try{var G=c.screenX;var v=c.screenY}catch(hu){}try{var a=c.outerWidth;var w=c.outerHeight}catch(hu){}try{var F=c.innerWidth;var U=c.innerHeight}catch(hu){}try{var V=c.screenLeft;var M=c.screenTop}catch(hu){}try{F=c.innerWidth,U=c.innerHeight}catch(hu){}try{var zJ=c.screen.availWidth;var O=c.screen.availTop}catch(hu){}G=[V,M,G,v,zJ,O,a,w,F,U];v=b7U(!1,S.JSC$8286_win_.top);
a={};var ca=ca===void 0?_.Pa:ca;w=new lRs;"SVGElement"in ca&&"createElementNS"in ca.document&&w.set(0);F=BZi();F["allow-top-navigation-by-user-activation"]&&w.set(1);F["allow-popups-to-escape-sandbox"]&&w.set(2);ca.crypto&&ca.crypto.subtle&&w.set(3);"TextDecoder"in ca&&"TextEncoder"in ca&&w.set(4);ca=X_h(w);S=(a.bc=ca,a.bih=v.height,a.biw=v.width,a.brdim=G.join(),a.vis=Y_1(S.doc_),a.wgl=!!dy.WebGLRenderingContext,a);P=u.call(P,W,S);P.ca_type="image";Y&&(P.bid=Y);return P},ZZd=new function(){var Y=
window.document;
this.JSC$8286_win_=window;this.doc_=Y};
_.HQ("yt.ads_.signals_.getAdSignalsString",function(Y){return uDa(vyh(Y))});_.S5();navigator.userAgent.indexOf(" (CrKey ");var Tuf="XMLHttpRequest"in _.Pa?function(){return new XMLHttpRequest}:null;var iZf="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),oFt=[].concat(_.cz(iZf),["client_dev_set_cookie"]);var hT$={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"},fYE="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(_.cz(iZf)),dzu=!1,$zY=_.Dzf,peK=G4$;var W4K=[{messageFn:function(Y){return"Cannot read property '"+Y.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(Y){return"Cannot call '"+Y.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(Y){return Y.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var tqu={messageWeights:[],callbackWeights:[{callback:ioh,weight:500}]};var Aid=function(){this.callbackWeights=[];this.messageWeights=[]},URt,u58=function(){if(!URt){var Y=URt=new Aid;
Y.messageWeights.length=0;Y.callbackWeights.length=0;YHU(Y,tqu)}return URt},YHU=function(Y,S){S.messageWeights&&Y.messageWeights.push.apply(Y.messageWeights,S.messageWeights);
S.callbackWeights&&Y.callbackWeights.push.apply(Y.callbackWeights,S.callbackWeights)};_.PW(_.x2,_.R6);_.x2.prototype.subscribe=function(Y,S,P){var u=this.topics_[Y];u||(u=this.topics_[Y]=[]);var W=this.JSC$8310_key_;this.subscriptions_[W]=Y;this.subscriptions_[W+1]=S;this.subscriptions_[W+2]=P;this.JSC$8310_key_=W+3;u.push(W);return W};
var Qdh=function(Y){var S=jea,P=!1,u=S.subscribe("handleError",function(W){P||(P=!0,this.unsubscribeByKey(u),Y.apply(void 0,arguments))},S)};
_.x2.prototype.unsubscribe=function(Y,S,P){if(Y=this.topics_[Y]){var u=this.subscriptions_;if(Y=Y.find(function(W){return u[W+1]==S&&u[W+2]==P}))return this.unsubscribeByKey(Y)}return!1};
_.x2.prototype.unsubscribeByKey=function(Y){var S=this.subscriptions_[Y];if(S){var P=this.topics_[S];this.publishDepth_!=0?(this.pendingKeys_.push(Y),this.subscriptions_[Y+1]=function(){}):(P&&_.MU(P,Y),delete this.subscriptions_[Y],delete this.subscriptions_[Y+1],delete this.subscriptions_[Y+2])}return!!S};
_.x2.prototype.publish=function(Y,S){var P=this.topics_[Y];if(P){var u=Array(arguments.length-1),W=arguments.length,m;for(m=1;m<W;m++)u[m-1]=arguments[m];if(this.async_)for(m=0;m<P.length;m++)W=P[m],kZJ(this.subscriptions_[W+1],this.subscriptions_[W+2],u);else{this.publishDepth_++;try{for(m=0,W=P.length;m<W&&!this.isDisposed();m++){var J=P[m];this.subscriptions_[J+1].apply(this.subscriptions_[J+2],u)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;P=this.pendingKeys_.pop();)this.unsubscribeByKey(P)}}return m!=
0}return!1};
var kZJ=function(Y,S,P){_.Ex(function(){Y.apply(S,P)})};
_.x2.prototype.clear=function(Y){if(Y){var S=this.topics_[Y];S&&(S.forEach(this.unsubscribeByKey,this),delete this.topics_[Y])}else this.subscriptions_.length=0,this.topics_={}};
_.x2.prototype.getCount=function(Y){if(Y){var S=this.topics_[Y];return S?S.length:0}Y=0;for(S in this.topics_)Y+=this.getCount(S);return Y};
_.x2.prototype.disposeInternal=function(){_.x2.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var jea=new _.x2;var nZ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(nZ,_.Gc);nZ.prototype.getColdHashData=function(){return _.aJ(this,3)};
nZ.prototype.getHotHashData=function(){return _.aJ(this,5)};
nZ.prototype.setHotHashData=function(Y){return _.zH(this,5,Y)};var YV$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(YV$,_.Gc);var Dha=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Dha,_.Gc);_.z=Dha.prototype;_.z.getDeviceId=function(){return _.aJ(this,6)};
_.z.getExperimentIds=function(Y){var S=_.mz(this,9,_.T1,3,!0);dd(S,Y);return S[Y]};
_.z.getPlayerType=function(){return _.Lj(this,36)};
_.z.setHomeGroupInfo=function(Y){return _.N8(this,81,Y)};
_.z.clearLocationPlayabilityToken=function(){return _.mV(this,89)};var bE=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(bE,_.Gc);bE.prototype.setKey=function(Y){return _.zH(this,1,Y)};
bE.prototype.getValue=function(){return pj(this,2,aQ$)};
var aQ$=[2,3,4,5,6];var MqU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(MqU,_.Gc);MqU.prototype.setTrackingParams=function(Y){return _.mV(this,1,_.s6(Y,!1))};var IQf=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(IQf,_.Gc);var ukE=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(ukE,_.Gc);ukE.prototype.getExperimentIds=function(Y){var S=_.mz(this,5,_.K1,3,!0);dd(S,Y);return S[Y]};var $G=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r($G,_.Gc);$G.prototype.getToken=function(){return _.mo(this,2)};
$G.prototype.setToken=function(Y){return _.zH(this,2,Y)};var K_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(K_,_.Gc);K_.prototype.setSafetyMode=function(Y){return _.uX(this,5,Y)};var xG=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(xG,_.Gc);xG.prototype.setClient=function(Y){return _.N8(this,1,Y)};var PjK={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 SVf;_.FQ=function(){var Y=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Pa.addEventListener("beforeinstallprompt",function(S){S.preventDefault();Y.deferredInstallPrompt=S});
_.Pa.addEventListener("appinstalled",function(){Y.appInstalledEventFired=!0},{once:!0})};
SVf=function(){if(!_.Pa.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Pa.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Pa.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Pa.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Pa.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(Y){return"WEB_DISPLAY_MODE_UNKNOWN"}};var mTh=function(){this.syncHeaders=!0},no1=function(Y){var S={},P=[];
"USER_SESSION_ID"in _.dw&&P.push({key:"u",value:_.X3("USER_SESSION_ID")});if(P=ISY(P))S.Authorization=P,P=Y=Y==null?void 0:Y.sessionIndex,P===void 0&&(P=Number(_.X3("SESSION_INDEX",0)),P=isNaN(P)?0:P),_.f("voice_search_auth_header_removal")||(S["X-Goog-AuthUser"]=P.toString()),"INNERTUBE_HOST_OVERRIDE"in _.dw||(S["X-Origin"]=window.location.origin),Y===void 0&&"DELEGATED_SESSION_ID"in _.dw&&(S["X-Goog-PageId"]=_.X3("DELEGATED_SESSION_ID"));return S};var yiu={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Nd=_.tA("ytglobal.prefsUserPrefsPrefs_")||{},NcU;_.HQ("ytglobal.prefsUserPrefsPrefs_",Nd);_.HO=function(){this.cookieName=_.X3("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.X3("ALT_PREF_COOKIE_DOMAIN","youtube.com");var Y=_.T_.get(this.cookieName,void 0);Y&&this.parse(Y)};
_.$o=function(){NcU||(NcU=new _.HO);return NcU};
_.HO.prototype.get=function(Y,S){HZi(Y);VqU(Y);Y=Nd[Y]!==void 0?Nd[Y].toString():null;return Y!=null?Y:S?S:""};
_.HO.prototype.set=function(Y,S){HZi(Y);VqU(Y);if(S==null)throw Error("Ic");Nd[Y]=S.toString()};
_.HO.prototype.getFlag=function(Y){return!!((elJ("f"+(Math.floor(Y/31)+1))||0)&1<<Y%31)};
_.rP=function(Y,S,P){Y="f"+(Math.floor(S/31)+1);S=1<<S%31;var u=elJ(Y)||0;u=P?u|S:u&~S;u===0?delete Nd[Y]:(P=u.toString(16),Nd[Y]=P.toString())};
_.HO.prototype.remove=function(Y){HZi(Y);VqU(Y);delete Nd[Y]};
_.HO.prototype.save=function(){var Y=!0;_.f("web_secure_pref_cookie_killswitch")&&(Y=!1);_.Kz(this.cookieName,this.dump(),63072E3,this.cookieDomain,Y)};
_.HO.prototype.clear=function(){_.RY.clear(Nd)};
_.HO.prototype.dump=function(){var Y=[],S;for(S in Nd)Nd.hasOwnProperty(S)&&Y.push(S+"="+encodeURIComponent(String(Nd[S])));return Y.join("&")};
var VqU=function(Y){if(/^f([1-9][0-9]*)$/.test(Y))throw Error("Jc`"+Y);},HZi=function(Y){if(!/^\w+$/.test(Y))throw Error("Kc`"+Y);
},elJ=function(Y){Y=Nd[Y]!==void 0?Nd[Y].toString():null;
return Y!=null&&/^[A-Fa-f0-9]+$/.test(Y)?parseInt(Y,16):null};
_.HO.prototype.parse=function(Y){Y=decodeURIComponent(Y).split("&");for(var S=0;S<Y.length;S++){var P=Y[S].split("="),u=P[0];(P=P[1])&&(Nd[u]=P.toString())}};var Nuh={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"},Ws$={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},zB8={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},Vr$={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var MG;_.VH=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.hp=function(Y,S,P){return Y.addJob(S,0,P)};
_.VH.prototype.addLowPriorityJob=function(Y,S){return this.addJob(Y,1,S)};
_.bL=function(Y,S,P){return Y.addJob(S,2,P)};
_.$I=function(Y,S,P){return Y.addJob(S,3,P)};
_.yz=function(Y,S,P){return Y.addJob(S,4,P)};
MG=function(Y){var S=_.tA("yt.scheduler.instance.addImmediateJob");S?S(Y):Y()};
_.VH.prototype.debounce=function(Y,S,P){var u=this,W=0,m=function(){W&&u.cancelJob(W);W=u.addJob(Y,S,P);u.cancelDebouncedJobMap.set(m,W)};
return m};
_.VH.prototype.cancelThrottle=function(Y){(Y=this.cancelThrottledJobMap.get(Y))&&Y()};var ev=function(){_.VH.apply(this,arguments)};
_.r(ev,_.VH);_.vs=function(){ev.instance||(ev.instance=new ev);return ev.instance};
ev.prototype.addJob=function(Y,S,P){P!==void 0&&Number.isNaN(Number(P))&&(P=void 0);var u=_.tA("yt.scheduler.instance.addJob");return u?u(Y,S,P):P===void 0?(Y(),NaN):_.Jc(Y,P||0)};
ev.prototype.cancelJob=function(Y){if(Y===void 0||!Number.isNaN(Number(Y))){var S=_.tA("yt.scheduler.instance.cancelJob");S?S(Y):_.cQ(Y)}};
ev.prototype.start=function(){var Y=_.tA("yt.scheduler.instance.start");Y&&Y()};
ev.prototype.pause=function(){var Y=_.tA("yt.scheduler.instance.pause");Y&&Y()};
_.wc=_.vs();_.rk.prototype.set=function(Y,S){S===void 0?this.mechanism.remove(Y):this.mechanism.set(Y,(0,_.Gj)(S))};
_.rk.prototype.get=function(Y){try{var S=this.mechanism.get(Y)}catch(P){return}if(S!==null)try{return JSON.parse(S)}catch(P){throw"Storage: Invalid value was encountered";}};
_.rk.prototype.remove=function(Y){this.mechanism.remove(Y)};var Oj=function(Y){this.mechanism=Y};
_.PW(Oj,_.rk);var OZJ=function(Y){this.data=Y},Yfm=function(Y){return Y===void 0||Y instanceof OZJ?Y:new OZJ(Y)};
Oj.prototype.set=function(Y,S){Oj.superClass_.set.call(this,Y,Yfm(S))};
Oj.prototype.getWrapper=function(Y){Y=Oj.superClass_.get.call(this,Y);if(Y===void 0||Y instanceof Object)return Y;throw"Storage: Invalid value was encountered";};
Oj.prototype.get=function(Y){if(Y=this.getWrapper(Y)){if(Y=Y.data,Y===void 0)throw"Storage: Invalid value was encountered";}else Y=void 0;return Y};_.PW(G_,Oj);_.SfJ=function(Y){var S=Y.creation;Y=Y.expiration;return!!Y&&Y<_.S5()||!!S&&S>_.S5()};
G_.prototype.set=function(Y,S,P){if(S=Yfm(S)){if(P){if(P<_.S5()){G_.prototype.remove.call(this,Y);return}S.expiration=P}S.creation=_.S5()}G_.superClass_.set.call(this,Y,S)};
G_.prototype.getWrapper=function(Y,S){var P=G_.superClass_.getWrapper.call(this,Y);if(P)if(!S&&_.SfJ(P))G_.prototype.remove.call(this,Y);else return P};var YN=function(){};
YN.prototype.next=function(){return Sd};
var Sd={done:!0,value:void 0},PH=function(Y){return{value:Y,done:!1}};
YN.prototype.__iterator__=function(){return this};
_.PEu=function(Y){if(Y instanceof YN)return Y;if(typeof Y.__iterator__=="function")return Y.__iterator__(!1);if(_.eK(Y)){var S=0,P=new YN;P.next=function(){for(;;){if(S>=Y.length)return Sd;if(S in Y)return PH(Y[S++]);S++}};
return P}throw Error("Lc");};var u_u=function(Y){if(Y instanceof uT||Y instanceof WH||Y instanceof zr)return Y;if(typeof Y.next=="function")return new uT(function(){return Y});
if(typeof Y[Symbol.iterator]=="function")return new uT(function(){return Y[Symbol.iterator]()});
if(typeof Y.__iterator__=="function")return new uT(function(){return Y.__iterator__()});
throw Error("Mc");},uT=function(Y){this.func_=Y};
uT.prototype.__iterator__=function(){return new WH(this.func_())};
uT.prototype[Symbol.iterator]=function(){return new zr(this.func_())};
uT.prototype.toEs6=function(){return new zr(this.func_())};
var WH=function(Y){this.JSC$8394_iter_=Y};
_.r(WH,YN);WH.prototype.next=function(){return this.JSC$8394_iter_.next()};
WH.prototype[Symbol.iterator]=function(){return new zr(this.JSC$8394_iter_)};
WH.prototype.toEs6=function(){return new zr(this.JSC$8394_iter_)};
var zr=function(Y){uT.call(this,function(){return Y});
this.JSC$8397_iter_=Y};
_.r(zr,uT);zr.prototype.next=function(){return this.JSC$8397_iter_.next()};var WUt=function(){};var mQ=function(){};
_.PW(mQ,WUt);mQ.prototype.getCount=function(){for(var Y=0,S=_.n(this),P=S.next();!P.done;P=S.next())Y++;return Y};
mQ.prototype[Symbol.iterator]=function(){return u_u(this.__iterator__(!0)).toEs6()};
mQ.prototype.clear=function(){var Y=Array.from(this);Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())this.remove(S.value)};_.PW(hc,mQ);_.z=hc.prototype;_.z.isAvailable=function(){if(!ZOf||this.cachedIsStorageAvailable_===null){var Y=this.storage_;if(Y)try{performance.now();Y.setItem("__sak","1");Y.removeItem("__sak");performance.now();var S=!0}catch(P){S=P instanceof DOMException&&(P.name==="QuotaExceededError"||P.code===22||P.code===1014||P.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Y&&Y.length!==0}else S=!1;this.cachedIsStorageAvailable_=S}return this.cachedIsStorageAvailable_};
_.z.set=function(Y,S){nw(this);try{this.storage_.setItem(Y,S)}catch(P){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.z.get=function(Y){nw(this);Y=this.storage_.getItem(Y);if(typeof Y!=="string"&&Y!==null)throw"Storage mechanism: Invalid value was encountered";return Y};
_.z.remove=function(Y){nw(this);this.storage_.removeItem(Y)};
_.z.getCount=function(){nw(this);return this.storage_.length};
_.z.__iterator__=function(Y){nw(this);var S=0,P=this.storage_,u=new YN;u.next=function(){if(S>=P.length)return Sd;var W=P.key(S++);if(Y)return PH(W);W=P.getItem(W);if(typeof W!=="string")throw"Storage mechanism: Invalid value was encountered";return PH(W)};
return u};
_.z.clear=function(){nw(this);this.storage_.clear()};
_.z.key=function(Y){nw(this);return this.storage_.key(Y)};
var nw=function(Y){if(Y.storage_==null)throw Error("Nc");var S;(ZOf?Y.isAvailable():(S=Y.cachedIsStorageAvailable_)!=null?S:Y.isAvailable())||ua(Error("Nc"))};_.PW(Ooh,hc);_.PW(Y2$,hc);_.PW(vQ,mQ);vQ.prototype.set=function(Y,S){this.mechanism_.set(this.JSC$8412_prefix_+Y,S)};
vQ.prototype.get=function(Y){return this.mechanism_.get(this.JSC$8412_prefix_+Y)};
vQ.prototype.remove=function(Y){this.mechanism_.remove(this.JSC$8412_prefix_+Y)};
vQ.prototype.__iterator__=function(Y){var S=this.mechanism_[Symbol.iterator](),P=this,u=new YN;u.next=function(){var W=S.next();if(W.done)return W;for(W=W.value;W.slice(0,P.JSC$8412_prefix_.length)!=P.JSC$8412_prefix_;){W=S.next();if(W.done)return W;W=W.value}return PH(Y?W.slice(P.JSC$8412_prefix_.length):P.mechanism_.get(W))};
return u};_.lX=function(Y){this.expiringStorage_=(Y=_.S2J(Y))?new G_(Y):null;this.JSC$8416_domain_=document.domain||window.location.hostname};
_.lX.prototype.set=function(Y,S,P,u){P=P||31104E3;this.remove(Y);if(this.expiringStorage_)try{this.expiringStorage_.set(Y,S,Date.now()+P*1E3);return}catch(m){}var W="";if(u)try{W=escape((0,_.Gj)(S))}catch(m){return}else W=escape(S);_.Kz(Y,W,P,this.JSC$8416_domain_)};
_.lX.prototype.get=function(Y,S){var P=void 0,u=!this.expiringStorage_;if(!u)try{P=this.expiringStorage_.get(Y)}catch(W){u=!0}if(u&&(P=_.T_.get(Y,void 0))&&(P=unescape(P),S))try{P=JSON.parse(P)}catch(W){this.remove(Y),P=void 0}return P};
_.lX.prototype.remove=function(Y){this.expiringStorage_&&this.expiringStorage_.remove(Y);_.k4Y(Y,"/",this.JSC$8416_domain_)};
_.lX.prototype.getCreationTime=function(Y){return this.expiringStorage_&&(Y=(this.expiringStorage_.getWrapper(Y)||{}).creation,typeof Y==="number")?Y:null};var uvh=function(){var Y;return function(){Y||(Y=new _.lX("ytidb"));return Y}}();var zjf;_.I4=[];zjf=!1;var G5E=mqY||n5X;var jd={},z_u=(jd.AUTH_INVALID="No user identifier specified.",jd.EXPLICIT_ABORT="Transaction was explicitly aborted.",jd.IDB_NOT_SUPPORTED="IndexedDB is not supported.",jd.MISSING_INDEX="Index not created.",jd.MISSING_OBJECT_STORES="Object stores not created.",jd.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",jd.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",jd.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",jd.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",jd.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",jd.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",jd.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",jd),JV={},mst=(JV.AUTH_INVALID="ERROR",JV.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",JV.EXPLICIT_ABORT="IGNORED",
JV.IDB_NOT_SUPPORTED="ERROR",JV.MISSING_INDEX="WARNING",JV.MISSING_OBJECT_STORES="ERROR",JV.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",JV.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",JV.QUOTA_EXCEEDED="WARNING",JV.QUOTA_MAYBE_EXCEEDED="WARNING",JV.UNKNOWN_ABORT="WARNING",JV.INCOMPATIBLE_DB_VERSION="WARNING",JV),BH={},nGh=(BH.AUTH_INVALID=!1,BH.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,BH.EXPLICIT_ABORT=!1,BH.IDB_NOT_SUPPORTED=!1,BH.MISSING_INDEX=!1,BH.MISSING_OBJECT_STORES=!1,BH.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,BH.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,BH.QUOTA_EXCEEDED=!1,BH.QUOTA_MAYBE_EXCEEDED=!0,BH.UNKNOWN_ABORT=!0,BH.INCOMPATIBLE_DB_VERSION=!1,BH),sh=function(Y,S,P,u,W){S=S===void 0?{}:S;P=P===void 0?z_u[Y]:P;u=u===void 0?mst[Y]:u;W=W===void 0?nGh[Y]:W;_.$2.call(this,P,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:Y},S));this.type=Y;this.message=P;this.level=u;this.retryable=W;Object.setPrototypeOf(this,sh.prototype)};
_.r(sh,_.$2);var jzt=function(Y,S){sh.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:S,foundObjectStores:Y},z_u.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,jzt.prototype)};
_.r(jzt,sh);var J9J=function(Y,S){var P=Error.call(this);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.index=Y;this.objectStore=S;Object.setPrototypeOf(this,J9J.prototype)};
_.r(J9J,Error);var BfY=["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 ZA=function(Y){this.executor=Y},XV=function(Y){var S=this;
this.state={status:"PENDING"};this.JSC$8444_onFulfilled=[];this.JSC$8444_onRejected=[];Y=Y.executor;var P=function(W){if(S.state.status==="PENDING"){S.state={status:"FULFILLED",value:W};W=_.n(S.JSC$8444_onFulfilled);for(var m=W.next();!m.done;m=W.next())m=m.value,m()}},u=function(W){if(S.state.status==="PENDING"){S.state={status:"REJECTED",
reason:W};W=_.n(S.JSC$8444_onRejected);for(var m=W.next();!m.done;m=W.next())m=m.value,m()}};
try{Y(P,u)}catch(W){u(W)}};
XV.all=function(Y){return new XV(new ZA(function(S,P){var u=[],W=Y.length;W===0&&S(u);for(var m={i$jscomp$504:0};m.i$jscomp$504<Y.length;m={i$jscomp$504:m.i$jscomp$504},++m.i$jscomp$504)XV.resolve(Y[m.i$jscomp$504]).then(function(J){return function(c){u[J.i$jscomp$504]=c;W--;W===0&&S(u)}}(m)).catch(function(J){P(J)})}))};
XV.resolve=function(Y){return new XV(new ZA(function(S,P){Y instanceof XV?Y.then(S,P):S(Y)}))};
XV.reject=function(Y){return new XV(new ZA(function(S,P){P(Y)}))};
XV.prototype.then=function(Y,S){var P=this,u=Y!=null?Y:q2h,W=S!=null?S:C6K;return new XV(new ZA(function(m,J){P.state.status==="PENDING"?(P.JSC$8444_onFulfilled.push(function(){JpS(P,P,u,m,J)}),P.JSC$8444_onRejected.push(function(){B6i(P,P,W,m,J)})):P.state.status==="FULFILLED"?JpS(P,P,u,m,J):P.state.status==="REJECTED"&&B6i(P,P,W,m,J)}))};
XV.prototype.catch=function(Y){return this.then(void 0,Y)};
var JpS=function(Y,S,P,u,W){try{if(Y.state.status!=="FULFILLED")throw Error("Qc");var m=P(Y.state.value);m instanceof XV?cpu(Y,S,m,u,W):u(m)}catch(J){W(J)}},B6i=function(Y,S,P,u,W){try{if(Y.state.status!=="REJECTED")throw Error("Rc");
var m=P(Y.state.reason);m instanceof XV?cpu(Y,S,m,u,W):u(m)}catch(J){W(J)}},cpu=function(Y,S,P,u,W){S===P?W(new TypeError("Sc")):P.then(function(m){m instanceof XV?cpu(Y,S,m,u,W):u(m)},function(m){W(m)})};var cH;cH=window;_.Oh=cH.ytcsi&&cH.ytcsi.now?cH.ytcsi.now:cH.performance&&cH.performance.timing&&cH.performance.now&&cH.performance.timing.navigationStart?function(){return cH.performance.timing.navigationStart+cH.performance.now()}:function(){return(new Date).getTime()};var o4=function(Y,S){this.JSC$8456_wrapped=Y;this.options=S;this.transactionCount=0;this.startedMs=Math.round((0,_.Oh)());this.hasUnknownAbortedTransaction=!1},R_U,xsi,Rx,KUs;
o4.prototype.add=function(Y,S,P){return _.Ql(this,[Y],{mode:"readwrite",enableRetries:!0},function(u){return u.objectStore(Y).add(S,P)})};
o4.prototype.clear=function(Y){return _.Ql(this,[Y],{mode:"readwrite",enableRetries:!0},function(S){return S.objectStore(Y).clear()})};
o4.prototype.close=function(){this.JSC$8456_wrapped.close();var Y;((Y=this.options)==null?0:Y.closed)&&this.options.closed()};
o4.prototype.count=function(Y,S){return _.Ql(this,[Y],{mode:"readonly",enableRetries:!0},function(P){return P.objectStore(Y).count(S)})};
var ZR=function(Y,S,P){Y=Y.JSC$8456_wrapped.createObjectStore(S,P);return new Cw(Y)};
o4.prototype.delete=function(Y,S){return _.Ql(this,[Y],{mode:"readwrite",enableRetries:!0},function(P){return P.objectStore(Y).delete(S)})};
var CEU=function(Y,S){return _.Ql(Y,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(P){return P.objectStore("ResponseStore").index("byInterface").delete(S)})};
o4.prototype.get=function(Y,S){return _.Ql(this,[Y],{mode:"readonly",enableRetries:!0},function(P){return P.objectStore(Y).get(S)})};
o4.prototype.getAll=function(Y,S,P){return _.Ql(this,[Y],{mode:"readonly",enableRetries:!0},function(u){return u.objectStore(Y).getAll(S,P)})};
o4.prototype.put=function(Y,S,P){return _.Ql(this,[Y],{mode:"readwrite",enableRetries:!0},function(u){return u.objectStore(Y).put(S,P)})};
o4.prototype.objectStoreNames=function(){return Array.from(this.JSC$8456_wrapped.objectStoreNames)};
_.Ql=function(Y,S,P,u){var W,m,J,c,C,x,b,T,K,G,v,a;return _.B(function(w){switch(w.nextAddress){case 1:var F={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof P==="string"?F.mode=P:Object.assign(F,P);W=F;Y.transactionCount++;m=W.enableRetries?3:1;J=0;case 2:if(c){w.jumpTo(4);break}J++;C=Math.round((0,_.Oh)());_.ND(w,5);x=Y.JSC$8456_wrapped.transaction(S,W.mode);F=new Tfh(x);F=qfh(F,u);return _.q(w,F,7);case 7:return b=w.yieldResult,T=Math.round((0,_.Oh)()),R_U(Y,C,T,J,void 0,
S.join(),W),w.return(b);case 5:K=_.O4(w);G=Math.round((0,_.Oh)());v=c9h(K,Y.JSC$8456_wrapped.name,S.join(),Y.JSC$8456_wrapped.version);if((a=v instanceof sh&&!v.retryable)||J>=m)R_U(Y,C,G,J,v,S.join(),W),c=v;w.jumpTo(2);break;case 4:return w.return(Promise.reject(c))}})};
R_U=function(Y,S,P,u,W,m,J){S=P-S;W?(W instanceof sh&&(W.type==="QUOTA_EXCEEDED"||W.type==="QUOTA_MAYBE_EXCEEDED")&&Lz("QUOTA_EXCEEDED",{dbName:pz(Y.JSC$8456_wrapped.name),objectStoreNames:m,transactionCount:Y.transactionCount,transactionMode:J.mode}),W instanceof sh&&W.type==="UNKNOWN_ABORT"&&(P-=Y.startedMs,P<0&&P>=2147483648&&(P=0),Lz("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:m,transactionDuration:S,transactionCount:Y.transactionCount,dbDuration:P}),Y.hasUnknownAbortedTransaction=!0),
xsi(Y,!1,u,m,S,J.tag),_.a4(W)):xsi(Y,!0,u,m,S,J.tag)};
xsi=function(Y,S,P,u,W,m){Lz("TRANSACTION_ENDED",{objectStoreNames:u,connectionHasUnknownAbortedTransaction:Y.hasUnknownAbortedTransaction,duration:W,isSuccessful:S,tryCount:P,tag:m===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":m})};
o4.prototype.getVersion=function(){return this.JSC$8456_wrapped.version};
o4.prototype.getName=function(){return this.JSC$8456_wrapped.name};
var Cw=function(Y){this.JSC$8471_wrapped=Y};
Cw.prototype.add=function(Y,S){return iY(this.JSC$8471_wrapped.add(Y,S))};
Cw.prototype.autoIncrement=function(){return this.JSC$8471_wrapped.autoIncrement};
Cw.prototype.clear=function(){return iY(this.JSC$8471_wrapped.clear()).then(function(){})};
var ti=function(Y,S,P){Y.JSC$8471_wrapped.createIndex(S,P,{unique:!1})};
Cw.prototype.count=function(Y){return iY(this.JSC$8471_wrapped.count(Y))};
var b_s=function(Y,S){return MY(Y,{query:S},function(P){return P.delete().then(function(){return P.continue()})}).then(function(){})};
Cw.prototype.delete=function(Y){return Y instanceof IDBKeyRange?b_s(this,Y):iY(this.JSC$8471_wrapped.delete(Y))};
Cw.prototype.get=function(Y){return iY(this.JSC$8471_wrapped.get(Y))};
Cw.prototype.getAll=function(Y,S){return"getAll"in IDBObjectStore.prototype?iY(this.JSC$8471_wrapped.getAll(Y,S)):T6s(this,Y,S)};
var T6s=function(Y,S,P){var u=[];return MY(Y,{query:S},function(W){if(!(P!==void 0&&u.length>=P))return u.push(W.getValue()),W.continue()}).then(function(){return u})};
Cw.prototype.index=function(Y){try{return new qK(this.JSC$8471_wrapped.index(Y))}catch(S){if(S instanceof Error&&S.name==="NotFoundError")throw new J9J(Y,this.JSC$8471_wrapped.name);throw S;}};
Cw.prototype.getName=function(){return this.JSC$8471_wrapped.name};
Cw.prototype.keyPath=function(){return this.JSC$8471_wrapped.keyPath};
Cw.prototype.put=function(Y,S){return iY(this.JSC$8471_wrapped.put(Y,S))};
var MY=function(Y,S,P){Y=Y.JSC$8471_wrapped.openCursor(S.query,S.direction);return KUs(Y).then(function(u){return bM1(u,P)})},Tfh=function(Y){var S=this;
this.JSC$8479_wrapped=Y;this.objectStoreCache=new Map;this.JSC$8479_aborted=!1;this.done=new Promise(function(P,u){S.JSC$8479_wrapped.addEventListener("complete",function(){P()});
S.JSC$8479_wrapped.addEventListener("error",function(W){W.currentTarget===W.target&&u(S.JSC$8479_wrapped.error)});
S.JSC$8479_wrapped.addEventListener("abort",function(){var W=S.JSC$8479_wrapped.error;if(W)u(W);else if(!S.JSC$8479_aborted){W=sh;for(var m=S.JSC$8479_wrapped.objectStoreNames,J=[],c=0;c<m.length;c++){var C=m.item(c);if(C===null)throw Error("Tc");J.push(C)}W=new W("UNKNOWN_ABORT",{objectStoreNames:J.join(),dbName:S.JSC$8479_wrapped.db.name,mode:S.JSC$8479_wrapped.mode});u(W)}})})},qfh=function(Y,S){var P=new Promise(function(u,W){try{S(Y).then(function(m){u(m)}).catch(W)}catch(m){W(m),Y.abort()}});
return Promise.all([P,Y.done]).then(function(u){return _.n(u).next().value})};
Tfh.prototype.abort=function(){this.JSC$8479_wrapped.abort();this.JSC$8479_aborted=!0;throw new sh("EXPLICIT_ABORT");};
Tfh.prototype.objectStore=function(Y){Y=this.JSC$8479_wrapped.objectStore(Y);var S=this.objectStoreCache.get(Y);S||(S=new Cw(Y),this.objectStoreCache.set(Y,S));return S};
var qK=function(Y){this.JSC$8481_wrapped=Y};
qK.prototype.count=function(Y){return iY(this.JSC$8481_wrapped.count(Y))};
qK.prototype.delete=function(Y){return _.YF(this,{query:Y},function(S){return S.delete().then(function(){return S.continue()})})};
qK.prototype.get=function(Y){return iY(this.JSC$8481_wrapped.get(Y))};
qK.prototype.getAll=function(Y,S){return"getAll"in IDBIndex.prototype?iY(this.JSC$8481_wrapped.getAll(Y,S)):EGs(this,Y,S)};
var EGs=function(Y,S,P){var u=[];return _.YF(Y,{query:S},function(W){if(!(P!==void 0&&u.length>=P))return u.push(W.getValue()),W.continue()}).then(function(){return u})};
qK.prototype.keyPath=function(){return this.JSC$8481_wrapped.keyPath};
qK.prototype.unique=function(){return this.JSC$8481_wrapped.unique};
_.YF=function(Y,S,P){Y=Y.JSC$8481_wrapped.openCursor(S.query===void 0?null:S.query,S.direction===void 0?"next":S.direction);return KUs(Y).then(function(u){return bM1(u,P)})};
Rx=function(Y,S){this.request=Y;this.cursor=S};
KUs=function(Y){return iY(Y).then(function(S){return S?new Rx(Y,S):null})};
Rx.prototype.continue=function(Y){this.cursor.continue(Y);return KUs(this.request)};
Rx.prototype.delete=function(){return iY(this.cursor.delete()).then(function(){})};
Rx.prototype.getValue=function(){return this.cursor.value};
Rx.prototype.update=function(Y){return iY(this.cursor.update(Y))};var xN=function(Y,S){this.name=Y;this.options=S;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},fN_;
xN.prototype.openDb=function(Y,S,P){P=P===void 0?{}:P;return E5K(Y,S,P)};
xN.prototype.delete=function(Y){Y=Y===void 0?{}:Y;return _.Ac(this.name,Y)};
fN_=function(Y,S){return new sh("INCOMPATIBLE_DB_VERSION",{dbName:Y.name,oldVersion:Y.options.version,newVersion:S})};
_.Uh=function(Y,S){if(!S)throw lY("openWithToken",pz(Y.name));return Y.open()};
xN.prototype.open=function(){var Y=this;if(!this.isCompatible)throw fN_(this);if(this.connectionPromise)return this.connectionPromise;var S,P=function(){Y.connectionPromise===S&&(Y.connectionPromise=void 0)},u={blocking:function(m){m.close()},
closed:P,terminated:P,upgrade:this.options.upgrade},W=function(){var m,J,c,C,x,b,T,K,G,v;return _.B(function(a){switch(a.nextAddress){case 1:return J=(m=Error().stack)!=null?m:"",_.ND(a,2),_.q(a,Y.openDb(Y.name,Y.options.version,u),4);case 4:for(var w=c=a.yieldResult,F=Y.options,U=[],V=_.n(Object.keys(F.objectStores)),M=V.next();!M.done;M=V.next()){M=M.value;var zJ=F.objectStores[M],O=zJ.removedAtVersion===void 0?Number.MAX_VALUE:zJ.removedAtVersion;!(w.JSC$8456_wrapped.version>=zJ.addedAtVersion)||
w.JSC$8456_wrapped.version>=O||w.JSC$8456_wrapped.objectStoreNames.contains(M)||U.push(M)}C=U;if(C.length===0){a.jumpTo(5);break}x=Object.keys(Y.options.objectStores);b=c.objectStoreNames();if(Y.timesReopenedToFixMissingObjectStore<_.z_("ytidb_reopen_db_retries",0))return Y.timesReopenedToFixMissingObjectStore++,c.close(),_.a4(new sh("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:Y.name,expectedObjectStores:x,foundObjectStores:b})),a.return(W());if(!(Y.timesDeletedToFixMissingObjectStore<_.z_("ytidb_remake_db_retries",
1))){a.jumpTo(6);break}Y.timesDeletedToFixMissingObjectStore++;return _.q(a,Y.delete(),7);case 7:return _.a4(new sh("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:Y.name,expectedObjectStores:x,foundObjectStores:b})),a.return(W());case 6:throw new jzt(b,x);case 5:return a.return(c);case 2:T=_.O4(a);if(T instanceof DOMException?T.name!=="VersionError":"DOMError"in self&&T instanceof DOMError?T.name!=="VersionError":!(T instanceof Object&&"message"in T)||T.message!=="An attempt was made to open a database using a lower version than the existing version."){a.jumpTo(8);
break}return _.q(a,Y.openDb(Y.name,void 0,Object.assign({},u,{upgrade:void 0})),9);case 9:K=a.yieldResult;G=K.getVersion();if(Y.options.version!==void 0&&G>Y.options.version+1)throw K.close(),Y.isCompatible=!1,fN_(Y,G);return a.return(K);case 8:throw P(),T instanceof Error&&!_.f("ytidb_async_stack_killswitch")&&(T.stack=T.stack+"\n"+J.substring(J.indexOf("\n")+1)),c9h(T,Y.name,"",(v=Y.options.version)!=null?v:-1);}})};
return this.connectionPromise=S=W()};var fC9=new xN("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(Y,S){S(1)&&ZR(Y,"databases",{keyPath:"actualName"})}});var Dqh,hj8=new function(){}(new function(){});new _.nV;var gGd=function(Y,S){xN.call(this,Y,S);this.options=S;wk(Y)};
_.r(gGd,xN);var X3$=function(Y,S){var P;return function(){P||(P=new gGd(Y,S));return P}};
gGd.prototype.openDb=function(Y,S,P){P=P===void 0?{}:P;return(this.options.shared?p3h:w3U)(Y,S,Object.assign({},P))};
gGd.prototype.delete=function(Y){Y=Y===void 0?{}:Y;return(this.options.shared?lCK:F9K)(this.name,Y)};var $ss={},ZMX=eH("ytGcfConfig",{objectStores:($ss.coldConfigStore={addedAtVersion:1},$ss.hotConfigStore={addedAtVersion:1},$ss),shared:!1,upgrade:function(Y,S){S(1)&&(ti(ZR(Y,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),ti(ZR(Y,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var rpu=function(){_.R6.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var Y=_.tA("yt.gcf.config.hotUpdateCallbacks");Y?(this.localHotConfigJobQueue=[].concat(_.cz(Y)),this.sharedHotConfigJobQueue=Y):(this.sharedHotConfigJobQueue=[],_.HQ("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.r(rpu,_.R6);rpu.prototype.disposeInternal=function(){for(var Y=_.n(this.localHotConfigJobQueue),S=Y.next();!S.done;S=Y.next()){var P=this.sharedHotConfigJobQueue;S=P.indexOf(S.value);S>=0&&P.splice(S,1)}this.localHotConfigJobQueue.length=0;_.R6.prototype.disposeInternal.call(this)};var vK=function(){var Y=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new rpu;this.TEST_ONLY={initializeConfigDb:function(){Y.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return Y.coldGlobalConfigGroup},
setHotConfigGroup:function(S){Gyu(Y,S)},
setHotHashData:function(S){Y.setHotHashData(S)},
setColdConfigGroup:function(S){h_f(Y,S)},
getColdHashData:function(){return Y.coldHashData},
getHotHashData:function(){return Y.hotHashData},
getHotConfigGroup:function(){return Y.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return vGS()},
getExportedHotConfigGroup:function(){return bT()},
getExportedColdHashData:function(){return _.tA("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.tA("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){DsJ(Y)},
resetInstance:function(){Y.setHotHashData(void 0);INh(Y);delete vK.instance},
setDebounceTimer:function(S){Y.debounceTimer=S},
getDebounceTimer:function(){return Y.debounceTimer}}},aNt=function(){if(!vK.instance){var Y=new vK;
vK.instance=Y}return vK.instance},pKd=function(Y){var S;
_.B(function(P){if(P.nextAddress==1)return _.f("start_client_gcf")||_.f("delete_gcf_config_db")?_.f("start_client_gcf")?_.q(P,_.Vl(),3):P.jumpTo(2):P.return();P.nextAddress!=2&&((S=P.yieldResult)&&_.gk()&&!_.f("delete_gcf_config_db")?(Y.isConfigDbInitialized=!0,DsJ(Y)):(LUd(Y),wKJ(Y)));return _.f("delete_gcf_config_db")?_.q(P,QkJ(),0):P.jumpTo(0)})},kYX=function(){var Y;
return(Y=bT())!=null?Y:_.X3("RAW_HOT_CONFIG_GROUP")},FUJ=function(Y){var S,P,u,W,m,J;
return _.B(function(c){switch(c.nextAddress){case 1:if(Y.hotGlobalConfigGroup)return c.return(bT());if(!Y.isConfigDbInitialized)return S=lY("getHotConfig IDB not initialized"),_.AA(S),c.return(Promise.reject(S));P=NY();u=_.X3("TIME_CREATED_MS");if(!P){W=lY("getHotConfig token error");_.AA(W);c.jumpTo(2);break}return _.q(c,Uqu(P),3);case 3:if((m=c.yieldResult)&&m.timestamp>u)return Gyu(Y,m.config),Y.setHotHashData(m.hashData),c.return(bT());case 2:wKJ(Y);if(!(P&&Y.hotGlobalConfigGroup&&Y.hotHashData)){c.jumpTo(4);
break}return _.q(c,o59(Y.hotGlobalConfigGroup,Y.hotHashData,P,u),4);case 4:return Y.hotGlobalConfigGroup?c.return(bT()):(J=new _.$2("Config not available in ytConfig"),_.AA(J),c.return(Promise.reject(J)))}})},dsJ=function(Y){var S,P,u,W,m,J;
return _.B(function(c){switch(c.nextAddress){case 1:if(Y.coldGlobalConfigGroup)return c.return(vGS());if(!Y.isConfigDbInitialized)return S=lY("getColdConfig IDB not initialized"),_.AA(S),c.return(Promise.reject(S));P=NY();u=_.X3("TIME_CREATED_MS");if(!P){W=lY("getColdConfig");_.AA(W);c.jumpTo(2);break}return _.q(c,A9$(P),3);case 3:if((m=c.yieldResult)&&m.timestamp>u)return h_f(Y,m.config),szh(Y,m.configData),INh(Y,m.hashData),c.return(vGS());case 2:LUd(Y);if(!(P&&Y.coldGlobalConfigGroup&&Y.coldHashData&&
Y.configData)){c.jumpTo(4);break}return _.q(c,tfU(Y.coldGlobalConfigGroup,Y.coldHashData,Y.configData,P,u),4);case 4:return Y.coldGlobalConfigGroup?c.return(vGS()):(J=new _.$2("Config not available in ytConfig"),_.AA(J),c.return(Promise.reject(J)))}})},DsJ=function(Y){if(!Y.hotGlobalConfigGroup||!Y.coldGlobalConfigGroup){if(!NY()){var S=lY("scheduleGetConfigs");
_.AA(S)}Y.initJob||(Y.initJob=_.wc.addLowPriorityJob(function(){return _.B(function(P){switch(P.nextAddress){case 1:return _.ND(P,2),_.q(P,FUJ(Y),4);case 4:_.tc(P,3);break;case 2:_.O4(P);case 3:return _.ND(P,5),_.q(P,dsJ(Y),7);case 7:_.tc(P,6);break;case 5:_.O4(P);case 6:Y.initJob&&(Y.initJob=0),_.Yt(P)}})},100))}},oB1=function(Y,S,P){var u,W,m;
return _.B(function(J){switch(J.nextAddress){case 1:if(!_.f("start_client_gcf")){J.jumpTo(0);break}P&&Gyu(Y,P);Y.setHotHashData(S);u=NY();if(!u){J.jumpTo(3);break}if(P){J.jumpTo(4);break}return _.q(J,Uqu(u),5);case 5:W=J.yieldResult,P=(m=W)==null?void 0:m.config;case 4:return _.q(J,o59(P,S,u),3);case 3:if(P)for(var c=P,C=_.n(Y.configUpdateService.sharedHotConfigJobQueue),x=C.next();!x.done;x=C.next())x=x.value,x(c);_.Yt(J)}})},tDh=function(Y,S,P){var u,W,m,J;
return _.B(function(c){if(c.nextAddress==1){if(!_.f("start_client_gcf"))return c.jumpTo(0);INh(Y,S);return(u=NY())?P?c.jumpTo(4):_.q(c,A9$(u),5):c.jumpTo(0)}c.nextAddress!=4&&(W=c.yieldResult,P=(m=W)==null?void 0:m.config);if(!P)return c.jumpTo(0);J=P.configData;return _.q(c,tfU(P,S,J,u),0)})},J61=function(){var Y=aNt(),S=(0,_.Oh)()-Y.debounceTimer;
if(!(Y.debounceTimer!==0&&S<_.z_("send_config_hash_timer"))){S=_.tA("yt.gcf.config.coldConfigData");var P=_.tA("yt.gcf.config.hotHashData"),u=_.tA("yt.gcf.config.coldHashData");S&&P&&u&&(Y.debounceTimer=(0,_.Oh)());return{coldConfigData:S,hotHashData:P,coldHashData:u}}},LUd=function(Y){h_f(Y,_.X3("RAW_COLD_CONFIG_GROUP"));
INh(Y,_.X3("SERIALIZED_COLD_HASH_DATA"));var S;szh(Y,(S=Y.coldGlobalConfigGroup)==null?void 0:S.configData)},wKJ=function(Y){Gyu(Y,_.X3("RAW_HOT_CONFIG_GROUP"));
Y.setHotHashData(_.X3("SERIALIZED_HOT_HASH_DATA"))},Gyu=function(Y,S){Y.hotGlobalConfigGroup=S;
_.HQ("yt.gcf.config.hotConfigGroup",Y.hotGlobalConfigGroup||null)},h_f=function(Y,S){Y.coldGlobalConfigGroup=S;
_.HQ("yt.gcf.config.coldConfigGroup",Y.coldGlobalConfigGroup||null)};
vK.prototype.setHotHashData=function(Y){this.hotHashData=Y;_.HQ("yt.gcf.config.hotHashData",this.hotHashData||null)};
var INh=function(Y,S){Y.coldHashData=S;_.HQ("yt.gcf.config.coldHashData",Y.coldHashData||null)},szh=function(Y,S){Y.configData=S;
_.HQ("yt.gcf.config.coldConfigData",Y.configData||null)},bT=function(){return _.tA("yt.gcf.config.hotConfigGroup")},vGS=function(){return _.tA("yt.gcf.config.coldConfigGroup")};var qR={},lNf=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";qR.assign=function(Y){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var P=S.shift();if(P){if(typeof P!=="object")throw new TypeError("Wc`"+P);for(var u in P)Object.prototype.hasOwnProperty.call(P,u)&&(Y[u]=P[u])}}return Y};
qR.shrinkBuf=function(Y,S){if(Y.length===S)return Y;if(Y.subarray)return Y.subarray(0,S);Y.length=S;return Y};
var XK_={arraySet:function(Y,S,P,u,W){if(S.subarray&&Y.subarray)Y.set(S.subarray(P,P+u),W);else for(var m=0;m<u;m++)Y[W+m]=S[P+m]},
flattenChunks:function(Y){var S,P;var u=P=0;for(S=Y.length;u<S;u++)P+=Y[u].length;var W=new Uint8Array(P);u=P=0;for(S=Y.length;u<S;u++){var m=Y[u];W.set(m,P);P+=m.length}return W}},Z_s={arraySet:function(Y,S,P,u,W){for(var m=0;m<u;m++)Y[W+m]=S[P+m]},
flattenChunks:function(Y){return[].concat.apply([],Y)}};
qR.setTyped=function(){lNf?(qR.Buf8=Uint8Array,qR.Buf16=Uint16Array,qR.Buf32=Int32Array,qR.assign(qR,XK_)):(qR.Buf8=Array,qR.Buf16=Array,qR.Buf32=Array,qR.assign(qR,Z_s))};
qR.setTyped();var i_3=!0;try{new Uint8Array(1)}catch(Y){i_3=!1}
var UT9=function(Y){var S,P,u=Y.length,W=0;for(S=0;S<u;S++){var m=Y.charCodeAt(S);if((m&64512)===55296&&S+1<u){var J=Y.charCodeAt(S+1);(J&64512)===56320&&(m=65536+(m-55296<<10)+(J-56320),S++)}W+=m<128?1:m<2048?2:m<65536?3:4}var c=new qR.Buf8(W);for(S=P=0;P<W;S++)m=Y.charCodeAt(S),(m&64512)===55296&&S+1<u&&(J=Y.charCodeAt(S+1),(J&64512)===56320&&(m=65536+(m-55296<<10)+(J-56320),S++)),m<128?c[P++]=m:(m<2048?c[P++]=192|m>>>6:(m<65536?c[P++]=224|m>>>12:(c[P++]=240|m>>>18,c[P++]=128|m>>>12&63),c[P++]=
128|m>>>6&63),c[P++]=128|m&63);return c};var LsE={};LsE=function(Y,S,P,u){var W=Y&65535|0;Y=Y>>>16&65535|0;for(var m;P!==0;){m=P>2E3?2E3:P;P-=m;do W=W+S[u++]|0,Y=Y+W|0;while(--m);W%=65521;Y%=65521}return W|Y<<16|0};for(var v_={},Tr,oG6=[],tus=0;tus<256;tus++){Tr=tus;for(var ApJ=0;ApJ<8;ApJ++)Tr=Tr&1?3988292384^Tr>>>1:Tr>>>1;oG6[tus]=Tr}v_=function(Y,S,P,u){P=u+P;for(Y^=-1;u<P;u++)Y=Y>>>8^oG6[(Y^S[u])&255];return Y^-1};var TZ={};TZ={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 EoU=[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],goE=[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],A6X=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I9Y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],gc=Array(576);Ji(gc);var $F=Array(60);Ji($F);var xF=Array(512);Ji(xF);var Rd=Array(256);Ji(Rd);var f9u=Array(29);Ji(f9u);var $TJ=Array(30);Ji($TJ);var ibK,ooa,tRJ,ZbE=!1;var LZ;
LZ=[new ad(0,0,0,0,function(Y,S){var P=65535;for(P>Y.pending_buf_size-5&&(P=Y.pending_buf_size-5);;){if(Y.lookahead<=1){DR(Y);if(Y.lookahead===0&&S===0)return 1;if(Y.lookahead===0)break}Y.strstart+=Y.lookahead;Y.lookahead=0;var u=Y.block_start+P;if(Y.strstart===0||Y.strstart>=u)if(Y.lookahead=Y.strstart-u,Y.strstart=u,rc(Y,!1),Y.strm.avail_out===0)return 1;if(Y.strstart-Y.block_start>=Y.w_size-262&&(rc(Y,!1),Y.strm.avail_out===0))return 1}Y.insert=0;if(S===4)return rc(Y,!0),Y.strm.avail_out===0?3:
4;Y.strstart>Y.block_start&&rc(Y,!1);return 1}),
new ad(4,4,8,4,wua),new ad(4,5,16,8,wua),new ad(4,6,32,32,wua),new ad(4,4,16,16,Id),new ad(8,16,32,32,Id),new ad(8,16,128,128,Id),new ad(8,32,128,256,Id),new ad(32,128,258,1024,Id),new ad(32,258,258,4096,Id)];var XuX={};XuX=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 QAK=Object.prototype.toString;
l9U.prototype.push=function(Y,S){var P=this.strm,u=this.options.chunkSize;if(this.ended)return!1;var W=S===~~S?S:S===!0?4:0;typeof Y==="string"?P.input=UT9(Y):QAK.call(Y)==="[object ArrayBuffer]"?P.input=new Uint8Array(Y):P.input=Y;P.next_in=0;P.avail_in=P.input.length;do{P.avail_out===0&&(P.output=new qR.Buf8(u),P.next_out=0,P.avail_out=u);Y=dTa(P,W);if(Y!==1&&Y!==0)return Ush(this,Y),this.ended=!0,!1;if(P.avail_out===0||P.avail_in===0&&(W===4||W===2))if(this.options.to==="string"){var m=qR.shrinkBuf(P.output,
P.next_out);S=m;m=m.length;if(m<65537&&(S.subarray&&i_3||!S.subarray))S=String.fromCharCode.apply(null,qR.shrinkBuf(S,m));else{for(var J="",c=0;c<m;c++)J+=String.fromCharCode(S[c]);S=J}this.chunks.push(S)}else S=qR.shrinkBuf(P.output,P.next_out),this.chunks.push(S)}while((P.avail_in>0||P.avail_out===0)&&Y!==1);if(W===4)return(P=this.strm)&&P.state?(u=P.state.status,u!==42&&u!==69&&u!==73&&u!==91&&u!==103&&u!==113&&u!==666?Y=KZ(P,-2):(P.state=null,Y=u===113?KZ(P,-3):0)):Y=-2,Ush(this,Y),this.ended=
!0,Y===0;W===2&&(Ush(this,0),P.avail_out=0);return!0};
var Ush=function(Y,S){S===0&&(Y.result=Y.options.to==="string"?Y.chunks.join(""):qR.flattenChunks(Y.chunks));Y.chunks=[];Y.err=S;Y.msg=Y.strm.msg};var Qzs=typeof TextEncoder!=="undefined"?new TextEncoder:null,fSf=Qzs?function(Y){return Qzs.encode(Y)}:function(Y){Y=_.CN(Y);
for(var S=new Uint8Array(Y.length),P=0;P<S.length;P++)S[P]=Y[P];return S};var Vv8={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},OQh={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Kw=function(Y,S){this.version=Y;this.args=S};
Kw.prototype.serialize=function(){return{version:this.version,args:this.args}};var Hb$=function(Y,S){this.topic=Y;this.dataClass=S};
Hb$.prototype.toString=function(){return this.topic};var kyS=_.tA("ytPubsub2Pubsub2Instance")||new _.x2;_.x2.prototype.subscribe=_.x2.prototype.subscribe;_.x2.prototype.unsubscribeByKey=_.x2.prototype.unsubscribeByKey;_.x2.prototype.publish=_.x2.prototype.publish;_.x2.prototype.clear=_.x2.prototype.clear;_.HQ("ytPubsub2Pubsub2Instance",kyS);var NPY=_.tA("ytPubsub2Pubsub2SubscribedKeys")||{};_.HQ("ytPubsub2Pubsub2SubscribedKeys",NPY);var eB8=_.tA("ytPubsub2Pubsub2TopicToKeys")||{};_.HQ("ytPubsub2Pubsub2TopicToKeys",eB8);
var VRX=_.tA("ytPubsub2Pubsub2IsAsync")||{};_.HQ("ytPubsub2Pubsub2IsAsync",VRX);_.HQ("ytPubsub2Pubsub2SkipSubKey",null);var jRa=void 0,maK=void 0;var bAh=_.z_("max_body_size_to_compress",5E5),TT1=_.z_("min_body_size_to_compress",500),FB=!0,rE$=0,sQ=0,$a1=_.z_("compression_performance_threshold_lr",250),GM8=_.z_("slow_compressions_before_abandon_count",4),cE1=!1,CIa=new Map,EWa=1,KZ9=!0;_.PW(dc,Da1);dc.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 Mus=function(Y,S,P){P||(P=0);var u=Y.W_;if(typeof S==="string")for(var W=0;W<16;W++)u[W]=S.charCodeAt(P)<<24|S.charCodeAt(P+1)<<16|S.charCodeAt(P+2)<<8|S.charCodeAt(P+3),P+=4;else for(W=0;W<16;W++)u[W]=S[P]<<24|S[P+1]<<16|S[P+2]<<8|S[P+3],P+=4;for(S=16;S<80;S++)P=u[S-3]^u[S-8]^u[S-14]^u[S-16],u[S]=(P<<1|P>>>31)&4294967295;S=Y.chain_[0];P=Y.chain_[1];W=Y.chain_[2];for(var m=Y.chain_[3],J=Y.chain_[4],c,C,x=0;x<80;x++)x<40?x<20?(c=m^P&(W^m),C=1518500249):(c=P^W^m,C=1859775393):x<60?(c=P&W|m&(P|W),
C=2400959708):(c=P^W^m,C=3395469782),c=(S<<5|S>>>27)+c+J+C+u[x]&4294967295,J=m,m=W,W=(P<<30|P>>>2)&4294967295,P=S,S=c;Y.chain_[0]=Y.chain_[0]+S&4294967295;Y.chain_[1]=Y.chain_[1]+P&4294967295;Y.chain_[2]=Y.chain_[2]+W&4294967295;Y.chain_[3]=Y.chain_[3]+m&4294967295;Y.chain_[4]=Y.chain_[4]+J&4294967295};
dc.prototype.update=function(Y,S){if(Y!=null){S===void 0&&(S=Y.length);for(var P=S-this.blockSize,u=0,W=this.buf_,m=this.inbuf_;u<S;){if(m==0)for(;u<=P;)Mus(this,Y,u),u+=this.blockSize;if(typeof Y==="string")for(;u<S;){if(W[m]=Y.charCodeAt(u),++m,++u,m==this.blockSize){Mus(this,W);m=0;break}}else for(;u<S;)if(W[m]=Y[u],++m,++u,m==this.blockSize){Mus(this,W);m=0;break}}this.inbuf_=m;this.total_+=S}};
dc.prototype.digest=function(){var Y=[],S=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var P=this.blockSize-1;P>=56;P--)this.buf_[P]=S&255,S/=256;Mus(this,this.buf_);for(P=S=0;P<5;P++)for(var u=24;u>=0;u-=8)Y[S]=this.chain_[P]>>u&255,++S;return Y};var LZJ;var fw=function(Y){var S=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(b){S.databaseToken=b},
triggerThrottle:function(){S.throttledSend()},
cancelThrottle:function(){S.cancelThrottledSend()},
immediateSend:function(b){return _.B(function(T){return _.q(T,S.immediateSend(b),0)})},
requestWithinAgeLimit:function(b,T){return S.requestWithinAgeLimit(b,T)},
retryQueuedRequests:function(){S.retryQueuedRequests()}};
var P;this.throttleTimeout=(P=Y.throttleTimeout)!=null?P:100;var u;this.retryMaxAttempts=(u=Y.retryMaxAttempts)!=null?u:1;var W;this.requestAgeLimitMs=(W=Y.requestAgeLimitMs)!=null?W:2592E6;var m;this.queuedRequestAgeLimitMs=(m=Y.queuedRequestAgeLimitMs)!=null?m:12E4;var J;this.retryDelayMs=(J=Y.retryDelayMs)!=null?J:5E3;var c;this.databaseToken=(c=Y.databaseToken)!=null?c:void 0;this.enableCleaning=!!Y.enableCleaning;var C;this.cleaningRate=(C=Y.cleaningRate)!=null?C:.1;var x;this.potentialEsfErrorLimit=
(x=Y.potentialEsfErrorLimit)!=null?x:10;Y.handleError&&(this.handleError=Y.handleError);Y.handleWarning&&(this.handleWarning=Y.handleWarning);Y.disableYtIdbTransactions&&(this.disableYtIdbTransactions=Y.disableYtIdbTransactions);Y.bypassDbTokenDependency&&(this.bypassDbTokenDependency=Y.bypassDbTokenDependency);this.getBooleanFlag=Y.getBooleanFlag;this.jobManager=Y.jobManager;this.logsStore=Y.logsStore;this.networkManager=Y.networkManager;this.sendFn=Y.sendFn;this.onlineEvent=Y.onlineEvent;this.offlineEvent=
Y.offlineEvent;Eb(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&yp3(this)},yp3=function(Y){Eb(Y)&&!Y.disableYtIdbTransactions&&(Y.initialized=!0,Y.enableCleaning&&Math.random()<=Y.cleaningRate&&Y.logsStore.cleanLogsStore(Y.databaseToken),Y.retryQueuedRequests(),Y.networkManager.isNetworkAvailable()&&Y.throttledSend(),Y.networkManager.listen(Y.onlineEvent,Y.throttledSend.bind(Y)),Y.networkManager.listen(Y.offlineEvent,Y.cancelThrottledSend.bind(Y)))};
_.z=fw.prototype;_.z.writeThenSend=function(Y,S){var P=this;S=S===void 0?{}:S;if(Eb(this)&&this.initialized){var u={url:Y,options:S,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(u,this.databaseToken).then(function(W){u.id=W;P.networkManager.isNetworkAvailable()&&P.immediateSend(u)}).catch(function(W){P.immediateSend(u);
N66(P,W)})}else this.sendFn(Y,S)};
_.z.sendThenWrite=function(Y,S,P){var u=this;S=S===void 0?{}:S;if(Eb(this)&&this.initialized){var W={url:Y,options:S,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(W.skipRetry=P);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!W.skipRetry){if(!W.skipRetry){var m=S.onError?S.onError:function(){};
S.onError=function(J,c){return _.B(function(C){if(C.nextAddress==1)return _.q(C,u.logsStore.set(W,u.databaseToken).catch(function(x){N66(u,x)}),2);
m(J,c);_.Yt(C)})}}this.sendFn(Y,S,W.skipRetry)}else this.logsStore.set(W,this.databaseToken).catch(function(J){u.sendFn(Y,S,W.skipRetry);
N66(u,J)})}else this.sendFn(Y,S,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&P)};
_.z.sendAndWrite=function(Y,S){var P=this;S=S===void 0?{}:S;if(Eb(this)&&this.initialized){var u={url:Y,options:S,timestamp:this.now(),status:"NEW",sendCount:0},W=!1,m=S.onSuccess?S.onSuccess:function(){};
u.options.onSuccess=function(J,c){u.id!==void 0?P.logsStore.deleteRequest(u.id,P.databaseToken):W=!0;P.networkManager.networkStatusHint&&P.getBooleanFlag&&P.getBooleanFlag("vss_network_hint")&&P.networkManager.networkStatusHint(!0);m(J,c)};
this.sendFn(u.url,u.options,void 0,!0);this.logsStore.set(u,this.databaseToken).then(function(J){u.id=J;W&&P.logsStore.deleteRequest(u.id,P.databaseToken)}).catch(function(J){N66(P,J)})}else this.sendFn(Y,S,void 0,!0)};
_.z.throttledSend=function(){var Y=this;if(!Eb(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,Y.logsStore.getMostRecentByStatus("NEW",Y.databaseToken),2);if(P.nextAddress!=3)return S=P.yieldResult,S?_.q(P,Y.immediateSend(S),3):(Y.cancelThrottledSend(),P.return());Y.intervalJob&&(Y.intervalJob=0,Y.throttledSend());_.Yt(P)})},this.throttleTimeout))};
_.z.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.z.immediateSend=function(Y){var S=this,P;return _.B(function(u){switch(u.nextAddress){case 1:if(!Eb(S))throw Error("$c");if(Y.id===void 0){u.jumpTo(2);break}return _.q(u,S.logsStore.markAsQueued(Y.id,S.databaseToken),3);case 3:(P=u.yieldResult)||S.handleWarning(Error("ad"));case 2:if(S.requestWithinAgeLimit(Y,S.requestAgeLimitMs)){u.jumpTo(4);break}S.handleWarning(Error("bd"));if(Y.id===void 0){u.jumpTo(5);break}return _.q(u,S.logsStore.deleteRequest(Y.id,S.databaseToken),5);case 5:return u.return();
case 4:Y.skipRetry||(Y=H_S(S,Y));if(!Y){u.jumpTo(0);break}if(!Y.skipRetry||Y.id===void 0){u.jumpTo(8);break}return _.q(u,S.logsStore.deleteRequest(Y.id,S.databaseToken),8);case 8:S.sendFn(Y.url,Y.options,!!Y.skipRetry),_.Yt(u)}})};
var H_S=function(Y,S){if(!Eb(Y))throw Error("cd");var P=S.options.onError?S.options.onError:function(){};
S.options.onError=function(W,m){var J,c,C,x;return _.B(function(b){switch(b.nextAddress){case 1:J=da8(m);(c=lSu(m))&&Y.getBooleanFlag&&Y.getBooleanFlag("web_enable_error_204")&&Y.handleError(Error("dd"),S.url,m);if(!(Y.getBooleanFlag&&Y.getBooleanFlag("nwl_consider_error_code")&&J||Y.getBooleanFlag&&!Y.getBooleanFlag("nwl_consider_error_code")&&Y.potentialEsfErrorCounter<=Y.potentialEsfErrorLimit)){b.jumpTo(2);break}if(!Y.networkManager.sendNetworkCheckRequest){b.jumpTo(3);break}return _.q(b,Y.networkManager.sendNetworkCheckRequest(),
3);case 3:if(Y.networkManager.isNetworkAvailable()){b.jumpTo(2);break}P(W,m);if(!Y.getBooleanFlag||!Y.getBooleanFlag("nwl_consider_error_code")||((C=S)==null?void 0:C.id)===void 0){b.jumpTo(6);break}return _.q(b,Y.logsStore.resetRequest(S.id,Y.databaseToken,!1),6);case 6:return b.return();case 2:if(Y.getBooleanFlag&&Y.getBooleanFlag("nwl_consider_error_code")&&!J&&Y.potentialEsfErrorCounter>Y.potentialEsfErrorLimit)return b.return();Y.potentialEsfErrorCounter++;if(((x=S)==null?void 0:x.id)===void 0){b.jumpTo(8);
break}return S.sendCount<Y.retryMaxAttempts?_.q(b,Y.logsStore.resetRequest(S.id,Y.databaseToken,!0,c?!1:void 0),12):_.q(b,Y.logsStore.deleteRequest(S.id,Y.databaseToken),8);case 12:Y.jobManager.addLowPriorityJob(function(){Y.networkManager.isNetworkAvailable()&&Y.throttledSend()},Y.retryDelayMs);
case 8:P(W,m),_.Yt(b)}})};
var u=S.options.onSuccess?S.options.onSuccess:function(){};
S.options.onSuccess=function(W,m){var J;return _.B(function(c){if(c.nextAddress==1)return((J=S)==null?void 0:J.id)===void 0?c.jumpTo(2):_.q(c,Y.logsStore.deleteRequest(S.id,Y.databaseToken),2);Y.networkManager.networkStatusHint&&Y.getBooleanFlag&&Y.getBooleanFlag("vss_network_hint")&&Y.networkManager.networkStatusHint(!0);u(W,m);_.Yt(c)})};
return S};
fw.prototype.requestWithinAgeLimit=function(Y,S){Y=Y.timestamp;return this.now()-Y>=S?!1:!0};
fw.prototype.retryQueuedRequests=function(){var Y=this;if(!Eb(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(S){S&&!Y.requestWithinAgeLimit(S,Y.queuedRequestAgeLimitMs)?Y.jobManager.addLowPriorityJob(function(){return _.B(function(P){if(P.nextAddress==1)return S.id===void 0?P.jumpTo(2):_.q(P,Y.logsStore.resetRequest(S.id,Y.databaseToken),2);Y.retryQueuedRequests();_.Yt(P)})}):Y.networkManager.isNetworkAvailable()&&Y.throttledSend()})};
var N66=function(Y,S){Y.writeError&&!Y.networkManager.isNetworkAvailable()?Y.writeError(S):Y.handleError(S)},Eb=function(Y){return!!Y.databaseToken||Y.bypassDbTokenDependency};var XTY;var Q_f={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517};var Vu3={},yEY=eH("ServiceWorkerLogsDatabase",{objectStores:(Vu3.SWHealthLog={addedAtVersion:1},Vu3),shared:!0,upgrade:function(Y,S){S(1)&&ti(ZR(Y,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var PMX={},SR8=0;var myh;var gg=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},MR=function(){if(!gg.instance){var Y=_.tA("yt.networkRequestMonitor.instance")||new gg;
_.HQ("yt.networkRequestMonitor.instance",Y);gg.instance=Y}return gg.instance};
gg.prototype.requestComplete=function(Y,S){S&&(this.anyRequestHasSucceeded=!0);Y=this.removeParams(Y);this.requestMap.get(Y)||this.requestMap.set(Y,S)};
gg.prototype.isEndpointCFR=function(Y){Y=this.removeParams(Y);return(Y=this.requestMap.get(Y))?!1:Y===!1&&this.anyRequestHasSucceeded?!0:null};
gg.prototype.removeParams=function(Y){return Y.split("?")[0]};
gg.prototype.removeParams=gg.prototype.removeParams;gg.prototype.isEndpointCFR=gg.prototype.isEndpointCFR;gg.prototype.requestComplete=gg.prototype.requestComplete;gg.getInstance=MR;var $N=function(Y){_.Tj.call(this);var S=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=Y!=null?Y:{addLowPriorityJob:function(W,m){return setTimeout(W,m)},
cancelJob:function(W){clearTimeout(W)}};
var P,u;this.isOnline=(u=(P=window.navigator)==null?void 0:P.onLine)!=null?u:!0;this.onNavigatorChange=function(){return _.B(function(W){return _.q(W,e_6(S),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||O_d(this)};
_.r($N,_.Tj);$N.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete $N.instance};
$N.prototype.isNetworkAvailable=function(){return this.isOnline};
var O_d=function(Y){Y.pollingJob=Y.jobManager.addLowPriorityJob(function(){var S;return _.B(function(P){if(P.nextAddress==1)return Y.isOnline?((S=window.navigator)==null?0:S.onLine)?P.jumpTo(3):_.q(P,e_6(Y),3):_.q(P,e_6(Y),3);O_d(Y);_.Yt(P)})},3E4)},e_6=function(Y,S){return Y.networkRequestPromise?Y.networkRequestPromise:Y.networkRequestPromise=new Promise(function(P){var u,W,m,J;
return _.B(function(c){switch(c.nextAddress){case 1:return u=window.AbortController?new window.AbortController:void 0,m=(W=u)==null?void 0:W.signal,J=!1,_.ND(c,2,3),u&&(Y.abortTimeoutKey=Y.jobManager.addLowPriorityJob(function(){u.abort()},S||2E4)),_.q(c,fetch("/generate_204",{method:"HEAD",
signal:m}),5);case 5:J=!0;case 3:_.Hx(c);Y.networkRequestPromise=void 0;Y.abortTimeoutKey&&(Y.jobManager.cancelJob(Y.abortTimeoutKey),Y.abortTimeoutKey=0);J!==Y.isOnline&&(Y.isOnline=J,Y.isOnline?Y.dispatchEvent("networkstatus-online"):Y.dispatchEvent("networkstatus-offline"));P(J);_.e2(c,0);break;case 2:_.O4(c),J=!1,c.jumpTo(3)}})})};var rg=function(){_.Tj.call(this);var Y=this;this.shouldFlushErrors=!1;$N.instance||($N.instance=new $N(_.wc));this.sharedNetworkStatusManager=$N.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(Y.shouldFlushErrors&&_.f("offline_error_handling")){var S=n99().get("errors",!0);if(S){for(var P in S)if(S[P]){var u=new _.$2(P,"sent via offline_errors");u.name=S[P].name;u.stack=S[P].stack;u.level=S[P].level;_.ik(u)}n99().set("errors",{},2592E3,!0)}}})};
_.r(rg,_.Tj);var YEJ=function(){if(!rg.instance){var Y=_.tA("yt.networkStatusManager.instance")||new rg;_.HQ("yt.networkStatusManager.instance",Y);rg.instance=Y}return rg.instance};
_.z=rg.prototype;_.z.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.z.networkStatusHint=function(Y){this.sharedNetworkStatusManager.isOnline=Y};
_.z.getWindowStatus=function(){var Y=window.navigator.onLine;return Y===void 0?!0:Y};
_.z.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.z.listen=function(Y,S){return this.sharedNetworkStatusManager.listen(Y,S)};
_.z.sendNetworkCheckRequest=function(Y){Y=e_6(this.sharedNetworkStatusManager,Y);Y.then(function(S){_.f("use_cfr_monitor")&&MR().requestComplete("generate_204",S)});
return Y};
rg.prototype.sendNetworkCheckRequest=rg.prototype.sendNetworkCheckRequest;rg.prototype.listen=rg.prototype.listen;rg.prototype.enableErrorFlushing=rg.prototype.enableErrorFlushing;rg.prototype.getWindowStatus=rg.prototype.getWindowStatus;rg.prototype.networkStatusHint=rg.prototype.networkStatusHint;rg.prototype.isNetworkAvailable=rg.prototype.isNetworkAvailable;rg.getInstance=YEJ;_.kF=function(Y){Y=Y===void 0?{}:Y;_.Tj.call(this);var S=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=YEJ();var P=_.tA("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);P&&(Y.rateLimit?(this.rateLimit=Y.rateLimit,P("networkstatus-online",function(){SE6(S,"publicytnetworkstatus-online")}),P("networkstatus-offline",function(){SE6(S,"publicytnetworkstatus-offline")})):(P("networkstatus-online",function(){S.dispatchEvent("publicytnetworkstatus-online")}),P("networkstatus-offline",
function(){S.dispatchEvent("publicytnetworkstatus-offline")})))};
_.r(_.kF,_.Tj);_.kF.prototype.isNetworkAvailable=function(){var Y=_.tA("yt.networkStatusManager.instance.isNetworkAvailable");return Y?Y.bind(this.nsmInstance)():!0};
_.kF.prototype.networkStatusHint=function(Y){var S=_.tA("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);S&&S(Y)};
_.kF.prototype.sendNetworkCheckRequest=function(Y){var S=this,P;return _.B(function(u){P=_.tA("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(S.nsmInstance);return _.f("skip_network_check_if_cfr")&&MR().isEndpointCFR("generate_204")?u.return(new Promise(function(W){var m;S.networkStatusHint(((m=window.navigator)==null?void 0:m.onLine)||!0);W(S.isNetworkAvailable())})):P?u.return(P(Y)):u.return(!0)})};
var SE6=function(Y,S){Y.rateLimit?Y.lastJobTime?(_.wc.cancelJob(Y.schedulerJob),Y.schedulerJob=_.wc.addLowPriorityJob(function(){Y.lastPublicSignalSent!==S&&(Y.dispatchEvent(S),Y.lastPublicSignalSent=S,Y.lastJobTime=(0,_.Oh)())},Y.rateLimit-((0,_.Oh)()-Y.lastJobTime))):(Y.dispatchEvent(S),Y.lastPublicSignalSent=S,Y.lastJobTime=(0,_.Oh)()):Y.dispatchEvent(S)};var CMa,Gr=function(){fw.call(this,{logsStore:{cleanLogsStore:kMh,deleteRequest:QRh,getMostRecentByStatus:tkf,markAsQueued:AEU,resetRequest:UaE,set:oWY},networkManager:_.qR1(),handleError:function(Y,S,P){var u,W=P==null?void 0:(u=P.error)==null?void 0:u.code;if(W===400||W===415){var m;Y=new _.$2(Y.message,S,P==null?void 0:(m=P.error)==null?void 0:m.code);_.AA(Y,void 0,void 0,void 0,!0)}else _.ik(Y)},
handleWarning:_.AA,sendFn:B2X,now:_.Oh,writeError:jKf,jobManager:_.vs(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.z_("potential_esf_error_limit",10),getBooleanFlag:_.f,disableYtIdbTransactions:!(_.gk()&&_.RCK())});this.initializationPromise=new _.nV;_.f("networkless_immediately_drop_all_requests")&&Mkh();lCK("LogsDatabaseV2")};
_.r(Gr,fw);_.uDf=function(){var Y=_.tA("yt.networklessRequestController.instance");Y||(Y=new Gr,_.HQ("yt.networklessRequestController.instance",Y),_.f("networkless_logging")&&_.Vl().then(function(S){Y.databaseToken=S;yp3(Y);Y.initializationPromise.resolve();Y.enableCleaning&&Math.random()<=Y.cleaningRate&&Y.databaseToken&&HA8(Y.databaseToken);_.f("networkless_immediately_drop_sw_health_store")&&Pgf(Y)}));
return Y};
Gr.prototype.writeThenSend=function(Y,S){S||(S={});S=cKh(Y,S);_.gk()||(this.initialized=!1);fw.prototype.writeThenSend.call(this,Y,S)};
Gr.prototype.sendThenWrite=function(Y,S,P){S||(S={});S=cKh(Y,S);_.gk()||(this.initialized=!1);fw.prototype.sendThenWrite.call(this,Y,S,P)};
Gr.prototype.sendAndWrite=function(Y,S){S||(S={});S=cKh(Y,S);_.gk()||(this.initialized=!1);fw.prototype.sendAndWrite.call(this,Y,S)};
Gr.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var Pgf=function(Y){var S;_.B(function(P){if(!Y.databaseToken)throw S=lY("clearSWHealthLogsDb"),S;return P.return(Vk9(Y.databaseToken).catch(function(u){Y.handleError(u)}))})};_.bVU=!1;_.xyh=_.Pa.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.bVU};_.HQ("ytNetworklessLoggingInitializationOptions",_.xyh);var az=function(Y){var S=this;this.config_=null;Y?this.config_=Y:k5a()&&(this.config_=_.Sq());_.hp(_.wc,function(){sRK(S)},5E3)};
az.prototype.isReady=function(){!this.config_&&k5a()&&(this.config_=_.Sq());return!!this.config_};
var FZf=function(Y,S,P,u){!_.X3("VISITOR_DATA")&&S!=="visitor_id"&&Math.random()<.01&&_.AA(new _.$2("Missing VISITOR_DATA when sending innertube request.",S,P,u));if(!Y.isReady()){var W=new _.$2("innertube xhrclient not ready",S,P,u);_.ik(W);throw W;}var m={headers:u.headers||{},method:"POST",postParams:P,postBody:u.postBody,postBodyFormat:u.postBodyFormat||"JSON",onTimeout:function(){u.onTimeout()},
onFetchTimeout:u.onTimeout,onSuccess:function(T,K){if(u.onSuccess)u.onSuccess(K)},
onFetchSuccess:function(T){if(u.onSuccess)u.onSuccess(T)},
onError:function(T,K){if(u.onError)u.onError(K)},
onFetchError:function(T){if(u.onError)u.onError(T)},
timeout:u.timeout,withCredentials:!0,compress:u.compress};m.headers["Content-Type"]||(m.headers["Content-Type"]="application/json");var J="";(W=Y.config_.innertubeHostOverride)&&(J=W);var c=Y.config_.innertubeUseThirdPartyAuth||!1,C=_.jA$(c,J,u);Object.assign(m.headers,C);m.headers.Authorization&&!J&&c&&(m.headers["x-origin"]=window.location.origin);var x=_.y4(J+("/youtubei/"+Y.config_.innertubeApiVersion+"/"+S),{alt:"json"}),b=function(T){T=T===void 0?!1:T;var K;if(u.retry&&J!="www.youtube-nocookie.com"&&
(T||_.f("skip_ls_gel_retry")||m.headers["Content-Type"]!=="application/json"||(K=wTa(S,P,C,c)),K)){var G=m.onSuccess,v=m.onFetchSuccess;m.onSuccess=function(F,U){pTE(K);G(F,U)};
P.onFetchSuccess=function(F,U){pTE(K);v(F,U)}}try{if(T&&u.retry&&!u.networklessOptions.bypassNetworkless)m.method="POST",u.networklessOptions.writeThenSend?_.uDf().writeThenSend(x,m):_.uDf().sendAndWrite(x,m);
else if(u.compress){var a=!u.networklessOptions.writeThenSend;if(m.postBody){var w=m.postBody;typeof w!=="string"&&(w=JSON.stringify(m.postBody));gW8(x,w,m,_.qY,a)}else gW8(x,JSON.stringify(m.postParams),m,IYu,a)}else _.f("web_all_payloads_via_jspb")?_.qY(x,m):IYu(x,m)}catch(F){if(F.name==="InvalidAccessError")K&&(pTE(K),K=0),_.AA(Error("fd"));else throw F;}K&&_.hp(_.wc,function(){sRK(Y)},5E3)};
_.T21()?ICE().then(function(T){b(T)}):b(!1)};var vq8=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(vq8,_.Gc);vq8.prototype.getIndex=function(){return Dp(this,2)};
vq8.prototype.setIndex=function(Y){return _.r6(this,2,Y)};var Wut=0,E9J=_.Jv?"webkit":_.j5?"moz":_.nj?"ms":o7E?"o":"";_.HQ("ytDomDomGetNextId",_.tA("ytDomDomGetNextId")||function(){return++Wut});var zTJ={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},OQ=function(Y){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(Y=
Y||window.event){this.event=Y;for(var S in Y)S in zTJ||(this[S]=Y[S]);this.scale=Y.scale;this.rotation=Y.rotation;var P=Y.target||Y.srcElement;P&&P.nodeType==3&&(P=P.parentNode);this.target=P;var u=Y.relatedTarget;if(u)try{u=u.nodeName?u:null}catch(W){u=null}else this.type=="mouseover"?u=Y.fromElement:this.type=="mouseout"&&(u=Y.toElement);this.relatedTarget=u;this.clientX=Y.clientX!=void 0?Y.clientX:Y.pageX;this.clientY=Y.clientY!=void 0?Y.clientY:Y.pageY;this.keyCode=Y.keyCode?Y.keyCode:Y.which;
this.charCode=Y.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=Y.altKey;this.ctrlKey=Y.ctrlKey;this.shiftKey=Y.shiftKey;this.metaKey=Y.metaKey;this.pageX_=Y.pageX;this.pageY_=Y.pageY}}catch(W){}},mz3=function(Y){if(document.body&&document.documentElement){var S=document.body.scrollTop+document.documentElement.scrollTop;
Y.pageX_=Y.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);Y.pageY_=Y.clientY+S}};
OQ.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
OQ.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
OQ.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var eq=_.Pa.ytEventsEventsListeners||{};_.HQ("ytEventsEventsListeners",eq);var hCa=_.Pa.ytEventsEventsCounter||{count:0};_.HQ("ytEventsEventsCounter",hCa);var v9Y=_.T2(function(){var Y=!1;try{var S=Object.defineProperty({},"capture",{get:function(){Y=!0}});
window.addEventListener("test",null,S)}catch(P){}return Y});_.PW(Su,_.R6);Su.prototype.onMouseMove_=function(Y){Y.pageX_===void 0&&mz3(Y);var S=Y.pageX_;Y.pageY_===void 0&&mz3(Y);this.position_=new _.TH(S,Y.pageY_)};
Su.prototype.checkPosition_=function(){if(this.position_){var Y=(0,_.Oh)();if(this.previousTime_!=0){var S=this.previousPosition_,P=this.position_,u=S.x-P.x;S=S.y-P.y;u=Math.sqrt(u*u+S*S)/(Y-this.previousTime_);this.cycles_[this.index_]=Math.abs((u-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(P=S=0;P<4;P++)S+=this.cycles_[P]||0;S>=3&&this.callback_();this.previousVelocity_=u}this.previousTime_=Y;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Su.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Dyu(this.mouseListenerKey_)};var wqa={};var ic1=new _.N("rawColdConfigGroup");var Zc1=new _.N("rawHotConfigGroup");var ny6=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(ny6,_.Gc);var hO8=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(hO8,_.Gc);var Gy=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y,500)};
_.r(Gy,_.Gc);Gy.prototype.getPayloadCase=function(){return _.$n(this,jWh)};
Gy.prototype.getContext=function(){return _.P_(this,hO8,33)};
var jWh=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517];var pZ9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(pZ9,_.Gc);var j_K=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(j_K,_.Gc);j_K.prototype.setVideoId=function(Y){return Rz(this,1,JIJ,wZ(Y))};
j_K.prototype.getPlaylistId=function(){return _.mo(this,g6(this,JIJ,2))};
var JIJ=[1,2];var vBY=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(vBY,_.Gc);vBY.prototype.getContext=function(){return _.P_(this,xG,1)};
vBY.prototype.getTier=function(){return _.Lj(this,7)};var JJs,zy,mU;JJs=_.Pa.ytPubsubPubsubInstance||new _.x2;zy=_.Pa.ytPubsubPubsubSubscribedKeys||{};mU=_.Pa.ytPubsubPubsubTopicToKeys||{};_.pq8=_.Pa.ytPubsubPubsubIsSynchronous||{};_.x2.prototype.subscribe=_.x2.prototype.subscribe;_.x2.prototype.unsubscribeByKey=_.x2.prototype.unsubscribeByKey;_.x2.prototype.publish=_.x2.prototype.publish;_.x2.prototype.clear=_.x2.prototype.clear;_.HQ("ytPubsubPubsubInstance",JJs);_.HQ("ytPubsubPubsubTopicToKeys",mU);_.HQ("ytPubsubPubsubIsSynchronous",_.pq8);
_.HQ("ytPubsubPubsubSubscribedKeys",zy);var ju=window;var hV=_.f("web_enable_lifecycle_monitoring")&&XqY()!==0,BuJ=_.f("web_enable_lifecycle_monitoring");var Cgu=function(Y){var S=this;var P=P===void 0?0:P;var u=u===void 0?_.vs():u;this.JSC$8678_defaultPriority=P;this.scheduler=u;this.completedResolver=new _.nV;this.scheduledPayloads=Y;for(Y={i$jscomp$528:0};Y.i$jscomp$528<this.scheduledPayloads.length;Y={payload$jscomp$18:void 0,i$jscomp$528:Y.i$jscomp$528},Y.i$jscomp$528++)Y.payload$jscomp$18=this.scheduledPayloads[Y.i$jscomp$528],P=function(W){return function(){W.payload$jscomp$18.job();S.scheduledPayloads[W.i$jscomp$528].processed=!0;S.scheduledPayloads.every(function(m){return m.processed===
!0})&&S.completedResolver.resolve()}}(Y),u=this.scheduler.addJob(P,cJt(this,Y.payload$jscomp$18)),this.scheduledPayloads[Y.i$jscomp$528]=Object.assign({},Y.payload$jscomp$18,{job:P,
jobId:u})};
Cgu.prototype.flushJobs=function(){var Y=this,S=Array.from(this.scheduledPayloads.keys()).sort(function(u,W){return cJt(Y,Y.scheduledPayloads[W])-cJt(Y,Y.scheduledPayloads[u])});
S=_.n(S);for(var P=S.next();!P.done;P=S.next())P=this.scheduledPayloads[P.value],P.jobId===void 0||P.processed||(this.scheduler.cancelJob(P.jobId),this.scheduler.addJob(P.job,10))};
Cgu.prototype.cancel=function(){for(var Y=_.n(this.scheduledPayloads),S=Y.next();!S.done;S=Y.next())S=S.value,S.jobId===void 0||S.processed||this.scheduler.cancelJob(S.jobId),S.processed=!0;this.completedResolver.resolve()};
var cJt=function(Y,S){var P;return(P=S.priority)!=null?P:Y.JSC$8678_defaultPriority};var vH=function(Y){this.state=Y;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};hV&&ZVu(this.state)};
vH.prototype.install=function(Y){this.plugins.push(Y);return this};
vH.prototype.uninstall=function(){var Y=this;_.Ch.apply(0,arguments).forEach(function(S){S=Y.plugins.indexOf(S);S>-1&&Y.plugins.splice(S,1)})};
vH.prototype.transition=function(Y,S){var P=this;hV&&iVY(this.state);var u=this.transitions.find(function(m){return Array.isArray(m.from)?m.from.find(function(J){return J===P.state&&m.to===Y}):m.from===P.state&&m.to===Y});
if(u){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);qEf(this,Y,S);this.state=Y;hV&&ZVu(this.state);u=u.action.bind(this);var W=this.plugins.filter(function(m){return m[Y]}).map(function(m){return m[Y]});
u(RTi(this,W),S)}else throw Error("gd`"+this.state+"`"+Y);};
var RTi=function(Y,S){var P=S.filter(function(W){return xzd(Y,W)===10}),u=S.filter(function(W){return xzd(Y,W)!==10});
return Y.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var W=_.Ch.apply(0,arguments);return _.B(function(m){if(m.nextAddress==1)return _.q(m,Y.runImmediateJobsAsync.apply(Y,[P].concat(_.cz(W))),2);Y.setJobSetWithScheduledJobs.apply(Y,[u].concat(_.cz(W)));_.Yt(m)})}:function(){var W=_.Ch.apply(0,arguments);
Y.runImmediateJobsSync.apply(Y,[P].concat(_.cz(W)));Y.setJobSetWithScheduledJobs.apply(Y,[u].concat(_.cz(W)))}};
vH.prototype.runImmediateJobsSync=function(Y){var S=_.Ch.apply(1,arguments);_.vs();for(var P=_.n(Y),u=P.next(),W={};!u.done;W={lifecycle$jscomp$2:void 0},u=P.next())W.lifecycle$jscomp$2=u.value,MG(function(m){return function(){boi(m.lifecycle$jscomp$2.name);tVh(function(){return m.lifecycle$jscomp$2.callback.apply(m.lifecycle$jscomp$2,_.cz(S))});
DT(m.lifecycle$jscomp$2.name)}}(W))};
vH.prototype.runImmediateJobsAsync=function(Y){var S=_.Ch.apply(1,arguments),P,u,W,m;return _.B(function(J){J.nextAddress==1&&(_.vs(),P=_.n(Y),u=P.next(),W={});if(J.nextAddress!=3){if(u.done)return J.jumpTo(0);W.lifecycle$jscomp$3=u.value;W.asyncJobCompletion=void 0;m=function(c){return function(){boi(c.lifecycle$jscomp$3.name);var C=tVh(function(){return c.lifecycle$jscomp$3.callback.apply(c.lifecycle$jscomp$3,_.cz(S))});
E6u(C)?c.asyncJobCompletion=_.f("web_lifecycle_error_handling_killswitch")?C.then(function(){DT(c.lifecycle$jscomp$3.name)}):C.then(function(){DT(c.lifecycle$jscomp$3.name)},function(x){o9X(x);
DT(c.lifecycle$jscomp$3.name)}):DT(c.lifecycle$jscomp$3.name)}}(W);
MG(m);return W.asyncJobCompletion?_.q(J,W.asyncJobCompletion,3):J.jumpTo(3)}W={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};u=P.next();return J.jumpTo(2)})};
vH.prototype.setJobSetWithScheduledJobs=function(Y){var S=_.Ch.apply(1,arguments),P=this,u=Y.map(function(W){return{job:function(){boi(W.name);tVh(function(){return W.callback.apply(W,_.cz(S))});
DT(W.name)},
priority:xzd(P,W)}});
u.length&&(this.jobSet=new Cgu(u))};
var xzd=function(Y,S){var P,u;return(u=(P=Y.overridePriority)!=null?P:S.priority)!=null?u:0},boi=function(Y){hV&&Y&&ZVu(Y)},DT=function(Y){hV&&Y&&iVY(Y)},qEf=function(Y,S,P){BuJ&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+Y.constructor.name+"] '"+Y.state+"' to '"+S+"'"),console.log("with message: ",P),console.groupEnd())};
_.y6.Object.defineProperties(vH.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Tus=function(Y){vH.call(this,Y===void 0?"none":Y);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},KuJ;
_.r(Tus,vH);Tus.prototype.runApplicationNavigationBegin=function(Y,S){var P=this;this.navigationTimer=_.hp(_.wc,function(){P.currentState==="application_navigating"&&P.transition("none")},5E3);
Y(S==null?void 0:S.event)};
Tus.prototype.runApplicationNavigationEnd=function(Y,S){this.navigationTimer&&(_.wc.cancelJob(this.navigationTimer),this.navigationTimer=null);Y(S==null?void 0:S.event)};
_.XZa=function(){KuJ||(KuJ=new Tus);return KuJ};var lQE=[];_.HQ("yt.logging.transport.getScrapedGelPayloads",function(){return lQE});var Jp=function(){var Y=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return Y.totalEntries}}};
Jp.prototype.storePayload=function(Y,S){Y=AK1(Y);this.store[Y]?this.store[Y].push(S):(this.memoizedKeySequences={},this.store[Y]=[S]);this.totalEntries++;_.f("more_accurate_gel_parser")&&(S=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(S));return Y};
Jp.prototype.smartExtractMatchingEntries=function(Y){if(!Y.keys.length)return[];for(var S=Ey_(this,Y.keys.splice(0,1)[0]),P=[],u=0;u<S.length;u++)this.store[S[u]]&&Y.sizeLimit&&(this.store[S[u]].length<=Y.sizeLimit?(P.push.apply(P,_.cz(this.store[S[u]])),delete this.store[S[u]]):P.push.apply(P,_.cz(this.store[S[u]].splice(0,Y.sizeLimit))));this.totalEntries-=P.length;(Y==null?0:Y.sizeLimit)&&P.length<(Y==null?void 0:Y.sizeLimit)&&(Y.sizeLimit-=P.length,P.push.apply(P,_.cz(this.smartExtractMatchingEntries(Y))));
return P};
Jp.prototype.extractMatchingEntries=function(Y){Y=Ey_(this,Y);for(var S=[],P=0;P<Y.length;P++)this.store[Y[P]]&&(S.push.apply(S,_.cz(this.store[Y[P]])),delete this.store[Y[P]]);this.totalEntries-=S.length;return S};
Jp.prototype.getSequenceCount=function(Y){Y=Ey_(this,Y);for(var S=0,P=0;P<Y.length;P++){var u=void 0;S+=((u=this.store[Y[P]])==null?void 0:u.length)||0}return S};
var Ey_=function(Y,S){var P=AK1(S);if(Y.memoizedKeySequences[P])return Y.memoizedKeySequences[P];var u=Object.keys(Y.store)||[];if(u.length<=1&&AK1(S)===u[0])return u;for(var W=[],m=0;m<u.length;m++){var J=u[m].split("/");if(fYi(S.auth,J[0])){var c=S.isJspb;fYi(c===void 0?"undefined":c?"true":"false",J[1])&&fYi(S.cttAuthInfo,J[2])&&(c=S.tier,c=c===void 0?"undefined":JSON.stringify(c),fYi(c,J[3])&&W.push(u[m]))}}return Y.memoizedKeySequences[P]=W},fYi=function(Y,S){return Y===void 0||Y==="undefined"?
!0:Y===S};
Jp.prototype.getSequenceCount=Jp.prototype.getSequenceCount;Jp.prototype.extractMatchingEntries=Jp.prototype.extractMatchingEntries;Jp.prototype.smartExtractMatchingEntries=Jp.prototype.smartExtractMatchingEntries;Jp.prototype.storePayload=Jp.prototype.storePayload;var Kmf,bc$,EBh,C_,gys,UhX,AIh,xhJ,Rnu,u2a,T0K,s_Y,cIX;Kmf=_.z_("initial_gel_batch_timeout",2E3);bc$=_.z_("gel_queue_timeout_max_ms",6E4);EBh=_.z_("gel_min_batch_size",5);C_=void 0;gys=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
UhX=new gys;AIh=new gys;xhJ=new gys;Rnu=new gys;T0K=!0;s_Y=1;_.Fm$=new Map;cIX=_.Pa.ytLoggingTransportTokensToCttTargetIds_||{};_.HQ("ytLoggingTransportTokensToCttTargetIds_",cIX);var B0X=_.Pa.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.HQ("ytLoggingTransportTokensToJspbCttTargetIds_",B0X);var cK={};var DN=_.Pa.ytLoggingGelSequenceIdObj_||{};_.HQ("ytLoggingGelSequenceIdObj_",DN);var yI1=[];var mGa=new Set,OcJ=0,B8U=0,JL9=0,SD$=[],YDa=[],cLU=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var GRh=function(){};
GRh.prototype.getUrl=function(Y,S){S=S===void 0?!1:S;return Y.hasOwnProperty("shareEndpoint")?null:_.xGX(Y,null,S)};
var UuE=function(Y,S,P){Y={endpoint:S,actions:[]};P=(P.path?P.path[0]:P.target).icon||"";S=P.indexOf(":");S>0&&(P=P.substr(S+1));P&&Y.actions.push(P);return Y};var gJf=/Command$/,fZJ=/Endpoint$/,T8E=new Map;var $z_,rJ3;$z_=1;_.Ap=function(){this.actionRoutingMap=new Map};
_.Ap.prototype.triggerAction=function(Y){var S=new Pif(Y,!1,_.Ch.apply(1,arguments));this.handleAction(S);return S.returnValue};
_.Ap.prototype.triggerOptionalAction=function(Y){var S=new Pif(Y,!0,_.Ch.apply(1,arguments));this.handleAction(S);return S.returnValue};
_.Ix=function(Y,S,P){S.forEach(function(u){var W=EJh(u);W&&Y.triggerOptionalAction(W,u,P,void 0)})};
_.Ap.prototype.handleAction=function(Y){var S=this.actionRoutingMap.get(Y.actionName);S&&rJ3(Y,S);Y.optionalAction||Y.returnValue.length!==0||(Y=new _.$2("Unhandled action",Y.actionName),_.AA(Y))};
rJ3=function(Y,S){S.forEach(function(P){var u=null;P?u=P.apply(null,Y.args):(P=Error("hd"),P.params=Y.actionName,_.ik(P));Y.returnValue.push(u)})};
_.Uf=function(Y,S,P){P||(P=$z_++);for(var u=_.n(Object.keys(S)),W=u.next();!W.done;W=u.next()){W=W.value;var m=Y.actionRoutingMap.get(W);m||(m=new Map,Y.actionRoutingMap.set(W,m));Y.registerActionHandler(P,W,S[W],m)}return P};
_.Ap.prototype.registerActionHandler=function(Y,S,P,u){u.set(Y,_.oj(P))};
_.QZ=function(Y,S,P){S=_.n(Object.keys(S));for(var u=S.next();!u.done;u=S.next())(u=Y.actionRoutingMap.get(u.value))&&u.delete(P)};
_.Yn(_.Ap);var DG$=function(Y,S){var P=_.Ap.getInstance();_.LE(function(){var u={},W=_.Uf(P,(u[Y]=S,u));_.aI(function(){var m={};_.QZ(P,(m[Y]="",m),W)})})};var wFa=function(Y,S){_.LE(function(){var P=Y.value;P?(P.addEventListener("yt-service-request-sent",S,void 0),_.aI(function(){P?P.removeEventListener("yt-service-request-sent",S,void 0):pFu(Y)})):pFu(Y)})};iZa=qf$;var kR$=new Set(["For","If","Match","Watch"]),G4h={},hTh=(G4h[dK.default]=function(){return FVK},G4h.style=function(){return FVK},G4h),vyU;
for(vyU in hTh)Yd.attributes[vyU]=hTh[vyU](Yd.attributes[vyU]);var Of=new _.yH("VISIBILITY_OBSERVER");var PNK={retrieve:function(Y){return this.id.\u0275prov.token===Y.\u0275prov.token?this.contextValue:this?f4Y(this,this.id):NZ}};var Dzs=function(Y,S,P){if(Y!==Ns)return!1;Y=isa(document.createElement("div"),function(){var u=PR(!1);try{P[0]()}finally{PR(u)}});
Y=Array.from(Y.childNodes);Y.length===1&&(Y=Y[0]);return Y};var IYm=function(Y){Y=Y.clone();zys(Y);T9(Y,"dg",null);T9(Y,"d","0");SWi(Y,null);Pks(Y,null);T9(Y,"ichc","0");return Y},aYf=!0,Lus=function(Y,S,P){var u=P===void 0?{}:P;
P=u.cssRowKey===void 0?void 0:u.cssRowKey;var W=u.combinedSignature===void 0?void 0:u.combinedSignature;var m=u.extraEdges===void 0?void 0:u.extraEdges;u=u.callback===void 0?void 0:u.callback;T9(Y,"m",S.join(","));m&&WNS(Y,m);P&&(T9(Y,"ck",P),W?T9(Y,"rs",W):aYf&&(aYf=!1));if(u){if(u!=null&&!jjf.test(u))throw Error("ab`"+u);T9(Y,"cb",u)}Y=Y.toString();_.m$(Y,"/")&&(Y=wt3(document.location.href)+Y);return _.YU(Y)};var peS=function(Y){return weS(Y).then(function(S){return JSON.parse(S.responseText)})},weS=function(Y){var S={},P=S.xmlHttpFactory?S.xmlHttpFactory.createInstance():hAL.createInstance();
return(new _.qs(function(u,W){var m;try{P.open("GET",Y,!0)}catch(C){W(new ax("Error opening XHR: "+C.message,Y,P))}P.onreadystatechange=function(){if(P.readyState==4){_.Pa.clearTimeout(m);var C;!(C=GqU(P.status))&&(C=P.status===0)&&(C=Lhu(Y),C=!(C=="http"||C=="https"||C==""));C?u(P):W(new FuU(P.status,Y,P))}};
P.onerror=function(){W(new ax("Network error",Y,P))};
if(S.headers)for(var J in S.headers){var c=S.headers[J];c!=null&&P.setRequestHeader(J,c)}S.withCredentials&&(P.withCredentials=S.withCredentials);S.responseType&&(P.responseType=S.responseType);S.mimeType&&P.overrideMimeType(S.mimeType);S.timeoutMs>0&&(m=_.Pa.setTimeout(function(){P.onreadystatechange=function(){};
P.abort();W(new sW3(Y,P))},S.timeoutMs));
try{P.send(null)}catch(C){P.onreadystatechange=function(){},_.Pa.clearTimeout(m),W(new ax("Error sending XHR: "+C.message,Y,P))}})).thenCatch(function(u){u instanceof _.ok&&P.abort();
throw u;})},ax=function(Y,S,P){_.YY.call(this,Y+", url="+S);
this.url=S;this.xhr=P};
_.PW(ax,_.YY);ax.prototype.name="XhrError";var FuU=function(Y,S,P){ax.call(this,"Request Failed, status="+Y,S,P);this.status=Y};
_.PW(FuU,ax);FuU.prototype.name="XhrHttpError";var sW3=function(Y,S){ax.call(this,"Request timed out",Y,S)};
_.PW(sW3,ax);sW3.prototype.name="XhrTimeoutError";O$=O$||{};var Lw=function(){_.R6.call(this)};
_.PW(Lw,_.R6);Lw.prototype.initialize=function(){};var dzm=function(Y,S){this.fn_=Y;this.handler_=S};
dzm.prototype.execute=function(Y){this.fn_&&(this.fn_.call(this.handler_||null,Y),this.fn_=this.handler_=null)};
dzm.prototype.abort=function(){this.handler_=this.fn_=null};var wg=function(Y,S){_.R6.call(this);this.deps_=Y;this.JSC$8805_id_=S;this.onloadCallbacks_=[];this.JSC$8805_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.PW(wg,_.R6);wg.prototype.moduleConstructor_=Lw;wg.prototype.module_=null;wg.prototype.getId=function(){return this.JSC$8805_id_};
wg.prototype.registerCallback=function(Y,S){return lYi(this.onloadCallbacks_,Y,S)};
var XeJ=function(Y,S){lYi(Y.JSC$8805_onErrorCallbacks_,S)},lYi=function(Y,S,P){S=new dzm(S,P);
Y.push(S);return S};
wg.prototype.isLoaded=function(){return!!this.module_};
wg.prototype.onLoad=function(Y){var S=new this.moduleConstructor_;S.initialize(Y());this.module_=S;S=(S=!!Zoi(this.earlyOnloadCallbacks_,Y()))||!!Zoi(this.onloadCallbacks_,Y());S||(this.JSC$8805_onErrorCallbacks_.length=0);return S};
wg.prototype.onError=function(Y){(Y=Zoi(this.JSC$8805_onErrorCallbacks_,Y))&&ua(Error("nd`"+Y));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var Zoi=function(Y,S){for(var P=[],u=0;u<Y.length;u++)try{Y[u].execute(S)}catch(W){ua(W),P.push(W)}Y.length=0;return P.length?P:null};
wg.prototype.disposeInternal=function(){wg.superClass_.disposeInternal.call(this);_.oY(this.module_)};var ioU,k4_,Uzf,QWU,trs,AJm,Vrh,Nus,Hoh;
_.FP=function(Y,S,P,u,W){u=u===void 0?!1:u;W=W===void 0?!1:W;var m=m===void 0?!0:m;this.scsReferenceUrl_=O_(_.S2(Y).toString(),m);this.cssRowKey_=S;this.combinedSignature_=P;this.useNegativeLoading_=u;this.requestedModuleMap_={};this.JSC$8808_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(Y=bi(this.scsReferenceUrl_,"excm"))?Y.split(","):[];this.shouldScanForCss_=W;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;XR$();this.logger=null;_.pw(this,u3f(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
ioU=function(Y,S){if(S.href||S.getAttribute("data-href"))if(S=S.href||S.getAttribute("data-href"),FNa(S)&&!O_(S).urlPrefix_.endsWith("_/js/")){S=u3f(O_(S));S=_.n(S);for(var P=S.next();!P.done;P=S.next())P=P.value,Y.loadedCssModuleList_.includes(P)||Y.loadedCssModuleList_.push(P)}};
_.FP.prototype.JSC$8810_loadModules=function(Y,S,P){var u=P===void 0?{}:P;P=u.extraEdges;var W=u.onError;var m=u.onSuccess;u=u.forceReload;this.JSC$8808_moduleInfoMap_=S;if(!Y)throw Error("od");if(this.shouldScanForCss_){S=_.n(document.getElementsByTagName("style"));for(var J=S.next();!J.done;J=S.next())ioU(this,J.value);S=_.n(document.getElementsByTagName("link"));for(J=S.next();!J.done;J=S.next())ioU(this,J.value)}oyi(this,trs(this,Y),P,W,m,u)};
var oyi=function(Y,S,P,u,W,m){u=u===void 0?function(){}:u;
W=W===void 0?function(){}:W;
m=m===void 0?!1:m;AJm(Y,S,function(J,c,C){C=C===void 0?c:C;Y.enableFallbackFetch&&m?Y.loadWithFetch(J,c,u,W,C):Y.load(J,c,u,W,C,P)},P)||u(-1)};
_.FP.prototype.loadWithFetch=function(){_.B(function(){throw Error("pd");})};
_.FP.prototype.maybeSetAdditionalFields=function(){};
k4_=function(Y,S,P){if(Y.useNegativeLoading_){var u=Y.scsReferenceUrl_;Y={cssRowKey:Y.cssRowKey_,combinedSignature:Y.combinedSignature_,extraEdges:P,requestedModuleIds:Uzf(Y),requestedCssModuleIds:QWU(Y)};var W=Y===void 0?{}:Y;Y=W.requestedModuleIds===void 0?[]:W.requestedModuleIds;P=W.requestedCssModuleIds===void 0?[]:W.requestedCssModuleIds;var m=W.cssRowKey===void 0?void 0:W.cssRowKey;var J=W.combinedSignature===void 0?void 0:W.combinedSignature;var c=W.extraEdges===void 0?void 0:W.extraEdges;
W=W.callback===void 0?void 0:W.callback;u=IYm(u);T9(u,"d","1");SWi(u,Y);Pks(u,P);S=Lus(u,S,{cssRowKey:m,combinedSignature:J,extraEdges:c,callback:W})}else u=Y.scsReferenceUrl_,Y={cssRowKey:Y.cssRowKey_,combinedSignature:Y.combinedSignature_,requestedModuleIds:Uzf(Y),requestedCssModuleIds:QWU(Y)},c=Y===void 0?{}:Y,Y=c.requestedCssModuleIds===void 0?[]:c.requestedCssModuleIds,P=c.cssRowKey===void 0?void 0:c.cssRowKey,m=c.combinedSignature===void 0?void 0:c.combinedSignature,J=c.extraEdges===void 0?
void 0:c.extraEdges,c=c.callback===void 0?void 0:c.callback,u=IYm(u),Pks(u,Y),S=Lus(u,S,{cssRowKey:P,combinedSignature:m,extraEdges:J,callback:c});return S};
_.pw=function(Y,S){for(var P=!1,u=[],W=0;W<S.length;++W){var m=S[W];Y.requestedModuleMap_[m]||(Y.requestedModuleMap_[m]=!0,Y.requestedModuleList_.push(m),P=!0,u.push(m))}P&&(Y.requestedModuleListSorted_=!1)};
_.sb=function(Y,S){for(var P=[],u=0;u<S.length;++u){var W=S[u];Y.requestedModuleMap_[W]&&(delete Y.requestedModuleMap_[W],_.MU(Y.requestedModuleList_,W),P.push(W))}};
_.FP.prototype.load=function(Y,S,P,u,W){W=W===void 0?S:W;_.S2(Y);var m=this.useCors_,J=this.corsMode_,c=this.fetchPriority,C=_.nN("SCRIPT");_.I9(C,Y);m&&(C.crossOrigin=J);C.async=!1;c&&C.setAttribute("fetchpriority",c);_.pw(this,S);_.MrL(this,Y,C,S,P,u,W)};
_.MrL=function(Y,S,P,u,W,m,J){J=J===void 0?u:J;Y.lastScript_=P;Y.insertPos.insertBefore(P,Y.insertPos.firstChild);_.yJh(P,u,function(){P.parentElement.removeChild(P);Y.lastScript_==P&&(Y.lastScript_=null);var c=new Set;u.map(function(x){return c.add(x)});
for(var C in Y.JSC$8808_moduleInfoMap_)Y.JSC$8808_moduleInfoMap_[C].isLoaded()&&c.add(C);Array.from(c);m()},function(c){P.parentElement.removeChild(P);
Y.lastScript_==P&&(Y.lastScript_=null);_.sb(Y,c);Y.pendingModuleGraphUpdate_?Y.pendingModuleGraphUpdate_.then(function(){W(-1,S)}):W(-1,S)},J)};
_.yJh=function(Y,S,P,u,W){W=W===void 0?S:W;var m=S.length,J=function(){m=0;Y.onload=null;Y.onerror=null;c=function(){}},c=function(){J();
var x=W.filter(function(b){return!$S().getModuleInfo(b).isLoaded()});
x.length!==0?u(x,"Response was successful but was missing module(s) "+x+"."):P()},C=function(){m--;
m==0&&c()};
S.forEach(function(x){x=$S().getModuleInfo(x);x.isLoaded()?C():(lYi(x.earlyOnloadCallbacks_,C),XeJ(x,C))});
Y.onload=function(){return c()};
Y.onerror=function(){J();u(S)}};
Uzf=function(Y){Y.requestedModuleListSorted_||(Y.requestedModuleListSorted_=!0,Y.requestedModuleList_.sort());return Y.requestedModuleList_};
QWU=function(Y){Y=Y.loadedCssModuleList_;Y.sort();return Y};
trs=function(Y,S){return S.filter(function(P){return!Y.requestedModuleMap_[P]})};
AJm=function(Y,S,P,u){if(Y.pendingModuleGraphUpdate_)return Y.pendingModuleGraphUpdate_.then(function(){AJm(Y,S,P,u)}),!0;
if(!Y.useNegativeLoading_){var W=[],m=Object.assign({},Y.requestedModuleMap_);Nus(Y,S,function(b){W.push(b.getId())},u,function(b){return!b.isLoaded()},m);
S=W}for(m=0;m<S.length;){for(var J=S.length-m,c=m==0?S:S.slice(m,S.length),C=k4_(Y,c,u),x=_.S2(C).toString();x.length>Y.urlMaxLength;)if(J>1)J-=Math.ceil((x.length-Y.urlMaxLength)/6),J=Math.max(J,1),c=S.slice(m,m+J),C=k4_(Y,c,u),x=_.S2(C).toString();else return Y.useNegativeLoading_?(Y.useNegativeLoading_=!1,Y.pendingModuleGraphUpdate_=Hoh(Y).then(function(b){Vrh(Y,b,u)}),AJm(Y,S.slice(m),P,u)):!1;
m+=J;Y.useNegativeLoading_?P(C,c):P(C,c,m===S.length?S:[])}return!0};
Vrh=function(Y,S,P){$S().setAllModuleInfoString((S||{}).moduleGraph);Nus(Y,Uzf(Y),function(u){_.pw(Y,[u.getId()])},P);
Y.pendingModuleGraphUpdate_=null};
Nus=function(Y,S,P,u,W,m){m=m===void 0?{}:m;var J=$S();S=_.n(S);for(var c=S.next();!c.done;c=S.next()){c=c.value;var C=J.getModuleInfo(c);if(!(m[c]||W&&!W(C))){m[c]=!0;var x=C.deps_||[];if(u){var b=[];u[c]&&(b=Object.keys(u[c]));x=x.concat(b)}Nus(Y,x,P,u,W,m);P(C)}}};
Hoh=function(Y){Y=Y.scsReferenceUrl_.clone();zys(Y);T9(Y,"dg",null);T9(Y,"md","1");return peS(Y.toString())};var zih=new Uint8Array(123);var eTi=[];var Oos=function(){this.JSC$7927_loader_=null};
_.z=Oos.prototype;_.z.setBatchModeEnabled=function(){};
_.z.setAllModuleInfoString=function(){};
_.z.addExtraEdge=function(){throw Error("qd");};
_.z.removeExtraEdge=function(){throw Error("rd");};
_.z.getModuleContext=function(){return null};
_.z.isActive=function(){return!1};
_.z.isUserActive=function(){return!1};
_.z.registerCallback=function(){};var dg=function(Y,S,P,u){this.type=Y;this.status=S;this.requestedModuleIds=P;this.url=u};
dg.prototype.toString=function(){return Y2h(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var Y2h=function(Y){switch(Y.type){case dg.JSC$8820_Type.UNAUTHORIZED:return"Unauthorized";case dg.JSC$8820_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case dg.JSC$8820_Type.TIMEOUT:return"Timed out";case dg.JSC$8820_Type.OLD_CODE_GONE:return"Out of date module id";case dg.JSC$8820_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+Y.type}};
O$.ModuleLoadFailure=dg;O$.ModuleLoadFailure.JSC$8820_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var lT=function(){this.moduleIds_=this.JSC$7927_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8823_extraEdges_={};this.JSC$8823_callbackMap_={};this.JSC$8823_currentlyLoadingModule_=this.baseModuleInfo_=new wg([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new oi;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.PW(lT,Oos);var S23=function(Y,S){_.YY.call(this,"Error loading "+Y+": "+S)};
_.PW(S23,_.YY);lT.prototype.setBatchModeEnabled=function(Y){this.batchModeEnabled_=Y};
lT.prototype.setAllModuleInfoString=function(Y,S){if(!(this instanceof lT))this.setAllModuleInfoString(Y,S);else if(typeof Y==="string"){if(Y.startsWith("d$")){Y=Y.substring(2);for(var P=[],u=0,W=Y.indexOf("/"),m=0,J=!1,c=0;;){var C=J?Y.substring(m):Y.substring(m,W);if(C.length===0)u++,m="sy"+u.toString(36),C=[];else{var x=C.indexOf(":");if(x<0)m=C,C=[];else if(x===C.length-1)m=C.substring(0,x),C=Array(P[c-1]);else{m=C.substring(0,x);C=C.substring(x+1).split(",");x=c;for(var b=0;b<C.length;b++)x-=
C[b].length===0?1:Number(C[b]),C[b]=P[x]}x=0;if(m.length===0)x=1;else if(m.charAt(0)==="+"||m.charAt(0)==="-")x=Number(m);x!==0&&(u+=x,m="sy"+u.toString(36))}P.push(m);P6h(this,m,C);if(J)break;m=W+1;W=Y.indexOf("/",m);W===-1&&(J=!0);c++}this.moduleIds_=P}else if(Y.startsWith("p$"))uvU(this,Y);else{Y=Y.split("/");P=[];for(u=0;u<Y.length;u++){c=Y[u].split(":");W=c[0];J=[];if(c[1])for(J=c[1].split(","),c=0;c<J.length;c++)J[c]=P[parseInt(J[c],36)];P.push(W);P6h(this,W,J)}this.moduleIds_=P}S&&S.length?
(_.Y_(this.loadingModuleIds_,S),this.lastInitialModuleId_=_.s9(S)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8823_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8823_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.xS)(this.getModuleContext,this))&&W9t(this,new O$.ModuleLoadFailure(O$.ModuleLoadFailure.JSC$8820_Type.INIT_ERROR)),XP(this))}};
var uvU=function(Y,S){var P=S.substring(2);for(S=0;S<64;S++)zih["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(S)]=S;var u={buf:P,pos:0};Pe(u);var W=Pe(u),m=Pe(u)+1;S=Array(W);var J=Array(W),c=Array(W);m=Array(m);var C=0,x=0,b=u.pos,T=u.buf.indexOf("|",u.pos);u.pos=T+1;for(T=0;T<W;T++){var K=Pe(u),G=K&2,v=K&1;K>>>=2;v?(C+=K>>>1^-(K&1),K="sy"+C.toString(36)):(v=b,b+=K,K=P.substring(v,b));S[T]=K;G&&(m[x++]=K)}m[x]="";u.pos++;x=W&-2;P=W&1;for(C=0;C<x;C+=2)b=mw1(u),c[C]=
b&7,c[C+1]=b>>>3&7;P&&(P=mw1(u),c[x]=P&7);u.pos++;for(x=0;x<W;x++)c[x]===7&&(c[x]=Pe(u));u.pos++;for(P=x=0;P<W;P++){C=c[P];b=C===0?eTi:Array(C);J[P]=b;T=x;for(G=0;G<C;G++)T-=Pe(u),b[G]=m[T];m[x]===S[P]&&x++}for(u=0;u<S.length;u++)P6h(Y,S[u],J[u]);Y.moduleIds_=S};
_.z=lT.prototype;_.z.getModuleInfo=function(Y){return this.moduleInfoMap[Y]};
_.z.addExtraEdge=function(Y,S){var P=this.getModuleInfo(Y);P&&P.isLoaded()?this.load(S):(this.JSC$8823_extraEdges_[Y]||(this.JSC$8823_extraEdges_[Y]={}),this.JSC$8823_extraEdges_[Y][S]=!0)};
_.z.removeExtraEdge=function(Y,S){if(this.JSC$8823_extraEdges_[Y]){delete this.JSC$8823_extraEdges_[Y][S];for(var P in this.JSC$8823_extraEdges_[Y])return;delete this.JSC$8823_extraEdges_[Y]}};
_.z.isActive=function(){return this.loadingModuleIds_.length>0};
_.z.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var XP=function(Y){var S=Y.lastActive_,P=Y.isActive();P!=S&&(Y.executeCallbacks_(P?"active":"idle"),Y.lastActive_=P);S=Y.isUserActive();S!=Y.userLastActive_&&(Y.executeCallbacks_(S?"userActive":"userIdle"),Y.userLastActive_=S)},P6h=function(Y,S,P){Y.moduleInfoMap[S]?(Y=Y.moduleInfoMap[S].deps_,Y!=P&&Y.splice.apply(Y,[0,
Y.length].concat(_.cz(P)))):Y.moduleInfoMap[S]=new wg(P,S)},mq_=function(Y,S,P){var u=[];
uf(S,u);S=[];for(var W={},m=0;m<u.length;m++){var J=u[m],c=Y.getModuleInfo(J);if(!c)throw Error("sd`"+J);var C=new oi;W[J]=C;c.isLoaded()?C.callback(null):(zjs(Y,J,c,!!P,C),Y.isModuleLoading(J)||S.push(J))}S.length>0&&(Y.loadingModuleIds_.length===0?Y.loadModules_(S):(Y.requestedModuleIdsQueue_.push(S),XP(Y)));return W},zjs=function(Y,S,P,u,W){P.registerCallback(W.callback,W);
XeJ(P,function(m){W.errback(new S23(S,m))});
Y.isModuleLoading(S)?u&&(n5J(Y,S),XP(Y)):u&&n5J(Y,S)};
lT.prototype.loadModules_=function(Y,S,P){var u=this;S||(this.consecutiveFailures_=0);var W=jki(this,Y);this.loadingModuleIds_=W;this.requestedLoadingModuleIds_=this.batchModeEnabled_?Y:_.NU(W);XP(this);if(W.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,W);if(Object.keys(this.JSC$8823_extraEdges_).length>0&&!this.JSC$7927_loader_.supportsExtraEdges)throw Error("td");Y=(0,_.xS)(this.JSC$7927_loader_.JSC$8810_loadModules,this.JSC$7927_loader_,_.NU(W),this.moduleInfoMap,{extraEdges:this.JSC$8823_extraEdges_,
forceReload:!!P,onError:function(m,J){var c=u.requestedLoadingModuleIds_;m=m!=null?m:void 0;u.consecutiveFailures_++;var C=_.NU(W);u.requestedLoadingModuleIds_=c;W.forEach(_.gP(_.MU,u.requestedModuleIds_),u);m==401?(W9t(u,new O$.ModuleLoadFailure(O$.ModuleLoadFailure.JSC$8820_Type.UNAUTHORIZED,m)),u.requestedModuleIdsQueue_.length=0):m==410?(J93(u,new O$.ModuleLoadFailure(O$.ModuleLoadFailure.JSC$8820_Type.OLD_CODE_GONE,m)),Bf_(u)):u.consecutiveFailures_>=3?(J93(u,new O$.ModuleLoadFailure(O$.ModuleLoadFailure.JSC$8820_Type.CONSECUTIVE_FAILURES,
m,C,J)),Bf_(u)):u.loadModules_(u.requestedLoadingModuleIds_,!0,m==8001||!1)},
onTimeout:(0,_.xS)(this.handleLoadTimeout_,this)});(S=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Pa.setTimeout(Y,S):Y()}};
var jki=function(Y,S){S=S.filter(function(W){return Y.moduleInfoMap[W].isLoaded()?(_.Pa.setTimeout(function(){return Error("ud`"+W)},0),!1):!0});
for(var P=[],u=0;u<S.length;u++)P=P.concat(c9U(Y,S[u]));uf(P);return!Y.batchModeEnabled_&&P.length>1?(S=P.shift(),Y.requestedModuleIdsQueue_=P.map(function(W){return[W]}).concat(Y.requestedModuleIdsQueue_),[S]):P},c9U=function(Y,S){var P=_.RY.createSet(Y.requestedModuleIds_),u=[];
P[S]||u.push(S);S=[S];for(var W=0;W<S.length;W++)for(var m=Y.getModuleInfo(S[W]).deps_,J=m.length-1;J>=0;J--){var c=m[J];Y.getModuleInfo(c).isLoaded()||P[c]||(u.push(c),S.push(c))}u.reverse();uf(u);return u};
lT.prototype.JSC$8818_setLoaded=function(){if(this.JSC$8823_currentlyLoadingModule_){var Y=this.JSC$8823_currentlyLoadingModule_.getId(),S=[];if(this.JSC$8823_extraEdges_[Y]){for(var P=_.n(Object.keys(this.JSC$8823_extraEdges_[Y])),u=P.next();!u.done;u=P.next()){u=u.value;var W=this.getModuleInfo(u);W&&!W.isLoaded()&&(this.removeExtraEdge(Y,u),S.push(u))}this.loadMultiple(S)}this.isDisposed()||(this.moduleInfoMap[Y].onLoad((0,_.xS)(this.getModuleContext,this))&&W9t(this,new O$.ModuleLoadFailure(O$.ModuleLoadFailure.JSC$8820_Type.INIT_ERROR)),
_.MU(this.userInitiatedLoadingModuleIds_,Y),_.MU(this.loadingModuleIds_,Y),this.loadingModuleIds_.length===0&&Bf_(this),this.lastInitialModuleId_&&Y==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),XP(this),this.JSC$8823_currentlyLoadingModule_=null)}};
lT.prototype.isModuleLoading=function(Y){if(_.Au(this.loadingModuleIds_,Y))return!0;for(var S=0;S<this.requestedModuleIdsQueue_.length;S++)if(_.Au(this.requestedModuleIdsQueue_[S],Y))return!0;return!1};
lT.prototype.load=function(Y,S){return mq_(this,[Y],S)[Y]};
lT.prototype.loadMultiple=function(Y){return mq_(this,Y)};
var n5J=function(Y,S){_.Au(Y.userInitiatedLoadingModuleIds_,S)||Y.userInitiatedLoadingModuleIds_.push(S)};
lT.prototype.beforeLoadModuleCode=function(Y){var S=this;this.JSC$8823_currentlyLoadingModule_&&this.JSC$8823_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8818_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[Y]&&C6S(this,this.moduleInfoMap[Y].deps_||[],function(P){P.module_=new Lw;_.MU(S.loadingModuleIds_,P.getId())},function(P){return!P.isLoaded()});
this.JSC$8823_currentlyLoadingModule_=this.getModuleInfo(Y)};
lT.prototype.handleLoadTimeout_=function(){J93(this,new O$.ModuleLoadFailure(O$.ModuleLoadFailure.JSC$8820_Type.TIMEOUT));Bf_(this)};
var J93=function(Y,S){Y.requestedLoadingModuleIds_.length>1?Y.requestedModuleIdsQueue_=Y.requestedLoadingModuleIds_.map(function(P){return[P]}).concat(Y.requestedModuleIdsQueue_):W9t(Y,S)},W9t=function(Y,S){var P=Y.requestedLoadingModuleIds_;
Y.loadingModuleIds_.length=0;for(var u=[],W=0;W<Y.requestedModuleIdsQueue_.length;W++){var m=Y.requestedModuleIdsQueue_[W].filter(function(C){var x=c9U(this,C);return yn(P,function(b){return _.Au(x,b)})},Y);
_.Y_(u,m)}for(W=0;W<P.length;W++)_.K$X(u,P[W]);for(W=0;W<u.length;W++){for(m=0;m<Y.requestedModuleIdsQueue_.length;m++)_.MU(Y.requestedModuleIdsQueue_[m],u[W]);_.MU(Y.userInitiatedLoadingModuleIds_,u[W])}if(W=Y.JSC$8823_callbackMap_.error)for(m=0;m<W.length;m++)for(var J=W[m],c=0;c<u.length;c++)J("error",u[c],S);for(u=0;u<P.length;u++)if(Y.moduleInfoMap[P[u]])Y.moduleInfoMap[P[u]].onError(S);Y.requestedLoadingModuleIds_.length=0;XP(Y)},Bf_=function(Y){for(;Y.requestedModuleIdsQueue_.length;){var S=
Y.requestedModuleIdsQueue_.shift().filter(function(P){return!this.getModuleInfo(P).isLoaded()},Y);
if(S.length>0){Y.loadModules_(S);return}}XP(Y)};
lT.prototype.registerCallback=function(Y,S){Array.isArray(Y)||(Y=[Y]);for(var P=0;P<Y.length;P++){var u=Y[P],W=S,m=this.JSC$8823_callbackMap_;m[u]||(m[u]=[]);m[u].push(W)}};
lT.prototype.executeCallbacks_=function(Y){for(var S=this.JSC$8823_callbackMap_[Y],P=0;S&&P<S.length;P++)S[P](Y)};
var C6S=function(Y,S,P,u,W){u=u===void 0?function(){return!0}:u;
W=W===void 0?{}:W;S=_.n(S);for(var m=S.next();!m.done;m=S.next()){m=m.value;var J=Y.getModuleInfo(m);!W[m]&&u(J)&&(W[m]=!0,C6S(Y,J.deps_||[],P,u,W),P(J))}};
lT.prototype.dispose=function(){_.t$(_.RY.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8823_callbackMap_={};this.isDisposed_=!0};
lT.prototype.isDisposed=function(){return this.isDisposed_};
_.fN=function(){return new lT};var q2s=[5E3,2E4],RjS=function(){this.JSC$7927_loader_=null;this.JSC$8831_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8831_queue_=[];this.JSC$8831_extraEdges_=Object.create(null);this.JSC$8831_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.r(RjS,Oos);_.z=RjS.prototype;_.z.setAllModuleInfoString=function(){this.JSC$8831_currentlyLoadingModule_&&this.JSC$8831_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8818_setLoaded()};
_.z.getModuleInfo=function(Y){var S=this.JSC$8831_moduleInfoMap_[Y];S||(S=new wg([],Y),this.JSC$8831_moduleInfoMap_[Y]=S);return S};
_.z.addExtraEdge=function(Y,S){this.getModuleInfo(Y).isLoaded()?this.load(S):(this.JSC$8831_extraEdges_[Y]||(this.JSC$8831_extraEdges_[Y]={}),this.JSC$8831_extraEdges_[Y][S]=!0)};
_.z.removeExtraEdge=function(Y,S){if(this.JSC$8831_extraEdges_[Y]){delete this.JSC$8831_extraEdges_[Y][S];for(var P in this.JSC$8831_extraEdges_[Y])return;delete this.JSC$8831_extraEdges_[Y]}};
_.z.isModuleLoading=function(Y){return!!this.loadingModules_[Y]};
_.z.load=function(Y){xqm(this,[Y]);return bMd(this,Y)};
_.z.loadMultiple=function(Y){var S=this,P=Object.create(null),u=[];Y.forEach(function(W){P[W]||(P[W]=bMd(S,W),u.push(W))});
xqm(this,u);return P};
_.z.beforeLoadModuleCode=function(Y){var S;((S=this.JSC$8831_currentlyLoadingModule_)==null?void 0:S.getId())==="synthetic_module_overhead"&&this.JSC$8818_setLoaded();var P,u;Tfs(this,(u=(P=this.JSC$8831_moduleInfoMap_[Y])==null?void 0:P.deps_)!=null?u:[],function(W){W.module_=new Lw},function(W){return!W.isLoaded()});
this.JSC$8831_currentlyLoadingModule_=this.getModuleInfo(Y)};
_.z.JSC$8818_setLoaded=function(){if(this.JSC$8831_currentlyLoadingModule_){var Y=this.JSC$8831_currentlyLoadingModule_.getId(),S=[];if(this.JSC$8831_extraEdges_[Y]){for(var P=_.n(Object.keys(this.JSC$8831_extraEdges_[Y])),u=P.next();!u.done;u=P.next())u=u.value,this.getModuleInfo(u).isLoaded()||(this.removeExtraEdge(Y,u),S.push(u));this.loadMultiple(S)}this.JSC$8831_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8831_currentlyLoadingModule_=null;(!this.isModuleLoading(Y)&&/^sy[0-9a-z]{0,4}$/.test(Y)||Y==="synthetic_module_overhead")&&delete this.JSC$8831_moduleInfoMap_[Y];this.unsetModulesAsLoading(Y)}};
_.z.setModulesAsLoading=function(){var Y=this;_.Ch.apply(0,arguments).forEach(function(S){Y.loadingModules_[S]=!0})};
_.z.unsetModulesAsLoading=function(){var Y=this;_.Ch.apply(0,arguments).forEach(function(S){delete Y.loadingModules_[S]})};
var bMd=function(Y,S){return new _.qs(function(P,u){var W=Y.getModuleInfo(S);W.isLoaded()?P(null):(W.registerCallback(function(){P(null)}),XeJ(W,function(m){var J="Error loading "+S+": "+m;
m instanceof O$.ModuleLoadFailure&&m.url&&(J=J+", requested url: "+m.url.toString());u(Error(J))}))})},xqm=function(Y,S){S=S.filter(function(P){return!Y.isModuleLoading(P)&&!Y.getModuleInfo(P).isLoaded()});
S.length>0&&(Y.setModulesAsLoading.apply(Y,_.cz(S)),Y.JSC$8831_queue_.push(S),K9d(Y))},K9d=function(Y){for(var S={};Y.activeLoads_<Infinity&&Y.JSC$8831_queue_.length>0;S={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})S.ids$jscomp$36=Y.JSC$8831_queue_.shift().filter(function(P){return!Y.getModuleInfo(P).isLoaded()}),S.ids$jscomp$36.length>0&&(Y.activeLoads_++,S.finishLoad=function(P){return function(){Y.activeLoads_--;
K9d(Y);P.finishLoad=function(){}}}(S),_.fl(S.ids$jscomp$36.map(function(P){return bMd(Y,P)})).then(function(P){return function(){(0,P.finishLoad)()}}(S)),S.attempt$jscomp$6=0,S.load$jscomp$1=function(P){return function(){if(Object.keys(Y.JSC$8831_extraEdges_).length>0&&!Y.JSC$7927_loader_.supportsExtraEdges)throw Error("td");
Y.JSC$7927_loader_.JSC$8810_loadModules(P.ids$jscomp$36,Y.JSC$8831_moduleInfoMap_,{extraEdges:Y.JSC$8831_extraEdges_,onError:function(u,W){var m=q2s[P.attempt$jscomp$6++];m!==void 0?setTimeout(function(){(0,P.load$jscomp$1)()},m):(Y.unsetModulesAsLoading.apply(Y,_.cz(P.ids$jscomp$36)),(0,P.finishLoad)(),P.ids$jscomp$36.forEach(function(J){J=Y.getModuleInfo(J);
if(!J.isLoaded())J.onError(new O$.ModuleLoadFailure(O$.ModuleLoadFailure.JSC$8820_Type.CONSECUTIVE_FAILURES,u,P.ids$jscomp$36,W))}))}})}}(S),(0,S.load$jscomp$1)())},Tfs=function(Y,S,P,u,W){u=u===void 0?function(){return!0}:u;
W=W===void 0?{}:W;S=_.n(S);for(var m=S.next();!m.done;m=S.next()){m=m.value;var J=Y.getModuleInfo(m);!W[m]&&u(J)&&(W[m]=!0,Tfs(Y,J.deps_||[],P,u,W),P(J))}};var E5S=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var jFh=Symbol("wd");window.JSCompiler_renameProperty=function(Y){return Y};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var fC6=!E5S||HTMLElement.es5Shimmed||_.Pa.Reflect===void 0||_.Pa.customElements===void 0||_.Pa.customElements.polyfillWrapFlushCallback||!1,g5i,yWh=function(){var Y=HTMLElement;if(fC6)return Y;if(g5i!==void 0)return g5i;var S=_.Pa.Reflect,P=function(){return S.construct(Y,[],this.constructor)};
P.prototype=Y.prototype;P.prototype.constructor=P;P.es5Shimmed=!0;Object.setPrototypeOf(P,Y);return g5i=P},$qS=!1;fC6||$qS||($qS=!0,_.Pa.HTMLElement=yWh());/*

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 qnu=/(url\()([^)]*)(\))/g,cgE=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,CNa,ug;var sE=!window.ShadyDOM||!window.ShadyDOM.inUse,r9h=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),G5i=!window.customElements.polyfillWrapFlushCallback,hju;if(hju=sE&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var v5L=new CSSStyleSheet;v5L.replaceSync("");var Dqs=document.createElement("div");Dqs.attachShadow({mode:"open"});Dqs.shadowRoot.adoptedStyleSheets=[v5L];hju=Dqs.shadowRoot.adoptedStyleSheets[0]===v5L}catch(Y){hju=!1}
var ICi=hju,aCJ=window.Polymer&&window.Polymer.rootPath||xwY(document.baseURI||window.location.href),T4=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,GzE=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,ZY=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,L9f=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,FD=window.Polymer&&window.Polymer.legacyOptimizations||!1,XD=window.Polymer&&window.Polymer.legacyWarnings||!1,w3L=window.Polymer&&window.Polymer.syncInitialRender||
!1,EE=window.Polymer&&window.Polymer.legacyUndefined||!1,p3U=window.Polymer&&window.Polymer.orderedComputed||!1,ZT=window.Polymer&&window.Polymer.removeNestedTemplates||!1,iT=window.Polymer&&window.Polymer.fastDomIf||!1,ox=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,F9S=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,sk6=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var tV={},dqu={},gu=function(){return HTMLElement.apply(this,arguments)||this};
_.r(gu,HTMLElement);gu.import=function(Y,S){return Y?(Y=tV[Y]||dqu[Y.toLowerCase()])&&S?Y.querySelector(S):Y:null};
gu.prototype.attributeChangedCallback=function(Y,S,P){S!==P&&this.register()};
gu.prototype.register=function(Y){if(Y=Y||this.id){if(ZY&&(tV[Y]||dqu[Y.toLowerCase()])!==void 0)throw tV[Y]=dqu[Y.toLowerCase()]=null,Error("xd`"+Y);this.id=Y;tV[Y]=dqu[Y.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.y6.Object.defineProperties(gu.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var Y=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;Y=_.We(this.getAttribute("assetpath")||"",Y.baseURI);this.__assetpath=xwY(Y)}return this.__assetpath}}});
_.y6.Object.defineProperties(gu,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
gu["import"]=gu.import;gu.prototype.modules=tV;customElements.define("dom-module",gu);var lCS=0,TL9=0,z4=[],X3h=0,bR9=!1,ZMJ=document.createTextNode(""),iMf,wu;(new window.MutationObserver(KRh)).observe(ZMJ,{characterData:!0});_.AV={after:function(Y){return{run:function(S){return window.setTimeout(S,Y)},
cancel:function(S){window.clearTimeout(S)}}},
run:function(Y,S){return window.setTimeout(Y,S)},
cancel:function(Y){window.clearTimeout(Y)}};
_.TR={run:function(Y){return window.requestAnimationFrame(Y)},
cancel:function(Y){window.cancelAnimationFrame(Y)}};
iMf={run:function(Y){return window.requestIdleCallback?window.requestIdleCallback(Y):window.setTimeout(Y,16)},
cancel:function(Y){window.cancelIdleCallback?window.cancelIdleCallback(Y):window.clearTimeout(Y)}};
wu={run:function(Y){bR9||(bR9=!0,ZMJ.textContent=X3h++);z4.push(Y);return lCS++},
cancel:function(Y){var S=Y-TL9;if(S>=0){if(!z4[S])throw Error("yd`"+Y);z4[S]=null}}};var o56=0,Ub=function(Y){var S=Y.__mixinApplications;S||(S=new WeakMap,Y.__mixinApplications=S);var P=o56++;return function(u){var W=u.__mixinSet;if(W&&W[P])return u;var m=S,J=m.get(u);J||(J=Y(u),m.set(u,J),u=Object.create(J.__mixinSet||W||null),u[P]=!0,J.__mixinSet=u);return J}};_.bg=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(Y){return ShadyDOM.patch(Y)}:function(Y){return Y};var tfL=Ub(function(Y){var S=function(){var P=Y.call(this)||this;P.__dataEnabled=!1;P.__dataReady=!1;P.__dataInvalid=!1;P.__data={};P.__dataPending=null;P.__dataOld=null;P.__dataInstanceProps=null;P.__dataCounter=0;P.__serializing=!1;P._initializeProperties();return P};
_.r(S,Y);S.createProperties=function(P){var u=this.prototype,W;for(W in P)W in u||u._createPropertyAccessor(W)};
S.attributeNameForProperty=function(P){return P.toLowerCase()};
S.typeForProperty=function(){};
S.prototype._createPropertyAccessor=function(P,u){this._addPropertyToAttributeMap(P);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[P]||(this.__dataHasAccessor[P]=!0,this._definePropertyAccessor(P,u))};
S.prototype._addPropertyToAttributeMap=function(P){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var u=this.__dataAttributes[P];u||(u=this.constructor.attributeNameForProperty(P),this.__dataAttributes[u]=P);return u};
S.prototype._definePropertyAccessor=function(P,u){Object.defineProperty(this,P,{get:function(){return this.__data[P]},
set:u?function(){}:function(W){this._setPendingProperty(P,W,!0)&&this._invalidateProperties()}})};
S.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
S.prototype._initializeProperties=function(){for(var P in this.__dataHasAccessor)this.hasOwnProperty(P)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[P]=this[P],delete this[P])};
S.prototype._initializeInstanceProperties=function(P){Object.assign(this,P)};
S.prototype._setProperty=function(P,u){this._setPendingProperty(P,u)&&this._invalidateProperties()};
S.prototype._getProperty=function(P){return this.__data[P]};
S.prototype._setPendingProperty=function(P,u){var W=this.__data[P],m=this._shouldPropertyChange(P,u,W);m&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||P in this.__dataOld||(this.__dataOld[P]=W),this.__data[P]=u,this.__dataPending[P]=u);return m};
S.prototype._isPropertyPending=function(P){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(P))};
S.prototype._invalidateProperties=function(){var P=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,wu.run(function(){P.__dataInvalid&&(P.__dataInvalid=!1,P._flushProperties())}))};
S.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
S.prototype._flushProperties=function(){this.__dataCounter++;var P=this.__data,u=this.__dataPending,W=this.__dataOld;this._shouldPropertiesChange(P,u,W)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(P,u,W));this.__dataCounter--};
S.prototype._shouldPropertiesChange=function(P,u){return!!u};
S.prototype._propertiesChanged=function(){};
S.prototype._shouldPropertyChange=function(P,u,W){return W!==u&&(W===W||u===u)};
S.prototype.attributeChangedCallback=function(P,u,W,m){u!==W&&this._attributeToProperty(P,W);Y.prototype.attributeChangedCallback&&Y.prototype.attributeChangedCallback.call(this,P,u,W,m)};
S.prototype._attributeToProperty=function(P,u,W){if(!this.__serializing){var m=this.__dataAttributes;P=m&&m[P]||P;this[P]=this._deserializeValue(u,W||this.constructor.typeForProperty(P))}};
S.prototype._propertyToAttribute=function(P,u,W){this.__serializing=!0;W=arguments.length<3?this[P]:W;this._valueToNodeAttribute(this,W,u||this.constructor.attributeNameForProperty(P));this.__serializing=!1};
S.prototype._valueToNodeAttribute=function(P,u,W){u=this._serializeValue(u);if(W==="class"||W==="name"||W==="slot")P=(0,_.bg)(P);u===void 0?P.removeAttribute(W):P.setAttribute(W,u===""&&window.trustedTypes?window.trustedTypes.emptyScript:u)};
S.prototype._serializeValue=function(P){switch(typeof P){case "boolean":return P?"":void 0;default:return P!=null?P.toString():void 0}};
S.prototype._deserializeValue=function(P,u){switch(u){case Boolean:return P!==null;case Number:return Number(P);default:return P}};
return S});var A9h=0,Esa=[];var Uqm=Ub(function(Y){function S(m){m=Object.getPrototypeOf(m);return m.prototype instanceof W?m:null}
function P(m){if(!m.hasOwnProperty("__ownProperties")){var J=null;if(m.hasOwnProperty("properties")){var c=m.properties;if(c){J={};for(var C in c){var x=c[C];J[C]=typeof x==="function"?{type:x}:x}}}m.__ownProperties=J}return m.__ownProperties}
var u=tfL(Y),W=function(){return u.apply(this,arguments)||this};
_.r(W,u);W.finalize=function(){if(!this.hasOwnProperty("__finalized")){var m=S(this);m&&m.finalize();this.__finalized=!0;this._finalizeClass()}};
W._finalizeClass=function(){var m=P(this);m&&this.createProperties(m)};
W.typeForProperty=function(m){return(m=this._properties[m])&&m.type};
W.prototype._initializeProperties=function(){A9h++;this.constructor.finalize();u.prototype._initializeProperties.call(this)};
W.prototype.connectedCallback=function(){u.prototype.connectedCallback&&u.prototype.connectedCallback.call(this);this._enableProperties()};
W.prototype.disconnectedCallback=function(){u.prototype.disconnectedCallback&&u.prototype.disconnectedCallback.call(this)};
_.y6.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var m=this;if(!this.hasOwnProperty("__observedAttributes")){fKU(this.prototype);var J=this._properties;this.__observedAttributes=J?Object.keys(J).map(function(c){return m.prototype._addPropertyToAttributeMap(c)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var m=S(this);this.__properties=Object.assign({},m&&m._properties,P(this))}return this.__properties}}});
return W});var gs$={},$wX=/-[a-z]/g,rgK=/([A-Z])/g;for(var Qk3={},k5t=HTMLElement.prototype;k5t;){for(var MfL=Object.getOwnPropertyNames(k5t),y9u=0;y9u<MfL.length;y9u++)Qk3[MfL[y9u]]=!0;k5t=Object.getPrototypeOf(k5t)}var Nfm=window.trustedTypes?function(Y){return trustedTypes.isHTML(Y)||trustedTypes.isScript(Y)||trustedTypes.isScriptURL(Y)}:function(){return!1},HMu=Ub(function(Y){var S=tfL(Y);
Y=function(){return S.apply(this,arguments)||this};
_.r(Y,S);Y.createPropertiesForAttributes=function(){for(var P=this.observedAttributes,u=0;u<P.length;u++)this.prototype._createPropertyAccessor(mu(P[u]))};
Y.attributeNameForProperty=function(P){return no(P)};
Y.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);S.prototype._initializeProperties.call(this)};
Y.prototype._initializeProtoProperties=function(P){for(var u in P)this._setProperty(u,P[u])};
Y.prototype._ensureAttribute=function(P,u){this.hasAttribute(P)||this._valueToNodeAttribute(this,u,P)};
Y.prototype._serializeValue=function(P){switch(typeof P){case "object":if(P instanceof Date)return P.toString();if(P){if(Nfm(P))return P;try{return JSON.stringify(P)}catch(u){return""}}default:return S.prototype._serializeValue.call(this,P)}};
Y.prototype._deserializeValue=function(P,u){switch(u){case Object:try{var W=JSON.parse(P)}catch(m){W=P}break;case Array:try{W=JSON.parse(P)}catch(m){W=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+P)}break;case Date:W=isNaN(P)?String(P):Number(P);W=new Date(W);break;default:W=S.prototype._deserializeValue.call(this,P,u)}return W};
Y.prototype._definePropertyAccessor=function(P,u){if(!Qk3[P]){var W=this[P];W!==void 0&&(this.__data?this._setPendingProperty(P,W):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[P]=W))}S.prototype._definePropertyAccessor.call(this,P,u)};
Y.prototype._hasAccessor=function(P){return this.__dataHasAccessor&&this.__dataHasAccessor[P]};
Y.prototype._isPropertyPending=function(P){return!!(this.__dataPending&&P in this.__dataPending)};
return Y});var Vfm={"dom-if":!0,"dom-repeat":!0},ej6=!1,OMJ=!1,YVh=function(){var Y=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(S){return S}});
return function(S,P,u){P=P.getAttribute(u);Y&&u.startsWith("on-")?S.setAttribute(u,Y.createScript(P,u)):S.setAttribute(u,P)}}(),SVs=Ub(function(Y){var S=function(){return Y.apply(this,arguments)||this};
_.r(S,Y);S._parseTemplate=function(P,u){if(!P._templateInfo){var W=P._templateInfo={};W.nodeInfoList=[];W.nestedTemplate=!!u;W.stripWhiteSpace=u&&u.stripWhiteSpace||P.hasAttribute&&P.hasAttribute("strip-whitespace");this._parseTemplateContent(P,W,{parent:null})}return P._templateInfo};
S._parseTemplateContent=function(P,u,W){return this._parseTemplateNode(P.content,u,W)};
S._parseTemplateNode=function(P,u,W){var m=!1;P.localName!="template"||P.hasAttribute("preserve-content")?P.localName==="slot"&&(u.hasInsertionPoint=!0):m=this._parseTemplateNestedTemplate(P,u,W)||m;if(!ej6){ej6=!0;var J=document.createElement("textarea");J.placeholder="a";OMJ=J.placeholder===J.textContent}OMJ&&P.localName==="textarea"&&P.placeholder&&P.placeholder===P.textContent&&(P.textContent=null);P.firstChild&&this._parseTemplateChildNodes(P,u,W);P.hasAttributes&&P.hasAttributes()&&(m=this._parseTemplateNodeAttributes(P,
u,W)||m);return m||W.noted};
S._parseTemplateChildNodes=function(P,u,W){if(P.localName!=="script"&&P.localName!=="style")for(var m=P.firstChild,J=0,c;m;m=c){if(m.localName=="template"){var C=m.getAttribute("is");if(C&&Vfm[C])for(c=m,c.removeAttribute("is"),m=c.ownerDocument.createElement(C),c.parentNode.replaceChild(m,c),m.appendChild(c);c.attributes.length;)C=c.attributes[0].name,YVh(m,c,C),c.removeAttribute(C)}c=m.nextSibling;if(m.nodeType===Node.TEXT_NODE){for(C=c;C&&C.nodeType===Node.TEXT_NODE;)m.textContent+=C.textContent,
c=C.nextSibling,P.removeChild(C),C=c;if(u.stripWhiteSpace&&!m.textContent.trim()){P.removeChild(m);continue}}C={parentIndex:J,parentInfo:W};this._parseTemplateNode(m,u,C)&&(C.infoIndex=u.nodeInfoList.push(C)-1);m.parentNode&&J++}};
S._parseTemplateNestedTemplate=function(P,u,W){u=this._parseTemplate(P,u);(u.content=P.content.ownerDocument.createDocumentFragment()).appendChild(P.content);W.templateInfo=u;return!0};
S._parseTemplateNodeAttributes=function(P,u,W){for(var m=!1,J=Array.from(P.attributes),c=J.length-1,C;C=J[c];c--)m=this._parseTemplateNodeAttribute(P,u,W,C.name,C.value)||m;return m};
S._parseTemplateNodeAttribute=function(P,u,W,m,J){return m.slice(0,3)==="on-"?(P.removeAttribute(m),W.events=W.events||[],W.events.push({name:m.slice(3),value:J}),!0):m==="id"?(W.id=J,!0):!1};
S._contentForTemplate=function(P){var u=P._templateInfo;return u&&u.content||P.content};
S.prototype._stampTemplate=function(P,u){P&&!P.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(P);u=u||this.constructor._parseTemplate(P);var W=u.nodeInfoList;P=document.importNode(u.content||P.content,!0);P.__noInsertionPoint=!u.hasInsertionPoint;var m=P.nodeList=Array(W.length);P.$={};for(var J=0,c=W.length,C=void 0;J<c&&(C=W[J]);J++){var x=m[J]=GIh(P,C);C.id&&(P.$[C.id]=x);var b=x,T=C,K=u;T.templateInfo&&(b._templateInfo=T.templateInfo,b._parentTemplateInfo=
K);if(C.events&&C.events.length)for(b=0,T=C.events,K=void 0;b<T.length&&(K=T[b]);b++)this._addMethodEventListenerToNode(x,K.name,K.value,this)}return P};
S.prototype._addMethodEventListenerToNode=function(P,u,W,m){W=hi1(m||P,W);this._addEventListenerToNode(P,u,W);return W};
S.prototype._addEventListenerToNode=function(P,u,W){P.addEventListener(u,W)};
S.prototype._removeEventListenerFromNode=function(P,u,W){P.removeEventListener(u,W)};
return S});var RW=0,Ko=[],PjS={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},uki=/[A-Z]/,Wsh=function(Y,S,P,u,W){var m=W?JJ(Y):Y;if(S=S[m])for(m=0;m<S.length;m++){var J=S[m];if(J.info.lastRun!==RW&&(!W||wXh(Y,J.trigger))){J.info.lastRun=RW;J=J.info;for(var c=P,C=u,x=0,b=c.length-1,T=-1;x<=b;){var K=x+b>>1,G=C.get(c[K].methodInfo)-C.get(J.methodInfo);if(G<0)x=K+1;else if(G>0)b=K-1;else{T=K;break}}T<
0&&(T=b+1);c.splice(T,0,J)}}},MiU=[],zBu=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"),kN=Ub(function(Y){var S=SVs(HMu(Y));
Y=function(){var P=S.call(this)||this;P.__isPropertyEffectsClient=!0;return P};
_.r(Y,S);Y.prototype._initializeProperties=function(){S.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
Y.prototype._registerHost=function(){if(QU.length){var P=QU[QU.length-1];P._enqueueClient(this);this.__dataHost=P}};
Y.prototype._initializeProtoProperties=function(P){this.__data=Object.create(P);this.__dataPending=Object.create(P);this.__dataOld={}};
Y.prototype._initializeInstanceProperties=function(P){var u=this.__readOnly,W;for(W in P)u&&u[W]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[W]=this.__dataPending[W]=P[W])};
Y.prototype._addPropertyEffect=function(P,u,W){this._createPropertyAccessor(P,u=="__readOnly");var m=LRY(this,u,!0)[P];m||(m=this[u][P]=[]);m.push(W)};
Y.prototype._removePropertyEffect=function(P,u,W){P=LRY(this,u,!0)[P];W=P.indexOf(W);W>=0&&P.splice(W,1)};
Y.prototype._hasPropertyEffect=function(P,u){u=this[u];return!(!u||!u[P])};
Y.prototype._hasReadOnlyEffect=function(P){return this._hasPropertyEffect(P,"__readOnly")};
Y.prototype._hasNotifyEffect=function(P){return this._hasPropertyEffect(P,"__notifyEffects")};
Y.prototype._hasReflectEffect=function(P){return this._hasPropertyEffect(P,"__reflectEffects")};
Y.prototype._hasComputedEffect=function(P){return this._hasPropertyEffect(P,"__computeEffects")};
Y.prototype._setPendingPropertyOrPath=function(P,u,W,m){if(m||JJ(Array.isArray(P)?P[0]:P)!==P){if(!m&&(m=qz(this,P),P=aKK(this,P,u),!P||!S.prototype._shouldPropertyChange.call(this,P,u,m)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(P,u,W)){if(W=this.__dataLinkedPaths)for(var J in W)m=W[J],Be(J,P)?(m=ce(J,m,P),this._setPendingPropertyOrPath(m,u,!0,!0)):Be(m,P)&&(m=ce(m,J,P),this._setPendingPropertyOrPath(m,u,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[P])return this._setPendingProperty(P,
u,W);this[P]=u}return!1};
Y.prototype._setUnmanagedPropertyToNode=function(P,u,W){if(W!==P[u]||typeof W=="object")u==="className"&&(P=(0,_.bg)(P)),P[u]=W};
Y.prototype._setPendingProperty=function(P,u,W){var m=this.__dataHasPaths&&jr(P);if(this._shouldPropertyChange(P,u,(m?this.__dataTemp:this.__data)[P])){this.__dataPending||(this.__dataPending={},this.__dataOld={});P in this.__dataOld||(this.__dataOld[P]=this.__data[P]);m?this.__dataTemp[P]=u:this.__data[P]=u;this.__dataPending[P]=u;if(m||this.__notifyEffects&&this.__notifyEffects[P])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[P]=W;return!0}return!1};
Y.prototype._setProperty=function(P,u){this._setPendingProperty(P,u,!0)&&this._invalidateProperties()};
Y.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
Y.prototype._enqueueClient=function(P){this.__dataPendingClients=this.__dataPendingClients||[];P!==this&&this.__dataPendingClients.push(P)};
Y.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
Y.prototype.__enableOrFlushClients=function(){var P=this.__dataPendingClients;if(P){this.__dataPendingClients=null;for(var u=0;u<P.length;u++){var W=P[u];W.__dataEnabled?W.__dataPending&&W._flushProperties():W._enableProperties()}}};
Y.prototype._readyClients=function(){this.__enableOrFlushClients()};
Y.prototype.setProperties=function(P,u){for(var W in P)!u&&this.__readOnly&&this.__readOnly[W]||this._setPendingPropertyOrPath(W,P[W],!0);this._invalidateProperties()};
Y.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
Y.prototype._propertiesChanged=function(P,u,W){P=this.__dataHasPaths;this.__dataHasPaths=!1;var m;if(m=this.__computeEffects)if(p3U){RW++;var J=XXE(this),c=[],C;for(C in u)Wsh(C,m,c,J,P);for(;C=c.shift();)iRa(this,"",u,W,C)&&Wsh(C.methodInfo,m,c,J,P);Object.assign(W,this.__dataOld);Object.assign(u,this.__dataPending);this.__dataPending=null}else for(J=u;xy(this,m,J,W,P);)Object.assign(W,this.__dataOld),Object.assign(u,this.__dataPending),J=this.__dataPending,this.__dataPending=null;m=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(u,W,P);this._flushClients();xy(this,this.__reflectEffects,u,W,P);xy(this,this.__observeEffects,u,W,P);if(m){J=this.__notifyEffects;c=RW++;for(var x in m)if(m[x]){if(C=J){var b=J;C=c;var T=x,K=u,G=W,v=P,a=!1,w=v?JJ(T):T;if(b=b[w]){w=0;for(var F=b.length,U=void 0;w<F&&(U=b[w]);w++)U.info&&U.info.lastRun===C||v&&!wXh(T,U.trigger)||(U.info&&(U.info.lastRun=C),U.fn(this,T,K,G,U.info,v,void 0),a=!0)}C=a}if(C)var V=!0;else{if(C=P)C=x,T=u,K=JJ(C),K!==
C?(K=no(K)+"-changed",FRU(this,K,T[C],C),C=!0):C=!1;C&&(V=!0)}}var M;V&&(M=this.__dataHost)&&M._invalidateProperties&&M._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
Y.prototype._propagatePropertyChanges=function(P,u,W){this.__propagateEffects&&xy(this,this.__propagateEffects,P,u,W);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,P,u,W)};
Y.prototype._runEffectsForTemplate=function(P,u,W,m){var J=this,c=function(C,x){xy(J,P.propertyEffects,C,W,x,P.nodeList);for(var b=P.firstChild;b;b=b.nextSibling)J._runEffectsForTemplate(b,C,W,x)};
P.runEffects?P.runEffects(c,u,m):c(u,m)};
Y.prototype.linkPaths=function(P,u){P=Co(P);u=Co(u);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[P]=u};
Y.prototype.unlinkPaths=function(P){P=Co(P);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[P]};
Y.prototype.notifySplices=function(P,u){var W={path:""};P=qz(this,P,W);ViJ(this,P,W.path,u)};
Y.prototype.get=function(P,u){return qz(u||this,P)};
Y.prototype.set=function(P,u,W){W?aKK(W,P,u):this.__readOnly&&this.__readOnly[P]||this._setPendingPropertyOrPath(P,u,!0)&&this._invalidateProperties()};
Y.prototype.push=function(P){var u=_.Ch.apply(1,arguments),W={path:""},m=qz(this,P,W),J=m.length,c=m.push.apply(m,_.cz(u));u.length&&fo(this,m,W.path,J,u.length,[]);return c};
Y.prototype.pop=function(P){var u={path:""};P=qz(this,P,u);var W=!!P.length,m=P.pop();W&&fo(this,P,u.path,P.length,0,[m]);return m};
Y.prototype.splice=function(P,u,W){var m=_.Ch.apply(3,arguments),J={path:""},c=qz(this,P,J);u<0?u=c.length-Math.floor(-u):u&&(u=Math.floor(u));var C=arguments.length===2?c.splice(u):c.splice.apply(c,[u,W].concat(_.cz(m)));(m.length||C.length)&&fo(this,c,J.path,u,m.length,C);return C};
Y.prototype.shift=function(P){var u={path:""};P=qz(this,P,u);var W=!!P.length,m=P.shift();W&&fo(this,P,u.path,0,0,[m]);return m};
Y.prototype.unshift=function(P){var u=_.Ch.apply(1,arguments),W={path:""},m=qz(this,P,W),J=m.unshift.apply(m,_.cz(u));u.length&&fo(this,m,W.path,0,u.length,[]);return J};
Y.prototype.notifyPath=function(P,u){if(arguments.length==1){var W={path:""};u=qz(this,P,W);W=W.path}else W=Array.isArray(P)?Co(P):P;this._setPendingPropertyOrPath(W,u,!0,!0)&&this._invalidateProperties()};
Y.prototype._createReadOnlyProperty=function(P,u){this._addPropertyEffect(P,"__readOnly");u&&(this["_set"+(P[0].toUpperCase()+P.substring(1))]=function(W){this._setProperty(P,W)})};
Y.prototype._createPropertyObserver=function(P,u,W){var m={property:P,method:u,dynamicFn:!!W};this._addPropertyEffect(P,"__observeEffects",{fn:pX1,info:m,trigger:{name:P}});W&&this._addPropertyEffect(u,"__observeEffects",{fn:pX1,info:m,trigger:{name:u}})};
Y.prototype._createMethodObserver=function(P,u){var W=NL8(P);if(!W)throw Error("zd`"+P);QF9(this,W,"__observeEffects",ZRa,null,u)};
Y.prototype._createNotifyingProperty=function(P){this._addPropertyEffect(P,"__notifyEffects",{fn:sFh,info:{eventName:no(P)+"-changed",property:P}})};
Y.prototype._createReflectedProperty=function(P){var u=this.constructor.attributeNameForProperty(P);u[0]==="-"?console.warn("Property "+P+" cannot be reflected to attribute "+u+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(P,"__reflectEffects",{fn:dw8,info:{attrName:u}})};
Y.prototype._createComputedProperty=function(P,u,W){var m=NL8(u);if(!m)throw Error("Ad`"+u);u=QF9(this,m,"__computeEffects",iRa,P,W);LRY(this,"__computeInfo")[P]=u};
Y.prototype._marshalArgs=function(P,u,W){for(var m=this.__data,J=[],c=0,C=P.length;c<C;c++){var x=P[c],b=x.name,T=x.structured,K=x.wildcard,G=x.value;x.literal||(K?(x=Be(b,u),T=HR1(m,W,x?u:b),G={path:x?u:b,value:T,base:x?qz(m,b):T}):G=T?HR1(m,W,b):m[b]);if(EE&&!this._overrideLegacyUndefined&&G===void 0&&P.length>1)return Ko;J[c]=G}return J};
Y.addPropertyEffect=function(P,u,W){this.prototype._addPropertyEffect(P,u,W)};
Y.createPropertyObserver=function(P,u,W){this.prototype._createPropertyObserver(P,u,W)};
Y.createMethodObserver=function(P,u){this.prototype._createMethodObserver(P,u)};
Y.createNotifyingProperty=function(P){this.prototype._createNotifyingProperty(P)};
Y.createReadOnlyProperty=function(P,u){this.prototype._createReadOnlyProperty(P,u)};
Y.createReflectedProperty=function(P){this.prototype._createReflectedProperty(P)};
Y.createComputedProperty=function(P,u,W){this.prototype._createComputedProperty(P,u,W)};
Y.bindTemplate=function(P){return this.prototype._bindTemplate(P)};
Y.prototype._bindTemplate=function(P,u){var W=this.constructor._parseTemplate(P),m=this.__preBoundTemplateInfo==W;if(!m)for(var J in W.propertyEffects)this._createPropertyAccessor(J);u?(W=Object.create(W),W.wasPreBound=m,this.__templateInfo?(P=P._parentTemplateInfo||this.__templateInfo,u=P.lastChild,W.parent=P,P.lastChild=W,(W.previousSibling=u)?u.nextSibling=W:P.firstChild=W):this.__templateInfo=W):this.__preBoundTemplateInfo=W;return W};
Y._addTemplatePropertyEffect=function(P,u,W){(P.hostProps=P.hostProps||{})[u]=!0;P=P.propertyEffects=P.propertyEffects||{};(P[u]=P[u]||[]).push(W)};
Y.prototype._stampTemplate=function(P,u){u=u||this._bindTemplate(P,!0);QU.push(this);P=S.prototype._stampTemplate.call(this,P,u);QU.pop();u.nodeList=P.nodeList;if(!u.wasPreBound)for(var W=u.childNodes=[],m=P.firstChild;m;m=m.nextSibling)W.push(m);P.templateInfo=u;W=u.nodeList;m=u.nodeInfoList;if(m.length)for(var J=0;J<m.length;J++){var c=W[J],C=m[J].bindings;if(C)for(var x=0;x<C.length;x++){var b=C[x],T=c,K=b;if(K.isCompound){for(var G=T.__dataCompoundStorage||(T.__dataCompoundStorage={}),v=K.parts,
a=Array(v.length),w=0;w<v.length;w++)a[w]=v[w].literal;v=K.target;G[v]=a;K.literal&&K.kind=="property"&&(v==="className"&&(T=(0,_.bg)(T)),T[v]=K.literal)}UwJ(c,this,b)}c.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(u,this.__data,null,!1),this._flushClients());return P};
Y.prototype._removeBoundDom=function(P){P=P.templateInfo;var u=P.previousSibling,W=P.nextSibling,m=P.parent;u?u.nextSibling=W:m&&(m.firstChild=W);W?W.previousSibling=u:m&&(m.lastChild=u);P.nextSibling=P.previousSibling=null;P=P.childNodes;for(u=0;u<P.length;u++)W=P[u],(0,_.bg)((0,_.bg)(W).parentNode).removeChild(W)};
Y._parseTemplateNode=function(P,u,W){var m=S._parseTemplateNode.call(this,P,u,W);if(P.nodeType===Node.TEXT_NODE){var J=this._parseBindings(P.textContent,u);J&&(P.textContent=kI8(J)||" ",Agh(this,u,W,"text","textContent",J),m=!0)}return m};
Y._parseTemplateNodeAttribute=function(P,u,W,m,J){var c=this._parseBindings(J,u);if(c){J=m;var C="property";uki.test(m)?C="attribute":m[m.length-1]=="$"&&(m=m.slice(0,-1),C="attribute");var x=kI8(c);x&&C=="attribute"&&(m=="class"&&P.hasAttribute("class")&&(x+=" "+P.getAttribute(m)),P.setAttribute(m,x));C=="attribute"&&J=="disable-upgrade$"&&P.setAttribute(m,"");P.localName==="input"&&J==="value"&&P.setAttribute(J,"");P.removeAttribute(J);C==="property"&&(m=mu(m));Agh(this,u,W,C,m,c,x);return!0}return S._parseTemplateNodeAttribute.call(this,
P,u,W,m,J)};
Y._parseTemplateNestedTemplate=function(P,u,W){var m=S._parseTemplateNestedTemplate.call(this,P,u,W),J=P.parentNode,c=W.templateInfo,C=J.localName==="dom-if",x=J.localName==="dom-repeat";ZT&&(C||x)&&(J.removeChild(P),W=W.parentInfo,W.templateInfo=c,W.noted=!0,m=!1);P=c.hostProps;if(iT&&C)P&&(u.hostProps=Object.assign(u.hostProps||{},P),ZT||(W.parentInfo.noted=!0));else for(var b in P)Agh(this,u,W,"property","_host_"+b,[{mode:"{",source:b,dependencies:[b],hostProp:!0}]);return m};
Y._parseBindings=function(P,u){for(var W=[],m=0,J;(J=zBu.exec(P))!==null;){J.index>m&&W.push({literal:P.slice(m,J.index)});m=J[1][0];var c=!!J[2];J=J[3].trim();var C=!1,x="",b=-1;m=="{"&&(b=J.indexOf("::"))>0&&(x=J.substring(b+2),J=J.substring(0,b),C=!0);b=NL8(J);var T=[];if(b){var K=b,G=K.args;K=K.methodName;for(var v=0;v<G.length;v++){var a=G[v];a.literal||T.push(a)}if((G=u.dynamicFns)&&G[K]||b.static)T.push(K),b.dynamicFn=!0}else T.push(J);W.push({source:J,mode:m,negate:c,customEvent:C,signature:b,
dependencies:T,event:x});m=zBu.lastIndex}m&&m<P.length&&(P=P.substring(m))&&W.push({literal:P});return W.length?W:null};
Y._evaluateBinding=function(P,u,W,m,J,c){P=u.signature?ZRa(P,W,m,J,u.signature):W!=u.source?qz(P,u.source):c&&jr(W)?qz(P,W):P.__data[W];u.negate&&(P=!P);return P};
_.y6.Object.defineProperties(Y.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return PjS}}});
return Y}),QU=[];var mTs=window.ShadyCSS&&window.ShadyCSS.cssBuild,MK=Ub(function(Y){function S(u,W,m,J){if(!mTs){for(var c=W.content.querySelectorAll("style"),C=SPh(W),x=PL1(m),b=W.content.firstElementChild,T=0;T<x.length;T++){var K=x[T];K.textContent=u._processStyleText(K.textContent,J);W.content.insertBefore(K,b)}for(b=x=0;b<C.length;b++)T=C[b],K=c[x],K!==T?(T=T.cloneNode(!0),K.parentNode.insertBefore(T,K)):x++,T.textContent=u._processStyleText(T.textContent,J)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(W,
m);if(sk6&&mTs&&ICi&&(W=W.content.querySelectorAll("style"))){var G="";Array.from(W).forEach(function(v){G+=v.textContent;v.parentNode.removeChild(v)});
u._styleSheet=new CSSStyleSheet;u._styleSheet.replaceSync(G)}}
var P=Uqm(kN(Y));Y=function(){return P.call(this)||this};
_.r(Y,P);Y._finalizeClass=function(){P._finalizeClass.call(this);var u;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(u=this.__ownObservers)&&this.createObservers(u,this._properties);this._prepareTemplate()};
Y._prepareTemplate=function(){var u=this.template;u&&(typeof u==="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):FD||(u=u.cloneNode(!0)));this.prototype._template=u};
Y.createProperties=function(u){for(var W in u){var m=this.prototype,J=W,c=u[W],C=u;c.computed&&(c.readOnly=!0);c.computed&&(m._hasReadOnlyEffect(J)?console.warn("Cannot redefine computed property '"+J+"'."):m._createComputedProperty(J,c.computed,C));c.readOnly&&!m._hasReadOnlyEffect(J)?m._createReadOnlyProperty(J,!c.computed):c.readOnly===!1&&m._hasReadOnlyEffect(J)&&console.warn("Cannot make readOnly property '"+J+"' non-readOnly.");c.reflectToAttribute&&!m._hasReflectEffect(J)?m._createReflectedProperty(J):
c.reflectToAttribute===!1&&m._hasReflectEffect(J)&&console.warn("Cannot make reflected property '"+J+"' non-reflected.");c.notify&&!m._hasNotifyEffect(J)?m._createNotifyingProperty(J):c.notify===!1&&m._hasNotifyEffect(J)&&console.warn("Cannot make notify property '"+J+"' non-notify.");c.observer&&m._createPropertyObserver(J,c.observer,C[c.observer]);m._addPropertyToAttributeMap(J)}};
Y.createObservers=function(u,W){for(var m=this.prototype,J=0;J<u.length;J++)m._createMethodObserver(u[J],W)};
Y.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);P.prototype._initializeProperties.call(this);this.rootPath=aCJ;this.importPath=this.constructor.importPath;var u=this.constructor;if(!u.hasOwnProperty("__propertyDefaults")){u.__propertyDefaults=null;var W=u._properties,m;for(m in W){var J=W[m];"value"in J&&(u.__propertyDefaults=u.__propertyDefaults||{},u.__propertyDefaults[m]=J)}}if(u=u.__propertyDefaults)for(var c in u)W=u[c],
this._canApplyPropertyDefault(c)&&(W=typeof W.value=="function"?W.value.call(this):W.value,this._hasAccessor(c)?this._setPendingProperty(c,W,!0):this[c]=W)};
Y.prototype._canApplyPropertyDefault=function(u){return!this.hasOwnProperty(u)};
Y._processStyleText=function(u,W){return RiK(u,W)};
Y._finalizeTemplate=function(u){var W=this.prototype._template;if(W&&!W.__polymerFinalized){W.__polymerFinalized=!0;var m=this.importPath;m=m?_.We(m):"";S(this,W,u,m);this.prototype._bindTemplate(W)}};
Y.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);P.prototype.connectedCallback.call(this)};
Y.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);P.prototype.ready.call(this)};
Y.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));P.prototype._readyClients.call(this)};
Y.prototype._attachDom=function(u){var W=(0,_.bg)(this);if(W.attachShadow)return u?(W.shadowRoot||(W.attachShadow({mode:"open",shadyUpgradeFragment:u}),W.shadowRoot.appendChild(u),this.constructor._styleSheet&&(W.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),w3L&&window.ShadyDOM&&window.ShadyDOM.flushInitial(W.shadowRoot),W.shadowRoot):null;throw Error("Cd");};
Y.prototype.updateStyles=function(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)};
Y.prototype.resolveUrl=function(u,W){!W&&this.importPath&&(W=_.We(this.importPath));return _.We(u,W)};
Y._parseTemplateContent=function(u,W,m){W.dynamicFns=W.dynamicFns||this._properties;return P._parseTemplateContent.call(this,u,W,m)};
Y._addTemplatePropertyEffect=function(u,W,m){!XD||W in this._properties||m.info.part.signature&&m.info.part.signature.static||m.info.part.hostProp||u.nestedTemplate||console.warn("Property '"+W+"' used in template but not declared in 'properties'; attribute will not be observed.");return P._addTemplatePropertyEffect.call(this,u,W,m)};
_.y6.Object.defineProperties(Y,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var u=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof u==="function"&&(u=u());if(u===void 0){if(u=this.hasOwnProperty("is")){u=this.is;var W=null;if(u&&(!ZY||L9f)&&(W=gu.import(u,"template"),ZY&&!W))throw Error("Bd`"+u);u=W}u=u||Object.getPrototypeOf(this.prototype).constructor.template}this._template=u}return this._template},
set:function(u){this._template=u}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var u=this.importMeta;u?this._importPath=xwY(u.url):this._importPath=(u=gu.import(this.is))&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return Y});var nod=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(Y){return Y}}),Bv8=function(Y,S){jAh(Y,S);
this.value=S.reduce(function(P,u,W){return P+cqa(u)+Y[W+1]},Y[0]).toString()},jAh;
Bv8.prototype.toString=function(){return this.value};
_.J6d=function(Y){var S=_.Ch.apply(1,arguments);jAh(Y,S);var P=document.createElement("template");S=S.reduce(function(u,W,m){if(W instanceof HTMLTemplateElement)W=W.innerHTML;else if(W instanceof Bv8)W=cqa(W);else throw Error("Ed`"+W);return u+W+Y[m+1]},Y[0]);
nod&&(S=nod.createHTML(S));P.innerHTML=S;return P};
jAh=function(Y,S){if(!Array.isArray(Y)||!Array.isArray(Y.raw)||S.length!==Y.length-1)throw new TypeError("Fd");};var yU=MK(HTMLElement);var BPh=Ub(function(Y){var S=MK(Y);Y=function(){var P=S.call(this)||this;P.__lastItems=null;P.__lastMulti=null;P.__selectedMap=null;return P};
_.r(Y,S);Y.prototype.__updateSelection=function(P,u){var W=u.path;W=="items"?(u=u.base||[],W=this.__lastItems,P!==this.__lastMulti&&this.clearSelection(),W&&(W=Jqa(u,W),this.__applySplices(W)),this.__lastItems=u,this.__lastMulti=P):u.path=="items.splices"?this.__applySplices(u.value.indexSplices):(P=W.slice(6),u=parseInt(P,10),P.indexOf(".")<0&&P==u&&this.__deselectChangedIdx(u))};
Y.prototype.__applySplices=function(P){for(var u=this,W=this.__selectedMap,m={},J=0;J<P.length;m={s$jscomp$108:void 0},J++){m.s$jscomp$108=P[J];W.forEach(function(b){return function(T,K){T<b.s$jscomp$108.index||(T>=b.s$jscomp$108.index+b.s$jscomp$108.removed.length?W.set(K,T+b.s$jscomp$108.addedCount-b.s$jscomp$108.removed.length):W.set(K,-1))}}(m));
for(var c=0;c<m.s$jscomp$108.addedCount;c++){var C=m.s$jscomp$108.index+c;W.has(this.items[C])&&W.set(this.items[C],C)}}this.__updateLinks();var x=0;W.forEach(function(b,T){b<0?(u.multi?u.splice("selected",x,1):u.selected=u.selectedItem=null,W.delete(T)):x++})};
Y.prototype.__updateLinks=function(){var P=this;this.__dataLinkedPaths={};if(this.multi){var u=0;this.__selectedMap.forEach(function(W){W>=0&&P.linkPaths("items."+W,"selected."+u++)})}else this.__selectedMap.forEach(function(W){P.linkPaths("selected","items."+W);
P.linkPaths("selectedItem","items."+W)})};
Y.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
Y.prototype.isSelected=function(P){return this.__selectedMap.has(P)};
Y.prototype.isIndexSelected=function(P){return this.isSelected(this.items[P])};
Y.prototype.__deselectChangedIdx=function(P){var u=this,W=this.__selectedIndexForItemIndex(P);if(W>=0){var m=0;this.__selectedMap.forEach(function(J,c){W==m++&&u.deselect(c)})}};
Y.prototype.__selectedIndexForItemIndex=function(P){if(P=this.__dataLinkedPaths["items."+P])return parseInt(P.slice(9),10)};
Y.prototype.deselect=function(P){var u=this.__selectedMap.get(P);if(u>=0){this.__selectedMap.delete(P);var W;this.multi&&(W=this.__selectedIndexForItemIndex(u));this.__updateLinks();this.multi?this.splice("selected",W,1):this.selected=this.selectedItem=null}};
Y.prototype.deselectIndex=function(P){this.deselect(this.items[P])};
Y.prototype.select=function(P){this.selectIndex(this.items.indexOf(P))};
Y.prototype.selectIndex=function(P){var u=this.items[P];this.isSelected(u)?this.toggle&&this.deselectIndex(P):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(u,P),this.__updateLinks(),this.multi?this.push("selected",u):this.selected=this.selectedItem=u)};
_.y6.Object.defineProperties(Y,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return Y}),c6t=BPh(yU),NK=function(){return c6t.apply(this,arguments)||this};
_.r(NK,c6t);_.y6.Object.defineProperties(NK,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(NK.is,NK);var Cj_=window.Polymer;window.Polymer=function(Y){return window.Polymer._polymerFn(Y)};
Cj_&&Object.assign(Polymer,Cj_);Polymer._polymerFn=function(){throw Error("Gd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:RiK,resolveUrl:_.We,pathFromUrl:xwY};Polymer.DomModule=gu;Polymer.Async={timeOut:_.AV,animationFrame:_.TR,idlePeriod:iMf,microTask:wu};Polymer.dedupingMixin=Ub;Polymer.wrap=_.bg;Polymer.PropertiesChanged=tfL;Polymer.telemetry={instanceCount:A9h,incrementInstanceCount:function(){A9h++},
registrations:Esa,register:fKU,dumpRegistrations:function(){Esa.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=Uqm;Polymer.CaseMap={dashToCamelCase:mu,camelToDashCase:no};Polymer.PropertyAccessors=HMu;Polymer.TemplateStamp=SVs;Polymer.Path={isPath:jr,root:JJ,isAncestor:vsX,isDescendant:Be,translate:ce,matches:DwK,normalize:Co,split:IKY,get:qz,set:aKK,isDeep:jr};Polymer.Settings={useShadow:sE,useNativeCSSProperties:r9h,useNativeCustomElements:G5i,get rootPath(){return aCJ},setRootPath:function(Y){aCJ=Y},
get sanitizeDOMValue(){return T4},setSanitizeDOMValue:function(Y){T4=Y},
get passiveTouchGestures(){return GzE},setPassiveTouchGestures:function(Y){GzE=Y},
get strictTemplatePolicy(){return ZY},setStrictTemplatePolicy:function(Y){ZY=Y},
get allowTemplateFromDomModule(){return L9f},setAllowTemplateFromDomModule:function(Y){L9f=Y},
get legacyOptimizations(){return FD},setLegacyOptimizations:function(Y){FD=Y},
get syncInitialRender(){return w3L},setSyncInitialRender:function(Y){w3L=Y},
get legacyUndefined(){return EE},setLegacyUndefined:function(Y){EE=Y},
get legacyWarnings(){return XD},setLegacyWarnings:function(Y){XD=Y},
get orderedComputed(){return p3U},setOrderedComputed:function(Y){p3U=Y},
get fastDomIf(){return iT},setFastDomIf:function(Y){iT=Y},
get removeNestedTemplates(){return ZT},setRemoveNestedTemplates:function(Y){ZT=Y},
get suppressTemplateNotifications(){return ox},setSuppressTemplateNotifications:ox};Polymer.rootPath!==void 0&&(aCJ=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(T4=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(GzE=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(ZY=Polymer.strictTemplatePolicy);L9f=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(FD=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(w3L=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(EE=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(XD=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(p3U=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(iT=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(ZT=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(ox=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return T4},
set:function(Y){T4=Y}});Polymer.PropertyEffects=kN;Polymer.StyleGather={stylesFromModules:YPh,stylesFromModule:ORK,stylesFromTemplate:SPh,stylesFromModuleImports:PL1,cssFromModules:WAJ,cssFromModule:uJ1,cssFromTemplate:z38,cssFromModuleImports:function(Y){return(Y=gu.import(Y))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Y):""}};Polymer.ElementMixin=MK;Polymer.updateStyles=function(Y){window.ShadyCSS&&window.ShadyCSS.styleDocument(Y)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Jqa};Polymer.html=_.J6d;Polymer.htmlLiteral=function(Y){return new Bv8(Y,_.Ch.apply(1,arguments))};Polymer.Element=yU;Polymer.ArraySelectorMixin=BPh;Polymer.ArraySelector=NK;var qVt=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,RB3=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Qff=/@media\s(.*)/;var xE9=null,R3J=window.HTMLImports&&window.HTMLImports.whenReady||null,b2u;var xTd=null,HH=null,VU=function(){this.customStyles=[];this.enqueued=!1;Tva(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},bbt=function(Y){!Y.enqueued&&HH&&(Y.enqueued=!0,Tva(HH))};
VU.prototype.addCustomStyle=function(Y){Y.__seenByShadyCSS||(Y.__seenByShadyCSS=!0,this.customStyles.push(Y),bbt(this))};
VU.prototype.getStyleForCustomStyle=function(Y){if(Y.__shadyCSSCachedStyle)return Y.__shadyCSSCachedStyle;var S;Y.getStyle?S=Y.getStyle():S=Y;return S};
VU.prototype.processStyles=function(){for(var Y=this.customStyles,S=0;S<Y.length;S++){var P=Y[S];if(!P.__shadyCSSCachedStyle){var u=this.getStyleForCustomStyle(P);u&&(u=u.__appliedElement||u,xTd&&xTd(u),P.__shadyCSSCachedStyle=u)}}return Y};
VU.prototype.addCustomStyle=VU.prototype.addCustomStyle;VU.prototype.getStyleForCustomStyle=VU.prototype.getStyleForCustomStyle;VU.prototype.processStyles=VU.prototype.processStyles;Object.defineProperties(VU.prototype,{transformCallback:{get:function(){return xTd},
set:function(Y){xTd=Y}},
validateCallback:{get:function(){return HH},
set:function(Y){var S=!1;HH||(S=!0);HH=Y;S&&bbt(this)}}});var EI9=!(window.ShadyDOM&&window.ShadyDOM.inUse),KAU,Mz;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Mz=window.ShadyCSS.cssBuild);var TPS=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?KAU=window.ShadyCSS.nativeCss:window.ShadyCSS?(fwX(window.ShadyCSS),window.ShadyCSS=void 0):fwX(window.WebComponents&&window.WebComponents.flags);var tba=KAU;var Ks3=new VU;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(Y,S){Ks3.processStyles();CLU(Y,S)},
styleElement:function(){Ks3.processStyles()},
styleDocument:function(Y){Ks3.processStyles();CLU(document.body,Y)},
getComputedStyleValue:function(Y,S){return qPU(Y,S)},
flushCustomStyles:function(){},
nativeCss:tba,nativeShadow:EI9,cssBuild:Mz,disableRuntime:TPS});window.ShadyCSS.CustomStyleInterface=Ks3;var EoL=window.ShadyCSS.CustomStyleInterface,ed=function(){var Y=HTMLElement.call(this)||this;Y._style=null;EoL.addCustomStyle(Y);return Y};
_.r(ed,HTMLElement);ed.prototype.getStyle=function(){if(this._style)return this._style;var Y=this.querySelector("style");if(!Y)return null;this._style=Y;var S=Y.getAttribute("include");S&&(Y.removeAttribute("include"),Y.textContent=WAJ(S)+Y.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
ed.prototype.getStyle=ed.prototype.getStyle;window.customElements.define("custom-style",ed);Polymer.CustomStyle=ed;var Ob=function(){this._timer=this._callback=this._asyncModule=null},Yf,goi;
Ob.prototype.setConfig=function(Y,S){var P=this;this._asyncModule=Y;this._callback=S;this._timer=this._asyncModule.run(function(){P._timer=null;Yf.delete(P);P._callback()})};
Ob.prototype.cancel=function(){this.isActive()&&(f9m(this),Yf.delete(this))};
var f9m=function(Y){Y.isActive()&&(Y._asyncModule.cancel(Y._timer),Y._timer=null)};
Ob.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Ob.prototype.isActive=function(){return this._timer!=null};
_.Sp=function(Y,S,P){Y instanceof Ob?f9m(Y):Y=new Ob;Y.setConfig(S,P);return Y};
Yf=new Set;_.Pm=function(Y){Yf.add(Y)};
goi=function(){var Y=!!Yf.size;Yf.forEach(function(S){try{S.flush()}catch(P){setTimeout(function(){throw P;})}});
return Y};var $E8=typeof document.head.style.touchAction==="string",gIY=["mousedown","mousemove","mouseup","click"],wLK=[0,1,4,2],$T3;try{$T3=(new MouseEvent("test",{buttons:1})).buttons===1}catch(Y){$T3=!1}var LAa=$T3,rqa=!1;(function(){try{var Y=Object.defineProperty({},"passive",{get:function(){rqa=!0}});
window.addEventListener("test",null,Y);window.removeEventListener("test",null,Y)}catch(S){}})();
var vIJ=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),DEa=[],r66={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},UE9={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},Iwa=function(Y){var S=Y.sourceCapabilities;if(!S||S.firesTouchEvents)if(Y.__polymerGesturesHandled={skip:!0},Y.type==="click"){S=!1;for(var P=dEY(Y),u=0;u<P.length;u++){if(P[u].nodeType===Node.ELEMENT_NODE)if(P[u].localName==="label")DEa.push(P[u]);
else if(r66[P[u].localName]){var W=P[u];var m=Array.prototype.slice.call(W.labels||[]);if(!m.length){m=[];try{var J=W.getRootNode();if(W.id){var c=J.querySelectorAll("label[for = '"+W.id+"']");for(W=0;W<c.length;W++)m.push(c[W])}}catch(C){}}for(W=0;W<m.length;W++)S=S||DEa.indexOf(m[W])>-1}if(P[u]===Gdt)return}S||(Y.preventDefault(),Y.stopPropagation())}},Gdt=null,uv=null,XL$=0,Z29=0,lwa=-1,i2E=!1;
document.addEventListener("touchend",function(Y){uv||aw$(!0);Gdt=dEY(Y)[0];uv=_.Sp(uv,_.AV.after(2500),function(){aw$();uv=Gdt=null})},rqa?{passive:!0}:!1);
var dEY=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(Y){return Y.composedPath&&Y.composedPath()||[]},DY={},hJ=[];
oIa({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){G4(this.info)},
mousedown:function(Y){if(ru(Y)){var S=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y),P=this;FA9(this.info,function(u){ru(u)||(po("up",S,u),G4(P.info))},function(u){ru(u)&&po("up",S,u);
G4(P.info)});
po("down",S,Y)}},
touchstart:function(Y){po("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y),Y.changedTouches[0],Y)},
touchend:function(Y){po("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y),Y.changedTouches[0],Y)}});
oIa({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(Y){this.moves.length>2&&this.moves.shift();this.moves.push(Y)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;G4(this.info)},
mousedown:function(Y){if(ru(Y)){var S=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y),P=this,u=function(W){var m=W.clientX,J=W.clientY;tFa(P.info,m,J)&&(P.info.state=P.info.started?W.type==="mouseup"?"end":"track":"start",P.info.state==="start"&&ve("tap"),P.info.addMove({x:m,y:J}),ru(W)||(P.info.state="end",G4(P.info)),S&&Aqf(P.info,S,W),P.info.started=!0)};
FA9(this.info,u,function(W){P.info.started&&u(W);G4(P.info)});
this.info.x=Y.clientX;this.info.y=Y.clientY}},
touchstart:function(Y){Y=Y.changedTouches[0];this.info.x=Y.clientX;this.info.y=Y.clientY},
touchmove:function(Y){var S=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y);Y=Y.changedTouches[0];var P=Y.clientX,u=Y.clientY;tFa(this.info,P,u)&&(this.info.state==="start"&&ve("tap"),this.info.addMove({x:P,y:u}),Aqf(this.info,S,Y),this.info.state="track",this.info.started=!0)},
touchend:function(Y){var S=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y);Y=Y.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:Y.clientX,y:Y.clientY}),Aqf(this.info,S,Y))}});
oIa({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(Y){ru(Y)&&(this.info.x=Y.clientX,this.info.y=Y.clientY)},
click:function(Y){ru(Y)&&Qqh(this.info,Y)},
touchstart:function(Y){Y=Y.changedTouches[0];this.info.x=Y.clientX;this.info.y=Y.clientY},
touchend:function(Y){Qqh(this.info,Y.changedTouches[0],Y)}});var hBh=Ub(function(Y){var S=function(){return Y.apply(this,arguments)||this};
_.r(S,Y);S.prototype._addEventListenerToNode=function(P,u,W){IW(P,u,W)||Y.prototype._addEventListenerToNode.call(this,P,u,W)};
S.prototype._removeEventListenerFromNode=function(P,u,W){aW(P,u,W)||Y.prototype._removeEventListenerFromNode.call(this,P,u,W)};
return S});var Wm=Ub(function(Y){var S=function(){return Y.apply(this,arguments)||this};
_.r(S,Y);S.prototype._shouldPropertyChange=function(P,u,W){return kzu(this,P,u,W,!0)};
return S}),voJ=Ub(function(Y){var S=function(){return Y.apply(this,arguments)||this};
_.r(S,Y);S.prototype._shouldPropertyChange=function(P,u,W){return kzu(this,P,u,W,this.mutableData)};
_.y6.Object.defineProperties(S,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return S});
Wm._mutablePropertyChange=kzu;var MFa=!1;var DT_=hBh(voJ(kN(HTMLElement))),zf=function(){var Y=DT_.call(this)||this;if(ZY)throw Error("Hd");Y.root=null;Y.$=null;Y.__children=null;return Y};
_.r(zf,DT_);_.z=zf.prototype;_.z.attributeChangedCallback=function(){this.mutableData=!0};
_.z.connectedCallback=function(){yqf()||(this.style.display="none");this.render()};
_.z.disconnectedCallback=function(){this.__removeChildren()};
_.z.__insertChildren=function(){(0,_.bg)((0,_.bg)(this).parentNode).insertBefore(this.root,this)};
_.z.__removeChildren=function(){if(this.__children)for(var Y=0;Y<this.__children.length;Y++)this.root.appendChild(this.__children[Y])};
_.z.render=function(){var Y=this;if(!this.__children){var S=S||this.querySelector("template");if(!S){var P=new MutationObserver(function(){if(S=Y.querySelector("template"))P.disconnect(),Y.render();else throw Error("Id");});
P.observe(this,{childList:!0});return}this.root=this._stampTemplate(S);this.$=this.root.$;this.__children=[];for(var u=this.root.firstChild;u;u=u.nextSibling)this.__children[this.__children.length]=u;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.y6.Object.defineProperties(zf,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",zf);Polymer.Debouncer=Ob;Polymer.Gestures={gestures:DY,recognizers:hJ,deepTargetFind:sqK,addListener:IW,removeListener:aW,register:oIa,setTouchAction:_.Lo,prevent:ve,resetMouseCanceller:function(){uv&&uv.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:IW,remove:aW};Polymer.GestureEventListeners=hBh;Polymer.MutableData=Wm;Polymer.OptionalMutableData=voJ;Polymer.DomBind=zf;_.mT=function(){do{var Y=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var S=goi()}while(Y||S)};var Nvf=null;H21.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:H21,writable:!0}});var WF$=kN(H21),uW1=Wm(WF$),I9_=kN(function(){}),du=function(Y){var S=I9_.call(this)||this;
S._configureProperties(Y);S.root=S._stampTemplate(S.__dataHost);var P=[];S.children=P;for(var u=S.root.firstChild;u;u=u.nextSibling)P.push(u),u.__templatizeInstance=S;S.__templatizeOwner&&S.__templatizeOwner.__hideTemplateChildren__&&S._showHideChildren(!0);P=S.__templatizeOptions;(Y&&P.instanceProps||!P.instanceProps)&&S._enableProperties();return S};
_.r(du,I9_);_.z=du.prototype;_.z._configureProperties=function(Y){if(this.__templatizeOptions.forwardHostProp)for(var S in this.__hostProps)this._setPendingProperty(S,this.__dataHost["_host_"+S]);for(var P in Y)this._setPendingProperty(P,Y[P])};
_.z.forwardHostProp=function(Y,S){this._setPendingPropertyOrPath(Y,S,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.z._addEventListenerToNode=function(Y,S,P){var u=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(Y,S,function(m){m.model=u;P(m)});
else{var W=this.__dataHost.__dataHost;W&&W._addEventListenerToNode(Y,S,P)}};
_.z._showHideChildren=function(Y){e31(Y,this.children)};
_.z._setUnmanagedPropertyToNode=function(Y,S,P){Y.__hideTemplateChildren__&&Y.nodeType==Node.TEXT_NODE&&S=="textContent"?Y.__polymerTextContent__=P:I9_.prototype._setUnmanagedPropertyToNode.call(this,Y,S,P)};
_.z.dispatchEvent=function(){return!0};
_.y6.Object.defineProperties(du.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var Y=this.__parentModel;if(!Y){var S;Y=this;do Y=Y.__dataHost.__dataHost;while((S=Y.__templatizeOptions)&&!S.parentModel);this.__parentModel=Y}return Y}}});
var Ysh=Wm(du);var nr=function(){var Y=yU.call(this)||this;Y.__renderDebouncer=null;Y._lastIf=!1;Y.__hideTemplateChildren__=!1;return Y};
_.r(nr,yU);_.z=nr.prototype;_.z.__debounceRender=function(){var Y=this;this.__renderDebouncer=_.Sp(this.__renderDebouncer,wu,function(){return Y.__render()});
_.Pm(this.__renderDebouncer)};
_.z.disconnectedCallback=function(){yU.prototype.disconnectedCallback.call(this);var Y=(0,_.bg)(this).parentNode;Y&&(Y.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.bg)(Y).host)||this.__teardownInstance()};
_.z.connectedCallback=function(){yU.prototype.connectedCallback.call(this);yqf()||(this.style.display="none");this.if&&this.__debounceRender()};
_.z.__ensureTemplate=function(){var Y=this;if(!this.__template){var S=this._templateInfo?this:(0,_.bg)(this).querySelector("template");if(!S){var P=new MutationObserver(function(){if((0,_.bg)(Y).querySelector("template"))P.disconnect(),Y.__render();else throw Error("Ld");});
P.observe(this,{childList:!0});return!1}this.__template=S}return!0};
_.z.__ensureInstance=function(){var Y=(0,_.bg)(this).parentNode;if(this.__hasInstance()){var S=this.__getInstanceNodes();if(S&&S.length&&(0,_.bg)(this).previousSibling!==S[S.length-1])for(var P=0,u=void 0;P<S.length&&(u=S[P]);P++)(0,_.bg)(Y).insertBefore(u,this)}else{if(!Y||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(Y)}return!0};
_.z.render=function(){_.mT()};
_.z.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();ox&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.z.__hasInstance=function(){};
_.z.__getInstanceNodes=function(){};
_.z.__createAndInsertInstance=function(){};
_.z.__teardownInstance=function(){};
_.z._showHideChildren=function(){};
_.y6.Object.defineProperties(nr,{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:nr.prototype.__debounceRender},restamp:{type:Boolean,observer:nr.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var a9d=function(){var Y=nr.call(this)||this;Y.__instance=null;Y.__syncInfo=null;return Y};
_.r(a9d,nr);_.z=a9d.prototype;_.z.__hasInstance=function(){return!!this.__instance};
_.z.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.z.__createAndInsertInstance=function(Y){var S=this,P=this.__dataHost||this;if(ZY&&!this.__dataHost)throw Error("Jd");var u=P._bindTemplate(this.__template,!0);u.runEffects=function(W,m,J){var c=S.__syncInfo;if(S.if)c&&(S.__syncInfo=null,S._showHideChildren(),m=Object.assign(c.changedProps,m)),W(m,J);else if(S.__instance)if(c||(c=S.__syncInfo={runEffects:W,changedProps:{}}),J)for(var C in m)W=JJ(C),c.changedProps[W]=S.__dataHost[W];else Object.assign(c.changedProps,m)};
this.__instance=P._stampTemplate(this.__template,u);(0,_.bg)(Y).insertBefore(this.__instance,this)};
_.z.__syncHostProperties=function(){var Y=this.__syncInfo;Y&&(this.__syncInfo=null,Y.runEffects(Y.changedProps,!1))};
_.z.__teardownInstance=function(){var Y=this.__dataHost||this;this.__instance&&(Y._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.z._showHideChildren=function(){var Y=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==Y&&(this.__instance.__hidden=Y,e31(Y,this.__instance.templateInfo.childNodes));Y||this.__syncHostProperties()};
var Lsi=function(){var Y=nr.call(this)||this;Y.__ctor=null;Y.__instance=null;Y.__invalidProps=null;return Y};
_.r(Lsi,nr);_.z=Lsi.prototype;_.z.__hasInstance=function(){return!!this.__instance};
_.z.__getInstanceNodes=function(){return this.__instance.children};
_.z.__createAndInsertInstance=function(Y){this.__ctor||(this.__ctor=lg(this.__template,this,{mutableData:!0,forwardHostProp:function(S,P){this.__instance&&(this.if?this.__instance.forwardHostProp(S,P):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[JJ(S)]=!0))}}));
this.__instance=new this.__ctor;(0,_.bg)(Y).insertBefore(this.__instance.root,this)};
_.z.__teardownInstance=function(){if(this.__instance){var Y=this.__instance.children;if(Y&&Y.length){var S=(0,_.bg)(Y[0]).parentNode;if(S){S=(0,_.bg)(S);for(var P=0,u=void 0;P<Y.length&&(u=Y[P]);P++)S.removeChild(u)}}this.__instance=this.__invalidProps=null}};
_.z.__syncHostProperties=function(){var Y=this.__invalidProps;if(Y){this.__invalidProps=null;for(var S in Y)this.__instance._setPendingProperty(S,this.__dataHost[S]);this.__instance._flushProperties()}};
_.z._showHideChildren=function(){var Y=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==Y&&(this.__instance.__hidden=Y,this.__instance._showHideChildren(Y));Y||this.__syncHostProperties()};
_.fc=iT?a9d:Lsi;customElements.define(_.fc.is,_.fc);Polymer.enqueueDebouncer=_.Pm;Polymer.flush=_.mT;Polymer.Templatize={templatize:lg,modelForElement:BHE};Polymer.TemplateInstanceBase=du;Polymer.DomIf=_.fc;var wuf=voJ(yU),EX=function(){var Y=wuf.call(this)||this;Y.__instances=[];Y.__renderDebouncer=null;Y.__itemsIdxToInstIdx={};Y.__chunkCount=null;Y.__renderStartTime=null;Y.__itemsArrayChanged=!1;Y.__shouldMeasureChunk=!1;Y.__shouldContinueChunking=!1;Y.__chunkingId=0;Y.__sortFn=null;Y.__filterFn=null;Y.__observePaths=null;Y.__ctor=null;Y.__isDetached=!0;Y.template=null;return Y};
_.r(EX,wuf);_.z=EX.prototype;_.z.disconnectedCallback=function(){wuf.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var Y=0;Y<this.__instances.length;Y++)this.__detachInstance(Y);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.z.connectedCallback=function(){wuf.prototype.connectedCallback.call(this);yqf()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var Y=(0,_.bg)((0,_.bg)(this).parentNode),S=0;S<this.__instances.length;S++)this.__attachInstance(S,Y);this.__chunkingId&&this.__render()}};
_.z.__ensureTemplatized=function(){var Y=this;if(!this.__ctor){var S=this.template=this._templateInfo?this:this.querySelector("template");if(!S){var P=new MutationObserver(function(){if(Y.querySelector("template"))P.disconnect(),Y.__render();else throw Error("Md");});
P.observe(this,{childList:!0});return!1}var u={};u[this.as]=!0;u[this.indexAs]=!0;u[this.itemsIndexAs]=!0;this.__ctor=lg(S,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:u,forwardHostProp:function(W,m){for(var J=this.__instances,c=0,C=void 0;c<J.length&&(C=J[c]);c++)C.forwardHostProp(W,m)},
notifyInstanceProp:function(W,m,J){DwK(this.as,m)&&(W=W[this.itemsIndexAs],m==this.as&&(this.items[W]=J),m=ce(this.as,"items."+W,m),this.notifyPath(m,J))}})}return!0};
_.z.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.z.__functionFromPropertyValue=function(Y){if(typeof Y==="string"){var S=this.__getMethodHost();return function(){return S[Y].apply(S,arguments)}}return Y};
_.z.__sortChanged=function(Y){this.__sortFn=this.__functionFromPropertyValue(Y);this.items&&this.__debounceRender(this.__render)};
_.z.__filterChanged=function(Y){this.__filterFn=this.__functionFromPropertyValue(Y);this.items&&this.__debounceRender(this.__render)};
_.z.__computeFrameTime=function(Y){return Math.ceil(1E3/Y)};
_.z.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.z.__handleObservedPaths=function(Y){if(this.__sortFn||this.__filterFn)if(!Y)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var S=this.__observePaths,P=0;P<S.length;P++)Y.indexOf(S[P])===0&&this.__debounceRender(this.__render,this.delay)};
_.z.__itemsChanged=function(Y){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(Y.path,Y.value)||(Y.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.z.__debounceRender=function(Y,S){S=S===void 0?0:S;this.__renderDebouncer=_.Sp(this.__renderDebouncer,S>0?_.AV.after(S):wu,Y.bind(this));_.Pm(this.__renderDebouncer)};
_.z.render=function(){this.__debounceRender(this.__render);_.mT()};
_.z.__render=function(){var Y=this;if(this.__ensureTemplatized()){var S=this.items||[],P=this.__sortAndFilterItems(S),u=this.__calculateLimit(P.length);this.__updateInstances(S,u,P);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){Y.__chunkingId=null;Y.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);ox&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.z.__sortAndFilterItems=function(Y){for(var S=this,P=Array(Y.length),u=0;u<Y.length;u++)P[u]=u;this.__filterFn&&(P=P.filter(function(W,m,J){return S.__filterFn(Y[W],m,J)}));
this.__sortFn&&P.sort(function(W,m){return S.__sortFn(Y[W],Y[m])});
return P};
_.z.__calculateLimit=function(Y){var S=Y,P=this.__instances.length;if(this.initialCount){var u;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(S=Math.min(Y,this.initialCount),this.__chunkCount=(u=Math.max(S-P,0))||1):(u=Math.min(Math.max(Y-P,0),this.__chunkCount),S=Math.min(P+u,Y));this.__shouldMeasureChunk=u===this.__chunkCount;this.__shouldContinueChunking=S<Y;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return S};
_.z.__continueChunking=function(){if(this.__shouldMeasureChunk){var Y=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/Y*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.z.__updateInstances=function(Y,S,P){var u=this.__itemsIdxToInstIdx={},W;for(W=0;W<S;W++){var m=this.__instances[W],J=P[W],c=Y[J];u[J]=W;m?(m._setPendingProperty(this.as,c),m._setPendingProperty(this.indexAs,W),m._setPendingProperty(this.itemsIndexAs,J),m._flushProperties()):this.__insertInstance(c,W,J)}for(Y=this.__instances.length-1;Y>=W;Y--)this.__detachAndRemoveInstance(Y)};
_.z.__detachInstance=function(Y){Y=this.__instances[Y];for(var S=(0,_.bg)(Y.root),P=0;P<Y.children.length;P++)S.appendChild(Y.children[P]);return Y};
_.z.__attachInstance=function(Y,S){S.insertBefore(this.__instances[Y].root,this)};
_.z.__detachAndRemoveInstance=function(Y){this.__detachInstance(Y);this.__instances.splice(Y,1)};
_.z.__stampInstance=function(Y,S,P){var u={};u[this.as]=Y;u[this.indexAs]=S;u[this.itemsIndexAs]=P;return new this.__ctor(u)};
_.z.__insertInstance=function(Y,S,P){Y=this.__stampInstance(Y,S,P);P=(P=this.__instances[S+1])?P.children[0]:this;(0,_.bg)((0,_.bg)(this).parentNode).insertBefore(Y.root,P);return this.__instances[S]=Y};
_.z._showHideChildren=function(Y){for(var S=0;S<this.__instances.length;S++)this.__instances[S]._showHideChildren(Y)};
_.z.__handleItemPath=function(Y,S){var P=Y.slice(6),u=P.indexOf(".");Y=u<0?P:P.substring(0,u);if(Y==parseInt(Y,10)){P=u<0?"":P.substring(u+1);this.__handleObservedPaths(P);if(Y=this.__instances[this.__itemsIdxToInstIdx[Y]])Y._setPendingPropertyOrPath(this.as+(P?"."+P:""),S,!1,!0),Y._flushProperties();return!0}};
_.z.itemForElement=function(Y){return(Y=this.modelForElement(Y))&&Y[this.as]};
_.z.indexForElement=function(Y){return(Y=this.modelForElement(Y))&&Y[this.indexAs]};
_.z.modelForElement=function(Y){return BHE(this.template,Y)};
_.y6.Object.defineProperties(EX,{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:EX.prototype.__sortChanged},filter:{type:Function,observer:EX.prototype.__filterChanged},observe:{type:String,observer:EX.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!ox,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.*)"]}}});
EX.prototype._setRenderedItemCount=function(){};
customElements.define(EX.is,EX);Polymer.DomRepeat=EX;var puJ=function(Y,S){var P=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=Y;this.callback=S;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){P._schedule()};
this.connect();this._schedule()},Fsi=function(Y){var S=(0,_.bg)(Y);
if(ig(Y))return S.assignedNodes({flatten:!0});Y=[];for(var P=0;P<S.childNodes.length;P++){var u=S.childNodes[P];ig(u)?Y.push.apply(Y,_.cz((0,_.bg)(u).assignedNodes({flatten:!0}))):Y.push(u)}return Y};
_.z=puJ.prototype;_.z.connect=function(){var Y=this;ig(this._target)?this._listenSlots([this._target]):(0,_.bg)(this._target).children&&(this._listenSlots((0,_.bg)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(S){Y._processMutations(S)}):(this._nativeChildrenObserver=new MutationObserver(function(S){Y._processMutations(S)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.z.disconnect=function(){ig(this._target)?this._unlistenSlots([this._target]):(0,_.bg)(this._target).children&&(this._unlistenSlots((0,_.bg)(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};
_.z._schedule=function(){var Y=this;this._scheduled||(this._scheduled=!0,wu.run(function(){return Y.flush()}))};
_.z._processMutations=function(Y){this._processSlotMutations(Y);this.flush()};
_.z._processSlotMutations=function(Y){if(Y)for(var S=0;S<Y.length;S++){var P=Y[S];P.addedNodes&&this._listenSlots(P.addedNodes);P.removedNodes&&this._unlistenSlots(P.removedNodes)}};
_.z.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var Y={target:this._target,addedNodes:[],removedNodes:[]},S=Fsi(this._target),P=Jqa(S,this._effectiveNodes),u=0,W=void 0;u<P.length&&(W=P[u]);u++)for(var m=0,J=void 0;m<W.removed.length&&(J=W.removed[m]);m++)Y.removedNodes.push(J);
u=0;for(W=void 0;u<P.length&&(W=P[u]);u++)for(m=W.index;m<W.index+W.addedCount;m++)Y.addedNodes.push(S[m]);this._effectiveNodes=S;S=!1;if(Y.addedNodes.length||Y.removedNodes.length)S=!0,this.callback.call(this._target,Y);return S};
_.z._listenSlots=function(Y){for(var S=0;S<Y.length;S++){var P=Y[S];ig(P)&&P.addEventListener("slotchange",this._boundSchedule)}};
_.z._unlistenSlots=function(Y){for(var S=0;S<Y.length;S++){var P=Y[S];ig(P)&&P.removeEventListener("slotchange",this._boundSchedule)}};var jp=Element.prototype,sAs=jp.matches||jp.matchesSelector||jp.mozMatchesSelector||jp.msMatchesSelector||jp.oMatchesSelector||jp.webkitMatchesSelector,dTf=function(Y,S){return sAs.call(Y,S)},oW=function(Y){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(Y);
this.node=Y},ibS;
_.z=oW.prototype;_.z.observeNodes=function(Y){return new puJ(this.node,Y)};
_.z.unobserveNodes=function(Y){Y.disconnect()};
_.z.notifyObserver=function(){};
_.z.deepContains=function(Y){if((0,_.bg)(this.node).contains(Y))return!0;var S=Y;for(Y=Y.ownerDocument;S&&S!==Y&&S!==this.node;)S=(0,_.bg)(S).parentNode||(0,_.bg)(S).host;return S===this.node};
_.z.getOwnerRoot=function(){return(0,_.bg)(this.node).getRootNode()};
_.z.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.bg)(this.node).assignedNodes({flatten:!0}):[]};
_.z.getDestinationInsertionPoints=function(){for(var Y=[],S=(0,_.bg)(this.node).assignedSlot;S;)Y.push(S),S=(0,_.bg)(S).assignedSlot;return Y};
_.z.importNode=function(Y,S){return(0,_.bg)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(Y,S)};
_.z.getEffectiveChildNodes=function(){return Fsi(this.node)};
_.z.queryDistributedElements=function(Y){for(var S=this.getEffectiveChildNodes(),P=[],u=0,W=S.length,m=void 0;u<W&&(m=S[u]);u++)m.nodeType===Node.ELEMENT_NODE&&dTf(m,Y)&&P.push(m);return P};
_.y6.Object.defineProperties(oW.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var Y=this.node;return Y._activeElement!==void 0?Y._activeElement:Y.activeElement}}});
var J7=function(Y){this.event=Y};
_.y6.Object.defineProperties(J7.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 l9L=oW;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var XuJ=window.ShadyDOM.Wrapper,Zbi=function(){return XuJ.apply(this,arguments)||this};
_.r(Zbi,XuJ);Object.getOwnPropertyNames(oW.prototype).forEach(function(Y){Y!="activeElement"&&Y!="constructor"&&(Zbi.prototype[Y]=oW.prototype[Y])});
CJu(Zbi.prototype,["classList"]);l9L=Zbi;Object.defineProperties(J7.prototype,{localTarget:{get:function(){var Y=this.event.currentTarget;Y=Y&&_.G5(Y).getOwnerRoot();for(var S=this.path,P=0;P<S.length;P++){var u=S[P];if(_.G5(u).getOwnerRoot()===Y)return u}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else chu(),CJu(oW.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),qsK();ibS=l9L;_.G5=function(Y){Y=Y||document;if(Y instanceof l9L)return Y;if(Y instanceof J7)return Y;var S=Y.__domApi;S||(Y instanceof Event?S=new J7(Y):S=new l9L(Y),Y.__domApi=S);return S};var oof=/:host\(:dir\((ltr|rtl)\)\)/g,tR3=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,A6J=/:dir\((?:ltr|rtl)\)/,UT6=!(!window.ShadyDOM||!window.ShadyDOM.inUse),AJ=[],Bm=null,tJ="",QAS=Ub(function(Y){UT6||Bm||(tJ=document.documentElement.getAttribute("dir"),Bm=new MutationObserver(R6a),Bm.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var S=HMu(Y);Y=function(){var P=S.call(this)||this;P.__autoDirOptOut=!1;return P};
_.r(Y,S);Y._processStyleText=function(P,u){P=S._processStyleText.call(this,P,u);!UT6&&A6J.test(P)&&(P=this._replaceDirInCssText(P),this.__activateDir=!0);return P};
Y._replaceDirInCssText=function(P){P=P.replace(oof,':host([dir="$1"])');return P=P.replace(tR3,':host([dir="$2"]) $1')};
Y.prototype.ready=function(){S.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
Y.prototype.connectedCallback=function(){S.prototype.connectedCallback&&S.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Bm&&Bm.takeRecords().length&&R6a(),AJ.push(this),this.__autoDirOptOut||this.setAttribute("dir",tJ))};
Y.prototype.disconnectedCallback=function(){S.prototype.disconnectedCallback&&S.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var P=AJ.indexOf(this);P>-1&&AJ.splice(P,1)}};
Y.__activateDir=!1;return Y});var kdS=function(Y){for(;Y;){var S=Object.getOwnPropertyDescriptor(Y,"observedAttributes");if(S)return S.get;Y=Object.getPrototypeOf(Y.prototype).constructor}return function(){return[]}};
Ub(function(Y){var S=MK(Y),P=kdS(S);Y=function(){return S.call(this)||this};
_.r(Y,S);Y.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:S.prototype._initializeProperties.call(this)};
Y.prototype._enableProperties=function(){this.__isUpgradeDisabled||S.prototype._enableProperties.call(this)};
Y.prototype._canApplyPropertyDefault=function(u){return S.prototype._canApplyPropertyDefault.call(this,u)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(u))};
Y.prototype.attributeChangedCallback=function(u,W,m,J){u=="disable-upgrade"?this.__isUpgradeDisabled&&m==null&&(S.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.bg)(this).isConnected&&S.prototype.connectedCallback.call(this)):S.prototype.attributeChangedCallback.call(this,u,W,m,J)};
Y.prototype.connectedCallback=function(){this.__isUpgradeDisabled||S.prototype.connectedCallback.call(this)};
Y.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||S.prototype.disconnectedCallback.call(this)};
_.y6.Object.defineProperties(Y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return P.call(this).concat("disable-upgrade")}}});
return Y});var UE=!1,b6a=[],Q6=[];var f_a=window.ShadyDOM,gaY=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",rhh):document.readyState==="interactive"||document.readyState==="complete"?rhh():window.addEventListener("DOMContentLoaded",rhh);var vaY=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=""},GtU=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,h6a=/@import[^;]*;/gim,pBa=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,FFU=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,sfY=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,dFX=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,LFU=/^@[^\s]*keyframes/,
a_X=/\s+/g;var l_a={};var i6E=Promise.resolve();var MRu=new Set;var y6t=/;\s*/m,NP_=/^\s*(initial)|(inherit)\s*$/,Hbh=/\s*!important/,VRJ=function(){this._map={}};
VRJ.prototype.set=function(Y,S){Y=Y.trim();this._map[Y]={properties:S,dependants:{}}};
VRJ.prototype.get=function(Y){Y=Y.trim();return this._map[Y]||null};
var eBu=null,cm=function(){this._measureElement=this._currentElement=null;this._map=new VRJ};
_.z=cm.prototype;_.z.detectMixin=function(Y){Y=RB3.test(Y)||qVt.test(Y);RB3.lastIndex=0;qVt.lastIndex=0;return Y};
_.z.transformTemplate=function(Y,S){if(Y._gatheredStyle===void 0){var P=[];for(var u=Y.content.querySelectorAll("style"),W=0;W<u.length;W++){var m=u[W];if(m.hasAttribute("shady-unscoped")){if(!EI9){var J=m.textContent;if(!MRu.has(J)){MRu.add(J);var c=document.createElement("style");c.setAttribute("shady-unscoped","");c.textContent=J;document.head.appendChild(c)}m.parentNode.removeChild(m)}}else P.push(m.textContent),m.parentNode.removeChild(m)}(P=P.join("").trim())?(u=document.createElement("style"),
u.textContent=P,Y.content.insertBefore(u,Y.content.firstChild),P=u):P=null;Y._gatheredStyle=P}return(Y=Y._gatheredStyle)?this.JSC$9041_transformStyle(Y,S):null};
_.z.JSC$9041_transformStyle=function(Y,S){S=S===void 0?"":S;var P=UFE(Y);this.transformRules(P,S);Y.textContent=AhX(P);return P};
_.z.transformCustomStyle=function(Y){var S=this,P=UFE(Y);ktK(P,function(u){u.selector===":root"&&(u.selector="html");S.transformRule(u)});
Y.textContent=AhX(P);return P};
_.z.transformRules=function(Y,S){var P=this;this._currentElement=S;ktK(Y,function(u){P.transformRule(u)});
this._currentElement=null};
_.z.transformRule=function(Y){Y.cssText=Obs(this,Y.parsedCssText,Y);Y.selector===":root"&&(Y.selector=":host > *")};
var Obs=function(Y,S,P){S=S.replace(qVt,function(u,W,m,J){return Y._produceCssProperties(u,W,m,J,P)});
return Y._consumeCssProperties(S,P)};
_.z=cm.prototype;_.z._getInitialValueForProperty=function(Y){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(Y)};
_.z._fallbacksFromPreviousRules=function(Y){for(var S=this,P=Y;P.parent;)P=P.parent;var u={},W=!1;ktK(P,function(m){(W=W||m===Y)||m.selector===Y.selector&&Object.assign(u,S._cssTextToMap(m.parsedCssText))});
return u};
_.z._consumeCssProperties=function(Y,S){for(var P;P=RB3.exec(Y);){var u=P[0],W=P[1];P=P.index;var m=P+u.indexOf("@apply"),J=P+u.length;u=Y.slice(0,m);Y=Y.slice(J);m=S?this._fallbacksFromPreviousRules(S):{};Object.assign(m,this._cssTextToMap(u));W=this._atApplyToCssProperties(W,m);Y=u+W+Y;RB3.lastIndex=P+W.length}return Y};
_.z._atApplyToCssProperties=function(Y,S){Y=Y.replace(y6t,"");var P=[],u=this._map.get(Y);u||(this._map.set(Y,{}),u=this._map.get(Y));if(u){this._currentElement&&(u.dependants[this._currentElement]=!0);var W,m=u.properties;for(W in m){var J=S&&S[W];u=[W,": var(",Y,"_-_",W];J&&u.push(",",J.replace(Hbh,""));u.push(")");Hbh.test(m[W])&&u.push(" !important");P.push(u.join(""))}}return P.join("; ")};
_.z._replaceInitialOrInherit=function(Y,S){var P=NP_.exec(S);P&&(S=P[1]?this._getInitialValueForProperty(Y):"apply-shim-inherit");return S};
_.z._cssTextToMap=function(Y,S){S=S===void 0?!1:S;Y=Y.split(";");for(var P,u,W={},m=0;m<Y.length;m++)if(P=Y[m])u=P.split(":"),u.length>1&&(P=u[0].trim(),u=u.slice(1).join(":"),S&&(u=this._replaceInitialOrInherit(P,u)),W[P]=u);return W};
_.z._invalidateMixinEntry=function(Y){if(eBu)for(var S in Y.dependants)S!==this._currentElement&&eBu(S)};
_.z._produceCssProperties=function(Y,S,P,u,W){var m=this;P&&MbK(P,function(v,a){a&&m._map.get(a)&&(u="@apply "+a+";")});
if(!u)return Y;var J=this._consumeCssProperties(""+u,W);W=Y.slice(0,Y.indexOf("--"));var c=J=this._cssTextToMap(J,!0),C=this._map.get(S),x=C&&C.properties;x?c=Object.assign(Object.create(x),J):this._map.set(S,c);var b=[],T,K=!1;for(T in c){var G=J[T];G===void 0&&(G="initial");!x||T in x||(K=!0);b.push(S+"_-_"+T+": "+G)}K&&this._invalidateMixinEntry(C);C&&(C.properties=c);P&&(W=Y+";"+W);return W+b.join("; ")+";"};
cm.prototype.detectMixin=cm.prototype.detectMixin;cm.prototype.transformStyle=cm.prototype.JSC$9041_transformStyle;cm.prototype.transformCustomStyle=cm.prototype.transformCustomStyle;cm.prototype.transformRules=cm.prototype.transformRules;cm.prototype.transformRule=cm.prototype.transformRule;cm.prototype.transformTemplate=cm.prototype.transformTemplate;cm.prototype._separator="_-_";Object.defineProperty(cm.prototype,"invalidCallback",{get:function(){return eBu},
set:function(Y){eBu=Y}});var Cr=new cm,YC6=function(){this.customStyleInterface=null;Cr.invalidCallback=XB9},qJ=function(Y){!Y.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(Y.customStyleInterface=window.ShadyCSS.CustomStyleInterface,Y.customStyleInterface.transformCallback=function(S){Cr.transformCustomStyle(S)},Y.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){Y.customStyleInterface.enqueued&&Y.flushCustomStyles()})})};
_.z=YC6.prototype;_.z.prepareTemplate=function(Y,S){qJ(this);yhu(Y)===""&&(l_a[S]=Y,S=Cr.transformTemplate(Y,S),Y._styleAst=S)};
_.z.flushCustomStyles=function(){qJ(this);if(this.customStyleInterface){var Y=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var S=0;S<Y.length;S++){var P=this.customStyleInterface.getStyleForCustomStyle(Y[S]);P&&Cr.transformCustomStyle(P)}this.customStyleInterface.enqueued=!1}}};
_.z.styleSubtree=function(Y,S){qJ(this);S&&CLU(Y,S);if(Y.shadowRoot)for(this.styleElement(Y),Y=Y.shadowRoot.children||Y.shadowRoot.childNodes,S=0;S<Y.length;S++)this.styleSubtree(Y[S]);else for(Y=Y.children||Y.childNodes,S=0;S<Y.length;S++)this.styleSubtree(Y[S])};
_.z.styleElement=function(Y){qJ(this);var S=Y.localName,P;S?S.indexOf("-")>-1?P=S:P=Y.getAttribute&&Y.getAttribute("is")||"":P=Y.is;S=l_a[P];if(!(S&&yhu(S)!==""||!S||Z6X(S))){if(Z6X(S)||S._applyShimValidatingVersion!==S._applyShimNextVersion)this.prepareTemplate(S,P),oa8(S);if(Y=Y.shadowRoot)if(Y=Y.querySelector("style"))Y.__cssRules=S._styleAst,Y.textContent=AhX(S._styleAst)}};
_.z.styleDocument=function(Y){qJ(this);this.styleSubtree(document.body,Y)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var RM=new YC6,SCS=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(Y,S){RM.flushCustomStyles();RM.prepareTemplate(Y,S)},
prepareTemplateStyles:function(Y,S,P){window.ShadyCSS.prepareTemplate(Y,S,P)},
prepareTemplateDom:function(){},
styleSubtree:function(Y,S){RM.flushCustomStyles();RM.styleSubtree(Y,S)},
styleElement:function(Y){RM.flushCustomStyles();RM.styleElement(Y)},
styleDocument:function(Y){RM.flushCustomStyles();RM.styleDocument(Y)},
getComputedStyleValue:function(Y,S){return qPU(Y,S)},
flushCustomStyles:function(){RM.flushCustomStyles()},
nativeCss:tba,nativeShadow:EI9,cssBuild:Mz,disableRuntime:TPS};SCS&&(window.ShadyCSS.CustomStyleInterface=SCS)}window.ShadyCSS.ApplyShim=Cr;var PIs;PIs=window.ShadyCSS;_.xf=Ub(function(Y){Y=hBh(MK(Y));var S=mTs?Y:QAS(Y),P=kdS(S),u={x:"pan-x",y:"pan-y",none:"none",all:"auto"};Y=function(){return S.call(this)||this};
_.r(Y,S);Y.prototype.created=function(){};
Y.prototype.__attributeReaction=function(W,m,J){(this.__dataAttributes&&this.__dataAttributes[W]||W==="disable-upgrade")&&this.attributeChangedCallback(W,m,J,null)};
Y.prototype.setAttribute=function(W,m){if(F9S&&!this._legacyForceObservedAttributes){var J=this.getAttribute(W);S.prototype.setAttribute.call(this,W,m);this.__attributeReaction(W,J,String(m))}else S.prototype.setAttribute.call(this,W,m)};
Y.prototype.removeAttribute=function(W){if(F9S&&!this._legacyForceObservedAttributes){var m=this.getAttribute(W);S.prototype.removeAttribute.call(this,W);this.__attributeReaction(W,m,null)}else S.prototype.removeAttribute.call(this,W)};
Y.prototype._enableProperties=function(){this.__isUpgradeDisabled||S.prototype._enableProperties.call(this)};
Y.prototype._canApplyPropertyDefault=function(W){return S.prototype._canApplyPropertyDefault.call(this,W)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(W))};
Y.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(S.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
Y.prototype.attached=function(){};
Y.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(S.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
Y.prototype.detached=function(){};
Y.prototype.attributeChangedCallback=function(W,m,J,c){m!==J&&(W=="disable-upgrade"?this.__isUpgradeDisabled&&J==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.bg)(this).isConnected&&this.connectedCallback()):(S.prototype.attributeChangedCallback.call(this,W,m,J,c),this.attributeChanged(W,m,J)))};
Y.prototype.attributeChanged=function(){};
Y.prototype._initializeProperties=function(){if(FD&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var W=Object.getPrototypeOf(this);W.hasOwnProperty("__hasRegisterFinished")||(this._registered(),W.__hasRegisterFinished=!0);S.prototype._initializeProperties.call(this);this.root=this;this.created();F9S&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
Y.prototype._takeAttributes=function(){for(var W=this.attributes,m=0,J=W.length;m<J;m++){var c=W[m];this.__attributeReaction(c.name,null,c.value)}};
Y.prototype._registered=function(){};
Y.prototype.ready=function(){this._ensureAttributes();S.prototype.ready.call(this)};
Y.prototype._ensureAttributes=function(){};
Y.prototype._applyListeners=function(){};
Y.prototype.serialize=function(W){return this._serializeValue(W)};
Y.prototype.deserialize=function(W,m){return this._deserializeValue(W,m)};
Y.prototype.reflectPropertyToAttribute=function(W,m,J){this._propertyToAttribute(W,m,J)};
Y.prototype.serializeValueToAttribute=function(W,m,J){this._valueToNodeAttribute(J||this,W,m)};
Y.prototype.extend=function(W,m){if(!W||!m)return W||m;for(var J=Object.getOwnPropertyNames(m),c=0,C=void 0;c<J.length&&(C=J[c]);c++){var x=Object.getOwnPropertyDescriptor(m,C);x&&Object.defineProperty(W,C,x)}return W};
Y.prototype.mixin=function(W,m){for(var J in m)W[J]=m[J];return W};
Y.prototype.chainObject=function(W,m){W&&m&&W!==m&&(W.__proto__=m);return W};
Y.prototype.instanceTemplate=function(W){W=this.constructor._contentForTemplate(W);return document.importNode(W,!0)};
Y.prototype.fire=function(W,m,J){J=J||{};m=m===null||m===void 0?{}:m;W=new Event(W,{bubbles:J.bubbles===void 0?!0:J.bubbles,cancelable:!!J.cancelable,composed:J.composed===void 0?!0:J.composed});W.detail=m;(0,_.bg)(J.node||this).dispatchEvent(W);return W};
Y.prototype.listen=function(W,m,J){W=W||this;var c=this.__boundListeners||(this.__boundListeners=new WeakMap),C=c.get(W);C||(C={},c.set(W,C));c=m+J;C[c]||(C[c]=this._addMethodEventListenerToNode(W,m,J,this))};
Y.prototype.unlisten=function(W,m,J){W=W||this;var c=this.__boundListeners&&this.__boundListeners.get(W);J=m+J;var C=c&&c[J];C&&(this._removeEventListenerFromNode(W,m,C),c[J]=null)};
Y.prototype.setScrollDirection=function(W,m){_.Lo(m||this,u[W]||"auto")};
Y.prototype.$$=function(W){return this.root.querySelector(W)};
Y.prototype.distributeContent=function(){var W=_.G5(this);window.ShadyDOM&&W.shadowRoot&&ShadyDOM.flush()};
Y.prototype.getEffectiveChildNodes=function(){return _.G5(this).getEffectiveChildNodes()};
Y.prototype.queryDistributedElements=function(W){return _.G5(this).queryDistributedElements(W)};
Y.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(W){return W.nodeType===Node.ELEMENT_NODE})};
Y.prototype.getEffectiveTextContent=function(){for(var W=this.getEffectiveChildNodes(),m=[],J=0,c;c=W[J];J++)c.nodeType!==Node.COMMENT_NODE&&m.push(c.textContent);return m.join("")};
Y.prototype.queryEffectiveChildren=function(W){return(W=this.queryDistributedElements(W))&&W[0]};
Y.prototype.queryAllEffectiveChildren=function(W){return this.queryDistributedElements(W)};
Y.prototype.getContentChildNodes=function(W){return(W=this.root.querySelector(W||"slot"))?_.G5(W).getDistributedNodes():[]};
Y.prototype.getContentChildren=function(W){return this.getContentChildNodes(W).filter(function(m){return m.nodeType===Node.ELEMENT_NODE})};
Y.prototype.isLightDescendant=function(W){return this!==W&&(0,_.bg)(this).contains(W)&&(0,_.bg)(this).getRootNode()===(0,_.bg)(W).getRootNode()};
Y.prototype.isLocalDescendant=function(W){return this.root===(0,_.bg)(W).getRootNode()};
Y.prototype.scopeSubtree=function(W,m){return $FY(W,m===void 0?!1:m)};
Y.prototype.getComputedStyleValue=function(W){return PIs.getComputedStyleValue(this,W)};
Y.prototype.debounce=function(W,m,J){this._debouncers=this._debouncers||{};return this._debouncers[W]=_.Sp(this._debouncers[W],J>0?_.AV.after(J):wu,m.bind(this))};
Y.prototype.isDebouncerActive=function(W){this._debouncers=this._debouncers||{};W=this._debouncers[W];return!(!W||!W.isActive())};
Y.prototype.flushDebouncer=function(W){this._debouncers=this._debouncers||{};(W=this._debouncers[W])&&W.flush()};
Y.prototype.cancelDebouncer=function(W){this._debouncers=this._debouncers||{};(W=this._debouncers[W])&&W.cancel()};
Y.prototype.async=function(W,m){return m>0?_.AV.run(W.bind(this),m):~wu.run(W.bind(this))};
Y.prototype.cancelAsync=function(W){W<0?wu.cancel(~W):_.AV.cancel(W)};
Y.prototype.create=function(W,m){W=document.createElement(W);if(m)if(W.setProperties)W.setProperties(m);else for(var J in m)W[J]=m[J];return W};
Y.prototype.elementMatches=function(W,m){return dTf(m||this,W)};
Y.prototype.toggleAttribute=function(W,m){var J=this;arguments.length===3&&(J=arguments[2]);arguments.length==1&&(m=!J.hasAttribute(W));if(m)return(0,_.bg)(J).setAttribute(W,""),!0;(0,_.bg)(J).removeAttribute(W);return!1};
Y.prototype.toggleClass=function(W,m,J){J=J||this;arguments.length==1&&(m=!J.classList.contains(W));m?J.classList.add(W):J.classList.remove(W)};
Y.prototype.transform=function(W,m){m=m||this;m.style.webkitTransform=W;m.style.transform=W};
Y.prototype.translate3d=function(W,m,J,c){this.transform("translate3d("+W+","+m+","+J+")",c||this)};
Y.prototype.arrayDelete=function(W,m){if(Array.isArray(W)){if(m=W.indexOf(m),m>=0)return W.splice(m,1)}else if(m=qz(this,W).indexOf(m),m>=0)return this.splice(W,m,1);return null};
Y.prototype._logger=function(W,m){Array.isArray(m)&&m.length===1&&Array.isArray(m[0])&&(m=m[0]);switch(W){case "log":case "warn":case "error":console[W].apply(console,_.cz(m))}};
Y.prototype._log=function(){this._logger("log",_.Ch.apply(0,arguments))};
Y.prototype._warn=function(){this._logger("warn",_.Ch.apply(0,arguments))};
Y.prototype._error=function(){this._logger("error",_.Ch.apply(0,arguments))};
Y.prototype._logf=function(W){return["[%s::%s]",this.is,W].concat(_.cz(_.Ch.apply(1,arguments)))};
_.y6.Object.defineProperties(Y.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var W=(0,_.bg)(this).getRootNode();return W instanceof DocumentFragment?W.host:W}}});
_.y6.Object.defineProperties(Y,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return F9S&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],fKU(this.prototype)),this.__observedAttributes):P.call(this).concat("disable-upgrade")}}});
Y.prototype.is="";return Y});Polymer.FlattenedNodesObserver=puJ;Polymer.DomApi=ibS;Polymer.EventApi=J7;Polymer.dom=_.G5;Polymer.dom.matchesSelector=dTf;Polymer.dom.flush=_.mT;Polymer.dom.addDebouncer=_.Pm;Polymer.DirMixin=QAS;Polymer.RenderStatus={beforeNextRender:_.Ea8,afterNextRender:_.ky,flush:function(){for(;b6a.length||Q6.length;)xFa(b6a),xFa(Q6);UE=!1}};Polymer.LegacyElementMixin=_.xf;var up_;up_=Wm._mutablePropertyChange;var WZU={properties:{mutableData:Boolean},_shouldPropertyChange:function(Y,S,P){return up_(this,Y,S,P,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(Y,S,P){return up_(this,Y,S,P,!0)}};
Polymer.OptionalMutableDataBehavior=WZU;var NHh={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Y$h={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},O6a=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Y$h),zoS=(0,_.xf)(HTMLElement),NBE=function(Y,S){Y||console.warn("Polymer.Class requires `info` argument");S=S?S(zoS):zoS;S=S$E(Y,S,Y.behaviors);S.is=S.prototype.is=
Y.is;return S};Polymer.Class=NBE;Polymer.mixinBehaviors=function(Y,S){return S$E({},(0,_.xf)(S),Y)};
Polymer.GenerateClassFromInfo=S$E;_.Kc=function(Y){var S=typeof Y==="function"?Y:_.Kc.Class(Y);Y._legacyForceObservedAttributes&&(S.prototype._legacyForceObservedAttributes=Y._legacyForceObservedAttributes);customElements.define(S.is,S);return S};
_.Kc.Class=NBE;Polymer._polymerFn=_.Kc;var maS=window.onLegacyPolymerFunctionDefinedCallback;maS&&maS();var VMa={templatize:function(Y,S){this._templatizerTemplate=Y;this.ctor=lg(Y,this,{mutableData:!!S,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(Y){return new this.ctor(Y)},
modelForElement:function(Y){return BHE(this._templatizerTemplate,Y)}};Polymer.Templatizer=VMa;_.bv=(0,_.xf)(HTMLElement).prototype;Polymer.Base=_.bv;var uja=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Nz=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.r(_.Nz,PolymerFakeBaseClass);var He=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.r(He,PolymerFakeBaseClass);var Wwf=Symbol("Nd"),C1a=[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 nW_=nW_||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},jRt;(function(Y){function S(M,zJ,O){var ca=V.get(M);if(!ca){if(!O)return;ca=new F;V.set(M,ca)}M=ca.get(zJ);if(!M){if(!O)return;M=new F;ca.set(zJ,M)}return M}
function P(M,zJ,O){if(u(M,zJ,O))return!0;zJ=K(zJ);return zJ!==null?P(M,zJ,O):!1}
function u(M,zJ,O){zJ=S(zJ,O,!1);return zJ===void 0?!1:!!zJ.has(M)}
function W(M,zJ,O){if(u(M,zJ,O))return m(M,zJ,O);zJ=K(zJ);if(zJ!==null)return W(M,zJ,O)}
function m(M,zJ,O){zJ=S(zJ,O,!1);if(zJ!==void 0)return zJ.get(M)}
function J(M,zJ){var O=c(M,zJ);M=K(M);if(M===null)return O;var ca=J(M,zJ);if(ca.length<=0)return O;if(O.length<=0)return ca;zJ=new U;M=[];O=_.n(O);for(var hu=O.next();!hu.done;hu=O.next())hu=hu.value,zJ.has(hu)||(zJ.add(hu),M.push(hu));O=_.n(ca);for(ca=O.next();!ca.done;ca=O.next())ca=ca.value,zJ.has(ca)||(zJ.add(ca),M.push(ca));return M}
function c(M,zJ){M=S(M,zJ,!1);var O=[];M&&M.forEach(function(ca,hu){return O.push(hu)});
return O}
function C(M){return M===void 0}
function x(M){return typeof M==="object"?M!==null:typeof M==="function"}
function b(M){return typeof M==="function"}
function T(M){return typeof M==="symbol"?M:String(M)}
function K(M){var zJ=Object.getPrototypeOf(M);if(typeof M!=="function"||M===w||zJ!==w)return zJ;var O=Object.getPrototypeOf(M.prototype);if(O==null||O===Object.prototype)return zJ;O=O.constructor;return typeof O!=="function"||O===M?zJ:O}
function G(){function M(){this._keys=[];this._values=[];this._cache=zJ}
var zJ={};M.prototype={get size(){return this._keys.length},has:function(O){return O===this._cache?!0:this._find(O)>=0?(this._cache=O,!0):!1},
get:function(O){var ca=this._find(O);if(ca>=0)return this._cache=O,this._values[ca]},
set:function(O,ca){this.delete(O);this._keys.push(O);this._values.push(ca);this._cache=O;return this},
delete:function(O){O=this._find(O);return O>=0?(this._keys.splice(O,1),this._values.splice(O,1),this._cache=zJ,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=zJ},
forEach:function(O){for(var ca=this.size,hu=0;hu<ca;++hu){var ah=this._keys[hu],va=this._values[hu];this._cache=ah;O.call(this,va,ah,this)}},
_find:function(O){for(var ca=this._keys,hu=ca.length,ah=0;ah<hu;++ah)if(ca[ah]===O)return ah;return-1}};
return M}
function v(){function M(){this._map=new F}
M.prototype={get size(){return this._map.length},has:function(zJ){return this._map.has(zJ)},
add:function(zJ){this._map.set(zJ,zJ);return this},
delete:function(zJ){return this._map.delete(zJ)},
clear:function(){this._map.clear()},
forEach:function(zJ,O){this._map.forEach(zJ,O)}};
return M}
function a(){function M(){this._key=O()}
function zJ(la,w1){for(var U9=0;U9<w1;++U9)la[U9]=Math.random()*255|0}
function O(){do{if(hu)var la=hu.randomBytes(16);else typeof Uint8Array==="function"?(la=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(la):zJ(la,16)):(la=Array(16),zJ(la,16));la[6]=la[6]&79|64;la[8]=la[8]&191|128;for(var w1="",U9=0;U9<16;++U9){var nu=la[U9];if(U9===4||U9===6||U9===8)w1+="-";nu<16&&(w1+="0");w1+=nu.toString(16).toLowerCase()}la="@@WeakMap@@"+w1}while(ah.call(va,la));va[la]=!0;return la}
function ca(la,w1){if(!ah.call(la,yX)){if(!w1)return;Object.defineProperty(la,yX,{value:Object.create(null)})}return la[yX]}
var hu=typeof global!=="undefined"&&typeof nW_==="object"&&typeof require==="function"&&require("crypto"),ah=Object.prototype.hasOwnProperty,va={},yX=O();M.prototype={has:function(la){return(la=ca(la,!1))?this._key in la:!1},
get:function(la){if(la=ca(la,!1))return la[this._key]},
set:function(la,w1){ca(la,!0)[this._key]=w1;return this},
delete:function(la){return(la=ca(la,!1))&&this._key in la?delete la[this._key]:!1},
clear:function(){this._key=O()}};
return M}
var w=Object.getPrototypeOf(Function),F=typeof Map==="function"?Map:G(),U=typeof Set==="function"?Set:v(),V=new (typeof WeakMap==="function"?WeakMap:a());Y.decorate=function(M,zJ,O,ca){if(C(ca)){if(C(O)){if(!Array.isArray(M))throw new TypeError;if(!b(zJ))throw new TypeError;for(O=M.length-1;O>=0;--O)if(ca=(0,M[O])(zJ),!C(ca)){if(!b(ca))throw new TypeError;zJ=ca}return zJ}if(!Array.isArray(M))throw new TypeError;if(!x(zJ))throw new TypeError;O=T(O);for(ca=M.length-1;ca>=0;--ca)(0,M[ca])(zJ,O)}else{if(Array.isArray(M))if(x(zJ)){if(C(O))throw new TypeError;
if(!x(ca))throw new TypeError;}else throw new TypeError;else throw new TypeError;O=T(O);for(var hu=M.length-1;hu>=0;--hu){var ah=(0,M[hu])(zJ,O,ca);if(!C(ah)){if(!x(ah))throw new TypeError;ca=ah}}return ca}};
Y.metadata=function(M,zJ){return function(O,ca){if(C(ca)){if(!b(O))throw new TypeError;S(O,void 0,!0).set(M,zJ)}else{if(!x(O))throw new TypeError;ca=T(ca);S(O,ca,!0).set(M,zJ)}}};
Y.defineMetadata=function(M,zJ){var O;if(x(zJ))C(O)||(O=T(O));else throw new TypeError;S(zJ,O,!0).set("parameters",M)};
Y.hasMetadata=function(M,zJ,O){if(x(zJ))C(O)||(O=T(O));else throw new TypeError;return P(M,zJ,O)};
Y.hasOwnMetadata=function(M,zJ,O){if(x(zJ))C(O)||(O=T(O));else throw new TypeError;return u(M,zJ,O)};
Y.getMetadata=function(M,zJ,O){if(x(zJ))C(O)||(O=T(O));else throw new TypeError;return W(M,zJ,O)};
Y.getOwnMetadata=function(M,zJ,O){if(x(zJ))C(O)||(O=T(O));else throw new TypeError;return m(M,zJ,O)};
Y.getMetadataKeys=function(M,zJ){if(x(M))C(zJ)||(zJ=T(zJ));else throw new TypeError;return J(M,zJ)};
Y.getOwnMetadataKeys=function(M,zJ){if(x(M))C(zJ)||(zJ=T(zJ));else throw new TypeError;return c(M,zJ)};
Y.deleteMetadata=function(M,zJ,O){if(x(zJ))C(O)||(O=T(O));else throw new TypeError;var ca=S(zJ,O,!1);if(!C(ca)){if(!ca.delete(M))return!1;if(ca.size>0)return!0;M=V.get(zJ);M.delete(O);if(M.size>0)return!0;V.delete(zJ);return!0}};
(function(M){if(typeof M.Reflect!=="undefined"){if(M.Reflect!==Y)for(var zJ in Y)M.Reflect[zJ]=Y[zJ]}else M.Reflect=Y})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(jRt||(jRt={}));var rOE=self;var JE3=[0,_.UM,_.kn,_.UM];var BTu=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(BTu,_.Gc);var cEd=_.AY(BTu,[0,_.Evh,_.Mi,JE3,_.kn,_.Ni]);_.PW(_.V6,_.R6);_.z=_.V6.prototype;_.z.start=function(){this.stop();this.usingListeners_=!1;var Y=CIt(this),S=qCd(this);Y&&!S&&this.JSC$9084_win_.mozRequestAnimationFrame?(this.JSC$9084_id_=_.b2(this.JSC$9084_win_,"MozBeforePaint",this.callback_),this.JSC$9084_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9084_id_=Y&&S?Y.call(this.JSC$9084_win_,this.callback_):this.JSC$9084_win_.setTimeout(G3s(this.callback_),20)};
_.z.stop=function(){if(this.isActive()){var Y=CIt(this),S=qCd(this);Y&&!S&&this.JSC$9084_win_.mozRequestAnimationFrame?qG(this.JSC$9084_id_):Y&&S?S.call(this.JSC$9084_win_,this.JSC$9084_id_):this.JSC$9084_win_.clearTimeout(this.JSC$9084_id_)}this.JSC$9084_id_=null};
_.z.fire=function(){this.stop();this.JSC$9086_doAction_()};
_.z.isActive=function(){return this.JSC$9084_id_!=null};
_.z.JSC$9086_doAction_=function(){this.usingListeners_&&this.JSC$9084_id_&&qG(this.JSC$9084_id_);this.JSC$9084_id_=null;this.JSC$9084_listener_.call(this.handler_,_.S5())};
_.z.disposeInternal=function(){this.stop();_.V6.superClass_.disposeInternal.call(this)};
var CIt=function(Y){Y=Y.JSC$9084_win_;return Y.requestAnimationFrame||Y.webkitRequestAnimationFrame||Y.mozRequestAnimationFrame||Y.oRequestAnimationFrame||Y.msRequestAnimationFrame||null},qCd=function(Y){Y=Y.JSC$9084_win_;
return Y.cancelAnimationFrame||Y.cancelRequestAnimationFrame||Y.webkitCancelRequestAnimationFrame||Y.mozCancelRequestAnimationFrame||Y.oCancelRequestAnimationFrame||Y.msCancelRequestAnimationFrame||null};_.NE=function(Y,S,P){_.R6.call(this);this.JSC$9087_listener_=P!=null?Y.bind(P):Y;this.JSC$9087_interval_=S;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9087_timer_=null};
_.r(_.NE,_.R6);_.z=_.NE.prototype;_.z.fire=function(Y){this.args_=arguments;this.JSC$9087_timer_||this.pauseCount_?this.shouldFire_=!0:Roh(this)};
_.z.stop=function(){this.JSC$9087_timer_&&(_.Pa.clearTimeout(this.JSC$9087_timer_),this.JSC$9087_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.z.pause=function(){this.pauseCount_++};
_.z.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9087_timer_||(this.shouldFire_=!1,Roh(this))};
_.z.disposeInternal=function(){_.R6.prototype.disposeInternal.call(this);this.stop()};
var Roh=function(Y){Y.JSC$9087_timer_=$M(function(){Y.JSC$9087_timer_=null;Y.shouldFire_&&!Y.pauseCount_&&(Y.shouldFire_=!1,Roh(Y))},Y.JSC$9087_interval_);
var S=Y.args_;Y.args_=null;Y.JSC$9087_listener_.apply(null,S)};var xam=function(Y,S){this.childIterator_=Y[_.Pa.Symbol.iterator]();this.mapFn_=S};
xam.prototype[Symbol.iterator]=function(){return this};
xam.prototype.next=function(){var Y=this.childIterator_.next();return{value:Y.done?void 0:this.mapFn_.call(void 0,Y.value),done:Y.done}};
var bAs=function(Y,S){return new xam(Y,S)};var TTd={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 CHE=function(Y){var S=KZ6(Y);if(!S)throw Error("Rd`"+Y);return S},KZ6=function(Y){var S={};
Y=String(Y);var P=Y.charAt(0)=="#"?Y:"#"+Y;if(EWt.test(P))return S.hex=nba(P),S.type="hex",S;P=b0a(Y);return P.length?(S.hex=oOa(P[0],P[1],P[2]),S.type="rgb",S):TTd&&(Y=TTd[Y.toLowerCase()])?(S.hex=Y,S.type="named",S):null},fSs=/#(.)(.)(.)/,nba=function(Y){if(!EWt.test(Y))throw Error("Td`"+Y);
Y.length==4&&(Y=Y.replace(fSs,"#$1$1$2$2$3$3"));return Y.toLowerCase()},qK9=function(Y){Y=nba(Y);
Y=parseInt(Y.slice(1),16);return[Y>>16,Y>>8&255,Y&255]},oOa=function(Y,S,P){Y=Number(Y);
S=Number(S);P=Number(P);if(Y!=(Y&255)||S!=(S&255)||P!=(P&255))throw Error("Ud`"+Y+"`"+S+"`"+P);S=Y<<16|S<<8|P;return Y<16?"#"+(16777216|S).toString(16).slice(1):"#"+S.toString(16)},EWt=/^#(?:[0-9a-f]{3}){1,2}$/i,gWu=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,b0a=function(Y){var S=Y.match(gWu);
if(S){Y=Number(S[1]);var P=Number(S[2]);S=Number(S[3]);if(Y>=0&&Y<=255&&P>=0&&P<=255&&S>=0&&S<=255)return[Y,P,S]}return[]};var $ad={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss\u202fa zzzz","h:mm:ss\u202fa z","h:mm:ss\u202fa","h:mm\u202fa"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},f6=$ad;f6=$ad;var twh,rEh,GMu;twh=function(Y,S){switch(S){case 1:return Y%4!=0||Y%100==0&&Y%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
rEh=function(Y,S,P,u,W){Y=new Date(Y,S,P);W=W||0;return Y.valueOf()+(((u!==void 0?u:3)-W+7)%7-((Y.getDay()+6)%7-W+7)%7)*864E5};
_.Tf=function(Y,S,P){typeof Y==="number"?(this.date=GMu(Y,S||0,P||1),ho3(this,P||1)):_.SS(Y)?(this.date=GMu(Y.getFullYear(),Y.getMonth(),Y.getDate()),ho3(this,Y.getDate())):(this.date=new Date(_.S5()),Y=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),ho3(this,Y))};
GMu=function(Y,S,P){S=new Date(Y,S,P);Y>=0&&Y<100&&S.setFullYear(S.getFullYear()-1900);return S};
_.z=_.Tf.prototype;_.z.firstDayOfWeek_=f6.FIRSTDAYOFWEEK;_.z.firstWeekCutOffDay_=f6.FIRSTWEEKCUTOFFDAY;_.z.clone=function(){var Y=new _.Tf(this.date);Y.firstDayOfWeek_=this.firstDayOfWeek_;Y.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return Y};
_.z.getFullYear=function(){return this.date.getFullYear()};
_.z.getYear=function(){return this.getFullYear()};
_.z.getMonth=function(){return this.date.getMonth()};
_.z.getDate=function(){return this.date.getDate()};
_.z.getTime=function(){return this.date.getTime()};
_.z.getDay=function(){return this.date.getDay()};
_.z.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.z.getUTCMonth=function(){return this.date.getUTCMonth()};
_.z.getUTCDate=function(){return this.date.getUTCDate()};
_.z.getUTCDay=function(){return this.date.getDay()};
_.z.getUTCHours=function(){return this.date.getUTCHours()};
_.z.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.z.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.z.set=function(Y){this.date=new Date(Y.getFullYear(),Y.getMonth(),Y.getDate())};
_.z.setFullYear=function(Y){this.date.setFullYear(Y)};
_.z.setYear=function(Y){this.setFullYear(Y)};
_.z.setMonth=function(Y){this.date.setMonth(Y)};
_.z.setDate=function(Y){this.date.setDate(Y)};
_.z.setTime=function(Y){this.date.setTime(Y)};
_.z.setUTCFullYear=function(Y){this.date.setUTCFullYear(Y)};
_.z.setUTCMonth=function(Y){this.date.setUTCMonth(Y)};
_.z.setUTCDate=function(Y){this.date.setUTCDate(Y)};
_.z.add=function(Y){if(Y.years||Y.months){var S=this.getMonth()+Y.months+Y.years*12,P=this.getYear()+Math.floor(S/12);S%=12;S<0&&(S+=12);var u=Math.min(twh(P,S),this.getDate());this.setDate(1);this.setFullYear(P);this.setMonth(S);this.setDate(u)}Y.days&&(P=this.getYear(),S=P>=0&&P<=99?-1900:0,Y=new Date((new Date(P,this.getMonth(),this.getDate(),12)).getTime()+Y.days*864E5),this.setDate(1),this.setFullYear(Y.getFullYear()+S),this.setMonth(Y.getMonth()),this.setDate(Y.getDate()),ho3(this,Y.getDate()))};
_.z.JSC$9100_toIsoString=function(Y){var S=this.getFullYear(),P=S<0?"-":S>=1E4?"+":"";return[P+_.Sm(Math.abs(S),P?6:4),_.Sm(this.getMonth()+1,2),_.Sm(this.getDate(),2)].join(Y?"-":"")};
_.z.equals=function(Y){return!(!Y||this.getYear()!=Y.getYear()||this.getMonth()!=Y.getMonth()||this.getDate()!=Y.getDate())};
_.z.toString=function(){return this.JSC$9100_toIsoString()};
var ho3=function(Y,S){Y.getDate()!=S&&Y.date.setUTCHours(Y.date.getUTCHours()+(Y.getDate()<S?1:-1))};
_.Tf.prototype.valueOf=function(){return this.date.valueOf()};var Eq=function(Y,S,P,u,W){this.reversed=!!S;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!P;Y&&Kr(this,Y,u);this.depth=W!=void 0?W:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.PW(Eq,YN);var Kr=function(Y,S,P,u){if(Y.node=S)Y.tagType=typeof P==="number"?P:Y.node.nodeType!=1?0:Y.reversed?-1:1;typeof u==="number"&&(Y.depth=u)};
_.z=Eq.prototype;_.z.JSC$9115_copyFrom=function(Y){this.node=Y.node;this.tagType=Y.tagType;this.depth=Y.depth;this.reversed=Y.reversed;this.constrained=Y.constrained};
_.z.clone=function(){return new Eq(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.z.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Sd;var Y=this.node;var S=this.reversed?-1:1;if(this.tagType==S){var P=this.reversed?Y.lastChild:Y.firstChild;P?Kr(this,P):Kr(this,Y,S*-1)}else(P=this.reversed?Y.previousSibling:Y.nextSibling)?Kr(this,P):Kr(this,Y.parentNode,S*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(Y=this.node)?PH(Y):Sd};
_.z.equals=function(Y){return Y.node==this.node&&(!this.node||Y.tagType==this.tagType)};
_.z.splice=function(Y){var S=this.node,P=this.reversed?1:-1;this.tagType==P&&(this.tagType=P*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Eq.prototype.next.call(this);this.reversed=!this.reversed;P=_.eK(arguments[0])?arguments[0]:arguments;for(var u=P.length-1;u>=0;u--)_.Fs(P[u],S);_.jL(S)};var vWs=function(){},fr=function(Y){for(var S=[],P=Y.getTextRangeCount(),u=0;u<P;u++)S.push(Y.getTextRange(u));
return S};
vWs.prototype.isReversed=function(){return!1};
vWs.prototype.getWindow=function(){return Kx(_.Ey(this.JSC$9117_getStartNode()))};
var Dad=function(Y,S){Eq.call(this,Y,S,!0)};
_.PW(Dad,Eq);var gF=function(Y,S,P,u,W){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!W;if(Y){this.startNode_=Y;this.startOffset_=S;this.endNode_=P;this.endOffset_=u;if(Y.nodeType==1&&Y.tagName!="BR")if(Y=Y.childNodes,S=Y[S])this.startNode_=S,this.startOffset_=0;else{Y.length&&(this.startNode_=_.s9(Y));var m=!0}P.nodeType==1&&((this.endNode_=P.childNodes[u])?this.endOffset_=0:this.endNode_=P)}Eq.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);m&&this.next()};
_.PW(gF,Dad);_.z=gF.prototype;_.z.JSC$9123_getStartNode=function(){return this.startNode_};
_.z.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)};
_.z.next=function(){return this.isLast()?Sd:gF.superClass_.next.call(this)};
_.z.JSC$9115_copyFrom=function(Y){this.startNode_=Y.startNode_;this.endNode_=Y.endNode_;this.startOffset_=Y.startOffset_;this.endOffset_=Y.endOffset_;this.isReversed_=Y.isReversed_;gF.superClass_.JSC$9115_copyFrom.call(this,Y)};
_.z.clone=function(){var Y=new gF(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);Y.JSC$9115_copyFrom(this);return Y};var IS_=function(){};
IS_.prototype.__iterator__=function(){return new gF(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var $f=function(Y){this.range_=Y};
_.PW($f,IS_);var aSU=function(Y){var S=_.Ey(Y).createRange();if(Y.nodeType==3)S.setStart(Y,0),S.setEnd(Y,Y.length);else if(LX(Y)||Y.nodeType==3){for(var P,u=Y;(P=u.firstChild)&&(LX(P)||P.nodeType==3);)u=P;S.setStart(u,0);for(u=Y;(P=u.lastChild)&&(LX(P)||P.nodeType==3);)u=P;S.setEnd(u,u.nodeType==1?u.childNodes.length:u.length)}else P=Y.parentNode,Y=Array.prototype.indexOf.call(P.childNodes,Y),S.setStart(P,Y),S.setEnd(P,Y+1);return S},LZ3=function(Y,S,P,u){var W=_.Ey(Y).createRange();
W.setStart(Y,S);W.setEnd(P,u);return W};
_.z=$f.prototype;_.z.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.z.getContainer=function(){return this.range_.commonAncestorContainer};
_.z.compareBrowserRangeEndpoints=function(Y,S,P){return this.range_.compareBoundaryPoints(P==1?S==1?_.Pa.Range.START_TO_START:_.Pa.Range.START_TO_END:S==1?_.Pa.Range.END_TO_START:_.Pa.Range.END_TO_END,Y)};
_.z.isCollapsed=function(){return this.range_.collapsed};
_.z.select=function(Y){this.selectInternal(Kx(_.Ey(this.range_.startContainer)).getSelection(),Y)};
_.z.selectInternal=function(Y){Y.removeAllRanges();Y.addRange(this.range_)};
_.z.insertNode=function(Y,S){var P=this.range_.cloneRange();P.collapse(S);P.insertNode(Y);P.detach();return Y};
_.z.collapse=function(Y){this.range_.collapse(Y)};_.PW(er,$f);er.prototype.selectInternal=function(Y,S){!S||this.isCollapsed()?er.superClass_.selectInternal.call(this,Y,S):(Y.collapse(this.range_.endContainer,this.range_.endOffset),Y.extend(this.range_.startContainer,this.range_.startOffset))};_.PW(Sf,$f);Sf.prototype.compareBrowserRangeEndpoints=function(Y,S,P){return Sf.superClass_.compareBrowserRangeEndpoints.call(this,Y,S,P)};
Sf.prototype.selectInternal=function(Y,S){S?Y.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):Y.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var wTf=function(Y){return _.Jv?new Sf(Y):_.j5?new er(Y):new $f(Y)};var rF=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},pTi;
_.PW(rF,vWs);pTi=function(Y,S){var P=new rF;P.browserRangeWrapper_=Y;P.isReversed_=!!S;return P};
_.FZs=function(Y){Y=_.Jv?new Sf(aSU(Y)):_.j5?new er(aSU(Y)):new $f(aSU(Y));return pTi(Y)};
_.Gf=function(Y,S,P,u){var W=new rF;W.isReversed_=sRS(Y,S,P,u);if(_.Vn(Y)&&!LX(Y)){var m=Y.parentNode;S=Array.prototype.indexOf.call(m.childNodes,Y);Y=m}_.Vn(P)&&!LX(P)&&(m=P.parentNode,u=Array.prototype.indexOf.call(m.childNodes,P),P=m);W.isReversed_?(W.startNode_=P,W.startOffset_=u,W.endNode_=Y,W.endOffset_=S):(W.startNode_=Y,W.startOffset_=S,W.endNode_=P,W.endOffset_=u);return W};
_.z=rF.prototype;_.z.clone=function(){var Y=new rF;Y.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();Y.startNode_=this.startNode_;Y.startOffset_=this.startOffset_;Y.endNode_=this.endNode_;Y.endOffset_=this.endOffset_;Y.isReversed_=this.isReversed_;return Y};
_.z.JSC$9117_getType=function(){return"text"};
_.z.getBrowserRangeObject=function(){return h7(this).range_};
_.z.getTextRangeCount=function(){return 1};
_.z.getTextRange=function(){return this};
var h7=function(Y){var S;if(!(S=Y.browserRangeWrapper_)){S=Y.JSC$9117_getStartNode();var P=Y.JSC$9117_getStartOffset(),u=Y.JSC$9117_getEndNode(),W=Y.JSC$9117_getEndOffset();S=_.Jv?new Sf(LZ3(S,P,u,W)):_.j5?new er(LZ3(S,P,u,W)):new $f(LZ3(S,P,u,W));S=Y.browserRangeWrapper_=S}return S};
_.z=rF.prototype;_.z.getContainer=function(){return h7(this).getContainer()};
_.z.JSC$9117_getStartNode=function(){return this.startNode_||(this.startNode_=h7(this).range_.startContainer)};
_.z.JSC$9117_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=h7(this).range_.startOffset};
_.z.JSC$9117_getEndNode=function(){return this.endNode_||(this.endNode_=h7(this).range_.endContainer)};
_.z.JSC$9117_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=h7(this).range_.endOffset};
_.z.isReversed=function(){return this.isReversed_};
_.z.JSC$9117_containsRange=function(Y,S){if(Y.JSC$9117_getType()=="text"){var P=h7(this);Y=h7(Y);S=S&&!Y.isCollapsed();Y=Y.range_;P=S?P.compareBrowserRangeEndpoints(Y,0,1)>=0&&P.compareBrowserRangeEndpoints(Y,1,0)<=0:P.compareBrowserRangeEndpoints(Y,0,0)>=0&&P.compareBrowserRangeEndpoints(Y,1,1)<=0}else P=!1;return P};
_.z.isCollapsed=function(){return h7(this).isCollapsed()};
_.z.JSC$9117_getText=function(){return h7(this).range_.toString()};
_.z.__iterator__=function(){return new gF(this.JSC$9117_getStartNode(),this.JSC$9117_getStartOffset(),this.JSC$9117_getEndNode(),this.JSC$9117_getEndOffset())};
_.z.select=function(){h7(this).select(this.isReversed_)};
_.z.JSC$9117_removeContents=function(){var Y=h7(this).range_;Y.extractContents();if(Y.startContainer.hasChildNodes()&&(Y=Y.startContainer.childNodes[Y.startOffset])){var S=Y.previousSibling;QuJ(Y)==""&&_.jL(Y);S&&QuJ(S)==""&&_.jL(S)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.z.insertNode=function(Y,S){Y=h7(this).insertNode(Y,S);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return Y};
_.z.collapse=function(Y){Y=this.isReversed()?!Y:Y;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(Y);Y?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var dau=function(){};
_.PW(dau,vWs);dau.prototype.JSC$9117_containsRange=function(Y,S){var P=fr(this);Y=fr(Y);return(S?yn:_.tG8)(Y,function(u){return yn(P,function(W){return W.JSC$9117_containsRange(u,S)})})};
dau.prototype.insertNode=function(Y,S){S?_.pX(Y,this.JSC$9117_getStartNode()):_.Fs(Y,this.JSC$9117_getEndNode());return Y};var lSm,XT_=Wk().JSC$7241_document_.documentElement;lSm=XT_.requestFullscreen?"fullscreenchange":XT_.webkitRequestFullscreen?"webkitfullscreenchange":XT_.mozRequestFullScreen?"mozfullscreenchange":XT_.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var ZAi=function(){var Y=Wk().JSC$7241_document_;return!!(Y.webkitIsFullScreen||Y.mozFullScreen||Y.msFullscreenElement||Y.fullscreenElement)};var vm=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.PW(vm,dau);_.z=vm.prototype;_.z.clone=function(){var Y=new vm;Y.browserRanges_=_.NU(this.browserRanges_);return Y};
_.z.JSC$9117_getType=function(){return"mutli"};
_.z.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.z.getTextRangeCount=function(){return this.browserRanges_.length};
_.z.getTextRange=function(Y){this.ranges_[Y]||(this.ranges_[Y]=pTi(wTf(this.browserRanges_[Y])));return this.ranges_[Y]};
_.z.getContainer=function(){if(!this.container_){for(var Y=[],S=this.getTextRangeCount(),P=0;P<S;P++)Y.push(this.getTextRange(P).getContainer());this.container_=X6U.apply(null,Y)}return this.container_};
var Do=function(Y){Y.sortedRanges_||(Y.sortedRanges_=fr(Y),Y.sortedRanges_.sort(function(S,P){var u=S.JSC$9117_getStartNode();S=S.JSC$9117_getStartOffset();var W=P.JSC$9117_getStartNode();P=P.JSC$9117_getStartOffset();return u==W&&S==P?0:sRS(u,S,W,P)?1:-1}));
return Y.sortedRanges_};
_.z=vm.prototype;_.z.JSC$9117_getStartNode=function(){return Do(this)[0].JSC$9117_getStartNode()};
_.z.JSC$9117_getStartOffset=function(){return Do(this)[0].JSC$9117_getStartOffset()};
_.z.JSC$9117_getEndNode=function(){return _.s9(Do(this)).JSC$9117_getEndNode()};
_.z.JSC$9117_getEndOffset=function(){return _.s9(Do(this)).JSC$9117_getEndOffset()};
_.z.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.z.JSC$9117_getText=function(){return fr(this).map(function(Y){return Y.JSC$9117_getText()}).join("")};
_.z.__iterator__=function(){return new IM(this)};
_.z.select=function(){var Y=this.getWindow().getSelection();Y.removeAllRanges();for(var S=this.getTextRangeCount(),P=0;P<S;P++)Y.addRange(this.getTextRange(P).getBrowserRangeObject())};
_.z.JSC$9117_removeContents=function(){fr(this).forEach(function(Y){Y.JSC$9117_removeContents()})};
_.z.collapse=function(Y){if(!this.isCollapsed()){var S=Y?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;S.collapse(Y);this.ranges_=[S];this.sortedRanges_=[S];this.browserRanges_=[S.getBrowserRangeObject()]}};
var IM=function(Y){this.iterators_=null;this.currentIdx_=0;Y&&(this.iterators_=Do(Y).map(function(S){return _.PEu(S)}));
Eq.call(this,Y?this.JSC$9123_getStartNode():null,!1,!0)};
_.PW(IM,Dad);_.z=IM.prototype;_.z.JSC$9123_getStartNode=function(){return this.iterators_[0].JSC$9123_getStartNode()};
_.z.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.z.next=function(){for(;this.currentIdx_<this.iterators_.length;){var Y=this.iterators_[this.currentIdx_],S=Y.next();if(S.done)this.currentIdx_++;else return Kr(this,Y.node,Y.tagType,Y.depth),S}return Sd};
_.z.JSC$9115_copyFrom=function(Y){this.iterators_=_.NU(Y.iterators_);IM.superClass_.JSC$9115_copyFrom.call(this,Y)};
_.z.clone=function(){var Y=new IM(null);Y.JSC$9115_copyFrom(this);return Y};var iA6,sRS;_.xa=function(){var Y=window.getSelection();return Y&&iA6(Y)};
iA6=function(Y){var S=!1;if(Y.createRange)try{var P=Y.createRange()}catch(W){return null}else if(Y.rangeCount){if(Y.rangeCount>1){P=new vm;S=Y.rangeCount;for(var u=0;u<S;u++)P.browserRanges_.push(Y.getRangeAt(u));return P}P=Y.getRangeAt(0);S=sRS(Y.anchorNode,Y.anchorOffset,Y.focusNode,Y.focusOffset)}else return null;return pTi(wTf(P),S)};
_.aM=function(Y,S){return _.Gf(Y,S,Y,S)};
_.Lr=function(Y,S,P,u){return _.Gf(Y,S,P,u)};
sRS=function(Y,S,P,u){if(Y==P)return u<S;var W;if(Y.nodeType==1&&S)if(W=Y.childNodes[S])Y=W,S=0;else if(_.pN(Y,P))return!0;if(P.nodeType==1&&u)if(W=P.childNodes[u])P=W,u=0;else if(_.pN(P,Y))return!1;return(lI3(Y,P)||S-u)>0};var wF=function(){_.Tj.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.xS)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.xS)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.xS)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.xS)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.xS)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.xS)(this.dispatchProgressEvent_,this)};
_.PW(wF,_.Tj);wF.prototype.abort=function(){try{this.reader_.abort()}catch(Y){throw new ciS(Y,"aborting read");}};
wF.prototype.getError=function(){return this.reader_.error&&new ciS(this.reader_.error,"reading file")};
wF.prototype.dispatchProgressEvent_=function(Y){this.dispatchEvent(new CXi(Y,this))};
wF.prototype.disposeInternal=function(){wF.superClass_.disposeInternal.call(this);delete this.reader_};
var tks=function(Y){var S=new wF,P=oW_(S);S.reader_.readAsArrayBuffer(Y);return P},AEL=function(Y){var S=new wF,P=oW_(S);
S.reader_.readAsDataURL(Y);return P},oW_=function(Y){var S=new oi;
Y.listen("loadend",_.gP(function(P,u){var W=u.reader_.result,m=u.getError();W==null||m?P.errback(m):P.callback(W);u.dispose()},S,Y));
return S};var pr=function(){_.Tj.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9157_eventHandler_=new _.u6(this);this.JSC$9157_isInitialized_=!1};
_.PW(pr,_.Tj);var Uai=new _.cy("d"),QRU=new _.cy("beforedragstart"),kMU=new _.cy("dragstart"),MkU=new _.cy("beforedragmove"),yE_=new _.cy("dragmove"),NTu=new _.cy("beforedragend"),HAu=new _.cy("dragend"),Vk6=new _.cy("e");pr.prototype.isDragging=function(){return!!this.JSC$9157_dragger_};
var eos=function(Y,S){S.dlgGrowthDirection_=0;S.dlgDragHoverClass_=void 0;S.dlgDragPermission=0;Y.dragLists_.push(S)},OAJ=function(Y,S){Y.getHandleForDragItem_=S};
pr.prototype.init=function(){if(!this.JSC$9157_isInitialized_){for(var Y=this.dragLists_.length,S=0;S<Y;S++)for(var P=_.sg(this.dragLists_[S]),u=P.length,W=0;W<u;++W){var m=P[W],J=this.getHandleForDragItem_(m),c=_.Pt(J);this.dragItemForHandle_[c]=m;this.dragItemHoverClasses_&&(this.JSC$9157_eventHandler_.listen(m,"mouseover",this.handleDragItemMouseover_),this.JSC$9157_eventHandler_.listen(m,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9157_eventHandler_.listen(J,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9157_eventHandler_.listen(J,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(m);this.JSC$9157_eventHandler_.listen(J,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9157_isInitialized_=!0}};
pr.prototype.disposeInternal=function(){this.JSC$9157_eventHandler_.dispose();for(var Y=this.dragLists_.length,S=0;S<Y;S++){var P=this.dragLists_[S];P.dlgGrowthDirection_=void 0;P.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;YR6(this);pr.superClass_.disposeInternal.call(this)};
var SRu=function(Y,S){for(var P=Y.dragLists_.length,u=0;u<P;u++){var W=Y.dragLists_[u];W.dlgBounds_=Kw9(W)}P=Y.dragItems_.length;for(u=0;u<P;u++)W=Y.dragItems_[u],W!=S&&(W.dlgBounds_=Kw9(W))};
_.z=pr.prototype;
_.z.handlePotentialDragStart_=function(Y){var S=_.Pt(Y.currentTarget);S=this.dragItemForHandle_[S];if(S.parentElement.dlgDragPermission!=2){this.currDragItem_=S;a:{S=this.currDragItem_;for(var P=S.cloneNode(!0),u=JF("TEXTAREA",S),W=JF("TEXTAREA",P),m=0;m<u.length;m++)W[m].value=u[m].value;switch(S.tagName){case "TR":S=_.IL("TABLE",null,_.IL("TBODY",null,P));break a;case "TD":case "TH":S=_.IL("TABLE",null,_.IL("TBODY",null,_.IL("TR",null,P)));break a;case "TEXTAREA":P.value=S.value;default:S=P;break a}S=
void 0}this.draggerEl_=S;this.draggerElClasses_&&Zj(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Ey(this.currDragItem_).body.appendChild(this.draggerEl_);P=_.gh(this.currDragItem_);S=this.draggerEl_;u=_.gh(S);if(P instanceof _.TH){var J=P.y;P=P.x}id(S,S.offsetLeft+(P-u.x),S.offsetTop+(Number(J)-u.y));this.JSC$9157_dragger_=new _.pQ(this.draggerEl_);_.Bk6(this.JSC$9157_dragger_,this.hysteresisDistance_);
_.b2(this.JSC$9157_dragger_,"start",this.handleDragStart_,!1,this);_.b2(this.JSC$9157_dragger_,"end",this.handleDragEnd_,!1,this);_.b2(this.JSC$9157_dragger_,"earlycancel",this.JSC$9159_cleanup_,!1,this);this.dispatchEvent(new FK(Uai,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$9157_dragger_));this.JSC$9157_dragger_.startDrag(Y)}};
_.z.handleDragStart_=function(Y){if(this.dispatchEvent(new FK(QRU,this,Y.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.F5m(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Zj(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var S=O1m(this.draggerEl_);this.draggerEl_.halfWidth=S.width/2;this.draggerEl_.halfHeight=S.height/2;S=this.draggerEl_.getBoundingClientRect();
var P=Y.clientY,u=cct(this.JSC$9157_dragger_,Y.clientX);if(u>S.right){var W=this.currDragItem_.getBoundingClientRect();this.JSC$9157_dragger_.deltaX=u-(u-W.left)/W.width*S.width}P=CYm(this.JSC$9157_dragger_,P);P>S.bottom&&(this.JSC$9157_dragger_.deltaY+=P-S.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";SRu(this,this.currDragItem_);this.currDragItem_.style.display="";_.b2(this.JSC$9157_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new FK(kMU,
this,Y.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9157_dragger_))}else Y.preventDefault(),this.JSC$9159_cleanup_()};
_.z.handleDragMove_=function(Y){var S=_.gh(this.draggerEl_);S=new _.TH(S.x+this.draggerEl_.halfWidth,S.y+this.draggerEl_.halfHeight);a:{var P=null;if(this.currDragItem_.style.display!="none"){P=this.currDragItem_.parentNode;var u=Kw9(P);if(PMJ(S,u))break a}u=this.dragLists_.length;for(var W=0;W<u;W++){var m=this.dragLists_[W];if(m!=P&&PMJ(S,m.dlgBounds_)){P=m;break a}}P=null}if(P){if(P==null)throw Error("Vd");u=0;W=!1;m=void 0;switch(P.dlgGrowthDirection_){case 0:u=S.y;var J=uQi;var c=WMt;break;case 4:W=
!0;case 2:u=S.x;J=zC6;c=WMt;break;case 5:W=!0;case 3:u=S.x,J=myU,c=n96}for(var C=null,x,b=_.sg(P),T=b.length,K=0;K<T;K++){var G=b[K];if(G!=this.currDragItem_){var v=J(G.dlgBounds_);if(W){var a=jKs(G,S);m===void 0&&(m=a);c(u,v)&&(x==void 0||a<m||a==m&&(c(v,x)||v==x))&&(C=G,x=v);a<m&&(m=a)}else c(u,v)&&(x==void 0||c(v,x))&&(C=G,x=v)}}J=C!==null&&jKs(C,S)>m?null:C}else J=null;if(!this.dispatchEvent(new FK(MkU,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$9157_dragger_,S,P,J)))return!1;if(P&&P.dlgDragPermission!=
1)this.currDragItem_.parentNode==P&&_.F5m(this.currDragItem_)==J||P.insertBefore(this.currDragItem_,J),this.currDragItem_.style.display="",P.dlgDragHoverClass_&&_.i2(P,P.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",c=this.dragLists_.length,x=0;x<c;x++)u=this.dragLists_[x],u.dlgDragHoverClass_&&_.X5(u,u.dlgDragHoverClass_);P!=this.currHoverList_&&(this.currHoverList_=P,SRu(this,this.currDragItem_));this.dispatchEvent(new FK(yE_,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$9157_dragger_,
S,P,J));return!1};
_.z.JSC$9159_cleanup_=function(){YR6(this);this.JSC$9157_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var Y=this.dragLists_.length,S=0;S<Y;S++)this.dragLists_[S].dlgBounds_=null;Y=this.dragItems_.length;for(S=0;S<Y;S++)this.dragItems_[S].dlgBounds_=null};
_.z.handleDragEnd_=function(Y){if(!this.dispatchEvent(new FK(NTu,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$9157_dragger_)))return!1;YR6(this);this.dispatchEvent(new FK(HAu,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$9157_dragger_));this.JSC$9159_cleanup_();return!0};
var YR6=function(Y){_.oY(Y.JSC$9157_dragger_);var S=Y.draggerEl_&&Y.draggerEl_.parentElement;Y.draggerEl_&&_.jL(Y.draggerEl_);Y.currDragItem_&&Y.currDragItem_.style.display=="none"&&(Y.origList_.insertBefore(Y.currDragItem_,Y.origNextItem_),Y.currDragItem_.style.display="");Y.currDragItemClasses_&&Y.currDragItem_?cFt(Y.currDragItem_,Y.currDragItemClasses_||[]):Y.currDragItem_&&(Y.currDragItem_.style.visibility="");for(var P=Y.dragLists_.length,u=0;u<P;u++){var W=Y.dragLists_[u];W.dlgDragHoverClass_&&
_.X5(W,W.dlgDragHoverClass_)}S&&Y.dispatchEvent(new FK(Vk6,Y,null,Y.currDragItem_,Y.draggerEl_,Y.JSC$9157_dragger_))};
_.z=pr.prototype;_.z.getHandleForDragItem_=function(Y){return Y};
_.z.handleDragItemMouseover_=function(Y){Zj(Y.currentTarget,this.dragItemHoverClasses_||[])};
_.z.handleDragItemMouseout_=function(Y){cFt(Y.currentTarget,this.dragItemHoverClasses_||[])};
_.z.handleDragItemHandleMouseover_=function(Y){Zj(Y.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.z.handleDragItemHandleMouseout_=function(Y){cFt(Y.currentTarget,this.dragItemHandleHoverClasses_||[])};
var PMJ=function(Y,S){return Y.x>S.left&&Y.x<S.left+S.width&&Y.y>S.top&&Y.y<S.top+S.height},jKs=function(Y,S){Y=Y.dlgBounds_;
return Math.abs(S.y-(Y.top+(Y.height-1)/2))},uQi=function(Y){return Y.top+Y.height-1},zC6=function(Y){return Y.left+Y.width-1},myU=function(Y){return Y.left||0},WMt=function(Y,S){return Y<S},n96=function(Y,S){return Y>S},FK=function(Y,S,P,u,W,m){_.Cl.call(this,Y);
this.event=P;this.currDragItem=u;this.draggerEl=W;this.JSC$9161_dragger=m};
_.PW(FK,_.Cl);_.PW(W3,_.R6);var JKJ=new _.TH(0,0);W3.prototype.JSC$9165_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
W3.prototype.JSC$9165_onMouseMove=function(Y){var S=this.containerIsActuallyContent_?JKJ:u9(Wk(this.containerNode_)),P=this.horizontalScrolling_?this.calculateScrollDelta(Y.clientX+S.x,this.scrollBounds_.left,this.scrollBounds_.width):0,u=this.calculateScrollDelta(Y.clientY+S.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=P;this.scrollDelta_.y=u;!(P=!P&&!u)&&(P=this.constrainScroll_)&&(P=Y.clientX+S.x,Y=Y.clientY+S.y,S=this.containerBounds_,P=!(S.left<=P&&S.left+S.width>=
P&&S.top<=Y&&S.top+S.height>=Y));P?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
W3.prototype.calculateScrollDelta=function(Y,S,P){var u=0;Y<S?u=-8:Y>S+P&&(u=8);return u};
W3.prototype.disposeInternal=function(){W3.superClass_.disposeInternal.call(this);this.JSC$9163_eventHandler_.dispose();this.scrollTimer_.dispose()};var B2J={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"}}},sq=B2J;sq=B2J;var dF={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 cKU=function(){},AE=function(Y){if(typeof Y=="number"){var S=new cKU;
S.standardOffset_=Y;var P=Y;if(P==0)P="Etc/GMT";else{var u=["Etc/GMT",P<0?"-":"+"];P=Math.abs(P);u.push(Math.floor(P/60)%100);P%=60;P!=0&&u.push(":",_.Sm(P,2));P=u.join("")}S.timeZoneId_=P;P=Y;P==0?P="UTC":(u=["UTC",P<0?"+":"-"],P=Math.abs(P),u.push(Math.floor(P/60)%100),P%=60,P!=0&&u.push(":",P),P=u.join(""));Y=CMf(Y);S.tzNames_=[P,P];S.tzNamesExt_={STD_LONG_NAME_GMT:Y,STD_GENERIC_LOCATION:Y};S.transitions_=[];return S}S=new cKU;S.timeZoneId_=Y.id;S.standardOffset_=-Y.std_offset;S.tzNames_=Y.names;
S.tzNamesExt_=Y.names_ext;S.transitions_=Y.transitions;return S},CMf=function(Y){var S=["GMT"];
S.push(Y<=0?"+":"-");Y=Math.abs(Y);S.push(_.Sm(Math.floor(Y/60)%100,2),":",_.Sm(Y%60,2));return S.join("")},qRd=function(Y,S){S=Date.UTC(S.getUTCFullYear(),S.getUTCMonth(),S.getUTCDate(),S.getUTCHours(),S.getUTCMinutes())/36E5;
for(var P=0;P<Y.transitions_.length&&S>=Y.transitions_[P];)P+=2;return P==0?0:Y.transitions_[P-1]},RCS=function(Y,S){Y=Y.standardOffset_-qRd(Y,S);
return Y===-1440?0:Y};var UC=function(Y,S){this.patternParts_=[];this.JSC$9176_dateTimeSymbols_=S||f6;typeof Y=="number"?xys(this,Y):bVL(this,Y)},T2d=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],lv=function(Y){return Y.getHours?Y.getHours():0},bVL=function(Y,S){for(kNX&&(S=S.replace(/\u200f/g,""));S;){for(var P=S,u=0;u<T2d.length;++u){var W=S.match(T2d[u]);
if(W){var m=W[0];S=S.substring(m.length);u==0&&(m=="''"?m="'":(m=m.substring(1,W[1]=="'"?m.length-1:m.length),m=m.replace(/''/g,"'")));Y.patternParts_.push({text:m,type:u});break}}if(P===S)throw Error("Wd`"+S);}};
UC.prototype.format=function(Y,S){if(!Y)throw Error("Xd");var P=S?(Y.getTimezoneOffset()-RCS(S,Y))*6E4:0,u=P?new Date(Y.getTime()+P):Y,W=u;S&&u.getTimezoneOffset()!=Y.getTimezoneOffset()&&(u=new Date(u.getTime()+(u.getTimezoneOffset()-Y.getTimezoneOffset())*6E4),W=new Date(Y.getTime()+(P+(P>0?-864E5:864E5))));P=[];for(var m=0;m<this.patternParts_.length;++m){var J=this.patternParts_[m].text;1==this.patternParts_[m].type?P.push(KM6(this,J,Y,u,W,S)):P.push(J)}return P.join("")};
var xys=function(Y,S){if(S<4)var P=Y.JSC$9176_dateTimeSymbols_.DATEFORMATS[S];else if(S<8)P=Y.JSC$9176_dateTimeSymbols_.TIMEFORMATS[S-4];else if(S<12)P=Y.JSC$9176_dateTimeSymbols_.DATETIMEFORMATS[S-8],P=P.replace("{1}",Y.JSC$9176_dateTimeSymbols_.DATEFORMATS[S-8]),P=P.replace("{0}",Y.JSC$9176_dateTimeSymbols_.TIMEFORMATS[S-8]);else if(S===12)P=Y.JSC$9176_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(S===13)P=Y.JSC$9176_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{xys(Y,10);return}bVL(Y,P)},XK=function(Y,S){S=String(S);
Y=Y.JSC$9176_dateTimeSymbols_||f6;if(Y.ZERODIGIT!==void 0&&!Q8a){for(var P=[],u=0;u<S.length;u++){var W=S.charCodeAt(u);P.push(48<=W&&W<=57?String.fromCharCode(Y.ZERODIGIT+W-48):S.charAt(u))}S=P.join("")}return S},Q8a=!1,kNX=!1,fVU=function(Y,S,P,u){P=P.getFullYear();
P<=0&&u&&(P=1-P);return XK(Y,E93(P,S))},E93=function(Y,S){S==2&&(Y%=100);
Y<0&&S++;return _.Sm(Y,S)},Zo=function(Y){if(!(Y.getHours&&Y.getSeconds&&Y.getMinutes))throw Error("Yd");
},g9m=function(Y,S){Zo(S);
S=lv(S);return Y.JSC$9176_dateTimeSymbols_.AMPMS[S>=12&&S<24?1:0]},KM6=function(Y,S,P,u,W,m){var J=S.length;
switch(S.charAt(0)){case "G":return P=u.getFullYear()>0?1:0,J>=4?Y.JSC$9176_dateTimeSymbols_.ERANAMES[P]:Y.JSC$9176_dateTimeSymbols_.ERAS[P];case "y":return fVU(Y,J,u,!0);case "Y":return P=(new Date(rEh(u.getFullYear(),u.getMonth(),u.getDate(),Y.JSC$9176_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,Y.JSC$9176_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),J==2&&(P%=100),XK(Y,E93(P,J));case "u":return fVU(Y,J,u,!1);case "M":a:switch(P=u.getMonth(),J){case 5:J=Y.JSC$9176_dateTimeSymbols_.NARROWMONTHS[P];break a;
case 4:J=Y.JSC$9176_dateTimeSymbols_.MONTHS[P];break a;case 3:J=Y.JSC$9176_dateTimeSymbols_.SHORTMONTHS[P];break a;default:J=XK(Y,_.Sm(P+1,J))}return J;case "k":return Zo(W),XK(Y,_.Sm(lv(W)||24,J));case "S":return XK(Y,(W.getMilliseconds()/1E3).toFixed(Math.min(3,J)).slice(2)+(J>3?_.Sm(0,J-3):""));case "E":return P=u.getDay(),J>=4?Y.JSC$9176_dateTimeSymbols_.WEEKDAYS[P]:Y.JSC$9176_dateTimeSymbols_.SHORTWEEKDAYS[P];case "a":return g9m(Y,W);case "b":return g9m(Y,W);case "B":return g9m(Y,W);case "h":return Zo(W),
XK(Y,_.Sm(lv(W)%12||12,J));case "K":return Zo(W),XK(Y,_.Sm(lv(W)%12,J));case "H":return Zo(W),XK(Y,_.Sm(lv(W),J));case "c":a:switch(P=u.getDay(),J){case 5:J=Y.JSC$9176_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[P];break a;case 4:J=Y.JSC$9176_dateTimeSymbols_.STANDALONEWEEKDAYS[P];break a;case 3:J=Y.JSC$9176_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[P];break a;default:J=XK(Y,_.Sm(P,1))}return J;case "L":a:switch(P=u.getMonth(),J){case 5:J=Y.JSC$9176_dateTimeSymbols_.STANDALONENARROWMONTHS[P];break a;
case 4:J=Y.JSC$9176_dateTimeSymbols_.STANDALONEMONTHS[P];break a;case 3:J=Y.JSC$9176_dateTimeSymbols_.STANDALONESHORTMONTHS[P];break a;default:J=XK(Y,_.Sm(P+1,J))}return J;case "Q":return P=Math.floor(u.getMonth()/3),J<4?Y.JSC$9176_dateTimeSymbols_.SHORTQUARTERS[P]:Y.JSC$9176_dateTimeSymbols_.QUARTERS[P];case "d":return XK(Y,_.Sm(u.getDate(),J));case "m":return Zo(W),XK(Y,_.Sm(W.getMinutes?W.getMinutes():0,J));case "s":return Zo(W),XK(Y,_.Sm(W.getSeconds(),J));case "v":return(m||AE(P.getTimezoneOffset())).timeZoneId_;
case "V":return Y=m||AE(P.getTimezoneOffset()),J<=2?Y.timeZoneId_:qRd(Y,P)>0?Y.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?Y.tzNamesExt_.DST_GENERIC_LOCATION:Y.tzNamesExt_.DST_GENERIC_LOCATION:Y.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?Y.tzNamesExt_.STD_GENERIC_LOCATION:Y.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return P=rEh(W.getFullYear(),W.getMonth(),W.getDate(),Y.JSC$9176_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,Y.JSC$9176_dateTimeSymbols_.FIRSTDAYOFWEEK),XK(Y,_.Sm(Math.floor(Math.round((P-(new Date((new Date(P)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,J));case "z":return Y=m||AE(P.getTimezoneOffset()),J<4?Y.tzNames_[qRd(Y,P)>0?2:0]:Y.tzNames_[qRd(Y,P)>0?3:1];case "Z":return S=m||AE(P.getTimezoneOffset()),J<4?(J=-RCS(S,P),Y=[J<0?"-":"+"],J=Math.abs(J),Y.push(_.Sm(Math.floor(J/60)%100,2),_.Sm(J%60,2)),J=Y.join("")):J=XK(Y,CMf(RCS(S,P))),J;default:return""}};var $yh=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,rKd=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,qcK=function(Y){this.patternParts_=[];this.JSC$9185_dateTimeSymbols_=f6;if(typeof Y=="number"){Y>11&&(Y=10);if(Y<4)var S=this.JSC$9185_dateTimeSymbols_.DATEFORMATS[Y];else Y<8?S=this.JSC$9185_dateTimeSymbols_.TIMEFORMATS[Y-4]:(S=this.JSC$9185_dateTimeSymbols_.DATETIMEFORMATS[Y-8],S=S.replace("{1}",this.JSC$9185_dateTimeSymbols_.DATEFORMATS[Y-8]),S=S.replace("{0}",this.JSC$9185_dateTimeSymbols_.TIMEFORMATS[Y-
8]));Gp3(this,S)}else Gp3(this,Y)},Gp3=function(Y,S){for(var P=!1,u="",W=0;W<S.length;W++){var m=S.charAt(W);
if($yh.test(m))for(u.length>0&&(Y.patternParts_.push({text:u,count:0,abutStart:!1,numeric:!1}),u=""),Y.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});W<S.length-1&&S.charAt(W+1)==" ";)W++;else if(P)m=="'"?W+1<S.length&&S.charAt(W+1)=="'"?(u+="'",W++):P=!1:u+=m;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(m)>=0){u.length>0&&(Y.patternParts_.push({text:u,count:0,abutStart:!1,numeric:!1}),u="");for(var J=S.charAt(W),c=W+1;c<S.length&&S.charAt(c)==J;)c++;J=c-W;J<=0?c=!1:(c="MydhHmsSDkK".indexOf(m),
c=c>0||c==0&&J<3);Y.patternParts_.push({text:m,count:J,abutStart:!1,numeric:c});W+=J-1}else m=="'"?W+1<S.length&&S.charAt(W+1)=="'"?(u+="'",W++):P=!0:u+=m}u.length>0&&Y.patternParts_.push({text:u,count:0,abutStart:!1,numeric:!1});S=!1;for(P=0;P<Y.patternParts_.length;P++)Y.patternParts_[P].numeric?!S&&P+1<Y.patternParts_.length&&Y.patternParts_[P+1].numeric&&(S=!0,Y.patternParts_[P].abutStart=!0):S=!1};
qcK.prototype.parse=function(Y,S,P){var u=!1,W=!1;P&&(u=P.predictive||!1,W=P.validate||!1);if(u)for(P=0;P<this.patternParts_.length;P++){var m=this.patternParts_[P];if(m.count>0&&("abBhHkKm".indexOf(m.text.charAt(0))<0||m.count>2||m.abutStart))throw Error("Zd`"+m.text.charAt(0));}m=new hCf;P=[0];m.dayPeriodIndex=-1;for(var J=0;J<this.patternParts_.length&&!(u&&P[0]>=Y.length);J++){if(this.patternParts_[J].count==0){a:{var c=Y;var C=P,x=this.patternParts_[J],b=u;if(x.text.match($yh)!=null){if(x=C[0],
v9_(c,C),C[0]>x){c=!0;break a}}else{if(c.indexOf(x.text,C[0])==C[0]){C[0]+=x.text.length;c=!0;break a}if(b&&x.text.indexOf(c.substring(C[0]))==0){C[0]+=c.length-C[0];c=!0;break a}}c=!1}if(c)continue;return 0}if(this.patternParts_[J].abutStart){a:{C=Y;x=P;b=J;var T=x[0],K=0;for(c=b;c<this.patternParts_.length;c++){var G=this.patternParts_[c],v=G.count;if(v===0)break;if(c==b&&(v-=K,K++,v==0)){c=0;break a}var a=c>b&&G.numeric,w=x[0];if(!Dym(this,C,x,G,v,m,!1)||a&&x[0]-w<v)c=b-1,x[0]=T}c-=b}if(c<=0)return 0;
J+=c-1}else if(!Dym(this,Y,P,this.patternParts_[J],0,m,u))return 0}a:{Y=W;if(S==null)throw Error("$d");m.era!=void 0&&m.year!=void 0&&m.era==0&&m.year>0&&(m.year=-(m.year-1));m.year!=void 0&&S.setFullYear(m.year);u=S.getDate();S.setDate(1);m.month!=void 0&&S.setMonth(m.month);m.day!=void 0?S.setDate(m.day):(W=twh(S.getFullYear(),S.getMonth()),S.setDate(u>W?W:u));typeof S.setHours==="function"&&(m.hours==void 0&&(m.hours=S.getHours()),m.hours<12&&(m.ampm!=void 0&&m.ampm>0?m.hours+=12:m.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(m.dayPeriodName)||["night1","night2"].includes(m.dayPeriodName)&&m.hours>=6)&&(m.hours+=12)),S.setHours(m.hours));typeof S.setMinutes==="function"&&m.minutes!=void 0&&S.setMinutes(m.minutes);typeof S.setSeconds==="function"&&m.seconds!=void 0&&S.setSeconds(m.seconds);typeof S.setMilliseconds==="function"&&m.milliseconds!=void 0&&S.setMilliseconds(m.milliseconds);if(Y&&(m.year&&m.year!=S.getFullYear()||m.month&&m.month!=
S.getMonth()||m.day&&m.day!=S.getDate()||m.hours&&m.hours>=24||m.minutes&&m.minutes>=60||m.seconds&&m.seconds>=60||m.milliseconds&&m.milliseconds>=1E3))S=!1;else{m.tzOffset!=void 0&&S.setTime(S.getTime()+(m.tzOffset-S.getTimezoneOffset())*60*1E3);m.ambiguousYear&&(Y=new Date,Y.setFullYear(Y.getFullYear()-80),S.getTime()<Y.getTime()&&S.setFullYear(Y.getFullYear()+100));if(m.dayOfWeek!=void 0)if(m.day==void 0)m=(7+m.dayOfWeek-S.getDay())%7,m>3&&(m-=7),Y=S.getMonth(),S.setDate(S.getDate()+m),S.getMonth()!=
Y&&S.setDate(S.getDate()+(m>0?-7:7));else if(m.dayOfWeek!=S.getDay()){S=!1;break a}S=!0}}return S?P[0]:0};
var Dym=function(Y,S,P,u,W,m,J){v9_(S,P);if(u.numeric&&W>0&&P[0]+W>S.length)return!1;switch(u.text.charAt(0)){case "G":return iv(S,P,[Y.JSC$9185_dateTimeSymbols_.ERAS],function(c){return m.era=c}),!0;
case "M":case "L":return IV6(Y,S,P,W,u,m);case "E":return iv(S,P,[Y.JSC$9185_dateTimeSymbols_.WEEKDAYS,Y.JSC$9185_dateTimeSymbols_.SHORTWEEKDAYS],function(c){return m.dayOfWeek=c});
case "B":case "b":return W=[],Y=[[].concat(Y.JSC$9185_dateTimeSymbols_.AMPMS)],W.push("isAm"),W.push("isPm"),S=iv(S,P,Y,function(c){return m.dayPeriodIndex=c},J),m.dayPeriodName=W[m.dayPeriodIndex],J?S:!0;
case "a":return S=iv(S,P,[Y.JSC$9185_dateTimeSymbols_.AMPMS],function(c){return m.ampm=c},J),J?S:!0;
case "y":return aVU(Y,S,P,u,W,m);case "Q":return iv(S,P,[Y.JSC$9185_dateTimeSymbols_.QUARTERS,Y.JSC$9185_dateTimeSymbols_.SHORTQUARTERS],function(c){m.month=c*3;m.day=1});
case "d":return oM(Y,S,P,u,W,function(c){m.day=c}),!0;
case "S":return LM6(Y,S,P,W,m);case "h":case "K":case "H":case "k":return S=oM(Y,S,P,u,W,function(c){m.hours=u.text.charAt(0)==="h"&&c===12?0:c},J),J?S:!0;
case "m":return S=oM(Y,S,P,u,W,function(c){m.minutes=c},J),J?S:!0;
case "s":return oM(Y,S,P,u,W,function(c){m.seconds=c}),!0;
case "z":case "Z":case "v":return wqf(Y,S,P,m);default:return!1}},aVU=function(Y,S,P,u,W,m){var J=P[0];
W=t7(Y,S,P,W);W===null&&(W=t7(Y,S,P,0,!0));if(W===null)return!1;W>=0&&P[0]-J==2&&u.count==2?(Y=W,S=(new Date).getFullYear()-80,P=S%100,m.ambiguousYear=Y==P,Y+=Math.floor(S/100)*100+(Y<P?100:0),m.year=Y):m.year=W;return!0},IV6=function(Y,S,P,u,W,m){return W.numeric&&oM(Y,S,P,W,u,function(J){m.month=J-1})?!0:iv(S,P,[Y.JSC$9185_dateTimeSymbols_.MONTHS,
Y.JSC$9185_dateTimeSymbols_.STANDALONEMONTHS,Y.JSC$9185_dateTimeSymbols_.SHORTMONTHS,Y.JSC$9185_dateTimeSymbols_.STANDALONESHORTMONTHS],function(J){m.month=J})},LM6=function(Y,S,P,u,W){var m=P[0];
Y=t7(Y,S,P,u);if(Y===null)return!1;P=P[0]-m;W.milliseconds=P<3?Y*Math.pow(10,3-P):Math.round(Y/Math.pow(10,P-3));return!0},wqf=function(Y,S,P,u){S.indexOf("GMT",P[0])==P[0]&&(P[0]+=3);
if(P[0]>=S.length)return u.tzOffset=0,!0;var W=P[0],m=t7(Y,S,P,0,!0);if(m===null)return!1;if(P[0]<S.length&&S.charAt(P[0])==":"){var J=m*60;P[0]++;m=t7(Y,S,P,0);if(m===null)return!1;J+=m}else J=m,J=J<24&&P[0]-W<=3?J*60:J%100+J/100*60;u.tzOffset=-J;return!0},oM=function(Y,S,P,u,W,m,J){J=J||!1;
var c=P[0];Y=t7(Y,S,P,W);if(Y===null)return!1;if(J&&P[0]-c<u.count){if(P[0]<S.length)return!1;Y*=Math.pow(10,u.count-(P[0]-c))}m(Y);return!0},iv=function(Y,S,P,u,W){W=W||!1;
for(var m,J=0;J<P.length;J++){m=S;for(var c=P[J],C=W,x=0,b=null,T=Y.substring(m[0]).toLowerCase(),K=0;K<c.length;K++){var G=c[K].toLowerCase();if(C&&G.indexOf(T)==0){x=T.length;b=K;break}c[K].length>x&&T.indexOf(G)==0&&(x=c[K].length,b=K)}b!==null&&(m[0]+=x);m=b;if(m!==null)return u(m),!0}return!1},v9_=function(Y,S){(Y=Y.substring(S[0]).match(rKd))&&(S[0]+=Y[0].length)},t7=function(Y,S,P,u,W){S=u>0?S.substring(0,P[0]+u):S;
W=W||!1;if(Y.JSC$9185_dateTimeSymbols_.ZERODIGIT){u=[];for(var m=P[0];m<S.length;m++){var J=S.charCodeAt(m)-Y.JSC$9185_dateTimeSymbols_.ZERODIGIT;u.push(0<=J&&J<=9?String.fromCharCode(J+48):S.charAt(m))}S=u.join("")}else S=S.substring(P[0]);Y=S.match(new RegExp("^"+(W?"[+-]?":"")+"\\d+"));if(!Y)return null;P[0]+=Y[0].length;return parseInt(Y[0],10)},hCf=function(){};
hCf.prototype.ambiguousYear=!1;_.pqu={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 FM6={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"},sKm=FM6,dyL=FM6;dyL=sKm=FM6;var Xq_,A7,QW,WBX,Uq,lV6;
_.iI=function(Y,S,P,u){var W;if(W=S){a:if(S&&S.length===3){for(W=0;W<3;W++){var m=S[W];if(m<"A"||m>"Z"&&m<"a"||m>"z"){W=!1;break a}}W=!0}else W=!1;W=!W}if(W)throw new TypeError("ae");this.intlCurrencyCode_=S?S.toUpperCase():null;this.currencyStyle_=P||0;this.overrideNumberFormatSymbols_=u||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_=A7(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof Y==="number")switch(Y){case 1:Uq(this,A7(this).DECIMAL_PATTERN);break;case 2:Uq(this,A7(this).SCIENTIFIC_PATTERN);break;case 3:Uq(this,A7(this).PERCENT_PATTERN);break;case 4:Y=A7(this).CURRENCY_PATTERN;S=["0"];if(P=
dF[QW(this)]){P=P[0]&7;if(P>0)for(S.push("."),u=0;u<P;u++)S.push("0");Y=Y.replace(/0.00/g,S.join(""))}Uq(this,Y);break;case 5:lV6(this,1);break;case 6:lV6(this,2);break;default:throw Error("de");}else Uq(this,Y)};
Xq_=!1;A7=function(Y){return Y.overrideNumberFormatSymbols_||(Xq_?dyL:sKm)};
QW=function(Y){return Y.intlCurrencyCode_||A7(Y).DEF_CURRENCY_CODE};
WBX=function(Y,S){if(S>308)throw Error("ce`"+S);Y.maximumFractionDigits_=S;return Y};
Uq=function(Y,S){var P=[0];Y.positivePrefix_=ZVm(Y,S,P);for(var u=P[0],W=-1,m=0,J=0,c=0,C=-1,x=S.length,b=!0;P[0]<x&&b;P[0]++)switch(S.charAt(P[0])){case "#":J>0?c++:m++;C>=0&&W<0&&C++;break;case "0":if(c>0)throw Error("je`"+S);J++;C>=0&&W<0&&C++;break;case ",":C>0&&Y.groupingArray_.push(C);C=0;break;case ".":if(W>=0)throw Error("ke`"+S);W=m+J+c;break;case "E":if(Y.useExponentialNotation_)throw Error("le`"+S);Y.useExponentialNotation_=!0;Y.minExponentDigits_=0;P[0]+1<x&&S.charAt(P[0]+1)=="+"&&(P[0]++,
Y.useSignForPositiveExponent_=!0);for(;P[0]+1<x&&S.charAt(P[0]+1)=="0";)P[0]++,Y.minExponentDigits_++;if(m+J<1||Y.minExponentDigits_<1)throw Error("me`"+S);b=!1;break;default:P[0]--,b=!1}J==0&&m>0&&W>=0&&(J=W,J==0&&J++,c=m-J,m=J-1,J=1);if(W<0&&c>0||W>=0&&(W<m||W>m+J)||C==0)throw Error("ne`"+S);c=m+J+c;Y.maximumFractionDigits_=W>=0?c-W:0;W>=0&&(Y.minimumFractionDigits_=m+J-W,Y.minimumFractionDigits_<0&&(Y.minimumFractionDigits_=0));Y.minimumIntegerDigits_=(W>=0?W:c)-m;Y.useExponentialNotation_&&(Y.maximumIntegerDigits_=
m+Y.minimumIntegerDigits_,Y.maximumFractionDigits_==0&&Y.minimumIntegerDigits_==0&&(Y.minimumIntegerDigits_=1));Y.groupingArray_.push(Math.max(0,C));Y.decimalSeparatorAlwaysShown_=W==0||W==c;u=P[0]-u;Y.positiveSuffix_=ZVm(Y,S,P);P[0]<S.length&&S.charAt(P[0])==";"?(P[0]++,Y.multiplier_!=1&&(Y.negativePercentSignExpected_=!0),Y.negativePrefix_=ZVm(Y,S,P),P[0]+=u,Y.negativeSuffix_=ZVm(Y,S,P)):(Y.negativePrefix_+=Y.positivePrefix_,Y.negativeSuffix_+=Y.positiveSuffix_)};
lV6=function(Y,S){Y.compactStyle_=S;Uq(Y,A7(Y).DECIMAL_PATTERN);Y.minimumFractionDigits_=0;WBX(Y,2);if(Y.minimumFractionDigits_>0)throw Error("be");Y.significantDigits_=2};
_.iI.prototype.parse=function(Y,S){S=S||[0];if(this.compactStyle_!==0)throw Error("ee");Y=Y.replace(/ |\u202f/g,"\u00a0");var P=Y.indexOf(this.positivePrefix_,S[0])==S[0],u=Y.indexOf(this.negativePrefix_,S[0])==S[0];P&&u&&(this.positivePrefix_.length>this.negativePrefix_.length?u=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(P=!1));P?S[0]+=this.positivePrefix_.length:u&&(S[0]+=this.negativePrefix_.length);if(Y.indexOf(A7(this).INFINITY,S[0])==S[0]){S[0]+=A7(this).INFINITY.length;var W=
Infinity}else{W=Y;var m=!1,J=!1,c=!1,C=-1,x=1,b=A7(this).DECIMAL_SEP,T=A7(this).GROUP_SEP,K=A7(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");T=T.replace(/\u202f/g,"\u00a0");for(var G="";S[0]<W.length;S[0]++){var v=W.charAt(S[0]),a=iV_(this,v);if(a>=0&&a<=9)G+=a,c=!0;else if(v==b.charAt(0)){if(m||J)break;G+=".";m=!0}else if(v==T.charAt(0)&&("\u00a0"!=T.charAt(0)||S[0]+1<W.length&&iV_(this,W.charAt(S[0]+1))>=0)){if(m||J)break}else if(v==K.charAt(0)){if(J)break;G+="E";J=!0;C=S[0]}else if(v==
"+"||v=="-"){if(c&&C!=S[0]-1)break;G+=v}else if(this.multiplier_==1&&v==A7(this).PERCENT.charAt(0)){if(x!=1)break;x=100;if(c){S[0]++;break}}else if(this.multiplier_==1&&v==A7(this).PERMILL.charAt(0)){if(x!=1)break;x=1E3;if(c){S[0]++;break}}else break}this.multiplier_!=1&&(x=this.multiplier_);W=parseFloat(G)/x}if(P){if(Y.indexOf(this.positiveSuffix_,S[0])!=S[0])return NaN;S[0]+=this.positiveSuffix_.length}else if(u){if(Y.indexOf(this.negativeSuffix_,S[0])!=S[0])return NaN;S[0]+=this.negativeSuffix_.length}return u?
-W:W};
_.iI.prototype.format=function(Y){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(Y))return A7(this).NAN;var S=[];var P=Y;if(this.compactStyle_==0)P=kf;else{P=Math.abs(P);var u=o9J(this,P<=1?0:tVU(P)).divisorBase;P=o9J(this,u+tVU(AKd(this,MJ(P,-u)).intValue))}Y=MJ(Y,-P.divisorBase);(u=Y<0||Y==0&&1/Y<0)?P.negative_prefix?S.push(P.negative_prefix):(S.push(P.prefix),S.push(this.negativePrefix_)):(S.push(P.prefix),S.push(this.positivePrefix_));if(isFinite(Y))if(Y*=
u?-1:1,Y*=this.multiplier_,this.useExponentialNotation_){var W=Y;if(W==0)Uy3(this,W,this.minimumIntegerDigits_,S),QKf(this,0,S);else{var m=Math.floor(Math.log(W)/Math.log(10)+2E-15);W=MJ(W,-m);var J=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(J=m%this.maximumIntegerDigits_,J<0&&(J=this.maximumIntegerDigits_+J),W=MJ(W,J),m-=J,J=1):this.minimumIntegerDigits_<1?(m++,W=MJ(W,-1)):(m-=this.minimumIntegerDigits_-1,W=MJ(W,this.minimumIntegerDigits_-
1));Uy3(this,W,J,S);QKf(this,m,S)}}else Uy3(this,Y,this.minimumIntegerDigits_,S);else S.push(A7(this).INFINITY);u?P.negative_suffix?S.push(P.negative_suffix):(isFinite(Y)&&S.push(P.suffix),S.push(this.negativeSuffix_)):(isFinite(Y)&&S.push(P.suffix),S.push(this.positiveSuffix_));return S.join("")};
var AKd=function(Y,S){var P=MJ(S,Y.maximumFractionDigits_);Y.significantDigits_>0&&(P=kpL(P,Y.significantDigits_,Y.maximumFractionDigits_));P=Math.round(P);if(isFinite(P)){var u=Math.floor(MJ(P,-Y.maximumFractionDigits_));P=Math.floor(P-MJ(u,Y.maximumFractionDigits_));if(P<0||P>=MJ(1,Y.maximumFractionDigits_))u=Math.round(S),P=0}else u=S,P=0;return{intValue:u,fracValue:P}},Uy3=function(Y,S,P,u){if(Y.minimumFractionDigits_>Y.maximumFractionDigits_)throw Error("ge");
u||(u=[]);S=AKd(Y,S);var W=S.intValue,m=S.fracValue,J=Y.minimumFractionDigits_>0||m>0||!1;S=Y.minimumFractionDigits_;J&&(S=Y.minimumFractionDigits_);for(var c="",C=W;C>1E20;)c="0"+c,C=Math.round(MJ(C,-1));c=C+c;var x=A7(Y).DECIMAL_SEP;C=A7(Y).ZERO_DIGIT.codePointAt(0);var b=c.length,T=0;if(W>0||P>0){for(W=b;W<P;W++)u.push(String.fromCodePoint(C));if(Y.groupingArray_.length>=2)for(P=1;P<Y.groupingArray_.length;P++)T+=Y.groupingArray_[P];P=b-T;if(P>0){W=Y.groupingArray_;T=b=0;for(var K,G=A7(Y).GROUP_SEP,
v=c.length,a=0;a<v;a++)if(u.push(String.fromCodePoint(C+Number(c.charAt(a)))),v-a>1)if(K=W[T],a<P){var w=P-a;(K===1||K>0&&w%K===1)&&u.push(G)}else T<W.length&&(a===P?T+=1:K===a-P-b+1&&(u.push(G),b+=K,T+=1))}else{P=c;c=Y.groupingArray_;W=A7(Y).GROUP_SEP;K=P.length;G=[];for(b=c.length-1;b>=0&&K>0;b--){T=c[b];for(v=0;v<T&&K-v-1>=0;v++)G.push(String.fromCodePoint(C+Number(P.charAt(K-v-1))));K-=T;K>0&&G.push(W)}u.push.apply(u,G.reverse())}}else J||u.push(String.fromCodePoint(C));(Y.decimalSeparatorAlwaysShown_||
J)&&u.push(x);m=String(m);J=m.split("e+");J.length==2&&(m=String(kpL(parseFloat(J[0]),Y.significantDigits_,1)),m=m.replace(".",""),m+=(0,_.yum)("0",parseInt(J[1],10)-m.length+1));Y.maximumFractionDigits_+1>m.length&&(m="1"+(0,_.yum)("0",Y.maximumFractionDigits_-m.length)+m);for(Y=m.length;m.charAt(Y-1)=="0"&&Y>S+1;)Y--;for(S=1;S<Y;S++)u.push(String.fromCodePoint(C+Number(m.charAt(S))))},QKf=function(Y,S,P){P.push(A7(Y).EXP_SYMBOL);
S<0?(S=-S,P.push(A7(Y).MINUS_SIGN)):Y.useSignForPositiveExponent_&&P.push(A7(Y).PLUS_SIGN);S=""+S;for(var u=A7(Y).ZERO_DIGIT,W=S.length;W<Y.minExponentDigits_;W++)P.push(u);Y=u.codePointAt(0)-MVi;for(u=0;u<S.length;u++)P.push(String.fromCodePoint(Y+S.codePointAt(u)))},iV_=function(Y,S){S=S.codePointAt(0);
if(48<=S&&S<58)return S-48;Y=A7(Y).ZERO_DIGIT.codePointAt(0);return Y<=S&&S<Y+10?S-Y:-1},MVi="0".codePointAt(0),ZVm=function(Y,S,P){for(var u="",W=!1,m=S.length;P[0]<m;P[0]++){var J=S.charAt(P[0]);
if(J=="'")P[0]+1<m&&S.charAt(P[0]+1)=="'"?(P[0]++,u+="'"):W=!W;else if(W)u+=J;else switch(J){case "#":case "0":case ",":case ".":case ";":return u;case "\u00a4":if(P[0]+1<m&&S.charAt(P[0]+1)=="\u00a4")P[0]++,u+=QW(Y);else switch(Y.currencyStyle_){case 0:J=QW(Y);u+=J in dF?dF[J][1]:J;break;case 2:J=QW(Y);var c=dF[J];u+=c?J==c[1]?J:J+" "+c[1]:J;break;case 1:J=QW(Y),u+=J in dF?dF[J][2]:J}break;case "%":if(!Y.negativePercentSignExpected_&&Y.multiplier_!=1)throw Error("he");if(Y.negativePercentSignExpected_&&
Y.multiplier_!=100)throw Error("ie");Y.multiplier_=100;Y.negativePercentSignExpected_=!1;u+=A7(Y).PERCENT;break;case "\u2030":if(!Y.negativePercentSignExpected_&&Y.multiplier_!=1)throw Error("he");if(Y.negativePercentSignExpected_&&Y.multiplier_!=1E3)throw Error("ie");Y.multiplier_=1E3;Y.negativePercentSignExpected_=!1;u+=A7(Y).PERMILL;break;default:u+=J}}return u},kf={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},o9J=function(Y,S){Y=Y.compactStyle_==1?sq.COMPACT_DECIMAL_SHORT_PATTERN:sq.COMPACT_DECIMAL_LONG_PATTERN;Y==null&&(Y=sq.COMPACT_DECIMAL_SHORT_PATTERN);if(S<3)return kf;S=Math.min(14,S);var P=Y[MJ(1,S)];for(--S;!P&&S>=3;)P=Y[MJ(1,S)],S--;if(!P)return kf;P=P.other;var u=Y="",W=P.indexOf(";");W>=0&&(P=P.substring(0,W),W=P.substring(W+1))&&(u=/([^0]*)(0+)(.*)/.exec(W),Y=u[1],u=u[3]);return P&&P!="0"?(P=/([^0]*)(0+)(.*)/.exec(P))?{divisorBase:S+
1-(P[2].length-1),negative_prefix:Y,negative_suffix:u,prefix:P[1],suffix:P[3]}:kf:kf},tVU=function(Y){if(!isFinite(Y))return Y>0?Y:0;
for(var S=0;(Y/=10)>=1;)S++;return S},MJ=function(Y,S){if(!Y||!isFinite(Y)||S==0)return Y;
Y=String(Y).split("e");return parseFloat(Y[0]+"e"+(parseInt(Y[1]||0,10)+S))},yKs=function(Y,S){return Y&&isFinite(Y)?MJ(Math.round(MJ(Y,S)),-S):Y},kpL=function(Y,S,P){if(!Y)return Y;
S=S-tVU(Y)-1;return S<-P?yKs(Y,-P):yKs(Y,S)};var N2h=function(Y){return Y%10==1&&Y%100!=11?"one":Y%10==2&&Y%100!=12?"two":Y%10==3&&Y%100!=13?"few":"other"},HVf=N2h;
HVf=N2h;var VVi;VVi=function(Y,S){var P=Y|0;if(void 0===S){S=Math;var u=S.min,W=Y+"",m=W.indexOf(".");S=u.call(S,m===-1?0:W.length-m-1,3)}u=Math.pow(10,S);Y={v:S,f:(Y*u|0)%u};return P==1&&Y.v==0?"one":"other"};
_.Qc=VVi;_.Qc=VVi;var eCS,OVf,YXU,Pps,u2t;_.SX6=function(Y){this.JSC$9228_pattern_=Y;this.parsedPattern_=this.literals_=this.initialLiterals_=null;Y=sKm;var S=sq;if(eCS!==Y||OVf!==S)eCS=Y,OVf=S,YXU=new _.iI(1);this.numberFormatter_=YXU};
eCS=null;OVf=null;YXU=null;Pps=RegExp("'([{}#].*?)'","g");u2t=RegExp("''","g");
_.SX6.prototype.format=function(Y){if(this.JSC$9228_pattern_){this.initialLiterals_=[];var S=Wmh(this,this.JSC$9228_pattern_);this.parsedPattern_=znu(this,S);this.JSC$9228_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.NU(this.initialLiterals_),S=[],mh6(this,this.parsedPattern_,Y,!1,S),Y=S.join("");this.literals_.length>0;)Y=Y.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else Y="";return Y};
var mh6=function(Y,S,P,u,W){for(var m=0;m<S.length;m++)switch(S[m].type){case 4:W.push(S[m].value);break;case 3:var J=S[m].value;var c=Y,C=W,x=P[J];x===void 0?C.push("Undefined parameter - "+J):(c.literals_.push(x),C.push(c.buildPlaceholder_(c.literals_)));break;case 2:J=S[m].value;c=Y;C=P;x=u;var b=W,T=J.argumentIndex;C[T]===void 0?b.push("Undefined parameter - "+T):(T=J[C[T]],T===void 0&&(T=J.other),mh6(c,T,C,x,b));break;case 0:J=S[m].value;nBs(Y,J,P,_.Qc,u,W);break;case 1:J=S[m].value,nBs(Y,J,
P,HVf,u,W)}},nBs=function(Y,S,P,u,W,m){var J=S.argumentIndex,c=S.argumentOffset,C=+P[J];
isNaN(C)?m.push("Undefined or invalid parameter - "+J):(c=C-c,J=S[P[J]],J===void 0&&(u=u(Math.abs(c)),J=S[u],J===void 0&&(J=S.other)),S=[],mh6(Y,J,P,W,S),P=S.join(""),W?m.push(P):(Y=Y.numberFormatter_.format(c),m.push(P.replace(/#/g,Y))))},Wmh=function(Y,S){var P=Y.initialLiterals_,u=Y.buildPlaceholder_.bind(Y);
S=S.replace(u2t,function(){P.push("'");return u(P)});
return S=S.replace(Pps,function(W,m){P.push(m);return u(P)})},j_S=function(Y){var S=0,P=[],u=[],W=/[{}]/g;
W.lastIndex=0;for(var m;m=W.exec(Y);){var J=m.index;m[0]=="}"?(P.pop(),P.length==0&&(m={type:1},m.value=Y.substring(S,J),u.push(m),S=J+1)):(P.length==0&&(S=Y.substring(S,J),S!=""&&u.push({type:0,value:S}),S=J+1),P.push("{"))}Y=Y.substring(S);Y!=""&&u.push({type:0,value:Y});return u},JI3=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,B0J=/^\s*(\w+)\s*,\s*selectordinal\s*,/,cIJ=/^\s*(\w+)\s*,\s*select\s*,/,znu=function(Y,S){var P=[];
S=j_S(S);for(var u=0;u<S.length;u++){var W={};if(0==S[u].type)W.type=4,W.value=S[u].value;else if(1==S[u].type){var m=S[u].value;switch(JI3.test(m)?0:B0J.test(m)?1:cIJ.test(m)?2:/^\s*\w+\s*/.test(m)?3:5){case 2:W.type=2;W.value=CpU(Y,S[u].value);break;case 0:W.type=0;W.value=qXh(Y,S[u].value);break;case 1:W.type=1;W.value=Rnm(Y,S[u].value);break;case 3:W.type=3,W.value=S[u].value}}P.push(W)}return P},CpU=function(Y,S){var P="";
S=S.replace(cIJ,function(c,C){P=C;return""});
var u={};u.argumentIndex=P;S=j_S(S);for(var W=0;W<S.length;){var m=S[W].value;W++;var J=void 0;1==S[W].type&&(J=znu(Y,S[W].value));u[m.replace(/\s/g,"")]=J;W++}return u},qXh=function(Y,S){var P="",u=0;
S=S.replace(JI3,function(C,x,b){P=x;b&&(u=parseInt(b,10));return""});
var W={};W.argumentIndex=P;W.argumentOffset=u;S=j_S(S);for(var m=0;m<S.length;){var J=S[m].value;m++;var c=void 0;1==S[m].type&&(c=znu(Y,S[m].value));W[J.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=c;m++}return W},Rnm=function(Y,S){var P="";
S=S.replace(B0J,function(c,C){P=C;return""});
var u={};u.argumentIndex=P;u.argumentOffset=0;S=j_S(S);for(var W=0;W<S.length;){var m=S[W].value;W++;var J=void 0;1==S[W].type&&(J=znu(Y,S[W].value));u[m.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=J;W++}return u};
_.SX6.prototype.buildPlaceholder_=function(Y){return"\ufddf_"+(Y.length-1).toString(10)+"_"};var xh3;
xh3={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 ND$=function(){this.rdtfSymbols_=bch||xh3;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
ND$.prototype.format=function(Y,S){a:{S=T0S(this,S);switch(this.style_){case 2:if(S.NARROW!=void 0){S=S.NARROW;break a}case 1:if(S.SHORT!=void 0){S=S.SHORT;break a}default:S=S.LONG;break a}S=void 0}if(!this.alwaysNumeric_&&S&&S.R&&S.R[""+Y])Y=S.R[""+Y];else if(S){var P=Math.abs(Y);Y=(new _.SX6("{N,plural,"+(Y>0||Y==0&&1/Y==Infinity?S.F:S.P)+"}")).format({N:P})}else Y="";return Y};
var T0S=function(Y,S){switch(S){default:case 0:return Y.rdtfSymbols_.YEAR;case 1:return Y.rdtfSymbols_.QUARTER;case 2:return Y.rdtfSymbols_.MONTH;case 3:return Y.rdtfSymbols_.WEEK;case 4:return Y.rdtfSymbols_.DAY;case 5:return Y.rdtfSymbols_.HOUR;case 6:return Y.rdtfSymbols_.MINUTE;case 7:return Y.rdtfSymbols_.SECOND}};var Kms=function(Y,S,P,u,W,m,J,c){this.x0=Y;this.y0=S;this.x1=P;this.y1=u;this.x2=W;this.y2=m;this.x3=J;this.y3=c};
Kms.prototype.clone=function(){return new Kms(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Kms.prototype.equals=function(Y){return this.x0==Y.x0&&this.y0==Y.y0&&this.x1==Y.x1&&this.y1==Y.y1&&this.x2==Y.x2&&this.y2==Y.y2&&this.x3==Y.x3&&this.y3==Y.y3};
var EBs=function(Y,S){if(S==0)return Y.x0;if(S==1)return Y.x3;var P=G2(Y.x0,Y.x1,S),u=G2(Y.x1,Y.x2,S);Y=G2(Y.x2,Y.x3,S);P=G2(P,u,S);u=G2(u,Y,S);return G2(P,u,S)},fQi=function(Y,S){var P=(S-Y.x0)/(Y.x3-Y.x0);
if(P<=0)return 0;if(P>=1)return 1;for(var u=0,W=1,m=0,J=0;J<8;J++){m=EBs(Y,P);var c=(EBs(Y,P+1E-6)-m)/1E-6;if(Math.abs(m-S)<1E-6)return P;if(Math.abs(c)<1E-6)break;else m<S?u=P:W=P,P-=(m-S)/c}for(J=0;Math.abs(m-S)>1E-6&&J<8;J++)m<S?(u=P,P=(P+W)/2):(W=P,P=(P+u)/2),m=EBs(Y,P);return P};var yW=function(){_.Tj.call(this);this.JSC$9249_name_="closure_frame"+gBd++;this.iframesForDisposal_=[];$hi[this.JSC$9249_name_]=this},NJ;
_.PW(yW,_.Tj);var $hi={},gBd=0,rIs=function(Y,S){var P=Wk(Y);_.Q6h(S,function(u,W){Array.isArray(u)||(u=[u]);_.Q4(u,function(m){m=P.JSC$7243_createDom("INPUT",{type:"hidden",name:W,value:m});Y.appendChild(m)})})};
_.z=yW.prototype;_.z.JSC$9251_form_=null;_.z.JSC$9251_iframe_=null;_.z.iframeName_=null;_.z.nextIframeId_=0;_.z.JSC$9251_active_=!1;_.z.complete_=!1;_.z.success_=!1;_.z.lastContent_=null;_.z.JSC$9251_lastErrorCode_=0;_.z.iframeDisposalTimer_=null;
_.z.send=function(Y,S,P,u){if(this.JSC$9251_active_)throw Error("oe");Y=new _.Nq(Y);S=S?S.toUpperCase():"GET";P&&_.ui(Y);NJ||(NJ=_.IL("FORM"),NJ.acceptCharset="utf-8",P=NJ.style,P.position="absolute",P.visibility="hidden",P.top=P.left="-10px",P.width=P.height="10px",P.overflow="hidden",document.body.appendChild(NJ));this.JSC$9251_form_=NJ;S=="GET"&&rIs(this.JSC$9251_form_,Y.JSC$7905_queryData_);u&&rIs(this.JSC$9251_form_,u);P=Y.toString();P=yxE(P);u=this.JSC$9251_form_;P=_.R9(Wx(P));P!==void 0&&(u.action=
P);this.JSC$9251_form_.method=S;GYs(this);hnS(this)};
_.z.abort=function(Y){if(this.JSC$9251_active_){var S=Hm(this);if(S)if(Ri(S))S.removeAllListeners(void 0);else if(S=xM(S)){var P=0,u;for(u in S.listeners)for(var W=S.listeners[u].concat(),m=0;m<W.length;++m)qG(W[m])&&++P}this.success_=this.JSC$9251_active_=this.complete_=!1;this.JSC$9251_lastErrorCode_=Y||7;this.dispatchEvent("abort");vB_(this)}};
_.z.disposeInternal=function(){this.JSC$9251_active_&&this.abort();yW.superClass_.disposeInternal.call(this);this.JSC$9251_iframe_&&Dhf(this);hnS(this);this.JSC$9251_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9251_form_=null;this.JSC$9251_lastErrorCode_=0;delete $hi[this.JSC$9249_name_]};
_.z.isComplete=function(){return this.complete_};
_.z.isSuccess=function(){return this.success_};
_.z.isActive=function(){return this.JSC$9251_active_};
_.z.getResponseText=function(){return this.lastContent_};
_.z.getLastError=function(){return _.rs6(this.JSC$9251_lastErrorCode_)};
var GYs=function(Y){Y.JSC$9251_active_=!0;Y.complete_=!1;Y.JSC$9251_lastErrorCode_=0;Y.iframeName_=Y.JSC$9249_name_+"_"+(Y.nextIframeId_++).toString(36);Y.JSC$9251_iframe_=Wk(Y.JSC$9251_form_).JSC$7243_createDom("IFRAME",{name:Y.iframeName_,id:Y.iframeName_});var S=Y.JSC$9251_iframe_.style;S.visibility="hidden";S.width=S.height="10px";S.display="none";_.Jv?S.marginTop=S.marginLeft="-10px":(S.position="absolute",S.top=S.left="-10px");Wk(Y.JSC$9251_form_).JSC$7241_document_.body.appendChild(Y.JSC$9251_iframe_);
S=Y.iframeName_+"_inner";var P=Z1J(Y.JSC$9251_iframe_);if(document.baseURI){var u=On(S);u='<head><base href="'+On(document.baseURI)+'"></head><body><iframe id="'+u+'" name="'+u+'"></iframe>';u=Kh(u)}else u=On(S),u=Kh('<body><iframe id="'+u+'" name="'+u+'"></iframe>');P.write(E4(u));_.b2(P.getElementById(S),"load",Y.onIframeLoaded_,!1,Y);u=JF("TEXTAREA",Y.JSC$9251_form_);for(var W=0,m=u.length;W<m;W++){var J=u[W].value;QuJ(u[W])!=J&&(_.dI(u[W],J),u[W].value=J)}u=P.importNode(Y.JSC$9251_form_,!0);u.target=
S;u.action=Y.JSC$9251_form_.action;P.body.appendChild(u);W=JF("SELECT",Y.JSC$9251_form_);m=JF("SELECT",u);J=0;for(var c=W.length;J<c;J++)for(var C=JF("OPTION",W[J]),x=JF("OPTION",m[J]),b=0,T=C.length;b<T;b++)x[b].selected=C[b].selected;W=JF("INPUT",Y.JSC$9251_form_);m=JF("INPUT",u);J=0;for(c=W.length;J<c;J++)if(W[J].type=="file"&&W[J].value!=m[J].value){Y.JSC$9251_form_.target=S;u=Y.JSC$9251_form_;break}try{Y.errorHandled_=!1,u.submit(),P.close(),_.j5&&setTimeout(Y.testForFirefoxSilentError_.bind(Y),
250)}catch(K){_.bG(P.getElementById(S),"load",Y.onIframeLoaded_,!1,Y),P.close(),VW(Y,2)}};
yW.prototype.onIframeLoaded_=function(){_.bG(Hm(this),"load",this.onIframeLoaded_,!1,this);try{var Y=this.JSC$9251_iframe_?Z1J(Hm(this)):null;this.complete_=!0;this.JSC$9251_active_=!1;try{var S=Y.body;this.lastContent_=S.textContent||S.innerText}catch(W){var P=1}var u;P||typeof this.errorChecker_!="function"||(u=this.errorChecker_(Y))&&(P=4);P?VW(this,P):(this.success_=!0,this.JSC$9251_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),vB_(this))}catch(W){VW(this,1)}};
var VW=function(Y,S){Y.errorHandled_||(Y.success_=!1,Y.JSC$9251_active_=!1,Y.complete_=!0,Y.JSC$9251_lastErrorCode_=S,Y.dispatchEvent("complete"),Y.dispatchEvent("error"),vB_(Y),Y.errorHandled_=!0)},vB_=function(Y){Dhf(Y);
hnS(Y);Y.JSC$9251_form_=null;Y.dispatchEvent("ready")},Dhf=function(Y){var S=Y.JSC$9251_iframe_;
S&&(S.onreadystatechange=null,S.onload=null,S.onerror=null,Y.iframesForDisposal_.push(S));Y.iframeDisposalTimer_&&(clearTimeout(Y.iframeDisposalTimer_),Y.iframeDisposalTimer_=null);_.j5?Y.iframeDisposalTimer_=setTimeout(Y.disposeIframes_.bind(Y),2E3):Y.disposeIframes_();Y.JSC$9251_iframe_=null;Y.iframeName_=null};
yW.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var Y=this.iframesForDisposal_.pop();_.jL(Y)}};
var hnS=function(Y){Y.JSC$9251_form_&&Y.JSC$9251_form_==NJ&&_.wI(Y.JSC$9251_form_)},Hm=function(Y){return Y.JSC$9251_iframe_?Z1J(Y.JSC$9251_iframe_).getElementById(Y.iframeName_+"_inner"):null};
yW.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9251_active_){var Y=this.JSC$9251_iframe_?Z1J(Hm(this)):null;Y&&!fx(Y,"documentUri")?(_.bG(Hm(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?VW(this,3):VW(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.ep=function(Y){return Y=="\r"||Y=="\n"||Y==" "||Y=="\t"};var IQs;_.Oq=function(Y){this.errorMessage_=null;this.result_=[];this.JSC$9253_buffer_="";this.stack_=[];this.JSC$9253_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!Y||!Y.deliverMessageAsRawString)};
IQs={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};_.Oq.prototype.isInputValid=function(){return this.streamState_!=3};
_.Oq.prototype.done=function(){return this.streamState_===2};
var Y1=function(Y,S,P){Y.streamState_=3;Y.errorMessage_="The stream is broken @"+Y.JSC$9253_pos_+"/"+P+". With input:\n"+S;throw Error(Y.errorMessage_);};
_.Oq.prototype.acceptsBinaryInput=function(){return!1};
_.Oq.prototype.parse=function(Y){function S(){for(;K<Y.length;)if(_.ep(Y[K]))K++,m.JSC$9253_pos_++;else break;return K<x}
function P(){for(var v;;){v=Y[K++];if(!v)break;m.JSC$9253_pos_++;switch(m.state_){case C.INIT:v==="{"?m.state_=C.OBJECT_OPEN:v==="["?m.state_=C.ARRAY_OPEN:_.ep(v)||Y1(m,Y,K);continue;case C.KEY_START:case C.OBJECT_OPEN:if(_.ep(v))continue;if(m.state_===C.KEY_START)J.push(C.KEY_END);else if(v==="}"){W("{}");m.state_=u();continue}else J.push(C.OBJECT_END);v==='"'?m.state_=C.STRING:Y1(m,Y,K);continue;case C.KEY_END:case C.OBJECT_END:if(_.ep(v))continue;v===":"?(m.state_===C.OBJECT_END&&(J.push(C.OBJECT_END),
m.depth_++),m.state_=C.VALUE):v==="}"?(m.depth_--,W(),m.state_=u()):v===","?(m.state_===C.OBJECT_END&&J.push(C.OBJECT_END),m.state_=C.KEY_START):Y1(m,Y,K);continue;case C.ARRAY_OPEN:case C.VALUE:if(_.ep(v))continue;if(m.state_===C.ARRAY_OPEN)if(m.depth_++,m.state_=C.VALUE,v==="]"){m.depth_--;if(m.depth_===0){m.state_=C.ARRAY_END;return}W("[]");m.state_=u();continue}else J.push(C.ARRAY_END);v==='"'?m.state_=C.STRING:v==="{"?m.state_=C.OBJECT_OPEN:v==="["?m.state_=C.ARRAY_OPEN:v==="t"?m.state_=C.TRUE1:
v==="f"?m.state_=C.FALSE1:v==="n"?m.state_=C.NULL1:v!=="-"&&("0123456789".indexOf(v)!==-1?m.state_=C.NUM_DIGIT:Y1(m,Y,K));continue;case C.ARRAY_END:if(v===",")J.push(C.ARRAY_END),m.state_=C.VALUE,m.depth_===1&&(T=K);else if(v==="]"){m.depth_--;if(m.depth_===0)return;W();m.state_=u()}else if(_.ep(v))continue;else Y1(m,Y,K);continue;case C.STRING:var a=K;a:for(;;){for(;m.unicodeCount_>0;)if(v=Y[K++],m.unicodeCount_===4?m.unicodeCount_=0:m.unicodeCount_++,!v)break a;if(v==='"'&&!m.slashed_){m.state_=
u();break}if(v==="\\"&&!m.slashed_&&(m.slashed_=!0,v=Y[K++],!v))break;if(m.slashed_)if(m.slashed_=!1,v==="u"&&(m.unicodeCount_=1),v=Y[K++])continue;else break;c.lastIndex=K;v=c.exec(Y);if(!v){K=Y.length+1;break}K=v.index+1;v=Y[v.index];if(!v)break}m.JSC$9253_pos_+=K-a;continue;case C.TRUE1:if(!v)continue;v==="r"?m.state_=C.TRUE2:Y1(m,Y,K);continue;case C.TRUE2:if(!v)continue;v==="u"?m.state_=C.TRUE3:Y1(m,Y,K);continue;case C.TRUE3:if(!v)continue;v==="e"?m.state_=u():Y1(m,Y,K);continue;case C.FALSE1:if(!v)continue;
v==="a"?m.state_=C.FALSE2:Y1(m,Y,K);continue;case C.FALSE2:if(!v)continue;v==="l"?m.state_=C.FALSE3:Y1(m,Y,K);continue;case C.FALSE3:if(!v)continue;v==="s"?m.state_=C.FALSE4:Y1(m,Y,K);continue;case C.FALSE4:if(!v)continue;v==="e"?m.state_=u():Y1(m,Y,K);continue;case C.NULL1:if(!v)continue;v==="u"?m.state_=C.NULL2:Y1(m,Y,K);continue;case C.NULL2:if(!v)continue;v==="l"?m.state_=C.NULL3:Y1(m,Y,K);continue;case C.NULL3:if(!v)continue;v==="l"?m.state_=u():Y1(m,Y,K);continue;case C.NUM_DECIMAL_POINT:v===
"."?m.state_=C.NUM_DIGIT:Y1(m,Y,K);continue;case C.NUM_DIGIT:if("0123456789.eE+-".indexOf(v)!==-1)continue;else K--,m.JSC$9253_pos_--,m.state_=u();continue;default:Y1(m,Y,K)}}}
function u(){var v=J.pop();return v!=null?v:C.VALUE}
function W(v){m.depth_>1||(v||(v=T===-1?m.JSC$9253_buffer_+Y.substring(b,K):Y.substring(T,K)),m.deliverMessageAsRawString_?m.result_.push(v):m.result_.push(JSON.parse(v)),T=K)}
for(var m=this,J=m.stack_,c=m.stringInputPattern_,C=IQs,x=Y.length,b=0,T=-1,K=0;K<x;)switch(m.streamState_){case 3:return Y1(m,Y,K),null;case 2:return S()&&Y1(m,Y,K),null;case 0:if(S()){var G=Y[K++];m.JSC$9253_pos_++;if(G==="["){m.streamState_=1;b=K;m.state_=C.ARRAY_OPEN;continue}else Y1(m,Y,K)}return null;case 1:return P(),m.depth_===0&&m.state_==C.ARRAY_END?(m.streamState_=2,m.JSC$9253_buffer_=Y.substring(K)):m.JSC$9253_buffer_=T===-1?m.JSC$9253_buffer_+Y.substring(b):Y.substring(T),m.result_.length>
0?(G=m.result_,m.result_=[],G):null}return null};_.PW(_.z5,G_);m9.prototype.getValue=function(){return this.JSC$9261_value_};
m9.prototype.clone=function(){return new m9(this.JSC$9261_key_,this.JSC$9261_value_)};var SB=function(Y){this.nodes_=[];if(Y)a:{if(Y instanceof SB){var S=Y.getKeys();Y=Y.getValues();if(this.getCount()<=0){for(var P=this.nodes_,u=0;u<S.length;u++)P.push(new m9(S[u],Y[u]));break a}}else S=_.RY.getKeys(Y),Y=_.RY.getValues(Y);for(P=0;P<S.length;P++)this.insert(S[P],Y[P])}};
_.z=SB.prototype;_.z.insert=function(Y,S){var P=this.nodes_;P.push(new m9(Y,S));Y=P.length-1;S=this.nodes_;for(P=S[Y];Y>0;){var u=Y-1>>1;if(S[u].JSC$9261_key_>P.JSC$9261_key_)S[Y]=S[u],Y=u;else break}S[Y]=P};
_.z.remove=function(){var Y=this.nodes_,S=Y.length,P=Y[0];if(!(S<=0)){if(S==1)Y.length=0;else{Y[0]=Y.pop();Y=0;S=this.nodes_;for(var u=S.length,W=S[Y];Y<u>>1;){var m=Y*2+1,J=Y*2+2;m=J<u&&S[J].JSC$9261_key_<S[m].JSC$9261_key_?J:m;if(S[m].JSC$9261_key_>W.JSC$9261_key_)break;S[Y]=S[m];Y=m}S[Y]=W}return P.getValue()}};
_.z.peek=function(){var Y=this.nodes_;if(Y.length!=0)return Y[0].getValue()};
_.z.getValues=function(){for(var Y=this.nodes_,S=[],P=Y.length,u=0;u<P;u++)S.push(Y[u].getValue());return S};
_.z.getKeys=function(){for(var Y=this.nodes_,S=[],P=Y.length,u=0;u<P;u++)S.push(Y[u].JSC$9261_key_);return S};
_.z.containsValue=function(Y){return this.nodes_.some(function(S){return S.getValue()==Y})};
_.z.containsKey=function(Y){return this.nodes_.some(function(S){return S.JSC$9261_key_==Y})};
_.z.clone=function(){return new SB(this)};
_.z.getCount=function(){return this.nodes_.length};
_.z.isEmpty=function(){return this.nodes_.length===0};
_.z.clear=function(){this.nodes_.length=0};_.PY=function(Y,S){this.JSC$9267_map_={};this.JSC$9267_keys_=[];this.version_=this.size=0;var P=arguments.length;if(P>1){if(P%2)throw Error("oa");for(var u=0;u<P;u+=2)this.set(arguments[u],arguments[u+1])}else Y&&this.addAll(Y)};
_.z=_.PY.prototype;_.z.getCount=function(){return this.size};
_.z.getValues=function(){ur(this);for(var Y=[],S=0;S<this.JSC$9267_keys_.length;S++)Y.push(this.JSC$9267_map_[this.JSC$9267_keys_[S]]);return Y};
_.z.getKeys=function(){ur(this);return this.JSC$9267_keys_.concat()};
_.z.containsKey=function(Y){return this.has(Y)};
_.z.has=function(Y){return WY(this.JSC$9267_map_,Y)};
_.z.containsValue=function(Y){for(var S=0;S<this.JSC$9267_keys_.length;S++){var P=this.JSC$9267_keys_[S];if(WY(this.JSC$9267_map_,P)&&this.JSC$9267_map_[P]==Y)return!0}return!1};
_.z.equals=function(Y,S){if(this===Y)return!0;if(this.size!=Y.getCount())return!1;S=S||aQh;ur(this);for(var P,u=0;P=this.JSC$9267_keys_[u];u++)if(!S(this.get(P),Y.get(P)))return!1;return!0};
var aQh=function(Y,S){return Y===S};
_.PY.prototype.isEmpty=function(){return this.size==0};
_.PY.prototype.clear=function(){this.JSC$9267_map_={};this.version_=this.size=this.JSC$9267_keys_.length=0};
_.PY.prototype.remove=function(Y){return this.delete(Y)};
_.PY.prototype.delete=function(Y){return WY(this.JSC$9267_map_,Y)?(delete this.JSC$9267_map_[Y],--this.size,this.version_++,this.JSC$9267_keys_.length>2*this.size&&ur(this),!0):!1};
var ur=function(Y){if(Y.size!=Y.JSC$9267_keys_.length){for(var S=0,P=0;S<Y.JSC$9267_keys_.length;){var u=Y.JSC$9267_keys_[S];WY(Y.JSC$9267_map_,u)&&(Y.JSC$9267_keys_[P++]=u);S++}Y.JSC$9267_keys_.length=P}if(Y.size!=Y.JSC$9267_keys_.length){S={};for(u=P=0;P<Y.JSC$9267_keys_.length;){var W=Y.JSC$9267_keys_[P];WY(S,W)||(Y.JSC$9267_keys_[u++]=W,S[W]=1);P++}Y.JSC$9267_keys_.length=u}};
_.z=_.PY.prototype;_.z.get=function(Y,S){return WY(this.JSC$9267_map_,Y)?this.JSC$9267_map_[Y]:S};
_.z.set=function(Y,S){WY(this.JSC$9267_map_,Y)||(this.size+=1,this.JSC$9267_keys_.push(Y),this.version_++);this.JSC$9267_map_[Y]=S};
_.z.addAll=function(Y){if(Y instanceof _.PY)for(var S=Y.getKeys(),P=0;P<S.length;P++)this.set(S[P],Y.get(S[P]));else for(S in Y)this.set(S,Y[S])};
_.z.forEach=function(Y,S){for(var P=this.getKeys(),u=0;u<P.length;u++){var W=P[u],m=this.get(W);Y.call(S,m,W,this)}};
_.z.clone=function(){return new _.PY(this)};
_.z.transpose=function(){for(var Y=new _.PY,S=0;S<this.JSC$9267_keys_.length;S++){var P=this.JSC$9267_keys_[S];Y.set(this.JSC$9267_map_[P],P)}return Y};
_.z.keys=function(){return u_u(this.__iterator__(!0)).toEs6()};
_.z.values=function(){return u_u(this.__iterator__(!1)).toEs6()};
_.z.entries=function(){var Y=this;return bAs(this.keys(),function(S){return[S,Y.get(S)]})};
_.z.__iterator__=function(Y){ur(this);var S=0,P=this.version_,u=this,W=new YN;W.next=function(){if(P!=u.version_)throw Error("pe");if(S>=u.JSC$9267_keys_.length)return Sd;var m=u.JSC$9267_keys_[S++];return PH(Y?m:u.JSC$9267_map_[m])};
return W};
var WY=function(Y,S){return Object.prototype.hasOwnProperty.call(Y,S)};var wZs=function(){this.JSC$9270_map_=new _.PY;this.JSC$9270_head_=new LmU("");this.JSC$9270_head_.next=this.JSC$9270_head_.prev=this.JSC$9270_head_},pZ6=function(Y,S){if(S=Y.JSC$9270_map_.get(S))S.remove(),Y.insert_(S);
return S};
_.z=wZs.prototype;_.z.get=function(Y,S){return(Y=pZ6(this,Y))?Y.value:S};
_.z.set=function(Y,S){var P=pZ6(this,Y);P?P.value=S:(P=new LmU(Y,S),this.JSC$9270_map_.set(Y,P),this.insert_(P))};
_.z.peek=function(){return this.JSC$9270_head_.next.value};
_.z.shift=function(){return Fmh(this,this.JSC$9270_head_.next)};
_.z.pop=function(){return Fmh(this,this.JSC$9270_head_.prev)};
_.z.remove=function(Y){return(Y=this.JSC$9270_map_.get(Y))?(this.removeNode(Y),!0):!1};
_.z.removeNode=function(Y){Y.remove();this.JSC$9270_map_.remove(Y.key)};
_.z.getCount=function(){return this.JSC$9270_map_.getCount()};
_.z.isEmpty=function(){return this.JSC$9270_map_.isEmpty()};
_.z.getKeys=function(){return this.map(function(Y,S){return S})};
_.z.getValues=function(){return this.map(function(Y){return Y})};
_.z.contains=function(Y){return this.some(function(S){return S==Y})};
_.z.containsKey=function(Y){return this.JSC$9270_map_.containsKey(Y)};
_.z.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9270_head_.prev)};
_.z.forEach=function(Y,S){for(var P=this.JSC$9270_head_.next;P!=this.JSC$9270_head_;P=P.next)Y.call(S,P.value,P.key,this)};
_.z.map=function(Y,S){for(var P=[],u=this.JSC$9270_head_.next;u!=this.JSC$9270_head_;u=u.next)P.push(Y.call(S,u.value,u.key,this));return P};
_.z.some=function(Y,S){for(var P=this.JSC$9270_head_.next;P!=this.JSC$9270_head_;P=P.next)if(Y.call(S,P.value,P.key,this))return!0;return!1};
_.z.every=function(Y,S){for(var P=this.JSC$9270_head_.next;P!=this.JSC$9270_head_;P=P.next)if(!Y.call(S,P.value,P.key,this))return!1;return!0};
_.z.insert_=function(Y){Y.next=this.JSC$9270_head_.next;Y.prev=this.JSC$9270_head_;this.JSC$9270_head_.next=Y;for(Y.next.prev=Y;this.getCount()>40;)this.removeNode(this.JSC$9270_head_.prev)};
var Fmh=function(Y,S){Y.JSC$9270_head_!=S&&Y.removeNode(S);return S.value},LmU=function(Y,S){this.key=Y;
this.value=S};
LmU.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var s__=function(){SB.apply(this,arguments)};
_.r(s__,SB);s__.prototype.enqueue=function(Y,S){this.insert(Y,S)};var dht=function(){var Y=Error();Y.name="SecurityError";throw Y;},f$1=function(){return{get opener(){return null},
get closed(){return!0},get location(){dht()},get document(){dht()},postMessage:function(){},
close:function(){},
focus:function(){}}};var EXE={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 $2u={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 lQi={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($2u).join("|");var XZf=function(){function Y(c){c.substr(-1)!==";"&&(c+=";");return J(c)}
for(var S=Object.keys(lQi).sort(gXK),P=Object.keys($2u).sort(gXK),u=0,W=0;u<P.length;u++)S[W]===P[u]?(P[u]+=";?",W++):P[u]+=";";var m=new RegExp("&(?:"+P.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),J=rkX();return function(c){return String(c).replace(m,Y)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/
var Zcd={};var icd=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"),oBd=/[\\&]/,tDU=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),AIU=RegExp('[&<>"]',"g"),UhJ=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),Q_s=function(Y){return Y.charCodeAt(0)===92?Y.charAt(1):XZf(Y)},kYJ=function(Y){return oBd.test(Y)?Y.replace(tDU,Q_s):Y},MDJ=function(Y){try{var S,P="";
if(typeof W!=="string"){var u=W;var W=";/?:@&=+$,-_.!~*'()#"}typeof u==="undefined"&&(u=!0);var m,J=Zcd[W];if(J)var c=J;else{J=Zcd[W]=[];for(m=0;m<128;m++){var C=String.fromCharCode(m);/^[0-9a-z]$/i.test(C)?J.push(C):J.push("%"+("0"+m.toString(16).toUpperCase()).slice(-2))}for(m=0;m<W.length;m++)J[W.charCodeAt(m)]=W[m];c=J}var x=0;for(S=Y.length;x<S;x++){var b=Y.charCodeAt(x);if(u&&b===37&&x+2<S&&/^[0-9a-f]{2}$/i.test(Y.slice(x+1,x+3)))P+=Y.slice(x,x+3),x+=2;else if(b<128)P+=c[b];else if(b>=55296&&
b<=57343){if(b>=55296&&b<=56319&&x+1<S){var T=Y.charCodeAt(x+1);if(T>=56320&&T<=57343){P+=encodeURIComponent(Y[x]+Y[x+1]);x++;continue}}P+="%EF%BF%BD"}else P+=encodeURIComponent(Y[x])}return P}catch(K){return Y}},yId=function(Y){switch(Y){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return Y}},z8=function(Y,S){return AIU.test(Y)?S?Y.replace(UhJ,yId):Y.replace(AIU,yId):Y};/*

 lib/from-code-point.js is derived from a polyfill
 Copyright Mathias Bynens <http://mathiasbynens.be/>

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var ml;if(String.fromCodePoint)ml=function(Y){try{return String.fromCodePoint(Y)}catch(S){if(S instanceof RangeError)return String.fromCharCode(65533);throw S;}};
else{var N0h=String.fromCharCode,Hcu=Math.floor;ml=function(){var Y=[],S=-1,P=arguments.length;if(!P)return"";for(var u="";++S<P;){var W=Number(arguments[S]);if(!isFinite(W)||W<0||W>1114111||Hcu(W)!==W)return String.fromCharCode(65533);if(W<=65535)Y.push(W);else{W-=65536;var m=(W>>10)+55296;W=W%1024+56320;Y.push(m,W)}if(S+1===P||Y.length>16384)u+=N0h.apply(null,Y),Y.length=0}return u}};var VDU=function(Y){this.root=this.current=Y;this.entering=!0};
VDU.prototype.next=function(){var Y=this.current,S=this.entering;if(Y===null)return null;a:switch(Y._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var P=!0;break a;default:P=!1}S&&P?Y._firstChild?(this.current=Y._firstChild,this.entering=!0):this.entering=!1:Y===this.root?this.current=null:Y._next===null?(this.current=
Y._parent,this.entering=!1):(this.current=Y._next,this.entering=!0);return{entering:S,node:Y}};
var B3=function(Y,S){this._type=Y;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=S;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};
B3.prototype.appendChild=function(Y){nD(Y);Y._parent=this;this._lastChild?(this._lastChild._next=Y,Y._prev=this._lastChild):this._firstChild=Y;this._lastChild=Y};
var nD=function(Y){Y._prev?Y._prev._next=Y._next:Y._parent&&(Y._parent._firstChild=Y._next);Y._next?Y._next._prev=Y._prev:Y._parent&&(Y._parent._lastChild=Y._prev);Y._parent=null;Y._next=null;Y._prev=null},enm=function(Y,S){nD(S);
S._next=Y._next;S._next&&(S._next._prev=S);S._prev=Y;Y._next=S;S._parent=Y._parent;S._next||(S._parent._lastChild=S)};
B3.prototype.insertBefore=function(Y){nD(Y);Y._prev=this._prev;Y._prev&&(Y._prev._next=Y);Y._next=this;this._prev=Y;Y._parent=this._parent;Y._prev||(Y._parent._firstChild=Y)};
_.y6.Object.defineProperties(B3.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(Y){this._literal=Y}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(Y){this._destination=Y}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(Y){this._title=Y}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(Y){this._info=Y}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(Y){this._level=Y}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(Y){this._listData.type=Y}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(Y){this._listData.tight=Y}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(Y){this._listData.start=Y}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(Y){this._onEnter=Y}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(Y){this._onExit=Y}}});var GUf=/[ \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,
hN8={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 Oc3=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]/),
YDt=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),SDh=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),P2u=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),u5u=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),W4S=/`+/,zM_=/^`+/,mGt=/\.\.\./g,nJm=/--+/g,jef=/^<([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])?)*)>/,
JL6=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,B8L=/^ *(?:\n *)?/,cLL=/^[ \t\n\x0b\x0c\x0d]/,C2s=/[ \t\n\x0b\x0c\x0d]+/g,qDh=/^\s/,RM3=/ *$/,xGJ=/^ */,bsu=/^ *(?:\n|$)/,T8i=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),K4m=/^[^\n`\[\]\\!<&*_'"]+/m,jB=function(Y){var S=new B3("text");S._literal=Y;return S},Jn=function(Y){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=Y||{}};
Jn.prototype.match=function(Y){Y=Y.exec(this.subject.slice(this.pos));if(Y===null)return null;this.pos+=Y.index+Y[0].length;return Y[0]};
Jn.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var BY=function(Y){Y.match(B8L);return!0},EJU=function(Y,S,P){var u=0;
var W=Y.pos;if(S===39||S===34)u++,Y.pos++;else for(;Y.peek()===S;)u++,Y.pos++;if(u===0)u=null;else{var m=W===0?"\n":Y.subject.charAt(W-1);var J=Y.peek();J=J===-1?"\n":ml(J);var c=qDh.test(J);J=Oc3.test(J);var C=qDh.test(m);var x=Oc3.test(m);m=!c&&!(J&&!C&&!x);c=!C&&!(x&&!c&&!J);S===95?(C=m&&(!c||x),J=c&&(!m||J)):(C=S===39||S===34?m&&!c:m,J=c);Y.pos=W;u={numdelims:u,can_open:C,can_close:J}}if(!u)return!1;W=u.numdelims;J=Y.pos;Y.pos+=W;J=S===39?"\u2019":S===34?"\u201c":Y.subject.slice(J,Y.pos);J=jB(J);
P.appendChild(J);Y.delimiters={cc:S,numdelims:W,origdelims:W,node:J,previous:Y.delimiters,next:null,can_open:u.can_open,can_close:u.can_close};Y.delimiters.previous!==null&&(Y.delimiters.previous.next=Y.delimiters);return!0},fZ3=function(Y,S){S.previous!==null&&(S.previous.next=S.next);
S.next===null?Y.delimiters=S.previous:S.next.previous=S.previous},gJs=function(Y,S){var P,u,W=[],m=!1;
W[95]=S;W[42]=S;W[39]=S;W[34]=S;for(P=Y.delimiters;P!==null&&P.previous!==S;)P=P.previous;for(;P!==null;){var J=P.cc;if(P.can_close){var c=P.previous;for(u=!1;c!==null&&c!==S&&c!==W[J];){m=(P.can_open||c.can_close)&&(c.origdelims+P.origdelims)%3===0;if(c.cc===P.cc&&c.can_open&&!m){u=!0;break}c=c.previous}var C=P;if(J===42||J===95)if(u){var x=P.numdelims>=2&&c.numdelims>=2?2:1;var b=c.node;var T=P.node;c.numdelims-=x;P.numdelims-=x;b._literal=b._literal.slice(0,b._literal.length-x);T._literal=T._literal.slice(0,
T._literal.length-x);var K=new B3(x===1?"emph":"strong");for(x=b._next;x&&x!==T;){var G=x._next;nD(x);K.appendChild(x);x=G}enm(b,K);x=c;G=P;x.next!==G&&(x.next=G,G.previous=x);c.numdelims===0&&(nD(b),fZ3(Y,c));P.numdelims===0&&(nD(T),c=P.next,fZ3(Y,P),P=c)}else P=P.next;else J===39?(P.node._literal="\u2019",u&&(c.node._literal="\u2018"),P=P.next):J===34&&(P.node._literal="\u201d",u&&(c.node.literal="\u201c"),P=P.next);u||m||(W[J]=C.previous,C.can_open||fZ3(Y,C))}else P=P.next}for(;Y.delimiters!==
null&&Y.delimiters!==S;)fZ3(Y,Y.delimiters)},$Gs=function(Y){Y=Y.match(YDt);
return Y===null?null:kYJ(Y.substr(1,Y.length-2))},rL6=function(Y){var S=Y.match(SDh);
if(S===null){S=Y.pos;for(var P=0,u;(u=Y.peek())!==-1;)if(u===92)Y.pos+=1,Y.peek()!==-1&&(Y.pos+=1);else if(u===40)Y.pos+=1,P+=1;else if(u===41)if(P<1)break;else Y.pos+=1,--P;else if(cLL.exec(ml(u))!==null)break;else Y.pos+=1;S=Y.subject.substr(S,Y.pos-S);return MDJ(kYJ(S))}return MDJ(kYJ(S.substr(1,S.length-2)))},GRs=function(Y){Y=Y.match(T8i);
return Y===null||Y.length>1001?0:Y.length},hML=function(Y,S,P,u){Y.brackets!==null&&(Y.brackets.bracketAfter=!0);
Y.brackets={node:S,previous:Y.brackets,previousDelimiter:Y.delimiters,index:P,image:u,active:!0}},vJs=function(Y,S){var P;
return(P=Y.match(K4m))?(Y.options.smart?S.appendChild(jB(P.replace(mGt,"\u2026").replace(nJm,function(u){var W=0,m=0;u.length%3===0?m=u.length/3:u.length%2===0?W=u.length/2:u.length%3===2?(W=1,m=(u.length-2)/3):(W=2,m=(u.length-4)/3);u="";var J;for(J=0;J<m;J++)u+="\u2014";for(J=0;J<W;J++)u+="\u2013";return u}))):S.appendChild(jB(P)),!0):!1},DGh=function(Y,S,P){Y.subject=S;
Y.pos=0;S=Y.pos;var u=GRs(Y);if(u===0)return 0;var W=Y.subject.substr(0,u);if(Y.peek()===58)Y.pos++;else return Y.pos=S,0;BY(Y);u=rL6(Y);if(u===null||u.length===0)return Y.pos=S,0;var m=Y.pos;BY(Y);var J=$Gs(Y);J===null&&(J="",Y.pos=m);var c=!0;Y.match(bsu)===null&&(J===""?c=!1:(J="",Y.pos=m,c=Y.match(bsu)!==null));if(!c)return Y.pos=S,0;W=vXX(W);if(W==="")return Y.pos=S,0;P[W]||(P[W]={destination:u,title:J});return Y.pos-S},IZ3=function(Y,S){var P,u=Y.peek();
if(u===-1)return!1;switch(u){case 10:Y.pos+=1;if((P=S._lastChild)&&P.type==="text"&&P._literal[P._literal.length-1]===" "){var W=P._literal[P._literal.length-2]===" ";P._literal=P._literal.replace(RM3,"");S.appendChild(new B3(W?"linebreak":"softbreak"))}else S.appendChild(new B3("softbreak"));Y.match(xGJ);P=!0;break;case 92:P=Y.subject;Y.pos+=1;Y.peek()===10?(Y.pos+=1,P=new B3("linebreak"),S.appendChild(P)):P2u.test(P.charAt(Y.pos))?(S.appendChild(jB(P.charAt(Y.pos))),Y.pos+=1):S.appendChild(jB("\\"));
P=!0;break;case 96:a:if(P=Y.match(zM_),P===null)P=!1;else{W=Y.pos;for(var m;(m=Y.match(W4S))!==null;)if(m===P){m=new B3("code");m._literal=Y.subject.slice(W,Y.pos-P.length).trim().replace(C2s," ");S.appendChild(m);P=!0;break a}Y.pos=W;S.appendChild(jB(P));P=!0}break;case 42:case 95:P=EJU(Y,u,S);break;case 39:case 34:P=Y.options.smart&&EJU(Y,u,S);break;case 91:P=Y.pos;Y.pos+=1;W=jB("[");S.appendChild(W);hML(Y,W,P,!1);P=!0;break;case 33:P=Y.pos;Y.pos+=1;Y.peek()===91?(Y.pos+=1,W=jB("!["),S.appendChild(W),
hML(Y,W,P+1,!0)):S.appendChild(jB("!"));P=!0;break;case 93:var J,c=!1,C;Y.pos+=1;var x=Y.pos;W=Y.brackets;if(W===null)S.appendChild(jB("]"));else if(W.active){P=W.image;var b=Y.pos;Y.peek()===40&&(Y.pos++,BY(Y)&&(m=rL6(Y))!==null&&BY(Y)&&(cLL.test(Y.subject.charAt(Y.pos-1))&&(J=$Gs(Y)),1)&&BY(Y)&&Y.peek()===41?(Y.pos+=1,c=!0):Y.pos=b);if(!c){var T=Y.pos,K=GRs(Y);K>2?C=Y.subject.slice(T,T+K):W.bracketAfter||(C=Y.subject.slice(W.index,x));K===0&&(Y.pos=b);C&&(C=Y.refmap[vXX(C)])&&(m=C.destination,J=
C.title,c=!0)}if(c){x=new B3(P?"image":"link");x._destination=m;x._title=J||"";for(m=W.node._next;m;)J=m._next,nD(m),x.appendChild(m),m=J;S.appendChild(x);gJs(Y,W.previousDelimiter);Y.brackets=Y.brackets.previous;nD(W.node);if(!P)for(W=Y.brackets;W!==null;)W.image||(W.active=!1),W=W.previous}else Y.brackets=Y.brackets.previous,Y.pos=x,S.appendChild(jB("]"))}else S.appendChild(jB("]")),Y.brackets=Y.brackets.previous;P=!0;break;case 60:(P=Y.match(jef))?(P=P.slice(1,P.length-1),W=new B3("link"),W._destination=
MDJ("mailto:"+P),W._title="",W.appendChild(jB(P)),S.appendChild(W),P=!0):(P=Y.match(JL6))?(P=P.slice(1,P.length-1),W=new B3("link"),W._destination=MDJ(P),W._title="",W.appendChild(jB(P)),S.appendChild(W),P=!0):P=!1;P||(P=Y.match(icd),P===null?P=!1:(W=new B3("html_inline"),W._literal=P,S.appendChild(W),P=!0));break;case 38:(P=Y.match(u5u))?(S.appendChild(jB(XZf(P))),P=!0):P=!1;break;default:P=vJs(Y,S)}P||(Y.pos+=1,S.appendChild(jB(ml(u))));return!0};
Jn.prototype.parseInlines=function(Y){this.subject=Y._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;IZ3(this,Y););Y._string_content=null;gJs(this,null)};
Jn.prototype.parse=Jn.prototype.parseInlines;var aZf=[/./,/^<(?: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")],L4t=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],wFt=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,pFm=/^[#`~*+_=<>0-9-\|]|\|/,F43=/[^ \t\f\v\r\n]/,ses=/^[*+-]/,dGu=/^(\d{1,9})([.)])/,lZm=/^#{1,6}(?:[ \t]+|$)/,XFu=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Zsd=/^(?:`{3,}|~{3,})(?= *$)/,ist=/^(?:=+|-+)[ \t]*$/,oJS=/\r\n|\n|\r/,IdY=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,adf=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,tCi={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(Y){return Y!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(Y,S){for(Y=S._firstChild;Y;){if(D2a(Y)&&Y._next){S._listData.tight=!1;break}for(var P=Y._firstChild;P;){if(D2a(P)&&(Y._next||P._next)){S._listData.tight=!1;break}P=P._next}Y=Y._next}},
canContain:function(Y){return Y==="item"},
acceptsLines:!1},block_quote:{continue:function(Y){var S=Y.currentLine;if(Y.indented||jf(S,Y.nextNonspace)!==62)return 1;cY(Y);CD(Y,1,!1);nM(jf(S,Y.offset))&&CD(Y,1,!0);return 0},
finalize:function(){},
canContain:function(Y){return Y!=="item"},
acceptsLines:!1},item:{continue:function(Y,S){if(Y.blank){if(S._firstChild==null)return 1;cY(Y)}else if(Y.indent>=S._listData.markerOffset+S._listData.padding)CD(Y,S._listData.markerOffset+S._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(Y){return Y!=="item"&&!Lwa(Y)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(Y,S){var P=Y.currentLine,u=Y.indent;if(S._isFenced){if((u=u<=3&&P.charAt(Y.nextNonspace)===S._fenceChar&&P.slice(Y.nextNonspace).match(Zsd))&&u[0].length>=S._fenceLength)return Y.finalize(S,Y.lineNumber),2;for(S=S._fenceOffset;S>0&&nM(jf(P,Y.offset));)CD(Y,1,!0),S--}else if(u>=4)CD(Y,4,!0);else if(Y.blank)cY(Y);else return 1;return 0},
finalize:function(Y,S){if(S._isFenced){var P=S._string_content,u=P.indexOf("\n");Y=P.slice(0,u);P=P.slice(u+1);S.info=kYJ(Y.trim());S._literal=P}else S._literal=S._string_content.replace(/(\n *)+$/,"\n");S._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(Y,S){return!Y.blank||S._htmlBlockType!==6&&S._htmlBlockType!==7?0:1},
finalize:function(Y,S){S._literal=S._string_content.replace(/(\n *)+$/,"");S._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(Y){return Y.blank?1:0},
finalize:function(Y,S){for(var P,u=!1;jf(S._string_content,0)===91&&(P=DGh(Y.inlineParser,S._string_content,Y.refmap));)S._string_content=S._string_content.slice(P),u=!0;u&&!F43.test(S._string_content)&&nD(S)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(Y){return J9(Y.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(Y){return Y=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(Y,S){if(!S._rowIsDelimiter){Y=S._isHeader?"th":"td";for(var P=S._parent._tableColumns,u=S._string_content,W=0,m="",J,c=S._sourcepos[0][0];W<u.length;){switch(u[W]){case "|":J&&(J._string_content=m.trim(),m="",J=null,P--,P<=0&&(W=u.length));break;default:if(!J){J=new B3(Y,[[c,W],[c,W]]);var C=S._parent._columnAlignment,x=S._parent._tableColumns-P;C&&x<=C.length&&x>=0&&(J._alignment=C[x]);S.appendChild(J)}m+=u[W];J._sourcepos[1][1]=W}W++}J&&(J._string_content=m.trim());S._string_content=
""}},
canContain:function(Y){return Y!=="row"},
acceptsLines:!1}},ALs=[function(Y){if(Y.indented||jf(Y.currentLine,Y.nextNonspace)!==62)return 0;cY(Y);CD(Y,1,!1);nM(jf(Y.currentLine,Y.offset))&&CD(Y,1,!0);q7(Y);Y.addChild("block_quote",Y.nextNonspace);return 1},
function(Y){var S;if(!Y.indented&&(S=Y.currentLine.slice(Y.nextNonspace).match(lZm))){cY(Y);CD(Y,S[0].length,!1);q7(Y);var P=Y.addChild("heading",Y.nextNonspace);P.level=S[0].trim().length;P._string_content=Y.currentLine.slice(Y.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");CD(Y,Y.currentLine.length-Y.offset);return 2}return 0},
function(Y){var S;if(!Y.indented&&(S=Y.currentLine.slice(Y.nextNonspace).match(XFu))){var P=S[0].length;q7(Y);var u=Y.addChild("code_block",Y.nextNonspace);u._isFenced=!0;u._fenceLength=P;u._fenceChar=S[0][0];u._fenceOffset=Y.indent;cY(Y);CD(Y,P,!1);return 2}return 0},
function(Y,S){if(!Y.indented&&jf(Y.currentLine,Y.nextNonspace)===60){var P=Y.currentLine.slice(Y.nextNonspace),u;for(u=1;u<=7;u++)if(aZf[u].test(P)&&(u<7||S.type!=="paragraph"))return q7(Y),Y.addChild("html_block",Y.offset)._htmlBlockType=u,2}return 0},
function(Y,S){var P;if(!Y.indented&&S.type==="paragraph"&&(P=Y.currentLine.slice(Y.nextNonspace).match(ist))){q7(Y);var u=new B3("heading",S.sourcepos);u.level=P[0][0]==="="?1:2;u._string_content=S._string_content;enm(S,u);nD(S);Y.tip=u;CD(Y,Y.currentLine.length-Y.offset,!1);return 2}return 0},
function(Y){return!Y.indented&&wFt.test(Y.currentLine.slice(Y.nextNonspace))?(q7(Y),Y.addChild("thematic_break",Y.nextNonspace),CD(Y,Y.currentLine.length-Y.offset,!1),2):0},
function(Y,S){var P,u;if(!(u=Y.indented&&S.type!=="list")){a:{var W=S,m=Y.currentLine.slice(Y.nextNonspace);u={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:Y.indent};if(P=m.match(ses))u.type="bullet",u.bulletChar=P[0][0];else{if(!(P=m.match(dGu))||W.type==="paragraph"&&P[1]!=="1"){P=null;break a}u.type="ordered";u.start=parseInt(P[1],10);u.delimiter=P[2]}var J=jf(Y.currentLine,Y.nextNonspace+P[0].length);if(J!==-1&&J!==9&&J!==32||W.type==="paragraph"&&!Y.currentLine.slice(Y.nextNonspace+
P[0].length).match(F43))P=null;else{cY(Y);CD(Y,P[0].length,!0);W=Y.column;m=Y.offset;do CD(Y,1,!0),J=jf(Y.currentLine,Y.offset);while(Y.column-W<5&&nM(J));J=jf(Y.currentLine,Y.offset)===-1;var c=Y.column-W;c>=5||c<1||J?(u.padding=P[0].length+1,Y.column=W,Y.offset=m,nM(jf(Y.currentLine,Y.offset))&&CD(Y,1,!0)):u.padding=P[0].length+c;P=u}}u=!P}if(u)return 0;q7(Y);(u=Y.tip.type!=="list")||(S=S._listData,u=!(S.type===P.type&&S.delimiter===P.delimiter&&S.bulletChar===P.bulletChar));u&&(S=Y.addChild("list",
Y.nextNonspace),S._listData=P);S=Y.addChild("item",Y.nextNonspace);S._listData=P;return 1},
function(Y){var S;return((S=Y.options.shouldParseIndentAsCodeBlock)!=null?S:1)&&Y.indented&&Y.tip.type!=="paragraph"&&!Y.blank?(CD(Y,4,!0),q7(Y),Y.addChild("code_block",Y.offset),2):0},
function(Y,S){var P=J9(Y.currentLine),u=J9(Y.lookahead);if(P!==0&&u<0&&Math.abs(P)==Math.abs(u)&&!Lwa(S.type)){q7(Y);S=Y.addChild("table",Y.nextNonspace);S._tableRows=1;S._tableColumns=Math.abs(P);P=Y.lookahead;if(adf.test(P)){u=[];for(var W=0,m=!1,J=0,c=void 0;W<P.length;){var C=J>=3;switch(P[W]){case "-":J++;break;case "|":m&&(u.push(c),c=void 0,J=0);m=!0;break;case ":":c||C||(c="left"),!c&&C&&(c="right"),c==="left"&&C&&(c="center")}W++}P=u}else P=void 0;S._columnAlignment=P;S=Y.addChild("row",
Y.nextNonspace);S._isHeader=!0;CD(Y,Y.currentLine.length-Y.offset,!1);S._string_content=Y.currentLine;return 1}return 0},
function(Y,S){if(S.type=="table"&&J9(Y.currentLine)!==0){q7(Y);var P=S;S=Y.addChild("row",Y.nextNonspace);J9(Y.currentLine)<0?S._rowIsDelimiter=!0:P._tableRows+=1;CD(Y,Y.currentLine.length-Y.offset,!1);S._string_content=Y.currentLine;return 2}return 0}],fUJ=function(){var Y={shouldParseIndentAsCodeBlock:!1};
Y=Y===void 0?{}:Y;this.lastMatchedContainer=this.doc=wsu();this.refmap={};this.lastLineLength=0;this.inlineParser=new Jn(Y);this.options=Y;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=tCi;this.blockStarts=ALs},UGs=function(Y){Y.partiallyConsumedTab&&(Y.offset+=1,Y.tip._string_content+=" ".repeat(4-Y.column%
4));
Y.tip._string_content+=Y.currentLine.slice(Y.offset)+"\n"};
fUJ.prototype.addChild=function(Y,S){for(;!this.blocks[this.tip.type].canContain(Y);)this.finalize(this.tip,this.lineNumber-1);Y=new B3(Y,[[this.lineNumber,S+1],[0,0]]);Y._string_content="";this.tip.appendChild(Y);return this.tip=Y};
var q7=function(Y){if(!Y.allClosed){for(;Y.oldtip!==Y.lastMatchedContainer;){var S=Y.oldtip._parent;Y.finalize(Y.oldtip,Y.lineNumber-1);Y.oldtip=S}Y.allClosed=!0}},CD=function(Y,S,P){for(var u=Y.currentLine,W,m;S>0&&(m=u[Y.offset]);)m==="\t"?(W=4-Y.column%4,P?(Y.partiallyConsumedTab=W>S,W=W>S?S:W,Y.column+=W,Y.offset+=Y.partiallyConsumedTab?0:1,S-=W):(Y.partiallyConsumedTab=!1,Y.column+=W,Y.offset+=1,--S)):(Y.partiallyConsumedTab=!1,Y.offset+=1,Y.column+=1,--S)},cY=function(Y){Y.offset=Y.nextNonspace;
Y.column=Y.nextNonspaceColumn;Y.partiallyConsumedTab=!1},QeL=function(Y){for(var S=Y.currentLine,P=Y.offset,u=Y.column,W;(W=S.charAt(P))!=="";)if(W===" ")P++,u++;
else if(W==="\t")P++,u+=4-u%4;else break;Y.blank=W==="\n"||W==="\r"||W==="";Y.nextNonspace=P;Y.nextNonspaceColumn=u;Y.indent=Y.nextNonspaceColumn-Y.column;Y.indented=Y.indent>=4};
fUJ.prototype.finalize=function(Y,S){var P=Y._parent;Y._open=!1;Y.sourcepos[1]=[S,this.lastLineLength];this.blocks[Y.type].finalize(this,Y);this.tip=P};
fUJ.prototype.parse=function(Y){this.tip=this.doc=wsu();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!Y)return this.doc;this.options.time&&console.time("preparing input");var S=Y.split(oJS),P=S.length;Y.charCodeAt(Y.length-1)===10&&--P;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(Y=0;Y<P;Y++)a:{var u=void 0,W=S[Y],m=S[Y+1],J=!0,c=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;W.indexOf("\x00")!==-1&&(W=W.replace(/\0/g,"\ufffd"));this.currentLine=W;for(this.lookahead=m;(u=c._lastChild)&&u._open;){c=u;QeL(this);switch(this.blocks[c.type].continue(this,c)){case 0:break;case 1:J=!1;break;case 2:this.lastLineLength=W.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!J){c=c._parent;break}}this.allClosed=c===this.oldtip;this.lastMatchedContainer=
c;u=c.type!=="paragraph"&&tCi[c.type].acceptsLines;m=this.blockStarts;for(J=m.length;!u;){QeL(this);if(!this.indented&&!pFm.test(W.slice(this.nextNonspace))){cY(this);break}for(var C=0;C<J;){var x=m[C](this,c);if(x===1){c=this.tip;break}else if(x===2){c=this.tip;u=!0;break}else C++}if(C===J){cY(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){q7(this);this.blank&&c.lastChild&&(c.lastChild._lastLineBlank=!0);u=c.type;m=this.blank&&!(u==="block_quote"||u==="code_block"&&c._isFenced||
u==="item"&&!c._firstChild&&c.sourcepos[0][0]===this.lineNumber);for(J=c;J;)J._lastLineBlank=m,J=J._parent;this.blocks[u].acceptsLines?(UGs(this),u==="html_block"&&c._htmlBlockType>=1&&c._htmlBlockType<=5&&L4t[c._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(c,this.lineNumber)):this.offset<W.length&&!this.blank&&(this.addChild("paragraph",this.offset),cY(this),UGs(this))}else UGs(this);this.lastLineLength=W.length}for(;this.tip;)this.finalize(this.tip,P);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");W=new VDU(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;P=W.next();)S=P.node,Y=S.type,P.entering||Y!=="paragraph"&&Y!=="heading"&&Y!=="th"&&Y!="td"||this.inlineParser.parse(S);this.options.time&&console.timeEnd("inline parsing");return this.doc};ps1.prototype.render=function(Y){Y=new VDU(Y);var S;this.buffer="";for(this.lastOut="\n";S=Y.next();){var P=S.node.type;if(this[P])this[P](S.node,S.entering)}return this.buffer};
ps1.prototype.out=function(Y){RS(this,Y)};
var RS=function(Y,S){Y.buffer+=S;Y.lastOut=S};
ps1.prototype.cr=function(){this.lastOut!=="\n"&&RS(this,"\n")};var kRh=/^javascript:|vbscript:|file:|data:/i,MC3=/^data:image\/(?:png|gif|jpeg|webp)/i,yLs=function(Y){return kRh.test(Y)&&!MC3.test(Y)};
c3.prototype=Object.create(ps1.prototype);_.z=c3.prototype;_.z.text=function(Y){this.out(Y.literal)};
_.z.html_inline=function(Y){this.options.safe?RS(this,"\x3c!-- raw HTML omitted --\x3e"):RS(this,Y.literal)};
_.z.html_block=function(Y){this.cr();this.options.safe?RS(this,"\x3c!-- raw HTML omitted --\x3e"):RS(this,Y.literal);this.cr()};
_.z.softbreak=function(){RS(this,this.options.softbreak)};
_.z.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.z.link=function(Y,S){var P=this.attrs(Y);S?(this.options.safe&&yLs(Y.destination)||P.push(["href",z8(Y.destination,!0)]),Y.title&&P.push(["title",z8(Y.title,!0)]),this.tag("a",P)):this.tag("/a")};
_.z.image=function(Y,S){S?(this.disableTags===0&&(this.options.safe&&yLs(Y.destination)?RS(this,'<img src="" alt="'):RS(this,'<img src="'+z8(Y.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(Y.title&&RS(this,'" title="'+z8(Y.title,!0)),RS(this,'" />')))};
_.z.emph=function(Y,S){this.tag(S?"em":"/em")};
_.z.strong=function(Y,S){this.tag(S?"strong":"/strong")};
_.z.paragraph=function(Y,S){var P=Y.parent.parent;Y=this.attrs(Y);P!==null&&P.type==="list"&&P.listTight||(S?(this.cr(),this.tag("p",Y)):(this.tag("/p"),this.cr()))};
_.z.heading=function(Y,S){var P="h"+Y.level;Y=this.attrs(Y);S?(this.cr(),this.tag(P,Y)):(this.tag("/"+P),this.cr())};
_.z.code=function(Y){this.tag("code");this.out(Y.literal);this.tag("/code")};
_.z.code_block=function(Y){var S=Y.info?Y.info.split(/\s+/):[],P=this.attrs(Y);S.length>0&&S[0].length>0&&P.push(["class","language-"+z8(S[0],!0)]);this.cr();this.tag("pre");this.tag("code",P);this.out(Y.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.z.thematic_break=function(Y){Y=this.attrs(Y);this.cr();this.tag("hr",Y,!0);this.cr()};
_.z.block_quote=function(Y,S){Y=this.attrs(Y);S?(this.cr(),this.tag("blockquote",Y)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.z.list=function(Y,S){var P=Y.listType==="bullet"?"ul":"ol",u=this.attrs(Y);S?(Y=Y.listStart,Y!==null&&Y!==1&&u.push(["start",Y.toString()]),this.cr(),this.tag(P,u)):(this.cr(),this.tag("/"+P));this.cr()};
_.z.item=function(Y,S){Y=this.attrs(Y);S?this.tag("li",Y):(this.tag("/li"),this.cr())};
_.z.custom_inline=function(Y,S){S&&Y.onEnter?RS(this,Y.onEnter):!S&&Y.onExit&&RS(this,Y.onExit)};
_.z.custom_block=function(Y,S){this.cr();S&&Y.onEnter?RS(this,Y.onEnter):!S&&Y.onExit&&RS(this,Y.onExit);this.cr()};
_.z.table=function(Y,S){Y=this.attrs(Y);S?(this.cr(),this.tag("table",Y)):(this.tag("/table"),this.cr())};
_.z.row=function(Y,S){Y._rowIsDelimiter||(Y=this.attrs(Y),S?this.tag("tr",Y):this.tag("/tr"))};
_.z.td=function(Y,S){var P=this.attrs(Y);Y._alignment&&P.push(["align",Y._alignment]);S?this.tag("td",P):this.tag("/td")};
_.z.th=function(Y,S){var P=this.attrs(Y);Y._alignment&&P.push(["align",Y._alignment]);S?this.tag("th",P):this.tag("/th")};
_.z.out=function(Y){RS(this,z8(Y,!1))};
_.z.tag=function(Y,S,P){if(!(this.disableTags>0)){this.buffer+="<"+Y;if(S&&S.length>0){Y=0;for(var u;(u=S[Y])!==void 0;)this.buffer+=" "+u[0]+'="'+u[1]+'"',Y++}P&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.z.attrs=function(Y){var S=[];this.options.sourcepos&&(Y=Y.sourcepos)&&S.push(["data-sourcepos",String(Y[0][0])+":"+String(Y[0][1])+"-"+String(Y[1][0])+":"+String(Y[1][1])]);return S};
c3.prototype.text=c3.prototype.text;c3.prototype.html_inline=c3.prototype.html_inline;c3.prototype.html_block=c3.prototype.html_block;c3.prototype.softbreak=c3.prototype.softbreak;c3.prototype.linebreak=c3.prototype.linebreak;c3.prototype.link=c3.prototype.link;c3.prototype.image=c3.prototype.image;c3.prototype.emph=c3.prototype.emph;c3.prototype.strong=c3.prototype.strong;c3.prototype.paragraph=c3.prototype.paragraph;c3.prototype.heading=c3.prototype.heading;c3.prototype.code=c3.prototype.code;
c3.prototype.code_block=c3.prototype.code_block;c3.prototype.thematic_break=c3.prototype.thematic_break;c3.prototype.block_quote=c3.prototype.block_quote;c3.prototype.list=c3.prototype.list;c3.prototype.item=c3.prototype.item;c3.prototype.custom_inline=c3.prototype.custom_inline;c3.prototype.custom_block=c3.prototype.custom_block;c3.prototype.table=c3.prototype.table;c3.prototype.row=c3.prototype.row;c3.prototype.td=c3.prototype.td;c3.prototype.th=c3.prototype.th;c3.prototype.out=c3.prototype.out;
c3.prototype.tag=c3.prototype.tag;c3.prototype.attrs=c3.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 N8t,Hsi,xMK;(function(){function Y(L,D){return L<D?-1:L>D?1:L>=D?0:NaN}
function S(L){return function(D,l){return Y(L(D),l)}}
function P(){for(var L=0,D=arguments.length,l={},y;L<D;++L){if(!(y=arguments[L]+"")||y in l)throw Error("re`"+y);l[y]=[]}return new u(l)}
function u(L){this._=L}
function W(L,D){return L.trim().split(/^|\s+/).map(function(l){var y="",Wa=l.indexOf(".");Wa>=0&&(y=l.slice(Wa+1),l=l.slice(0,Wa));if(l&&!D.hasOwnProperty(l))throw Error("se`"+l);return{type:l,name:y}})}
function m(L,D,l){for(var y=0,Wa=L.length;y<Wa;++y)if(L[y].name===D){L[y]=Dio;L=L.slice(0,y).concat(L.slice(y+1));break}l!=null&&L.push({name:D,value:l});return L}
function J(L){var D=L,l=D.indexOf(":");l>=0&&(D=L.slice(0,l))!=="xmlns"&&(L=L.slice(l+1));return of.hasOwnProperty(D)?{space:of[D],local:L}:L}
function c(L){return function(){var D=this.ownerDocument,l=this.namespaceURI;return l==="http://www.w3.org/1999/xhtml"&&D.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?D.createElement(L):D.createElementNS(l,L)}}
function C(L){return function(){return this.ownerDocument.createElementNS(L.space,L.local)}}
function x(L){L=J(L);return(L.local?C:c)(L)}
function b(){}
function T(L){return L==null?b:function(){return this.querySelector(L)}}
function K(L){return Array(L.length)}
function G(L,D){this.ownerDocument=L.ownerDocument;this.namespaceURI=L.namespaceURI;this._next=null;this._parent=L;this.__data__=D}
function v(L){return function(){return L}}
function a(L,D,l,y,Wa,Ju){for(var ba=0,GJ,VX=D.length,Ha=Ju.length;ba<Ha;++ba)(GJ=D[ba])?(GJ.__data__=Ju[ba],y[ba]=GJ):l[ba]=new G(L,Ju[ba]);for(;ba<VX;++ba)if(GJ=D[ba])Wa[ba]=GJ}
function w(L,D,l,y,Wa,Ju,ba){var GJ,VX,Ha={},O9=D.length,Bt=Ju.length,U6=Array(O9),Ru;for(GJ=0;GJ<O9;++GJ)if(VX=D[GJ])U6[GJ]=Ru="$"+ba.call(VX,VX.__data__,GJ,D),Ru in Ha?Wa[GJ]=VX:Ha[Ru]=VX;for(GJ=0;GJ<Bt;++GJ)Ru="$"+ba.call(L,Ju[GJ],GJ,Ju),(VX=Ha[Ru])?(y[GJ]=VX,VX.__data__=Ju[GJ],Ha[Ru]=null):l[GJ]=new G(L,Ju[GJ]);for(GJ=0;GJ<O9;++GJ)(VX=D[GJ])&&Ha[U6[GJ]]===VX&&(Wa[GJ]=VX)}
function F(L,D){return L<D?-1:L>D?1:L>=D?0:NaN}
function U(L){return function(){this.removeAttribute(L)}}
function V(L){return function(){this.removeAttributeNS(L.space,L.local)}}
function M(L,D){return function(){this.setAttribute(L,D)}}
function zJ(L,D){return function(){this.setAttributeNS(L.space,L.local,D)}}
function O(L,D){return function(){var l=D.apply(this,arguments);l==null?this.removeAttribute(L):this.setAttribute(L,l)}}
function ca(L,D){return function(){var l=D.apply(this,arguments);l==null?this.removeAttributeNS(L.space,L.local):this.setAttributeNS(L.space,L.local,l)}}
function hu(L){return function(){this.style.removeProperty(L)}}
function ah(L,D,l){return function(){this.style.setProperty(L,D,l)}}
function va(L,D,l){return function(){var y=D.apply(this,arguments);y==null?this.style.removeProperty(L):this.style.setProperty(L,y,l)}}
function yX(L,D){return L.style.getPropertyValue(D)||(L.ownerDocument&&L.ownerDocument.defaultView||L.document&&L||L.defaultView).getComputedStyle(L,null).getPropertyValue(D)}
function la(L){return function(){delete this[L]}}
function w1(L,D){return function(){this[L]=D}}
function U9(L,D){return function(){var l=D.apply(this,arguments);l==null?delete this[L]:this[L]=l}}
function nu(){this.textContent=""}
function Yc(L){return function(){this.textContent=L}}
function tu(L){return function(){var D=L.apply(this,arguments);this.textContent=D==null?"":D}}
function $_(){this.innerHTML=""}
function fu(L){return function(){this.innerHTML=L}}
function G3(L){return function(){var D=L.apply(this,arguments);this.innerHTML=D==null?"":D}}
function wd(){return null}
function Wd(){var L=this.parentNode;L&&L.removeChild(this)}
function kE(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function n8(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function P6(L,D,l){L=ML(L,D,l);return function(y){var Wa=y.relatedTarget;Wa&&(Wa===this||Wa.compareDocumentPosition(this)&8)||L.call(this,y)}}
function ML(L,D,l){return function(){L.call(this,this.__data__,D,l)}}
function zc(L){return L.trim().split(/^|\s+/).map(function(D){var l="",y=D.indexOf(".");y>=0&&(l=D.slice(y+1),D=D.slice(0,y));return{type:D,name:l}})}
function Ku(L){return function(){var D=this.__on;if(D){for(var l=0,y=-1,Wa=D.length,Ju;l<Wa;++l)(Ju=D[l],L.type&&Ju.type!==L.type||Ju.name!==L.name)?D[++y]=Ju:this.removeEventListener(Ju.type,Ju.listener,Ju.capture);++y?D.length=y:delete this.__on}}}
function uo(L,D,l){var y=$7L.hasOwnProperty(L.type)?P6:ML;return function(Wa,Ju,ba){Wa=this.__on;var GJ;Ju=y(D,Ju,ba);if(Wa){ba=0;for(var VX=Wa.length;ba<VX;++ba)if((GJ=Wa[ba]).type===L.type&&GJ.name===L.name){this.removeEventListener(GJ.type,GJ.listener,GJ.capture);this.addEventListener(GJ.type,GJ.listener=Ju,GJ.capture=l);GJ.value=D;return}}this.addEventListener(L.type,Ju,l);GJ={type:L.type,name:L.name,value:D,listener:Ju,capture:l};Wa?Wa.push(GJ):this.__on=[GJ]}}
function qL(L,D,l){var y=L.ownerDocument&&L.ownerDocument.defaultView||L.document&&L||L.defaultView,Wa=y.CustomEvent;typeof Wa==="function"?Wa=new Wa(D,l):(Wa=y.document.createEvent("Event"),l?(Wa.initEvent(D,l.bubbles,l.cancelable),Wa.detail=l.detail):Wa.initEvent(D,!1,!1));L.dispatchEvent(Wa)}
function Zf(L,D){return function(){return qL(this,L,D)}}
function Cu(L,D){return function(){return qL(this,L,D.apply(this,arguments))}}
function hm(L,D){this._groups=L;this._parents=D}
function Iu(){return new hm([[document.documentElement]],Ipu)}
function Fi(){this._="@"+(++apo).toString(36)}
function tj(L,D,l){L.prototype=D.prototype=l;l.constructor=L}
function vd(L,D){L=Object.create(L.prototype);for(var l in D)L[l]=D[l];return L}
function OE(){}
function Tc(L){var D;L=(L+"").trim().toLowerCase();return(D=LXZ.exec(L))?(D=parseInt(D[1],16),new jX(D>>8&15|D>>4&240,D>>4&15|D&240,(D&15)<<4|D&15,1)):(D=wWB.exec(L))?XO(parseInt(D[1],16)):(D=pWX.exec(L))?new jX(D[1],D[2],D[3],1):(D=FXc.exec(L))?new jX(D[1]*255/100,D[2]*255/100,D[3]*255/100,1):(D=sJY.exec(L))?Y5(D[1],D[2],D[3],D[4]):(D=di_.exec(L))?Y5(D[1]*255/100,D[2]*255/100,D[3]*255/100,D[4]):(D=lpc.exec(L))?bI(D[1],D[2]/100,D[3]/100,1):(D=XWB.exec(L))?bI(D[1],D[2]/100,D[3]/100,D[4]):rn6.hasOwnProperty(L)?
XO(rn6[L]):L==="transparent"?new jX(NaN,NaN,NaN,0):null}
function XO(L){return new jX(L>>16&255,L>>8&255,L&255,1)}
function Y5(L,D,l,y){y<=0&&(L=D=l=NaN);return new jX(L,D,l,y)}
function L7(L){L instanceof OE||(L=Tc(L));if(!L)return new jX;L=L.rgb();return new jX(L.r,L.g,L.b,L.opacity)}
function tF(L,D,l,y){return arguments.length===1?L7(L):new jX(L,D,l,y==null?1:y)}
function jX(L,D,l,y){this.r=+L;this.g=+D;this.b=+l;this.opacity=+y}
function XF(L){L=Math.max(0,Math.min(255,Math.round(L)||0));return(L<16?"0":"")+L.toString(16)}
function bI(L,D,l,y){y<=0?L=D=l=NaN:l<=0||l>=1?L=D=NaN:D<=0&&(L=NaN);return new V4(L,D,l,y)}
function g7(L){if(L instanceof V4)return new V4(L.h,L.s,L.l,L.opacity);L instanceof OE||(L=Tc(L));if(!L)return new V4;if(L instanceof V4)return L;L=L.rgb();var D=L.r/255,l=L.g/255,y=L.b/255,Wa=Math.min(D,l,y),Ju=Math.max(D,l,y),ba=NaN,GJ=Ju-Wa,VX=(Ju+Wa)/2;GJ?(ba=D===Ju?(l-y)/GJ+(l<y)*6:l===Ju?(y-D)/GJ+2:(D-l)/GJ+4,GJ/=VX<.5?Ju+Wa:2-Ju-Wa,ba*=60):GJ=VX>0&&VX<1?0:ba;return new V4(ba,GJ,VX,L.opacity)}
function Wu(L,D,l,y){return arguments.length===1?g7(L):new V4(L,D,l,y==null?1:y)}
function V4(L,D,l,y){this.h=+L;this.s=+D;this.l=+l;this.opacity=+y}
function y3(L,D,l){return(L<60?D+(l-D)*L/60:L<180?l:L<240?D+(l-D)*(240-L)/60:D)*255}
function W_(L){if(L instanceof E9)return new E9(L.l,L.a,L.b,L.opacity);if(L instanceof T3){if(isNaN(L.h))return new E9(L.l,0,0,L.opacity);var D=L.h*G8i;return new E9(L.l,Math.cos(D)*L.c,Math.sin(D)*L.c,L.opacity)}L instanceof jX||(L=L7(L));var l=W6(L.r),y=W6(L.g),Wa=W6(L.b);D=FE(.2225045*l+.7168786*y+.0606169*Wa);if(l===y&&y===Wa)var Ju=l=D;else Ju=FE((.4360747*l+.3850649*y+.1430804*Wa)/.96422),l=FE((.0139322*l+.0971045*y+.7141733*Wa)/.82521);return new E9(116*D-16,500*(Ju-D),200*(D-l),L.opacity)}
function E9(L,D,l,y){this.l=+L;this.a=+D;this.b=+l;this.opacity=+y}
function FE(L){return L>ZjY?Math.pow(L,1/3):L/hDs+v1h}
function ia(L){return L>Yj?L*L*L:hDs*(L-v1h)}
function Rs(L){return 255*(L<=.0031308?12.92*L:1.055*Math.pow(L,1/2.4)-.055)}
function W6(L){return(L/=255)<=.04045?L/12.92:Math.pow((L+.055)/1.055,2.4)}
function DB(L){if(L instanceof T3)return new T3(L.h,L.c,L.l,L.opacity);L instanceof E9||(L=W_(L));if(L.a===0&&L.b===0)return new T3(NaN,0,L.l,L.opacity);var D=Math.atan2(L.b,L.a)*D7L;return new T3(D<0?D+360:D,Math.sqrt(L.a*L.a+L.b*L.b),L.l,L.opacity)}
function c6(L,D,l,y){return arguments.length===1?DB(L):new T3(L,D,l,y==null?1:y)}
function T3(L,D,l,y){this.h=+L;this.c=+D;this.l=+l;this.opacity=+y}
function x_(L,D,l,y){if(arguments.length===1){var Wa=L;if(Wa instanceof xc)Wa=new xc(Wa.h,Wa.s,Wa.l,Wa.opacity);else{Wa instanceof jX||(Wa=L7(Wa));var Ju=Wa.g/255,ba=Wa.b/255,GJ=(IWs*ba+Wa.r/255*-1.7884503806-3.5172982438*Ju)/(IWs+-1.7884503806-3.5172982438);ba-=GJ;var VX=(1.97294*(Ju-GJ)- -.29227*ba)/-.90649;ba=(Ju=Math.sqrt(VX*VX+ba*ba)/(1.97294*GJ*(1-GJ)))?Math.atan2(VX,ba)*D7L-120:NaN;Wa=new xc(ba<0?ba+360:ba,Ju,GJ,Wa.opacity)}}else Wa=new xc(L,D,l,y==null?1:y);return Wa}
function xc(L,D,l,y){this.h=+L;this.s=+D;this.l=+l;this.opacity=+y}
function kc(L,D,l,y,Wa){var Ju=L*L,ba=Ju*L;return((1-3*L+3*Ju-ba)*D+(4-6*Ju+3*ba)*l+(1+3*L+3*Ju-3*ba)*y+ba*Wa)/6}
function mh(L){return function(){return L}}
function ZD(L,D){return function(l){return L+l*D}}
function JA(L,D,l){return L=Math.pow(L,l),D=Math.pow(D,l)-L,l=1/l,function(y){return Math.pow(L+y*D,l)}}
function pS(L,D){var l=D-L;return l?ZD(L,l>180||l<-180?l-360*Math.round(l/360):l):mh(isNaN(L)?D:L)}
function qg(L){return(L=+L)===1?zZ:function(D,l){return l-D?JA(D,l,L):mh(isNaN(D)?l:D)}}
function zZ(L,D){var l=D-L;return l?ZD(L,l):mh(isNaN(L)?D:L)}
function L6(L){return function(D){var l=D.length,y=Array(l),Wa=Array(l),Ju=Array(l),ba;for(ba=0;ba<l;++ba){var GJ=tF(D[ba]);y[ba]=GJ.r||0;Wa[ba]=GJ.g||0;Ju[ba]=GJ.b||0}y=L(y);Wa=L(Wa);Ju=L(Ju);GJ.opacity=1;return function(VX){GJ.r=y(VX);GJ.g=Wa(VX);GJ.b=Ju(VX);return GJ+""}}}
function QX(L,D){return L=+L,D-=L,function(l){return L+D*l}}
function C1(L){return function(){return L}}
function fS(L){return function(D){return L(D)+""}}
function KS(L,D){var l=e7J.lastIndex=Ora.lastIndex=0,y,Wa,Ju,ba=-1,GJ=[],VX=[];L+="";for(D+="";(y=e7J.exec(L))&&(Wa=Ora.exec(D));)(Ju=Wa.index)>l&&(Ju=D.slice(l,Ju),GJ[ba]?GJ[ba]+=Ju:GJ[++ba]=Ju),(y=y[0])===(Wa=Wa[0])?GJ[ba]?GJ[ba]+=Wa:GJ[++ba]=Wa:(GJ[++ba]=null,VX.push({i:ba,x:QX(y,Wa)})),l=Ora.lastIndex;l<D.length&&(Ju=D.slice(l),GJ[ba]?GJ[ba]+=Ju:GJ[++ba]=Ju);return GJ.length<2?VX[0]?fS(VX[0].x):C1(D):(D=VX.length,function(Ha){for(var O9=0,Bt;O9<D;++O9)GJ[(Bt=VX[O9]).i]=Bt.x(Ha);return GJ.join("")})}
function RD(L,D,l,y,Wa,Ju){var ba,GJ,VX;if(ba=Math.sqrt(L*L+D*D))L/=ba,D/=ba;if(VX=L*l+D*y)l-=L*VX,y-=D*VX;if(GJ=Math.sqrt(l*l+y*y))l/=GJ,y/=GJ,VX/=GJ;L*y<D*l&&(L=-L,D=-D,VX=-VX,ba=-ba);return{translateX:Wa,translateY:Ju,rotate:Math.atan2(D,L)*aWd,skewX:Math.atan(VX)*aWd,scaleX:ba,scaleY:GJ}}
function Pz(L,D,l,y){function Wa(Ha){return Ha.length?Ha.pop()+" ":""}
function Ju(Ha,O9,Bt,U6,Ru,RN){Ha!==Bt||O9!==U6?(Ru=Ru.push("translate(",null,D,null,l),RN.push({i:Ru-4,x:QX(Ha,Bt)},{i:Ru-2,x:QX(O9,U6)})):(Bt||U6)&&Ru.push("translate("+Bt+D+U6+l)}
function ba(Ha,O9,Bt,U6){Ha!==O9?(Ha-O9>180?O9+=360:O9-Ha>180&&(Ha+=360),U6.push({i:Bt.push(Wa(Bt)+"rotate(",null,y)-2,x:QX(Ha,O9)})):O9&&Bt.push(Wa(Bt)+"rotate("+O9+y)}
function GJ(Ha,O9,Bt,U6){Ha!==O9?U6.push({i:Bt.push(Wa(Bt)+"skewX(",null,y)-2,x:QX(Ha,O9)}):O9&&Bt.push(Wa(Bt)+"skewX("+O9+y)}
function VX(Ha,O9,Bt,U6,Ru,RN){Ha!==Bt||O9!==U6?(Ru=Ru.push(Wa(Ru)+"scale(",null,",",null,")"),RN.push({i:Ru-4,x:QX(Ha,Bt)},{i:Ru-2,x:QX(O9,U6)})):Bt===1&&U6===1||Ru.push(Wa(Ru)+"scale("+Bt+","+U6+")")}
return function(Ha,O9){var Bt=[],U6=[];Ha=L(Ha);O9=L(O9);Ju(Ha.translateX,Ha.translateY,O9.translateX,O9.translateY,Bt,U6);ba(Ha.rotate,O9.rotate,Bt,U6);GJ(Ha.skewX,O9.skewX,Bt,U6);VX(Ha.scaleX,Ha.scaleY,O9.scaleX,O9.scaleY,Bt,U6);Ha=O9=null;return function(Ru){for(var RN=-1,lB=U6.length,bB;++RN<lB;)Bt[(bB=U6[RN]).i]=bB.x(Ru);return Bt.join("")}}}
function IN(L){return function(D,l){var y=L((D=Wu(D)).h,(l=Wu(l)).h),Wa=zZ(D.s,l.s),Ju=zZ(D.l,l.l),ba=zZ(D.opacity,l.opacity);return function(GJ){D.h=y(GJ);D.s=Wa(GJ);D.l=Ju(GJ);D.opacity=ba(GJ);return D+""}}}
function Kj(L){return function(D,l){var y=L((D=c6(D)).h,(l=c6(l)).h),Wa=zZ(D.c,l.c),Ju=zZ(D.l,l.l),ba=zZ(D.opacity,l.opacity);return function(GJ){D.h=y(GJ);D.c=Wa(GJ);D.l=Ju(GJ);D.opacity=ba(GJ);return D+""}}}
function EM(L){return function y(l){function Wa(Ju,ba){var GJ=L((Ju=x_(Ju)).h,(ba=x_(ba)).h),VX=zZ(Ju.s,ba.s),Ha=zZ(Ju.l,ba.l),O9=zZ(Ju.opacity,ba.opacity);return function(Bt){Ju.h=GJ(Bt);Ju.s=VX(Bt);Ju.l=Ha(Math.pow(Bt,l));Ju.opacity=O9(Bt);return Ju+""}}
l=+l;Wa.gamma=y;return Wa}(1)}
function qQ(){return ao||(Ll_(w68),ao=i8.now()+jIX)}
function w68(){ao=0}
function R3(){this._call=this._time=this._next=null}
function to(L,D,l){var y=new R3;y.restart(L,D,l);return y}
function Ao(){ao=(JxJ=i8.now())+jIX;Sx=oC=0;try{qQ();++Sx;for(var L=BKh,D;L;)(D=ao-L._time)>=0&&L._call.call(null,D),L=L._next;--Sx}finally{Sx=0;L=BKh;for(var l=Infinity;L;)if(L._call){l>L._time&&(l=L._time);var y=L;L=L._next}else D=L._next,L._next=null,L=y?y._next=D:BKh=D;tS=y;Uc(l);ao=0}}
function mE9(){var L=i8.now(),D=L-JxJ;D>1E3&&(jIX-=D,JxJ=L)}
function Uc(L){Sx||(oC&&(oC=clearTimeout(oC)),L-ao>24?(L<Infinity&&(oC=setTimeout(Ao,L-i8.now()-jIX)),AS&&(AS=clearInterval(AS))):(AS||(JxJ=i8.now(),AS=setInterval(mE9,1E3)),Sx=1,Ll_(Ao)))}
function wYt(L,D,l){var y=new R3;D=D==null?0:+D;y.restart(function(Wa){y.stop();L(Wa+D)},D,l);
return y}
function Ymh(L,D,l,y,Wa,Ju){var ba=L.__transition;if(!ba)L.__transition={};else if(l in ba)return;iju(L,l,{name:D,index:y,group:Wa,on:onZ,tween:t5I,time:Ju.time,delay:Ju.delay,duration:Ju.duration,ease:Ju.ease,timer:null,state:0})}
function Smh(L,D){L=cO(L,D);if(L.state>0)throw Error("te");return L}
function Lm(L,D){L=cO(L,D);if(L.state>2)throw Error("ue");return L}
function cO(L,D){L=L.__transition;if(!L||!(L=L[D]))throw Error("ve");return L}
function iju(L,D,l){function y(VX){var Ha,O9;if(l.state!==1)return Ju();for(U6 in ba){var Bt=ba[U6];if(Bt.name===l.name){if(Bt.state===3)return wYt(y);Bt.state===4?(Bt.state=6,Bt.timer.stop(),Bt.on.call("interrupt",L,L.__data__,Bt.index,Bt.group),delete ba[U6]):+U6<D&&(Bt.state=6,Bt.timer.stop(),delete ba[U6])}}wYt(function(){l.state===3&&(l.state=4,l.timer.restart(Wa,l.delay,l.time),Wa(VX))});
l.state=2;l.on.call("start",L,L.__data__,l.index,l.group);if(l.state===2){l.state=3;GJ=Array(O9=l.tween.length);var U6=0;for(Ha=-1;U6<O9;++U6)if(Bt=l.tween[U6].value.call(L,L.__data__,l.index,l.group))GJ[++Ha]=Bt;GJ.length=Ha+1}}
function Wa(VX){VX=VX<l.duration?l.ease.call(null,VX/l.duration):(l.timer.restart(Ju),l.state=5,1);for(var Ha=-1,O9=GJ.length;++Ha<O9;)GJ[Ha].call(null,VX);l.state===5&&(l.on.call("end",L,L.__data__,l.index,l.group),Ju())}
function Ju(){l.state=6;l.timer.stop();delete ba[D];for(var VX in ba)return;delete L.__transition}
var ba=L.__transition,GJ;ba[D]=l;l.timer=to(function(VX){l.state=1;l.timer.restart(y,l.delay,l.time);l.delay<=VX&&y(VX-l.delay)},0,l.time)}
function AvB(L,D){var l,y;return function(){var Wa=Lm(this,L),Ju=Wa.tween;if(Ju!==l){y=l=Ju;Ju=0;for(var ba=y.length;Ju<ba;++Ju)if(y[Ju].name===D){y=y.slice();y.splice(Ju,1);break}}Wa.tween=y}}
function Uid(L,D,l){var y,Wa;if(typeof l!=="function")throw Error();return function(){var Ju=Lm(this,L),ba=Ju.tween;if(ba!==y){Wa=(y=ba).slice();ba={name:D,value:l};for(var GJ=0,VX=Wa.length;GJ<VX;++GJ)if(Wa[GJ].name===D){Wa[GJ]=ba;break}GJ===VX&&Wa.push(ba)}Ju.tween=Wa}}
function Pru(L,D,l){var y=L._id;L.each(function(){var Wa=Lm(this,y);(Wa.value||(Wa.value={}))[D]=l.apply(this,arguments)});
return function(Wa){return cO(Wa,y).value[D]}}
function pYt(L,D){var l;return(typeof D==="number"?QX:D instanceof Tc?Flf:(l=Tc(D))?(D=l,Flf):KS)(L,D)}
function QJd(L){return function(){this.removeAttribute(L)}}
function keo(L){return function(){this.removeAttributeNS(L.space,L.local)}}
function M5I(L,D,l){var y,Wa;return function(){var Ju=this.getAttribute(L);return Ju===l?null:Ju===y?Wa:Wa=D(y=Ju,l)}}
function yv5(L,D,l){var y,Wa;return function(){var Ju=this.getAttributeNS(L.space,L.local);return Ju===l?null:Ju===y?Wa:Wa=D(y=Ju,l)}}
function NVI(L,D,l){var y,Wa,Ju;return function(){var ba=l(this);if(ba==null)return void this.removeAttribute(L);var GJ=this.getAttribute(L);return GJ===ba?null:GJ===y&&ba===Wa?Ju:Ju=D(y=GJ,Wa=ba)}}
function Hjj(L,D,l){var y,Wa,Ju;return function(){var ba=l(this);if(ba==null)return void this.removeAttributeNS(L.space,L.local);var GJ=this.getAttributeNS(L.space,L.local);return GJ===ba?null:GJ===y&&ba===Wa?Ju:Ju=D(y=GJ,Wa=ba)}}
function V5Y(L,D){function l(){var y=this,Wa=D.apply(y,arguments);return Wa&&function(Ju){y.setAttributeNS(L.space,L.local,Wa(Ju))}}
l._value=D;return l}
function exo(L,D){function l(){var y=this,Wa=D.apply(y,arguments);return Wa&&function(Ju){y.setAttribute(L,Wa(Ju))}}
l._value=D;return l}
function Ojj(L,D){return function(){Smh(this,L).delay=+D.apply(this,arguments)}}
function YgB(L,D){return D=+D,function(){Smh(this,L).delay=D}}
function Sgc(L,D){return function(){Lm(this,L).duration=+D.apply(this,arguments)}}
function Pd6(L,D){return D=+D,function(){Lm(this,L).duration=D}}
function us5(L,D){if(typeof D!=="function")throw Error();return function(){Lm(this,L).ease=D}}
function W0I(L){return(L+"").trim().split(/^|\s+/).every(function(D){var l=D.indexOf(".");l>=0&&(D=D.slice(0,l));return!D||D==="start"})}
function zk_(L,D,l){var y,Wa,Ju=W0I(D)?Smh:Lm;return function(){var ba=Ju(this,L),GJ=ba.on;if(GJ!==y)(Wa=(y=GJ).copy()).on(D,l);ba.on=Wa}}
function mA5(L){return function(){var D=this.parentNode,l;for(l in this.__transition)if(+l!==L)return;D&&D.removeChild(this)}}
function nQd(L,D){var l,y,Wa;return function(){var Ju=yX(this,L),ba=(this.style.removeProperty(L),yX(this,L));return Ju===ba?null:Ju===l&&ba===y?Wa:Wa=D(l=Ju,y=ba)}}
function jLB(L){return function(){this.style.removeProperty(L)}}
function J_c(L,D,l){var y,Wa;return function(){var Ju=yX(this,L);return Ju===l?null:Ju===y?Wa:Wa=D(y=Ju,l)}}
function BIB(L,D,l){var y,Wa,Ju;return function(){var ba=yX(this,L),GJ=l(this);GJ==null&&(GJ=(this.style.removeProperty(L),yX(this,L)));return ba===GJ?null:ba===y&&GJ===Wa?Ju:Ju=D(y=ba,Wa=GJ)}}
function c_6(L,D,l){function y(){var Wa=this,Ju=D.apply(Wa,arguments);return Ju&&function(ba){Wa.style.setProperty(L,Ju(ba),l)}}
y._value=D;return y}
function CdB(L){return function(){this.textContent=L}}
function qgd(L){return function(){var D=L(this);this.textContent=D==null?"":D}}
function P0(L,D,l,y){this._groups=L;this._parents=D;this._name=l;this._id=y}
function uUU(L){return{type:L}}
function Wl8(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function cxh(){}
function sS6(L,D){var l=new cxh;if(L instanceof cxh)L.each(function(ba,GJ){l.set(GJ,ba)});
else if(Array.isArray(L)){var y=-1,Wa=L.length,Ju;if(D==null)for(;++y<Wa;)l.set(y,L[y]);else for(;++y<Wa;)l.set(D(Ju=L[y],y,L),Ju)}else if(L)for(y in L)l.set(y,L[y]);return l}
function Cya(){}
function d7f(L){return function(D){for(var l={},y=0;y<L.length;y++)l[L[y]]=D[y]||"";return l}}
function Rk6(L,D){var l=d7f(L);return function(y,Wa){return D(l(y),Wa,L)}}
function xAj(L){var D=Object.create(null),l=[];L.forEach(function(y){for(var Wa in y)Wa in D||l.push(D[Wa]=Wa)});
return l}
function lWu(L){function D(ba,GJ){function VX(){if(RN)return zDa;if(lB)return lB=!1,XYi;var iX,U_=Bt,Kb;if(ba.charCodeAt(U_)===34){for(;Bt++<O9&&ba.charCodeAt(Bt)!==34||ba.charCodeAt(++Bt)===34;);(iX=Bt)>=O9?RN=!0:(Kb=ba.charCodeAt(Bt++))===10?lB=!0:Kb===13&&(lB=!0,ba.charCodeAt(Bt)===10&&++Bt);return ba.slice(U_+1,iX-1).replace(/""/g,'"')}for(;Bt<O9;){if((Kb=ba.charCodeAt(iX=Bt++))===10)lB=!0;else if(Kb===13)lB=!0,ba.charCodeAt(Bt)===10&&++Bt;else if(Kb!==Ju)continue;return ba.slice(U_,iX)}return RN=
!0,ba.slice(U_,O9)}
var Ha=[],O9=ba.length,Bt=0,U6=0,Ru,RN=O9<=0,lB=!1;ba.charCodeAt(O9-1)===10&&--O9;for(ba.charCodeAt(O9-1)===13&&--O9;(Ru=VX())!==zDa;){for(var bB=[];Ru!==XYi&&Ru!==zDa;)bB.push(Ru),Ru=VX();GJ&&(bB=GJ(bB,U6++))==null||Ha.push(bB)}return Ha}
function l(ba){return ba.map(y).join(L)}
function y(ba){return ba==null?"":Wa.test(ba)?'"'+ba.replace(/"/g,'""')+'"':ba}
var Wa=new RegExp('["'+L+"\n\r]"),Ju=L.charCodeAt(0);return{parse:function(ba,GJ){var VX,Ha;ba=D(ba,function(O9,Bt){if(VX)return VX(O9,Bt-1);Ha=O9;VX=GJ?Rk6(O9,GJ):d7f(O9)});
ba.columns=Ha||[];return ba},
parseRows:D,format:function(ba,GJ){GJ==null&&(GJ=xAj(ba));return[GJ.map(y).join(L)].concat(ba.map(function(VX){return GJ.map(function(Ha){return y(VX[Ha])}).join(L)})).join("\n")},
formatRows:function(ba){return ba.map(l).join("\n")}}}
function bX1(L){if(!L.ok)throw Error("we`"+L.status+"`"+L.statusText);return L.text()}
function ZDU(L){return function(D,l,y){arguments.length===2&&typeof l==="function"&&(y=l,l=void 0);return fetch(D,l).then(bX1).then(function(Wa){return L(Wa,y)})}}
function iDh(L,D,l,y){if(isNaN(D)||isNaN(l))return L;var Wa,Ju=L._root;y={data:y};var ba=L._x0,GJ=L._y0,VX=L._x1,Ha=L._y1,O9,Bt,U6,Ru,RN;if(!Ju)return L._root=y,L;for(;Ju.length;)if((U6=D>=(O9=(ba+VX)/2))?ba=O9:VX=O9,(Ru=l>=(Bt=(GJ+Ha)/2))?GJ=Bt:Ha=Bt,Wa=Ju,!(Ju=Ju[RN=Ru<<1|U6]))return Wa[RN]=y,L;var lB=+L._x.call(null,Ju.data);var bB=+L._y.call(null,Ju.data);if(D===lB&&l===bB)return y.next=Ju,Wa?Wa[RN]=y:L._root=y,L;do Wa=Wa?Wa[RN]=Array(4):L._root=Array(4),(U6=D>=(O9=(ba+VX)/2))?ba=O9:VX=O9,(Ru=
l>=(Bt=(GJ+Ha)/2))?GJ=Bt:Ha=Bt;while((RN=Ru<<1|U6)===(U6=(bB>=Bt)<<1|lB>=O9));return Wa[U6]=Ju,Wa[RN]=y,L}
function YB(L,D,l,y,Wa){this.node=L;this.x0=D;this.y0=l;this.x1=y;this.y1=Wa}
function TIY(L){return L[0]}
function K0Z(L){return L[1]}
function m7h(L,D,l,y,Wa,Ju){this._x=L;this._y=D;this._x0=l;this._y0=y;this._x1=Wa;this._y1=Ju;this._root=void 0}
function o1J(L){for(var D={data:L.data},l=D;L=L.next;)l=l.next={data:L.data};return D}
function quX(L,D){if((D=(L=D?L.toExponential(D-1):L.toExponential()).indexOf("e"))<0)return null;var l=L.slice(0,D);return[l.length>1?l[0]+l.slice(2):l,+L.slice(D+1)]}
function EQX(L){return L=quX(Math.abs(L)),L?L[1]:NaN}
function flB(L,D){return function(l,y){for(var Wa=l.length,Ju=[],ba=0,GJ=L[0],VX=0;Wa>0&&GJ>0;){VX+GJ+1>y&&(GJ=Math.max(1,y-VX));Ju.push(l.substring(Wa-=GJ,Wa+GJ));if((VX+=GJ+1)>y)break;GJ=L[ba=(ba+1)%L.length]}return Ju.reverse().join(D)}}
function gQd(L){return function(D){return D.replace(/[0-9]/g,function(l){return L[+l]})}}
function n1a(L){return new jSa(L)}
function jSa(L){if(!(D=$A1.exec(L)))throw Error("xe`"+L);var D;this.fill=D[1]||" ";this.align=D[2]||">";this.sign=D[3]||"-";this.symbol=D[4]||"";this.zero=!!D[5];this.width=D[6]&&+D[6];this.comma=!!D[7];this.precision=D[8]&&+D[8].slice(1);this.trim=!!D[9];this.type=D[10]||""}
function tBd(L,D){D=quX(L,D);if(!D)return L+"";L=D[0];D=D[1];return D<0?"0."+Array(-D).join("0")+L:L.length>D+1?L.slice(0,D+1)+"."+L.slice(D+1):L+Array(D-L.length+2).join("0")}
function AnJ(L){return L}
function r_B(L){function D(GJ){function VX(UU){var jq=Kb,au=cL,cd,Od;if(U_==="c")au=Q2(UU)+au,UU="";else{UU=+UU;var bo=UU<0;UU=Q2(Math.abs(UU),bB);if(iX){var Ax=UU.length,Ef=1,od=-1;a:for(;Ef<Ax;++Ef)switch(UU[Ef]){case ".":od=cd=Ef;break;case "0":od===0&&(od=Ef);cd=Ef;break;default:if(!+UU[Ef])break a;od>0&&(od=0)}UU=od>0?UU.slice(0,od)+UU.slice(cd+1):UU}bo&&+UU===0&&(bo=!1);jq=(bo?Bt==="("?Bt:"-":Bt==="-"||Bt==="("?"":Bt)+jq;au=(U_==="s"?U7h[8+QSf/3]:"")+au+(bo&&Bt==="("?")":"");if(q1)for(bo=-1,
cd=UU.length;++bo<cd;)if(Od=UU.charCodeAt(bo),48>Od||Od>57){au=(Od===46?Wa+UU.slice(bo+1):UU.slice(bo))+au;UU=UU.slice(0,bo);break}}lB&&!Ru&&(UU=l(UU,Infinity));Od=jq.length+UU.length+au.length;bo=Od<RN?Array(RN-Od+1).join(Ha):"";lB&&Ru&&(UU=l(bo+UU,bo.length?RN-au.length:Infinity),bo="");switch(O9){case "<":UU=jq+UU+au+bo;break;case "=":UU=jq+bo+UU+au;break;case "^":UU=bo.slice(0,Od=bo.length>>1)+jq+UU+au+bo.slice(Od);break;default:UU=bo+jq+UU+au}return Ju(UU)}
GJ=n1a(GJ);var Ha=GJ.fill,O9=GJ.align,Bt=GJ.sign,U6=GJ.symbol,Ru=GJ.zero,RN=GJ.width,lB=GJ.comma,bB=GJ.precision,iX=GJ.trim,U_=GJ.type;U_==="n"?(lB=!0,U_="g"):k8L[U_]||(bB==null&&(bB=12),iX=!0,U_="g");if(Ru||Ha==="0"&&O9==="=")Ru=!0,Ha="0",O9="=";var Kb=U6==="$"?y[0]:U6==="#"&&/[boxX]/.test(U_)?"0"+U_.toLowerCase():"",cL=U6==="$"?y[1]:/[%p]/.test(U_)?ba:"",Q2=k8L[U_],q1=/[defgprs%]/.test(U_);bB=bB==null?6:/[gprs]/.test(U_)?Math.max(1,Math.min(21,bB)):Math.max(0,Math.min(20,bB));VX.toString=function(){return GJ+
""};
return VX}
var l=L.grouping&&L.thousands?flB(L.grouping,L.thousands):AnJ,y=L.currency,Wa=L.decimal,Ju=L.numerals?gQd(L.numerals):AnJ,ba=L.percent||"%";return{format:D,formatPrefix:function(GJ,VX){var Ha=D((GJ=n1a(GJ),GJ.type="f",GJ));GJ=Math.max(-8,Math.min(8,Math.floor(EQX(VX)/3)))*3;var O9=Math.pow(10,-GJ),Bt=U7h[8+GJ/3];return function(U6){return Ha(O9*U6)+Bt}}}}
function Zp(){this.reset()}
function MB6(L,D,l){var y=L.s=D+l,Wa=y-D;L.t=D-(y-Wa)+(l-Wa)}
function Rfh(L){return L>1?th:L<-1?-th:Math.asin(L)}
function G2I(){}
function ynd(L){var D=L[0];L=L[1];var l=Ah(L);return[l*Ah(D),l*aR(D),aR(L)]}
function NpJ(L,D){return[L[1]*D[2]-L[2]*D[1],L[2]*D[0]-L[0]*D[2],L[0]*D[1]-L[1]*D[0]]}
function HDi(L){var D=xbX(L[0]*L[0]+L[1]*L[1]+L[2]*L[2]);L[0]/=D;L[1]/=D;L[2]/=D}
function hkc(){var L=[],D;return{point:function(l,y){D.push([l,y])},
lineStart:function(){L.push(D=[])},
lineEnd:G2I,rejoin:function(){L.length>1&&L.push(L.pop().concat(L.shift()))},
result:function(){var l=L;L=[];D=null;return l}}}
function bJX(L,D,l,y){this.x=L;this.z=D;this.o=l;this.e=y;this.v=!1;this.n=this.p=null}
function vQu(L,D,l,y,Wa){var Ju=[],ba=[];L.forEach(function(Bt){if(!((U6=Bt.length-1)<=0)){var U6,Ru=Bt[0],RN=Bt[U6],lB=Ru;if(us(lB[0]-RN[0])<1E-6&&us(lB[1]-RN[1])<1E-6){Wa.lineStart();for(GJ=0;GJ<U6;++GJ)Wa.point((Ru=Bt[GJ])[0],Ru[1]);Wa.lineEnd()}else Ju.push(U6=new bJX(Ru,Bt,null,!0)),ba.push(U6.o=new bJX(Ru,null,U6,!1)),Ju.push(U6=new bJX(RN,Bt,null,!1)),ba.push(U6.o=new bJX(RN,null,U6,!0))}});
if(Ju.length){ba.sort(D);VBJ(Ju);VBJ(ba);var GJ=0;for(L=ba.length;GJ<L;++GJ)ba[GJ].e=l=!l;l=Ju[0];for(var VX;;){for(var Ha=l,O9=!0;Ha.v;)if((Ha=Ha.n)===l)return;D=Ha.z;Wa.lineStart();do{Ha.v=Ha.o.v=!0;if(Ha.e){if(O9)for(GJ=0,L=D.length;GJ<L;++GJ)Wa.point((VX=D[GJ])[0],VX[1]);else y(Ha.x,Ha.n.x,1,Wa);Ha=Ha.n}else{if(O9)for(D=Ha.p.z,GJ=D.length-1;GJ>=0;--GJ)Wa.point((VX=D[GJ])[0],VX[1]);else y(Ha.x,Ha.p.x,-1,Wa);Ha=Ha.p}Ha=Ha.o;D=Ha.z;O9=!O9}while(!Ha.v);Wa.lineEnd()}}}
function VBJ(L){if(D=L.length){for(var D,l=0,y=L[0],Wa;++l<D;)y.n=Wa=L[l],Wa.p=y,y=Wa;y.n=Wa=L[0];Wa.p=y}}
function DAI(L){return L.length>1}
function IlB(L,D){return((L=L.x)[0]<0?L[1]-th-1E-6:th-L[1])-((D=D.x)[0]<0?D[1]-th-1E-6:th-D[1])}
function Jn$(){}
function eD3(L){return function(D,l){var y=Ah(D),Wa=Ah(l);y=L(y*Wa);return[y*Wa*aR(D),y*aR(l)]}}
function US(L){return function(D,l){var y=xbX(D*D+l*l),Wa=L(y),Ju=aR(Wa);Wa=Ah(Wa);return[ODf(D*Ju,y*Wa),Rfh(y&&l*Ju/y)]}}
function alo(L){var D=0,l=L.children,y=l&&l.length;if(y)for(;--y>=0;)D+=l[y].value;else D=1;L.value=D}
function YwL(L,D){var l=new Qf(L);L=+L.value&&(l.value=L.value);var y,Wa=[l],Ju,ba,GJ,VX;for(D==null&&(D=L0j);y=Wa.pop();)if(L&&(y.value=+y.data.value),(ba=D(y.data))&&(VX=ba.length))for(y.children=Array(VX),GJ=VX-1;GJ>=0;--GJ)Wa.push(Ju=y.children[GJ]=new Qf(ba[GJ])),Ju.parent=y,Ju.depth=y.depth+1;return l.eachBefore(w9B)}
function L0j(L){return L.children}
function p9o(L){L.data=L.data.data}
function w9B(L){var D=0;do L.height=D;while((L=L.parent)&&L.height<++D)}
function Qf(L){this.data=L;this.depth=this.height=0;this.parent=null}
function qq(L,D,l,y){function Wa(Ju){return L(Ju=new Date(+Ju)),Ju}
Wa.floor=Wa;Wa.ceil=function(Ju){return L(Ju=new Date(Ju-1)),D(Ju,1),L(Ju),Ju};
Wa.round=function(Ju){var ba=Wa(Ju),GJ=Wa.ceil(Ju);return Ju-ba<GJ-Ju?ba:GJ};
Wa.offset=function(Ju,ba){return D(Ju=new Date(+Ju),ba==null?1:Math.floor(ba)),Ju};
Wa.range=function(Ju,ba,GJ){var VX=[],Ha;Ju=Wa.ceil(Ju);GJ=GJ==null?1:Math.floor(GJ);if(!(Ju<ba&&GJ>0))return VX;do VX.push(Ha=new Date(+Ju)),D(Ju,GJ),L(Ju);while(Ha<Ju&&Ju<ba);return VX};
Wa.filter=function(Ju){return qq(function(ba){if(ba>=ba)for(;L(ba),!Ju(ba);)ba.setTime(ba-1)},function(ba,GJ){if(ba>=ba)if(GJ<0)for(;++GJ<=0;)for(;D(ba,-1),!Ju(ba););
else for(;--GJ>=0;)for(;D(ba,1),!Ju(ba););})};
l&&(Wa.count=function(Ju,ba){Bp8.setTime(+Ju);cnY.setTime(+ba);L(Bp8);L(cnY);return Math.floor(l(Bp8,cnY))},Wa.every=function(Ju){Ju=Math.floor(Ju);
return isFinite(Ju)&&Ju>0?Ju>1?Wa.filter(y?function(ba){return y(ba)%Ju===0}:function(ba){return Wa.count(0,ba)%Ju===0}):Wa:null});
return Wa}
function w5(L){return qq(function(D){D.setDate(D.getDate()-(D.getDay()+7-L)%7);D.setHours(0,0,0,0)},function(D,l){D.setDate(D.getDate()+l*7)},function(D,l){return(l-D-(l.getTimezoneOffset()-D.getTimezoneOffset())*6E4)/6048E5})}
function pm(L){return qq(function(D){D.setUTCDate(D.getUTCDate()-(D.getUTCDay()+7-L)%7);D.setUTCHours(0,0,0,0)},function(D,l){D.setUTCDate(D.getUTCDate()+l*7)},function(D,l){return(l-D)/6048E5})}
function F0X(L){if(0<=L.y&&L.y<100){var D=new Date(-1,L.m,L.d,L.H,L.M,L.S,L.L);D.setFullYear(L.y);return D}return new Date(L.y,L.m,L.d,L.H,L.M,L.S,L.L)}
function TK9(L){if(0<=L.y&&L.y<100){var D=new Date(Date.UTC(-1,L.m,L.d,L.H,L.M,L.S,L.L));D.setUTCFullYear(L.y);return D}return new Date(Date.UTC(L.y,L.m,L.d,L.H,L.M,L.S,L.L))}
function kz(L){return{y:L,m:0,d:1,H:0,M:0,S:0,L:0}}
function sL1(L){function D(au,cd){return function(Od){var bo=[],Ax=-1,Ef=0,od=au.length,CE,vY;for(Od instanceof Date||(Od=new Date(+Od));++Ax<od;)if(au.charCodeAt(Ax)===37){bo.push(au.slice(Ef,Ax));(Ef=Swi[CE=au.charAt(++Ax)])!=null?CE=au.charAt(++Ax):Ef=CE==="e"?" ":"0";if(vY=cd[CE])CE=vY(Od,Ef);bo.push(CE);Ef=Ax+1}bo.push(au.slice(Ef,Ax));return bo.join("")}}
function l(au,cd){return function(Od){var bo=kz(1900);if(y(bo,au,Od,0)!=Od.length)return null;if("Q"in bo)return new Date(bo.Q);"p"in bo&&(bo.H=bo.H%12+bo.p*12);if("V"in bo){if(bo.V<1||bo.V>53)return null;"w"in bo||(bo.w=1);if("Z"in bo){Od=TK9(kz(bo.y));var Ax=Od.getUTCDay();Od=Ax>4||Ax===0?CrJ.ceil(Od):CrJ(Od);Od=POu.offset(Od,(bo.V-1)*7);bo.y=Od.getUTCFullYear();bo.m=Od.getUTCMonth();bo.d=Od.getUTCDate()+(bo.w+6)%7}else Od=cd(kz(bo.y)),Ax=Od.getDay(),Od=Ax>4||Ax===0?qmX.ceil(Od):qmX(Od),Od=uZ3.offset(Od,
(bo.V-1)*7),bo.y=Od.getFullYear(),bo.m=Od.getMonth(),bo.d=Od.getDate()+(bo.w+6)%7}else if("W"in bo||"U"in bo)"w"in bo||(bo.w="u"in bo?bo.u%7:"W"in bo?1:0),Ax="Z"in bo?TK9(kz(bo.y)).getUTCDay():cd(kz(bo.y)).getDay(),bo.m=0,bo.d="W"in bo?(bo.w+6)%7+bo.W*7-(Ax+5)%7:bo.w+bo.U*7-(Ax+6)%7;return"Z"in bo?(bo.H+=bo.Z/100|0,bo.M+=bo.Z%100,TK9(bo)):cd(bo)}}
function y(au,cd,Od,bo){for(var Ax=0,Ef=cd.length,od=Od.length,CE;Ax<Ef;){if(bo>=od)return-1;CE=cd.charCodeAt(Ax++);if(CE===37){if(CE=cd.charAt(Ax++),CE=jq[CE in Swi?cd.charAt(Ax++):CE],!CE||(bo=CE(au,Od,bo))<0)return-1}else if(CE!=Od.charCodeAt(bo++))return-1}return bo}
var Wa=L.dateTime,Ju=L.date,ba=L.time,GJ=L.periods,VX=L.days,Ha=L.shortDays,O9=L.months,Bt=L.shortMonths,U6=M6(GJ),Ru=yf(GJ),RN=M6(VX),lB=yf(VX),bB=M6(Ha),iX=yf(Ha),U_=M6(O9),Kb=yf(O9),cL=M6(Bt),Q2=yf(Bt),q1={a:function(au){return Ha[au.getDay()]},
A:function(au){return VX[au.getDay()]},
b:function(au){return Bt[au.getMonth()]},
B:function(au){return O9[au.getMonth()]},
c:null,d:Wa6,e:Wa6,f:dAY,H:llZ,I:X9_,j:ZXY,L:zS_,m:iX5,M:oQc,p:function(au){return GJ[+(au.getHours()>=12)]},
Q:m$h,s:np_,S:tmX,u:A_Z,U:UAY,V:QLj,w:k2d,W:Mmu,x:null,X:null,y:y_Z,Y:NIB,Z:HXc,"%":j8_},UU={a:function(au){return Ha[au.getUTCDay()]},
A:function(au){return VX[au.getUTCDay()]},
b:function(au){return Bt[au.getUTCMonth()]},
B:function(au){return O9[au.getUTCMonth()]},
c:null,d:Jf3,e:Jf3,f:Vm1,H:ek1,I:OXc,j:YxZ,L:BDJ,m:SxI,M:PGo,p:function(au){return GJ[+(au.getUTCHours()>=12)]},
Q:m$h,s:np_,S:u$Z,u:WJ5,U:zzj,V:m46,w:nMd,W:ji_,x:null,X:null,y:JyI,Y:Byj,Z:cy6,"%":j8_},jq={a:function(au,cd,Od){return(cd=bB.exec(cd.slice(Od)))?(au.w=iX[cd[0].toLowerCase()],Od+cd[0].length):-1},
A:function(au,cd,Od){return(cd=RN.exec(cd.slice(Od)))?(au.w=lB[cd[0].toLowerCase()],Od+cd[0].length):-1},
b:function(au,cd,Od){return(cd=cL.exec(cd.slice(Od)))?(au.m=Q2[cd[0].toLowerCase()],Od+cd[0].length):-1},
B:function(au,cd,Od){return(cd=U_.exec(cd.slice(Od)))?(au.m=Kb[cd[0].toLowerCase()],Od+cd[0].length):-1},
c:function(au,cd,Od){return y(au,Wa,cd,Od)},
d:cfs,e:cfs,f:CG1,H:COJ,I:COJ,j:qxY,L:Rzd,m:x4B,M:bl6,p:function(au,cd,Od){return(cd=U6.exec(cd.slice(Od)))?(au.p=Ru[cd[0].toLowerCase()],Od+cd[0].length):-1},
Q:Tyd,s:KJo,S:EMX,u:fjY,U:gMo,V:$4I,w:ryu,W:GjI,x:function(au,cd,Od){return y(au,Ju,cd,Od)},
X:function(au,cd,Od){return y(au,ba,cd,Od)},
y:hzB,Y:vM5,Z:D4j,"%":Ijj};q1.x=D(Ju,q1);q1.X=D(ba,q1);q1.c=D(Wa,q1);UU.x=D(Ju,UU);UU.X=D(ba,UU);UU.c=D(Wa,UU);return{format:function(au){var cd=D(au,q1);cd.toString=function(){return au};
return cd},
parse:function(au){var cd=l(au,F0X);cd.toString=function(){return au};
return cd},
utcFormat:function(au){var cd=D(au,UU);cd.toString=function(){return au};
return cd},
utcParse:function(au){var cd=l(au,TK9);cd.toString=function(){return au};
return cd}}}
function xd(L,D,l){var y=L<0?"-":"";L=(y?-L:L)+"";var Wa=L.length;return y+(Wa<l?Array(l-Wa+1).join(D)+L:L)}
function ajX(L){return L.replace(LJX,"\\$&")}
function M6(L){return new RegExp("^(?:"+L.map(ajX).join("|")+")","i")}
function yf(L){for(var D={},l=-1,y=L.length;++l<y;)D[L[l].toLowerCase()]=l;return D}
function ryu(L,D,l){return(D=EV.exec(D.slice(l,l+1)))?(L.w=+D[0],l+D[0].length):-1}
function fjY(L,D,l){return(D=EV.exec(D.slice(l,l+1)))?(L.u=+D[0],l+D[0].length):-1}
function gMo(L,D,l){return(D=EV.exec(D.slice(l,l+2)))?(L.U=+D[0],l+D[0].length):-1}
function $4I(L,D,l){return(D=EV.exec(D.slice(l,l+2)))?(L.V=+D[0],l+D[0].length):-1}
function GjI(L,D,l){return(D=EV.exec(D.slice(l,l+2)))?(L.W=+D[0],l+D[0].length):-1}
function vM5(L,D,l){return(D=EV.exec(D.slice(l,l+4)))?(L.y=+D[0],l+D[0].length):-1}
function hzB(L,D,l){return(D=EV.exec(D.slice(l,l+2)))?(L.y=+D[0]+(+D[0]>68?1900:2E3),l+D[0].length):-1}
function D4j(L,D,l){return(D=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(D.slice(l,l+6)))?(L.Z=D[1]?0:-(D[2]+(D[3]||"00")),l+D[0].length):-1}
function x4B(L,D,l){return(D=EV.exec(D.slice(l,l+2)))?(L.m=D[0]-1,l+D[0].length):-1}
function cfs(L,D,l){return(D=EV.exec(D.slice(l,l+2)))?(L.d=+D[0],l+D[0].length):-1}
function qxY(L,D,l){return(D=EV.exec(D.slice(l,l+3)))?(L.m=0,L.d=+D[0],l+D[0].length):-1}
function COJ(L,D,l){return(D=EV.exec(D.slice(l,l+2)))?(L.H=+D[0],l+D[0].length):-1}
function bl6(L,D,l){return(D=EV.exec(D.slice(l,l+2)))?(L.M=+D[0],l+D[0].length):-1}
function EMX(L,D,l){return(D=EV.exec(D.slice(l,l+2)))?(L.S=+D[0],l+D[0].length):-1}
function Rzd(L,D,l){return(D=EV.exec(D.slice(l,l+3)))?(L.L=+D[0],l+D[0].length):-1}
function CG1(L,D,l){return(D=EV.exec(D.slice(l,l+6)))?(L.L=Math.floor(D[0]/1E3),l+D[0].length):-1}
function Ijj(L,D,l){return(L=wyY.exec(D.slice(l,l+1)))?l+L[0].length:-1}
function Tyd(L,D,l){return(D=EV.exec(D.slice(l)))?(L.Q=+D[0],l+D[0].length):-1}
function KJo(L,D,l){return(D=EV.exec(D.slice(l)))?(L.Q=+D[0]*1E3,l+D[0].length):-1}
function Wa6(L,D){return xd(L.getDate(),D,2)}
function llZ(L,D){return xd(L.getHours(),D,2)}
function X9_(L,D){return xd(L.getHours()%12||12,D,2)}
function ZXY(L,D){return xd(1+uZ3.count(PC(L),L),D,3)}
function zS_(L,D){return xd(L.getMilliseconds(),D,3)}
function dAY(L,D){return zS_(L,D)+"000"}
function iX5(L,D){return xd(L.getMonth()+1,D,2)}
function oQc(L,D){return xd(L.getMinutes(),D,2)}
function tmX(L,D){return xd(L.getSeconds(),D,2)}
function A_Z(L){L=L.getDay();return L===0?7:L}
function UAY(L,D){return xd(py1.count(PC(L),L),D,2)}
function QLj(L,D){var l=L.getDay();L=l>=4||l===0?RDX(L):RDX.ceil(L);return xd(RDX.count(PC(L),L)+(PC(L).getDay()===4),D,2)}
function k2d(L){return L.getDay()}
function Mmu(L,D){return xd(qmX.count(PC(L),L),D,2)}
function y_Z(L,D){return xd(L.getFullYear()%100,D,2)}
function NIB(L,D){return xd(L.getFullYear()%1E4,D,4)}
function HXc(L){L=L.getTimezoneOffset();return(L>0?"-":(L*=-1,"+"))+xd(L/60|0,"0",2)+xd(L%60,"0",2)}
function Jf3(L,D){return xd(L.getUTCDate(),D,2)}
function ek1(L,D){return xd(L.getUTCHours(),D,2)}
function OXc(L,D){return xd(L.getUTCHours()%12||12,D,2)}
function YxZ(L,D){return xd(1+POu.count(uz(L),L),D,3)}
function BDJ(L,D){return xd(L.getUTCMilliseconds(),D,3)}
function Vm1(L,D){return BDJ(L,D)+"000"}
function SxI(L,D){return xd(L.getUTCMonth()+1,D,2)}
function PGo(L,D){return xd(L.getUTCMinutes(),D,2)}
function u$Z(L,D){return xd(L.getUTCSeconds(),D,2)}
function WJ5(L){L=L.getUTCDay();return L===0?7:L}
function zzj(L,D){return xd(FJd.count(uz(L),L),D,2)}
function m46(L,D){var l=L.getUTCDay();L=l>=4||l===0?x78(L):x78.ceil(L);return xd(x78.count(uz(L),L)+(uz(L).getUTCDay()===4),D,2)}
function nMd(L){return L.getUTCDay()}
function ji_(L,D){return xd(CrJ.count(uz(L),L),D,2)}
function JyI(L,D){return xd(L.getUTCFullYear()%100,D,2)}
function Byj(L,D){return xd(L.getUTCFullYear()%1E4,D,4)}
function cy6(){return"+0000"}
function j8_(){return"%"}
function m$h(L){return+L}
function np_(L){return Math.floor(+L/1E3)}
function u0(L){for(var D=L.length/6|0,l=Array(D),y=0;y<D;)l[y]="#"+L.slice(y*6,++y*6);return l}
function Uu(L){return siZ(L[L.length-1])}
function K2K(L){var D=L.length;return function(l){return L[Math.max(0,Math.min(D-1,Math.floor(l*D)))]}}
function qwu(L){this._context=L}
function RSs(L){this._curve=L}
function x$t(L,D,l){var y=L._x1-L._x0;D-=L._x1;var Wa=(L._y1-L._y0)/(y||D<0&&-0);L=(l-L._y1)/(D||y<0&&-0);return((Wa<0?-1:1)+(L<0?-1:1))*Math.min(Math.abs(Wa),Math.abs(L),.5*Math.abs((Wa*D+L*y)/(y+D)))||0}
function bPh(L,D){var l=L._x1-L._x0;return l?(3*(L._y1-L._y0)/l-D)/2:D}
function bDh(L,D,l){var y=L._x0,Wa=L._x1,Ju=L._y1,ba=(Wa-y)/3;L._context.bezierCurveTo(y+ba,L._y0+ba*D,Wa-ba,Ju-ba*l,Wa,Ju)}
function TpJ(L){this._context=L}
function TDs(L){this._context=L}
function N6(L,D,l){this.k=L;this.x=D;this.y=l}
(function(L){L.length===1&&(L=S(L));return{left:function(D,l,y,Wa){y==null&&(y=0);Wa==null&&(Wa=D.length);for(;y<Wa;){var Ju=y+Wa>>>1;L(D[Ju],l)<0?y=Ju+1:Wa=Ju}return y},
right:function(D,l,y,Wa){y==null&&(y=0);Wa==null&&(Wa=D.length);for(;y<Wa;){var Ju=y+Wa>>>1;L(D[Ju],l)>0?Wa=Ju:y=Ju+1}return y}}})(Y);
var Dio={value:function(){}};
u.prototype=P.prototype={constructor:u,on:function(L,D){var l=this._,y=W(L+"",l),Wa,Ju=-1,ba=y.length;if(arguments.length<2)for(;++Ju<ba;){var GJ;if(GJ=Wa=(L=y[Ju]).type){a:{GJ=l[Wa];for(var VX=0,Ha=GJ.length;VX<Ha;++VX)if((Wa=GJ[VX]).name===L.name){Wa=Wa.value;break a}Wa=void 0}GJ=Wa}if(GJ)return Wa}else{if(D!=null&&typeof D!=="function")throw Error("ye`"+D);for(;++Ju<ba;)if(Wa=(L=y[Ju]).type)l[Wa]=m(l[Wa],L.name,D);else if(D==null)for(Wa in l)l[Wa]=m(l[Wa],L.name,null);return this}},
copy:function(){var L={},D=this._,l;for(l in D)L[l]=D[l].slice();return new u(L)},
call:function(L,D){if((Wa=arguments.length-2)>0)for(var l=Array(Wa),y=0,Wa,Ju;y<Wa;++y)l[y]=arguments[y+2];if(!this._.hasOwnProperty(L))throw Error("se`"+L);Ju=this._[L];y=0;for(Wa=Ju.length;y<Wa;++y)Ju[y].value.apply(D,l)},
apply:function(L,D,l){if(!this._.hasOwnProperty(L))throw Error("se`"+L);L=this._[L];for(var y=0,Wa=L.length;y<Wa;++y)L[y].value.apply(D,l)}};
var of={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/"},Ka_=function(L){return function(){return this.matches(L)}};
if(typeof document!=="undefined"){var HI=document.documentElement;if(!HI.matches){var d4Y=HI.webkitMatchesSelector||HI.msMatchesSelector||HI.mozMatchesSelector||HI.oMatchesSelector;Ka_=function(L){return function(){return d4Y.call(this,L)}}}}var EpU=Ka_;
G.prototype={constructor:G,appendChild:function(L){return this._parent.insertBefore(L,this._next)},
insertBefore:function(L,D){return this._parent.insertBefore(L,D)},
querySelector:function(L){return this._parent.querySelector(L)},
querySelectorAll:function(L){return this._parent.querySelectorAll(L)}};
var $7L={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||($7L={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ipu=[null];hm.prototype=Iu.prototype={constructor:hm,select:function(L){typeof L!=="function"&&(L=T(L));for(var D=this._groups,l=D.length,y=Array(l),Wa=0;Wa<l;++Wa)for(var Ju=D[Wa],ba=Ju.length,GJ=y[Wa]=Array(ba),VX,Ha,O9=0;O9<ba;++O9)(VX=Ju[O9])&&(Ha=L.call(VX,VX.__data__,O9,Ju))&&("__data__"in VX&&(Ha.__data__=VX.__data__),GJ[O9]=Ha);return new hm(y,this._parents)},
filter:function(L){typeof L!=="function"&&(L=EpU(L));for(var D=this._groups,l=D.length,y=Array(l),Wa=0;Wa<l;++Wa)for(var Ju=D[Wa],ba=Ju.length,GJ=y[Wa]=[],VX,Ha=0;Ha<ba;++Ha)(VX=Ju[Ha])&&L.call(VX,VX.__data__,Ha,Ju)&&GJ.push(VX);return new hm(y,this._parents)},
data:function(L,D){if(!L)return Ru=Array(this.size()),Ha=-1,this.each(function(U_){Ru[++Ha]=U_}),Ru;
var l=D?w:a,y=this._parents,Wa=this._groups;typeof L!=="function"&&(L=v(L));for(var Ju=Wa.length,ba=Array(Ju),GJ=Array(Ju),VX=Array(Ju),Ha=0;Ha<Ju;++Ha){var O9=y[Ha],Bt=Wa[Ha],U6=Bt.length,Ru=L.call(O9,O9&&O9.__data__,Ha,y),RN=Ru.length,lB=GJ[Ha]=Array(RN),bB=ba[Ha]=Array(RN);U6=VX[Ha]=Array(U6);l(O9,Bt,lB,bB,U6,Ru,D);Bt=O9=0;for(var iX;O9<RN;++O9)if(U6=lB[O9]){for(O9>=Bt&&(Bt=O9+1);!(iX=bB[Bt])&&++Bt<RN;);U6._next=iX||null}}ba=new hm(ba,y);ba._enter=GJ;ba._exit=VX;return ba},
exit:function(){return new hm(this._exit||this._groups.map(K),this._parents)},
merge:function(L){var D=this._groups;L=L._groups;for(var l=D.length,y=Math.min(l,L.length),Wa=Array(l),Ju=0;Ju<y;++Ju)for(var ba=D[Ju],GJ=L[Ju],VX=ba.length,Ha=Wa[Ju]=Array(VX),O9,Bt=0;Bt<VX;++Bt)if(O9=ba[Bt]||GJ[Bt])Ha[Bt]=O9;for(;Ju<l;++Ju)Wa[Ju]=D[Ju];return new hm(Wa,this._parents)},
order:function(){for(var L=this._groups,D=-1,l=L.length;++D<l;)for(var y=L[D],Wa=y.length-1,Ju=y[Wa],ba;--Wa>=0;)if(ba=y[Wa])Ju&&Ju!==ba.nextSibling&&Ju.parentNode.insertBefore(ba,Ju),Ju=ba;return this},
sort:function(L){function D(Bt,U6){return Bt&&U6?L(Bt.__data__,U6.__data__):!Bt-!U6}
L||(L=F);for(var l=this._groups,y=l.length,Wa=Array(y),Ju=0;Ju<y;++Ju){for(var ba=l[Ju],GJ=ba.length,VX=Wa[Ju]=Array(GJ),Ha,O9=0;O9<GJ;++O9)if(Ha=ba[O9])VX[O9]=Ha;VX.sort(D)}return(new hm(Wa,this._parents)).order()},
call:function(){var L=arguments[0];arguments[0]=this;L.apply(null,arguments);return this},
nodes:function(){var L=Array(this.size()),D=-1;this.each(function(){L[++D]=this});
return L},
node:function(){for(var L=this._groups,D=0,l=L.length;D<l;++D)for(var y=L[D],Wa=0,Ju=y.length;Wa<Ju;++Wa){var ba=y[Wa];if(ba)return ba}return null},
size:function(){var L=0;this.each(function(){++L});
return L},
empty:function(){return!this.node()},
each:function(L){for(var D=this._groups,l=0,y=D.length;l<y;++l)for(var Wa=D[l],Ju=0,ba=Wa.length,GJ;Ju<ba;++Ju)(GJ=Wa[Ju])&&L.call(GJ,GJ.__data__,Ju,Wa);return this},
attr:function(L,D){var l=J(L);if(arguments.length<2){var y=this.node();return l.local?y.getAttributeNS(l.space,l.local):y.getAttribute(l)}return this.each((D==null?l.local?V:U:typeof D==="function"?l.local?ca:O:l.local?zJ:M)(l,D))},
style:function(L,D,l){return arguments.length>1?this.each((D==null?hu:typeof D==="function"?va:ah)(L,D,l==null?"":l)):yX(this.node(),L)},
property:function(L,D){return arguments.length>1?this.each((D==null?la:typeof D==="function"?U9:w1)(L,D)):this.node()[L]},
text:function(L){return arguments.length?this.each(L==null?nu:(typeof L==="function"?tu:Yc)(L)):this.node().textContent},
html:function(L){return arguments.length?this.each(L==null?$_:(typeof L==="function"?G3:fu)(L)):this.node().innerHTML},
append:function(L){var D=typeof L==="function"?L:x(L);return this.select(function(){return this.appendChild(D.apply(this,arguments))})},
insert:function(L,D){var l=typeof L==="function"?L:x(L),y=D==null?wd:typeof D==="function"?D:T(D);return this.select(function(){return this.insertBefore(l.apply(this,arguments),y.apply(this,arguments)||null)})},
remove:function(){return this.each(Wd)},
clone:function(L){return this.select(L?n8:kE)},
datum:function(L){return arguments.length?this.property("__data__",L):this.node().__data__},
on:function(L,D,l){var y=zc(L+""),Wa=y.length,Ju;if(arguments.length<2){var ba=this.node().__on;if(ba)for(var GJ=0,VX=ba.length,Ha;GJ<VX;++GJ){var O9=0;for(Ha=ba[GJ];O9<Wa;++O9)if((Ju=y[O9]).type===Ha.type&&Ju.name===Ha.name)return Ha.value}}else{ba=D?uo:Ku;l==null&&(l=!1);for(O9=0;O9<Wa;++O9)this.each(ba(y[O9],D,l));return this}},
dispatch:function(L,D){return this.each((typeof D==="function"?Cu:Zf)(L,D))}};
var apo=0;Fi.prototype=function(){return new Fi}.prototype={constructor:Fi,
get:function(L){for(var D=this._;!(D in L);)if(!(L=L.parentNode))return;return L[D]},
set:function(L,D){return L[this._]=D},
remove:function(L){return this._ in L&&delete L[this._]},
toString:function(){return this._}};
var WC=1/.7,LXZ=/^#([0-9a-f]{3})$/,wWB=/^#([0-9a-f]{6})$/,pWX=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),FXc=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),sJY=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),di_=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*\\)$"),
lpc=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),XWB=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*\\)$"),rn6={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};
tj(OE,Tc,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
tj(jX,tF,vd(OE,{brighter:function(L){L=L==null?WC:Math.pow(WC,L);return new jX(this.r*L,this.g*L,this.b*L,this.opacity)},
darker:function(L){L=L==null?.7:Math.pow(.7,L);return new jX(this.r*L,this.g*L,this.b*L,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"#"+XF(this.r)+XF(this.g)+XF(this.b)},
toString:function(){var L=this.opacity;L=isNaN(L)?1:Math.max(0,Math.min(1,L));return(L===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))+(L===1?")":", "+L+")")}}));
tj(V4,Wu,vd(OE,{brighter:function(L){L=L==null?WC:Math.pow(WC,L);return new V4(this.h,this.s,this.l*L,this.opacity)},
darker:function(L){L=L==null?.7:Math.pow(.7,L);return new V4(this.h,this.s,this.l*L,this.opacity)},
rgb:function(){var L=this.h%360+(this.h<0)*360,D=this.l,l=D+(D<.5?D:1-D)*(isNaN(L)||isNaN(this.s)?0:this.s);D=2*D-l;return new jX(y3(L>=240?L-240:L+120,D,l),y3(L,D,l),y3(L<120?L+240:L-120,D,l),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 G8i=Math.PI/180,D7L=180/Math.PI,v1h=4/29,Yj=6/29,hDs=3*Yj*Yj,ZjY=Yj*Yj*Yj;tj(E9,function(L,D,l,y){return arguments.length===1?W_(L):new E9(L,D,l,y==null?1:y)},vd(OE,{brighter:function(L){return new E9(this.l+18*(L==null?1:L),this.a,this.b,this.opacity)},
darker:function(L){return new E9(this.l-18*(L==null?1:L),this.a,this.b,this.opacity)},
rgb:function(){var L=(this.l+16)/116,D=isNaN(this.a)?L:L+this.a/500,l=isNaN(this.b)?L:L-this.b/200;D=.96422*ia(D);L=1*ia(L);l=.82521*ia(l);return new jX(Rs(3.1338561*D-1.6168667*L-.4906146*l),Rs(-.9787684*D+1.9161415*L+.033454*l),Rs(.0719453*D-.2289914*L+1.4052427*l),this.opacity)}}));
tj(T3,c6,vd(OE,{brighter:function(L){return new T3(this.h,this.c,this.l+18*(L==null?1:L),this.opacity)},
darker:function(L){return new T3(this.h,this.c,this.l-18*(L==null?1:L),this.opacity)},
rgb:function(){return W_(this).rgb()}}));
var IWs=1.78277*-.29227-.1347134789;tj(xc,x_,vd(OE,{brighter:function(L){L=L==null?WC:Math.pow(WC,L);return new xc(this.h,this.s,this.l*L,this.opacity)},
darker:function(L){L=L==null?.7:Math.pow(.7,L);return new xc(this.h,this.s,this.l*L,this.opacity)},
rgb:function(){var L=isNaN(this.h)?0:(this.h+120)*G8i,D=+this.l,l=isNaN(this.s)?0:this.s*D*(1-D),y=Math.cos(L);L=Math.sin(L);return new jX(255*(D+l*(-.14861*y+1.78277*L)),255*(D+l*(-.29227*y+-.90649*L)),255*(D+1.97294*y*l),this.opacity)}}));
var Flf=function l(D){function y(Ju,ba){var GJ=Wa((Ju=tF(Ju)).r,(ba=tF(ba)).r),VX=Wa(Ju.g,ba.g),Ha=Wa(Ju.b,ba.b),O9=zZ(Ju.opacity,ba.opacity);return function(Bt){Ju.r=GJ(Bt);Ju.g=VX(Bt);Ju.b=Ha(Bt);Ju.opacity=O9(Bt);return Ju+""}}
var Wa=qg(D);y.gamma=l;return y}(1),siZ=L6(function(D){var l=D.length-1;
return function(y){var Wa=y<=0?y=0:y>=1?(y=1,l-1):Math.floor(y*l),Ju=D[Wa],ba=D[Wa+1];return kc((y-Wa/l)*l,Wa>0?D[Wa-1]:2*Ju-ba,Ju,ba,Wa<l-1?D[Wa+2]:2*ba-Ju)}});
L6(function(D){var l=D.length;return function(y){var Wa=Math.floor(((y%=1)<0?++y:y)*l);return kc((y-Wa/l)*l,D[(Wa+l-1)%l],D[Wa%l],D[(Wa+1)%l],D[(Wa+2)%l])}});
var e7J=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ora=new RegExp(e7J.source,"g"),aWd=180/Math.PI,Klu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Vf,E1X,fPU,Edu,ljY=Pz(function(D){if(D==="none")return Klu;Vf||(Vf=document.createElement("DIV"),E1X=document.documentElement,fPU=document.defaultView);Vf.style.transform=D;D=fPU.getComputedStyle(E1X.appendChild(Vf),null).getPropertyValue("transform");E1X.removeChild(Vf);D=D.slice(7,-1).split(",");return RD(+D[0],+D[1],+D[2],+D[3],
+D[4],+D[5])},"px, ","px)","deg)"),Xy_=Pz(function(D){if(D==null)return Klu;
Edu||(Edu=document.createElementNS("http://www.w3.org/2000/svg","g"));Edu.setAttribute("transform",D);if(!(D=Edu.transform.baseVal.consolidate()))return Klu;D=D.matrix;return RD(D.a,D.b,D.c,D.d,D.e,D.f)},", ",")",")");
IN(pS);IN(zZ);Kj(pS);Kj(zZ);EM(pS);var fWh=EM(zZ),Sx=0,oC=0,AS=0,BKh,tS,JxJ=0,ao=0,jIX=0,i8=typeof performance==="object"&&performance.now?performance:Date,Ll_=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(D){setTimeout(D,17)};
R3.prototype=to.prototype={constructor:R3,restart:function(D,l,y){if(typeof D!=="function")throw new TypeError("ze");y=(y==null?qQ():+y)+(l==null?0:+l);this._next||tS===this||(tS?tS._next=this:BKh=this,tS=this);this._call=D;this._time=y;Uc()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Uc())}};
var onZ=P("start","end","interrupt"),t5I=[],Zlj=Iu.prototype.constructor,gp6=0,zO=Iu.prototype;P0.prototype=function(D){return Iu().transition(D)}.prototype={constructor:P0,
select:function(D){var l=this._name,y=this._id;typeof D!=="function"&&(D=T(D));for(var Wa=this._groups,Ju=Wa.length,ba=Array(Ju),GJ=0;GJ<Ju;++GJ)for(var VX=Wa[GJ],Ha=VX.length,O9=ba[GJ]=Array(Ha),Bt,U6,Ru=0;Ru<Ha;++Ru)(Bt=VX[Ru])&&(U6=D.call(Bt,Bt.__data__,Ru,VX))&&("__data__"in Bt&&(U6.__data__=Bt.__data__),O9[Ru]=U6,Ymh(O9[Ru],l,y,Ru,O9,cO(Bt,y)));return new P0(ba,this._parents,l,y)},
filter:function(D){typeof D!=="function"&&(D=EpU(D));for(var l=this._groups,y=l.length,Wa=Array(y),Ju=0;Ju<y;++Ju)for(var ba=l[Ju],GJ=ba.length,VX=Wa[Ju]=[],Ha,O9=0;O9<GJ;++O9)(Ha=ba[O9])&&D.call(Ha,Ha.__data__,O9,ba)&&VX.push(Ha);return new P0(Wa,this._parents,this._name,this._id)},
merge:function(D){if(D._id!==this._id)throw Error();var l=this._groups;D=D._groups;for(var y=l.length,Wa=Math.min(y,D.length),Ju=Array(y),ba=0;ba<Wa;++ba)for(var GJ=l[ba],VX=D[ba],Ha=GJ.length,O9=Ju[ba]=Array(Ha),Bt,U6=0;U6<Ha;++U6)if(Bt=GJ[U6]||VX[U6])O9[U6]=Bt;for(;ba<y;++ba)Ju[ba]=l[ba];return new P0(Ju,this._parents,this._name,this._id)},
selection:function(){return new Zlj(this._groups,this._parents)},
transition:function(){for(var D=this._name,l=this._id,y=++gp6,Wa=this._groups,Ju=Wa.length,ba=0;ba<Ju;++ba)for(var GJ=Wa[ba],VX=GJ.length,Ha,O9=0;O9<VX;++O9)if(Ha=GJ[O9]){var Bt=cO(Ha,l);Ymh(Ha,D,y,O9,GJ,{time:Bt.time+Bt.delay+Bt.duration,delay:0,duration:Bt.duration,ease:Bt.ease})}return new P0(Wa,this._parents,D,y)},
call:zO.call,nodes:zO.nodes,node:zO.node,size:zO.size,empty:zO.empty,each:zO.each,on:function(D,l){var y=this._id;return arguments.length<2?cO(this.node(),y).on.on(D):this.each(zk_(y,D,l))},
attr:function(D,l){var y=J(D),Wa=y==="transform"?Xy_:pYt;return this.attrTween(D,typeof l==="function"?(y.local?Hjj:NVI)(y,Wa,Pru(this,"attr."+D,l)):l==null?(y.local?keo:QJd)(y):(y.local?yv5:M5I)(y,Wa,l+""))},
attrTween:function(D,l){var y="attr."+D;if(arguments.length<2)return(y=this.tween(y))&&y._value;if(l==null)return this.tween(y,null);if(typeof l!=="function")throw Error();var Wa=J(D);return this.tween(y,(Wa.local?V5Y:exo)(Wa,l))},
style:function(D,l,y){var Wa=D==="transform"?ljY:pYt;return l==null?this.styleTween(D,nQd(D,Wa)).on("end.style."+D,jLB(D)):this.styleTween(D,typeof l==="function"?BIB(D,Wa,Pru(this,"style."+D,l)):J_c(D,Wa,l+""),y)},
styleTween:function(D,l,y){var Wa="style."+D;if(arguments.length<2)return(Wa=this.tween(Wa))&&Wa._value;if(l==null)return this.tween(Wa,null);if(typeof l!=="function")throw Error();return this.tween(Wa,c_6(D,l,y==null?"":y))},
text:function(D){return this.tween("text",typeof D==="function"?qgd(Pru(this,"text",D)):CdB(D==null?"":D+""))},
remove:function(){return this.on("end.remove",mA5(this._id))},
tween:function(D,l){var y=this._id;if(arguments.length<2){y=cO(this.node(),y).tween;for(var Wa=0,Ju=y.length,ba;Wa<Ju;++Wa)if((ba=y[Wa]).name===D)return ba.value;return null}return this.each((l==null?AvB:Uid)(y,D,l))},
delay:function(D){var l=this._id;return arguments.length?this.each((typeof D==="function"?Ojj:YgB)(l,D)):cO(this.node(),l).delay},
duration:function(D){var l=this._id;return arguments.length?this.each((typeof D==="function"?Sgc:Pd6)(l,D)):cO(this.node(),l).duration},
ease:function(D){var l=this._id;return arguments.length?this.each(us5(l,D)):cO(this.node(),l).ease}};
var g1f={time:null,delay:0,duration:250,ease:function(D){return((D*=2)<=1?D*D*D:(D-=2)*D*D+2)/2}};
Iu.prototype.transition=function(D){var l;if(D instanceof P0){var y=D._id;D=D._name}else y=++gp6,(l=g1f).time=qQ(),D=D==null?null:D+"";for(var Wa=this._groups,Ju=Wa.length,ba=0;ba<Ju;++ba)for(var GJ=Wa[ba],VX=GJ.length,Ha,O9=0;O9<VX;++O9)if(Ha=GJ[O9]){var Bt=Ha,U6=D,Ru=y,RN=O9,lB=GJ,bB;if(!(bB=l))a:{bB=void 0;for(var iX=y;!(bB=Ha.__transition)||!(bB=bB[iX]);)if(!(Ha=Ha.parentNode)){bB=(g1f.time=qQ(),g1f);break a}}Ymh(Bt,U6,Ru,RN,lB,bB)}return new P0(Wa,this._parents,D,y)};
["e","w"].map(uUU);["n","s"].map(uUU);"n e s w nw ne se sw".split(" ").map(uUU);Wl8.prototype=function(){return new Wl8}.prototype={constructor:Wl8,
moveTo:function(D,l){this._+="M"+(this._x0=this._x1=+D)+","+(this._y0=this._y1=+l)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(D,l){this._+="L"+(this._x1=+D)+","+(this._y1=+l)},
bezierCurveTo:function(D,l,y,Wa,Ju,ba){this._+="C"+ +D+","+ +l+","+ +y+","+ +Wa+","+(this._x1=+Ju)+","+(this._y1=+ba)},
rect:function(D,l,y,Wa){this._+="M"+(this._x0=this._x1=+D)+","+(this._y0=this._y1=+l)+"h"+ +y+"v"+ +Wa+"h"+-y+"Z"},
toString:function(){return this._}};
cxh.prototype=sS6.prototype={constructor:cxh,has:function(D){return" "+D in this},
get:function(D){return this[" "+D]},
set:function(D,l){this[" "+D]=l;return this},
remove:function(D){D=" "+D;return D in this&&delete this[D]},
clear:function(){for(var D in this)D[0]===" "&&delete this[D]},
keys:function(){var D=[],l;for(l in this)l[0]===" "&&D.push(l.slice(1));return D},
values:function(){var D=[],l;for(l in this)l[0]===" "&&D.push(this[l]);return D},
entries:function(){var D=[],l;for(l in this)l[0]===" "&&D.push({key:l.slice(1),value:this[l]});return D},
size:function(){var D=0,l;for(l in this)l[0]===" "&&++D;return D},
empty:function(){for(var D in this)if(D[0]===" ")return!1;return!0},
each:function(D){for(var l in this)l[0]===" "&&D(this[l],l.slice(1),this)}};
var Fz=sS6.prototype;Cya.prototype=function(D,l){var y=new Cya;if(D instanceof Cya)D.each(function(ba){y.add(ba)});
else if(D){var Wa=-1,Ju=D.length;if(l==null)for(;++Wa<Ju;)y.add(D[Wa]);else for(;++Wa<Ju;)y.add(l(D[Wa],Wa,D))}return y}.prototype={constructor:Cya,
has:Fz.has,add:function(D){this[" "+D]=D;return this},
remove:Fz.remove,clear:Fz.clear,values:Fz.keys,size:Fz.size,empty:Fz.empty,each:Fz.each};var XYi={},zDa={},ilj=lWu(",").parse,oMY=lWu("\t").parse;ZDU(ilj);ZDU(oMY);var SD=function(D,l,y){l=new m7h(l==null?TIY:l,y==null?K0Z:y,NaN,NaN,NaN,NaN);return D==null?l:l.addAll(D)}.prototype=m7h.prototype;
SD.copy=function(){var D=new m7h(this._x,this._y,this._x0,this._y0,this._x1,this._y1),l=this._root,y,Wa;if(!l)return D;if(!l.length)return D._root=o1J(l),D;for(y=[{source:l,target:D._root=Array(4)}];l=y.pop();)for(var Ju=0;Ju<4;++Ju)if(Wa=l.source[Ju])Wa.length?y.push({source:Wa,target:l.target[Ju]=Array(4)}):l.target[Ju]=o1J(Wa);return D};
SD.add=function(D){var l=+this._x.call(null,D),y=+this._y.call(null,D);return iDh(this.cover(l,y),l,y,D)};
SD.addAll=function(D){var l,y,Wa=D.length,Ju,ba,GJ=Array(Wa),VX=Array(Wa),Ha=Infinity,O9=Infinity,Bt=-Infinity,U6=-Infinity;for(y=0;y<Wa;++y)isNaN(Ju=+this._x.call(null,l=D[y]))||isNaN(ba=+this._y.call(null,l))||(GJ[y]=Ju,VX[y]=ba,Ju<Ha&&(Ha=Ju),Ju>Bt&&(Bt=Ju),ba<O9&&(O9=ba),ba>U6&&(U6=ba));Bt<Ha&&(Ha=this._x0,Bt=this._x1);U6<O9&&(O9=this._y0,U6=this._y1);this.cover(Ha,O9).cover(Bt,U6);for(y=0;y<Wa;++y)iDh(this,GJ[y],VX[y],D[y]);return this};
SD.cover=function(D,l){if(isNaN(D=+D)||isNaN(l=+l))return this;var y=this._x0,Wa=this._y0,Ju=this._x1,ba=this._y1;if(isNaN(y))Ju=(y=Math.floor(D))+1,ba=(Wa=Math.floor(l))+1;else if(y>D||D>Ju||Wa>l||l>ba){var GJ=Ju-y,VX=this._root,Ha;switch(Ha=(l<(Wa+ba)/2)<<1|D<(y+Ju)/2){case 0:do{var O9=Array(4);O9[Ha]=VX;VX=O9}while(GJ*=2,Ju=y+GJ,ba=Wa+GJ,D>Ju||l>ba);break;case 1:do O9=Array(4),O9[Ha]=VX,VX=O9;while(GJ*=2,y=Ju-GJ,ba=Wa+GJ,y>D||l>ba);break;case 2:do O9=Array(4),O9[Ha]=VX,VX=O9;while(GJ*=2,Ju=y+GJ,
Wa=ba-GJ,D>Ju||Wa>l);break;case 3:do O9=Array(4),O9[Ha]=VX,VX=O9;while(GJ*=2,y=Ju-GJ,Wa=ba-GJ,y>D||Wa>l)}this._root&&this._root.length&&(this._root=VX)}else return this;this._x0=y;this._y0=Wa;this._x1=Ju;this._y1=ba;return this};
SD.data=function(){var D=[];this.visit(function(l){if(!l.length){do D.push(l.data);while(l=l.next)}});
return D};
SD.extent=function(D){return arguments.length?this.cover(+D[0][0],+D[0][1]).cover(+D[1][0],+D[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
SD.find=function(D,l,y){var Wa=this._x0,Ju=this._y0,ba,GJ,VX,Ha,O9=this._x1,Bt=this._y1,U6=[],Ru=this._root,RN;Ru&&U6.push(new YB(Ru,Wa,Ju,O9,Bt));y==null?y=Infinity:(Wa=D-y,Ju=l-y,O9=D+y,Bt=l+y,y*=y);for(;RN=U6.pop();)if(!(!(Ru=RN.node)||(ba=RN.x0)>O9||(GJ=RN.y0)>Bt||(VX=RN.x1)<Wa||(Ha=RN.y1)<Ju))if(Ru.length){RN=(ba+VX)/2;var lB=(GJ+Ha)/2;U6.push(new YB(Ru[3],RN,lB,VX,Ha),new YB(Ru[2],ba,lB,RN,Ha),new YB(Ru[1],RN,GJ,VX,lB),new YB(Ru[0],ba,GJ,RN,lB));if(Ru=(l>=lB)<<1|D>=RN)RN=U6[U6.length-1],U6[U6.length-
1]=U6[U6.length-1-Ru],U6[U6.length-1-Ru]=RN}else if(RN=D-+this._x.call(null,Ru.data),lB=l-+this._y.call(null,Ru.data),RN=RN*RN+lB*lB,RN<y){var bB=Math.sqrt(y=RN);Wa=D-bB;Ju=l-bB;O9=D+bB;Bt=l+bB;bB=Ru.data}return bB};
SD.remove=function(D){if(isNaN(Ha=+this._x.call(null,D))||isNaN(O9=+this._y.call(null,D)))return this;var l,y=this._root,Wa,Ju=this._x0,ba=this._y0,GJ=this._x1,VX=this._y1,Ha,O9,Bt,U6,Ru,RN,lB;if(!y)return this;if(y.length)for(;;){(Ru=Ha>=(Bt=(Ju+GJ)/2))?Ju=Bt:GJ=Bt;(RN=O9>=(U6=(ba+VX)/2))?ba=U6:VX=U6;if(!(l=y,y=y[lB=RN<<1|Ru]))return this;if(!y.length)break;if(l[lB+1&3]||l[lB+2&3]||l[lB+3&3]){var bB=l;var iX=lB}}for(;y.data!==D;)if(!(Wa=y,y=y.next))return this;(D=y.next)&&delete y.next;if(Wa)return D?
Wa.next=D:delete Wa.next,this;if(!l)return this._root=D,this;D?l[lB]=D:delete l[lB];(y=l[0]||l[1]||l[2]||l[3])&&y===(l[3]||l[2]||l[1]||l[0])&&!y.length&&(bB?bB[iX]=y:this._root=y);return this};
SD.removeAll=function(D){for(var l=0,y=D.length;l<y;++l)this.remove(D[l]);return this};
SD.root=function(){return this._root};
SD.size=function(){var D=0;this.visit(function(l){if(!l.length){do++D;while(l=l.next)}});
return D};
SD.visit=function(D){var l=[],y,Wa=this._root,Ju,ba,GJ,VX,Ha;for(Wa&&l.push(new YB(Wa,this._x0,this._y0,this._x1,this._y1));y=l.pop();)if(!D(Wa=y.node,ba=y.x0,GJ=y.y0,VX=y.x1,Ha=y.y1)&&Wa.length){y=(ba+VX)/2;var O9=(GJ+Ha)/2;(Ju=Wa[3])&&l.push(new YB(Ju,y,O9,VX,Ha));(Ju=Wa[2])&&l.push(new YB(Ju,ba,O9,y,Ha));(Ju=Wa[1])&&l.push(new YB(Ju,y,GJ,VX,O9));(Ju=Wa[0])&&l.push(new YB(Ju,ba,GJ,y,O9))}};
SD.visitAfter=function(D){var l=[],y=[],Wa;for(this._root&&l.push(new YB(this._root,this._x0,this._y0,this._x1,this._y1));Wa=l.pop();){var Ju=Wa.node;if(Ju.length){var ba,GJ=Wa.x0,VX=Wa.y0,Ha=Wa.x1,O9=Wa.y1,Bt=(GJ+Ha)/2,U6=(VX+O9)/2;(ba=Ju[0])&&l.push(new YB(ba,GJ,VX,Bt,U6));(ba=Ju[1])&&l.push(new YB(ba,Bt,VX,Ha,U6));(ba=Ju[2])&&l.push(new YB(ba,GJ,U6,Bt,O9));(ba=Ju[3])&&l.push(new YB(ba,Bt,U6,Ha,O9))}y.push(Wa)}for(;Wa=y.pop();)D(Wa.node,Wa.x0,Wa.y0,Wa.x1,Wa.y1);return this};
SD.x=function(D){return arguments.length?(this._x=D,this):this._x};
SD.y=function(D){return arguments.length?(this._y=D,this):this._y};
var $A1=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;n1a.prototype=jSa.prototype;jSa.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 QSf,k8L={"%":function(D,l){return(D*100).toFixed(l)},
b:function(D){return Math.round(D).toString(2)},
c:function(D){return D+""},
d:function(D){return Math.round(D).toString(10)},
e:function(D,l){return D.toExponential(l)},
f:function(D,l){return D.toFixed(l)},
g:function(D,l){return D.toPrecision(l)},
o:function(D){return Math.round(D).toString(8)},
p:function(D,l){return tBd(D*100,l)},
r:tBd,s:function(D,l){var y=quX(D,l);if(!y)return D+"";var Wa=y[0];y=y[1];y=y-(QSf=Math.max(-8,Math.min(8,Math.floor(y/3)))*3)+1;var Ju=Wa.length;return y===Ju?Wa:y>Ju?Wa+Array(y-Ju+1).join("0"):y>0?Wa.slice(0,y)+"."+Wa.slice(y):"0."+Array(1-y).join("0")+quX(D,Math.max(0,l+y-1))[0]},
X:function(D){return Math.round(D).toString(16).toUpperCase()},
x:function(D){return Math.round(D).toString(16)}},U7h="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),tj_;
(function(D){return tj_=r_B(D)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Zp.prototype={constructor:Zp,reset:function(){this.s=this.t=0},
add:function(D){MB6(f6E,D,this.t);MB6(this,f6E.s,this.s);this.s?this.t+=f6E.t:this.s=f6E.t},
valueOf:function(){return this.s}};
var f6E=new Zp,f_=Math.PI,th=f_/2,$$_=f_/4,Ay6=f_*2,$7U=f_/180,us=Math.abs,rn9=Math.atan,ODf=Math.atan2,Ah=Math.cos,aR=Math.sin,xbX=Math.sqrt;new Zp;new Zp;new Zp;var G8E=new Zp;(function(D,l,y,Wa){return function(Ju){function ba(Q2,q1){D(Q2,q1)&&Ju.point(Q2,q1)}
function GJ(Q2,q1){Ru.point(Q2,q1)}
function VX(){cL.point=GJ;Ru.lineStart()}
function Ha(){cL.point=ba;Ru.lineEnd()}
function O9(Q2,q1){Kb.push([Q2,q1]);lB.point(Q2,q1)}
function Bt(){lB.lineStart();Kb=[]}
function U6(){O9(Kb[0][0],Kb[0][1]);lB.lineEnd();var Q2=lB.clean(),q1=RN.result(),UU=q1.length,jq;Kb.pop();iX.push(Kb);Kb=null;if(UU)if(Q2&1){if(UU=q1[0],(q1=UU.length-1)>0){bB||(Ju.polygonStart(),bB=!0);Ju.lineStart();for(Q2=0;Q2<q1;++Q2)Ju.point((jq=UU[Q2])[0],jq[1]);Ju.lineEnd()}}else UU>1&&Q2&2&&q1.push(q1.pop().concat(q1.shift())),U_.push(q1.filter(DAI))}
var Ru=l(Ju),RN=hkc(),lB=l(RN),bB=!1,iX,U_,Kb,cL={point:ba,lineStart:VX,lineEnd:Ha,polygonStart:function(){cL.point=O9;cL.lineStart=Bt;cL.lineEnd=U6;U_=[];iX=[]},
polygonEnd:function(){cL.point=ba;cL.lineStart=VX;cL.lineEnd=Ha;var Q2=U_,q1=Q2.length;var UU=-1;for(var jq=0,au,cd;++UU<q1;)jq+=Q2[UU].length;for(au=Array(jq);--q1>=0;)for(cd=Q2[q1],UU=cd.length;--UU>=0;)au[--jq]=cd[UU];U_=au;Q2=iX;q1=Wa[0];jq=Wa[1];var Od=aR(jq);UU=[aR(q1),-Ah(q1),0];cd=au=0;G8E.reset();Od===1?jq=th+1E-6:Od===-1&&(jq=-th-1E-6);Od=0;for(var bo=Q2.length;Od<bo;++Od)if(Ef=(Ax=Q2[Od]).length){var Ax,Ef,od=Ax[Ef-1],CE=od[0],vY=od[1]/2+$$_,gd8=aR(vY),rff=Ah(vY);for(vY=0;vY<Ef;++vY,CE=
hDf,gd8=GNi,rff=en,od=$ba){var $ba=Ax[vY],hDf=$ba[0];en=$ba[1]/2+$$_;var GNi=aR(en),en=Ah(en),m_=hDf-CE,v1$=m_>=0?1:-1,D7U=v1$*m_,rxY=D7U>f_;gd8*=GNi;G8E.add(ODf(gd8*v1$*aR(D7U),rff*en+gd8*Ah(D7U)));au+=rxY?m_+v1$*Ay6:m_;rxY^CE>=q1^hDf>=q1&&(od=NpJ(ynd(od),ynd($ba)),HDi(od),CE=NpJ(UU,od),HDi(CE),CE=(rxY^m_>=0?-1:1)*Rfh(CE[2]),jq>CE||jq===CE&&(od[0]||od[1]))&&(cd+=rxY^m_>=0?1:-1)}}Q2=(au<-1E-6||au<1E-6&&G8E<-1E-6)^cd&1;U_.length?(bB||(Ju.polygonStart(),bB=!0),vQu(U_,IlB,Q2,y,Ju)):Q2&&(bB||(Ju.polygonStart(),
bB=!0),Ju.lineStart(),y(null,null,1,Ju),Ju.lineEnd());bB&&(Ju.polygonEnd(),bB=!1);U_=iX=null},
sphere:function(){Ju.polygonStart();Ju.lineStart();y(null,null,1,Ju);Ju.lineEnd();Ju.polygonEnd()}};
return cL}})(function(){return!0},function(D){var l=NaN,y=NaN,Wa=NaN,Ju;
return{lineStart:function(){D.lineStart();Ju=1},
point:function(ba,GJ){var VX=ba>0?f_:-f_,Ha=us(ba-l);if(us(Ha-f_)<1E-6)D.point(l,y=(y+GJ)/2>0?th:-th),D.point(Wa,y),D.lineEnd(),D.lineStart(),D.point(VX,y),D.point(ba,y),Ju=0;else if(Wa!==VX&&Ha>=f_){us(l-Wa)<1E-6&&(l-=Wa*1E-6);us(ba-VX)<1E-6&&(ba-=VX*1E-6);Ha=l;var O9=y,Bt=ba,U6,Ru,RN=aR(Ha-Bt);y=us(RN)>1E-6?rn9((aR(O9)*(Ru=Ah(GJ))*aR(Bt)-aR(GJ)*(U6=Ah(O9))*aR(Ha))/(U6*Ru*RN)):(O9+GJ)/2;D.point(Wa,y);D.lineEnd();D.lineStart();D.point(VX,y);Ju=0}D.point(l=ba,y=GJ);Wa=VX},
lineEnd:function(){D.lineEnd();l=y=NaN},
clean:function(){return 2-Ju}}},function(D,l,y,Wa){D==null?(y*=th,Wa.point(-f_,y),Wa.point(0,y),Wa.point(f_,y),Wa.point(f_,0),Wa.point(f_,-y),Wa.point(0,-y),Wa.point(-f_,-y),Wa.point(-f_,0),Wa.point(-f_,y)):us(D[0]-l[0])>1E-6?(D=D[0]<l[0]?f_:-f_,y=y*D/2,Wa.point(-D,y),Wa.point(0,y),Wa.point(D,y)):Wa.point(l[0],l[1])},[-f_,
-th]);new Zp;new Zp;new Zp;new Zp;Jn$.prototype={constructor:Jn$,point:function(D,l){this.stream.point(D,l)},
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()}};
Ah(30*$7U);(function(D){return function(l){var y=new Jn$,Wa;for(Wa in D)y[Wa]=D[Wa];y.stream=l;return y}})({point:function(D,l){this.stream.point(D*$7U,l*$7U)}});
eD3(function(D){return xbX(2/(1+D))}).invert=US(function(D){return 2*Rfh(D/2)});
eD3(function(D){return(D=D>1?0:D<-1?f_:Math.acos(D))&&D/aR(D)}).invert=US(function(D){return D});
xbX(3);US(rn9);US(Rfh);US(function(D){return 2*rn9(D)});
Qf.prototype=YwL.prototype={constructor:Qf,count:function(){return this.eachAfter(alo)},
each:function(D){var l,y=[this],Wa;do{var Ju=y.reverse();for(y=[];l=Ju.pop();)if(D(l),l=l.children){var ba=0;for(Wa=l.length;ba<Wa;++ba)y.push(l[ba])}}while(y.length);return this},
eachAfter:function(D){for(var l,y=[this],Wa=[],Ju,ba;l=y.pop();)if(Wa.push(l),l=l.children)for(Ju=0,ba=l.length;Ju<ba;++Ju)y.push(l[Ju]);for(;l=Wa.pop();)D(l);return this},
eachBefore:function(D){for(var l,y=[this],Wa;l=y.pop();)if(D(l),l=l.children)for(Wa=l.length-1;Wa>=0;--Wa)y.push(l[Wa]);return this},
sum:function(D){return this.eachAfter(function(l){for(var y=+D(l.data)||0,Wa=l.children,Ju=Wa&&Wa.length;--Ju>=0;)y+=Wa[Ju].value;l.value=y})},
sort:function(D){return this.eachBefore(function(l){l.children&&l.children.sort(D)})},
path:function(D){var l=this;var y=l;var Wa=D;if(y!==Wa){var Ju=y.ancestors(),ba=Wa.ancestors(),GJ=null;y=Ju.pop();for(Wa=ba.pop();y===Wa;)GJ=y,y=Ju.pop(),Wa=ba.pop();y=GJ}for(Wa=[l];l!==y;)l=l.parent,Wa.push(l);for(l=Wa.length;D!==y;)Wa.splice(l,0,D),D=D.parent;return Wa},
ancestors:function(){for(var D=this,l=[D];D=D.parent;)l.push(D);return l},
links:function(){var D=this,l=[];D.each(function(y){y!==D&&l.push({source:y.parent,target:y})});
return l},
copy:function(){return YwL(this).eachBefore(p9o)}};
(function(D,l){this._=D;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=l}).prototype=Object.create(Qf.prototype);
var Bp8=new Date,cnY=new Date,hSs=qq(function(){},function(D,l){D.setTime(+D+l)},function(D,l){return l-D});
hSs.every=function(D){D=Math.floor(D);return isFinite(D)&&D>0?D>1?qq(function(l){l.setTime(Math.floor(l/D)*D)},function(l,y){l.setTime(+l+y*D)},function(l,y){return(y-l)/D}):hSs:null};
qq(function(D){D.setTime(Math.floor(D/1E3)*1E3)},function(D,l){D.setTime(+D+l*1E3)},function(D,l){return(l-D)/1E3},function(D){return D.getUTCSeconds()});
qq(function(D){D.setTime(Math.floor(D/6E4)*6E4)},function(D,l){D.setTime(+D+l*6E4)},function(D,l){return(l-D)/6E4},function(D){return D.getMinutes()});
qq(function(D){var l=D.getTimezoneOffset()*6E4%36E5;l<0&&(l+=36E5);D.setTime(Math.floor((+D-l)/36E5)*36E5+l)},function(D,l){D.setTime(+D+l*36E5)},function(D,l){return(l-D)/36E5},function(D){return D.getHours()});
var uZ3=qq(function(D){D.setHours(0,0,0,0)},function(D,l){D.setDate(D.getDate()+l)},function(D,l){return(l-D-(l.getTimezoneOffset()-D.getTimezoneOffset())*6E4)/864E5},function(D){return D.getDate()-1}),py1=w5(0),qmX=w5(1);
w5(2);w5(3);var RDX=w5(4);w5(5);w5(6);qq(function(D){D.setDate(1);D.setHours(0,0,0,0)},function(D,l){D.setMonth(D.getMonth()+l)},function(D,l){return l.getMonth()-D.getMonth()+(l.getFullYear()-D.getFullYear())*12},function(D){return D.getMonth()});
var PC=qq(function(D){D.setMonth(0,1);D.setHours(0,0,0,0)},function(D,l){D.setFullYear(D.getFullYear()+l)},function(D,l){return l.getFullYear()-D.getFullYear()},function(D){return D.getFullYear()});
PC.every=function(D){return isFinite(D=Math.floor(D))&&D>0?qq(function(l){l.setFullYear(Math.floor(l.getFullYear()/D)*D);l.setMonth(0,1);l.setHours(0,0,0,0)},function(l,y){l.setFullYear(l.getFullYear()+y*D)}):null};
qq(function(D){D.setUTCSeconds(0,0)},function(D,l){D.setTime(+D+l*6E4)},function(D,l){return(l-D)/6E4},function(D){return D.getUTCMinutes()});
qq(function(D){D.setUTCMinutes(0,0,0)},function(D,l){D.setTime(+D+l*36E5)},function(D,l){return(l-D)/36E5},function(D){return D.getUTCHours()});
var POu=qq(function(D){D.setUTCHours(0,0,0,0)},function(D,l){D.setUTCDate(D.getUTCDate()+l)},function(D,l){return(l-D)/864E5},function(D){return D.getUTCDate()-1}),FJd=pm(0),CrJ=pm(1);
pm(2);pm(3);var x78=pm(4);pm(5);pm(6);qq(function(D){D.setUTCDate(1);D.setUTCHours(0,0,0,0)},function(D,l){D.setUTCMonth(D.getUTCMonth()+l)},function(D,l){return l.getUTCMonth()-D.getUTCMonth()+(l.getUTCFullYear()-D.getUTCFullYear())*12},function(D){return D.getUTCMonth()});
var uz=qq(function(D){D.setUTCMonth(0,1);D.setUTCHours(0,0,0,0)},function(D,l){D.setUTCFullYear(D.getUTCFullYear()+l)},function(D,l){return l.getUTCFullYear()-D.getUTCFullYear()},function(D){return D.getUTCFullYear()});
uz.every=function(D){return isFinite(D=Math.floor(D))&&D>0?qq(function(l){l.setUTCFullYear(Math.floor(l.getUTCFullYear()/D)*D);l.setUTCMonth(0,1);l.setUTCHours(0,0,0,0)},function(l,y){l.setUTCFullYear(l.getUTCFullYear()+y*D)}):null};
var Swi={"-":"",_:" ",0:"0"},EV=/^\s*\d+/,wyY=/^%/,LJX=/[\\^$*+?|[\]().{}]/g,G6Y;(function(D){G6Y=sL1(D);N8t=G6Y.utcFormat;Hsi=G6Y.utcParse;return G6Y})({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||N8t("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Hsi("%Y-%m-%dT%H:%M:%S.%LZ");u0("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
u0("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");u0("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");u0("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");u0("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");u0("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");u0("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
u0("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");u0("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");u0("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");u0("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");u0("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var U4o=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(u0);Uu(U4o);var Qic=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(u0);Uu(Qic);var kjX=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(u0);Uu(kjX);var Mj6=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(u0);
Uu(Mj6);var yyo=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(u0);Uu(yyo);var NyI=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(u0);Uu(NyI);var Hlu=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(u0);Uu(Hlu);var Vj1=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(u0);Uu(Vj1);var ezd=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(u0);Uu(ezd);var OlX=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(u0);Uu(OlX);var Yj6=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(u0);Uu(Yj6);var Sj_=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(u0);Uu(Sj_);var PiI=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(u0);Uu(PiI);var uyI=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(u0);Uu(uyI);var WIX=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(u0);Uu(WIX);var zOd=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(u0);Uu(zOd);var mdd=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(u0);Uu(mdd);var nqX=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(u0);Uu(nqX);var j7B=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(u0);Uu(j7B);var Jzu=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(u0);Uu(Jzu);var BUZ=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(u0);Uu(BUZ);var czo=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(u0);Uu(czo);var Ci1=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(u0);Uu(Ci1);var qjY=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(u0);Uu(qjY);var ROI=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(u0);Uu(ROI);var xdY=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(u0);Uu(xdY);var bQI=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(u0);Uu(bQI);fWh(x_(300,.5,0),x_(-240,.5,1));fWh(x_(-100,.75,.35),x_(80,1.5,.8));fWh(x_(260,.75,.35),x_(80,1.5,.8));x_();tF();K2K(u0("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
K2K(u0("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
K2K(u0("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
K2K(u0("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
qwu.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(D,l){D=+D;l=+l;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(D,l):this._context.moveTo(D,l);break;case 1:this._point=2;default:this._context.lineTo(D,l)}}};
(function(D){function l(y){return new RSs(D(y))}
l._curve=D;return l})(function(D){return new qwu(D)});
RSs.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(D,l){this._curve.point(l*Math.sin(D),l*-Math.cos(D))}};
TpJ.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:bDh(this,this._t0,bPh(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(D,l){var y=NaN;D=+D;l=+l;if(D!==this._x1||l!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(D,l):this._context.moveTo(D,l);break;case 1:this._point=2;break;case 2:this._point=3;bDh(this,bPh(this,y=x$t(this,D,l)),y);break;default:bDh(this,this._t0,y=x$t(this,D,l))}this._x0=this._x1;this._x1=D;this._y0=this._y1;this._y1=l;this._t0=y}}};
(function(D){this._context=new TDs(D)}.prototype=Object.create(TpJ.prototype)).point=function(D,l){TpJ.prototype.point.call(this,l,D)};
TDs.prototype={moveTo:function(D,l){this._context.moveTo(l,D)},
closePath:function(){this._context.closePath()},
lineTo:function(D,l){this._context.lineTo(l,D)},
bezierCurveTo:function(D,l,y,Wa,Ju,ba){this._context.bezierCurveTo(l,D,Wa,y,ba,Ju)}};
N6.prototype={constructor:N6,scale:function(D){return D===1?this:new N6(this.k*D,this.x,this.y)},
translate:function(D,l){return D===0&l===0?this:new N6(this.k,this.x+this.k*D,this.y+this.k*l)},
apply:function(D){return[D[0]*this.k+this.x,D[1]*this.k+this.y]},
invert:function(D){return[(D[0]-this.x)/this.k,(D[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new N6(1,0,0);xMK=Tc;of.svg=of.svg;of.xhtml=of.xhtml;of.xlink=of.xlink;of.xml=of.xml;of.xmlns=of.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 VC_="hammer_"+(Math.random()*1E6|0),eMd=function(){var Y=document||document;if(!Y[VC_]){var S=function(){(function(P,u,W,m){function J(E9,FE,ia){return setTimeout(K(E9,ia),FE)}
function c(E9,FE,ia){return Array.isArray(E9)?(C(E9,ia[FE],ia),!0):!1}
function C(E9,FE,ia){var Rs;if(E9)if(E9.forEach)E9.forEach(FE,ia);else if(E9.length!==m){var W6=0;for(Rs=E9.length;W6<Rs;W6++)FE.call(ia,E9[W6],W6,E9)}else for(W6 in E9)E9.hasOwnProperty(W6)&&FE.call(ia,E9[W6],W6,E9)}
function x(E9,FE,ia){for(var Rs=Object.keys(FE),W6=0,DB=Rs.length;W6<DB;W6++)if(!ia||ia&&E9[Rs[W6]]===m)E9[Rs[W6]]=FE[Rs[W6]];return E9}
function b(E9,FE){return x(E9,FE,!0)}
function T(E9,FE,ia){FE=FE.prototype;var Rs=E9.prototype=Object.create(FE);Rs.constructor=E9;Rs._super=FE;ia&&x(Rs,ia)}
function K(E9,FE){return function(){return E9.apply(FE,arguments)}}
function G(E9,FE){return typeof E9=="function"?E9.apply(FE?FE[0]||m:m,FE):E9}
function v(E9,FE,ia){C(w(FE),function(Rs){E9.addEventListener(Rs,ia,!1)})}
function a(E9,FE,ia){C(w(FE),function(Rs){E9.removeEventListener(Rs,ia,!1)})}
function w(E9){return E9.trim().split(/\s+/g)}
function F(E9,FE,ia){if(E9.indexOf&&!ia)return E9.indexOf(FE);for(var Rs=0,W6=E9.length;Rs<W6;Rs++)if(ia&&E9[Rs][ia]==FE||!ia&&E9[Rs]===FE)return Rs;return-1}
function U(E9,FE,ia){for(var Rs=[],W6=[],DB=0,c6=E9.length;DB<c6;DB++){var T3=FE?E9[DB][FE]:E9[DB];F(W6,T3)<0&&Rs.push(E9[DB]);W6[DB]=T3}ia&&(Rs=FE?Rs.sort(function(x_,xc){return x_[FE]>xc[FE]}):Rs.sort());
return Rs}
function V(E9,FE){for(var ia,Rs=FE[0].toUpperCase()+FE.slice(1),W6=0,DB=Cu.length;W6<DB;W6++)if(ia=(ia=Cu[W6])?ia+Rs:FE,ia in E9)return ia;return m}
function M(E9,FE){var ia=this;this.manager=E9;this.callback=FE;this.element=E9.element;this.target=E9.options.inputTarget;this.domHandler=function(Rs){G(E9.options.enable,[E9])&&ia.handler(Rs)};
this.evEl&&v(this.element,this.evEl,this.domHandler);this.evTarget&&v(this.target,this.evTarget,this.domHandler);this.evWin&&v(P,this.evWin,this.domHandler)}
function zJ(E9){var FE;XO?FE=w1:Y5?FE=U9:Tc?FE=nu:FE=la;return new FE(E9,O)}
function O(E9,FE,ia){var Rs=ia.pointers.length,W6=ia.changedPointers.length,DB=FE&1&&Rs-W6===0;ia.isFirst=!!DB;ia.isFinal=!!(FE&12&&Rs-W6===0);DB&&(E9.session={});ia.eventType=FE;FE=E9.session;Rs=ia.pointers;W6=Rs.length;FE.firstInput||(FE.firstInput=ca(ia));W6>1&&!FE.firstMultiple?FE.firstMultiple=ca(ia):W6===1&&(FE.firstMultiple=!1);DB=FE.firstInput;var c6=(W6=FE.firstMultiple)?W6.center:DB.center,T3=ia.center=hu(Rs);ia.timeStamp=tj();ia.deltaTime=ia.timeStamp-DB.timeStamp;ia.angle=yX(c6,T3);ia.distance=
va(c6,T3);DB=ia.center;c6=FE.offsetDelta||{};T3=FE.prevDelta||{};var x_=FE.prevInput||{};if(ia.eventType===1||x_.eventType===4)T3=FE.prevDelta={x:x_.deltaX||0,y:x_.deltaY||0},c6=FE.offsetDelta={x:DB.x,y:DB.y};ia.deltaX=T3.x+(DB.x-c6.x);ia.deltaY=T3.y+(DB.y-c6.y);ia.offsetDirection=ah(ia.deltaX,ia.deltaY);W6?(DB=W6.pointers,DB=va(Rs[0],Rs[1],tF)/va(DB[0],DB[1],tF)):DB=1;ia.scale=DB;W6?(W6=W6.pointers,Rs=yX(Rs[1],Rs[0],tF)-yX(W6[1],W6[0],tF)):Rs=0;ia.rotation=Rs;c6=FE.lastInterval||ia;Rs=ia.timeStamp-
c6.timeStamp;ia.eventType!=8&&(Rs>25||c6.velocity===m)?(DB=c6.deltaX-ia.deltaX,c6=c6.deltaY-ia.deltaY,T3=DB/Rs||0,x_=c6/Rs||0,Rs=T3,W6=x_,T3=Fi(T3)>Fi(x_)?T3:x_,DB=ah(DB,c6),FE.lastInterval=ia):(T3=c6.velocity,Rs=c6.velocityX,W6=c6.velocityY,DB=c6.direction);ia.velocity=T3;ia.velocityX=Rs;ia.velocityY=W6;ia.direction=DB;FE=E9.element;a:{for(Rs=ia.srcEvent.target;Rs;){if(Rs==FE){Rs=!0;break a}Rs=Rs.parentNode}Rs=!1}Rs&&(FE=ia.srcEvent.target);ia.target=FE;E9.emit("hammer.input",ia);E9.recognize(ia);
E9.session.prevInput=ia}
function ca(E9){for(var FE=[],ia=0;ia<E9.pointers.length;ia++)FE[ia]={clientX:Iu(E9.pointers[ia].clientX),clientY:Iu(E9.pointers[ia].clientY)};return{timeStamp:tj(),pointers:FE,center:hu(FE),deltaX:E9.deltaX,deltaY:E9.deltaY}}
function hu(E9){var FE=E9.length;if(FE===1)return{x:Iu(E9[0].clientX),y:Iu(E9[0].clientY)};for(var ia=0,Rs=0,W6=0;W6<FE;W6++)ia+=E9[W6].clientX,Rs+=E9[W6].clientY;return{x:Iu(ia/FE),y:Iu(Rs/FE)}}
function ah(E9,FE){return E9===FE?1:Fi(E9)>=Fi(FE)?E9>0?2:4:FE>0?8:16}
function va(E9,FE,ia){ia||(ia=L7);var Rs=FE[ia[0]]-E9[ia[0]];E9=FE[ia[1]]-E9[ia[1]];return Math.sqrt(Rs*Rs+E9*E9)}
function yX(E9,FE,ia){ia||(ia=L7);return Math.atan2(FE[ia[1]]-E9[ia[1]],FE[ia[0]]-E9[ia[0]])*180/Math.PI}
function la(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;M.apply(this,arguments)}
function w1(){this.evEl=g7;this.evWin=Wu;M.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function U9(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};M.apply(this,arguments)}
function nu(){M.apply(this,arguments);var E9=K(this.handler,this);this.touch=new U9(this.manager,E9);this.mouse=new la(this.manager,E9)}
function Yc(E9,FE){this.manager=E9;this.set(FE)}
function tu(E9){if(E9.indexOf("none")>-1)return"none";var FE=E9.indexOf("pan-x")>-1,ia=E9.indexOf("pan-y")>-1;return FE&&ia?"pan-x pan-y":FE||ia?FE?"pan-x":"pan-y":E9.indexOf("manipulation")>-1?"manipulation":"auto"}
function $_(E9){this.id=vd++;this.manager=null;this.options=b(E9||{},this.defaults);E9=this.options.enable;this.options.enable=E9===m?!0:E9;this.state=1;this.simultaneous={};this.requireFail=[]}
function fu(E9){return E9==16?"down":E9==8?"up":E9==2?"left":E9==4?"right":""}
function G3(E9,FE){return(FE=FE.manager)?FE.get(E9):E9}
function wd(){$_.apply(this,arguments)}
function Wd(){wd.apply(this,arguments);this.pY=this.pX=null}
function kE(){wd.apply(this,arguments)}
function n8(){$_.apply(this,arguments);this._input=this._timer=null}
function P6(){wd.apply(this,arguments)}
function ML(){wd.apply(this,arguments)}
function zc(){$_.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Ku(E9,FE){FE=FE||{};var ia=FE.recognizers;FE.recognizers=ia===m?Ku.defaults.preset:ia;return new uo(E9,FE)}
function uo(E9,FE){FE=FE||{};this.options=b(FE,Ku.defaults);this.options.inputTarget=this.options.inputTarget||E9;this.handlers={};this.session={};this.recognizers=[];this.element=E9;this.input=zJ(this);this.touchAction=new Yc(this,this.options.touchAction);qL(this,!0);C(FE.recognizers,function(ia){var Rs=this.add(new ia[0](ia[1]));ia[2]&&Rs.recognizeWith(ia[2]);ia[3]&&Rs.requireFailure(ia[2])},this)}
function qL(E9,FE){var ia=E9.element;C(E9.options.cssProps,function(Rs,W6){ia.style[V(ia.style,W6)]=FE?Rs:""})}
function Zf(E9,FE){var ia=u.createEvent("Event");ia.initEvent(E9,!0,!0);ia.gesture=FE;FE.target.dispatchEvent(ia)}
var Cu=" webkit moz MS ms o".split(" "),hm=u.createElement("div"),Iu=Math.round,Fi=Math.abs,tj=Date.now,vd=1,OE=/mobile|tablet|ip(ad|hone|od)|android/i,Tc="ontouchstart"in P,XO=V(P,"PointerEvent")!==m,Y5=Tc&&OE.test(navigator.userAgent),L7=["x","y"],tF=["clientX","clientY"];M.prototype={handler:function(){},
destroy:function(){this.evEl&&a(this.element,this.evEl,this.domHandler);this.evTarget&&a(this.target,this.evTarget,this.domHandler);this.evWin&&a(P,this.evWin,this.domHandler)}};
var jX={mousedown:1,mousemove:2,mouseup:4};T(la,M,{handler:function(E9){var FE=jX[E9.type];FE&1&&E9.button===0&&(this.pressed=!0);FE&2&&E9.which!==1&&(FE=4);this.pressed&&this.allow&&(FE&4&&(this.pressed=!1),this.callback(this.manager,FE,{pointers:[E9],changedPointers:[E9],pointerType:"mouse",srcEvent:E9}))}});
var XF={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},bI={2:"touch",3:"pen",4:"mouse",5:"kinect"},g7="pointerdown",Wu="pointermove pointerup pointercancel";P.MSPointerEvent&&(g7="MSPointerDown",Wu="MSPointerMove MSPointerUp MSPointerCancel");T(w1,M,{handler:function(E9){var FE=this.store,ia=!1,Rs=E9.type.toLowerCase().replace("ms","");Rs=XF[Rs];var W6=bI[E9.pointerType]||E9.pointerType;Rs&1&&(E9.button===0||W6=="touch")?FE.push(E9):Rs&12&&(ia=!0);var DB=F(FE,E9.pointerId,"pointerId");
DB<0||(FE[DB]=E9,this.callback(this.manager,Rs,{pointers:FE,changedPointers:[E9],pointerType:W6,srcEvent:E9}),ia&&FE.splice(DB,1))}});
var V4={touchstart:1,touchmove:2,touchend:4,touchcancel:8};T(U9,M,{handler:function(E9){var FE=V4[E9.type];var ia=Array.prototype.slice.call(E9.touches,0);var Rs=this.targetIds;if(FE&3&&ia.length===1)Rs[ia[0].identifier]=!0,Rs=[ia,ia];else{var W6,DB=Array.prototype.slice.call(E9.targetTouches,0),c6=Array.prototype.slice.call(E9.changedTouches,0),T3=[];if(FE===1)for(ia=0,W6=DB.length;ia<W6;ia++)Rs[DB[ia].identifier]=!0;ia=0;for(W6=c6.length;ia<W6;ia++)Rs[c6[ia].identifier]&&T3.push(c6[ia]),FE&12&&
delete Rs[c6[ia].identifier];Rs=T3.length?[U(DB.concat(T3),"identifier",!0),T3]:void 0}Rs&&this.callback(this.manager,FE,{pointers:Rs[0],changedPointers:Rs[1],pointerType:"touch",srcEvent:E9})}});
T(nu,M,{handler:function(E9,FE,ia){var Rs=ia.pointerType=="mouse";if(ia.pointerType=="touch")this.mouse.allow=!1;else if(Rs&&!this.mouse.allow)return;FE&12&&(this.mouse.allow=!0);this.callback(E9,FE,ia)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var y3=V(hm.style,"touchAction"),W_=y3!==m;Yc.prototype={set:function(E9){E9=="compute"&&(E9=this.compute());W_&&(this.manager.element.style[y3]=E9);this.actions=E9.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var E9=[];C(this.manager.recognizers,function(FE){G(FE.options.enable,[FE])&&(E9=E9.concat(FE.getTouchAction()))});
return tu(E9.join(" "))},
preventDefaults:function(E9){if(!W_){var FE=E9.srcEvent;E9=E9.offsetDirection;if(this.manager.session.prevented)FE.preventDefault();else{var ia=this.actions,Rs=ia.indexOf("none")>-1,W6=ia.indexOf("pan-y")>-1;ia=ia.indexOf("pan-x")>-1;if(Rs||W6&&ia||W6&&E9&6||ia&&E9&24)return this.preventSrc(FE)}}},
preventSrc:function(E9){this.manager.session.prevented=!0;E9.preventDefault()}};
$_.prototype={defaults:{},set:function(E9){x(this.options,E9);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(E9){if(c(E9,"recognizeWith",this))return this;var FE=this.simultaneous;E9=G3(E9,this);FE[E9.id]||(FE[E9.id]=E9,E9.recognizeWith(this));return this},
dropRecognizeWith:function(E9){if(c(E9,"dropRecognizeWith",this))return this;E9=G3(E9,this);delete this.simultaneous[E9.id];return this},
requireFailure:function(E9){if(c(E9,"requireFailure",this))return this;var FE=this.requireFail;E9=G3(E9,this);F(FE,E9)===-1&&(FE.push(E9),E9.requireFailure(this));return this},
dropRequireFailure:function(E9){if(c(E9,"dropRequireFailure",this))return this;E9=G3(E9,this);E9=F(this.requireFail,E9);E9>-1&&this.requireFail.splice(E9,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(E9){return!!this.simultaneous[E9.id]},
emit:function(E9){function FE(W6){ia.manager.emit(ia.options.event+(W6?Rs&16?"cancel":Rs&8?"end":Rs&4?"move":Rs&2?"start":"":""),E9)}
var ia=this,Rs=this.state;Rs<8&&FE(!0);FE();Rs>=8&&FE(!0)},
tryEmit:function(E9){if(this.canEmit())return this.emit(E9);this.state=32},
canEmit:function(){for(var E9=0;E9<this.requireFail.length;E9++)if(!(this.requireFail[E9].state&33))return!1;return!0},
recognize:function(E9){E9=x({},E9);G(this.options.enable,[this,E9])?(this.state&56&&(this.state=1),this.state=this.process(E9),this.state&30&&this.tryEmit(E9)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
T(wd,$_,{defaults:{pointers:1},attrTest:function(E9){var FE=this.options.pointers;return FE===0||E9.pointers.length===FE},
process:function(E9){var FE=this.state,ia=E9.eventType,Rs=FE&6;E9=this.attrTest(E9);return Rs&&(ia&8||!E9)?FE|16:Rs||E9?ia&4?FE|8:FE&2?FE|4:2:32}});
T(Wd,wd,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var E9=this.options.direction;if(E9===30)return["none"];var FE=[];E9&6&&FE.push("pan-y");E9&24&&FE.push("pan-x");return FE},
directionTest:function(E9){var FE=this.options,ia=!0,Rs=E9.distance,W6=E9.direction,DB=E9.deltaX,c6=E9.deltaY;W6&FE.direction||(FE.direction&6?(W6=DB===0?1:DB<0?2:4,ia=DB!=this.pX,Rs=Math.abs(E9.deltaX)):(W6=c6===0?1:c6<0?8:16,ia=c6!=this.pY,Rs=Math.abs(E9.deltaY)));E9.direction=W6;return ia&&Rs>FE.threshold&&W6&FE.direction},
attrTest:function(E9){return wd.prototype.attrTest.call(this,E9)&&(this.state&2||!(this.state&2)&&this.directionTest(E9))},
emit:function(E9){this.pX=E9.deltaX;this.pY=E9.deltaY;var FE=fu(E9.direction);FE&&this.manager.emit(this.options.event+FE,E9);this._super.emit.call(this,E9)}});
T(kE,wd,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(E9){return this._super.attrTest.call(this,E9)&&(Math.abs(E9.scale-1)>this.options.threshold||this.state&2)},
emit:function(E9){this._super.emit.call(this,E9);E9.scale!==1&&this.manager.emit(this.options.event+(E9.scale<1?"in":"out"),E9)}});
T(n8,$_,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(E9){var FE=this.options,ia=E9.pointers.length===FE.pointers,Rs=E9.distance<FE.threshold,W6=E9.deltaTime>FE.time;this._input=E9;if(!Rs||!ia||E9.eventType&12&&!W6)this.reset();else if(E9.eventType&1)this.reset(),this._timer=J(function(){this.state=8;this.tryEmit()},FE.time,this);
else if(E9.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(E9){this.state===8&&(E9&&E9.eventType&4?this.manager.emit(this.options.event+"up",E9):(this._input.timeStamp=tj(),this.manager.emit(this.options.event,this._input)))}});
T(P6,wd,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(E9){return this._super.attrTest.call(this,E9)&&(Math.abs(E9.rotation)>this.options.threshold||this.state&2)}});
T(ML,wd,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Wd.prototype.getTouchAction.call(this)},
attrTest:function(E9){var FE=this.options.direction;if(FE&30)var ia=E9.velocity;else FE&6?ia=E9.velocityX:FE&24&&(ia=E9.velocityY);return this._super.attrTest.call(this,E9)&&FE&E9.direction&&Fi(ia)>this.options.velocity&&E9.eventType&4},
emit:function(E9){var FE=fu(E9.direction);FE&&this.manager.emit(this.options.event+FE,E9);this.manager.emit(this.options.event,E9)}});
T(zc,$_,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(E9){var FE=this.options,ia=E9.pointers.length===FE.pointers,Rs=E9.distance<FE.threshold,W6=E9.deltaTime<FE.time;this.reset();if(E9.eventType&1&&this.count===0)return this.failTimeout();if(Rs&&W6&&ia){if(E9.eventType!=4)return this.failTimeout();ia=this.pTime?E9.timeStamp-this.pTime<FE.interval:!0;Rs=!this.pCenter||va(this.pCenter,E9.center)<FE.posThreshold;this.pTime=E9.timeStamp;this.pCenter=E9.center;Rs&&ia?this.count+=1:this.count=1;this._input=E9;if(this.count%FE.taps===0)return this.hasRequireFailures()?
(this._timer=J(function(){this.state=8;this.tryEmit()},FE.interval,this),2):8}return 32},
failTimeout:function(){this._timer=J(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))}});
Ku.VERSION="2.0.2";Ku.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[P6,{enable:!1}],[kE,{enable:!1},["rotate"]],[ML,{direction:6}],[Wd,{direction:6},["swipe"]],[zc],[zc,{event:"doubletap",taps:2},["tap"]],[n8]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};uo.prototype={set:function(E9){x(this.options,E9);return this},
stop:function(E9){this.session.stopped=E9?2:1},
recognize:function(E9){var FE=this.session;if(!FE.stopped){this.touchAction.preventDefaults(E9);var ia=this.recognizers,Rs=FE.curRecognizer;if(!Rs||Rs&&Rs.state&8)Rs=FE.curRecognizer=null;for(var W6=0,DB=ia.length;W6<DB;W6++){var c6=ia[W6];FE.stopped===2||Rs&&c6!=Rs&&!c6.canRecognizeWith(Rs)?c6.reset():c6.recognize(E9);!Rs&&c6.state&14&&(Rs=FE.curRecognizer=c6)}}},
get:function(E9){if(E9 instanceof $_)return E9;for(var FE=this.recognizers,ia=0;ia<FE.length;ia++)if(FE[ia].options.event==E9)return FE[ia];return null},
add:function(E9){if(c(E9,"add",this))return this;var FE=this.get(E9.options.event);FE&&this.remove(FE);this.recognizers.push(E9);E9.manager=this;this.touchAction.update();return E9},
remove:function(E9){if(c(E9,"remove",this))return this;var FE=this.recognizers;E9=this.get(E9);FE.splice(F(FE,E9),1);this.touchAction.update();return this},
on:function(E9,FE){var ia=this.handlers;C(w(E9),function(Rs){ia[Rs]=ia[Rs]||[];ia[Rs].push(FE)});
return this},
off:function(E9,FE){var ia=this.handlers;C(w(E9),function(Rs){FE?ia[Rs].splice(F(ia[Rs],FE),1):delete ia[Rs]});
return this},
emit:function(E9,FE){this.options.domEvents&&Zf(E9,FE);var ia=this.handlers[E9]&&this.handlers[E9].slice();if(ia&&ia.length){FE.type=E9;FE.preventDefault=function(){FE.srcEvent.preventDefault()};
E9=0;for(var Rs=ia.length;E9<Rs;E9++)ia[E9](FE)}},
destroy:function(){this.element&&qL(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
x(Ku,{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:uo,Input:M,TouchAction:Yc,Recognizer:$_,AttrRecognizer:wd,Tap:zc,Pan:Wd,Swipe:ML,Pinch:kE,Rotate:P6,Press:n8,on:v,off:a,each:C,merge:b,extend:x,inherit:T,bindFn:K,prefixed:V});
P[W]=Ku})(window,document,"Hammer");
return window.Hammer}.call({});
S.DOCUMENT=Y;Y[VC_]=S}return Y[VC_]};/*

 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 Osm=function(Y,S){if(Y.length!==S.length)return!1;for(var P=0;P<Y.length;++P)if(Y[P]!==S[P])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var YnU=_.n(["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"]),SnJ=YnU.next();!SnJ.done;SnJ=YnU.next()){var PNS=SnJ.value,ut_=document.createElement("link");ut_.rel="stylesheet";ut_.href=PNS;document.head.appendChild(ut_)};var Za1,oXE,Akh,d2E,ia1,ldJ,FwK,sBa;Za1={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};oXE={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:"*"};Akh={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};d2E=/[a-z0-9*]/;ia1=/U\+/;ldJ=/^arrow/;FwK=/^space(bar)?/;sBa=/^escape$/;_.x1={properties:{keyEventTarget:{type:Object,value:function(){return this}},
stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},
_imperativeKeyBindings:{type:Object,value:function(){return{}}}},
observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},
attached:function(){this._listenKeyEventListeners()},
detached:function(){this._unlistenKeyEventListeners()},
addOwnKeyBinding:function(Y,S){this._imperativeKeyBindings[Y]=S;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(Y,S){S=QB1(S);for(var P=0;P<S.length;++P)if(tNX(S[P],Y))return!0;return!1},
_collectKeyBindings:function(){var Y=this.behaviors.map(function(S){return S.keyBindings});
Y.indexOf(this.keyBindings)===-1&&Y.push(this.keyBindings);return Y},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(P){for(var u in P)this._addKeyBinding(u,P[u])},this);
for(var Y in this._imperativeKeyBindings)this._addKeyBinding(Y,this._imperativeKeyBindings[Y]);for(var S in this._keyBindings)this._keyBindings[S].sort(function(P,u){P=P[0].hasModifiers;return P===u[0].hasModifiers?0:P?-1:1})},
_addKeyBinding:function(Y,S){QB1(Y).forEach(function(P){this._keyBindings[P.event]=this._keyBindings[P.event]||[];this._keyBindings[P.event].push([P,S])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(Y){var S=this._onKeyBindingEvent.bind(this,this._keyBindings[Y]);this._boundKeyHandlers.push([this.keyEventTarget,Y,S]);this.keyEventTarget.addEventListener(Y,S)},this)},
_unlistenKeyEventListeners:function(){for(var Y,S,P;this._boundKeyHandlers.length;)Y=this._boundKeyHandlers.pop(),S=Y[0],P=Y[1],Y=Y[2],S.removeEventListener(P,Y)},
_onKeyBindingEvent:function(Y,S){this.stopKeyboardEventPropagation&&S.stopPropagation();if(!S.defaultPrevented)for(var P=0;P<Y.length;P++){var u=Y[P][0],W=Y[P][1];if(tNX(u,S)&&(this._triggerKeyHandler(u,W,S),S.defaultPrevented))break}},
_triggerKeyHandler:function(Y,S,P){var u=Object.create(Y);u.keyboardEvent=P;Y=new CustomEvent(Y.event,{detail:u,cancelable:!0});this[S].call(this,Y);Y.defaultPrevented&&P.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
*/
_.Kc({is:"iron-a11y-keys",_template:null,behaviors:[_.x1],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(Y){this.keyEventTarget=Y},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(Y){this.fire("keys-pressed",Y.detail,{})}});_.br={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},
observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0);this.addEventListener("blur",this._boundFocusBlurHandler,!0)},
_focusBlurHandler:function(Y){this._setFocused(Y.type==="focus")},
_disabledChanged:function(Y){this.setAttribute("aria-disabled",Y?"true":"false");this.style.pointerEvents=Y?"none":"";Y?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):this._oldTabIndex!==void 0&&(this._oldTabIndex===null?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},
_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};var T8={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",mouseup:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)",
"_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},
_focusChanged:function(Y){this._detectKeyboardFocus(Y);Y||this._setPressed(!1)},
_detectKeyboardFocus:function(Y){this._setReceivedFocusFromKeyboard(!this.pointerDown&&Y)},
_userActivate:function(Y){this.active!==Y&&(this.active=Y,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(Y){Y=Y.detail.keyboardEvent;var S=_.G5(Y).localTarget;this.isLightDescendant(S)||(Y.preventDefault(),Y.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(Y){Y=_.G5(Y.detail.keyboardEvent).localTarget;this.isLightDescendant(Y)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(Y,S){S&&S!=Y&&this.hasAttribute(S)&&this.removeAttribute(S)},
_activeChanged:function(Y){this.toggles?this.setAttribute(this.ariaActiveAttribute,Y?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},WRf=[_.x1,
T8];_.KD={IronButtonState:WRf,IronButtonStateImpl:T8};_.Em={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.fD=function(Y){_.fD[" "](Y);this.type=Y&&Y.type||"default";this.key=Y&&Y.key;Y&&"value"in Y&&(this.value=Y.value)};
_.fD.prototype.byKey=function(Y){this.key=Y;return this.value};
_.y6.Object.defineProperties(_.fD.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var Y=this.type,S=this.key;if(Y&&S)return gp[Y]&&gp[Y][S]},
set:function(Y){var S=this.type,P=this.key;S&&P&&(S=gp[S]=gp[S]||{},Y==null?delete S[P]:S[P]=Y)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var Y=gp[this.type];return Y?Object.keys(Y).map(function(S){return gp[this.type][S]},this):[]}}});
_.fD[" "]=function(){};
var gp={};_.Kc({is:"iron-meta",_template:null,properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(Y,S,P){Y=new _.fD({type:Y,key:S});P!==void 0&&P!==Y.value?Y.value=P:this.value!==Y.value&&(this.value=Y.value);return Y},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(Y){Y&&(this.value=this)},
byKey:function(Y){return(new _.fD({type:this.type,key:Y})).value}});var zis;zis=null;_.$1={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){zis=new _.fD({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return zis&&zis.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(Y){this.invalid=Y===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(Y);return!this.invalid},
_getValidity:function(Y){return this.hasValidator()?this._validator.validate(Y):!0}};var mwd={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"}},ns3=[_.Em,
_.$1,mwd];_.Kc({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 _.fD({type:"iconset",key:null,value:null})},
attached:function(){this.style.display="none"},
getIconNames:function(){this._icons=this._createIconMap();return Object.keys(this._icons).map(function(Y){return this.name+":"+Y},this)},
applyIcon:function(Y,S){this.removeIcon(Y);if(S=this._cloneIcon(S,this.rtlMirroring&&this._targetIsRTL(Y))){var P=_.G5(Y.root||Y);P.insertBefore(S,P.childNodes[0]);return Y._svgIcon=S}return null},
removeIcon:function(Y){Y._svgIcon&&(_.G5(Y.root||Y).removeChild(Y._svgIcon),Y._svgIcon=null)},
_targetIsRTL:function(Y){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(Y&&Y.nodeType!==Node.ELEMENT_NODE&&(Y=Y.host),this.__targetIsRTL=Y&&window.getComputedStyle(Y).direction==="rtl"));return this.__targetIsRTL},
_nameChanged:function(){this._meta.value=null;this._meta.key=this.name;this._meta.value=this;this.async(function(){this.fire("iron-iconset-added",this,{node:window})})},
_createIconMap:function(){var Y=Object.create(null);_.G5(this).querySelectorAll("[id]").forEach(function(S){Y[S.id]=S});
return Y},
_cloneIcon:function(Y,S){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[Y],this.size,S)},
_prepareSvgClone:function(Y,S,P){if(Y){Y=Y.cloneNode(!0);var u=document.createElementNS("http://www.w3.org/2000/svg","svg");S=Y.getAttribute("viewBox")||"0 0 "+S+" "+S;var W="pointer-events: none; display: block; width: 100%; height: 100%;";P&&Y.hasAttribute("mirror-in-rtl")&&(W+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");u.setAttribute("viewBox",S);u.setAttribute("preserveAspectRatio","xMidYMid meet");u.setAttribute("focusable","false");u.style&&(u.style.cssText=
W);u.appendChild(Y).removeAttribute("id");return u}return null}});var jFU=function(Y){this.multi=!1;this.selection=[];this.selectCallback=Y};
_.z=jFU.prototype;_.z.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.z.clear=function(Y){this.selection.slice().forEach(function(S){(!Y||Y.indexOf(S)<0)&&this.setItemSelected(S,!1)},this)};
_.z.isSelected=function(Y){return this.selection.indexOf(Y)>=0};
_.z.setItemSelected=function(Y,S){if(Y!=null&&S!==this.isSelected(Y)){if(S)this.selection.push(Y);else{var P=this.selection.indexOf(Y);P>=0&&this.selection.splice(P,1)}this.selectCallback&&this.selectCallback(Y,S)}};
_.z.select=function(Y){this.multi?this.toggle(Y):this.get()!==Y&&(this.setItemSelected(this.get(),!1),this.setItemSelected(Y,!0))};
_.z.toggle=function(Y){this.setItemSelected(Y,!this.isSelected(Y))};_.sX={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 jFU(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.G5(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(Y){return this.items?this.items.indexOf(Y):-1},
select:function(Y){this.selected=Y},
selectPrevious:function(){var Y=this.items.length,S=Y-1;this.selected!==void 0&&(S=(Number(this._valueToIndex(this.selected))-1+Y)%Y);this.selected=this._indexToValue(S)},
selectNext:function(){var Y=0;this.selected!==void 0&&(Y=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(Y)},
selectIndex:function(Y){this.select(this._indexToValue(Y))},
forceSynchronousItemUpdate:function(){this._observer&&typeof this._observer.flush==="function"?this._observer.flush():this._updateItems()},
get _shouldUpdateSelection(){return this.selected!=null},_checkFallback:function(){this._updateSelected()},
_addListener:function(Y){this.listen(this,Y,"_activateHandler")},
_removeListener:function(Y){this.unlisten(this,Y,"_activateHandler")},
_activateEventChanged:function(Y,S){this._removeListener(S);this._addListener(Y)},
_updateItems:function(){var Y=_.G5(this).queryDistributedElements(this.selectable||"*");Y=Array.prototype.filter.call(Y,this._bindFilterItem);this._setItems(Y)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var Y=this._valueToItem(this.selected);Y?this._selection.select(Y):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(Y){return!this._excludedLocalNames[Y.localName]},
_valueToItem:function(Y){return Y==null?null:this.items[this._valueToIndex(Y)]},
_valueToIndex:function(Y){if(this.attrForSelected)for(var S=0,P;P=this.items[S];S++){if(this._valueForItem(P)==Y)return S}else return Number(Y)},
_indexToValue:function(Y){if(this.attrForSelected){if(Y=this.items[Y])return this._valueForItem(Y)}else return Y},
_valueForItem:function(Y){if(!Y)return null;if(!this.attrForSelected)return Y=this.indexOf(Y),Y===-1?null:Y;var S=Y[mu(this.attrForSelected)];return S!=void 0?S:Y.getAttribute(this.attrForSelected)},
_applySelection:function(Y,S){this.selectedClass&&this.toggleClass(this.selectedClass,S,Y);this.selectedAttribute&&this.toggleAttribute.call(Y,this.selectedAttribute,S);this._selectionChange();this.fire("iron-"+(S?"select":"deselect"),{item:Y})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(Y){return _.G5(Y).observeNodes(function(S){this._updateItems();this._updateSelected();this.fire("iron-items-changed",S,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(Y){Y=Y.target;for(var S=this.items;Y&&Y!=this;){var P=S.indexOf(Y);if(P>=0){S=this._indexToValue(P);this._itemActivate(S,Y);break}Y=Y.parentNode}},
_itemActivate:function(Y,S){this.fire("iron-activate",{selected:Y,item:S},{cancelable:!0}).defaultPrevented||this.select(Y)}};var Jg6={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},
selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},
observers:["_updateSelected(selectedValues.splices)"],select:function(Y){this.multi?this._toggleSelected(Y):this.selected=Y},
multiChanged:function(Y){this._selection.multi=Y;this._updateSelected()},
get _shouldUpdateSelection(){return this.selected!=null||this.selectedValues!=null&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map(function(Y){return this._indexToValue(this.indexOf(Y))},this).filter(function(Y){return Y!=null},this)):_.sX._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(Y){Y=Y||[];Y=(this._valuesToItems(Y)||[]).filter(function(P){return P!==null&&P!==void 0});
this._selection.clear(Y);for(var S=0;S<Y.length;S++)this._selection.setItemSelected(Y[S],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var Y=this._selection.get();this.multi?(this._setSelectedItems(Y),this._setSelectedItem(Y.length?Y[0]:null)):Y!==null&&Y!==void 0?(this._setSelectedItems([Y]),this._setSelectedItem(Y)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(Y){var S=this.selectedValues.indexOf(Y);S<0?this.push("selectedValues",Y):this.splice("selectedValues",S,1)},
_valuesToItems:function(Y){return Y==null?null:Y.map(function(S){return this._valueToItem(S)},this)}},BLt=[_.sX,
Jg6];var cgi;
_.rp={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),_SEARCH_RESET_TIMEOUT_MS:1E3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",
down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},
select:function(Y){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var S=this._valueToItem(Y);S&&S.hasAttribute("disabled")||(this._setFocusedItem(S),Jg6.select.apply(this,arguments))},
_resetTabindices:function(){var Y=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(S){S.setAttribute("tabindex",S===Y?"0":"-1");S.setAttribute("aria-selected",this._selection.isSelected(S))},this)},
_updateMultiselectable:function(Y){Y?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(Y){if(this._MODIFIER_KEYS.indexOf(Y.key)===-1){this.cancelDebouncer("_clearSearchText");var S=this._searchText||"";S+=(Y.key&&Y.key.length==1?Y.key:String.fromCharCode(Y.keyCode)).toLocaleLowerCase();Y=S.length;for(var P=0,u;u=this.items[P];P++)if(!u.hasAttribute("disabled")){var W=this.attrForItemTitle||"textContent";W=(u[W]||u.getAttribute(W)||"").trim();if(!(W.length<Y)&&W.slice(0,Y).toLocaleLowerCase()==S){this._setFocusedItem(u);break}}this._searchText=S;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var Y=this.items.length,S=Number(this.indexOf(this.focusedItem)),P=1;P<Y+1;P++){var u=this.items[(S-P+Y)%Y];if(!u.hasAttribute("disabled")){var W=_.G5(u).getOwnerRoot()||document;this._setFocusedItem(u);if(_.G5(W).activeElement==u)break}}},
_focusNext:function(){for(var Y=this.items.length,S=Number(this.indexOf(this.focusedItem)),P=1;P<Y+1;P++){var u=this.items[(S+P)%Y];if(!u.hasAttribute("disabled")){var W=_.G5(u).getOwnerRoot()||document;this._setFocusedItem(u);if(_.G5(W).activeElement==u)break}}},
_applySelection:function(Y,S){S?Y.setAttribute("aria-selected","true"):Y.setAttribute("aria-selected","false");_.sX._applySelection.apply(this,arguments)},
_focusedItemChanged:function(Y,S){S&&S.setAttribute("tabindex","-1");!Y||Y.hasAttribute("disabled")||this.disabled||(Y.setAttribute("tabindex","0"),Y.focus())},
_onIronItemsChanged:function(Y){Y.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var Y=this.getAttribute("tabindex");_.rp._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",Y);_.rp._shiftTabPressed=!1},1)},
_onFocus:function(Y){!_.rp._shiftTabPressed&&(Y=_.G5(Y).rootTarget,Y===this||typeof Y.tabIndex==="undefined"||this.isLightDescendant(Y))&&(this._defaultFocusAsync=this.async(function(){var S=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);S?this._setFocusedItem(S):this.items[0]&&this._focusNext()}))},
_onUpKey:function(Y){this._focusPrevious();Y.detail.keyboardEvent.preventDefault()},
_onDownKey:function(Y){this._focusNext();Y.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var Y=this.focusedItem;Y&&Y.blur()},
_onKeydown:function(Y){this.keyboardEventMatchesKeys(Y,"up down esc")||this._focusWithKeyboardEvent(Y);Y.stopPropagation()},
_activateHandler:function(Y){_.sX._activateHandler.call(this,Y);Y.stopPropagation()},
_disabledChanged:function(Y){Y?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};cgi=[BLt,_.x1,_.rp];_.CNf={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(Y){this.focusedItem&&(this.focusedItem.click(),Y.detail.keyboardEvent.preventDefault())},
_onDownKey:function(Y){this.focusedItem&&(this.focusedItem.click(),Y.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(Y){return Y.ctrlKey||Y.shiftKey||Y.altKey||Y.metaKey},
_onLeftKey:function(Y){this._isSpecialKey(Y.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),Y.detail.keyboardEvent.preventDefault())},
_onRightKey:function(Y){this._isSpecialKey(Y.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),Y.detail.keyboardEvent.preventDefault())},
_onKeydown:function(Y){this.keyboardEventMatchesKeys(Y,"up down left right esc")||this._focusWithKeyboardEvent(Y)}};
_.qnm=[cgi,_.CNf];var RiS;RiS=new Set;_.G8={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):(RiS.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(Y){this.resizerShouldNotify(Y)&&this._notifyDescendant(Y)},this),this._fireResize())},
assignParentResizable:function(Y){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=Y)&&Y._interestedResizables.indexOf(this)===-1&&(Y._interestedResizables.push(this),Y._subscribeIronResize(this))},
stopResizeNotificationsFor:function(Y){var S=this._interestedResizables.indexOf(Y);S>-1&&(this._interestedResizables.splice(S,1),this._unsubscribeIronResize(Y))},
_subscribeIronResize:function(Y){Y.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(Y){Y.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(Y){this._notifyingDescendant?Y.stopPropagation():sE||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(Y){var S=_.G5(Y).rootTarget;S!==this&&(S.assignParentResizable(this),this._notifyDescendant(S),Y.stopPropagation())},
_parentResizableChanged:function(Y){Y&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(Y){this.isAttached&&(this._notifyingDescendant=!0,Y.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var Y=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function P(){document.removeEventListener("readystatechange",P);Y()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(S){S!==this&&S._findParent()},this):(RiS.forEach(function(S){S!==this&&S._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?RiS.delete(this):RiS.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
*/
_.xw_={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(Y,S){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);S&&(Y==="document"?this.scrollTarget=this._doc:typeof Y==="string"?this.scrollTarget=(S=this.domHost)&&S.$?S.$[Y]:_.G5(this.ownerDocument).querySelector("#"+Y):this._isValidScrollTarget()&&(this._oldScrollTarget=Y,this._toggleScrollListener(this._shouldHaveListener,Y)))},
_scrollHandler:function(){},
get _defaultScrollTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollTop(Y){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,Y):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
Y)},set _scrollLeft(Y){this.scrollTarget===this._doc?window.scrollTo(Y,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=Y)},scroll:function(Y,S){if(typeof Y==="object"){var P=Y.left;S=Y.top}else P=Y;P=P||0;S=S||0;this.scrollTarget===this._doc?window.scrollTo(P,S):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=P,this.scrollTarget.scrollTop=S)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(Y,S){S=S===this._doc?window:S;Y?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),S.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(S.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(Y){this._shouldHaveListener=Y;this._toggleScrollListener(Y,this.scrollTarget)}};_.Kc({is:"iron-selector",_template:null,behaviors:[BLt]});var hn={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},
isNeonAnimation:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},
timingFromConfig:function(Y){if(Y.timing)for(var S in Y.timing)this.animationTiming[S]=Y.timing[S];return this.animationTiming},
setPrefixedProperty:function(Y,S,P){for(var u={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[S],W,m=0;W=u[m];m++)Y.style[W]=P;Y.style[S]=P},
complete:function(){}};_.Kc({is:"fade-in-animation",_template:null,behaviors:[hn],configure:function(Y){return this._effect=new KeyframeEffect(Y.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(Y))}});_.Kc({is:"fade-out-animation",_template:null,behaviors:[hn],configure:function(Y){return this._effect=new KeyframeEffect(Y.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(Y))}});var bR6=[{properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},
_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},
_copyProperties:function(Y,S){for(var P in S)Y[P]=S[P]},
_cloneConfig:function(Y){var S={isClone:!0};this._copyProperties(S,Y);return S},
_getAnimationConfigRecursive:function(Y,S,P){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 u=Y?this.animationConfig[Y]:this.animationConfig;Array.isArray(u)||(u=[u]);if(u)for(var W,m=0;W=u[m];m++)if(W.animatable)W.animatable._getAnimationConfigRecursive(W.type||Y,S,P);else if(W.id){var J=S[W.id];
J?(J.isClone||(S[W.id]=this._cloneConfig(J),J=S[W.id]),this._copyProperties(J,W)):S[W.id]=W}else P.push(W)}},
getAnimationConfig:function(Y){var S={},P=[];this._getAnimationConfigRecursive(Y,S,P);for(var u in S)P.push(S[u]);return P}},
{_configureAnimations:function(Y){var S=[],P=[];if(Y.length>0)for(var u,W=0;u=Y[W];W++){var m=document.createElement(u.name);if(m.isNeonAnimation){var J=null;m.configure||(m.configure=function(){return null});
J=m.configure(u);P.push({result:J,config:u})}else console.warn(this.is+":",u.name,"not found!")}for(Y=0;Y<P.length;Y++){J=P[Y].result;u=P[Y].config;try{typeof J.cancel!="function"&&(J=document.timeline.play(J))}catch(c){J=null,console.warn("Couldnt play","(",u.name,").",c)}J&&S.push({neonAnimation:m,config:u,animation:J})}return S},
_shouldComplete:function(Y){for(var S=!0,P=0;P<Y.length;P++)if(Y[P].animation.playState!="finished"){S=!1;break}return S},
_complete:function(Y){for(var S=0;S<Y.length;S++)Y[S].neonAnimation.complete(Y[S].config);for(S=0;S<Y.length;S++)Y[S].animation.cancel()},
playAnimation:function(Y,S){var P=this.getAnimationConfig(Y);if(P){this._active=this._active||{};this._active[Y]&&(this._complete(this._active[Y]),delete this._active[Y]);var u=this._configureAnimations(P);if(u.length==0)this.fire("neon-animation-finish",S,{bubbles:!1});else for(this._active[Y]=u,P=0;P<u.length;P++)u[P].animation.onfinish=function(){this._shouldComplete(u)&&(this._complete(u),delete this._active[Y],this.fire("neon-animation-finish",S,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var Y in this._active){var S=this._active[Y],P;for(P in S)S[P].animation&&S[P].animation.cancel&&S[P].animation.cancel()}this._active={}}}];var CM=function(Y,S){Y=Error.call(this,Y);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.arg=S;this.name=this.constructor.name;this.constructor=CM;this.__proto__=CM.prototype};
_.r(CM,Error);var TL6=Ub(function(Y){var S=function(){return Y.apply(this,arguments)||this};
_.r(S,Y);S.prototype._marshalArgs=function(P,u,W){u=Y.prototype._marshalArgs.call(this,P,u,W);if(this._legacyUndefinedCheck&&u.length>1)for(W=0;W<u.length;W++)if(u[W]===void 0||P[W].wildcard&&u[W].base===void 0)throw P=P[W].name,new CM("Argument '"+P+"' is undefined.",P);return u};
S.prototype._addPropertyEffect=function(P,u,W){return Y.prototype._addPropertyEffect.call(this,P,u,kUu(W,W&&W.info&&W.info.methodName))};
S._addTemplatePropertyEffect=function(P,u,W){return Y._addTemplatePropertyEffect.call(this,P,u,kUu(W))};
return S}),KRs=_.Kc.Class;
_.Kc.Class=function(Y,S){return KRs(Y,function(P){return S?S(TL6(P)):TL6(P)})};
var Est=Ub(function(Y){var S=TL6(Y);Y=function(){return S.apply(this,arguments)||this};
_.r(Y,S);_.y6.Object.defineProperties(Y.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return Y}),fKL=lg.mixin;
lg.mixin=fKL?function(Y){return Est(fKL(Y))}:Est;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.DW=_.KD.IronButtonState;var H$E=FD;/*

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

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
*/
_.Kc({_template:function(){if(rqt!==void 0)return rqt;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;$Eu===void 0&&($Eu=document.createElement("template"));var u=$Eu;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return rqt=Y},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.$1,_.br],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(Y){this.$.textarea.selectionStart=Y},set selectionEnd(Y){this.$.textarea.selectionEnd=Y},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var Y=this.$.textarea.validity.valid;Y&&(this.required&&this.value===""?Y=!1:this.hasValidator()&&(Y=_.$1.validate.call(this,this.value)));this.invalid=!Y;this.fire("iron-input-validate");return Y},
_bindValueChanged:function(Y){this.value=Y},
_valueChanged:function(Y){var S=this.textarea;S&&(S.value!==Y&&(S.value=Y||Y===0?Y:""),this.bindValue=Y,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(Y){var S=_.G5(Y).path;this.value=S?S[0].value:Y.target.value},
_constrain:function(Y){var S;Y=Y||[""];for(S=this.maxRows>0&&Y.length>this.maxRows?Y.slice(0,this.maxRows):Y.slice(0);this.rows>0&&S.length<this.rows;)S.push("");return S.join("\n")+"\u00a0"},
_valueForMirror:function(){var Y=this.textarea;if(Y)return this.tokens=Y&&Y.value?Y.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var Gzi;var h3J;_.Kc({_template:function(){if(h3J!==void 0)return h3J;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
var S=Y.content,P=S.insertBefore;Gzi===void 0&&(Gzi=document.createElement("template"));var u=Gzi;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return h3J=Y},
is:"tp-yt-iron-collapse",behaviors:[_.G8],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(Y,S){Y=Y==="auto"?"":Y;S=S&&!this.noAnimation&&this.isAttached&&this._desiredSize!==Y;this._desiredSize=Y;this._updateTransition(!1);S&&(S=this._calcSize(),Y===""&&(this.style[this._dimensionMax]="",Y=this._calcSize()),this.style[this._dimensionMax]=S,this.scrollTop=this.scrollTop,this._updateTransition(!0),S=Y!==S);this.style[this._dimensionMax]=Y;S||this._transitionEnd()},
enableTransition:function(Y){_.bv._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!Y},
_updateTransition:function(Y){this.style.transitionDuration=Y&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(Y){_.G5(Y).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var vI3;var DEf;var Iwf=void 0,awh={properties:{sizingTarget:{type:Object,value:function(){var Y;return(Y=this.hostElement)!=null?Y:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var Y,S=_.G5((Y=this.hostElement)!=null?Y:
this).parentNode;S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(S=S.host);return S},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var Y;this._memoizedIsRTL=window.getComputedStyle((Y=this.hostElement)!=null?Y:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var Y;window.getComputedStyle((Y=this.hostElement)!=null?Y:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var Y,S=window.getComputedStyle((Y=this.hostElement)!=null?Y:this);Y=window.getComputedStyle(this.sizingTarget);var P,u,W;this._fitInfo={inlineStyle:{top:((P=this.hostElement)!=null?P:this).style.top||"",left:((u=this.hostElement)!=null?u:this).style.left||"",position:((W=this.hostElement)!=null?W:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:S.top!=="auto"?"top":S.bottom!=="auto"?"bottom":null,horizontally:S.left!=="auto"?"left":S.right!=="auto"?"right":null},sizedBy:{height:Y.maxHeight!=="none",width:Y.maxWidth!=="none",minWidth:parseInt(Y.minWidth,10)||0,minHeight:parseInt(Y.minHeight,10)||0},margin:{top:parseInt(S.marginTop,10)||0,right:parseInt(S.marginRight,10)||0,bottom:parseInt(S.marginBottom,10)||0,left:parseInt(S.marginLeft,10)||0}}}},
resetFit:function(){var Y=this._fitInfo||{},S;for(S in Y.sizerInlineStyle)this.sizingTarget.style[S]=Y.sizerInlineStyle[S];for(S in Y.inlineStyle){var P=void 0;((P=this.hostElement)!=null?P:this).style[S]=Y.inlineStyle[S]}this._fitInfo=null},
refit:function(){var Y=this.sizingTarget.scrollLeft,S=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=Y;this.sizingTarget.scrollTop=S},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var Y;((Y=this.hostElement)!=null?Y:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var S;((S=this.hostElement)!=null?S:this).style.left="0px";var P;((P=this.hostElement)!=null?P:this).style.top="0px";var u,W=((u=this.hostElement)!=null?u:this).getBoundingClientRect();S=this.__getNormalizedRect(this.positionTarget);u=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(u={left:u.left+24,right:u.right-24,top:u.top+24,bottom:u.bottom-24});if(this.expandSizingTargetForScrollbars){var m=this.sizingTarget.offsetWidth;var J=this.sizingTarget.offsetHeight;var c=this.sizingTarget.clientWidth;var C=this.sizingTarget.clientHeight}Y=this._fitInfo.margin;S=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:W.width+Y.left+Y.right,height:W.height+Y.top+Y.bottom},W,S,u);var x=S.left+Y.left,b=S.top+Y.top;P=Math.min(u.right-Y.right,x+W.width);var T=Math.min(u.bottom-
Y.bottom,b+W.height);x=Math.max(u.left+Y.left,Math.min(x,P-this._fitInfo.sizedBy.minWidth));b=Math.max(u.top+Y.top,Math.min(b,T-this._fitInfo.sizedBy.minHeight));P=Math.max(P-x,this._fitInfo.sizedBy.minWidth);T=Math.max(T-b,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=P+"px";this.sizingTarget.style.maxHeight=T+"px";x-=W.left;W=b-W.top;var K;((K=this.hostElement)!=null?K:this).style.left=x+"px";var G;((G=this.hostElement)!=null?G:this).style.top=W+"px";if(this.expandSizingTargetForScrollbars){K=
this.sizingTarget.offsetHeight;J=K-this.sizingTarget.clientHeight-(J-C);if(J>0){this.sizingTarget.style.maxHeight=Math.min(u.height-Y.top-Y.bottom,T+J)+"px";J=this.sizingTarget.offsetHeight;C=J-K;var v;S.verticalAlign==="top"?v=W:S.verticalAlign==="middle"?v=W-C/2:S.verticalAlign==="bottom"&&(v=W-C);v=Math.max(u.top+Y.top,Math.min(v,u.bottom-Y.bottom-J));var a;((a=this.hostElement)!=null?a:this).style.top=v+"px"}v=this.sizingTarget.offsetWidth;m=v-this.sizingTarget.clientWidth-(m-c);if(m>0){Iwf!==
void 0?c=Iwf:(c=document.createElement("div"),Object.assign(c.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),a=document.createElement("div"),a.style.width="200px",a.style.height="200px",c.appendChild(a),document.body.appendChild(c),Iwf=Math.abs(c.offsetWidth-100)>1?c.offsetWidth-c.clientWidth:0,document.body.removeChild(c),c=Iwf);this.sizingTarget.style.maxWidth=Math.min(u.width-Y.left-Y.right,P+m-c)+"px";m=this.sizingTarget.offsetWidth+c;c=m-v;var w;
S.horizontalAlign==="left"?w=x:S.horizontalAlign==="center"?w=x-c/2:S.horizontalAlign==="right"&&(w=x-c);w=Math.max(u.left+Y.left,Math.min(w,u.right-Y.right-m));var F;((F=this.hostElement)!=null?F:this).style.left=w+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var Y=this._fitInfo;if(!Y.positionedBy.vertically){var S;((S=this.hostElement)!=null?S:this).style.position="fixed";var P;((P=this.hostElement)!=null?P:this).style.top="0px"}if(!Y.positionedBy.horizontally){var u;((u=this.hostElement)!=null?u:this).style.position="fixed";var W;((W=this.hostElement)!=null?W:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var m;S=((m=this.hostElement)!=null?m:this).getBoundingClientRect();
Y.sizedBy.height||this.__sizeDimension(S,Y.positionedBy.vertically,"top","bottom","Height");Y.sizedBy.width||this.__sizeDimension(S,Y.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(Y,S,P,u,W){this.__sizeDimension(Y,S,P,u,W)},
__sizeDimension:function(Y,S,P,u,W){var m=this._fitInfo,J=this.__getNormalizedRect(this.fitInto);J=W==="Width"?J.width:J.height;Y=(S=S===u)?J-Y[u]:Y[P];P=m.margin[S?P:u];u="offset"+W;var c;m=((c=this.hostElement)!=null?c:this)[u]-this.sizingTarget[u];this.sizingTarget.style["max"+W]=J-P-Y-m+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var Y=this._fitInfo.positionedBy;if(!Y.vertically||!Y.horizontally){var S;((S=this.hostElement)!=null?S:this).style.position="fixed";if(!Y.vertically){var P;((P=this.hostElement)!=null?P:this).style.top="0px"}if(!Y.horizontally){var u;((u=this.hostElement)!=null?u:this).style.left="0px"}var W;S=((W=this.hostElement)!=null?W:this).getBoundingClientRect();W=this.__getNormalizedRect(this.fitInto);if(!Y.vertically){P=W.top-S.top+(W.height-
S.height)/2;var m;((m=this.hostElement)!=null?m:this).style.top=P+"px"}if(!Y.horizontally){Y=W.left-S.left+(W.width-S.width)/2;var J;((J=this.hostElement)!=null?J:this).style.left=Y+"px"}}}},
__getNormalizedRect:function(Y){return Y===document.documentElement||Y===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:Y.getBoundingClientRect()},
__getOffscreenArea:function(Y,S,P){return Math.abs(Math.min(0,Y.top)+Math.min(0,P.bottom-(Y.top+S.height)))*S.width+Math.abs(Math.min(0,Y.left)+Math.min(0,P.right-(Y.left+S.width)))*S.height},
__getPosition:function(Y,S,P,u,W,m){var J=[{verticalAlign:"top",horizontalAlign:"left",top:W.top+this.verticalOffset,left:W.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:W.top+this.verticalOffset,left:W.right-P.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:W.bottom-P.height-this.verticalOffset,left:W.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:W.bottom-P.height-this.verticalOffset,left:W.right-P.width-
this.horizontalOffset}];if(this.noOverlap){for(var c=0,C=J.length;c<C;c++){var x={},b;for(b in J[c])x[b]=J[c][b];J.push(x)}J[0].top=J[1].top+=W.height;J[2].top=J[3].top-=W.height;J[4].left=J[6].left+=W.width;J[5].left=J[7].left-=W.width}S=S==="auto"?null:S;Y=Y==="auto"?null:Y;Y&&Y!=="center"||(J.push({verticalAlign:"top",horizontalAlign:"center",top:W.top+this.verticalOffset+(this.noOverlap?W.height:0),left:W.left-u.width/2+W.width/2+this.horizontalOffset}),J.push({verticalAlign:"bottom",horizontalAlign:"center",
top:W.bottom-P.height-this.verticalOffset-(this.noOverlap?W.height:0),left:W.left-u.width/2+W.width/2+this.horizontalOffset}));S&&S!=="middle"||(J.push({verticalAlign:"middle",horizontalAlign:"left",top:W.top-u.height/2+W.height/2+this.verticalOffset,left:W.left+this.horizontalOffset+(this.noOverlap?W.width:0)}),J.push({verticalAlign:"middle",horizontalAlign:"right",top:W.top-u.height/2+W.height/2+this.verticalOffset,left:W.right-P.width-this.horizontalOffset-(this.noOverlap?W.width:0)}));S==="middle"&&
Y==="center"&&J.push({verticalAlign:"middle",horizontalAlign:"center",top:W.top-u.height/2+W.height/2+this.verticalOffset,left:W.left-u.width/2+W.width/2+this.horizontalOffset});for(c=0;c<J.length;c++){u=J[c];W=u.verticalAlign===S;C=u.horizontalAlign===Y;if(!this.dynamicAlign&&!this.noOverlap&&W&&C){var T=u;break}x=(!S||W)&&(!Y||C);if(this.dynamicAlign||x){u.offscreenArea=this.__getOffscreenArea(u,P,m);if(u.offscreenArea===0&&x){T=u;break}T=T||u;x=u.offscreenArea-T.offscreenArea;if(x<0||x===0&&(W||
C))T=u}}return T}};/*

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 dp,LAt,wLS;dp=Element.prototype;LAt=dp.matches||dp.matchesSelector||dp.mozMatchesSelector||dp.msMatchesSelector||dp.oMatchesSelector||dp.webkitMatchesSelector;wLS=function(){};
_.FA6=function(Y){var S=pLJ,P=[];return S._collectTabbableNodes(Y,P)?S._sortByTabIndex(P):P};
_.z=wLS.prototype;_.z._normalizedTabIndex=function(Y){return(LAt.call(Y,"input, select, textarea, button, object")?LAt.call(Y,":not([disabled])"):LAt.call(Y,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(Y=Y.getAttribute("tabindex")||0,Number(Y)):-1};
_.z._collectTabbableNodes=function(Y,S){if(Y.nodeType!==Node.ELEMENT_NODE||!this._isVisible(Y))return!1;var P=this._normalizedTabIndex(Y),u=P>0;P>=0&&S.push(Y);if(Y.localName==="content"||Y.localName==="slot")P=_.G5(Y).getDistributedNodes();else{var W;P=((W=_.G5(Y).shadowRoot)!=null?W:_.G5(Y.root||Y)).children}for(Y=0;Y<P.length;Y++)u=this._collectTabbableNodes(P[Y],S)||u;return u};
_.z._isVisible=function(Y){var S=Y.style;return S.visibility!=="hidden"&&S.display!=="none"?(S=window.getComputedStyle(Y),S.visibility!=="hidden"&&S.display!=="none"):!1};
_.z._sortByTabIndex=function(Y){var S=Y.length;if(S<2)return Y;var P=Math.ceil(S/2);S=this._sortByTabIndex(Y.slice(0,P));Y=this._sortByTabIndex(Y.slice(P));return this._mergeSortByTabIndex(S,Y)};
_.z._mergeSortByTabIndex=function(Y,S){for(var P=[];Y.length>0&&S.length>0;)this._hasLowerTabOrder(Y[0],S[0])?P.push(S.shift()):P.push(Y.shift());return P.concat(Y,S)};
_.z._hasLowerTabOrder=function(Y,S){Y=Math.max(Y.tabIndex,0);S=Math.max(S.tabIndex,0);return Y===0||S===0?S>Y:Y>S};
var pLJ=new wLS;var sqS;var dE_;_.Kc({_template:function(){if(dE_!==void 0)return dE_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;sqS===void 0&&(sqS=document.createElement("template"));var u=sqS;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return dE_=Y},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.G5(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.G5(this.parentNode).removeChild(this)},
_onTransitionend:function(Y){Y&&Y.target===this&&this.complete()},
_openedChanged:function(Y){Y?this.prepare():(Y=window.getComputedStyle(this),Y.transitionDuration!=="0s"&&Y.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var lr=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;IW(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)};
lr.prototype._bringOverlayAtIndexToFront=function(Y){var S=this._overlays[Y];if(S){var P=this._overlays.length-1,u=this._overlays[P];u&&this._shouldBeBehindOverlay(S,u)&&P--;if(!(Y>=P)){u=Math.max(this._getZ(_.lwt(this)),this._minimumZ);for(this._getZ(S)<=u&&this._applyOverlayZ(S,u);Y<P;)this._overlays[Y]=this._overlays[Y+1],Y++;this._overlays[P]=S}}};
lr.prototype.addOverlay=function(Y){var S=this._overlays.indexOf(Y);if(S>=0)this._bringOverlayAtIndexToFront(S);else{S=this._overlays.length;var P=this._overlays[S-1],u=Math.max(this._getZ(P),this._minimumZ),W=this._getZ(Y);P&&this._shouldBeBehindOverlay(Y,P)&&(this._applyOverlayZ(P,u),S--,u=Math.max(this._getZ(this._overlays[S-1]),this._minimumZ));W<=u&&this._applyOverlayZ(Y,u);this._overlays.splice(S,0,Y)}this.trackBackdrop()};
lr.prototype.removeOverlay=function(Y){Y=this._overlays.indexOf(Y);Y!==-1&&(this._overlays.splice(Y,1),this.trackBackdrop())};
_.lwt=function(Y){return Y._overlays[Y._overlays.length-1]};
_.z=lr.prototype;_.z.trackBackdrop=function(){var Y=this._overlayWithBackdrop();if(Y||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(Y)-1,this.backdropElement.opened=!!Y,this.backdropElement.prepare()};
_.z._overlayWithBackdrop=function(){for(var Y=this._overlays.length-1;Y>=0;Y--)if(this._overlays[Y].withBackdrop)return this._overlays[Y]};
_.z._getZ=function(Y){var S=this._minimumZ;if(Y){var P,u,W=Number(((P=Y.hostElement)!=null?P:Y).style.zIndex||window.getComputedStyle((u=Y.hostElement)!=null?u:Y).zIndex);W===W&&(S=W)}return S};
_.z._setZ=function(Y,S){var P;((P=Y.hostElement)!=null?P:Y).style.zIndex=S};
_.z._applyOverlayZ=function(Y,S){this._setZ(Y,S+2)};
_.z._overlayInPath=function(Y){Y=Y||[];for(var S=0;S<Y.length;S++){var P=void 0;if(((P=Y[S].polymerController)!=null?P:Y[S])._manager===this)return Y[S]}};
_.z._onCaptureClick=function(Y){var S=this._overlays.length-1;if(S!==-1)for(var P=_.G5(Y).path,u,W;(u=this._overlays[S])&&this._overlayInPath(P)!==((W=u.hostElement)!=null?W:u);)if(u._onCaptureClick(Y),u.allowClickThrough)S--;else break};
_.z._onCaptureFocus=function(Y){var S=_.lwt(this);S&&S._onCaptureFocus(Y)};
_.z._onCaptureKeyDown=function(Y){var S=_.lwt(this);S&&(_.x1.keyboardEventMatchesKeys(Y,"esc")?S._onCaptureEsc(Y):_.x1.keyboardEventMatchesKeys(Y,"tab")&&S._onCaptureTab(Y))};
_.z._shouldBeBehindOverlay=function(Y,S){return!Y.alwaysOnTop&&S.alwaysOnTop&&!S.contains(Y)};
_.y6.Object.defineProperties(lr.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var Y=document.activeElement;Y&&Y instanceof Element!==!1||(Y=document.body);for(;Y.root&&_.G5(Y.root).activeElement;)Y=_.G5(Y.root).activeElement;return Y}}});
_.XU=new lr;var qg9=0,Rka=0,xAu=null,bX8=[],h9=["wheel","mousewheel","DOMMouseScroll"],TIE;_.f("web_no_lock_on_touchstart_killswitch")&&(h9.push("touchstart"),h9.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;_.ZW={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:_.XU},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var Y;return this._focusedChild||_.G5((Y=this.hostElement)!=null?Y:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var Y;return _.FA6((Y=this.hostElement)!=null?Y:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var Y;this._observer=_.G5((Y=this.hostElement)!=null?Y:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var Y;_.G5((Y=this.hostElement)!=null?Y:this).unobserveNodes(this._observer)}this._observer=null;for(var S in this.__rafs)this.__rafs[S]!==null&&cancelAnimationFrame(this.__rafs[S]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(Y){this.fire("iron-overlay-canceled",Y,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var Y;((Y=this.hostElement)!=null?Y:this).style.outline="none";var S;((S=this.hostElement)!=null?S:this).style.display="none"}},
_openedChanged:function(Y){if(Y){var S;((S=this.hostElement)!=null?S:this).removeAttribute("aria-hidden")}else{var P;((P=this.hostElement)!=null?P:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var Y;if(this.withBackdrop&&!((Y=this.hostElement)!=null?Y:this).hasAttribute("tabindex")){var S;((S=this.hostElement)!=null?S:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var P;((P=this.hostElement)!=null?P:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var Y;((Y=this.hostElement)!=null?Y:this).style.display="none";var S;((S=this.hostElement)!=null?S:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var Y,S;((Y=this.hostElement)!=null?Y:this).style.transition=((S=this.hostElement)!=null?S:this).style.webkitTransition="none";var P,u;((P=this.hostElement)!=null?P:this).style.transform=((u=this.hostElement)!=null?u:this).style.webkitTransform="none";var W;((W=this.hostElement)!=null?W:this).style.display=""},
_finishPositioning:function(){var Y;((Y=this.hostElement)!=null?Y:this).style.display="none";this.scrollTop=this.scrollTop;var S,P;((S=this.hostElement)!=null?S:this).style.transition=((P=this.hostElement)!=null?P:this).style.webkitTransition="";var u,W;((u=this.hostElement)!=null?u:this).style.transform=((W=this.hostElement)!=null?W:this).style.webkitTransform="";var m;((m=this.hostElement)!=null?m:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var Y=this._manager.deepActiveElement,S;if(!(S=Y===document.body))a:{for(;Y;Y=Y.assignedSlot||Y.parentNode||Y.host)if(Y===this){S=!0;break a}S=!1}S&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(Y){this.noCancelOnOutsideClick||this.cancel(Y)},
_onCaptureFocus:function(Y){if(this.withBackdrop){var S=_.G5(Y).path;S.indexOf(this)===-1?(Y.stopPropagation(),this._applyFocus()):this._focusedChild=S[0]}},
_onCaptureEsc:function(Y){this.noCancelOnEscKey||this.cancel(Y)},
_onCaptureTab:function(Y){if(this.withBackdrop){this.__ensureFirstLastFocusables();var S=Y.shiftKey,P=S?this.__firstFocusableNode:this.__lastFocusableNode;S=S?this.__lastFocusableNode:this.__firstFocusableNode;if(P===S)P=!0;else{var u=this._manager.deepActiveElement;P=u===P||u===this}P&&(Y.preventDefault(),this._focusedChild=S,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var Y=this._focusableNodes;this.__firstFocusableNode=Y[0];this.__lastFocusableNode=Y[Y.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(Y,S){var P=this.__rafs;P[Y]!==null&&cancelAnimationFrame(P[Y]);P[Y]=requestAnimationFrame(function(){P[Y]=null;S.call(this)}.bind(this))},
__updateScrollObservers:function(Y,S,P){Y&&S&&this.__isValidScrollAction(P)?(P==="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),TIE=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(Y=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),Y!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(Y,1),TIE=_._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(sE)for(var Y=this;Y;)Y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Y.host&&this.__rootNodes.push(Y),Y=Y.host||Y.assignedSlot||Y.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(S){S.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(Y){Y.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(Y){return Y==="lock"||Y==="refit"||Y==="cancel"},
__onCaptureScroll:function(Y){if(!(this.__isAnimating||_.G5(Y).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(Y)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.ir=[awh,_.G8,_.ZW];_.Kc({_template:function(){if(DEf!==void 0)return DEf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;vI3===void 0&&(vI3=document.createElement("template"));var u=vI3;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return DEf=Y},
is:"tp-yt-iron-dropdown",behaviors:[_.br,_.x1,_.ir,bR6],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var Y=_.G5(this.$.content).getDistributedNodes(),S=0,P=Y.length;S<P;S++)if(Y[S].nodeType===Node.ELEMENT_NODE)return Y[S]},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(),_.ZW._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.ZW._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.ZW._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var Y=this.containedElement,S=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),P=0;P<S.length;P++)S[P].node=Y;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(Y){this._readied&&(Y?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var Y=this.focusTarget||this.containedElement;Y&&this.opened&&!this.noAutoFocus?Y.focus():_.ZW._applyFocus.apply(this,arguments)}});var XLh;var Z26;/*

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 i2i=new _.fD({type:"iconset"});
_.Kc({_template:function(){if(Z26!==void 0)return Z26;var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;XLh===void 0&&(XLh=document.createElement("template"));
var u=XLh;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return Z26=Y},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(Y){Y=(Y||"").split(":");this._iconName=Y.pop();this._iconsetName=Y.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.G5(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=i2i.byKey(this._iconsetName)){var Y=this._iconset.applyIcon(this,this._iconName,this.theme);Y&&Y.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.G5(this.root).appendChild(this._img)}});var oIf;var tFf;_.Kc({_template:function(){if(tFf!==void 0)return tFf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
var S=Y.content,P=S.insertBefore;oIf===void 0&&(oIf=document.createElement("template"));var u=oIf;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return tFf=Y},
is:"tp-yt-iron-input",behaviors:[_.$1],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(){_.sm.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.G5(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.G5(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var Y=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":Y=/[0-9.,e-]/}return Y},_bindValueChanged:function(Y,S){S&&(Y===void 0?S.value=null:Y!==S.value&&(this.inputElement.value=Y),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:Y}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(Y){var S=Y.keyCode==19||Y.keyCode==20||Y.keyCode==45||Y.keyCode==46||Y.keyCode==144||Y.keyCode==145||Y.keyCode>32&&Y.keyCode<41||Y.keyCode>111&&Y.keyCode<124;return!(Y.keyCode==8||Y.keyCode==9||Y.keyCode==13||Y.keyCode==27)&&!(Y.charCode==0&&S)},
_onKeypress:function(Y){if(this.allowedPattern||this.inputElement.type==="number"){var S=this._patternRegExp;if(S&&!(Y.metaKey||Y.ctrlKey||Y.altKey)){this._patternAlreadyChecked=!0;var P=String.fromCharCode(Y.charCode);this._isPrintable(Y)&&!S.test(P)&&(Y.preventDefault(),this._announceInvalidCharacter("Invalid character "+P+" not entered."))}}},
_checkPatternValidity:function(){var Y=this._patternRegExp;if(!Y)return!0;for(var S=0;S<this.inputElement.value.length;S++)if(!Y.test(this.inputElement.value[S]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var Y=this.inputElement.checkValidity();Y&&(this.required&&this.bindValue===""?Y=!1:this.hasValidator()&&(Y=_.$1.validate.call(this,this.bindValue)));this.invalid=!Y;this.fire("iron-input-validate");return Y},
_announceInvalidCharacter:function(Y){this.fire("iron-announce",{text:Y})},
_computeValue:function(Y){return Y}});var Aqs;var UE6;var QqU=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),kzm=QqU&&QqU[1]>=8;
_.Kc({_template:function(){if(UE6!==void 0)return UE6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Aqs===void 0&&(Aqs=document.createElement("template"));var u=Aqs;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return UE6=Y},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[VMa,_.G8,_.xw_,WZU],_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 _.G5(_.G5(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var Y=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,Y-this._physicalCount)},set _virtualStart(Y){Y=this._clamp(Y,0,this._maxVirtualStart);this.grid&&(Y-=Y%this._itemsPerRow);this._virtualStartVal=Y},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(Y){Y%=this._physicalCount;Y<0&&(Y=this._physicalCount+Y);this.grid&&(Y-=Y%this._itemsPerRow);this._physicalStartVal=Y},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(Y){this._physicalCountVal=Y},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var Y=this._firstVisibleIndexVal;if(Y==null){var S=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
Y=this._iterateItems(function(P,u){S+=this._getPhysicalSizeIncrement(P);if(S>this._scrollPosition)return this.grid?u-u%this._itemsPerRow:u;if(this.grid&&this._virtualCount-1===u)return u-u%this._itemsPerRow})||0}return Y},
get lastVisibleIndex(){var Y=this._lastVisibleIndexVal;if(Y==null){if(this.grid)Y=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var S=this._physicalTop+this._scrollOffset;this._iterateItems(function(P,u){S<this._scrollBottom&&(Y=u);S+=this._getPhysicalSizeIncrement(P)})}this._lastVisibleIndexVal=Y}return Y},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.TR);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(Y){this.style.webkitOverflowScrolling=Y===this?"touch":"";this.style.overflowY=Y===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.TR)},
updateViewportBoundaries:function(){var Y=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(Y["padding-top"],10);this._isRTL=Y.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var Y=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),S=Y-this._scrollPosition,P=S>=0;this._scrollPosition=Y;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(S)>this._physicalSize&&this._physicalSize>0?(S-=this._scrollOffset,P=Math.round(S/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=P,this._physicalStart+=P,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(Y=this._getReusables(P),P?(this._physicalTop=Y.physicalTop,this._virtualStart+=Y.indexes.length,this._physicalStart+=Y.indexes.length):(this._virtualStart=this._virtualStart-Y.indexes.length,this._physicalStart=this._physicalStart-Y.indexes.length),this._update(Y.indexes,P?null:Y.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),wu))},
_getReusables:function(Y){var S=[],P=this._hiddenContentSize*this._ratio,u=this._virtualStart,W=this._virtualEnd,m=this._physicalCount,J=this._physicalTop+this._scrollOffset;var c=this._physicalBottom+this._scrollOffset;var C=this._scrollPosition,x=this._scrollBottom;if(Y){var b=this._physicalStart;c=C-J}else b=this._physicalEnd,c-=x;for(;;){var T=this._getPhysicalSizeIncrement(b);c-=T;if(S.length>=m||c<=P)break;if(Y){if(W+S.length+1>=this._virtualCount)break;if(J+T>=C-this._scrollOffset)break;S.push(b);
J+=T;b=(b+1)%m}else{if(u-S.length<=0)break;if(J+this._physicalSize-T<=x)break;S.push(b);J-=T;b=b===0?m-1:b-1}}return{indexes:S,physicalTop:J-this._scrollOffset}},
_update:function(Y,S){if(!(Y&&Y.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(Y);this._updateMetrics(Y);if(S)for(;S.length;)Y=S.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(Y);this._positionItems();this._updateScrollerSize()}},
_createPool:function(Y){this._ensureTemplatized();var S,P=Array(Y);for(S=0;S<Y;S++){var u=this.stamp(null);P[S]=u.root.querySelector("*");this._itemsParent.appendChild(u.root)}return P},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(Y){Y=this._clamp(this._physicalCount+Y,3,this._virtualCount-this._virtualStart);Y=this._convertIndexToCompleteRow(Y);if(this.grid){var S=Y%this._itemsPerRow;S&&Y-S<=this._physicalCount&&(Y+=this._itemsPerRow);Y-=S}Y-=this._physicalCount;S=Math.round(this._physicalCount*.5);if(!(Y<0)){if(Y>0){S=window.performance.now();[].push.apply(this._physicalItems,this._createPool(Y));for(var P=0;P<Y;P++)this._physicalSizes.push(0);this._physicalCount+=Y;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=Y);this._update();this._templateCost=(window.performance.now()-S)/Y;S=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||S===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,S)),iMf):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,S),wu))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var Y=this._getReusables(!0);this._physicalTop=Y.physicalTop;this._virtualStart+=Y.indexes.length;this._physicalStart+=Y.indexes.length;this._update(Y.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var Y={__key__:!0};Y[this.as]=!0;Y[this.indexAs]=!0;Y[this.selectedAs]=!0;Y.tabIndex=!0;this._instanceProps=Y;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(Y,S){typeof S!=="undefined"&&(this.notifyResize(),_.mT(),Y&&this._updateGridMetrics())},
_itemsChanged:function(Y){if(Y.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.TR);else if(Y.path==="items.splices"){this._adjustVirtualIndex(Y.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(Y.value.indexSplices.some(function(P){return P.addedCount>0||P.removed.length>0})){var S=this._getActiveElement();
this.contains(S)&&S.blur()}Y=Y.value.indexSplices.some(function(P){return P.index+P.addedCount>=this._virtualStart&&P.index<=this._virtualEnd},this);
this._isClientFull()&&!Y||this._debounce("_render",this._render,_.TR)}else Y.path!=="items.length"&&this._forwardItemPath(Y.path,Y.value)},
_forwardItemPath:function(Y,S){Y=Y.slice(6);var P=Y.indexOf(".");P===-1&&(P=Y.length);var u,W=this.modelForElement(this._offscreenFocusedItem),m=parseInt(Y.substring(0,P),10);if(u=this._isIndexRendered(m)){var J=this._getPhysicalIndex(m);var c=this.modelForElement(this._physicalItems[J])}else W&&(c=W);c&&c[this.indexAs]===m&&(Y=Y.substring(P+1),Y=this.as+(Y?"."+Y:""),c._setPendingPropertyOrPath(Y,S,!1,!0),c._flushProperties&&c._flushProperties(),u&&(this._updateMetrics([J]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(Y){Y.forEach(function(S){S.removed.forEach(this._removeItem,this);S.index<this._virtualStart&&(S=Math.max(S.addedCount-S.removed.length,S.index-this._virtualStart),this._virtualStart+=S,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=S))},this)},
_removeItem:function(Y){this.$.selector.deselect(Y);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===Y&&this._removeFocusedItem()},
_iterateItems:function(Y,S){var P,u;if(arguments.length===2&&S)for(u=0;u<S.length;u++){var W=S[u];var m=this._computeVidx(W);if((P=Y.call(this,W,m))!=null)return P}else{W=this._physicalStart;for(m=this._virtualStart;W<this._physicalCount;W++,m++)if((P=Y.call(this,W,m))!=null)return P;for(W=0;W<this._physicalStart;W++,m++)if((P=Y.call(this,W,m))!=null)return P}},
_computeVidx:function(Y){return Y>=this._physicalStart?this._virtualStart+(Y-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+Y},
_assignModels:function(Y){this._iterateItems(function(S,P){var u=this._physicalItems[S],W=this.items&&this.items[P];if(W!=null){var m=this.modelForElement(u);m.__key__=null;this._forwardProperty(m,this.as,W);this._forwardProperty(m,this.selectedAs,this.$.selector.isSelected(W));this._forwardProperty(m,this.indexAs,P);this._forwardProperty(m,"tabIndex",this._focusedVirtualIndex===P?0:-1);this._physicalIndexForKey[m.__key__]=S;m._flushProperties&&m._flushProperties(!0);u.removeAttribute("hidden")}else u.setAttribute("hidden",
"")},Y)},
_updateMetrics:function(Y){_.mT();var S=0,P=0,u=this._physicalAverageCount,W=this._physicalAverage;this._iterateItems(function(m){P+=this._physicalSizes[m];this._physicalSizes[m]=this._physicalItems[m].offsetHeight;S+=this._physicalSizes[m];this._physicalAverageCount+=this._physicalSizes[m]?1:0},Y);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(P=this._itemsPerRow===1?P:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+S-P,this._itemsPerRow=1);this._physicalAverageCount!==u&&(this._physicalAverage=Math.round((W*u+S)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var Y=this._physicalTop;if(this.grid){var S=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(P,u){var W=Math.floor(u%this._itemsPerRow*this._itemWidth+S);this._isRTL&&(W*=-1);this.translate3d(W+"px",Y+"px",0,this._physicalItems[P]);this._shouldRenderNextRow(u)&&(Y+=this._rowHeight)})}else this._iterateItems(function(P){this.translate3d(0,Y+"px",0,this._physicalItems[P]);
Y+=this._physicalSizes[P]})},
_getPhysicalSizeIncrement:function(Y){return this.grid?this._computeVidx(Y)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[Y]},
_shouldRenderNextRow:function(Y){return Y%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var Y=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(Y!==0){this._physicalTop=this._physicalTop-Y;var S=this._scrollPosition;!kzm&&S>0&&this._resetScrollPosition(S-Y)}},
_resetScrollPosition:function(Y){this.scrollTarget&&Y>=0&&(this._scrollPosition=this._scrollTop=Y)},
_updateScrollerSize:function(Y){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((Y=(Y=(Y=Y||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(Y){return this.scrollToIndex(this.items.indexOf(Y))},
scrollToIndex:function(Y){if(!(typeof Y!=="number"||Y<0||Y>this.items.length-1)&&(_.mT(),this._physicalCount!==0)){Y=this._clamp(Y,0,this._virtualCount-1);if(!this._isIndexRendered(Y)||Y>=this._maxVirtualStart)this._virtualStart=this.grid?Y-this._itemsPerRow*2:Y-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var S=this._physicalStart,P=this._virtualStart,u=0,W=this._hiddenContentSize;P<Y&&
u<=W;)u+=this._getPhysicalSizeIncrement(S),S=(S+1)%this._physicalCount,P++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+u);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)},_.TR)},
selectItem:function(Y){return this.selectIndex(this.items.indexOf(Y))},
selectIndex:function(Y){if(!(Y<0||Y>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(Y)){var S=this.modelForElement(this._physicalItems[this._getPhysicalIndex(Y)]);S&&(S[this.selectedAs]=!0);this.updateSizeForIndex(Y)}this.$.selector.selectIndex(Y)}},
deselectItem:function(Y){return this.deselectIndex(this.items.indexOf(Y))},
deselectIndex:function(Y){Y<0||Y>=this._virtualCount||(this._isIndexRendered(Y)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(Y)])[this.selectedAs]=!1,this.updateSizeForIndex(Y)),this.$.selector.deselectIndex(Y))},
toggleSelectionForItem:function(Y){return this.toggleSelectionForIndex(this.items.indexOf(Y))},
toggleSelectionForIndex:function(Y){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(Y):this.$.selector.isSelected(this.items[Y]))?this.deselectIndex(Y):this.selectIndex(Y)},
clearSelection:function(){this._iterateItems(function(Y){this.modelForElement(this._physicalItems[Y])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(Y){(Y?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(Y){var S=this.modelForElement(Y.target);if(S){var P=_.G5(Y).path[0];Y=this._getActiveElement();var u=this._physicalItems[this._getPhysicalIndex(S[this.indexAs])];if(P.localName!=="input"&&P.localName!=="button"&&P.localName!=="select"){P=S.tabIndex;S.tabIndex=-100;var W=Y?Y.tabIndex:-1;S.tabIndex=P;Y&&u!==Y&&u.contains(Y)&&W!==-100||this.toggleSelectionForItem(S[this.as])}}},
_multiSelectionChanged:function(Y){this.clearSelection();this.$.selector.multi=Y},
updateSizeForItem:function(Y){return this.updateSizeForIndex(this.items.indexOf(Y))},
updateSizeForIndex:function(Y){if(!this._isIndexRendered(Y))return null;this._updateMetrics([this._getPhysicalIndex(Y)]);this._positionItems();return null},
_manageFocus:function(){var Y=this._focusedVirtualIndex;Y>=0&&Y<this._virtualCount?this._isIndexRendered(Y)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(Y){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(Y/this._itemsPerRow)*this._itemsPerRow:Y},
_isIndexRendered:function(Y){return Y>=this._virtualStart&&Y<=this._virtualEnd},
_isIndexVisible:function(Y){return Y>=this.firstVisibleIndex&&Y<=this.lastVisibleIndex},
_getPhysicalIndex:function(Y){return(this._physicalStart+(Y-this._virtualStart))%this._physicalCount},
focusItem:function(Y){this._focusPhysicalItem(Y)},
_focusPhysicalItem:function(Y){if(!(Y<0||Y>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(Y)||this.scrollToIndex(Y);var S=this._physicalItems[this._getPhysicalIndex(Y)],P=this.modelForElement(S),u;P.tabIndex=-100;S.tabIndex===-100&&(u=S);u||(u=_.G5(S).querySelector('[tabindex="-100"]'));P.tabIndex=0;this._focusedVirtualIndex=Y;u&&u.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var Y=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var S=this.stamp(null);this._focusBackfillItem=S.root.querySelector("*");this._itemsParent.appendChild(S.root)}this._offscreenFocusedItem=this._physicalItems[Y];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[Y]=this._focusBackfillItem;this._focusedPhysicalIndex=Y;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var Y=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),S=this._physicalItems[Y];if(S){var P=this.modelForElement(S),u=this.modelForElement(this._offscreenFocusedItem);P[this.as]===u[this.as]?(this._focusBackfillItem=S,P.tabIndex=-1,this._physicalItems[Y]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(Y){Y=this.modelForElement(Y.target);var S=this.modelForElement(this._focusedItem),P=this._offscreenFocusedItem!==null,u=this._focusedVirtualIndex;Y&&(S===Y?this._isIndexVisible(u)||this.scrollToIndex(u):(this._restoreFocusedItem(),S&&(S.tabIndex=-1),Y.tabIndex=0,this._focusedVirtualIndex=u=Y[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(u),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],P&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(Y){switch(Y.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&Y.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&Y.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(Y)}},
_clamp:function(Y,S,P){return Math.min(P,Math.max(S,Y))},
_debounce:function(Y,S,P){this._debouncers=this._debouncers||{};this._debouncers[Y]=_.Sp(this._debouncers[Y],P,S.bind(this));_.Pm(this._debouncers[Y])},
_forwardProperty:function(Y,S,P){Y._setPendingProperty(S,P)},
_forwardHostPropV2:function(Y,S){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(P){P&&this.modelForElement(P).forwardHostProp(Y,S)},this)},
_notifyInstancePropV2:function(Y,S,P){DwK(this.as,S)&&(Y=Y[this.indexAs],S==this.as&&(this.items[Y]=P),this.notifyPath(ce(this.as,"items."+Y,S),P))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(Y,S,P){S.indexOf(this.as+".")===0&&this.notifyPath("items."+Y.__key__+"."+S.slice(this.as.length+1),P)},
_forwardParentPath:function(Y,S){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(P){P&&this.modelForElement(P).notifyPath(Y,S)},this)},
_forwardParentProp:function(Y,S){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(P){P&&(this.modelForElement(P)[Y]=S)},this)},
_getActiveElement:function(){var Y=this._itemsParent.node.domHost;return _.G5(Y?Y.root:document).activeElement},
_scrollTargetChanged:function(Y,S){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(S)if(Y==="document")this.scrollTarget=this._doc;else if(typeof Y==="string"){var P,u;this.scrollTarget=(S=(u=(P=this.domHost)==null?void 0:P.polymerController)!=null?u:this.domHost)&&S.$?S.$[Y]:_.G5(this.ownerDocument).querySelector("#"+Y)}else this._isValidScrollTarget()&&(this._oldScrollTarget=Y,this._toggleScrollListener(this._shouldHaveListener,Y))}});var MFf;var yqs;var Nvs=function(Y,S,P,u){Y-=P;S-=u;return Math.sqrt(Y*Y+S*S)},H2d=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
K01.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var EQh=function(Y){Y.maxRadius=0;Y.mouseDownStart=0;Y.mouseUpStart=0;Y.xStart=0;Y.yStart=0;Y.xEnd=0;Y.yEnd=0;Y.containerMetrics=new K01(Y.element)};
flX.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var Y=H2d()-this.mouseDownStart;this.mouseUpStart&&(Y-=this.mouseUpElapsed);return Y},get mouseUpElapsed(){return this.mouseUpStart?H2d()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var Y=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(Y*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-Y/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var Y=this.radius/(this.containerMetrics.size/2);var S=this.xNow-this.containerMetrics.width/2;var P=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+S+"px, "+P+"px)";this.waveContainer.style.transform="translate3d("+S+"px, "+P+"px, 0)";this.wave.style.webkitTransform="scale("+Y+","+Y+")";this.wave.style.transform="scale3d("+Y+","+Y+",1)"},
downAction:function(Y){var S=this.containerMetrics.width/2,P=this.containerMetrics.height/2;EQh(this);this.mouseDownStart=H2d();this.center?(this.xStart=S,this.yStart=P):(this.xStart=Y?Y.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=Y?Y.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=S,this.yEnd=P);Y=this.containerMetrics;S=this.xStart;P=this.yStart;this.maxRadius=Math.max(Nvs(S,P,0,0),Nvs(S,P,
Y.width,0),Nvs(S,P,0,Y.height),Nvs(S,P,Y.width,Y.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=H2d())},
remove:function(){_.G5(_.G5(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.Kc({_template:function(){if(yqs!==void 0)return yqs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;MFf===void 0&&(MFf=document.createElement("template"));var u=MFf;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return yqs=Y},
is:"tp-yt-paper-ripple",behaviors:[_.x1],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(){_.G5(this).parentNode.nodeType==11?this.keyEventTarget=_.G5(this).getOwnerRoot().host:this.keyEventTarget=_.G5(this).parentNode;var Y=this.keyEventTarget;this.listen(Y,"up","uiUpAction");this.listen(Y,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(Y){Y.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var Y=0;Y<this.ripples.length;++Y)if(!this.ripples[Y].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(Y){this.noink||this.downAction(Y)},
downAction:function(Y){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(Y),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(Y){this.noink||this.upAction(Y)},
upAction:function(Y){this.holdDown||(this.ripples.forEach(function(S){S.upAction(Y)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var Y=0;Y<this.ripples.length;++Y){var S=this.ripples[Y];S.isOpacityFullyDecayed&&!S.isRestingAtMaxRadius&&this.removeRipple(S)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var Y=new flX(this);_.G5(this.$.waves).appendChild(Y.waveContainer);this.$.background.style.backgroundColor=Y.color;this.ripples.push(Y);this._setAnimating(!0);return Y},
removeRipple:function(Y){var S=this.ripples.indexOf(Y);S<0||(this.ripples.splice(S,1),Y.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var Y;for(Y=0;Y<this.ripples.length;++Y){var S=this.ripples[Y];S.draw();this.$.background.style.opacity=S.outerOpacity;S.isOpacityFullyDecayed&&!S.isRestingAtMaxRadius&&this.removeRipple(S)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(Y,S){S!==void 0&&(Y?this.downAction():this.upAction())}});var oS={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(Y){T8._downHandler.call(this,Y);this.pressed&&this.ensureRipple(Y)},
ensureRipple:function(Y){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var S=this._rippleContainer||this.root;S&&_.G5(S).appendChild(this._ripple);if(Y){S=_.G5(this._rippleContainer||this);var P=_.G5(Y).rootTarget;S.deepContains(P)&&this._ripple.uiDownAction(Y)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(Y){this.hasRipple()&&(this._ripple.noink=Y)}};var VFh={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var Y=1;this.disabled?Y=0:this.active||this.pressed?Y=4:this.receivedFocusFromKeyboard&&(Y=3);this._setElevation(Y)},
_computeKeyboardClass:function(Y){this.toggleClass("keyboard-focus",Y)},
_spaceKeyDownHandler:function(Y){T8._spaceKeyDownHandler.call(this,Y);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(Y){T8._spaceKeyUpHandler.call(this,Y);this.hasRipple()&&this._ripple.uiUpAction()}},e3d=[WRf,
_.br,oS,VFh];_.O2u={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(Y){Y&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=Y)},
_createRipple:function(){var Y=oS._createRipple();Y.id="ink";Y.setAttribute("center","");Y.classList.add("circle");return Y}};
_.YsU=[WRf,_.br,oS,_.O2u];_.Sst=[_.YsU,ns3,{_checkedChanged:function(){mwd._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){oS._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var PJU;var uWd;var WFh=function(){};
_.z=WFh.prototype;_.z.registered=function(){};
_.z.addOwnKeyBinding=function(){};
_.z.removeOwnKeyBindings=function(){};
_.z.keyboardEventMatchesKeys=function(){};
_.z._collectKeyBindings=function(){};
_.z._prepKeyBindings=function(){};
_.z._addKeyBinding=function(){};
_.z._resetKeyEventListeners=function(){};
_.z._listenKeyEventListeners=function(){};
_.z._unlistenKeyEventListeners=function(){};
_.z._onKeyBindingEvent=function(){};
_.z._triggerKeyHandler=function(){};
_.z._tapHandler=function(){};
_.z._focusChanged=function(){};
_.z._detectKeyboardFocus=function(){};
_.z._userActivate=function(){};
_.z._upHandler=function(){};
_.z._asyncClick=function(){};
_.z._pressedChanged=function(){};
_.z._ariaActiveAttributeChanged=function(){};
_.z._activeChanged=function(){};
_.z._controlStateChanged=function(){};
_.z._changedButtonState=function(){};
_.z._focusBlurHandler=function(){};
_.z._disabledChanged=function(){};
_.z._changedControlState=function(){};
_.z._buttonStateChanged=function(){};
_.z._downHandler=function(){};
_.z.ensureRipple=function(){};
_.z.getRipple=function(){};
_.z.hasRipple=function(){};
_.z._createRipple=function(){};
_.z._noinkChanged=function(){};
_.z._computeKeyboardClass=function(){};
_.z._spaceKeyDownHandler=function(){};
_.z._spaceKeyUpHandler=function(){};
_.z._setPressed=function(){};
_.z._setPointerDown=function(){};
_.z._setReceivedFocusFromKeyboard=function(){};
_.z._setFocused=function(){};
_.z._setElevation=function(){};
WFh=_.Kc({_template:function(){if(uWd!==void 0)return uWd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
var S=Y.content,P=S.insertBefore;PJU===void 0&&(PJU=document.createElement("template"));var u=PJU;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return uWd=Y},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[e3d],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?VFh._calculateElevation.apply(this):this._setElevation(0)}});var z66;var mFd;var naJ={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(Y){_.f("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(Y)},
_onDialogClickWrapped:function(Y){_.f("dialog_behavior_no_tap_killswitch")||this._onDialogClick(Y)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(Y,S){S&&(Y?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(Y){this.closingReason=this.closingReason||{};this.closingReason.confirmed=Y},
_onDialogClick:function(Y){for(var S=_.G5(Y).path,P=0,u,W=S.indexOf((u=this.hostElement)!=null?u:this);P<W;P++)if(u=S[P],u.hasAttribute&&(u.hasAttribute("dialog-dismiss")||u.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(u.hasAttribute("dialog-confirm"));this.close();Y.stopPropagation();break}}},jf6=[_.ir,
naJ];var Jhd=document.createElement("template");_.h(Jhd,'<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(Jhd.content);var BHi=document.createElement("template");_.h(BHi,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(BHi.content);_.Kc({_template:function(){if(mFd!==void 0)return mFd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
var S=Y.content,P=S.insertBefore;z66===void 0&&(z66=document.createElement("template"));var u=z66;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return mFd=Y},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[jf6,bR6],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 chm;var CJm;_.Kc({_template:function(){if(CJm!==void 0)return CJm;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;chm===void 0&&(chm=document.createElement("template"));var u=chm;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return CJm=Y},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var Y,S,P;if(((Y=window.ShadyDOM)==null?void 0:Y.noPatch)!==!0&&((S=window.ShadyDOM)==null?void 0:S.noPatch)!=="on-demand"||((P=this.__shady_parentNode)==null?void 0:P.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(naJ)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var qsS=_.Q0(['<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>']),R6f=_.J6d(qsS);R6f.setAttribute("style","display: none;");document.head.appendChild(R6f.content);var xFf;var b6t;var THs;var KFd;_.Kc({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[hn],configure:function(Y){var S=Y.node,P=S.getBoundingClientRect().height;return this._effect=new KeyframeEffect(S,[{height:P/2+"px"},{height:P+"px"}],this.timingFromConfig(Y))}});
_.Kc({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[hn],configure:function(Y){var S=Y.node,P=S.getBoundingClientRect().width;return this._effect=new KeyframeEffect(S,[{width:P/2+"px"},{width:P+"px"}],this.timingFromConfig(Y))}});
_.Kc({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[hn],configure:function(Y){var S=Y.node,P=S.getBoundingClientRect().width;return this._effect=new KeyframeEffect(S,[{width:P+"px"},{width:P-P/20+"px"}],this.timingFromConfig(Y))}});
_.Kc({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[hn],configure:function(Y){var S=Y.node,P=S.getBoundingClientRect().height;this.setPrefixedProperty(S,"transformOrigin","0 0");return this._effect=new KeyframeEffect(S,[{height:P+"px",transform:"translateY(0)"},{height:P/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(Y))}});var tn={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Eau=function(){};
_.z=Eau.prototype;_.z.registered=function(){};
_.z.addOwnKeyBinding=function(){};
_.z.removeOwnKeyBindings=function(){};
_.z.keyboardEventMatchesKeys=function(){};
_.z._collectKeyBindings=function(){};
_.z._prepKeyBindings=function(){};
_.z._addKeyBinding=function(){};
_.z._resetKeyEventListeners=function(){};
_.z._listenKeyEventListeners=function(){};
_.z._unlistenKeyEventListeners=function(){};
_.z._onKeyBindingEvent=function(){};
_.z._triggerKeyHandler=function(){};
_.z._focusBlurHandler=function(){};
_.z._changedControlState=function(){};
_.z._setFocused=function(){};
Eau=_.Kc({_template:function(){if(KFd!==void 0)return KFd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;THs===void 0&&(THs=document.createElement("template"));var u=THs;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return KFd=Y},
is:"tp-yt-paper-menu-button",behaviors:[_.x1,_.br],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:tn.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:tn.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:tn.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var Y=_.G5(this.$.content).getDistributedNodes(),S=0,P=Y.length;S<P;S++)if(Y[S].nodeType===Node.ELEMENT_NODE)return Y[S]},toggle:function(){this.opened?this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(Y,S){Y?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):S!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(Y){_.br._disabledChanged.apply(this,arguments);Y&&this.opened&&this.close()},
__onIronOverlayCanceled:function(Y){var S=this.$.trigger;_.G5(Y.detail).path.indexOf(S)>-1&&Y.preventDefault()}});
Object.keys(tn).forEach(function(Y){Eau[Y]=tn[Y]});var f_f=_.KD.IronButtonState,ga_=(0,_.xf)(HTMLElement);
_.Kc({_template:function(){if(b6t!==void 0)return b6t;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;xFf===void 0&&(xFf=document.createElement("template"));var u=xFf;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return b6t=Y},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[f_f,_.br,oS,_.Em,_.$1],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(Y){var S=(0,_.bg)(this);S.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:Y});S.shadowRoot.appendChild(Y);return ga_.prototype._attachDom.call(this,Y)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var Y=this.contentElement;Y&&Y.selectedItem&&this._setSelectedItem(Y.selectedItem)},
get contentElement(){for(var Y=_.G5(this.$.content).getDistributedNodes(),S=0,P=Y.length;S<P;S++)if(Y[S].nodeType===Node.ELEMENT_NODE)return Y[S]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(Y){this._setSelectedItem(Y.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(Y){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y)===this&&this.open()},
_selectedItemChanged:function(Y){var S="";Y?S=Y.label||Y.getAttribute("label")||Y.textContent.trim():S="";this.value=S;this._setSelectedItemLabel(S)},
_computeMenuVerticalOffset:function(Y,S){return S?S:Y?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var Y=this.opened?"true":"false",S=this.contentElement;S&&S.setAttribute("aria-expanded",Y)},
_computeLabelClass:function(Y,S,P){var u="label";if(Y)P&&(u+=" label-is-hidden");else if(P||S)u+=" label-is-floating";return u},
_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 $F_;var rhU;_.Kc({is:"tp-yt-paper-icon-button",_template:function(){if(rhU!==void 0)return rhU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;$F_===void 0&&($F_=document.createElement("template"));var u=$F_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return rhU=Y},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.YsU],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(Y,S){var P=this.getAttribute("aria-label");P&&S!=P||this.setAttribute("aria-label",Y)}});var GtL;var h6f;_.An=[WRf,_.br,{hostAttributes:{role:"option",tabindex:"0"}}];_.Kc({_template:function(){if(h6f!==void 0)return h6f;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;GtL===void 0&&(GtL=document.createElement("template"));var u=GtL;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return h6f=Y},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.An]});var va_;var DFf;var I_6={attached:function(){this.fire("addon-attached")},
update:function(){}};var a_J=1,LFL=1,wBf=1,pBf=[_.br,_.x1,{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();!yU&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(Y,S){Y?Y=Y+" "+S:Y=S;return Y},
_onAddonAttached:function(Y){Y=_.G5(Y).rootTarget;if(Y.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,Y.id);else{var S="paper-input-add-on-"+LFL++;Y.id=S;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,S)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(Y){_.br._focusBlurHandler.call(this,Y);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var Y=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",Y);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(Y){try{var S=this.inputElement.selectionStart;this.value=Y;this.inputElement.selectionStart=S;this.inputElement.selectionEnd=S}catch(P){this.value=Y}},
_computeAlwaysFloatLabel:function(Y,S){return S||Y},
_updateAriaLabelledBy:function(){var Y=_.G5(this.root).querySelector("label");if(Y){if(Y.id)var S=Y.id;else S="paper-input-label-"+a_J++,Y.id=S;this._ariaLabelledBy=S}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+wBf++)},
_onChange:function(Y){this.shadowRoot&&this.fire(Y.type,{sourceEvent:Y},{node:this,bubbles:Y.bubbles,cancelable:Y.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var Y=document.activeElement;Y instanceof HTMLElement&&Y!==document.body&&Y!==document.documentElement||this._focusableElement.focus()}}}];var FFL;var sf_;_.Kc({_template:function(){if(sf_!==void 0)return sf_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;FFL===void 0&&(FFL=document.createElement("template"));var u=FFL;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return sf_=Y},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[I_6],properties:{_charCounterStr:{type:String,value:"0"}},update:function(Y){if(Y.inputElement){Y.value=Y.value||"";var S=Y.value.toString().length.toString();Y.inputElement.hasAttribute("maxlength")&&(S+="/"+Y.inputElement.getAttribute("maxlength"));this._charCounterStr=S}}});var dFJ;var l_t;_.Kc({_template:function(){if(l_t!==void 0)return l_t;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;dFJ===void 0&&(dFJ=document.createElement("template"));var u=dFJ;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return l_t=Y},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return mu(this.attrForValue)},get _inputElement(){return _.G5(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(Y){this._addons||(this._addons=[]);Y=Y.target;this._addons.indexOf(Y)===-1&&(this._addons.push(Y),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(Y){this._handleValueAndAutoValidate(Y.target)},
_onValueChanged:function(Y){var S=Y.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,S.value===void 0||S.value===""))return;this._handleValueAndAutoValidate(Y.target)},
_handleValue:function(Y){var S=this._inputElementValue;S||S===0||Y.type==="number"&&!Y.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:Y,value:S,invalid:this.invalid})},
_handleValueAndAutoValidate:function(Y){this.autoValidate&&Y&&(this.invalid=!(Y.validate?Y.validate(this._inputElementValue):Y.checkValidity()));this._handleValue(Y)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(Y){if(this._addons)for(var S,P=0;S=this._addons[P];P++)S.update(Y)},
_computeInputContentClass:function(Y,S,P,u,W){var m="input-content";Y?(W&&(m+=" label-is-hidden"),u&&!this.noUnfloatedLabelError&&(m+=" is-invalid")):(Y=this.querySelector("label"),S||W?(m+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",u?m+=" is-invalid":P&&(m+=" label-is-highlighted")):(Y&&(this.$.labelAndInputContainer.style.position="relative"),u&&!this.noUnfloatedLabelError&&(m+=" is-invalid")));P&&(m+=" focused");return m},
_computeUnderlineClass:function(Y,S){var P="underline";S?P+=" is-invalid":Y&&(P+=" is-highlighted");return P},
_computeAddOnContentClass:function(Y,S){var P="add-on-content";S?P+=" is-invalid":Y&&(P+=" is-highlighted");return P}});var XB6;var Z6J;_.Kc({_template:function(){if(Z6J!==void 0)return Z6J;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;XB6===void 0&&(XB6=document.createElement("template"));var u=XB6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return Z6J=Y},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[I_6],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(Y){this._setInvalid(Y.invalid)}});_.Kc({is:"tp-yt-paper-input",_template:function(){if(DFf!==void 0)return DFf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;va_===void 0&&(va_=document.createElement("template"));var u=va_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return DFf=Y},
behaviors:[pBf,_.Em],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 i6i;var oau;_.Kc({_template:function(){if(oau!==void 0)return oau;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=
Y.content,P=S.insertBefore;i6i===void 0&&(i6i=document.createElement("template"));var u=i6i;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return oau=Y},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.An]});var tbt;var AhJ;_.Kc({_template:function(){if(AhJ!==void 0)return AhJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
var S=Y.content,P=S.insertBefore;tbt===void 0&&(tbt=document.createElement("template"));var u=tbt;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return AhJ=Y},
is:"tp-yt-paper-item-body"});var UFi;var Qfs;var ktS=function(){};
_.z=ktS.prototype;_.z.indexOf=function(){};
_.z.selectPrevious=function(){};
_.z.selectNext=function(){};
_.z.selectIndex=function(){};
_.z.forceSynchronousItemUpdate=function(){};
_.z._checkFallback=function(){};
_.z._addListener=function(){};
_.z._removeListener=function(){};
_.z._activateEventChanged=function(){};
_.z._updateItems=function(){};
_.z._selectSelected=function(){};
_.z._filterItem=function(){};
_.z._valueToItem=function(){};
_.z._valueToIndex=function(){};
_.z._indexToValue=function(){};
_.z._valueForItem=function(){};
_.z._observeItems=function(){};
_.z._itemActivate=function(){};
_.z.multiChanged=function(){};
_.z._updateAttrForSelected=function(){};
_.z._updateSelected=function(){};
_.z._selectMulti=function(){};
_.z._selectionChange=function(){};
_.z._toggleSelected=function(){};
_.z._valuesToItems=function(){};
_.z.registered=function(){};
_.z.addOwnKeyBinding=function(){};
_.z.removeOwnKeyBindings=function(){};
_.z.keyboardEventMatchesKeys=function(){};
_.z._collectKeyBindings=function(){};
_.z._prepKeyBindings=function(){};
_.z._addKeyBinding=function(){};
_.z._resetKeyEventListeners=function(){};
_.z._listenKeyEventListeners=function(){};
_.z._unlistenKeyEventListeners=function(){};
_.z._onKeyBindingEvent=function(){};
_.z._triggerKeyHandler=function(){};
_.z.select=function(){};
_.z._resetTabindices=function(){};
_.z._updateMultiselectable=function(){};
_.z._focusWithKeyboardEvent=function(){};
_.z._clearSearchText=function(){};
_.z._focusPrevious=function(){};
_.z._focusNext=function(){};
_.z._applySelection=function(){};
_.z._focusedItemChanged=function(){};
_.z._onIronItemsChanged=function(){};
_.z._onShiftTabDown=function(){};
_.z._onFocus=function(){};
_.z._onUpKey=function(){};
_.z._onDownKey=function(){};
_.z._onEscKey=function(){};
_.z._onKeydown=function(){};
_.z._activateHandler=function(){};
_.z._disabledChanged=function(){};
_.z._setSelectedItem=function(){};
_.z._setItems=function(){};
_.z._setSelectedItems=function(){};
_.z._setFocusedItem=function(){};
ktS=_.Kc({_template:function(){if(Qfs!==void 0)return Qfs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
var S=Y.content,P=S.insertBefore;UFi===void 0&&(UFi=document.createElement("template"));var u=UFi;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return Qfs=Y},
is:"tp-yt-paper-listbox",behaviors:[cgi],hostAttributes:{role:"listbox"}});var MbS;var yhm;var NHs={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(Y,S){return[Y||S?"active":"",S?"cooldown":""].join(" ")},
__activeChanged:function(Y,S){this.__setAriaHidden(!Y);this.__coolingDown=!Y&&S},
__altChanged:function(Y){this.setAttribute("aria-label",Y||"loading")},
__setAriaHidden:function(Y){Y?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.Kc({_template:function(){if(yhm!==void 0)return yhm;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;MbS===void 0&&(MbS=document.createElement("template"));var u=MbS;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return yhm=Y},
is:"tp-yt-paper-spinner",behaviors:[NHs]});var H6u;var Vbi;_.Kc({_template:function(){if(Vbi!==void 0)return Vbi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;H6u===void 0&&(H6u=document.createElement("template"));var u=H6u;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return Vbi=Y},
is:"tp-yt-paper-spinner-lite",behaviors:[NHs]});var e6L;var O6f;_.Kc({_template:function(){if(O6f!==void 0)return O6f;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;e6L===void 0&&(e6L=document.createElement("template"));var u=e6L;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return O6f=Y},
is:"tp-yt-paper-tab",behaviors:[_.br,_.KD.IronButtonState,oS],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var Y=_.G5(this).parentNode;return!!Y&&!!Y.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(Y){if(this.link){var S=this.queryEffectiveChildren("a");S&&Y.target!==S&&S.click()}}});var Y$s;var S$i;var P1f=_.Q0(['<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>']),ujf=_.J6d(P1f);document.head.appendChild(ujf.content);_.Kc({_template:function(){if(S$i!==void 0)return S$i;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Y$s===void 0&&(Y$s=document.createElement("template"));var u=Y$s;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return S$i=Y},
is:"tp-yt-paper-tabs",behaviors:[_.G8,_.qnm],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(Y){_.G5(this).querySelectorAll("tp-yt-paper-tab").forEach(Y?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(Y){Y.setAttribute("noink","")},
_removeNoinkAttribute:function(Y){Y.removeAttribute("noink")},
_computeScrollButtonClass:function(Y,S,P,u){return!S||P?"hidden":Y?u?"hidden":"not-visible":""},
_computeTabsContentClass:function(Y,S){var P="tabs-content";Y&&(P+=" scrollable");if(!Y||S)P+=" fit-container";return P},
_computeSelectionBarClass:function(Y,S){var P="selection-bar";Y?P+=" hidden":S&&(P+=" align-bottom");return P},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(Y){return""+Y},
_onIronSelect:function(Y){this._tabChanged(Y.detail.item,this._previousTab);this._previousTab=Y.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.rp._activateHandler.apply(this,arguments)},
_scheduleActivation:function(Y,S){this._pendingActivationItem=Y;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,S)},
_delayedActivationHandler:function(){var Y=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;Y.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(Y){Y.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(Y,S){this.scrollable&&this._affectScroll(S&&-S.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(Y){this.$.tabsContainer.scrollLeft+=Y;Y=this.$.tabsContainer.scrollLeft;this._leftHidden=Y===0||this.hideScrollButtons;this._rightHidden=Y===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(Y,S){if(Y){var P=this.$.tabsContent.getBoundingClientRect(),u=P.width,W=Y.getBoundingClientRect();P=W.left-P.left;this._pos={width:this._calcPercent(W.width,u),left:this._calcPercent(P,u)};if(this.noSlide||S==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var m=S.getBoundingClientRect();S=this.items.indexOf(S);Y=this.items.indexOf(Y);this.$.selectionBar.classList.add("expand");
Y=S<Y;this._isRTL&&(Y=!Y);Y?this._positionBar(this._calcPercent(W.left+W.width-m.left,u)-5,this._left):this._positionBar(this._calcPercent(m.left+m.width-W.left,u)-5,this._calcPercent(P,u)+5);this.scrollable&&this._scrollToSelectedIfNeeded(W.width,P)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(Y,S){S-=this.$.tabsContainer.scrollLeft;S<0?this.$.tabsContainer.scrollLeft+=S:(S+=Y-this.$.tabsContainer.offsetWidth,S>0&&(this.$.tabsContainer.scrollLeft+=S))},
_calcPercent:function(Y,S){return 100*Y/S},
_positionBar:function(Y,S){Y=Y||0;S=S||0;this._width=Y;this._left=S;this.transform("translateX("+S+"%) scaleX("+Y/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var Y=this.$.selectionBar.classList;Y.contains("expand")?(Y.remove("expand"),Y.add("contract"),this._positionBar(this._pos.width,this._pos.left)):Y.contains("contract")&&Y.remove("contract")}});var Wws;var zN3;_.Kc({_template:function(){if(zN3!==void 0)return zN3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Wws===void 0&&(Wws=document.createElement("template"));var u=Wws;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return zN3=Y},
is:"tp-yt-paper-textarea",behaviors:[pBf,_.Em],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(Y){this.$.input.textarea.selectionStart=Y},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(Y){this.$.input.textarea.selectionEnd=Y},_ariaLabelledByChanged:function(Y){this._focusableElement.setAttribute("aria-labelledby",Y)},
_ariaDescribedByChanged:function(Y){this._focusableElement.setAttribute("aria-describedby",Y)},
get _focusableElement(){return this.inputElement.textarea}});var m2L;var nXs;/*

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 jBm=function(){};
_.z=jBm.prototype;_.z.addOwnKeyBinding=function(){};
_.z.removeOwnKeyBindings=function(){};
_.z.keyboardEventMatchesKeys=function(){};
_.z._collectKeyBindings=function(){};
_.z._prepKeyBindings=function(){};
_.z._addKeyBinding=function(){};
_.z._resetKeyEventListeners=function(){};
_.z._listenKeyEventListeners=function(){};
_.z._unlistenKeyEventListeners=function(){};
_.z._onKeyBindingEvent=function(){};
_.z._triggerKeyHandler=function(){};
_.z._tapHandler=function(){};
_.z._focusChanged=function(){};
_.z._detectKeyboardFocus=function(){};
_.z._userActivate=function(){};
_.z._upHandler=function(){};
_.z._spaceKeyDownHandler=function(){};
_.z._spaceKeyUpHandler=function(){};
_.z._asyncClick=function(){};
_.z._pressedChanged=function(){};
_.z._ariaActiveAttributeChanged=function(){};
_.z._activeChanged=function(){};
_.z._controlStateChanged=function(){};
_.z._changedButtonState=function(){};
_.z._focusBlurHandler=function(){};
_.z._disabledChanged=function(){};
_.z._changedControlState=function(){};
_.z._downHandler=function(){};
_.z.ensureRipple=function(){};
_.z.getRipple=function(){};
_.z.hasRipple=function(){};
_.z._noinkChanged=function(){};
_.z._focusedChanged=function(){};
_.z.registered=function(){};
_.z._invalidChanged=function(){};
_.z.hasValidator=function(){};
_.z.validate=function(){};
_.z._getValidity=function(){};
_.z._requiredChanged=function(){};
_.z._valueChanged=function(){};
_.z._checkedChanged=function(){};
_.z._buttonStateChanged=function(){};
_.z._setPressed=function(){};
_.z._setPointerDown=function(){};
_.z._setReceivedFocusFromKeyboard=function(){};
_.z._setFocused=function(){};
jBm=_.Kc({is:"tp-yt-paper-toggle-button",_template:function(){if(nXs!==void 0)return nXs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;m2L===void 0&&(m2L=document.createElement("template"));var u=m2L;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return nXs=Y},
behaviors:[_.Sst],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");_.ky(this,function(){_.Lo(this,"pan-y")})},
_ontrack:function(Y){Y=Y.detail;Y.state==="start"?this._trackStart(Y):Y.state==="track"?this._trackMove(Y):Y.state==="end"&&this._trackEnd(Y)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(Y){Y=Y.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+Y:Y)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+Y:Y));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var Y=oS._createRipple();Y.id="ink";Y.setAttribute("recenters","");Y.classList.add("circle","toggle-ink");return Y}});var Jks;var BxS;_.Kc({_template:function(){if(BxS!==void 0)return BxS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Jks===void 0&&(Jks=document.createElement("template"));var u=Jks;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return BxS=Y},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var Y=_.G5(this).parentNode,S=_.G5(this).getOwnerRoot(),P;this.for?P=_.G5(S).querySelector("#"+this.for):P=Y.nodeType==Node.DOCUMENT_FRAGMENT_NODE?S.host:Y;return P},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(Y){Y==="entry"?this.show():Y==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.G5(this).textContent.trim()===""){for(var Y=!0,S=_.G5(this).getEffectiveChildNodes(),P=0;P<S.length;P++)if(S[P].textContent.trim()!==""){Y=!1;break}if(Y)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var Y=this.offset;this.marginTop!=14&&this.offset==14&&(Y=this.marginTop);var S=this.offsetParent.getBoundingClientRect(),P=this._target.getBoundingClientRect(),u=this.getBoundingClientRect(),W=(P.width-u.width)/2,m=(P.height-u.height)/2,J=P.left-S.left,c=P.top-S.top;switch(this.position){case "top":var C=J+W;var x=c-u.height-Y;break;case "bottom":C=J+W;x=c+P.height+Y;break;case "left":C=J-u.width-Y;x=c+m;break;case "right":C=J+P.width+
Y,x=c+m}this.fitToVisibleBounds?(S.left+C+u.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,C)+"px",this.style.right="auto"),S.top+x+u.height>window.innerHeight?(this.style.bottom=S.height+"px",this.style.top="auto"):(this.style.top=Math.max(-S.top,x)+"px",this.style.bottom="auto")):(this.style.left=C+"px",this.style.top=x+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(Y){Y!==500&&this.updateStyles({"--paper-tooltip-delay-in":Y+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(Y){if(Y==="entry"&&this.animationEntry!=="")return this.animationEntry;if(Y==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[Y]&&typeof this.animationConfig[Y][0].name==="string"){if(this.animationConfig[Y][0].timing&&this.animationConfig[Y][0].timing.delay&&this.animationConfig[Y][0].timing.delay!==0){var S=this.animationConfig[Y][0].timing.delay;Y==="entry"?this.updateStyles({"--paper-tooltip-delay-in":S+"ms"}):Y==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":S+
"ms"})}return this.animationConfig[Y][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var ckJ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(ckJ,_.Gc);var C1t=_.AY(ckJ,[0,_.Ni]);var Um=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Um,_.Gc);var q$_=[3,4],RN3=[5,6];var x26=[0,q$_,RN3,_.Gcs,-1,_.yL,_.hLt,-1,fLh,gv9];var bah=_.AY(Um,x26),Txu=_.Qy(x26);var Kw6=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Kw6,_.Gc);var EXi=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(EXi,_.Gc);var fd3=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(fd3,_.Gc);var gXS=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(gXS,_.Gc);var $2m=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r($2m,_.Gc);var QQ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(QQ,_.Gc);QQ.prototype.getSource=function(){return _.Lj(this,1)};
QQ.prototype.getMessage=function(){return _.aJ(this,4)};
QQ.prototype.getData=function(){return _.P_(this,$2m,8)};var rkJ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(rkJ,_.Gc);var k1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(k1,_.Gc);var M7=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(M7,_.Gc);var yQ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(yQ,_.Gc);yQ.prototype.getUrl=function(){return _.aJ(this,1)};
yQ.prototype.setUrl=function(Y){return _.zH(this,1,Y)};
yQ.prototype.hasUrl=function(){return _.p1(_.xn(this,1))!=null};var GUs=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(GUs,_.Gc);var hNu=[3];var vXJ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(vXJ,_.Gc);var N7=function(Y){var S=new vXJ;return _.uX(S,2,Y)};
vXJ.prototype.getLanguage=function(){return pj(this,4,HY)};
var D2t=function(Y){var S=N7(1);return _.Hd(S,6,HY,Y)},HY=[3,
4,5,6];var Id_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Id_,_.Gc);var VQ=function(Y){var S=new Id_;return _.uX(S,1,Y)},eB=function(Y,S){return _.Hd(Y,2,ads,S)},ads=[2,
3,4,5];var Lwt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Lwt,_.Gc);var Om=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Om,_.Gc);var wsm=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(wsm,_.Gc);var psd=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(psd,_.Gc);var FwS=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(FwS,_.Gc);var sBf=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(sBf,_.Gc);var Yp=function(Y){return _.P_(Y,M7,5)};var d2i=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(d2i,_.Gc);d2i.prototype.getValue=function(){return Dp(this,1)};var ld3=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(ld3,_.Gc);var ST=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(ST,_.Gc);ST.prototype.getMetadata=function(){return _.F0(this,psd,7,Pg)};
ST.prototype.hasMetadata=function(){return _.Te(this,psd,7,Pg)};
var XsL=_.YUX(ST),Pg=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var uO=function(Y){this.JSC$9787_name_=Y;this.files_=[];this.directories_=[];this.directoryMap_={}};
uO.prototype.getName=function(){return this.JSC$9787_name_};var zN=function(Y,S){this.callback_=S;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new uO("");Zad(this,Y,this.rootDirectory_);Wg(this)},Zad=function(Y,S,P){for(var u=0;u<S.length;u++){var W=S[u];
W.isFile?(Y.fileOps_++,W.file((0,_.xS)(Y.handleFileSuccess_,Y,P),(0,_.xS)(Y.handleFileError_,Y))):Y.unscannedDirectories_.push(new iad(W,P))}},Wg=function(Y){if(Y.unscannedDirectories_.length>0&&Y.directoryOps_<5&&!Y.hasError_){Y.directoryOps_++;
var S=Y.unscannedDirectories_.shift(),P=S.entry,u=new uO(P.name);S=S.parent;S.directoryMap_[u.getName()]=u;S.directories_.push(u);P=P.createReader();P.readEntries((0,_.xS)(Y.handleDirectorySuccess_,Y,P,u),(0,_.xS)(Y.handleDirectoryError_,Y))}Y.directoryOps_!=0||Y.fileOps_!=0||Y.unscannedDirectories_.length!=0&&!Y.hasError_||Y.callback_(Y.rootDirectory_.files_,Y.rootDirectory_.directories_,Y.hasError_)};
zN.prototype.handleDirectorySuccess_=function(Y,S,P){Zad(this,P,S);P.length==0?(this.directoryOps_--,Wg(this)):Y.readEntries((0,_.xS)(this.handleDirectorySuccess_,this,Y,S),(0,_.xS)(this.handleDirectoryError_,this))};
zN.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Wg(this)};
zN.prototype.handleFileSuccess_=function(Y,S){Y.files_.push(S);this.fileOps_--;Wg(this)};
zN.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Wg(this)};
var iad=function(Y,S){this.entry=Y;this.parent=S};var ma=function(Y){_.Tj.call(this);_.b2(Y,"drop",this.onObjectsDropped_,!1,this);_.b2(Y,"dragenter",this.onFilesDragged_,!1,this);_.b2(Y,"dragover",this.onFilesDragged_,!1,this);_.b2(Y,"dragleave",this.onDragLeave_,!1,this);_.b2(Y,"dragend",this.onDragLeave_,!1,this)};
_.PW(ma,_.Tj);var oXi=function(Y,S){_.Cl.call(this,"f");this.files=Y;this.directories=S};
_.PW(oXi,_.Cl);var tNJ=function(){_.Cl.call(this,"h")};
_.PW(tNJ,_.Cl);var AkU=function(){_.Cl.call(this,"i")};
_.PW(AkU,_.Cl);var U2L=function(){_.Cl.call(this,"g")};
_.PW(U2L,_.Cl);ma.prototype.onObjectsDropped_=function(Y){var S=this;Y.preventDefault();var P=Y.event_.dataTransfer;if((Y=P&&P.items)&&Y.length>0&&Y[0].webkitGetAsEntry){P=[];for(var u=[],W=0;W<Y.length;W++){var m=Y[W].webkitGetAsEntry();m?P.push(m):u.push(Y[W])}new zN(P,function(J,c,C){C?S.dispatchEvent(new U2L("Error occurred while reading from the file system.")):S.dispatchEvent(new oXi(J,c,u))})}else(Y=P&&P.files)&&this.dispatchEvent(new oXi(Array.from(Y),[]))};
ma.prototype.onFilesDragged_=function(Y){Y.type==="dragenter"&&this.dispatchEvent(new tNJ);Y.preventDefault()};
ma.prototype.onDragLeave_=function(){this.dispatchEvent(new AkU)};var QBd=function(Y,S){this.JSC$9810_name_=Y;this.inputElement_=S};
QBd.prototype.getName=function(){return this.JSC$9810_name_};
QBd.prototype.getInputElement=function(){return this.inputElement_};var nP=function(Y,S,P){S=S===void 0?"single_file":S;P=P===void 0?[]:P;_.Tj.call(this);this.overlayTarget_=Y;this.parentOverlay_=Y!=null?Y.parentNode:_.nN("scotty-overlay-parent");this.selectorType_=S;this.acceptTypes_=P;this.overlay_=kUm(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.r(nP,_.Tj);
var kUm=function(Y,S,P,u){var W=document.createElement("input");W.setAttribute("type","file");W.setAttribute("name","Filedata");_.b2(W,"change",Y.onFilesSelected_,!1,Y);P==="multiple_file"&&(W.multiple="true");P==="single_directory"&&(W.webkitdirectory="true");u.length>0&&W.setAttribute("accept",u.join(","));W.style.position="absolute";W.style.overflow="hidden";W.style.height="0px";W.style.width="0px";W.style.opacity="0";W.setAttribute("aria-hidden","true");W.setAttribute("tabIndex",-1);if(Y.overlayTarget_!=
null)return W.style.height=S.offsetHeight+"px",W.style.width=S.offsetWidth+"px",Y.parentOverlay_&&(Y.parentOverlay_.style.position="relative"),_.Fs(W,S),id(W,new _.TH(S.offsetLeft,S.offsetTop)),W;Y.parentOverlay_.appendChild(W);return W};
nP.prototype.click=function(){this.overlay_.click()};
nP.prototype.onFilesSelected_=function(Y){a:{try{var S=(new XMLHttpRequest).upload!==void 0;break a}catch(x){}S=!1}if(S){var P;Y=Array.from((P=Y.target.files)!=null?P:[]);P=[];if(this.selectorType_==="single_directory"&&(_.Jv||_.yl||_.j5)){P=new uO("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(S=0;S<Y.length;S++)for(var u=Y[S],W=u.webkitRelativePath.split("/"),m=P,J=0;J<W.length;J++){var c=W[J];if(J==W.length-1){c!="."&&m.files_.push(u);break}var C=m.directoryMap_[c];C==void 0&&(c=
C=new uO(c),m.directoryMap_[c.getName()]=c,m.directories_.push(c));m=C}P=P.directories_}this.dispatchEvent(new MNL(Y,P,null))}else Y=Y.target.value,Y.match(/^c:\\fakepath\\/i)&&(Y=Y.substring(12)),this.dispatchEvent(new MNL([],[],new QBd(Y,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=kUm(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var MNL=function(Y,S){_.Cl.call(this,"j");this.files=Y;this.directories=S};
_.r(MNL,_.Cl);var ykd=function(Y){this.uploadUrl_=Y};var Nxf=function(){_.Tj.call(this)};
_.PW(Nxf,_.Tj);var jT=function(Y){_.Cl.call(this,Y)};
_.PW(jT,_.Cl);var Jf=function(Y){_.Cl.call(this,Y)};
_.PW(Jf,_.Cl);var Haf=function(Y,S,P,u,W){_.Tj.call(this);P=document.createElement("form");P.setAttribute("method",S);P.setAttribute("enctype","multipart/form-data");P.setAttribute("encoding","multipart/form-data");S=document.createElement("input");S.setAttribute("type","hidden");S.setAttribute("name","metadata");S.setAttribute("value",W);P.appendChild(S);P.appendChild(u);this.JSC$9827_form_=P;Y=new _.Nq(Y);_.XI(Y,"upload_protocol","multipart");this.JSC$9827_url_=Y.toString();this.JSC$9827_request_=new yW;this.state_=
"Ready";this.JSC$9827_errorDescription_=null;this.JSC$9827_eventHandler_=new _.u6(this);_.Ph(this,this.JSC$9827_eventHandler_);this.JSC$9827_eventHandler_.listen(this.JSC$9827_request_,"success",this.onTransferSuccess_);this.JSC$9827_eventHandler_.listen(this.JSC$9827_request_,"error",this.onTransferError_)};
_.r(Haf,Nxf);_.z=Haf.prototype;_.z.run=function(){this.state_="Transferring";var Y=this.JSC$9827_request_,S=this.JSC$9827_form_;if(Y.JSC$9251_active_)throw Error("oe");var P=new _.Nq(this.JSC$9827_url_||S.action);Y.JSC$9251_form_=S;S=Y.JSC$9251_form_;P=_.R9(P.toString());P!==void 0&&(S.action=P);GYs(Y)};
_.z.getResponseCode=function(){return null};
_.z.getResponseText=function(){return this.JSC$9827_request_&&this.JSC$9827_request_.getResponseText()||null};
_.z.JSC$25627_getErrorDescription=function(){return this.JSC$9827_errorDescription_};
_.z.cancel=function(){this.JSC$9827_request_&&this.JSC$9827_request_.abort();this.state_="Cancelled";this.dispatchEvent(new jT("o"))};
_.z.pause=function(){};
_.z.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new jT("l"))};
_.z.onTransferError_=function(){this.JSC$9827_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new jT("n"))};var Bg=function(){_.hy.call(this)};
_.r(Bg,_.hy);Bg.prototype.createXhr=function(){var Y=_.hy.prototype.createXhr.call(this);Y.upload&&(Y.upload.onprogress=(0,_.xS)(this.onProgress_,this));return Y};
Bg.prototype.onProgress_=function(Y){this.dispatchEvent(Y)};var VNt=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},Oau=function(Y,S){var P=Y.attempt_+1;
if(Y.maxAttempts_>0&&P>Y.maxAttempts_)return!1;P==0?S():Y.delayCallId_=$M(function(){Y.delayCallId_=null;S()},eNu(Y),Y);
Y.attempt_=P;return!0};
VNt.prototype.reset=function(){this.delayCallId_&&_.Pa.clearTimeout(this.delayCallId_);this.attempt_=-1};
var eNu=function(Y){var S=250*Math.pow(2,Y.attempt_);Y.maxDelayMs_>=0&&(S=Math.min(S,Y.maxDelayMs_));return S};var $A8=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var cg=function(){_.Tj.call(this);this.JSC$9837_request_=this.state_=null;this.JSC$9837_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9837_bytesTransferred_=0;this.retryIterator_=new VNt;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9837_errorDescription_=null;this.JSC$9837_eventHandler_=new _.u6(this);_.Ph(this,this.JSC$9837_eventHandler_);this.JSC$9837_url_=this.blob_=null;this.JSC$9837_method_=void 0;this.chunkSize_=this.JSC$9837_metadata_=
this.JSC$9837_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9837_responseText_=this.JSC$9837_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.PW(cg,Nxf);_.z=cg.prototype;_.z.run=function(){CP(this)};
_.z.getResponseCode=function(){return this.JSC$9837_responseCode_};
_.z.getResponseText=function(){return this.JSC$9837_responseText_};
_.z.JSC$25627_getErrorDescription=function(){return this.JSC$9837_errorDescription_};
_.z.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9837_eventHandler_.removeAll();this.JSC$9837_request_&&this.JSC$9837_request_.abort();this.retryIterator_.reset();var Y=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(Y==="Upload"||Y==="Query")Y=new Bg,Y.JSC$7668_withCredentials_=this.JSC$9837_withCredentials_,Y.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9837_bytesTransferred_=
0;this.dispatchEvent(new jT("o"))}};
_.z.pause=function(){this.pauseRequested_=!0};
var CP=function(Y){var S=Y.state_;Y.pauseRequested_?(Y.pauseRequested_=!1,Y.stateAfterUnpausing_=S,Y.state_="Paused"):Oau(Y.retryIterator_,function(){switch(Y.state_){case "Start":Y.JSC$9837_request_=new Bg;var P=_.RY.clone(Y.JSC$9837_headers_);Y.blob_.size!=null&&(P["Content-Length"]=Y.blob_.size);P=r_X(P);P["X-Goog-Upload-Protocol"]="resumable";P["X-Goog-Upload-Command"]="start";Y.JSC$9837_eventHandler_.removeAll();Y.JSC$9837_eventHandler_.listen(Y.JSC$9837_request_,"complete",Y.onStartComplete_);
Y.JSC$9837_request_.JSC$7668_withCredentials_=Y.JSC$9837_withCredentials_;Y.JSC$9837_request_.send(Y.JSC$9837_url_,Y.JSC$9837_method_,Y.JSC$9837_metadata_,P);Y.lastCommandResponseCode_=null;Y.dispatchEvent(new Jf("q"));break;case "Upload":P=Y.transferHandle_.uploadUrl_;var u=Y.blob_.size;if(Rlm()){var W=Y.chunkSize_;var m=Y.offset_+W>=u;u=qQJ(Y.blob_,Y.offset_,m?u:Y.offset_+W)}else Y.offset_=0,u=Y.blob_,m=!0;Y.JSC$9837_request_=new Bg;Y.JSC$9837_request_.JSC$7668_withCredentials_=Y.JSC$9837_withCredentials_;
Y.JSC$9837_eventHandler_.removeAll();Y.JSC$9837_eventHandler_.listen(Y.JSC$9837_request_,"progress",Y.onUploadProgress_);W=(0,_.xS)(Y.JSC$9839_onUploadComplete_,Y,Y.offset_+u.size,m);Y.JSC$9837_eventHandler_.listen(Y.JSC$9837_request_,"complete",W);Y.lastCommandResponseCode_=null;Y.dispatchEvent(new Jf("q"));m=Object.assign({},Y.JSC$9837_headers_||{},{"X-Goog-Upload-Command":"upload"+(m?", finalize":""),"X-Goog-Upload-Offset":Y.offset_});Y.JSC$9837_request_.send(P,"POST",u,m);break;case "Query":Y.JSC$9837_request_=
new Bg;Y.JSC$9837_eventHandler_.removeAll();Y.JSC$9837_eventHandler_.listen(Y.JSC$9837_request_,"complete",Y.onQueryComplete_);P=Object.assign({},Y.JSC$9837_headers_||{},{"X-Goog-Upload-Command":"query"});Y.JSC$9837_request_.send(Y.transferHandle_.uploadUrl_,"POST","",P);Y.lastCommandResponseCode_=null;Y.dispatchEvent(new Jf("q"));break;default:throw Error("df");}})||q$(Y,"Transfer encountered too many consecutive failures.")},q$=function(Y,S){Y.state_="Error";
Y.JSC$9837_errorDescription_=S;Y.dispatchEvent(new jT("n"))};
cg.prototype.onStartComplete_=function(Y){var S=Y.target;this.lastCommandResponseCode_=S.getStatus();this.dispatchEvent(new Jf("r"));if(YMf(S))SMh(this,S);else if(PWs(S)){Y=AF(Y.target.getAllResponseHeaders());for(var P in Y)_.m$(P.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new jT("m"));P=v3(Y,"X-Goog-Upload-URL");Y=(Y=v3(Y,"X-Goog-Upload-Chunk-Granularity"))?parseInt(Y,10):1;P===void 0||isNaN(Y)||Y<=0?q$(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
Y)*Y,this.transferHandle_=new ykd(P),this.dispatchEvent(new jT("p")),this.state_="Upload",this.retryIterator_.reset(),CP(this))}else CP(this)};
cg.prototype.onUploadProgress_=function(Y){this.JSC$9837_bytesTransferred_=this.offset_+Y.loaded;this.dispatchEvent(new jT("k"))};
cg.prototype.JSC$9839_onUploadComplete_=function(Y,S,P){var u=this,W,m;return _.B(function(J){switch(J.nextAddress){case 1:W=P.target;u.lastCommandResponseCode_=W.getStatus();u.dispatchEvent(new Jf("r"));if(u0u(W)||W.getStatus()==404)return u.JSC$9837_bytesTransferred_=Y,SMh(u,W),J.return();if(PWs(W)){J.jumpTo(2);break}if(!(m=u.detectCorruptedBlobEnabled_)){J.jumpTo(3);break}return _.q(J,WXi(u),4);case 4:m=J.yieldResult;case 3:if(m)return q$(u,"Blob has been modified or corrupted."),J.return();u.requireUploadRequestModification_=
W.getStatus()==400;u.state_="Query";CP(u);return J.return();case 2:if(S)return q$(u,"Got a non-final success response after issuing a finalize command."),J.return();u.JSC$9837_bytesTransferred_=Y;u.offset_=Y;u.retryIterator_.reset();CP(u);return J.return()}})};
cg.prototype.onQueryComplete_=function(Y){var S=Y.target;this.lastCommandResponseCode_=S.getStatus();this.dispatchEvent(new Jf("r"));YMf(S)?(S.getStatus()===200&&(this.JSC$9837_bytesTransferred_=this.blob_.size),SMh(this,S)):PWs(S)?(Y=AF(Y.target.getAllResponseHeaders()),Y=parseInt(v3(Y,"X-Goog-Upload-Size-Received"),10),isNaN(Y)?q$(this,"Server did not respond with current offset."):Y<this.offset_?q$(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
Y+"."):this.requireUploadRequestModification_&&this.offset_===Y?q$(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<Y&&this.retryIterator_.reset(),this.offset_=this.JSC$9837_bytesTransferred_=Y,this.state_="Upload",CP(this))):CP(this)};
var SMh=function(Y,S){Y.JSC$9837_responseCode_=S.getStatus();var P=AF(S.getAllResponseHeaders());G2f(P);Y.JSC$9837_responseText_=S.getResponseText();Y.state_="Response received";Y.dispatchEvent(new jT("l"))},PWs=function(Y){var S=Y.getStatus();
Y=AF(Y.getAllResponseHeaders());Y=v3(Y,"X-Goog-Upload-Status");return S===200&&Y==="active"},u0u=function(Y){Y=AF(Y.getAllResponseHeaders());
return v3(Y,"X-Goog-Upload-Status")==="final"},YMf=function(Y){if(u0u(Y))return!0;
Y=Y.getStatus();return Y>=400&&Y<500},WXi=function(Y){var S;
return _.B(function(P){if(P.nextAddress==1){if(!Y.blob_||Y.originalBlobSize_<=0)return P.return(!1);if(Y.blob_.size!==Y.originalBlobSize_)return P.return(!0);_.ND(P,2);if(S=qQJ(Y.blob_,0,1)){var u=new wF,W=oW_(u);u.reader_.readAsBinaryString(S);P=_.q(P,W,4)}else P=P.return(!0);return P}if(P.nextAddress!=2)return P.return(Y.blob_.size!==Y.originalBlobSize_);_.O4(P);return P.return(!0)})};var zxh=function(Y,S,P,u,W,m){_.Tj.call(this);this.payload_=u;this.JSC$9840_url_=Y;this.JSC$9840_method_=S;this.JSC$9840_headers_=P;this.JSC$9840_metadata_=W;this.encoding_=m||"binary";Y=new _.Tf;this.boundary_="uploader-"+s_()+"-"+Y.JSC$9100_toIsoString();this.JSC$9840_responseText_=this.JSC$9840_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9840_errorDescription_=null;this.JSC$9840_eventHandler_=new _.u6(this);_.Ph(this,this.JSC$9840_eventHandler_)};
_.r(zxh,Nxf);_.z=zxh.prototype;
_.z.run=function(){var Y=_.RY.clone(this.JSC$9840_headers_);this.payload_.length!=null&&(Y["Content-Length"]=this.payload_.length);Y=r_X(Y);Y["X-Goog-Upload-Protocol"]="multipart";Y["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Bg;this.JSC$9840_eventHandler_.removeAll();this.JSC$9840_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9840_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9840_url_,this.JSC$9840_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9840_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",Y)};
_.z.getResponseCode=function(){return this.JSC$9840_responseCode_};
_.z.getResponseText=function(){return this.JSC$9840_responseText_};
_.z.JSC$25627_getErrorDescription=function(){return this.JSC$9840_errorDescription_};
_.z.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9840_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new jT("o")))};
_.z.pause=function(){};
_.z.onTransferProgress_=function(){this.dispatchEvent(new jT("k"))};
_.z.onTransferComplete_=function(Y){var S=Y.target.getStatus();S===void 0||S===-1?(this.JSC$9840_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new jT("n"))):(this.JSC$9840_responseCode_=S,Y=Y.target,S=AF(Y.getAllResponseHeaders()),G2f(S),this.JSC$9840_responseText_=Y.getResponseText(),this.state_="Complete",this.dispatchEvent(new jT("l")))};_.mis=function(Y,S,P,u){u=u===void 0?!1:u;if(P instanceof QBd)return new Haf(Y,"POST",S,P.getInputElement(),"");if(typeof P==="string"||P instanceof String)return new zxh(Y,"POST",S,P,"");var W=new cg(void 0);W.JSC$9837_url_=Y;W.JSC$9837_method_="POST";W.JSC$9837_headers_=S;W.blob_=P;W.originalBlobSize_=P.size;W.JSC$9837_metadata_="";u&&(W.JSC$9837_withCredentials_=u);W.state_="Start";return W};var R8=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(R8,_.Gc);_.z=R8.prototype;_.z.getEnableSsEngine=function(){return _.vW(this,2)};
_.z.getEnableAwr=function(){return _.vW(this,3)};
_.z.getAlohaAutoGaRollout=function(){return _.vW(this,5)};
_.z.getEnableConfigurator=function(){return _.vW(this,6)};
_.z.getEnableMweb=function(){return _.vW(this,7)};
var jJt=function(){var Y=nns();return _.Ik(Y,7,!0)};
R8.prototype.getEnableCtlConsentCheckbox=function(){return _.vW(this,8)};
R8.prototype.getEnableIframe=function(){return _.vW(this,9)};
var nns=function(){var Y=new R8;Y=_.Ik(Y,5,!0);Y=_.Ik(Y,2,!0);Y=_.Ik(Y,4,!1);Y=_.Ik(Y,8,!0);return _.Ik(Y,9,!0)};
R8.prototype.getEnableScreenshotNudge=function(){return _.vW(this,10)};
var Jvt=function(){var Y=jJt();return _.Ik(Y,10,!0)};
R8.prototype.getEnableWebStartupConfigEndpoint=function(){return _.vW(this,11)};
R8.prototype.getEnableJunkNudge=function(){return _.vW(this,12)};
var tmh=function(){var Y=Jvt();return _.Ik(Y,12,!0)};
_.z=R8.prototype;_.z.getEnableConfiguratorLocale=function(){return _.vW(this,13)};
_.z.getEnableTinyNoPointer=function(){return _.vW(this,14)};
_.z.getEnableSupportSessionLogging=function(){return _.vW(this,15)};
_.z.getEnableFileUploadForScreenshot=function(){return _.vW(this,16)};
_.z.getEnableDirectDeflectionForSingleCategory=function(){return _.vW(this,17)};
_.z.getEnableImageSanitization=function(){return _.vW(this,18)};
_.z.getEnableAlohaBinarySplit=function(){return _.vW(this,19)};
_.z.getEnableDbFeedbackIntents=function(){return _.vW(this,20)};
_.z.getEnableMarkMandatoryFieldsWithRequired=function(){return _.vW(this,21)};
_.z.getEnableFeedbackCategoryCustomUi=function(){return _.vW(this,22)};
_.z.getEnableRealtimeCtl=function(){return _.vW(this,23)};var oQY=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(oQY,_.Gc);var hkY=[/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 DAf="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 IlX=_.Q0(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),ala=_.Q0(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var w9X,F0h;var BVS,cvi;
BVS=function(Y,S,P){Y.timeOfStartCall=(new Date).getTime();var u=P||_.Pa,W=u.document,m=Y.nonce||_.rE(u.document);m&&!Y.nonce&&(Y.nonce=m);if(Y.flow=="help"){var J=_.tA("document.location.href",u);!Y.helpCenterContext&&J&&(Y.helpCenterContext=J.substring(0,1200));J=!0;if(S&&JSON&&JSON.stringify){var c=JSON.stringify(S);(J=c.length<=1200)&&(Y.psdJson=c)}J||(S={invalidPsd:!0})}S=[Y,S,P];u.GOOGLE_FEEDBACK_START_ARGUMENTS=S;P=Y.feedbackServerUri||"//www.google.com/tools/feedback";if(J=u.GOOGLE_FEEDBACK_START)J.apply(u,S);
else{u=P+"/load.js?";for(var C in Y)S=Y[C],S==null||_.SS(S)||(u+=encodeURIComponent(C)+"="+encodeURIComponent(S)+"&");Y=Wk(W).createElement("SCRIPT");m&&Y.setAttribute("nonce",m);_.I9(Y,_.YU(u));W.body.appendChild(Y)}};
cvi=function(Y,S,P,u){var W,m;_.B(function(J){W=P||_.Pa;var c=Y.serverEnvironment==="DEV",C=P||_.Pa;C=Y.nonce||_.rE(C.document);c={integrationKeys:{productId:Y.productId,feedbackBucket:Y.bucket,triggerId:Y.triggerId},callbacks:{onClose:Y.callback,onLoad:Y.onLoadCallback},formContent:{locale:Y.locale,disableScreenshot:Y.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:Y.abuseLink,additionalDataConsent:Y.additionalDataConsent},initializationData:{isLocalServer:c,nonce:C,useNightlyRelease:c,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:Y.feedbackServerUri,colorScheme:Y.colorScheme},extraData:{productVersion:Y.productVersion,authUser:Y.authuser,configuratorId:Y.configuratorId,customZIndex:Y.customZIndex,tinyNoPointer:Y.tinyNoPointer,
allowNonLoggedInFeedback:Y.allowNonLoggedInFeedback,enableAnonymousFeedback:Y.enableAnonymousFeedback}};S&&(C=new Map(Object.entries(S)),c.extraData.productSpecificData=C);m=c;return _.q(J,X9K(m,u,W),0)})};
_.CWm=function(Y,S,P){try{if(Y.flow==="help"){var u=Y.helpCenterPath.replace(/^\//,"");_.$U(P||window,"https://support.google.com/"+u)}else Y.flow==="submit"?BVS(Y,S,P):A_1(Y.productId,Y.feedbackServerUri).then(function(W){W=_.P_(W,R8,1);var m=!Ab$||(W==null?void 0:W.getEnableMweb()),J=!Y.tinyNoPointer||(W==null?void 0:W.getEnableTinyNoPointer());!W||W.getAlohaAutoGaRollout()&&m&&J?cvi(Y,S,P,W):BVS(Y,S,P)},function(W){W&&W.name!=="DuplicateFormError"&&BVS(Y,S,P)})}catch(W){cvi(Y,S,P,null)}};
_.HQ("userfeedback.api.startFeedback",_.CWm);var UAE=/https?:\/\/\S+\.\S+/,QLu=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],k29=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var sCE=function(Y){var S=Y.split(""),P=[-263237435,15,S,function(u,W,m){var J=W.length;m.forEach(function(c,C,x){this.push(x[C]=W[(W.indexOf(c)-W.indexOf(this[C])+C+J--)%W.length])},u.split(""))},
function(u,W){u=(u%W.length+W.length)%W.length;W.splice(-u).reverse().forEach(function(m){W.unshift(m)})},
"response",function(){for(var u=64,W=[];++u-W.length-32;){switch(u){case 58:u-=14;case 91:case 92:case 93:continue;case 123:u=47;case 94:case 95:case 96:continue;case 46:u=95}W.push(String.fromCharCode(u))}return W},
null,12,1540023973,65941107,null,S,function(u,W){for(u=(u%W.length+W.length)%W.length;u--;)W.unshift(W.pop())},
695603893,function(u){for(var W=u.length;W;)u.push(u.splice(--W,1)[0])},
"'[;'[(",function(u,W){u.push(W)},
null,function(u,W,m,J,c){return W(m,J,c)},
"continuation",S,function(u,W){if(u.length!=0){W=(W%u.length+u.length)%u.length;var m=u[0];u[0]=u[W];u[W]=m}},
function(){for(var u=64,W=[];++u-W.length-32;){switch(u){case 91:u=44;continue;case 123:u=65;break;case 65:u-=18;continue;case 58:u=96;continue;case 46:u=95}W.push(String.fromCharCode(u))}return W},
'"),/]];'];P[7]=P;P[11]=P;P[18]=P;try{(((0,P[15])(P[21]),P[22])(P[11],P[9]),P[22])(P[new Date("1970-01-01T04:30:12.000+04:30")/1E3],P[1]),((0,P[22])(P[11],P[23]),P[4])(P[10],P[18]),(0,P[20])(P[21],P[14])<<(0,P[17])(P[18],P[1]),(0,P[4])(P[8],P[21]),(0,P[19])((0,P[19])((0,P[17])(P[7],P[9]),P[3],P[20],(0,P[6])(),P[2]),P[3],P[5],(0,P[15])(),P[2])}catch(u){return"aTlOUOubTO4AP____8P_"+Y}return S.join("")};_.qMU=new _.N("runAttestationCommand");var RxJ=new _.N("verifyCommand");_.iL=new _.N("accessibilityContext");var xiU=new _.N("accessibilityData");var bjd=new _.N("profileCardCommand");var GOJ=new _.N("signInEndpoint");var raK=new _.N("signOutEndpoint");var KXt;_.TVi=new _.N("accountItemSectionRenderer");KXt=new _.N("accountItemRenderer");_.En_=new _.N("saveCommandToSessionStorageAction");var fpm=new _.N("crossAccountChannelTransferEndpoint");var gK8=new _.N("getAccountMenuEndpoint");_.$kJ=new _.N("getAccountSwitcherEndpoint");var feJ=new _.N("getAccountsListEndpoint");var gnt=new _.N("getAccountsListInnertubeEndpoint");_.$if=new _.N("addToToastAction");var rvi=new _.N("hideEnclosingAction");_.xp=new _.N("replaceEnclosingAction");_.Ge_=new _.N("buttonRefreshAction");var hx6=new _.N("adsControlFlowOpportunityReceivedCommand");var vnU=new _.N("openAdAllowlistInstructionCommand");var Dif=new _.N("videoMastheadAdPrimaryVideoRenderer");var Ips=new _.N("displayAdRenderer");var toa=new _.N("instreamVideoAdRenderer");_.apf=new _.N("inFeedAdLayoutRenderer");var LXd=new _.N("sequenceItemInPlayerAdLayoutRenderer");_.wWJ=new _.N("adSlotRenderer");var pWU=new _.N("adAvatarViewModel");var FX_=new _.N("adBadgeViewModel");var sJi=new _.N("adButtonViewModel");var bO=new _.N("adImageViewModel");var Fda=new _.N("reelsAdCardButtonedViewModel");var diS=new _.N("reelsPlayerOverlayLayoutViewModel");var lp_=new _.N("showSchedulingPanelCommand");var XWJ=new _.N("backstageCommentsRenderer");var Zji=new _.N("backstageImageRenderer");var ijs=new _.N("backstagePostRenderer");var ond=new _.N("postRenderer");var t5L=new _.N("sharedPostRenderer");var AvJ=new _.N("createBackstagePostEndpoint");var Ui6=new _.N("getPostVideoPreviewEndpoint");var QJ6=new _.N("updateBackstagePostEndpoint");var kef=new _.N("filterChipTransformCommand");var M5L=new _.N("insertRichSectionCommand");var EDX=new _.N("talkToRecsDeselectCommand");var yvh=new _.N("talkToRecsNextCommand");var Kga=new _.N("talkToRecsSelectCommand");var NVs=new _.N("talkToRecsUpdateTextCommand");_.CV=new _.N("browseEndpoint");_.Hjm=new _.N("confirmDialogEndpoint");var V5i=new _.N("expandOnHoverCardRenderer");var exf=new _.N("lumiereShelfDetailsRenderer");var Ojm=new _.N("revealBusinessEmailCommand");var YgJ=new _.N("validateChannelHandleCommand");var Sg_=new _.N("channelCreationFormEndpoint");var Pdt=new _.N("aboutChannelViewModel");var ush=new _.N("channelThumbnailWithLinkRenderer");var W0s=new _.N("channelCreationServiceEndpoint");var zkS=new _.N("updateChannelPageSettingsEndpoint");var TN=function(Y){this.delegate=Y},KP=function(){TN.apply(this,arguments)};
_.r(KP,TN);_.y6.Object.defineProperties(KP.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(Y){this.delegate.entityMetadata=Y}}});var mAh=function(){KP.apply(this,arguments)};
_.r(mAh,KP);mAh.prototype.getAssociations=function(){return[]};var wjh=new _.N("webThumbnailDetailsExtensionData");var d98=new _.N("commandContext");var nQ6=new _.N("addVideoLinkAction");var jLJ=new _.N("createPollAction");var J__=new _.N("hideIdentityChipAction");var BIJ=new _.N("openUpdateCommentDialogAction");var Ew=new _.N("updateBackstagePollAction");var c_t=new _.N("updateCommentVoteAction");var CdJ=new _.N("commentThreadRenderer");var qg6=function(){KP.apply(this,arguments)};
_.r(qg6,KP);qg6.prototype.getAssociations=function(){return[]};_.Rkt=new _.N("commentDialogRenderer");var xAm=new _.N("updateCommentsSettingsEndpoint");var bXu=new _.N("commentViewModel");var TIi=new _.N("triStateButtonViewModel");var K0d=new _.N("voiceReplyContainerViewModel");_.qT=new _.N("commandExecutorCommand");var r8=new _.N("emoji");var EQU=new _.N("updateCreatorChannelInnertubeCommand");_.flJ=new _.N("appendContinuationItemsAction");_.gQ6=new _.N("changeEngagementPanelVisibilityAction");_.vX=new _.N("continuationCommand");var $Au=new _.N("listMutationCommand");_.fP=new _.N("openPopupAction");var r_J=new _.N("persistSubscriptionsDisplayPreferencesCommand");var w9J;_.G2s=new _.N("playlistRemoveVideosAction");_.hk_=new _.N("updatePlaylistAction");_.vQs=new _.N("addToPlaylistCommand");_.DAs=new _.N("endPlaylistCommand");_.IlJ=new _.N("recoverPlaylistCommand");_.alf=new _.N("refreshPlaylistCommand");_.L0m=new _.N("refreshFormCommand");w9J=new _.N("openOnePickAddVideoModalCommand");_.Ie9=new _.N("reloadContinuationItemsCommand");_.p9f=new _.N("scrollToEngagementPanelCommand");var F0U=new _.N("selectCountryCommand");var sL3=new _.N("showReloadUiCommand");var dAi=new _.N("undoFeedbackAction");var lld=new _.N("updateButtonAction");var Hga=new _.N("updateSubscribeButtonAction");var X9S=new _.N("updateToggleAction");var ZXi=new _.N("webNativeShareCommand");_.Yo=new _.N("webCommandMetadata");_.gD=new _.N("webHandleServiceEndpointExtension");var htu=new _.N("webNavigationEndpointData");var iXh=new _.N("copyLinkCommand");var oQ_=new _.N("playlistVotingRefreshPopupCommand");var tmU=new _.N("selectChipCommand");var A_d=new _.N("setCookieCommand");var UAi=new _.N("setLocalStorageCommand");var QLm=new _.N("setPrefStorageEntryCommand");var NIJ;_.k26=new _.N("settingsUpdateCheckboxCommand");_.Mms=new _.N("settingsUpdateTextCommand");_.y_d=new _.N("settingsUpdateOptionsCommand");NIJ=new _.N("settingsUpdateSwitchCommand");_.HX_=new _.N("settingsUpdateConnectedAppRendererCommand");var Vmu=new _.N("updateTextInputFormFieldRendererCommand");var eku=new _.N("updateToggleButtonStateCommand");var OX_=new _.N("updateUrlParamCommand");var Yxd=new _.N("webSubmitFormCommand");var SxL=new _.N("channelSwitcherPageRenderer"),PGf=new _.N("updateChannelSwitcherPageAction");_.Ws=new _.N("continuationItemRenderer");_.$p=new _.N("richItemRenderer");var u$d=new _.N("richSectionRenderer");_.WJh=new _.N("richShelfRenderer");_.zzm=new _.N("metadataBadgeRenderer");_.m4t=new _.N("multiPageMenuNotificationSectionRenderer");_.nM6=new _.N("playlistLoopButtonStateRenderer");var jiS=new _.N("claimLegacyYoutubeChannelEndpoint");var JyL=new _.N("getNotificationMenuEndpoint");var Bym=new _.N("getSearchInVideoCommand");_.cyt=new _.N("getTranscriptEndpoint");_.xo=new _.N("signalServiceEndpoint");var CG3=new _.N("verifyAgeEndpoint");var XIa=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(XIa,_.Gc);XIa.prototype.getPath=function(){return _.aJ(this,1)};
XIa.prototype.getValue=function(){return _.aJ(this,2)};var qxi=[0,_.kn,-1];var Rz6=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Rz6,_.Gc);var lh1=_.AY(Rz6,[0,_.Mi,qxi]);var x4J=new _.N("dismissalEndpoint");var blt=new _.N("elementsCommand");_.hL=new _.N("innertubeCommand");var Ty6=new _.N("multipleInlinePlaybackCommand");var jPh=new _.N("loggingDirectives");var U4a={EMBEDDED_PLAYER_MODE_UNKNOWN:"EMBEDDED_PLAYER_MODE_UNKNOWN",EMBEDDED_PLAYER_MODE_DEFAULT:"EMBEDDED_PLAYER_MODE_DEFAULT",EMBEDDED_PLAYER_MODE_PFP:"EMBEDDED_PLAYER_MODE_PFP",EMBEDDED_PLAYER_MODE_PFL:"EMBEDDED_PLAYER_MODE_PFL"};var KJf=new _.N("acknowledgeChannelTouStrikeCommand");var EMU=function(){KP.apply(this,arguments)};
_.r(EMU,KP);EMU.prototype.getAssociations=function(){return[]};var fji=function(){KP.apply(this,arguments)};
_.r(fji,KP);fji.prototype.getAssociations=function(){return[]};var Xt=new _.N("entityBatchUpdate");_.gMf=new _.N("entityUpdateCommand");var $4L=function(){KP.apply(this,arguments)};
_.r($4L,KP);$4L.prototype.getAssociations=function(){var Y=[];this.delegate.alternateChannel&&Y.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&Y.push.apply(Y,_.cz(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&Y.push(this.delegate.oneofChannelEntity);return[].concat(_.cz(new Set(Y)))};var rys=function(){KP.apply(this,arguments)};
_.r(rys,KP);rys.prototype.getAssociations=function(){var Y=[];this.delegate.entryCollection&&Y.push(this.delegate.entryCollection);return[].concat(_.cz(new Set(Y)))};
var Gjs=function(){KP.apply(this,arguments)};
_.r(Gjs,KP);Gjs.prototype.getAssociations=function(){var Y=[];this.delegate.parentPlaylist&&Y.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var S=_.n(this.delegate.entries),P=S.next();!P.done;P=S.next())Y.push.apply(Y,_.cz((new hzJ(P.value)).getAssociations()));return[].concat(_.cz(new Set(Y)))};
var hzJ=function(){TN.apply(this,arguments)};
_.r(hzJ,TN);hzJ.prototype.getAssociations=function(){var Y=[];this.delegate.video&&Y.push(this.delegate.video);return[].concat(_.cz(new Set(Y)))};var vMh=function(){KP.apply(this,arguments)};
_.r(vMh,KP);vMh.prototype.getAssociations=function(){var Y=[];this.delegate.descriptionEntity&&Y.push(this.delegate.descriptionEntity);this.delegate.creators&&Y.push.apply(Y,_.cz(this.delegate.creators));this.delegate.theBiggestFan&&Y.push(this.delegate.theBiggestFan);return[].concat(_.cz(new Set(Y)))};
var D4m=function(){KP.apply(this,arguments)};
_.r(D4m,KP);D4m.prototype.getAssociations=function(){return[]};var Ijm=new _.N("fantasyRosterViewModel");var ajU=new _.N("addFollowUpSurveyCommand");var LJU=new _.N("getSurveyCommand");var wyi=new _.N("ratingSurveyOptionRenderer");_.La=new _.N("feedbackEndpoint");var pyu=new _.N("reportHistoryTableCellRenderer"),FJ6=new _.N("reportHistoryTableTextCellRenderer"),sid=new _.N("reportHistoryTableReasonCellRenderer");_.d4i=new _.N("flagEndpoint");var lji=new _.N("getFlowCommand");var XyS=new _.N("submitFormWithValidationFlowCommand");var Zlm=function(){KP.apply(this,arguments)};
_.r(Zlm,KP);Zlm.prototype.getAssociations=function(){return[]};var ilm=new _.N("flowFormState");var oMi=new _.N("gameCardRenderer");var tjS=new _.N("accountLinkingStateChangedCommand");var Ayt=function(){KP.apply(this,arguments)};
_.r(Ayt,KP);Ayt.prototype.getAssociations=function(){return[]};var U4f=new _.N("changeMiniAppPlayStateCommand");var Qi_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Qi_,_.Gc);var rD=[1,2,3];var kjU=[0,rD,xo$,_.b9Y,j2a];var Mjt=_.AY(Qi_,kjU),yyf=_.Qy(kjU);var Nys=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Nys,_.Gc);var Hls=[0,_.Av,_.kn];var Vju=[0,_.kn];var ez6=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(ez6,_.Gc);var OlU=function(Y,S){return _.uX(Y,3,S)};var Yjt=_.Qy([0,1,Hls,_.Ni,Vju]);var SjS=new _.N("miniAppScoreChallengeViewModel");var Pis=new _.N("miniGameCardViewModel");var uyL=new _.N("teaserCardViewModel");var WIU=function(){KP.apply(this,arguments)};
_.r(WIU,KP);WIU.prototype.getAssociations=function(){return[]};_.zO6=new _.N("feedbackItemRenderer");var md6={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",INSERT_CHART:"INSERT_CHART",
INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",
SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",LABS_HEADER:"LABS_HEADER",
SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",RESHARE:"RESHARE",
MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",DOLLARSIGN_COLOR:"DOLLARSIGN_COLOR",YENSIGN_COLOR:"YENSIGN_COLOR",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",
ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",
FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",
GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",
PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD",TEXT_FILLED:"TEXT_FILLED"};var nqU=function(){KP.apply(this,arguments)};
_.r(nqU,KP);nqU.prototype.getAssociations=function(){return[]};_.j7J=new _.N("playerInterstitialRenderer");var Jzs=new _.N("getKidsBlocklistPickerCommand");_.BUd=new _.N("updateKidsBlacklistEndpoint");_.ka=new _.N("likeEndpoint");var czf,Ci3,qji;czf=new _.N("addChatItemAction");Ci3=new _.N("removeChatItemAction");qji=new _.N("markChatItemAsDeletedAction");_.ROs=new _.N("setLiveChatCollapsedStateAction");var xdi=function(){KP.apply(this,arguments)};
_.r(xdi,KP);xdi.prototype.getAssociations=function(){return[]};var bQL=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(bQL,_.Gc);var TUS=_.AY(bQL,[0,1,_.Av]);var KIs=new _.N("liveChatEndpoint");var Eqi=new _.N("liveChatItemContextMenuEndpoint");var fH3=new _.N("liveChatReplayEndpoint");_.gqt=new _.N("emojiPickerRenderer");var $d_=new _.N("liveChatAuthorBadgeViewModel");var rz6=new _.N("deleteLiveChatMessageCommand");var G96=new _.N("liveChatActionEndpoint");var hOu=new _.N("createLiveChatPollEndpoint");var vqu=new _.N("manageLiveChatUserEndpoint");var Ddh=new _.N("moderateLiveChatEndpoint");_.IHm=new _.N("sendLiveChatMessageEndpoint");var aHS=new _.N("sendLiveChatVoteEndpoint");var LIs=new _.N("clearLocationCommand");var wOt=new _.N("resolveLocationCommand");var pOL=new _.N("interactionLoggingCommandMetadata");var m9a=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(m9a,_.Gc);var zRY=function(Y,S){return _.Hk(Y,1,S)};var FIs=[0,_.QL];var WH$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(WH$,_.Gc);var uTu=function(Y,S){return Ty(Y,1,m9a,S)};WH$.prototype.JSC$9931_serializeBinary=O1u([0,_.Mi,FIs]);var Rz9={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 s7d={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"},
ddh={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 i8K={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"};_.N4E=new _.N("logFlowLoggingEventCommand");_.lkY=new _.N("loggingContext");var lHi=new _.N("captionLanguageSelectActionCommand");var XO3=new _.N("showCaptionLanguageSelectActionCommand");var ZQu=new _.N("dismissDialogEndpoint");var iQ_=new _.N("hideItemSectionVideosByIdCommand");var oqs=new _.N("showMiniplayerCommand");var tvm=function(){KP.apply(this,arguments)};
_.r(tvm,KP);tvm.prototype.getAssociations=function(){return[]};var Azh=function(){KP.apply(this,arguments)};
_.r(Azh,KP);Azh.prototype.getAssociations=function(){return[]};var Uds=function(){KP.apply(this,arguments)};
_.r(Uds,KP);Uds.prototype.getAssociations=function(){return[]};var Q7_=function(){KP.apply(this,arguments)};
_.r(Q7_,KP);Q7_.prototype.getAssociations=function(){var Y=[];this.delegate.downloadsList&&Y.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&Y.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&Y.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&Y.push(this.delegate.refresh);return[].concat(_.cz(new Set(Y)))};var k9m=function(){KP.apply(this,arguments)};
_.r(k9m,KP);k9m.prototype.getAssociations=function(){var Y=[];this.delegate.refresh&&Y.push(this.delegate.refresh);if(this.delegate.downloads)for(var S=_.n(this.delegate.downloads),P=S.next();!P.done;P=S.next())Y.push.apply(Y,_.cz((new Mvh(P.value)).getAssociations()));return[].concat(_.cz(new Set(Y)))};
var Mvh=function(){TN.apply(this,arguments)};
_.r(Mvh,TN);Mvh.prototype.getAssociations=function(){var Y=[];this.delegate.video&&Y.push(this.delegate.video);this.delegate.playlist&&Y.push(this.delegate.playlist);this.delegate.videoItem&&Y.push(this.delegate.videoItem);this.delegate.playlistItem&&Y.push(this.delegate.playlistItem);return[].concat(_.cz(new Set(Y)))};var yz3=function(){KP.apply(this,arguments)};
_.r(yz3,KP);yz3.prototype.getAssociations=function(){var Y=[];this.delegate.localImageEntities&&Y.push.apply(Y,_.cz(this.delegate.localImageEntities));return[].concat(_.cz(new Set(Y)))};var NUS=function(){KP.apply(this,arguments)};
_.r(NUS,KP);NUS.prototype.getAssociations=function(){var Y=[];this.delegate.playbackData&&Y.push(this.delegate.playbackData);this.delegate.localImageEntities&&Y.push.apply(Y,_.cz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&Y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.cz(new Set(Y)))};var HQ6=function(){KP.apply(this,arguments)};
_.r(HQ6,KP);HQ6.prototype.getAssociations=function(){return[]};var Vvu=function(){KP.apply(this,arguments)};
_.r(Vvu,KP);Vvu.prototype.getAssociations=function(){var Y=[];this.delegate.fakeChildren&&Y.push.apply(Y,_.cz(this.delegate.fakeChildren));return[].concat(_.cz(new Set(Y)))};var eOd=function(){KP.apply(this,arguments)};
_.r(eOd,KP);eOd.prototype.getAssociations=function(){var Y=[];this.delegate.video&&Y.push(this.delegate.video);this.delegate.playbackData&&Y.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&Y.push(this.delegate.offlineVideoPolicy);return[].concat(_.cz(new Set(Y)))};var OQs=function(){KP.apply(this,arguments)};
_.r(OQs,KP);OQs.prototype.getAssociations=function(){return[]};var Yb_=function(){KP.apply(this,arguments)};
_.r(Yb_,KP);Yb_.prototype.getAssociations=function(){var Y=[];this.delegate.channelOwner&&Y.push(this.delegate.channelOwner);this.delegate.videos&&Y.push.apply(Y,_.cz(this.delegate.videos));this.delegate.collaboratorChannels&&Y.push.apply(Y,_.cz(this.delegate.collaboratorChannels));this.delegate.downloadState&&Y.push(this.delegate.downloadState);this.delegate.refresh&&Y.push(this.delegate.refresh);return[].concat(_.cz(new Set(Y)))};var Sbs=function(){KP.apply(this,arguments)};
_.r(Sbs,KP);Sbs.prototype.getAssociations=function(){var Y=[];this.delegate.video&&Y.push(this.delegate.video);this.delegate.channelContributor&&Y.push(this.delegate.channelContributor);return[].concat(_.cz(new Set(Y)))};var PTf=function(){TN.apply(this,arguments)};
_.r(PTf,TN);PTf.prototype.getAssociations=function(){var Y=[];this.delegate.recommendedVideoMetadata&&Y.push.apply(Y,_.cz((new uPd(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.cz(new Set(Y)))};
var uPd=function(){TN.apply(this,arguments)};
_.r(uPd,TN);uPd.prototype.getAssociations=function(){var Y=[];this.delegate.localImageEntities&&Y.push.apply(Y,_.cz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&Y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.cz(new Set(Y)))};var WQs=function(){TN.apply(this,arguments)};
_.r(WQs,TN);WQs.prototype.getAssociations=function(){var Y=[];this.delegate.playbackPosition&&Y.push(this.delegate.playbackPosition);return[].concat(_.cz(new Set(Y)))};var zuf=function(){KP.apply(this,arguments)};
_.r(zuf,KP);zuf.prototype.getAssociations=function(){var Y=[];this.delegate.owner&&Y.push(this.delegate.owner);this.delegate.downloadState&&Y.push(this.delegate.downloadState);this.delegate.userState&&Y.push.apply(Y,_.cz((new WQs(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&Y.push.apply(Y,_.cz((new PTf(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.cz(new Set(Y)))};var mKU=function(){KP.apply(this,arguments)};
_.r(mKU,KP);mKU.prototype.getAssociations=function(){var Y=[];this.delegate.userChannelDetails&&Y.push(this.delegate.userChannelDetails);return[].concat(_.cz(new Set(Y)))};var nN_=function(){KP.apply(this,arguments)};
_.r(nN_,KP);nN_.prototype.getAssociations=function(){var Y=[];this.delegate.channelOwner&&Y.push(this.delegate.channelOwner);this.delegate.playbackPosition&&Y.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&Y.push.apply(Y,_.cz(this.delegate.localImageEntities));this.delegate.downloadStatus&&Y.push(this.delegate.downloadStatus);return[].concat(_.cz(new Set(Y)))};var HDE=new _.N("downloadsPageSmartDownloadsOptInBannerParams");var jxh=function(){KP.apply(this,arguments)};
_.r(jxh,KP);jxh.prototype.getAssociations=function(){return[]};var JV6=function(){KP.apply(this,arguments)};
_.r(JV6,KP);JV6.prototype.getAssociations=function(){return[]};var Bgd=function(){KP.apply(this,arguments)};
_.r(Bgd,KP);Bgd.prototype.getAssociations=function(){return[]};var cVd=function(){KP.apply(this,arguments)};
_.r(cVd,KP);cVd.prototype.getAssociations=function(){return[]};var CT6=function(){KP.apply(this,arguments)};
_.r(CT6,KP);CT6.prototype.getAssociations=function(){return[]};var qbs=function(){KP.apply(this,arguments)};
_.r(qbs,KP);qbs.prototype.getAssociations=function(){return[]};var Ruu=function(){KP.apply(this,arguments)};
_.r(Ruu,KP);Ruu.prototype.getAssociations=function(){return[]};var xKs=function(){KP.apply(this,arguments)};
_.r(xKs,KP);xKs.prototype.getAssociations=function(){return[]};var dfY=new _.N("dislikeButtonViewModel");var sg9=new _.N("likeButtonViewModel");var bws=new _.N("videoSummaryContentViewModel");var HHJ=new _.N("videoSummaryParagraphViewModel");var Tgm=new _.N("changeTimelyActionVisibilityCommand");var KQ_=new _.N("hideEngagementPanelEndpoint");var ENf=new _.N("refreshPanelEndpoint");var fTu=new _.N("scrollToSectionEndpoint");var gNd=new _.N("seekToVideoTimestampCommand");_.aB=new _.N("showEngagementPanelEndpoint");var $K_=new _.N("showTransientPlayerScrimOverlayCommand");var rV6=new _.N("toggleEngagementPanelCommand");_.Grs=new _.N("createBroadcastCommand");var hu6=new _.N("metadataUpdateCommand");var vNu=function(){KP.apply(this,arguments)};
_.r(vNu,KP);vNu.prototype.getAssociations=function(){return[]};var DKJ=function(){KP.apply(this,arguments)};
_.r(DKJ,KP);DKJ.prototype.getAssociations=function(){return[]};var ITu=function(){KP.apply(this,arguments)};
_.r(ITu,KP);ITu.prototype.getAssociations=function(){return[]};_.aT_=new _.N("merchandiseShelfRenderer");var LQ_=new _.N("gridMovieRenderer");_.wHs=new _.N("movieRenderer");var pHd=function(){KP.apply(this,arguments)};
_.r(pHd,KP);pHd.prototype.getAssociations=function(){var Y=[];this.delegate.trackDownloadMetadatas&&Y.push.apply(Y,_.cz(this.delegate.trackDownloadMetadatas));return[].concat(_.cz(new Set(Y)))};var FQ3=function(){KP.apply(this,arguments)};
_.r(FQ3,KP);
FQ3.prototype.getAssociations=function(){var Y=[];this.delegate.downloadedTracks&&Y.push.apply(Y,_.cz(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&Y.push.apply(Y,_.cz(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&Y.push.apply(Y,_.cz(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&Y.push.apply(Y,_.cz(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&Y.push.apply(Y,_.cz(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
Y.push.apply(Y,_.cz(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&Y.push.apply(Y,_.cz(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&Y.push.apply(Y,_.cz(this.delegate.metadataOnlyTracks));return[].concat(_.cz(new Set(Y)))};var sxd=function(){KP.apply(this,arguments)};
_.r(sxd,KP);sxd.prototype.getAssociations=function(){var Y=[];this.delegate.trackDownloadMetadatas&&Y.push.apply(Y,_.cz(this.delegate.trackDownloadMetadatas));return[].concat(_.cz(new Set(Y)))};var dK3=function(){KP.apply(this,arguments)};
_.r(dK3,KP);dK3.prototype.getAssociations=function(){var Y=[];this.delegate.playbackData&&Y.push(this.delegate.playbackData);this.delegate.localImageEntities&&Y.push.apply(Y,_.cz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&Y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.cz(new Set(Y)))};var lTJ=function(){KP.apply(this,arguments)};
_.r(lTJ,KP);
lTJ.prototype.getAssociations=function(){var Y=[];this.delegate.musicLibraryStatusEntity&&Y.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&Y.push.apply(Y,_.cz(this.delegate.primaryArtists));this.delegate.details&&Y.push(this.delegate.details);this.delegate.userDetails&&Y.push(this.delegate.userDetails);this.delegate.tracks&&Y.push.apply(Y,_.cz(this.delegate.tracks));this.delegate.share&&Y.push(this.delegate.share);this.delegate.downloadMetadata&&Y.push(this.delegate.downloadMetadata);this.delegate.refresh&&
Y.push(this.delegate.refresh);return[].concat(_.cz(new Set(Y)))};
var XH6=function(){KP.apply(this,arguments)};
_.r(XH6,KP);XH6.prototype.getAssociations=function(){var Y=[];this.delegate.albumRelease&&Y.push(this.delegate.albumRelease);this.delegate.tracks&&Y.push.apply(Y,_.cz(this.delegate.tracks));return[].concat(_.cz(new Set(Y)))};
var Zw3=function(){KP.apply(this,arguments)};
_.r(Zw3,KP);Zw3.prototype.getAssociations=function(){var Y=[];this.delegate.albumRelease&&Y.push(this.delegate.albumRelease);return[].concat(_.cz(new Set(Y)))};var iwh=function(){KP.apply(this,arguments)};
_.r(iwh,KP);iwh.prototype.getAssociations=function(){var Y=[];this.delegate.details&&Y.push(this.delegate.details);this.delegate.userDetails&&Y.push(this.delegate.userDetails);return[].concat(_.cz(new Set(Y)))};
var oNL=function(){KP.apply(this,arguments)};
_.r(oNL,KP);oNL.prototype.getAssociations=function(){var Y=[];this.delegate.parentArtist&&Y.push(this.delegate.parentArtist);return[].concat(_.cz(new Set(Y)))};
var tdJ=function(){KP.apply(this,arguments)};
_.r(tdJ,KP);tdJ.prototype.getAssociations=function(){var Y=[];this.delegate.parentArtist&&Y.push(this.delegate.parentArtist);return[].concat(_.cz(new Set(Y)))};var AV3=function(){KP.apply(this,arguments)};
_.r(AV3,KP);AV3.prototype.getAssociations=function(){return[]};var UKf=function(){KP.apply(this,arguments)};
_.r(UKf,KP);UKf.prototype.getAssociations=function(){return[]};var QxU=function(){KP.apply(this,arguments)};
_.r(QxU,KP);
QxU.prototype.getAssociations=function(){var Y=[];this.delegate.tracks&&Y.push.apply(Y,_.cz(this.delegate.tracks));this.delegate.refresh&&Y.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&Y.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&Y.push(this.delegate.details);this.delegate.downloadMetadata&&Y.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&Y.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&Y.push(this.delegate.userDetails);this.delegate.entryCollection&&
Y.push(this.delegate.entryCollection);this.delegate.share&&Y.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&Y.push.apply(Y,_.cz((new krt(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.cz(new Set(Y)))};
var krt=function(){TN.apply(this,arguments)};
_.r(krt,TN);krt.prototype.getAssociations=function(){var Y=[];this.delegate.creatorEntity&&Y.push(this.delegate.creatorEntity);return[].concat(_.cz(new Set(Y)))};var MdJ=function(){KP.apply(this,arguments)};
_.r(MdJ,KP);MdJ.prototype.getAssociations=function(){return[]};var yVu=function(){KP.apply(this,arguments)};
_.r(yVu,KP);
yVu.prototype.getAssociations=function(){var Y=[];this.delegate.musicLibraryStatusEntity&&Y.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&Y.push.apply(Y,_.cz(this.delegate.artists));this.delegate.audioModeVersion&&Y.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&Y.push(this.delegate.videoModeVersion);this.delegate.userDetails&&Y.push(this.delegate.userDetails);this.delegate.details&&Y.push(this.delegate.details);this.delegate.albumRelease&&Y.push(this.delegate.albumRelease);this.delegate.share&&
Y.push(this.delegate.share);this.delegate.libraryEdit&&Y.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&Y.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&Y.push(this.delegate.playbackPosition);this.delegate.lyrics&&Y.push(this.delegate.lyrics);return[].concat(_.cz(new Set(Y)))};
var Ng6=function(){KP.apply(this,arguments)};
_.r(Ng6,KP);Ng6.prototype.getAssociations=function(){var Y=[];this.delegate.parentTrack&&Y.push(this.delegate.parentTrack);return[].concat(_.cz(new Set(Y)))};
var Hw3=function(){KP.apply(this,arguments)};
_.r(Hw3,KP);Hw3.prototype.getAssociations=function(){var Y=[];this.delegate.parentTrack&&Y.push(this.delegate.parentTrack);return[].concat(_.cz(new Set(Y)))};var SN=new _.N("musicResponsiveListItemRenderer");var pDX=new _.N("addToPlaylistEndpoint");var Vdu=new _.N("captionPickerEndpoint");var eu_=new _.N("suggestStats");var Owd=new _.N("backstageImageUploadEndpoint");var YqJ=new _.N("createBackstagePostDialogEndpoint");_.SqU=new _.N("createCommentReplyDialogEndpoint");_.PvU=new _.N("updateCommentDialogEndpoint");_.uKm=new _.N("updateCommentReplyDialogEndpoint");var WTi=new _.N("menuEndpoint");var gbK=new _.N("modalEndpoint");var z7S=new _.N("playlistEditorEndpoint");var mJ3=new _.N("copyTextEndpoint");var nff,jMi;nff=new _.N("shareEndpoint");jMi=new _.N("shareEntityEndpoint");_.J7L=new _.N("shareEntityServiceEndpoint");_.QUa=new _.N("userFeedbackEndpoint");_.yx=new _.N("watchEndpoint");var YLX=new _.N("watchPlaylistEndpoint");var BFu=new _.N("addUpcomingEventReminderEndpoint");_.GN=new _.N("getCommentsFromInboxCommand");var c7d=new _.N("notificationOptOutEndpoint");var Cvf=new _.N("recordNotificationInteractionsEndpoint");var qqt=new _.N("removeUpcomingEventReminderEndpoint");var Lrf=new _.N("getDownloadActionCommand");_.R7S=new _.N("offlineOrchestrationActionCommand");var xJ3=function(){KP.apply(this,arguments)};
_.r(xJ3,KP);xJ3.prototype.getAssociations=function(){return[]};var brU=function(){KP.apply(this,arguments)};
_.r(brU,KP);brU.prototype.getAssociations=function(){return[]};var TFd=function(){KP.apply(this,arguments)};
_.r(TFd,KP);TFd.prototype.getAssociations=function(){return[]};var KTL=function(){KP.apply(this,arguments)};
_.r(KTL,KP);KTL.prototype.getAssociations=function(){return[]};var Ef6=function(){KP.apply(this,arguments)};
_.r(Ef6,KP);Ef6.prototype.getAssociations=function(){var Y=[];this.delegate.transfer&&Y.push(this.delegate.transfer);this.delegate.adsPlaybackData&&Y.push.apply(Y,_.cz(this.delegate.adsPlaybackData));this.delegate.drmLicense&&Y.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&Y.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&Y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.cz(new Set(Y)))};var fom=function(){KP.apply(this,arguments)};
_.r(fom,KP);fom.prototype.getAssociations=function(){return[]};var gft=function(){KP.apply(this,arguments)};
_.r(gft,KP);gft.prototype.getAssociations=function(){var Y=[];this.delegate.offlineVideoStreams&&Y.push.apply(Y,_.cz(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&Y.push.apply(Y,_.cz(this.delegate.captionTrack));return[].concat(_.cz(new Set(Y)))};var $Jm=function(){KP.apply(this,arguments)};
_.r($Jm,KP);$Jm.prototype.getAssociations=function(){return[]};var r7i=new _.N("showMoreDrawerCommand");var GfS=new _.N("updateEngagementPanelContentCommand");var h7_=new _.N("getPdgBuyFlowCommand");var vfu=new _.N("liveChatPurchaseMessageEndpoint");var DJ6=new _.N("openSuperStickerBuyFlowCommand");var Io3=new _.N("updatePdgFeatureEnablementCommand");var aoS=function(){KP.apply(this,arguments)};
_.r(aoS,KP);aoS.prototype.getAssociations=function(){return[]};var LT3=function(){KP.apply(this,arguments)};
_.r(LT3,KP);LT3.prototype.getAssociations=function(){return[]};_.wmd=new _.N("pdgCommentChipRenderer");_.pmi=new _.N("permissionRoleBottomBarRenderer");_.FTu=new _.N("updatePermissionRoleCommand");var sM_=new _.N("prefetchWatchCommand");var dJS=new _.N("updatePlayerErrorMessageCommand");var r4Y=new _.N("toggleCaptionsVisibilityCommand");_.loJ=new _.N("quickActionsViewModel");var Xmu=new _.N("playerResponse");var Zrh=new _.N("playlistRenderer");_.irS=new _.N("playlistVideoListRenderer");_.hf=new _.N("playlistEditEndpoint");var ofh=new _.N("createImagePollCommand");var tp3=new _.N("createQuizCommand");var A7f=new _.N("quizRenderer");var UJL=new _.N("uploadedVideoRenderer");var QMS=new _.N("decorateMessageEndpoint");var kf6=new _.N("lpOfferCardOptionViewModel");var Mps=new _.N("sfvAudioItemPlaybackCommand");var y7m=function(){KP.apply(this,arguments)};
_.r(y7m,KP);y7m.prototype.getAssociations=function(){return[]};_.vg=new _.N("reelNonVideoContentEndpoint");_.bM=new _.N("reelWatchEndpoint");_.DP=new _.N("reelItemRenderer");var NFS=new _.N("reelMetapanelViewModel");_.HrJ=new _.N("reelNonVideoContentRenderer");_.Vps=new _.N("reelPlayerOverlayRenderer");var e73=new _.N("shortsLockupViewModel");var Orf=new _.N("sponsorButtonViewModel");var Yms=new _.N("reelItemWatchResponse");var SmU=new _.N("textBadgeRenderer");_.I8=new _.N("buttonRenderer");_.a8=new _.N("toggleButtonRenderer");var p7Y=new _.N("switchButtonViewModel");_.Prm=new _.N("confirmDialogRenderer");var uUL;uUL=new _.N("menuRenderer");_.Wlu=new _.N("menuFlexibleItemRenderer");var zDt=new _.N("pollRenderer");_.m7s=new _.N("backgroundPromoRenderer");var jSt;_.n1t=new _.N("chipCloudRenderer");jSt=new _.N("chipCloudChipRenderer");var Jnh=new _.N("dropdownRenderer");var Bpu=new _.N("gridVideoRenderer");_.R5X=new _.N("itemSectionRenderer");_.cn_=new _.N("messageRenderer");var Cr3=new _.N("sortFilterHeaderRenderer");_.qmJ=new _.N("videoRenderer");var RDJ=new _.N("resolveUrlCommandMetadata");var x7u=function(){KP.apply(this,arguments)};
_.r(x7u,KP);x7u.prototype.getAssociations=function(){return[]};_.bDs=new _.N("getAnswerCommand");_.qy=new _.N("searchEndpoint");var Tp3=new _.N("genAiRichTextViewModel");var aeE=new _.N("overviewAnswerViewModel");var Klm=new _.N("addToPlaylistServiceEndpoint");var E1J=new _.N("clearSearchHistoryEndpoint");var fWU=new _.N("clearWatchHistoryEndpoint");var g1s=new _.N("webSerializedServiceEndpointExtension");_.vpJ=new _.N("createCommentEndpoint");var D$d=new _.N("createCommentReplyEndpoint");var IP_=new _.N("performCommentActionEndpoint");var aPm=new _.N("updateCommentEndpoint");var Laf=new _.N("updateCommentReplyEndpoint");_.LP=new _.N("createPlaylistServiceEndpoint");var wgU=new _.N("deletePlaylistEndpoint");var pgs=new _.N("deleteVideoEndpoint");var wDU=new _.N("getReportFormEndpoint");var FaU=new _.N("modifyChannelNotificationPreferenceEndpoint");var eGa;_.n2=new _.N("offlinePlaylistEndpoint");eGa={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 OK8;_.mA=new _.N("offlineVideoEndpoint");OK8={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 s8d=new _.N("pingingEndpoint");_.d$h=new _.N("selectActiveIdentityEndpoint");var lPs=new _.N("setSettingEndpoint");var fvu=new _.N("undoFeedbackEndpoint");var Xgi=new _.N("unsubscribeEndpoint");_.ZPJ=new _.N("updatedMetadataEndpoint");var iPh=function(){KP.apply(this,arguments)};
_.r(iPh,KP);iPh.prototype.getAssociations=function(){return[]};_.opS=new _.N("updateLocalAppSettingCommand");var tT6=new _.N("saveImageToDeviceEndpoint");var Afh=new _.N("shareImageCommand");var U$S=new _.N("sharingProviderDataCommand");var Q8f=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Q8f,_.Gc);var kNJ=[0,_.kn,-1];Q8f.prototype.JSC$10130_serializeBinary=O1u(kNJ);var MTf=_.Qy(kNJ);var yfu=new _.N("userMentionSuggestionRenderer");var NDh=new _.N("liveChatTunnelCommand");var HP3=new _.N("showSponsorshipsGiftOfferDialogCommand");var VTs=new _.N("sponsorshipsScrollableShelfViewModel");var eSJ=new _.N("updateUpcomingEventReminderButtonStateCommand");var OP_=new _.N("upcomingEventReminderButtonStateRenderer");var YG_=new _.N("subscribeEndpoint");var SGs=new _.N("registerTasksCommand");var PAU=new _.N("showDialogCommand");_.Rq=new _.N("showSheetCommand");var uot=function(){KP.apply(this,arguments)};
_.r(uot,KP);uot.prototype.getAssociations=function(){return[]};_.Aq=new _.N("avatarViewModel");var YzU=new _.N("badgeViewModel");_.Gz=new _.N("buttonViewModel");_.wD=new _.N("chipViewModel");var zsf=new _.N("contentPreviewImageViewModel");var CqE=new _.N("decoratedAvatarViewModel");var v0f=new _.N("downloadButtonViewModel");_.eQX=new _.N("engagementBarViewModel");_.b48=new _.N("imageBannerViewModel");var bHu=new _.N("lockupContentMetadataRowExtension");var WDs=new _.N("lockupMetadataViewModel");_.z2U=new _.N("lockupViewModel");var mni=function(){KP.apply(this,arguments)};
_.r(mni,KP);mni.prototype.getAssociations=function(){return[]};_.nmi=new _.N("pageHeaderViewModel");var rXh=new _.N("thumbnailHoverOverlayToggleActionsViewModel");_.hq=new _.N("toggleButtonViewModel");var jQ3=function(){KP.apply(this,arguments)};
_.r(jQ3,KP);jQ3.prototype.getAssociations=function(){return[]};_.OTJ=new _.N("votingViewModel");var J53=new _.N("sectionHeaderViewModel");var BGU=new _.N("notifyDropdownOptionSelectedCommand");var UXa=new _.N("listViewModel");_.xI=new _.N("listItemViewModel");var c5t=new _.N("dialogHeaderViewModel");var CA3=function(){KP.apply(this,arguments)};
_.r(CA3,KP);CA3.prototype.getAssociations=function(){return[]};var qGS=function(){KP.apply(this,arguments)};
_.r(qGS,KP);qGS.prototype.getAssociations=function(){return[]};var R26=function(){KP.apply(this,arguments)};
_.r(R26,KP);R26.prototype.getAssociations=function(){return[]};_.xnJ=new _.N("transcriptSubmitCaptionCorrectionCommand");var bdJ=function(){KP.apply(this,arguments)};
_.r(bdJ,KP);bdJ.prototype.getAssociations=function(){return[]};var JRf=new _.N("unpluggedStringRunImage");var TGi=new _.N("tabViewModel");var KDs=new _.N("tabbedViewModel");var Emf=function(){KP.apply(this,arguments)};
_.r(Emf,KP);Emf.prototype.getAssociations=function(){return[]};_.f36=new _.N("updateDescriptionAction");var gm_=new _.N("updateToggleButtonTextAction");_.$n3=new _.N("autoplaySwitchButtonRenderer");var Fj;_.r5f=new _.N("multiMarkersPlayerBarRenderer");Fj=new _.N("chapterRenderer");var GE_=new _.N("heatMarkerRenderer");var pPX=new _.N("heatmapRenderer");var h2h=new _.N("smartSkipPlayerScrimOverlayRenderer");var vmm=new _.N("timedMarkerDecorationRenderer");var oHa=new _.N("postWebToNativeMessageCommand");var DnU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(DnU,_.Gc);var I3d=_.AY(DnU,[0,_.kn,-2]);var a36=new _.N("whitelistEditEndpoint");var LDt=new _.N("clearUrlParamCommand");var wps=new _.N("commerceActionCommand");_.pph=new _.N("getPaymentInstrumentsParamsCommand");var FD3=new _.N("getPaymentsClientTokenCommand");var sQU=new _.N("googlePaymentBillingCommand");var dnh=new _.N("googlePaymentPurchaseManagerCommand");_.l3_=new _.N("logGtmCommand");var Xpi=new _.N("updateCardItemOnClickCommand");_.Zdd=new _.N("ypcPauseSubscriptionCommand");_.idu=new _.N("ypcResumeSubscriptionCommand");var omU=function(){KP.apply(this,arguments)};
_.r(omU,KP);omU.prototype.getAssociations=function(){return[]};var tas=function(){KP.apply(this,arguments)};
_.r(tas,KP);tas.prototype.getAssociations=function(){return[]};var A5f=function(){KP.apply(this,arguments)};
_.r(A5f,KP);A5f.prototype.getAssociations=function(){return[]};var Uni=function(){KP.apply(this,arguments)};
_.r(Uni,KP);Uni.prototype.getAssociations=function(){return[]};var QQm=function(){KP.apply(this,arguments)};
_.r(QQm,KP);QQm.prototype.getAssociations=function(){return[]};var Wdu=new _.N("ypcOffersEndpoint");var kEm=new _.N("cardItemRenderer"),Ma6=new _.N("cardItemTextRenderer");var y5u=new _.N("commerceCartItemQuantityPickerRenderer");var NG6=new _.N("linkCardRenderer");var Fva=new _.N("quantityIncrementerButtonViewModel");var Hdf=new _.N("quantityIncrementerViewModel");var Vaf=new _.N("themedImageViewModel");_.e2f=new _.N("ypcCancelRecurrenceEndpoint");var Ods=new _.N("ypcCompleteTransactionEndpoint");_.Yem=new _.N("ypcGetCartEndpoint");_.Ya=new _.N("ypcGetOffersEndpoint");_.pP=new _.N("ypcHandleTransactionEndpoint");var Ses=new _.N("ypcLogWalletAnalyticDataEndpoint");_.P4U=new _.N("ypcRedeemCodeEndpoint");var uhi=new _.N("ypcUpdateFopEndpoint");eB(VQ(1),N7(4));H9h((new MessageChannel).port2);var Wes=function(){this.register=new Map},bla=function(Y,S,P){Y=Y+"_"+S;
FZ.register.has(Y)?P=FZ.register.get(Y):(P=P(),FZ.register.set(Y,P));return P},zef=function(Y){Y=_.n(Y.register.values());
for(var S=Y.next();!S.done;S=Y.next())_.q2(S.value,"ABORTED")};
Wes.prototype.clear=function(){zef(this);this.register.clear()};
var FZ=new Wes;var NIX=Date.now().toString();var Vm8,mCL=_.Pa.ytLoggingDocDocumentNonce_;mCL||(mCL=ak(16),_.HQ("ytLoggingDocDocumentNonce_",mCL));Vm8=mCL;var zzu={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 nAf;nAf=1;_.LM=function(Y){this.veData=Y};
_.Re=function(Y){return new _.LM({trackingParams:Y})};
_.TI=function(Y,S,P,u,W,m){var J=nAf++;return new _.LM({veType:Y,veCounter:J,elementIndex:P,dataElement:S,youtubeData:u,jspbYoutubeData:W,loggingDirectives:m})};
_.z=_.LM.prototype;
_.z.getAsJson=function(){var Y={};this.veData.trackingParams!==void 0?Y.trackingParams=this.veData.trackingParams:(Y.veType=this.veData.veType,this.veData.veCounter!==void 0&&(Y.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(Y.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(Y.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(Y.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(Y.isCounterfactual=!0);
return Y};
_.z.getAsJspb=function(){var Y=new MqU;this.veData.trackingParams!==void 0?Y.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.sM(Y,2,this.veData.veType),this.veData.veCounter!==void 0&&_.sM(Y,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.sM(Y,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Hk(Y,5,!0));if(this.veData.dataElement!==void 0){var S=this.veData.dataElement.getAsJspb();_.N8(Y,7,S)}this.veData.youtubeData!==void 0&&_.N8(Y,8,this.veData.jspbYoutubeData);
return Y};
_.z.toString=function(){return JSON.stringify(this.getAsJson())};
_.z.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.z.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.HQ("yt_logging_screen.getRootVeType",PGa);_.HQ("yt_logging_screen.getCurrentCsn",_.pM);_.HQ("yt_logging_screen.getCttAuthInfo",Fv);_.HQ("yt_logging_screen.setCurrentScreen",_.jiK);var jmi=function(){this.events=new Map},JDS=function(Y){var S=[];
Y=_.n(Y.events.values());for(var P=Y.next();!P.done;P=Y.next())S.push(P.value);return S};
jmi.prototype.clear=function(){this.events.clear()};var cD6=function(){this.logTransport=new BmJ;this.loggedEventRegister=new jmi;this.unloggedEventRegister=new jmi;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10185_flushTimer=new _.P3(this.flushInterval);this.JSC$10185_flushTimer.listen("tick",this.flush,!1,this)};
cD6.prototype.flush=function(){if(this.eventsCount){var Y={loggedEvents:JDS(this.loggedEventRegister),unloggedEvents:JDS(this.unloggedEventRegister)};if(_.f("export_player_version_to_ytconfig")){var S;(S=_.X3("PLAYER_CLIENT_VERSION"))?(S=S.split("-")[0].replace(/\./g,""),S=isNaN(Number(S))?"0":S):S="";var P=_.X3("PLAYER_CLIENT_VERSION");if(P){P=P.split("-");var u="";P.length>1&&(u=P[P.length-1]);P=y_1(u.startsWith("canary_experiment")?"canary":u.startsWith("canary_control")?"control":"none")}else P=
"CLIENT_CANARY_STATE_UNKNOWN";Y.dimensions={playerClientVersion:S,playerCanaryState:P}}this.logTransport.flush(Y);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10185_flushTimer.enabled&&this.JSC$10185_flushTimer.stop()}};
var C46=function(Y){sw==null&&(sw=new cD6);var S=sw;var P=S.loggedEventRegister;Y.dimensions=Y.dimensions||{};Y.dimensions.csn=_.pM()||"";var u=JyU(Y.dimensions).join(";");if(Y.records!=null)if(P.events.has(u)){var W;(W=P.events.get(u).records)==null||W.push.apply(W,_.cz(Y.records))}else P.events.set(u,Y);S.JSC$10185_flushTimer.enabled||S.JSC$10185_flushTimer.start();S.eventsCount++;S.eventsCount>=100&&S.flush()};var BmJ=function(){};
BmJ.prototype.flush=function(Y,S){_.f("enable_client_sli_logging")&&_.L_("sliEventBatch",Y,{sendIsolatedPayload:!!S})};var sw;var Rei;Rei=function(Y){var S=qeL;Y=Y===void 0?{}:Y;S=S.name;var P=x4X("SUCCESS");C46({dimensions:Y,records:[{name:S,state:"SLI_STATE_END",status:P}]})};
_.Ty9=function(Y,S,P,u){this.name=Y;this.sliId=S;this.timeoutMs=P;this.statusOnTimeout=u;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.Ty9.prototype.getId=function(){return this.sliId};
_.Ca=function(Y,S){S=S===void 0?{}:S;Y.ongoing||(Y.ongoing=!0,Y.dimensions=S,Y.logSliId=$wJ(),C46({dimensions:Y.dimensions,records:[{name:Y.name,state:"SLI_STATE_START",sliId:Y.logSliId}]}),Y.timeoutMs>0&&(Y.timeoutHandle=setTimeout(function(){_.q2(Y,Y.statusOnTimeout)},Y.timeoutMs)))};
_.q2=function(Y,S){Y.ongoing&&(Y.timeoutMs>0&&clearTimeout(Y.timeoutHandle),Y.ongoing=!1,S={dimensions:Y.dimensions,records:[{name:Y.name,status:x4X(S),state:"SLI_STATE_END",sliId:Y.logSliId}]},FZ.register.delete(Y.name+"_"+Y.sliId),C46(S))};var qeL=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var xCf=function(){KP.apply(this,arguments)};
_.r(xCf,KP);xCf.prototype.getAssociations=function(){return[]};var Ve9=new _.N("highlightTextDecoratorColorMapExtension");var NsJ=new _.N("styleRunColorMapExtension");var Gjf=_.Q0(["data-"]),D4u={};var ajh={};_.i6=function(Y,S,P){_.YY.call(this,Y+", errorCode="+S);this.errorCode=S;this.xhr=P;this.name="PromiseAjaxError"};
_.r(_.i6,_.YY);var si1=function(Y){this.xhr=Y};var dD=function(Y){this.wrappedPromise_=Y===void 0?null:Y;this.state_=0;this.JSC$10217_value_=null};
dD.prototype.then=function(Y,S,P){return this.wrappedPromise_?this.wrappedPromise_.then(Y,S,P):this.state_===1&&Y?(Y=Y.call(P,this.JSC$10217_value_))&&typeof Y.then==="function"?Y:_.lO(Y):this.state_===2&&S?(Y=S.call(P,this.JSC$10217_value_))&&typeof Y.then==="function"?Y:_.bff(Y):this};
dD.prototype.getValue=function(){return this.JSC$10217_value_};
dD.prototype.isRejected=function(){return this.state_==2};
eEL(dD);_.bff=function(Y){var S=new dD;Y=Y===void 0?null:Y;S.state_=2;S.JSC$10217_value_=Y===void 0?null:Y;return S};
_.lO=function(Y){var S=new dD;Y=Y===void 0?null:Y;S.state_=1;S.JSC$10217_value_=Y===void 0?null:Y;return S};var FJ9={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Vj8="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Tmd=["load","abort","error"],XZ=function(Y,S,P){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10237_maxAspectRatio_=Y;this.disableAnimation_=S===void 0?!1:S;this.disableExifRotation_=P===void 0?!1:P;this.JSC$10237_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10237_reject_=this.resolve_=null};
XZ.prototype.transform=function(Y){var S=this;this.mime_=Y.type;Ay(AEL(Y),this.dataUrlRead_,this.readError_,this);Ay(tks(Y.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(P,u){S.resolve_=P;S.JSC$10237_reject_=u})};
XZ.prototype.dataUrlRead_=function(Y){this.dataUrl_=Y;this.angle_!=null&&Kes(this)};
XZ.prototype.exifRead_=function(Y){if(this.disableExifRotation_)this.angle_=0;else{a:if(Y=new DataView(Y),Y.byteLength<2||Y.getUint16(0)!==65496)Y=-2;else{for(var S=2,P=Y.byteLength;S<P;){var u=Y.getUint16(S),W=Y.getUint16(S+2);if(u===65505){S+=4;u=Y.getUint32(S);W=Y.getUint16(S+4);if(u!==1165519206||W!==0)break;S+=6;u=Y.getUint16(S)===18761;S+=Y.getUint32(S+4,u);W=Y.getUint16(S,u);S+=2;for(var m=0;m<W;m++){if(Y.getUint16(S,u)===274){S+=8;Y=Y.getUint16(S,u);break a}S+=12}}else if(u>>8!==255)break;
else S+=W+2}Y=-1}switch(Y){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&Kes(this)};
XZ.prototype.readError_=function(){this.JSC$10237_reject_()};
var Kes=function(Y){Cs(Y.JSC$10237_image_,Tmd,Y.completeTransform_,!1,Y);Y.JSC$10237_image_.src=_.Bx(Y.dataUrl_).toString();Y.JSC$10237_image_.src!=Jw.toString()&&Y.JSC$10237_image_.src.substr(0,11)==="data:image/"||Y.JSC$10237_reject_()};
XZ.prototype.completeTransform_=function(){if(this.JSC$10237_image_.src!=Jw.toString()){var Y=_.Bx(this.dataUrl_),S=this.JSC$10237_image_.naturalHeight?this.JSC$10237_image_.naturalWidth/this.JSC$10237_image_.naturalHeight:null;this.invalidAspectRatio=S>this.JSC$10237_maxAspectRatio_||S<1/this.JSC$10237_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var P=this.JSC$10237_image_.naturalWidth,u=this.JSC$10237_image_.naturalHeight,W=S=0,m=this.JSC$10237_image_.naturalHeight?this.JSC$10237_image_.naturalWidth/
this.JSC$10237_image_.naturalHeight:null;m>this.JSC$10237_maxAspectRatio_?(P=this.JSC$10237_maxAspectRatio_*u,S=(P-this.JSC$10237_image_.naturalWidth)/2,this.cropped=!0):m<1/this.JSC$10237_maxAspectRatio_?(u=this.JSC$10237_maxAspectRatio_*P,W=(u-this.JSC$10237_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)m=P,P=u,u=m,m=S,S=W,W=m;switch(this.angle_){case 90:W-=P;break;case 180:S-=P;W-=u;break;case 270:S-=
u}this.cropped||this.angle_%360!==0?(Y=document.createElement("canvas"),Y.width=P||1,Y.height=u||1,this.JSC$10237_image_.naturalWidth&&this.JSC$10237_image_.naturalHeight&&(P=Y.getContext("2d"),P.rotate(Math.PI/180*this.angle_),P.drawImage(this.JSC$10237_image_,S,W,this.JSC$10237_image_.naturalWidth,this.JSC$10237_image_.naturalHeight)),this.transformedData=_.Bx(Y.toDataURL(this.mime_))):this.transformedData=Y}else this.transformedData=Y;this.resolve_(this)}};var ZP=function(Y,S){_.Cl.call(this,Y);this.value=S};
_.r(ZP,_.Cl);
var iO=function(Y,S,P,u,W,m,J){J=J===void 0?!1:J;_.Tj.call(this);var c=this;this.JSC$10242_url_=Y;this.channelId_=S;this.maxFileSizeMb_=P;this.JSC$10242_maxAspectRatio_=u;this.dropZoneEl_=W;this.rejectInvalidAspectRatio_=J;this.selectButtonEl_=m;this.JSC$10242_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new ma(this.dropZoneEl_);this.selectOverlay_=new nP(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10242_image_=this.transfer_=null;this.handler_=new _.u6(this);_.Ph(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(m,"click",function(){c.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.r(iO,_.Tj);iO.prototype.disposeInternal=function(){for(var Y=this.selectButtonEl_.nextSibling;Y&&Y.parentNode&&Y.tagName=="INPUT";)Y.parentNode.removeChild(Y),Y=this.selectButtonEl_.nextSibling;this.cancel();_.Tj.prototype.disposeInternal.call(this)};
iO.prototype.uploadPromise=function(){if(this.JSC$10242_image_==null)return null;this.uploadPromise_||EAs(this);return this.uploadPromise_};
iO.prototype.cancel=function(){fGh(this);this.JSC$10242_image_=null};
var fGh=function(Y){Y.transfer_&&Y.transfer_.cancel();Y.transfer_=null;Y.uploadPromise_=null;Y.resolve_=null;Y.JSC$10242_reject_=null},EAs=function(Y){fGh(Y);
Y.transfer_=_.mis(Y.JSC$10242_url_,{"X-YouTube-ChannelId":Y.channelId_},Y.JSC$10242_image_);Y.handler_.listenOnce(Y.transfer_,"l",Y.JSC$10244_onUploadComplete_);Y.handler_.listenOnce(Y.transfer_,"n",Y.onUploadError_);Y.transfer_.run();Y.uploadPromise_=new Promise(function(S,P){Y.resolve_=S;Y.JSC$10242_reject_=P})};
_.z=iO.prototype;_.z.onChange_=function(Y){Y.files.length&&(this.JSC$10242_image_=Y.files[0],this.JSC$10242_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10242_image_=null,this.dispatchEvent(new ZP("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(EAs(this),(new XZ(this.JSC$10242_maxAspectRatio_)).transform(this.JSC$10242_image_).then((0,_.xS)(this.onPreview_,this),(0,_.xS)(this.onPreviewError_,this))))};
_.z.onPreview_=function(Y){if(Y.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10242_image_=null),this.dispatchEvent(new ZP("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;Y.cropped&&this.dispatchEvent(new ZP("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new ZP("yt.comments.ImageUploadOverlay.CHANGE_EVENT",Y.transformedData))};
_.z.onPreviewError_=function(){this.JSC$10242_image_=null;this.dispatchEvent(new ZP("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.z.onHover_=function(Y){Y.stopPropagation();Y.preventDefault();if(Y.type==="dragover")Y=!0;else if(Y.type==="dragleave")Y=!1;else return;this.dispatchEvent(new ZP("yt.comments.ImageUploadOverlay.HOVER_EVENT",Y))};
_.z.JSC$10244_onUploadComplete_=function(){var Y=(0,_.$gs)(this.transfer_.getResponseText());this.resolve_(Y.encryptedBlobId)};
_.z.onUploadError_=function(){this.JSC$10242_reject_();fGh(this)};var gAL=function(Y){Y=Y||{};var S={},P={};this.url=Y.url||"";this.args=Y.args||_.RY.clone(S);this.assets=Y.assets||{};this.attrs=Y.attrs||_.RY.clone(P);this.fallback=Y.fallback||null;this.fallbackMessage=Y.fallbackMessage||null;this.html5=!!Y.html5;this.disable=Y.disable||{};this.loaded=!!Y.loaded;this.messages=Y.messages||{}};
gAL.prototype.clone=function(){var Y=new gAL,S;for(S in this)if(this.hasOwnProperty(S)){var P=this[S];Y[S]=_.m5(P)=="object"?_.RY.clone(P):P}return Y};var $Cm,rDt,GS6,YX,vAJ,DCi,IG6,aGs,LeS,wUU,pUJ,Fef,smf,dCs,lG6,XUh,Zf6,ifs,oAu,tot,ADs,UCu,QmU,kSJ,MoU,yDu,Nmu,Hff,Voh,ySE,ees,Ofu,YLJ,SLJ,PsU,uRd,Wit,zwU,mVh,nOU,j1m,JO6,BCs,cO6,Css,qL6,RwL,xVm,bkm,TCd,KiJ,EOi,fX_,gOs,$VU,rOi,o8,GVL,hw6,vO_,DVL,IXs,aXs,LiS,w03,p03,FiJ,s1d,dVh,lXd,X0u,Zk3,ikt,oOf,tGu,kDU,AOU,UVs,Q16,kVi,MGh,yOt,NCu,Hks,VGi,ewu,OkS,Yvu,Svt,Pl3,ucs,WyJ,zK3,mcd,nRu,j5L,J8J,BaL,c8h,Cls,qvs;$Cm=["account/accounts_list"];rDt=["acknowledge_channel_tou_strike"];GS6=["notification/add_upcoming_event_reminder"];
_.hes=["att/get"];YX=["browse","music/browse","unplugged/browse"];vAJ=["channel/claim_legacy_youtube_channel"];DCi=["history/clear_search_history"];IG6=["history/clear_watch_history"];aGs=["comment/perform_comment_action"];LeS=["comment/get_comment_replies"];wUU=["ypc/commerce_action"];pUJ=["backstage/create_post"];Fef=["live/create_broadcast"];smf=["channel/create_channel"];dCs=["comment/create_comment_reply"];lG6=["comment/create_comment"];XUh=["live_chat/create_poll"];Zf6=["playlist/create"];
ifs=["decorate_message"];oAu=["live_chat/delete_message"];tot=["playlist/delete"];ADs=["video/delete"];UCu=["like/dislike"];QmU=["dismissal/dismiss"];kSJ=["flag/flag"];MoU=["flow"];yDu=["account/account_menu"];Nmu=["playlist/get_add_to_playlist"];Hff=["get_answer"];Voh=["channel/get_channel_creation_form"];ySE=["offline/get_download_action"];ees=["kids/get_kids_blocklist_picker"];Ofu=["live_chat/get_item_context_menu"];YLJ=["live_chat/get_live_chat_message_buy_flow"];SLJ=["live_chat/get_live_chat_replay"];
PsU=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];uRd=["live_chat/get_live_chat_super_sticker_buy_flow"];Wit=["notification/get_notification_menu"];zwU=["playlist/get_settings_editor"];mVh=["backstage/get_post_video_preview"];nOU=["account/get_profile_card"];j1m=["share/get_share_panel"];JO6=["share/get_sharing_provider_data"];BCs=["get_survey"];cO6=["notification/get_unseen_count"];Css=["get_user_mention_suggestions"];qL6=["get_watch"];RwL=["guide"];
xVm=["feedback"];bkm=["kids/update_blacklist"];TCd=["like/like"];KiJ=["live_chat/live_chat_action"];EOi=["live_chat/manage_user"];fX_=["video_manager/metadata_update"];gOs=["live_chat/moderate"];$VU=["notification/modify_channel_preference"];rOi=["notification/opt_out"];o8=["get_panel","get_posts_by_host_panel"];GVL=["player"];hw6=["browse/edit_playlist"];vO_=["notification/record_interactions"];DVL=["reel/reel_item_watch"];IXs=["reel/reel_watch_sequence"];aXs=["like/removelike"];LiS=["notification/remove_upcoming_event_reminder"];
w03=["flag/get_form"];p03=["miniapp/report_value"];FiJ=["navigation/resolve_url"];s1d=["channel/reveal_business_email"];dVh=["in_video/search"];lXd=["search","sfv/search","unplugged/search"];X0u=["live_chat/send_message"];Zk3=["live_chat/send_live_chat_vote"];ikt=["account/set_setting"];oOf=["submit_caption_correction"];tGu=["subscription/subscribe"];kDU=["get_transcript"];AOU=["resolve_location","unplugged/resolve_location"];UVs=["subscription/unsubscribe"];Q16=["backstage/update_post"];kVi=["channel_edit/update_channel_page_settings"];
MGh=["comment/update_comment_reply"];yOt=["comment/update_comment"];NCu=["comment/update_comments_settings"];Hks=["creator/update_creator_channel"];VGi=["pdg/update_enablement"];ewu=["updated_metadata"];OkS=["channel_edit/validate_channel_handle"];Yvu=["verify_age"];Svt=["next","unplugged/watch_next"];Pl3=["whitelist/edit"];ucs=["ypc/cancel_recurrence"];WyJ=["ypc/complete_transaction"];zK3=["ypc/get_cart"];mcd=["ypc/get_fix_instrument_params"];nRu=["ypc/get_offers"];j5L=["ypc/get_payment_instruments_params"];
J8J=["ypc/handle_transaction"];BaL=["ypc/log_payment_server_analytics"];c8h=["ypc/pause_subscription"];Cls=["ypc/redeem_code"];qvs=["ypc/resume_subscription"];var RK6=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,
74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,
3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,
84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,
253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,
32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,
201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,
213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,
140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var bj=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.HQ("yt.msgs_",bj);var tf=new _.yH("ACTION_ROUTER_TOKEN");_.Af=function(){this.autonavState_=_.f("kevlar_is_pupi_enabled")?2:Jzh()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Af.prototype.getState=function(){return this.autonavState_};
_.Af.prototype.pause=function(Y){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=Y):this.autonavState_==1&&(this.disabledAutonavPauseReason_=Y)};
_.Af.prototype.setState=function(Y,S,P){S&&(this.autoplayChangedByUser=!0);S=this.autonavState_===3||Y===3;this.autonavState_!=Y&&(this.autonavState_=Y,Y!=3&&_.BU1(Y==2),Y=_.f("kevlar_is_pupi_enabled")?P||S:!0,_.Ap.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,Y,P))};
_.Af.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Yn(_.Af);var Uw=function(){this.hasRun=!1};var Qd={},rz9=(Qd.auto_search="LATENCY_ACTION_AUTO_SEARCH",Qd.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Qd.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Qd.app_startup="LATENCY_ACTION_APP_STARTUP",Qd.browse="LATENCY_ACTION_BROWSE",Qd.cast_splash="LATENCY_ACTION_CAST_SPLASH",Qd.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Qd.channels="LATENCY_ACTION_CHANNELS",Qd.chips="LATENCY_ACTION_CHIPS",Qd.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Qd.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Qd.editor="LATENCY_ACTION_EDITOR",Qd.embed="LATENCY_ACTION_EMBED",Qd.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Qd.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Qd.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Qd.explore="LATENCY_ACTION_EXPLORE",Qd.favorites="LATENCY_ACTION_FAVORITES",Qd.home="LATENCY_ACTION_HOME",Qd.inboarding="LATENCY_ACTION_INBOARDING",Qd.landing="LATENCY_ACTION_LANDING",Qd.library="LATENCY_ACTION_LIBRARY",Qd.live=
"LATENCY_ACTION_LIVE",Qd.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Qd.management="LATENCY_ACTION_MANAGEMENT",Qd.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Qd.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Qd.onboarding="LATENCY_ACTION_ONBOARDING",Qd.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Qd.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Qd.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Qd.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
Qd.prebuffer="LATENCY_ACTION_PREBUFFER",Qd.prefetch="LATENCY_ACTION_PREFETCH",Qd.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Qd.profile_switcher="LATENCY_ACTION_LOGIN",Qd.projects="LATENCY_ACTION_PROJECTS",Qd.reel_watch="LATENCY_ACTION_REEL_WATCH",Qd.results="LATENCY_ACTION_RESULTS",Qd.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Qd.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Qd.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Qd.review="LATENCY_ACTION_REVIEW",Qd.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Qd.search_ui="LATENCY_ACTION_SEARCH_UI",Qd.search_suggest="LATENCY_ACTION_SUGGEST",Qd.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Qd.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Qd.seek="LATENCY_ACTION_PLAYER_SEEK",Qd.settings="LATENCY_ACTION_SETTINGS",Qd.store="LATENCY_ACTION_STORE",Qd.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Qd.tenx="LATENCY_ACTION_TENX",Qd.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Qd.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
Qd.watch="LATENCY_ACTION_WATCH",Qd.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Qd["watch,watch7"]="LATENCY_ACTION_WATCH",Qd["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Qd["watch,watch7ad"]="LATENCY_ACTION_WATCH",Qd["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Qd.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Qd.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Qd.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Qd.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Qd.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Qd.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Qd.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Qd.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Qd);var Az$=function(Y,S){Kw.call(this,1,arguments);this.timer=S};
_.r(Az$,Kw);var tvu=new Hb$("aft-recorded",Az$);var Dd$=_.Pa.ytLoggingGelSequenceIdObj_||{};_.HQ("ytLoggingGelSequenceIdObj_",Dd$);var kp=_.Pa.ytLoggingLatencyUsageStats_||{};_.HQ("ytLoggingLatencyUsageStats_",kp);var M$=function(){this.cleanupJob=0},LIh=function(){M$.instance||(M$.instance=new M$);
return M$.instance};
_.z=M$.prototype;_.z.baseline=function(Y,S,P){yd(this,"baseline_"+Y)||_.L_("latencyActionBaselined",{clientActionNonce:Y},{timestamp:S,cttAuthInfo:P})};
_.z.tick=function(Y,S,P,u){yd(this,"tick_"+Y+"_"+S)||_.L_("latencyActionTicked",{tickName:Y,clientActionNonce:S},{timestamp:P,cttAuthInfo:u})};
_.z.info=function(Y,S,P){var u=Object.keys(Y).join("");yd(this,"info_"+u+"_"+S)||(Y=Object.assign({},Y),Y.clientActionNonce=S,_.L_("latencyActionInfo",Y,{cttAuthInfo:P}))};
_.z.jspbInfo=function(Y,S,P){for(var u="",W=0;W<yB(Y).length;W++)yB(Y)[W]!==void 0&&(u=W===0?u.concat(""+W):u.concat("_"+W));yd(this,"info_"+u+"_"+S)||(_.zH(Y,2,S),S={cttAuthInfo:P},P=_.f("jspb_sparse_encoded_pivot")?new Gy([{}]):new Gy,_.Hd(P,7,jWh,Y),IHu("latencyActionInfo",P,S))};
_.z.span=function(Y,S,P){var u=Object.keys(Y).join("");yd(this,"span_"+u+"_"+S)||(Y.clientActionNonce=S,_.L_("latencyActionSpan",Y,{cttAuthInfo:P}))};
var yd=function(Y,S){kp[S]=kp[S]||{count:0};var P=kp[S];P.count++;P.time=(0,_.Oh)();Y.cleanupJob||(Y.cleanupJob=_.hp(_.wc,function(){var u=(0,_.Oh)(),W;for(W in kp)kp[W]&&u-kp[W].time>6E4&&delete kp[W];Y&&(Y.cleanupJob=0)},5E3));
return P.count>5?(P.count===6&&Math.random()*1E5<1&&(P=new _.$2("CSI data exceeded logging limit with key",S.split("_")),S.indexOf("plev")>=0||_.sf(P)),!0):!1};var xc3,bGs;xc3=window;bGs=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.h6=xc3.performance||xc3.mozPerformance||xc3.msPerformance||xc3.webkitPerformance||new bGs;var oqf=!1,pOU=!1,Udh=(0,_.xS)(_.h6.clearResourceTimings||_.h6.webkitClearResourceTimings||_.h6.mozClearResourceTimings||_.h6.msClearResourceTimings||_.h6.oClearResourceTimings||_.bd,_.h6);var Taf=window;Taf.ytcsi&&(Taf.ytcsi.infoGel=_.wP,Taf.ytcsi.tick=_.Fk);var PTa=function(Y){Kw.call(this,1,arguments);this.csn=Y};
_.r(PTa,Kw);var SCK=new Hb$("screen-created",PTa),KQY=[],Sbf=Tgu,ENa=0,Z9=new Map,uP1=new Map,WQf=new Map;var yQf=Symbol("vf"),NT=new WeakMap;var N$=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},cF=function(){N$.instance||(N$.instance=new N$);
return N$.instance};
_.z=N$.prototype;_.z.setClient=function(Y){this.client=Y};
_.z.JSC$10324_newScreen=function(){this.clear();this.csn=_.pM()};
_.z.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.z.reportShown=function(Y,S,P){var u=this.JSC$10324_getTrackingParams(Y),W=Y.visualElement?Y.visualElement:u;S=this.shownElements.has(W);var m=this.visibleState.get(W);this.shownElements.add(W);this.visibleState.set(W,!0);Y.impressionLog&&!S&&Y.impressionLog();if(u||Y.visualElement)if(P=Kyd(this,Y,P))if(W=ERh(this,Y),Hg(this,Y)||W){u=Y.visualElement?Y.visualElement:_.Re(u);var J=Y.interactionLoggingClientData;W||S?Hg(this,Y)&4?m||CT9(this.client,P,u,J):Hg(this,Y)&1&&!S&&JV9(this.client,P,u,J):JV9(this.client,
P,u,J)}};
_.z.reportHidden=function(Y,S,P){var u=this.JSC$10324_getTrackingParams(Y),W=Y.visualElement?Y.visualElement:u;S=this.hiddenElements.has(W);var m=this.visibleState.get(W);this.hiddenElements.add(W);this.visibleState.set(W,!1);if(m===!1)return!0;if(!u&&!Y.visualElement)return!1;P=Kyd(this,Y,P);if(!P||!Hg(this,Y)&&ERh(this,Y))return!1;u=Y.visualElement?Y.visualElement:_.Re(u);Hg(this,Y)&8?qbh(this.client,P,u):Hg(this,Y)&2&&!S&&(Y=this.client,S=Xk({cttAuthInfo:Fv(P)||void 0},P),u={csn:P,ve:u.getAsJson(),
eventType:2},P==="UNDEFINED_CSN"?oA("visualElementHidden",S,u):Y?Iz("visualElementHidden",u,Y,S):_.L_("visualElementHidden",u,S));return!0};
_.z.JSC$10324_getTrackingParams=function(Y){var S=this.getData(Y),P,u;if(_.f("il_use_view_model_logging_context")&&(S==null?0:(P=S.context)==null?0:(u=P.loggingContext)==null?0:u.loggingDirectives))return S.context.loggingContext.loggingDirectives.trackingParams||"";var W,m;if(S==null?0:(W=S.rendererContext)==null?0:(m=W.loggingContext)==null?0:m.loggingDirectives)return S.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(S==null?0:S.loggingDirectives)return S.loggingDirectives.trackingParams||
"";var J;return((J=Y.veContainer)==null?0:J.trackingParams)?Y.veContainer.trackingParams:(S==null?void 0:S.trackingParams)||""};
_.z.JSC$10324_elementShouldLogGesture=function(Y,S){Y=this.getData(Y);return!!((Math.floor(Number(Y&&Y.loggingDirectives&&Y.loggingDirectives.gestures&&Y.loggingDirectives.gestures.types||""))||0)&S)};
_.z.JSC$10324_getNearestParentVe=function(Y){var S=this.JSC$10324_getTrackingParams(Y);return Y.visualElement?Y.visualElement:S?_.Re(S):Y.parentElement?this.JSC$10324_getNearestParentVe(Y.parentElement):null};
var Kyd=function(Y,S,P){var u=_.pM(P);return Y.csn===null||u===Y.csn||P?u:(Y=new _.$2("VisibilityLogger called before newScreen",{caller:S.tagName,previous_csn:Y.csn,current_csn:u}),_.sf(Y),null)};
N$.prototype.getData=function(Y){var S,P=Y.data||((S=Y.props)==null?void 0:S.data);if(Y.isWebComponentWrapper){var u;P=(u=NT.get(Y))==null?void 0:u[yQf]}return P};
var ERh=function(Y,S){var P;return!((P=Y.getData(S))==null||!P.loggingDirectives)},Hg=function(Y,S){Y=Y.getData(S);
return Math.floor(Number(Y&&Y.loggingDirectives&&Y.loggingDirectives.visibility&&Y.loggingDirectives.visibility.types||""))||1};var Vd;Vd=function(){};
_.jC=function(){Vd.instance||(Vd.instance=new Vd);return Vd.instance};
Vd.prototype.setClient=function(Y){_.oj(cF().setClient).bind(cF())(Y)};
_.f7f=function(){_.jC();_.oj(cF().JSC$10324_newScreen).bind(cF())()};
Vd.prototype.clear=function(){_.oj(cF().clear).bind(cF())()};
Vd.prototype.reportShown=function(Y,S,P){_.oj(cF().reportShown).bind(cF())(Y,S,P)};
Vd.prototype.reportHidden=function(Y,S,P){return _.oj(cF().reportHidden).bind(cF())(Y,S,P)};
var QOa=function(Y,S){return _.oj(cF().JSC$10324_getTrackingParams).bind(cF())(S)},NWE=function(Y,S){return _.oj(cF().JSC$10324_getNearestParentVe).bind(cF())(S)};var eT,gR3;eT=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};
_.BF=function(){eT.instance||(eT.instance=new eT);return eT.instance};
eT.prototype.setClient=function(Y){this.client=Y};
gR3=function(Y,S,P){P=P===void 0?{}:P;_.oj(function(){var u,W,m,J=((u=_.g(S==null?void 0:S.commandMetadata,_.Yo))==null?void 0:u.rootVe)||((W=_.g(S==null?void 0:S.commandMetadata,pOL))==null?void 0:(m=W.screenVisualElement)==null?void 0:m.uiType);if(J){u=_.g(S==null?void 0:S.commandMetadata,RDJ);if(u==null?0:u.parentTrackingParams){var c=_.Re(u.parentTrackingParams);if(u.parentCsn)var C=u.parentCsn}else P.clickedVisualElement?c=P.clickedVisualElement:S.clickTrackingParams&&(c=_.Re(S.clickTrackingParams));
a:{u=_.g(S,_.yx);W=_.g(S,YLX);if(u){if(W=cza(u,"VIDEO")){u={token:W,videoId:u.videoId};break a}}else if(W&&(u=cza(W,"PLAYLIST"))){u={token:u,playlistId:W.playlistId};break a}u=void 0}P=Object.assign({},{cttAuthInfo:u,parentCsn:C},P);if(_.f("expectation_logging")){var x;P.loggingExpectations=((x=_.g(S==null?void 0:S.commandMetadata,pOL))==null?void 0:x.loggingExpectations)||void 0}_.Ow(Y,J,c,P)}else _.sf(new _.$2("Error: Trying to create a new screen without a rootVeType",S))})()};
_.Ow=function(Y,S,P,u){u=u===void 0?{}:u;_.oj(function(){RK6.includes(S)||(_.sf(new _.$2("createClientScreen() called with a non-page VE",S)),S=83769);u.isHistoryNavigation||(Y.forwardHistoryStack=[],Y.backHistoryStack.push({rootVe:S,key:u.key||""}));Y.graftQueue=[];Y.stateChangedQueue=[];u.dataPromises?$cf(Y,S,P,u):r8u(Y,S,P,u)})()};
_.Gn6=function(Y,S,P){P=P===void 0?0:P;_.oj(function(){S.then(function(u){Y.pendingScreenCreation.has(P)&&Y.pendingScreenFn&&Y.pendingScreenFn();var W=_.pM(P),m=_.wf(P);if(W&&m){var J;(u==null?0:(J=u.response)==null?0:J.trackingParams)&&ij(Y.client,W,m,_.Re(u.response.trackingParams));var c;(u==null?0:(c=u.playerResponse)==null?0:c.trackingParams)&&ij(Y.client,W,m,_.Re(u.playerResponse.trackingParams))}})})()};
eT.prototype.graftServerVe=function(Y,S,P){var u=this;return _.oj(function(){var W=_.Re(Y);_.Ym(u,W,S,P);return W})()};
_.HeK=function(Y,S,P,u){return _.f("enable_client_ve_spec")&&S.clientVeSpec?(S=_.TI(S.clientVeSpec.uiType,void 0,S.clientVeSpec.elementIndex,S.clientVeSpec.clientYoutubeData,void 0,S),_.Ym(Y,S,P,u)?S:null):S.trackingParams?Y.graftServerVe(S.trackingParams,P,u):null};
_.JL=function(Y,S,P,u){return _.oj(function(){if(!S.veType)return _.F_(new _.$2("Error: Trying to graft a client VE without a veType.")),null;if(S.visibilityTypes){var W=S.visibilityTypes.reduce(function(m,J){return m|J});
W={visibility:{types:String(W)}}}W=_.TI(S.veType,S.visualElement,S.elementIndex,S.clientYouTubeData,void 0,W);return _.Ym(Y,W,P,u)?W:null})()};
_.Ym=function(Y,S,P,u){u=u===void 0?0:u;return _.oj(function(){if(Y.pendingScreenCreation.has(u))return Y.graftQueue.push([S,P]),!0;var W=_.pM(u),m=P||_.wf(u);if(W&&m){if(_.f("combine_ve_grafts")){var J=Y.cachedVisualElements.get(m.toString());J?J.push(S):(Y.cachedRootVisualElements.set(m.toString(),m),Y.cachedVisualElements.set(m.toString(),[S]));Y.attachTimeout||(Y.attachTimeout=_.hp(_.wc,function(){hKd(Y,W)},1200))}else ij(Y.client,W,m,S);
return!0}return!1})()};
_.Sa=function(Y,S,P){P=P===void 0?0:P;var u=Y.recurringGrafts.get(P)||new Map;if(_.f("smarter_ve_dedupping"))for(var W=Array.from(u.keys()),m=0;m<W.length;m++){var J=void 0,c=void 0;var C=S;var x=W[m];x.isClientVe()&&C.isClientVe()?(J=C.getAsJson(),c=x.getAsJson(),C=J.veType!==c.veType||J.elementIndex!==c.elementIndex||J.dataElement!==c.dataElement||C.getLoggingDirectives()!==x.getLoggingDirectives()?!1:!0):C=x.veData.trackingParams!==void 0&&C.veData.trackingParams!==void 0?((c=C.veData)==null?void 0:
c.trackingParams)===((J=x.veData)==null?void 0:J.trackingParams):!1;if(C)return}else if(u.has(S))return;u.set(S,void 0);Y.recurringGrafts.set(P,u);_.pM(P)==="UNDEFINED_CSN"||Y.pendingScreenCreation.has(P)||_.Ym(Y,S,void 0,P)};
_.Pp=function(Y,S,P,u){u=_.pM(u===void 0?0:u);if(!u)return!1;xKf(Y.client,u,S,P);return!0};
_.uA=function(Y,S,P,u){if(!S)return!1;u=_.pM(u===void 0?0:u);if(!u)return!1;xKf(Y.client,u,_.Re(S),P);return!0};
_.wL=function(Y,S){var P=S.getScreenLayer&&S.getScreenLayer();if(S.visualElement)return _.Pp(Y,S.visualElement,void 0,P);S=QOa(_.jC(),S);return _.uA(Y,S,void 0,P)};
eT.prototype.clickCommand=function(Y,S,P){return _.uA(this,Y.clickTrackingParams,S,P===void 0?0:P)};
eT.prototype.stateChanged=function(Y,S,P){this.visualElementStateChanged(_.Re(Y),S,P===void 0?0:P)};
eT.prototype.visualElementStateChanged=function(Y,S,P){P=P===void 0?0:P;P===0&&this.pendingScreenCreation.has(P)?this.stateChangedQueue.push([Y,S]):this.logStateChanged(Y,S,P)};
eT.prototype.logStateChanged=function(Y,S,P){P=P===void 0?0:P;var u=_.pM(P);Y=Y||_.wf(P);return u&&Y?(bwh(this.client,u,Y,S),!0):!1};
var $cf=function(Y,S,P,u){u=u===void 0?{}:u;Y.pendingScreenCreation.add(u.layer||0);Y.pendingScreenFn=function(){r8u(Y,S,P,u);var J=_.wf(u.layer);if(J){for(var c=_.n(Y.graftQueue),C=c.next();!C.done;C=c.next())C=C.value,_.Ym(Y,C[0],C[1]||J,u.layer);J=_.n(Y.stateChangedQueue);for(c=J.next();!c.done;c=J.next())c=c.value,Y.logStateChanged(c[0],c[1])}};
P||_.pM(u.layer)||Y.pendingScreenFn();if(u.dataPromises)for(var W=_.n(u.dataPromises),m=W.next();!m.done;m=W.next())_.Gn6(Y,m.value,u.layer);else _.p_(Error("wf"))},r8u=function(Y,S,P,u){u=u===void 0?{}:u;
var W=void 0;u.layer||(u.layer=0);W=u.parentLayer!==void 0?u.parentLayer:u.layer;var m=_.pM(W);W=_.wf(W);var J=P||W,c;J&&(u.parentCsn!==void 0?c={clientScreenNonce:u.parentCsn,visualElement:J}:m&&m!=="UNDEFINED_CSN"&&(c={clientScreenNonce:m,visualElement:J}));var C,x=_.X3("EVENT_ID");m==="UNDEFINED_CSN"&&x&&(C={servletData:{serializedServletEventId:x}});_.f("combine_ve_grafts")&&m&&hKd(Y,m);_.f("no_client_ve_attach_unless_shown")&&J&&m&&jx$(J,m);try{var b=_.zua(Y.client,S,c,u.csnToClone,u.cttAuthInfo,
C,u.implicitGestureType,void 0,u.loggingExpectations)}catch(G){_.d6(G,{rootVeType:S,rootVe:W,parentVisualElement:P,currentCsn:m,parentEl:c,csnToClone:u.csnToClone});_.p_(G);return}_.jiK(b,S,u.layer,u.cttAuthInfo);m&&m!=="UNDEFINED_CSN"&&W&&!m4a(m)&&qbh(Y.client,m,W,!0);Y.backHistoryStack[Y.backHistoryStack.length-1]&&!Y.backHistoryStack[Y.backHistoryStack.length-1].csn&&(Y.backHistoryStack[Y.backHistoryStack.length-1].csn=b||"");_.wP({clientScreenNonce:b});_.f7f();var T=_.wf(u.layer);m&&m!=="UNDEFINED_CSN"&&
T&&(_.f("web_mark_root_visible")||_.f("music_web_mark_root_visible"))&&_.A6(b,T);Y.pendingScreenCreation.delete(u.layer||0);Y.pendingScreenFn=void 0;var K;(K=Y.recurringGrafts.get(u.layer))==null||K.forEach(function(G,v){G?_.Ym(Y,v,G,u.layer):T&&_.Ym(Y,v,T,u.layer)});
vR6(Y)},vR6=function(Y){for(var S=0;S<Y.afterNewScreenOneOffJobs.length;S++){var P=Y.afterNewScreenOneOffJobs[S];
try{P()}catch(u){_.p_(u)}}for(S=Y.afterNewScreenOneOffJobs.length=0;S<Y.afterNewScreenRecurringJobs.length;S++){P=Y.afterNewScreenRecurringJobs[S];try{P()}catch(u){_.p_(u)}}},hKd=function(Y,S){if(S===void 0)for(var P=WJ$(),u=0;u<P.length;u++)P[u]!==void 0&&hKd(Y,P[u]);
else Y.cachedVisualElements.forEach(function(W,m){(m=Y.cachedRootVisualElements.get(m))&&_.mKh(Y.client,S,m,W)}),Y.cachedVisualElements.clear(),Y.cachedRootVisualElements.clear(),Y.attachTimeout=void 0};var Wp=function(Y){Y=Y===void 0?{layer:0}:Y;this.hasRun=!1;this.createScreenConfig=Y;Y={};this.bPH=(Y.response=!1,Y.playerResponse=!1,Y)};
_.r(Wp,Uw);Wp.prototype.validate=function(Y){return!(!Y.data||!Y.data.response&&!Y.data.playerResponse)};
Wp.prototype.handle=function(Y){var S=_.BF(),P=this.createScreenConfig.layer;Y.data.response&&Y.data.response.trackingParams&&!this.bPH.response&&(S.graftServerVe(Y.data.response.trackingParams,void 0,P),this.bPH.response=!0);Y.data.playerResponse&&Y.data.playerResponse.trackingParams&&!this.bPH.playerResponse&&(S.graftServerVe(Y.data.playerResponse.trackingParams,void 0,P),this.bPH.playerResponse=!0)};var zE=function(){this.wA=_.dL();this.qI=[];this.jBg=0};
zE.prototype.processChunk=function(Y){if(Y){for(var S=_.n(this.qI),P=S.next();!P.done;P=S.next())P=P.value,P.validate(Y)&&(P.handle(Y),P.hasRun=!0);_.Fk("np"+this.jBg);this.jBg++}};var Grf,Hu,VP,$KY=0,rV9=function(Y,S,P,u,W,m){var J=VP;this.name=Y;this.attributes=S;this.startTime=P;this.id=u;this.sessionId=W;this.traceId=m;this.parent=J};
rV9.prototype.attr=function(Y,S){this.attributes[Y]=S};
rV9.prototype.close=function(Y){if(this!==VP)throw Error("xf");var S=VP;Y&&(S.status=Y);S.endTime=performance.now();Y=_.n(Hu.spanProcessors);for(var P=Y.next();!P.done;P=Y.next()){var u=void 0,W=void 0;(W=(u=P.value).onSpanEnd)==null||W.call(u,S)}VP=S==null?void 0:S.parent};
rV9.prototype[Symbol.dispose]=function(){this.close()};var gDa,a7u;_.zR=function(Y,S,P,u,W,m,J){J=J===void 0?[]:J;this.buildCommandPayload=Y;this.navigate=S;this.handleServiceRequest=P;this.sendAction=u;this.JSC$10365_screenManager=W;this.commandResolverMap=m;this.autoLogResolverAllowlist=J;this.pendingCommands=new Set;if(vN8("command")){var c=this.resolveCommand;this.resolveCommand=function(C,x){var b=hu9("command",{command:C});return IT8(b,c.bind(this,C,x),null)}}};
gDa=function(Y,S,P){var u=nDX,W=jtU,m=_.BF(),J=Dcs;P=P===void 0?[]:P;_.zR.instance=new _.zR(Y,S,u,W,m,J,P)};
a7u=function(Y,S,P){if(!Y.commandResolverMap)return!1;var u=pH1(S,Y.commandResolverMap);return u?((Y.autoLogResolverAllowlist.some(function(W){return!!_.g(S,W)})||(P==null?0:P.forceClickLogging))&&I7_(Y,S,P),u instanceof Promise?u.then(function(W){W.resolve(S,P)}):u.resolve(S,P),!0):!1};
_.zR.prototype.resolveCommand=function(Y,S){var P=this,u=Lym(Y);if(a7u(this,Y,S))return!0;if(u)return wf_(this,Y,S);if(!this.buildCommandPayload)return aTY(Y,"Unhandled command by buildCommandPayload"),!1;var W=this.buildCommandPayload(Y,S);if(S==null?0:S.commandController)W.commandController=S.commandController;if(W.type===0){if(!this.navigate)return LQY(Y,"navigate"),!1;if(!pfs(W.command))return aTY(Y,"Page requests need to specify a url"),!1;_.f("logging_avoid_blocking_during_navigation")&&_.XZa().transition("application_navigating");
Y=this.navigate(W)||[];zA_(Y).then(function(){P.pendingCommands.delete(W.command)});
return!0}if(W.type===1){if(!this.handleServiceRequest)return LQY(Y,"handleServiceRequest"),!1;(S==null?0:S.forceClickLogging)&&I7_(this,W.command,S);Y=this.handleServiceRequest(W);zA_(Y).then(function(){P.pendingCommands.delete(W.command)});
return!0}if(W.type===2){if(!this.sendAction)return LQY(Y,"sendAction"),!1;I7_(this,W.command,S);this.sendAction(W);return!0}return!1};
var I7_=function(Y,S,P){if((P==null||!P.disableClickTracking)&&Y.JSC$10365_screenManager)if(S.clickTrackingParams&&_.f("log_click_with_layer_from_element_in_command_handler")){var u;P=P==null?void 0:(u=P.form)==null?void 0:u.element;Y.JSC$10365_screenManager.clickCommand(S,null,P&&P.getScreenLayer&&P.getScreenLayer())}else S.clickTrackingParams?Y.JSC$10365_screenManager.clickCommand(S):!_.f("disable_clicked_visual_element_in_command_handler")&&(P==null?0:P.clickedVisualElement)&&_.Pp(Y.JSC$10365_screenManager,
P.clickedVisualElement)},Lym=function(Y){var S=!!_.g(Y,_.qT),P;
Y=((P=_.g(Y,_.xo))==null?void 0:P.signal)==="CLIENT_SIGNAL";return S||Y},wf_=function(Y,S,P){var u=_.g(S,_.qT);
if(u)var W=(u==null?void 0:u.commands)||[];else{var m;if(((m=_.g(S,_.xo))==null?void 0:m.signal)==="CLIENT_SIGNAL"){var J;W=((J=_.g(S,_.xo))==null?void 0:J.actions)||[]}}if(W){S=_.n(W);for(W=S.next();!W.done;W=S.next()){W=W.value;try{Y.resolveCommand(W,P)}catch(c){c instanceof Error&&_.p_(c)}}return!0}aTY(S,"Could not handle the meta command");return!1},pfs=function(Y){var S;
return!((S=_.g(Y==null?void 0:Y.commandMetadata,_.Yo))==null||!S.url)};var mD=function(){Uw.apply(this,arguments)};
_.r(mD,Uw);mD.prototype.validate=function(Y){var S,P;return!this.hasRun&&!!((S=Y.data.response)==null?0:(P=S.onResponseReceivedEndpoints)==null?0:P.length)};
mD.prototype.handle=function(Y){var S=_.zR.instance;Y=_.n(Y.data.response.onResponseReceivedEndpoints);for(var P=Y.next();!P.done;P=Y.next())S.resolveCommand(P.value)};var Fyi,s5S,dcu;
Fyi=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=_.Cb();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.nd=function(){s5S||(s5S=new Fyi);return s5S};
dcu=function(){var Y=_.nd();Y.miniplayerButtonActivation=!1;Y.userActivation=!1;Y.playlistWatchPageActivation=!1;Y.productDetailsPageActivation=!1;Y.miniAppPageActivation=!1;Y.playablesDestPageActivation=!1;Y.lockupActivation=!1;Y.showMiniplayerCommandActivation=!1;Y.playlistSuggestionsShelfActivation=!1;Y.mediaSessionPipActivation=!1;Y.watchPipActivation=!1;Y.watchWhileActivation=!1;Y.shortsPipActivation=!1};
_.l7d=function(){var Y=_.nd(),S=Y.mediaSessionPipActivation,P=Y.watchPipActivation,u=Y.watchWhileActivation,W=Y.playlistWatchPageActivation,m=Y.lockupActivation,J=Y.showMiniplayerCommandActivation,c=Y.navigatingAwayFromWatchDeletedVideo,C=Y.shortsPipActivation,x=Y.playlistSuggestionsShelfActivation,b=Y.productDetailsPageActivation,T=Y.miniAppPageActivation,K=Y.playablesDestPageActivation;return!Y.miniplayerButtonActivation&&!W&&!x&&!b&&!T&&!K&&!m&&!J&&!S&&!P&&!u&&!C||c};var ara;_.ja=OV("FEwhat_to_watch","/",3854);_.L7u=OV("FEdownloads","/feed/downloads",42352);ara=OV("FEmusic_offline","browse/FEmusic_offline",42352);var yc=function(Y,S){S=S===void 0?[]:S;var P=P===void 0?[]:P;S=MNU.apply(null,[yk1.apply(null,_.cz(S))].concat(_.cz(P)));this.store=eN8(Y,void 0,S)};
yc.prototype.getState=function(){return this.store.getState()};
yc.prototype.dispatch=function(Y){return this.store.dispatch(Y)};
yc.prototype.subscribe=function(Y){return this.store.subscribe(Y)};
yc.prototype.replaceReducer=function(Y){return this.store.replaceReducer(Y)};
yc.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.J5=function(Y,S,P){var u=S(Y.getState());return Y.subscribe(function(){var W=S(Y.getState());if(W!==u){var m=u;u=W;P(W,m)}})};var r7E;_.qE=function(Y,S,P){return _.WT({type:"REPLACE_ENTITY",payload:{entityPayload:P,entityType:Y,key:S}})};
r7E=function(Y){return _.WT({type:"REPLACE_ENTITIES",payload:Y})};
_.Dw=function(Y,S,P,u){return _.WT({type:"UPDATE_ENTITY",payload:{entityPayload:P,entityType:Y,key:S,mergeOption:u}})};var kra=function(Y){var S=this;Y=Y===void 0?[]:Y;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;Y.forEach(function(P){S.append(P)})};
_.z=kra.prototype;_.z.getLength=function(){return this.totalLength};
_.z.append=function(Y){var S=this.arrays.length===0?!1:(S=this.arrays[this.arrays.length-1])&&S.buffer===Y.buffer&&S.byteOffset+S.length===Y.byteOffset;S?(S=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(S.buffer,S.byteOffset,S.length+Y.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(Y);this.totalLength+=Y.length};
_.z.split=function(Y){for(var S=new kra,P=new kra,u=_.n(this.arrays),W=u.next();!W.done;W=u.next())W=W.value,Y>=W.length?(S.append(W),Y-=W.length):Y?(S.append(new Uint8Array(W.buffer,W.byteOffset,Y)),P.append(new Uint8Array(W.buffer,W.byteOffset+Y,W.length-Y)),Y=0):P.append(W);return{headView:S,tailView:P}};
_.z.extract=function(Y,S){return this.split(Y).tailView.split(S).headView};
_.z.isFocused=function(Y){return Y>=this.arrayPos&&Y<this.arrayPos+this.arrays[this.arrayIdx].length};
_.z.focus=function(Y){if(!this.isFocused(Y))for(Y<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=Y&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.z.getDataView=function(Y,S){Y=Y===void 0?0:Y;S=S===void 0?-1:S;if(!this.totalLength||!S)return new DataView(new ArrayBuffer(0));S<0&&(S=this.totalLength-Y);this.focus(Y);if(!(Y-this.arrayPos+S<=this.arrays[this.arrayIdx].length)){var P=this.arrayIdx,u=this.arrayPos;this.focus(Y+S-1);u=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-u);for(var W=0,m=P;m<=this.arrayIdx;m++)u.set(this.arrays[m],W),W+=this.arrays[m].length;this.arrays.splice(P,this.arrayIdx-P+1,u);this.arrayPos=this.arrayIdx=
0;this.focus(Y)}P=this.arrays[this.arrayIdx];return new DataView(P.buffer,P.byteOffset+Y-this.arrayPos,S)};
_.z.getUint8=function(Y){this.focus(Y);return this.arrays[this.arrayIdx][Y-this.arrayPos]};(function(){var Y=function(u){return new Uint8Array(u)},S=function(u){for(var W=new Uint8Array(u.length),m=0;m<u.length;m++)W[m]=u[m];
return W},P=new Uint8Array([1]);
return P.length===1&&P[0]===1?Y:S})();
var iw$=Array(1024),ZwJ=window.TextDecoder?new TextDecoder:void 0,tdX=window.TextEncoder?new TextEncoder:void 0;var Qxh=function(Y){this.arrayView=Y;this.pos=0;this.pendingTagAndType=-1},zM=function(Y){var S=Y.arrayView.getUint8(Y.pos);
++Y.pos;if(S<128)return S;for(var P=S&127,u=1;S>=128;)S=Y.arrayView.getUint8(Y.pos),++Y.pos,u*=128,P+=(S&127)*u;return P},MdX=function(Y,S){var P=Y.pendingTagAndType;
for(Y.pendingTagAndType=-1;Y.pos+1<=Y.arrayView.totalLength;){P<0&&(P=zM(Y));var u=P>>3,W=P&7;if(u===S)return!0;if(u>S){Y.pendingTagAndType=P;break}P=-1;switch(W){case 0:zM(Y);break;case 1:Y.pos+=8;break;case 2:u=zM(Y);Y.pos+=u;break;case 5:Y.pos+=4}}return!1};var Ng9=function(){this.pos=0;this.submessagePosStack=[];this.buf=UKa(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},jk=function(Y,S){S=Y.pos+S;
if(!(Y.buf.length>=S)){for(var P=Y.buf.length*2;P<S;)P*=2;Y.buf=UKa(P,Y.buf.subarray(0,Y.pos));Y.view=new DataView(Y.buf.buffer,Y.buf.byteOffset,Y.buf.byteLength)}},nA=function(Y,S){if(S>268435455){jk(Y,4);
for(var P=S&1073741823,u=0;u<4;u++)Y.view.setUint8(Y.pos,P&127|128),P>>=7,Y.pos+=1;S=Math.floor(S/268435456)}for(jk(Y,4);S>127;)Y.view.setUint8(Y.pos,S&127|128),S>>=7,Y.pos+=1;Y.view.setUint8(Y.pos,S);Y.pos+=1};for(var HwJ={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,transfer:120,
trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},yV8={},Xfh=_.n(Object.entries(HwJ)),ZGt=Xfh.next();!ZGt.done;ZGt=Xfh.next()){var iGJ=_.n(ZGt.value),oRu=iGJ.next().value,t4U=iGJ.next().value,A8S=oRu,Ucm=t4U;Ucm&&(yV8[Ucm]=A8S)};var euY=function(Y,S){Y=Y===void 0?{}:Y;switch(S.type){case "ENTITY_LOADED":return S.payload.reduce(function(u,W){var m,J=(m=W.options)==null?void 0:m.persistenceOption;if(J&&J!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&J!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return u;if(!W.entityKey)return _.p_(Error("zf")),u;if(W.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!W.payload)return W=new _.$2("REPLACE entity mutation is missing a payload",{entityKey:W.entityKey}),_.p_(W),u;var c=(0,_.RY.getAnyKey)(W.payload);
return YqX(u,c,W.entityKey,W.payload[c])}if(W.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{W=W.entityKey;try{var C=_.mZ(W).entityType;c=YqX(u,C,W);break a}catch(T){if(T instanceof Error){W=new _.$2("Failed to deserialize entity key",{entityKey:W,originalMessage:T.message});_.p_(W);c=u;break a}throw T;}c=void 0}return c}if(W.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!W.payload)return W=new _.$2("UPDATE entity mutation is missing a payload",{entityKey:W.entityKey}),_.p_(W),u;c=(0,_.RY.getAnyKey)(W.payload);
var x,b;return Sqh(u,c,W.entityKey,W.payload[c],(x=W.fieldMask)==null?void 0:(b=x.mergeOptions)==null?void 0:b.repeatedFieldsMergeOption)}return u},Y);
case "REPLACE_ENTITY":var P=S.payload;return YqX(Y,P.entityType,P.key,P.entityPayload);case "REPLACE_ENTITIES":return Object.keys(S.payload).reduce(function(u,W){var m=S.payload[W];return Object.keys(m).reduce(function(J,c){return YqX(J,W,c,m[c])},u)},Y);
case "UPDATE_ENTITY":return P=S.payload,Sqh(Y,P.entityType,P.key,P.entityPayload,P.mergeOption);default:return Y}};var Pvh;var Q5d=!1,Bp,cp,Cd,qn,RQ,knd=function(Y){_.R6.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Q5d){var S,P=new Uint8Array(256),u=new Uint8Array(256);var W=1;for(S=0;S<256;S++)P[W]=S,u[S]=W,W^=W<<1^(W>>7&&283);Bp=new Uint8Array(256);cp=cT(256);Cd=cT(256);qn=cT(256);RQ=cT(256);for(var m=0;m<256;m++){W=m?u[255^P[m]]:0;W^=W<<1^W<<2^W<<3^W<<4;W=W&255^W>>>8^99;Bp[m]=W;S=W<<1^(W>>7&&283);var J=S^W;cp[m]=S<<24|W<<16|W<<8|J;Cd[m]=J<<24|cp[m]>>>8;qn[m]=W<<24|Cd[m]>>>
8;RQ[m]=W<<24|qn[m]>>>8}Q5d=!0}W=cT(44);for(P=0;P<4;P++)W[P]=Y[4*P]<<24|Y[4*P+1]<<16|Y[4*P+2]<<8|Y[4*P+3];for(u=1;P<44;P++)Y=W[P-1],P%4||(Y=(Bp[Y>>16&255]^u)<<24|Bp[Y>>8&255]<<16|Bp[Y&255]<<8|Bp[Y>>>24],u=u<<1^(u>>7&&283)),W[P]=W[P-4]^Y;this.key=W};
_.r(knd,_.R6);
knd.prototype.encrypt=function(Y){var S=Y.length;Y=new Uint8Array(Y.buffer.slice(Y.byteOffset,Y.byteOffset+S));for(var P=this.cipherBlock,u=0;u<S&&this.blockOffset<16;)Y[u++]^=P[this.blockOffset++];for(var W=S-(S-u)%16;u<W;)M4h(this),Y[u++]^=P[0],Y[u++]^=P[1],Y[u++]^=P[2],Y[u++]^=P[3],Y[u++]^=P[4],Y[u++]^=P[5],Y[u++]^=P[6],Y[u++]^=P[7],Y[u++]^=P[8],Y[u++]^=P[9],Y[u++]^=P[10],Y[u++]^=P[11],Y[u++]^=P[12],Y[u++]^=P[13],Y[u++]^=P[14],Y[u++]^=P[15];if(u<S)for(M4h(this),this.blockOffset=0;u<S;)Y[u++]^=
P[this.blockOffset++];return Y};
var y86=function(Y,S){for(var P=0;P<4;P++)Y.counter[P]=S[P*4]<<24|S[P*4+1]<<16|S[P*4+2]<<8|S[P*4+3];Y.blockOffset=16},M4h=function(Y){for(var S=Y.key,P=Y.counter[0]^S[0],u=Y.counter[1]^S[1],W=Y.counter[2]^S[2],m=Y.counter[3]^S[3],J=3;J>=0&&!(Y.counter[J]=-~Y.counter[J]);J--);
for(var c,C,x=4;x<40;)J=cp[P>>>24]^Cd[u>>16&255]^qn[W>>8&255]^RQ[m&255]^S[x++],c=cp[u>>>24]^Cd[W>>16&255]^qn[m>>8&255]^RQ[P&255]^S[x++],C=cp[W>>>24]^Cd[m>>16&255]^qn[P>>8&255]^RQ[u&255]^S[x++],m=cp[m>>>24]^Cd[P>>16&255]^qn[u>>8&255]^RQ[W&255]^S[x++],P=J,u=c,W=C;Y=Y.cipherBlock;J=S[40];Y[0]=Bp[P>>>24]^J>>>24;Y[1]=Bp[u>>16&255]^J>>16&255;Y[2]=Bp[W>>8&255]^J>>8&255;Y[3]=Bp[m&255]^J&255;J=S[41];Y[4]=Bp[u>>>24]^J>>>24;Y[5]=Bp[W>>16&255]^J>>16&255;Y[6]=Bp[m>>8&255]^J>>8&255;Y[7]=Bp[P&255]^J&255;J=S[42];
Y[8]=Bp[W>>>24]^J>>>24;Y[9]=Bp[m>>16&255]^J>>16&255;Y[10]=Bp[P>>8&255]^J>>8&255;Y[11]=Bp[u&255]^J&255;J=S[43];Y[12]=Bp[m>>>24]^J>>>24;Y[13]=Bp[P>>16&255]^J>>16&255;Y[14]=Bp[u>>8&255]^J>>8&255;Y[15]=Bp[W&255]^J&255};var Na3=!1;(function(){var Y=function(u){return new Uint8Array(u)},S=function(u){for(var W=new Uint8Array(u.length),m=0;m<u.length;m++)W[m]=u[m];
return W},P=new Uint8Array([1]);
return P.length===1&&P[0]===1?Y:S})();
var xm;var HGu=function(Y){this.JSC$10432_aesKey=Y};
HGu.prototype.encrypt=function(Y,S){var P=this,u,W;return _.B(function(m){if(m.nextAddress==1){a:{if(!Na3&&!_.yl){if(xm){var J=xm;break a}xm=(J=window.crypto)==null?void 0:J.subtle;var c,C,x;if(((c=xm)==null?0:c.importKey)&&((C=xm)==null?0:C.sign)&&((x=xm)==null?0:x.encrypt)){J=xm;break a}xm=void 0}J=void 0}u=J;if(!u)return m.return(V4L(P,Y,S));_.ND(m,3);return _.q(m,eKU(P,Y,S,u),5)}if(m.nextAddress!=3)return m.return(m.yieldResult);W=_.O4(m);_.sf(W);Na3=!0;return m.return(V4L(P,Y,S))})};
var eKU=function(Y,S,P,u){var W,m;return _.B(function(J){switch(J.nextAddress){case 1:if(Y.cryptoKey){J.jumpTo(2);break}return _.q(J,u.importKey("raw",Y.JSC$10432_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:Y.cryptoKey=J.yieldResult;case 2:return W={name:"AES-CTR",counter:P,length:128},_.q(J,u.encrypt(W,Y.cryptoKey,S),4);case 4:return m=J.yieldResult,J.return(new Uint8Array(m))}})},V4L=function(Y,S,P){Y.encryptorPolyfill||(Y.encryptorPolyfill=new knd(Y.JSC$10432_aesKey));
y86(Y.encryptorPolyfill,P);return Y.encryptorPolyfill.encrypt(S)},OGf=function(Y){this.JSC$10436_aesKey=Y};
OGf.prototype.encrypt=function(Y,S){this.encryptor||(this.encryptor=new knd(this.JSC$10436_aesKey));y86(this.encryptor,S);return this.encryptor.encrypt(Y)};var YOf={},z7K=eH("yt-idb-pref-storage",{objectStores:(YOf.prefs={addedAtVersion:1},YOf),shared:!1,upgrade:function(Y,S){S(1)&&ti(ZR(Y,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.bA=function(Y){this.token=Y};
_.bA.getInstance=function(){return _.B(function(Y){return Y.return(new Promise(function(S){_.Vl().then(function(P){P?(_.bA.instance||(_.bA.instance=new _.bA(P)),S(_.bA.instance)):S(void 0)})}))})};
_.bA.prototype.get=function(Y){var S=this,P,u,W;return _.B(function(m){if(m.nextAddress==1)return _.q(m,mJJ(S.token),2);if(m.nextAddress!=3)return P=m.yieldResult,_.q(m,P.get("prefs",Y),3);u=m.yieldResult;if(!u)return m.return();W=(0,_.Oh)();return u.expirationTimestampMs<=W?m.return():m.return(u.value)})};
_.bA.prototype.set=function(Y,S,P){P=P===void 0?31536E3:P;var u=this,W,m,J;return _.B(function(c){if(c.nextAddress==1)return W=(0,_.Oh)(),m={key:Y,value:S,expirationTimestampMs:W+P*1E3},_.q(c,mJJ(u.token),2);J=c.yieldResult;return _.q(c,J.put("prefs",m),0)})};
_.bA.prototype.remove=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,mJJ(S.token),2);P=u.yieldResult;return _.q(u,P.delete("prefs",Y),0)})};var TE={},SO_=(TE.INVALID_ENCODER_VERSION="Invalid encoder version",TE.KEY_CREATION_FAILED="Failed to create encoder key",TE.UNKNOWN_DECODE_ERROR="Failed to decode PES data",TE.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",TE.WRONG_DATA_TYPE="Encoder cannot process the data type",TE),CA=function(Y,S){S=S===void 0?{}:S;_.$2.call(this,SO_[Y],Object.assign({},{name:"PESEncoderError",type:Y},S));this.type=Y;this.level="WARNING";Object.setPrototypeOf(this,CA.prototype)};
_.r(CA,_.$2);var Pns=function(){},u43=function(Y,S,P){try{return Y.encodeImpl(S,P)}catch(u){BF8(u,jME)}},WEL=function(Y,S,P){var u;
return _.B(function(W){if(W.nextAddress==1)return _.ND(W,2),_.q(W,Y.decodeAsyncImpl(S,P),4);if(W.nextAddress!=2)return W.return(W.yieldResult);u=_.O4(W);BF8(u,J7U);_.Yt(W)})};
Pns.prototype.decodeAsyncImpl=function(Y,S){return Promise.resolve(this.decodeImpl(Y,S))};var Kd=function(Y,S){this.aesEncryptor=Y;this.aesEncryptorAsync=S};
_.r(Kd,Pns);Kd.prototype.encodeImpl=function(Y,S){S=c71(S);Y=(new TextEncoder).encode(JSON.stringify(Y));return this.aesEncryptor.encrypt(Y,S)};
Kd.prototype.decodeImpl=function(Y,S){if(!(Y instanceof Uint8Array))throw nfa(1);var P=new TextDecoder;S=c71(S);Y=this.aesEncryptor.encrypt(Y,S);return JSON.parse(P.decode(Y))};
Kd.prototype.decodeAsyncImpl=function(Y,S){var P=this,u,W,m;return _.B(function(J){if(J.nextAddress==1){if(!(Y instanceof Uint8Array))throw nfa(1);u=new TextDecoder;W=c71(S);return _.q(J,P.aesEncryptorAsync.encrypt(Y,W),2)}m=J.yieldResult;return J.return(JSON.parse(u.decode(m)))})};var Cva={accountLinkStatusEntity:Ayt,booleanEntity:EMU,buttonEntity:bdJ,captionTrack:xJ3,channelHandle:mAh,commerceAcquisitionClientPayloadEntity:omU,commerceCartListEntity:tas,contextNoteFeedEntityPayload:qg6,continuationTokenEntity:OQs,downloadQualityPickerEntity:tvm,downloadsPageRefreshTokenEntity:Uds,downloadsPageViewConfigurationEntity:jxh,downloadStatusEntity:Azh,dismissState:uot,sfvAudioItemCurrentlyPlayingEntity:y7m,emojiFountainDataEntity:qGS,emojiCustomizationSetEntity:CA3,fakeChannel:$4L,
fakePlaylist:rys,fakePlaylistEntryCollection:Gjs,fakeVideo:vMh,fakeVideoDescription:D4m,featuredProductsEntity:vNu,flowStateEntity:Zlm,iconBadgeEntity:A5f,interstitialInteractionStateEntity:nqU,likeButtonAnimationEntity:JV6,liveChatPollStateEntity:xdi,liveViewerLeaderboardChatEntryPointStateEntity:aoS,liveViewerLeaderboardPointsEntity:LT3,liveReactionsDataEntity:R26,logoEntity:WIU,macroMarkerEntity:Bgd,mainDownloadsLibraryEntity:Q7_,mainDownloadsListEntity:k9m,mainPlaylistDownloadStateEntity:yz3,
mainPlaylistEntity:Yb_,mainPlaylistVideoEntity:Sbs,mainVideoDownloadStateEntity:NUS,mainVideoEntity:zuf,markersEngagementPanelSyncEntity:cVd,markersVisibilityOverrideEntity:CT6,musicAlbumReleaseDetail:XH6,musicAlbumReleaseDownloadMetadataEntity:pHd,musicAlbumRelease:lTJ,musicAlbumReleaseUserDetail:Zw3,musicArtistDetail:oNL,musicArtist:iwh,musicArtistUserDetail:tdJ,musicDownloadsLibraryEntity:FQ3,musicLibraryEdit:AV3,musicLibraryStatusEntity:UKf,musicPlaylist:QxU,musicPlaylistDownloadMetadataEntity:sxd,
musicShare:MdJ,musicTrackDetail:Ng6,musicTrackDownloadMetadataEntity:dK3,musicTrack:yVu,musicTrackUserDetail:Hw3,offlineOrchestrationActionWrapperEntity:brU,offlineVideoPolicy:TFd,offlineVideoStreams:KTL,offlineabilityEntity:HQ6,orchestrationWebSamplingEntity:Vvu,pageHeaderEntity:mni,pdpStateEntity:Uni,pinnedProductEntity:DKJ,playbackData:Ef6,playerStateEntity:qbs,quantityIncrementerEntity:QQm,refresh:fom,saveToPlaylistListEntity:x7u,settingEntity:iPh,stringEntity:fji,suggestedFeedbackChipStateEntity:Ruu,
transfer:gft,trendingOfferEntity:ITu,videoDownloadContextEntity:$Jm,videoOverviewAsyncDataEntity:xCf,videoPlaybackPositionEntity:Emf,votingEntity:jQ3,ytMainChannelEntity:mKU,youchatPendingResponseEntity:xKs,ytMainDownloadedVideoEntity:eOd,ytMainVideoEntity:nN_};var z46,nxL,KA,fou,gfa,BBu,CnL,cdf,Jd3;z46=function(Y,S){this.JSC$10455_wrapped=Y;this.JSC$10455_encoderRegistry=S;this.changedKeys={}};
nxL=function(Y,S){a:{Y=mHs(Y.JSC$10455_encoderRegistry,S.version);try{var P=Y.decodeImpl(S.data,S.key);break a}catch(u){BF8(u,J7U)}P=void 0}return P};
_.jr_=function(Y,S,P){return Y.JSC$10455_wrapped.objectStore("EntityStore").get(S).then(function(u){if(u){if(P&&u.entityType!==P)throw Error("Af");return nxL(Y,u)}})};
KA=function(Y,S,P){return P?(P=P.map(function(u){return _.jr_(Y,u,S)}),XV.all(P)):Y.JSC$10455_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(S)).then(function(u){return u.map(function(W){return nxL(Y,W)})})};
_.Ef9=function(Y,S,P){var u=Vd8(S),W=mHs(Y.JSC$10455_encoderRegistry,1),m=Object.assign({},S);return Y.JSC$10455_wrapped.objectStore("EntityStore").get(u).then(function(J){if(J){if(J.entityType!==P)throw Error("Af");m.entityMetadata||(J=nxL(Y,J),m.entityMetadata=J.entityMetadata)}}).then(function(){var J={key:u,
entityType:P,data:u43(W,m,u),version:1};return XV.all([Y.JSC$10455_wrapped.objectStore("EntityStore").put(J),Jd3(Y,m,P)])}).then(function(){BBu(Y,u,P);
return u})};
fou=function(Y,S){var P=_.mZ(S).entityType;return XV.all([Y.JSC$10455_wrapped.objectStore("EntityStore").delete(S),cdf(Y,S)]).then(function(){BBu(Y,S,P)})};
gfa=function(Y,S,P,u){var W=mHs(Y.JSC$10455_encoderRegistry,1);return _.jr_(Y,S,u).then(function(m){if(m){m=XH9(m,P);var J={key:S,entityType:u,data:u43(W,m,S),version:1};return XV.all([Y.JSC$10455_wrapped.objectStore("EntityStore").put(J),Jd3(Y,m,u)])}}).then(function(){BBu(Y,S,u);
return S})};
BBu=function(Y,S,P){var u=Y.changedKeys[P];u||(u=new Set,Y.changedKeys[P]=u);u.add(S)};
CnL=function(Y,S,P){var u=Vd8(S);P=qqa(P);if(!P)return XV.resolve([]);P=new P(S);Y=Y.JSC$10455_wrapped.objectStore("EntityAssociationStore");S=[];P=_.n(P.getAssociations());for(var W=P.next();!W.done;W=P.next())S.push(Y.put({parentEntityKey:u,childEntityKey:W.value}));return XV.all(S).then(function(m){return m.map(function(J){return J[1]})})};
cdf=function(Y,S){return Y.JSC$10455_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(S))};
Jd3=function(Y,S,P){var u=Vd8(S);return cdf(Y,u).then(function(){return CnL(Y,S,P)})};var qOL=function(){};
_.r(qOL,Pns);qOL.prototype.encodeImpl=function(Y){return Y};
qOL.prototype.decodeImpl=function(Y){if(Y instanceof Uint8Array)throw nfa(0);return Y};var brh=function(){this.cacheMap={};this.cacheMap[0]=new qOL;if(!_.f("aes_pes_encoder_killswitch")){var Y=this.cacheMap;try{var S=_.fz();var P=c71(S);var u=new Kd(new OGf(P),new HGu(P))}catch(W){throw Y=W instanceof Error?new CA("KEY_CREATION_FAILED",{originalMessage:W.message}):new CA("KEY_CREATION_FAILED"),_.p_(Y),Y;}Y[1]=u}},mHs=function(Y,S){S=S===void 0?0:S;
Y=Y.cacheMap[S];if(!Y)throw S=new CA("INVALID_ENCODER_VERSION",{encoderVersion:S}),_.p_(S),S;return Y};var RR=function(Y,S){_.R6.call(this);this.token=Y;this.JSC$10469_encoderRegistry=S;this.observers=[];Y=new _.Pa.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.fz());Y.onmessage=this.handleMessage.bind(this);this.channel=Y};
_.r(RR,_.R6);_.TM=function(Y,S,P){var u,W,m,J;return _.B(function(c){if(c.nextAddress==1)return _.q(c,WTE(Y.token),2);if(c.nextAddress!=3)return u=c.yieldResult,_.q(c,_.Ql(u,["EntityStore","EntityAssociationStore"],S,function(C){W=new z46(C,Y.JSC$10469_encoderRegistry);return P(W)}),3);
m=c.yieldResult;W&&(J=W.changedKeys,Object.keys(J).length>0&&(Y.channel.postMessage(J),R4L(Y,J)));return c.return(m)})};
RR.prototype.observe=function(Y){var S=this;this.observers.push(Y);return function(){var P=S.observers.indexOf(Y);P>=0&&S.observers.splice(P,1)}};
var m5X=function(Y){var S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,_.TM(Y,{mode:"readonly",enableRetries:!0},function(u){return u.JSC$10455_wrapped.objectStore("EntityStore").getAll()}),2);
S=P.yieldResult;return P.return(Promise.all(S.filter(function(u){return!!u}).map(function(u){var W,m;
return _.B(function(J){if(J.nextAddress==1){W=u.key;m=u.entityType;var c=WEL(mHs(Y.JSC$10469_encoderRegistry,u.version),u.data,u.key);return _.q(J,c,2)}return J.return({key:W,entityType:m,data:J.yieldResult})})})))})};
RR.prototype.handleMessage=function(Y){R4L(this,Y.data)};
var R4L=function(Y,S){Y=_.n(Y.observers);for(var P=Y.next();!P.done;P=Y.next())P=P.value,P(S)};
RR.prototype.disposeInternal=function(){this.channel.close()};
var R7K;var EG,b$s,NpX,of$;EG={};_.xHU=(EG.mainVideoEntity="mainVideoEntityActionMetadata",EG.mainPlaylistEntity="mainPlaylistEntityActionMetadata",EG.musicTrack="musicTrackEntityActionMetadata",EG.musicPlaylist="musicPlaylistEntityActionMetadata",EG);b$s=new _.yH("DOWNLOADS_ENTITY_TYPE_MAP");NpX=_.JE("","downloadsPageViewConfigurationEntity");of$=_.JE("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.eDJ=_.JE("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.JE("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.JE("SMART_DOWNLOADS_ENABLED","settingEntity");_.JE("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var vf8=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var FT8=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var ZDh={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var fd,lPh,bch,zQ$;fd=window;_.ZS=fd.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.yf8=fd.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Qc;lPh=fd.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||f6;bch=fd.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||xh3;_.TBf=fd.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.pqu;zQ$=fd.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||dyL;AE({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 VTh=XgE(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(Y){return Y}}}),bt$=XgE(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(Y){return Y}}}),tT9=new Map;var OPY=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],MTa;var KEi=function(Y){return _.WT({type:"SET_EPHEMERAL_ACTION",payload:Y})};var Exm={ephemeralAction:null};var fFL={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var gmY={sharedUi:function(Y,S){Y=Y===void 0?fFL:Y;switch(S.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},Y,{animatedThumbnailEnabled:S.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},Y,{inlinePreviewEnabled:S.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},Y,{currentPageType:S.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},Y,{currentPageSubType:S.payload});default:return Y}},
a11y:Rk({ephemeralAction:function(Y,S){Y=Y===void 0?Exm.ephemeralAction:Y;switch(S.type){case "SET_EPHEMERAL_ACTION":return S.payload;default:return Y}}})};var R29=Rk({isLeaderTab:function(Y,S){Y=Y===void 0?!0:Y;switch(S.type){case "SET_IS_LEADER_TAB":var P,u;return(u=S==null?void 0:(P=S.payload)==null?void 0:P.isLeaderTab)!=null?u:Y;default:return Y}}});var gxu=function(Y){return _.WT({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:Y}})};var f39=Rk({isDesktopSmallWidth:function(Y,S){switch(S.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return S.payload.isDesktopSmallWidth;default:return Y===void 0?!1:Y}},
isShortsActive:function(Y,S){switch(S.type){case "SET_IS_SHORTS_ACTIVE":return S.payload.isShortsActive;default:return Y===void 0?!1:Y}},
isWatchWhileMode:function(Y,S){switch(S.type){case "SET_IS_WATCH_WHILE_MODE":return S.payload.isWatchWhileMode;default:return Y===void 0?!1:Y}},
playerState:function(Y,S){switch(S.type){case "SET_PLAYER_STATE":return S.payload.playerState;default:return Y===void 0?-1:Y}},
isFullscreen:function(Y,S){switch(S.type){case "SET_IS_FULLSCREEN":return S.payload.isFullscreen;default:return Y===void 0?!1:Y}},
isSmallScreenSqueezeback:function(Y,S){switch(S.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return S.payload.isSmallScreenSqueezeback;default:return Y===void 0?!1:Y}},
isShortsPipActive:function(Y,S){switch(S.type){case "SET_IS_SHORTS_PIP_ACTIVE":return S.payload.isShortsPipActive;default:return Y===void 0?!1:Y}},
isPlaybackStarted:function(Y,S){switch(S.type){case "SET_IS_PLAYBACK_STARTED":return S.payload.isPlaybackStarted;default:return Y===void 0?!1:Y}}});var z2h={playlistId:"",inviteLinkURL:""};var $Hu={};var qGK=Rk({continuationCommand:function(Y,S){Y=Y===void 0?$Hu:Y;switch(S.type){case "SET_CONTINUATION_COMMAND":return S.payload.continuationCommand;default:return Y}}});var r5a=function(){return function(Y){return function(S){var P=Y(S);_.nb(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[S],!0);return P}}};var rdd,XC$;rdd=new _.nV;_.HX=new _.yH("WATCH_PLAYER_PROMISE_TOKEN");_.GXS=new _.nV;_.h4J=new _.yH("SHORTS_PLAYER_PROMISE_TOKEN");XC$=new _.yH("");var GEY=function(){return function(Y){return function(S){S.type==="ENTITY_LOADED"&&_.E().resolve(_.HX).then(function(P){var u;(u=P.dispatchReduxAction)==null||u.call(P,S)});
return Y(S)}}};var nmE={currentFormId:"",commandsMap:{}};var vxf={};var xnX=Rk({additionalContext:function(Y,S){switch(S.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var P;return(P=S.payload)!=null?P:"";default:return Y===void 0?"":Y}},
impersonatedChannelUrl:function(Y,S){switch(S.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var P;return(P=S.payload)!=null?P:"";default:return Y===void 0?"":Y}},
selectedVideoIds:function(Y,S){Y=Y===void 0?vxf:Y;switch(S.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var P={};return Object.assign({},Y,(P[S.payload]=!0,P));case "VIDEO_UNSELECTED":return S=S.payload,Y=Object.assign({},Y),delete Y[S],Y;default:return Y}}});var bdX=Rk({parentClickTrackingParams:function(Y,S){switch(S.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return S.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return Y===void 0?"":Y}}});var DHu=function(Y){return _.WT({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:Y})};var IF6={};var TGE=Rk({stepStates:function(Y,S){Y=Y===void 0?IF6:Y;switch(S.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var P=Y,u=S.payload,W,m,J;Y={};S={selectionStates:Object.assign({},(J=(W=P[u.stepId])==null?void 0:W.selectionStates)!=null?J:{},(Y[u.token]={isSelected:u.isSelected},Y)),userQuery:(m=P[u.stepId])==null?void 0:m.userQuery};W={};return Object.assign({},P,(W[u.stepId]=S,W));case "TALK_TO_RECS_UPDATE_USER_QUERY":return W=Y,m=S.payload,J={selectionStates:Object.assign({},
(u=(P=W[m.stepId])==null?void 0:P.selectionStates)!=null?u:{}),userQuery:{userQuery:m.userQuery,token:m.userQueryToken}},P={},Object.assign({},W,(P[m.stepId]=J,P));default:return Y}}});var aF3,LEd;aF3=function(Y){return _.WT({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:Y})};
LEd=function(Y){return _.WT({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:Y})};
_.Dd=function(Y){return _.WT({type:"SET_CURRENT_PAGE_TYPE",payload:Y})};
_.wbh=function(Y){return _.WT({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:Y})};var J5J={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"};_.pbU=function(Y){return _.WT({type:"SET_PLAYER_STATE",payload:{playerState:Y}})};var FEt=[],sr_={width:0,height:0};var KDf=Rk({isTheaterMode:function(Y,S){Y=Y===void 0?_.Z4("START_IN_THEATER_MODE"):Y;switch(S.type){case "SET_IS_THEATER_MODE":return S.payload.isTheaterMode;default:return Y}},
isWatchActive:function(Y,S){switch(S.type){case "SET_IS_WATCH_ACTIVE":return S.payload.isWatchActive;default:return Y===void 0?!1:Y}},
isWatchFullscreen:function(Y,S){switch(S.type){case "SET_IS_WATCH_FULLSCREEN":return S.payload.isWatchFullscreen;default:return Y===void 0?!1:Y}},
isWatchNarrowWidth:function(Y,S){switch(S.type){case "SET_IS_WATCH_NARROW_WIDTH":return S.payload.isWatchNarrowWidth;default:return Y===void 0?!1:Y}},
isWatchRetroMode:function(Y,S){switch(S.type){case "SET_IS_WATCH_RETRO_MODE":return S.payload.isWatchRetroMode;default:return Y===void 0?!1:Y}},
isLiveChatCollapsed:function(Y,S){switch(S.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return S.payload.isLiveChatCollapsed;default:return Y===void 0?!1:Y}},
openEngagementPanels:function(Y,S){Y=Y===void 0?FEt:Y;var P=[].concat(_.cz(Y));switch(S.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return P.push(S.payload.panelToAdd),P;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return P.splice(P.indexOf(S.payload.panelToRemove),1),P;default:return Y}},
playerState:function(Y,S){switch(S.type){case "SET_PLAYER_STATE":return S.payload.playerState;default:return Y===void 0?-1:Y}},
watchScrollTop:function(Y,S){switch(S.type){case "SET_WATCH_SCROLL_TOP":return S.payload.watchScrollTop;default:return Y===void 0?0:Y}},
watchWindowSize:function(Y,S){Y=Y===void 0?sr_:Y;switch(S.type){case "SET_WATCH_WINDOW_SIZE":return S.payload.watchWindowSize;default:return Y}}});var dHJ={feedbackTokens:[]};var Ema=Rk({surveyFeedbackData:function(Y,S){Y=Y===void 0?dHJ:Y;switch(S.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return S.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},Y,S.payload);default:return Y}}});var c5a={};var vmu=void 0;_.f("web_enable_redux_store_on_demand")||(vmu=h2$());var lFJ=function(Y,S,P){var u=this;this.listId=Y;this.JSC$10602_updateCallback=S;this.isOfflineVideoCallback=P;_.Na().subscribe(function(){u.handleUpdate()})};
lFJ.prototype.getPlaylistData=function(){var Y=_.Na().getState().entities;if(this.listId&&this.listId!=="PPSV"){var S=Vph(Y,this.listId,!0),P=_.JE(this.listId,"mainPlaylistEntity"),u,W;Y=Y==null?void 0:(u=Y.mainPlaylistEntity)==null?void 0:(W=u[P])==null?void 0:W.title;return Dnh(S,Y,this.listId)}S=_.sMY(PO8(Y));Y=_.sMY(_.vT(Y));return Dnh(S.concat(Y))};
lFJ.prototype.getPlaylistId=function(){return this.listId};
lFJ.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10602_updateCallback(this.listId,this.getPlaylistData(),{})};var gG=function(Y,S,P,u){u=u===void 0?[]:u;this.JSC$10605_playlistNetworkManager=Y;this.listId=S;this.JSC$10605_updateCallback=P;this.videoIds=u;this.pendingUpdates=[];this.currentIndex=0};
gG.prototype.JSC$10605_setCurrentIndex=function(Y){this.currentIndex=Y};
gG.prototype.setListId=function(Y){this.listId=Y};
var Xbi=function(Y,S){Y.currentCreateRequest&&Y.currentCreateRequest.cancel(S);Y.currentUpdateRequest&&Y.currentUpdateRequest.cancel(S);Y.currentRefreshRequest&&Y.currentRefreshRequest.cancel(S)};
gG.prototype.delete=function(){Xbi(this,"PROXY DELETED")};
gG.prototype.addVideos=function(Y,S,P){var u=this;P!==void 0?this.videoIds.splice.apply(this.videoIds,[P,0].concat(_.cz(Y))):this.videoIds.push.apply(this.videoIds,_.cz(Y));this.listId||this.currentCreateRequest?(Y.forEach(function(W,m){W={addedVideoId:W,action:"ACTION_ADD_VIDEO"};P&&(W.addedVideoPosition=P+m);u.pendingUpdates.push(W)}),$m(this)):Z$m(this,S.onCreateListCommand)};
var i$h=function(Y,S,P,u,W){GJU(Y.videoIds,S,P);S>Y.currentIndex&&P<=Y.currentIndex?Y.JSC$10605_setCurrentIndex(Y.currentIndex+1):S===Y.currentIndex?Y.JSC$10605_setCurrentIndex(P):S<Y.currentIndex&&P>=Y.currentIndex&&Y.JSC$10605_setCurrentIndex(Y.currentIndex-1);Y.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:u,movedSetVideoIdPredecessor:W});$m(Y)},Z$m=function(Y,S){Xbi(Y,"OBSOLETE");
Y.currentCreateRequest=oxi(Y.JSC$10605_playlistNetworkManager,S,Y.videoIds);_.gy(Y.currentCreateRequest,function(){Y.currentCreateRequest=void 0}).then(function(P){Y.setListId(P.playlistId);
Y.pendingUpdates.length>0?$m(Y):tMi(Y)})},$m=function(Y){if(Y.pendingUpdates.length!==0&&(Y.currentRefreshRequest&&Y.currentRefreshRequest.cancel("OBSOLETE"),!Y.currentUpdateRequest&&!Y.currentCreateRequest)){var S=Y.pendingUpdates.splice(0,Y.pendingUpdates.length);
Y.currentUpdateRequest=Y.JSC$10605_playlistNetworkManager.updatePlaylist(Y.listId,S);_.gy(Y.currentUpdateRequest,function(){Y.currentUpdateRequest=void 0}).then(function(){Y.pendingUpdates.length>0?$m(Y):tMi(Y)}).thenCatch(function(){Y.pendingUpdates.unshift.apply(Y.pendingUpdates,_.cz(S))})}},tMi=function(Y){Y.currentRefreshRequest=_.AdS(Y.JSC$10605_playlistNetworkManager,Y.listId,Y.currentIndex,Y.videoIds[Y.currentIndex]);
_.gy(Y.currentRefreshRequest,function(){Y.currentRefreshRequest=void 0}).then(function(S){Y.JSC$10605_updateCallback(S.playlistId,S.playlistPanelRenderer,S.autoplayRenderer)})};
gG.prototype.size=function(){return this.videoIds.length};var UHU=function(Y,S,P,u){u=u===void 0?[]:u;gG.call(this,Y,S,P,u);this.JSC$10605_playlistNetworkManager=Y;this.listId=S;this.JSC$10605_updateCallback=P;this.videoIds=u};
_.r(UHU,gG);_.rG=function(Y,S,P,u,W,m,J){W=W===void 0?[]:W;J=J===void 0?Py:J;gG.call(this,Y,S,P,W);this.JSC$10605_playlistNetworkManager=Y;this.listId=S;this.JSC$10605_updateCallback=P;this.onAuthChange=u;this.videoIds=W;this.storage=m;this.cookieReader=J;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.yz(_.wc,this.checkLoggedInStatusChange.bind(this),1E3)};
_.r(_.rG,gG);_.z=_.rG.prototype;_.z.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.yz(_.wc,this.checkLoggedInStatusChange.bind(this),1E3)};
_.z.JSC$10605_setCurrentIndex=function(Y){gG.prototype.JSC$10605_setCurrentIndex.call(this,Y);this.store()};
_.z.delete=function(){_.wc.cancelJob(this.queueSapisIdJob);gG.prototype.delete.call(this)};
_.z.setListId=function(Y){gG.prototype.setListId.call(this,Y);this.store()};
_.z.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var Qri=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],kXt=["playerResponse","videoDetails"],MMd=["response","currentVideoEndpoint","watchEndpoint","videoId"],yd3=["response","currentVideoEndpoint","watchEndpoint","playlistId"],NBi=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],H$i=["response","contents","twoColumnWatchNextResults","playlist","playlist"],VMf=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
e46=["response","contents","twoColumnWatchNextResults"];var GE={},pp$=(GE.WEB_UNPLUGGED="^unplugged/",GE.WEB_UNPLUGGED_ONBOARDING="^unplugged/",GE.WEB_UNPLUGGED_OPS="^unplugged/",GE.WEB_UNPLUGGED_PUBLIC="^unplugged/",GE.WEB_CREATOR="^creator/",GE.WEB_KIDS="^kids/",GE.WEB_EXPERIMENTS="^experiments/",GE.WEB_MUSIC="^music/",GE.WEB_REMIX="^music/",GE.WEB_MUSIC_EMBEDDED_PLAYER="^music/",GE.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",GE);var cO9,oxi;cO9=function(Y,S){this.networkManager=Y;this.innertubeTransportService=S};
oxi=function(Y,S,P){if(!_.g(S,_.LP))return _.t9(Error("Ef"));_.g(S,_.LP).videoIds=P;P={create_playlist_title:_.Td("QUEUE",void 0,"Queue")};return LDa(_.sn(Y.innertubeTransportService,S,P),I31)};
_.AdS=function(Y,S,P,u){S={videoId:u,playlistId:S,playlistIndex:P};P=_.HT(Svt);return LDa(_.h5(Y.innertubeTransportService,S,P),wpf)};
cO9.prototype.updatePlaylist=function(Y,S){return LDa(_.sn(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:Y,actions:S}}),a39)};var vp=function(Y){this.storage=Y},O$L;
vp.prototype.store=function(Y,S){S=S===void 0?0:S;if(this.storage&&Y.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",Y),this.storage.set("TLPQindex",String(S)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(P){}};
vp.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
vp.prototype.getPlaylistId=function(){if(!this.storage)return null;var Y=null;try{Y=this.storage.get("TLPQplaylist")}catch(S){}return Y};
vp.prototype.getIndex=function(){if(this.storage){try{var Y=this.storage.get("TLPQindex")}catch(S){}Y=Number(Y);if(!isNaN(Y))return Y}};var l3Y=["navigationEndpoint","watchEndpoint","videoId"],dn$=["nextButtonVideo","watchEndpoint","videoId"];_.ER=new _.yH("NETWORK_TOKEN");_.Ag=new _.yH("PAGE_TOKEN");_.D3=new _.yH("PLAYLIST_TOKEN");var YJ3;YJ3=new _.yH("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.fV=new _.yH("INNERTUBE_TRANSPORT_TOKEN");var SJt,IQ,uaS,WWd,mrJ,nwd;SJt=new Set(["ci","cr","carml"]);IQ=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10652_parkedJobs=new Map;this.parkedProcessors=new Map};
_.aQ=function(){IQ.instance||(IQ.instance=new IQ);return IQ.instance};
IQ.prototype.onAny=function(Y){return _.P76(this,Y,2)};
IQ.prototype.parkOrScheduleJob=function(Y,S,P,u,W){_.Ld(this,P)?_.vs().addJob(Y,S,u):(W&&(Y=uaS(Y),WWd(this,Y,S,P,W)),W=this.JSC$10652_parkedJobs.get(P),W||(this.JSC$10652_parkedJobs.set(P,[]),W=this.JSC$10652_parkedJobs.get(P)),W.push({job:Y,priority:S,delay:u}))};
IQ.prototype.addListener=function(Y,S,P){P&&(S=uaS(S),WWd(this,S,0,Y,P));P=this.parkedProcessors.get(Y);P||(this.parkedProcessors.set(Y,[]),P=this.parkedProcessors.get(Y));P.push(S)};
IQ.prototype.processSignal=function(Y){if(!_.Ld(this,Y)){this.inProgressSignals.add(Y);var S=this.JSC$10652_parkedJobs.get(Y);if(S){S=_.n(S);for(var P=S.next();!P.done;P=S.next())P=P.value,_.vs().addJob(P.job,P.priority,P.delay);this.JSC$10652_parkedJobs.delete(Y)}if(S=this.parkedProcessors.get(Y)){S=_.n(S);for(P=S.next();!P.done;P=S.next())P=P.value,P();this.parkedProcessors.delete(Y)}this.signals.push(Y);this.inProgressSignals.delete(Y)}};
_.Ld=function(Y,S){return SJt.has(S)||_.Z4("IS_HOMEPAGE_COLD")||_.Z4("IS_RESULTS_PAGE_COLD")||_.Z4("IS_WATCH_PAGE_COLD")?Y.signals.indexOf(S)>=0:!0};
uaS=function(Y){var S=!1;return function(){S||(S=!0,Y())}};
WWd=function(Y,S,P,u,W){if(zv_.has(u))_.vs().addJob(S,P,W);else{var m=Y.compoundSignals.get(u);m&&_.vs().addJob(function(){_.Ld(Y,u)||(m.isTimeoutConditionSatisfied?_.vs().addJob(S,P):m.timeoutConditionObservers.push(function(){_.vs().addJob(S,P)}))},P,W)}};
_.P76=function(Y,S,P){if(S.length>1){var u=[],W=Object.create(null);S=_.n(S);for(var m=S.next();!m.done;m=S.next())m=m.value,W[m]||(u.push(m),W[m]=!0);S=u}if(S.length===1)return S[0];m=S;u="";W=P===2?"|":"&";m.sort();m=_.n(m);for(var J=m.next();!J.done;J=m.next())u+=J.value+W;if(!Y.compoundSignals.get(u)){W=0;m=[];J=_.n(S);for(var c=J.next();!c.done;c=J.next())c=c.value,W++,_.Ld(Y,c)||m.push(c);(P=P===2)&&W>m.length||!P&&!m.length?Y.signals.push(u):mrJ(Y,u,P,S,m)}return u};
mrJ=function(Y,S,P,u,W){var m=W.length,J=function(){P||--m===0?Y.processSignal(S):nwd(Y,S)};
W=_.n(W);for(var c=W.next();!c.done;c=W.next())Y.addListener(c.value,J);Y.compoundSignals.set(S,{signals:u,isOnAny:P,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});nwd(Y,S)};
nwd=function(Y,S){if(!_.Ld(Y,S)){var P=Y.compoundSignals.get(S);if(P&&!P.isTimeoutConditionSatisfied){for(var u=!1,W=0,m=0,J=_.n(P.signals),c=J.next();!c.done;c=J.next()){var C=c.value;c=!_.Ld(Y,C);zv_.has(C)?u=!0:(C=Y.compoundSignals.get(C))?c&&!C.isTimeoutConditionSatisfied&&(m++,P.isInitialized||C.timeoutConditionObservers.push(function(){nwd(Y,S)})):c&&W++}P.isInitialized=!0;
P.isOnAny?u&&(P.isTimeoutConditionSatisfied=!0):W===0&&m===0&&(P.isTimeoutConditionSatisfied=!0);if(P.isTimeoutConditionSatisfied)for(P=_.n(P.timeoutConditionObservers),u=P.next();!u.done;u=P.next())u=u.value,u()}}};
IQ.prototype.processSignal=IQ.prototype.processSignal;IQ.prototype.parkOrScheduleJob=IQ.prototype.parkOrScheduleJob;IQ.prototype.onAny=IQ.prototype.onAny;_.HQ("ytsignals.getInstance",_.aQ);IQ.prototype.onAny=IQ.prototype.onAny;IQ.prototype.parkOrScheduleJob=IQ.prototype.parkOrScheduleJob;IQ.prototype.processSignal=IQ.prototype.processSignal;var zv_=new Set(["eop","eocs","dl","pcl"]);_.l1=new _.yH("MINIPLAYER_SERVICE");var wG,jTh,JBu;wG=function(Y,S,P){var u=_.Ap.getInstance();if(!O$L){var W=new Y2$;var m=void 0,J=_.X3("ID_TOKEN");J&&W.isAvailable()&&(m=new vQ(W,"yt-queue"+J));O$L=new vp(m)}W=O$L;m=_.aQ();this.JSC$10659_actionRouter=u;this.pageManager=Y;this.playlistManager=S;this.JSC$10659_playlistNetworkManager=P;this.storage=W;this.signals=m;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.pd=function(){if(!jTh){var Y=_.E(),S=Y.resolve(_.PQ(_.Ag)),P=Y.resolve(_.PQ(_.ER)),u=Y.resolve(_.PQ(_.D3));Y=Y.resolve(_.fV);jTh=new wG(S,u,new cO9(P,Y))}return jTh};
JBu=function(Y,S,P){if(P){var u;if(((u=Y.responsePlaylistData)==null?void 0:u.playlistId)!==P)return}Y.responsePlaylistData&&(P=A5a(S,Y.responsePlaylistData),Y.responsePlaylistData=(0,_.RY.unsafeClone)(Y.responsePlaylistData),QQu(Y.responsePlaylistData,P));P=Y.temporaryItems.findIndex(function(W){return W.videoId===S});
P>-1&&Y.temporaryItems.splice(P,1);_.Fo(Y,_.sG(Y,Y.response?Y.response.autoplayRenderer:void 0))};
_.B$f=function(Y,S){if(Y.responsePlaylistData){var P=UnE(S,Y.responsePlaylistData);QQu(Y.responsePlaylistData,P);if(Y.queueProxy){var u=Y.queueProxy;P<0||(u.videoIds.splice(P,1),P<u.currentIndex&&u.JSC$10605_setCurrentIndex(u.currentIndex-1),u.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:S}),$m(u))}}_.Fo(Y,_.sG(Y,Y.response?Y.response.autoplayRenderer:void 0))};
wG.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Fo(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
wG.prototype.setPlaylistData=function(Y,S,P){this.temporaryItems=[];this.listId=Y;this.responsePlaylistData=S;_.Fo(this,_.sG(this,P))};
var cBL=function(Y){return(Y==null?0:Y.playlistId)?Y.playlistId:"PPSV"},C7U=function(Y){return Y&&Y.playlistId?Y.playlistId==="PPSV"?!0:NFK(_.Na().getState().entities,Y.playlistId):!1};
wG.prototype.isPlayingOfflineVideo=function(){return this.response?C7U(this.response):!1};
wG.prototype.closeMiniplayer=function(Y){var S=this.queueProxy&&this.queueProxy.size()<=1,P=_.E().resolve(_.l1);if(!this.queueProxy||S)this.queueProxy&&this.clearQueue(),P.close(!0);else{P.pipController.getWindow()&&window.focus();S=this.responsePlaylistData;var u=this.temporaryItems.length+(S&&S.contents?S.contents.length:0);S=_.Td("QUEUE_CLEARED_UNPLURALIZED")||_.fb("QUEUE_CLEARED",u);S=_.ek(S);P=_.Td("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");u=_.Td("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.fb("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",u);var W=_.Td("MINIPLAYER_CLOSE",void 0,"Close"),m=_.Td("CANCEL",void 0,"Cancel");_.Ix(this.JSC$10659_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.kW(P),dialogMessages:[_.kW(u)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.kW(W),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
S]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.kW(m)}}}}}}],Y)}};
_.sG=function(Y,S){var P={},u=Y.response;P.autoplayRenderer=S;if(!Y.responsePlaylistData&&!Y.temporaryItems.length)return!u||!u.hasRelatedVideoData&&_.f("kevlar_prefetch_data_augments_network_data")||(P.playerData={rvs:u.relatedVideoArgs,endScreenRenderer:u.endScreenRenderer}),P;P.playerData={};if(Y.index===void 0)return _.p_(Error("Gf")),P;P.panel=Y.responsePlaylistData?(0,_.RY.unsafeClone)(Y.responsePlaylistData):{titleText:_.kW(_.Td("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
S=P.panel;if(S.contents)for(var W=_.n(Y.temporaryItems),m=W.next();!m.done;m=W.next())S.contents.push({playlistPanelVideoRenderer:m.value});Y.queueProxy&&u&&u.playingVideo&&u.playingVideoId&&!tah(u.playingVideoId,P.panel)&&(S=u.playingVideo,W=P.panel,m=Y.index,W.contents&&W.contents.splice(m===void 0?0:m,0,{playlistPanelVideoRenderer:S}));u&&u.playingVideoId&&(S=Y.index,W=P.panel,S=!W.contents||S>=W.contents.length?void 0:W.contents[S].playlistPanelVideoRenderer,S&&S.videoId===u.playingVideoId||(S=
A5a(u.playingVideoId,P.panel),Y.index=S!==-1?S:Y.index?Y.index-1:0));S=omh(Y.index+1,P.panel);W=void 0;Y.index>0&&(W=omh(Y.index-1,P.panel));if(W||S)P.autoplayRenderer=XpE(S,W,P.autoplayRenderer);!S&&(u==null?0:u.relatedVideoArgs)&&(P.playerData.rvs=u.relatedVideoArgs);u=u?u.playlistIndexOffset:0;Y.queueProxy?y58(P.panel,Y.index,u,id8,!0,!0,!0):y58(P.panel,Y.index,u);P.playerData.playlistPanelRenderer=P.panel;return P};
wG.prototype.openToast=function(Y){_.E().resolve(_.l1).openToast(Y,_.Td("ADDED_TO_QUEUE",void 0,"Added to queue"))};
wG.prototype.isMiniplayerActive=function(){return _.E().resolve(_.l1).isMiniplayerActive()};
_.Fo=function(Y,S){Y.playlistManager.setAutoplayRenderer(S.autoplayRenderer||null);Y.playlistManager.setPlaylistData(S.panel||null);S.playerData&&Y.playlistManager.setPlayerPlaybackControlData(S.playerData)};var Hda="#";var qJ_={},Rvt={},xru={},bCL={},T$3={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:(qJ_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",qJ_),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:(Rvt.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Rvt),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:(xru.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",xru),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:(bCL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",bCL),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 Fea=[{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:T$3},{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:T$3}}];var KWS=[["cnkjYXdwZmZscDZtajJhcHJpbWE=",null],[null,["OWt0dHl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI29zdzJsaXZ1","ZjQzcG8wdXN0eWxlLXNjb3BlI2dsYzQw"]],["bTM1b3J3am1hc3RoZWFkLWFkIzN1azM2",["ZW5kZXJlciN1bXV2OWF0cWNnZ2Z5dGQtcmljaC1ncmlkLXI="]],[null,["ZW5kZXJlciM0djJraHk3amRxajZ5dGQtcmljaC1ncmlkLXI=","NWw1NGRkb3N0eWxlLXNjb3BlIzl2M3J5"]],[null,["ZXJlciNld2hwMGJ4ZjA5NWV5dGQtYmFubmVyLXByb21vLXJlbmQ=","amowcXNpaHN0eWxlLXNjb3BlI3hxdHAx"]],[null,["LXJlbmRlcmVyIzhnZGRtMTgzdzFjdXl0ZC1hZC1zbG90"]]],
Ew3=[["ZG5nbXFrcXJqcGxheWVyLWFkcyNwNWI=",null]];var $Cu=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var dG;dG=function(Y,S,P){this.frb=Y;this.isAsync=S;this.mUx=P};
_.kSX=[new dG("b.f_",!1,0),new dG("j.s_",!1,2),new dG("r.s_",!1,4),new dG("e.h_",!1,6),new dG("i.s_",!0,8),new dG("s.t_",!1,10),new dG("p.h_",!1,12),new dG("s.i_",!1,14),new dG("f.i_",!1,16),new dG("a.b_",!1,18),new dG("a.o_",!1),new dG("g.o_",!1,22),new dG("p.i_",!1,24),new dG("p.m_",!1),new dG("n.k_",!0,20),new dG("i.f_",!1),new dG("a.s_",!0),new dG("m.c_",!1),new dG("n.h_",!1,26),new dG("o.p_",!1),new dG("m.p_",!0,28),new dG("o.a_",!1),new dG("d.p_",!1)].reduce(function(Y,S){Y[S.frb]=S;return Y},
{});var Sef=function(){};
Sef.prototype.flush=function(Y,S){Y=Y===void 0?[]:Y;S=S===void 0?!1:S;if(_.f("enable_client_streamz_web")){Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())P=yYs(P.value),P={serializedIncrementBatch:_.QB(P.JSC$7479_serializeBinary())},_.L_("streamzIncremented",P,{sendIsolatedPayload:S})}};var uM;var vAX,uhE,C49,mCU,JDK,fG$,IG9,gwS,Keh,mM,LeK,XU$,lA;vAX=2;uhE=2;C49=2;mCU=2;JDK=2;fG$=2;IG9=2;gwS=new A$L;Keh=function(){this.qQy=!1};
mM=function(Y,S,P){gwS.increment(P,S);S===0&&(Y.qQy=!0)};
LeK=["Z2xvYmFsQ2FsbGJhY2tz","b25BYm5vcm1hbGl0eURldGVjdGVk","b25BZFNraXA=","cmF3X3BsYXllcl9yZXNwb25zZQ=="];
XU$=[[["cHd2aGtpbmQjYmM2MHdiczI=","M3ZhbHVlI2V2c2t2M2NuYTJy"],"X1NUQVJUI254NzMwM2RhMG81OUFEX1BMQUNFTUVOVF9LSU5E"],[["cHd2aGtpbmQjYmM2MHdiczI=","M3ZhbHVlI2V2c2t2M2NuYTJy"],"cDVuZTN0cGt2bDUzQURfUExBQ0VNRU5UX0tJTkRfTUlMTElTRUNPTkRTIw=="],[["cHd2aGtpbmQjYmM2MHdiczI=","M3ZhbHVlI2V2c2t2M2NuYTJy"],"NWJ5MXd3bUFEX1BMQUNFTUVOVF9LSU5EX0xBWU9VVF9JRF9FTlRFUkVEI29kbWcy"],[["cHd2aGtpbmQjYmM2MHdiczI=","M3ZhbHVlI2V2c2t2M2NuYTJy"],"S0lORF9FTkQjaHZ0ODlpNm41NjVxQURfUExBQ0VNRU5UXw=="],[["cHd2aGtpbmQjYmM2MHdiczI=","M3ZhbHVlI2V2c2t2M2NuYTJy"],
"X1BBVVNFI2c2anpja2VpZG95d0FEX1BMQUNFTUVOVF9LSU5E"]];lA={};_.$rU=(lA["b.f_"]=function(){return _.B(function(Y){return Y.nextAddress==1?_.q(Y,(_.kjh()!==void 0?_.t9(Error("sf")):_.d4E()).then(function(){return 1},function(S){if(S.message==="Biscotti id is disabled")return 3;
_.sf("Failed fetching bid");return 0}),2):Y.return(Y.yieldResult)})},lA["j.s_"]=EAh,lA["r.s_"]=bfa,lA["e.h_"]=function(){for(var Y=function(W){return Vaa(W)},S=[KWS,
Ew3],P=2,u=0;u<S.length&&(P=gAU(e2a(S[u],Y)),P!==0);u++);return P},lA["n.h_"]=function(){return gAU(e2a([["player-ads",
["ytd-merch-shelf-renderer","ytp-featured-product"]]]))},lA["i.s_"]=function(){return _.X3("ISDSTAT",2)},lA["p.h_"]=function(){return 2},lA["s.t_"]=function(){return vAX},lA["s.i_"]=DCE,lA["f.i_"]=zea,lA["a.b_"]=ReE,lA["a.o_"]=heh,lA["g.o_"]=GS9,lA["p.i_"]=rDa,lA["p.m_"]=jmE,lA["n.k_"]=function(){return _.X3("NKDSTAT",2)},lA["i.f_"]=cD9,lA["a.s_"]=function(){return _.X3("ASDSTAT",2)},lA["m.c_"]=function(){return 2},lA["o.p_"]=function(){for(var Y=[],S=0,P=0;P<LeK.length;P++)Y[P]=LeK[P],S++;
Y[S]="d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz";Y[S+1]="YWJfc2FfZWY=";return aGf(Y)},lA["m.p_"]=function(){return _.X3("MBSTAT",2)},lA["o.a_"]=function(){return wUh()===0?0:pUX()},lA["d.p_"]=function(){return IG9},lA);var rBd,G$J,hvd;rBd=function(){this.ongoingFlowNonces=new Map};
_.Bq=function(){G$J||(G$J=new rBd);return G$J};
_.jV=function(Y,S,P){return{eventType:{flowEventNamespace:Y,flowEventType:S},metadata:P,statusCode:void 0,csn:void 0,can:void 0}};
_.yD8=function(Y,S){var P=_.Bq(),u=hvd(P,S,!0);_.JK(P,Y,S,u)};
_.JK=function(Y,S,P,u){Y={flowNonce:u||hvd(Y,P),flowType:P,flowEventType:S.eventType};S.metadata&&(Y.flowMetadata=S.metadata);S.statusCode!==void 0&&(Y.flowEventStatus=S.statusCode);S.csn&&(Y.csn=S.csn);S.can&&(Y.can=S.can);_.L_("flowEvent",Y,void 0)};
hvd=function(Y,S,P){P=P===void 0?!1:P;var u=Y.ongoingFlowNonces.get(S);if(!u||P)u=ak(16),Y.ongoingFlowNonces.set(S,u);return u};_.vwU=new tZU;var Xo=function(Y,S,P,u,W,m,J){P=P===void 0?!1:P;u=u===void 0?!1:u;m=m===void 0?_.pd():m;this.hasRun=!1;this.qeE=Y;this.op2=S;this.qtr=P;this.fromHistory=u;this.previousVideoId=W;this.wDk=m;this.tempData=J;this.jaV=new _.U1L};
_.r(Xo,Uw);Xo.prototype.validate=function(Y){return!(!Y.data.playerResponse||Y.data.page!=="watch"&&Y.data.page!=="shorts"||this.hasRun)};
Xo.prototype.handle=function(Y){var S=this,P=_.g(Y.endpoint,_.yx),u=_.g(Y.endpoint,_.bM);if(_.f("kevlar_continue_playback_without_player_response")&&(P==null?0:P.videoId)&&this.previousVideoId&&(P==null?void 0:P.videoId)===this.previousVideoId&&(P==null?0:P.continuePlayback)&&!this.fromHistory)this.qeE.resolve();else{var W={};P?W.watch_endpoint=P:u&&(W.watch_endpoint=u,u.endTimeSeconds&&(W.end=u.endTimeSeconds));Y.data.page==="watch"?(Y.data.filler||this.qtr||(_.sV("cfg"),_.Ap.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(W,Drt(this,Y.endpoint)),_.f("enable_masthead_quartile_ping_fix")&&Object.assign(W,IqJ(this)),P=!_.f("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(W,P),Y.data.forceExternalPlaylist&&(W.external_list=!0)):Y.data.page==="shorts"&&_.Ap.getInstance().triggerAction("yt-start-loading-shorts");if(P=this.op2()){try{P.loadVideoWithPlayerResponse(Y.data.playerResponse,W),P.getPlayerPromise().then(this.qeE.resolve)}catch(m){_.p_(m),this.qeE.resolve()}this.hasRun=
!0;P.getPlayerPromise().then(function(m){m.addEventListener("onAbnormalityDetected",function(){var J=Y.data.playerResponse,c=m.getVideoData().cpn;IG9=0;_.fq6=c;if(c=Qmh(J))S.jaV.increment("IN_PLAYER"),_.cq(5),_.f("ab_st_vid_ks")?m.pauseVideo(!0):m.stopVideo(),J.playabilityStatus=Object.assign({},J.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:c}}),J.videoDetails=void 0,_.Ap.getInstance().triggerOptionalAction("yt-updated-playability-status",J.playabilityStatus)})})}else _.sf(Error("Jf"))}};
var Drt=function(Y,S){var P=_.g(S,_.yx);if(S&&P&&P.playlistId&&P.videoId&&(Y=Y.wDk,Y.queueProxy?(Y=Y.queueProxy,P=Y.listId===P.playlistId?Y.attributionData.get(P.videoId):void 0):P=void 0,P))return{queue_info:P}},IqJ=function(Y){var S;
if((S=Y.tempData)==null?0:S.adpings)return{adpings:Y.tempData.adpings}};var Z3=function(Y,S,P){this.hasRun=!1;this.yh2=Y;this.aEV=S;this.bI2=P};
_.r(Z3,Uw);Z3.prototype.validate=function(Y){return!!_.RY.getValueByKeys.apply(null,[Y.data].concat(_.cz(e46)))};
Z3.prototype.handle=function(Y){var S=this;this.yh2.promise.then(function(){var P=Y.data;var u=_.RY.getValueByKeys.apply(null,[P].concat(_.cz(Qri))),W=_.RY.getValueByKeys.apply(null,[P].concat(_.cz(H$i))),m=_.RY.getValueByKeys.apply(null,[P].concat(_.cz(MMd)));var J=(J=_.RY.getValueByKeys.apply(null,[P].concat(_.cz(kXt))))?{videoId:J.videoId,thumbnail:J.thumbnail,title:J.title?_.kW(J.title):void 0,shortBylineText:J.author?_.kW(J.author):void 0}:void 0;var c=void 0;_.f("web_get_playlist_id_from_current_endpoint_ks")||
(c=_.RY.getValueByKeys.apply(null,[P].concat(_.cz(yd3))));var C=_.RY.getValueByKeys.apply(null,[P].concat(_.cz(VMf))),x=_.RY.getValueByKeys.apply(null,[P].concat(_.cz(NBi))),b=!!C||!!x&&!!x.results&&x.results.length>0,T=0;W&&W.currentIndex&&W.localCurrentIndex&&(T=W.currentIndex-W.localCurrentIndex);W&&W.playlistId&&(c=W.playlistId);P={rawResponse:P,autoplayRenderer:u,hasRelatedVideoData:b,playingVideo:J,playingVideoId:m,playlistPanelRenderer:W,playlistId:c,playlistIndex:W&&W.currentIndex,relatedVideoArgs:C,
endScreenRenderer:x,playlistIndexOffset:T};a:{u=S.bI2;W=S.aEV;u.response=P;if(C7U(P))u.downloadPlaylistProxy&&u.downloadPlaylistProxy.getPlaylistId()===cBL(P)||(u.downloadPlaylistProxy=new lFJ(cBL(P),u.setPlaylistData.bind(u),u.isPlayingOfflineVideo.bind(u))),u.responsePlaylistData=u.downloadPlaylistProxy.getPlaylistData(),u.listId=cBL(P),u.index=0;else if(P.playlistPanelRenderer&&P.playlistId&&P.autoplayRenderer)P.playlistId.startsWith("TLPQ")?u.queueProxy?u.listId===P.playlistId?(u.index=P.playlistIndex,
u.responsePlaylistData=P.playlistPanelRenderer,u.queueProxy.JSC$10605_setCurrentIndex(u.index)):P.playingVideoId&&u.index!==void 0&&W.clientParams.autoSaveToQueue&&(u.index+=1,u.queueProxy.JSC$10605_setCurrentIndex(u.index),u.queueProxy.addVideos([P.playingVideoId],{},u.index)):(u.queueProxy=new _.rG(u.JSC$10659_playlistNetworkManager,P.playlistId,u.setPlaylistData.bind(u),u.clearQueue.bind(u),_.kEu(P.playlistPanelRenderer),u.storage),u.responsePlaylistData=P.playlistPanelRenderer,u.listId=P.playlistId,
u.index=P.playlistIndex):(u.index=P.playlistIndex,u.listId!==P.playlistId&&u.clearQueue(),u.responsePlaylistData=P.playlistPanelRenderer,u.listId=P.playlistId,u.playlistProxy=new UHU(u.JSC$10659_playlistNetworkManager,P.playlistId,u.setPlaylistData.bind(u),_.kEu(P.playlistPanelRenderer)));else if(!u.queueProxy)u.responsePlaylistData=void 0;else if(P.playingVideoId&&W.clientParams.autoSaveToQueue){if(u.index===void 0){_.p_(Error("Ff"));u.clearQueue();break a}u.queueProxy.videoIds.includes(P.playingVideoId)||
(u.index+=1,u.queueProxy.JSC$10605_setCurrentIndex(u.index),u.queueProxy.addVideos([P.playingVideoId],{},u.index))}_.Fo(u,_.sG(u,u.response.autoplayRenderer))}})};var aq_=function(Y,S){S=S===void 0?_.pd():S;zE.call(this);this.qI.push(new Z3(this.wA,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},S));this.qI.push(new Xo(this.wA,Y,!1,!1));_.f("web_response_commands_chunk_processor")&&this.qI.push(new mD)};
_.r(aq_,zE);aq_.prototype.processChunk=function(Y){Y&&Y.data.player===void 0&&this.wA.resolve();zE.prototype.processChunk.call(this,Y)};var iA=function(Y,S){Y=Y===void 0?{layer:0}:Y;this.hasRun=!1;this.createScreenConfig=Y;this.lER=S};
_.r(iA,Uw);iA.prototype.validate=function(Y){return!(this.hasRun||!Y.endpoint)};
iA.prototype.handle=function(Y){var S=_.BF(),P,u,W=(u=_.g((P=Y.endpoint)==null?void 0:P.commandMetadata,_.Yo))==null?void 0:u.rootVe;this.lER&&W?_.Ow(S,W,this.lER,this.createScreenConfig):gR3(S,Y.endpoint,this.createScreenConfig);this.hasRun=!0};var oQ=function(Y,S){this.hasRun=!1;this.sa2=Y;this.previousVideoId=S};
_.r(oQ,Uw);oQ.prototype.validate=function(Y){return _.f("kevlar_continue_playback_without_player_response")&&(Y=_.g(Y.endpoint,_.yx),(Y==null?0:Y.videoId)&&this.previousVideoId&&(Y==null?void 0:Y.videoId)===this.previousVideoId&&(Y==null?0:Y.continuePlayback))?!1:this.sa2.jBg===0};
oQ.prototype.handle=function(Y){_.Ap.getInstance().triggerAction("yt-stop-old-player",Y.data,!0)};var LW_=function(Y){Y=Y===void 0?{layer:0}:Y;zE.call(this);this.qI.push(new oQ(this));this.qI.push(new iA(Y));this.qI.push(new Wp(Y))};
_.r(LW_,zE);var w4d=function(){this.hasRun=this.hasRun=!1};
_.r(w4d,Uw);w4d.prototype.validate=function(Y){return!this.hasRun&&!(!Y.data.csn||!Y.data.rootVe)};
w4d.prototype.handle=function(Y){this.hasRun=!0;_.jiK(Y.data.csn,Y.data.rootVe,3)};var p4m=function(){Uw.apply(this,arguments)};
_.r(p4m,Uw);p4m.prototype.validate=function(Y){return!!Y.data.preconnect};
p4m.prototype.handle=function(Y){_.Fk("bc");Y=_.n(Y.data.preconnect);for(var S=Y.next();!S.done;S=Y.next())S=S.value,(new Image).src=S};var FWt=function(Y,S,P){P=P===void 0?{layer:0}:P;zE.call(this);this.qI.push(new Xo(this.wA,Y));this.qI.push(new iA(P));this.qI.push(new Wp(P))};
_.r(FWt,zE);var sT3=function(Y,S,P,u,W){P=P===void 0?{layer:0}:P;u=u===void 0?_.pd():u;zE.call(this);var m=!!S&&!!S.clientParams&&!!S.clientParams.miniplayer;m&&this.qI.push(new w4d);this.qI.push(new Z3(this.wA,S,u));this.qI.push(new p4m);var J,c;this.qI.push(new Xo(this.wA,Y,m,!((J=S.clientParams)==null||!J.fromHistory),(c=S.clientParams)==null?void 0:c.previousVideoId,u,S.tempData));var C;this.qI.push(new oQ(this,(C=S.clientParams)==null?void 0:C.previousVideoId));var x;(x=S.clientParams)!=null&&x.fromHistory||
(P.layer||(P=Object.assign({},P,{layer:m?3:0})),this.qI.push(new iA(P,W)),this.qI.push(new Wp(P)));_.f("web_response_commands_chunk_processor")&&this.qI.push(new mD)};
_.r(sT3,zE);var t5,X4t;t5={};
_.drU=(t5["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},t5["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},t5["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},t5["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},t5["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},t5["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},t5["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},t5);_.A5=new _.lX("yt-edu");_.lqu=function(){this.JSC$10757_eduDisplayedThisLoad_={}};
X4t=function(Y){var S=_.lqu.getInstance();var P=_.z_("kevlar_tooltip_impression_cap");S=P&&parseInt(_.A5.get(Y+"-impression")||0,10)>=P||_.A5.get(Y+"-dismissed")?!1:(P=_.drU[Y])&&!S.JSC$10757_eduDisplayedThisLoad_[P.setKey||Y]&&(P.titleText&&_.Td(P.titleText)||P.bodyText&&_.Td(P.bodyText))?!0:!1;if(!S)return null;S=_.drU[Y];if(!S)return null;P=S.bodyText?_.Td(S.bodyText):void 0;var u=S.titleText?_.Td(S.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:S.position,popup:{bubbleHintRenderer:{text:u?
_.kW(u):void 0,detailsText:P?_.kW(P):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.kW(_.Td("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:Y}}]}}}}}}}},{eduImpressionAction:{key:Y}}]};
_.Yn(_.lqu);var Nm8=!1;var Of8={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app"};for(var ZC6="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),iCd=[],UG=6;UG>=1;UG--)iCd.push({columnCount:UG,query:UG==1?0:UG*2*107-4+32,className:"grid-"+UG+"-columns",width:UG*2*107+"px"});_.tQm=function(Y){this.actionRouter_=Y=Y===void 0?_.Ap.getInstance():Y;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.owJ(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.owJ=function(Y){var S=Y.miniGuideVisible_?72:0,P=Y.documentWidth_-(Y.guidePersistentAndVisible_?240:S);return iCd.find(function(u){return P>u.query})};
_.Yn(_.tQm);var AB3=function(){var Y=this;this.JSC$10770_keyboardInUse=!1;document.addEventListener("keydown",function(){Y.onKeydown()});
document.addEventListener("mousedown",function(){Y.JSC$10770_keyboardInUse=!1})},Ur6;
AB3.prototype.isKeyBoardInUse=function(){return this.JSC$10770_keyboardInUse};
AB3.prototype.onKeydown=function(){this.JSC$10770_keyboardInUse=!0};var QTi,Mn;_.QV=new _.lX("yt-mentions");_.km=function(){};
QTi=function(Y,S){return Mn(S,"drag-to-reorder-edu-displayed")};
Mn=function(Y,S,P,u,W,m){P=P===void 0?"OPEN_POPUP_POSITION_TOP":P;if(S){if(_.QV.get(S))return;_.QV.set(S,!0,u)}if(W&&m!==void 0){S=Number(_.QV.get(W)||0);if(S>=m)return;_.QV.set(W,S+1)}return[{openPopupAction:{popupType:"HINT",position:P,popup:{bubbleHintRenderer:{detailsText:Y,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Yn(_.km);var k$3,MQ6,yBJ;k$3=function(Y,S,P,u){this.JSC$10780_taskManager_=Y;this.onFulfilled_=typeof S==="function"?S:null;this.onRejected_=typeof P==="function"?P:null;this.JSC$10780_context_=u};
MQ6=function(Y,S){Y.onFulfilled_&&_.bL(Y.JSC$10780_taskManager_,function(){Y.onFulfilled_.call(Y.JSC$10780_context_,S)})};
yBJ=function(Y,S){Y.onRejected_&&_.bL(Y.JSC$10780_taskManager_,function(){Y.onRejected_.call(Y.JSC$10780_context_,S)})};
_.yV=function(Y){this.JSC$10783_taskManager_=Y;this.callbacks_=[]};
_.yV.prototype.then=function(Y,S,P){this.callbacks_.push(new k$3(this.JSC$10783_taskManager_,Y,S,P));return this};
_.yV.prototype.onSuccess=function(Y){this.callbacks_.forEach(function(S){MQ6(S,Y)})};
_.yV.prototype.onFailure=function(Y){this.callbacks_.forEach(function(S){yBJ(S,Y)})};
_.yV.prototype.cancel=function(){this.callbacks_.length=0};
eEL(_.yV);_.SLX=null;_.En=new _.yH("ACTIVITY_TOKEN");var mV$=/^[a-zA-Z0-9_\-]{11}$/;var nOh=_.T2(function(){var Y,S;return(S=(Y=window).matchMedia)==null?void 0:S.call(Y,"(prefers-reduced-motion: reduce)").matches});var N$6=_.T2(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var Y=_.tA("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");Y||(Y=_.nN("VIDEO"),_.HQ("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
Y));return!!(Y&&Y.canPlayType&&Y.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var HC_;_.Nn=new _.yH("SHORTS_CONTROLLER_TOKEN");HC_=new _.yH("SHORTS_STATE_STORE_TOKEN");var Hp=function(Y,S){var P=_.Ch.apply(2,arguments);Y=Y===void 0?0:Y;_.$2.call(this,S,P);this.errorType=Y;Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(Hp,_.$2);var VQt,evu,OCU,YiJ,PC_,cZ$,i1,sau,mQh,zdS,CCU,JM_,j3d;VQt=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(Y){return Y+"="}).join("|"));
evu=RegExp(".*\\?.*ybp=1.*");OCU=["FEcommerce_cart","SPcommerce_checkout"];YiJ=RegExp(".*\\?.*playnext=1.*");_.VV=function(Y,S,P,u){this.watchEndpointMap=Y;this.reelWatchEndpointMap=S;this.innerTubeTransportService=P;this.fetchPbj=u;this.forceWebFEForAdsTesting=!1};
PC_=function(Y,S,P){var u=_.E().resolve(_.PQ(Sii));_.VV.instance=new _.VV(Y,S,P,u)};
_.uCh=function(Y,S){var P=_.z_("web_pbj_log_warning_rate",0);P=P>0&&Math.random()<P;var u;if((u=_.g(S.commandMetadata,_.Yo))==null||!u.rootVe)return P&&_.sf(Error("Pf")),!1;var W;u=(W=_.g(S.commandMetadata,_.Yo))==null?void 0:W.url;if(!u)return P&&_.sf(Error("Qf")),!1;if(YiJ.test(u))return!0;if(VQt.test(u))return P&&_.sf(Error("Rf`"+u)),!1;var m;W=(m=_.g(S,_.CV))==null?void 0:m.browseId;if(evu.test(u)&&(!W||!OCU.includes(W)))return P&&_.sf(Error("Sf`"+u)),!1;if(_.g(S,_.yx)){if(Y.forceWebFEForAdsTesting)return P&&
_.sf(Error("Tf")),!1;if(!(Y.watchEndpointMap.watchNext&&Y.watchEndpointMap.player||_.f("kevlar_fetch_initial_data_op_watch_client")))return P&&_.sf(Error("Lf")),!1;Y=_.z_("web_pbj_log_warning_rate",0);Y=Y>0&&Math.random()<Y;_.g(S,_.yx)?Wia(S)?S=!0:(Y&&_.sf(Error("Mf")),S=!1):(Y&&_.sf(Error("Lf")),S=!1);return S}if(_.g(S,_.bM))return zwh(S);if(_.g(S,_.vg))return!0;S=_.Ft(Y.innerTubeTransportService,S);P&&_.sf(Error("Uf"));return S};
cZ$=function(Y,S,P,u,W,m){S={url:S};if(P==null?0:P.itct)S.parentTrackingParams=P.itct;var J=_.HT(FiJ);return _.h5(Y.innerTubeTransportService,S,J).then(function(c){(c=c.endpoint)||(c=_.ja);(P==null?0:P.itct)&&c&&!c.trackingParams&&(c.trackingParams=P.itct);var C=RK(c);return i1(Y,c,P,u,C,W,m)})};
i1=function(Y,S,P,u,W,m,J,c){c=c===void 0?{}:c;if(Y.fetchPbj&&!_.uCh(Y,S)){c=Y.fetchPbj(S);var C=_.Cb(c.then(function(M){if(!M)throw Error("Vf");J(C)||m(S,M);return M}));
return C}var x,b,T={rootVe:(x=_.g(S.commandMetadata,_.Yo))==null?void 0:x.rootVe,url:(b=_.g(S.commandMetadata,_.Yo))==null?void 0:b.url,endpoint:S,page:W};if(_.g(S,_.yx)){var K,G={contentPlaybackContext:_.Tp(P,(K=_.g(S.commandMetadata,_.Yo))==null?void 0:K.url,u)},v=_.dL();_.f("web_streaming_watch")&&window.TextDecoderStream?(c=WLd(Y.innerTubeTransportService,S,G,function(M){!T.response&&M.content&&(T.response=M.content);!T.playerResponse&&M.player&&(T.playerResponse=M.player);m(S,T)}),x=Zlu(S),x.length&&
(T.preconnect=x,m(S,T)),zdS(c,v,T).catch(function(M){M instanceof Hp&&M.errorType===2&&mQh(Y,S,G,T,m,J,v)})):mQh(Y,S,G,T,m,J,v);
return v.promise}if(_.g(S,_.bM)){var a;if(((a=_.g(S,_.bM))==null?void 0:a.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var w=_.dL();_.nT6(_.E().resolve(_.Nn),S).then(function(M){j3d(Y,P,u,W,m,w,M)});
return w.promise}c=_.Cb();var F;x={contentPlaybackContext:_.Tp(P,(F=_.g(S.commandMetadata,_.Yo))==null?void 0:F.url,u)};(F=Y.reelWatchEndpointMap.player)&&(F=F().JSC$11770_getRequest(S,x))&&(c=_.h5(Y.innerTubeTransportService,F.innerTubeRequest,F.input,S.clickTrackingParams,F.config));F=_.Cb();(b=Y.reelWatchEndpointMap.reelItemWatch)&&(b=b().JSC$11770_getRequest(S))&&(F=_.h5(Y.innerTubeTransportService,b.innerTubeRequest,b.input,S.clickTrackingParams,b.config));b=_.Cb();(K=Y.reelWatchEndpointMap.reelWatchSequence)&&
_.g(S,_.bM).sequenceParams&&(x=K().JSC$11770_getRequest(S,x))&&(b=_.h5(Y.innerTubeTransportService,x.innerTubeRequest,x.input,S.clickTrackingParams,x.config));x=_.Cb(T);K=_.dL();JM_(S,x,c,F,b,m,J,K);return K.promise}var U;if(_.g(S,YLX)&&((U=_.g(S.commandMetadata,_.Yo))==null?0:U.url))return c=Clf(_.d7(Kx().location.href),_.d7(_.g(S.commandMetadata,_.Yo).url)).toString(),cZ$(Y,c,P,u,m,function(){return!1});
if(_.g(S,_.vg))return m(S,T),_.Cb(T);if(_.Ft(Y.innerTubeTransportService,S)){c=Object.assign({},{tempData:P,disableCache:P.disableCache},c);var V=_.sn(Y.innerTubeTransportService,S,c).then(function(M){T.response=M;J(V)||m(S,T);return T});
return V}return _.Cb(T)};
_.cMs=function(Y,S,P,u){if(_.g(S,_.yx)||_.g(S,_.bM)&&(_.f("mweb_enable_shorts_innertube_player_prefetch")||_.f("kevlar_enable_shorts_prefetch_in_sequence"))||_.g(S,sM_)&&_.f("web_enable_prefetching_videos_on_home")){var W,m={contentPlaybackContext:_.Tp(P,(W=_.g(S.commandMetadata,_.Yo))==null?void 0:W.url,u),prefetchPlaybackContext:JO9(P)},J,c,C;if(((J=_.g(S,_.yx))==null?void 0:(c=J.watchEndpointSupportedPrefetchConfig)==null?void 0:(C=c.prefetchHintConfig)==null?void 0:C.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(P=
Y.watchEndpointMap.watchNext)if(m=P().JSC$11770_getRequest(S,m))return Promise.resolve(_.h5(Y.innerTubeTransportService,m.innerTubeRequest,m.input,void 0,m.config).then(function(T){return T}))}else if(_.g(S,_.bM)&&_.f("web_prefetch_riw_for_next_video")){if(P=Y.reelWatchEndpointMap.reelItemWatch)if((P=P().JSC$11770_getRequest(S,m))&&_.h5(Y.innerTubeTransportService,P.innerTubeRequest,P.input,void 0,P.config).then(function(T){return T}),P=Y.reelWatchEndpointMap.player)if(m=P().JSC$11770_getRequest(S,
m))return Promise.resolve(_.h5(Y.innerTubeTransportService,m.innerTubeRequest,m.input,void 0,m.config).then(function(T){return T}))}else if(P=Y.watchEndpointMap.player)if(m=P().JSC$11770_getRequest(S,m))return Promise.resolve(_.h5(Y.innerTubeTransportService,m.innerTubeRequest,m.input,void 0,m.config).then(function(T){return T}))}else if(_.Ft(Y.innerTubeTransportService,S)){var x={tempData:P},b=Bbi(Y.innerTubeTransportService,S);
return b?new Promise(function(T,K){var G,v;return _.B(function(a){if(a.nextAddress==1)return _.q(a,b,2);if(a.nextAddress!=4)return G=a.yieldResult,G.JSC$11777_getStoreKey(S,x)?_.q(a,_.sn(Y.innerTubeTransportService,S,x),4):(K(new _.$2("Prefetching request builder with no store key.",S)),a.jumpTo(0));v=a.yieldResult;T(v);_.Yt(a)})}):Promise.reject(new _.$2("Prefetching unregistered request builder.",S))}return Promise.reject(new _.$2("No request builder available to prefetch endpoint.",S))};
sau=function(Y,S){var P,u,W;if(_.g(S,_.yx)){var m=Y.watchEndpointMap.watchNext;m&&(P=m());(Y=Y.watchEndpointMap.player)&&(u=Y())}else if(_.g(S,_.bM))(m=Y.reelWatchEndpointMap.reelItemWatch)&&(P=m()),(m=Y.reelWatchEndpointMap.player)&&(u=m()),(Y=Y.reelWatchEndpointMap.reelWatchSequence)&&(W=Y());else{a:{Y=J41(S,Y.innerTubeTransportService.endpointMap);if(Y!==void 0)if(typeof Y.then==="function")_.p_(new _.$2("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",S));else break a;
Y=void 0}Y&&(P=Y)}var J,c,C;return{content:(J=P)==null?void 0:J.JSC$11777_getStoreKey(S),player:(c=u)==null?void 0:c.JSC$11777_getStoreKey(S),reelSequence:(C=W)==null?void 0:C.JSC$11777_getStoreKey(S)}};
mQh=function(Y,S,P,u,W,m,J){var c=_.Cb(),C=Y.watchEndpointMap.player;C&&(C=C().JSC$11770_getRequest(S,P))&&(c=_.h5(Y.innerTubeTransportService,C.innerTubeRequest,C.input,S.clickTrackingParams,C.config));C=_.Cb();var x=Y.watchEndpointMap.watchNext;x&&(P=x().JSC$11770_getRequest(S,P))&&(C=_.h5(Y.innerTubeTransportService,P.innerTubeRequest,P.input,S.clickTrackingParams,P.config));Y=_.Cb(u);CCU(S,Y,c,C,W,m,J)};
zdS=function(Y,S,P){return _.B(function(u){if(u.nextAddress==1)return _.q(u,Y,2);S.resolve(P);_.Yt(u)})};
CCU=function(Y,S,P,u,W,m,J){var c,C,x,b,T;_.B(function(K){switch(K.nextAddress){case 1:return _.q(K,S,2);case 2:c=K.yieldResult;if(m(J.promise))return J.resolve(c),K.return();W(Y,c);C=Zlu(Y);if(!C.length){K.jumpTo(3);break}return _.q(K,S,4);case 4:c.preconnect=C,W(Y,c);case 3:return _.ND(K,5),_.q(K,P,7);case 7:x=K.yieldResult;_.tc(K,6);break;case 5:return b=_.O4(K),J.reject(b),K.return();case 6:if(x===void 0)return c.reload=!0,W(Y,c),J.resolve(c),K.return();if(m(J.promise))return J.resolve(c),K.return();
c.playerResponse=x;W(Y,c);_.ND(K,8);return _.q(K,u,10);case 10:T=K.yieldResult;_.tc(K,9);break;case 8:_.O4(K);case 9:if(T===void 0)return c.response={responseContext:{}},J.resolve(c),K.return();if(m(J.promise))return J.resolve(c),K.return();c.response=T;W(Y,c);J.resolve(c);_.Yt(K)}})};
JM_=function(Y,S,P,u,W,m,J,c){var C,x,b,T,K,G;_.B(function(v){switch(v.nextAddress){case 1:return _.q(v,S,2);case 2:C=v.yieldResult;if(J(c.promise))return c.resolve(C),v.return();m(Y,C);x=Zlu(Y);if(!x.length){v.jumpTo(3);break}return _.q(v,S,4);case 4:C.preconnect=x,m(Y,C);case 3:return _.ND(v,5),_.q(v,P,7);case 7:b=v.yieldResult;_.tc(v,6);break;case 5:return T=_.O4(v),c.reject(T),v.return();case 6:if(b===void 0)return C.reload=!0,m(Y,C),c.resolve(C),v.return();if(J(c.promise))return c.resolve(C),
v.return();C.playerResponse=b;m(Y,C);_.ND(v,8);return _.q(v,u,10);case 10:K=v.yieldResult;_.tc(v,9);break;case 8:_.O4(v);case 9:if(K===void 0)return C.response={responseContext:{}},c.resolve(C),v.return();if(J(c.promise))return c.resolve(C),v.return();C.response=K;m(Y,C);_.ND(v,11);return _.q(v,W,13);case 13:G=v.yieldResult;_.tc(v,12);break;case 11:_.O4(v);case 12:if(J(c.promise))return c.resolve(C),v.return();C.reelWatchSequenceResponse=G;m(Y,C);c.resolve(C);_.Yt(v)}})};
j3d=function(Y,S,P,u,W,m,J){var c,C,x,b,T,K;_.B(function(G){if((c=J)==null||!c.replacementEndpoint)return m.reject(),G.return();C=J.replacementEndpoint;(x=_.g(C,_.bM))?(J.sequenceContinuation&&(x.sequenceParams=J.sequenceContinuation),b=_.E().resolve(_.Nn),T=x.sequenceParams,qif(b,C)&&delete x.sequenceParams,K=i1(Y,C,S,P,u,W,function(){return!1}),K.then(function(v){return _.B(function(a){if(a.nextAddress==1)return Rd3(b,{reelWatchEndpoint:{sequenceParams:T}},v),_.q(a,0,2);
m.resolve(v);_.Yt(a)})})):m.reject();
_.Yt(G)})};_.xQ6=function(Y){if(Y.validatedFragments_.length==0)return null;if(!Y.mergedPrefetchedData_){for(var S=[],P=_.n(Y.validatedFragments_),u=P.next();!u.done;u=P.next()){u=_.n(Y.fragmentConfiguration_[u.value].graftedKeys);for(var W=u.next();!W.done;W=u.next())(W=Y.prefetchedData_[W.value].trackingParams)&&S.push(W)}Y.mergedPrefetchedData_={};Object.assign(Y.mergedPrefetchedData_,Y.prefetchedData_,{clientSideGrafts:S})}return Y.mergedPrefetchedData_};var biS;_.ea=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
biS=function(Y,S,P){if(_.Psh(S))return Y.prefetchCache_.get(_.uR1(S,P))};_.OG=new _.yH("NAVIGATION_TOKEN");var TbL=function(Y){var S=this;var P=P===void 0?Csh():P;var u=u===void 0?_.E().resolve(_.OG):u;this.onePickCommand=Y;this.JSC$10884_playlistNetworkManager=P;this.navigationManager=u;this.videoPickerBuilder=_.BCf("yt-addtoplaylist");_.xP_(nFh(jdf(mRd(this.videoPickerBuilder.setTitle(Y.modalTitle).setSize(1E3).addView(cAS()).addView(Bws())).addView("youtube"),Y.selectButtonLabel)),function(W){S.handleAction(W)})};
TbL.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
TbL.prototype.handleAction=function(Y){var S=this;if(Y&&this.onePickCommand.listId&&Y.action==="picked"&&Y.docs){var P=[];Y.docs.forEach(function(u){P.push({addedVideoId:u.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10884_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,P).then(function(){_.f("playlist_add_video_hard_reload_killswitch")?S.navigationManager.reload():KLt(S.navigationManager)})}};var ETJ=function(){if(this.constructor===ETJ)throw new TypeError("Wf");};
_.z=ETJ.prototype;_.z.dispose=function(){};
_.z.disconnect=function(){};
_.z.reconnect=function(){};
_.z.observe=function(Y,S,P){return{element:Y,option:P}};
_.z.unobserveByKey=function(){};var qL9=function(Y,S){S=S===void 0?0:S;ETJ.call(this);this.viewroot=Y;this.defaultPrescanHeight=S;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),Y?{root:Y,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.r(qL9,ETJ);_.z=qL9.prototype;_.z.dispose=function(){this.disconnect();this.handlers.clear()};
_.z.disconnect=function(Y){this.isConnected=!1;this.pauseObservingUntilReconnect=Y===void 0?!1:Y;this.observer.disconnect();Y=_.n(this.prescanObservers.values());for(var S=Y.next();!S.done;S=Y.next())S.value.disconnect()};
_.z.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var Y=_.n(this.handlers),S=Y.next();!S.done;S=Y.next()){var P=_.n(S.value);S=P.next().value;var u=P.next().value;P=!1;u=_.n(u.keys());for(var W=u.next();!W.done;W=u.next())if((W=W.value)&&W.state==="prescan"){P=!0;break}P&&fgt(this,S).observe(S);this.observer.observe(S)}}};
_.z.handleObserveEvent=function(Y){Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;var P=this.handlers.get(S.target);if(P){var u=S.isIntersecting;P=_.n(P);for(var W=P.next();!W.done;W=P.next()){var m=_.n(W.value);W=m.next().value;m=m.next().value;W&&(W.state==="visible"&&u||W.state==="hidden"&&!u)&&(m(S.target,W.state),W.calledOnce&&this.unobserveByKey({element:S.target,option:W}))}}}};
_.z.handlePrescanEvent=function(Y){Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;var P=this.handlers.get(S.target);if(P&&S.isIntersecting){P=_.n(P);for(var u=P.next();!u.done;u=P.next()){var W=_.n(u.value);u=W.next().value;W=W.next().value;u&&u.state==="prescan"&&(W(S.target,u.state),u.calledOnce&&this.unobserveByKey({element:S.target,option:u}))}}}};
_.z.observe=function(Y,S,P){var u=(u=this.handlers.get(Y))&&u.has(P)?{element:Y,option:P}:void 0;if(u)return u;u={element:Y,option:P};this.handlers.has(Y)||this.handlers.set(Y,new Map);var W=this.handlers.get(Y);W&&!W.has(P)&&W.set(P,S);this.pauseObservingUntilReconnect||(P.state==="prescan"&&fgt(this,Y).observe(Y),this.observer.observe(Y));return u};
_.z.unobserveByKey=function(Y){var S=this.handlers.get(Y.element);if(S&&S.has(Y.option)){S.delete(Y.option);if(Y&&Y.option.state==="prescan")for(var P=_.n(this.prescanObservers.values()),u=P.next();!u.done;u=P.next())u.value.unobserve(Y.element);S.size===0&&(this.handlers.delete(Y.element),this.observer.unobserve(Y.element))}};
var fgt=function(Y,S){var P=Y.defaultPrescanHeight;S.hasAttribute("prescan-height")&&(S=Number(S.getAttribute("prescan-height")),isNaN(S)||(P=S));if(Y.prescanObservers.has(P))return Y.prescanObservers.get(P);S="-0.1px -0.1px "+P+"px -0.1px";S=new IntersectionObserver(Y.handlePrescanEvent.bind(Y),Y.viewroot?{root:Y.viewroot,rootMargin:S}:{rootMargin:S});Y.prescanObservers.set(P,S);return S};var gTs=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],$Qf=function(){var Y,S=this;this.JSC$10901_actionRouter=Y=Y===void 0?_.Ap.getInstance():Y;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return S.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return S.visibilityObservedElementHandlerKeys}}},rMs,hds,Igs;
$Qf.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.f("kevlar_use_vimio_behavior")&&_.X3("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=RwU())};
$Qf.prototype.dispose=function(){this.visibilityMonitor&&_.bG(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
$Qf.prototype.handleVisibilityRefreshed=function(){for(var Y=_.n(this.targetMap.entries()),S=Y.next();!S.done;S=Y.next()){var P=_.n(S.value);S=P.next().value;P=P.next().value;_.GwS(this,S,P)}};
_.DQU=function(Y,S,P){hds(Y,P);var u=_.vTt(Y,S);u.element=P;Y.targetedElements.set(P,S);_.GwS(Y,S,u)};
hds=function(Y,S){var P=Y.targetedElements.get(S);if(P){var u=Y.targetMap.get(P);u&&(delete u.element,Y.targetMap.set(P,u));Y.targetedElements.delete(S);Y.visibilityObserver&&Y.visibilityObservedElementHandlerKeys&&(P=Y.visibilityObservedElementHandlerKeys.get(S))&&(Y.visibilityObserver.unobserveByKey(P),Y.visibilityObservedElementHandlerKeys.delete(S))}};
_.GwS=function(Y,S,P){var u=P.action,W=P.element;W&&u&&(gTs.includes(S)||_.X3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||Y.visibilityMonitor&&Y.visibilityMonitor.isNodeVisible(W)?Igs(Y,S,P):Y.visibilityObserver&&(Y.visibilityObservedElementHandlerKeys||(Y.visibilityObservedElementHandlerKeys=new WeakMap),u=Y.visibilityObserver.observe(W,function(){Igs(Y,S,P);Y.visibilityObservedElementHandlerKeys.delete(W)},{calledOnce:!0,
state:"visible"}),Y.visibilityObservedElementHandlerKeys.set(W,u)))};
Igs=function(Y,S,P){var u=P.action;(P=P.element)&&u&&(_.Ix(Y.JSC$10901_actionRouter,[u],P),Y.targetMap.delete(S),Y.targetedElements.delete(P),Y.triggeredTargets.add(S))};
_.vTt=function(Y,S){var P=Y.targetMap.get(S);P||(P={},Y.targetMap.set(S,P));return P};
_.YA=function(){rMs||(rMs=new $Qf);return rMs};var ag_=document.createElement("div");ag_.style.touchAction="pan-down";var xVu=ag_.style.touchAction==="pan-down";var LL_,wMh;LL_=function(){this.hammerFn=eMd();this.JSC$10909_screenManager=_.BF();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.TI(83615);_.Sa(this.JSC$10909_screenManager,this.ve);bku()};
_.So=function(){wMh||(wMh=new LL_);return wMh};
LL_.prototype.registerTouchEvents=function(Y,S,P){var u=_.Ch.apply(3,arguments),W=this.hammerFn(Y,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});P&&W.set({touchAction:P});this.nodeManagerMapping.set(Y,W);var m=
TC1(S);u=_.n(u);for(var J=u.next();!J.done;J=u.next()){J=J.value;if(J.includes("swipe")||J.includes("pinch")||J.includes("pan"))J.includes("swipe")?W.get("swipe").set({enable:!0,direction:m,velocity:.2}):J.includes("pinch")?W.get("pinch").set({enable:!0}):J.includes("pan")&&(W.get("pan").set({enable:!0,direction:m}),W.get("swipe").set({enable:!0,direction:m,velocity:.2}),W.get("swipe").recognizeWith("pan"));pMf(this,Y,W,J)}};
var pMf=function(Y,S,P,u){P.on(u,function(W){if(u.includes("pinch"))Y.lastPinchTime=Date.now();else if(u.includes("swipe")&&Date.now()-Y.lastPinchTime<400)return;W.pointerType!=="mouse"&&(W=u==="doubletap"?{coordinates:W.center}:u.includes("pan")?W:u.includes("swipe")?{target:W.target}:{},S.dispatchEvent(new CustomEvent(u,{bubbles:!0,composed:!0,detail:W})))})};
LL_.prototype.unregisterTouchEvents=function(Y){var S=_.Ch.apply(1,arguments),P=this.nodeManagerMapping.get(Y);if(P){S=_.n(S);for(var u=S.next();!u.done;u=S.next())P.off(u.value);this.nodeManagerMapping.delete(Y);Y.style.touchAction="unset"}};var FLS=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var KiX=null;var dQt;_.PU=function(Y,S,P){var u=P&&P>0?P:0;P=u?Date.now()+u*1E3:0;if((u=u?(0,_.s3u)():dQt())&&window.JSON){typeof S!=="string"&&(S=JSON.stringify(S,void 0));try{u.set(Y,S,P)}catch(W){u.remove(Y)}}};
_.u4=function(Y){var S=dQt(),P=(0,_.s3u)();if(!S&&!P||!window.JSON)return null;try{var u=S.get(Y)}catch(W){}if(typeof u!=="string")try{u=P.get(Y)}catch(W){}if(typeof u!=="string")return null;try{u=JSON.parse(u,void 0)}catch(W){}return u};
_.WU=function(Y){try{var S=dQt(),P=(0,_.s3u)();S&&S.remove(Y);P&&P.remove(Y)}catch(u){}};
_.s3u=_.T2(function(){try{var Y=new Ooh;var S=Y.isAvailable()?Y:null}catch(P){return null}return S?new _.z5(S):null});
dQt=_.T2(function(){var Y=new Y2$;return Y.isAvailable()?new _.z5(Y):null});var lg3=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},lX1=function(){lg3.instance||(lg3.instance=new lg3);
return lg3.instance},X08=function(Y){var S=Y.networkEvents;
Y.networkEvents=[];return _.f("enable_network_monitoring")?S:[]};var XMm;XMm={};_.Zif=eH("yt-serviceworker-metadata",{objectStores:(XMm.auth={addedAtVersion:1},XMm["resource-manifest-assets"]={addedAtVersion:2},XMm),shared:!0,upgrade:function(Y,S){S(1)&&ZR(Y,"resource-manifest-assets");S(2)&&ZR(Y,"auth")},
version:2});var GVU=self.location.origin+"/";hw9([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//]);hw9([/purge_shell=1/]);var iif=void 0;iif=iif===void 0?[]:iif;for(var oTJ=[],t3s=_.n(oFt),AMf=t3s.next();!AMf.done;AMf=t3s.next())oTJ.push({key:AMf.value});for(var UQL=_.n(iif),Q3s=UQL.next();!Q3s.done;Q3s=UQL.next())oTJ.push(Q3s.value);var kw6,g2=_.Pa==null?void 0:(kw6=_.Pa.performance)==null?void 0:kw6.memory,IXf=!1,ZkJ={},w0J={},$9={},r2=navigator;var zS=function(Y){this.JSC$10953_expiringStorage=new G_(Y)};
zS.prototype.set=function(Y,S,P){P=P!==void 0?Date.now()+P:void 0;this.JSC$10953_expiringStorage.set(Y,S,P)};
zS.prototype.get=function(Y){return this.JSC$10953_expiringStorage.get(Y)};
zS.prototype.remove=function(Y){this.JSC$10953_expiringStorage.remove(Y)};var MG$=_.Q0(["https://www.youtube.com/",""]),yOa=_.Q0(["https://studio.youtube.com/",""]),OkK="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Hkh=null,WyX;var M3f=_.Q0(["https://www.youtube.com/iframe_api"]),me=function(){this.playerResolver_=_.dL();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.bd;this.playbackDurationSeconds_=0},yMh=function(Y){var S=function(){return window.YT&&typeof window.YT.ready==="function"};
if(S())return _.Cb(window.YT);var P=_.dL(),u=_.nN("SCRIPT");u.onload=u.onreadystatechange=function(){u.readyState&&u.readyState!="loaded"&&u.readyState!="complete"||(u.onload=_.bd,u.onreadystatechange=_.bd,u.onerror=_.bd,S()?P.resolve(window.YT):P.reject(new _.$2("Failed to load the iframe player library","script.onload",u.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
u.onerror=function(W){u.onload=_.bd;u.onreadystatechange=_.bd;u.onerror=_.bd;P.reject(new _.$2("Failed to load the iframe player library","script.onerror",W&&W.target&&W.target.src))};
_.I9(u,_.kt(M3f));Y.insertBefore(u,Y.firstChild);return P.promise},Nb3=function(Y,S,P){var u,W;
_.B(function(m){switch(m.nextAddress){case 1:return Y.playbackEndedCallback_=P,_.ND(m,2),_.q(m,yMh(S.parentElement||null),4);case 4:u=m.yieldResult;_.tc(m,3);break;case 2:return W=_.O4(m),W instanceof _.$2&&W.args&&W.args[0]=="script.onerror"?_.sf(W):_.p_(W),m.return();case 3:u.ready(function(){return new u.Player(S,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:Y.onPlayerReady_.bind(Y),onStateChange:Y.onPlayerStateChange_.bind(Y),
onCueRangeExit:Y.onCueRangeExit_.bind(Y)}})}),_.Yt(m)}})};
_.z=me.prototype;_.z.getPlayerPromise=function(){return this.playerPromise_};
_.z.onPlayerReady_=function(Y){this.playerResolver_.resolve(Y.target)};
_.z.onPlayerStateChange_=function(Y){if(Y.data==YT.PlayerState.PLAYING){Y=Y.target;var S=Y.getCurrentTime();Y.addCueRange("playback",S,S+this.playbackDurationSeconds_)}};
_.z.onCueRangeExit_=function(Y){Y.data=="playback"&&(Y.target.stopVideo(),this.playbackEndedCallback_())};
_.z.stopVideo=function(){this.playerPromise_.then(function(Y){Y.stopVideo()})};
var Hi6=function(Y){Y.playerVars_&&Y.playerPromise_.then(function(S){typeof S.cueVideoByPlayerVars!="function"?_.sf(new _.$2("vmh: player API not ready","cueVideoByPlayerVars",typeof S.cueVideoByPlayerVars)):S.cueVideoByPlayerVars(Y.playerVars_)})};
me.prototype.playVideo=function(){var Y=this;this.playerVars_&&this.playerPromise_.then(function(S){typeof S.loadVideoByPlayerVars!="function"?(S=new _.$2("vmh: player API not ready","loadVideoByPlayerVars",typeof S.loadVideoByPlayerVars),_.p_(S)):S.loadVideoByPlayerVars(Y.playerVars_)})};
var V3J=function(Y,S,P,u,W){S&&(P===void 0&&(P=0),u===void 0&&(u=0),Y.playbackDurationSeconds_=u/1E3,Y.playerVars_={adformat:"17_8",videoId:S,suggestedQuality:"hd720",startSeconds:P/1E3,player_params:W})};
me.prototype.mute=function(){this.playerPromise_.then(function(Y){Y.mute()})};
me.prototype.unMute=function(){this.playerPromise_.then(function(Y){Y.unMute()})};var c8$=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var nf;nf=function(){this.tokenJars={};if(this.cookiesEnabled=_.Eh()){var Y=_.T_.get("CONSISTENCY",void 0);Y&&edh(this,{encryptedTokenJarContents:Y})}};
_.qvh=function(){nf.instance||(nf.instance=new nf);return nf.instance};
nf.prototype.handleResponse=function(Y,S){if(!S)throw Error("ag");var P,u;S=((P=S.innerTubeRequest.context)==null?void 0:(u=P.request)==null?void 0:u.consistencyTokenJars)||[];var W;(Y=(W=Y.responseContext)==null?void 0:W.consistencyTokenJar)&&this.replace(S,Y)};
nf.prototype.replace=function(Y,S){Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())delete this.tokenJars[P.value.encryptedTokenJarContents];edh(this,S)};
var edh=function(Y,S){if(S.encryptedTokenJarContents&&(Y.tokenJars[S.encryptedTokenJarContents]=S,typeof S.expirationSeconds==="string")){var P=Number(S.expirationSeconds);setTimeout(function(){delete Y.tokenJars[S.encryptedTokenJarContents]},P*1E3);
Y.cookiesEnabled&&_.Kz("CONSISTENCY",S.encryptedTokenJarContents,P,void 0,!0)}};var Oif,jo;Oif=window.location.hostname.split(".").slice(-2).join(".");_.sR=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var Y=_.X3("LOCATION_PLAYABILITY_TOKEN");_.X3("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Ykh(this))&&(Y=this.localStorage.get("yt-location-playability-token"));Y&&(this.locationPlayabilityToken=Y,this.mostRecentPosition=void 0)};
_.sR.getInstance=function(){jo=_.tA("yt.clientLocationService.instance");jo||(jo=new _.sR,_.HQ("yt.clientLocationService.instance",jo));return jo};
_.sR.prototype.setLocationOnInnerTubeContext=function(Y){Y.client||(Y.client={});if(this.mostRecentPosition)Y.client.locationInfo||(Y.client.locationInfo={}),Y.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),Y.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),Y.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),Y.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)Y.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.sR.prototype.handleResponse=function(Y){var S;Y=(S=Y.responseContext)==null?void 0:S.locationPlayabilityToken;Y!==void 0&&(this.locationPlayabilityToken=Y,this.mostRecentPosition=void 0,_.X3("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Ykh(this))&&this.localStorage.set("yt-location-playability-token",Y,15552E3):_.Kz("YT_CL",JSON.stringify({loctok:Y}),15552E3,Oif,!0))};
var Ykh=function(Y){return Y.localStorage===void 0?new _.lX("yt-client-location"):Y.localStorage};
_.sR.prototype.clearLocationPlayabilityToken=function(Y){Y==="TVHTML5"?(this.localStorage=Ykh(this))&&this.localStorage.remove("yt-location-playability-token"):_.k4Y("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.sR.prototype.getCurrentPositionFromGeolocation=function(){var Y=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("bg"));var S=!1,P=1E4;_.X3("INNERTUBE_CLIENT_NAME")==="MWEB"&&(S=!0,P=15E3);return new Promise(function(u,W){navigator.geolocation.getCurrentPosition(function(m){Y.mostRecentPosition=m;u(m)},function(m){W(m)},{enableHighAccuracy:S,
maximumAge:0,timeout:P})})};
_.sR.prototype.createUnpluggedLocationInfo=function(Y){var S={};Y=Y.coords;if(Y==null?0:Y.latitude)S.latitudeE7=Math.floor(Y.latitude*1E7);if(Y==null?0:Y.longitude)S.longitudeE7=Math.floor(Y.longitude*1E7);if(Y==null?0:Y.accuracy)S.locationRadiusMeters=Math.round(Y.accuracy);return S};
_.sR.prototype.createLocationInfo=function(Y){var S={};Y=Y.coords;if(Y==null?0:Y.latitude)S.latitudeE7=Math.floor(Y.latitude*1E7);if(Y==null?0:Y.longitude)S.longitudeE7=Math.floor(Y.longitude*1E7);return S};var Sku=function(Y,S){var P=l6();Y||(Y="unknown");S||(S="unknown");Y="MAIN_APP_WEB_PAGE_TYPE_"+Y.toUpperCase();Y in s7d||(Y="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");S="MAIN_APP_WEB_REQUEST_TYPE_"+S.toUpperCase();S in ddh||(S="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Ca(P,{mainAppWeb:{pageType:Y,requestType:S,isShellLoad:_.Z4("IS_SHELL_LOAD",!1)}})},PFi={start:function(){_.Ca(EMh(),{mainAppWeb:_.d2()})},
success:function(){_.q2(EMh(),"SUCCESS")},
failure:function(){_.q2(EMh(),"FAILURE")},
cancelled:function(){_.q2(EMh(),"CANCELLED")}};var uzf,WCs,Ky1;uzf=_.Q0(["/sw.js"]);WCs=_.Q0(["/sw.js?0"]);_.zWs=_.kt(uzf);Ky1=_.kt(WCs);var mSL=function(){var Y=Error.apply(this,arguments);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack)};
_.r(mSL,Error);_.ZV.prototype.load=function(Y){this.megabloxUrl_=_.X3("YPC_MB_URL");_.Xv(this.megabloxUrl_,(0,_.xS)(function(){Y&&Y()},this))};
_.wiY=function(Y,S,P,u,W,m,J,c,C,x,b){_.f7a(C);Y.load((0,_.xS)(function(){try{var T=m?m:_.X3("HL"),K=_.X3("SESSION_INDEX");_.WIh("client",function(){PV6("59",{helpCenterPath:"/youtube",locale:T,window:window}).JSC$7847_loadChatSupport({authuser:String(K)})})}catch(G){throw lM(10,b,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),W&&W(G),_.p_(G),G;
}nls(this,S,P,u,W,m,J,c,C,x,b)},Y))};
_.ZV.prototype.openFixFlowDialog=function(Y,S,P,u){this.load((0,_.xS)(function(){try{jom(this,_.tA("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(Y).withIntegratorCallback(S).load(P,u)}catch(W){throw _.p_(W),W;}},this))};
var jom=function(Y,S,P,u){var W=S.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.f("enable_window_constrained_buy_flow_dialog")&&(W=W.usingPopupStyle(_.tA("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));u&&(W=W.usingCloseCallback(u));S.bootstrap.fromPaymentsUrl(Y.megabloxUrl_);Y=S.bootstrap.asMashupMode(W);P=P?P:_.X3("HL");Y.usingGaiaIndex(_.X3("SESSION_INDEX")).usingLocale(P).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.f("enable_google_payments_buyflow_material2_style_web")?
Y.usingStyle(":m2;pc=#444;ac=#065fd4"):Y.usingStyle(":md;pc=#444;ac=#065fd4");return Y},nls=function(Y,S,P,u,W,m,J,c,C,x,b){try{var T=_.tA("payments.business.integration");
if(!T)throw new mSL("payments.business.integration is undefined");var K=T.standaloneContextAuthId.forUserId(),G=jom(Y,T,m,c);J&&G.usingServerAnalyticsEventHandler(J);var v=G.inStandaloneContext(K).buyFlow(function(a){if(a&&(!a.integratorData||a.integratorData===""||a.error))if(a.error!=null)if(String(a.error)==="-1")_.gRJ(C);else{var w=String(a.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";lM(10,b,w,a.debugCode);
_.XQ(w,C,a.debugCode);w=new _.$2("PAYMENT_ERROR_MESSAGE::"+a.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+a.internalErrorDetails);_.p_(w)}else lM(10,b,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.XQ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",C,"EMPTY_INTEGRATOR_DATA"),_.p_(Error("dg"));P&&P(a)}).withEncryptedParameters(S);
x&&v.withClientParameters(rbU(_.d61(x)));v.load(function(){lM(24,b);_.dP("ttc",void 0,"commerce_transaction");Mv$("commerce_transaction");u&&u()},function(a){if(a==null?0:a.debugCode)var w=a==null?void 0:a.debugCode;
else if(!a||(a==null?0:a.debugCode))w="EMPTY_LOAD_FAILURE_ERROR",_.p_(Error(w));else{w="EMPTY_LOAD_FAILURE_DEBUG_CODE";var F=new _.$2("LOAD_FAILURE:"+a.message," DEBUG_CODE:"+w);_.p_(F)}lM(10,b,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",w);_.XQ("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",C,w);_.p_(a);W&&W(a)})}catch(a){throw a instanceof mSL&&(lM(10,b,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),W&&W(a)),_.p_(a),a;
}};var J26;J26=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.IJK=function(Y,S){S=S===void 0?!1:S;Y=J26.test(Y)?_.YU(Y):null;!S&&window.payments||!Y?(Y=_.dL(),S=Y.promise,Y.resolve()):S=_.DH(Y,{attributes:{"data-payments-main":"",id:"payment-lib"}});return S};var B5h;B5h=_.Q0(["//www.googletagmanager.com/gtm.js?id=",""]);_.JD=function(Y,S){_.Mw(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:S}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.X3("GL")}),S=_.nN("SCRIPT"),S.async=!0,_.I9(S,_.kt(B5h,Y)),S.id="gtm",Y=document.getElementsByTagName("script"),Y.length==0?document.head.appendChild(S):(Y=Y[0],Y.parentNode.insertBefore(S,Y)))};
_.BU=function(Y){if(Y=JSON.parse(Y))window.dataLayer=window.dataLayer||[],window.dataLayer.push(Y)};var c2S,CFt;c2S=_.Q0(["https://clients2.google.com/gr/gr_sync.js"]);_.veU=function(){};
_.veU.prototype.init=function(){if(CFt()){var Y=_.dL();Y.resolve();return Y.promise}return _.DH(_.kt(c2S)).then(function(){if(!CFt())throw Error("eg");},function(){throw Error("fg");
})};
_.DeJ=function(){if(!CFt())return"";var Y=window.google.gr;Y.init({async:{schedule:"sync"},merchantId:"youtube"});Y.start();Y=Y.finish();return Y==null?"":Y};
CFt=function(){return window.google!=null&&window.google.gr!=null};var wb$,srY=new Set,pbh;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.Z=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.r(_.Z,PolymerFakeBaseClassWithoutHtml);_.JI=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.r(_.JI,PolymerFakeBaseClassWithoutHtml);var $ca=window.ShadyDOM;var u4J,SOY,z49,mHf,jrY,JdJ,cU,Ny;u4J=_.f("enable_shadydom_free_scoped_query_methods");SOY=_.f("enable_shadydom_free_scoped_node_methods");z49=_.f("enable_shadydom_free_scoped_readonly_properties_batch_one");mHf=_.f("enable_shadydom_free_parent_node");jrY=_.f("enable_shadydom_free_children");JdJ=_.f("enable_shadydom_free_last_child");cU=window.ShadyDOM;_.OR=cU&&cU.noPatch&&cU.wrap?cU.wrap:cU?function(Y){return cU.patch(Y)}:function(Y){return Y};
Ny=function(Y){if(Y instanceof ShadowRoot)this.host=(0,_.OR)(Y.host),this.root=Y;else if(Y.$$){this.host=(0,_.OR)(Y);var S;this.root=(S=Y.root)!=null?S:this.host}else if(Y.polymerController){this.host=(0,_.OR)(Y);var P;this.root=(P=this.host.shadowRoot)!=null?P:this.host}else this.root=this.host=(0,_.OR)(Y)};
Pnf();WEU();BB8();cda();nxU();var qkd={querySelector:function(Y,S){S=Gn9(S,AK(Y));Y=_.UR(Y);return Qm(Y).prototype.querySelector.call(Y,S)},
querySelectorAll:function(Y,S){S=Gn9(S,AK(Y));Y=_.UR(Y);return Qm(Y).prototype.querySelectorAll.call(Y,S)}},RWd={appendChild:function(Y,S){var P=AK(Y),u=_.tK(S);
return _.OGa(_.UR(Y),P?_.My(S,P,u):S)},
cloneNode:function(Y,S){var P=_.tK(Y);Y=_.UR(Y);S=Qm(Y).prototype.cloneNode.call(Y,S);return P?ym(S,P):S},
contains:function(Y,S){var P=AK(Y),u=_.tK(S);return P!==u?!1:YOa(Y,S)},
insertBefore:function(Y,S,P){var u=AK(Y),W=_.tK(S);Y=_.UR(Y);S=u?_.My(S,u,W):S;return Qm(Y).prototype.insertBefore.call(Y,S,P)},
removeChild:function(Y,S){var P=AK(Y);Y=_.UR(Y);S=P?ym(S,P):S;return Qm(Y).prototype.removeChild.call(Y,S)},
replaceChild:function(Y,S,P){var u=AK(Y),W=_.tK(S);S=u?_.My(S,u,W):W?ym(S,W):S;P=u?ym(P,u):P;Y=_.UR(Y);return Qm(Y).prototype.replaceChild.call(Y,S,P)},
getRootNode:function(Y,S){S=S===void 0?{composed:!0}:S;var P;if(((P=S)!=null?P:{}).composed)Y=dc8(Y);else{S=Y;for(Y=vR9(Y);Y;)S=Y,Y=I7Y(Y);Y=S}return Y}},qOU=z49?{firstChild:M4$,
nextSibling:Ucu,previousSibling:kn1,firstElementChild:y89,lastElementChild:HG8,nextElementSibling:A8K,previousElementSibling:Q51,childNodes:V4U}:{};mHf&&(qOU.parentNode=t4h);jrY&&(qOU.children=eKh);JdJ&&(qOU.lastChild=NaJ);u4J&&CnU(qkd);SOY&&CnU(RWd);R4U();var xHh=function(Y){this.node=Y instanceof ShadowRoot?Y.host:Y};
b$h();TBa();var gx8=new WeakMap;var rd1=Symbol("wd");var IF9=new Set(["tap","track","down","up"]),aFJ=_.f("pbcm_fi_query_decorators");var Cf=function(){return _.JI.apply(this,arguments)||this};
_.r(Cf,_.JI);_.z=Cf.prototype;_.z.getState=function(){return this.store.getState()};
_.z.dispatch=function(Y){this.store.dispatch(Y)};
_.z.beforeRegister=function(){if(this&&typeof this==="object"){var Y;var S=!!this.useSignals||!((Y=this.polymerController)==null||!Y.useSignals)}else S=!1;if(!S&&this.properties)for(S=_.n(Object.keys(this.properties)),Y=S.next();!Y.done;Y=S.next()){var P=Y.value;Y=this.properties[P];if(Y.selector){if(Y.computed)throw Error("lg");P=["reduxPropertiesRecomputeTrigger",'"'+P+'"'].concat(_.cz(Y.selectorArgs||[])).join(",");Y.computed="recomputeReduxSelector("+P+")"}}};
_.z.attached=function(){var Y=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){Y.reduxPropertiesRecomputeTrigger++}));
_.f("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.z.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.z.recomputeReduxSelector=function(Y,S){var P=_.Ch.apply(2,arguments),u=this.properties[S].selector;if(!u)throw Error("jg`"+S);return u.apply(null,[this.store.getState()].concat(_.cz(P)))};
_.z.select=function(Y){var S=_.Ch.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return Y.apply(null,[this.store.getState()].concat(_.cz(S)))};
_.y6.Object.defineProperties(Cf.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
Cf.prototype.recomputeReduxSelector=Cf.prototype.recomputeReduxSelector;_.Q([_.X(),_.k("design:type",Number)],Cf.prototype,"reduxPropertiesRecomputeTrigger",void 0);Cf=_.Q([_.BZ()],Cf);var qC=[],XbE={},$B=function(){return He.apply(this,arguments)||this};
_.r($B,He);$B.prototype._addPropertyEffect=function(Y,S,P){if(S==="__observeEffects"&&P){var u,W=(u=P.info.method)!=null?u:P.info.methodName;if(W){var m=this[W];this[W]=function(){qC.push(W);try{m==null||m.apply(this,arguments)}finally{qC.pop()}}}}_.bv._addPropertyEffect.apply(this,[Y,
S,P])};
$B.prototype._setPendingProperty=function(Y,S,P){if(qC.length){var u=qC[qC.length-1],W;(W=XbE[this.is])!=null&&W.has(u)||(Z$u(this.is,u),_.L_("polymerPropertyChangedInObserver",{componentName:this.is,observerName:u}))}return _.bv._setPendingProperty.apply(this,[Y,S,P])};
$B=_.Q([m2U()],$B);var i$$=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),tME,qh={};_.f("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=qh);var bp=function(){return _.JI.apply(this,arguments)||this};
_.r(bp,_.JI);bp.prototype._setUnmanagedPropertyToNode=function(Y,S,P){Y.loggingStatus&&(Y.loggingStatus.isDeclarativeExternal=!0);if(P!==Y[S]||typeof P==="object")Y[S]=P;Y.is&&Y.polymerController&&Y.polymerController!==Y&&R_(Y.is,S,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");Y.loggingStatus&&(Y.loggingStatus.isDeclarativeExternal=!1)};
bp=_.Q([_.BZ()],bp);oxE()&&(du.prototype._setUnmanagedPropertyToNode=(new bp)._setUnmanagedPropertyToNode);_.P79={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(Y){},set polymerController(Y){}}]};var g0=function(){var Y=He.apply(this,arguments)||this;Y.json=function(){};
return Y};
_.r(g0,He);g0.prototype.equals=function(Y,S){return Y===S};
g0.prototype.isEmpty=function(Y){return!Y||_.eK(Y)&&Y.length===0};
g0=_.Q([m2U()],g0);var xSS=function(Y){Y=Pda(Y);pD.call(this,Y)};
_.r(xSS,pD);xSS.prototype.addProvider=function(Y){Y=Y.key?Y:Pda([Y])[0];var S=this.keyIdToIndex.get(Y.key.id);if(S){if(MM1(Y,this.providers[S]))throw Error("mg`"+Y.key.displayName);}else pD.prototype.addProvider.call(this,Y)};
var bmi=new xSS([]);var T5J=!1;var O$U={};T5J||(e49(),T5J=!0);
O$U.InjectBehavior={initializeInjection:function(){var Y=this.provide;try{if((Y=Y!=null?Y:[])&&Y.length>0)for(var S=Pda(Y),P=_.n(S),u=P.next();!u.done;u=P.next())bmi.addProvider(u.value);var W=new Set;ydJ(this.behaviors||[],W);S={};for(var m=_.n(W),J=m.next();!J.done;J=m.next()){var c=J.value;c.inject&&Object.assign(S,c.inject)}this.inject&&Object.assign(S,this.inject);for(var C=_.n(Object.keys(S)),x=C.next();!x.done;x=C.next()){var b=x.value,T=S[b];try{this[b]=bmi.resolve(T)}catch(K){throw K;}}}catch(K){throw Error(K.message);
}}};var SJa;var uaK=/\bclass\b/.test(function(){}.toString()),mrX=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var KCs=function(Y){this.wasDefined=!0;Array.isArray(Y)||Y instanceof Array?(this.JSC$11112_getImpl=Y[0],this.JSC$11112_setImpl=Y[1]):this.JSC$11112_getImpl=Y};
_.z=KCs.prototype;_.z.getWithPath=function(Y){return hI(this.JSC$11112_getImpl(),Y)};
_.z.setWithPath=function(Y,S){var P=this;if(Y.length)throw Error("ng");if(!this.JSC$11112_setImpl)throw Error("og");gK(function(){P.JSC$11112_setImpl(S)})};
_.z.notifyPath=function(){throw Error("pg");};
_.z.notifySplices=function(){throw Error("qg");};
_.z.getChangeRecordSignal=function(Y,S){var P=this;if(Y.length)throw Error("rg");return function(){var u=P.getWithPath(Y);return{path:S!=null?S:"",base:u,value:u}}};
_.z.getSplicesSignal=function(){throw Error("sg");};
_.z.getPathMutationSignal=function(){throw Error("tg");};
_.z.pop=function(){throw Error("ug");};
_.z.push=function(){throw Error("vg");};
_.z.splice=function(){throw Error("wg");};
_.z.unshift=function(){throw Error("xg");};var Rm=function(Y){var S=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(Y)||Y instanceof Array?(this.JSC$11117_getImpl=Y[0],this.JSC$11117_setImpl=Y[1]):this.JSC$11117_getImpl=Y;this.wasDefined=!1;CJ(function(){S.wasDefined=S.JSC$11117_getImpl()!==void 0})};
Rm.prototype.getWithPath=function(Y){return hI(this.JSC$11117_getImpl(),Y)};
Rm.prototype.setWithPath=function(Y,S){var P=this;if(Y[Y.length-1]!=="*"&&Y[Y.length-1]!=="splices"){if(Y.length===0){if(!this.JSC$11117_setImpl)throw Error("yg");this.wasDefined||(this.wasDefined=S!==void 0);gK(function(){P.JSC$11117_setImpl(S)})}else{for(var u=CJ(function(){return P.getWithPath([])}),W=0;W<Y.length-1;W++){if(!u)return;
u=u[Y[W]]}W=Y[Y.length-1];u&&(u[W]=S);this.wasDefined||(this.wasDefined=Y.length>1||S!==void 0)}Elm(this,Y,{pathComponents:Y,value:S})}};
Rm.prototype.notifyPath=function(Y,S){Y.length===0?S&&this.setWithPath(Y,S.value):Elm(this,Y,{pathComponents:Y,value:S==null?void 0:S.value,fallbackWhenUndefined:S==null?void 0:S.value})};
var Elm=function(Y,S,P,u){if(Y.setMutationSignal){var W=++Y.mutationIndex,m=[Y.observedPath],J=Y.observedPath,c;S.length===0&&(c=J);for(var C=0;C<S.length;C++){var x=J.subPaths[S[C]];if(!x)break;m.push(x);J=x;C===S.length-1&&(c=x)}for(S=!1;m.length;)J=m.shift(),J.data={index:W,mutation:P,spliceMutationIndex:u},S||(S=J===c),S&&m.push.apply(m,_.cz(Object.values(J.subPaths)));gK(function(){Y.setMutationSignal(W)})}};
Rm.prototype.notifySplices=function(Y,S){var P=this,u=CJ(function(){return P.getWithPath(Y)}),W=[].concat(_.cz(Y),["splices"]);
Elm(this,W,{pathComponents:W,value:{indexSplices:S}});if(u==null?0:u.length)S=this.mutationIndex,W=[].concat(_.cz(Y),["length"]),Elm(this,W,{pathComponents:W,value:u.length},S)};
var f2J=function(Y,S,P,u,W,m){Y.notifySplices(P,[{index:u,addedCount:W,removed:m,object:S,type:"splice"}])},gli=function(Y,S){Y=Y.observedPath;
for(var P=0;P<S.length;P++){var u=S[P],W=Y.subPaths[u];W||(W={pathComponents:S.slice(0,P+1),subPaths:{}},Y.subPaths[u]=W);Y=W}},r2f=function(Y,S,P){gli(Y,S);
if(!Y.getMutationSignal){var u=_.n(_.qb(Y.mutationIndex,void 0,"HavCgf"));Y.getMutationSignal=u.next().value;Y.setMutationSignal=u.next().value}var W=Y.getMutationSignal;return _.fJ(function(){W();return P($Ss(Y,S))},void 0,"BYaPo")};
Rm.prototype.getChangeRecordSignal=function(Y,S){var P=this,u=this.mutationIndex,W;return r2f(this,Y,function(m){if(m&&m.index>u){var J=m.mutation;u=m.index;W=void 0}m=CJ(function(){return P.getWithPath(Y)});
if(J){var c=J.pathComponents[J.pathComponents.length-1],C=[].concat(_.cz(J.pathComponents));if(c==="splices"||c==="length")return{base:m,path:(S?[S].concat(_.cz(C)):C).join("."),value:J.value};var x=Y.length>C.length?Y:C,b;return{base:m!=null?m:J.fallbackWhenUndefined,path:(S?[S].concat(_.cz(x)):x).join("."),value:(b=CJ(function(){return P.getWithPath(x)}))!=null?b:J.fallbackWhenUndefined}}W||(W={base:m,
path:(S?[S].concat(_.cz(Y)):Y).join("."),value:m});return W})};
Rm.prototype.getSplicesSignal=function(Y){var S=this.mutationIndex,P;return r2f(this,Y,function(u){if(u&&u.index>S&&u.spliceMutationIndex!==S){var W=u.mutation;S=u.index;P=void 0}return W&&W.pathComponents[W.pathComponents.length-1]==="splices"?P=u=W.value:P})};
Rm.prototype.getPathMutationSignal=function(Y){var S=this;gli(this,Y);if(!this.getMutationSignal){var P=_.n(_.qb(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=P.next().value;this.setMutationSignal=P.next().value}var u=this.getMutationSignal,W=this.mutationIndex,m;return _.fJ(function(){u();var J=$Ss(S,Y);if(J&&J.index>W&&J.mutation&&JB8(J.mutation.pathComponents,Y)){var c=J.mutation;W=J.index}if(!m||W!==m.index){var C,x;J=(x=CJ(function(){return S.getWithPath(Y)}))!=null?x:(C=c)==null?
void 0:C.fallbackWhenUndefined;
m={index:W,value:J}}return m},void 0,"Aumsyf")};
var $Ss=function(Y,S){Y=Y.observedPath;S=_.n(S);for(var P=S.next();!P.done;P=S.next())Y=Y.subPaths[P.value];return Y.data};
Rm.prototype.pop=function(Y){var S=this,P=CJ(function(){return S.getWithPath(Y)});
if(!(P instanceof Array))throw Error("zg");var u=P.length>0,W=P.pop();u&&f2J(this,P,Y,P.length,0,[W]);return W};
Rm.prototype.push=function(Y){var S=_.Ch.apply(1,arguments),P=this,u=CJ(function(){return P.getWithPath(Y)});
if(!(u instanceof Array))throw Error("Ag");var W=u.length,m=u.push.apply(u,_.cz(S));S.length&&f2J(this,u,Y,W,S.length,[]);return m};
Rm.prototype.splice=function(Y,S,P){var u=_.Ch.apply(3,arguments),W=this,m=CJ(function(){return W.getWithPath(Y)});
if(!(m instanceof Array))throw Error("Bg");S<0?S=m.length-Math.floor(-S):S&&(S=Math.floor(S));var J=m.splice.apply(m,[S,P].concat(_.cz(u)));(u.length||J.length)&&f2J(this,m,Y,S,u.length,J);return J};
Rm.prototype.unshift=function(Y){var S=_.Ch.apply(1,arguments),P=this,u=CJ(function(){return P.getWithPath(Y)});
if(!(u instanceof Array))throw Error("Cg");var W=u.unshift.apply(u,_.cz(S));S.length&&f2J(this,u,Y,0,S.length,[]);return W};var Gxu=!0,hW3=!1,kw9=!1,vld=!1,xA=!1,DSL=0;vld=!1;DSL=0;Gxu=!0;xA=hW3=kw9=!1;var b4=function(Y,S,P){this.model=Y;this.unknownSignalResolver=S;this.options=P;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];S=_.n(KWK());Y=S.next().value;S=S.next().value;this.owner=Y;this.disposeImpl=S};
b4.prototype.dispose=function(){if(!this.isDisposed){for(var Y=_.n(this.childSignalProxies),S=Y.next();!S.done;S=Y.next())S.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var I2t=function(Y,S){Y=y2(Y.owner);try{S()}finally{y2(Y)}};
b4.prototype.effect=function(Y){I2t(this,function(){_.II(Y)})};
var a2_=function(Y,S){Y.options!=null||(Y.options={});var P;(P=Y.options).immutableProps!=null||(P.immutableProps=new Set);Y.options.immutableProps.add(S)},QTE=function(Y,S){S=""+S;
LC6(Y,S);var P;if((P=Y.model.__signalCache)==null?0:P.has(S))P=Y.model.__signalCache.get(S),Array.isArray(P)&&a2_(Y,S);var u,W,m;return(m=(u=Y.options)==null?void 0:(W=u.immutableProps)==null?void 0:W.has(S))!=null?m:!1},wSS=function(Y,S){var P;
Y.unknownSignalResolver&&(P=Y.unknownSignalResolver(S));var u,W;((u=Y.options)==null?0:(W=u.immutableProps)==null?0:W.has(S))?P!=null||(P=new KCs(_.qb(Y.model[S],void 0,"q2oXO"))):P!=null||(P=new Rm(_.qb(Y.model[S],void 0,"fw0V7b")));var m=Y.model.hostElement;Object.defineProperty(Y.model,S,{get:function(){UHh(m,S);return P.getWithPath([])},
set:function(J){xB(m,S);Y.setWithPath([S],J)},
configurable:!0});return P},LC6=function(Y,S){var P,u,W;
((P=Y.model.__signalCache)==null||!P.has(S))&&((u=Y.options)==null?0:(W=u.externalSignalProps)==null?0:W.has(S))&&Y.model[S]},DQ=function(Y,S){S=""+S;
var P=Y.signalCache[S];if(P!==void 0)return P;P=!1;LC6(Y,S);var u;if((u=Y.model.__signalCache)==null?0:u.has(S))if(P=Y.model.__signalCache.get(S),Array.isArray(P))P=!0,a2_(Y,S);else return Y.signalCache[S]=Y.model.__signalCache.get(S).signal,Y.signalCache[S];var W,m;u=(m=(W=Y.options)==null?void 0:W.reactivityMode)!=null?m:0;var J,c;if(!((J=Y.options)==null?0:(c=J.reactiveProps)==null?0:c.has(S))&&!P&&u===1)throw Error("Dg`"+S);W=P?pSh(Y,S):wSS(Y,S);return Y.signalCache[S]=W},pSh=function(Y,S){var P=
Object.getOwnPropertyDescriptor(Y.model.constructor.prototype,S),u=function(){return Y.model[S]};
return new KCs(P&&P.get&&!P.set?u:[u,function(W){Y.model[S]=W}])};
b4.prototype.getWithPath=function(Y){var S=_.n(Y);Y=S.next().value;S=o6(S);UHh(this.model.hostElement,""+Y);return DQ(this,Y).getWithPath(S)};
b4.prototype.setWithPath=function(Y,S){if(Y.length){xB(this.model.hostElement,Y.join("."));var P=_.n(Y);Y=P.next().value;P=o6(P);DQ(this,Y).setWithPath(P,S)}};
b4.prototype.getPathMutationSignal=function(Y){var S=_.n(Y);Y=S.next().value;S=o6(S);return DQ(this,Y).getPathMutationSignal(S)};
b4.prototype.notifyPath=function(Y,S){var P=_.n(Y);Y=P.next().value;P=o6(P);DQ(this,Y).notifyPath(P,S)};
var FCL=function(Y,S){if(S.type==="literal")return function(){return{rootWasDefined:!0,value:S.value}};
var P=GY(S.path),u=_.n(P),W=u.next().value;u=o6(u);var m,J;if(S.type==="path"&&(P.length===1||((m=Y.options)==null?0:(J=m.immutableProps)==null?0:J.has(W))))return function(){var T=Y.getWithPath(P.slice(0,1)),K=hI(T,P.slice(1));T=T!==void 0;xA&&(T=DQ(Y,P[0]).wasDefined);return{rootWasDefined:T,value:K}};
var c=DQ(Y,W);if(S.type==="path"){var C=c.getPathMutationSignal(u);return function(){var T=xA?c.wasDefined:pJ(Y.owner,function(){return c.getWithPath([])})!==void 0;
var K,G=(K=C())==null?void 0:K.value;return{rootWasDefined:T,value:G}}}if(S.type==="splices"){var x=c.getSplicesSignal(u);
return function(){var T=x();return{rootWasDefined:xA?c.wasDefined:T!==void 0,value:T}}}var b=c.getChangeRecordSignal(u,""+W);
return function(){var T=b();return{rootWasDefined:xA?c.wasDefined:T!==void 0,value:T}}},xr8=function(Y,S,P){var u=P.map(function(c){return FCL(Y,c)}),W=P.length===0,m=[],J=P.length!==1||P[0].type!=="path"?!1:!0;
Y.effect(function(){for(var c=u.length,C=[],x=!!m.length,b=0;b<c;b++){var T=u[b](),K=T.rootWasDefined;T=T.value;W||(W=K);C[b]=T;J&&(C[b+c]=x?m[b]:C[b],m[b]=T)}W&&pJ(Y.owner,function(){return void S.apply(null,_.cz(C))})})},B$a=function(Y,S,P,u,W){var m=DQ(Y,S);
W!==void 0&&m.setWithPath([],W);xr8(Y,function(){var J=_.Ch.apply(0,arguments);xB(Y.model.hostElement,S,!0);m.setWithPath([],P.apply(null,_.cz(J)))},u)};
b4.prototype.arrayPush=function(Y){var S=_.Ch.apply(1,arguments),P=_.n(Y),u=P.next().value;P=o6(P);u=DQ(this,u);return u.push.apply(u,[P].concat(_.cz(S)))};
b4.prototype.arraySplice=function(Y,S,P){var u=_.Ch.apply(3,arguments),W=_.n(Y),m=W.next().value;W=o6(W);m=DQ(this,m);return m.splice.apply(m,[W,S,P].concat(_.cz(u)))};
b4.prototype.arrayUnshift=function(Y){var S=_.Ch.apply(1,arguments),P=_.n(Y),u=P.next().value;P=o6(P);u=DQ(this,u);return u.unshift.apply(u,[P].concat(_.cz(S)))};
b4.prototype.notifySplices=function(Y,S){var P=_.n(Y);Y=P.next().value;P=o6(P);DQ(this,Y).notifySplices(P,S)};var G$X=/([^\s]+?)\(([\s\S]*)\)/,gwK=/\.([^.]+)$/,vwh=/\\,/g,EwJ=/&comma;/g,fq9=/\\(.)/g,hv1=[],$rh={"*":"wildcard",splices:"splices"};var lq8=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"),p4u=/[A-Z]/,so3=["class","hidden","id","on-dom-change"],ZC9=new Set([].concat(_.cz(so3),
["if","notify-dom-change","restamp"])),iC1=new Set([].concat(_.cz(so3),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),owX=new Set(["restamp"]);var MQ9=Symbol(),YiX=window;var j31=window;var xQ9=0,cMf=0,I_=[],RdJ=0,BbE=!1,qia=document.createTextNode("");(new window.MutationObserver(CCh)).observe(qia,{characterData:!0});var Lc=new Map,a_=0,dSu=function(Y){this.mappedHandleId=Y},TbU=function(Y,S,P,u){this.mappedHandleId=Y;
var W=this;this.mappedHandleId=Y;this.callback=S;this.waitTime=P;this.schedulerPriority=u;this.handleId=_.wc.addJob(function(){W.callback();Lc.delete(W.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.r(TbU,dSu);TbU.prototype.cancel=function(){_.wc.cancelJob(this.handleId);Lc.delete(this.mappedHandleId)};
var KLa=function(Y,S){this.mappedHandleId=Y;var P=this;this.mappedHandleId=Y;this.callback=S;this.handleId=biK(function(){P.callback();Lc.delete(P.mappedHandleId)})};
_.r(KLa,dSu);KLa.prototype.cancel=function(){var Y=this.handleId-cMf;Y<0||I_.length<=Y||(I_[Y]=null);Lc.delete(this.mappedHandleId)};var $Qa=function(){};
$Qa.prototype.cancel=function(){this.jobHandle!==void 0&&(ETX(this.jobHandle),this.jobHandle=void 0)};
$Qa.prototype.run=function(Y,S,P){var u=this;this.cancel();this.callback=Y;this.jobHandle=_.w0(function(){Y();u.callback=void 0},S,P)};
$Qa.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var fga=new WeakMap;var l2J=Ub(function(Y){for(var S=Y,P=0;P<3;P++)S=Object.getPrototypeOf(S);delete S.prototype.connectedCallback;var u=function(){return Y.apply(this,arguments)||this};
_.r(u,Y);u.prototype._attachDom=function(W){if(!W)return null;var m=(0,_.OR)(this.hostElement);m.attachShadow({mode:"open",shadyUpgradeFragment:W});m.shadowRoot.appendChild(W);return m.shadowRoot};
u.prototype._takeAttributes=function(){for(var W=this.hostElement.attributes,m=0;m<W.length;m++){var J=W[m],c=void 0,C=void 0;(C=(c=this).__attributeReaction)==null||C.call(c,J.name,null,J.value)}};
u.prototype._readyClients=function(){Y.prototype._readyClients.call(this);this.root=this};
u.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);Y.prototype.connectedCallback.call(this)};
_.y6.Object.defineProperties(u,{template:{configurable:!0,enumerable:!0,get:function(){return u.prototype._template}}});
return u}),XSi=Ub(function(Y){var S=function(){return Y.apply(this,arguments)||this};
_.r(S,Y);S.prototype.created=function(){if(this.__notifyEffects)for(var P=_.n(Object.values(this.__notifyEffects)),u=P.next();!u.done;u=P.next()){u=_.n(u.value);for(var W=u.next();!W.done;W=u.next())W.value.fn=vTa}if(this.__reflectEffects)for(P=_.n(Object.values(this.__reflectEffects)),u=P.next();!u.done;u=P.next())for(u=_.n(u.value),W=u.next();!W.done;W=u.next())W.value.fn=DQh};
S.prototype._addEventListenerToNode=function(P,u,W){P=F2(P);IW(P,u,W)||Y.prototype._addEventListenerToNode.call(this,P,u,W)};
S.prototype._removeEventListenerFromNode=function(P,u,W){P=F2(P);aW(P,u,W)||Y.prototype._removeEventListenerFromNode.call(this,P,u,W)};
S.prototype._propertiesChanged=function(P,u,W){if(this.__dataToNotify&&this.__notifyEffects)for(var m=_.n(Object.keys(this.__dataToNotify)),J=m.next();!J.done;J=m.next()){J=J.value;var c=hdf(J);this.__notifyEffects[c]||delete this.__dataToNotify[J]}else this.__dataToNotify=null;Y.prototype._propertiesChanged.call(this,P,u,W)};
S.prototype.fire=function(P,u,W){u=u===void 0?{}:u;var m;return _.ms(F2((m=W==null?void 0:W.node)!=null?m:this),P,u,W)};
S.prototype._ensureAttribute=function(P,u){var W=F2(this);W.hasAttribute(P)||vZ(W,u,P)};
S.prototype.isLightDescendant=function(P){var u=F2(this);return F2(u)!==P&&_.I(u).contains(P)&&_.I(u).getRootNode()===_.I(P).getRootNode()};
return S});
_.br.ready=function(){var Y;((Y=this.hostElement)!=null?Y:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var S;((S=this.hostElement)!=null?S:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.G8._subscribeIronResize=function(Y){var S;((S=Y.hostElement)!=null?S:Y).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.G8._unsubscribeIronResize=function(Y){var S;((S=Y.hostElement)!=null?S:Y).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var LLY=[Array,Boolean,Date,Number,Object,String],d0=function(Y,S,P,u){this.polySiInfo=Y;this.polySiParams=S;this.polySiContext=P;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;u||this instanceof HTMLElement&&(u=this);if(!u)throw Error("Kg");this.allowedProps=S.allowedProps;this.hostElement=u;this.is=Y.is;this.upgradeDisabled=!!S.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");Y=new Set(S.reactiveSchemas.filter(function(W){return W.type!==
"observe"}).map(function(W){return W.propertyKey}));
this.signalProxy=new b4(this,void 0,{reactiveProps:Y,reactivityMode:S.reactivityMode});this.__dataHasAccessor={};S=_.n(S.reactiveSchemas);for(Y=S.next();!Y.done;Y=S.next())Y=Y.value,Y.type==="signal"&&(this.__dataHasAccessor[Y.propertyKey]=!0);this.upgradeDisabled||Zmi(this)};
d0.prototype.getExtraMethodsToForward=function(){return[]};
var Zmi=function(Y){Y.polySiContext.didRegister||(Y.registered(),Y.polySiContext.didRegister=!0);Y.polySiContext.finalizedTemplate||(Y.polySiContext.finalizedTemplate={},Y.polySiParams.templateGetter&&(Y.polySiContext.finalizedTemplate.processedTemplate=JMY(Y.polySiParams.templateGetter,Y.polySiParams.is)));imd(Y);var S=Y.hostElement;S.loggingStatus!=null||(S.loggingStatus={});S.loggingStatus.isInitializing=!0;CJ(function(){return void Y.created()});
S.loggingStatus.isInitializing=!1;Y.isPolySiElementConnected&&ol6(Y)},ol6=function(Y){Y.didCallReady||(CJ(function(){return void Y.ready()}),Y.didCallReady=!0);
Y.isAttached=!0;Y.attached()};
_.z=d0.prototype;_.z.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||ol6(this)};
_.z.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.z.attributeChangedCallback=function(Y,S,P){if(this.upgradeDisabled)Y==="disable-upgrade"&&P===null&&(this.upgradeDisabled=!1,Zmi(this));else if(S!==P){var u=_.T5(Y),W=this.polySiContext.typesForSignals[u];if(W){switch(W){case Object:try{var m=JSON.parse(P)}catch(c){m=P}break;case Array:try{m=JSON.parse(P)}catch(c){m=null}break;case Date:m=isNaN(P)?String(P):Number(P);m=new Date(m);break;case Boolean:m=P!==null;break;case Number:m=Number(P);break;default:m=P}this[u]=m}u=_.n(this.polySiParams.behaviors);
for(W=u.next();!W.done;W=u.next())m=void 0,(m=W.value.attributeChanged)==null||m.call(this,Y,S,P);var J;(J=this.attributeChanged)==null||J.call(this,Y,S,P)}};
_.z.attributeChangedCallbackWrapper=function(Y,S,P){this.attributeChangedCallback(Y,S,P)};
_.z.setPropertiesFromInitialAttributeValues=function(){for(var Y=0;Y<this.hostElement.attributes.length;Y++){var S=this.hostElement.attributes[Y];(S.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(S.name))&&this.attributeChangedCallback(S.name,null,S.value)}};
_.z.created=function(){this.provide=this.polySiParams.provide;var Y;(Y=this.initializeInjection)==null||Y.call(this);Y=_.n(this.polySiParams.reactiveSchemas);for(var S=Y.next();!S.done;S=Y.next())S=S.value,S.type==="signal"&&(this.mutablePropNames.add(S.propertyKey),DQ(this.signalProxy,S.propertyKey));agY(this,this.polySiInfo,this.polySiParams.behaviors);Y=_.n(this.polySiParams.reactiveSchemas);for(S=Y.next();!S.done;S=Y.next())S=S.value,S.type==="signal"&&S.value!==void 0&&(this.signalProxy.model[S.propertyKey]=
typeof S.value==="function"?S.value.call(this):S.value);if(this.polySiParams.signalProperties)for(Y=_.n(this.polySiParams.signalProperties),S=Y.next();!S.done;S=Y.next()){S=S.value;var P=void 0;((P=this.__signalCache)==null?0:P.has(S))||(this.signalProxy.model[S]=void 0)}vld||t6s(this);Igf(this);Y=_.n(this.polySiParams.behaviors);for(S=Y.next();!S.done;S=Y.next())P=void 0,(P=S.value.created)==null||P.call(this);var u;(u=this.polySiInfo.created)==null||u.call(this)};
_.z.registered=function(){var Y=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var S=Object.getPrototypeOf(this);S.addReactiveSchema=function(c){Y.polySiParams.reactiveSchemas.push(c)};
for(var P=_.n(this.polySiParams.behaviors),u=P.next();!u.done;u=P.next()){var W=void 0;(W=u.value.beforeRegister)==null||W.call(S)}var m;(m=this.polySiInfo.beforeRegister)==null||m.call(S);S.addReactiveSchema=pMa;P=_.n(this.polySiParams.behaviors);for(u=P.next();!u.done;u=P.next())W=void 0,(W=u.value.registered)==null||W.call(S);var J;(J=this.polySiInfo.registered)==null||J.call(S)};
_.z.ready=function(){var Y;(Y=this.beforeReady)==null||Y.call(this);vld&&t6s(this);var S;if(Y=(S=this.polySiContext.finalizedTemplate)==null?void 0:S.processedTemplate){Y=nT9(Y.template,Y.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:Y.hasInsertionPoint,thisCtx:this});S=Y.nodesById;Y=Y.root;var P=(0,_.OR)(this.hostElement);if(!P.attachShadow)throw Error("Cd");P.shadowRoot||(P.attachShadow({mode:"open",shadyUpgradeFragment:Y}),P.shadowRoot.appendChild(Y));this.root=P.shadowRoot;
this.$=S}A2d(this);S=_.n(this.polySiParams.behaviors);for(Y=S.next();!Y.done;Y=S.next())P=void 0,(P=Y.value.ready)==null||P.call(this);var u;(u=this.polySiInfo.ready)==null||u.call(this)};
_.z.attached=function(){for(var Y=_.n(this.polySiParams.behaviors),S=Y.next();!S.done;S=Y.next()){var P=void 0;(P=S.value.attached)==null||P.call(this)}var u;(u=this.polySiInfo.attached)==null||u.call(this)};
_.z.detached=function(){for(var Y=_.n(this.polySiParams.behaviors),S=Y.next();!S.done;S=Y.next()){var P=void 0;(P=S.value.detached)==null||P.call(this)}var u;(u=this.polySiInfo.detached)==null||u.call(this)};
var imd=function(Y){for(var S=_.n(Y.polySiParams.behaviors),P=S.next();!P.done;P=S.next())if(P=P.value,P.listeners)for(var u in P.listeners)mQ$(Y,Y.hostElement,u,P.listeners[u]);if(Y.polySiInfo.listeners)for(var W in Y.polySiInfo.listeners)mQ$(Y,Y.hostElement,W,Y.polySiInfo.listeners[W])},mQ$=function(Y,S,P,u,W){Y=jT$(Y,u,W);
IW(S,P,Y)||S.addEventListener(P,Y);return Y},t6s=function(Y){for(var S=_.n(Y.polySiParams.reactiveSchemas),P=S.next();!P.done;P=S.next())P=P.value,P.type==="compute"||P.type==="computeWithMethod"?cBU(Y.signalProxy,P,Y):P.type==="redux"?Rva(Y.signalProxy,P,Y.store):P.type==="signal"&&P.readOnly&&qJY(Y.signalProxy,P)},A2d=function(Y){for(var S=_.n(Y.polySiParams.reactiveSchemas),P=S.next(),u={};!P.done;u={schema$jscomp$12:void 0},P=S.next())u.schema$jscomp$12=P.value,u.schema$jscomp$12.type==="notify"?
bCU(Y.signalProxy,u.schema$jscomp$12,Y.hostElement):u.schema$jscomp$12.type==="observe"?T$J(Y.signalProxy,u.schema$jscomp$12,Y):u.schema$jscomp$12.type==="reflect"&&Y.signalProxy.effect(function(m){return function(){var J=Y.signalProxy.getWithPath([m.schema$jscomp$12.propertyKey]);
IqX(Y.hostElement,m.schema$jscomp$12.propertyKey,J)}}(u));
if(Y.reflectedAttributes)for(S=_.n(Object.entries(Y.reflectedAttributes)),u=S.next(),P={};!u.done;P={key$jscomp$873:void 0,value$jscomp$8703:void 0},u=S.next()){var W=_.n(u.value);u=W.next().value;W=W.next().value;P.key$jscomp$873=u;P.value$jscomp$8703=W;Y.signalProxy.effect(function(m){return function(){IqX(Y.hostElement,m.key$jscomp$873,(0,m.value$jscomp$8703)())}}(P))}};
_.z=d0.prototype;_.z._setPendingProperty=function(Y,S){this.set(Y,S);return!1};
_.z._enableProperties=function(){};
_.z._setPendingPropertyOrPath=function(Y,S){this.notifyPath(Y,S);return!1};
_.z._addPropertyEffect=function(){};
_.z._stampTemplate=function(){throw Error("Lg");};
_.z.fire=function(Y,S,P){S=S===void 0?{}:S;P=P===void 0?{}:P;var u,W,m={bubbles:(u=P.bubbles)!=null?u:!0,cancelable:!!P.cancelable,composed:(W=P.composed)!=null?W:!0},J;return _.ms(FLK((J=P.node)!=null?J:this.hostElement),Y,S,m)};
_.z.get=function(Y,S){var P=GY(Y);return S?hI(S,P):Y==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(P)};
_.z.linkPaths=function(){};
_.z.listen=function(Y,S,P){Y=FLK(Y);this.boundListeners!=null||(this.boundListeners=new WeakMap);var u=this.boundListeners.get(Y);u||(u={},this.boundListeners.set(Y,u));var W=S+P;u[W]||(u[W]=mQ$(this,Y,S,P))};
_.z.notifyPath=function(Y,S){this.signalProxy.notifyPath(GY(Y),arguments.length===2?{value:S}:void 0)};
_.z.canNotifyPath=function(Y){var S,P;return this.mutablePropNames.has(Y)&&!((S=this.signalProxy.options)==null?0:(P=S.immutableProps)==null?0:P.has(Y))};
_.z.notifySplices=function(Y,S){this.signalProxy.notifySplices(GY(Y),S)};
_.z.pop=function(Y){var S=this.signalProxy;Y=GY(Y);var P=_.n(Y);Y=P.next().value;P=o6(P);return DQ(S,Y).pop(P)};
_.z.push=function(Y){var S=_.Ch.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[GY(Y)].concat(_.cz(S)))};
_.z.set=function(Y,S,P){if(P)throw Error("Mg");Y==="hidden"?this.hostElement.hidden=!!S:this.signalProxy.setWithPath(GY(Y),S)};
_.z.setProperties=function(Y){Y=_.n(Object.entries(Y));for(var S=Y.next();!S.done;S=Y.next()){var P=_.n(S.value);S=P.next().value;P=P.next().value;this[S]=P}};
_.z.splice=function(Y,S,P){var u=_.Ch.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[GY(Y),S,P].concat(_.cz(u)))};
_.z.unlinkPaths=function(){};
_.z.unlisten=function(Y,S,P){Y=FLK(Y);if(this.boundListeners){var u=this.boundListeners.get(Y);if(u){P=S+P;var W=u[P];W&&(aW(Y,S,W)||Y.removeEventListener(S,W),delete u[P])}}};
_.z.unshift=function(Y){var S=_.Ch.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[GY(Y)].concat(_.cz(S)))};
_.y6.Object.defineProperties(d0.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 Q3f=[Array,Boolean,Date,Number,Object,String];var yM$=!1;var TS=function(){var Y=HTMLElement.apply(this,arguments)||this;Y.restamp=!1;Y.notifyDomChange=!1;Y.JSC$11229_didCallConnected=!1;Y.JSC$11229_renderDebouncer=null;Y.disableTemplateUpdateSignalImpl=lp()?void 0:_.qb(!1,void 0,"bmozBd");var S;Y.getDisableTemplateUpdate=(S=Y.disableTemplateUpdateSignalImpl)==null?void 0:S[0];var P;Y.setDisableTemplateUpdate=(P=Y.disableTemplateUpdateSignalImpl)==null?void 0:P[1];return Y};
_.r(TS,HTMLElement);var USi=function(Y){Y.conditionSignalImpl!=null||(Y.conditionSignalImpl=new Rm(_.qb(!1,void 0,"NYV5Rb")));return Y.conditionSignalImpl};
_.z=TS.prototype;_.z.showHideChildren=function(Y){QoU(this,Y,this.if)};
_.z.attributeChangedCallback=function(Y,S,P){if(this.JSC$11229_didCallConnected)throw Error("Qg`"+Y);Y==="notify-dom-change"?this.notifyDomChange=P!==null:Y==="restamp"&&(this.restamp=P!==null)};
_.z.debounceRender=function(){this.JSC$11229_renderDebouncer=_.Sp(this.JSC$11229_renderDebouncer,wu,this.JSC$11229_renderImpl.bind(this));_.Pm(this.JSC$11229_renderDebouncer)};
_.z.disconnectedCallback=function(){var Y=(0,_.OR)(this).parentNode;(!Y||Y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in Y&&!Y.host)&&kxi(this)};
_.z.connectedCallback=function(){var Y=this;this.JSC$11229_didCallConnected=!0;Gxu?NbJ():this.style.display="none";this.parentSignalProxy.effect(function(){USi(Y).getWithPath([]);Y.debounceRender()})};
_.z.render=function(){_.mT()};
_.z.JSC$11229_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var Y=this.if;if(Y){a:{var S=(0,_.OR)(this).parentNode;if(this.hasInstance()){var P=this.instance.children;if((P==null?0:P.length)&&(0,_.OR)(this).previousSibling!==P[P.length-1])for(var u=0;u<P.length;u++)(0,_.OR)(S).insertBefore(P[u],this)}else{if(!S){S=!1;break a}M6S(this,S)}S=!0}if(!S)return}else this.restamp&&kxi(this);QoU(this,!1,Y);Y&&y23(this);hW3&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.z.hasInstance=function(){return!!this.instance};
var M6S=function(Y,S){var P=Y.parentSignalProxy;if(lp()){var u=_.n(_.qb(!0,void 0,"tGD1cf"));var W=u.next().value;u=u.next().value;P=Y.parentSignalProxy}else{var m;var J=new b4((m=N5s(Y))!=null?m:{},function(C){var x=DQ(Y.parentSignalProxy,C).getChangeRecordSignal([]);C=_.qb(void 0,void 0,"dOaz1b");var b=new Rm(C);J.effect(function(){if(Y.getDisableTemplateUpdate&&!Y.getDisableTemplateUpdate()){var T=x();b.notifyPath(GY(T.path),{value:T.value})}});
return b});
Y.parentSignalProxy.childSignalProxies.push(J);var c=P=J}m=nT9(Y.templateInfo,Y.templateInfo.nodeInfoList,P,{eventListenerHost:Y.eventListenerHost,hasInsertionPoint:Y.templateInfo.hasInsertionPoint,thisCtx:Y.eventListenerHost,enabledSignal:lp()?W:void 0,scope:Y.parentScope,getModel:function(){return Y.parentScope?Hi9(P.owner,Y.parentScope):N5s(Y)}}).root;
Y.instance={root:m,children:[],hidden:!1,signalProxy:c,getTemplateUpdatesEnabled:W,setTemplateUpdatesEnabled:u};c=_.n(m.childNodes);for(W=c.next();!W.done;W=c.next())Y.instance.children.push(W.value);(0,_.OR)(S).insertBefore(Y.instance.root,Y)},N5s=function(Y){if((Y=Y.parentSignalProxy.model)&&!Y.hostElement){var S={},P;
for(P in Y)Y.hasOwnProperty(P)&&(S[P]=Y[P]);return S}},kxi=function(Y){if(Y.instance){var S=Y.instance.children;
if(S.length){var P=(0,_.OR)(S[0]).parentNode;if(P){P=(0,_.OR)(P);for(var u=0;u<S.length;u++)P.removeChild(S[u])}}lp()?Y.instance.setTemplateUpdatesEnabled(!1):Y.instance.signalProxy.dispose();Y.instance=void 0}},QoU=function(Y,S,P){S=S||!P;
Y.instance&&Y.instance.hidden!==S&&(Y.instance.hidden=S,M3a(S,Y.instance.children))},y23=function(Y){if(lp()){var S=Y.instance;
S&&pJ(Y.parentSignalProxy.owner,function(){return!S.getTemplateUpdatesEnabled()})&&S.setTemplateUpdatesEnabled(!0)}else Y.setDisableTemplateUpdate(!1)};
_.y6.Object.defineProperties(TS.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var Y=this;return pJ(this.parentSignalProxy.owner,function(){return USi(Y).getWithPath([])})},
set:function(Y){Y||(lp()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));USi(this).setWithPath([],!!Y)}}});
_.y6.Object.defineProperties(TS,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",TS);var Hmh=[],Kf=function(){var Y=HTMLElement.apply(this,arguments)||this;Y.as="item";Y.indexAs="index";Y.itemsIndexAs="itemsIndex";Y.targetFramerate=20;Y.notifyDomChange=!1;Y.isDetached=!1;Y.JSC$11236_renderDebouncer=null;Y.instances=[];Y.chunkingId=null;Y.chunkCount=null;Y.shouldMeasureChunk=!1;Y.shouldContinueChunking=!1;Y.renderStartTime=null;Y.JSC$11236_didCallConnected=!1;return Y};
_.r(Kf,HTMLElement);var V6d=function(Y){Y.itemSignalImpl!=null||(Y.itemSignalImpl=new Rm(_.qb(Hmh,void 0,"uvlPIb")));return Y.itemSignalImpl},eW6=function(Y,S){Array.isArray(S)||(S=Hmh);
V6d(Y).setWithPath([],S)};
_.z=Kf.prototype;_.z.showHideChildren=function(Y){for(var S=_.n(this.instances),P=S.next();!P.done;P=S.next())M3a(Y,P.value.children)};
_.z.notifyPath=function(Y,S){Y=GY(Y);Y[0]==="items"&&(Y.length===1?eW6(this,S):V6d(this).setWithPath(Y.slice(1),S))};
_.z.canNotifyPath=function(Y){return Y==="items"};
_.z.attributeChangedCallback=function(Y,S,P){if(this.JSC$11236_didCallConnected)throw Error("Rg`"+Y);Y==="as"?this.as=P:Y==="index-as"?this.indexAs=P:Y==="items-index-as"?this.itemsIndexAs=P:Y==="initial-count"?this.initialCount=Number(P):Y==="notify-dom-change"?this.notifyDomChange=P!==null:Y==="target-framerate"&&(this.targetFramerate=Number(P))};
_.z.disconnectedCallback=function(){this.isDetached=!0;for(var Y=0;Y<this.instances.length;Y++)Om_(this,Y);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.z.connectedCallback=function(){var Y=this,S=V6d(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var W=S(),m=GY(W.path);if(m[0]===void 0||m[0]==="splices"||m[0]==="length")Y.debounceRender();else{var J=m[0];if(J=Y.instances[typeof J==="string"?Math.floor(Number(J)):J])J.type==="legacy"?(m=[Y.as].concat(_.cz(m.slice(1))),J.signalProxy.notifyPath(m,W)):(m=m.slice(1),J.itemSignal.notifyPath(m,W))}});
this.JSC$11236_didCallConnected=!0;Gxu?NbJ():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var P=(0,_.OR)((0,_.OR)(this).parentNode),u=0;u<this.instances.length;u++)P.insertBefore(this.instances[u].root,this);this.chunkingId&&this.render()}};
_.z.debounceRender=function(){this.JSC$11236_renderDebouncer=_.Sp(this.JSC$11236_renderDebouncer,wu,this.JSC$11236_renderImpl.bind(this));_.Pm(this.JSC$11236_renderDebouncer)};
_.z.render=function(){this.debounceRender();_.mT()};
_.z.JSC$11236_renderImpl=function(){var Y=this,S=this.items,P=YKJ(this,S.length);SKs(this,S,P);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){Y.chunkingId=null;if(Y.shouldMeasureChunk){var u=performance.now()-Y.renderStartTime;Y.chunkCount=Math.round(Math.ceil(1E3/Y.targetFramerate)/u*Y.chunkCount)||1}Y.shouldContinueChunking&&Y.debounceRender()}));
hW3&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var YKJ=function(Y,S){var P=S,u=Y.instances.length;if(Y.initialCount){if(Y.chunkCount){var W=Math.min(Math.max(S-u,0),Y.chunkCount);P=Math.min(u+W,S)}else P=Math.min(S,Y.initialCount),W=Math.max(P-u,0),Y.chunkCount=W||1;Y.shouldMeasureChunk=W===Y.chunkCount;Y.shouldContinueChunking=P<S;Y.renderStartTime=performance.now()}return P},SKs=function(Y,S,P){for(var u=0;u<P;u++){var W=Y.instances[u],m=S[u];
W?W.type==="legacy"?(W.signalProxy.setWithPath([Y.as],m),W.signalProxy.setWithPath([Y.indexAs],u)):(W.itemSignal.setWithPath([],m),W.setIndex(u)):PHJ(Y,m,u)}for(S=Y.instances.length-1;S>=u;S--)P=Y,W=S,Om_(P,W),P=_.n(P.instances.splice(W,1)).next().value,P.type==="legacy"?P.signalProxy.dispose():P.setDisabled()},Om_=function(Y,S){Y=Y.instances[S];
S=(0,_.OR)(Y.root);for(var P=0;P<Y.children.length;P++)S.appendChild(Y.children[P])},PHJ=function(Y,S,P){var u={};
u=Object.assign({},u6h(Y),(u[Y.as]=S,u[Y.indexAs]=P,u[Y.itemsIndexAs]=P,u));if(_.f("dom_repeat_use_ambient_signals")||_.f("creator_dom_repeat_use_ambient_signals")){S=new Rm(_.qb(S,void 0,"g83Pb"));var W=_.n(_.qb(P,void 0,"tQRdod"));u=W.next().value;W=W.next().value;var m=_.n(V3X());var J=m.next().value,c=m.next().value;m={};var C={parentScope:Y.parentScope,signals:(m[Y.as]={type:"mutable",signal:S},m[Y.indexAs]={type:"signal",getter:u},m[Y.itemsIndexAs]={type:"signal",getter:u},m)};m=nT9(Y.templateInfo,
Y.templateInfo.nodeInfoList,Y.parentSignalProxy,{eventListenerHost:Y.eventListenerHost,getModel:function(){return Hi9(Y.parentSignalProxy.owner,C)},
hasInsertionPoint:Y.templateInfo.hasInsertionPoint,thisCtx:Y.eventListenerHost,methodInvocationRequirement:DSL,enabledSignal:function(){return(Y.stampingEnabled===void 0||Y.stampingEnabled())&&J()},
scope:C}).root;S={type:"ambientSignal",root:m,children:[],itemSignal:S,getIndex:u,setIndex:W,getEnabled:J,setDisabled:c}}else{var x=new b4(u,function(b){if(b!==Y.as&&b!==Y.indexAs){if(b===Y.itemsIndexAs)return DQ(x,Y.indexAs);var T=DQ(Y.parentSignalProxy,b).getChangeRecordSignal([]);b=_.qb(void 0,void 0,"UobVm");var K=new Rm(b);x.effect(function(){var G=T();K.notifyPath(GY(G.path),{value:G.value})});
return K}});
Y.parentSignalProxy.childSignalProxies.push(x);m=nT9(Y.templateInfo,Y.templateInfo.nodeInfoList,x,{eventListenerHost:Y.eventListenerHost,getModel:function(){var b={};return Object.assign({},u6h(Y),(b[Y.as]=x.model[Y.as],b[Y.indexAs]=x.model[Y.indexAs],b[Y.itemsIndexAs]=x.model[Y.indexAs],b))},
hasInsertionPoint:Y.templateInfo.hasInsertionPoint,thisCtx:Y.eventListenerHost,methodInvocationRequirement:DSL,enabledSignal:Y.stampingEnabled}).root;S={type:"legacy",root:m,children:[],signalProxy:x}}u=_.n(m.childNodes);for(W=u.next();!W.done;W=u.next())S.children.push(W.value);u=(u=Y.instances[P+1])?u.children[0]:Y;(0,_.OR)((0,_.OR)(Y).parentNode).insertBefore(S.root,u);Y.instances[P]=S},u6h=function(Y){if((Y=Y.parentSignalProxy.model)&&!Y.hostElement){var S={},P;
for(P in Y)Y.hasOwnProperty(P)&&(S[P]=Y[P]);return S}};
Kf.prototype.itemForElement=function(Y){var S=this,P=this.instances.find(function(u){return u.children.includes(Y)});
if(P)return pJ(this.parentSignalProxy.owner,function(){return P.type==="legacy"?P.signalProxy.getWithPath([S.as]):P.itemSignal.getWithPath([])})};
Kf.prototype.indexForElement=function(Y){var S=this.instances.findIndex(function(P){return P.children.includes(Y)});
return S>=0?S:void 0};
_.y6.Object.defineProperties(Kf.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var Y=this;return pJ(this.parentSignalProxy.owner,function(){return V6d(Y).getWithPath([])})},
set:function(Y){eW6(this,Y)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.y6.Object.defineProperties(Kf,{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",Kf);var WOU,z0L;_.Ee=new _.yH("STATE_STORE_TOKEN");WOU=new _.yH("SELECT_TOKEN");z0L=new _.yH("DISPATCH_TOKEN");var uza={getSelectFn:function(){var Y;return(Y=_.E().resolve(_.PQ(WOU)))!=null?Y:ed$},
getDispatchFn:function(){var Y;return(Y=_.E().resolve(_.PQ(z0L)))!=null?Y:_.X2().dispatch.bind(_.X2())},
getAppStore:function(){return _.E().resolve(_.Ee)}},Oia,PFE=!1;var mSU=void 0;var mMm=function(){};
mMm.prototype.hasAttribute=function(Y){if(Y==="dir")return!1;if(Y==="disable-upgrade"){var S,P;return(P=(S=this.hostElement)==null?void 0:S.hasAttribute("disable-upgrade"))!=null?P:!1}throw Error("Sg`"+Y);};
mMm.prototype.attributeChangedCallbackWrapper=function(Y,S,P){if(Y==="disable-upgrade"&&this.__isUpgradeDisabled&&P===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var u;((u=this.hostElement)!=null?u:this).isConnected&&this.connectedCallback()}else S===P||this.__isReflecting||this.attributeChangedCallback(Y,S,P)};
mMm.prototype.getExtraMethodsToForward=function(){for(var Y=this,S=[],P=_.n(nhS),u=P.next(),W={};!u.done;W={tagName$jscomp$52:void 0,name$jscomp$533:void 0},u=P.next())W.name$jscomp$533=u.value,u=void 0,W.name$jscomp$533==="_setPendingProperty"?(W.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),u=function(m){return function(J,c,C){R_(m.tagName$jscomp$52,J,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return Y._setPendingProperty(J,c,C)}}(W)):u=function(m){return function(){return Y[m.name$jscomp$533].apply(Y,
_.cz(_.Ch.apply(0,arguments)))}}(W),S.push([W.name$jscomp$533,
u]);return S};
for(var qk1=XSi(l2J((0,_.xf)(mMm))),T5X=["disabled","disable-upgrade"],jOm=(0,_.xf)(function(){}),JPU=new Set(Object.getOwnPropertyNames(jOm.prototype)),$Sh=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.cz(JPU))),Elu=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),nhS=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),B4S=new Set([].concat(_.cz(Elu),_.cz(nhS),_.cz(JPU))),cP3=_.n(B4S),CHi=cP3.next();!CHi.done;CHi=cP3.next())i$$.add(CHi.value);var glE={created:function(){Igf(this);this.initializeInjection()}};var wSK=!1,Mh=window.ShadyDOM,im1=["appendChild","insertBefore","removeChild","replaceChild"],ZmE=[Node];Mh&&ZmE.push(Mh.Wrapper);var Qoh,kxE,N5h={};var HZ=new Set,ys="",Hm$="";var Nh,Vs=new Set;var z0U=new Set("context didCallReady is info params signalProxy".split(" ")),nhK="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),jOu="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var qK6=Rk({entities:Ow1}),R0L=new yc(qK6);var ff=function(){return _.JI.apply(this,arguments)||this};
_.r(ff,_.JI);_.y6.Object.defineProperties(ff.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return R0L}}});
ff=_.Q([_.BZ()],ff);_.gm=[Cf.prototype,ff.prototype];_.$A={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var Y=this,S={};setTimeout(function(){var P;return _.ms((P=Y.hostElement)!=null?P:Y,"yt-live-chat-add-tooltip-target",S)},0);
this.handler_=S.handler},
detached:function(){if(this.handler_){var Y;this.handler_.removeElementFromSupportingTooltips((Y=this.hostElement)!=null?Y:this)}this.handler_=null}}};_.WF=new _.yH("ICON_MANAGER_TOKEN");var xMS=[48,20,18,16,15,13,12],LOK=new Map,GL8=new Set,gha=new Set,rPE=new Set,fk9=new Set,$MJ=new Set,vhJ=new Promise(function(Y){var S=!1,P=!1,u=!1,W=[],m=function(J){if("detail"in J)if(J=J.detail,J.name==="yt-icons")h0a(J),S=!0;else if(J.name==="yt-sys-icons")h0a(J),P=!0;else{var c;((c=J.name)==null?0:c.includes("yt-sys-icons"))&&J.size!==24&&(h0a(J,!0),W.push(J.size),W.length===xMS.length&&(u=!0))}S&&P&&u&&(window.removeEventListener("iron-iconset-added",m),Y())};
window.addEventListener("iron-iconset-added",m)}),IkY=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"]]);_.rm={};_.rm.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Ma,computeHref_:function(Y,S){S=S===void 0?!1:S;if(!Y||Y.commandExecutorCommand)return null;var P=hMU(Y,S);return S||P!==null?P?_.f("enable_polymer_resin")?_.Bx(P).toString():P:null:(_.sf(new _.$2("computeHref was null",this.is,Y)),null)},
computeOptionalHref_:function(Y){return this.computeHref_(Y,!0)},
computeNofollow_:function(Y){return Y?bs8(Y)?"nofollow":null:null},
computeIcon_:function(Y){return Y&&Y.iconType?_.u2(Y.iconType):""},
resolveCommand:function(Y,S,P){S=S===void 0?{}:S;return _.m4(Y,this.hostElement,S,P===void 0?!1:P)}};var T4_,GS;_.b0f={};T4_=null;
GS={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_=RwU(this.viewroot));_.w0(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var Y=this;this.unobserve_();if(_.f("kevlar_vimio_use_shared_monitor"))dM8(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 S=[];this.visibilityOptionVisible_&&S.push(this.visibilityObserver.observe(this.hostElement,function(){return Y.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&S.push(this.visibilityObserver.observe(this.hostElement,function(){return Y.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&S.push(this.visibilityObserver.observe(this.hostElement,function(){return Y.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=S}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){wvE(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var Y=_.rh(this.parentNode,function(P){var u,W=(u=P.polymerController)!=null?u:P;return!!W.getVisibilityObserverForChild&&W.getVisibilityObserverForChild()},!0);
if(Y){var S;this.localVisibilityObserver_=((S=Y.polymerController)!=null?S:Y).getVisibilityObserverForChild()}else T4_||(T4_=RwU()),this.localVisibilityObserver_=T4_;return this.localVisibilityObserver_},visibilityCallback:function(Y){Y?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.f("kevlar_use_vimio_behavior")||(GS={});GS&&!_.f("kevlar_use_vimio_behavior")&&(delete GS.attached,delete GS.detached);_.b0f.YtVisibilityObserverBehavior=[GS];var KOt={};KOt.YtVisualElementBehavior=[_.b0f.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.f("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.f("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var Y=this.getScreenLayer&&this.getScreenLayer(),S=this.getVisibilityLogger();S&&S.reportShown(this,void 0,Y)}},
onHidden:function(){if(_.f("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.f("kevlar_vimio_use_shared_monitor")){var Y=this.getScreenLayer&&this.getScreenLayer(),S=this.getVisibilityLogger();S&&S.reportHidden(this,void 0,Y)}},
getVisibilityLogger:function(){return _.f("kevlar_use_vimio_behavior")?_.jC():null},
shouldSkipLogging:function(){if(_.X3("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var Y=this.getParentRenderer&&this.getParentRenderer();if(!Y)return!1;var S,P=(S=Y.polymerController)!=null?S:Y;if(!P.data)return!1;Y=this.data.trackingParams;Y=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:Y;var u;S=(u=P.data)==null?void 0:u.trackingParams;var W,m;S=((W=P.data)==null?0:W.loggingDirectives)?(m=P.data)==null?void 0:m.loggingDirectives.trackingParams:S;return Y&&S&&Y===
S}}];var i0J=new Map,xJ;var MlE=function(Y){this.layer=Y},Iq=function(Y){return Y.layer!==void 0?Y.layer:Y.parent?Iq(Y.parent):Y.layer=0};var kLh;_.e={};kLh=0;_.e.YtRendererBehavior=[_.rm.YtComponentBehavior,KOt.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_:_.f("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var Y,S;(S=(Y=this.monitorScrollElement)!=null?Y:this.hostElement)==null||S.removeEventListener("scroll",_.up(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();Xvh(this.hostElement);hds(_.YA(),this.hostElement);NT.delete(this.hostElement)},
registerRenderer:function(Y){var S;((S=Y.polymerController)!=null?S:Y).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(Y),this.markDirty())},
unregisterRenderer_:function(Y){this.useVimio_||(this.childCache_.delete(Y),this.markDirty())},
attached:function(){var Y=this,S=this.getParentRenderer();if(S){var P,u,W;(u=(P=(W=S.polymerController)!=null?W:S).registerRenderer)==null||u.call(P,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var m,J;(J=(m=this.monitorScrollElement)!=null?m:this.hostElement)==null||J.addEventListener("scroll",_.up(this,this.onScroll))}_.wc.addJob(function(){ohJ(Y.hostElement)},8);
P=new MlE(this.screenLayer||void 0);(S=NT.get(S))&&S.layerNode&&(P.parent=S.layerNode);S={};fT8(this.hostElement,(S.isRenderer=!0,S.layerNode=P,S[yQf]=this.data,S))},
getParentRenderer:function(){for(var Y=this.hostElement.parentNode,S,P;Y&&((S=NT.get(Y))==null||!S.isRenderer)&&!((P=Y.polymerController)!=null?P:Y).isRenderer_;)Y=Y.parentNode||Y.host;return Y},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.f("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Z4("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.f("debug_web_ve_data")&&this.data.trackingParams){var Y="";try{Y=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(P){_.p_(P)}if(Y){var S=trh(Y,1);S!==void 0&&(this.hostElement.dataset.veIndex=String(S));Y=trh(Y,2);
Y!==void 0&&(this.hostElement.dataset.ve=String(Y))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.f("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Re(this.data.loggingDirectives.trackingParams)),this.visualElement=_.JL(_.BF(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var Y=this.data.targetId;_.DQU(_.YA(),Y,this.hostElement)}else hds(_.YA(),this.hostElement)},
onScroll:function(){var Y=Date.now();Y-this.lastHandledScroll_<50||(this.lastHandledScroll_=Y,this.markDirty())},
markDirty:function(){_.f("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():M1J(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var Y=this.getParentRenderer();if(Y&&(Y=NT.get(Y))&&Y.layerNode)return Iq(Y.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.cz(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var Y=0;Y<this.data.impressionEndpoints.length;Y++)this.sendImpression(this.data.impressionEndpoints[Y]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;var S,P;(Y==null?0:(S=Y.commandMetadata)==null?0:(P=S.webCommandMetadata)==null?0:P.sendPost)?_.Bu(this.hostElement,[Y,{impression:!0}]):_.cu(this.hostElement,[Y],this.hostElement)},
logExplicitClick:function(Y){var S=_.pM(this.getScreenLayer());if(S){var P,u=(P=Y.polymerController)!=null?P:Y;Y=u.visualElement;u=u.trackingParams||u.clickTrackingParams;!Y&&u&&(Y=_.Re(u));Y&&_.ko(S,Y)}}}];var EhU={},hD=function(){return _.JI.apply(this,arguments)||this};
_.r(hD,_.JI);hD.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
hD.prototype.onPdgItemBehaviorClick=hD.prototype.onPdgItemBehaviorClick;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],hD.prototype,"data",void 0);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],hD.prototype,"onPdgItemBehaviorClick",null);hD=_.Q([_.BZ()],hD);EhU.YtPdgLiveChatItemBehavior=[hD.prototype,_.e.YtRendererBehavior];var fk6;var ght;_.vU={};_.vU.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var DG=function(){var Y=He.apply(this,arguments)||this;Y.switchTemplateAtRegistration=!1;return Y};
_.r(DG,He);DG.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||V1K(this),_.rMf(this,"doRender"),this.doRender())};
DG.prototype.debounceRender=function(){this.templatingFn&&_.pc(this,"doRender",this.doRender)};
DG.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.p_(Error("bh"))};
DG.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
DG=_.Q([m2U()],DG);var $M3=DG;var rPi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Im={},SpX=(Im[1]={filterString:null,isUnwrappable:null,unwrap:null},Im[2]={filterString:function(Y,S,P){return On(P)},
isUnwrappable:function(Y){return Y instanceof TT},
unwrap:function(Y){return E4(Y)}},Im[3]={filterString:function(Y,S,P){return rPi.test(P)?P:Jw.toString()},
isUnwrappable:function(Y){return zT(Y)},
unwrap:function(Y){return _.mp(Y)}},Im[4]={filterString:function(){return Jw.toString()},
isUnwrappable:function(Y){return Y instanceof OU},
unwrap:function(Y){return _.S2(Y).toString()}},Im[5]={filterString:function(Y,S,P){return P},
isUnwrappable:function(Y){return typeof Y==="string"},
unwrap:function(Y){return Y.toString()}},Im[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(Y){return Y instanceof _.GT},
unwrap:function(Y){return vx(Y)}},Im[8]={filterString:function(Y,S,P){P=String(P).toLowerCase();
return YQX(Y,S,P)?P:"zClosurez"},
isUnwrappable:null,unwrap:null},Im[10]={filterString:null,isUnwrappable:null,unwrap:null},Im);VZ[dK["default"]]=uq8;var W1u=[];var rlY=mpX("A"),GPh=mpX("BUTTON"),xs=mpX("DIV"),h9Y=mpX("LABEL");(function(){var Y=Nb;Nb=function(S){Y==null||Y(S);Ks(function(){for(var P=0;P<S.length;P++)zta(S[P])})}})();var am=function(){var Y=_.JI.apply(this,arguments)||this;Y.hasUnmounted=!1;return Y};
_.r(am,_.JI);_.z=am.prototype;_.z.beforeRegister=function(){var Y=this.doIdomRender;this.templatingFn?_.p_(Error("ah")):(this.templatingFn=Y,this.switchTemplateAtRegistration=!0,Yp9(this))};
_.z.attached=function(){};
_.z.detached=function(){zta(this.hostElement)};
_.z.renderIdom=function(){throw Error("dh");};
_.z.doIdomRender=function(){var Y=this;isa(this.hostElement,function(){Y.renderIdom()})};
am=_.Q([_.BZ()],am);var GLu=[$M3.prototype,am.prototype];var h0t,vh3=function(){return h0t!==void 0?h0t:h0t=document.createElement("template")};
document.head.appendChild(vh3().content);var DMd;var Ik_,akd=function(){return Ik_!==void 0?Ik_:Ik_=document.createElement("template")};
document.head.appendChild(akd().content);var LOS;var wvi=document.head,pvL=wvi.appendChild,FOu;if(LOS===void 0){var sOU=document.createElement("template");_.h(sOU,"\x3c!--css-build:shady--\x3e");sOU.content.insertBefore(akd().content.cloneNode(!0),sOU.content.firstChild);LOS=sOU}FOu=LOS;pvL.call(wvi,FOu.content);var dMu,lk_=function(){return dMu!==void 0?dMu:dMu=document.createElement("template")};
document.head.appendChild(lk_().content);var XvU;var Z06=document.head,i03=Z06.appendChild,oh3;if(XvU===void 0){var t1S=document.createElement("template");_.h(t1S,"\x3c!--css-build:shady--\x3e");t1S.content.insertBefore(lk_().content.cloneNode(!0),t1S.content.firstChild);XvU=t1S}oh3=XvU;i03.call(Z06,oh3.content);var AP_=document.head,UM6=AP_.appendChild,QOf;if(DMd===void 0){var kLs=document.createElement("template");_.h(kLs,"\x3c!--css-build:shady--\x3e");kLs.content.insertBefore(vh3().content.cloneNode(!0),kLs.content.firstChild);DMd=kLs}QOf=DMd;UM6.call(AP_,QOf.content);var M13,yPJ=function(){return M13!==void 0?M13:M13=document.createElement("template")};
document.head.appendChild(yPJ().content);var N4i;_.F5=new _.yH("DARK_THEME_TOKEN");var OpU=new _.N("accessibilityProperties");var etY=new _.N("layoutProperties");var Y7U=new _.N("imageType");var H0m={};if("ytAttributedStringLinkHoverColor"in H0m)throw Error("gh`ytAttributedStringLinkHoverColor");(function(Y,S){H0m[Y]="value"in S&&"unit"in S?cRJ(Y,S):function(P){try{return S(P)}catch(u){throw Error("eh`"+Y+"`"+u.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var V1S=function(Y){var S=this;this.holdTime=Y===void 0?500:Y;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(P){var u=new CustomEvent("LONG_PRESS"),W;(W=P.changedTouches[0].target)==null||W.dispatchEvent(u)};
this.ontouchstart=function(P){S.longPressTimeout=_.$I(_.wc,function(){S.onlongpress(P);S.longPressOccurred=!0},S.holdTime)};
this.ontouchmove=function(){_.wc.cancelJob(S.longPressTimeout);S.longPressTimeout=NaN;S.longPressOccurred=!1;S.moveOccurred=!0};
this.ontouchend=function(P){if(S.longPressTimeout&&!S.longPressOccurred&&!S.moveOccurred){var u;(u=P.changedTouches[0].target)==null||u.dispatchEvent(new Event("click"))}_.wc.cancelJob(S.longPressTimeout);S.longPressTimeout=NaN;S.longPressOccurred=!1;S.moveOccurred=!1}};var F19=function(Y,S){V1S.call(this,S);var P=this;this.callback=Y;this.onlongpress=function(u){var W;(W=P.callback)==null||W.call(P,u)}};
_.r(F19,V1S);var sPY=function(Y,S){var P=Object.assign({},S);Y=_.n(new Map([["ontouchstart",Y.ontouchstart],["ontouchend",Y.ontouchend],["ontouchmove",Y.ontouchmove]]));for(var u=Y.next(),W={};!u.done;W={eventName$jscomp$88:void 0,eventHandler$jscomp$3:void 0},u=Y.next()){var m=_.n(u.value);u=m.next().value;m=m.next().value;W.eventName$jscomp$88=u;W.eventHandler$jscomp$3=m;S[W.eventName$jscomp$88]=function(J){return function(c){var C;(C=P[J.eventName$jscomp$88])==null||C.call(P,c);(0,J.eventHandler$jscomp$3)(c)}}(W)}};_.uY=new _.yH("COMMAND_HANDLER_TOKEN");var qph=new _.N("parallelCommand");var bph=new _.N("performOnceCommand");var xp9=new _.N("serialCommand");var Ts8=void 0;var e0s=function(){this.data=[]};
e0s.prototype.push=function(Y){this.data.push(Y)};var OP={};_.qb(OP,void 0,"sgPmTd");_.qb(null,void 0,"jypsq");var Xch=new e0s;var vbu=[paU,F$f,sht,lf_,dUd,wah,Xah,Z8s];var Hpu=new _.N("bracketTextDecorator");var ps=new _.N("highlightTextDecorator");_.d8=new _.yH("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var QP$=function(){},O0m;
(O0m=window.requestIdleCallback)==null||O0m.bind(window);var MeK={calledOnce:!1,state:"visible"},kh$={calledOnce:!1,state:"hidden"};var Nj8=new _.yH("ICON_RENDERER_TOKEN"),Yp6=new _.yH("ICON_WIZ_COMPONENT_TOKEN");_.BX=_.AI(function(Y){var S=Y.icon;var P=Y.active;var u=Y.className;var W=Y.style;var m=Y.dataSelected;var J=Y.dataDisabled;var c=Y.role;var C=Y.animateIcon;var x=Y.themeOverride;var b=Y.ariaHidden;var T=Y.ariaExpanded;var K=Y.ariaLabel;var G=Y.id;var v=Y.size;var a=Y.iconFilter;return _.R(_.gw,{cond:S,then:function(){var w=_.E().resolve(Yp6);return _.R(w,{icon:S,dataSelected:m,dataDisabled:J,animateIcon:C,themeOverride:x,ariaExpanded:T,id:G,active:P,size:v,role:c,className:u,ariaHidden:b,ariaLabel:K,
style:function(){return W!=null&&W()||v==null||!v()?W==null?void 0:W():"width: "+(v==null?void 0:v())+"px;height: "+((v==null?void 0:v())+"px;")},
iconFilter:a})}})},"b");
_.BX.idomCompat=!0;var bBa=window.devicePixelRatio||1;var fta=new Map([["yt_outline_bag_black_24","bag"]]);var Lf=function(Y){var S=this;this.margin=.1;this.whenInViewportWithMargin=Y;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){S.requestScan()});
window.addEventListener("touchend",function(){S.requestScan()});
window.addEventListener("updateui",function(){S.requestScan()});
var P=new _.NE((0,_.xS)(this.requestScan,this),100);window.addEventListener("scroll",function(){P.fire()},!0);
window.addEventListener("resize",(0,_.xS)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){S.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.xS)(this.requestScan,this))};
Lf.prototype.observe=function(Y){this.observationTargets.includes(Y)||this.observationTargets.push(Y)};
Lf.prototype.unobserve=function(Y){this.observationTargets=this.observationTargets.filter(function(S){return S!==Y})};
Lf.prototype.requestScan=function(){var Y=this;this.scanRequested||(Ks(function(){SpJ(Y)}),this.scanRequested=!0)};
var SpJ=function(Y){var S=(1+Y.margin)*(document.documentElement.clientHeight||window.innerHeight);Y.observationTargets=Y.observationTargets.filter(function(P){var u=P.getBoundingClientRect();(u=S>u.top&&!!u.height)&&Y.whenInViewportWithMargin(P);return!u&&P.parentNode});
Y.scanRequested=!1};
Lf.prototype.disconnect=function(){this.observationTargets=[]};var PS_,W1m;PS_=_.n(_.qb(GCY(),void 0,"O3X2wd"));_.uqu=PS_.next().value;W1m=PS_.next().value;window.addEventListener("resize",function(){W1m(GCY())});var ztf={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},mpJ=void 0,nbf=window.innerWidth,jPs=window.innerHeight;window.addEventListener("resize",function(){mpJ=void 0});var JRs;if("IntersectionObserver"in window)JRs=Dvu();else{if(mpJ===void 0){var Bsu;Bsu="matchMedia"in window?window.matchMedia(ztf.landscape+","+ztf.portrait).matches:void 0;mpJ=Bsu!==void 0?Bsu:nbf>=930&&jPs>=550||nbf>=550&&jPs>=930}JRs=mpJ?{observe:function(Y){Ks(function(){var S;(S=Y.onViewportEntered)==null||S.call(Y)})},
unobserve:function(){}}:new Lf(function(Y){Ks(function(){var S;
(S=Y.onViewportEntered)==null||S.call(Y)})})}var hp$=JRs;var cR3=_.AI(function(Y){var S=_.Ms(),P=!1;_.D6(function(){var u,W=(u=Y.data)==null?void 0:u.call(Y),m,J=(m=Y.getSrc)==null?void 0:m.call(Y).cb,c;u=(c=Y.config)==null?void 0:c.call(Y);if(c=S.value){at8(c,u);var C;ItU(c,W||null,function(x,b){if(!P)return J?J(x,b):x},u,(C=Y.lazy)==null?void 0:C.call(Y))}});
_.aI(function(){P=!0});
return _.R("img",{el:S})},"c");
cR3.idomCompat=!0;_.ZZ=_.AI(function(Y){var S=function(){var P,u=Y.data(),W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V,M,zJ,O,ca,hu,ah,va,yX,la,w1,U9;var nu={contentMode:(W=Y.contentMode)==null?void 0:W.call(Y),loadedClass:(m=Y.loadedClass)==null?void 0:m.call(Y),isPreloaded:(J=Y.isPreloaded)==null?void 0:J.call(Y),notifyOnLoaded:(c=Y.notifyOnLoaded)==null?void 0:c.call(Y),notifyOnUnloaded:(C=Y.notifyOnUnloaded)==null?void 0:C.call(Y),preferredThumbnail:(x=Y.preferredThumbnail)==null?void 0:x.call(Y),preserveHeight:(b=Y.preserveHeight)==
null?void 0:b.call(Y),preserveWidth:(T=Y.preserveWidth)==null?void 0:T.call(Y),objectPosition:(K=Y.objectPosition)==null?void 0:K.call(Y),targetWidth:(G=Y.targetWidth)==null?void 0:G.call(Y),targetHeight:(v=Y.targetHeight)==null?void 0:v.call(Y),shouldShowPlaceholder:(a=Y.shouldShowPlaceholder)==null?void 0:a.call(Y),useWidth:(w=Y.useWidth)==null?void 0:w.call(Y),alt:(F=Y.alt)==null?void 0:F.call(Y),className:(U=Y.className)==null?void 0:U.call(Y),onerror:Y.onerror,onload:Y.onload,style$:((V=Y.style$)==
null?void 0:V.call(Y))||((M=Y.style)==null?void 0:M.call(Y)),color:(zJ=Y.color)==null?void 0:zJ.call(Y),width:(O=Y.width)==null?void 0:O.call(Y),height:(ca=Y.height)==null?void 0:ca.call(Y),"aria-hidden$":(w1=(hu=Y["aria-hidden$"])==null?void 0:hu.call(Y))!=null?w1:(ah=Y.ariaHidden)==null?void 0:ah.call(Y),draggable:(va=Y.draggable)==null?void 0:va.call(Y),"data-disabled$":(U9=(yX=Y["data-disabled$"])==null?void 0:yX.call(Y))!=null?U9:(la=Y.dataDisabled)==null?void 0:la.call(Y)};return pja(u,nu,(P=
Y.hideOn404)==null?void 0:P.call(Y))};
return _.R(_.hA,null,_.R(_.rw,{when:function(){var P;return((P=S())==null?void 0:P.type)==="image"}},function(){return _.R(cR3,{data:function(){return S().image},
getSrc:{cb:function(P,u){var W=S().image.sources,m=S().config.isPreloaded,J=S().config.useWidth,c=S().config.targetWidth,C=S().config.targetHeight,x=S().config.preferredThumbnail;return _.Ttu(u,W,m,J,c,C,x)||""}},
config:function(){var P=S().config,u;for(u in P)P[u]===void 0&&delete P[u];return P},
lazy:Y.renderLazy})}),_.R(_.rw,{when:function(){var P;
return((P=S())==null?void 0:P.type)==="icon"}},function(){return _.R(_.BX,{icon:function(){return S().iconName},
role:function(){return S().config.role},
className:function(){return S().config.className},
style:function(){return S().config.style$+";width: "+(S().config.width+"px;height: ")+(S().config.height+"px;color: ")+(S().config.color+";")},
ariaLabel:function(){return S().config["aria-label$"]},
ariaHidden:function(){return S().config["aria-hidden$"]},
dataDisabled:function(){return S().config["data-disabled$"]}})}))},"d");
_.ZZ.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var CSJ=function(Y){return function(S){return _.R(utY,null,function(){var P=S.data(),u=_.wK(S.config);return _.R(Ns,null,function(){return void Y(P,u)})})}}(ZBX),ltJ=_.AI(function(Y){var S=function(u){var W,m=_.Fqh(function(K){W=LJ(function(){for(var G=_.n(b()),v=G.next();!v.done;v=G.next()){v=iB$(v.value);
v=typeof v==="string"?document.createTextNode(v):v;if(!(v instanceof Node)){G=new _.$2("Part is not a node",v,typeof v);_.p_(G);break}K.appendChild(v)}})}),J=s$Y(function(){return Pc1(u())},{isEqual:dvU}),c=_.o_(Y.config),C=function(){var K,G=J();
return!((K=c())==null||!K.ariaLabel)||!(G.commandRuns&&G.commandRuns.length!==0||G.paragraphStyleRuns&&G.paragraphStyleRuns.length!==0)},x=s$Y(c,{isEqual:t0$}),b=function(){var K=S7X(J(),x());
Wqa(K,x());return J().content?BtU(J().content,K).parts:[]},T=!0;
_.D6(function(){J();x();if(T)T=!1;else{var K=b();Promise.resolve().then(function(){var G=m.value;if(G){G.innerText="";var v;(v=W)==null||v();W=_.D4(G,function(){return _.R(oia,{parts:K})})}})}});
return _.R("span",{el:m,class:function(){return J()&&ip1(J(),c())},
dir:function(){var K;return((K=c())==null?0:K.userInput)?"auto":void 0},
"aria-label":function(){var K;return C()?(K=c())==null?void 0:K.ariaLabel:void 0},
role:function(){return C()?"text":void 0}})},P;
return((P=Y.config)==null?0:P.renderedFromFormattedString)?S(Y.text):_.R(_.gw,{cond:Y.text,then:S})},"e");
ltJ.idomCompat=!0;_.qw=_.AI(function(Y){var S=_.o_(Y.text),P=AWE(Y);Y.renderedFromFormattedString!==void 0&&(P.renderedFromFormattedString=!0);return _.f("attr_string_reactive")?_.R(ltJ,{text:S,config:P}):_.R(_.gw,{cond:function(){var u;return S()&&((u=Pc1(S()))==null?void 0:u.content)},
then:function(){return _.R(CSJ,{data:Y.text,config:P})},
debugInstance:"Apcuac"})},"f");
_.qw.idomCompat=!0;var Q$Y=function(Y,S,P){S=S===void 0?"unknown":S;P=P===void 0?{}:P;_.$2.call(this,Y+" ("+S+")",Object.assign({},{name:"YtWcwError",tagName:S},P));Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(Q$Y,_.$2);_.epa=new WeakMap;_.V0K=!1;var HB9,OBh,M0f,Nth;_.wm=Symbol("ih");_.tL=Symbol("jh");HB9=Symbol("kh");OBh=new Set(Object.getOwnPropertyNames(Element.prototype));M0f=!_.f("web_wcw_disable_component_function_named_child_props");Nth=Symbol("lh");var qps=_.AI(function(Y){return _.R("yt-attributed-string",{"aria-label":Y.ariaLabel,hidden:Y.hidden,id:Y.id,class:Y.className,"force-default-style":Y.forceDefaultStyle},_.R(_.qw,{text:Y.data,ariaLabel:Y.ariaLabel,ellipsisTruncate:Y.ellipsisTruncate,isOverlay:Y.isOverlay,linkInheritColor:Y.linkInheritColor,noPreWrap:Y.noPreWrap,noWrap:Y.noWrap,userInput:Y.userInput,noEndpoints:Y.noEndpoints,headerRuns:Y.headerRuns}))},"g");
_.f("web_wiz_attributed_string")&&_.AL(qps,"yt-attributed-string",{props:{ariaHidden:_.wm,ariaLabel:_.wm,className:_.wm,ellipsisTruncate:_.wm,isOverlay:_.wm,linkInheritColor:_.wm,noEndpoints:_.wm,noStyleRuns:_.wm,noLinkColor:_.wm,noPreWrap:_.wm,noWrap:_.wm,skipOnClick:_.wm,userInput:_.wm,headerRuns:_.wm,id:_.wm,data:_.wm,hidden:_.wm,forceDefaultStyle:_.wm,text:_.tL,stopPropagation:_.tL,disableUpgrade:_.tL,disable:_.tL,slot:_.tL}});var pf=function(){return _.Z.apply(this,arguments)||this};
_.r(pf,_.Z);pf.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},ZBX(this.data,this.config))};
_.Q([_.p(GLu),_.k("design:type",Object)],pf.prototype,"ytIdomTemplatingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],pf.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],pf.prototype,"ariaLabel",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pf.prototype,"disable",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pf.prototype,"ellipsisTruncate",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pf.prototype,"isOverlay",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],pf.prototype,"linkInheritColor",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pf.prototype,"noPreWrap",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pf.prototype,"noWrap",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pf.prototype,"userInput",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pf.prototype,"noEndpoints",void 0);_.Q([_.X(),_.k("design:type",Array)],pf.prototype,"headerRuns",void 0);
pf=_.Q([_.r0({is:"yt-attributed-string",disableElementRegistration:!0})],pf);
_.f("web_wiz_attributed_string")||_.A(pf,"yt-attributed-string",function(){if(N4i===void 0){var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
Y.content.insertBefore(yPJ().content.cloneNode(!0),Y.content.firstChild);N4i=Y}Y=N4i;return Y},{mode:2});var Rti,xp6,mj8;Rti=function(){this.firstThumbnailLoaded=!1};
_.bpU=function(){xp6||(xp6=new Rti);return xp6};
mj8=function(Y){var S=_.bpU();S.firstThumbnailLoaded||(S.firstThumbnailLoaded=!0,_.Fk("ftl",Y))};
Rti.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Sr$=0,z$$=new WeakMap,uLY=0,kJ=new Set;var Tsu,K1S=function(){return Tsu!==void 0?Tsu:Tsu=document.createElement("template")};
document.head.appendChild(K1S().content);var Eb_;var Bzu,CwK,Fh;_.NG=_.Pa.caches;Fh=function(){};
Fh.prototype.open=function(Y){return _.NG.open(f8s(Y))};
Fh.prototype.has=function(Y){return _.NG.has(f8s(Y))};
Fh.prototype.delete=function(Y){return _.NG.delete(f8s(Y))};
Fh.prototype.match=function(Y,S){var P=this,u,W,m,J,c,C;return _.B(function(x){switch(x.nextAddress){case 1:return _.q(x,P.keys(),2);case 2:u=x.yieldResult,W=_.n(u),m=W.next();case 3:if(m.done){x.jumpTo(5);break}J=m.value;return _.q(x,P.open(J),6);case 6:return c=x.yieldResult,_.q(x,c.match(Y,S),7);case 7:if(C=x.yieldResult)return x.return(C);m=W.next();x.jumpTo(3);break;case 5:return x.return()}})};
var qr9=function(){};
_.r(qr9,Fh);var f8s=function(Y){if(Y.includes(":"))throw Error("oh`"+Y);return Y+":"+_.fz("CacheStorage get")};
qr9.prototype.keys=function(){var Y,S,P,u,W,m,J,c,C;return _.B(function(x){if(x.nextAddress==1)return Y=[],S=_.fz("CacheStorage keys"),_.q(x,_.NG.keys(),2);P=x.yieldResult;u=_.n(P);for(W=u.next();!W.done;W=u.next())m=W.value,J=_.JNa(m),c=J.originalName,C=J.datasyncId,C===S&&Y.push(c);return x.return(Y)})};var se=function(){var Y=_.Z.apply(this,arguments)||this;Y.objectURL=null;Y.loadTime=Infinity;return Y};
_.r(se,_.Z);_.z=se.prototype;_.z.renderIdom=function(){jyJ(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();this.config&&Lqh(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.z.objectFitToContentMode=function(Y){switch(Y){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.z.logThumbnailFailureVe=function(){var Y=_.TI(197497);_.Ym(_.BF(),Y);var S=_.pM();S&&Y&&S&&_.UV(S,[Y])};
_.z.loadImageFromCacheIfExists=function(Y){var S=this,P=Y.target;(P==null?0:P.src)&&xjX(P.src).then(function(u){S.objectURL=_.cx(u).toString();S.setSrc(P,S.objectURL)}).catch(function(){})};
_.z.onError=function(Y){var S=this;if(_.f("web_use_cache_for_image_fallback")){var P=Y.target;P&&xjX(P.src).then(function(u){S.objectURL=_.cx(u).toString();S.setSrc(P,S.objectURL)}).catch(function(){_.f("kevlar_woffle_log_thumbnail_failure_ve")&&S.logThumbnailFailureVe();
_.f("kevlar_woffle_fallback_image")&&S.setSrc(P,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.z.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.z.setConfig=function(){var Y=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(S){Y.loadImageFromCacheIfExists(S);Y.revokeObjectURL();nPK(Y.hostElement)},
onerror:function(S){Y.onError(S)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.f("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.z.setSrc=function(Y,S){S&&(Y.src=S)};
_.Q([_.p(GLu),_.k("design:type",Object)],se.prototype,"ytIdomTemplatingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],se.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],se.prototype,"alt",void 0);_.Q([_.X(),_.k("design:type",Boolean)],se.prototype,"ftlEligible",void 0);_.Q([_.X(),_.k("design:type",Number)],se.prototype,"height",void 0);_.Q([_.X(),_.k("design:type",Boolean)],se.prototype,"notifyOnLoaded",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],se.prototype,"notifyOnUnloaded",void 0);_.Q([_.X(),_.k("design:type",String)],se.prototype,"objectFit",void 0);_.Q([_.X(),_.k("design:type",String)],se.prototype,"objectPosition",void 0);_.Q([_.X(),_.k("design:type",String)],se.prototype,"preferredThumbnail",void 0);_.Q([_.X(),_.k("design:type",Boolean)],se.prototype,"preserveHeight",void 0);_.Q([_.X(),_.k("design:type",Boolean)],se.prototype,"preserveWidth",void 0);
_.Q([_.X({value:!0}),_.k("design:type",Boolean)],se.prototype,"useWidth",void 0);_.Q([_.X({value:function(){return!_.Z4("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.k("design:type",Boolean)],se.prototype,"shouldRenderLazy",void 0);_.Q([_.X(),_.k("design:type",Number)],se.prototype,"width",void 0);se=_.Q([_.r0({is:"yt-image",disableElementRegistration:!0})],se);
_.A(se,"yt-image",function(){if(Eb_===void 0){var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);Y.content.insertBefore(K1S().content.cloneNode(!0),Y.content.firstChild);
Eb_=Y}Y=Eb_;return Y},{mode:2});var dm=function(){return _.Z.apply(this,arguments)||this};
_.r(dm,_.Z);dm.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var Y=_.vF(this.data.onVisibleCommand);Y&&this.ytComponentBehavior.resolveCommand(Y)}};
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],dm.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.vU.YtVisibilityBehavior),_.k("design:type",Object)],dm.prototype,"ytVisibilityBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],dm.prototype,"data",void 0);dm=_.Q([_.r0({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],dm);
_.A(dm,"yt-bumper-user-edu-content-view-model",function(){if(ght===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;fk6===void 0&&(fk6=document.createElement("template"));var u=fk6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);ght=Y}Y=ght;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var gbS;var $pf,rRm=function(){if($pf!==void 0)return $pf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;gbS===void 0&&(gbS=document.createElement("template"));var u=gbS;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return $pf=Y};var GhL;_.l4={};GhL=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"]);_.l4.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var Y=this.getContext_();return Y?Y.getTaskManager():_.wc},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var Y=_.ms(this.hostElement,"yt-get-context-provider",{});Y.detail&&Y.detail.contextProvider?this.cachedProviderNode_=Y.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return GhL.has(this.hostElement.localName)},
getNetworkManager:function(){var Y=this.getContext_();if(Y)return Y.getNetworkManager()}};var gPa,htm,Dp3,vbm;_.Xh=function(Y){var S=htm.get(Y);if(S&&(S=S.pop()))return vbm++,S;Dp3++;try{var P=document.createElement(Y)}catch(u){throw new _.$2("ElementPool failed to create element",Y,u.message);}return P};
gPa=function(Y){var S=Y.is;if(S){var P=htm.get(S);P||(P=[],htm.set(S,P));var u=_.X3("ELEMENT_POOL_CONFIG")||{};P.length>=(u[S]!==void 0?u[S]:_.X3("ELEMENT_POOL_DEFAULT_CAP",0))||P.push(Y)}else _.sf(new _.$2("Element pool should only handle custom elements:",Y.nodeName))};
htm=new Map;Dp3=0;vbm=0;var HF=new WeakMap,f5a=new WeakMap;var a8_;_.ZG=function(Y,S,P){P=P===void 0?_.vs():P;this.JSC$11504_defaultPriority=Y;this.signal=S;this.scheduler=P;this.nextJobDescriptor=0;this.JSC$11504_parkedJobs=[];this.scheduledJobs=new Map};
_.i4=function(Y,S){if(S){var P=_.aQ();Y.signal&&!_.Ld(P,Y.signal)?(P.addListener(Y.signal,function(){Y.processSignal()}),Y.JSC$11504_parkedJobs.push({job:S,
priority:void 0})):I8J(Y,S)}};
a8_=function(Y,S){if(S!==Y.JSC$11504_defaultPriority){Y.JSC$11504_defaultPriority=S;for(var P=_.n(Y.scheduledJobs.values()),u=P.next();!u.done;u=P.next())u=u.value,Y.scheduler.cancelJob(u.jobId),u.jobId=Y.scheduler.addJob(u.jobWrapper,S)}};
_.ZG.prototype.flushJobs=function(){a8_(this,10);this.processSignal()};
_.ZG.prototype.cancel=function(){for(var Y=_.n(this.scheduledJobs),S=Y.next();!S.done;S=Y.next()){var P=_.n(S.value);S=P.next().value;P=P.next().value;this.scheduler.cancelJob(P.jobId);this.scheduledJobs.delete(S)}this.JSC$11504_parkedJobs=[]};
_.ZG.prototype.processSignal=function(){for(var Y=_.n(this.JSC$11504_parkedJobs),S=Y.next();!S.done;S=Y.next())S=S.value,I8J(this,S.job,S.priority);this.JSC$11504_parkedJobs=[]};
var I8J=function(Y,S,P){P=P||Y.JSC$11504_defaultPriority;if(P===10)MG(S);else{var u=Y.nextJobDescriptor++,W=function(){S();Y.scheduledJobs.delete(u)},m=Y.scheduler.addJob(W,P);
Y.scheduledJobs.set(u,{jobWrapper:W,jobId:m,priority:P})}};_.Sr(h$$);var vPX={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};z_8({beforeVisit:function(Y){if(HZ.has(Y.type)){var S;(S=Y.props).idomKey!=null||(S.idomKey=Y.type)}else Y.type.TAG_NAME&&(ys=Y.type.TAG_NAME)},
afterRender:function(Y,S){var P;ys=(P=S==null?void 0:S.type)!=null?P:""},
didPatch:function(){ys=""}});var L13;_.om={};L13={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.om.YtRendererstamperBehavior=[_.l4.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var Y in this.stampDom){var S=this.stampDom[Y];S&&S.id&&this.addReactiveSchema({type:"observe",method:{methodName:Tz1(S.id),args:[{type:"wildcard",path:Y}]}})}else{(Y=(this.constructor.generatedFrom||this).observers)||(Y=[]);for(S in this.stampDom){var P=this.stampDom[S];P&&P.id&&Y.push(Tz1(P.id)+"("+S+".*)")}this.constructor.generatedFrom.observers=Y}},
addStampDomObserverFns_:function(){for(var Y in this.stampDom){var S=this.stampDom[Y];S.id?(this[Tz1(S.id)]=this.rendererStamperObserver_.bind(this,Y,S.id),this.hasDataPath_[Y]=!1):(S=new _.$2("Bad rendererstamper config",this.is+":"+Y),_.p_(S))}},
rendererStamperObserver_:function(Y,S,P){if(P.path==Y){if(P.value===void 0&&!this.hasDataPath_[Y])return;this.hasDataPath_[Y]=P.value!==void 0}this.rendererStamperApplyChangeRecord_(Y,S,P)},
rendererStamperApplyChangeRecord_:function(Y,S,P){var u=this.renderJobsMap_[S],W=null;Y==P.path?(P=P.value,_.eK(P)||(P=P===void 0||P===null?[]:[P]),Y=this.stampDom[Y],Y.mapping&&(W=this.stampDomArray_.bind(this,P,S,Y.mapping,Y.reuseComponents,Y.events,Y.stamperStableList)),u&&u.cancel(),P=Y.usePageScheduler?this.getTaskManager():void 0,u||Y.initialRenderPriority==void 0)?Y.renderPriority==void 0||u||(u=new _.ZG(Y.renderPriority,Y.waitForSignal,P),this.renderJobsMap_[S]=u):(u=new _.ZG(Y.initialRenderPriority,
Y.waitForSignal,P),this.renderJobsMap_[S]=u,W=function(m,J){m();a8_(J,10)}.bind(this,W,u)):W=Y+".splices"==P.path?this.stampDomArraySplices_.bind(this,Y,S,P.value):this.forwardRendererStamperChanges_.bind(this,Y,S,P);
u?_.i4(u,W):W()},
forwardRendererStamperChanges_:function(Y,S,P){var u=P.path.slice(Y.length+1),W=this.getStampContainer_(S),m=u.indexOf("."),J=u.substring(0,m),c=!1,C=0,x=parseInt(J,0);if(J[0]=="#"){c=parseInt(J.substring(1),0);x=this.get(Y);var b=this.get([Y,J]);x[c]==b?C=c:C=x.indexOf(b);c=!0}else isNaN(x)||(C=x,c=!0);c&&(u=u.substring(J.length+1),m=u.indexOf("."));J=_.G5(W).children[C];var T;if(W=(T=J==null?void 0:J.polymerController)!=null?T:J)u="data"+u.slice(m),typeof W.notifyPath!=="function"?_.sf(new _.$2("notifyPath missing",
this.is+": "+Y+", "+S)):P.value?W.notifyPath(u,P.value):W.notifyPath(u)},
stampDomArraySplices_:function(Y,S,P){if(P&&P.indexSplices){var u=this.getStampContainer_(S);if(u){for(var W=_.G5(u),m=EPh(this.stampDom[Y].reuseComponents),J=P.indexSplices.length,c=0;c<J;c++){for(var C=P.indexSplices[c],x=W.children[C.index],b=C.removed.length;b>0;b--)x&&x.parentElement&&(_.G5(x.parentElement).removeChild(x),m&&gPa(x),x=W.children[C.index]);b=this.stampDom[Y].mapping;for(var T=C.index+C.addedCount,K=document.createDocumentFragment(),G=m,v=C.index;v<T;v++){var a=C.object[v],w=b58(b,
a);if(w){var F=b[w];a=a[w];w=this.getComponentName_(F,a);var U=x?HF.has(x):!1;G&&x&&x.is==w&&U?(w=x,this.telemetry_.reuse++,x=x.nextElementSibling):G&&x&&U?(w=this.createComponent_(F,a,m),U=_.G5(x).nextElementSibling,W.insertBefore(w,U),rNa(this.is,W,x,m),x=U):(G=!1,w=this.createComponent_(F,a,m),K.appendChild(w));this.deferRenderStamperBinding_(w,F,a)}else F=new _.$2("Unimplemented type",Y,S,u.tagName,Object.keys(a)[0]),_.p_(F)}W.insertBefore(K,x)}this.flushRenderStamperComponentBindings_();this.stampDom[Y].events&&
_.ms(this.hostElement,"yt-rendererstamper-finished",{container:u})}else Y=new _.$2("Container object not found",S,this.hostElement?this.hostElement.is:""),_.p_(Y)}},
stampDomArray_:function(Y,S,P,u,W,m){var J=this.getStampContainer_(S);if(J)if(S=_.G5(J),u=EPh(u),Y){var c=0,C=0,x;if(m=m===void 0?_.Z4("STAMPER_STABLE_LIST",!1):m||!1)for(x=S.firstElementChild;x&&!HF.has(x)&&Y.length>C;){m=Y[C];var b=b58(P,m);if(b){if(this.getComponentName_(P[b],m[b])!=x.is){var T=this.createComponent_(P[b],m[b],u),K=_.G5(x).nextElementSibling;K?S.insertBefore(T,K):S.appendChild(T);rNa(this.is,S,x,u);x=T}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(x,P[b],m[b]);c++;
C++;x=_.G5(x).nextElementSibling}else C++}GK8(this.is,S,c,u);c=x;if(Y.length>C){m=document.createDocumentFragment();for(b=Y.length;C<b;C++)if(T=Y[C],K=b58(P,T))x=this.createComponent_(P[K],T[K],u),this.deferRenderStamperBinding_(x,P[K],T[K]),m.appendChild(x);c&&_.G5(c).parentNode&&x&&!HF.has(x)?S.insertBefore(m,c):S.appendChild(m)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();W&&_.ms(this.hostElement,"yt-rendererstamper-finished",{container:J})}else GK8(this.is,S,0,
u);else Y=new _.$2("Container object not found",S,this.hostElement?this.hostElement.is:""),_.p_(Y)},
getStampContainer_:function(Y){return this.$&&this.$[Y]||_.I(this.hostElement).querySelector("#"+Y)},
getComponentName_:function(Y,S){return typeof Y==="string"?Y:Y.matcher?Y.matcher.call(this,S):Y.component},
createComponent_:function(Y,S,P){Y=this.getComponentName_(Y,S);try{var u=Vs.has(Y)||HZ.has(Y);if(P&&!u){var W=_.Xh(Y);try{_.PZ(W)}catch(m){P="Failed to clear styles for "+Y+".",m.message&&(P+=" Original error: "+m.message),_.sf(new _.$2(P))}}else W=document.createElement(Y)}catch(m){return W="YtRendererStamperBehavior failed to create "+Y+".",m.message&&(W+=" Original description: "+m.message),m.message="YtRendererStamperBehavior failed to create element",_.d6(m,W),L13.hasOwnProperty(Y)?_.sf(m):_.p_(m),
document.createElement("SPAN")}this.telemetry_.create++;return W},
deferRenderStamperBinding_:function(Y,S,P){this.deferredBindingTasks_.push({component:Y,typeOrConfig:S,data:P})},
flushRenderStamperComponentBindings_:function(){for(var Y=0,S=this.deferredBindingTasks_.length;Y<S;Y++){var P=this.deferredBindingTasks_[Y];if(!P)break;var u=void 0,W=void 0,m=void 0,J=void 0,c=P.component,C=P.typeOrConfig;P=P.data;var x=(J=c.polymerController)!=null?J:c;J=c.loggingStatus;try{J&&(J.isRendererStamper=!0);if(typeof C!=="string"){for(m in C.attributes)C.attributes[m]===!0?c.setAttribute(m,""):C.attributes[m]===!1?c.removeAttribute(m):c.setAttribute(m,C.attributes[m]);for(W in C.params)x[W]=
C.params[W],c!==x&&R_(c.localName,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(u in C.properties){var b=C.properties[u];if(b){var T=Kta(b);x[u]=this.get(T);c!==x&&R_(c.localName,u,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(u==="on-tap"||u==="on-click"){var K=this.get(T);c.addEventListener("click",K);f5a.set(c,{property:u,listener:{type:"element",eventName:"click",handler:K}})}}else{var G=new _.$2("Undefined property binding",u);_.p_(G)}}}if(C.classListBinding){var v=Kta(C.classListBinding),
a=v?this[v]:null;if(a)for(u=0;u<a.length;u++)_.Vm(c,a[u],!0)}x.data=P}finally{J&&(J.isRendererStamper=!1)}if(u=HF.get(c))c.hidden=!1,HF.delete(c),_.wc.cancelJob(u)}this.deferredBindingTasks_.length=0}}];_.tD={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(Y){for(var S=_.Ap.getInstance(),P=_.n(Object.keys(Y)),u=P.next();!u.done;u=P.next()){var W=u.value;u=Y[W];if(this&&this[u]){var m=S.actionRoutingMap.get(W);m||(m=new Map,S.actionRoutingMap.set(W,m));S.registerActionHandler(this,W,this[u].bind(this),m)}else W=Error("id"),W.params=u,_.ik(W)}},
unregisterActionMap:function(Y){_.QZ(_.Ap.getInstance(),Y,this)}}]};var OD=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var eC;var Ys=new Map;var i5E=window.matchMedia("(forced-colors: active)").matches;var w$3;var p$S;var Uj9=new _.yH("LOTTIE_LOADER_TOKEN");_.Sr(QyK);_.AL(_.AI(function(Y){return _.R("ytd-lottie-player",{id:Y.id,hidden:Y.hidden,class:Y.className,"aria-label":Y.ariaLabel,style:"display: block;"},_.R(_.PX,{data:Y.data,animationName:function(){var S;return((S=Y.data().animationConfig)==null?void 0:S.name)||""},
animationRef:function(){return Y.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.wm,
id:_.wm,hidden:_.wm,className:_.wm,ariaLabel:_.wm}});var AD=function(){var Y=_.Z.apply(this,arguments)||this;Y.animationRef={};return Y};
_.r(AD,_.Z);_.z=AD.prototype;
_.z.handlePropertyChange=function(){var Y=this.animatedIcon,S=this.active,P=this.isDarkTheme;if(Y){var u=this.previousActive!==S;this.previousActive=S;this.animationRef.lottieEl?u&&this.toggleAnimation(S,Y.totalFrames):S?this.initializeAnimationAsToggled(Y.lottiePlayerProps,Y.totalFrames):this.initializeAnimationAsUntoggled(Y.lottiePlayerProps);Y.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=Y.type;this.lottiePlayerProps=this.computeLottiePlayerProps(Y,P)}};
_.z.computeLottiePlayerProps=function(Y,S){var P=this.deepCloneLottiePlayerProps(Y);S?(S=Y.nameDarkTheme,Y=Y.pathDarkTheme):(S=Y.name,Y=Y.path);P.animationConfig.name=S;(S=Ys.get(Y))?P.animationConfig.animationData=S:P.animationConfig.path=Y;return P};
_.z.initializeAnimationAsToggled=function(Y,S){Y.animationConfig.initialSegment=[S-1,S]};
_.z.initializeAnimationAsUntoggled=function(Y){Y.animationConfig.initialSegment=void 0};
_.z.toggleAnimation=function(Y,S){if(Y){var P;(P=this.animationRef.lottieEl)==null||P.playSegments([0,S],!0)}else{var u;(u=this.animationRef.lottieEl)==null||u.playSegments([0,1],!0)}};
_.z.deepCloneLottiePlayerProps=function(Y){var S=Object.assign({},Y.lottiePlayerProps.animationConfig);Y=Object.assign({},Y.lottiePlayerProps);Y.animationConfig=S;return Y};
AD.prototype.handlePropertyChange=AD.prototype.handlePropertyChange;_.Q([_.X(),_.k("design:type",Object)],AD.prototype,"animatedIcon",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],AD.prototype,"active",void 0);_.Q([_.X(),_.k("design:type",Boolean)],AD.prototype,"isDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],AD.prototype,"animatedIconType",void 0);_.Q([_.X(),_.k("design:type",Boolean)],AD.prototype,"previousActive",void 0);
_.Q([_.X(),_.k("design:type",Object)],AD.prototype,"lottiePlayerProps",void 0);_.Q([_.X(),_.k("design:type",Object)],AD.prototype,"animationRef",void 0);_.Q([_.zY("animatedIcon","active","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AD.prototype,"handlePropertyChange",null);AD=_.Q([_.r0({is:"yt-animated-icon",disableElementRegistration:!0})],AD);
_.A(AD,"yt-animated-icon",function(){if(p$S===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;w$3===void 0&&(w$3=document.createElement("template"));var u=w$3;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);p$S=Y}Y=p$S;return Y},{mode:2});var F16;var sP_;var yNK=_.AI(function(Y){var S=_.yZ(),P=pE(function(){return{value:null}});
_.aI(function(){var W;(W=P.value)==null||W.cancel()});
var u=_.fJ(Y.data,{equals:function(W,m){return W.iconName===m.iconName&&W.iconStyle===m.iconStyle&&W.iconSize===m.iconSize&&W.iconSetName===m.iconSetName&&W.iconSelected===m.iconSelected}},"aoiXAb");
_.D6(function(){var W,m=(W=Y.options)==null?void 0:W.call(Y);MIa(S,P,u(),m)});
return _.R("span",{class:"yt-icon-shape",el:S})},"i");
yNK.idomCompat=!0;var Peh=["youtube_fill","youtube_outline"];var dpJ=new _.fD({type:"iconset",value:void 0}),Ue=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.iconName="";Y.iconsetName="yt-icons";Y.iconset=null;Y.missingIconSet=!1;Y.iconType=null;Y.iconShapeDataSignal=_.qb(void 0,void 0,"RQ9kUb");Y.renderingOptionsSignal=_.qb({iconWidth:"100%",iconHeight:"100%",iconFilter:Y.iconFilter},void 0,"qtx8Ef");Y.wizHasRendered=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(Ue,_.Z);_.z=Ue.prototype;_.z.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.isDarkTheme=Y)};
_.z.handlePropertyChange=function(){var Y=this,S,P,u,W,m,J,c,C,x,b,T;return _.B(function(K){switch(K.nextAddress){case 1:if(S=!Y.icon&&!Y.iconName||!Y.isAttached)return K.return();P=Y;u=P.icon;W=P.size;m=P.defaultToFilled;J=P.active;c=P.targetContainer;Y.toggleContainerClass(c);_.f("kevlar_use_wil_icons")&&u&&(C=Ehh(u),C.length?_.f("kevlar_icon_type_fix_killswitch")?(x=C[1].toUpperCase(),Y.iconType=md6[x],Y.iconType||(Y.iconType=C[1])):Y.iconType=C[1]:Y.iconType=null);if(u){K.jumpTo(2);break}Y.iconsetName=
"";Y.iconName="";return _.q(K,Y.renderIcon(c,u),3);case 3:return K.return();case 2:b=Y.computeIcon(u);T=Ehh(b);T.length&&(Y.iconsetName=T[0],Y.iconName=T[1]);if(!_.f("kevlar_use_wil_icons")){K.jumpTo(4);break}return _.q(K,Y.getIconShapeData(),5);case 5:Y.iconShapeData=K.yieldResult;case 4:if(Y.shouldRenderIconShape(c)){K.jumpTo(6);break}return _.q(K,Y.determineIconSet(b,J,m,W,c),6);case 6:return _.q(K,Y.renderIcon(c,u),0)}})};
_.z.toggleContainerClass=function(Y){Y?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.z.computeIcon=function(Y){return!_.f("default_to_innertube_icon")||Y.indexOf(":")>0?Y:_.u2(Y)};
_.z.determineIconSet=function(Y,S,P,u){var W=this;return _.B(function(m){return m.nextAddress==1?_.f("kevlar_system_icons")||_.X3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.X3("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.q(m,W.switchToYtSysIconset(Y,S,P,u),3):m.jumpTo(2):m.nextAddress!=2?m.return():_.q(m,W.useYtSysIconsetForMissingIcons(Y,S,P,u),0)})};
_.z.switchToYtSysIconset=function(Y,S,P,u){var W=this,m,J,c,C,x,b,T;return _.B(function(K){switch(K.nextAddress){case 1:if(!Y||W.iconsetName!=="yt-icons"&&W.iconsetName!=="yt-sys-icons"){K.jumpTo(0);break}m=Ehh(Y);J=m[1];J=_.ak1(J);_.f("enable_polymer_icons_replace_underscores_dash")&&J.includes("_filled")&&(J=J.replace(/_filled/g,"-filled"));return _.q(K,PF(J,!0),3);case 3:return c=K.yieldResult,_.q(K,PF(J,!1),4);case 4:if((C=K.yieldResult)||S&&c)W.iconsetName="yt-sys-icons";W.iconName=W.getIconName(J,
S,P,C,c);if(u===24){K.jumpTo(0);break}x="yt-sys-icons"+u+":"+W.iconName;return _.q(K,PF(x,!1,!0),6);case 6:return b=K.yieldResult,_.q(K,PF(x,!0,!0),7);case 7:T=K.yieldResult;W.iconName=W.getIconName(J,S,P,b,T);if(!S&&b||S&&T)W.iconsetName="yt-sys-icons"+u;_.Yt(K)}})};
_.z.getIconName=function(Y,S,P,u,W){Y.includes("-filled")&&(Y=Y.replace("-filled",""));return W&&(S||P)?Y+"-filled":Y};
_.z.useYtSysIconsetForMissingIcons=function(Y,S,P,u){var W=this,m,J;return _.B(function(c){if(c.nextAddress==1)return W.iconsetName!=="yt-icons"?c.jumpTo(0):_.q(c,PF(W.iconName,!1,!1,!0),3);if(c.nextAddress!=4)return m=c.yieldResult,_.q(c,PF(W.iconName,!1),4);J=c.yieldResult;if(m||!J)return c.jumpTo(0);W.iconsetName="yt-sys-icons";return _.q(c,W.switchToYtSysIconset(Y,S,P,u),0)})};
_.z.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.z.getIconManager=function(){return _.B(function(Y){try{return Y.return(_.E().resolve(_.WF))}catch(S){return Y.return(new Promise(function(P){_.aQ().parkOrScheduleJob(function(){P(_.E().resolve(_.WF))},2,"ci")}))}})};
_.z.getIconShapeData=function(){var Y=this,S,P,u,W,m,J;return _.B(function(c){if(c.nextAddress==1){if(!Y.iconType)return c.return(void 0);S=Y.iconType.toLowerCase();P=S.endsWith("_filled")||S.endsWith("-filled");return _.q(c,Y.getIconManager(),2)}u=c.yieldResult;W=Y.active||Y.defaultToFilled||P?"youtube_fill":"youtube_outline";m={iconName:S,iconStyle:W,iconSize:Y.size,iconSetName:Y.iconsetName};J=!!u.resolveIcon(m);J||(m.iconSize=void 0,J=!!u.resolveIcon(m));!J&&P&&(m.iconName=S.substring(0,S.length-
7),m.iconSize=Y.size,J=!!u.resolveIcon(m),J||(m.iconSize=void 0,J=!!u.resolveIcon(m)));J||(m.iconStyle=void 0,J=!!u.resolveIcon(m));J||_.sf(new _.$2("Icon not supported",{iconName:m.iconName,iconStyle:m.iconStyle,iconSize:m.iconSize,iconType:S}));return c.return(J?m:void 0)})};
_.z.shouldRenderIconShape=function(Y){if(!_.f("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;Y=this.getContainer(Y);return!oPX(Y,this.icon)};
_.z.renderIcon=function(Y,S){var P=this,u,W,m,J,c,C,x,b;return _.B(function(T){switch(T.nextAddress){case 1:if(S&&P.icon!==S)return T.return();u=P.getContainer(Y);W=oPX(u,P.icon);if(P.shouldRenderIconShape(Y)&&P.iconType)return P.applyIconShape(W,u),T.return();P.removeIconShape();if(!u)return T.return();P.iconName===""&&P.iconset&&u&&(P.removeStaticIcon(P.iconset,u),W&&P.removeAnimatedIcon(u));if(P.iconName===""&&P.iconset||!P.iconsetName||!dpJ)return T.return();P.iconset=dpJ.byKey(P.iconsetName);
if(!P.iconset)return P.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.up(P,P.onIconsetAdded)),T.return();P.missingIconSet&&(P.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.up(P,P.onIconsetAdded)));J=(m=W||P.isAnimatedIcon?Z5h(P.icon):void 0)&&!m.lazyLoad;C=m&&((c=m)==null?void 0:c.lazyLoad)&&(m.lottiePlayerProps.animationConfig.animationData?!0:Ys.get(P.isDarkTheme?m.pathDarkTheme:m.path)?!0:!1);if(J||C)return P.applyAnimatedIcon(u,m,P.iconset),T.return();if(C||
(x=m)==null||!x.lazyLoad){T.jumpTo(2);break}b=ANh(m,P.isDarkTheme);P.applyStaticIcon(P.iconset,u,P.iconName,Y,W);return _.q(T,b,3);case 3:return _.q(T,P.renderIcon(P.targetContainer,P.icon),4);case 4:return T.return();case 2:P.applyStaticIcon(P.iconset,u,P.iconName,Y,W),_.Yt(T)}})};
_.z.getContainer=function(Y){var S,P=(S=dc8(this.hostElement))==null?void 0:S.host;S=!!P&&!!P.polymerController;if(!Y||S)return Y?this.getTargetContainer(Y,P):this.hostElement};
_.z.getTargetContainer=function(Y,S){var P=_.I(S).querySelector("#"+Y);P||(Y=new _.$2("yt-icon container missing",S.is,Y),_.p_(Y));return P};
_.z.applyStaticIcon=function(Y,S,P,u,W){W&&this.removeAnimatedIcon(S);this.removeIconShape();W=W&&!!this.iconType&&!!this.iconShapeData&&_.f("kevlar_use_wil_icons");try{W?this.applyIconShape(!1,S):Y.applyIcon(S,P)}catch(m){this.handleError(m,u,S)}};
_.z.applyIconShape=function(Y,S){this.iconset&&S&&(this.removeStaticIcon(this.iconset,S),Y&&this.removeAnimatedIcon(S));Y={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var P=_.n(this.iconShapeDataSignal);S=P.next().value;P=P.next().value;var u=_.n(this.renderingOptionsSignal),W=u.next().value;u=u.next().value;P(this.iconShapeData);u(Y);if(!this.wizHasRendered)for(this.wizHasRendered=!0,Y=_.n(Nz1(S,W)).next().value;Y.firstChild;)_.I(this.hostElement).appendChild(Y.firstChild)};
_.z.removeIconShape=function(){if(_.f("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.z.removeStaticIcon=function(Y,S){Y.removeIcon(S)};
_.z.applyAnimatedIcon=function(Y,S,P){this.removeStaticIcon(P,Y);this.removeIconShape();var u;P=this.animatedIconElement&&((u=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:u.type)===S.type;if(this.animatedIconElement&&P){this.animatedIconElement.polymerController.animatedIcon=S;var W;((W=this.animatedIconElement)==null?void 0:W.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(Y),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=S,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.f("kevlar_use_wil_icons")?Y.insertBefore(this.animatedIconElement,Y.childNodes[0]):(Y=_.I(Y),Y.insertBefore(this.animatedIconElement,Y.childNodes[0]))};
_.z.removeAnimatedIcon=function(Y){_.f("kevlar_use_wil_icons")?this.animatedIconElement&&Y.contains(this.animatedIconElement)&&Y.removeChild(this.animatedIconElement):(Y=_.I(Y),this.animatedIconElement&&Y.contains(this.animatedIconElement)&&Y.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.z.handleError=function(Y,S,P){_.d6(Y,this.iconName,S,P);S=oPX(P,this.icon);var u=!1;window.location.href.includes("JpymaW6Lh2w")?u=!0:P._svgIcon&&(P=(P=P._svgIcon.parentNode)?P.tagName:"unknown",_.d6(Y,P),P==="YT-ICON"&&Y.name==="NotFoundError"?u=!0:Y.name==="NotFoundError"&&S&&(u=!0));u?_.sf(Y):_.p_(Y)};
_.y6.Object.defineProperties(Ue,{template:{configurable:!0,enumerable:!0,get:function(){if(sP_===void 0){var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;
F16===void 0&&(F16=document.createElement("template"));var u=F16;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);sP_=Y}Y=sP_;return Y}}});
Ue.prototype.handlePropertyChange=Ue.prototype.handlePropertyChange;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Ue.prototype,"actionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",String)],Ue.prototype,"icon",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Ue.prototype,"active",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Ue.prototype,"defaultToFilled",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Ue.prototype,"isAnimatedIcon",void 0);
_.Q([_.X({value:24}),_.k("design:type",Number)],Ue.prototype,"size",void 0);_.Q([_.X({value:""}),_.k("design:type",String)],Ue.prototype,"targetContainer",void 0);_.Q([_.X(),_.k("design:type",Object)],Ue.prototype,"animatedIconElement",void 0);_.Q([_.X(),_.k("design:type",Object)],Ue.prototype,"isDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ue.prototype,"ariaHidden",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],Ue.prototype,"ariaLabel",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],Ue.prototype,"role",void 0);_.Q([_.X(),_.k("design:type",String)],Ue.prototype,"style",void 0);_.Q([_.X(),_.k("design:type",String)],Ue.prototype,"iconFilter",void 0);_.Q([_.zY("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],Ue.prototype,"handlePropertyChange",null);
Ue=_.Q([_.r0({is:"yt-icon",noInjection:!0})],Ue);var l8u;var X$_=function(){var Y=document.body,S=Y.appendChild;if(l8u===void 0){var P=document.createElement("template");_.h(P,'\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>');
l8u=P}P=l8u;S.call(Y,P.content)};
document.body?X$_():window.addEventListener("DOMContentLoaded",X$_);var Zpu,ipd=function(){return Zpu!==void 0?Zpu:Zpu=document.createElement("template")};
document.head.appendChild(ipd().content);var obf,tet=function(){return obf!==void 0?obf:obf=document.createElement("template")};
document.head.appendChild(tet().content);var ARU;_.Tz=new _.yH("KEY_MANAGER_TOKEN");var YTK={duration:1E3,easing:"ease",fill:"forwards"};_.Sr(O58);var Upt=_.WX(_.zI);_.Sr(_.zI);_.CR=_.AI(function(Y){var S=_.Ms(Y.ref),P=Y.aTagConfig?Y.aTagConfig:_.fJ(function(){var m,J,c,C,x,b;var T=(b=_.vF((C=Y.command)==null?void 0:C.call(Y)))!=null?b:(x=Y.command)==null?void 0:x.call(Y);return _.Ie({innertubeCommand:T,skipOnClick:(m=Y.skipOnClick)==null?void 0:m.call(Y),stopPropagation:(J=Y.dangerousStopPropagation)==null?void 0:J.call(Y),defaultTarget:(c=Y.target)==null?void 0:c.call(Y)})||{}},void 0,"gnrRge");
_.D6(function(){S.value._data=P()._data;S.value.params=P().params});
var u=_.mR(function(m){var J,c;return void((c=(J=P()).onpointerdown)==null?void 0:c.call(J,m))}),W=_.mR(function(m){var J,c;
return void((c=(J=P()).onclick)==null?void 0:c.call(J,m))});
return _.R("a",{el:S,href:function(){return P().href$},
rel:function(){return P().rel$},
class:function(){var m,J;return(J=P().className)!=null?J:(m=Y.className)==null?void 0:m.call(Y)},
style:function(){var m;if((m=Y.style)==null?0:m.call(Y))return Y.style();var J;return((J=Y.disabled)==null?0:J.call(Y))?"pointer-events:none":""},
"aria-haspopup":function(){return!!P()["aria-haspopup$"]},
"force-new-state":nR(function(){return P()["force-new-state$"]}),
title:nR(function(){var m,J;return(J=P().title$)!=null?J:(m=Y.title)==null?void 0:m.call(Y)}),
role:nR(function(){return P().role$}),
target:nR(function(){return P().target$}),
dir:nR(function(){var m;return((m=Y.dir)==null?0:m.call(Y))?Y.dir():P().dir}),
tabindex:function(){var m;return P().tabindex$?Number(P().tabindex$):(m=Y.tabIndex)==null?void 0:m.call(Y)},
"aria-hidden":function(){var m,J;return(J=P()["aria-hidden$"])!=null?J:(m=Y.ariaHidden)==null?void 0:m.call(Y)},
"aria-label":function(){var m,J;return(J=P()["aria-label$"])!=null?J:(m=Y.ariaLabel)==null?void 0:m.call(Y)},
"aria-current":Y.ariaCurrent,"aria-labelledby":Y.ariaLabelledby,"aria-describedby":Y.ariaDescribedby,"aria-selected":Y.ariaSelected,"tab-identifier":Y.tabIdentifier,"on:pointerdown":u,"on:click":W},Y.children)},"j");var QPh=function(Y,S){this.fillAnimation=new Animation(ubu(Y),document.timeline);this.strokeAnimation=new Animation(W3a(S),document.timeline)};
QPh.prototype.play=function(){var Y,S;(S=(Y=this.fillAnimation).play)==null||S.call(Y);var P,u;(u=(P=this.strokeAnimation).play)==null||u.call(P)};
QPh.prototype.cancel=function(){var Y,S;(S=(Y=this.fillAnimation).cancel)==null||S.call(Y);var P,u;(u=(P=this.strokeAnimation).cancel)==null||u.call(P)};_.RF=_.AI(function(Y){var S=Y.model;var P=Y.pointerDownEvent;var u=Y.pointerUpEvent;var W=Y.pointerLeaveEvent;Y=_.Ms();var m=_.Jg({"border-radius":function(){return S().borderRadius}}),J=_.Ms(),c=_.Ms(),C=_.n(_.ji(function(){return(u==null?0:u())||(W==null?0:W())?!1:!(P==null||!P())||!1})),x=C.next().value,b=C.next().value,T=void 0,K=function(){!T&&c.value&&J.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(T=new QPh(c.value,J.value));
var U;(U=T)==null||U.play()},G=function(){var U;
(U=T)==null||U.cancel()},v=function(){var U;
(U=T)==null||U.cancel()};
_.D6(function(){(u==null?0:u())&&K()});
_.D6(function(){(P==null?0:P())&&G()});
_.D6(function(){(W==null?0:W())&&v()});
C=_.mR(function(){K();b(!1)});
var a=_.mR(function(){G();b(!0)}),w=_.mR(function(){v();
b(!1)});
_.aI(function(){if(T){var U;(U=T)==null||U.cancel();T=void 0}});
var F={};x=_.Si("yt-spec-touch-feedback-shape",function(){return muh(S().color)},(F["yt-spec-touch-feedback-shape--focused"]=function(){return!!S().focused&&!S().disabled},F["yt-spec-touch-feedback-shape--circular"]=function(){return!!S().circular},F["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!S().isExtended},F["yt-spec-touch-feedback-shape--down"]=x,F["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!S().triggerEvents},F));
return _.R("yt-touch-feedback-shape",{style:_.Jg({"border-radius":"inherit"})},_.R("div",{el:Y,class:x,style:_.Jg({"margin-top":function(){return S().customTopExtend?"-"+S().customTopExtend+"px":void 0}}),
"on:mousedown":a,"on:mouseup":C,"on:pointerleave":w,"on:touchstart":a,"on:touchend":C,"aria-hidden":!0},_.R("div",{class:"yt-spec-touch-feedback-shape__stroke",style:m,el:J}),_.R("div",{class:"yt-spec-touch-feedback-shape__fill",style:m,el:c})))},"k");
_.RF.idomCompat=!0;var khh={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 Qt=_.Rh();Qt=Qt.toLowerCase();if(_.C8(Qt,"android")){var MeS=Qt.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);MeS&&parseFloat(MeS[1])<100||Qt.match("("+Object.keys(khh).join("|")+")")};var yRs=_.AI(function(Y){return _.R(_.gw,{cond:Y.aTagConfig,then:function(S){return _.R(_.CR,{aTagConfig:S,disabled:Y.disabled,className:Y.className,style:Y.style,title:Y.title,ariaLabel:Y.ariaLabel,ariaCurrent:function(){var P,u;return((P=Y.toggleable)==null?void 0:P.call(Y))&&((u=Y.toggled)==null?void 0:u.call(Y))}},Y.children)},
else:function(){return _.R("button",{"on:click":_.mR(function(S){var P;return(P=Y.onClick)==null?void 0:P.call(Y,S)}),
class:Y.className,title:Y.title,style:Y.style,disabled:Y.disabled,"aria-pressed":function(){var S,P;return((S=Y.toggleable)==null?0:S.call(Y))?!((P=Y.toggled)==null||!P.call(Y)):void 0},
"aria-label":Y.ariaLabel,"aria-disabled":Y.visiblyDisabled,"aria-hidden":Y.ariaHidden,tabindex:Y.tabIndex},Y.children)}})},"l"),Hpm=_.AI(function(Y){var S=Y.data;
var P=Y.hasIconLeading;var u=Y.hasIconLeadingTrailing;var W=Y.hasIconTrailing;var m=Y.iconButton;var J=Y.iconClassName;var c=Y.secondaryIconClassName;var C=Y.icon;var x=Y.secondaryIcon;var b=Y.textContentClassName;return _.R(kA,{className:"",style:"display: inherit; justify-content: center"},_.R(_.gw,{cond:function(){return C&&(P()||u()||(m==null?void 0:m()))},
then:function(){return _.R(kA,null,_.R("div",{class:J,"aria-hidden":"true"},C==null?void 0:C()))}}),_.R(_.gw,{cond:function(){return(S().buttonText||S().animatedTextProps||S().formattedButtonText)&&!(m==null?0:m())},
then:function(){return _.R(kA,null,_.R(Ns3,{className:b,iconPosition:function(){return S().iconPosition},
text:function(){return S().buttonText},
oneOffCustomTextWrap:function(){return S().oneOffCustomTextWrap},
formattedButtonText:function(){return S().formattedButtonText},
animatedTextProps:function(){return S().animatedTextProps}}))}}),_.R(_.gw,{cond:W,
then:function(){return _.R(kA,null,_.R("div",{class:J},C==null?void 0:C()))}}),_.R(_.gw,{cond:u,
then:function(){return _.R(kA,null,_.R("div",{class:c},x==null?void 0:x()))}}),_.R(_.gw,{cond:function(){return!S().disabled&&!0},
then:function(){return _.R(_.RF,{model:function(){return{color:B3a(S())}}})}}))},"m"),Ns3=_.AI(function(Y){var S=function(){var P,u;
return((P=Y.iconPosition)==null?void 0:P.call(Y))==="icon-with-label"||((u=Y.oneOffCustomTextWrap)==null?void 0:u.call(Y))};
return _.R("div",{class:Y.className,"aria-hidden":function(){var P,u,W;return((P=Y.ariaHidden)==null?void 0:P.call(Y))&&(!((u=Y.animatedTextProps)==null||!u.call(Y))||!((W=Y.formattedButtonText)==null||!W.call(Y)))}},_.R(_.hA,null,_.R(_.rw,{when:function(){var P;
return(P=Y.animatedTextProps)==null?void 0:P.call(Y)}},function(){return _.R(Upt,{numberText:function(){return Y.animatedTextProps().numberText},
numberValue:function(){return Y.animatedTextProps().numberValue},
heightPx:function(){return Y.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return Y.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return Y.animatedTextProps().shouldAnimate},
forceRollUp:function(){return Y.animatedTextProps().forceRollUp}})}),_.R(_.rw,{when:function(){var P;
return(P=Y.formattedButtonText)==null?void 0:P.call(Y)}},function(){return _.R(_.qw,{text:function(){return Object.assign({},Y.formattedButtonText(),{lineBreakMode:S()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":Y.formattedButtonText().lineBreakMode,
alignment:S()?"TEXT_ALIGNMENT_CENTER":Y.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!S()}})}),_.R(_.GB,null,function(){return Y.text})))},"n"),Ve6=_.AI(function(Y){return _.R(_.gw,{cond:Y.hasLabel,
then:function(){var S;return _.R("label",{class:Y.className},Y.children,(S=Y.textContent)==null?void 0:S.call(Y))},
else:function(){return Y.children}})},"o"),kA=_.AI(function(Y){return Y.children},"p");var eM1=Hh("stamper-context");_.Sr(gCu);var HL=_.AI(function(Y){var S=Y.data;var P=Y.icon;var u=Y.iconName;var W=Y.secondaryIcon;var m=Y.secondaryIconName;var J=Y.focusedOverride;K3K();var c=nC9(S),C=c.size,x=c.style;Y=c.disabled;var b=c.onTap,T=c.alignByText,K=c.aTagConfig,G=c.customColors,v=c.segmentedPosition,a=c.toggled,w=c.toggleable,F=c.accessibilityLabel,U=c.onToggle,V=c.iconPosition,M=c.oneOffCustomTextWrap,zJ=c.disableTextEllipsis,O=c.tooltipText,ca=c.ariaHidden,hu=c.tabIndex,ah=c.buttonText,va=c.formattedButtonText,yX=c.animatedTextProps,
la=Jlh(S,P,W,u,m,J),w1=la.type;P=la.shouldFocus;u=la.hasIconLeading;W=la.hasIconTrailing;m=la.hasIconLeadingTrailing;var U9=la.hasIconOnly;J=la.hasIconOnly40;var nu=la.hasIconWithLabel;c=la.iconButton;var Yc=la.visiblyDisabled,tu=la.overrideSmallSizeIcon,$_=la.iconToRender;la=la.secondaryIconToRender;var fu={},G3={};return _.R(Ve6,{className:_.Si("yt-spec-button-shape-with-label",(fu["yt-spec-button-shape-with-label--is-overlay"]=function(){return x()==="overlay"||x()==="overlay-dark"},fu)),
hasLabel:nu,textContent:function(){return _.R(Ns3,{text:ah,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:M,iconPosition:V,formattedButtonText:va,animatedTextProps:yX})}},_.R(yRs,{aTagConfig:K,
className:_.Si("yt-spec-button-shape-next",function(){return CP9(w1())},function(){return Yc()?void 0:qT$(x())},function(){return R98(C())},(G3["yt-spec-button-shape-next--disabled"]=Yc,G3["yt-spec-button-shape-next--focused"]=P,G3["yt-spec-button-shape-next--icon-trailing"]=W,G3["yt-spec-button-shape-next--icon-leading"]=u,G3["yt-spec-button-shape-next--icon-leading-trailing"]=m,G3["yt-spec-button-shape-next--icon-button"]=function(){return U9()||nu()},G3["yt-spec-button-shape-next--icon-only-default"]=
J,G3["yt-spec-button-shape-next--align-by-text"]=T,G3["yt-spec-button-shape-next--segmented-start"]=function(){return v()==="start"},G3["yt-spec-button-shape-next--segmented-end"]=function(){return v()==="end"},G3["yt-spec-button-shape-next--override-small-size-icon"]=tu,G3["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=M,G3["yt-spec-button-shape-next--disable-text-ellipsis"]=zJ,G3["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=clX(),G3)),
style:function(){return bUK(G()).style},
onClick:function(wd){b==null||b(wd);w()&&(U==null||U(wd))},
disabled:Y,ariaLabel:F,toggleable:w,toggled:a,title:function(){var wd;return(wd=O())!=null?wd:""},
visiblyDisabled:Yc,ariaHidden:ca,tabIndex:hu},_.R(Hpm,{data:S,hasIconLeading:u,hasIconLeadingTrailing:m,hasIconTrailing:W,iconButton:c,icon:$_,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:la})))},"q");
HL.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var et_=_.AI(function(Y){var S=Y.data;var P=Y.id;var u=Y.hidden;var W=Y.disableUpgrade;var m=Y.className;var J=Y.icon;var c=Y.secondaryIcon;var C=Y.iconName;var x=Y.secondaryIconName;Y=_.n(_.qb(!1,void 0,"O7k8w"));var b=Y.next().value,T=Y.next().value,K=function(){var v=_.E().resolve(_.PQ(_.Tz));v&&T(v.isKeyBoardInUse())},G=function(){T(!1)};
Y=_.Ms(function(v){if((W==null||!W())&&_.E().resolve(_.PQ(_.Tz)))return v.addEventListener("focusin",K),v.addEventListener("focusout",G),function(){v.removeEventListener("focusin",K);v.removeEventListener("focusout",G)}});
return _.R("yt-button-shape",{el:Y,id:P,class:m,hidden:function(){return(u==null?void 0:u())||(W==null?void 0:W())}},_.R(_.gw,{cond:function(){return!(W==null?0:W())},
then:function(){return _.R(HL,{data:S,icon:J,secondaryIcon:c,iconName:C,secondaryIconName:x,focusedOverride:b})}}))},"r");
_.f("web_wiz_button_shape")&&_.AL(et_,"yt-button-shape",{props:{data:_.wm,id:_.wm,hidden:_.wm,disableUpgrade:_.wm,className:_.wm,icon:_.tL,secondaryIcon:_.tL,iconName:_.wm,secondaryIconName:_.wm},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss"])});var MC=function(){var Y=_.Z.apply(this,arguments)||this;Y.keyboardFocused=!1;return Y};
_.r(MC,_.Z);MC.prototype.onFocus=function(){var Y=_.E().resolve(_.PQ(_.Tz));Y&&(this.keyboardFocused=Y.isKeyBoardInUse())};
MC.prototype.onBlur=function(){this.keyboardFocused=!1};
MC.prototype.renderIdom=function(){var Y=this;if(this.data){var S=cX(this.data,!!this.iconName),P=xuU(this.data),u=function(){var m;fs("yt-icon",{icon:Y.iconName,active:(m=Y.data)==null?void 0:m.toggled,size:S,style:"width: "+S+"px; height: "+S+"px;",iconFilter:P},kd)},W=function(){var m;
fs("yt-icon",{icon:Y.secondaryIconName,active:(m=Y.data)==null?void 0:m.toggled,size:S,style:"width: "+S+"px; height: "+S+"px;",iconFilter:P},kd)};
this.data.focused=this.keyboardFocused;_.f("web_reactive_button_shape_in_c3po")?l2(HL)({data:this.data,iconName:this.iconName,secondaryIconName:this.secondaryIconName}):DuE(this.data,u,W);_.ms(this.hostElement,"yt-renderidom-finished")}};
_.y6.Object.defineProperties(MC,{template:{configurable:!0,enumerable:!0,get:function(){if(ARU===void 0){var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);Y.content.insertBefore(tet().content.cloneNode(!0),Y.content.firstChild);Y.content.insertBefore(ipd().content.cloneNode(!0),Y.content.firstChild);ARU=Y}Y=ARU;return Y}}});
MC.prototype.onBlur=MC.prototype.onBlur;MC.prototype.onFocus=MC.prototype.onFocus;_.Q([_.p(GLu),_.k("design:type",Object)],MC.prototype,"ytIdomTemplatingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],MC.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],MC.prototype,"iconName",void 0);_.Q([_.X(),_.k("design:type",String)],MC.prototype,"secondaryIconName",void 0);_.Q([_.X(),_.k("design:type",Object)],MC.prototype,"keyboardFocused",void 0);
_.Q([_.WZ("focusin"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MC.prototype,"onFocus",null);_.Q([_.WZ("focusout"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MC.prototype,"onBlur",null);MC=_.Q([_.r0({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.f("web_wiz_button_shape")})],MC);_.AL(_.AI(function(Y){function S(){P().seconds&&m(wgh({seconds:Number(P().seconds)-Date.now()/1E3}))}
var P=Y.targetTimestamp;Y=Y.className;var u=_.n(_.qb("",void 0,"U1Q8Ae")),W=u.next().value,m=u.next().value;_.Ij(function(){S();var J=setInterval(function(){S()},1E3);
_.aI(function(){clearInterval(J)})});
return _.R("yt-countdown",{class:_.Si("ytCountDownHost",Y)},_.R("div",null,W))},"s"),"yt-countdown",{props:{targetTimestamp:_.wm,
className:_.tL}});_.aq=_.AI(function(Y){var S=Y.data;var P=Y.className;var u=Y.style;var W=Y.useOutlinedIcon;var m=Y.buttonOverrides;var J=Y.animatedTextProps;var c=Y.onClick;var C=_.Ms(function(w){return function(){hds(_.YA(),w)}}),x=function(){return S().iconName},b,T=(b=_.E().resolve(_.PQ(_.F5)))==null?void 0:b(),K=function(){var w=S();
var F=m==null?void 0:m(),U=J==null?void 0:J();if(w){var V=L3a(w.type);var M=!!w.title||!!w.titleFormatted;var zJ=!(!w.iconName&&!w.iconImage);M=zJ&&!M?"icon-only":zJ?w.iconTrailing||w.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;M==="icon-only-40"&&(V="text");var O,ca=(O=F==null?void 0:F.disabled)!=null?O:w.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||w.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";O=Object;zJ=O.assign;var hu=w.title,ah=w.titleFormatted;U=U&&U.numberText&&
!isNaN(Number(U.numberValue))?U:void 0;var va=w.accessibilityText,yX=a1K(w.style),la=w1$(w.state),w1=p1U(w.buttonSize),U9=I1u(w,C,ca,c);ca=ca&&!w.onDisabledTap;var nu=_.Ie({elementsCommand:w.onTap,forceNewState:!0});nu=GhU(nu)?nu:void 0;var Yc=w.customFontColor,tu=w.customBackgroundColor;var $_=w.customBorderColor;var fu=w.customDarkThemeFontColor,G3=w.customDarkThemeBackgroundColor,wd=w.customDarkThemeBorderColor;Yc=T&&fu?fu:Yc;tu=T&&G3?G3:tu;$_=T&&wd?wd:$_;$_={color:Yc?_.hK(Yc):void 0,backgroundColor:tu?
_.hK(tu):void 0,borderColor:$_?_.hK($_):void 0};w=zJ.call(O,{},{buttonText:hu,formattedButtonText:ah,animatedTextProps:U,accessibilityLabel:va,style:yX,type:V,state:la,size:w1,iconPosition:M,onTap:U9,disabled:ca,aTagConfig:nu,customColors:$_,tooltipText:w.tooltip},F)}else w={style:"mono",type:"text",state:"active",size:"M"};w.focused=a();return w},G=function(){return cX(K(),!!S().iconName)};
Y=_.n(_.qb(!1,void 0,"JjUrEe"));b=Y.next().value;var v=Y.next().value,a=b;Y=_.mR(function(){var w=_.E().resolve(_.PQ(_.Tz));w&&v(w.isKeyBoardInUse());return!1});
b=_.mR(function(){v(!1);return!1});
_.D6(function(){var w,F=_.g(S==null?void 0:(w=S())==null?void 0:w.onVisible,_.hL);F&&_.DZ(F,{disableClickTracking:!0})});
_.LE(function(){C.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var w=S().targetId;w&&_.DQU(_.YA(),w,C.value)});
return _.R("button-view-model",{el:C,class:_.Si("yt-spec-button-view-model",P),"on:focusin":Y,"on:focusout":b},_.R(_.gw,{cond:function(){return S().iconImage?{sources:[S().iconImage]}:void 0},
then:function(w){return _.R(HL,{data:K,icon:function(){return _.R(_.ZZ,{data:w,alt:"",targetWidth:G,targetHeight:G,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.R(HL,{data:K,icon:function(){return _.R(_.BX,{icon:x,active:function(){return(W==null?0:W())?!1:K().toggled},
animateIcon:function(){var w;return!!(u==null?0:(w=u())==null?0:w.animateIcon)},
size:G})}})}}))},"t");
_.aq.idomCompat={callbacks:{onClick:!0}};_.AL(_.AI(function(Y){return _.R("yt-button-view-model",{id:Y.id,class:_.Si(Y.scopingClassName,Y.classes),icon:function(){var S;return(S=Y.icon)==null?void 0:S.call(Y)},
"dialog-dismiss":function(){var S;return((S=Y.dialogDismiss)==null?0:S.call(Y))?"":void 0}},_.R(_.aq,{data:function(){var S;
return(S=Y.data)==null?void 0:S.call(Y)},
className:function(){var S;return(S=Y.className)==null?void 0:S.call(Y)},
style:function(){var S;return(S=Y.style)==null?void 0:S.call(Y)},
useOutlinedIcon:function(){var S;return(S=Y.useOutlinedIcon)==null?void 0:S.call(Y)},
buttonOverrides:function(){var S;return(S=Y.buttonOverrides)==null?void 0:S.call(Y)},
animatedTextProps:function(){var S;return(S=Y.animatedTextProps)==null?void 0:S.call(Y)},
onClick:function(S){var P;return(P=Y.onClick)==null?void 0:P.call(Y,S)}}))},"u"),"yt-button-view-model",{props:{data:_.wm,
className:_.wm,style:_.wm,useOutlinedIcon:_.wm,buttonOverrides:_.wm,animatedTextProps:_.wm,onClick:_.tL,scopingClassName:_.wm,id:_.wm,icon:_.wm,dialogDismiss:_.wm,classes:_.wm}});var NC=function(){var Y=_.Z.apply(this,arguments)||this;Y.isGoalActive=!0;return Y};
_.r(NC,_.Z);NC.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
NC.prototype.progressBarChanged=function(){var Y=_.I(this.hostElement).querySelector("#progress-bar-progress"),S,P,u,W=(u=Number((S=this.creatorGoalState)==null?void 0:S.currentGoalCount)/Number((P=this.creatorGoalState)==null?void 0:P.totalGoalCount)*100)!=null?u:0,m;Y.style.width=((m=Math.min(W,100))!=null?m:0)+"%"};
NC.prototype.goalStateChanged=function(){var Y;this.isGoalActive=((Y=this.creatorGoalState)==null?void 0:Y.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var S;Y={"--yt-progress-bar-color":yPX((S=this.creatorGoalState)==null?void 0:S.progressBarColor)};_.PZ(this.hostElement,Y)};
NC.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.y6.Object.defineProperties(NC.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var Y;return this.isGoalActive&&!((Y=this.creatorGoalState)==null||!Y.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.creatorGoalState)==null?0:Y.endTimestampMs){var S;Y=Number((S=this.creatorGoalState)==null?void 0:S.endTimestampMs)/1E3;return{seconds:String(Y)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.creatorGoalState)==null?0:Y.themedTargetImage){var S;Y=_.g((S=this.creatorGoalState)==null?void 0:S.themedTargetImage,Vaf);return this.isAppDarkTheme()?Y==null?void 0:Y.imageDark:Y==null?void 0:Y.imageLight}}}});
_.y6.Object.defineProperties(NC,{template:{configurable:!0,enumerable:!0,get:function(){return rRm()}}});
NC.prototype.goalStateChanged=NC.prototype.goalStateChanged;NC.prototype.progressBarChanged=NC.prototype.progressBarChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],NC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.gm),_.k("design:type",Object)],NC.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);
_.Q([_.X({selectorArgs:["data.creatorGoalEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"creatorGoalEntity",S)}}),
_.k("design:type",Object)],NC.prototype,"creatorGoalState",void 0);_.Q([_.X(),_.k("design:type",Object)],NC.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],NC.prototype,"isGoalActive",void 0);_.Q([_.d("creatorGoalState","isGoalActive"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],NC.prototype,"shouldShowCountdown",null);_.Q([_.d("creatorGoalState"),_.k("design:type",Object),_.k("design:paramtypes",[])],NC.prototype,"endTimestamp",null);
_.Q([_.d("creatorGoalState"),_.k("design:type",Object),_.k("design:paramtypes",[])],NC.prototype,"targetIconThemedImage",null);_.Q([_.zY("creatorGoalState.currentGoalCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NC.prototype,"progressBarChanged",null);_.Q([_.zY("creatorGoalState.creatorGoalState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NC.prototype,"goalStateChanged",null);
NC=_.Q([_.r0({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],NC);_.A(NC,"yt-creator-goal-progress-flow-view-model",function(){return rRm()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var OpL;var Y7L;var HU=function(){return _.Z.apply(this,arguments)||this};
_.r(HU,_.Z);HU.prototype.attached=function(){var Y,S,P;if(this==null?0:(Y=this.data)==null?0:(S=Y.pdgPurchasedBumperLoggingDirectives)==null?0:(P=S.loggingDirectives)==null?0:P.trackingParams){var u,W,m;dua(this==null?void 0:(u=this.data)==null?void 0:(W=u.pdgPurchasedBumperLoggingDirectives)==null?void 0:(m=W.loggingDirectives)==null?void 0:m.trackingParams)}};
HU.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],HU.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],HU.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],HU.prototype,"data",void 0);HU=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],HU);
_.A(HU,"yt-live-chat-item-bumper-view-model",function(){if(Y7L===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;OpL===void 0&&(OpL=document.createElement("template"));var u=OpL;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Y7L=Y}Y=Y7L;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var S7J;var Pcd;_.ZK=function(Y,S){this.data=Y;this.actions=S;this.data=Y;this.actions=S};
_.LR=function(){};_.Vt={};_.Vt.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(Y,S){l1Y(this.hostElement,Y,S)},
getNavigationEndpointPopupAction:function(Y){return X1U(Y,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(Y,S){ZU1(this.hostElement,Y,S,this.openPopupConfig)}};var N3h=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.eo={};
_.eo.YtEndpointBehavior=[_.Vt.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.X3("openPopupConfig");(this.useClickHandler=_.Z4("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(Y){t$J(this.hostElement,Y,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(Y){var S=this.hostElement,P=this.openPopupConfig,u=this.disableCommandHandlerOverride;u=u===void 0?!1:u;var W=iU8(Y);if(W){W.href&&IK(W.href);var m=Y.detail;var J=m.sourceEvent;m=m.preventer;J=J.button!==void 0?J.button===0&&!KR(J):m?!KR(m):!0;W.data&&J&&oCY(S,W,Y,P,u)}},
onEndpointTouchEnd_:function(Y){KR(Y)||iU8(Y)&&Y.preventDefault()},
onEndpointTapStart_:function(Y){M$a(Y)}}];var HUu="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),e98=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var u7u={};u7u.YtPlaintextBehavior=[_.x1,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(Y){Y.preventDefault();Y=Y.clipboardData.getData("text/plain");document.execCommand("insertText",!1,Y)},
preventRichTextFormatting_:function(Y){_.cW&&(Y=Y.detail.keyboardEvent,Y.stopImmediatePropagation(),Y.preventDefault())}}];var Wqf;var zpm;var Oe=function(){var Y=_.Z.apply(this,arguments)||this;Y.ignoreShadyDom=!1;Y.hasChange_=!1;Y.hasSetTitle_=!1;Y.useIOObserverForVisibilityLogging_=_.f("kevlar_use_vimio_behavior")&&_.X3("INNERTUBE_CLIENT_NAME")==="WEB";Y.ytFormattedStringObserverHandlerKeys_=void 0;return Y};
_.r(Oe,_.Z);_.z=Oe.prototype;_.z.created=function(){this.useIOObserverForVisibilityLogging_=_.f("kevlar_use_vimio_behavior")&&_.X3("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.z.ready=function(){_.X3("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_()};
_.z.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.z.detached=function(){this.unobserveIOObservers_()};
_.z.clearContents_=function(){for(var Y=this.getRoot(),S=Y.lastChild;S&&S.tagName!=="STYLE";){try{Y.removeChild(S)}catch(P){break}S=Y.lastChild}};
_.z.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var Y=_.n(this.ytFormattedStringObserverHandlerKeys_),S=Y.next();!S.done;S=Y.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(S.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.z.resetForAttributedString=function(){var Y=this.getRoot();!Y.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),Y.appendChild(this.ytAttributedStringElementRef))};
_.z.resetForFormattedString=function(){var Y=this.getRoot(),S=Y.querySelector("yt-attributed-string");S&&(this.ytAttributedStringElementRef=Y.removeChild(S))};
_.z.textChanged=function(){this.textChanged_(this.text)};
_.z.textChanged_=function(Y){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!Y||!Y.runs&&!Y.simpleText;if(_.f("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var S=this.hostElement.firstChild;S&&S.nodeName==="FONT";){var P=S;S=S.nextSibling;this.hostElement.removeChild(P)}S=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
P=Y.simpleText;var u;!P&&((u=Y.runs)==null?void 0:u.length)===1&&this.isSimpleString_(Y.runs[0])&&(P=Y.runs[0].text);P!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.X3("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(P!==void 0){try{S.textContent=P}catch(W){}S.textContent||(this.isEmpty=!0)}else Y=Y.runs,P!==void 0&&(Y=[{text:P}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),Y&&this.updateText_(Y),
S.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.z.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)};
_.z.computeAriaLabel_=function(Y){return Y};
_.z.computeEllipsisTruncateStyling=function(Y,S){return Y&&!S};
_.z.computeUseAttributedString=function(Y){return _.f("web_replace_formatted_with_attributed_string")&&Bs8(Y)&&!this.disableAttributedString&&!this.enableContentEditable};
_.z.setNodeStyle_=function(Y,S){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.f("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?S.removeAttribute("dir"):S.setAttribute("dir","auto");S.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");S.style.color="";var P=null;this.noStyles||(Y.bold&&(S.classList.add("bold"),P="bold"),Y.deemphasize&&(S.classList.add("deemphasize"),P="deemphasize"),Y.italics&&S.classList.add("italic"),
Y.strikethrough&&S.classList.add("strikethrough"),Y.errorUnderline&&(S.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),Y.bracket&&S.classList.add("bracket"),Y.textColor&&(S.style.color=_.Gp(Y.textColor)));P!==S.getAttribute("style-target")&&(P?S.setAttribute("style-target",P):S.removeAttribute("style-target"))};
_.z.setUpVisibilityLogging_=function(Y,S){var P=this;this.setNodeTrackingParams_(Y,S);var u;((u=S.data)==null?0:u.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(Y=this.ytRendererBehavior.visibilityObserver.observe(S,function(W){var m=P.ytRendererBehavior.getVisibilityLogger();m&&m.reportShown(W)},this.ytRendererBehavior.visibilityOptionVisible_),S=this.ytRendererBehavior.visibilityObserver.observe(S,function(W){var m=P.ytRendererBehavior.getVisibilityLogger();
m&&m.reportHidden(W)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(Y),this.ytFormattedStringObserverHandlerKeys_.push(S))};
_.z.setNodeTrackingParams_=function(Y,S){S.data||(S.data={});if((Y=Y.loggingDirectives?Y.loggingDirectives.trackingParams:null)||S.data.trackingParams)S.data.trackingParams=Y};
_.z.computeHasLinkOnly_=function(Y){return!(!Y||Y.length!==1||this.noEndpoints||!Y[0].navigationEndpoint)};
_.z.getRoot=function(){var Y=this.buildScopeDomOptions();return this.enableContentEditable?_.I(_.I(this.hostElement,Y).querySelector("[contenteditable]")):_.I(this.hostElement,Y)};
_.z.fixContenteditableScope=function(){var Y=function(S){S&&(S.nodeType===1&&S.classList&&(S.classList.add("style-scope"),S.classList.add("yt-formatted-string")),S.childNodes&&S.childNodes.forEach(function(P){Y(P)}))};
Y(this.getRoot())};
_.z.updateText_=function(Y){for(var S=Y.length,P=this.getRoot(),u=P.firstChild;u&&u.nodeName==="STYLE";)u=u.nextSibling;for(var W=0;W<S&&u;){var m=Y[W],J=_.f("remove_cr_char")&&m.text?m.text.replace("\r",""):m.text;if(this.isSimpleString_(m)&&!this.useMixedDirectionFormattedStrings)if(u.nodeName==="#text"){u.textContent!=J&&(u.textContent=J);W++;u=u.nextSibling;continue}else break;if(_.g(m,r8))break;else if(!this.noEndpoints&&m.navigationEndpoint){if(u.nodeName!=="A")break;this.setDataOnAnchor_(u,
m.navigationEndpoint)}else if(u.nodeName!=="SPAN")break;this.setNodeStyle_(m,u);this.setUpVisibilityLogging_(m,u);u.textContent!=J&&(u.textContent=J);W++;u=u.nextSibling}if(u)for(m=P.lastChild,u=W?u.previousSibling:null;m&&m!=u;){try{P.removeChild(m)}catch(c){break}m=P.lastChild}W!==S&&this.addTextNodes_(Y,W)};
_.z.addTextNodes_=function(Y,S){for(var P=document.createDocumentFragment(),u=Y.length;S<u;S++){var W=Y[S],m=_.f("remove_cr_char")&&W.text?W.text.replace("\r",""):W.text;if(this.isSimpleString_(W)&&!this.useMixedDirectionFormattedStrings)P.appendChild(document.createTextNode(m));else{var J=_.g(W,r8);if(J){if(J.image){var c=document.createElement("img");J.isCustomEmoji||c.classList.add("small-emoji");c.classList.add("emoji");J.isCustomEmoji&&(c.dataset.emojiId=J.emojiId);c.src=_.UD(J.image.thumbnails,
this.emojiSize);(W=this.get("image.accessibility.accessibilityData.label",J))?c.alt=W:J.shortcuts&&J.shortcuts.length>0?c.alt=J.shortcuts[0]:J.emojiId&&(c.alt=J.emojiId);P.appendChild(c);this.hasEmoji=!0}}else!this.noEndpoints&&W.navigationEndpoint?(c=document.createElement("a"),c.classList.add("yt-simple-endpoint"),c.setAttribute("spellcheck","false"),this.setDataOnAnchor_(c,W.navigationEndpoint)):c=document.createElement("span"),this.setNodeStyle_(W,c),this.setUpVisibilityLogging_(W,c),c.appendChild(document.createTextNode(m)),
P.appendChild(c)}}this.getRoot().appendChild(P)};
_.z.isSimpleString_=function(Y){return(this.noEndpoints||!Y.navigationEndpoint)&&!_.g(Y,r8)&&(this.noStyles||!(Y.bold||Y.deemphasize||Y.italics||Y.strikethrough||Y.errorUnderline||Y.bracket||Y.textColor))&&!Y.loggingDirectives};
_.z.getRawText=function(){return _.Ma(this.text)};
_.z.getFirstRunText=function(){var Y;if(((Y=this.text)==null?0:Y.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.z.setFirstRunText=function(Y){var S;((S=this.text)==null?0:S.runs)&&this.text.runs[0]&&(this.text.runs[0].text=Y,this.textChanged_(this.text))};
_.z.setDataOnAnchor_=function(Y,S){var P=this;!_.f("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(S)||this.isSignalServiceEndpoint_(S)?(Y.onclick=this.serviceEndpointHandler_(S),xU(Y,"#")):RMJ({text:this.text,command:S},function(){vJh(Y,S,P.target)})};
_.z.isServiceEndpoint_=function(Y){var S;return!((S=_.g(Y==null?void 0:Y.commandMetadata,_.Yo))==null||!S.sendPost)};
_.z.isSignalServiceEndpoint_=function(Y){return!!_.g(Y,_.xo)};
_.z.serviceEndpointHandler_=function(Y){var S=this;return function(P){_.Bu(S.hostElement,[Y]);P.preventDefault()}};
_.z.overrideAriaLabelChanged_=function(){var Y=this.getRoot();this.enableContentEditable&&Y&&Y.setAttribute("aria-label",this.overrideAriaLabel)};
_.z.enableContentEditableChanged_=function(){var Y=this,S=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),S=_.I(this.hostElement,S),!S.lastChild||S.lastChild instanceof HTMLElement&&S.lastChild.id!=="contenteditable-root"){var P=document.createElement("div");P.id="contenteditable-root";P.setAttribute("contenteditable","true");P.setAttribute("dir","auto");P.onfocus=function(){Y.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
S.appendChild(P);this.overrideAriaLabel&&P.setAttribute("aria-label",this.overrideAriaLabel)}}else P=_.Hq(this.hostElement).firstChild,P instanceof HTMLElement&&P.id==="contenteditable-root"&&_.I(this.hostElement,S).removeChild(P)};
_.z.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.z.getNodesForVisibilityLogging_=function(){return _.ze(this.getRoot().childNodes,function(Y){var S;return!((S=Y.data)==null||!S.trackingParams)})};
_.z.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.z.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var Y=this.ytRendererBehavior.getVisibilityLogger();Y&&this.getNodesForVisibilityLogging_().forEach(function(S){Y.reportShown(S)})}};
_.z.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var Y=this.ytRendererBehavior.getVisibilityLogger();Y&&this.getNodesForVisibilityLogging_().forEach(function(S){Y.reportHidden(S)})}};
_.y6.Object.defineProperties(Oe.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.f("enable_mixed_direction_formatted_strings")}}});
Oe.prototype.enableContentEditableChanged_=Oe.prototype.enableContentEditableChanged_;Oe.prototype.overrideAriaLabelChanged_=Oe.prototype.overrideAriaLabelChanged_;Oe.prototype.ellipsisTruncateChanged_=Oe.prototype.ellipsisTruncateChanged_;Oe.prototype.textChanged=Oe.prototype.textChanged;_.Q([_.p(u7u.YtPlaintextBehavior),_.k("design:type",Object)],Oe.prototype,"ytPlaintextBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Oe.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Oe.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Oe.prototype,"text",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Oe.prototype,"noEndpoints",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Oe.prototype,"noStyles",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Oe.prototype,"isDarkTheme",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Oe.prototype,"splitLines",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Oe.prototype,"forceDefaultStyle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Oe.prototype,"ellipsisTruncate",void 0);_.Q([_.X(),_.k("design:type",Object)],Oe.prototype,"ignoreShadyDom",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.k("design:type",Boolean)],Oe.prototype,"ellipsisTruncateStyling",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.k("design:type",String)],Oe.prototype,"ariaLabel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Oe.prototype,"isEmpty",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.k("design:type",Boolean)],Oe.prototype,"hasLinkOnly_",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Oe.prototype,"hasEmoji",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Oe.prototype,"disableAttributedString",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Oe.prototype,"isOverlay",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Oe.prototype,"linkInheritColor",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],Oe.prototype,"noPreWrap",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Oe.prototype,"userInput",void 0);_.Q([_.X({value:16}),_.k("design:type",Number)],Oe.prototype,"emojiSize",void 0);_.Q([_.X(),_.k("design:type",String)],Oe.prototype,"target",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Oe.prototype,"enableContentEditable",void 0);_.Q([_.X(),_.k("design:type",String)],Oe.prototype,"overrideAriaLabel",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],Oe.prototype,"respectHtmlDir",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Oe.prototype,"respectLangDir",void 0);_.Q([_.d("plaintextOnly"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Oe.prototype,"useMixedDirectionFormattedStrings",null);_.Q([_.X({computed:"computeUseAttributedString(text)"}),_.k("design:type",Boolean)],Oe.prototype,"useYtAttributedString",void 0);
_.Q([_.zY("text"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Oe.prototype,"textChanged",null);_.Q([_.zY("ellipsisTruncate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Oe.prototype,"ellipsisTruncateChanged_",null);_.Q([_.zY("overrideAriaLabel"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Oe.prototype,"overrideAriaLabelChanged_",null);
_.Q([_.zY("enableContentEditable"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Oe.prototype,"enableContentEditableChanged_",null);Oe=_.Q([_.r0({is:"yt-formatted-string",disableElementRegistration:!0})],Oe);
_.A(Oe,"yt-formatted-string",function(){if(zpm===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Wqf===void 0&&(Wqf=document.createElement("template"));var u=Wqf;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);zpm=Y}Y=zpm;return Y});var mvJ;var niu;var j$f;var JWL;var YO=function(){var Y=_.Z.apply(this,arguments)||this;Y.focused=!1;Y.disabled=!1;Y.isOverlay=!1;return Y};
_.r(YO,_.Z);YO.prototype.triggerDown=function(){if(!this.disabled){_.Vm(this.hostElement,"down",!0);var Y;(Y=this.currentAnimation)==null||Y.cancel()}};
YO.prototype.triggerUp=function(){if(!this.disabled){_.Vm(this.hostElement,"down",!1);var Y=this.fillElement;var S=this.strokeElement;typeof GroupEffect==="function"?(Y=new GroupEffect([ubu(Y),W3a(S)]),Y=new Animation(Y,document.timeline)):Y=new QPh(Y,S);this.currentAnimation=Y;var P;(P=this.currentAnimation)==null||P.play()}};
_.Q([_.nc(".stroke"),_.k("design:type",HTMLElement)],YO.prototype,"strokeElement",void 0);_.Q([_.nc(".fill"),_.k("design:type",HTMLElement)],YO.prototype,"fillElement",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],YO.prototype,"focused",void 0);_.Q([_.X(),_.k("design:type",Object)],YO.prototype,"disabled",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],YO.prototype,"isOverlay",void 0);YO=_.Q([_.r0({is:"yt-interaction",disableElementRegistration:!0})],YO);
_.A(YO,"yt-interaction",function(){if(JWL===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;j$f===void 0&&(j$f=document.createElement("template"));var u=j$f;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);JWL=Y}Y=JWL;return Y},{mode:2});var SG=function(){return _.Z.apply(this,arguments)||this};
_.r(SG,_.Z);_.z=SG.prototype;_.z.ready=function(){var Y=this,S=_.I(this.hostElement).querySelector("#button");S.addEventListener("focus",function(){Ur6||(Ur6=new AB3);Y.keyboardFocused=Ur6.isKeyBoardInUse()});
S.addEventListener("blur",function(){Y.keyboardFocused=!1;Y.rippleUp_()})};
_.z.computeTabIndex_=function(Y){return Y?-1:0};
_.z.computeButtonAriaPressed_=function(Y){if(this.toggleable)return Y?"true":"false"};
_.z.rippleDown_=function(){_.I(this.hostElement).querySelector("#interaction").triggerDown()};
_.z.rippleUp_=function(){_.I(this.hostElement).querySelector("#interaction").triggerUp()};
_.z.onPressedChanged_=function(){var Y=_.Hq(_.I(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Hq(_.I(this.hostElement).querySelector("#button")).children[0];Y&&(Y.active=this.pressed)};
SG.prototype.onPressedChanged_=SG.prototype.onPressedChanged_;SG.prototype.rippleUp_=SG.prototype.rippleUp_;SG.prototype.rippleDown_=SG.prototype.rippleDown_;_.Q([_.X(),_.k("design:type",String)],SG.prototype,"label",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],SG.prototype,"disabled",void 0);_.Q([_.X(),_.k("design:type",Boolean)],SG.prototype,"pressed",void 0);_.Q([_.X(),_.k("design:type",Object)],SG.prototype,"toggleable",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],SG.prototype,"untabbable",void 0);_.Q([_.X(),_.k("design:type",Boolean)],SG.prototype,"keyboardFocused",void 0);_.Q([_.WZ("down"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SG.prototype,"rippleDown_",null);_.Q([_.WZ("up"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SG.prototype,"rippleUp_",null);
_.Q([_.zY("pressed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SG.prototype,"onPressedChanged_",null);SG=_.Q([_.r0({is:"yt-icon-button",disableElementRegistration:!0})],SG);
_.A(SG,"yt-icon-button",function(){if(niu===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;mvJ===void 0&&(mvJ=document.createElement("template"));var u=mvJ;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);niu=Y}Y=niu;return Y},{mode:2});var BtL=_.Q0(["aria-"]),W0={};W0.YtRenderButtonBehavior=[_.e.YtRendererBehavior,_.eo.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!!_.E().resolve(_.PQ(_.Tz))&&_.f("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var Y=this.computeHref_(this.endpoint,!0);Y?xU(this.elements_.endpoint,Y):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){Y=this.buttonClass.split(" ");Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())S=S.value,_.Vm(this.hostElement,S,!0),this.elements_.button&&_.Vm(this.elements_.button,S,!0),this.elements_.text&&_.Vm(this.elements_.text,S,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(Y=null,this.buttonAccessibility&&(Y=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=Y:Y?_.Lh([_.Ua(BtL)],this.elements_.button,"aria-label",Y):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var Y=_.E().resolve(_.PQ(_.Tz));Y&&(this.keyboardFocused=Y.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Xh("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,_.G5(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.G5(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(Y,S){if(S)for(Y=S.split(" "),Y=_.n(Y),S=Y.next();!S.done;S=Y.next())S=S.value,_.Vm(this.hostElement,S,!1),this.elements_.button&&_.Vm(this.elements_.button,S,!1),this.elements_.text&&_.Vm(this.elements_.text,S,!1)},
buttonIconChanged_:function(Y){this.elements_.icon?Y?(this.elements_.icon.icon=Y,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.G5(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.eV(this.hostElement,"is-paper-button-with-icon",!1)):Y&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.G5(this.elements_.button).appendChild(this.elements_.icon):_.G5(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.eV(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(Y){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,Y){var S=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(Y){case "yt_icon_button_with_label":S=!0;_.Vm(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();Y=_.G5(this.elements_.button).firstElementChild;
this.elements_.icon=Y;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.G5(this.elements_.endpoint).appendChild(this.elements_.button);_.G5(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Xh("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;_.G5(this.elements_.button).appendChild(this.elements_.text);_.G5(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":S=!0,this.elements_.button=this.getYtIconButton_(),Y=_.G5(this.elements_.button).firstElementChild,this.elements_.icon=Y,this.setIconActive_(this.elements_.icon),
_.G5(this.elements_.endpoint).appendChild(this.elements_.button)}_.eV(this.hostElement,"is-icon-button",S);_.eV(this.hostElement,"is-paper-button",!S);_.eV(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 P;_.I((P=this.container.hostElement)!=null?P:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.G5(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(Y){if(Y!=void 0||this.disabled)this.disabled=Y,this.elements_.button&&(this.elements_.button.disabled=Y)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(Y){_.f("kevlar_system_icons")&&Y&&this.data&&(this.data.isSelected!==void 0?Y.active=this.data.isSelected:this.data.isToggled!==void 0&&(Y.active=this.data.isToggled))},
observeBasicPalette_:function(Y){_.fR(this.hostElement,Y)},
disabledChanged_:function(Y){this.data&&this.set("data.isDisabled",Y)},
onYtButtonTap_:function(Y){if(this.disabled)Y.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.Bu(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(Y=this.disableCommandHandlerOverride,!this.data||!this.data.command||Y||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.f("handle_service_request_actions")||_.Bu(this.hostElement,[this.serviceEndpoint]),
_.ms(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.f("handle_service_request_actions")?(Y=[],this.serviceEndpoint&&Y.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&Y.push(this.data.command),Y.length&&_.cu(this.hostElement,Y,this.hostElement)):this.data&&this.data.command&&(Y=this.data.command,Y.accountUnlinkCommand||Y.accountLinkCommand||Y.insertAdCommand||Y.insertHighlightMarkerCommand||
Y.createLivestreamHighlightClipCommand||Y.getVideoUploadFeedbackCommand||Y.musicDeletePrivatelyOwnedEntityCommand||Y.ypcCancelRecurrenceEndpoint||Y.getMultiSelectCommandEndpoint?_.Bu(this.hostElement,[Y]):_.cu(this.hostElement,[Y],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var Y,S=_.I((Y=this.container.hostElement)!=null?Y:this.container);S.lastChild&&S.lastChild.tagName!="STYLE";)try{S.removeChild(S.lastChild)}catch(P){break}},
getYtIconButton_:function(){var Y=this.reuseEnabled_()?_.Xh("yt-icon-button"):document.createElement("yt-icon-button"),S=_.G5(Y).firstElementChild;if(S&&S.is!="yt-icon"){for(S=_.G5(Y);S.lastChild;)S.removeChild(S.lastChild);S=null}S||(S=this.getIcon_(),this.setIconActive_(S),_.G5(Y).appendChild(S));return Y},
reuseEnabled_:function(){return _.f("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Xh("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Xh("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.cWJ={};
_.cWJ.YtButtonBehavior=[W0.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var Y=this.data;Y&&(this._setEndpoint(this.computeEndpoint_(Y)),this._setServiceEndpoint(this.computeServiceEndpoint_(Y)),this._setCommand(this.computeCommand_(Y)),this._setButtonIcon(this.computeButtonIcon_(Y)),this._setButtonText(this.computeButtonText_(Y,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(Y)),this._setButtonTooltip(this.computeTooltip_(Y)),this._setButtonClass(this.computeButtonClass_(Y)),this._setIconPositionType(this.computeIconPositionType_(Y)),this.updateRenderedElements())},
setPressedState:function(Y){var S;if((S=this.elements_)==null?0:S.button)this.elements_.button.pressed=!!Y},
computeIconPositionType_:function(Y){return Y&&Y.iconPosition||null},
computeEndpoint_:function(Y){var S=Y&&Y.navigationEndpoint,P=this.get("data.command.commandMetadata.webCommandMetadata.url"),u=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return S?S:Y&&Y.command&&Y.command.modalEndpoint?Y.command:P&&!u&&Y.command?Y.command:null},
computeServiceEndpoint_:function(Y){var S=Y&&Y.serviceEndpoint,P=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return S?S:P&&Y.command?Y.command:null},
computeCommand_:function(Y){return Y&&Y.command||null},
computeButtonIcon_:function(Y){return Y&&Y.icon&&Y.icon.iconType?_.u2(Y.icon.iconType):null},
computeButtonText_:function(Y,S){return!S&&Y&&Y.text||null},
computeAccessibility_:function(Y){return this.get("accessibilityData.accessibilityData",Y)||Y&&Y.accessibility||(Y&&Y.text?{label:this.getSimpleString(Y.text)}:null)},
computeTooltip_:function(Y){return Y?Y.isDisabled&&Y.disabledTooltip||Y.tooltip||null:null},
computeButtonClass_:function(Y){var S=Y&&Y.style?Y.style.toLowerCase().replace(/_/g,"-")+" ":"";S+=Y&&Y.size?Y.size.toLowerCase().replace(/_/g,"-")+" ":"";Y.colorData&&Y.colorData.basicColorPaletteData&&Y.colorData.basicColorPaletteData.borderColor&&(S+="palette-with-border");return S.trim()}}];var gL={};var Cci;var q73;var RpS,xvS=function(){return RpS!==void 0?RpS:RpS=document.createElement("template")};
document.head.appendChild(xvS().content);var bBf;var Ttm,Kqd=function(){return Ttm!==void 0?Ttm:Ttm=document.createElement("template")};
document.head.appendChild(Kqd().content);var Eit;var ftt,giu=function(){return ftt!==void 0?ftt:ftt=document.createElement("template")};
document.head.appendChild(giu().content);var $vs;var rWh=document.head,GC_=rWh.appendChild,hph;if($vs===void 0){var vid=document.createElement("template");_.h(vid,"\x3c!--css-build:shady--\x3e");vid.content.insertBefore(giu().content.cloneNode(!0),vid.content.firstChild);$vs=vid}hph=$vs;GC_.call(rWh,hph.content);var Dvm=document.head,ItL=Dvm.appendChild,atu;if(Eit===void 0){var Lqs=document.createElement("template");_.h(Lqs,"\x3c!--css-build:shady--\x3e");Lqs.content.insertBefore(Kqd().content.cloneNode(!0),Lqs.content.firstChild);Eit=Lqs}atu=Eit;ItL.call(Dvm,atu.content);var wjU=document.head,pjt=wjU.appendChild,FqU;if(bBf===void 0){var s$_=document.createElement("template");_.h(s$_,"\x3c!--css-build:shady--\x3e");s$_.content.insertBefore(xvS().content.cloneNode(!0),s$_.content.firstChild);bBf=s$_}FqU=bBf;pjt.call(wjU,FqU.content);var dvL;_.$s("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");dvL=_.f("web_button_rework")&&_.Z4("BUTTON_REWORK")||_.f("web_button_rework_with_live");_.zV=function(){return _.Z.apply(this,arguments)||this};
_.r(_.zV,_.Z);_.zV.prototype.created=function(){this.openPopupConfig=_.X3("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.zV.prototype.onYtNavigate_=function(Y){var S=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(Y.detail.endpoint);S&&(this.ytOpenPopupBehavior.openPopup(S),Y.stopPropagation(),Y.preventDefault())};
_.y6.Object.defineProperties(_.zV,{template:{configurable:!0,enumerable:!0,get:function(){if(q73===void 0){var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
var S=Y.content,P=S.insertBefore;Cci===void 0&&(Cci=document.createElement("template"));var u=Cci;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);q73=Y}Y=q73;return Y}}});
_.zV.prototype.onYtNavigate_=_.zV.prototype.onYtNavigate_;_.Q([_.p(_.Vt.YtOpenPopupBehavior),_.k("design:type",Object)],_.zV.prototype,"ytOpenPopupBehavior",void 0);_.Q([_.p(_.cWJ.YtButtonBehavior),_.k("design:type",Object)],_.zV.prototype,"ytButtonBehavior",void 0);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],_.zV.prototype,"onYtNavigate_",null);
_.zV=_.Q([_.r0({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:dvL})],_.zV);var lt3;var Xjf=_.f("web_button_rework")&&_.Z4("BUTTON_REWORK")||_.f("web_button_rework_with_live"),mi=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPressed=!1;Y.forceIconButton=!1;Y.forceIconOnly=!1;Y.forceModernIconButton=!1;Y.skipCommandHandling=!1;Y.alignByText=!1;Y.fitToVisibleBounds=!0;Y.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};Y.onTap=function(S){_.ms(Y.hostElement,"yt-service-request-sent-button-renderer",S)};
return Y};
_.r(mi,_.Z);_.z=mi.prototype;_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.z.onClick=function(Y){var S,P=this.disabled||((S=this.data)==null?void 0:S.isDisabled);S=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");P&&S&&Y.stopPropagation()};
_.z.computeIcon=function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.icon)==null?void 0:S.iconType;if(P)return _.u2(P)};
_.z.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.z.handleUpdateButtonAction=function(Y){Y=_.g(Y,lld);var S=_.g(Y==null?void 0:Y.updatedButton,_.I8);if(this.data&&Y&&S){var P=this.data;P.targetId&&Y.targetId&&P.targetId===Y.targetId&&(this.data=S)}};
_.y6.Object.defineProperties(mi.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var Y=this;if(this.data){var S=WrE({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.ms(Y.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.ms(Y.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});S.alignByText=this.alignByText;return S}}}});
_.y6.Object.defineProperties(mi,{template:{configurable:!0,enumerable:!0,get:function(){if(lt3===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');lt3=Y}Y=lt3;return Y}}});
mi.prototype.onClick=mi.prototype.onClick;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],mi.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],mi.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],mi.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],mi.prototype,"isPressed",void 0);
_.Q([_.X(),_.k("design:type",Object)],mi.prototype,"forceIconButton",void 0);_.Q([_.X(),_.k("design:type",Object)],mi.prototype,"forceIconOnly",void 0);_.Q([_.X(),_.k("design:type",Object)],mi.prototype,"forceModernIconButton",void 0);_.Q([_.X(),_.k("design:type",Object)],mi.prototype,"skipCommandHandling",void 0);_.Q([_.X(),_.k("design:type",Object)],mi.prototype,"alignByText",void 0);_.Q([_.X(),_.k("design:type",Object)],mi.prototype,"buttonTooltipPosition",void 0);
_.Q([_.X(),_.k("design:type",Object)],mi.prototype,"fitToVisibleBounds",void 0);_.Q([_.X({computed:"computeTooltip(data)"}),_.k("design:type",Object)],mi.prototype,"tooltip",void 0);_.Q([_.X(),_.k("design:type",Object)],mi.prototype,"overrides",void 0);_.Q([_.X(),_.k("design:type",Boolean)],mi.prototype,"disabled",void 0);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],mi.prototype,"onClick",null);
_.Q([_.d("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.k("design:type",Object),_.k("design:paramtypes",[])],mi.prototype,"computedButtonShape",null);mi=_.Q([_.r0({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Xjf,cssBuildOptOut:!0}),_.r0({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Xjf,cssBuildOptOut:!0})],mi);var ZBJ;var iBh;var nk=function(){var Y=_.Z.apply(this,arguments)||this;Y.empty_=!0;Y.loadTime=Infinity;Y.pendingPaint=!1;Y.hasChange_=!1;Y.oldThumbnail_=null;Y.oldDelayedSrc_="";Y.objectURL_=null;return Y};
_.r(nk,_.Z);_.z=nk.prototype;_.z.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.z.ready=function(){var Y=this.shouldShowPlaceholder_();_.Vm(this.hostElement,"no-transition",!0);Y&&this.hostElement.classList.add("with-placeholder")};
_.z.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.z.isThumbPreloaded_=function(Y){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",Y)};
_.z.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||oif};
_.z.computeThumbnailSrc_=function(Y){return Y&&Y.thumbnails?_.UD(Y.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.z.computeAlt_=function(){var Y=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&Y||""};
_.z.thumbnailChanged_=function(){var Y=_.n([this.thumbnail,this.oldThumbnail_]),S=Y.next().value;Y=Y.next().value;this.oldThumbnail_=S;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(Y=this.computeThumbnailSrc_(Y),this.computeThumbnailSrc_(S)===Y))return;_.f("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(S)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):S&&_.Z4("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.ky(this,this.onReload_):_.ky(this,this.onShow_):this.resetImage_();S&&(this.hostElement.style.opacity=""+S.opacity)}};
_.z.delayedSrcChanged_=function(){var Y=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===Y||this.resetImage_()};
_.z.setSrc_=function(Y){Y?(_.I(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.I(this.hostElement).querySelector("#img").src=Y):(_.I(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.z.resetImage_=function(){jyJ(this.hostElement);this.empty_=!0;this.setSrc_(oif);this.ytRendererBehavior.invalidate(!1)};
_.z.observePlaceholderColor_=function(){var Y=this.thumbnail&&this.thumbnail.placeholderColor;Y?this.hostElement.style.backgroundColor=_.Gp(Y):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.z.onLoad_=function(){_.I(this.hostElement).querySelector("#img").src&&_.I(this.hostElement).querySelector("#img").src!==oif&&(nPK(this.hostElement),this.notifyOnLoaded&&_.ms(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.z.onError_=function(){var Y=this;if(_.f("web_use_cache_for_image_fallback"))xjX(_.I(this.hostElement).querySelector("#img").src).then(function(S){Y.objectURL_=_.cx(S).toString();Y.setSrc_(Y.objectURL_)}).catch(function(){_.f("kevlar_woffle_fallback_image")&&Y.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.z.onPrescanVisible=function(){this.onShow_()};
_.z.onVisible=function(){if(_.f("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.z.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var Y=this.computeSrc_();Y!==_.I(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(Y))}};
_.z.onReload_=function(){this.empty_=!1;var Y=this.computeSrc_();Y!==_.I(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(Y))};
_.z.shouldShowPlaceholder_=function(){return _.f("kevlar_thumbnail_bg")};
nk.prototype.observePlaceholderColor_=nk.prototype.observePlaceholderColor_;nk.prototype.delayedSrcChanged_=nk.prototype.delayedSrcChanged_;nk.prototype.thumbnailChanged_=nk.prototype.thumbnailChanged_;_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],nk.prototype,"alt",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],nk.prototype,"ariaHidden",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],nk.prototype,"ariaLabel",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],nk.prototype,"hidden",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],nk.prototype,"id",void 0);_.Q([_.p(_.vU.YtVisibilityBehavior),_.k("design:type",Object)],nk.prototype,"ytVisibilityBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",String)],nk.prototype,"delayedSrc",void 0);
_.Q([_.X(),_.k("design:type",Object)],nk.prototype,"thumbnail",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],nk.prototype,"loaded",void 0);_.Q([_.X(),_.k("design:type",Boolean)],nk.prototype,"notifyOnLoaded",void 0);_.Q([_.X(),_.k("design:type",Number)],nk.prototype,"height",void 0);_.Q([_.X(),_.k("design:type",Number)],nk.prototype,"width",void 0);_.Q([_.X({value:function(){return"width"}}),
_.k("design:type",String)],nk.prototype,"dimension",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],nk.prototype,"fit",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],nk.prototype,"fitHeight",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],nk.prototype,"fitWidth",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],nk.prototype,"objectFit",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],nk.prototype,"objectPosition",void 0);_.Q([_.X(),_.k("design:type",String)],nk.prototype,"preferredThumbnail",void 0);_.Q([_.X({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.k("design:type",String)],nk.prototype,"alt_",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],nk.prototype,"sharedTooltipText",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],nk.prototype,"ftlEligible",void 0);_.Q([_.X({value:void 0}),_.k("design:type",String)],nk.prototype,"observeHiddenOption",void 0);_.Q([_.X({value:"observe_once"}),_.k("design:type",String)],nk.prototype,"observePrescanOption",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],nk.prototype,"roundedContainer",void 0);
_.Q([_.cZ("thumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nk.prototype,"thumbnailChanged_",null);_.Q([_.cZ("delayedSrc"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nk.prototype,"delayedSrcChanged_",null);_.Q([_.zY("thumbnail.placeholderColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nk.prototype,"observePlaceholderColor_",null);
nk=_.Q([_.r0({is:"yt-img-shadow",disableElementRegistration:!0})],nk);var oif=_.Z4("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.eD()(nk,"yt-img-shadow",function(){if(iBh===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;ZBJ===void 0&&(ZBJ=document.createElement("template"));var u=ZBJ;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);iBh=Y}Y=iBh;return Y},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var q1K;_.jG=new _.yH("SCREEN_MANAGER_TOKEN");q1K=new _.yH("LOG_INITIAL_SCREEN_TOKEN");_.vL=_.AI(function(Y){function S(ca){return _.g(ca,_.Gz)}
function P(){var ca=u().isTogglingDisabled||K()?a():!a();w(ca);U(!1);if(!u().isTogglingDisabled){var hu;(hu=J)==null||hu(!!ca)}var ah;((ah=m)==null?0:ah())||_.uA(_.E().resolve(_.jG),u().trackingParams);var va;if(!ca||!S(u().defaultButtonViewModel)||(va=m)!=null&&va()){var yX;!S(u().toggledButtonViewModel)||((yX=m)==null?0:yX())||_.uA(_.E().resolve(_.jG),S(u().toggledButtonViewModel).trackingParams)}else _.uA(_.E().resolve(_.jG),S(u().defaultButtonViewModel).trackingParams)}
var u=Y.data,W=Y.buttonShapeOverrides,m=Y.disableExplicitClickLogging,J=Y.onToggle,c=Y.style,C=Y.useOutlinedIcon,x=Y.className,b=function(){var ca,hu;return a()?(ca=Y.animatedTextPropsToggled)==null?void 0:ca.call(Y):(hu=Y.animatedTextPropsDefault)==null?void 0:hu.call(Y)},T=_.fJ(function(){return b()?Object.assign({},b(),{shouldAnimate:F()}):void 0},void 0,"ZKEa0b"),K=function(){var ca;
return((ca=zJ())==null?void 0:ca.isToggled)!==void 0},G=_.n(_.ji(function(){var ca,hu,ah;
return K()?(ca=zJ())==null?void 0:ca.isToggled:(ah=W==null?void 0:(hu=W())==null?void 0:hu.toggled)!=null?ah:u().isToggled})),v=G.next().value;
G=G.next().value;var a=v,w=G;G=_.n(_.ji(function(){var ca,hu;return(ca=Y.animatedTextPropsToggled)==null?void 0:(hu=ca.call(Y))==null?void 0:hu.shouldAnimate}));
v=G.next().value;G=G.next().value;var F=v,U=G;v=_.n(_.qb(!1,void 0,"S11hid"));var V=v.next().value,M=v.next().value,zJ=_.GI(function(ca){var hu;a:{var ah=u().entityKey,va=u().toggledStateEntitySelectorType;if(va&&ah)switch(va){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var yX;ca=(yX=_.BT(ca.entities,"sfvAudioItemCurrentlyPlayingEntity",ah))!=null?yX:void 0;yX=(hu=ca==null?void 0:ca.sfvAudioItemPlaybackState)!=null?hu:void 0;if(yX==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){hu={isToggled:!0};
break a}if(yX){hu={isToggled:!1};break a}break;default:_.sf(new _.$2("Error: entitySelectorType defined but not matched in selector.",ca,va))}hu=void 0}return hu});
v=_.mR(function(){var ca=_.E().resolve(_.PQ(_.Tz));ca&&M(ca.isKeyBoardInUse());return!1});
G=_.mR(function(){M(!1);return!1});
var O=function(){return Object.assign({},W==null?void 0:W(),{onToggle:P,toggleable:!0,toggled:a(),focused:V()})};
return _.R("toggle-button-view-model",{"on:focusin":v,"on:focusout":G,class:x},_.R(_.gw,{cond:function(){return a()?S(u().toggledButtonViewModel):S(u().defaultButtonViewModel)},
then:function(ca){return _.R(_.aq,{data:ca,className:x,style:c,useOutlinedIcon:C,buttonOverrides:O,animatedTextProps:T})}}))},"v");
_.vL.idomCompat={callbacks:{onToggle:!0}};_.AL(_.AI(function(Y){return _.R("yt-toggle-button-view-model",{class:function(){var S;return(S=Y.scopingClassName)==null?void 0:S.call(Y)}},_.R(_.vL,{data:function(){var S;
return(S=Y.data)==null?void 0:S.call(Y)},
buttonShapeOverrides:function(){var S;return(S=Y.overrides)==null?void 0:S.call(Y)},
animatedTextPropsDefault:function(){var S;return(S=Y.animatedTextPropsDefault)==null?void 0:S.call(Y)},
animatedTextPropsToggled:function(){var S;return(S=Y.animatedTextPropsToggled)==null?void 0:S.call(Y)},
disableExplicitClickLogging:function(){var S;return(S=Y.disableExplicitClickLogging)==null?void 0:S.call(Y)},
onToggle:function(S){var P;return(P=Y.onToggle)==null?void 0:P.call(Y,S)},
style:function(){var S;return(S=Y.style)==null?void 0:S.call(Y)},
useOutlinedIcon:function(){var S;return(S=Y.useOutlinedIcon)==null?void 0:S.call(Y)},
className:function(){var S;return(S=Y.className)==null?void 0:S.call(Y)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.wm,
buttonShapeOverrides:_.wm,overrides:_.wm,animatedTextPropsDefault:_.wm,animatedTextPropsToggled:_.wm,disableExplicitClickLogging:_.wm,onToggle:_.tL,style:_.wm,useOutlinedIcon:_.wm,className:_.wm,scopingClassName:_.wm}});var JO=function(){return _.Z.apply(this,arguments)||this};
_.r(JO,_.Z);JO.prototype.onTap=function(Y){Y.stopPropagation();Y=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Dw("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:Y})):this.ytLiveChatReduxBehavior.dispatch(_.qE("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:Y}))};
_.y6.Object.defineProperties(JO.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.engagementState)==null?void 0:Y.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=_.g(this.data.toggleButton,_.hq),S;if(Number(((S=this.likeCountState)==null?void 0:S.likeCountIfIndifferentNumber)||"0")===0){var P;S=((P=this.data.likeCountPlaceholder)==null?void 0:P.content)||""}else{var u,W,m;S=((u=this.likeCountState)==null?void 0:(W=u.likeCountIfIndifferent)==null?void 0:W.content)||((m=this.data.likeCountPlaceholder)==null?void 0:m.content)||""}var J,c;P=((J=this.likeCountState)==null?void 0:(c=
J.likeCountIfLiked)==null?void 0:c.content)||"1";J=_.g(Y.toggledButtonViewModel,_.Gz);return Object.assign({},Y,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.g(Y.defaultButtonViewModel,_.Gz),{title:S})},toggledButtonViewModel:{buttonViewModel:Object.assign({},J,{title:P})}})}}}});
JO.prototype.onTap=JO.prototype.onTap;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],JO.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.gm),_.k("design:type",Object)],JO.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],JO.prototype,"data",void 0);
_.Q([_.X({selectorArgs:["data.likeCountEntityKey"],selector:zch}),_.k("design:type",Object)],JO.prototype,"likeCountState",void 0);_.Q([_.X({selectorArgs:["data.engagementStateKey"],selector:F3J}),_.k("design:type",Object)],JO.prototype,"engagementState",void 0);_.Q([_.d("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],JO.prototype,"isLiked",null);
_.Q([_.d("data","likeCountState","isLiked"),_.k("design:type",Object),_.k("design:paramtypes",[])],JO.prototype,"toggleButton",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],JO.prototype,"onTap",null);JO=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],JO);
_.A(JO,"yt-live-chat-like-button-view-model",function(){if(Pcd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;S7J===void 0&&(S7J=document.createElement("template"));var u=S7J;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Pcd=Y}Y=Pcd;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var t0h;var AWi;var B0=function(){return _.Z.apply(this,arguments)||this};
_.r(B0,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],B0.prototype,"data",void 0);B0=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],B0);
_.A(B0,"yt-live-chat-paid-message-footer-renderer",function(){if(AWi===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;t0h===void 0&&(t0h=document.createElement("template"));var u=t0h;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);AWi=Y}Y=AWi;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Uv_;var Q$_;var kCf;var M0s,yWU=function(){if(M0s!==void 0)return M0s;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;kCf===void 0&&(kCf=document.createElement("template"));var u=kCf;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return M0s=Y};var c0=function(){return _.Z.apply(this,arguments)||this};
_.r(c0,_.Z);c0.prototype.onTap=function(Y){Y.stopPropagation()};
_.y6.Object.defineProperties(c0.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=_.g(this.data.replyButton,_.Gz),S,P,u,W,m,J,c,C=Number(((S=this.replyCountState)==null?void 0:S.replyCountNumber)||"0")===0?(P=this.data)==null?void 0:(u=P.replyCountPlaceholder)==null?void 0:u.content:((W=this.replyCountState)==null?void 0:(m=W.replyCount)==null?void 0:m.content)||((J=this.data)==null?void 0:(c=J.replyCountPlaceholder)==null?void 0:c.content)||"",x;return Object.assign({},
Y,{title:C,accessibilityText:(x=this.replyCountState)==null?void 0:x.replyButtonAccessibilityText})}}}});
_.y6.Object.defineProperties(c0,{template:{configurable:!0,enumerable:!0,get:function(){return yWU()}}});
c0.prototype.onTap=c0.prototype.onTap;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],c0.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.gm),_.k("design:type",Object)],c0.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],c0.prototype,"data",void 0);
_.Q([_.X({selectorArgs:["data.replyCountEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"replyCountEntity",S)}}),
_.k("design:type",Object)],c0.prototype,"replyCountState",void 0);_.Q([_.d("data","replyCountState"),_.k("design:type",Object),_.k("design:paramtypes",[])],c0.prototype,"buttonViewModel",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],c0.prototype,"onTap",null);c0=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],c0);
_.A(c0,"yt-live-chat-reply-button-view-model",function(){return yWU()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var NtU;var HB6;var Ck=function(){var Y=_.Z.apply(this,arguments)||this;Y.ariaLabel="";return Y};
_.r(Ck,_.Z);
Ck.prototype.dataChanged=function(){for(var Y=(0,_.OR)(_.I(this.hostElement).querySelector("#image"));Y.firstChild;)Y.removeChild(Y.firstChild);if(this.data)if(this.data.icon){var S=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(S.polymerController.icon="yt-sys-icons:shield-filled",S.polymerController.defaultToFilled=!0):S.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();Y.appendChild(S)}else if(this.data.customThumbnail){S=document.createElement("img");
var P=_.Yr1(this.data.customThumbnail.thumbnails,16);P?(S.src=P,Y.appendChild(S),S.setAttribute("alt",this.hostElement.ariaLabel||"")):_.sf(new _.$2("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Ck.prototype.identity=function(Y){return Y};
Ck.prototype.computeType=function(Y){return YJ(Y||void 0)};
Ck.prototype.dataChanged=Ck.prototype.dataChanged;_.Q([_.X(),_.k("design:type",Object)],Ck.prototype,"data",void 0);_.Q([_.X({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.k("design:type",Object)],Ck.prototype,"ariaLabel",void 0);_.Q([_.X({computed:"computeType(data)",reflectToAttribute:!0}),_.k("design:type",String)],Ck.prototype,"type",void 0);
_.Q([_.X({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.k("design:type",String)],Ck.prototype,"sharedTooltipText",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("live_chat_enable_new_moderator_badge")}}),
_.k("design:type",Boolean)],Ck.prototype,"enableNewModeratorBadge",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ck.prototype,"dataChanged",null);Ck=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Ck);
_.A(Ck,"yt-live-chat-author-badge-renderer",function(){if(HB6===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;NtU===void 0&&(NtU=document.createElement("template"));var u=NtU;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);HB6=Y}Y=HB6;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var V0S;var ept;var qV=function(){return _.Z.apply(this,arguments)||this};
_.r(qV,_.Z);_.z=qV.prototype;_.z.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"}}}}};
_.z.computeBadgesInsideChip=function(Y){return Y?Y.filter(function(S){return YJ(S.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.z.computeBadgesOutsideChip=function(Y){return this.prependChatBadges||!Y?[]:Y.filter(function(S){S=YJ(S.liveChatAuthorBadgeRenderer);return S!=="verified"&&S!=="owner"})};
_.z.computeBadgesBeforeChip=function(Y){return this.prependChatBadges&&Y?Y.filter(function(S){S=YJ(S.liveChatAuthorBadgeRenderer);return S!=="verified"&&S!=="owner"}):[]};
_.z.computeIsHighlighted=function(Y,S){var P=!!cPJ(Y,"owner"),u=!!cPJ(Y,"verified");Y=!!cPJ(Y,"moderator");return(P||u&&!Y)&&!S};
_.z.computeAuthorType=function(Y){return B4K(Y)};
_.z.computeAuthorClass=function(Y,S){return S?(Y?Y+" ":"")+"single-line":Y};
_.z.onSeedColorChanged=function(){_.f("live_chat_author_name_color_usernames")||_.f("live_chat_seed_color_usernames")||_.f("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):_.f("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
qV.prototype.onSeedColorChanged=qV.prototype.onSeedColorChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],qV.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],qV.prototype,"authorName",void 0);_.Q([_.X(),_.k("design:type",Array)],qV.prototype,"authorBadges",void 0);
_.Q([_.X({computed:"computeAuthorType(authorBadges)"}),_.k("design:type",String)],qV.prototype,"authorType",void 0);_.Q([_.X({computed:"computeAuthorClass(authorType, singleLine)"}),_.k("design:type",String)],qV.prototype,"authorClass",void 0);_.Q([_.X({computed:"computeBadgesInsideChip(authorBadges)"}),_.k("design:type",Array)],qV.prototype,"badgesInsideChip",void 0);_.Q([_.X({computed:"computeBadgesOutsideChip(authorBadges)"}),_.k("design:type",Array)],qV.prototype,"badgesOutsideChip",void 0);
_.Q([_.X({computed:"computeBadgesBeforeChip(authorBadges)"}),_.k("design:type",Array)],qV.prototype,"badgesBeforeChip",void 0);_.Q([_.X({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.k("design:type",Boolean)],qV.prototype,"isHighlighted",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],qV.prototype,"singleLine",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],qV.prototype,"disableHighlighting",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],qV.prototype,"dashboardMoneyFeed",void 0);_.Q([_.X({value:_.f("live_chat_prepend_badges"),reflectToAttribute:!0}),_.k("design:type",Boolean)],qV.prototype,"prependChatBadges",void 0);_.Q([_.X(),_.k("design:type",String)],qV.prototype,"authorNameColor",void 0);_.Q([_.nc("#author-name"),_.k("design:type",HTMLDivElement)],qV.prototype,"username",void 0);
_.Q([_.zY("authorNameColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qV.prototype,"onSeedColorChanged",null);qV=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],qV);
_.A(qV,"yt-live-chat-author-chip",function(){if(ept===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;V0S===void 0&&(V0S=document.createElement("template"));var u=V0S;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);ept=Y}Y=ept;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var OBU;var Yrd;var R1=function(){var Y=_.Z.apply(this,arguments)||this;Y.debounceCommand=_.KX(function(S){Y.ytComponentBehavior.resolveCommand(S)},1500);
return Y};
_.r(R1,_.Z);R1.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var Y=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",S,P,u=this.isHearted?(S=this.data)==null?void 0:S.unheartCommand:(P=this.data)==null?void 0:P.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Dw("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:Y}));(Y=_.vF(u))&&this.debounceCommand(Y)}};
_.y6.Object.defineProperties(R1.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var Y,S;if(!((Y=this.data)==null?0:(S=Y.creatorThumbnail)==null?0:S.sources))return{};Y={thumbnails:[]};S={};S.url=this.data.creatorThumbnail.sources[0].url;Y.thumbnails.push(S);return Y}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((P=this.engagementState)==null?void 0:P.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}}});
R1.prototype.onTap=R1.prototype.onTap;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],R1.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.gm),_.k("design:type",Object)],R1.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],R1.prototype,"data",void 0);
_.Q([_.X({selectorArgs:["data.engagementStateKey"],selector:F3J}),_.k("design:type",Object)],R1.prototype,"engagementState",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],R1.prototype,"thumbnailDetails",null);_.Q([_.d("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],R1.prototype,"isHearted",null);_.Q([_.d("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],R1.prototype,"isEditable",null);
_.Q([_.d("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],R1.prototype,"showCreatorView",null);_.Q([_.d("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],R1.prototype,"showButton",null);_.Q([_.d("data","isHearted"),_.k("design:type",String),_.k("design:paramtypes",[])],R1.prototype,"label",null);_.Q([_.d("data","isHearted"),_.k("design:type",Object),_.k("design:paramtypes",[])],R1.prototype,"heartHoverText",null);
_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R1.prototype,"onTap",null);R1=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],R1);
_.A(R1,"yt-live-chat-creator-heart-view-model",function(){if(Yrd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;OBU===void 0&&(OBU=document.createElement("template"));var u=OBU;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Yrd=Y}Y=Yrd;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var xO=function(Y,S){this.serviceId=new NKf(Y,S)};
xO.prototype.toString=function(){return this.serviceId.toString()};var Srh=function(){this.internalMap={}};
_.z=Srh.prototype;_.z.contains=function(Y){return Object.prototype.hasOwnProperty.call(this.internalMap,Y)};
_.z.get=function(Y){if(this.contains(Y))return this.internalMap[Y]};
_.z.set=function(Y,S){this.internalMap[Y]=S};
_.z.getKeys=function(){return Object.keys(this.internalMap)};
_.z.remove=function(Y){delete this.internalMap[Y]};var bs=function(){this.mappings=new Srh;this.errorCallbacks=new Set};
bs.prototype.getModuleId=function(Y){return Y.serviceId.getModuleId()};
bs.prototype.get=function(Y){var S=this.mappings.get(Y.toString());return Pwf(this,S,Y)};
bs.prototype.getMultipleAsync=function(){var Y=_.Ch.apply(0,arguments),S=this,P=Y.map(function(C){return S.getModuleId(C)}),u=Y.map(function(C){return S.mappings.get(C.toString())}).filter(function(C){return C});
if(u.length===Y.length)return _.Cb(u.map(function(C,x){return Pwf(S,C,Y[x])}));
var W=$S().loadMultiple(P);u=_.fl(P.map(function(C){return W[C]}));
var m=document.hidden,J=-1,c=_.z_("get_async_timeout_ms",-1);c>-1&&(J=setTimeout(function(){_.sf(new _.$2("Module timeout.",P,m,document.hidden))},c));
return _.gy(u.then(function(){return Y.map(function(C){return Pwf(S,S.mappings.get(C.toString()),C)})}).thenCatch(function(C){for(var x=_.n(S.errorCallbacks),b=x.next();!b.done;b=x.next())b=b.value,b(C);
throw C;}),function(){clearTimeout(J)})};
bs.prototype.registerService=function(Y,S){this.mappings.set(Y.toString(),{type:"mapping",value:S});return Y};
var Pwf=function(Y,S,P){switch(S.type){case "mapping":return S.value;case "factory":return S=S.value(),Y.mappings.set(P.toString(),{type:"mapping",value:S}),S;default:return _.O6(S)}};
bs.prototype.onLoadError=function(Y){var S=this;this.errorCallbacks.add(Y);return function(){S.errorCallbacks.delete(Y)}};
_.TV=new bs;var uL_=function(){};
_.z=uL_.prototype;
_.z.JSC$11770_getRequest=function(Y,S,P){S=S===void 0?{}:S;P=P===void 0?yiu:P;var u=S;if(this.isNavigationCommand()){var W,m=(W=_.g(Y==null?void 0:Y.commandMetadata,_.Yo))==null?void 0:W.url;u=_.RK9(Y.clickTrackingParams,!0,!1,m,this.JSC$11770_getClientScreen(u))}else u=_.RK9(Y.clickTrackingParams,!1,this.includeCsn);u={context:u};if(W=this.getExtension(Y))return this.JSC$11770_buildRequest(u,W,S),W=this.getApiUrl(Y),m=Object.assign({},{command:Y},this.getRequestConfig(Y,S)),u={input:W,requestShell:k5(W),
innerTubeRequest:u,config:m},u.config.authStrategy?u.config.authStrategy.identity=P:u.config.authStrategy={identity:P},(Y=this.JSC$11770_getRequestKey(Y,S))&&!u.config.requestKey&&(u.config.requestKey=Y),u;Y=new _.$2("Error: Failed to create Request from Command.",Y);_.p_(Y)};
_.z.getApiUrl=function(Y){var S=_.HT(this.getApiPaths(Y)),P;(Y=(P=_.g(Y.commandMetadata,_.Yo))==null?void 0:P.apiUrl)&&(S=Y);return XyK(ljE(S))};
_.z.isNavigationCommand=function(){return!1};
_.z.JSC$11770_getClientScreen=function(){};
_.z.JSC$11770_getRequestKey=function(){};
_.z.getRequestConfig=function(){};
_.y6.Object.defineProperties(uL_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Kk=function(){};
_.r(Kk,uL_);Kk.prototype.JSC$11777_getStoreKey=function(){};
Kk.prototype.JSC$11770_getRequestKey=function(Y,S){S=S===void 0?{}:S;return this.JSC$11777_getStoreKey(Y,S)};var EL=function(){};
_.r(EL,Kk);EL.prototype.JSC$11770_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:k5("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
EL.prototype.getApiPaths=function(){return[]};
EL.prototype.getExtension=function(){};
EL.prototype.JSC$11770_buildRequest=function(){};var Wtd={},z$h=(Wtd.GET_DATASYNC_IDS=DK(EL),Wtd);var mju,nPS,jy3,WLd,fk,cN3,Bbi,Bzm,JNf;mju="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");nPS=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.pR=function(Y,S,P,u,W,m,J,c,C){this.endpointMap=Y;this.networkManager=S;this.authService=P;this.responseProcessorMap=u;this.innertubeResponseStore=W;this.contextProcessors=m;this.asyncContextProcessors=J;this.localInnertubeRouter=c;this.requestSequencer=C;this.inflightRequests=new Map;Y.signalEndpointMap||(Y.signalEndpointMap={});Y.signalEndpointMap=Object.assign({},z$h,Y.signalEndpointMap)};
jy3=function(Y,S,P,u,W,m,J,c,C){if(_.pR.instance!==void 0){if(u=_.pR.instance,Y=[Y!==u.endpointMap,S!==u.networkManager,P!==u.authService,W!==u.innertubeResponseStore,m!==u.contextProcessors,J!==u.asyncContextProcessors,c!==u.localInnertubeRouter],Y.some(function(x){return x}))throw new _.$2("InnerTubeTransportService is already initialized",Y);
}else _.pR.instance=new _.pR(Y,S,P,u,W,m,J,c,C)};
_.sn=function(Y,S,P){var u=u===void 0?yiu:u;var W=Bbi(Y,S);return W?new _.qs(function(m,J){var c,C,x,b,T;return _.B(function(K){switch(K.nextAddress){case 1:return _.q(K,W,2);case 2:c=K.yieldResult;C=c.JSC$11770_getRequest(S,P,u);if(!C){J(new _.$2("Error: Failed to build request for command.",S));K.jumpTo(0);break}IK(C.input);b=((x=C.requestShell)==null?void 0:x.mode)==="cors"?"cors":void 0;if(Y.authService.syncHeaders){T=JNf(C.config,b);K.jumpTo(4);break}return _.q(K,Bzm(C.config,b),5);case 5:T=
K.yieldResult;case 4:m(cN3(Y,C,T)),_.Yt(K)}})}):_.t9(new _.$2("Error: No request builder found for command.",S))};
WLd=function(Y,S,P,u){var W=W===void 0?yiu:W;var m,J,c,C,x,b,T,K,G,v,a,w,F,U,V,M,zJ,O;return _.B(function(ca){switch(ca.nextAddress){case 1:m=jE8(S,Y.endpointMap);if(!m)throw new _.$2("Error: No streaming request builder found for command",S);J=m.JSC$11770_getRequest(S,P,W);if(!J)throw new _.$2("Failed to build YtRequest for streaming Command",S);if((c=Y.localInnertubeRouter)==null||!c.shouldPreferLocalResponse(J.input,J.innerTubeRequest)){ca.jumpTo(2);break}return _.q(ca,Y.localInnertubeRouter.localInnertubeResponse(J.input,
J.innerTubeRequest),3);case 3:return C=ca.yieldResult,x={},C.playerResponse&&(fk(Y,C.playerResponse,J),x.player=C.playerResponse,(b=u)==null||b(x,C)),C.watchNextResponse&&(fk(Y,C.watchNextResponse,J),x.content=C.watchNextResponse,(T=u)==null||T(x,C)),ca.return(x);case 2:G=((K=J.requestShell)==null?void 0:K.mode)==="cors"?"cors":void 0;if(Y.authService.syncHeaders){v=JNf(J.config,G);ca.jumpTo(4);break}return _.q(ca,Bzm(J.config,G),5);case 5:v=ca.yieldResult;case 4:return F=(w=(a=J.requestShell)==null?
void 0:a.headers)!=null?w:{},J.requestShell=Object.assign({},J.requestShell,{headers:Object.assign({},F,v)}),U=Object.assign({},J.requestShell),V=JSON.stringify(J.innerTubeRequest),J.requestShell.method==="POST"&&(U=Object.assign({},U,{body:V})),M=function(hu,ah){fk(Y,ah.playerResponse||ah.watchNextResponse||ah.reelItemWatchResponse||ah.reelWatchSequenceResponse,J);u==null||u(hu,ah)},zJ={},_.q(ca,CwS(Y.networkManager,J.input,U,M),6);
case 6:return zJ=ca.yieldResult,((O=J.config)==null?0:O.responseTick)&&_.Fk(J.config.responseTick),ca.return(zJ)}})};
_.h5=function(Y,S,P,u,W){W=W===void 0?{authStrategy:{identity:yiu}}:W;var m=m===void 0?!0:m;var J=function(){};
J=YbY(eO1(P));S.context||(S.context=_.RK9(u,m));return new _.qs(function(c){var C,x,b,T,K;return _.B(function(G){if(G.nextAddress==1)return C=ljE(P),x=_.Qx(C),Y.authService.syncHeaders?(b=JNf(W,x),G.jumpTo(2)):_.q(G,Bzm(W,x),3);G.nextAddress!=2&&(b=G.yieldResult);T=XyK(ljE(P));K={input:T,requestShell:k5(T),innerTubeRequest:S,config:W};c(cN3(Y,K,b,J));_.Yt(G)})})};
fk=function(Y,S,P){var u;if(S&&!(S==null?0:(u=S.sequenceMetaData)==null?0:u.skipProcessing)&&Y.responseProcessorMap){u=_.n(mju);for(var W=u.next();!W.done;W=u.next())W=W.value,Y.responseProcessorMap[W]&&Y.responseProcessorMap[W].handleResponse(S,P)}};
cN3=function(Y,S,P,u){u=u===void 0?function(){}:u;
var W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V,M,zJ,O,ca,hu,ah,va,yX,la,w1,U9,nu,Yc,tu,$_,fu,G3,wd,Wd,kE,n8,P6,ML,zc;return _.B(function(Ku){switch(Ku.nextAddress){case 1:J=(W=S.config)==null?void 0:(m=W.storeStrategy)==null?void 0:m.storeKey;if(!(J&&Y.innertubeResponseStore&&Y.innertubeResponseStore.has(J))||((c=S.config)==null?0:(C=c.storeStrategy)==null?0:C.disableCache)){Ku.jumpTo(2);break}return _.q(Ku,Y.innertubeResponseStore.get(J),3);case 3:if((x=Ku.yieldResult)&&!x.isExpired())return Ku.return(Promise.resolve(_.na(x)));
case 2:if(!((b=S)==null?0:(T=b.innerTubeRequest)==null?0:T.context)){Ku.jumpTo(4);break}K=S.innerTubeRequest.context;if(!(Y.asyncContextProcessors&&Y.asyncContextProcessors.length>0)){Ku.jumpTo(5);break}G=[];v=_.n(Y.asyncContextProcessors);for(a=v.next();!a.done;a=v.next())w=a.value,F=w.processContext(S),F.wrappedPromise_&&G.push(F.wrappedPromise_);if(!(G.length>0)){Ku.jumpTo(5);break}return _.q(Ku,Promise.all(G),5);case 5:U=_.n(Y.contextProcessors||[]),V=U.next();case 8:if(V.done){Ku.jumpTo(4);break}M=
V.value;return _.q(Ku,M.processContext(K),9);case 9:V=U.next();Ku.jumpTo(8);break;case 4:if((zJ=Y.localInnertubeRouter)==null||!zJ.shouldPreferLocalResponse(S.input,S.innerTubeRequest)){Ku.jumpTo(12);break}return _.q(Ku,Y.localInnertubeRouter.localInnertubeResponse(S.input,S.innerTubeRequest),13);case 13:return O=Ku.yieldResult,fk(Y,O,S),Ku.return(O);case 12:return(ah=(hu=S.config)==null?void 0:hu.requestKey)&&Y.inflightRequests.has(ah)?ca=Y.inflightRequests.get(ah):(va=JSON.stringify(S.innerTubeRequest),
w1=(la=(yX=S.requestShell)==null?void 0:yX.headers)!=null?la:{},S.requestShell=Object.assign({},S.requestShell,{headers:Object.assign({},w1,P)}),U9=Object.assign({},S.requestShell),S.requestShell.method==="POST"&&(U9=Object.assign({},U9,{body:va})),((nu=S.config)==null?0:nu.requestTick)&&_.Fk(S.config.requestTick),Yc=function(){return Y.networkManager.fetch(S.input,U9,S.config)},ca=Y.requestSequencer?qr6(Y.requestSequencer,S,Yc):Yc(),ah&&Y.inflightRequests.set(ah,ca)),_.q(Ku,ca,14);
case 14:if((tu=Ku.yieldResult)&&"error"in tu&&(($_=tu)==null?0:(fu=$_.error)==null?0:fu.details))for(G3=tu.error.details,wd=_.n(G3),Wd=wd.next();!Wd.done;Wd=wd.next())kE=Wd.value,(n8=kE["@type"])&&nPS.indexOf(n8)>-1&&(delete kE["@type"],tu=kE);ah&&Y.inflightRequests.has(ah)&&Y.inflightRequests.delete(ah);((P6=S.config)==null?0:P6.responseTick)&&_.Fk(S.config.responseTick);if(tu||(ML=Y.localInnertubeRouter)==null||!ML.canProvideFallbackResponse(S.input,S.innerTubeRequest)){Ku.jumpTo(15);break}return _.q(Ku,
Y.localInnertubeRouter.localFallbackInnertubeResponse(S.input,S.innerTubeRequest),16);case 16:tu=Ku.yieldResult;case 15:return fk(Y,tu,S),((zc=S.config)==null?0:zc.processorTick)&&_.Fk(S.config.processorTick),u(),Ku.return(tu||void 0)}})};
_.Ft=function(Y,S){return nKU(S,Y.endpointMap)};
Bbi=function(Y,S){Y=J41(S,Y.endpointMap);if(Y!==void 0)return Promise.resolve(Y)};
Bzm=function(Y,S){var P,u,W,m;return _.B(function(J){if(J.nextAddress==1){W=(P=Y)==null?void 0:(u=P.authStrategy)==null?void 0:u.sessionIndex;var c=_.Cb(no1({sessionIndex:W}));return _.q(J,c,2)}m=J.yieldResult;return J.return(Promise.resolve(Object.assign({},BrE(S),m)))})};
JNf=function(Y,S){var P;Y=Y==null?void 0:(P=Y.authStrategy)==null?void 0:P.sessionIndex;P=no1({sessionIndex:Y});return Object.assign({},BrE(S),P)};var R$s,xjJ,b5u,Tzd,Ktf,EPs,$jt,rNf,rC,GKu,h$h,gPf,vPJ;R$s=0;xjJ=/tone[1-5]/;b5u=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Tzd="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Ktf=Number.MAX_SAFE_INTEGER;EPs=RegExp("\ufe0f","g");_.gC=function(Y){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;Y&&_.f5f(this,Y)};
_.f5f=function(Y,S){try{_.qY(S,{context:Y,onSuccess:function(u,W){Array.isArray(W)?Y.load(W):(u=new _.$2("Emoji manager JSON response was not an array!",{response:W}),_.p_(u))},
onError:function(u){u=new _.$2("Failed to retrieve emoji manager initial JSON data!",{url:S,statusCode:jH(u).toString()});_.sf(u)}})}catch(u){var P=new _.$2("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:S});
_.sf(P)}};
_.gC.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.gC.prototype.load=function(Y,S){if(S)if(Y.length)Y=Y.concat(S.emojis);else{this.emojis=S.emojis;this.emojiMap=S.emojiMap;this.emojiShortcutMap=S.emojiShortcutMap;this.emojiShortcutCharMap=gPf(S);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=S.emojiRegex;return}this.emojis=[].concat(_.cz(new Set(this.emojis.concat(Y))));this.hasInitializedShortcutCharMap=!1;Y=Array(this.emojis.length);for(S=0;S<this.emojis.length;S++){var P=this.emojis[S];if(P.emojiId){this.emojiMap[P.emojiId]=P;this.emojiMap[P.emojiId].index=
S;for(var u=0;P.shortcuts&&u<P.shortcuts.length;u++)this.emojiShortcutMap[P.shortcuts[u].toLocaleLowerCase()]=P;Y[S]=P.isCustomEmoji&&P.shortcuts?P.shortcuts[0]:P.emojiId}}Y.sort(function(W,m){return m.length-W.length});
if(Y.length)try{this.emojiRegex=new RegExp(Y.join("|").replace("*","\\*"),"gi")}catch(W){this.emojiRegex=/$./}else this.emojiRegex=/$./};
$jt=function(Y,S){S=_.n(S);for(var P=S.next();!P.done;P=S.next()){var u=P.value;if(u.emojiId&&Y.emojiMap[u.emojiId]){P=Object.assign({},Y.emojiMap[u.emojiId],u);Y.emojiMap[u.emojiId]=P;var W=void 0;P.index&&((W=Y.emojis[P.index])==null?void 0:W.emojiId)===u.emojiId&&(Y.emojis[P.index]=P);u=void 0;if((u=P.shortcuts)==null?0:u.length)for(Y.hasInitializedShortcutCharMap=!1,u=_.n(P.shortcuts),W=u.next();!W.done;W=u.next())Y.emojiShortcutMap[W.value.toLocaleLowerCase()]=P}}};
rNf=function(Y){var S,P;_.B(function(u){if(u.nextAddress==1)return _.q(u,_.bA.getInstance(),2);if(u.nextAddress!=3)return(S=u.yieldResult)?_.q(u,S.get("ytlc-emoji-pref"),3):u.return();(P=u.yieldResult)&&$jt(Y,Object.keys(P).map(function(W){return{emojiId:W,stickyPrefId:P[W]}}).filter(function(W){return!!W.emojiId&&!!W.stickyPrefId}));
_.Yt(u)})};
_.$O=function(Y,S,P){return(Y=Y.emojiMap[S])&&(!Y.isLocked||P!==void 0&&P)?Y:void 0};
rC=function(Y,S,P){P=_.$O(Y,S,P===void 0?!1:P);var u=S.match("\u200d");P&&Y.skinTone!==0&&(Y=(u==null?void 0:u.length)===1?_.$O(Y,S.replace("\u200d",b5u[Y.skinTone]+"\u200d")):_.$O(Y,S+b5u[Y.skinTone]))&&(P=Y);return P};
GKu=function(Y,S){var P=Y.emojiMap[S];return(P==null?0:P.stickyPrefId)?Y.emojiMap[P.stickyPrefId]:rC(Y,S)};
_.qF=function(Y,S){Y=Y.emojiShortcutMap[S.toLocaleLowerCase()];return!Y||Y.isLocked?null:Y};
h$h=function(Y,S,P){return gPf(Y,P===void 0?!1:P)[S]||{}};
gPf=function(Y,S){S=S===void 0?!1:S;if(!Y.hasInitializedShortcutCharMap){Y.hasInitializedShortcutCharMap=!0;for(var P=0;P<Y.emojis.length;P++){var u=Y.emojis[P];if(!(u.isLocked||S&&u.isCustomEmoji&&u.emojiId&&!Y.pickerCustomEmojiIds.includes(u.emojiId)))for(var W=0;u.shortcuts&&W<u.shortcuts.length;W++){var m=u.shortcuts[W];m.startsWith(":_")&&u.isCustomEmoji&&(Y.emojiShortcutCharMap[":_"]==null&&(Y.emojiShortcutCharMap[":_"]=Object.create(null)),Y.emojiShortcutCharMap[":_"][m]=u);if(!(m.length<3||
!u.isCustomEmoji&&xjJ.test(m))){var J=m.substr(0,3).toLocaleLowerCase();Y.emojiShortcutCharMap[J]==null&&(Y.emojiShortcutCharMap[J]=Object.create(null));Y.emojiShortcutCharMap[J][m]=u}}}}return Y.emojiShortcutCharMap};
_.gC.prototype.createEmoji=function(Y,S){S=S===void 0?!0:S;var P=document.createElement("img");Y.isCustomEmoji||P.classList.add("small-emoji");P.classList.add("emoji");P.classList.add("yt-formatted-string");P.src=Y.image?_.UD(Y.image.thumbnails,this.emojiSize)||"":"";var u=void 0;Y.image&&Y.image.accessibility&&Y.image.accessibility.accessibilityData&&(u=Y.image.accessibility.accessibilityData.label);P.alt=u?u:(Y.isCustomEmoji&&Y.shortcuts?Y.shortcuts[0]:Y.emojiId)||"";Y.isCustomEmoji&&(P.dataset.emojiId=
Y.emojiId);_.nj&&(P.setAttribute("contenteditable","false"),P.setAttribute("unselectable","on"));S&&(Y.shortcuts&&Y.shortcuts.length&&P.setAttribute("shared-tooltip-text",Y.shortcuts[0]),P.id="emoji-"+R$s++);return P};
_.gC.prototype.createDocumentFragment=function(Y,S,P,u){S=S===void 0?!1:S;P=P===void 0?!0:P;u=u===void 0?!1:u;Y=Y.replace(EPs,"");for(var W=document.createDocumentFragment(),m=0,J,c=0;(J=this.emojiRegex.exec(Y))!=null;){var C=_.$O(this,J[0])||_.qF(this,J[0]);!C||C.isCustomEmoji&&!S||(C=this.createEmoji(C,P),m!==J.index&&W.appendChild(document.createTextNode(Y.substring(m,J.index))),W.appendChild(C),m=J.index+J[0].length,c++)}if(!u||c)return W.appendChild(document.createTextNode(Y.substr(m))),W};
vPJ=function(Y,S,P){var u,W,m,J,c,C,x,b,T;return _.B(function(K){if(K.nextAddress==1){if(!S.emojiId||!Y.emojiMap[S.emojiId])return K.return();u=Object.assign({},Y.emojiMap[S.emojiId],{stickyPrefId:P});Y.emojiMap[S.emojiId]=u;S.index&&((W=Y.emojis[S.index])==null?void 0:W.emojiId)===S.emojiId&&(Y.emojis[S.index]=u);if((m=S.shortcuts)==null?0:m.length)for(Y.hasInitializedShortcutCharMap=!1,J=_.n(S.shortcuts),c=J.next();!c.done;c=J.next())C=c.value,Y.emojiShortcutMap[C.toLocaleLowerCase()]=u;return _.q(K,
_.bA.getInstance(),2)}if(K.nextAddress!=4)return(x=K.yieldResult)?_.q(K,x.get("ytlc-emoji-pref"),4):K.jumpTo(0);T=(b=K.yieldResult)!=null?b:{};T[S.emojiId]=P;return _.q(K,x.set("ytlc-emoji-pref",T,Ktf),0)})};
_.GV=new _.gC;var a5d;_.hO={};
a5d={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.f("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:_.f("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 UC(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var Y=_.I(this.hostElement||this).querySelector("#inline-action-button-container");Y&&Y.setAttribute("aria-hidden","true");this.menuButton=_.I(this.hostElement).querySelector("#menu-button")},
attached:function(){var Y=this.menuButton;Y&&(Y.addEventListener("focusin",_.up(this,this.onMenuButtonFocus_)),Y.addEventListener("focusout",_.up(this,this.onMenuButtonBlur_)))},
detached:function(){var Y=this.menuButton;Y&&(Y.removeEventListener("focusin",_.up(this,this.onMenuButtonFocus_)),Y.removeEventListener("focusout",_.up(this,this.onMenuButtonBlur_)))},
identity:_.XE,truthy:function(Y){return!!Y},
computeTimestampString:function(Y){return Y?Y.timestampText?this.getSimpleString(Y.timestampText):this.TIME_FORMATTER.format(new Date(Y.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(Y){return _.f("live_chat_whole_message_clickable")&&Y},
computeMenuVisible_:function(Y,S){return Y||S},
computeHasInlineActionButtons:function(Y){if(!Y)return!1;var S,P;return!((S=Y.inlineActionButtons)==null||!S.length)||!((P=Y.additionalInlineActionButtons)==null||!P.length)},
createDocumentFragmentFromString:function(Y){var S=_.GV.createDocumentFragment.bind(_.GV),P;if((P=this.participantsManager)==null||!P.viewerRegex)return S(Y);P=document.createDocumentFragment();for(var u=0,W;(W=this.participantsManager.viewerRegex.exec(Y))!=null;){if(W.index>0){var m=":"+W[0]+":";if((_.$O(_.GV,m)||_.qF(_.GV,m))&&Y.indexOf(m)===W.index-1)continue}P.appendChild(S(Y.substring(u,W.index)));u=document.createElement("span");u.appendChild(S(W[0]));u.classList.add("mention");P.appendChild(u);
u=W.index+W[0].length}P.appendChild(S(Y.substring(u)));return P},
createDocumentFragment:function(Y){var S=document.createDocumentFragment();if(Y.simpleText)return S.appendChild(this.createDocumentFragmentFromString(Y.simpleText)),S;if(!Y.runs)return S;for(var P=0;P<Y.runs.length;P++){var u=Y.runs[P];if(u.emoji)S.appendChild(_.GV.createEmoji(u.emoji));else if(u.text)if(u.navigationEndpoint){var W=document.createElement("a");W.classList.add("yt-simple-endpoint");vJh(W,u.navigationEndpoint);_.I(W).appendChild(this.createDocumentFragmentFromString(u.text));S.appendChild(W)}else S.appendChild(this.createDocumentFragmentFromString(u.text))}return S},
hasModerationOverlayVisible:function(){var Y;return((Y=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:Y.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(Y){Y.composedPath().some(function(S){return(S=S instanceof Element?S:null)?S.tagName&&(S.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||S.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.f("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(Y)},
colorFromDecimal:function(Y){return yPX(Y)},
markAsDeleted:function(Y,S){this.set("data.deletedStateMessage",Y);this.set("data.showOriginalContentMessage",S)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(Y){if(this.data.contextMenuEndpoint){var S=_.E().resolve(_.ER),P=this.data.contextMenuEndpoint,u;(u=_.pR.instance)&&_.Ft(u,P)?(S=Dj_(S,P),u=_.h5(u,{},S)):u=_.I5_(S,P);u.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);Y&&Y.stopPropagation()}},
handleGetContextMenuResponse_:function(Y){var S=_.pR.instance;S&&_.Ft(S,{liveChatEndpoint:{}})||(Y=Y.response);Y.liveChatItemContextMenuSupportedRenderers&&Y.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(Y.liveChatItemContextMenuSupportedRenderers.menuRenderer);Y.actions&&_.nb(this.hostElement,"yt-live-chat-actions",[Y.actions])},
handleGetContextMenuError:function(Y){if(Y instanceof Error||Y instanceof Object||Y instanceof String)var S=Y;_.p_(new _.$2("Error encountered calling GetLiveChatItemContextMenu",S))},
showContextMenu_:function(Y){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:Y}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.ms(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.ms(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.hO.YtLiveChatItemBehavior=[a5d,_.rm.YtComponentBehavior,_.Vt.YtOpenPopupBehavior];_.v0=function(){};var Lt6;var w8s;var p86;var Fti;var DX=function(){var Y=_.Z.apply(this,arguments)||this;Y.active=!1;Y.identity=_.XE;return Y};
_.r(DX,_.Z);DX.prototype.dataChanged=function(){this.active=!1};
DX.prototype.onClick=function(){_.ms(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
DX.prototype.dataChanged=DX.prototype.dataChanged;_.Q([_.X(),_.k("design:type",Object)],DX.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],DX.prototype,"active",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],DX.prototype,"dataChanged",null);DX=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],DX);
_.A(DX,"yt-live-chat-text-input-field-suggestion",function(){if(Fti===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;p86===void 0&&(p86=document.createElement("template"));var u=p86;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Fti=Y}Y=Fti;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});_.I1=function(Y,S,P){return CustomEvent.call(this,Y,{detail:{value:S,path:P}})||this};
_.r(_.I1,CustomEvent);_.a1=function(){var Y=_.Z.apply(this,arguments)||this;Y.viewerName=null;Y.actionMap={"yt-live-chat-actions":"onChatMessage_"};Y.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];Y.PARTICIPANT_TIME_USEC_=3E8;return Y};
_.r(_.a1,_.Z);_.z=_.a1.prototype;_.z.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.z.addParticipant=function(Y){var S=_.$Uh(this.participants,Y,function(u,W){u=u[Object.keys(u)[0]];W=W[Object.keys(W)[0]];u=String(_.Ma(u.authorName)).toLowerCase();W=String(_.Ma(W.authorName)).toLowerCase();return u<W?-1:u==W?0:1}.bind(this));
if(S>=0){var P=this.participants[S];P[Object.keys(P)[0]].timestampUsec&&this.splice("participants",S,1,Y)}else this.splice("participants",-S-1,0,Y);Y=Y[Object.keys(Y)[0]];S=_.Ma(Y.authorName).toLocaleLowerCase();P=S.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(P)||(this.allParticipantsCharMap_[P]={});this.allParticipantsCharMap_[P][S]=Y};
_.z.getAuthorsFromPrefix=function(Y){return this.allParticipantsCharMap_.hasOwnProperty(Y)?this.allParticipantsCharMap_[Y]:null};
_.z.computeViewerRegex_=function(Y){if(!Y)return null;Y=Y.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.f("enable_web_yt_handles")||_.f("enable_live_chat_yt_handles")?new RegExp("([#]"+Y.replace(/ /g,"\\s*")+"|^"+Y.replace(/ /g,"\\s*")+"$|^"+Y.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+Y.replace(/ /g,"\\s*")+"$|(?<=\\s)"+Y.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+Y.replace(/ /g,"\\s*")+"|^"+Y.replace(/ /g,"\\s*")+"$|^"+Y.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+Y.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+Y.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.z.checkForStaleParticipants_=function(){var Y=this;this.trimOldParticipants_();this.asyncHandle_&&ETX(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.w0(function(){Y.checkForStaleParticipants_()},3E4))};
_.z.onChatMessage_=function(Y){var S=this,P=Date.now()*1E3;Y.forEach(function(u){if(u=_.g(u,czf)){u=u.item;var W=Object.keys(u)[0];S.SUPPORTED_ITEM_TYPES_.indexOf(W)!=-1&&u[W].timestampUsec>=P-S.PARTICIPANT_TIME_USEC_&&S.addParticipant(u)}},this);
this.checkForStaleParticipants_()};
_.z.trimOldParticipants_=function(){for(var Y=Date.now()*1E3,S=this.participants.length-1;S>=0;S--){var P=this.participants[S];P=P[Object.keys(P)[0]];P.timestampUsec&&P.timestampUsec<Y-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",S,1)}};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],_.a1.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],_.a1.prototype,"viewerName",void 0);_.Q([_.X({computed:"computeViewerRegex_(viewerName)"}),_.k("design:type",Object)],_.a1.prototype,"viewerRegex",void 0);_.Q([_.X({value:function(){return[]},
notify:!0}),_.k("design:type",Array)],_.a1.prototype,"participants",void 0);_.a1=_.Q([_.r0({is:"yt-live-chat-participants-manager",noInjection:!0})],_.a1);var syd=/.*([:@#].*?)$/,Lk=/\u00a0/g,djd=String.fromCharCode(160),l5S={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"},wC=function(){var Y=_.Z.apply(this,arguments)||this;Y.disabled=!1;Y.liveChatRichMessageInput=null;Y.messageInput=null;Y.isValidWithNoInputText=!1;Y.suggestions=[];Y.emojiManager=_.GV;Y.inputMethodEditorActive=
!1;Y.suggestionIndex=-1;Y.JSC$11825_lastSuggestionRange=null;return Y};
_.r(wC,_.Z);_.z=wC.prototype;_.z.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.z.attached=function(){_.j5&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.z.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.z.dataChanged=function(){if(!this.ignoreColorMapping){var Y=!1,S={},P;for(P in l5S)this.data&&this.data.hasOwnProperty(P)&&(S[l5S[P]]=this.colorFromDecimal(this.data[P]),Y=!0);Y&&_.PZ(this.hostElement,S)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.z.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.z.colorFromDecimal=function(Y){Y=Math.floor(Number(Y));return"rgba("+[Y>>16&255,Y>>8&255,Y&255,(Y>>24&255)/255].join()+")"};
_.z.preventDrag=function(Y){Y.dataTransfer&&(Y.dataTransfer.dropEffect="none");Y.preventDefault()};
_.z.preventResize=function(Y){Y.returnValue=!1};
_.z.onInputChange=function(){var Y=this.characterCount,S=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&S&&S.remove();if(!S&&this.characterCount>this.maxCharacterLimit){var P=window.getSelection();if(P){var u=P.getRangeAt(0);P.removeAllRanges();P.addRange(u)}}if(P=this.getCurrentRange())u=this.calculateTextBeforeRange(P),this.completeEmojisInRange(P,u,!0)||this.updateSuggestions(P,u);u=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(u);
_.ms(this.hostElement,"yt-live-chat-message-input-change",u);S&&this.characterCount===0&&S.remove();P&&P.commonAncestorContainer.parentElement.id==="input"&&P.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>Y):P&&!P.collapsed&&P.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(Y=this.input.childNodes.length-1;Y>=0;Y--)this.input.childNodes[Y].nodeName==="BR"&&this.input.childNodes[Y].remove()};
_.z.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.z.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var Y=this.getCurrentRange();Y&&Y.commonAncestorContainer.parentElement.id==="input"&&Y.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.z.mergeOverflowText=function(Y){if(Y){var S=document.createRange();S.selectNodeContents(Y);S=S.extractContents();this.input.insertBefore(S,Y)}};
_.z.checkRangeAtEndOfInput=function(){var Y=this.getCurrentRange();if(Y){var S=_.I(this.hostElement).querySelector("#overflow-text"),P=document.createRange();S&&S.previousSibling?S.previousSibling instanceof HTMLImageElement?P.selectNode(S.previousSibling):P.selectNodeContents(S.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?P.selectNode(this.input.lastChild):P.selectNodeContents(this.input.lastChild));P.collapse(!1);return P.isPointInRange(Y.startContainer,
Y.startOffset)}return!1};
_.z.handleOverflowText=function(Y){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var S=_.I(this.hostElement).querySelector("#overflow-text"),P=this.getCurrentRange();this.input.normalize();Y=this.checkRangeAtEndOfInput()&&Y;this.mergeOverflowText(S);for(var u,W=0,m=0,J,c=this.input.childNodes,C=0;C<c.length;C++){var x=c[C];x instanceof Text?(m+=x.textContent.length,m>this.maxCharacterLimit&&(u=x,W=this.maxCharacterLimit+x.textContent.length-m)):x instanceof HTMLImageElement&&
(u=void 0,m=x.dataset.emojiId&&((u=this.data)==null?0:u.emojiCharacterCount)?m+this.data.emojiCharacterCount:m+x.alt.length,u=this.input,W=C);if(m>this.maxCharacterLimit&&u){J=document.createRange();J.collapse(!1);S?(m=this.input.lastChild.previousSibling,m instanceof Text?J.setEnd(this.input.lastChild.previousSibling,m.textContent.length):m instanceof HTMLImageElement&&J.setEnd(this.input,this.input.childNodes.length-1)):J.selectNodeContents(this.input);J.setStart(u,W);break}}J&&(u=!1,P&&(Y=J.isPointInRange(P.startContainer,
P.startOffset-1)),S||(S=document.createElement("span"),S.id="overflow-text",S.textContent="",S.setAttribute("contenteditable","true"),_.I(_.I(this.hostElement).querySelector("#input")).appendChild(S),u=!0),S&&(P=J.extractContents(),S.insertBefore(P,S.firstChild),Y&&S.firstChild&&(P=document.createRange(),u?P.setStartAfter(S.lastChild):P.setStartAfter(S.firstChild),P.collapse(!0),S=window.getSelection(),S.removeAllRanges(),S.addRange(P))))}};
_.z.checkForDuplicateSpans=function(){for(var Y=0;Y<this.input.childNodes.length;Y++){var S=this.input.childNodes[Y];if(S.nodeName==="SPAN"){var P=document.createRange();P.selectNodeContents(S);P=P.extractContents();this.input.insertBefore(P,S);S.remove()}}this.handleOverflowText(!0)};
_.z.getCurrentRange=function(){var Y=window.getSelection();return Y&&Y.rangeCount?Y.getRangeAt(0).cloneRange():null};
_.z.getInputRange=function(){var Y=this.getCurrentRange();if(Y){for(var S=Y.commonAncestorContainer,P=!1,u=_.I(this.hostElement).querySelector("#input");S;){if(S===u){P=!0;break}S=S.parentNode}P||(Y=null)}Y||(Y=this.getRangeAtEnd());return Y};
_.z.getRangeAtEnd=function(){var Y=document.createRange(),S=_.I(this.hostElement).querySelector("#input").lastChild;!S||S.nodeName!=="#text"&&S.nodeName!=="SPAN"?(Y.selectNodeContents(_.I(this.hostElement).querySelector("#input")),Y.collapse(!1)):S.nodeName==="#text"?Y.setStart(S,S.textContent.length):Y.setStart(S,S.childNodes.length);return Y};
_.z.getSuggestions=function(Y){var S=[],P=Y.substring(0,3),u=h$h(_.GV,P,!0);if(u)for(var W in u)if(W.toLocaleLowerCase().indexOf(Y)===0){var m=u[W];if(m&&m.emojiId){if(m=GKu(_.GV,m.emojiId)){var J=void 0,c=void 0,C=void 0,x=void 0,b=((J=m.image)==null?0:(c=J.accessibility)==null?0:(C=c.accessibilityData)==null?0:C.label)||m.isCustomEmoji?(x=m.shortcuts)==null?void 0:x[0]:m.emojiId;S.push({suggestion:{emoji:!0,image:m.image,alt:b,text:W,textToInsertWhenSelected:m.isCustomEmoji?W:b}})}if(S.length>=
64)break}}if(!this.participantsManager)return null;u=_.f("enable_web_yt_handles")||_.f("enable_live_chat_yt_handles");if(P.indexOf("@")===0||P.indexOf("#")===0)if(W=P.charAt(0),Y=Y.substring(1),P=u&&P.indexOf("@")===0?P.substring(0,2):P.substring(1),P=this.participantsManager.getAuthorsFromPrefix(P))for(var T in P)if(T.indexOf(Y)===0||u&&T.indexOf(W+Y)===0)if(m=P[T],J=_.Ma(m.authorName),S.push({suggestion:{author:!0,authorType:W,image:m.authorPhoto,alt:J,text:J}}),S.length>=64)break;return S?S.sort(function(K,
G){return G.suggestion.text<K.suggestion.text?-1:G.suggestion.text===K.suggestion.text?0:1}):null};
_.z.insertSuggestion=function(Y){var S=_.f("enable_web_yt_handles")||_.f("enable_live_chat_yt_handles")?Y.text+djd:Y.authorType+Y.text+djd;Y.emoji?this.insertTextAtRange(this.JSC$11825_lastSuggestionRange,Y.textToInsertWhenSelected||""):Y.author&&this.insertTextAtRange(this.JSC$11825_lastSuggestionRange,S)};
_.z.updateSuggestionsAtCaret=function(){var Y=this.getCurrentRange();Y&&this.updateSuggestions(Y,this.calculateTextBeforeRange(Y))};
_.z.offsetStartOfRangeBy=function(Y,S){for(;S>0;)if(Y.startOffset-S>=0){Y.setStart(Y.startContainer,Y.startOffset-S);break}else{S=Y.startContainer instanceof HTMLImageElement?S-Y.startContainer.alt.length:S-Y.startOffset;var P=Y.startContainer.previousSibling;if(!P){Y.setStart(Y.startContainer,0);break}if(_.f("live_chat_require_space_for_autocomplete_emoji")){var u=void 0,W=void 0;Y.setStart(P,((u=P)==null?void 0:(W=u.textContent)==null?void 0:W.length)||0)}else Y.setStart(P,P.childNodes.length||
0)}};
_.z.updateSuggestions=function(Y,S){var P=this;this.JSC$11825_lastSuggestionRange&&(this.JSC$11825_lastSuggestionRange.detach(),this.JSC$11825_lastSuggestionRange=null);if((S=syd.exec(S))&&S.length&&(S=S[S.length-1].toLocaleLowerCase(),S.length>2&&(this.offsetStartOfRangeBy(Y,S.length),this.JSC$11825_lastSuggestionRange=Y,(Y=this.getSuggestions(S))&&Y.length))){this.suggestions=Y;_.ky(this,function(){_.I(P.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(Y.length-1);return}this.dropdown.opened=!1};
_.z.completeEmojisInRange=function(Y,S,P){var u=S.replace(/[\s\xa0]+$/,"");S=S.length-u.length;u=u.split(" ");u=u[u.length-1].trim().toLocaleLowerCase();var W=u.lastIndexOf(":");if(P&&!S&&W!==u.length-1)return!1;W!==-1&&(P=u.lastIndexOf(":",W-1),P!==-1&&(u=u.substring(P)));if((P=_.qF(_.GV,u))&&P.emojiId){P=GKu(_.GV,P.emojiId)||null;this.offsetStartOfRangeBy(Y,u.length+S);var m,J,c,C;u=(((m=P)==null?0:m.isCustomEmoji)?(J=P)==null?void 0:(c=J.shortcuts)==null?void 0:c[0]:(C=P)==null?void 0:C.emojiId)||
"";S&&(u+=djd);this.insertTextAtRange(Y,u);this.dropdown.opened=!1;return!0}return!1};
_.z.onSuggestion=function(Y){this.insertSuggestion(Y.detail);this.dropdown.opened=!1};
_.z.onKeyPress=function(Y){Y.keyCode===13&&(Y.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.ms(this.hostElement,"yt-live-chat-send-message"))};
_.z.completeEmojis=function(){var Y=document.createRange(),S=_.I(this.hostElement).querySelector("#input").lastChild;S?Y.setStart(S,S.childNodes.length):(Y.selectNodeContents(_.I(this.hostElement).querySelector("#input")),Y.collapse(!1));this.completeEmojisInRange(Y,this.calculateTextBeforeRange(Y),_.f("live_chat_require_space_for_autocomplete_emoji"))};
_.z.maybePreventTextFormatting=function(Y){!_.cW||!Y.ctrlKey&&!Y.metaKey||Y.keyCode!==66&&Y.keyCode!==73||(Y.stopImmediatePropagation(),Y.preventDefault())};
_.z.onKeyDown=function(Y){this.maybePreventTextFormatting(Y);if(this.dropdown.opened)switch(Y.keyCode){case 27:this.dropdown.opened=!1;Y.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;Y.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);Y.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),Y.preventDefault()}};
_.z.onKeyUp=function(Y){switch(Y.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.nj)this.onInputChange()};
_.z.changeSuggestionIndex=function(Y){if(this.dropdown.opened){var S=_.I(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<S.children.length&&(S.children[this.suggestionIndex].active=!1);var P=this.suggestions.length;this.suggestionIndex=(Y+P)%P;Y=S.children[this.suggestionIndex];Y.active=!0;S.scrollTop=Y.offsetTop}};
_.z.onInputPaste=function(Y){Y.preventDefault();(Y=Y.clipboardData)&&Y.types&&(Y=Y.getData("text/plain")||"",Y=Y.replace(/\n/g,""),this.insertText(Y));(Y=this.getCurrentRange())&&Y.commonAncestorContainer.parentElement.id==="input"&&Y.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.z.onFocus=function(){this._setFocused(!0)};
_.z.onBlur=function(){this._setFocused(!1)};
_.z.insertText=function(Y){this.insertTextAtRange(this.getInputRange(),Y)};
_.z.insertTextAtRange=function(Y,S){if(Y&&(Y.collapsed||Y.deleteContents(),S=_.GV.createDocumentFragment(S,!0,!1))){for(var P=_.n((S==null?void 0:S.childNodes)||[]),u=P.next();!u.done;u=P.next()){u=u.value;var W=void 0,m=void 0,J=void 0,c=void 0,C=void 0;(J=(W=window)==null?void 0:(m=W.ShadyCSS)==null?void 0:m.ScopingShim)==null||(C=(c=J).scopeNode)==null||C.call(c,u,this.hostElement.localName)}P=S.lastChild;Y.insertNode(S);this.focused||this.input.focus();if(this.focused){Y=Y.cloneRange();Y.selectNodeContents(P);
Y.collapse(!1);if(S=window.getSelection())S.removeAllRanges(),S.addRange(Y);Y.commonAncestorContainer.parentElement.id==="input"&&Y.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}Y=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(Y);_.ms(this.hostElement,"yt-live-chat-message-input-change",Y)}};
_.z.setLiveChatRichMessageInput=function(Y){_.I(_.I(this.hostElement).querySelector("#input")).textContent="";if(Y&&Y.textSegments){for(var S=0;S<Y.textSegments.length;S++){var P=Y.textSegments[S];P.text?_.I(_.I(this.hostElement).querySelector("#input")).appendChild(_.GV.createDocumentFragment(P.text,!0,!1)):P.emojiId&&(P=_.$O(_.GV,P.emojiId))&&_.I(_.I(this.hostElement).querySelector("#input")).appendChild(_.GV.createEmoji(P,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.z.setText=function(Y){this.setLiveChatRichMessageInput(Y?{textSegments:[{text:Y}]}:null)};
_.z.calculateTextBeforeRange=function(Y){var S="",P=Y.startContainer;if(P&&P instanceof Text){var u;S=((u=P.textContent)==null?void 0:u.substring(0,Y.startOffset))||"";P=P.previousSibling}for(;P&&P instanceof Text;)S=P.textContent+S,P=P.previousSibling;return S.replace(Lk," ")};
_.z.calculateLiveChatRichMessageInput=function(){for(var Y=[],S="",P=_.I(_.I(this.hostElement).querySelector("#input")).childNodes,u=0;u<P.length;u++){var W=P[u];W instanceof Text?S+=W.textContent:W instanceof HTMLImageElement&&(W.dataset.emojiId?(S&&(Y.push({text:S.replace(Lk," ")}),S=""),Y.push({emojiId:W.dataset.emojiId})):S+=W.alt)}S&&Y.push({text:S.replace(Lk," ")});if(P=_.I(this.hostElement).querySelector("#overflow-text")){S="";P=P.childNodes;for(u=0;u<P.length;u++)W=P[u],W instanceof Text?
S+=W.textContent:W instanceof HTMLImageElement&&(W.dataset.emojiId?(S&&(Y.push({text:S.replace(Lk," ")}),S=""),Y.push({emojiId:W.dataset.emojiId})):S+=W.alt);S&&Y.push({text:S.replace(Lk," ")})}return{textSegments:Y}};
_.z.computeCharacterCount=function(Y){if(!Y||!Y.textSegments)return 0;for(var S=0,P=0;P<Y.textSegments.length;P++){var u=Y.textSegments[P];if(u.text)S+=u.text.length;else if(u.emojiId){var W=void 0;if((W=this.data)==null?0:W.emojiCharacterCount)S+=this.data.emojiCharacterCount;else{var m=W=void 0,J=void 0;S+=((m=_.$O(_.GV,(W=u)==null?void 0:W.emojiId))==null?void 0:(J=m.shortcuts)==null?void 0:J[0].length)||0}}}return S};
_.z.characterCountChanged=function(){_.ms(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.z.focusedChanged=function(){this.hostElement.dispatchEvent(new _.I1("focused-changed",this.focused))};
_.z.focus=function(){this.setFocus(!1)};
_.z.focusAtEnd=function(){this.setFocus(!0)};
_.z.setFocus=function(Y){Y=Y?this.getRangeAtEnd():this.getInputRange();_.I(this.hostElement).querySelector("#input").focus();var S=window.getSelection();S&&(S.removeAllRanges(),S.addRange(Y))};
_.z.insertEmoji=function(Y){var S,P=((Y==null?0:Y.isCustomEmoji)?(S=Y.shortcuts)==null?void 0:S[0]:Y==null?void 0:Y.emojiId)||"";this.insertText(P)};
_.z.computeText=function(Y){if(!Y||!Y.textSegments)return"";for(var S="",P=0;P<Y.textSegments.length;P++){var u=Y.textSegments[P];if(u.text)S+=u.text;else if(u.emojiId){var W=void 0,m=void 0,J=void 0;S+=((m=_.$O(_.GV,(W=u)==null?void 0:W.emojiId))==null?void 0:(J=m.shortcuts)==null?void 0:J[0])||""}}return S};
_.z.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.y6.Object.defineProperties(wC.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
wC.prototype.focusedChanged=wC.prototype.focusedChanged;wC.prototype.characterCountChanged=wC.prototype.characterCountChanged;wC.prototype.onSuggestion=wC.prototype.onSuggestion;wC.prototype.onMessageSet=wC.prototype.onMessageSet;wC.prototype.dataChanged=wC.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],wC.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],wC.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],wC.prototype,"disabled",void 0);_.Q([_.d("disabled"),_.k("design:type",Number),_.k("design:paramtypes",[])],wC.prototype,"inputTabIndex",null);_.Q([_.d("data.maxCharacterLimit"),_.X({readOnly:!0,notify:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],wC.prototype,"maxCharacterLimit",null);
_.Q([_.d("liveChatRichMessageInput"),_.X({readOnly:!0,notify:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],wC.prototype,"characterCount",null);_.Q([_.d("maxCharacterLimit, characterCount"),_.X({readOnly:!0,notify:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],wC.prototype,"remainingCharacterCount",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],wC.prototype,"isChatMessageInput",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],wC.prototype,"inputExpanded",void 0);_.Q([_.X({readOnly:!0,notify:!0}),_.k("design:type",Object)],wC.prototype,"liveChatRichMessageInput",void 0);_.Q([_.X(),_.k("design:type",Object)],wC.prototype,"messageInput",void 0);_.Q([_.X(),_.k("design:type",Boolean)],wC.prototype,"ignoreColorMapping",void 0);_.Q([_.d("characterCount"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],wC.prototype,"hasText",null);
_.Q([_.X(),_.k("design:type",Object)],wC.prototype,"isValidWithNoInputText",void 0);_.Q([_.d("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.X(),_.k("design:type",Boolean),_.k("design:paramtypes",[])],wC.prototype,"isInputValid",null);_.Q([_.X({readOnly:!0,value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],wC.prototype,"focused",void 0);_.Q([_.X(),_.k("design:type",Array)],wC.prototype,"suggestions",void 0);
_.Q([_.X(),_.k("design:type",_.gC)],wC.prototype,"emojiManager",void 0);_.Q([_.X(),_.k("design:type",_.a1)],wC.prototype,"participantsManager",void 0);_.Q([_.X(),_.k("design:type",Boolean)],wC.prototype,"noUnderline",void 0);_.Q([_.X(),_.k("design:type",Object)],wC.prototype,"inputMethodEditorActive",void 0);_.Q([_.nc("#dropdown"),_.k("design:type",Object)],wC.prototype,"dropdown",void 0);_.Q([_.nc("#input"),_.k("design:type",HTMLElement)],wC.prototype,"input",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wC.prototype,"dataChanged",null);_.Q([_.zY("messageInput"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wC.prototype,"onMessageSet",null);_.Q([_.WZ("yt-live-chat-select-suggestion"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],wC.prototype,"onSuggestion",null);
_.Q([_.zY("characterCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wC.prototype,"characterCountChanged",null);_.Q([_.zY("focused"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wC.prototype,"focusedChanged",null);wC=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],wC);
_.X8_=_.A(wC,"yt-live-chat-text-input-field-renderer",function(){if(w8s===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Lt6===void 0&&(Lt6=document.createElement("template"));var u=Lt6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);w8s=Y}Y=w8s;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var pk=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonOverrides={style:"overlay",type:"filled"};Y.allowAnimations=!1;Y.modern=_.f("web_button_rework_with_live");Y.noPadding=!1;return Y};
_.r(pk,_.Z);_.z=pk.prototype;_.z.shouldSupportInlineActionButtons=function(){return!0};
_.z.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"}}}}};
_.z.ready=function(){var Y=document.querySelector("yt-live-chat-app");Y&&Y.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.z.attached=function(){this.allowAnimations=!1};
_.z.dataChanged=function(){if(this.data){var Y={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.PZ(this.hostElement,Y);this.allowAnimations=!0}};
_.z.messageChanged=function(){var Y,S=(Y=this.data)==null?void 0:Y.message;Y=_.I(_.I(this.hostElement).querySelector("#message"));Y.textContent="";S&&Y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(S))};
_.z.computeShowOnlyHeader=function(Y,S){return!Y||Y.pdgLikeButton||Y.replyButton||Y.buyFlowButton?!1:this.isEmpty(Y,S)&&!Y.footer};
_.z.computeShowFooterDivider=function(Y,S,P){return Y?!!Y.footer&&!this.isEmpty(Y,S)&&!P:!1};
_.z.computeIsUserEditable=function(Y){return!!Y.inputField};
_.z.computeHasHeartButton=function(Y){return(Y==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(Y==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(Y==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.z.computeNoveltyImage=function(Y){if(Y.headerOverlayImage&&Y.headerOverlayImage.thumbnails.length){var S=Y.headerOverlayImage.thumbnails[0],P,u;if((P=Y.pdgPurchasedNoveltyLoggingDirectives)==null?0:(u=P.loggingDirectives)==null?0:u.trackingParams){var W,m;dua((W=Y.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(m=W.loggingDirectives)==null?void 0:m.trackingParams)}return S.width||0}return 0};
_.z.computeAuthorPhotoSize=function(Y){return(Y==null?0:Y.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.z.inputFocus=function(){var Y=_.I(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");Y&&Y.focus()};
_.z.inputInsertEmoji=function(Y){var S=_.I(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");S&&S.insertEmoji(Y)};
_.z.inputMessage=function(){var Y=_.I(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),S;return Y&&((S=this.data)==null?0:S.inputField)?(Y.completeEmojis(),_.aF(Y.liveChatRichMessageInput)):null};
_.z.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.z.isEmpty=function(Y,S){return Y?Y.empty||!(Y.message||Y.inputField||S):!0};
_.z.onLowerBuyButtonClick=function(){var Y,S=_.g((Y=this.data)==null?void 0:Y.buyButton,_.I8);S&&S.trackingParams&&!H0u(S.command)&&(Y=_.Re(S.trackingParams))&&(S=_.pM())&&_.ko(S,Y)};
_.z.shouldSupportWholeItemClick=function(){return!0};
_.y6.Object.defineProperties(pk.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
pk.prototype.isDeletedChanged=pk.prototype.isDeletedChanged;pk.prototype.messageChanged=pk.prototype.messageChanged;pk.prototype.dataChanged=pk.prototype.dataChanged;_.Q([_.p(EhU.YtPdgLiveChatItemBehavior),_.k("design:type",Object)],pk.prototype,"ytPdgLiveChatItemBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.gm),_.k("design:type",Object)],pk.prototype,"ytLiveChatReduxBehavior",void 0);
_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],pk.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],pk.prototype,"data",void 0);_.Q([_.X({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:F3J}),_.k("design:type",Object)],pk.prototype,"engagementState",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.k("design:type",Boolean)],pk.prototype,"isUserEditable",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.k("design:type",Boolean)],pk.prototype,"hasHeartButton",void 0);_.Q([_.X({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.k("design:type",Boolean)],pk.prototype,"showOnlyHeader",void 0);
_.Q([_.X({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.k("design:type",Boolean)],pk.prototype,"showFooterDivider",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Object)],pk.prototype,"allowAnimations",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],pk.prototype,"dashboardMoneyFeed",void 0);_.Q([_.X({computed:"computeNoveltyImage(data)"}),_.k("design:type",Number)],pk.prototype,"noveltyWidth",void 0);
_.Q([_.X({computed:"computeAuthorPhotoSize(data)"}),_.k("design:type",Number)],pk.prototype,"authorPhotoSize",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],pk.prototype,"modern",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],pk.prototype,"noPadding",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pk.prototype,"dataChanged",null);
_.Q([_.zY("data.message"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pk.prototype,"messageChanged",null);_.Q([_.d("data","dashboardMoneyFeed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],pk.prototype,"hideLowerBumper",null);_.Q([_.zY("isDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pk.prototype,"isDeletedChanged",null);
pk=_.Q([_.t({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],pk);
_.A(pk,"yt-live-chat-paid-message-renderer",function(){if(Q$_===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Uv_===void 0&&(Uv_=document.createElement("template"));var u=Uv_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Q$_=Y}Y=Q$_;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Z5s;var i5i;var FR=function(){var Y=_.JI.apply(this,arguments)||this;Y._noAccessors=!0;return Y};
_.r(FR,_.JI);FR.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.X3("openPopupConfig")};
_.Q([_.p(_.Vt.YtOpenPopupBehavior),_.k("design:type",Object)],FR.prototype,"ytOpenPopupBehavior",void 0);FR=_.Q([_.BZ()],FR);_.sL=[_.Vt.YtOpenPopupBehavior,FR.prototype];var oPJ;var lN=[_.CV,Sg_,_.hf,_.qy,_.yx,_.cyt,_.bM,_.bDs,_.La,Lrf];_.f("web_watch_get_updated_metadata_response_processing")&&lN.push(_.ZPJ);_.f("web_continuation_response_processing")&&lN.push(_.vX);var o$K=new _.yH("RESPONSE_RECEIVED_COMMANDS"),vKJ=new _.yH("RESPONSE_RECEIVED_COMMANDS");var EKh="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),KrJ=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],Tr9=["GET_UNSEEN_NOTIFICATION_COUNT"];var dC=function(){var Y=_.JI.apply(this,arguments)||this;Y._noAccessors=!0;Y.serviceEndpointHandlers=[];return Y};
_.r(dC,_.JI);dC.prototype.created=function(){var Y=this;this.endpointHandlerActionMap={"yt-service-request":function(S,P,u,W){var m;return b3h(Y.hostElement,S,P,u,W,Y.serviceEndpointHandlers,(m=Y.onEntitiesUpdated)==null?void 0:m.bind(Y))}}};
dC.prototype.attached=function(){_.Uf(_.Ap.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
dC.prototype.detached=function(){_.QZ(_.Ap.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
dC=_.Q([_.BZ()],dC);_.tIu=[dC.prototype];var ANs,Uj6=function(){return ANs!==void 0?ANs:ANs=document.createElement("template")};
document.head.appendChild(Uj6().content);var QyS;var kKf=document.head,MIf=kKf.appendChild,yNS;if(QyS===void 0){var Nzd=document.createElement("template");_.h(Nzd,"\x3c!--css-build:shady--\x3e");Nzd.content.insertBefore(Uj6().content.cloneNode(!0),Nzd.content.firstChild);QyS=Nzd}yNS=QyS;MIf.call(kKf,yNS.content);var H5f,VIJ=function(){return H5f!==void 0?H5f:H5f=document.createElement("template")};
document.head.appendChild(VIJ().content);var e$f;var O5u=document.head,YTS=O5u.appendChild,STd;if(e$f===void 0){var PPs=document.createElement("template");_.h(PPs,"\x3c!--css-build:shady--\x3e");PPs.content.insertBefore(VIJ().content.cloneNode(!0),PPs.content.firstChild);e$f=PPs}STd=e$f;YTS.call(O5u,STd.content);var ubm;_.$s("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.$s("sharingRendererButtons","buttonRenderer","ytd-button-renderer");ubm=_.f("web_button_rework")&&_.Z4("BUTTON_REWORK")||_.f("web_button_rework_with_live");_.ls=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPressed=!1;Y.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return Y};
_.r(_.ls,_.Z);_.z=_.ls.prototype;_.z.created=function(){this.showTooltips=!0};
_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.z.onHintIdChanged=function(){var Y=this,S,P,u=(S=this.ytButtonBehavior.data)==null?void 0:(P=S.hint)==null?void 0:P.hintRenderer;if(u&&u.hintId){S=_.jR(this.hostElement,"yt-get-opened-popups-action");S=(S&&S.length===1?S[0]:[]).length>0;var W=null;u.hintId!=="sponsor-pre-purchase"||S?u.hintId.startsWith("sponsor-post-purchase")&&!S?W=X4t("membership-manage"):u.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!S&&(W=X4t("membership-freebie-join")):W=X4t("membership-join");W&&_.wc.addLowPriorityJob(function(){for(var m=
_.n(W),J=m.next();!J.done;J=m.next())Y.ytComponentBehavior.resolveCommand(J.value)})}};
_.z.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.z.onYtNavigate=function(Y){var S=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(Y.detail.endpoint);S&&(Y.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(S))};
_.z.onYtServiceRequestSent=function(Y,S){this.handleServiceRequestActions(S);_.ms(this.hostElement,"yt-service-request-sent-button-renderer")};
_.z.onServiceRequestCompleted=function(Y,S){this.handleServiceRequestActions(S);_.ms(this.hostElement,"yt-service-request-completed-button-renderer")};
_.z.updateButton=function(Y){var S;if(Y=(S=_.g(Y,lld))==null?void 0:S.updatedButton)this.ytButtonBehavior.data=_.g(Y,_.I8)};
_.z.handleUpdateButtonAction=function(Y){var S=this.ytButtonBehavior.data;S.targetId&&Y.updateButtonAction.targetId&&S.targetId===Y.updateButtonAction.targetId&&this.updateButton(Y)};
_.z.handleServiceRequestActions=function(Y){if(Y=Y.actions)for(var S=0;S<Y.length;S++)this.updateButton(Y[S])};
_.y6.Object.defineProperties(_.ls,{template:{configurable:!0,enumerable:!0,get:function(){if(oPJ===void 0){var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);oPJ=Y}Y=oPJ;return Y}}});
_.ls.prototype.onServiceRequestCompleted=_.ls.prototype.onServiceRequestCompleted;_.ls.prototype.onYtServiceRequestSent=_.ls.prototype.onYtServiceRequestSent;_.ls.prototype.onYtNavigate=_.ls.prototype.onYtNavigate;_.ls.prototype.onPressedStateChanged=_.ls.prototype.onPressedStateChanged;_.ls.prototype.onHintIdChanged=_.ls.prototype.onHintIdChanged;_.Q([_.X(),_.k("design:type",Object)],_.ls.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],_.ls.prototype,"isPressed",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],_.ls.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.cWJ.YtButtonBehavior),_.k("design:type",Object)],_.ls.prototype,"ytButtonBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],_.ls.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],_.ls.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(W0.YtRenderButtonBehavior),_.k("design:type",Object)],_.ls.prototype,"ytRenderButtonBehavior",void 0);_.Q([_.zY("data.hint.hintRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],_.ls.prototype,"onHintIdChanged",null);_.Q([_.zY("isPressed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],_.ls.prototype,"onPressedStateChanged",null);
_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],_.ls.prototype,"onYtNavigate",null);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],_.ls.prototype,"onYtServiceRequestSent",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],_.ls.prototype,"onServiceRequestCompleted",null);_.ls=_.Q([_.t({is:"ytd-button-renderer",disableElementRegistration:ubm})],_.ls);var ZX=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("web_button_rework_with_live");Y.buttonOverrides={style:"overlay",type:"filled"};return Y};
_.r(ZX,_.Z);_.z=ZX.prototype;_.z.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"}}}}};
_.z.ready=function(){var Y=document.querySelector("yt-live-chat-app");Y&&Y.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.z.dataChanged=function(){if(this.data&&this.data.sticker){var Y=_.UD(this.data.sticker.thumbnails,this.stickerWidth);Y||_.Frh(Y).thenCatch(function(){_.sf(new _.$2("Failed to load Super Sticker with url",Y))})}};
_.z.computeAuthorPhotoSize=function(Y){return(Y==null?0:Y.isV2Style)?32:40};
_.z.computeIsV2Style=function(Y){return(Y==null?0:Y.isV2Style)?!0:!1};
_.z.onStickerLoaded=function(Y){var S,P,u;(S=_.oK(Y))==null||(P=S.parentNode)==null||(u=P.classList)==null||u.add("sticker-loaded")};
_.z.computeNoveltyImageWidth=function(Y){var S,P;if(Y==null?0:(S=Y.headerOverlayImage)==null?0:(P=S.thumbnails)==null?0:P.length){S=Y.headerOverlayImage.thumbnails[0];var u,W;if((u=Y.pdgPurchasedNoveltyLoggingDirectives)==null?0:(W=u.loggingDirectives)==null?0:W.trackingParams){var m,J;dua((m=Y.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(J=m.loggingDirectives)==null?void 0:J.trackingParams)}return S.width||0}return 0};
_.z.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.z.updateStickerStyles=function(){var Y=this.data;Y&&(Y={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(Y.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(Y.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(Y.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(Y.authorNameTextColor)},
_.PZ(this.hostElement,Y))};
_.z.onBuyButtonClick=function(){var Y,S=_.g((Y=this.data)==null?void 0:Y.buyButton,_.I8);S&&!H0u(S.command)&&this.ytRendererBehavior.logExplicitClick(S)};
_.z.shouldSupportWholeItemClick=function(){return!0};
_.y6.Object.defineProperties(ZX.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
ZX.prototype.updateStickerStyles=ZX.prototype.updateStickerStyles;ZX.prototype.isDeletedChanged=ZX.prototype.isDeletedChanged;ZX.prototype.onStickerLoaded=ZX.prototype.onStickerLoaded;ZX.prototype.dataChanged=ZX.prototype.dataChanged;_.Q([_.p(EhU.YtPdgLiveChatItemBehavior),_.k("design:type",Object)],ZX.prototype,"ytPdgLiveChatItemBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],ZX.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],ZX.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ZX.prototype,"data",void 0);
_.Q([_.X({computed:"computeAuthorPhotoSize(data)"}),_.k("design:type",Number)],ZX.prototype,"authorPhotoSize",void 0);_.Q([_.X(),_.k("design:type",Boolean)],ZX.prototype,"isDeleted",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],ZX.prototype,"dashboardMoneyFeed",void 0);_.Q([_.X({computed:"computeNoveltyImageWidth(data)"}),_.k("design:type",Number)],ZX.prototype,"noveltyWidth",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],ZX.prototype,"modern",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.k("design:type",Boolean)],ZX.prototype,"isV2Style",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZX.prototype,"dataChanged",null);_.Q([_.WZ("yt-img-shadow-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ZX.prototype,"onStickerLoaded",null);
_.Q([_.d("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],ZX.prototype,"stickerWidth",null);_.Q([_.d("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],ZX.prototype,"stickerHeight",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ZX.prototype,"hasHeartButton",null);_.Q([_.d("data","dashboardMoneyFeed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ZX.prototype,"hideLowerBumper",null);
_.Q([_.zY("isDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZX.prototype,"isDeletedChanged",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZX.prototype,"updateStickerStyles",null);ZX=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],ZX);
_.A(ZX,"yt-live-chat-paid-sticker-renderer",function(){if(i5i===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Z5s===void 0&&(Z5s=document.createElement("template"));var u=Z5s;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);i5i=Y}Y=i5i;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var W3t;var z9i;var mus,nC6=function(){return mus!==void 0?mus:mus=document.createElement("template")};
document.head.appendChild(nC6().content);var jUS,Jls=function(){return jUS!==void 0?jUS:jUS=document.createElement("template")};
document.head.appendChild(Jls().content);var B3f;var clJ,CP6=function(){return clJ!==void 0?clJ:clJ=document.createElement("template")};
document.head.appendChild(CP6().content);var qTh;var R9u=document.head,xuL=R9u.appendChild,bUS;if(qTh===void 0){var T3i=document.createElement("template");_.h(T3i,"\x3c!--css-build:shady--\x3e");T3i.content.insertBefore(CP6().content.cloneNode(!0),T3i.content.firstChild);qTh=T3i}bUS=qTh;xuL.call(R9u,bUS.content);var K3S=document.head,ECf=K3S.appendChild,f1h;if(B3f===void 0){var is=document.createElement("template");_.h(is,"\x3c!--css-build:shady--\x3e");is.content.insertBefore(Jls().content.cloneNode(!0),is.content.firstChild);is.content.insertBefore(nC6().content.cloneNode(!0),is.content.firstChild);B3f=is}f1h=B3f;ECf.call(K3S,f1h.content);var o1=function(){var Y=_.JI.apply(this,arguments)||this;Y.focusedIndex=0;Y.verticalOffset=0;Y.verticalAlign="top";Y.dynamicAlign=!0;return Y};
_.r(o1,_.JI);o1.prototype.emojiUrl=function(Y){Y=_.$O(this.emojiManager,Y);if(!Y)return"";var S;Y=(S=Y.image)==null?void 0:S.thumbnails;return _.UD(Y,24)||""};
var gCm=function(Y){var S;Y.emojiVariants&&(S=Y.data)!=null&&S.target&&_.ky(Y,function(){Y.set("verticalOffset",-1*Y.hostElement.clientHeight);var P=_.I(Y.hostElement).querySelector("img");P&&P.focus()})};
_.z=o1.prototype;_.z.onKeyboardEnter=function(){};
_.z.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.z.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.z.onKeyDown=function(Y){switch(Y.keyCode){case 13:this.onKeyboardEnter();Y.preventDefault();break;case 40:this.changeFocus(1);Y.preventDefault();break;case 38:this.changeFocus(-1);Y.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.z.onYtEmojiSelect=function(Y){var S=this,P,u,W,m,J,c,C,x;return _.B(function(b){if(b.nextAddress==1)return u=(P=S.data)==null?void 0:P.emoji,J=((W=u)==null?void 0:W.stickyPrefId)||((m=u)==null?void 0:m.emojiId),C=(c=Y.detail)==null?void 0:c.emojiId,J&&C&&J!==C?_.q(b,(x=S.emojiManager)==null?void 0:vPJ(x,u,C),2):b.return();_.nb(S.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[u,C]);_.Yt(b)})};
_.z.changeFocus=function(Y){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+Y+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(Y=_.I(this.hostElement).querySelector("#variants"))&&Y.children[this.focusedIndex].focus())};
_.y6.Object.defineProperties(o1.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
o1.prototype.onYtEmojiSelect=o1.prototype.onYtEmojiSelect;o1.prototype.onKeyDown=o1.prototype.onKeyDown;o1.prototype.onEmojiVariantsChanged=o1.prototype.onEmojiVariantsChanged;o1.prototype.onVerticalOffsetOrPositionTargetChanged=o1.prototype.onVerticalOffsetOrPositionTargetChanged;_.Q([_.p(_.ir),_.k("design:type",Object)],o1.prototype,"ironOverlayBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],o1.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",_.gC)],o1.prototype,"emojiManager",void 0);
_.Q([_.X(),_.k("design:type",Object)],o1.prototype,"emojiVariants",void 0);_.Q([_.X(),_.k("design:type",Object)],o1.prototype,"focusedIndex",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],o1.prototype,"positionTarget",null);_.Q([_.X({reflectToAttribute:!0}),_.d("verticalOffset","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],o1.prototype,"isPositioned",null);_.Q([_.X(),_.k("design:type",Object)],o1.prototype,"verticalOffset",void 0);
_.Q([_.X(),_.k("design:type",Object)],o1.prototype,"verticalAlign",void 0);_.Q([_.X(),_.k("design:type",Object)],o1.prototype,"dynamicAlign",void 0);_.Q([_.zY("verticalOffset","positionTarget"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],o1.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.Q([_.zY("emojiVariants"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],o1.prototype,"onEmojiVariantsChanged",null);
_.Q([_.WZ("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],o1.prototype,"onKeyDown",null);_.Q([_.WZ("yt-emoji-select"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype",Promise)],o1.prototype,"onYtEmojiSelect",null);o1=_.Q([_.BZ()],o1);var $ui=[o1.prototype];var rl_;var GPU;var h9_=/medium-light|medium-dark|light|medium|dark/,vCh=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,Dui=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),tO=function(){var Y=_.Z.apply(this,arguments)||this;Y.userSelection={left:null,right:null};Y.scrollAction="lock";Y.isEmojiDraftInProgress=!1;return Y};
_.r(tO,_.Z);_.z=tO.prototype;_.z.onClick=function(Y){Y=_.oK(Y);Y instanceof HTMLImageElement&&this.selectOrUpdateEmoji(Y)};
_.z.selectOrUpdateEmoji=function(Y){var S=Y.getAttribute("selection");S&&(S==="default"?_.ms(this.hostElement,"yt-emoji-select",_.$O(this.emojiManager,Y.id)):S==="left"?this.userSelection=Object.assign({},this.userSelection,{left:Y.src}):S==="right"?this.userSelection=Object.assign({},this.userSelection,{right:Y.src}):S==="user"&&this.userSelection.left&&this.userSelection.right&&_.ms(this.hostElement,"yt-emoji-select",_.$O(this.emojiManager,Y.id)))};
_.z.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.z.onMultiSelectorThumbnailRowChanged=function(){var Y,S,P;((Y=this.data)==null?0:(S=Y.emoji)==null?0:(P=S.multiSelectorThumbnailRow)==null?0:P.length)&&this.openSelector()};
_.z.getThumbnailFromEmojiRow=function(Y){var S,P;return(Y==null?void 0:(S=Y.thumbnails)==null?void 0:(P=S[0])==null?void 0:P.url)||""};
_.z.getEmojiAltTextForPartialSelector=function(Y){var S;return((S=this.getThumbnailFromEmojiRow(Y).match(vCh))==null?void 0:S[0])||""};
_.z.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.z.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.z.getRowSelection=function(Y){return["left","right"][Y]};
_.z.getIdFromComposedEmoji=function(Y){return(Y==null?void 0:Y.emojiId)||""};
_.z.getEmojiFromPartialSelections=function(Y,S){if(!Y&&!S)return null;var P,u,W=(P=this.data)==null?void 0:(u=P.emoji)==null?void 0:u.variantIds;if(!W||!W.length)return null;var m;Y=(m=Y.match(h9_))==null?void 0:m[0];var J;S=(J=S.match(h9_))==null?void 0:J[0];if(!Y||!S)return null;var c=Dui.get(Y);J=Dui.get(S);if(c===J){J=Array.from(Dui.values()).filter(function(x){return x!==c}).join("|");
var C=new RegExp("^((?!("+J+")).)*"+c+"$")}else C=new RegExp(c+".*"+J);return(W=W.find(function(x){return C.test(x)}))&&_.$O(this.emojiManager,W)||null};
_.z.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var Y,S=this.ytEmojiSelectorBehavior.emojiUrl(((Y=this.data.emoji)==null?void 0:Y.emojiId)||"");_.I(this.hostElement).querySelector('[selection="user"]').src.includes(S)||(this.isEmojiDraftInProgress=!0)}};
_.z.onDomChange=function(){gCm(this.ytEmojiSelectorBehavior)};
_.z.getFocusableElements=function(){return _.I(this.hostElement).querySelectorAll("img").filter(function(Y){return Y.getAttribute("role")==="option"})};
_.z.changeFocus=function(Y){var S=this.getFocusableElements();S!=null&&S.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+Y+S.length)%S.length,this.ytEmojiSelectorBehavior.focusedIndex<S.length&&(Y=S[this.ytEmojiSelectorBehavior.focusedIndex])&&Y.focus())};
_.z.onKeyboardEnter=function(){var Y=this.getFocusableElements();Y!=null&&Y.length&&(Y=Y[this.ytEmojiSelectorBehavior.focusedIndex])&&Y instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(Y),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.y6.Object.defineProperties(tO.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var Y=this,S,P,u;return this.emojiManager&&((S=this.data)==null?0:(P=S.emoji)==null?0:(u=P.variantIds)==null?0:u.length)?this.data.emoji.variantIds.map(function(W){return!!W&&_.$O(Y.emojiManager,W)}).filter(function(W){return!!W}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var Y,S=(Y=this.userSelection)==null?void 0:Y.left,P;Y=(P=this.userSelection)==null?void 0:P.right;return S&&Y?this.getEmojiFromPartialSelections(S,Y):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.composedEmojiSelection)==null?0:Y.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var S;Y=(S=this.userSelection)==null?void 0:S.left;var P;S=(P=this.userSelection)==null?void 0:P.right;if(!Y&&!S){var u;return this.ytEmojiSelectorBehavior.emojiUrl(((u=this.data.emoji)==null?void 0:u.emojiId)||"")}return Y&&!S?Y:!Y&&S?S:""}}});
tO.prototype.onMultiSelectorThumbnailRowChanged=tO.prototype.onMultiSelectorThumbnailRowChanged;tO.prototype.onClick=tO.prototype.onClick;_.Q([_.p(_.ir),_.k("design:type",Object)],tO.prototype,"ironOverlayBehavior",void 0);_.Q([_.p($ui),_.k("design:type",Object)],tO.prototype,"ytEmojiSelectorBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],tO.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",_.gC)],tO.prototype,"emojiManager",void 0);
_.Q([_.X(),_.k("design:type",Object)],tO.prototype,"userSelection",void 0);_.Q([_.X(),_.k("design:type",Object)],tO.prototype,"scrollAction",void 0);_.Q([_.X(),_.k("design:type",Object)],tO.prototype,"isEmojiDraftInProgress",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],tO.prototype,"emojiVariants",null);_.Q([_.d("data","userSelection"),_.k("design:type",Object),_.k("design:paramtypes",[])],tO.prototype,"composedEmojiSelection",null);
_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[MouseEvent]),_.k("design:returntype")],tO.prototype,"onClick",null);_.Q([_.zY("data.emoji.multiSelectorThumbnailRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tO.prototype,"onMultiSelectorThumbnailRowChanged",null);_.Q([_.d("data","userSelection","composedEmojiSelection"),_.k("design:type",String),_.k("design:paramtypes",[])],tO.prototype,"draftEmojiUrl",null);
tO=_.Q([_.r0({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],tO);
_.A(tO,"yt-emoji-multi-person-selector",function(){if(GPU===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;rl_===void 0&&(rl_=document.createElement("template"));var u=rl_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);GPU=Y}Y=GPU;return Y},{mode:2});var I1m;var a1S;var AO=function(){var Y=_.Z.apply(this,arguments)||this;Y.tooltip_=null;return Y};
_.r(AO,_.Z);_.z=AO.prototype;_.z.dataChanged_=function(){var Y;if((Y=this.data)==null?0:Y.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.I(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.OR)(this.tooltip_).textContent=this.data.tooltip};
_.z.computeTargetId=function(){var Y;return((Y=this.data)==null?void 0:Y.targetId)||""};
_.z.computeId_=function(Y){return Y};
_.z.computeIcon_=function(Y){return _.u2(Y)};
_.z.onTap_=function(){this.active=!this.active;_.ms(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.z.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("active-changed",this.active))};
_.y6.Object.defineProperties(AO.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var Y,S;if((Y=this.data)==null?0:(S=Y.icon)==null?0:S.iconType)return this.data.icon.iconType==="SUPER_STICKER";var P,u;return((P=this.data)==null?void 0:(u=P.icon)==null?void 0:u.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
AO.prototype.activeChangedForBinding=AO.prototype.activeChangedForBinding;AO.prototype.dataChanged_=AO.prototype.dataChanged_;_.Q([_.p(_.$A.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],AO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],AO.prototype,"data",void 0);_.Q([_.X({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.k("design:type",String)],AO.prototype,"id",void 0);
_.Q([_.X({computed:"computeTargetId(data.targetId)"}),_.k("design:type",String)],AO.prototype,"targetId",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],AO.prototype,"active",void 0);_.Q([_.X({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.k("design:type",String)],AO.prototype,"icon",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AO.prototype,"dataChanged_",null);
_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],AO.prototype,"iconFilled",null);_.Q([_.zY("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AO.prototype,"activeChangedForBinding",null);AO=_.Q([_.r0({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],AO);
_.A(AO,"yt-emoji-picker-category-button-renderer",function(){if(a1S===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;I1m===void 0&&(I1m=document.createElement("template"));var u=I1m;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);a1S=Y}Y=a1S;return Y},{mode:2});var L3f;var w1h;var UL=function(){var Y=_.Z.apply(this,arguments)||this;Y.ariaLabel=null;Y.ariaActivedescendant=null;Y.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};Y.JSC$11890_ignoreNextFocus_=!1;Y.longPressTimeoutId=-1;return Y};
_.r(UL,_.Z);_.z=UL.prototype;_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.z.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.z.emojiChanged_=function(){this.changeFocus_(0,!1);for(var Y=_.BF(),S=0;S<this.emoji.length;S++){var P={veType:88013,elementIndex:S},u=this.emoji[S];u.isCustomEmoji&&(u=document.querySelector(("#"+u.emojiId).replace("/","\\/")))&&(P=_.JL(Y,P))&&(u.visualElement=P)}};
_.z.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.z.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.z.emojiSkinToneChanged_=function(Y){this.skinTone=Y};
_.z.dataChanged=function(){this.data&&this.data.emojiData&&$jt(this.emojiManager,this.data.emojiData)};
_.z.emojiUrl=function(Y){Y=this.getEmoji(Y);if(!Y)return"";var S;Y=(S=Y.image)==null?void 0:S.thumbnails;return _.UD(Y,24)||""};
_.z.emojiAlt=function(Y){var S=this.get("image.accessibility.accessibilityData.label",Y);return S?S:Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId};
_.z.emojiAriaLabel=function(Y){return Y.shortcuts?Y.shortcuts[0]:""};
_.z.emojiAriaSelected=function(Y,S,P){return Y&&P==S?"true":"false"};
_.z.getEmoji=function(Y){if(this.emojiManager)return this.shouldUseStickyPreferences?GKu(this.emojiManager,Y):rC(this.emojiManager,Y)};
_.z.computeId_=function(Y){return Y.categoryId||""};
_.z.computeEmoji=function(Y){var S=this;return this.emojiManager?Y.emojiIds?Y.emojiIds.map(function(P){return P?_.$O(S.emojiManager,P):null}).filter(sEa):Y.emojiData?Y.emojiData.map(function(P){var u=!!P.emojiId&&_.$O(S.emojiManager,P.emojiId);
return u?Object.assign({},u,P):null}).filter(sEa):[]:[]};
_.z.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.z.computeAriaLabel_=function(Y){return _.Ma(Y)};
_.z.computeAriaActivedescendant_=function(Y,S){return Y&&Y[S]?Y[S].emojiId||"":""};
_.z.handleLongPressEmojiWithVariants=function(Y,S){this.changeFocusToEmoji(Y.emojiId,!1);this.openVariantSelector(Y,S)};
_.z.onMouseDown=function(Y){var S=this;this.hostElement!==document.activeElement&&(this.JSC$11890_ignoreNextFocus_=!0);if(Y.button===0){var P=_.oK(Y);if(P instanceof HTMLImageElement){var u=_.I(this.hostElement).querySelector("#repeat").itemForElement(P);this.emojiContainsVariants(u)&&(this.longPressTimeoutId=setTimeout(function(){S.handleLongPressEmojiWithVariants(u,P)},500))}}};
_.z.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.z.onFocus=function(){this.JSC$11890_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11890_ignoreNextFocus_=!1};
_.z.onBlur_=function(){this.showFocus=!1};
_.z.emojiContainsVariants=function(Y){return!!(Y&&Y.variantIds&&Y.variantIds.length)};
_.z.onClick=function(Y){clearTimeout(this.longPressTimeoutId);Y=_.oK(Y);if(Y instanceof HTMLImageElement){var S=Y.id;this.changeFocusToEmoji(S,!1);var P=this.getEmoji(S),u;if(u=this.shouldUseStickyPreferences&&this.emojiContainsVariants(P)){var W;u=!((W=this.emojiManager.emojiMap[S])!=null&&W.stickyPrefId)}u?(W=_.I(this.hostElement).querySelector("#repeat").itemForElement(Y),this.openVariantSelector(W,Y)):_.ms(this.hostElement,"yt-emoji-select",P)}};
_.z.isActiveEmojiWithVariants=function(Y,S){return Y&&S?S.stickyPrefId?Y===S.stickyPrefId:Y===S.emojiId:!1};
_.z.onCloseEmojiVariantSelector=function(Y){this.activeEmojiWithVariantsId===Y&&(this.activeEmojiWithVariantsId="")};
_.z.onMouseOver_=function(Y){Y=_.oK(Y);Y instanceof HTMLImageElement&&_.ms(this.hostElement,"yt-emoji-hover",_.$O(this.emojiManager,Y.id))};
_.z.changeFocus_=function(Y,S){this.focusedIndex=(this.focusedIndex+Y+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(Y=this.emoji[this.focusedIndex],S&&(this.showFocus=!0,_.I(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.ms(this.hostElement,"yt-emoji-hover",Y)))};
_.z.changeFocusToEmoji=function(Y,S){if(Y){var P=this.emoji.findIndex(function(u){return u.emojiId===Y});
P!==-1&&this.changeFocus_(P-this.focusedIndex,S)}};
_.z.onKeyDown_=function(Y){switch(Y.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var S=this.emoji[this.focusedIndex];if(S&&S.emojiId){if(this.emojiContainsVariants(S)){var P=_.I(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(S,P)}else _.ms(this.hostElement,"yt-emoji-select",rC(this.emojiManager,S.emojiId)),this.hostElement.focus();Y.preventDefault()}}break;case 40:this.changeFocus_(1,!0);Y.preventDefault();break;case 38:this.changeFocus_(-1,!0),Y.preventDefault()}};
_.z.onEmojiStickyPreferenceChanged=function(Y,S){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&Y.emojiId&&Y.variantIds&&Y.variantIds.includes(S)&&this.activeEmojiWithVariantsId!==S&&this.setStickyEmojiPreference(Y.emojiId,S)};
_.z.openVariantSelector=function(Y,S){this.activeEmojiWithVariantsId=Y.stickyPrefId||Y.emojiId||"";_.ms(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:Y,target:S})};
_.z.setStickyEmojiPreference=function(Y,S){if(this.data){var P=this.emoji.findIndex(function(W){return W.emojiId===Y});
if(P!==-1){var u=this.emoji[P];u.stickyPrefId=S;this.set("emoji."+P,Object.assign({},u));this.activeEmojiWithVariantsId=S}}};
UL.prototype.onKeyDown_=UL.prototype.onKeyDown_;UL.prototype.onMouseOver_=UL.prototype.onMouseOver_;UL.prototype.onClick=UL.prototype.onClick;UL.prototype.onBlur_=UL.prototype.onBlur_;UL.prototype.onFocus=UL.prototype.onFocus;UL.prototype.onMouseUp=UL.prototype.onMouseUp;UL.prototype.onMouseDown=UL.prototype.onMouseDown;UL.prototype.dataChanged=UL.prototype.dataChanged;UL.prototype.disableIncrementalLoadingChanged_=UL.prototype.disableIncrementalLoadingChanged_;UL.prototype.emojiManagerChanged_=UL.prototype.emojiManagerChanged_;
UL.prototype.emojiChanged_=UL.prototype.emojiChanged_;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],UL.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],UL.prototype,"data",void 0);_.Q([_.X({computed:"computeId_(data)"}),_.k("design:type",String)],UL.prototype,"id",void 0);_.Q([_.X({computed:"computeEmoji(data)"}),_.k("design:type",Array)],UL.prototype,"emoji",void 0);_.Q([_.X(),_.k("design:type",Number)],UL.prototype,"skinTone",void 0);
_.Q([_.X(),_.k("design:type",_.gC)],UL.prototype,"emojiManager",void 0);_.Q([_.X(),_.k("design:type",Boolean)],UL.prototype,"disableIncrementalLoading",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],UL.prototype,"focusedIndex",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],UL.prototype,"showFocus",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.k("design:type",Object)],UL.prototype,"ariaLabel",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.k("design:type",Object)],UL.prototype,"ariaActivedescendant",void 0);_.Q([_.X({value:60}),_.k("design:type",Number)],UL.prototype,"domRepeatTargetFramerate",void 0);_.Q([_.X({value:1}),_.k("design:type",Number)],UL.prototype,"domRepeatInitialCount",void 0);_.Q([_.X({value:""}),_.k("design:type",String)],UL.prototype,"activeEmojiWithVariantsId",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],UL.prototype,"shouldUseStickyPreferences",void 0);_.Q([_.zY("emoji"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UL.prototype,"emojiChanged_",null);_.Q([_.zY("emojiManager"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UL.prototype,"emojiManagerChanged_",null);
_.Q([_.zY("disableIncrementalLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UL.prototype,"disableIncrementalLoadingChanged_",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UL.prototype,"dataChanged",null);_.Q([_.WZ("mousedown"),_.k("design:type",Function),_.k("design:paramtypes",[Object]),_.k("design:returntype")],UL.prototype,"onMouseDown",null);
_.Q([_.WZ("mouseup"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UL.prototype,"onMouseUp",null);_.Q([_.WZ("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UL.prototype,"onFocus",null);_.Q([_.WZ("blur"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UL.prototype,"onBlur_",null);
_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],UL.prototype,"onClick",null);_.Q([_.WZ("mouseover"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],UL.prototype,"onMouseOver_",null);_.Q([_.WZ("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],UL.prototype,"onKeyDown_",null);
UL=_.Q([_.r0({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],UL);
_.A(UL,"yt-emoji-picker-category-renderer",function(){if(w1h===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;L3f===void 0&&(L3f=document.createElement("template"));var u=L3f;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);w1h=Y}Y=w1h;return Y},{mode:2});var p1L;var F33;var sUh;var duf;var QN=function(){var Y=_.Z.apply(this,arguments)||this;Y.ariaLabel=null;Y.ariaActivedescendant=null;Y.getFormattedStringRawText=_.Ma;Y.JSC$11896_ignoreNextFocus_=!1;return Y};
_.r(QN,_.Z);_.z=QN.prototype;_.z.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")};
_.z.emojiUrl=function(Y){var S,P;Y=(S=rC(this.emojiManager,Y,!0))==null?void 0:(P=S.image)==null?void 0:P.thumbnails;return _.UD(Y,24)||""};
_.z.emojiAlt=function(Y){var S=this.get("image.accessibility.accessibilityData.label",Y);return S?S:Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId};
_.z.emojiId=function(Y){return"emoji"+Y};
_.z.computeId_=function(Y){return Y.categoryId||""};
_.z.computeAriaActivedescendant_=function(Y){return this.emoji&&Y<this.emoji.length?this.emojiId(Y):""};
_.z.emojiChanged_=function(){this.changeFocus_(0,!1);for(var Y=_.BF(),S=0;S<this.emoji.length;S++){var P={veType:88013,elementIndex:S},u=this.emoji[S];u.isCustomEmoji&&(u=document.querySelector(("#"+u.emojiId).replace("/","\\/")))&&(P=_.JL(Y,P))&&(u.visualElement=P)}};
_.z.computeEmoji_=function(Y){var S=this;return this.emojiManager?Y.emojiIds.map(function(P){return _.$O(S.emojiManager,P,!0)}).filter(dk8):[]};
_.z.titleOffsetChanged_=function(){var Y=this.hostElement.getBoundingClientRect(),S=_.I(this.hostElement).querySelector("#title").getBoundingClientRect();Y=Math.max(0,Math.min(this.titleOffset,Y.height-S.height));_.I(this.hostElement).querySelector("#title").style.top=Y+"px"};
_.z.onEmojiMouseOver_=function(Y){_.ms(this.hostElement,"yt-emoji-hover",Y.model.item)};
_.z.onEmojiTap_=function(Y){this.data.command&&(Y=UuE(_.E().resolve(_.PQ(oz)),this.data.command,Y),_.ms(this.hostElement,"yt-navigate",Y))};
_.z.emojiAriaLabel=function(Y){return Y.shortcuts[0]};
_.z.emojiAriaSelected=function(Y,S,P){return Y&&P==S?"true":"false"};
_.z.changeFocus_=function(Y,S){var P=this.emoji.length;this.focusedIndex=(this.focusedIndex+Y+P)%P;Y=this.emoji[this.focusedIndex];if(S){var u;(u=_.I(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||u.scrollIntoView(!1);_.ms(this.hostElement,"yt-emoji-hover",Y)}};
_.z.onMouseDown_=function(){this.JSC$11896_ignoreNextFocus_=!0};
_.z.onFocus_=function(){this.JSC$11896_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11896_ignoreNextFocus_=!1};
_.z.onBlur_=function(){this.showFocus=!1};
_.z.onKeyDown_=function(Y){switch(Y.keyCode){case 13:this.onEmojiTap_(Y);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);Y.preventDefault();break;case 38:this.changeFocus_(-1,!0),Y.preventDefault()}};
QN.prototype.onKeyDown_=QN.prototype.onKeyDown_;QN.prototype.onBlur_=QN.prototype.onBlur_;QN.prototype.onFocus_=QN.prototype.onFocus_;QN.prototype.onMouseDown_=QN.prototype.onMouseDown_;QN.prototype.onEmojiTap_=QN.prototype.onEmojiTap_;QN.prototype.titleOffsetChanged_=QN.prototype.titleOffsetChanged_;QN.prototype.emojiChanged_=QN.prototype.emojiChanged_;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],QN.prototype,"ytComponentBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],QN.prototype,"data",void 0);_.Q([_.X({computed:"computeId_(data)"}),_.k("design:type",String)],QN.prototype,"id",void 0);_.Q([_.X({computed:"computeEmoji_(data)"}),_.k("design:type",Array)],QN.prototype,"emoji",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],QN.prototype,"titleOffset",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.k("design:type",Object)],QN.prototype,"ariaLabel",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.k("design:type",Object)],QN.prototype,"ariaActivedescendant",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],QN.prototype,"showFocus",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],QN.prototype,"focusedIndex",void 0);_.Q([_.X(),_.k("design:type",_.gC)],QN.prototype,"emojiManager",void 0);
_.Q([_.zY("emoji"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QN.prototype,"emojiChanged_",null);_.Q([_.zY("titleOffset"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QN.prototype,"titleOffsetChanged_",null);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],QN.prototype,"onEmojiTap_",null);
_.Q([_.WZ("mousedown"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QN.prototype,"onMouseDown_",null);_.Q([_.WZ("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QN.prototype,"onFocus_",null);_.Q([_.WZ("blur"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QN.prototype,"onBlur_",null);
_.Q([_.WZ("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],QN.prototype,"onKeyDown_",null);QN=_.Q([_.r0({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],QN);
_.A(QN,"yt-emoji-picker-upsell-category-renderer",function(){if(duf===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;sUh===void 0&&(sUh=document.createElement("template"));var u=sUh;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);duf=Y}Y=duf;return Y},{mode:2});var l1_;var X1L;var kO=function(){var Y=_.Z.apply(this,arguments)||this;Y.scrollAction="lock";Y.verticalAlign="top";return Y};
_.r(kO,_.Z);_.z=kO.prototype;_.z.onClick=function(Y){Y=_.oK(Y);Y instanceof HTMLImageElement&&_.ms(this.hostElement,"yt-emoji-select",_.$O(this.emojiManager,Y.id))};
_.z.openSelector=function(){this.ironOverlayBehavior.open()};
_.z.onDomChange=function(){gCm(this.ytEmojiSelectorBehavior)};
_.z.computeIsFamilySelector=function(Y){var S;return(Y==null?void 0:(S=Y.emoji)==null?void 0:S.emojiId)==="\ud83d\udc6a"};
_.z.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var Y=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];Y&&Y.emojiId&&(_.ms(this.hostElement,"yt-emoji-select",_.$O(this.emojiManager,Y.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.y6.Object.defineProperties(kO.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var Y=this,S,P,u;return this.emojiManager&&((S=this.data)==null?0:(P=S.emoji)==null?0:(u=P.variantIds)==null?0:u.length)?this.data.emoji.variantIds.map(function(W){return!!W&&_.$O(Y.emojiManager,W)}).filter(function(W){return!!W}):[]}}});
kO.prototype.onClick=kO.prototype.onClick;_.Q([_.p(_.ir),_.k("design:type",Object)],kO.prototype,"ironOverlayBehavior",void 0);_.Q([_.p($ui),_.k("design:type",Object)],kO.prototype,"ytEmojiSelectorBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],kO.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",_.gC)],kO.prototype,"emojiManager",void 0);_.Q([_.X(),_.k("design:type",Object)],kO.prototype,"scrollAction",void 0);_.Q([_.X(),_.k("design:type",Object)],kO.prototype,"verticalAlign",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.k("design:type",Boolean)],kO.prototype,"isFamilySelector",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],kO.prototype,"emojiVariants",null);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[MouseEvent]),_.k("design:returntype")],kO.prototype,"onClick",null);kO=_.Q([_.r0({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],kO);
_.A(kO,"yt-emoji-variant-selector",function(){if(X1L===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;l1_===void 0&&(l1_=document.createElement("template"));var u=l1_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);X1L=Y}Y=X1L;return Y},{mode:2});var ZUd=/:/g,iUu=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],MV=function(){var Y=_.Z.apply(this,arguments)||this;Y.emojiVariantSelector=null;Y.emojiMultiPersonSelector=null;Y.identity=_.XE;Y.lastAnimationTime_=0;Y.animationStart_=null;Y.animationEnd_=null;return Y};
_.r(MV,_.Z);_.z=MV.prototype;
_.z.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}}};
_.z.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.GV)};
_.z.attached=function(){_.nj&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&rNf(this.emojiManager)};
_.z.dataChanged=function(){var Y;if((Y=this.data)==null?0:Y.categories){Y=this.emojiManager;var S=this.getCustomEmojiIds();Y.pickerCustomEmojiIds=[].concat(_.cz(Tzd),_.cz(S))}};
_.z.getCustomEmojiIds=function(){var Y,S=(Y=this.data.categories)==null?void 0:Y.find(function(m){var J;return((J=m.emojiPickerCategoryRenderer)==null?void 0:J.categoryId)&&iUu.includes(m.emojiPickerCategoryRenderer.categoryId)}),P;
Y=(P=this.data.categories)==null?void 0:P.find(function(m){return m.emojiPickerUpsellCategoryRenderer});
var u,W;return[S==null?void 0:(u=S.emojiPickerCategoryRenderer)==null?void 0:u.emojiIds,Y==null?void 0:(W=Y.emojiPickerUpsellCategoryRenderer)==null?void 0:W.emojiIds].flat().filter(function(m){return!!m})};
_.z.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.z.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.z.updateCategoriesAndPlaceholderInternal=function(Y,S){var P=this;Y&&S&&(this.categories=Y.categories||[],this.categoryButtons=Y.categoryButtons||[],this.resetPlaceholder(),this.search="",_.w0(function(){P.updateButtons_()}))};
_.z.computeId_=function(Y){return Y.id||""};
_.z.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(Y){return Y.emojiPickerCategoryRenderer&&Y.emojiPickerCategoryRenderer.emojiData}):!1};
_.z.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.z.onShowEmojiVariantSelector=function(Y){var S=Y.detail.emojiData;S.variantIds&&S.variantIds.length&&(S.multiSelectorThumbnailRow&&S.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:S,target:Y.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:S,target:Y.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.z.onIronOverlayClosed=function(Y){var S=GKu(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");S&&Y.composedPath&&(Y.composedPath().includes(_.I(this.hostElement).querySelector("#emoji-variant-selector"))||Y.composedPath().includes(_.I(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.nb(this.hostElement,"yt-close-emoji-variant-selector",[S.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.z.onEmojiVariantSelectorMouseup=function(Y){var S=Y.target.firstChild;this.variantSelectorOpened&&S&&_.w0(function(){S.noCancelOnOutsideClick=!1},100)};
_.z.onEmojiVariantSelectorMousedown=function(Y){Y=Y.target.firstChild;this.variantSelectorOpened&&Y&&(Y.noCancelOnOutsideClick=!1)};
_.z.onSelectCategory_=function(Y){var S=this.search!="";this.search="";for(var P=_.I(this.hostElement).querySelector("#categories").children,u=0;u<P.length;u++){var W=P[u];if(W.id==Y.detail.categoryId){S?(_.I(this.hostElement).querySelector("#categories").scrollTop=W.offsetTop,this.updateButtons_()):(this.animationStart_=_.I(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=W.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.z.onEmojiHover_=function(Y){this.placeholder=Y.detail.shortcuts?Y.detail.shortcuts[0]:""};
_.z.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.z.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.z.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.z.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.z.computeSearchCategory_=function(Y){Y=Y.replace(ZUd,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();Y=Y.split(" ");for(var S=[],P=this.emojiManager.emojis,u=0;u<P.length;u++){var W=P[u];if(W.searchTerms)for(var m=0;m<W.searchTerms.length;m++){for(var J=W.searchTerms[m].toLocaleLowerCase(),c=!1,C=0;C<Y.length;C++)if(J.indexOf(Y[C])!=-1){c=!0;break}if(c&&(!W.isCustomEmoji||!W.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(W.emojiId))){S.push(W.emojiId);
break}}}return{categoryId:-1,emojiIds:S}};
_.z.computeSearchEmptyMessage_=function(Y,S){return Y&&S&&S.emojiIds&&S.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.z.computeSearching_=function(Y){return this.emojiManager&&Y.replace(ZUd,"").length>1};
_.z.computeSkinToneHidden=function(){var Y;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((Y=this.data)==null||!Y.hideSkinTonePicker)};
_.z.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.z.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.z.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.z.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.z.selectSkinTone_=function(Y){Y=Number(Y.target.getAttribute("tone"));this.set("emojiManager.skinTone",Y);_.nb(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[Y]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.z.skinToneChanged_=function(){_.I(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var Y=_.I(this.hostElement).querySelector("#dropdown-content").children,S=0;S<Y.length;S++)S===this.skinTone?Y[S].setAttribute("selected",""):Y[S].removeAttribute("selected")};
_.z.animateScroll_=function(Y){this.lastAnimationTime_||(this.lastAnimationTime_=Y);Y-=this.lastAnimationTime_;Y<200?(_.I(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*Y/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.I(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.z.searchChanged_=function(){this.updateButtons_()};
_.z.updateButtons_=function(){var Y=null;if(!this.search)for(var S=_.I(this.hostElement).querySelector("#categories").scrollTop,P=_.I(this.hostElement).querySelector("#categories").children,u=0;u<P.length;u++){var W=P[u];W.offsetTop<=S&&(Y=W.id)}S=_.I(this.hostElement).querySelector("#category-buttons").children;for(P=0;P<S.length;P++)u=S[P],u.active=u.id===Y};
MV.prototype.searchChanged_=MV.prototype.searchChanged_;MV.prototype.skinToneChanged_=MV.prototype.skinToneChanged_;MV.prototype.onEmojiHover_=MV.prototype.onEmojiHover_;MV.prototype.onSelectCategory_=MV.prototype.onSelectCategory_;MV.prototype.onShowEmojiVariantSelector=MV.prototype.onShowEmojiVariantSelector;MV.prototype.updateCategoriesAndPlaceholder_=MV.prototype.updateCategoriesAndPlaceholder_;MV.prototype.dataChanged=MV.prototype.dataChanged;
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],MV.prototype,"data",void 0);_.Q([_.X({value:function(){return[]}}),
_.k("design:type",Array)],MV.prototype,"categories",void 0);_.Q([_.X({value:function(){return[]}}),
_.k("design:type",Array)],MV.prototype,"categoryButtons",void 0);_.Q([_.X({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.k("design:type",Boolean)],MV.prototype,"disableScroll",void 0);_.Q([_.X({computed:"computeId_(data)",reflectToAttribute:!0}),_.k("design:type",String)],MV.prototype,"id",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],MV.prototype,"selected",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],MV.prototype,"disableIncrementalLoading",void 0);_.Q([_.X(),_.k("design:type",String)],MV.prototype,"placeholder",void 0);_.Q([_.X({value:""}),_.k("design:type",String)],MV.prototype,"search",void 0);_.Q([_.X({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.k("design:type",Boolean)],MV.prototype,"searching",void 0);_.Q([_.X({computed:"computeSearchCategory_(search)"}),_.k("design:type",Object)],MV.prototype,"searchCategory",void 0);
_.Q([_.X({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.k("design:type",Object)],MV.prototype,"searchEmptyMessage",void 0);_.Q([_.X({computed:"identity(emojiManager.skinTone)"}),_.k("design:type",Number)],MV.prototype,"skinTone",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],MV.prototype,"skinToneOpened",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],MV.prototype,"variantSelectorOpened",void 0);
_.Q([_.X({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.k("design:type",Boolean)],MV.prototype,"skinToneHidden",void 0);_.Q([_.X(),_.k("design:type",_.gC)],MV.prototype,"emojiManager",void 0);_.Q([_.X(),_.k("design:type",Object)],MV.prototype,"emojiVariantSelector",void 0);_.Q([_.X(),_.k("design:type",Object)],MV.prototype,"emojiMultiPersonSelector",void 0);
_.Q([_.X({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.k("design:type",Boolean)],MV.prototype,"shouldUseStickyPreferences",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MV.prototype,"dataChanged",null);_.Q([_.zY("data","selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MV.prototype,"updateCategoriesAndPlaceholder_",null);
_.Q([_.WZ("yt-show-emoji-variant-selector"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],MV.prototype,"onShowEmojiVariantSelector",null);_.Q([_.WZ("yt-emoji-picker-select-category"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],MV.prototype,"onSelectCategory_",null);_.Q([_.WZ("yt-emoji-hover"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],MV.prototype,"onEmojiHover_",null);
_.Q([_.zY("skinTone"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MV.prototype,"skinToneChanged_",null);_.Q([_.zY("search"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MV.prototype,"searchChanged_",null);MV=_.Q([_.r0({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],MV);
_.A(MV,"yt-emoji-picker-renderer",function(){if(F33===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;p1L===void 0&&(p1L=document.createElement("template"));var u=p1L;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);F33=Y}Y=F33;return Y},{mode:2});var yN=function(){var Y=_.Z.apply(this,arguments)||this;Y.emojiManager=_.GV;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.selectedIndex=1;Y.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return Y};
_.r(yN,_.Z);_.z=yN.prototype;_.z.handleEmojiCustomizationVisible=function(Y){this.emojiPickerRenderer.selected=Y;this.selectedIndex=1;Y?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.z.emojiCustomizationSetChanged=function(){var Y;(Y=this.data)!=null&&Y.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Wt(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.z.updateSaveButtonState=function(Y){var S;(S=this.data)!=null&&S.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.qE("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:Y}))};
_.z.emojiUrl=function(Y){Y=_.$O(this.emojiManager,Y);if(!Y)return"";var S;Y=(S=Y.image)==null?void 0:S.thumbnails;return _.UD(Y,24)||""};
_.z.emojiAlt=function(Y){var S=_.$O(this.emojiManager,Y);if(!S)return Y;var P,u,W,m=(S==null?void 0:(P=S.image)==null?void 0:(u=P.accessibility)==null?void 0:(W=u.accessibilityData)==null?void 0:W.label)||"";return m?m:S.isCustomEmoji?S.shortcuts[0]:S.emojiId||Y};
_.z.emojiAriaLabel=function(Y){var S,P;return((S=_.$O(this.emojiManager,Y))==null?void 0:(P=S.shortcuts)==null?void 0:P[0])||Y};
_.z.onEmojiClick=function(Y){Y.model.index!==0&&(this.selectedIndex=Y.model.index)};
_.z.onEmojiSelect=function(Y){Y=Y.detail;var S,P;((S=this.data)==null?0:S.emojiCustomizationSetEntityKey)&&((P=this.emojiCustomizationSet)==null?0:P.emojiId)&&Y.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,Y.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.qE("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,Y.emojiId,this.selectedIndex)}))};
_.z.canEditEmoji=function(Y,S,P){Y=Y.indexOf(S);return Y===P||Y===0||P===0?!1:!0};
_.z.getUpdatedEmojiIdList=function(Y,S,P){var u=Y.indexOf(S);Y=[].concat(_.cz(Y));u>=0&&(Y[u]=Y[P]);Y[P]=S;return Y};
_.y6.Object.defineProperties(yN,{template:{configurable:!0,enumerable:!0,get:function(){if(z9i===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;W3t===void 0&&(W3t=document.createElement("template"));var u=W3t;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);z9i=Y}Y=z9i;return Y}}});
yN.prototype.onEmojiSelect=yN.prototype.onEmojiSelect;_.Q([_.p(_.gm),_.k("design:type",Object)],yN.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],yN.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.nc("yt-emoji-picker-renderer"),_.k("design:type",Object)],yN.prototype,"emojiPickerRenderer",void 0);
_.Q([_.X({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"emojiCustomizationSetEntity",S)},
observer:"emojiCustomizationSetChanged"}),_.k("design:type",Object)],yN.prototype,"emojiCustomizationSet",void 0);_.Q([_.X(),_.k("design:type",Object)],yN.prototype,"originalEmojiSet",void 0);_.Q([_.X(),_.k("design:type",_.gC)],yN.prototype,"emojiManager",void 0);_.Q([_.X(),_.k("design:type",Object)],yN.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],yN.prototype,"isDarkTheme",void 0);_.Q([_.X(),_.k("design:type",Object)],yN.prototype,"selectedIndex",void 0);
_.Q([_.WZ("yt-emoji-select"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],yN.prototype,"onEmojiSelect",null);yN=_.Q([_.r0({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],yN);var oC_;var t$3;var Alt;var Uui;var NV=function(){var Y=_.Z.apply(this,arguments)||this;Y.authorBadges=[];return Y};
_.r(NV,_.Z);_.z=NV.prototype;_.z.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.z.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]]"}}}}}};
_.z.dataChanged=function(){var Y=B4K(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",Y)};
_.z.updateMessage=function(){var Y=this.data.message,S=_.I(_.I(this.hostElement).querySelector("#message"));S.textContent="";Y&&S.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Y))};
_.z.shouldSupportWholeItemClick=function(){return!0};
_.z.onShowOriginalClick=function(Y){Y.preventDefault();this.showOriginal=!0};
_.z.computeShowBar=function(Y,S,P){return Y&&S||P};
_.z.computeAuthorBadges=function(Y){return Y.authorBadges||[]};
_.z.computeAuthorIsOwner=function(Y){return!!cPJ(Y.authorBadges,"owner")};
_.z.computeAuthorNameColor=function(Y){var S;if(_.f("live_chat_author_name_color_usernames")&&(Y==null?0:(S=Y.authorName)==null?0:S.simpleText))return _.T4Y(_.KOa(Y.authorName.simpleText));if(_.f("live_chat_seed_color_usernames")&&(Y==null?0:Y.authorSeedColorArgb))return _.T4Y(_.SC(Y.authorSeedColorArgb));if(_.f("live_chat_colored_usernames"))return"#cc0000";var P;return _.f("live_chat_simple_color_usernames")&&(Y==null?0:(P=Y.authorName)==null?0:P.simpleText)&&(Y==null?0:Y.authorUsernameColorLight)&&
(Y==null?0:Y.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.SC(Y.authorUsernameColorDark):_.SC(Y.authorUsernameColorLight):""};
NV.prototype.updateMessage=NV.prototype.updateMessage;NV.prototype.dataChanged=NV.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],NV.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],NV.prototype,"data",void 0);
_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],NV.prototype,"showOriginal",void 0);_.Q([_.X({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.k("design:type",Boolean)],NV.prototype,"isDimmed",void 0);_.Q([_.X({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.k("design:type",Boolean)],NV.prototype,"showBar",void 0);
_.Q([_.X({computed:"computeAuthorBadges(data)"}),_.k("design:type",Array)],NV.prototype,"authorBadges",void 0);_.Q([_.X({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],NV.prototype,"authorIsOwner",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],NV.prototype,"inCollapsedBanner",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],NV.prototype,"inBanner",void 0);
_.Q([_.X({value:_.f("live_chat_hide_avatars"),reflectToAttribute:!0}),_.k("design:type",Boolean)],NV.prototype,"avatarHidden",void 0);_.Q([_.X({computed:"computeAuthorNameColor(data)"}),_.k("design:type",String)],NV.prototype,"authorNameColor",void 0);_.Q([_.X(),_.k("design:type",_.a1)],NV.prototype,"participantsManager",void 0);_.Q([_.X({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.k("design:type",Object)],NV.prototype,"filledButtonOverrides",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NV.prototype,"dataChanged",null);_.Q([_.zY("data.message"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NV.prototype,"updateMessage",null);NV=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],NV);
_.A(NV,"yt-live-chat-text-message-renderer",function(){if(Uui===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Alt===void 0&&(Alt=document.createElement("template"));var u=Alt;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Uui=Y}Y=Uui;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var H0=function(){var Y=_.Z.apply(this,arguments)||this;Y.tonalButtonOverrides={type:"tonal",style:"overlay"};return Y};
_.r(H0,_.Z);
H0.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]]"}}}}}};
H0.prototype.shouldSupportInlineActionButtons=function(){return!0};
H0.prototype.shouldSupportWholeItemClick=function(){return!0};
_.y6.Object.defineProperties(H0.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],H0.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],H0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],H0.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",_.a1)],H0.prototype,"participantsManager",void 0);
_.Q([_.X(),_.k("design:type",Object)],H0.prototype,"tonalButtonOverrides",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data.infoDialogButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],H0.prototype,"hasInfoDialogButton",null);H0=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],H0);
_.A(H0,"yt-live-chat-auto-mod-message-renderer",function(){if(t$3===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;oC_===void 0&&(oC_=document.createElement("template"));var u=oC_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);t$3=Y}Y=t$3;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var QUt;var kPd;var M$t;var VN=function(){return _.Z.apply(this,arguments)||this};
_.r(VN,_.Z);_.Q([_.X(),_.k("design:type",Object)],VN.prototype,"data",void 0);VN=_.Q([_.t({is:"ytd-factoid-renderer",disableElementRegistration:!0})],VN);
_.A(VN,"ytd-factoid-renderer",function(){if(M$t!==void 0)return M$t;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return M$t=Y},{mode:1});var eG=function(){return _.Z.apply(this,arguments)||this};
_.r(eG,_.Z);eG.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.Q([_.X(),_.k("design:type",Object)],eG.prototype,"data",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],eG.prototype,"ytRendererstamperBehavior",void 0);eG=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],eG);
_.A(eG,"yt-live-chat-channel-activity-reputation-renderer",function(){if(kPd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;QUt===void 0&&(QUt=document.createElement("template"));var u=QUt;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);kPd=Y}Y=kPd;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var ylm;var N3s;var OL=function(){return _.Z.apply(this,arguments)||this};
_.r(OL,_.Z);OL.prototype.ready=function(){var Y=document.querySelector("yt-live-chat-app");Y&&Y.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Boolean)],OL.prototype,"menuFocused",void 0);_.Q([_.X(),_.k("design:type",Object)],OL.prototype,"data",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],OL.prototype,"ytLiveChatItemBehavior",void 0);OL=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],OL);
_.A(OL,"yt-live-chat-donation-announcement-renderer",function(){if(N3s===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;ylm===void 0&&(ylm=document.createElement("template"));var u=ylm;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);N3s=Y}Y=N3s;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var HUm;var V$J,e9u=function(){if(V$J!==void 0)return V$J;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;HUm===void 0&&(HUm=document.createElement("template"));var u=HUm;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return V$J=Y};var YR=function(){return _.Z.apply(this,arguments)||this};
_.r(YR,_.Z);_.y6.Object.defineProperties(YR,{template:{configurable:!0,enumerable:!0,get:function(){return e9u()}}});
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],YR.prototype,"data",void 0);YR=_.Q([_.r0({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],YR);_.A(YR,"yt-live-chat-empty-feed-view-model",function(){return e9u()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var OUi;var Ytd;var S4=function(){return _.Z.apply(this,arguments)||this};
_.r(S4,_.Z);S4.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"}}}}}};
_.y6.Object.defineProperties(S4.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var Y,S;return{runs:[{text:(Y=this.data)==null?void 0:(S=Y.channelName)==null?void 0:S.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var Y=[],S;if((S=this.data)==null||!S.channelBadges)return Y;var P;S=_.n((P=this.data)==null?void 0:P.channelBadges);for(P=S.next();!P.done;P=S.next()){P=_.g(P.value,$d_);var u=void 0,W=void 0;if((u=P)==null?0:(W=u.badgeImage)==null?0:W.sources)u=void 0,W={liveChatAuthorBadgeRenderer:{tooltip:P.tooltip,accessibility:{accessibilityData:{label:(u=_.g(P.rendererContext,_.iL))==null?void 0:u.label}}}},P.badgeImage.sources[0].clientResource?W.liveChatAuthorBadgeRenderer.icon=
{iconType:P.badgeImage.sources[0].clientResource.imageName}:W.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:P.badgeImage.sources},Y.push(W)}return Y}}});
_.Q([_.X(),_.k("design:type",Object)],S4.prototype,"data",void 0);_.Q([_.d("data.channelName"),_.k("design:type",Object),_.k("design:paramtypes",[])],S4.prototype,"channelName",null);_.Q([_.d("data.channelBadges"),_.k("design:type",Array),_.k("design:paramtypes",[])],S4.prototype,"channelBadges",null);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);
S4=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],S4);
_.A(S4,"yt-live-chat-identity-view-model",function(){if(Ytd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;OUi===void 0&&(OUi=document.createElement("template"));var u=OUi;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Ytd=Y}Y=Ytd;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var StU;var Pth;var urJ;var Wri;var Pf=function(){var Y=_.Z.apply(this,arguments)||this;Y.hidden=!1;Y.supportsInlineActionButtons=!0;return Y};
_.r(Pf,_.Z);Pf.prototype.ready=function(){var Y;((Y=document.querySelector("yt-live-chat-app"))==null?0:Y.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Pf.prototype.dataChanged=function(Y){var S=(0,_.OR)(_.I(this.hostElement).querySelector("#detail-text"));S.textContent="";(Y==null?0:Y.detailText)&&S.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Y.detailText))};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],Pf.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X({observer:"dataChanged"}),_.k("design:type",Object)],Pf.prototype,"data",void 0);
_.Q([_.X({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.k("design:type",Object)],Pf.prototype,"hidden",void 0);Pf=_.Q([_.t({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Pf);
_.A(Pf,"yt-live-chat-legacy-paid-message-renderer",function(){if(Wri===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;urJ===void 0&&(urJ=document.createElement("template"));var u=urJ;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Wri=Y}Y=Wri;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var zcU;var mki;var nKL={},ul=function(){return _.JI.apply(this,arguments)||this};
_.r(ul,_.JI);ul.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ul.prototype.onLiveChatMembershipItemBehaviorClick=ul.prototype.onLiveChatMembershipItemBehaviorClick;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ul.prototype,"data",void 0);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],ul.prototype,"onLiveChatMembershipItemBehaviorClick",null);ul=_.Q([_.BZ()],ul);
nKL.YtLiveChatMembershipItemBehavior=[ul.prototype,_.e.YtRendererBehavior];var Wf=function(){var Y=_.Z.apply(this,arguments)||this;Y.supportsInlineActionButtons=!0;Y.hasPrimaryHeaderText=!1;Y.showOnlyHeader=!1;Y.authorBadges=[];Y.modern=_.f("web_button_rework_with_live");Y.buttonOverrides={style:"overlay",type:"filled"};return Y};
_.r(Wf,_.Z);_.z=Wf.prototype;_.z.shouldSupportInlineActionButtons=function(){return!0};
_.z.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.z.ready=function(){var Y=document.querySelector("yt-live-chat-app");Y&&Y.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.z.messageChanged=function(){var Y=this.data.message,S=(0,_.OR)(_.I(this.hostElement).querySelector("#message"));S.textContent="";Y&&S.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Y))};
_.z.computeHasPrimaryHeaderText=function(Y){return!(!Y||!Y.headerPrimaryText)};
_.z.computeShowOnlyHeader=function(Y,S){return this.isMessageEmpty(Y,S)};
_.z.computeAuthorBadges=function(Y){return Y.authorBadges||[]};
_.z.isMessageEmpty=function(Y,S){return!Y||Y.empty?!0:!Y.message&&!Y.inputField&&!S};
_.z.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.z.getInputElement=function(){return _.I(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.z.inputFocus=function(){var Y=this.getInputElement();Y&&Y.focus()};
_.z.inputInsertEmoji=function(Y){var S=this.getInputElement();S&&S.insertEmoji(Y)};
_.z.inputMessage=function(){var Y=this.getInputElement();return Y&&this.data.inputField?(Y.completeEmojis(),_.aF(Y.liveChatRichMessageInput)):null};
_.z.onFooterButtonClick=function(){this.data.footerButton&&_.ms(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.z.shouldSupportWholeItemClick=function(){return!0};
Wf.prototype.isDeletedChanged=Wf.prototype.isDeletedChanged;Wf.prototype.messageChanged=Wf.prototype.messageChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],Wf.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.p(nKL.YtLiveChatMembershipItemBehavior),_.k("design:type",Object)],Wf.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Wf.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Wf.prototype,"data",void 0);_.Q([_.X({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Wf.prototype,"hasPrimaryHeaderText",void 0);_.Q([_.X({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.k("design:type",Object)],Wf.prototype,"showOnlyHeader",void 0);
_.Q([_.X({computed:"computeAuthorBadges(data)"}),_.k("design:type",Array)],Wf.prototype,"authorBadges",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Wf.prototype,"modern",void 0);_.Q([_.zY("data.message"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Wf.prototype,"messageChanged",null);_.Q([_.zY("isDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Wf.prototype,"isDeletedChanged",null);
Wf=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Wf);
_.A(Wf,"yt-live-chat-membership-item-renderer",function(){if(mki===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;zcU===void 0&&(zcU=document.createElement("template"));var u=zcU;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);mki=Y}Y=mki;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var jEu;var J4d;var zn=function(){return _.Z.apply(this,arguments)||this};
_.r(zn,_.Z);zn.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],zn.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],zn.prototype,"data",void 0);zn=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],zn);
_.A(zn,"yt-live-chat-mode-change-message-renderer",function(){if(J4d===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;jEu===void 0&&(jEu=document.createElement("template"));var u=jEu;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);J4d=Y}Y=J4d;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Bri;var c4S;var my=function(){return _.Z.apply(this,arguments)||this};
_.r(my,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],my.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],my.prototype,"data",void 0);my=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],my);
_.A(my,"yt-live-chat-moderation-message-renderer",function(){if(c4S===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Bri===void 0&&(Bri=document.createElement("template"));var u=Bri;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);c4S=Y}Y=c4S;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var CtJ;var qt3;var nG=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("web_button_rework");return Y};
_.r(nG,_.Z);nG.prototype.onClick=function(){var Y;if((Y=this.data)!=null&&Y.onClickCommand){var S;_.zR.instance.resolveCommand((S=this.data)==null?void 0:S.onClickCommand)}};
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],nG.prototype,"modern",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nG.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.gm),_.k("design:type",Object)],nG.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],nG.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],nG.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],nG.prototype,"data",void 0);nG=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],nG);
_.A(nG,"yt-live-chat-offer-click-count-message-renderer",function(){if(qt3===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;CtJ===void 0&&(CtJ=document.createElement("template"));var u=CtJ;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);qt3=Y}Y=qt3;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Rcm;var j4=function(){return _.Z.apply(this,arguments)||this};
_.r(j4,_.Z);_.Q([_.X(),_.k("design:type",Object)],j4.prototype,"data",void 0);j4=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],j4);
_.A(j4,"yt-live-chat-placeholder-item-renderer",function(){if(Rcm===void 0){var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);Rcm=Y}Y=Rcm;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var xku;var b3U;var Tr6=new UC(7),J8=function(){var Y=_.Z.apply(this,arguments)||this;Y.data={};return Y};
_.r(J8,_.Z);J8.prototype.dataChanged=function(){var Y;((Y=this.data)==null?0:Y.class)&&_.Vm(this.hostElement,this.data.class,!0);var S;((S=this.oldData)==null?0:S.class)&&_.Vm(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
J8.prototype.computeTimestampString=function(Y){return Tr6.format(new Date(Y/1E3))};
J8.prototype.dataChanged=J8.prototype.dataChanged;_.Q([_.X(),_.k("design:type",Object)],J8.prototype,"data",void 0);_.Q([_.X({computed:"computeTimestampString(data.timestampUsec)"}),_.k("design:type",String)],J8.prototype,"timestampString",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],J8.prototype,"dataChanged",null);J8=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],J8);
_.A(J8,"yt-live-chat-server-error-message",function(){if(b3U===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;xku===void 0&&(xku=document.createElement("template"));var u=xku;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);b3U=Y}Y=b3U;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Kr3;var EKs;var Bf=function(){var Y=_.Z.apply(this,arguments)||this;Y.defaultToFilledIcon=!1;return Y};
_.r(Bf,_.Z);Bf.prototype.computeHasPrimaryColorIcon=function(Y){return Y==="SPARK"||Y==="SPONSORSHIP_STAR"};
Bf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],Bf.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Bf.prototype,"defaultToFilledIcon",void 0);_.Q([_.X(),_.k("design:type",Object)],Bf.prototype,"data",void 0);
_.Q([_.X({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Bf.prototype,"hasPrimaryColorIcon",void 0);Bf=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Bf);
_.A(Bf,"yt-live-chat-viewer-engagement-message-renderer",function(){if(EKs===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Kr3===void 0&&(Kr3=document.createElement("template"));var u=Kr3;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);EKs=Y}Y=EKs;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var fe3;var cf=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernUpdate=!1;Y.buttonStyle="overlay";Y.buttonType="filled";return Y};
_.r(cf,_.Z);cf.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
cf.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],cf.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],cf.prototype,"modernUpdate",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],cf.prototype,"buttonStyle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],cf.prototype,"buttonType",void 0);
cf=_.Q([_.t({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],cf);
_.A(cf,"ytd-ad-hover-text-button-renderer",function(){if(fe3!==void 0)return fe3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return fe3=Y},{mode:1});var gKu;var CG=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonOverrides={size:"XS"};Y.modern=_.f("web_button_rework");return Y};
_.r(CG,_.Z);CG.prototype.onHelpTap=function(Y){this.data&&this.data.informationDialog&&(_.ms(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),Y.preventDefault(),Y.stopPropagation())};
_.Q([_.X(),_.k("design:type",Object)],CG.prototype,"buttonOverrides",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CG.prototype,"modern",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],CG.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],CG.prototype,"data",void 0);CG=_.Q([_.t({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],CG);
_.A(CG,"ytd-live-chat-purchased-product-message-renderer",function(){if(gKu!==void 0)return gKu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return gKu=Y},{mode:1});var $k3;var r4_;var qc=function(){var Y=_.Z.apply(this,arguments)||this;Y.isContainerDeleted=!1;return Y};
_.r(qc,_.Z);qc.prototype.onContextMenuClick=function(Y){this.ytLiveChatItemBehavior.showContextMenu(Y)};
qc.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))};
qc.prototype.isContainerDeletedChanged=qc.prototype.isContainerDeletedChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],qc.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],qc.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],qc.prototype,"isContainerDeleted",void 0);
_.Q([_.X(),_.k("design:type",String)],qc.prototype,"deletedStateMessage",void 0);_.Q([_.zY("isContainerDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qc.prototype,"isContainerDeletedChanged",null);qc=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],qc);
_.A(qc,"ytd-sponsorships-live-chat-header-renderer",function(){if(r4_!==void 0)return r4_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return r4_=Y},{mode:1});var R5=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("web_button_rework_with_live");Y.buttonOverrides={style:"overlay",type:"filled"};return Y};
_.r(R5,_.Z);R5.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]]"}}}}}};
R5.prototype.onCtaButtonClick=function(){var Y,S=_.g((Y=this.data)==null?void 0:Y.optInPrompt,_.I8);if(Y=this.maybeGetButtonCommand(S)){var P;(P=_.BF())==null||P.clickCommand(Y)}};
R5.prototype.maybeGetButtonCommand=function(Y){return!Y||!Y.command||_.g(Y.command,HP3)===void 0&&_.g(Y.command,NDh)===void 0?null:Y.command};
R5.prototype.shouldHideOptinPrompt=function(Y,S){return!Y||S};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],R5.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],R5.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],R5.prototype,"modern",void 0);R5=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],R5);
_.A(R5,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if($k3!==void 0)return $k3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return $k3=Y},{mode:1});var GaS;var xR=function(){return _.Z.apply(this,arguments)||this};
_.r(xR,_.Z);xR.prototype.onContextMenuClick=function(Y){this.ytLiveChatItemBehavior.showContextMenu(Y)};
xR.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))};
xR.prototype.isDeletedChanged=xR.prototype.isDeletedChanged;_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],xR.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],xR.prototype,"data",void 0);_.Q([_.zY("isDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xR.prototype,"isDeletedChanged",null);xR=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],xR);
_.A(xR,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(GaS!==void 0)return GaS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return GaS=Y},{mode:1});var bl=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return Y};
_.r(bl,_.Z);_.z=bl.prototype;
_.z.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"}}}};
_.z.handleLiveChatAction=function(Y){_.g(Y,qji)?this.handleMarkChatItemAsDeletedAction(_.g(Y,qji)):_.g(Y,Ci3)&&this.handleRemoveChatItemAction(_.g(Y,Ci3))};
_.z.handleLiveChatActions=function(Y){Y.forEach(this.handleLiveChatAction,this)};
_.z.handleMarkChatItemAsDeletedAction=function(Y){var S=this,P;((P=this.data)==null?0:P.items)&&this.data.items.forEach(function(u,W){var m=Object.keys(u)[0];Object.values(u)[0].id===Y.targetItemId&&S.markAsDeleted("data.items",W,m,Y.deletedStateMessage,Y.showOriginalContentMessage)})};
_.z.handleRemoveChatItemAction=function(Y){var S=this,P;((P=this.data)==null?0:P.items)&&this.data.items.forEach(function(u,W){Object.values(u)[0].id===Y.targetItemId&&S.splice("data.items",W,1)})};
_.z.markAsDeleted=function(Y,S,P,u,W){Y=[Y,S,P].join(".");this.set(Y+".deletedStateMessage",u);this.set(Y+".showOriginalContentMessage",W)};
_.Q([_.X(),_.k("design:type",Object)],bl.prototype,"data",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],bl.prototype,"ytActionHandlerBehavior",void 0);bl=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],bl);
_.A(bl,"yt-live-chat-item-display-list-renderer",function(){if(Pth===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;StU===void 0&&(StU=document.createElement("template"));var u=StU;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Pth=Y}Y=Pth;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var hc3;var vK3,Dkt=function(){if(vK3!==void 0)return vK3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;hc3===void 0&&(hc3=document.createElement("template"));var u=hc3;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return vK3=Y};var Tn=function(){var Y=_.Z.apply(this,arguments)||this;Y.isHeader=!1;return Y};
_.r(Tn,_.Z);Tn.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.y6.Object.defineProperties(Tn,{template:{configurable:!0,enumerable:!0,get:function(){return Dkt()}}});
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Tn.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Tn.prototype,"isHeader",void 0);Tn=_.Q([_.r0({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Tn);_.A(Tn,"yt-live-chat-item-display-renderer",function(){return Dkt()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Ie6,aei,sEt,FrU;
Ie6={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}};aei={home:"eohps",search:"eosps",watch:"eowps"};_.Lrs=["watch","search","home"];
_.KG=function(){this.JSC$12007_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12007_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.X3("PRECONSTRUCTION_DELAY",0);this.signals_=_.aQ();this.targetPage_=""};
_.KG.prototype.init=function(Y,S){Y=Y===void 0?"":Y;S=S===void 0?null:S;if(this.JSC$12007_isInitialized_)this.abort();else if(this.JSC$12007_isInitialized_=!0,Y&&_.wDL(this,Y),S){var P=_.Ld(this.signals_,"pcl")?0:10,u=function(){for(var W=0,m;m=_.Lrs[W++];)m!=Y&&m!=S&&this.pendingPages_.push(m);_.pDJ(this)}.bind(this);
this.signals_.parkOrScheduleJob(u,P,"pcl")}};
_.KG.prototype.abort=function(){this.fragmentJobId_&&(_.wc.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);FrU(this)};
_.wDL=function(Y,S){Y.JSC$12007_isInitialized_&&!Y.targetPage_&&(Y.targetPage_=S,sEt(Y,S),Y.isInitialPass_=!1,sEt(Y,S),Y.signals_.processSignal(aei[Y.targetPage_]),FrU(Y),_.pDJ(Y))};
_.pDJ=function(Y){Y.pendingPages_.length&&!Y.pagePreparerJobId_&&(Y.pagePreparerJobId_=_.hp(_.wc,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.wDL(this,this.pendingPages_.shift())}.bind(Y),Y.DEFAULT_DELAY_))};
sEt=function(Y,S){if(S=Ie6[S])for(var P in S){var u=!1,W=P;P.charAt(0)=="~"&&(u=!0,W=P.substring(1));var m=S[P];m=typeof m=="object"?m:{count:m};S[P]=m;m.componentName=W;m.count>0&&(Y.isInitialPass_?u||Y.isSeenDuringInitialPass_[W]||(Y.JSC$12007_queue_.push({componentName:W,count:1,signals:m.signals}),Y.isSeenDuringInitialPass_[W]=!0,m.count--):Y.JSC$12007_queue_.push(m))}};
FrU=function(Y){Y.JSC$12007_queue_.length=0;Y.targetPage_="";Y.isInitialPass_=!0;Y.signals_.processSignal("eop")};
_.KG.getInstance=function(){return _.zU(_.KG)};var dku=function(){this.signals=_.aQ();this.init()};
dku.prototype.startPreconstruction=function(){_.KG.getInstance().init(_.Z4("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
dku.prototype.init=function(){leh(this);window.Polymer&&p_d&&Hfa();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var Y=_.Pa.ytcsi;if(Y&&Y.gt&&(Y=Y.gt())&&Y.tick&&(Y.tick.aft>0||Y.tick.pbs>0)&&(_.Z4("IS_HOMEPAGE_COLD")||_.Z4("IS_RESULTS_PAGE_COLD")||_.Z4("IS_WATCH_PAGE_COLD"))){XDL(this);break a}Obf(tvu,this.onNotifications,this)}};
var leh=function(Y){var S=function(){Y.signals.processSignal("dl")};
document.readyState==="complete"?(_.AA(Error("uh"),"WARNING"),S()):_.IV9(window,"load",S)};
dku.prototype.onNotifications=function(Y){Y.timer||(_.Z4("IS_HOMEPAGE_COLD")||_.Z4("IS_RESULTS_PAGE_COLD")||_.Z4("IS_WATCH_PAGE_COLD"))&&XDL(this)};
var XDL=function(Y){Y.signals.parkOrScheduleJob(function(){Y.signals.processSignal("eocs")},10,"eor")};
new dku;var Ev,fG=function(){return _.JI.apply(this,arguments)||this};
_.r(fG,_.JI);_.z=fG.prototype;_.z.enableActiveViewMeasurement=function(Y){if(this.isActiveViewEnabled(Y)){var S=this.getUrlPrefixesFromCommand(Y.viewableCommands);Y=this.getUrlPrefixesFromCommand(Y.endOfSessionCommands);Ev||(Ev=new IEh(this.getVersion()));aE9(Ev,this.hostElement);Lda(Ev,this.hostElement,S,Y)}};
_.z.stopActiveViewMeasurement=function(){Ev&&aE9(Ev,this.hostElement)};
_.z.isActiveViewEnabled=function(Y){return!!Y&&(this.hasAtLeastOneUrl(Y.viewableCommands)||this.hasAtLeastOneUrl(Y.endOfSessionCommands))};
_.z.hasAtLeastOneUrl=function(Y){return!!Y&&Y.length>0&&Y[0].loggingUrls!=null&&Y[0].loggingUrls.length>0};
_.z.getVersion=function(){var Y=_.X3("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(Y==null?void 0:Y.length)===2?Y[1]:null};
_.z.getUrlPrefixesFromCommand=function(Y){if(!Y)return[];var S=[];Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())if(P=P.value,P.loggingUrls){P=_.n(P.loggingUrls);for(var u=P.next();!u.done;u=P.next())u=u.value,u.baseUrl&&S.push(u.baseUrl)}return S};
fG=_.Q([_.BZ()],fG);var $R=[fG.prototype];var ra=function(){return _.JI.apply(this,arguments)||this};
_.r(ra,_.JI);_.y6.Object.defineProperties(ra.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_entity_store_from_dependency_injection")?_.X2():_.Na()}}});
ra=_.Q([_.BZ()],ra);_.Gn=[Cf.prototype,ra.prototype];var Z3m=["ytd-rich-shelf-renderer"],h8=function(){var Y=_.JI.apply(this,arguments)||this;Y._noAccessors=!0;Y.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";Y.followUpDialogPromise=null;Y.followUpDialogPromiseResolve=null;Y.followUpDialogPromiseReject=null;return Y};
_.r(h8,_.JI);_.z=h8.prototype;_.z.dismissibleItemIsDismissedChanged_=function(Y){_.f("kevlar_fluid_dismiss")&&(Y?_.ms(this.hostElement,"yt-dismissible-item-dismissed"):_.ms(this.hostElement,"yt-dismissible-item-undismissed"))};
_.z.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.z.dismissibleItemReset_=function(){var Y=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.qs(function(S,P){Y.followUpDialogPromiseResolve=S;Y.followUpDialogPromiseReject=P});
_.ms(this.hostElement,"yt-enable-lockup-interaction")};
_.z.dismissibleItemOnYtServiceRequestSent_=function(Y,S){S.actions&&this.dismissibleItemProcessActions(S.actions,Y)};
_.z.dismissibleItemOnRequestSent=function(Y){if(_.f("web_button_rework"))for(var S=_.n(Y.detail),P=S.next();!P.done;P=S.next()){var u=void 0;(P=(u=_.g(P.value,_.xo))==null?void 0:u.actions)&&this.dismissibleItemProcessActions(P,Y)}};
_.z.dismissibleItemOnCommandSent=function(Y,S){S&&this.dismissibleItemProcessActions(S,Y)};
_.z.setAndGetDismissedContentId=function(Y){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+Y};
_.z.replayDismissAction=function(Y){this.dismissibleItemProcessActions([Y])};
_.z.dismissibleItemProcessActions=function(Y,S){for(var P=0;P<Y.length;P++){var u=Y[P],W=void 0;((W=_.g(u,_.qT))==null?0:W.commands)&&this.dismissibleItemProcessActions(_.g(u,_.qT).commands,S);if(_.g(u,_.xp)){if(W=_.g(u,_.xp),!W.replaceParentSection||Z3m.includes(this.hostElement.nodeName.toLowerCase()))_.f("web_see_fewer_shorts_reactive_dismissal")&&W.groupDismissal&&le$(this,W.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(W),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.qE("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:u})),u=void 0,(u=S)==null||u.stopPropagation()}else if(_.g(u,rvi))this.dismissibleItemHandleHideEnclosingAction_(),u=void 0,(u=S)==null||u.stopPropagation();else if(_.g(u,dAi))_.f("web_see_fewer_shorts_reactive_dismissal")&&(u=_.g(u,dAi),W=void 0,((W=u)==null?0:W.targetGroupId)&&le$(this,{targetGroupId:u.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.qE("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),u=void 0,(u=S)==null||u.stopPropagation();else if(_.g(u,_.xo))(u=_.g(u,_.xo).actions)&&_.cu(this.hostElement,u,this.hostElement),u=void 0,(u=S)==null||u.stopPropagation();else{var m=W=void 0;((W=_.g(u,_.iE))==null?void 0:W.signal)!=="TELL_US_WHY"||((m=_.g(u,_.iE))==null?0:m.targetId)&&_.f("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),u=void 0,(u=S)==null||u.stopPropagation())}}};
_.z.dismissibleItemOnYtServiceRequestCompleted_=function(Y,S){var P=this.get("feedbackResponses.0.followUpDialog",S.data);P?this.followUpDialogPromiseResolve(P):S.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(S.actions,Y)};
_.z.dismissibleItemHandleReplaceEnclosingAction_=function(Y){this.dismissedRenderer=Y.item;this.isDismissed=!0;var S=null;(S=_.I(this.hostElement).querySelector("#dismissed"))&&_.ky(this,function(){_.H_(S)});
_.ms(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.z.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.z.dismissibleItemHandleUndoFeedbackAction_=function(){_.ms(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.z.dismissibleItemHandleTellUsWhySignalAction_=function(){var Y=this;this.followUpDialogPromise.then(function(S){Y.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:S}})})};
h8.prototype.dismissibleItemOnYtServiceRequestCompleted_=h8.prototype.dismissibleItemOnYtServiceRequestCompleted_;h8.prototype.dismissibleItemOnCommandSent=h8.prototype.dismissibleItemOnCommandSent;h8.prototype.dismissibleItemOnRequestSent=h8.prototype.dismissibleItemOnRequestSent;h8.prototype.dismissibleItemOnYtServiceRequestSent_=h8.prototype.dismissibleItemOnYtServiceRequestSent_;h8.prototype.dismissibleItemDataChanged_=h8.prototype.dismissibleItemDataChanged_;
h8.prototype.dismissibleItemIsDismissedChanged_=h8.prototype.dismissibleItemIsDismissedChanged_;_.Q([_.p(_.sL),_.k("design:type",Object)],h8.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],h8.prototype,"ytdReduxBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],h8.prototype,"isDismissed",void 0);_.Q([_.X(),_.k("design:type",Object)],h8.prototype,"dismissedRenderer",void 0);
_.Q([_.zY("isDismissed"),_.k("design:type",Function),_.k("design:paramtypes",[Boolean]),_.k("design:returntype")],h8.prototype,"dismissibleItemIsDismissedChanged_",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],h8.prototype,"dismissibleItemDataChanged_",null);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],h8.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.Q([_.WZ("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],h8.prototype,"dismissibleItemOnRequestSent",null);
_.Q([_.WZ("yt-dismissible-item-action"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Array]),_.k("design:returntype")],h8.prototype,"dismissibleItemOnCommandSent",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],h8.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);h8=_.Q([_.BZ()],h8);_.vf=[_.sL,_.Gn,h8.prototype];var D7=function(){var Y=_.JI.apply(this,arguments)||this;Y.disableGridStateAware=!1;Y.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};Y.currentGridClass="";return Y};
_.r(D7,_.JI);D7.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.ky(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var Y=this.gridStateAwareGetElement();_.Vm(Y,"grid",!0)}};
D7.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
D7.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.I(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
D7.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var Y="grid-disabled";else{Y=_.tQm.getInstance();var S=this.get("pageSubtype");Y=S&&ZC6.includes(S)?"grid-disabled":Y.currentSnapState_?Y.currentSnapState_.className:null}(S=this.gridStateAwareGetElement())&&Y!==this.currentGridClass&&(Y&&_.Vm(S,Y,!0),this.currentGridClass&&_.Vm(S,this.currentGridClass,!1),this.currentGridClass=Y)};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],D7.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",String)],D7.prototype,"gridStateAwareSizingElementSelector",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],D7.prototype,"disableGridStateAware",void 0);D7=_.Q([_.BZ()],D7);_.I5=[D7.prototype,_.tD.YtActionHandlerBehavior];_.a5=new _.yH("GUIDE_TOKEN");var wa;_.LG={};wa=function(){var Y=_.JI.apply(this,arguments)||this;Y.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return Y};
_.r(wa,_.JI);_.z=wa.prototype;_.z.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.z.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var Y=_.E().resolve(_.PQ(_.a5));Y&&(this.guidePersistentAndVisible=Y.getGuidePersistentAndVisible(),this.activeEndpoint=Y.getActiveEndpoint(),this.guideOpened=Y.getGuideOpened(),this.miniGuideVisible=Y.getMiniGuideVisible())};
_.z.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.z.handleGuideStateAction=function(Y){this.guidePersistentAndVisible=Y};
_.z.handleMiniGuideStateAction=function(Y){this.miniGuideVisible=Y};
_.z.handleGuideOpenedAction=function(Y){this.guideOpened=Y};
_.z.handleActiveEndpointAction=function(Y){this.activeEndpoint=Y};
wa.prototype.onActiveEndpointChange=wa.prototype.onActiveEndpointChange;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],wa.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],wa.prototype,"guidePersistentAndVisible",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],wa.prototype,"miniGuideVisible",void 0);_.Q([_.X(),_.k("design:type",Object)],wa.prototype,"activeEndpoint",void 0);
_.Q([_.zY("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wa.prototype,"onActiveEndpointChange",null);_.Q([_.X(),_.k("design:type",Boolean)],wa.prototype,"guideOpened",void 0);wa=_.Q([_.BZ()],wa);_.LG.YtdGuideStateAwareBehavior=[];_.LG.YtdGuideStateAwareBehavior.push(wa.prototype,_.tD.YtActionHandlerBehavior);var i3t=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],pG=function(){var Y=_.JI.apply(this,arguments)||this;Y.hoverJobId=0;Y.JSC$12038_touched=!1;return Y};
_.r(pG,_.JI);_.z=pG.prototype;_.z.created=function(){this.useExpandableTooltip=!i3t.includes(this.is)};
_.z.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.z.detached=function(){this.useExpandableTooltip=!1};
_.z.lockupOnDown=function(Y){this.interactionElement&&!_.iN(_.iM(Y),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.z.lockupOnUp=function(Y){this.interactionElement&&!_.iN(_.iM(Y),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.z.onTouchStart=function(){this.JSC$12038_touched=!0};
_.z.lockupOnMouseEnter=function(){var Y=this,S=_.z_("kevlar_lockup_hover_delay",-1);this.JSC$12038_touched&&S>=0?(_.wc.cancelJob(this.hoverJobId),this.hoverJobId=_.wc.addJob(function(){Y.lockupIsHovered=!0},8,S),this.JSC$12038_touched=!1):this.lockupIsHovered=!0};
_.z.lockupOnMouseLeave=function(){this.hoverJobId&&(_.wc.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.z.lockupOnPopupClosed=function(Y,S){var P;((P=S.popupRenderer)==null?void 0:P.is)==="ytd-menu-popup-renderer"&&(Y=S.popupRenderer.veData,S=_.pM(),Y&&S&&_.QP(S,[Y]))};
_.z.lockupOnLockupRequested=function(Y){var S=Y.detail.videoIds[0],P;Y.detail&&S===((P=this.data)==null?void 0:P.videoId)&&(Y.detail.returnValue=[this.data])};
_.z.lockupOnYtServiceRequestSent=function(Y,S){if(Y=S.actions)for(var P=0;P<Y.length;P++){var u=Y[P];if(u.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&S.ajaxPromise){var W=void 0,m=(W=_.g(S.endpoint,_.hf))==null?void 0:W.playlistId;W=void 0;u=(W=u.removedVideoId)!=null?W:"";JBu(_.pd(),u,m)}else u.action==="ACTION_REMOVE_VIDEO"&&S.ajaxPromise&&(m=void 0,u=(m=u.setVideoId)!=null?m:"",_.B$f(_.pd(),u))}};
_.z.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.z.lockupOnLockupEnabled=function(){if(!this.$){var Y=_.E().resolve(_.Ag).getCurrentPage(),S=this.getParentRenderer?this.getParentRenderer():void 0;_.sf(new _.$2("component not ready",this.is,this.isAttached,Y==null?void 0:Y.is,S==null?void 0:S.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
pG.prototype.lockupOnLockupEnabled=pG.prototype.lockupOnLockupEnabled;pG.prototype.lockupOnLockupDisabled=pG.prototype.lockupOnLockupDisabled;pG.prototype.lockupOnYtServiceRequestSent=pG.prototype.lockupOnYtServiceRequestSent;pG.prototype.lockupOnLockupRequested=pG.prototype.lockupOnLockupRequested;pG.prototype.lockupOnPopupClosed=pG.prototype.lockupOnPopupClosed;pG.prototype.lockupOnMouseLeave=pG.prototype.lockupOnMouseLeave;pG.prototype.lockupOnMouseEnter=pG.prototype.lockupOnMouseEnter;
pG.prototype.onTouchStart=pG.prototype.onTouchStart;pG.prototype.lockupOnUp=pG.prototype.lockupOnUp;pG.prototype.lockupOnDown=pG.prototype.lockupOnDown;_.Q([_.X(),_.k("design:type",Object)],pG.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pG.prototype,"lockupIsHovered",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pG.prototype,"lockupTouchTriggered",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pG.prototype,"useExpandableTooltip",void 0);
_.Q([_.nc("#interaction"),_.k("design:type",Object)],pG.prototype,"interactionElement",void 0);_.Q([_.WZ("down"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pG.prototype,"lockupOnDown",null);_.Q([_.WZ("up"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pG.prototype,"lockupOnUp",null);
_.Q([_.WZ("touchstart"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pG.prototype,"onTouchStart",null);_.Q([_.WZ("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pG.prototype,"lockupOnMouseEnter",null);_.Q([_.WZ("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pG.prototype,"lockupOnMouseLeave",null);
_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],pG.prototype,"lockupOnPopupClosed",null);_.Q([_.WZ("yt-lockup-requested"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pG.prototype,"lockupOnLockupRequested",null);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],pG.prototype,"lockupOnYtServiceRequestSent",null);_.Q([_.WZ("yt-disable-lockup-interaction"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pG.prototype,"lockupOnLockupDisabled",null);
_.Q([_.WZ("yt-enable-lockup-interaction"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pG.prototype,"lockupOnLockupEnabled",null);pG=_.Q([_.BZ()],pG);_.Fc=[pG.prototype];_.oKL={YtdReduxBehavior:[]};_.oKL.YtdReduxBehavior.push.apply(_.oKL.YtdReduxBehavior,_.Gn);var sv=function(){var Y=_.JI.apply(this,arguments)||this;Y._noAccessors=!0;Y.disableNowPlaying=!1;Y.disableTooltips=!1;Y.useHoveredProperty=!1;Y.hovered=!1;Y.isThumbnailHovered_=!1;Y.addBackground=_.f("kevlar_thumbnail_bg");Y.nowPlaying=!1;Y.disableRounding=!1;Y.size="small";return Y};
_.r(sv,_.JI);_.z=sv.prototype;_.z.computeThumbnailOverlaySidePanelWidth_=function(Y,S){return Y-S};
_.z.computeSize=function(Y,S){if(!this.disableRounding){if(!Y&&!S)return"small";Y=Math.max(Y||0,S||0);return Y>=256?"large":Y>=96?"medium":"small"}};
_.z.computeFinalHoveredState_=function(Y,S,P){return this.nowPlaying?!1:_.f("kevlar_thumbnail_fluid")&&Y?S:P};
_.z.computeHoverOverlays_=function(Y,S){return Y&&S?S:void 0};
_.z.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.z.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.z.checkMiniplayer_=function(){var Y;if(((Y=this.data)==null?0:Y.playlistSetVideoId)&&_.f("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{Y=_.nd();var S=Y.currentEndpoint;!this.disableNowPlaying&&S&&_.g(S,_.yx)&&this.data?(S=_.g(S,_.yx),this.nowPlaying=this.data.playlistId?S.playlistId===this.data.playlistId:S.videoId===this.data.videoId,this.isVideoPlaying=Y==null?void 0:Y.isVideoPlaying):this.nowPlaying=!1}};
sv.prototype.checkMiniplayer_=sv.prototype.checkMiniplayer_;sv.prototype.onMouseLeave_=sv.prototype.onMouseLeave_;sv.prototype.onMouseEnter_=sv.prototype.onMouseEnter_;sv.prototype.computeHoverOverlays_=sv.prototype.computeHoverOverlays_;sv.prototype.computeFinalHoveredState_=sv.prototype.computeFinalHoveredState_;sv.prototype.computeSize=sv.prototype.computeSize;sv.prototype.computeThumbnailOverlaySidePanelWidth_=sv.prototype.computeThumbnailOverlaySidePanelWidth_;
_.Q([_.p(_.Gn),_.k("design:type",Object)],sv.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],sv.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Number)],sv.prototype,"height",void 0);_.Q([_.X(),_.k("design:type",Boolean)],sv.prototype,"bottomSidePanel",void 0);_.Q([_.X(),_.k("design:type",Number)],sv.prototype,"width",void 0);_.Q([_.X(),_.k("design:type",Object)],sv.prototype,"disableNowPlaying",void 0);
_.Q([_.X({selector:_.pA}),_.k("design:type",Boolean)],sv.prototype,"miniplayerIsActive",void 0);_.Q([_.X(),_.k("design:type",Object)],sv.prototype,"disableTooltips",void 0);_.Q([_.X(),_.k("design:type",Object)],sv.prototype,"useHoveredProperty",void 0);_.Q([_.X(),_.k("design:type",Object)],sv.prototype,"hovered",void 0);_.Q([_.X(),_.k("design:type",Object)],sv.prototype,"isThumbnailHovered_",void 0);
_.Q([_.X({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.k("design:type",Boolean)],sv.prototype,"finalHoveredState_",void 0);_.Q([_.X({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.k("design:type",Number)],sv.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],sv.prototype,"addBackground",void 0);
_.Q([_.X({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.k("design:type",Object)],sv.prototype,"hoverOverlays_",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],sv.prototype,"nowPlaying",void 0);_.Q([_.X(),_.k("design:type",Boolean)],sv.prototype,"isVideoPlaying",void 0);_.Q([_.X(),_.k("design:type",Object)],sv.prototype,"disableRounding",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.k("design:type",Object)],sv.prototype,"size",void 0);_.Q([_.WZ("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sv.prototype,"onMouseEnter_",null);_.Q([_.WZ("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sv.prototype,"onMouseLeave_",null);
_.Q([_.zY("data","disableNowPlaying","miniplayerIsActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sv.prototype,"checkMiniplayer_",null);sv=_.Q([_.BZ()],sv);var tsU=[sv.prototype];_.da={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(Y,S){return Y+":"+_.Pt(S)},
getPlayerListener_:function(Y,S,P){Y=this.getPlayerListenerKey_(Y,S);S=this.playerListeners_.get(Y);P&&this.playerListeners_.delete(Y);return S},
savePlayerListener_:function(Y,S){var P=S.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(Y,S),P);return P},
listenToPlayerEvent:function(Y,S,P){P=this.savePlayerListener_(S,P);Y.addEventListener(S,P)},
listenToPlayerEvents:function(Y,S){S.forEach(function(P,u){this.listenToPlayerEvent(Y,u,P)}.bind(this))},
unlistenFromPlayerEvent:function(Y,S,P){P=this.getPlayerListener_(S,P,!0);Y.removeEventListener(S,P)},
unlistenFromPlayerEvents:function(Y,S){S.forEach(function(P,u){this.unlistenFromPlayerEvent(Y,u,P)}.bind(this))}}};
_.ll=function(){};_.A4f=new _.yH("PLAYER_API_TOKEN");var tsh=!1,kau,Uk1=!1,y4Y;var y5=function(Y,S,P,u,W){_.R6.call(this);var m=this;this.playerId=S;this.webPlayerContextConfig=u;this.xlp=W;this.nbr=!1;this.api={};this.oNE=this.ieE=null;this.vJO=new _.x2;this.a4={};this.xLe=this.mwp=this.elementId=this.oTy=this.config=null;this.aiI=!1;this.di=this.fU2=null;this.uhE={};this.kwV=["onReady"];this.lastError=null;this.kGn=NaN;this.q5Q={};this.pTE=0;this.lW=this.targetElement=Y;_.Ph(this,this.vJO);Ukd(this);P?this.pTE=setTimeout(function(){m.loadNewVideoConfig(P)},0):u&&(QE6(this),
kam(this))};
_.r(y5,_.R6);y5.prototype.getId=function(){return this.playerId};
y5.prototype.loadNewVideoConfig=function(Y){if(!this.isDisposed()){this.pTE&&(clearTimeout(this.pTE),this.pTE=0);var S=Y||{};S instanceof gAL||(S=new gAL(S));this.config=S;this.setConfig(Y);kam(this);this.isReady()&&Mss(this)}};
var QE6=function(Y){var S;Y.webPlayerContextConfig?S=Y.webPlayerContextConfig.rootElementId:S=Y.config.attrs.id;Y.elementId=S||Y.elementId;Y.elementId==="video-player"&&(Y.elementId=Y.playerId,Y.webPlayerContextConfig?Y.webPlayerContextConfig.rootElementId=Y.playerId:Y.config.attrs.id=Y.playerId);var P;((P=Y.lW)==null?void 0:P.id)===Y.elementId&&(Y.elementId+="-player",Y.webPlayerContextConfig?Y.webPlayerContextConfig.rootElementId=Y.elementId:Y.config.attrs.id=Y.elementId)};
y5.prototype.setConfig=function(Y){this.oTy=Y;this.config=y4_(Y);QE6(this);if(!this.mwp){var S;this.mwp=Nri(this,((S=this.config.args)==null?void 0:S.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var P;if((P=this.config)==null?0:P.attrs)Y=this.config.attrs,(S=Y.width)&&this.lW&&(this.lW.style.width=Zl(Number(S)||S,!0)),(Y=Y.height)&&this.lW&&(this.lW.style.height=Zl(Number(Y)||Y,!0))};
var Mss=function(Y){if(Y.config&&Y.config.loaded!==!0)if(Y.config.loaded=!0,!Y.config.args||Y.config.args.autoplay!=="0"&&Y.config.args.autoplay!==0&&Y.config.args.autoplay!==!1){var S;Y.api.loadVideoByPlayerVars((S=Y.config.args)!=null?S:null)}else Y.api.cueVideoByPlayerVars(Y.config.args)},Vss=function(Y){var S=!0,P=Y.getPlayerElement();
P&&Y.config&&(S=P.dataset.version===H3s(Y));return S&&!!_.tA("yt.player.Application.create")},kam=function(Y){if(!Y.isDisposed()&&!Y.aiI){var S=Vss(Y);
if(S&&(Y.getPlayerElement()?"html5":null)==="html5")Y.xLe="html5",Y.isReady()||ecJ(Y);else if(O3U(Y),Y.xLe="html5",S&&Y.di&&Y.targetElement)Y.targetElement.appendChild(Y.di),ecJ(Y);else{Y.config&&(Y.config.loaded=!0);var P=!1;Y.fU2=function(){P=!0;var u=YIs(Y,"player_bootstrap_method")?_.tA("yt.player.Application.createAlternate")||_.tA("yt.player.Application.create"):_.tA("yt.player.Application.create");var W=Y.config?y4_(Y.config):void 0;u&&u(Y.targetElement,W,Y.webPlayerContextConfig,Y.xlp);ecJ(Y)};
Y.aiI=!0;S?Y.fU2():(_.Xv(H3s(Y),Y.fU2),(S=SIt(Y))&&j7X(S||""),Pzh(Y)&&!P&&_.HQ("yt.player.Application.create",null))}}};
y5.prototype.getPlayerElement=function(){var Y=_.Mw(document,this.elementId);!Y&&this.lW&&this.lW.querySelector&&(Y=this.lW.querySelector("#"+this.elementId));return Y};
var ecJ=function(Y){if(!Y.isDisposed()){var S=Y.getPlayerElement(),P=!1;S&&S.getApiInterface&&S.getApiInterface()&&(P=!0);if(P){Y.aiI=!1;if(!YIs(Y,"html5_remove_not_servable_check_killswitch")){var u;if((S==null?0:S.isNotServable)&&Y.config&&(S==null?0:S.isNotServable((u=Y.config.args)==null?void 0:u.video_id)))return}ues(Y)}else Y.kGn=setTimeout(function(){ecJ(Y)},50)}},ues=function(Y){Ukd(Y);
Y.nbr=!0;var S=Y.getPlayerElement();if(S){Y.ieE=W_s(Y,S,"addEventListener");Y.oNE=W_s(Y,S,"removeEventListener");var P=S.getApiInterface();P=P.concat(S.getInternalApiInterface());for(var u=Y.api,W=0;W<P.length;W++){var m=P[W];u[m]||(u[m]=W_s(Y,S,m))}}for(var J in Y.a4)Y.a4.hasOwnProperty(J)&&Y.ieE&&Y.ieE(J,Y.a4[J]);Mss(Y);Y.mwp&&Y.mwp(Y.api);Y.vJO.publish("onReady",Y.api)},W_s=function(Y,S,P){var u=S[P];
return function(){var W=_.Ch.apply(0,arguments);try{return Y.lastError=null,u.apply(S,W)}catch(m){if(P!=="sendAbandonmentPing")throw m.params=P,Y.lastError=m,W=new _.$2("PlayerProxy error in method call",{error:m,method:P,playerId:Y.playerId}),W.level="WARNING",W;}}},Ukd=function(Y){Y.nbr=!1;
if(Y.oNE)for(var S in Y.a4)Y.a4.hasOwnProperty(S)&&Y.oNE(S,Y.a4[S]);for(var P in Y.q5Q)Y.q5Q.hasOwnProperty(P)&&clearTimeout(Number(P));Y.q5Q={};Y.ieE=null;Y.oNE=null;S=Y.api;for(var u in S)S.hasOwnProperty(u)&&(S[u]=null);S.addEventListener=function(W,m){Y.addEventListener(W,m)};
S.removeEventListener=function(W,m){Y.removeEventListener(W,m)};
S.destroy=function(){Y.dispose()};
S.getLastError=function(){return Y.getLastError()};
S.getPlayerType=function(){return Y.getPlayerType()};
S.getCurrentVideoConfig=function(){return Y.oTy};
S.loadNewVideoConfig=function(W){Y.loadNewVideoConfig(W)};
S.isReady=function(){return Y.isReady()}};
y5.prototype.isReady=function(){return this.nbr};
y5.prototype.addEventListener=function(Y,S){var P=this;this.isDisposed();var u=Nri(this,S);u&&(_.Au(this.kwV,Y)||this.a4[Y]||(S=zGt(this,Y),this.ieE&&this.ieE(Y,S)),this.vJO.subscribe(Y,u),Y==="onReady"&&this.isReady()&&setTimeout(function(){u(P.api)},0))};
y5.prototype.removeEventListener=function(Y,S){this.isDisposed()||(S=Nri(this,S))&&this.vJO.unsubscribe(Y,S)};
var Nri=function(Y,S){var P=S;if(typeof S==="string"){if(Y.uhE[S])return Y.uhE[S];P=function(){var u=_.Ch.apply(0,arguments),W=_.tA(S);if(W)try{W.apply(_.Pa,u)}catch(m){throw u=new _.$2("PlayerProxy error when executing callback",{error:m}),u.level="ERROR",u;}};
Y.uhE[S]=P}return P?P:null},zGt=function(Y,S){var P=function(u){var W=function(){Y.isDisposed();
if(!Y.isDisposed())try{Y.vJO.publish(S,u!=null?u:void 0)}catch(c){var J=new _.$2("PlayerProxy error when creating global callback",{error:c.message,event:S,playerId:Y.playerId,data:u,originalStack:c.stack,componentStack:c.componentStack});J.level="WARNING";throw J;}};
if(YIs(Y,"web_player_publish_events_immediately"))W();else{var m=setTimeout(function(){W();_.RY.remove(Y.q5Q,String(m))},0);
_.RY.add(Y.q5Q,String(m),!0)}};
return Y.a4[S]=P};
y5.prototype.getPlayerType=function(){return this.xLe||(this.getPlayerElement()?"html5":null)};
y5.prototype.getLastError=function(){return this.lastError};
var O3U=function(Y){Y.cancel();Ukd(Y);Y.xLe=null;Y.config&&(Y.config.loaded=!1);var S=Y.getPlayerElement();S&&(Vss(Y)||!Pzh(Y)?Y.di=S:(S&&S.destroy&&S.destroy(),Y.di=null));Y.targetElement&&_.wI(Y.targetElement)};
y5.prototype.cancel=function(){this.fU2&&_.LJh(H3s(this),this.fU2);clearTimeout(this.kGn);this.aiI=!1};
y5.prototype.disposeInternal=function(){O3U(this);if(this.di&&this.config&&this.di.destroy)try{this.di.destroy()}catch(S){var Y=new _.$2("PlayerProxy error during disposal",{error:S});Y.level="ERROR";throw Y;}this.uhE=null;for(Y in this.a4)this.a4.hasOwnProperty(Y)&&delete this.a4[Y];this.oTy=this.config=this.api=null;delete this.targetElement;delete this.lW;_.R6.prototype.disposeInternal.call(this)};
var Pzh=function(Y){var S,P;Y=(S=Y.config)==null?void 0:(P=S.args)==null?void 0:P.fflags;return!!Y&&Y.indexOf("player_destroy_old_version=true")!==-1},H3s=function(Y){return Y.webPlayerContextConfig?Y.webPlayerContextConfig.jsUrl:(Y=Y.config.assets)?Y.js:""},SIt=function(Y){return Y.webPlayerContextConfig?Y.webPlayerContextConfig.cssUrl:(Y=Y.config.assets)?Y.css:""},YIs=function(Y,S){if(Y.webPlayerContextConfig)var P=Y.webPlayerContextConfig.serializedExperimentFlags;
else{var u;if((u=Y.config)==null?0:u.args)P=Y.config.args.fflags}return(P||"").split("&").includes(S+"=true")},y4_=function(Y){for(var S={},P=_.n(Object.keys(Y)),u=P.next();!u.done;u=P.next()){u=u.value;
var W=Y[u];S[u]=typeof W==="object"?_.RY.clone(W):W}return S};var O3h={},ecX="player_uid_"+(Math.random()*1E9>>>0);var Xc=function(Y,S,P,u,W,m){S=S===void 0?document.createElement("div"):S;this.webPlayerContextConfig=Y;this.container=S;this.commandResolver=P;this.apiResolver=Pz$();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.nV;u||m?mNd(this):njs(this);this.pendingPlayerResponse=u;this.pendingWatchNextResponse=W;this.pendingPlayerVars=m;jcm(this)};
Xc.prototype.loadVideoWithPlayerResponse=function(Y,S,P){this.loadVideo(Y,S,P)};
Xc.prototype.loadVideoWithPlayerVars=function(Y){return this.loadVideo(void 0,void 0,Y)};
Xc.prototype.destroy=function(Y){if(Y=_.Mw(document,Y))Y=ecX+"_"+_.Pt(Y),(Y=O3h[Y])&&Y.dispose()};
var BYL=function(Y,S){var P;_.B(function(u){if(u.nextAddress==1)return Y.pendingWatchNextResponse=S,Y.synchronousApi?(P=Y.synchronousApi,u.jumpTo(2)):_.q(u,Y.api,3);u.nextAddress!=2&&(P=u.yieldResult);Jam(Y,P);Y.pendingWatchNextResponse&&(P.updateVideoData({raw_watch_next_response:Y.pendingWatchNextResponse}),Y.pendingWatchNextResponse=void 0);_.Yt(u)})},Jam=function(Y,S){var P;
if(!(S==null?0:(P=S.isReady)==null?0:P.call(S))){var u;Y=new _.$2("playerApi is falsey",{synchronousApi:Y.synchronousApi,apiResolved:Y.apiResolver.resolved,playerApiUndefined:S===void 0,playerApiNull:S===null,playerApiReady:(S==null?void 0:(u=S.isReady)==null?void 0:u.call(S))===!0,playerApiMethods:S?Object.keys(S):[]});_.p_(Y)}},cau=function(Y,S){if(typeof Y[S]==="function")return Y[S]()},Czt=function(Y){var S=window,P,u=(P=S.ytplayer)==null?void 0:P.bootstrapPlayerContainer;
if((P=u==null?void 0:u.firstElementChild)&&_.X$(P,"html5-video-player")){var W,m,J=(W=S.ytplayer)==null?void 0:(m=W.bootstrapWebPlayerContextConfig)==null?void 0:m.contextId;W=Y.webPlayerContextConfig.contextId;if(J&&J===W){u!==Y.container&&(u=!1,cau(P,"getPlayerState")===2&&(u=!0),Y.container.appendChild(P),u||cau(P,"playVideo"));var c;if((c=S.ytplayer)==null?0:c.bootstrapPlayerResponse)Y.bootstrapPlayerResponse=S.ytplayer.bootstrapPlayerResponse}}},jcm=function(Y){var S,P,u,W,m;
_.B(function(J){if(J.nextAddress==1)return Y.pageReadyOrDataAvailable?J.jumpTo(2):_.q(J,Y.pageReadyOrDataAvailableResolver.promise,2);if(J.nextAddress!=4)return!_.f("kevlar_player_unified_player_loading")||A4a()&&QE9()?J.jumpTo(4):_.q(J,H3h(),4);Czt(Y);if(Y.pendingPlayerResponse||Y.pendingPlayerVars)S=Vsh(Y.pendingPlayerResponse,Y.pendingWatchNextResponse,Y.pendingPlayerVars),Y.pendingPlayerResponse&&Y.pendingPlayerResponse===Y.bootstrapPlayerResponse&&(S.loaded=!0),Y.bootstrapPlayerResponse=void 0;
P=SIa(Y.container,S,Y.webPlayerContextConfig);((u=S)==null?0:u.loaded)&&Y.pendingWatchNextResponse?(BYL(Y,Y.pendingWatchNextResponse),Y.pendingPlayerResponse=void 0,Y.pendingPlayerVars=void 0):qI6(Y);W=function(c){P.removeEventListener("onReady",W);Y.synchronousApi=c;Y.apiResolver.resolve(c)};
P.addEventListener("onReady",W);Y.commandResolver!==void 0&&(m=Y.commandResolver,P.addEventListener("innertubeCommand",function(c){m(c)}));
_.Yt(J)})};
Xc.prototype.loadVideo=function(Y,S,P){var u=this,W,m,J,c,C,x,b,T,K;return _.B(function(G){if(G.nextAddress==1)return u.pendingPlayerResponse=Y,u.pendingWatchNextResponse=S,u.pendingPlayerVars=P,mNd(u),u.synchronousApi?(W=u.synchronousApi,G.jumpTo(2)):_.q(G,u.api,3);G.nextAddress!=2&&(W=G.yieldResult);Jam(u,W);J=new Promise(function(v){m=v});
c=function(){var v=W.getPlayerResponse();v&&(W.removeEventListener("onVideoDataChange",c),m(v))};
W.addEventListener("onVideoDataChange",c);if(u.pendingPlayerResponse||u.pendingPlayerVars)u.pendingPlayerResponse&&u.pendingPlayerResponse===u.bootstrapPlayerResponse?(m(u.pendingPlayerResponse),u.pendingWatchNextResponse&&BYL(u,u.pendingWatchNextResponse)):(C=Vsh(u.pendingPlayerResponse,u.pendingWatchNextResponse,u.pendingPlayerVars),(K=(x=u.pendingPlayerResponse)==null?void 0:(b=x.playerConfig)==null?void 0:(T=b.playbackStartConfig)==null?void 0:T.startPaused)?W.cueVideoByPlayerVars(C.args):W.loadVideoByPlayerVars(C.args)),
qI6(u),u.bootstrapPlayerResponse=void 0;return G.return(J)})};
var njs=function(Y){if(document.readyState==="complete"||document.readyState==="interactive")mNd(Y);else{var S=function(){document.removeEventListener("DOMContentLoaded",S);mNd(Y)};
document.addEventListener("DOMContentLoaded",S)}},mNd=function(Y){Y.pageReadyOrDataAvailable=!0;
Y.pageReadyOrDataAvailableResolver.resolve()},qI6=function(Y){Y.pendingPlayerResponse=void 0;
Y.pendingWatchNextResponse=void 0;Y.pendingPlayerVars=void 0};
_.y6.Object.defineProperties(Xc.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Z7=function(Y){vH.call(this,Y===void 0?"document_active":Y);var S=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(P){S.transition("document_disposed",{event:P})});
window.addEventListener("beforeunload",function(P){S.transition("document_disposed_preventable",{event:P})});
window.addEventListener("unload",function(P){S.transition("document_disposed",{event:P});S.hasRun=new Map})};
_.r(Z7,vH);
Z7.prototype.runPreventableDispose=function(Y,S){if(!this.hasRun.get("document_disposed_preventable")){Y(S==null?void 0:S.event);var P,u;if((S==null?0:(P=S.event)==null?0:P.defaultPrevented)||(S==null?0:(u=S.event)==null?0:u.returnValue)){S.event.returnValue||(S.event.returnValue=!0);S.event.defaultPrevented||S.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")};
Z7.prototype.runDispose=function(Y,S){this.hasRun.get("document_disposed")?this.transition("document_active"):(Y(S==null?void 0:S.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Z7.prototype.runFlush=function(Y,S){Y(S==null?void 0:S.event);this.transition("document_active")};
Z7.prototype.runActive=function(){};var il=function(Y){vH.call(this,Y===void 0?"document_visibility_unknown":Y);var S=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(P){document.visibilityState==="visible"?S.transition("document_visible",{event:P}):S.transition("document_hidden",
{event:P})});
_.f("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(P){S.transition("document_backgrounded",{event:P})}),window.addEventListener("focus",function(P){S.transition("document_foregrounded",{event:P})}))};
_.r(il,vH);il.prototype.runVisible=function(Y,S){Y(S==null?void 0:S.event);_.f("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
il.prototype.runHidden=function(Y,S){Y(S==null?void 0:S.event);_.f("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
il.prototype.runBackgrounded=function(Y,S){Y(S==null?void 0:S.event)};
il.prototype.runForegrounded=function(Y,S){Y(S==null?void 0:S.event)};var o5=function(){this.teardownLifecycle=new Z7;this.visibilityLifecycle=new il};
o5.prototype.install=function(){var Y=_.Ch.apply(0,arguments),S=this;Y.forEach(function(P){S.teardownLifecycle.install(P)});
Y.forEach(function(P){S.visibilityLifecycle.install(P)})};var t8=function(){o5.call(this);var Y={};this.install((Y.document_disposed={callback:this.abortSlisAndFlush},Y));_.f("combine_ve_grafts")&&(Y={},this.install((Y.document_disposed={callback:this.flushInteractionLoggingAttachVes},Y)));Y={};this.install((Y.flush_logs={callback:this.logFinalPayload},Y));_.f("web_log_cfg_cee_ks")||_.hp(_.wc,RGS)};
_.r(t8,o5);var ueh=function(){t8.loggingInstance||(t8.loggingInstance=new t8);return t8.loggingInstance};
t8.prototype.logFinalPayload=function(){if(_.f("web_fp_via_jspb")){var Y=new ny6,S=_.pM();S&&_.zH(Y,1,S);S=_.f("jspb_sparse_encoded_pivot")?new Gy([{}]):new Gy;_.Hd(S,380,jWh,Y);IHu("finalPayload",S);_.f("web_fp_via_jspb_and_json")&&_.L_("finalPayload",{csn:_.pM()})}else _.L_("finalPayload",{csn:_.pM()})};
t8.prototype.abortSlisAndFlush=function(){zef(FZ);sw!=null&&sw.flush()};
t8.prototype.flushInteractionLoggingAttachVes=function(){hKd(_.BF())};
var RGS=function(){var Y=_.X3("CLIENT_EXPERIMENT_EVENTS");if(Y){var S=oYh();Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())P=P.value,S(P)&&_.L_("genericClientExperimentEvent",{eventType:P});delete _.dw.CLIENT_EXPERIMENT_EVENTS}};var xNu={};
xNu.YtPlayerBehavior=[_.da.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var Y=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.nV;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;W_h(function(){Y.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Lo(this,"pan-down"),_.f("kevlar_pinch_fullscreen")&&_.So().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.f("kevlar_pinch_fullscreen")&&_.So().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(Y,S,P){var u=this;Nw(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Nw(!1,"MainAppPlayer already created.");else{var W=_.f("kevlar_player_container_query_killswitch")?this.$.container:_.I(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Xc(this.getWebPlayerContextConfig_(),W,function(m){return _.m4(m,u.hostElement)},Y,S,P);
this.mainAppPlayer_.api.then(function(m){u.player_=m;u.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&rdd.resolve(m)})}},
loadVideoWithPlayerResponse:function(Y,S){var P=this;if(this.useUnifiedPlayer_()){var u=this.watchNextData,W,m=(W=Y.videoDetails)==null?void 0:W.videoId,J,c,C;(W=(J=this.watchNextData)==null?void 0:(c=J.currentVideoEndpoint)==null?void 0:(C=c.watchEndpoint)==null?void 0:C.videoId)&&m!=W&&(u=void 0,_.f("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(Y,u,S):this.createMainAppPlayer_(Y,u,S);this.mainAppPlayer_.api.then(function(){_.ms(P.hostElement,
"yt-player-updated")})}else this.update(Z3u(Y,S))},
loadVideoWithPlayerVars:function(Y){var S=this;this.useUnifiedPlayer_()?(_.f("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(Y):this.createMainAppPlayer_(void 0,void 0,Y),this.mainAppPlayer_.api.then(function(){_.ms(S.hostElement,"yt-player-updated")})):this.update({args:Y})},
update:function(Y){var S=this;if(this.useUnifiedPlayer_())Nw(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(Y);var P=Aya(Y.args);P&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==P&&Object.assign(Y.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(Y).then(function(u){_.ms(S.hostElement,"yt-player-updated",_.f("kevlar_player_updated_obsolete_player_killswitch")?
u:void 0)})}_.F_(new _.$2("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,S.getPlayerPromise(),2);P=u.yieldResult;if(!P)throw Error("wh");Y&&S.updatePlayerPlaylist_(Y);_.Yt(u)})},
acquireApi_:function(Y){var S=this;if(this.useUnifiedPlayer_())Nw(!1,"Invalid method call in kevlar_unified_player.");else return _.wc.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Nw(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(P){S.shouldAutoplay_(Y)?P.loadVideoByPlayerVars(Y.args):P.cueVideoByPlayerVars(Y.args)})):this.initPlayerPromise_=this.initPlayerContainer_(Y),this.initPlayerPromise_},
initPlayerContainer_:function(Y){var S=this;if(this.useUnifiedPlayer_())Nw(!1,"Invalid method call in kevlar_unified_player.");else return Nw(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.sf(Error("xh")),Nw(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.f("kevlar_player_container_query_killswitch")?this.$.container:_.I(this.hostElement).querySelector("#container"),H3h().then(function(){var P=S.initPlayer_(Y);S.playerResolver_.resolve(P);
return P})},
onPlayerReady_:function(Y,S){this.useUnifiedPlayer_()?Nw(!1,"Invalid method call in kevlar_unified_player."):(Y.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&rdd.resolve(Y),S(Y))},
maybeCallApiMethodOnElement_:function(Y,S){if(typeof Y[S]==="function")return Y[S]()},
maybeAdoptBootstrapPlayer_:function(){var Y=window,S,P=(S=Y.ytplayer)==null?void 0:S.bootstrapPlayerContainer;if((S=P==null?void 0:P.firstElementChild)&&S.classList.contains("html5-video-player")){var u,W,m=(u=Y.ytplayer)==null?void 0:(W=u.bootstrapWebPlayerContextConfig)==null?void 0:W.contextId;u=this.getWebPlayerContextConfig_().contextId;if(m&&m===u){P!==this.playerContainer_&&(P=!1,this.maybeCallApiMethodOnElement_(S,"getPlayerState")===2&&(P=!0),this.playerContainer_.appendChild(S),P||this.maybeCallApiMethodOnElement_(S,
"playVideo"));var J;if((J=Y.ytplayer)==null?0:J.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=Y.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(Y){var S=this;if(this.useUnifiedPlayer_())Nw(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(P){S.maybeAdoptBootstrapPlayer_();var u=Y?i3a(Y):void 0;u&&u==S.bootstrapPlayerResponse_&&(Y.loaded=!0);u=S.playerContainer_;var W=S.getWebPlayerContextConfig_();u=SIa(u,Y,W);S.player_=u;S.onPlayerReadyEvent_=S.onPlayerReady_.bind(S,S.player_,P);S.player_.addEventListener("onReady",S.onPlayerReadyEvent_);S.player_.addEventListener("innertubeCommand",
S.onPlayerInnerTubeCommand_.bind(S))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(Y){Y.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(Y){Y.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var Y=_.E().resolve(_.Ag).getCurrentPage();Y&&Y.getScrollTop()<=0?_.Lo(this,"pan-down"):_.Lo(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(Y){Y.isFullscreen()||Y.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(Y){Y.isFullscreen()&&Y.toggleFullscreen()})},
updatePlayerPlaylist_:function(Y){var S=this,P,u,W;return _.B(function(m){if(m.nextAddress==1)return P=_.E().resolve(_.PQ(_.D3)),u=!!(P&&P.playlistComponent&&P.playlistComponent.loopOn),_.q(m,S.getPlayerPromise(),2);var J=W=m.yieldResult,c=J.updatePlaylist,C=[];if(_.f("kevlar_player_playlist_use_local_index")){var x,b;var T=(b=(x=Y.localCurrentIndex)!=null?x:Y.currentIndex)!=null?b:0}else{var K;T=(K=Y.currentIndex)!=null?K:0}if(Y.contents)for(x=0;x<Y.contents.length;x++)if((b=Y.contents[x])&&b.playlistPanelVideoRenderer)if(Zd1(b)){b=
b.playlistPanelVideoRenderer;K="";b.shortBylineText&&(K=_.Ma(b.shortBylineText));var G="";b.title?G=_.Ma(b.title):b.unplayableText&&(G=_.Ma(b.unplayableText));C.push({author:K,title:G,encrypted_id:b.videoId})}else x<T&&--T;c.call(J,{index:T,list:Y.playlistId?Y.playlistId:"",loop:u,playlist_title:Y.title,playlist_length:C.length,video:C,fetch:0,external_list:"1",title:Y.title?Y.title:"",playlist_author:Y.ownerName?_.Ma(Y.ownerName):void 0});_.Yt(m)})},
focusOnPlayer:function(){_.ky(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var Y=this.playerContainer_.querySelector(".html5-video-player");Y&&(_.bKt(_.E().resolve(_.En)),Y.focus())}})},
preparePlayer:function(){var Y=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(S){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")S();else{var P=function(){document.removeEventListener("DOMContentLoaded",P);S()};
document.addEventListener("DOMContentLoaded",P)}})).then(function(){return H3h()}).then(function(){Y.initPlayerPromise_||Y.preparePlayerJobId_||(Y.preparePlayerJobId_=_.hp(_.wc,function(){Y.initPlayerPromise_||(Y.initPlayerPromise_=Y.initPlayerContainer_())}))}):_.F_(new _.$2("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(Y){this.useUnifiedPlayer_()?Nw(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(Y)||(Y.args.autoplay="0")},
shouldAutoplay_:function(Y){if(this.useUnifiedPlayer_())Nw(!1,"Invalid method call in kevlar_unified_player.");else{var S=this.get("args.el",Y);return S&&S!="detailpage"&&this.isMiniplayerActive_()||S&&(S=="sponsorshipsoffer"||S=="handlesclaiming")&&this.get("args.autoplay",Y)=="0"?!1:(Y=i3a(Y))&&this.get("playerConfig.playbackStartConfig.startPaused",Y)?!1:!0}},
isMiniplayerActive_:function(){return _.E().resolve(_.l1).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var Y=this.getPlayer();if(Y){var S=Y.getPlayerState();_.f("kevlar_player_check_ad_state_on_stop")&&(S=Y.getPlayerState(Y.getPresentingPlayerType()));S!=5&&Y.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(Y,S,P){P=P===void 0?!1:P;var u=this,W,m,J,c;return _.B(function(C){if(C.nextAddress==1)return S||(S=u.hostElement),W=u.useUnifiedPlayer_()?!!u.mainAppPlayer_:!!u.initPlayerPromise_,W?_.q(C,u.getPlayerPromise(),2):(P?Y.insertBefore(S,Y.firstChild):Y.appendChild(S),C.return());m=C.yieldResult;J=m.getPlayerState(m.getPresentingPlayerType());c=!1;if(J==-1||J==1||J==3)c=!0;P?Y.insertBefore(S,Y.firstChild):Y.appendChild(S);c&&m.playVideo();m.setSize(NaN,NaN);_.Yt(C)})},
watchNextDataChanged_:function(Y){var S=this;Y&&(this.useUnifiedPlayer_()&&_.f("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&BYL(this.mainAppPlayer_,Y):this.getPlayerPromise().then(function(P){P.updateVideoData(S.computeWatchNextPlayerVars_(Y))}))},
computeWatchNextPlayerVars_:function(Y){if(this.useUnifiedPlayer_()&&_.f("kevlar_unified_player_update_watch_next_killswitch"))Nw(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:Y}},
maybeSendAbandonmentPing_:function(){var Y=this.getPlayer();Y&&Y.getPlayerState()!=5&&Y.getPlayerState()!=0&&Y.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var Y=_.X3("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(Y=Object.assign({},Y),Y.rootElementId=this.playerId);Y.serializedExperimentIds&&Y.serializedExperimentFlags||_.sf(Error("yh"));return Y},
hasWebPlayerContextConfig_:function(){return!!_.X3("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(Y){this.useUnifiedPlayer_()?Nw(!1,"Invalid method call in kevlar_unified_player."):_.m4(Y,this.hostElement)},
useUnifiedPlayer_:function(){var Y=_.f("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.f("kevlar_unified_player")||Y}}];var TYm={};TYm.YtPlaylistPanelBehavior=[_.e.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(Y){Y=Y.detail;if(Y.actions.loop!=void 0||Y.actions["yt-icons:loop"]!=void 0)this.loopOn=Y.actions.loop||Y.actions["yt-icons:loop"];if(Y.actions.shuffle!=void 0||Y.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=Y.actions.shuffle||Y.actions["yt-icons:shuffle"]},
setMenuData_:function(Y){if(!Y||!Y.playlistButtons||Y.isInfinite)return null;for(var S=Y.playlistButtons.menuRenderer.topLevelButtons,P=S.length,u=0;u<P;u++)if(S[u].toggleButtonRenderer){var W=S[u].toggleButtonRenderer;W.defaultIcon.iconType=="LOOP"&&this.loopOn?W.isToggled=this.loopOn:W.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(W.isToggled=this.shuffleOn)}return Y.playlistButtons}}];var K__=function(Y){W3.call(this,Y,132);this.isDocument=Y===document.documentElement};
_.r(K__,W3);K__.prototype.calculateScrollDelta=function(Y,S,P){var u=0;Y<S?u=Y<S-100?-48:-8:Y>S+P&&(u=Y>S+P+100?48:8);return u};
K__.prototype.JSC$9165_onMouseMove=function(Y){this.isDocument||(Y.clientX=Y.event_.pageX,Y.clientY=Y.event_.pageY);W3.prototype.JSC$9165_onMouseMove.call(this,Y)};var A8=function(){var Y=_.JI.apply(this,arguments)||this;Y._noAccessors=!0;Y.scrollElement=document.documentElement;Y.JSC$12097_dragListGroup=null;Y.dragScrollSupport=null;Y.onDraggerCreated=function(S){var P=S.JSC$9161_dragger;P.scrollTarget_=Y.scrollElement;S=S.draggerEl;P&&S.menuOpened&&P.setEnabled(!1)};
Y.onDragStart=function(S){var P=S.draggerEl;S=S.currDragItem;var u=Object.assign({},S==null?void 0:S.data);u.trackingParams=void 0;P.data=u;P.style.position="absolute";P.style.width=(S==null?void 0:S.clientWidth)+"px";P.style.zIndex="2030";P.onDrag&&P.onDrag();_.f("web_owner_document_fallback_killswitch")?(S=document.querySelector("ytd-app"))&&_.I(S).appendChild(P):(S=_.Ey(P),(u=S.querySelector("ytd-app"))?_.I(u).appendChild(P):S.body.appendChild(P));Y.dragScrollSupport=new K__(Y.scrollElement);Y.dragScrollSupport.horizontalScrolling_=
!1;P=Y.dragScrollSupport;P.constrainScroll_=!!P.margin_&&!1};
Y.onDrop=function(S){Y.handleDrop(S);Y.dragScrollSupport&&(_.oY(Y.dragScrollSupport),Y.dragScrollSupport=null)};
Y.onReorderableScroll=function(){if(Y.JSC$12097_dragListGroup){var S=Y.JSC$12097_dragListGroup;SRu(S,S.currDragItem_)}};
return Y};
_.r(A8,_.JI);A8.prototype.detached=function(){_.Ejt(this)};
_.Ejt=function(Y){Y.JSC$12097_dragListGroup&&(_.bG(Y.JSC$12097_dragListGroup,kMU,Y.onDragStart),_.bG(Y.JSC$12097_dragListGroup,HAu,Y.onDragStart),Y.JSC$12097_dragListGroup.dispose(),Y.JSC$12097_dragListGroup=null);Y.dragScrollSupport&&(_.oY(Y.dragScrollSupport),Y.dragScrollSupport=null);Y.scrollElement.removeEventListener("scroll",Y.onReorderableScroll)};
_.f$d=function(Y,S,P,u){u=u===void 0?"":u;_.Ejt(Y);P&&(Y.scrollElement=P);Y.JSC$12097_dragListGroup=new pr;Y.JSC$12097_dragListGroup.hysteresisDistance_=2;eos(Y.JSC$12097_dragListGroup,S);Y.JSC$12097_dragListGroup.draggerElClasses_=_.uW("dragging").split(" ");u&&OAJ(Y.JSC$12097_dragListGroup,function(W){var m=W||document,J=null;m.getElementsByClassName?J=m.getElementsByClassName(u)[0]:J=gcu("*",u,W);return J||W});
_.b2(Y.JSC$12097_dragListGroup,Uai,Y.onDraggerCreated);_.b2(Y.JSC$12097_dragListGroup,kMU,Y.onDragStart);_.b2(Y.JSC$12097_dragListGroup,HAu,Y.onDrop);Y.JSC$12097_dragListGroup.init();Y.scrollElement.addEventListener("scroll",Y.onReorderableScroll,{passive:!0})};
A8.prototype.handleDrop=function(){};
_.y6.Object.defineProperties(A8.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.Q([_.X({value:100}),_.k("design:type",Number)],A8.prototype,"scrollMargin",void 0);A8=_.Q([_.BZ()],A8);_.gjs=[A8.prototype];_.Uv={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(Y,S,P){var u=this.getClickTarget_(S);if(u&&this.isClickAllowed_(u)){S.preventDefault();Y=(0,_.RY.unsafeClone)(Y);var W=this.getContainerBoundingRect();S=this.getRelativeClickXy_(S,W);this.expandEndpointUrlMacros_(Y,{NX:S[0],NY:S[1],NB:u.code});P&&this.truncateWebCommendMetadataUrl_(Y);_.ms(this.hostElement,"yt-navigate",{endpoint:Y})}},
getClickTarget_:function(Y){if(!this.clickTargetMap)return null;Y=_.iM(Y)||[];Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;if(S===_.I(this.hostElement).querySelector("#menu"))break;if(S=this.clickTargetMap.get(S.id))return S}return null},
getRelativeClickXy_:function(Y,S){var P=Y.detail.x,u=Y.detail.y;_.f("use_on_click_for_desktop_display_ad")&&Y.clientX!=null&&Y.clientY!=null&&(P=Y.clientX,u=Y.clientY);Y=Math.round(P-S.left);S=Math.round(u-S.top);return Y<0||S<0?[null,null]:[Y,S]},
getContainerBoundingRect:function(){return _.I(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(Y,S){for(var P=_.n(Y.loggingUrls||[]),u=P.next();!u.done;u=P.next())u=u.value,u.baseUrl&&(u.baseUrl=xg(u.baseUrl,S));Y.urlEndpoint&&Y.urlEndpoint.url&&(Y.urlEndpoint.url=xg(Y.urlEndpoint.url,S));Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.url&&(Y.commandMetadata.webCommandMetadata.url=xg(Y.commandMetadata.webCommandMetadata.url,S))},
truncateWebCommendMetadataUrl_:function(Y){if(Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.url){var S=Y.commandMetadata.webCommandMetadata.url,P=S.indexOf("&pp=");if(P>0){var u=S.indexOf("&",P+1);Y.commandMetadata.webCommandMetadata.url=u>P&&u<S.length?S.slice(0,P)+S.slice(u):S.slice(0,P)}}},
configureClickTargets:function(Y,S,P){this.containerId=Y;this.clickTargetMap=new Map;Y=_.n(S);for(S=Y.next();!S.done;S=Y.next())if(S=S.value,S.location){var u=P.get(S.location);u&&(_.Vm(_.I(this.hostElement).querySelector("#"+u),"yt-simple-endpoint",this.isClickAllowed_(S)),this.clickTargetMap.set(u,S))}},
isClickAllowed_:function(Y){return Y.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||Y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||Y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||Y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.QG={};
_.QG.YtLazyListBehavior=[_.l4.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var Y=(this.constructor.generatedFrom||this).observers;Y||(Y=[]);Y.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
Y}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var Y=this.renderElementsOutsideVisibleArea_;Y&&(a8_(Y,4),Y.processSignal())},
deepLazyListObserver_:function(Y){var S=this;if(Y){var P=Y.value||[];if(this.itemsPath==Y.path){var u=this.nonDeferredItemCount;Y=0;u>-1&&P.length>u&&(Y=_.X3("REMAINING_DOVA_DEFERRED_CHUNKS",-1));Y>0?(u>0&&(u=P.slice(0,u),this.setInitialItemsOnDataChanged(u)),(u=this.renderElementsOutsideVisibleArea_)?u.cancel():(u=this.renderElementsOutsideVisibleArea_=new _.ZG(2,"eocs"),_.IV9(window,"scroll",function(){return S.renderDeferredElements()})),_.i4(u,function(){S.setInitialItemsOnDataChanged(P)}),_.lk("REMAINING_DOVA_DEFERRED_CHUNKS",
Y-1)):this.setInitialItemsOnDataChanged(P)}else if(this.itemsPath+".splices"==Y.path)this.onItemsUpdated_(P);
else u="shownItems"+Y.path.substr(this.itemsPath.length),this.useSignals&&u==="shownItems.length"||this.notifyPath(u,Y.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(Y){Y&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(Y),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(Y){Y=Y.indexSplices;for(var S=0,P=Y.length;S<P;S++){var u=Y[S];if(u.index<this.shownCount&&(u.removed&&this.splice("shownItems",u.index,u.removed.length),u.addedCount)){var W=u.object.slice(u.index,u.index+u.addedCount);u=["shownItems",u.index,0];u.push.apply(u,W);this.splice.apply(this,u)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(Y){this.cancelPendingTasks_();Y||(Y=[]);this.items_=Y;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.Z4("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.ky(this,this.tryRenderChunk_)))},
fillRange_:function(Y,S){this.canShowMore&&this.items_&&(Y=this.items_.slice(Y,S),Y.unshift("shownItems"),this.push.apply(this,Y),this.shownCount=S,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var Y=this;this.canShowMore&&_.pc(this,"renderChunk",function(){Y.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Z4("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.bL(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var Y=this.renderElementsOutsideVisibleArea_;Y&&(Y.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var Y=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(Y-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=Y;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(Y){return Math.ceil(1E3/Y)},
onCanShowMoreUpdated_:function(Y){this.data&&this.items_!==null&&(Y?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(Y){!this.shouldUseTaskManager()&&this.data&&(!Y&&this.canShowMore?(_.rMf(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):Y&&this.partiallyRenderedItems_.has(this.items_)&&(_.f("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var yG;_.kR={};
yG=function(){var Y=_.JI.apply(this,arguments)||this;Y.atStart=!0;Y.atEnd=!0;Y.startIndex=0;Y.endIndex=0;Y.scrollCount=0;Y.initialStartIndex=0;Y.disableScrollEventListener=!1;Y.useFloorScrolling=!1;Y.isSearch=!1;Y.dragging=!1;Y.dragMouseStart=0;Y.dragOffsetStart=0;Y.disableWheelScroll=!1;Y.centerListItems=!1;Y.offset=0;Y.minComponentWidth=0;Y.marginWidthRight=0;Y.marginWidthLeft=0;Y.setButtonsStateRequested=!1;Y.itemsVisibilityObserver=null;Y.fullyVisibleItemsIndices=[];Y.JSC$12108_onWheelScroll=function(S){if(Y.isSearch&&
!Y.disableWheelScroll&&_.f("desktop_enable_dmpanel_wheel_scroll")){var P=S.shiftKey?Math.abs(S.deltaY)>Math.abs(S.deltaX)?S.deltaY:S.deltaX:S.deltaX;P!==0&&(S.preventDefault(),Y.ytLazyListBehavior.fillRemainingListItems(),Y.offset+=P,Mc(Y),Y.reposition_())}};
Y.onPointerDown=function(S){$NJ(Y)&&(Y.dragMouseStart=S.clientX,Y.dragOffsetStart=Y.offset,Y.dragging=!0)};
Y.onPointerMove=function(S){$NJ(Y)&&Y.dragging&&(Y.ytLazyListBehavior.fillRemainingListItems(),Y.offset=Y.dragOffsetStart-(S.clientX-Y.dragMouseStart),Mc(Y),Y.reposition_())};
Y.onPointerUp=function(){$NJ(Y)&&(Y.dragging=!1)};
return Y};
_.r(yG,_.JI);var raS=function(Y){var S=_.I(Y.hostElement).querySelector("#items").children;if(!S)return 0;var P=0;Y=_.n(Y.fullyVisibleItemsIndices);for(var u=Y.next();!u.done;u=Y.next())P+=S[u.value].clientWidth;return P},$NJ=function(Y){return Y.isSearch&&_.f("desktop_enable_dmpanel_click_drag_scroll")};
yG.prototype.created=function(){this.cachedViewportWidth=_.X3("initialInnerWidth")||window.innerWidth;this.JSC$12108_cachedViewportHeight=_.X3("initialInnerHeight")||window.innerHeight;_.X3("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.lk("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
yG.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.f("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();GO3(this)};
yG.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.f("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var Y;(Y=this.itemsVisibilityObserver)==null||Y.disconnect();this.itemsVisibilityObserver=null;var S;(S=this.itemsObserver)==null||S.disconnect()};
var GO3=function(Y){var S=_.I(Y.hostElement).querySelector("#scroll-container");if(S){if(!Y.itemsVisibilityObserver){var P=window.getComputedStyle(S).marginRight;Y.itemsVisibilityObserver=new IntersectionObserver(function(u){hG6(Y,u)},{root:S,
rootMargin:P,threshold:.98})}if(S=_.I(Y.hostElement).querySelector("#items"))Y.itemsObserver=new puJ(S,function(u){vj6(Y,u)})}},vj6=function(Y,S){DNs(Y)&&(Array.from(S.addedNodes).filter(function(P){return P.nodeType===Node.ELEMENT_NODE}).forEach(function(P){Y.itemsVisibilityObserver&&Y.itemsVisibilityObserver.observe(P)}),Array.from(S.removedNodes).filter(function(P){return P.nodeType===Node.ELEMENT_NODE}).forEach(function(P){Y.itemsVisibilityObserver&&Y.itemsVisibilityObserver.unobserve(P)}))},
hG6=function(Y,S){var P=new Set(Y.fullyVisibleItemsIndices);
S=_.n(S);for(var u=S.next();!u.done;u=S.next()){u=u.value;var W=u.target.parentElement;W?(W=Array.from(W.children).indexOf(u.target),u.isIntersecting?P.add(W):P.has(W)&&P.delete(W)):_.sf(new _.$2("Parent element not found",u.target.nodeName))}Y.fullyVisibleItemsIndices=Array.from(P).sort(function(m,J){return m-J});
P.size===0?_.sf(new _.$2("No visible entries in horizontal list")):(Y.startIndex=Y.fullyVisibleItemsIndices[0],Y.endIndex=Y.fullyVisibleItemsIndices[Y.fullyVisibleItemsIndices.length-1])},DNs=function(Y){Y.data?Y=(Y=Y.data)&&Y.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===Y.itemSizeConstraint:!1:Y=!1;
return Y};
_.z=yG.prototype;_.z.addScrollEventListeners=function(){var Y=_.I(this.hostElement).querySelector("#scroll-container");Y.style.touchAction="pan-y";Y.addEventListener("wheel",this.JSC$12108_onWheelScroll);Y.addEventListener("pointerdown",this.onPointerDown);Y.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.z.removeScrollEventListeners=function(){var Y=_.I(this.hostElement).querySelector("#scroll-container");Y.removeEventListener("wheel",this.JSC$12108_onWheelScroll);Y.removeEventListener("pointerdown",this.onPointerDown);Y.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.z.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.ky(this,this.setStartIndex,[this.initialStartIndex])};
_.z.reposition_=function(){var Y=_.X3("HTML_DIR")=="rtl"?"":"-",S=_.I(this.hostElement).querySelector("#items");S&&(S.style.transform="translateX("+Y+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.z.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.ky(this,this.setButtonsState_))};
_.z.setButtonsState_=function(){this.setButtonsStateRequested=!1;var Y=_.I(this.hostElement).querySelector("#items").firstElementChild;if(Y){this.minComponentWidth||(this.minComponentWidth=I$6(this,Y));Y=_.I(this.hostElement).querySelector("#scroll-container").clientWidth;var S=_.I(this.hostElement).querySelector("#items").clientWidth,P=this.get(this.ytLazyListBehavior.itemsPath,this);if(P){var u=Math.round(Y/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+u,P.length)-1)}this.ytLazyListBehavior.canShowMore?S+this.minComponentWidth>=this.offset+Y&&(this.atEnd=!1):this.atEnd=this.offset+Y>=S-20?!0:!1;this.atStart=this.offset<=20}};
_.z.setStartIndex=function(Y){if(!this.minComponentWidth){var S=_.I(this.hostElement).querySelector("#items").firstElementChild;if(!S)return;this.minComponentWidth=I$6(this,S)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*Y;Mc(this);this.reposition_()};
_.z.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.mT();var Y=_.I(this.hostElement).querySelector("#scroll-container").clientWidth;_.f("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=I$6(this,_.I(this.hostElement).querySelector("#items").firstElementChild));Y=this.useFloorScrolling?Math.floor(Y/this.minComponentWidth)||1:Math.round(Y/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&a$L(this);this.offset+=DNs(this)?
raS(this):Y*this.minComponentWidth;Mc(this);this.reposition_();this.scrollCount++};
_.z.prevClick_=function(){var Y=_.I(this.hostElement).querySelector("#scroll-container").clientWidth;Y=this.useFloorScrolling?Math.floor(Y/this.minComponentWidth)||1:Math.round(Y/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=DNs(this)?raS(this):this.minComponentWidth*this.scrollCount-1):this.offset-=DNs(this)?raS(this):Y*this.minComponentWidth;this.centerListItems&&a$L(this);Mc(this);this.reposition_()};
_.z.onIronResize_=function(){this.resizeSupportEnabled&&_.ky(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.z.onItemsTransitionEnd_=function(Y){_.oK(Y)===_.I(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.z.onChildElementFocus_=function(Y){Y=Y.target.closest("#items > *");var S=_.I(this.hostElement).querySelector("#scroll-container");if(S.contains(Y)){if(_.f("web_horizontal_list_behavior_focus_killswitch"))if(Y.offsetLeft<this.offset)this.offset=Math.abs(Y.offsetLeft)<Y.clientWidth?0:Y.offsetLeft;else if(Y.offsetLeft+Y.clientWidth>this.offset+S.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.mT(),this.offset=Y.offsetLeft+Y.clientWidth-S.clientWidth;else return;else{var P=_.I(this.hostElement).querySelector("#items"),
u=_.X3("HTML_DIR")==="rtl",W=u?P.clientWidth-Y.offsetLeft:Y.offsetLeft;P=u?P.clientWidth-(Y.offsetLeft+Y.clientWidth):Y.offsetLeft+Y.clientWidth;var m=u?W>this.offset+S.clientWidth:W<this.offset,J=u?P<this.offset:P>this.offset+S.clientWidth,c=u?m:J;if(u?J:m)S=u?P:W,this.offset=Math.abs(S)<Y.clientWidth?0:S;else if(c)this.ytLazyListBehavior.fillRemainingListItems(),_.mT(),this.offset=(u?W:P)-S.clientWidth;else return}Mc(this);this.reposition_()}};
_.z.observeShownItems_=function(){this.reset()};
_.z.checkComponentWidthResize=function(){var Y=_.I(this.hostElement).querySelector("#items").firstElementChild;Y&&(Y=I$6(this,Y),this.centerListItems||Y!==this.minComponentWidth)&&(this.minComponentWidth=Y,this.offset=Y*this.scrollCount,this.centerListItems&&a$L(this),Mc(this),this.reposition_())};
var I$6=function(Y,S){var P=window.getComputedStyle(S).marginRight;P=Math.floor(Number(P.replace("px","")));var u=window.getComputedStyle(S).marginLeft;u=Math.floor(Number(u.replace("px","")));Y.centerListItems&&!Y.marginWidthRight&&(Y.marginWidthRight=P,Y.marginWidthLeft=u);return Y.resizeSupportEnabled?S.getBoundingClientRect().width+P:S.offsetWidth+P},Mc=function(Y){var S=_.I(Y.hostElement).querySelector("#scroll-container").clientWidth,P=_.I(Y.hostElement).querySelector("#items").clientWidth;
Y.offset<0?Y.offset=0:Y.offset+S>=P&&(Y.offset=P-S)},a$L=function(Y){Y.offset-=(_.I(Y.hostElement).querySelector("#scroll-container").clientWidth+Y.marginWidthRight-Y.minComponentWidth)/2-Y.marginWidthLeft};
_.y6.Object.defineProperties(yG.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var Y=_.X3("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(Y==-1)Y=this.JSC$12108_cachedViewportHeight,Y=Y>1320?5:Y>1020?4:Y>730?3:Y>430?2:1;else if(Y==0)return 0;_.lk("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",Y-1);Y=_.X3("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(Y>-1)return Y;Y=this.cachedViewportWidth;Y=Y>1600?6:Y>1400?5:Y>1300?4:Y>1090?5:Y>870?4:Y>660?3:2;_.lk("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
Y);return Y},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.f("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
yG.prototype.observeShownItems_=yG.prototype.observeShownItems_;yG.prototype.onChildElementFocus_=yG.prototype.onChildElementFocus_;yG.prototype.onItemsTransitionEnd_=yG.prototype.onItemsTransitionEnd_;yG.prototype.onIronResize_=yG.prototype.onIronResize_;yG.prototype.prevClick_=yG.prototype.prevClick_;yG.prototype.nextClick_=yG.prototype.nextClick_;yG.prototype.setButtonsState_=yG.prototype.setButtonsState_;yG.prototype.requestButtonsStateUpdate_=yG.prototype.requestButtonsStateUpdate_;
yG.prototype.reposition_=yG.prototype.reposition_;yG.prototype.reset=yG.prototype.reset;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.QG.YtLazyListBehavior),_.k("design:type",Object)],yG.prototype,"ytLazyListBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],yG.prototype,"atStart",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],yG.prototype,"atEnd",void 0);_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"startIndex",void 0);_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"endIndex",void 0);_.Q([_.X({value:6}),_.k("design:type",Number)],yG.prototype,"initialCount",void 0);_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"scrollCount",void 0);_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"initialStartIndex",void 0);
_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"disableScrollEventListener",void 0);_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"supportComponentResize",void 0);_.Q([_.X({value:function(){var Y=this;return function(){return Y.prevClick_()}}}),
_.k("design:type",Function)],yG.prototype,"boundPrevClick",void 0);_.Q([_.X({value:function(){var Y=this;return function(){return Y.nextClick_()}}}),
_.k("design:type",Function)],yG.prototype,"boundNextClick",void 0);_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"useFloorScrolling",void 0);_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"isSearch",void 0);_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"dragging",void 0);_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"dragMouseStart",void 0);_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"dragOffsetStart",void 0);
_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"disableWheelScroll",void 0);_.Q([_.X(),_.k("design:type",Object)],yG.prototype,"centerListItems",void 0);_.Q([_.WZ("iron-resize"),_.zY("guideOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yG.prototype,"onIronResize_",null);_.Q([_.WZ("transitionend"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],yG.prototype,"onItemsTransitionEnd_",null);
_.Q([_.WZ("focusin"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],yG.prototype,"onChildElementFocus_",null);_.Q([_.zY("shownItems"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yG.prototype,"observeShownItems_",null);yG=_.Q([_.BZ()],yG);_.kR.YtdHorizontalListBehavior=[];_.kR.YtdHorizontalListBehavior.push(_.G8,_.e.YtRendererBehavior,_.QG.YtLazyListBehavior,_.LG.YtdGuideStateAwareBehavior,yG.prototype);var mN1=["APP_STATE","PI"];var L_L=_.Q0(["about:blank"]),wCm={pushState:window.history.pushState,replaceState:window.history.replaceState};var Nc=function(Y){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=Y;this.internalPushState=Y.pushState.bind(Y);this.internalReplaceState=Y.replaceState.bind(Y)};
Nc.prototype.init=function(){this.initialized=!0};
Nc.prototype.pushState=function(Y,S){this.initialized||this.init();this.internalPushState&&this.internalPushState(Y,"",S)};
Nc.prototype.replaceState=function(Y,S){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(Y,"",S)};
Nc.prototype.getState=function(){return this.history&&this.history.state};var pC3=function(Y){var S=function(){var P=Y.apply(this,arguments)||this;P.boundHistoryPushState=!1;P.boundHistoryReplaceState=!1;P.debugInfo={};return P};
_.r(S,Y);S.prototype.init=function(){var P=_.nN("IFRAME");_.fh(P,_.kt(L_L));P.sandbox="allow-same-origin";P.style.display="none";this.iframe=P;document.body.appendChild(P);this.bindHistoryStateFunctions();Y.prototype.init.call(this)};
S.prototype.bindHistoryStateFunctions=function(){var P=this,u=[],W;this.iframe&&((W=this.iframe.contentWindow)==null?0:W.history)&&(W=this.iframe.contentWindow.history)&&(u.push(W),Object.getPrototypeOf(W)&&u.push(Object.getPrototypeOf(W)));window.history&&u.push(window.history);W=window.history;Object.getPrototypeOf(W)&&u.push(Object.getPrototypeOf(W));u.push(wCm);W=function(J){for(var c=null,C=0;C<u.length;C++){var x=u[C][J];if(typeof x==="function"){c=x.bind(window.history);P.debugInfo[J]=C;break}}return c};
if(!this.boundHistoryReplaceState){var m=W("replaceState");m&&(this.internalReplaceState=m,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(W=W("pushState"))&&(this.internalPushState=W,this.boundHistoryPushState=!0)};
return S}(Nc),F_S=function(){return pC3.call(this,window.history)||this};
_.r(F_S,pC3);F_S.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Hf=function(Y){this.browserHistory=Y;this.initialized=!1};
Hf.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Hf.prototype.pushState=function(Y,S){this.initialized||this.init();this.browserHistory.pushState(Y,S)};
Hf.prototype.replaceState=function(Y,S){this.initialized||this.init();this.browserHistory.replaceState(Y,S)};
Hf.prototype.handlePopstate=function(Y){return Y.state};_.scJ=function(Y,S,P,u,W){this.endpoint=Y;this.forward=S;this.historyEntry=P;this.JSC$26311_savedComponentState=u;this.legacyBorder=W===void 0?!1:W};var dNi=function(Y,S){this.rootData=Y;this.scrollTop=S};var rx=new _.yH("PAGE_REQUEST_TOKEN"),Sii=new _.yH("FETCH_PBJ_TOKEN");_.VG=new _.yH("EPHEMERAL_STORE_TOKEN");_.e4=function(Y){this.data=Object.assign({},Y);var S;(S=this.data.innertubeResponse)==null||delete S.frameworkUpdates};
_.e4.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Oh)()};
_.na=function(Y){return Object.assign({},Y.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var l$S=function(){this.maxSize=100;this.timeToDataCache=new Map};
l$S.prototype.get=function(Y){var S=this.timeToDataCache.get(Y);S&&(this.timeToDataCache.delete(Y),this.timeToDataCache.set(Y,S));if(S&&S.rootData&&(_.f("web_use_response_store_for_history_cache")||_.f("mweb_use_new_history_manager"))){var P=_.E().resolve(_.VG),u=XCh(S),W=!!u;if(u){if(u.content){var m=Ov(P,u.content);W&&m?S.rootData.response=_.na(m):W=!1}u.player&&(m=Ov(P,u.player),W&&m?S.rootData.playerResponse=_.na(m):W=!1);u.reelSequence&&(P=Ov(P,u.reelSequence),W&&P?S.rootData.reelWatchSequenceResponse=
_.na(P):W=!1)}W||(this.timeToDataCache.delete(Y),S=void 0)}return S};
l$S.prototype.set=function(Y,S){if(S.rootData&&(_.f("web_use_response_store_for_history_cache")||_.f("mweb_use_new_history_manager"))){var P=XCh(S),u=Object.assign({},S.rootData);P&&(P.content&&S.rootData.response&&(ZKt(this,P.content,S.rootData.response),u.response=null),P.player&&S.rootData.playerResponse&&(ZKt(this,P.player,S.rootData.playerResponse),u.playerResponse=null),P.reelSequence&&S.rootData.reelWatchSequenceResponse&&(ZKt(this,P.reelSequence,S.rootData.reelWatchSequenceResponse),u.reelWatchSequenceResponse=
null));S=new dNi(u,S.scrollTop)}this.timeToDataCache.has(Y)?this.timeToDataCache.delete(Y):this.timeToDataCache.size>=this.maxSize&&(P=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(P.value));this.maxSize!==0&&this.timeToDataCache.set(Y,S)};
l$S.prototype.clear=function(){this.timeToDataCache.clear()};
var XCh=function(Y){var S=_.E().resolve(_.PQ(rx)),P;if((P=Y.rootData)==null?0:P.endpoint)return S==null?void 0:sau(S,Y.rootData.endpoint);var u;_.sf(new _.$2("History snapshot response data does not contain endpoint",(u=Y.rootData)==null?void 0:u.url));return null},ZKt=function(Y,S,P){if(Y.maxSize>0){var u;
(Y=(u=P.responseContext)==null?void 0:u.maxAgeSeconds)&&Number(Y)>0&&(u=_.E().resolve(_.VG),P=ei(P,Y),u.put(S,new _.e4(P)))}};var iKS=function(Y,S,P){this.endpoint=S;this.JSC$26316_savedComponentState=P===void 0?null:P;this.entryTime=Y};var Cza=1;var Yx=function(Y){var S=function(){var P=Y.apply(this,[].concat(_.cz(_.Ch.apply(0,arguments))))||this;P.historyEntryTime=0;P.historySnapshotCache=P.createHistoryCache();return P};
_.r(S,Y);S.prototype.createHistoryCache=function(){return new l$S};
S.prototype.saveAndReplace=function(P,u,W){var m=window.location.href;var J=J===void 0?{}:J;var c=(c=this.browserHistory.getState())&&c.entryTime?c.entryTime:qI9();P=this.createNewHistoryEntry(P,J,c);this.saveSnapshot(c,u,W);this.replaceState(P,m||window.location.href)};
S.prototype.saveAndPush=function(P,u,W,m,J){J=J===void 0?{}:J;this.saveSnapshot(this.historyEntryTime,W,m);W=this.historySnapshotCache;m=this.historyEntryTime;var c=W.timeToDataCache.keys();c=_.n(c);for(var C=c.next();!C.done;C=c.next())C=C.value,C>m&&W.timeToDataCache.delete(C);u=this.createNewHistoryEntry(u,J);this.pushState(u,P)};
S.prototype.saveSnapshot=function(P,u,W){this.historySnapshotCache.set(P,new dNi(u,W))};
S.prototype.createNewHistoryEntry=function(P,u,W){W=W===void 0?qI9():W;return new iKS(W,P,u)};
S.prototype.handlePopstate=function(P){var u=Y.prototype.handlePopstate.call(this,P),W=null,m=null,J=!1,c=null;u&&u.entryTime&&(c=this.historySnapshotCache.get(u.entryTime)||null,J=u.entryTime>this.historyEntryTime,this.historyEntryTime=u.entryTime,W=u.endpoint,m=u.JSC$26316_savedComponentState);this.handleHistoryCacheLoad(new _.scJ(W,J,c,m),P);return u};
S.prototype.pushState=function(P,u){Number(P==null?void 0:P.entryTime)>=0&&(this.historyEntryTime=P.entryTime);Y.prototype.pushState.call(this,P,u)};
S.prototype.replaceState=function(P,u){Number(P==null?void 0:P.entryTime)>=0&&(this.historyEntryTime=P.entryTime);Y.prototype.replaceState.call(this,P,u)};
S.prototype.handleHistoryCacheLoad=function(){};
return S}(Hf),oj6=function(){var Y=Yx.call(this,new F_S)||this;
Y.dispatchElement=null;Y.entryIndex=0;return Y};
_.r(oj6,Yx);_.z=oj6.prototype;_.z.init=function(Y){Y=Y===void 0?!0:Y;Yx.prototype.init.call(this);this.initialized||(Y||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.z.handlePopstate=function(Y){var S=null;Y.state||(S="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Yx.prototype.handlePopstate.call(this,Y);var P=new CustomEvent("yt-history-pop",{cancelable:!0});_.nb(this.dispatchElement,"yt-history-pop",[P,{errorMsg:S}]);_.jR(this.dispatchElement,"yt-close-all-popups-action");if(!P.defaultPrevented){P=_.E().resolve(_.Ag);S=P.getCurrentData();var u=P.getCurrentPage();P=0;u?(u=_.nb(this.dispatchElement,"yt-get-page-offset",
[u]),u.length>0&&(P=u[0])):_.sf(new _.$2("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:S?S.page:"undefined"}));S&&(S.csn=_.pM());this.saveSnapshot(this.historyEntryTime,S,P)}return Yx.prototype.handlePopstate.call(this,Y)};
_.z.handleHistoryCacheLoad=function(Y,S){Y.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.n(_.jR(this.dispatchElement,"yt-history-will-navigate",[S])).next().value||_.nb(this.dispatchElement,"yt-history-load",[S,Y]))};
_.z.pushState=function(Y,S){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var P=new _.$2("history.pushState is not a function",this.getDebugString());_.p_(P)}Yx.prototype.pushState.call(this,Y,S)};
_.z.replaceState=function(Y,S){if(!this.browserHistory.boundHistoryReplaceState){var P=new _.$2("history.replaceState is not a function",this.getDebugString());_.p_(P)}Yx.prototype.replaceState.call(this,Y,S)};
_.z.saveAndPush=function(Y,S,P,u,W){W=W===void 0?{}:W;P&&(P.csn=_.pM());Yx.prototype.saveAndPush.call(this,Y,S,P,u,W)};
_.z.getDebugString=function(){var Y=[];this.initialized&&Y.push("i");this.browserHistory.boundHistoryReplaceState&&Y.push("bhr");this.browserHistory.boundHistoryPushState&&Y.push("bhs");"replaceState"in this.browserHistory.debugInfo&&Y.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&Y.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&Y.push("ei:"+String(this.entryIndex));return Y.join(",")};
_.SM=function(Y,S){Y.init(!0);var P=Y.browserHistory.getState();Y.replaceState(P,V5(S))};
oj6.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Pb=new _.yH("DESKTOP_HISTORY_MANAGER_TOKEN");var txJ=[10,20,30,40,50,60],un=function(){this.currentPartitionIndex=0},Aa_=function(Y){Rei({mainAppWeb:_.d2(),
survivalSli:{partitionMinute:Y,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},UNi=function(Y){Rei({mainAppWeb:_.d2(),
survivalSli:{partitionMinute:Y,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},Qc3=function(Y){return Y.currentPartitionIndex>=0&&Y.currentPartitionIndex<txJ.length?txJ[Y.currentPartitionIndex]:-1},kOL=function(Y){return Y.currentPartitionIndex>0&&Y.currentPartitionIndex-1<txJ.length?txJ[Y.currentPartitionIndex-1]:-1};
un.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var Y=kOL(this);Y>0&&UNi(Y);Y=Qc3(this);Y>0&&Aa_(Y);Mxh(this)}};
var Mxh=function(Y){var S=Qc3(Y);if(S>0){var P=kOL(Y);P<0&&(P=0);Y.intervalId=_.wc.addJob(function(){var u=kOL(Y);u>0&&UNi(u);u=Qc3(Y);u>0&&Aa_(u);Mxh(Y)},3,(S-P)*6E4);
Y.currentPartitionIndex+=1}else Y.currentPartitionIndex=-1};var yaJ=function(){this.skipNextNavigation=!1},NY_=function(Y,S,P){if(!S)return!1;
if(Y.skipNextNavigation)return Y.skipNextNavigation=!1;if(_.g(P,_.tp))return!1;var u,W,m;if((u=_.g(P,_.CV))==null?0:(W=u.browseEndpointContextSupportedConfigs)==null?0:(m=W.browseEndpointContextMainConfig)==null?0:m.skipConfirmation)return!1;var J;return((J=_.g(S.commandMetadata,_.Yo))==null?void 0:J.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
yaJ.prototype.showConfirmationDialog=function(Y,S){this.navigateParams=S;this.customConfirmationCommand?_.E().resolve(_.uY).resolveCommand(this.customConfirmationCommand):(S={openPopupAction:{popup:{confirmDialogRenderer:{title:_.kW(_.Td("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.kW(_.Td("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.kW(_.Td("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.kW(_.Td("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Ap.getInstance().triggerAction("yt-open-popup-action",S,Y))};
yaJ.prototype.cancelPendingNavigation=function(){var Y;((Y=this.navigateParams)==null?void 0:Y.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var HKm=function(){},eGf=function(Y,S,P,u,W,m,J){P=P===void 0?{}:P;
J=J===void 0?{}:J;var c=_.VV.instance,C,x=(C=_.g(S,_.tp))==null?void 0:C.url;return x?cZ$(c,x,P,window.location.href,function(b,T){Vx3(Y,b,T,!1,!0,P,m,u)},function(){return!1}):i1(c,S,P,window.location.href,RK(S),function(b,T){Vx3(Y,b,T,!1,!0,P,m,u)},W,J)},Vx3=function(Y,S,P,u,W,m,J,c){if(!Y.JSC$12166_chunkHandler)if(P.page==="watch")if(W||u){if(_.f("kevlar_continue_playback_without_player_response")){var C;
var x=(C=_.g(c,_.yx))==null?void 0:C.videoId}Y.JSC$12166_chunkHandler=new sT3(_.Q5,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:u,previousVideoId:x},tempData:m},J)}else Y.JSC$12166_chunkHandler=new aq_(_.Q5);else P.page==="shorts"&&W&&!u?Y.JSC$12166_chunkHandler=new FWt(_.Q5,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:m},J):Y.JSC$12166_chunkHandler=new LW_(J);Y.JSC$12166_chunkHandler.processChunk({endpoint:S,data:P});return Y.JSC$12166_chunkHandler.wA.promise},
OKu=function(Y,S,P,u,W){(P=_.xQ6(P))&&Vx3(Y,S,P,!1,!0,u,void 0,W)};var Yos=function(){this.pendingNavigationPromise=null};
_.z=Yos.prototype;_.z.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.z.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.z.addEventListener=function(){throw Error("zh");};
_.z.dispatchEvent=function(){throw Error("zh");};
_.z.removeEventListener=function(){throw Error("zh");};var Soh=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],Wb=function(){_.Tj.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];PR3(this)};
_.r(Wb,_.Tj);Wb.prototype.verifyUser=function(){var Y=PR3(this),S=Y.logout;if(!Y.sessionChange)return!0;this.dispatchEvent("ytsessionchange");S&&this.dispatchEvent("ytuserinvalid");return!1};
var PR3=function(Y){var S=Soh.map(function(W){var m;return(m=_.T_.get(W))!=null?m:""}),P=S.some(function(W,m){return Y.sessionCookies&&Y.sessionCookies[m]!==""&&W===""}),u=S.some(function(W,m){return Y.sessionCookies&&Y.sessionCookies[m]!==W});
Y.sessionCookies=S;return{logout:P,sessionChange:u}};
Wb.prototype.clearTimeout=function(){this.scheduledJobId&&(_.wc.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var K_Y=new _.yH("POSTMESSAGE_TUNNEL_TOKEN");var xN8=["/parent_tools","/file_download","/artist_roster"],gjf=[paU,F$f,sht,lf_,dUd,wah,Xah,Z8s];var uN3=new _.yH("APP_ROOT");var zX=new _.yH("NAVIGATION_CONFIRMATION_SERVICE");var Wjt="/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(" "),zZJ=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
mE=function(Y,S){this.pendingNavigationPromise=null;this.JSC$12184_clientRoot=Y;this.historyManager=S;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new HKm;this.debugString=Y.is;Y={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),
"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.Uf(_.Ap.getInstance(),Y,this.JSC$12184_clientRoot)},BjS,c3i,CRm,qo_,J3m;
_.r(mE,Yos);mE.prototype.reload=function(){_.aK(window.location.href)};
var KLt=function(Y){Y.currentEndpoint&&_.g(Y.currentEndpoint,_.bM)?Y.reload():Y.currentEndpoint&&Y.navigate(Y.currentEndpoint,!0,void 0,{disableCache:!0})};
mE.prototype.navigate=function(Y,S,P,u,W,m,J,c){S=S===void 0?!1:S;P=P===void 0?{}:P;u=u===void 0?{}:u;var C=_.E().resolve(zX),x;if(!J&&NY_(C,(x=this.currentEndpoint)!=null?x:void 0,Y))return C.showConfirmationDialog(this.JSC$12184_clientRoot.parentElement,{endpoint:Y,reload:S,params:P,tempData:u,requestType:W,createScreenConfig:m}),!1;var b=_.aQ();_.Ld(b,"eocs")||b.parkOrScheduleJob(function(){b.processSignal("eocs")},10,"eor");
J=RK(Y);C=u.autonav==="1";x=_.pM();Wb.instance||(Wb.instance=new Wb);var T=Wb.instance.verifyUser(),K;if(_.f("enable_dark_theme_only_on_shorts")){var G=document.documentElement.hasAttribute("dark"),v=_.w2(!0)==="USER_INTERFACE_THEME_DARK";if(J==="shorts"){if(!G)if(_.f("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var a;_.aK((a=_.g(Y==null?void 0:Y.commandMetadata,_.Yo))==null?void 0:a.url,void 0,void 0,window.top)}}else{var w;_.aK(_.y4((w=_.g(Y==null?
void 0:Y.commandMetadata,_.Yo))==null?void 0:w.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.f("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!G){var F;_.aK(_.y4((F=_.g(Y==null?void 0:Y.commandMetadata,_.Yo))==null?void 0:F.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(v!==G){var U;_.aK(_.y4((U=_.g(Y==null?void 0:Y.commandMetadata,_.Yo))==null?void 0:U.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(J==="watch"){if(mX3(_.E().resolve(_.l1),
Y)&&(T||_.f("fix_miniplayer_navigation_killswitch")))return!1;_.f("block_all_player_prefetch_requests")||(K=biS(_.zU(_.ea),Y,C))}else{var V,M=(V=_.g(this.currentEndpoint,_.yx))==null?void 0:V.videoId;M&&_.bA.getInstance().then(function(yX){yX&&yX.set("yt-miniplayer-shown-video-id",M)})}K&&(P.frags=K.missingFragments_.join(","));
a=null;var zJ;w=(zJ=_.g(Y==null?void 0:Y.commandMetadata,_.Yo))==null?void 0:zJ.ignoreNavigation;if(!w)if(_.f("kevlar_command_url")){var O;a=(O=_.g(Y==null?void 0:Y.commandMetadata,_.Yo))==null?void 0:O.url}else a=_.xGX(Y,P);if(a&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&a==this.lastNavigationUrl)return _.wP({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.q2(l6(),"CANCELLED")}a&&(this.lastNavigationUrl=a);Moh();_.lk("IS_HOMEPAGE_COLD",
!1);_.lk("IS_RESULTS_PAGE_COLD",!1);_.lk("IS_WATCH_PAGE_COLD",!1);Y.loggingUrls&&Y.loggingUrls.forEach(function(yX){yX.baseUrl&&_.UQ(yX.baseUrl)});
_.hG9(Y,m?m.layer:0)&&_.f("kevlar_flush_logs_on_away_navigation")&&_.w6();if($NX(Y))return!1;Sku(J,W);if(!a)return w||_.sf(new _.$2("Can't construct url for endpoint",Y)),_.q2(l6(),"FAILURE"),!1;_.RGK();zJ=Y&&_.g(Y,_.CV)&&_.g(Y,_.CV).browseId.startsWith("UC");P=(O=_.f("enable_dark_theme_only_on_shorts")&&J==="shorts"?!1:_.pV()&&document.documentElement.hasAttribute("dark")!==_.LV())?{themeRefresh:1}:{};O&&!_.Eh()&&_.w2()==="USER_INTERFACE_THEME_DARK"&&(P.theme="dark");zJ=O||n8_(a)&&!zJ&&!_.f("kevlar_disable_url_allowlist");
T||(zJ=!0);if(zJ||_.X3("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var ca;var hu=(ca=window.top)==null?void 0:ca.location.href}catch(yX){var ah;hu=(ah=yX)==null?void 0:ah.message}_.sf(new _.$2("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:hu}))}Y=_.f("kevlar_redirect_on_window_killswitch")?window.top:window;IK(a);_.aK(_.y4(a,P),void 0,void 0,Y);_.q2(l6(),"ABORTED");return!1}_.f("kevlar_early_popup_close")&&_.nb(this.JSC$12184_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12166_chunkHandler=void 0;var va;hu=RK((va=this.currentEndpoint)!=null?va:void 0);(va=J==="shorts"&&hu==="shorts")||_.k9u();_.oj(FIf)("nr",void 0);C&&_.wP({webInfo:{navigationReason:"an"}});Y.clickTrackingParams&&(u.itct=Y.clickTrackingParams,u.csn=x);ew8(u);u.endpoint=JSON.stringify(Y);_.f("enable_unknown_lact_fix_on_html5")&&(_.E().resolve(_.En),u.lact=_.uE());_.RY.isEmpty(u)||_.ef(a,u);!_.f("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(m=Object.assign({},{layer:0},m,{parentLayer:3}));this.pendingNavigationPromise=m=eGf(this.pageFetcher,Y,u,this.currentEndpoint,this.JSC$12184_isNetworkPromiseStale.bind(this),m,c);m=m.then(this.handleNavigateSuccess.bind(this,m,Y,K,u),this.handleNavigateFail.bind(this,m,Y));_.nd().navigationFinishPromise=m;S={endpoint:Y,pageType:J,url:V5(a),reload:!!S,noProgressBar:_.f("web_disable_page_navigation_progress")||va};W&&(S.type=W);this.fireEvent("yt-navigate-start",S);K&&
OKu(this.pageFetcher,Y,K,u,this.currentEndpoint);return!0};
mE.prototype.JSC$12184_isNetworkPromiseStale=function(Y){return Y!=this.pendingNavigationPromise};
var jGt=function(Y,S,P,u,W){var m=RK(S);S={endpoint:S,pageType:m};W&&(S.errorMessage=W);_.sf(P);S.navigationDoneMs=_.Fk("nd");S.navigationErrorReason=u;Y.fireEvent("yt-navigate-error",S)};
mE.prototype.handleNavigateFail=function(Y,S,P){var u=void 0;P instanceof _.ok&&(u=P,qD$(P));if(this.JSC$12184_isNetworkPromiseStale(Y))return _.t9(u);_.q2(l6(),"FAILURE");jGt(this,S,P,"101");return _.t9(P)};
mE.prototype.handleNavigateSuccess=function(Y,S,P,u,W){if(this.JSC$12184_isNetworkPromiseStale(Y))return _.Cb();this.pendingNavigationPromise=null;if(!W)return S=new _.$2("Missing data in response for navigation endpoint",S),_.t9(S);if(W.reload)return window.location.reload(!0),_.Cb();P&&(Y={},_.RY.extend(Y,_.xQ6(P),W),W=Y);var m,J;P=(m=W)==null?void 0:(J=m.timing)==null?void 0:J.responseStart;P!=null&&_.Fk("srt",P);_.Fk("pdc");var c,C;m=(c=W)==null?void 0:(C=c.timing)==null?void 0:C.info;m!=null&&
(c=_.oj(_.XOJ)(m),_.wP(c));_.q2(l6(),"SUCCESS");J3m(this,S,W,1,u);return _.Cb()};
var n8_=function(Y){var S=Y;_.f("kevlar_no_redirect_to_classic_2_ks")||(S=(new _.Nq(Y)).getPath());if(S==="/"||S==="/red")return!1;var P=!0;Wjt.forEach(function(u){Y.indexOf(u)===0&&(P=!1)});
zZJ.forEach(function(u){var W=u.url;_.f(u.expFlag)&&Y.indexOf(W)===0&&(P=!1)});
return P};
mE.prototype.publishPageData=function(Y){this.fireEvent("yt-page-data-fetched",{pageData:Y})};
BjS=function(Y,S,P,u,W,m){var J=null;S.page!=="watch"||u?S.filler||_.nb(Y.JSC$12184_clientRoot,"yt-stop-old-player",[S]):J=Vx3(Y.pageFetcher,W,S,P,!1,m,void 0,Y.currentEndpoint);if(J)return J.then(Y.publishPageData.bind(Y,S));Y.publishPageData(S);return _.Cb()};
c3i=function(Y,S,P){var u=null;if(!P)return u=new _.$2("Empty data",Y.debugString,S);var W=P.response;if(!W)return u;var m={endpointType:RK(S)||"unknown"};W.responseContext?(W=W.responseContext.errors)&&(u=new _.$2("Errors in response context",Y.debugString,S,W,m)):u=W.error||W.errorMetadata?new _.$2("Errors in response",Y.debugString,S,W.error,W.errorMetadata,m):new _.$2("responseContext missing",Y.debugString,S,Object.keys(W).sort().join(","),m);var J,c,C,x;if(Y=P==null?void 0:(J=P.response)==null?
void 0:(c=J.responseContext)==null?void 0:(C=c.webResponseContextExtensionData)==null?void 0:(x=C.webResponseContextDebugData)==null?void 0:x.debugErrorMessages)for(J=0;J<Y.length;J++);return u};
CRm=function(Y){var S,P,u,W;return Y==null?void 0:(S=Y.response)==null?void 0:(P=S.responseContext)==null?void 0:(u=P.errors)==null?void 0:(W=u.error)==null?void 0:W["0"]};
qo_=function(Y,S){var P;if(P=S.url&&!S.url.startsWith("/clip"))P=S.url,P=!_.f("webfe_parse_debug_param_in_resolveurl_service")&&Y.searchDebugUrlMatcher.test(P)||gyf(P)?!0:!1;if(P)gyf(S.url)&&_.MP(window.location.href).themeRefresh?(S=_.O2(S.url,"themeRefresh"),_.SM(Y.historyManager,S)):S.url&&!BYU(S.url)&&_.SM(Y.historyManager,S.url);else if(S.endpoint){var u,W,m;(P=(u=S.endpoint)==null?void 0:(W=u.commandMetadata)==null?void 0:(m=W.webCommandMetadata)==null?void 0:m.url)&&!BYU(P)&&_.SM(Y.historyManager,
P);P&&S.url&&P!=S.url&&!S.url.match("playnext=1")&&new _.$2("Response url mismatch in response data",Y.debugString,P,S.url)}};
_.RZi=function(Y,S,P,u,W,m,J,c){m=m===void 0?!1:m;var C=_.E().resolve(zX),x;if(!c&&NY_(C,(x=Y.currentEndpoint)!=null?x:void 0,S))return C.showConfirmationDialog(Y.JSC$12184_clientRoot.parentElement,{endpoint:S,data:P,navigationType:u,tempData:W,isMiniplayer:m,isForwardHistoryNavigation:J==null?void 0:J.forward}),_.Cb();Y.pageFetcher.JSC$12166_chunkHandler=void 0;return J3m(Y,S,P,u,W,m)};
J3m=function(Y,S,P,u,W,m){m=m===void 0?!1:m;Y.isMiniplayerExpansion=m;var J=u===2;Y.currentEndpoint=S;Y.numNavigations++;Y.numNavigations&&(ZkJ.navigationCount=Y.numNavigations);_.lk("NUM_NAV",Y.numNavigations);var c=c3i(Y,S,P);if(c)return jGt(Y,S,c,"102",CRm(P)),_.t9(c);var C,x,b,T;c=P.rootVe||(P==null?void 0:(C=P.response)==null?void 0:(x=C.responseContext)==null?void 0:(b=x.webResponseContextExtensionData)==null?void 0:(T=b.ytConfigData)==null?void 0:T.rootVisualElementType);!J&&P&&qo_(Y,P);var K,
G;C=P==null?void 0:(K=P.response)==null?void 0:(G=K.responseContext)==null?void 0:G.maxAgeSeconds;if(!J&&!isNaN(C)){var v;_.f("kevlar_use_response_ttl_to_invalidate_cache")?v=(0,_.Oh)()+1E3*C:_.f("kevlar_always_invalidate_cache")&&(v=0);isNaN(v)||(P.expirationTime=v)}_.f("html5_enable_ssap_entity_id")&&J&&P.playerResponse&&(P.playerResponse.cacheMetadata={isCacheHit:!0});_.zU(_.ea).prefetchCache_.clear();J||P.page!=="watch"||P.type!=="reduced"&&u!==1?u=BjS(Y,P,J,!!m,S,W):(Y.publishPageData(P),u=_.Cb());
W=u.then(function(){var a=RK(S);a={endpoint:S,pageType:a,fromHistory:J,response:P};a.navigationDoneMs=_.Fk("nd");Y.fireEvent("yt-navigate-finish",a)});
P.csn&&c&&P.clientSideGrafts&&u.then(Y.attachClientSideGrafts.bind(Y,P,_.wf()));return W};
_.z=mE.prototype;_.z.attachClientSideGrafts=function(Y,S){Y.clientSideGrafts&&S&&Y.clientSideGrafts.forEach(function(P){if(S&&P){var u=_.Re(P);_.f("combine_ve_grafts")?_.BF().graftServerVe(P,S):_.t6(Y.csn,S,u)}})};
_.z.handleSignalActionHistoryBack=function(){window.history.back()};
_.z.handleSignalActionCloseWindow=function(){window.close()};
_.z.handleSignalActionReloadPage=function(){this.reload()};
_.z.handleSignalActionSoftReloadPage=function(){KLt(this)};
_.z.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.z.fireEvent=function(Y,S){Y=new CustomEvent(Y,{bubbles:!0,cancelable:!1,composed:!0,detail:S});this.dispatchEvent(Y)};
_.z.addEventListener=function(Y,S){this.JSC$12184_clientRoot.addEventListener(Y,S)};
_.z.dispatchEvent=function(Y){return this.JSC$12184_clientRoot.dispatchEvent(Y)};
_.z.removeEventListener=function(Y,S){this.JSC$12184_clientRoot.removeEventListener(Y,S)};
mE[Md]=[uN3,_.Pb];_.g$$=new xO("browse","h8y2qb");_.$xE=new xO("search","JzFVk");_.r0Y=new xO("shorts","xwEKAe");_.Goh=new xO("watchFixie","nmfa2d");_.hm$=new xO("watchFlexy","CF909");_.v$E=new xO("watchGrid","Tm0L3c");_.Dx$=new xO("watchLearningJourney","L3n37");var xXs;var n$=function(){return _.Z.apply(this,arguments)||this};
_.r(n$,_.Z);_.y6.Object.defineProperties(n$,{template:{configurable:!0,enumerable:!0,get:function(){if(xXs===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);xXs=Y}Y=xXs;return Y}}});
_.Q([_.p(xNu.YtPlayerBehavior),_.k("design:type",Object)],n$.prototype,"ytPlayerBehavior",void 0);n$=_.Q([_.t({is:"ytd-player"})],n$);var bgL;var Tjs;var KjL;var jM=function(){var Y=_.Z.apply(this,arguments)||this;Y.forceModernIconButton=!1;Y.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return Y};
_.r(jM,_.Z);jM.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]]"}}}}}};
jM.prototype.handleAccountLinkingStateChangedCommand=function(Y){if(Y=_.g(Y,tjS)){var S,P=(S=this.data)==null?void 0:S.providerKey;S=Y.providerKey;P&&S&&P.id===S.id&&P.subject===S.subject&&(Y=Y.linked,Y!==void 0&&(this.set("data.linked",Y),this.notifyPath("data.linked"),_.f("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(Y)))}};
jM.prototype.setPlayerAccountLinkState=function(Y){var S=new WH$;uTu(S,zRY(new m9a,Y));var P=_.Q5();P&&P.getPlayerPromise().then(function(u){u.setAccountLinkState(_.QB(S.JSC$9931_serializeBinary(),4));u.updateAccountLinkingConfig(Y)})};
jM.prototype.handleShowAccountLinkDialog=function(){var Y=this.get("button.buttonRenderer.command");Y&&_.RA([Y],this.hostElement)};
_.y6.Object.defineProperties(jM.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],jM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.Q([_.p([_.tD.YtActionHandlerBehavior]),_.k("design:type",Object)],jM.prototype,"actionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],jM.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],jM.prototype,"overrides",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],jM.prototype,"forceModernIconButton",void 0);_.Q([_.X({value:"bottom"}),_.k("design:type",String)],jM.prototype,"buttonTooltipPosition",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],jM.prototype,"forceIconButton",void 0);_.Q([_.X(),_.k("design:type",Boolean)],jM.prototype,"disableTextTransform",void 0);
_.Q([_.d("data","data.linked","data.isWarning"),_.k("design:type",Object),_.k("design:paramtypes",[])],jM.prototype,"button",null);jM=_.Q([_.t({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],jM);
_.A(jM,"ytd-account-link-button-renderer",function(){if(KjL!==void 0)return KjL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return KjL=Y},{mode:1});var E83;var fam=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Jd=function(){return _.Z.apply(this,arguments)||this};
_.r(Jd,_.Z);Jd.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Jd.prototype.updateButtonActiveState=function(){var Y=this,S=!!fam.find(function(P){return Y.currentState===P});
this.button&&(this.button.isPressed=S)};
_.y6.Object.defineProperties(Jd.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.playlistLoopStateEntity)==null?void 0:Y.state)||((S=this.data)==null?void 0:S.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var Y=void 0,S;if(this.currentState&&((S=this.data)==null?0:S.states)){S=_.n(this.data.states);for(var P=S.next();!P.done;P=S.next()){P=_.g(P.value,_.nM6);var u=void 0;if(((u=P)==null?void 0:u.state)===this.currentState){Y=P;break}}}return Y}}});
Jd.prototype.updateButtonActiveState=Jd.prototype.updateButtonActiveState;_.Q([_.p(_.Gn),_.k("design:type",Object)],Jd.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.wCu}),_.k("design:type",Object)],Jd.prototype,"playlistLoopStateEntity",void 0);_.Q([_.X(),_.k("design:type",Object)],Jd.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Jd.prototype,"forceIconOnly",void 0);_.Q([_.nc("ytd-button-renderer"),_.k("design:type",_.ls)],Jd.prototype,"button",void 0);
_.Q([_.d("data","playlistLoopStateEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],Jd.prototype,"currentState",null);_.Q([_.zY("currentButtonStateRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jd.prototype,"updateButtonActiveState",null);_.Q([_.d("currentState"),_.k("design:type",Object),_.k("design:paramtypes",[])],Jd.prototype,"currentButtonStateRenderer",null);
Jd=_.Q([_.t({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Jd);
_.A(Jd,"ytd-playlist-loop-button-renderer",function(){if(E83!==void 0)return E83;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return E83=Y},
{mode:1});var g8S;var $Xs=_.Td("DOWNLOAD",{},"Download"),r3t=_.Td("DOWNLOADING",{},"Downloading"),GFs=_.Td("DOWNLOADED",{},"Downloaded"),hZd=_.Td("RETRY",{},"Retry"),Bb=function(){var Y=_.Z.apply(this,arguments)||this;Y.forceIconButton=!1;Y.forceIconOnly=!1;Y.overrides=!1;Y.buttonTooltipPosition=!1;Y.styleActionButton=!1;Y.disableTextTransform=!1;Y.downloadProgress=0;Y.isDownloadComplete=!1;Y.isHidden=!0;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.isVideoDeletedByUser=!1;Y.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return Y};
_.r(Bb,_.Z);_.z=Bb.prototype;_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.z.dataChanged=function(){var Y;(Y=this.data)!=null&&Y.text||(Y=_.sC(_.Na().getState(),this.videoId),this.updateButtonState(Y))};
_.z.computeVideoId=function(Y){return Y};
_.z.showHideButton=function(){this.updateButtonVisibility()};
_.z.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};
_.z.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.z.updateButtonState=function(Y){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==r3t||!_.fA(Y))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(Y){case "TRANSFER_STATE_UNKNOWN":Y=$Xs;var S="OFFLINE_DOWNLOAD";var P="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":Y=hZd;S="OFFLINE_DOWNLOAD";P="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":Y=GFs;S="OFFLINE_PIN";P="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Y=
r3t;S="OFFLINE_DOWNLOADING_ZERO";P="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Y=hZd;S="OFFLINE_DOWNLOAD";P="ACTION_RETRY";break;default:Y=$Xs,S="OFFLINE_DOWNLOAD",P="ACTION_ADD"}this.isVideoDeletedByUser&&(Y=$Xs,S="OFFLINE_DOWNLOAD",P="ACTION_ADD");var u=Object.assign({},this.data);u.text=_.kW(Y);u.tooltip=Y;u.icon={iconType:S};u.size="SIZE_DEFAULT";u.style="STYLE_DEFAULT";_.g(u.command,_.mA)&&(_.g(u.command,_.mA).action=P);this.set("data",u)}};
_.z.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var Y="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?Y="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?Y="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?Y="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?Y="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?Y="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(Y="OFFLINE_PIN",this.isDownloadComplete=!0);var S;Y!==((S=this.data.icon)==null?void 0:S.iconType)&&(S=Object.assign({},this.data),S.text=_.kW(r3t),S.tooltip=r3t,S.icon={iconType:Y},_.g(S.command,_.mA)&&(_.g(S.command,_.mA).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",S))}};
Bb.prototype.updateProgress=Bb.prototype.updateProgress;Bb.prototype.onTransferStateChanged=Bb.prototype.onTransferStateChanged;Bb.prototype.showHideButton=Bb.prototype.showHideButton;Bb.prototype.dataChanged=Bb.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Bb.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Bb.prototype,"forceIconButton",void 0);
_.Q([_.X(),_.k("design:type",Object)],Bb.prototype,"forceIconOnly",void 0);_.Q([_.X(),_.k("design:type",Object)],Bb.prototype,"overrides",void 0);_.Q([_.X(),_.k("design:type",Object)],Bb.prototype,"buttonTooltipPosition",void 0);_.Q([_.X(),_.k("design:type",Object)],Bb.prototype,"styleActionButton",void 0);_.Q([_.X(),_.k("design:type",Object)],Bb.prototype,"disableTextTransform",void 0);
_.Q([_.X({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.k("design:type",String)],Bb.prototype,"videoId",void 0);_.Q([_.X(),_.k("design:type",Object)],Bb.prototype,"data",void 0);_.Q([_.X({selector:lI,selectorArgs:["videoId"]}),_.k("design:type",Object)],Bb.prototype,"downloadProgress",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Bb.prototype,"isDownloadComplete",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Bb.prototype,"isHidden",void 0);_.Q([_.X({selector:_.sC,selectorArgs:["videoId"]}),_.k("design:type",String)],Bb.prototype,"transferState",void 0);_.Q([_.X({selector:_.vpX,selectorArgs:["videoId"]}),_.k("design:type",Object)],Bb.prototype,"isVideoDeletedByUser",void 0);_.Q([_.X({selector:gp9,selectorArgs:["videoId"]}),_.k("design:type",Object)],Bb.prototype,"offlineabilityState",void 0);
_.Q([_.X({value:!0}),_.k("design:type",Boolean)],Bb.prototype,"showTooltips",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],Bb.prototype,"sendCommandWhenDisabled",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Bb.prototype,"disabled",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bb.prototype,"dataChanged",null);
_.Q([_.cZ("offlineabilityState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bb.prototype,"showHideButton",null);_.Q([_.cZ("transferState","isVideoDeletedByUser"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bb.prototype,"onTransferStateChanged",null);_.Q([_.cZ("downloadProgress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bb.prototype,"updateProgress",null);
Bb=_.Q([_.t({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Bb);
_.A(Bb,"ytd-download-button-renderer",function(){if(g8S!==void 0)return g8S;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return g8S=Y},{mode:2});var v8t;var DX_,Ia_=function(){if(DX_!==void 0)return DX_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return DX_=Y};var aaf=_.f("web_button_rework")&&_.Z4("BUTTON_REWORK")||_.f("web_button_rework_with_live"),LjS=_.z_("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,cb=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPressed=!1;Y.forceIconButton=!1;Y.forceIconOnly=!1;Y.forceModernIconButton=!1;Y.alignByText=!1;Y.isShorts=!1;Y.animatedText=!1;Y.shouldAnimate=!1;Y.JSC$12222_browserSupportsAnimation=_.f("web_supports_animations_api");Y.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};Y.onTap=function(){var S;if((S=Y.data)==null||!S.defaultNavigationEndpoint){var P;S=!((P=Y.data)==null?0:P.isToggled);var u;if((u=Y.data)==null||!u.preventAutoToggle){Y.shouldAnimate=!1;Y.disableTextUpdateJobId&&_.wc.cancelJob(Y.disableTextUpdateJobId);Y.disableTextUpdateJobId=_.wc.addLowPriorityJob(function(){Y.disableTextUpdateJobId=void 0},LjS);
var W;Y.set("data.isToggled",!((W=Y.data)==null?0:W.isToggled));P=Y.getInnertubeIcon();u={toggled:S,actions:{}};P&&(u.actions[P.toLowerCase()]=S);_.ms(Y.hostElement,"yt-toggle-button",u)}}};
return Y};
_.r(cb,_.Z);_.z=cb.prototype;_.z.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.wc.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.z.toggle=function(Y){var S;this.set("data.isToggled",Y!==void 0?Y:!((S=this.data)==null?0:S.isToggled))};
_.z.handleUpdateToggleButtonStateCommand=function(Y){if(this.data){Y=_.g(Y,eku);var S,P,u,W=(S=this.data)==null?void 0:(P=S.toggleButtonSupportedData)==null?void 0:(u=P.toggleButtonIdData)==null?void 0:u.id;W&&Y&&W===(Y==null?void 0:Y.buttonId)&&this.set("data.isToggled",Y.toggled)}};
_.z.handleUpdateToggleButtonTextAction=function(Y){if(this.data){Y=_.g(Y,gm_);var S,P,u,W=(S=this.data)==null?void 0:(P=S.toggleButtonSupportedData)==null?void 0:(u=P.toggleButtonIdData)==null?void 0:u.id;W&&Y&&W===(Y==null?void 0:Y.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=Y.defaultNumericalValue,this.set("data.defaultText",Y.defaultText),this.set("data.toggledText",Y.toggledText),this.shouldAnimate=!1)}};
_.z.getInnertubeIcon=function(){var Y=this.data;if(Y){var S,P,u=((S=Y.defaultIcon)==null?0:S.iconType)?(P=Y.defaultIcon)==null?void 0:P.iconType:null,W,m;S=((W=Y.toggledIcon)==null?0:W.iconType)?(m=Y.toggledIcon)==null?void 0:m.iconType:u;return Y.isToggled?S:u}};
_.z.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.y6.Object.defineProperties(cb.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$12222_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var S=Y.renderer;var P=Y.element;var u=Y.toggled;var W=Y.onTapCallback;var m=Y.commandClientArgs;var J=Y.overrides;var c=Y.forceIcon;var C=Y.forceModernIconButton;var x=Y.forceDisabled;var b=Y.useAnimatedText;var T=Y.animatedTextProps;Y=dNE(S,u);c=!S.defaultIcon||!c&&S.defaultText?S.defaultIcon?"leading":void 0:C?"icon-only":"icon-only-40";c==="icon-only-40"&&(Y.type="text");var K;C=Object;var G=C.assign,v;a:switch((v=
S.style)==null?void 0:v.styleType){case "STYLE_COMPACT_GRAY":v={size:"S"};break a;default:v={size:"M"}}var a=!!u;var w=(w=u&&S.toggledText||S.defaultText)?_.$J(w):void 0;b?(b=_.Ma(u&&S.toggledText||S.defaultText))&&T&&!isNaN(Number(T.numberValue))?(T.numberText=b,u&&(T.numberValue+=1),b=T):b=void 0:b=void 0;var F,U,V,M;var zJ=(T=((U=u?S.toggledAccessibilityData||((zJ=S.toggledText)==null?void 0:zJ.accessibility):S.accessibilityData||((F=S.defaultText)==null?void 0:F.accessibility))==null?void 0:(V=
U.accessibilityData)==null?void 0:V.label)||((M=S.accessibility)==null?void 0:M.label))?T:_.Ma(u&&S.toggledText||S.defaultText);x=x===void 0?S.isDisabled:x;P=scX(S,u,W,P,m);u=F_K(S,u);u!=null&&u.length?(u=_.Ie({innertubeCommand:rRu(u),forceNewState:!0}),u=GhU(u)?u:void 0):u=void 0;S=G.call(C,{},Y,v,{iconPosition:c},J,{focused:!1,toggled:a,toggleable:!0,formattedButtonText:w,animatedTextProps:b,accessibilityLabel:zJ,disabled:x,onTap:P,aTagConfig:u},OUE((K=S.colorData)==null?void 0:K.basicColorPaletteData));
S.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(S.type="filled");return S}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var Y=this.getInnertubeIcon();if(Y)return _.u2(Y)}}});
cb.prototype.resetAnimation=cb.prototype.resetAnimation;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],cb.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],cb.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],cb.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],cb.prototype,"isPressed",void 0);_.Q([_.X(),_.k("design:type",Object)],cb.prototype,"forceIconButton",void 0);_.Q([_.X(),_.k("design:type",Object)],cb.prototype,"forceIconOnly",void 0);_.Q([_.X(),_.k("design:type",Object)],cb.prototype,"forceModernIconButton",void 0);_.Q([_.X(),_.k("design:type",Object)],cb.prototype,"alignByText",void 0);_.Q([_.X(),_.k("design:type",Object)],cb.prototype,"overrides",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],cb.prototype,"disabled",void 0);_.Q([_.X(),_.k("design:type",Object)],cb.prototype,"isShorts",void 0);_.Q([_.X(),_.k("design:type",Object)],cb.prototype,"buttonTooltipPosition",void 0);_.Q([_.X(),_.k("design:type",Object)],cb.prototype,"animatedText",void 0);_.Q([_.X(),_.k("design:type",String)],cb.prototype,"textNumberValue",void 0);_.Q([_.X({computed:"computeTooltip(data, data.isToggled)"}),_.k("design:type",Object)],cb.prototype,"tooltip",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cb.prototype,"resetAnimation",null);_.Q([_.d("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.k("design:type",Object),_.k("design:paramtypes",[])],cb.prototype,"computedButtonShape",null);_.Q([_.d("data.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],cb.prototype,"computedIcon",null);
cb=_.Q([_.t({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],cb);aaf&&_.A(cb,"ytd-toggle-button-renderer",Ia_,{mode:_.OX("kevlar_poly_si_batch_j081")?1:2});var kOU=[],Mx$=!1;_.Sr(HKu);var wod,poL;wod=_.AI(function(Y){function S(x){var b;return _.B(function(T){if(T.nextAddress==1)return(b=!ZKa(x,c())||!c().enabled)?T.jumpTo(2):_.q(T,UNE(),3);T.nextAddress!=2&&(b=T.yieldResult);if(b)return T.return();P();setTimeout(function(){J(!1)},1500);
_.Yt(T)})}
function P(){setTimeout(function(){J(!0);var x;(x=u.lottieEl)==null||x.goToAndPlay(0)},150)}
var u=_.uL(),W=_.n(_.qb(!1,void 0,"xffAp")),m=W.next().value,J=W.next().value,c=_.o_(Y.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.LE(function(){var x,b;((x=Y.settings)==null?void 0:(b=x.call(Y))==null?void 0:b.uniqueId)==="this is not intended behavior"&&_.sf(new _.$2("Smartimation Settings is undefined"))});
_.D6(function(){c().experimentEnabled&&(c().enabled?iKK(S):(J(!1),oj9(S)),_.aI(function(){oj9(S)}))});
_.D6(function(){c().timings.join("");c().experimentEnabled&&(txX(c()),_.aI(function(){AaY(c())}))});
var C=_.fJ(function(){return l$K(u,c())},void 0,"d96jJc");
W={};return _.R("yt-smartimation",{class:_.Si(Y.className,"smartimation",(W["smartimation--experiment-enabled"]=function(){return c().experimentEnabled},W["smartimation--active-border"]=m,W["smartimation--enable-masking"]=VxJ(),W))},_.R(_.gw,{cond:function(){return c().experimentEnabled},
then:function(){return _.R("div",{class:"smartimation__border"},_.R(_.PX,{className:"smartimation__border-gradient",data:C,animationName:function(){return C().animationConfig.name}}))}}),_.R("div",{class:"smartimation__content"},Y.children))},"x");
_.lzJ=_.f("web_enable_sink_smartimations")?wod:HKu;poL=_.f("web_enable_sink_smartimations")?wod:_.WX(HKu);wod.idomCompat=!0;_.f("web_enable_sink_smartimations")?_.AL(poL,"yt-smartimation",{props:{className:_.wm,settings:_.wm}}):_.Vz(_.lzJ,"yt-smartimation",{propNames:["className","settings"]});var C$=function(){var Y=_.Z.apply(this,arguments)||this;Y.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};Y.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};Y.shouldEnableSmartimation=!1;return Y};
_.r(C$,_.Z);C$.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
C$.prototype.onDataChanged=function(){var Y,S;this.shouldEnableSmartimation=(((Y=this.data)==null?void 0:(S=Y.timedAnimationData)==null?void 0:S.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
C$.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var Y=_.g(this.data.likeButton,_.a8),S=_.g(this.data.dislikeButton,_.a8);return!!((Y==null?0:Y.isToggled)||(S==null?0:S.isToggled))};
C$.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]]"}}}}}};
_.y6.Object.defineProperties(C$.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=((Y=this.data)==null?void 0:(S=Y.timedAnimationData)==null?void 0:S.animationTiming)||[];return{uniqueId:"like-dislike",timings:P,enabled:this.shouldEnableSmartimation,experimentEnabled:P.length>0}}}});
C$.prototype.onDataChanged=C$.prototype.onDataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],C$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],C$.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],C$.prototype,"likeButtonOverride",void 0);_.Q([_.X(),_.k("design:type",Object)],C$.prototype,"dislikeButtonOverride",void 0);
_.Q([_.d("shouldEnableSmartimation"),_.k("design:type",Object),_.k("design:paramtypes",[])],C$.prototype,"smartimationSettings",null);_.Q([_.zY("data"),_.WZ("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C$.prototype,"onDataChanged",null);C$=_.Q([_.t({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],C$);
_.A(C$,"ytd-segmented-like-dislike-button-renderer",function(){if(v8t!==void 0)return v8t;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return v8t=Y},{mode:1});var FjJ;var sGm;(sGm=document.body)==null||sGm.setAttribute("rounded-container","");var dXU={};dXU.YtToggleButtonBehavior=[_.tD.YtActionHandlerBehavior,W0.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var Y=this.data.isToggled;if(!this.isModal_(Y)){if(!this.data.preventAutoToggle){this.toggle();var S={toggled:this.data.isToggled,actions:{}};S.actions[this.buttonIcon]=this.data.isToggled;_.ms(this.hostElement,"yt-toggle-button",S)}S=this.data.defaultServiceEndpoint||null;var P=this.data.toggledServiceEndpoint||null;if(S&&P||S&&this.data.preventAutoToggle)Y=Y?P:S,S=this.disableCommandHandlerOverride,_.f("killswitch_toggle_button_behavior_resolve_command")||S?_.Bu(this.hostElement,
[Y]):_.m4(Y,this.hostElement),_.ms(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:Y})}},
stateChanged_:function(){var Y=this.data;if(Y){var S=Y.isToggled;this._setEndpoint(this.computeEndpoint_(Y));this._setServiceEndpoint(this.computeServiceEndpoint_(Y));this._setButtonIcon(this.computeButtonIcon_(Y,S));this._setButtonText(this.computeButtonText_(Y,S));this._setButtonAccessibility(this.computeAccessibility_(Y,S));this._setButtonTooltip(this.computeTooltip_(Y,S));this._setButtonClass(this.computeButtonClass_(Y,S));this._setIconPositionType(this.computeIconPositionType_(Y));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=S):this.elements_.button.setAttribute("aria-pressed",S));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=S)}},
shouldSetIconActiveState_:function(){return _.f("kevlar_system_icons")},
toggle:function(Y){this.set("data.isToggled",Y!==void 0?Y:!this.data.isToggled);_.f("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(Y){if(Y){var S,P;return!!((S=this.data)==null?0:(P=S.toggledServiceEndpoint)==null?0:P.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(Y){return Y&&Y.defaultNavigationEndpoint||null},
computeButtonIcon_:function(Y,S){var P=Y&&Y.defaultIcon?_.u2(Y.defaultIcon.iconType):null;Y=Y&&Y.toggledIcon?_.u2(Y.toggledIcon.iconType):P;return S?Y:P},
handleUpdateToggleButtonStateCommand_:function(Y){Y=Y.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==Y.buttonId&&this.toggle(Y.toggled)},
computeButtonText_:function(Y,S){return Y?S&&Y.toggledText||Y.defaultText||null:null},
computeAccessibility_:function(Y,S){return Y?(S?this.get("toggledAccessibilityData.accessibilityData",Y):this.get("accessibilityData.accessibilityData",Y))||Y.accessibility||null:null},
computeTooltip_:function(Y,S){return Y?S&&Y.toggledTooltip||Y.defaultTooltip||null:null},
computeButtonClass_:function(Y,S){if(!Y)return"";var P="",u=Y.toggledStyle||Y.style;if(S=S?u:Y.style){S.styleType&&(S=S.styleType);try{P+=S.toLowerCase().replace(/_/g,"-")+" "}catch(W){_.d6(W,S,typeof S),_.sf(W)}}if(Y=Y.size){Y.sizeType&&(Y=Y.sizeType);try{P+=Y.toLowerCase().replace(/_/g,"-")+" "}catch(W){_.d6(W,Y,typeof Y),_.sf(W)}}return P.trim()},
computeIconPositionType_:function(Y){return Y&&Y.iconPosition||null},
computeServiceEndpoint_:function(Y){var S=Y&&Y.serviceEndpoint,P=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return S?S:P&&Y.command?Y.command:null},
handleUpdateToggleButtonTextAction_:function(Y){Y=Y.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==Y.buttonId&&(this.set("data.defaultText",Y.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",Y.toggledText),this.notifyPath("data.toggledText"))}}];_.$s("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var lah=_.f("web_button_rework")&&_.Z4("BUTTON_REWORK")||_.f("web_button_rework_with_live"),qH=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.f("kevlar_system_icons");Y.roundedContainer=!0;return Y};
_.r(qH,_.Z);qH.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
qH.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var Y=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var S={toggled:!!this.data.isToggled,actions:{}};S.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var P,u;S.actions.playlistId=(P=this.data.defaultServiceEndpoint)==null?void 0:(u=P.playlistEditEndpoint)==null?void 0:u.playlistId;_.ms(this.hostElement,"yt-toggle-button",S)}(Y=Y?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(Y)}};
qH.prototype.onYtNavigate=function(Y){var S=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(Y.detail.endpoint);S&&(Y.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(S))};
_.y6.Object.defineProperties(qH,{template:{configurable:!0,enumerable:!0,get:function(){if(FjJ===void 0){var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);FjJ=Y}Y=FjJ;return Y}}});
qH.prototype.onYtNavigate=qH.prototype.onYtNavigate;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],qH.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],qH.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.p(dXU.YtToggleButtonBehavior),_.k("design:type",Object)],qH.prototype,"ytToggleButtonBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],qH.prototype,"data",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],qH.prototype,"showTooltips",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],qH.prototype,"systemIcons",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],qH.prototype,"roundedContainer",void 0);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],qH.prototype,"onYtNavigate",null);
qH=_.Q([_.t({is:"ytd-toggle-button-renderer",disableElementRegistration:lah})],qH);var Xo3;_.Rr=new _.yH("PANEL_CONTROLLER_TOKEN");_.xx=new _.yH("SHEET_CONTROLLER_TOKEN");_.bn=new _.yH("DIALOG_CONTROLLER_TOKEN");Xo3=new _.yH("DIALOG_CONTAINER_TOKEN");var mXJ=_.Td("DOWNLOAD",{},"Download"),n8Y=_.Td("DOWNLOADING",{},"Downloading"),jGa=_.Td("DOWNLOADED",{},"Downloaded"),J3u=_.Td("RETRY",{},"Retry");var ZgU=_.AI(function(Y){var S=Tjh,P=function(){return""},u=qoY(Y.data),W=RZE(Y.data),m=xXh(Y.data),J=bgU(Y.data);
S=function(){var c=Y.data(),C=Wja(c,u(),W(),m(),J()),x=!!c.videoId,b=C.text;return{title:x?b:void 0,tooltip:x?void 0:b,accessibilityText:b,onTap:C.onTap,iconName:C.iconType,style:c.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:C.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:c.buttonSize}};
P={};P=_.Si("ytDownloadButtonViewModelHost",(P.ytDownloadButtonViewModelIsHidden=function(){var c=Y.data(),C=J();return c.playlistId||C()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||C()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},P));
return _.R("download-button-view-model",{class:P},_.R(_.aq,{data:S}))},"y");
ZgU.idomCompat=!0;_.Sr(fau);_.Sr(KjU);var o8f=_.AI(function(Y){var S=Y.backgroundLottieRef;var P=Y.foregroundLottieRef;var u=Y.children;var W=Y.wrapperClass;var m=Y.disableAnimation;Y=function(){return(_.f("web_animated_actions")||_.f("web_animated_actions_v2"))&&!(m==null?0:m())};
return _.R("yt-animated-action",{class:_.Si("animated-action__container",W)},_.R("div",{class:"animated-action__content-with-background"},_.R(_.gw,{cond:Y,then:function(){return _.R(igu,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:S==null?void 0:S(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(g8K()?"dark":"light")+"_v5.json"}}}})}}),u),_.R(_.gw,{cond:Y,
then:function(){return _.R(igu,{lottiePlayerProps:function(){return{animationRef:P==null?void 0:P(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(g8K()?"dark":"light")+"_v4.json"}}}})}}))},"z");
o8f.idomCompat=!0;var eZ8=_.f("web_enable_sink_animated_actions")?o8f:fau,tEf=_.f("web_enable_sink_animated_actions")?o8f:_.WX(fau),igu=_.AI(function(Y){var S=Y.wrapperClass;var P=Y.lottieClass;var u=Y.lottiePlayerProps;return _.R("div",{class:_.Si("animated-action__lottie",S),"aria-hidden":"true"},_.R(_.PX,{className:P,data:u,animationName:function(){return u().animationConfig.name}}))},"A");var $Xf={isOpen:!1};var GFh={isAllowed:!1};var v8a={errorMessage:"",title:"",privacy:"",isDisabled:!0};var IaY={isOpen:!1};var LjK={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var A3J={response:void 0};var poU=function(Y,S){Y=Y===void 0?A3J:Y;switch(S.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},Y,{response:S.payload});default:return Y}};var UXt={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var FjX=function(Y,S){Y=Y===void 0?UXt:Y;switch(S.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},Y,{nextDisabled:S.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},Y,{nextCommand:S.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},Y,{footerSubmissionData:S.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},Y,{isImpersonationValid:S.payload});default:return Y}};var QGt={reportFormData:void 0,reportDetailsFormData:void 0};var sGu=function(Y,S){Y=Y===void 0?QGt:Y;switch(S.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},Y,{reportFormData:S.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},Y,{reportDetailsFormData:S.payload});default:return Y}};var kF6=void 0;_.f("mweb_enable_redux_store_on_demand")||(kF6=new yc(dXh()));var VEY=_.AI(function(Y){Y=_.tI(Y,{themeOverride:void 0,animationRef:{}});var S=Y.animatedIconType,P=Y.active,u=Y.themeOverride,W=Y.animationRef;Y=Y.staticIconFn;var m=_.n(_.qb(void 0,void 0,"P5a72b")),J=m.next().value,c=m.next().value,C=function(){a:{var w=S();var F=u==null?void 0:u();var U;F=(F==null?void 0:F.useDarkTheme)||((U=_.E().resolve(_.PQ(_.F5)))==null?void 0:U());switch(w){case "LIKE":b:{kF6||(kF6=new yc(dXh()));if((w=FtE(kF6.getState()))&&w.animationStyle)switch(w.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":w=
XoJ({name:F?"valentines25_heart_dark":"valentines25_heart_light",path:F?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":w=XoJ({name:F?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:F?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":w=
XoJ({name:F?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:F?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}w=void 0}if(w){F=w;break a}F="animated_like_icon_"+(F?"dark_v4":"light_v4");F={lottiePlayerProps:{animationConfig:{name:F,path:la$("animated_like_icon",F),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":F={lottiePlayerProps:{animationConfig:{name:F?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(F?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}F=void 0}return F},x=function(){var w,F;
return(F=(w=C())==null?void 0:w.lottiePlayerProps.animationConfig.name)!=null?F:""},b=function(){if(C()){var w=C().lottiePlayerProps.animationConfig.path;
return Ys.get(w)||J()}};
m=_.n(_.qb(!1,void 0,"h6xR3c"));var T=m.next().value;m=m.next().value;var K=ig8(m),G=function(){var w=C(),F,U,V;return(V=w==null?void 0:(F=w.lottiePlayerProps.animationConfig)==null?void 0:(U=F.rendererSettings)==null?void 0:U.className)!=null?V:""},v=void 0,a=void 0;
_.D6(function(){var w=C(),F=x(),U=b(),V=T(),M=P();if(w&&(a!==F&&(a=F,v=M,F=W(),K.animationConfig=w.lottiePlayerProps.animationConfig,K.animationRef=F,U&&(K.animationConfig.animationData=U,K.animationConfig.path=void 0),F=w.lottiePlayerProps.animationConfig.path,!Ys.get(F)&&w.lazyLoad&&F&&Zgh(F,c)),!(V||w.lazyLoad&&!U))){if(U=!W().lottieEl)M?(V=w.totalFrames,K.animationConfig.initialSegment=[V-1,V]):K.animationConfig.initialSegment=void 0;if(v!==M&&!U)if(U=W(),M){var zJ;(zJ=U.lottieEl)==null||zJ.playSegments([0,
w.totalFrames],!0)}else{var O;(O=U.lottieEl)==null||O.playSegments([0,1],!0)}v=M}});
return _.R("animated-icon",{class:"ytAnimatedIconHost"},_.R(_.gw,{cond:function(){var w,F;return!((w=C())==null||!w.lottiePlayerProps.animationConfig.path||((F=C())==null?0:F.lazyLoad)&&!b()||T())},
then:function(){return _.R(_.PX,{data:K,animationName:x,className:G,animationRef:W})},
else:Y}))},"B");_.Sr(OgY);var ME6,Nju;ME6=_.AI(function(Y){var S=_.Ms(),P=_.Ms(),u=_.Ms(),W=_.uL(),m=_.uL(),J=_.uL(),c=_.Jq(_.YI,function(){return Y.data().stateEntityStoreKey}),C=_.Jq(vj9,function(){var tu,$_;
return($_=(tu=Y.data().notificationStateEntityStoreKeys)==null?void 0:tu.subsNotificationStateKey)!=null?$_:""}),x=function(){return!Y.data().enableSubscribeButtonPostClickAnimation},b=_.n(_.qb(0,void 0,"LZz2ld")),T=b.next().value,K=b.next().value;
b=_.n(_.qb(0,void 0,"DTJZzd"));var G=b.next().value,v=b.next().value;b=_.n(_.qb(!1,void 0,"vYdJ9e"));var a=b.next().value,w=b.next().value;b=_.n(_.qb(!1,void 0,"HsSmhb"));var F=b.next().value,U=b.next().value,V=!1,M="";b=_.n(_.qb(!1,void 0,"p20o0d"));var zJ=b.next().value,O=b.next().value,ca=function(){U(!0);_.bL(_.wc,function(){U(!1)},1500)};
_.D6(function(){var tu=F();CJ(function(){tu&&!x()&&c()&&zYu(W,m,J)})});
_.D6(function(){var tu=c();CJ(function(){if(!x()&&tu){var $_;(($_=Y.animateWidth)==null?0:$_.call(Y))&&Wk8(S.value,!!tu.subscribed,T(),G());tu.subscribed&&tu.key===M&&ca();tu.key&&(M=tu.key)}})});
b=_.fJ(function(){var tu,$_,fu,G3=Y.data(),wd=!((tu=c())==null||!tu.subscribed);tu=!(($_=Y.isOverlay)==null||!$_.call(Y));$_=a()?S.value:void 0;var Wd=(fu=C())==null?void 0:fu.state;fu=zJ();uS8(G3,Wd);return BL({model:G3,subscribed:wd,isOverlay:tu,element:$_,notificationState:Wd,disableTextEllipsis:!0,focused:fu})},void 0,"CJfYod");
var hu=function(){var tu;if(!x()&&((tu=Y.animateWidth)==null?0:tu.call(Y))&&(P==null?0:P.value)&&(u==null?0:u.value)&&!V){tu=c();var $_=_.n((tu==null?0:tu.subscribed)?[P,u]:[u,P]),fu=$_.next().value;$_=$_.next().value;fu=Math.ceil(fu.value.getBoundingClientRect().width);$_=Math.ceil($_.value.getBoundingClientRect().width);K(fu);v($_);Wk8(S.value,!(tu==null||!tu.subscribed),fu,$_);V=!0}},ah=_.mR(function(tu){hu();
var $_=c();$_&&(tu.detail.endpoint.subscribeEndpoint||tu.detail.endpoint.unsubscribeEndpoint)&&SAf(S.value,!$_.subscribed,$_)}),va=function(){var tu=_.E().resolve(_.PQ(_.Tz));
tu&&O(tu.isKeyBoardInUse())},yX=function(){O(!1)};
_.kG("yt-player-subscribe",function(tu){var $_=c();$_&&tu===Y.data().channelId&&SAf(S.value,!0,$_)});
_.kG("yt-player-unsubscribe",function(tu){var $_=c();$_&&tu===Y.data().channelId&&SAf(S.value,!1,$_)});
_.kG("yt-update-subscribe-button-action",function(tu){tu=_.g(tu,Hga);var $_=c();$_&&tu&&tu.channelId===Y.data().channelId&&SAf(S.value,!!tu.subscribed,$_)});
_.LE(function(){S.value&&(S.value.addEventListener("focusin",va),S.value.addEventListener("focusout",yX));var tu=_.hp(_.wc,function(){hu()});
w(!0);_.aI(function(){_.wc.cancelJob(tu);S.value&&(S.value.removeEventListener("focusin",va),S.value.removeEventListener("focusout",yX))})});
var la=function(){var tu,$_,fu;if(fu=!((tu=c())==null||!tu.subscribed))tu=!!Y.data().disableNotificationBell,fu=($_=C())==null?void 0:$_.state,fu=!tu&&!!fu;return fu},w1=function(){var tu;
return!((tu=c())==null?0:tu.subscribed)},U9=function(){var tu,$_;
if($_=w1()){$_=!!Y.data().disableNotificationBell;var fu=(tu=C())==null?void 0:tu.state;$_=!$_&&!!fu}return $_},nu={},Yc={};
return _.R("yt-subscribe-button-view-model",{class:_.Si("yt-subscribe-button-view-model-wiz",(nu["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var tu,$_;return!((tu=c())==null||!tu.subscribed)&&(($_=Y.animateWidth)==null?void 0:$_.call(Y))&&F()},nu["yt-subscribe-button-view-model-wiz--hidden"]=function(){var tu;
return!((tu=c())==null?0:tu.subscribed)&&Y.data().hideWhenUnsubscribed},nu)),
el:S,"on:yt-service-request-sent":ah},_.R(tEf,{backgroundLottieRef:W,foregroundLottieRef:m,wrapperClass:_.Si("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(Yc["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var tu;return((tu=Y.animateWidth)==null?void 0:tu.call(Y))&&F()},Yc["yt-subscribe-button-view-model-wiz__static-width"]=function(){var tu;
return!((tu=Y.animateWidth)==null?0:tu.call(Y))},Yc)),
disableAnimation:x},_.R("div",{el:P,class:"yt-subscribe-button-view-model-wiz__container"},_.R(HL,{data:b,icon:function(){return _.R(_.gw,{cond:la,then:function(){var tu=function(){var $_;return YAf(($_=C())==null?void 0:$_.state)};
return _.R(_.gw,{cond:function(){return x()||tu()!=="NOTIFICATIONS_NONE"},
then:function(){return _.R(_.BX,{icon:tu})},
else:function(){return _.R(VEY,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:J})}})}})},
secondaryIconName:function(){return la()?"EXPAND":void 0}}))),_.R("div",{el:u,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.R(_.gw,{cond:function(){var tu;return((tu=Y.animateWidth)==null?void 0:tu.call(Y))&&!x()&&!V},
then:function(){return _.R(HL,{data:_.fJ(function(){var tu;return BL({model:Y.data(),subscribed:w1(),isOverlay:!((tu=Y.isOverlay)==null||!tu.call(Y)),element:S.value,disableTextEllipsis:!0})},void 0,"VQgKbc"),
iconName:function(){var tu;return U9()?YAf((tu=C())==null?void 0:tu.state):void 0},
secondaryIconName:function(){return U9()?"EXPAND":void 0}})}})))},"C");
_.y3d=_.f("web_enable_sink_yt_subscribe_button_view_model")?ME6:OgY;Nju=_.f("web_enable_sink_yt_subscribe_button_view_model")?ME6:_.WX(OgY);ME6.idomCompat=!0;var mf$=new _.yH("RENDERER_STAMPER_OPTIONS_TOKEN");var gv;_.f2=new wZs;gv=new Map;var $fu="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),GGa=["notificationTextRenderer","notificationMultiActionRenderer"],rQK="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
g0E=RY9(function(Y){return _.wK(Y==null?void 0:Y.targetId)}).useUpdatableData;var fzh=0;_.rv.debugName="EjJbCe";var Hgt=_.AI(function(Y){var S=Y.data;var P=_.Jq(_.YI,function(){return S().subscriptionStateEntityKey});
return _.R(_.gw,{cond:function(){var u=S(),W=P();return!u.hideWhenUnsubscribed||(W==null?0:W.subscribed)?_.g(S().button,_.Gz):void 0},
then:function(u){return _.R("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.R(_.aq,{data:u,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var Df$=_.EP({buttonViewModel:_.aq,subscribeButtonViewModel:_.y3d,downloadButtonViewModel:ZgU,toggleButtonViewModel:_.vL,subscribePlusButtonViewModel:Hgt});_.Sr(azh);var VE_=_.AI(function(Y){return _.R(_.rv,{data:function(){return Y.actionRow().actions}},{buttonViewModel:function(S){var P=S.data;
return _.R(TX,{isRow:Y.isRow,isIconOnlyButton:function(){return Lkh(P())},
useIntrinsicWidth:Y.useIntrinsicWidth},_.R(_.aq,{data:P}))},
subscribeButtonViewModel:function(S){return _.R(TX,{isRow:Y.isRow},_.R(Nju,{data:S.data,isOverlay:!1,animateWidth:function(){return!Y.isRow()}}))},
downloadButtonViewModel:function(S){var P=S.data;return _.R(TX,{isRow:Y.isRow,isIconOnlyButton:function(){return!!P().playlistId}},_.R(ZgU,{data:P}))},
toggleButtonViewModel:function(S){var P=S.data;return _.R(TX,{isRow:Y.isRow,isIconOnlyButton:function(){var u=P();return Lkh(_.g(u.isToggled?u.toggledButtonViewModel:u.defaultButtonViewModel,_.Gz))}},_.R(_.vL,{data:P}))},
subscribePlusButtonViewModel:function(S){return _.R(TX,{isRow:Y.isRow},_.R(Hgt,{data:S.data}))}})},"E"),TX=_.AI(function(Y){var S={};
return _.R("div",{class:_.Si("yt-flexible-actions-view-model-wiz__action",(S["yt-flexible-actions-view-model-wiz__action--row-action"]=Y.isRow,S["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=Y.useIntrinsicWidth,S["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,S["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=Y.isIconOnlyButton,S))},Y.children)},"F"),eZu=_.AI(function(Y){var S=function(){var u;
return((u=Y.layout)==null?void 0:u.call(Y))===1},P={};
return _.R("yt-flexible-actions-view-model",{class:_.Si("yt-flexible-actions-view-model-wiz",Y.className,(P["yt-flexible-actions-view-model-wiz--inline"]=function(){return!S()},P["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return Y.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},P))},_.R(_.$Z,{each:function(){return Y.data().actionsRows||[]}},function(u){return _.R(_.gw,{cond:S,
then:function(){return _.R("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.R(VE_,{actionRow:u,isRow:S,useIntrinsicWidth:function(){return!!Y.data().respectActionIntrinsicWidth}}))},
else:function(){return _.R(VE_,{actionRow:u,isRow:S})}})}))},"G"),Og_=_.f("web_enable_sink_yt_flexible_actions_view_model")?eZu:azh,K$=_.f("web_enable_sink_yt_flexible_actions_view_model")?eZu:_.WX(azh);
eZu.idomCompat=!0;_.AL(K$,"yt-flexible-actions-view-model",{props:{data:_.wm,layout:_.wm,justifyContentOverride:_.wm,className:_.wm}});_.Sr(wnY);var YAs,Xnh;YAs=_.AI(function(Y){var S=_.Jq(hg,function(){var W;return(W=Y.data().dislikeEntityKey)!=null?W:""}),P=_.fJ(function(){var W=S();
return W?W.likeStatus==="DISLIKE":_.g(Y.data().toggleButtonViewModel,_.hq).isToggled},void 0,"D8oIFb"),u=_.fJ(function(){return Object.assign({},_.g(Y.data().toggleButtonViewModel,_.hq),{isToggled:P()})},void 0,"shaCXe");
return _.R("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.R(_.vL,{data:u,buttonShapeOverrides:Y.buttonShapeOverrideables,onToggle:function(W){var m=S();m&&W!==(m.likeStatus==="DISLIKE")&&m.key&&_.ip(_.Dw("likeStatusEntity",m.key,{likeStatus:W?"DISLIKE":"INDIFFERENT",hadUserInteraction:W}))}}))},"H");
Xnh=_.f("web_enable_sink_dislike_button_view_model")?YAs:wnY;_.SAs=_.f("web_enable_sink_dislike_button_view_model")?YAs:_.WX(wnY);YAs.idomCompat=!0;_.P5f=_.WX(FkX);_.Sr(FkX);_.Sr(Ze9);_.Vz(Ze9,"segmented-like-dislike-button-view-model",{propNames:["data"]});var QgU=0;_.AL(n48,"account-link-button-view-model",{props:{data:_.wm,className:_.tL,setMinWidth:_.tL,forceIconOnly:_.tL}});_.$s("menuRenderer","menuRenderer","ytd-menu-renderer");
var uSu={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"}},
Wku=_.f("web_fix_missing_action_buttons")?100:200,EO=function(){var Y=_.Z.apply(this,arguments)||this;Y.safeArea=!_.f("kevlar_flex_menu_safe_area_killswitch");Y.tonalOverride=!1;Y.threeDotSize="M";Y.isOverlay=!1;Y.useOverlayDark=!1;Y.topLevelIconsOnly=!1;Y.JSC$12371_lastWidth=0;Y.maybeUpdateFlexibleMenu=function(){_.f("web_fix_missing_action_buttons")?requestAnimationFrame(Y.maybeUpdateFlexibleMenuImpl):Y.maybeUpdateFlexibleMenuImpl()};
Y.maybeUpdateFlexibleMenuImpl=function(){var S;if((S=Y.data)!=null&&S.flexibleItems){Y.maybeFlushDebouncer();S=Y.hostElement.clientWidth;var P=S>Y.JSC$12371_lastWidth,u,W=((u=Y.topLevelButtonsContainer)==null?void 0:u.scrollHeight)||0,m;u=((m=Y.flexibleItemButtonsContainer)==null?void 0:m.scrollHeight)||0;m=Y.hostElement.scrollHeight>Math.max(W,u)+8;P?(Y.resetFlexibleItems(),Y.JSC$12371_lastWidth=Y.hostElement.clientWidth,Y.maybeUpdateFlexibleMenu()):m&&(Y.shrinkFlexibleMenu(),Y.JSC$12371_lastWidth=
S)}};
Y.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){Y.onOverflowTap()},
iconPosition:"icon-only",style:Y.isOverlay?Y.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:Y.threeDotSize,state:"active",accessibilityLabel:Y.computeAccessibilityLabel(Y.data)},Y.threeDotButtonOverride)};
Y.onOverflowTap=function(){if(Y.data.fetchMenuCommand)_.E().resolve(_.uY).resolveCommand(Y.data.fetchMenuCommand,{form:{element:Y.hostElement}});else if(Y.data.isDisabled&&Y.data.disabledCommand)_.m4(Y.data.disabledCommand,Y.hostElement);else{var S=Y.createMenuRendererVe(),P={items:Y.items};Y.data.menuPopupAccessibility&&(P.menuPopupAccessibility=Y.data.menuPopupAccessibility);Y.data.footer&&(P.footer=Y.data.footer);S={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:P},veData:S}};_.E().resolve(_.xx).openSheet({openPopupActionCommand:S},
Y.hostElement)}};
return Y};
_.r(EO,_.Z);_.z=EO.prototype;_.z.updateButtonOverrides=function(){if(!_.f("menu_renderer_label_update_upkillswitch")){var Y=_.I(this.hostElement).querySelector("yt-button-view-model");Y&&(Y.buttonOverrides=this.buttonOverrides)}};
_.z.computeHasItems=function(){var Y;return((Y=this.topLevelButtonData)==null?void 0:Y.length)||this.hasFlexibleItems};
_.z.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.z.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.PZ(this.hostElement,{"--ytd-menu-renderer-button-color":_.Gp(this.data.iconColor)}))};
_.z.onStamperFinished=function(){this.JSC$12371_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.z.setupFlexibleMenu=function(){var Y=this,S;(S=this.data)!=null&&S.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.NE(this.maybeUpdateFlexibleMenu,Wku,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){Y.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.z.maybeFlushDebouncer=function(){if(_.f("web_replace_formatted_with_attributed_string")){var Y;(Y=this.topLevelButtons)==null||Y.forEach(function(P){var u;(P=(u=P.getElementsByTagName("yt-attributed-string"))==null?void 0:u[0])&&GwK(P)});
var S;(S=this.flexibleItemButtons)==null||S.forEach(function(P){var u;(P=(u=P.getElementsByTagName("yt-attributed-string"))==null?void 0:u[0])&&GwK(P)})}};
_.z.resetFlexibleItems=function(){var Y;if((Y=this.data)!=null&&Y.flexibleItems){_.f("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var S;this.flexAsTopLevelButtons=(S=this.data.flexibleItems)==null?void 0:S.map(function(P){return _.g(P,_.Wlu).topLevelButton});
_.f("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.z.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.z.shrinkFlexibleMenu=function(){var Y;(Y=this.flexAsTopLevelButtons)!=null&&Y.length&&(this.flexAsTopLevelButtons=[].concat(_.cz(this.flexAsTopLevelButtons.slice(0,-1))))};
_.z.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:uSu,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:uSu,events:!0}}};
_.z.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.z.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.z.detached=function(){this.icon="yt-icons:more_vert"};
_.z.computeTopLevelButtonData=function(Y){if(!Y)return[];var S;Y=(S=Y==null?void 0:Y.topLevelButtons)!=null?S:[];return _.RY.unsafeClone([].concat(_.cz(Y)))};
_.z.computeItems=function(Y,S){if(!Y)return[];var P=[];if(S){var u=(Y.flexibleItems||[]).map(function(J){return _.g(J,_.Wlu)});
u=_.n(u);for(var W=u.next();!W.done;W=u.next())W=W.value,S.includes(W.topLevelButton)||(W=W.menuItem)&&P.push(W)}var m;Y=(m=Y==null?void 0:Y.items)!=null?m:[];return[].concat(_.cz(P),_.cz(Y))};
_.z.computeMenuActive=function(Y,S){return Y||S};
_.z.onPopupOpened=function(){this.overlayOpen=!0;_.ms(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.z.onPopupClosed=function(){this.overlayOpen=!1;_.ms(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.z.onPopupCanceled=function(){this.overlayOpen=!1;_.ms(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.z.computeAccessibilityLabel=function(Y){return this.get("accessibility.accessibilityData.label",Y)};
_.z.isHidden=function(Y,S){return this.tonalOverride||!Y?!0:Y.fetchMenuCommand||Y.isDisabled&&Y.disabledCommand?!1:!(S==null?0:S.length)};
_.z.isModernOverflowHidden=function(Y,S){return this.tonalOverride&&Y?Y.fetchMenuCommand?!1:!(S==null?0:S.length):!0};
_.z.createMenuRendererVe=function(){var Y=this.data.trackingParams,S=_.pM(),P=_.wf();return Y&&S&&P?(Y=_.Re(Y),P=_.TI(7591),_.f("combine_ve_grafts")?_.Ym(_.BF(),P,Y):_.t6(S,Y,P),P):null};
_.y6.Object.defineProperties(EO.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.flexAsTopLevelButtons)==null||!Y.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
EO.prototype.onPopupCanceled=EO.prototype.onPopupCanceled;EO.prototype.onPopupClosed=EO.prototype.onPopupClosed;EO.prototype.onPopupOpened=EO.prototype.onPopupOpened;EO.prototype.tonalOverrideChanged=EO.prototype.tonalOverrideChanged;EO.prototype.resetFlexibleItems=EO.prototype.resetFlexibleItems;EO.prototype.setupFlexibleMenu=EO.prototype.setupFlexibleMenu;EO.prototype.iconButtonColorChanged=EO.prototype.iconButtonColorChanged;EO.prototype.updateButtonOverrides=EO.prototype.updateButtonOverrides;
_.Q([_.p(_.sL),_.k("design:type",Object)],EO.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.nc("#button-shape"),_.k("design:type",MC)],EO.prototype,"buttonShape",void 0);_.Q([_.nc("#button"),_.k("design:type",Object)],EO.prototype,"button",void 0);
_.Q([_.X(),_.k("design:type",Object)],EO.prototype,"data",void 0);_.Q([_.X({computed:"computeTopLevelButtonData(data)"}),_.k("design:type",Array)],EO.prototype,"topLevelButtonData",void 0);_.Q([_.X(),_.k("design:type",Array)],EO.prototype,"flexAsTopLevelButtons",void 0);_.Q([_.X({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.k("design:type",Array)],EO.prototype,"items",void 0);_.Q([_.X({value:"yt-icons:more_vert"}),_.k("design:type",String)],EO.prototype,"icon",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],EO.prototype,"safeArea",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.k("design:type",Boolean)],EO.prototype,"menuActive",void 0);_.Q([_.X(),_.k("design:type",Boolean)],EO.prototype,"menuFocused",void 0);_.Q([_.X({value:"bottom"}),_.k("design:type",String)],EO.prototype,"buttonTooltipPosition",void 0);_.Q([_.X(),_.k("design:type",Boolean)],EO.prototype,"overlayOpen",void 0);
_.Q([_.X({value:!0}),_.k("design:type",Boolean)],EO.prototype,"forceIconButton",void 0);_.Q([_.X(),_.k("design:type",Boolean)],EO.prototype,"styleActionButton",void 0);_.Q([_.X(),_.k("design:type",Boolean)],EO.prototype,"disableTextTransformOnButtons",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],EO.prototype,"tonalOverride",void 0);_.Q([_.X(),_.k("design:type",Object)],EO.prototype,"threeDotSize",void 0);
_.Q([_.X(),_.k("design:type",Object)],EO.prototype,"threeDotButtonOverride",void 0);_.Q([_.X(),_.k("design:type",Object)],EO.prototype,"isOverlay",void 0);_.Q([_.X(),_.k("design:type",Object)],EO.prototype,"useOverlayDark",void 0);_.Q([_.X({computed:"computeButtonOverride(tonalOverride)"}),_.k("design:type",Object)],EO.prototype,"buttonOverride",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],EO.prototype,"hasCustomIconColor",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("flexAsTopLevelButtons"),_.k("design:type",Object),_.k("design:paramtypes",[])],EO.prototype,"hasFlexibleItems",null);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.k("design:type",Boolean)],EO.prototype,"hasItems",void 0);_.Q([_.X(),_.k("design:type",Object)],EO.prototype,"topLevelIconsOnly",void 0);
_.Q([_.zY("topLevelIconsOnly"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EO.prototype,"updateButtonOverrides",null);_.Q([_.d("topLevelIconsOnly"),_.k("design:type",Object),_.k("design:paramtypes",[])],EO.prototype,"buttonOverrides",null);_.Q([_.nc("#top-level-buttons-computed"),_.k("design:type",HTMLElement)],EO.prototype,"topLevelButtonsContainer",void 0);_.Q([_.jD(".top-level-buttons > *"),_.k("design:type",Array)],EO.prototype,"topLevelButtons",void 0);
_.Q([_.nc("#flexible-item-buttons"),_.k("design:type",HTMLElement)],EO.prototype,"flexibleItemButtonsContainer",void 0);_.Q([_.jD("#flexible-item-buttons > *"),_.k("design:type",Array)],EO.prototype,"flexibleItemButtons",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EO.prototype,"iconButtonColorChanged",null);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EO.prototype,"setupFlexibleMenu",null);_.Q([_.cZ("topLevelIconsOnly"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EO.prototype,"resetFlexibleItems",null);_.Q([_.zY("tonalOverride"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EO.prototype,"tonalOverrideChanged",null);
_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EO.prototype,"onPopupOpened",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EO.prototype,"onPopupClosed",null);_.Q([_.WZ("yt-popup-canceled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EO.prototype,"onPopupCanceled",null);
_.A(EO,"ytd-menu-renderer",function(){if(Tjs===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);Tjs=Y}Y=Tjs;return Y},{mode:_.OX("kevlar_poly_si_batch_j030")?1:2});var zYm;var mfh;_.ME=_.AI(function(Y){var S=Y.data;var P=function(){if(S().icon)a:{var u={iconName:S().icon};for(var W=_.E().resolve(_.WF),m=_.n([12,24]),J=m.next();!J.done;J=m.next()){var c=J.value;J=Object.assign({},u,{iconStyle:"youtube_fill",iconSize:c});c=Object.assign({},u,{iconStyle:"youtube_outline",iconSize:c});if(W.resolveIcon(J)){u=J;break a}if(W.resolveIcon(c)){u=c;break a}}u=void 0}else u=void 0;return u};
Y={};return _.R("badge-shape",{class:_.Si("badge-shape-wiz",function(){return Be$(S().type)},(Y["badge-shape-wiz--overlay"]=function(){return S().isOverlay},Y["badge-shape-wiz--ads-include-dot"]=function(){return S().adsIncludeDot},Y["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(S().type){case 16:case 17:case 18:var u=!0;
break a;default:u=!1}return u},Y["badge-shape-wiz--status-badge"]=function(){a:switch(S().type){case 11:case 12:case 13:case 14:case 15:var u=!0;
break a;default:u=!1}return u},Y["badge-shape-wiz--no-text"]=function(){return!S().text},Y["badge-shape-wiz--modern"]=function(){return S().modern},Y)),
style:_.Jg({"background-color":function(){var u;return(u=S().customColors)==null?void 0:u.backgroundColor}}),
role:function(){return S().accessibilityText?"img":void 0},
"aria-label":function(){return S().accessibilityText}},_.R(_.gw,{cond:function(){return S().animation},
then:function(u){return _.R(_.PX,{className:"badge-shape-wiz__icon",data:u,animationName:function(){return u().animationConfig.name||""}})}}),_.R(_.gw,{cond:function(){var u;
return P()&&!((u=S())==null?0:u.animation)},
then:function(){return _.R("div",{class:"badge-shape-wiz__icon"},_.R(yNK,{data:function(){return P()}}))}}),_.R("div",{class:"badge-shape-wiz__text"},function(){var u;
return(u=S())==null?void 0:u.text}))},"I");
_.ME.idomCompat=!0;_.AL(_.ME,"badge-shape",{props:{data:_.wm}});var f$=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.f("kevlar_system_icons");Y.animated=_.f("animated_live_badge_icon");Y.useBadgeShape=_.f("web_badge_shape_defrag");return Y};
_.r(f$,_.Z);_.z=f$.prototype;_.z.addTooltips=function(){for(var Y=_.I(this.hostElement).querySelectorAll(".badge"),S=0,P;P=Y[S++];){var u=this.repeatElement.itemForElement(P);P=_.I(P);P.lastChild&&P.lastChild.is==="tp-yt-paper-tooltip"&&P.removeChild(P.lastChild);if(u=u.metadataBadgeRenderer&&u.metadataBadgeRenderer.tooltip){var W=_.Xh("tp-yt-paper-tooltip");(0,_.OR)(W).textContent=u;W.setAttribute("position","top");P.appendChild(W)}}};
_.z.badgesChanged=function(){var Y=this;_.aQ().parkOrScheduleJob(function(){Y.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.z.standaloneRoundedBadgeChanged=function(){var Y=this.useRoundedBadge?this.useRoundedBadge:void 0;Y&&(this.useRoundedBadge=Y)};
_.z.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.z.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.z.computeStyle=function(Y){_.f("enable_html5_teal_ad_badge")&&Y==="BADGE_STYLE_TYPE_AD"&&(Y="badge-style-type-ad-alternate");_.f("kevlar_ytb_live_badges")&&Y==="BADGE_STYLE_TYPE_LIVE_NOW"&&(Y="badge-style-type-live-now-alternate");return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.z.computeRole=function(Y){return this.computeAriaLabel(Y)?"img":"status"};
_.z.computeAriaLabel=function(Y){var S;return(Y==null?void 0:(S=Y.accessibilityData)==null?void 0:S.label)||(Y==null?void 0:Y.label)};
_.z.computeBadgeShape=function(Y){var S;if(Y){var P,u=jl8(Y.style),W=Jr9(Y.style),m=Y.label,J=((P=Y.accessibilityData)==null?void 0:P.label)||Y.label;Y=(S=Y.icon)==null?void 0:S.iconType;S={type:u,brNzRatingBadgeType:W,text:m,accessibilityText:J,icon:Y!=="PREMIUM"?Y:void 0}}else S={};return S};
_.z.updateComputedBadges=function(Y,S,P){var u=this;(S=S?[S]:P?[P]:void 0)?this.computedBadges=S:this.computedBadges=Y==null?void 0:Y.filter(function(W){var m;if((m=W.metadataBadgeRenderer)==null?0:m.groups){m=!1;W=_.n(W.metadataBadgeRenderer.groups);for(var J=W.next();!J.done;J=W.next()){J=J.value;var c=void 0;m=m||((c=u.hiddenBadgeGroups)==null?void 0:c.includes(J))}return!m}return!0})};
_.z.useFilledIcons=function(Y){return _.f("kevlar_system_icons")&&(Y==="AUDIO_BADGE"||Y==="CHECK_CIRCLE_THICK"||Y==="OFFICIAL_ARTIST_BADGE"||Y==="SPONSORSHIP_STAR"||Y==="PERSON_RADAR_FILLED"||Y==="PERSON_RADAR")};
_.z.computeIcon=function(Y){var S,P;Y=Y==null?void 0:(S=Y.metadataBadgeRenderer)==null?void 0:(P=S.icon)==null?void 0:P.iconType;if(Y!=="PREMIUM"&&Y)return _.u2(Y)};
_.z.computeStandaloneBadge=function(Y){var S;Y=Y==null?void 0:(S=Y.icon)==null?void 0:S.iconType;return Y==="PREMIUM_STANDALONE"||Y==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
f$.prototype.hiddenBadgeGroupsChanged=f$.prototype.hiddenBadgeGroupsChanged;f$.prototype.standaloneBadgeChanged=f$.prototype.standaloneBadgeChanged;f$.prototype.standaloneRoundedBadgeChanged=f$.prototype.standaloneRoundedBadgeChanged;f$.prototype.badgesChanged=f$.prototype.badgesChanged;_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],f$.prototype,"hidden",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],f$.prototype,"componentBehavior",void 0);
_.Q([_.X(),_.k("design:type",Array)],f$.prototype,"badges",void 0);_.Q([_.X(),_.k("design:type",Object)],f$.prototype,"topStandaloneBadge",void 0);_.Q([_.X(),_.k("design:type",Object)],f$.prototype,"bottomStandaloneBadge",void 0);_.Q([_.X(),_.k("design:type",Object)],f$.prototype,"computedBadges",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],f$.prototype,"mediumFontAdBadge",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],f$.prototype,"useRoundedBadge",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],f$.prototype,"largeFontAdBadge",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],f$.prototype,"overlayAd",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],f$.prototype,"overlayPremium",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],f$.prototype,"noDotAdBadge",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],f$.prototype,"collectionTruncate",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],f$.prototype,"isThumbnailBadge",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],f$.prototype,"wrapBadges",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],f$.prototype,"systemIcons",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],f$.prototype,"animated",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],f$.prototype,"useBadgeShape",void 0);_.Q([_.X({value:[]}),_.k("design:type",Array)],f$.prototype,"hiddenBadgeGroups",void 0);_.Q([_.nc("#repeat"),_.k("design:type",EX)],f$.prototype,"repeatElement",void 0);_.Q([_.cZ("badges"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f$.prototype,"badgesChanged",null);
_.Q([_.cZ("useRoundedBadge"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f$.prototype,"standaloneRoundedBadgeChanged",null);_.Q([_.cZ("topStandaloneBadge","bottomStandaloneBadge"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f$.prototype,"standaloneBadgeChanged",null);_.Q([_.cZ("hiddenBadgeGroups"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f$.prototype,"hiddenBadgeGroupsChanged",null);
f$=_.Q([_.t({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],f$);
var n0f=_.eD()(f$,"ytd-badge-supported-renderer",function(){if(mfh===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);mfh=Y}Y=mfh;return Y},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.OX("kevlar_poly_si_batch_j053")?1:2});var gB=function(){var Y=_.Z.apply(this,arguments)||this;Y.iconType="STAR";Y.standardizeIconSize=_.f("kevlar_system_icons");Y.mediaHoverOverlayInitialVisibility=_.f("enable_top_landscape_image_button_command_web");Y.noBottomMargin=!1;Y.thumbnailObjectFit="CONTAIN";Y.thumbnailFitHeight=!0;Y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return Y};
_.r(gB,_.Z);_.z=gB.prototype;
_.z.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"}}}};
_.z.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",gB.JSC$12383_DEFAULT_CLICK_LOCATION_BEHAVIOR,gB.JSC$12383_CLICK_LOCATION_ID_MAP))};
_.z.onTap=function(Y){if(!_.f("use_on_click_for_desktop_display_ad"))this.onTapOrClick(Y)};
_.z.onClick=function(Y){if(_.f("use_on_click_for_desktop_display_ad"))this.onTapOrClick(Y)};
_.z.onTapOrClick=function(Y){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,Y,!1)};
_.z.updateMediaBackgroundImage=function(){var Y=this.get("data.image.thumbnail.thumbnails");Y&&(Y=_.UD(Y,0))&&_.PZ(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+Y+")"})};
_.z.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var Y=0;Y<this.data.impressionEndpoints.length;Y++){var S=this.data.impressionEndpoints[Y];S.clickTrackingParams&&delete S.clickTrackingParams;_.E().resolve(_.uY).resolveCommand(S,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var P;((P=this.data)==null?0:P.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.z.handleMuteAd=function(){};
_.z.attached=function(){var Y=this;_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.z.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.y6.Object.defineProperties(gB.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.titleText)return"";var S;return _.Td("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((S=this.data)==null?void 0:S.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
gB.prototype.onClick=gB.prototype.onClick;gB.prototype.onTap=gB.prototype.onTap;gB.prototype.dataChanged=gB.prototype.dataChanged;
gB.JSC$12383_CLICK_LOCATION_ID_MAP=_.f("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"]]);
gB.JSC$12383_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.f("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],gB.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.vf),_.k("design:type",Object)],gB.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],gB.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.Uv.YtSparklesClickLocationBehavior),_.k("design:type",Object)],gB.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.p($R),_.k("design:type",Object)],gB.prototype,"ytdActiveViewBehavior",void 0);_.Q([_.p([_.tD.YtActionHandlerBehavior]),_.k("design:type",Object)],gB.prototype,"actionHandlerBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],gB.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],gB.prototype,"clickCommand",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Boolean)],gB.prototype,"miniMode",void 0);_.Q([_.X(),_.k("design:type",String)],gB.prototype,"iconType",void 0);_.Q([_.d("data.titleText"),_.k("design:type",String),_.k("design:paramtypes",[])],gB.prototype,"titleAriaLabel",null);
_.Q([_.d("data.rating"),_.k("design:type",Object),_.k("design:paramtypes",[])],gB.prototype,"getRating",null);_.Q([_.d("data.price"),_.k("design:type",Object),_.k("design:paramtypes",[])],gB.prototype,"getPrice",null);_.Q([_.d("data.thirdLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],gB.prototype,"getThirdLine",null);_.Q([_.d("data.fourthLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],gB.prototype,"getFourthLine",null);
_.Q([_.d("data.fifthLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],gB.prototype,"getFifthLine",null);_.Q([_.d("getRating"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gB.prototype,"computeRatingHidden",null);_.Q([_.d("getPrice"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gB.prototype,"computePriceHidden",null);_.Q([_.d("getThirdLine"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gB.prototype,"computeThirdLineHidden",null);
_.Q([_.d("getFourthLine"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gB.prototype,"computeFourthLineHidden",null);_.Q([_.d("getFifthLine"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gB.prototype,"computeFifthLineHidden",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.energyIcon"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gB.prototype,"hasEnergyIcon",null);
_.Q([_.d("computePriceHidden","computeRatingHidden"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gB.prototype,"computeSecondaryTextHidden",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],gB.prototype,"standardizeIconSize",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],gB.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],gB.prototype,"noBottomMargin",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.layout"),_.k("design:type",String),_.k("design:paramtypes",[])],gB.prototype,"layout",null);_.Q([_.d("data.layout"),_.k("design:type",Object),_.k("design:paramtypes",[])],gB.prototype,"mediaThumbnailWidth",null);_.Q([_.d("layout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gB.prototype,"useRoundedBadge",null);_.Q([_.X(),_.k("design:type",String)],gB.prototype,"thumbnailObjectFit",void 0);
_.Q([_.X(),_.k("design:type",Object)],gB.prototype,"thumbnailFitHeight",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gB.prototype,"dataChanged",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],gB.prototype,"onTap",null);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],gB.prototype,"onClick",null);
gB=_.Q([_.t({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],gB);
_.A(gB,"ytd-display-ad-renderer",function(){if(zYm!==void 0)return zYm;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return zYm=Y},{mode:1});var jgi;var JQs;var BWJ;var crE=new Map;var cQi=!1;var $x=function(){var Y=_.Z.apply(this,arguments)||this;Y.DEFAULT_TOOLTIP_OFFSET="10";Y.TOOLTIP_OFFSET_NO_BANNER="-8";Y.badges=null;Y.noEndpoints=!1;Y.wrapText=!1;Y.forceVerified=!1;Y.tooltipPosition="top";Y.compactStyle=!1;Y.height=0;Y.lineHeight=0;return Y};
_.r($x,_.Z);_.z=$x.prototype;_.z.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.z.attached=function(){var Y=this;this.observer=new MutationObserver(function(S,P){Y.handleResized();P.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.z.detached=function(){this.observer&&this.observer.disconnect()};
_.z.logTooltipEvent=function(){_.f("kevlar_wiz_tooltip_event_killswitch")||cQi||(_.C31("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),cQi=!0)};
_.z.handleWindowResized=function(){this.handleResized()};
_.z.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")))};
_.z.onHeightChanged=function(){if(this.verified){var Y=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.X3("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=Y:this.textContainerEl.style.marginRight=Y}};
_.z.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.X3("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.z.handleResized=function(){var Y=this;this.verified&&_.wc.addLowPriorityJob(function(){Y.fitBackgroundToText();var S=getComputedStyle(Y.hostElement).lineHeight;S&&(S=S.match(/\d+/))&&S.length&&(Y.lineHeight=Number(S[0]));Y.height=Y.lineHeight&&!Y.wrapText?Y.lineHeight:Y.textEl.offsetHeight})};
_.z.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var Y=document.createRange(),S=_.I(this.textEl).children;S.length>0?Y.selectNodeContents(S[0]):Y.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(Y.getBoundingClientRect().width)+"px"}};
_.z.computeChannelBadgeStyle=function(Y){var S;if((Y==null?0:(S=Y.runs)==null?0:S.length)&&Y.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Gp(Y.runs[0].textColor)+";"};
_.y6.Object.defineProperties($x.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"?_.kW(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var Y=this.get("badges.0.metadataBadgeRenderer.tooltip");if(Y)return Y}return _.Ma(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
$x.prototype.onLineHeightChanged=$x.prototype.onLineHeightChanged;$x.prototype.onHeightChanged=$x.prototype.onHeightChanged;$x.prototype.onChannelNameChanged=$x.prototype.onChannelNameChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],$x.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$x.prototype,"badges",void 0);_.Q([_.X(),_.k("design:type",Object)],$x.prototype,"channelName",void 0);
_.Q([_.X(),_.k("design:type",Object)],$x.prototype,"noEndpoints",void 0);_.Q([_.X(),_.k("design:type",Object)],$x.prototype,"wrapText",void 0);_.Q([_.X(),_.k("design:type",Object)],$x.prototype,"forceVerified",void 0);_.Q([_.X(),_.k("design:type",Object)],$x.prototype,"tooltipPosition",void 0);_.Q([_.X(),_.k("design:type",String)],$x.prototype,"tooltip",void 0);_.Q([_.X(),_.k("design:type",Boolean)],$x.prototype,"hasChannelArt",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$x.prototype,"compactStyle",void 0);_.Q([_.nc("#text-container"),_.k("design:type",HTMLElement)],$x.prototype,"textContainerEl",void 0);_.Q([_.nc("#text"),_.k("design:type",Object)],$x.prototype,"textEl",void 0);_.Q([_.nc("#verified-tooltip"),_.k("design:type",HTMLElement)],$x.prototype,"verifiedTooltip",void 0);_.Q([_.X(),_.k("design:type",Object)],$x.prototype,"height",void 0);
_.Q([_.X(),_.k("design:type",Object)],$x.prototype,"lineHeight",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("badges","forceVerified"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$x.prototype,"verified",null);_.Q([_.d("badges","verified"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$x.prototype,"hideBadges",null);_.Q([_.d("channelName"),_.k("design:type",Object),_.k("design:paramtypes",[])],$x.prototype,"formattedName",null);
_.Q([_.d("badges","verified","formattedName"),_.k("design:type",String),_.k("design:paramtypes",[])],$x.prototype,"tooltipText",null);_.Q([_.d("hasChannelArt"),_.k("design:type",String),_.k("design:paramtypes",[])],$x.prototype,"tooltipOffset",null);_.Q([_.zY("channelName"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$x.prototype,"onChannelNameChanged",null);
_.Q([_.zY("height"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$x.prototype,"onHeightChanged",null);_.Q([_.zY("lineHeight","height"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$x.prototype,"onLineHeightChanged",null);$x=_.Q([_.t({is:"ytd-channel-name",disableElementRegistration:!0})],$x);
_.A($x,"ytd-channel-name",function(){if(BWJ!==void 0)return BWJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return BWJ=Y},{mode:_.OX("kevlar_poly_si_batch_j036")?1:2});var rB=function(){var Y=_.Z.apply(this,arguments)||this;Y.standardizeIconSize=_.f("kevlar_system_icons");Y.enableModernCommentBadges=_.f("enable_modern_comment_badges");return Y};
_.r(rB,_.Z);rB.prototype.basicPaletteChanged=function(){var Y;(Y=this.data.color)!=null&&Y.basicColorPaletteData&&_.fR(this.hostElement,this.data.color.basicColorPaletteData)};
rB.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var Y,S=this.get("basicColorPaletteData.backgroundColor",(Y=this.data)==null?void 0:Y.color),P;Y=this.get("basicColorPaletteData.foregroundTitleColor",(P=this.data)==null?void 0:P.color);P={};S?(S=_.Gp(S),P["--ytd-author-comment-badge-background-color"]=S):(P["--ytd-author-comment-badge-icon-background-color"]="transparent",P["--ytd-author-comment-badge-background-color"]="transparent");Y?(S=_.Gp(Y),P["--ytd-author-comment-badge-name-color"]=
S,P["--ytd-author-comment-badge-icon-color"]=S):P["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(P).length>0&&_.PZ(this.hostElement,P)}};
rB.prototype.useFilledIcons=function(Y){return _.f("kevlar_system_icons")&&(Y==="CHECK_CIRCLE_THICK"||Y==="OFFICIAL_ARTIST_BADGE")};
_.y6.Object.defineProperties(rB.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
rB.prototype.colorChanged=rB.prototype.colorChanged;rB.prototype.basicPaletteChanged=rB.prototype.basicPaletteChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],rB.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],rB.prototype,"standardizeIconSize",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],rB.prototype,"enableModernCommentBadges",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.authorUnifiedVerified"),_.k("design:type",Object),_.k("design:paramtypes",[])],rB.prototype,"verified",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],rB.prototype,"creator",null);_.Q([_.zY("data.color.basicColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rB.prototype,"basicPaletteChanged",null);
_.Q([_.zY("data.color"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rB.prototype,"colorChanged",null);rB=_.Q([_.t({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],rB);
_.A(rB,"ytd-author-comment-badge-renderer",function(){if(JQs!==void 0)return JQs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return JQs=Y},{mode:1});var C5d;var GX=function(){return _.Z.apply(this,arguments)||this};
_.r(GX,_.Z);GX.prototype.computeThumbnailWidth=function(Y){if(Y==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],GX.prototype,"data",void 0);_.Q([_.X({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],GX.prototype,"icon",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],GX.prototype,"surface",void 0);
_.Q([_.X({reflectToAttribute:!0,value:_.f("enable_shrink_image_size_on_web_posts_singleton")}),_.k("design:type",Boolean)],GX.prototype,"searchSxsUx",void 0);GX=_.Q([_.t({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],GX);
_.A(GX,"ytd-backstage-image-renderer",function(){if(C5d!==void 0)return C5d;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return C5d=Y},{mode:1});var qAu;var hd=function(){var Y=_.Z.apply(this,arguments)||this;Y.isLoading=!1;Y.selectedItemIndex=-1;return Y};
_.r(hd,_.Z);_.z=hd.prototype;_.z.computeIsChannelOwner=function(Y){if(!Y)return!0;Y=Y[0];return!(Y&&(Y.signinEndpoint||Y.selectServiceEndpoint))};
_.z.computeIsImagePoll=function(Y){return(Y==null?void 0:Y.type)==="POLL_TYPE_IMAGE"};
_.z.computeIsTotalVotesDisabled=function(Y){return!(Y==null?0:Y.totalVotes)};
_.z.thumbnailSrc=function(Y){var S,P,u,W;return(Y==null?0:(S=Y.thumbnails)==null?0:(P=S[0])==null?0:P.url)?_.Bx((u=Y.thumbnails)==null?void 0:(W=u[0])==null?void 0:W.url):void 0};
_.z.progressWidth=function(Y){return"width:"+(Y?Y*100:0)+"%;"};
_.z.textAreaWidth=function(Y){return this.isImagePoll?null:"width:"+(Y?Y*100:0)+"%;"};
_.z.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.z.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var Y=this.data.choices,S=0;S<Y.length;S++)if(Y[S].selected){this.selectedItemIndex=S;break}};
_.z.onPopupClosed=function(Y,S){Y=Number(this.pollVotes.selected);S.confirmed&&(this.selectChoice(Y,!1),_.nb(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.z.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.z.onYtCommentPollRevert=function(Y,S){S&&(this.selectChoice(S.selectedChoiceIndex,!0),this.set("data.totalVotes",S.totalVotes))};
_.z.onYtServiceRequestSent=function(Y,S){if(S.actions)for(Y=0;Y<S.actions.length;Y++){var P=S.actions[Y];_.g(P,Ew)&&this.set("data.totalVotes",_.g(P,Ew).totalVotes)}};
_.z.onYtServiceRequestCompleted=function(Y){var S=this.get("detail.data.actionResults.0.feedback",Y);Y=this.get("detail.data.actionResults.0.status",Y);if(S==="FEEDBACK_DESELECT"||S==="FEEDBACK_SELECT")this.isLoading=!1,Y==="STATUS_FAILED"?_.ms(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.z.getEndpoint=function(Y,S){return S===Y?this.data.choices[S].deselectServiceEndpoint||null:this.data.choices[Y].selectServiceEndpoint||null};
_.z.selectChoice=function(Y,S){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var P=0;P<this.data.choices.length;P++){var u;if(Y===this.selectedItemIndex){var W=!1;var m=u=null}else u=(W=P===Y)?this.data.choices[P].voteRatioIfSelected:this.data.choices[P].voteRatioIfNotSelected,m=W?this.data.choices[P].votePercentageIfSelected:this.data.choices[P].votePercentageIfNotSelected;this.set("data.choices."+P+".voteRatio",u);
this.set("data.choices."+P+".votePercentage",m);this.set("data.choices."+P+".selected",W)}S||(this.isLoading=!0,(S=this.getEndpoint(Y,this.selectedItemIndex))&&(_.f("web_ytd_backstage_poll_renderer_command_resolver_ks")?_.Bu(this.hostElement,[S]):_.E().resolve(_.uY).resolveCommand(S,{form:{element:this.hostElement}})));this.selectedItemIndex=this.selectedItemIndex===Y?-1:Y};
_.y6.Object.defineProperties(hd.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
hd.prototype.onYtServiceRequestCompleted=hd.prototype.onYtServiceRequestCompleted;hd.prototype.onYtServiceRequestSent=hd.prototype.onYtServiceRequestSent;hd.prototype.onYtCommentPollRevert=hd.prototype.onYtCommentPollRevert;hd.prototype.onPopupClosed=hd.prototype.onPopupClosed;hd.prototype.dataChanged=hd.prototype.dataChanged;_.Q([_.p(_.An),_.k("design:type",Object)],hd.prototype,"paperItemBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],hd.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],hd.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],hd.prototype,"isLoading",void 0);_.Q([_.X({computed:"computeIsChannelOwner(data.choices)"}),_.k("design:type",Boolean)],hd.prototype,"isChannelOwner",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.k("design:type",Boolean)],hd.prototype,"isImagePoll",void 0);_.Q([_.X({computed:"computeIsTotalVotesDisabled(data)"}),_.k("design:type",Boolean)],hd.prototype,"isTotalVotesDisabled",void 0);_.Q([_.X(),_.k("design:type",Object)],hd.prototype,"previousPollInfo",void 0);_.Q([_.X(),_.k("design:type",Object)],hd.prototype,"selectedItemIndex",void 0);_.Q([_.nc("#poll-votes"),_.k("design:type",Object)],hd.prototype,"pollVotes",void 0);
_.Q([_.d("isChannelOwner"),_.k("design:type",Object),_.k("design:paramtypes",[])],hd.prototype,"endpointStyle",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hd.prototype,"dataChanged",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],hd.prototype,"onPopupClosed",null);
_.Q([_.WZ("yt-comment-poll-revert"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],hd.prototype,"onYtCommentPollRevert",null);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],hd.prototype,"onYtServiceRequestSent",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],hd.prototype,"onYtServiceRequestCompleted",null);hd=_.Q([_.t({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],hd);
_.A(hd,"ytd-backstage-poll-renderer",function(){if(qAu!==void 0)return qAu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return qAu=Y},{mode:2});var RY6;var xfh={autoplay:!1,loop:!1},bed={simpleText:""},vb=function(){var Y=_.Z.apply(this,arguments)||this;Y.isLoading=!1;Y.usesPanelLockup=!1;Y.selectedItemIndex=-1;Y.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},xfh,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});Y.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},xfh,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});Y.correctnessAnimationProps=[];Y.correctnessAnimationRefs=[];return Y};
_.r(vb,_.Z);_.z=vb.prototype;_.z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.z.computeIsChannelOwner=function(Y){if(!Y)return!0;Y=Y[0];return!(Y&&(Y.signinEndpoint||Y.selectServiceEndpoint))};
_.z.computeIsTotalVotesDisabled=function(Y){return!(Y==null?0:Y.totalVotes)};
_.z.computeIsImageQuiz=function(Y){return(Y==null?void 0:Y.type)==="POLL_TYPE_IMAGE"};
_.z.onExplanationChanged=function(){this.expander.reset()};
_.z.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var Y=this.data.choices;if(Y){this.maybeInitializeQuizLotties(Y);for(var S=0;S<Y.length;S++)if(Y[S].isSelected||this.isChannelOwner&&Y[S].isCorrect){this.selectedItemIndex=S;return}this.selectedItemIndex=-1}}};
_.z.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var Y=this.selectedItemIndex,S=Number(this.quizVotes.selected);this.selectChoice(S);this.sendVoteAction(S,Y);this.quizVotes.selected=-1;var P;Y=!((P=this.data)==null?0:P.enableAnimation);this.maybePlayAnswerAnimations(Y)}};
_.z.onYtCommentPollRevert=function(Y,S){S&&(this.selectChoice(S.selectedChoiceIndex),this.set("data.totalVotes",S.totalVotes))};
_.z.onYtServiceRequestSent=function(Y,S){if(S.actions)for(Y=_.n(S.actions),S=Y.next();!S.done;S=Y.next())(S=_.g(S.value,Ew))&&this.set("data.totalVotes",S.totalVotes)};
_.z.onYtServiceRequestCompleted=function(Y){var S=this.get("detail.data.actionResults.0.feedback",Y);Y=this.get("detail.data.actionResults.0.status",Y);if(S==="FEEDBACK_DESELECT"||S==="FEEDBACK_SELECT")this.isLoading=!1,Y==="STATUS_FAILED"?_.ms(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.z.getAnimationPropsForChoiceIndex=function(Y,S){return S[Y]};
_.z.maybePlayAnswerAnimations=function(Y){Y=Y===void 0?!1:Y;var S;if((S=this.data)!=null&&S.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){S=_.n(this.correctnessAnimationRefs);for(var P=S.next();!P.done;P=S.next()){var u=void 0,W=void 0;(u=P.value)==null||(W=u.lottieEl)==null||W.stop()}if(!(this.selectedItemIndex<0)){S=0;Y&&(S=this.isCorrect?37:25);var m,J;(m=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(J=m.lottieEl)==null||J.goToAndPlay(Y?S:0,!0);if(!(this.isCorrect||
(m=this.data.choices.findIndex(function(b){return b.isCorrect}),m<0))){var c,C;
(C=(c=this.correctnessAnimationRefs[m])==null?void 0:c.lottieEl)==null||C.goToAndPlay(37,!0);var x;c=(x=this.fadeContainers)==null?void 0:x.item(m);!Y&&c&&this.fadeIn(c)}}}};
_.z.thumbnailSrc=function(Y){var S,P,u,W;return(Y==null?0:(S=Y.thumbnails)==null?0:(P=S[0])==null?0:P.url)?_.Bx((u=Y.thumbnails)==null?void 0:(W=u[0])==null?void 0:W.url):void 0};
_.z.a11yVotedText=function(Y,S){var P,u,W=((P=this.data)==null?void 0:(u=P.correctVotedText)==null?void 0:u.simpleText)||"",m,J;P=((m=this.data)==null?void 0:(J=m.votedText)==null?void 0:J.simpleText)||"";if(!S)return"";var c,C;if((c=this.data)==null?0:(C=c.choices)==null?0:C[Y].isCorrect)return W;var x,b;return((x=this.data)==null?0:(b=x.choices)==null?0:b[Y].isSelected)?P:""};
_.z.getEndpoint=function(Y,S){return S===Y?this.data.choices[Y].deselectServiceEndpoint||null:this.data.choices[Y].selectServiceEndpoint||null};
_.z.sendVoteAction=function(Y,S){if(Y=this.getEndpoint(Y,S))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(Y)};
_.z.selectChoice=function(Y){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var S=0;S<this.data.choices.length;S++)this.set("data.choices."+S+".isSelected",Y===this.selectedItemIndex?!1:S===Y);this.selectedItemIndex=this.selectedItemIndex===Y?-1:Y};
_.z.maybeInitializeQuizLotties=function(Y){var S=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=Y.map(function(P){return{animationConfig:P.isCorrect?S.baseCorrectLottiePlayerAnimationConfig:S.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){S.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(P){return P.animationRef||{}})};
_.z.fadeIn=function(Y){Y.classList.add("fade-in");_.yz(_.wc,function(){Y.classList.remove("fade-in")},900)};
_.y6.Object.defineProperties(vb.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Ma(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:(S=Y.choices)==null?void 0:S.some(function(P){return P.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null||!Y.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?bed:this.data.choices[this.selectedItemIndex].explanation||bed}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null||!Y.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
vb.prototype.onYtServiceRequestCompleted=vb.prototype.onYtServiceRequestCompleted;vb.prototype.onYtServiceRequestSent=vb.prototype.onYtServiceRequestSent;vb.prototype.onYtCommentPollRevert=vb.prototype.onYtCommentPollRevert;vb.prototype.dataChanged=vb.prototype.dataChanged;vb.prototype.onExplanationChanged=vb.prototype.onExplanationChanged;_.Q([_.p(_.An),_.k("design:type",Object)],vb.prototype,"paperItemBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],vb.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.l4.YtTaskEmitterBehavior),_.k("design:type",Object)],vb.prototype,"ytTaskEmitterBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],vb.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],vb.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],vb.prototype,"isLoading",void 0);_.Q([_.X(),_.k("design:type",Object)],vb.prototype,"usesPanelLockup",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.k("design:type",Boolean)],vb.prototype,"isChannelOwner",void 0);_.Q([_.X({computed:"computeIsTotalVotesDisabled(data)"}),_.k("design:type",Boolean)],vb.prototype,"isTotalVotesDisabled",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.k("design:type",Boolean)],vb.prototype,"isImageQuiz",void 0);_.Q([_.X(),_.k("design:type",Object)],vb.prototype,"previousQuizInfo",void 0);_.Q([_.X(),_.k("design:type",Object)],vb.prototype,"selectedItemIndex",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data","usesPanelLockup"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vb.prototype,"shouldUseModernUi",null);
_.Q([_.jD(".fade-container"),_.k("design:type",Object)],vb.prototype,"fadeContainers",void 0);_.Q([_.X(),_.k("design:type",Array)],vb.prototype,"correctnessAnimationProps",void 0);_.Q([_.d("explanation","showCorrectAnswer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vb.prototype,"showExplanation",null);_.Q([_.d("isChannelOwner","isAttempted"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vb.prototype,"showCorrectAnswer",null);
_.Q([_.d("isChannelOwner","isAttempted","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vb.prototype,"isQuizAnsweringDisabled",null);_.Q([_.d("isQuizAnsweringDisabled"),_.k("design:type",Object),_.k("design:paramtypes",[])],vb.prototype,"endpointStyle",null);_.Q([_.d("data","selectedItemIndex"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vb.prototype,"isAttempted",null);
_.Q([_.d("data","selectedItemIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],vb.prototype,"explanation",null);_.Q([_.d("data","selectedItemIndex"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vb.prototype,"isCorrect",null);_.Q([_.nc("ytd-expander"),_.k("design:type",Object)],vb.prototype,"expander",void 0);_.Q([_.nc("#quiz-votes"),_.k("design:type",Object)],vb.prototype,"quizVotes",void 0);
_.Q([_.zY("explanation"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vb.prototype,"onExplanationChanged",null);_.Q([_.zY("data","isChannelOwner"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vb.prototype,"dataChanged",null);_.Q([_.WZ("yt-comment-quiz-revert"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],vb.prototype,"onYtCommentPollRevert",null);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],vb.prototype,"onYtServiceRequestSent",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],vb.prototype,"onYtServiceRequestCompleted",null);vb=_.Q([_.t({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],vb);
_.A(vb,"ytd-backstage-quiz-renderer",function(){if(RY6!==void 0)return RY6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return RY6=Y},{mode:1});var TW_;var DF=function(){return _.Z.apply(this,arguments)||this};
_.r(DF,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],DF.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],DF.prototype,"data",void 0);DF=_.Q([_.t({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],DF);
_.A(DF,"ytd-post-uploaded-video-renderer",function(){if(TW_!==void 0)return TW_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return TW_=Y},{mode:1});var Kkm;var Ir=function(){return _.Z.apply(this,arguments)||this};
_.r(Ir,_.Z);Ir.prototype.useFilledIcons=function(Y){return Y==="SPONSORSHIP_STAR"};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ir.prototype,"data",void 0);Ir=_.Q([_.t({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Ir);
_.A(Ir,"ytd-sponsors-only-badge-renderer",function(){if(Kkm!==void 0)return Kkm;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Kkm=Y},{mode:1});var E0i;var ar=function(){return _.Z.apply(this,arguments)||this};
_.r(ar,_.Z);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],ar.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ar.prototype,"data",void 0);ar=_.Q([_.t({is:"ytd-child-video-renderer",disableElementRegistration:!0})],ar);
_.A(ar,"ytd-child-video-renderer",function(){if(E0i!==void 0)return E0i;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return E0i=Y},{mode:1});var fzs;var g0i;var L$=function(){var Y=_.Z.apply(this,arguments)||this;Y.size=0;Y.enableWebModernCollectionsV2=_.f("web_modern_collections_v2");Y.fallbackImageSize={height:void 0,width:9999};Y.webModernCollections=!1;return Y};
_.r(L$,_.Z);_.z=L$.prototype;_.z.computeBlurredImageSize=function(Y){return Y?{height:Y*2,width:Y*2}:this.fallbackImageSize};
_.z.computeImageSize=function(Y){return Y?{height:Y,width:Y}:this.fallbackImageSize};
_.z.computeObjectFit=function(Y){return Y?"FILL":"CONTAIN"};
_.z.computePreserve=function(Y){return Y?!0:!1};
_.z.setBackground=function(){var Y,S;_.f("web_modern_collections_v2")&&((Y=this.data)==null?0:(S=Y.thumbnail)==null?0:S.sampledThumbnailColor)&&(Y=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+Y.red+","+Y.green+","+Y.blue+",1)")};
L$.prototype.setBackground=L$.prototype.setBackground;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],L$.prototype,"watchFeedThumbnail",void 0);_.Q([_.X(),_.k("design:type",Object)],L$.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],L$.prototype,"size",void 0);
_.Q([_.X({computed:"computeBlurredImageSize(size)"}),_.k("design:type",Object)],L$.prototype,"blurredImageSize",void 0);_.Q([_.X({computed:"computeImageSize(size)"}),_.k("design:type",Object)],L$.prototype,"imageSize",void 0);_.Q([_.X({computed:"computePreserve(size)"}),_.k("design:type",String)],L$.prototype,"preserve",void 0);_.Q([_.X({computed:"computeObjectFit(size)"}),_.k("design:type",String)],L$.prototype,"objectFit",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],L$.prototype,"enableWebModernCollectionsV2",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],L$.prototype,"webModernCollections",void 0);_.Q([_.zY("data.thumbnail.sampledThumbnailColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L$.prototype,"setBackground",null);L$=_.Q([_.t({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],L$);
_.A(L$,"ytd-playlist-custom-thumbnail-renderer",function(){if(g0i!==void 0)return g0i;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return g0i=Y},{mode:1});var $fm;var wB=function(){return _.Z.apply(this,arguments)||this};
_.r(wB,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],wB.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],wB.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Number)],wB.prototype,"width",void 0);wB=_.Q([_.t({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],wB);
_.A(wB,"ytd-playlist-video-thumbnail-renderer",function(){if($fm!==void 0)return $fm;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return $fm=Y},{mode:1});var rQS;var p$=function(){return _.Z.apply(this,arguments)||this};
_.r(p$,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],p$.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Number)],p$.prototype,"width",void 0);p$=_.Q([_.t({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],p$);
_.A(p$,"ytd-show-custom-thumbnail-renderer",function(){if(rQS!==void 0)return rQS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return rQS=Y},{mode:1});var GGf;var F4=function(){return _.Z.apply(this,arguments)||this};
_.r(F4,_.Z);F4.prototype.useFilledIcons=function(Y){return Y==="MUSIC"||Y==="COURSE"};
F4.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=vq(this.overlayColor,"0.8");else if(this.overlayColor){var Y=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+Y.red+","+Y.green+","+Y.blue+",0.8)"}};
_.y6.Object.defineProperties(F4.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)}}});
F4.prototype.overlayColorChanged=F4.prototype.overlayColorChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],F4.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],F4.prototype,"overlayColor",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data.icon","data.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],F4.prototype,"overlayStyle",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.icon","data.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],F4.prototype,"overlayTextStyle",null);_.Q([_.zY("overlayColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],F4.prototype,"overlayColorChanged",null);F4=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],F4);
_.A(F4,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(GGf!==void 0)return GGf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return GGf=Y},{mode:1});var hYt;var sO=function(){var Y=_.Z.apply(this,arguments)||this;Y.active=!1;return Y};
_.r(sO,_.Z);sO.prototype.computeIsSpinnerHidden=function(Y){return(Y==null?void 0:Y.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
sO.prototype.computeOverlayIcon=function(Y){return(Y==null?void 0:Y.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(Y==null?void 0:Y.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],sO.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],sO.prototype,"active",void 0);sO=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],sO);
_.A(sO,"ytd-thumbnail-overlay-downloading-renderer",function(){if(hYt!==void 0)return hYt;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return hYt=Y},{mode:1});var v0s;var dB=function(){return _.Z.apply(this,arguments)||this};
_.r(dB,_.Z);_.y6.Object.defineProperties(dB.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],dB.prototype,"data",void 0);_.Q([_.d("data.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],dB.prototype,"text",null);dB=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],dB);
_.A(dB,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(v0s!==void 0)return v0s;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return v0s=Y},{mode:1});var Dfh,Iz3=function(){if(Dfh!==void 0)return Dfh;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Dfh=Y};var ln=function(){return _.Z.apply(this,arguments)||this};
_.r(ln,_.Z);_.y6.Object.defineProperties(ln,{template:{configurable:!0,enumerable:!0,get:function(){return Iz3()}}});
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],ln.prototype,"animateEqualizer",void 0);ln=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],ln);_.eD()(ln,"ytd-thumbnail-overlay-equalizer",function(){return Iz3()},{allowedProps:["animateEqualizer"],
mode:1});var azs;var X4=function(){var Y=_.Z.apply(this,arguments)||this;Y.nowPlayingBadge=_.f("web_now_playing_badge");Y.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return Y};
_.r(X4,_.Z);X4.prototype.activeChanged=function(){var Y=this;_.f("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.ky(this,function(){_.ms(Y.hostElement,"yt-playlist-lockup-now-playing-active",Y)})};
X4.prototype.onMiniplayerPlayStateChanged=function(Y){var S,P=(S=_.g(_.nd().currentEndpoint,_.yx))==null?void 0:S.videoId;this.isVideoPlaying=Y&&(_.f("web_limit_now_playing_animation_killswitch")||this.videoId===P)};
X4.prototype.activeChanged=X4.prototype.activeChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],X4.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],X4.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],X4.prototype,"isVideoPlaying",void 0);_.Q([_.X(),_.k("design:type",String)],X4.prototype,"videoId",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],X4.prototype,"equalizerOnly",void 0);_.Q([_.X(),_.k("design:type",Boolean)],X4.prototype,"isActive",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],X4.prototype,"nowPlayingBadge",void 0);_.Q([_.zY("isActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],X4.prototype,"activeChanged",null);
X4=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],X4);
_.A(X4,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(azs!==void 0)return azs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return azs=Y},{mode:1});var Lks;var ZF=function(){return _.Z.apply(this,arguments)||this};
_.r(ZF,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ZF.prototype,"data",void 0);ZF=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],ZF);
_.A(ZF,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Lks!==void 0)return Lks;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Lks=Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var wn_;var or=function(){return _.Z.apply(this,arguments)||this};
_.r(or,_.Z);or.prototype.onDurationChanged=function(){var Y,S;_.I(this.hostElement).querySelector("#progress").style.width=((S=(Y=this.data)==null?void 0:Y.percentDurationWatched)!=null?S:0)+"%"};
or.prototype.onDurationChanged=or.prototype.onDurationChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],or.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],or.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],or.prototype,"isLive",void 0);_.Q([_.zY("data.percentDurationWatched"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],or.prototype,"onDurationChanged",null);
or=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],or);
_.A(or,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(wn_!==void 0)return wn_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return wn_=Y},{mode:1});var pnf;var td=function(){var Y=_.Z.apply(this,arguments)||this;Y.bottomPanel=!1;Y.richGridOverlay=!1;Y.watchFeedOverlay=!1;Y.isCompact=!1;return Y};
_.r(td,_.Z);td.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.y6.Object.defineProperties(td.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:(S=Y.icon)==null?void 0:S.iconType)==="PLAY_ALL"&&_.f("kevlar_system_icons")}}});
td.prototype.widthChanged=td.prototype.widthChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],td.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Number)],td.prototype,"width",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],td.prototype,"bottomPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],td.prototype,"richGridOverlay",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],td.prototype,"watchFeedOverlay",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],td.prototype,"isCompact",void 0);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],td.prototype,"isIconFilled",null);_.Q([_.zY("width","watchFeedOverlay"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],td.prototype,"widthChanged",null);
td=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],td);
_.A(td,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(pnf!==void 0)return pnf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return pnf=Y},{mode:1});var FkJ;var sg6=["CLIP","SHORTS"],Ad=function(){var Y=_.Z.apply(this,arguments)||this;Y.animated=_.f("animated_live_badge_icon");Y.hasIcon=!1;Y.updateTimerIntervalId=0;Y.timeSinceLive=0;return Y};
_.r(Ad,_.Z);_.z=Ad.prototype;_.z.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.z.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.z.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.z.hasIconOrText=function(){var Y,S;return!!(((Y=this.data)==null?0:Y.icon)||((S=this.data)==null?0:S.text))};
_.z.initializeLiveBadgeTimer=function(){var Y=this,S,P=(S=this.liveBadgeData)==null?void 0:S.startTimestampSec;if(P&&this.canShowLiveBadgeTimer()){var u;S=Number((u=this.liveBadgeData)==null?void 0:u.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(P);this.updateTimerIntervalId=_.BQ(function(){Y.canShowLiveBadgeTimer()?Y.timeSinceLive++:(Y.timeSinceLive=0,window.clearInterval(Y.updateTimerIntervalId))},S)}else this.timeSinceLive=0};
_.z.canShowLiveBadgeTimer=function(){var Y=Date.now(),S,P;return Y<(Number((S=this.liveBadgeData)==null?void 0:S.endTimestampSec)-1)*1E3&&Y>Number((P=this.liveBadgeData)==null?void 0:P.startTimestampSec)*1E3};
_.y6.Object.defineProperties(Ad.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=this.data;var S=this.timeSinceLive;var P,u,W,m;a:{var J=Y.style;if(J===void 0)J=16;else switch(J){case "LIVE":J=17;break a;default:J=16}}S={type:J,text:S?wgh({seconds:S}):_.Ma(Y.text),accessibilityText:(P=Y.text)==null?void 0:(u=P.accessibility)==null?void 0:(W=u.accessibilityData)==null?void 0:W.label,icon:(m=Y.icon)==null?void 0:m.iconType}}else S={};return S}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return sg6.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Ad.prototype.initializeLiveBadgeTimer=Ad.prototype.initializeLiveBadgeTimer;Ad.prototype.dataChanged=Ad.prototype.dataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Ad.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ad.prototype,"data",void 0);_.Q([_.X({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],Ad.prototype,"icon",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ad.prototype,"animated",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.k("design:type",Boolean)],Ad.prototype,"hideTimeStatus",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Ad.prototype,"hasIcon",void 0);_.Q([_.X(),_.k("design:type",Object)],Ad.prototype,"timeSinceLive",void 0);_.Q([_.d("data","timeSinceLive"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ad.prototype,"badgeShapeData",null);
_.Q([_.d("data","overlayType"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ad.prototype,"hideBadgeShape",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ad.prototype,"dataChanged",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.style"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ad.prototype,"overlayStyle",null);
_.Q([_.d("data.liveBadgeData"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ad.prototype,"liveBadgeData",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.type"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ad.prototype,"overlayType",null);_.Q([_.d("overlayType","overlayStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ad.prototype,"useFilledIcon",null);
_.Q([_.cZ("liveBadgeData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ad.prototype,"initializeLiveBadgeTimer",null);Ad=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Ad);
_.A(Ad,"ytd-thumbnail-overlay-time-status-renderer",function(){if(FkJ!==void 0)return FkJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return FkJ=Y},{mode:_.OX("kevlar_poly_si_batch_j035")?1:2});var df_;var UO=function(){return _.Z.apply(this,arguments)||this};
_.r(UO,_.Z);UO.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"}}}}};
UO.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(Y){if(this.hasPlaybackProgressBar)return{percentDurationWatched:Y.percentDurationWatched}};
UO.prototype.computeHasPlaybackProgressBar=function(Y){return!!Y.percentDurationWatched&&Y.percentDurationWatched>0};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],UO.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.k("design:type",Boolean)],UO.prototype,"hasPlaybackProgressBar",void 0);
UO=_.Q([_.t({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],UO);
_.A(UO,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(df_!==void 0)return df_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return df_=Y},{mode:1});var lz3;_.Sr(x9X);var Xns=_.AI(function(Y){var S=Y.data;var P=Y.children;var u=function(){return!!S().doubleStack};
return _.R("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!S().experimentEnabled}},_.R(_.gw,{cond:S,
then:function(){return _.R("div",null,_.R(_.gw,{cond:u,then:function(){var W={};return _.R("div",{class:_.Si("collections-stack-wiz__collection-stack2",function(){return S().customClassName2ndStack},(W["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return S().enableResponsiveMode},W)),
style:_.Jg({"background-color":function(){return q8h(S())}})})}}),_.R("div",{class:_.Si("collections-stack-wiz__collection-stack1",function(){return S().customClassName1stStack},function(){return RR1(S().thumbnailSize?S().thumbnailSize:"medium")}),
style:_.Jg({"background-color":function(){return q8h(S())}})}),P)}}))},"J");_.AL(Xns,"yt-collections-stack",{props:{data:_.wm}});var Qg=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};Y.webModernCollections=!1;Y.isSearch=!1;Y.isDoubleStack=!1;Y.thumbnailSize="medium";Y.enableWebModernCollectionsV2=_.f("web_modern_collections_v2");return Y};
_.r(Qg,_.Z);_.z=Qg.prototype;
_.z.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]]"}}}}}};
_.z.getThumbnailDetails=function(Y){if(Y!=null&&Y.thumbnailRenderer){var S=Y.thumbnailRenderer,P;if((P=S.playlistVideoThumbnailRenderer)==null?0:P.thumbnail)return S.playlistVideoThumbnailRenderer.thumbnail;var u;if((u=S.playlistCustomThumbnailRenderer)==null?0:u.thumbnail)return S.playlistCustomThumbnailRenderer.thumbnail;Y=Y.thumbnailRenderer;var W;if((W=Y.showCustomThumbnailRenderer)==null?0:W.thumbnail)return Y.showCustomThumbnailRenderer.thumbnail}};
_.z.computeOverlayColor=function(Y){var S,P;if((S=this.getThumbnailDetails(Y))==null?0:(P=S.darkColorPalette)==null?0:P.section2Color)return this.getThumbnailDetails(Y).darkColorPalette.section2Color;var u;return(u=this.getThumbnailDetails(Y))==null?void 0:u.sampledThumbnailColor};
_.z.computeWebModernCollections=function(Y){if(Y==null||!Y.thumbnailOverlays)return!1;Y=_.n(Y.thumbnailOverlays);for(var S=Y.next();!S.done;S=Y.next()){var P=void 0;if((P=S.value)==null?0:P.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.z.computeNavigationEndpoint=function(Y){return dKJ(Y==null?void 0:Y.navigationEndpoint)};
_.y6.Object.defineProperties(Qg.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:Y==null?void 0:Y.sampledThumbnailColor,vibrantColorPalette:Y==null?void 0:Y.vibrantColorPalette,darkColorPalette:Y==null?void 0:Y.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Qg.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(tsU),_.k("design:type",Object)],Qg.prototype,"ytdThumbnailBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Qg.prototype,"componentBehavior",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Qg.prototype,"watchFeedThumbnail",void 0);_.Q([_.X(),_.k("design:type",Number)],Qg.prototype,"customThumbnailSize",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],Qg.prototype,"hideAria",void 0);_.Q([_.X(),_.k("design:type",Object)],Qg.prototype,"data",void 0);_.Q([_.X({computed:"computeOverlayColor(data)"}),_.k("design:type",Object)],Qg.prototype,"overlayColor",void 0);
_.Q([_.X({computed:"computeWebModernCollections(data)"}),_.k("design:type",Object)],Qg.prototype,"webModernCollections",void 0);_.Q([_.X({computed:"computeNavigationEndpoint(data)"}),_.k("design:type",Object)],Qg.prototype,"computedNavigationEndpoint",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Qg.prototype,"isSearch",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Qg.prototype,"isDoubleStack",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],Qg.prototype,"thumbnailSize",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Qg.prototype,"enableWebModernCollectionsV2",void 0);_.Q([_.d("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qg.prototype,"collectionStack",null);Qg=_.Q([_.t({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Qg);
_.A(Qg,"ytd-playlist-thumbnail",function(){if(lz3!==void 0)return lz3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return lz3=Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var Ze6;var kx=function(){var Y=_.Z.apply(this,arguments)||this;Y.noEndpoints=!1;Y.amsterdamPostMvp=_.f("web_amsterdam_post_mvp_playlists");Y.badges=[];Y.transferState="TRANSFER_STATE_UNKNOWN";return Y};
_.r(kx,_.Z);_.z=kx.prototype;_.z.getMetadata=function(Y){if(!Y)return[];var S=[],P=Y.shortViewCountText||Y.viewCountText;P&&S.push(_.Ma(P));Y.publishedTimeText&&S.push(_.Ma(Y.publishedTimeText));Y.upcomingEventData&&Y.upcomingEventData.upcomingEventText&&S.push(_.L2(_.Ma(Y.upcomingEventData.upcomingEventText),Number(Y.upcomingEventData.startTime)));return S};
_.z.observeDataForBylineSeparator=function(){this.data&&_.Vm(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.z.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Gp(this.metadataColor)};
_.z.getSimpleString=function(Y){return _.Ma(Y)};
_.z.isBylineHidden=function(Y){return this.noByline||!((Y==null?0:Y.longBylineText)||(Y==null?0:Y.shortBylineText))};
_.z.isMetadataHidden=function(Y){var S;return((S=this.getMetadata(Y))==null?void 0:S.length)===0};
_.z.isBylineMetadataSeparatorHidden=function(Y){return this.isMetadataHidden(Y)||!this.shouldShowVideoInfo};
_.z.isLongByline=function(Y,S){return S&&!(Y==null||!Y.longBylineText)};
_.y6.Object.defineProperties(kx.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var Y;return this.amsterdamPostMvp&&!((Y=this.data)==null||!Y.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
kx.prototype.metadataColorChanged=kx.prototype.metadataColorChanged;kx.prototype.observeDataForBylineSeparator=kx.prototype.observeDataForBylineSeparator;_.Q([_.p(_.Gn),_.k("design:type",Object)],kx.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],kx.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],kx.prototype,"noEndpoints",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],kx.prototype,"isSlimShort",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],kx.prototype,"radioMeta",void 0);_.Q([_.X({selector:_.wv}),_.k("design:type",Object)],kx.prototype,"isGridViewEnabled",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],kx.prototype,"richMeta",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],kx.prototype,"amsterdamPostMvp",void 0);_.Q([_.X(),_.k("design:type",Boolean)],kx.prototype,"noByline",void 0);
_.Q([_.X({computed:"isLongByline(data, radioMeta)"}),_.k("design:type",Boolean)],kx.prototype,"longByline",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],kx.prototype,"truncateMetadataLine",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],kx.prototype,"miniMode",void 0);_.Q([_.X(),_.k("design:type",Number)],kx.prototype,"metadataColor",void 0);_.Q([_.X(),_.k("design:type",Array)],kx.prototype,"badges",void 0);
_.Q([_.X({selector:_.sC,selectorArgs:["data.videoId"]}),_.k("design:type",String)],kx.prototype,"transferState",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],kx.prototype,"isDownloading",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],kx.prototype,"typographyBump",void 0);_.Q([_.nc("#metadata-line"),_.k("design:type",HTMLElement)],kx.prototype,"metadataLine",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kx.prototype,"observeDataForBylineSeparator",null);_.Q([_.zY("metadataColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kx.prototype,"metadataColorChanged",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],kx.prototype,"shouldShowVideoInfo",null);
_.Q([_.d("badges"),_.k("design:type",String),_.k("design:paramtypes",[])],kx.prototype,"inlineBadgeClass",null);_.Q([_.d("longByline"),_.k("design:type",String),_.k("design:paramtypes",[])],kx.prototype,"longBylineClass",null);_.Q([_.d("data","longByline"),_.k("design:type",Object),_.k("design:paramtypes",[])],kx.prototype,"bylineText",null);_.Q([_.d("isGridViewEnabled","data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kx.prototype,"watchFeedBigThumbs",null);
kx=_.Q([_.t({is:"ytd-video-meta-block",disableElementRegistration:!0})],kx);
_.A(kx,"ytd-video-meta-block",function(){if(Ze6!==void 0)return Ze6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ze6=Y},{mode:_.OX("kevlar_poly_si_batch_j080")?1:2});_.$s("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var MH=function(){var Y=_.Z.apply(this,arguments)||this;Y.displayItemCount=2;Y.isBackstagePlaylist=!1;Y.isPostCompactPlaylist=!1;Y.shouldShowChannelThumbnail=!1;Y.useModernCollectionsV2=_.f("web_modern_collections_v2");return Y};
_.r(MH,_.Z);_.z=MH.prototype;_.z.computeFirstVideos=function(Y,S){return Y===void 0||S===void 0?[]:Y.slice(0,S)};
_.z.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var Y=this.data.thumbnailRenderer;Y.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",Y.playlistVideoThumbnailRenderer.thumbnail);Y.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",Y.playlistCustomThumbnailRenderer.thumbnail)}};
_.z.computeThumbnailHeight=function(Y,S,P,u,W){return u?W==="BIG"?280:W==="MASSIVE"?337:234:P?240:S?72:Y?118:138};
_.z.computeThumbnailWidth=function(Y,S,P,u,W){return u?W==="MEDIUM"?450:W==="BIG"?500:W==="MASSIVE"?600:420:P?360:S?128:Y?210:246};
_.z.computeUseBiggerThumbs=function(Y){return Y&&_.f("enable_desktop_search_bigger_thumbs")};
_.z.computeShouldShowChannelThumbnail=function(Y,S){return Y&&!(S==null||!S.channelThumbnail)};
_.y6.Object.defineProperties(MH.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
MH.prototype.dataChanged=MH.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],MH.prototype,"ytdLockupBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],MH.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],MH.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],MH.prototype,"displayItemCount",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],MH.prototype,"isBackstagePlaylist",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],MH.prototype,"isPostCompactPlaylist",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],MH.prototype,"isSearch",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.k("design:type",Boolean)],MH.prototype,"useBiggerThumbs",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],MH.prototype,"biggerThumbsStyle",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],MH.prototype,"isDownloads",void 0);_.Q([_.X({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.k("design:type",Object)],MH.prototype,"shouldShowChannelThumbnail",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],MH.prototype,"useModernCollectionsV2",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MH.prototype,"dataChanged",null);_.Q([_.d("isSearch"),_.k("design:type",String),_.k("design:paramtypes",[])],MH.prototype,"stackThumbnailSize",null);MH=_.Q([_.t({is:"ytd-playlist-renderer",disableElementRegistration:!0})],MH);
_.A(MH,"ytd-playlist-renderer",function(){if(fzs===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);fzs=Y}Y=fzs;return Y},{mode:1});var ieL;var o0m;var yg=function(){var Y=_.Z.apply(this,arguments)||this;Y.collections=!!_.f("web_modern_collections_v2");Y.startX=0;return Y};
_.r(yg,_.Z);yg.prototype.onEndpointMouseDown=function(Y){this.startX=Y.clientX};
yg.prototype.onEndpointClick=function(Y){this.startX!==Y.clientX&&(Y.preventDefault(),Y.stopPropagation())};
yg.prototype.computeObjectFit=function(Y){return Y==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||Y==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||Y==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
yg.prototype.computeCardStyle=function(Y){return Y?Y.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.y6.Object.defineProperties(yg.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var Y,S;return this.collections&&((Y=this.data)==null?void 0:(S=Y.searchRefinementCardRendererStyle)==null?void 0:S.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],yg.prototype,"data",void 0);_.Q([_.X({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.k("design:type",Number)],yg.prototype,"objectFit",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.k("design:type",String)],yg.prototype,"cardStyle",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],yg.prototype,"roundContainer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],yg.prototype,"collections",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],yg.prototype,"isAlbumCard",null);_.Q([_.d("data","collections","isAlbumCard"),_.k("design:type",Object),_.k("design:paramtypes",[])],yg.prototype,"collectionStack",null);
yg=_.Q([_.t({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],yg);
_.A(yg,"ytd-search-refinement-card-renderer",function(){if(o0m!==void 0)return o0m;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return o0m=Y},{mode:1});var tls;var NH=function(){var Y=_.Z.apply(this,arguments)||this;Y.isRichGrid=!1;return Y};
_.r(NH,_.Z);_.Q([_.X(),_.k("design:type",Object)],NH.prototype,"data",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],NH.prototype,"componentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],NH.prototype,"ytdReduxBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],NH.prototype,"isRichGrid",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Boolean)],NH.prototype,"miniMode",void 0);
NH=_.Q([_.t({is:"ytd-game-details-renderer",disableElementRegistration:!0})],NH);
_.A(NH,"ytd-game-details-renderer",function(){if(tls!==void 0)return tls;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return tls=Y},{mode:1});var AQm;var Uft;var Hb=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return Y};
_.r(Hb,_.Z);_.z=Hb.prototype;_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.z.currentStateData=function(Y){var S=Y||this.data;return S&&S.states&&S.currentStateId!=null?S.states.find(function(P){return P.stateId===S.currentStateId})||null:null};
_.z.currentStateRendererData=function(Y){return(Y=this.currentStateData(Y))&&Y.state&&Y.state.buttonRenderer?Y.state.buttonRenderer:null};
_.z.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())};
_.z.computeButtonIcon=function(Y){Y=this.currentStateRendererData(Y);var S;return(Y==null?0:(S=Y.icon)==null?0:S.iconType)?Y.icon.iconType.toLowerCase():null};
_.z.computeAccessibility=function(Y){return(Y=this.currentStateRendererData(Y))&&Y.accessibilityData?Y.accessibilityData.accessibilityData||null:null};
_.z.computeButtonClass=function(Y){var S=this.currentStateRendererData(Y);if(!S)return"";Y="";var P=S.style;P&&(Y+=P.toLowerCase().replace(/_/g,"-")+" ");(S=S.size)&&(Y+=S.toLowerCase().replace(/_/g,"-")+" ");return Y.trim()};
_.z.computeServiceEndpoint=function(Y){if(!Y)return null;var S=Y&&Y.serviceEndpoint,P=this.get("command.commandMetadata.webCommandMetadata.sendPost",Y);return S?S:P&&Y.command?Y.command:null};
_.z.computeBellMenuItemParams=function(Y){var S;Y=(S=_.g(Y==null?void 0:Y.command,_.qT))==null?void 0:S.commands;if(!Y||Y.length===0)return null;S=_.g(Y[0],_.fP);var P,u;return(S==null?0:(P=S.popup)==null?0:(u=P.menuPopupRenderer)==null?0:u.items)?S.popup.menuPopupRenderer.items.map(function(W){return W.menuServiceItemRenderer.trackingParams}):null};
_.z.handleBellMenuOpenSelectedAction=function(Y){var S=Y.trackingParams,P=this.computeBellMenuItemParams(this.data);this.data&&S&&P&&P.includes(S)&&this.ytRenderButtonBehavior._setButtonIcon(Y.icon.iconType.toLowerCase())};
_.z.onYtServiceRequestCompleted=function(Y,S){(Y=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",S))&&this.set("data",Y)};
_.z.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.z.resetState=function(){this.set("data.currentStateId",3)};
_.z.onYtButtonTapHandler=function(){if(this.data){var Y=this.currentStateRendererData(this.data);Y&&this.ytRendererBehavior.logExplicitClick(Y)}};
Hb.prototype.onYtServiceRequestError=Hb.prototype.onYtServiceRequestError;Hb.prototype.onYtServiceRequestCompleted=Hb.prototype.onYtServiceRequestCompleted;Hb.prototype.stateChanged=Hb.prototype.stateChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Hb.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(W0.YtRenderButtonBehavior),_.k("design:type",Object)],Hb.prototype,"ytRenderButtonBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Hb.prototype,"data",void 0);_.Q([_.cZ("data","data.currentStateId"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hb.prototype,"stateChanged",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],Hb.prototype,"onYtServiceRequestCompleted",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Hb.prototype,"onYtServiceRequestError",null);Hb=_.Q([_.t({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Hb);
_.A(Hb,"ytd-subscription-notification-toggle-button-renderer",function(){if(Uft!==void 0)return Uft;var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Uft=Y},{mode:1});var QgL;var Vg=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};Y.tapHandler=function(){if(Y.data){var S=Y.currentStateRendererData();S&&Y.ytRendererBehavior.logExplicitClick(S)}};
return Y};
_.r(Vg,_.Z);_.z=Vg.prototype;_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.z.currentStateData=function(){var Y=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(S){return S.stateId===Y.data.currentStateId})||null:null};
_.z.currentStateRendererData=function(){var Y=this.currentStateData();return Y&&Y.state&&Y.state.buttonRenderer?Y.state.buttonRenderer:null};
_.z.computeAccessibilityLabel=function(){var Y,S,P;return(Y=this.currentStateRendererData())==null?void 0:(S=Y.accessibilityData)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label};
_.z.computeBellMenuItemParams=function(){var Y,S,P=(S=_.g((Y=this.data)==null?void 0:Y.command,_.qT))==null?void 0:S.commands;if(!P||P.length===0)return null;Y=_.g(P[0],_.fP);var u,W;return(Y==null?0:(u=Y.popup)==null?0:(W=u.menuPopupRenderer)==null?0:W.items)?Y.popup.menuPopupRenderer.items.map(function(m){return m.menuServiceItemRenderer.trackingParams}):null};
_.z.handleBellMenuOpenSelectedAction=function(Y){var S=Y.trackingParams,P=this.computeBellMenuItemParams();if(this.data&&S&&P&&P.includes(S)&&(Y==null||!Y.isDisabled)){var u;((u=_.g(Y.serviceEndpoint,_.xo))==null?void 0:u.signal)!=="CLIENT_SIGNAL"&&(this.icon=Y.icon.iconType)}};
_.z.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.z.onYtServiceRequestCompleted=function(Y,S){if(Y=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",S))this.icon=void 0,this.set("data",Y)};
_.z.onYtServiceRequestError=function(){this.icon=void 0};
_.y6.Object.defineProperties(Vg.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=this.data,S=this.textLabel,P=this.hostElement,u=this.computeAccessibilityLabel(),W=this.tapHandler,m=this.isOverlay?"overlay":"mono",J=(Y==null?0:Y.disableButton)?"disabled":"active";S=S?_.$J(S):void 0;return{style:m,type:"tonal",state:J,size:"M",focused:!1,formattedButtonText:S,iconPosition:"leading-trailing",onTap:KH$(Y,W,P),accessibilityLabel:u}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var Y=this.currentStateRendererData(),S,P,u=(P=this.icon)!=null?P:Y==null?void 0:(S=Y.icon)==null?void 0:S.iconType;if(u)return _.u2(u)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.secondaryIcon)==null?void 0:S.iconType;if(P)return _.u2(P)}}});
Vg.prototype.onYtServiceRequestError=Vg.prototype.onYtServiceRequestError;Vg.prototype.onYtServiceRequestCompleted=Vg.prototype.onYtServiceRequestCompleted;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Vg.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Vg.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Vg.prototype,"textLabel",void 0);
_.Q([_.X(),_.k("design:type",String)],Vg.prototype,"icon",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Vg.prototype,"isOverlay",void 0);_.Q([_.d("data.*","textLabel"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vg.prototype,"computedButtonShape",null);_.Q([_.d("data.*","icon"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vg.prototype,"computedIcon",null);_.Q([_.d("data.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vg.prototype,"computedSecondaryIcon",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],Vg.prototype,"onYtServiceRequestCompleted",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Vg.prototype,"onYtServiceRequestError",null);Vg=_.Q([_.t({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Vg);
_.A(Vg,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(QgL!==void 0)return QgL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return QgL=Y},{mode:_.OX("kevlar_poly_si_batch_j081")?1:2});var kGi;_.f("web_enable_sink_animated_actions")?_.AL(tEf,"yt-animated-action",{props:{backgroundLottieRef:_.wm,foregroundLottieRef:_.wm,wrapperClass:_.wm,disableAnimation:_.wm},unsafeExternallySettableAttributes:new Set(["key"])}):_.Vz(eZ8,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var eM=function(){var Y=_.Z.apply(this,arguments)||this;Y.animatedActionEnabled=_.f("web_animated_actions");Y.foregroundLottieRef={};Y.backgroundLottieRef={};Y.forceIconOnly=!1;Y.showTextWhileAnimating=!1;Y.keyboardFocused=!1;Y.isAnimating=!1;Y.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return Y};
_.r(eM,_.Z);_.z=eM.prototype;_.z.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.z.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]]"}}}}}};
_.z.attached=function(){this.keyboardFocused=!1};
_.z.onYtServiceRequestSent=function(Y,S){(this.get("endpoint.subscribeEndpoint",S)||this.get("endpoint.unsubscribeEndpoint",S))&&this.updateSubscriptionState(!this.subscribed)};
_.z.onYtServiceRequestCompleted=function(Y,S){(Y=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",S.data))&&this.bellButton&&(this.bellButton.data=Y)};
_.z.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.PZ(this.hostElement)};
_.z.onPlayerSubscribe=function(Y){this.isCompactRed()||Y!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.z.onPlayerUnsubscribe=function(Y){this.isCompactRed()||Y!==this.data.channelId||this.updateSubscriptionState(!1)};
_.z.handleUpdateSubscribeButtonAction=function(Y){Y=_.g(Y,Hga);var S;Y&&Y.channelId===((S=this.data)==null?void 0:S.channelId)&&this.updateSubscriptionState(!!Y.subscribed)};
_.z.computeButtonStyle=function(Y){return this.get("style.styleType",Y)||null};
_.z.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.z.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.z.updateSubscriptionState=function(Y){if(Y!==this.subscribed){this.set("data.subscribed",Y);var S,P=(S=this.data)==null?void 0:S.subscribedEntityKey;P&&this.ytdReduxBehavior.dispatch(_.qE("subscriptionStateEntity",P,{key:P,subscribed:Y}));this.isCompactRed()||_.ms(this.hostElement,"yt-subscription-changed",Y);Y||(_.nb(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!Y),Y&&this.hasBellButton&&this.startAnimation())}};
_.z.startAnimation=function(){var Y=this;if(!this.isAnimating){var S=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var P;(P=this.backgroundLottieRef.lottieEl)==null||P.goToAndPlay(0);var u;(u=this.foregroundLottieRef.lottieEl)==null||u.goToAndPlay(0);_.wc.addJob(function(){Y.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.wc.addJob(function(){Y.updateContainerToFitContent(!!Y.subscribed,!0)},2,1500);
_.wc.addJob(function(){Y.isAnimating=!1},2,S)}};
_.z.maybeAnimateBellIcon=function(){var Y=_.Hq(this.hostElement).querySelector("yt-animated-icon");if(Y){var S;(S=Y.animationRef.lottieEl)==null||S.goToAndPlay(0)}};
_.z.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.z.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.z.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var Y;this.unsubscribedWidth=(Y=this.subscribeButtonShape)==null?void 0:Y.getBoundingClientRect().width}var S;this.subscribedWidth=(S=this.bellButton)==null?void 0:S.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.z.updateContainerToFitContent=function(Y,S){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(Y?(Y=this.subscribedWidth,S=this.isAnimating&&!S,this.subscribedIconOnlyWidth===void 0||S||(Y=this.subscribedIconOnlyWidth),this.hostElement.style.width=Y+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.z.clearContainerSize=function(){this.hostElement.style.width=""};
_.z.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.z.maybeSetSubscribedButtonIconOnlyWidth=function(){var Y=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var S;Y.subscribedIconOnlyWidth=(S=Y.bellButton)==null?void 0:S.getBoundingClientRect().width;requestAnimationFrame(function(){if(Y.bellButton){var P;Y.bellButton.textLabel=
(P=Y.data)==null?void 0:P.subscribedButtonText}})})))};
_.y6.Object.defineProperties(eM.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var Y;return(Y=this.data)==null?void 0:Y.subscribedButtonText}var S;return this.forceIconOnly?void 0:(S=this.data)==null?void 0:S.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=((Y=this.data)==null?void 0:(S=Y.timedAnimationData)==null?void 0:S.animationTiming)||[];return{uniqueId:"subscribe",timings:P,enabled:P.length>0&&!this.subscribed,experimentEnabled:P.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var Y;return!this.subscribed&&((Y=this.data)==null?void 0:Y.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var S=Y.renderer;var P=Y.element;var u=Y.subscribed;var W=Y.commandController;var m=Y.isOverlay;Y=Y.config;var J=$9X(S,u);m&&(J.style="overlay");m=Object;var c=m.assign,C;a:switch((C=S.style)==null?void 0:C.styleType){case "COMPACT_GRAY":case "COMPACT_RED":C={size:"S"};break a;default:C={size:"M"}}var x=g4X(S,u);var b=
(b=u?S.subscribedButtonText:S.unsubscribedButtonText)?_.$J(b):void 0;return c.call(m,{},J,C,{focused:!1,toggled:u,accessibilityLabel:x,formattedButtonText:b,onTap:fMf(S,Y,u,P,W)})}}}});
eM.prototype.onMouseDown=eM.prototype.onMouseDown;eM.prototype.onDataChanged=eM.prototype.onDataChanged;eM.prototype.observedSubscribed=eM.prototype.observedSubscribed;eM.prototype.onYtServiceRequestCompleted=eM.prototype.onYtServiceRequestCompleted;eM.prototype.onYtServiceRequestSent=eM.prototype.onYtServiceRequestSent;eM.prototype.maybeUpdateBellButtonText=eM.prototype.maybeUpdateBellButtonText;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],eM.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],eM.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],eM.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],eM.prototype,"data",void 0);
_.Q([_.X({selectorArgs:["data.subscribedEntityKey"],selector:_.YI}),_.k("design:type",Object)],eM.prototype,"subscriptionStateEntity",void 0);_.Q([_.X({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.k("design:type",Boolean)],eM.prototype,"subscribed",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],eM.prototype,"branded",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eM.prototype,"animatedActionEnabled",void 0);
_.Q([_.X(),_.k("design:type",Object)],eM.prototype,"foregroundLottieRef",void 0);_.Q([_.X(),_.k("design:type",Object)],eM.prototype,"backgroundLottieRef",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],eM.prototype,"overlayButton",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.k("design:type",Object)],eM.prototype,"buttonStyle",void 0);_.Q([_.X(),_.k("design:type",Object)],eM.prototype,"forceIconOnly",void 0);
_.Q([_.X(),_.k("design:type",Object)],eM.prototype,"showTextWhileAnimating",void 0);_.Q([_.X({value:function(){return!!_.E().resolve(_.PQ(_.Tz))&&_.f("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.k("design:type",Boolean)],eM.prototype,"useKeyboardFocused",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eM.prototype,"keyboardFocused",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eM.prototype,"isAnimating",void 0);_.Q([_.d("data.notificationPreferenceButton.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],eM.prototype,"hasBellButton",null);
_.Q([_.zY("subscribedButtonText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eM.prototype,"maybeUpdateBellButtonText",null);_.Q([_.d("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],eM.prototype,"subscribedButtonText",null);_.Q([_.d("data.timedAnimationData.animationTiming","subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],eM.prototype,"smartimationSettings",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],eM.prototype,"subscribeButtonHidden",null);_.Q([_.X({reflectToAttribute:!0}),_.d("subscribed","hasBellButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],eM.prototype,"subscribeButtonInvisible",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],eM.prototype,"unsubscribeButtonHidden",null);_.Q([_.nc("ytd-subscription-notification-toggle-button-renderer-next"),_.k("design:type",Object)],eM.prototype,"bellButton",void 0);_.Q([_.nc("#subscribe-button-shape"),_.k("design:type",HTMLElement)],eM.prototype,"subscribeButtonShape",void 0);
_.Q([_.d("overlayButton","subscribed","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eM.prototype,"buttonShape",null);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],eM.prototype,"onYtServiceRequestSent",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],eM.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.zY("subscribed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eM.prototype,"observedSubscribed",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eM.prototype,"onDataChanged",null);_.Q([_.WZ("mousedown"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],eM.prototype,"onMouseDown",null);
eM=_.Q([_.t({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],eM);
_.A(eM,"ytd-subscribe-button-renderer",function(){if(kGi!==void 0)return kGi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return kGi=Y},{mode:1});var OO=function(){var Y=_.Z.apply(this,arguments)||this;Y.isRichGrid=!1;return Y};
_.r(OO,_.Z);OO.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],OO.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],OO.prototype,"isRichGrid",void 0);OO=_.Q([_.t({is:"ytd-game-card-renderer",disableElementRegistration:!0})],OO);
_.A(OO,"ytd-game-card-renderer",function(){if(AQm!==void 0)return AQm;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return AQm=Y},{mode:1});var Yw={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.f("defer_menus")&&!FLS?0:void 0,waitForSignal:"eocs"};var Mli;var yQs;var SQ=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return Y};
_.r(SQ,_.Z);_.z=SQ.prototype;_.z.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.z.onSeriesReminderStateEntityChange=function(){var Y,S,P;((Y=this.eventReminderStateEntity)==null?0:Y.key)&&((S=this.seriesReminderStateEntity)==null?void 0:S.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((P=this.eventReminderStateEntity)==null?void 0:P.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.qE("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.z.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.z.onYtServiceRequestError=function(){var Y;this.updateReminderStateEntitiesFromButtonState((Y=this.data)==null?void 0:Y.currentState)};
_.z.handleUpdateUpcomingEventReminderButtonStateCommand=function(Y){if(Y=_.g(Y,eSJ)){var S,P=(S=this.data)==null?void 0:S.targetId;P&&Y.targetId===P&&_.w0(this.updateReminderStateEntitiesFromButtonState.bind(this,Y.state))}};
_.z.getButtonStateFromReminderState=function(){var Y;if(((Y=this.seriesReminderStateEntity)==null?void 0:Y.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var S;if(((S=this.eventReminderStateEntity)==null?void 0:S.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var P,u;if(((P=this.seriesReminderStateEntity)==null?void 0:P.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((u=this.eventReminderStateEntity)==
null?void 0:u.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var W;return(W=this.data)==null?void 0:W.currentState};
_.z.updateReminderStateEntitiesFromButtonState=function(Y){if(Y){switch(Y){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":Y="UPCOMING_EVENT_REMINDER_STATE_NONE";var S="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":Y="UPCOMING_EVENT_REMINDER_STATE_SINGLE";S="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":Y="UPCOMING_EVENT_REMINDER_STATE_NONE";S="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var P;
((P=this.eventReminderStateEntity)==null?0:P.key)&&this.ytdReduxBehavior.dispatch(_.qE("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:Y})));var u;((u=this.seriesReminderStateEntity)==null?0:u.key)&&this.ytdReduxBehavior.dispatch(_.qE("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:S})))}};
_.y6.Object.defineProperties(SQ.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var Y=this.getButtonStateFromReminderState(),S,P;if(Y&&((S=this.data)==null?0:(P=S.states)==null?0:P.length))for(S=_.n(this.data.states),P=S.next();!P.done;P=S.next()){P=P.value;var u=void 0;if(((u=_.g(P,OP_))==null?void 0:u.state)===Y)return _.g(P,OP_)}}}});
SQ.prototype.onYtServiceRequestError=SQ.prototype.onYtServiceRequestError;SQ.prototype.onYtServiceRequestCompleted=SQ.prototype.onYtServiceRequestCompleted;SQ.prototype.onSeriesReminderStateEntityChange=SQ.prototype.onSeriesReminderStateEntityChange;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],SQ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],SQ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],SQ.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],SQ.prototype,"data",void 0);_.Q([_.X({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:DNf}),_.k("design:type",Object)],SQ.prototype,"eventReminderStateEntity",void 0);
_.Q([_.X({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(Y,S){return _.BT(Y.entities,"sportsSeriesReminderStateEntity",S)}}),
_.k("design:type",Object)],SQ.prototype,"seriesReminderStateEntity",void 0);_.Q([_.d("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],SQ.prototype,"currentButtonStateRenderer",null);_.Q([_.zY("seriesReminderStateEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SQ.prototype,"onSeriesReminderStateEntityChange",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SQ.prototype,"onYtServiceRequestCompleted",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SQ.prototype,"onYtServiceRequestError",null);SQ=_.Q([_.t({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],SQ);
_.A(SQ,"ytd-upcoming-event-reminder-button-renderer",function(){if(yQs!==void 0)return yQs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
return yQs=Y},{mode:1});var NWi;var P4=function(){return _.Z.apply(this,arguments)||this};
_.r(P4,_.Z);P4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.y6.Object.defineProperties(P4.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(_.f("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],P4.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],P4.prototype,"shelfDismissal",void 0);_.Q([_.d("data.responseText"),_.k("design:type",Object),_.k("design:paramtypes",[])],P4.prototype,"text",null);
_.Q([_.d("data.responseText"),_.k("design:type",Object),_.k("design:paramtypes",[])],P4.prototype,"textAriaLabel",null);P4=_.Q([_.t({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],P4);
_.A(P4,"ytd-notification-multi-action-renderer",function(){if(NWi!==void 0)return NWi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return NWi=Y},{mode:1});var HeS;var u7=function(){return _.Z.apply(this,arguments)||this};
_.r(u7,_.Z);u7.prototype.ready=function(){var Y=this;_.I(this.hostElement).querySelector("#undo").addEventListener("tap",function(){Y.onUndoTap()})};
u7.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.E().resolve(_.uY).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],u7.prototype,"data",void 0);u7=_.Q([_.t({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],u7);
_.A(u7,"ytd-notification-text-renderer",function(){if(HeS!==void 0)return HeS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return HeS=Y},{mode:1});var VlS;var W4=function(){var Y=_.Z.apply(this,arguments)||this;Y.mouseOverDelayJobId=0;Y.fadeInImageDelayJobId=0;Y.startTimeMs=-1;Y.loadingStartTimeMs=-1;Y.loadingEndTimeMs=-1;Y.hasVideoPreview=!1;return Y};
_.r(W4,_.Z);_.z=W4.prototype;_.z.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.z.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.z.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.z.showThumbnail=function(){var Y=this;this.csn=_.pM();_.sV("fmth");_.wc.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.yz(_.wc,function(){Y.loadingStartTimeMs=(0,_.Oh)();var S=_.I(Y.hostElement).querySelector("#thumbnail");S.complete?Y.displayMouseOverImage():S.addEventListener("load",_.up(Y,Y.displayMouseOverImage))},150):_.Vm(_.I(this.hostElement).querySelector("#play"),"show",!0)};
_.z.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.z.onTap=function(){this.removeVideoPreview()};
_.z.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var Y=this.videoId,S=this.csn,P=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,u=this.startTimeMs,W=this.hasVideoPreview,m=_.Re(this.trackingParams),J={isMovingThumbnail:W};W&&u>0&&(P>0&&(J.movingThumbnailLoadingDurationMs=Math.round(P)),J.durationHoveredMs=Math.round((0,_.Oh)()-u));Y&&(J.videoId=Y);_.MT(S,m,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:J});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.z.removeVideoPreview=function(){_.wc.cancelJob(this.mouseOverDelayJobId);_.wc.cancelJob(this.fadeInImageDelayJobId);var Y=_.I(this.hostElement).querySelector("#thumbnail");_.Vm(Y,"fade-in",!1);Y.removeEventListener("load",_.up(this,this.displayMouseOverImage));Y=_.I(this.hostElement).querySelector("#play");_.Vm(Y,"fade-in",!1);_.Vm(Y,"show",!1)};
_.z.displayMouseOverImage=function(){var Y=_.I(this.hostElement).querySelector("#thumbnail"),S=_.I(this.hostElement).querySelector("#play");this.isImageAvailable(Y)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Oh)(),this.startTimeMs=(0,_.Oh)(),this.fadeInImageDelayJobId=_.yz(_.wc,function(){_.Vm(Y,"fade-in",!0)},50)):_.Vm(S,"fade-in",!0)};
_.z.computeThumbnail=function(Y,S){var P;Y&&Y.movingThumbnailDetails&&Y.movingThumbnailDetails.thumbnails&&S?P=_.UD(Y.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):P=S?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(P)return _.Bx(P)};
_.z.isImageAvailable=function(Y){return!(!Y.src||Y.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||Y.naturalWidth===120)};
W4.prototype.onTap=W4.prototype.onTap;W4.prototype.dataChanged=W4.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],W4.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],W4.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],W4.prototype,"csn",void 0);_.Q([_.X(),_.k("design:type",Object)],W4.prototype,"trackingParams",void 0);
_.Q([_.X(),_.k("design:type",String)],W4.prototype,"videoId",void 0);_.Q([_.X(),_.k("design:type",Boolean)],W4.prototype,"isAttachedAndDataSet",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W4.prototype,"dataChanged",null);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W4.prototype,"onTap",null);W4=_.Q([_.t({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],W4);
_.A(W4,"ytd-moving-thumbnail-renderer",function(){if(VlS!==void 0)return VlS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return VlS=Y},{mode:1});var eYL;_.cs=function(Y){this.hostElement=Y;this.eventSink=null;this.eventList=[]};
_.cs.prototype.shouldForward=function(){var Y,S;return(S=(Y=this.eventSink)==null?void 0:Y.isConnected)!=null?S:document.body.contains(this.eventSink)};
_.cs.prototype.start=function(Y,S){this.eventSink&&this.stop();for(var P=0;P<Y.length;P++)this.hostElement.addEventListener(Y[P],_.up(this,this.forwardEvent));var u;this.eventSink=(u=S.hostElement)!=null?u:S;this.eventList=Y};
_.cs.prototype.stop=function(){for(var Y=0;Y<this.eventList.length;Y++)this.hostElement.removeEventListener(this.eventList[Y],_.up(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.cs.prototype.forwardEvent=function(Y,S){this.shouldForward()&&(Y.stopPropagation(),this.eventSink instanceof Element?_.ms(this.eventSink,Y.type,S):_.sf(new _.$2("eventSink is not an element")))};_.z$={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.cs(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(Y,S){this.forwarder_.start(Y,S)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var mW=function(){return _.Z.apply(this,arguments)||this};
_.r(mW,_.Z);_.z=mW.prototype;_.z.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=_.X3("HTML_DIR")==="rtl"?"right":"left"};
_.z.dataChanged=function(){this.popupOpen=!1};
_.z.computeAriaLabel=function(Y){return _.g(Y,xiU).label};
_.z.onTap=function(Y){Y.stopPropagation();Y.preventDefault();this.data.command&&_.E().resolve(_.uY).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.z.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.z.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
mW.prototype.onPopupClosed=mW.prototype.onPopupClosed;mW.prototype.onPopupOpened=mW.prototype.onPopupOpened;mW.prototype.onTap=mW.prototype.onTap;mW.prototype.dataChanged=mW.prototype.dataChanged;_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],mW.prototype,"eventForwardingBehavior",void 0);_.Q([_.p(_.DW),_.k("design:type",Object)],mW.prototype,"ironButtonState",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],mW.prototype,"componentBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],mW.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,value:-1}),_.k("design:type",Number)],mW.prototype,"tabindex",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.k("design:type",Object)],mW.prototype,"ariaLabel",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],mW.prototype,"disableTooltips",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],mW.prototype,"popupOpen",void 0);
_.Q([_.X(),_.k("design:type",Element)],mW.prototype,"eventSink",void 0);_.Q([_.nc("#tooltip"),_.k("design:type",Object)],mW.prototype,"tooltip",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mW.prototype,"dataChanged",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],mW.prototype,"onTap",null);
_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mW.prototype,"onPopupOpened",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mW.prototype,"onPopupClosed",null);mW=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],mW);
_.A(mW,"ytd-thumbnail-overlay-button-renderer",function(){if(eYL!==void 0)return eYL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" 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>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return eYL=Y},{mode:1});var OeL;var nC=function(){return _.Z.apply(this,arguments)||this};
_.r(nC,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],nC.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],nC.prototype,"disableAnimation",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],nC.prototype,"rounded",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],nC.prototype,"transparentBackground",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],nC.prototype,"noPadding",void 0);nC=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],nC);
_.A(nC,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(OeL!==void 0)return OeL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return OeL=Y},{mode:1});var Y8_;var jQ=function(){return _.Z.apply(this,arguments)||this};
_.r(jQ,_.Z);jQ.prototype.computeIconPosition=function(Y){return this.get("iconPosition",Y)||null};
jQ.prototype.computeIconStyle=function(Y){return this.get("iconStyle",Y)||null};
jQ.prototype.computeIsIconStyleFilled=function(Y){if(!Y)return!1;var S;return Y.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((S=Y.icon)==null?void 0:S.iconType)==="ERROR_BLACK"};
_.Q([_.X(),_.k("design:type",Object)],jQ.prototype,"data",void 0);_.Q([_.X({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.k("design:type",Object)],jQ.prototype,"iconPosition",void 0);_.Q([_.X({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.k("design:type",Object)],jQ.prototype,"iconStyle",void 0);_.Q([_.X({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],jQ.prototype,"iconStyleFilled",void 0);
jQ=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],jQ);
_.A(jQ,"ytd-thumbnail-overlay-icon-renderer",function(){if(Y8_!==void 0)return Y8_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Y8_=Y},{mode:1});var S8L;var JB=function(){return _.Z.apply(this,arguments)||this};
_.r(JB,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],JB.prototype,"data",void 0);JB=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],JB);
_.A(JB,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(S8L!==void 0)return S8L;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return S8L=Y},{mode:1});var P3s;var B4=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPreviewLoading=!1;return Y};
_.r(B4,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],B4.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],B4.prototype,"isPreviewLoading",void 0);B4=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],B4);
_.A(B4,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(P3s!==void 0)return P3s;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return P3s=Y},{mode:1});var uTm;var c4=function(){return _.Z.apply(this,arguments)||this};
_.r(c4,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],c4.prototype,"data",void 0);c4=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],c4);
_.A(c4,"ytd-thumbnail-overlay-pinking-renderer",function(){if(uTm!==void 0)return uTm;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return uTm=Y},{mode:1});var WHh;var CC=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableTooltips=!1;Y.isLoading=!1;Y.useExpandableTooltip=!1;Y.toggled=!1;Y.hovered=!1;Y.mouseoverDelayJobId=0;Y.toggleDelayJobId=0;Y.expandAnimationDelayJobId=0;return Y};
_.r(CC,_.Z);_.z=CC.prototype;_.z.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");_.I(this.hostElement).querySelector("#tooltip").position=_.X3("HTML_DIR")==="rtl"?"right":"left"};
_.z.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.wc.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.wc.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.wc.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.z.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.wc.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.wc.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.wc.cancelJob(this.expandAnimationDelayJobId)};
_.z.computeIcon=function(Y,S,P){return(Y=P?S:Y)&&Y.iconType?_.u2(Y.iconType):void 0};
_.z.computeAriaLabel=function(Y,S,P){return _.g(P?S:Y,xiU).label};
_.z.computeTooltip=function(Y,S,P){return P?S:Y};
_.z.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.z.computeIconOnHover=function(Y,S){if((Y==null?0:Y.iconType)&&!S)return _.u2(Y.iconType)};
_.z.onTap=function(Y){var S=this;Y.stopPropagation();Y.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(Y=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(Y),this.useExpandableTooltip&&(this.toggleDelayJobId=_.yz(_.wc,function(){S.hovered=!1;S.data&&!S.data.toggledServiceEndpoint&&(S.expandAnimationDelayJobId=_.yz(_.wc,function(){S.set("data.isToggled",
!1)},200))},2E3))};
_.z.onMouseenter=function(){var Y=this;this.mouseoverDelayJobId=_.yz(_.wc,function(){Y.hovered=!0},300)};
_.z.onMouseleave=function(){_.wc.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.z.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.z.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.z.onServiceRequestCompleted=function(Y,S){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(S)||this.set("data.isToggled",!this.data.isToggled)};
_.z.serviceRequestWasSuccessful=function(Y){return _.g(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.hf)?Y.data.status==="STATUS_SUCCEEDED":!0};
CC.prototype.onServiceRequestCompleted=CC.prototype.onServiceRequestCompleted;CC.prototype.onPopupClosed=CC.prototype.onPopupClosed;CC.prototype.onPopupOpened=CC.prototype.onPopupOpened;CC.prototype.onMouseleave=CC.prototype.onMouseleave;CC.prototype.dataChanged=CC.prototype.dataChanged;_.Q([_.p(_.DW),_.k("design:type",Object)],CC.prototype,"ironButtonState",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],CC.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],CC.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],CC.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.k("design:type",Object)],CC.prototype,"ariaLabel",void 0);_.Q([_.X(),_.k("design:type",Object)],CC.prototype,"disableTooltips",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],CC.prototype,"popupOpen",void 0);_.Q([_.X(),_.k("design:type",Object)],CC.prototype,"isLoading",void 0);_.Q([_.X(),_.k("design:type",Element)],CC.prototype,"eventSink",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CC.prototype,"useExpandableTooltip",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.k("design:type",Object)],CC.prototype,"toggled",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CC.prototype,"hovered",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.k("design:type",Object)],CC.prototype,"iconOnHover",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CC.prototype,"dataChanged",null);
_.Q([_.WZ("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CC.prototype,"onMouseleave",null);_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CC.prototype,"onPopupOpened",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CC.prototype,"onPopupClosed",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],CC.prototype,"onServiceRequestCompleted",null);CC=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],CC);
_.A(CC,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(WHh!==void 0)return WHh;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return WHh=Y},{mode:_.OX("kevlar_poly_si_batch_j053")?1:2});var zR_;var m9f=_.AI(function(Y){var S=Y.data;var P=function(){return S().enableSegmentView};
return _.R("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.R(_.gw,{cond:P,then:function(){return _.R("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.R("div",{class:_.uN("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+S().startPercent+"%"}}),_.R("div",{class:_.uN("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+S().segmentDurationPercent+"%"}},_.R("div",{class:_.uN("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.R("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.R("div",null," ",function(){return S().segmentLabel})),_.R("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.R("div",{class:_.uN("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.R(_.gw,{cond:function(){return!P()&&S().startPercent},
then:function(){var u={};return _.R("div",{class:_.uN("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(u.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.f("web_enable_modern_progress_bar_overlay"),u))},_.R("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+S().startPercent+"%"}}))}}))},"K");
m9f.idomCompat=!0;var n4u=_.AI(function(Y){var S=_.uL(),P=_.GI(function(W){var m,J,c;a:{var C=(m=Y.data())==null?void 0:m.animationActivationTargetId;m=((J=Y.data())==null?void 0:J.animationActivationEntityKey)||"";J=(c=Y.data())==null?void 0:c.animationActivationEntitySelectorType;if(m&&C)switch(J){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":W=_.BT(W.entities,"playerStateEntity",m);c=_.E().resolve(_.PQ(_.l1));C=!!(W&&W.videoId===C&&(c==null?0:c.isMiniplayerActive()));C={activated:C,playAnimation:C&&
W.playerState==="PLAYER_STATE_PLAYING"};break a}C=void 0}return C});
_.D6(function(){var W;if((W=P())==null?0:W.activated){var m;if((m=P())==null?0:m.playAnimation){var J;(J=S.lottieEl)==null||J.goToAndPlay(0)}else{var c;(c=S.lottieEl)==null||c.goToAndStop(0)}}});
var u=function(){var W,m=!((W=P())==null||!W.activated);if(Y.data()){W=Y.data();var J=void 0;W.icon&&(J=RpK(W.icon),J=gi8(J));var c=void 0,C;if((C=W.backgroundColor)==null?0:C.lightTheme){var x;c={backgroundColor:vq((x=W.backgroundColor)==null?void 0:x.lightTheme,"0.8")}}if(W.text||J||m){if(m&&W.lottieData&&S){x=W.lottieData;var b,T,K;C={animationConfig:{name:x.url,path:x.url,autoplay:(b=x.settings)==null?void 0:b.autoplay,loop:(K=(T=x.settings)==null?void 0:T.loop)!=null?K:!0},animationRef:S}}else C=
void 0;if(m)b=16;else b:switch(W.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":b=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":b=18;break b;default:b=16}m={type:b,text:m&&W.animatedText?W.animatedText:W.text,icon:J,customColors:c,animation:C}}else m=void 0}else m=void 0;return m};
return _.R("yt-thumbnail-badge-view-model",{class:_.Si("yt-thumbnail-badge-view-model-wiz",Y.class)},_.R(_.gw,{cond:u,then:function(){return _.R(_.ME,{data:function(){return u()}})}}))},"L");var jlu=_.AI(function(Y){var S={};return _.R("yt-thumbnail-bottom-overlay-view-model",{class:_.Si("ytThumbnailBottomOverlayViewModelHost",(S.ytThumbnailBottomOverlayViewModelHostBackground=function(){return Y.data().enableGradientBackground},S))},_.R("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.R(_.rv,{data:function(){return Y.data().progressBar}},{thumbnailOverlayProgressBarViewModel:m9f}),_.R(_.rv,{data:function(){return Y.data().badge}},{thumbnailBadgeViewModel:function(P){return _.R(n4u,
{data:P.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.R(_.rv,{data:function(){return Y.data().badges}},{thumbnailBadgeViewModel:function(P){return _.R(n4u,{data:P.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"M");
jlu.idomCompat=!0;_.AL(jlu,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.tL}});var pwh={calledOnce:!1,state:"visible"},FH9={calledOnce:!1,state:"hidden"};_.Sr(lMK);var Jr6=_.AI(function(Y){var S=Y.data;var P=Y.className;Y=Y.alwaysShow;var u=_.Ms();_.Zw(u,function(){return S().rendererContext});
var W=_.GsK(),m={};return _.R("thumbnail-hover-overlay-view-model",{el:u,class:_.Si("ytThumbnailHoverOverlayViewModelHost",P,(m.ytThumbnailHoverOverlayViewModelHostForceHover=Y,m)),"aria-label":function(){var J;return(J=_.g(S().rendererContext,_.iL))==null?void 0:J.label},
role:function(){return _.dv(S().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.dv(S().rendererContext)!==void 0?0:void 0},
"on:keypress":W},_.R("div",{class:_.Si("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(S().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var J="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:J="ytThumbnailHoverOverlayViewModelStyleCover"}return J})},_.R(_.gw,{cond:function(){return S().icon},
then:function(J){return _.R(_.ZZ,{data:J,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.R(_.gw,{cond:function(){return S().text},
then:function(J){return _.R(_.qw,{text:J,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"N"),Beh=_.f("web_enable_sink_lockups_batch")?Jr6:lMK,cri=_.f("web_enable_sink_lockups_batch")?Jr6:_.WX(lMK);
Jr6.idomCompat=!0;var tq=_.AI(function(Y){var S=Y.data;return _.R(_.rv,{data:function(){return S==null?void 0:S().overlays}},{thumbnailHoverOverlayViewModel:cri})},"O");
tq.idomCompat=!0;var C3d={};var oq=_.AI(function(Y){var S=Y.data;var P=Y.image;var u=Y.state;var W=Y.iconType;var m=Y.overlays;var J=Y.isOverlay;var c=_.yZ();Y=_.n(_.qb(!0,void 0,"xOB8yb"));var C=Y.next().value,x=Y.next().value,b=_.o_(W,"LIVE");_.LE(function(){requestAnimationFrame(function(){var K=S().size;var G=S().badgeText;if(c.value===null)G=!0;else{var v=XwK(K);G in C3d?K=C3d[G]:(K=c.value.clientWidth,C3d[G]=K);(G=K>v)?c.value.style.display="none":c.value.style.visibility="visible"}x(G)})});
var T=function(){var K={};return K["yt-spec-avatar-shape__image"]=!0,K["yt-spec-avatar-shape__image--ads-app"]=S().type===1,K};
W=_.mR(function(K){var G,v;return void((v=(G=S()).onTap)==null?void 0:v.call(G,K))});
return _.R("yt-avatar-shape",null,_.R("div",{class:function(){var K={};K=(K["yt-spec-avatar-shape"]=!0,K["yt-spec-avatar-shape__button"]=!0,K[ita(S().size)]=!0,K["yt-spec-avatar-shape__button--tappable"]=!!S().onTap,K);var G=S().avatarButtonCustomClassName;G&&(K[G]=!0);return _.uN(K)},
"on:click":W,"on:keydown":_.FJ(),"aria-label":function(){return S().onTap?S().accessibilityText:""},
role:function(){return S().onTap?"button":void 0},
tabindex:function(){return S().onTap?0:void 0}},_.R("div",{class:function(){var K,G=S(),v=u==null?void 0:u(),a=J==null?void 0:J(),w=!((K=G.decorations)==null||!K.includes(2)||G.size!=="medium"&&G.size!=="large"),F=G.size==="tiny"||G.size==="extra-small",U,V,M,zJ,O={};
K=(O["yt-spec-avatar-shape--live-ring"]=!!(((U=G.decorations)==null?0:U.includes(0))&&t7$(G.size)),O["yt-spec-avatar-shape--stories-watched"]=w&&!(v==null||!v.storiesWatched),O["yt-spec-avatar-shape--stories-unwatched"]=w&&!(v==null?0:v.storiesWatched),O["yt-spec-avatar-shape--background-border"]=ArJ(G.decorations)&&!F,O["yt-spec-avatar-shape--background-border-thin"]=ArJ(G.decorations)&&F,O["yt-spec-avatar-shape__on-select-border"]=!((V=G.decorations)==null||!V.includes(4)),O["yt-spec-avatar-shape__white-border"]=
!((M=G.decorations)==null||!M.includes(5)),O["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((zJ=G.decorations)==null?0:zJ.includes(5))&&F),O["yt-spec-avatar-shape--is-overlay"]=!!a,O);return _.uN(K)}},_.R("div",{class:function(){var K={};
K=(K[Zta(S().size)]=!0,K["yt-spec-avatar-shape--no-margin"]=ArJ(S().decorations),K);return _.uN(K)}},_.R(_.ZZ,{data:P,
alt:function(){return!S().onTap&&S().accessibilityText?S().accessibilityText:""},
targetWidth:function(){return o4$(S().size)},
targetHeight:function(){return o4$(S().size)},
className:function(){return _.uN(T())}}),_.R(_.gw,{cond:function(){var K;
return((K=S().decorations)==null?void 0:K.includes(0))&&t7$(S().size)},
then:function(){return _.R("div",{class:function(){var K={};K=(K["yt-spec-avatar-shape__live-badge"]=!0,K["yt-spec-avatar-shape__live-badge--badge-small"]=S().size==="small",K["yt-spec-avatar-shape__live-badge--badge-medium"]=S().size==="medium"||S().size==="48",K["yt-spec-avatar-shape__live-badge--badge-large"]=S().size==="large",K["yt-spec-avatar-shape__live-badge--badge-extra-large"]=S().size==="extra-large"||S().size==="extra-extra-large"||S().size==="giant",K);return _.uN(K)}},_.R(_.gw,{cond:function(){return S().badgeText},
then:function(K){return _.R("div",{class:"yt-spec-avatar-shape__badge-text",el:c},K)}}),_.R(_.gw,{cond:C,
then:function(){return _.R("div",{class:"yt-spec-avatar-shape__badge-icon"},_.R(_.BX,{icon:b,size:function(){a:switch(S().size){case "extra-large":var K=16;break a;default:K=13}return K}}))}}))}}),_.R(_.gw,{cond:function(){var K,G;
return((K=S().decorations)==null?void 0:K.includes(1))||((G=S().decorations)==null?void 0:G.includes(0))&&!t7$(S().size)},
then:function(){return _.R("div",{class:function(){var K=S(),G,v,a={};var w=(a["yt-spec-avatar-shape__live-dot"]=!((G=K.decorations)==null||!G.includes(0)||t7$(K.size)),a["yt-spec-avatar-shape__new-content"]=!((v=K.decorations)==null||!v.includes(1)),a);return _.uN(w)}})}}),_.kS(m,function(){return _.R("div",{class:function(){var K={};
K=Object.assign((K["yt-spec-avatar-shape__image-overlays"]=!0,K),T());return _.uN(K)}},m==null?void 0:m())})))))},"P");
oq.idomCompat={callbacks:{overlays:!0}};var q8s=_.AI(function(Y){function S(){P().endpoint&&_.ae(P().endpoint)}
var P=Y.data;var u=Y.decorations;var W=Y.avatarButtonCustomClassName;var m=Y.isOverlay;return _.R("avatar-view-model",null,_.R(_.gw,{cond:function(){return P().image},
then:function(J){return _.R(oq,{data:function(){return Ql9({data:P(),onTap:P().endpoint?S:void 0,decorations:u==null?void 0:u(),badgeText:void 0,accessibilityText:P().accessibilityText,avatarButtonCustomClassName:W==null?void 0:W()})},
image:J,iconType:"RADAR_LIVE",overlays:function(){return _.R(tq,{data:P})},
isOverlay:m})}}))},"Q");
q8s.idomCompat=!0;_.rH=_.f("mweb_enable_sink_avatar_view_model")||_.f("web_enable_sink_avatars_batch")?q8s:ksU;_.qr=_.f("mweb_enable_sink_avatar_view_model")||_.f("web_enable_sink_avatars_batch")?q8s:_.WX(_.rH);_.Sr(ksU);_.Sr(HtK);var RRd,x9J;RRd=_.AI(function(Y){var S=Y.data;Y=Y.className;var P=_.yZ(),u=function(){return _.g(S().avatar,_.Aq)},W=_.fJ(function(){var m,J=S(),c=u(),C=_.dv(S().rendererContext),x=(m=P.value)!=null?m:void 0;
return c?yrE({data:J,avatar:c,onTap:C,element:x}):{size:"medium"}},void 0,"v09a6");
return _.R("yt-decorated-avatar-view-model",{class:_.Si("yt-decorated-avatar-view-model-wiz",Y),el:P},_.R(_.gw,{cond:function(){var m;return(m=u())==null?void 0:m.image},
then:function(m){return _.R(oq,{data:W,image:m,iconType:"RADAR_LIVE",overlays:function(){return _.R(tq,{data:u})}})}}))},"R");
x9J=_.f("web_enable_sink_avatars_batch")?RRd:HtK;_.RT=_.f("web_enable_sink_avatars_batch")?RRd:_.WX(HtK);RRd.idomCompat=!0;var YFK=_.EP({avatarViewModel:_.rH,decoratedAvatarViewModel:x9J});_.Sr(SFf);var bth;bth=_.AI(function(Y){var S=_.Ms(),P=function(){return S&&_.lL(Y.data().rendererContext)};
_.Zw(S,function(){return Y.data().rendererContext});
var u=function(){var m=Y.data().avatars,J,c;return(c=(J=(m==null?0:m[0])?_.g(m[0],_.Aq):void 0)==null?void 0:J.avatarImageSize)!=null?c:"AVATAR_SIZE_UNKNOWN"},W={};
return _.R("yt-avatar-stack-view-model",{el:S,class:_.Si("yt-avatar-stack-view-model-wiz",Y.className,(W["yt-avatar-stack-view-model-wiz--tappable"]=P,W["yt-avatar-stack-view-model-wiz--is-overlay"]=Y.isOverlay,W["yt-avatar-stack-view-model-wiz--medium-text"]=Y.useMediumText,W)),tabindex:function(){return P()?0:void 0},
role:function(){return P()?"link":void 0},
"aria-label":function(){var m,J;return(J=(m=_.g(Y.data().rendererContext,_.iL))==null?void 0:m.label)!=null?J:""}},_.R(_.gw,{cond:function(){var m;
return Y.data().avatars&&!((m=Y.hideAvatar)==null?0:m.call(Y))},
then:function(){return _.R("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.R(_.gw,{cond:function(){return Y.data().decoratedText},
then:function(m){var J={};return _.R("div",{class:_.Si("yt-avatar-stack-view-model-wiz__text-container",(J["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return u()==="AVATAR_SIZE_XXS"||u()==="AVATAR_SIZE_XS"},J["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var c;
return((c=Y.isOverlay)==null?void 0:c.call(Y))&&(u()==="AVATAR_SIZE_XXS"||u()==="AVATAR_SIZE_XS")},J)),
style:_.Jg({width:function(){return PUu(u())+"px"},
height:function(){return PUu(u())+"px"}})},_.R(_.qw,{text:m,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.R(_.rv,{data:function(){return Y.data().avatars.slice().reverse()}},{avatarViewModel:function(m){return _.R("div",{class:function(){return u11(u())}},_.R(_.qr,{data:m.data,
decorations:function(){var J;if((J=Y.decorations)==null?0:J.call(Y))J=Y.decorations();else{J=Y.data();var c=0;J.avatars&&(c+=J.avatars.length);J.decoratedText&&(c+=1);J=c>1?[3]:[]}return J},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:Y.isOverlay}))},
decoratedAvatarViewModel:function(m){return _.R("div",{class:function(){return u11(u())}},_.R(_.RT,{data:m.data}))}}))}}),_.R(_.gw,{cond:function(){return Y.data().text},
then:function(m){return _.R(_.qw,{text:m,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"S");
_.Te3=_.f("web_enable_sink_avatars_batch")?bth:SFf;_.xw=_.f("web_enable_sink_avatars_batch")?bth:_.WX(SFf);bth.idomCompat=!0;_.AL(_.AI(function(Y){var S=Y.data;var P=Y.thumbnailSize;return _.R("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.R("div",{class:_.Si("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return Wbh(P==null?void 0:P())})},_.R(_.rv,{data:function(){return S().avatarStack}},{avatarStackViewModel:function(u){return _.R(_.xw,{data:u.data,
decorations:[5]})}})))},"T"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.wm,
thumbnailSize:_.wm}});_.Sr(zgY);var KHh=_.AI(function(Y){Y=_.tI(Y,{hidden:!1});var S=Y.data;return _.R("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:Y.hidden},_.R(_.qw,{text:function(){return S().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.R(_.gw,{cond:function(){return S().subtitle},
then:function(){return _.R(_.qw,{text:function(){return S().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"U"),E43=_.f("web_enable_sink_lockups_batch")?KHh:zgY,fMs=_.f("web_enable_sink_lockups_batch")?KHh:_.WX(zgY);
KHh.idomCompat=!0;_.f("web_enable_sink_lockups_batch")?_.AL(fMs,"yt-thumbnail-overlay-title-view-model",{props:{data:_.wm,hidden:_.wm}}):_.Vz(E43,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var g4J=_.AI(function(Y){Y=_.tI(Y,{isClip:!1});var S=Y.data,P=Y.thumbnailSize,u={};return _.R("yt-thumbnail-overlay-badge-view-model",{class:_.Si("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(S().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var W="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:W="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return W},function(){return mmK(P==null?void 0:P())},(u["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
Y.isClip,u))},_.R(_.rv,{data:function(){return S().thumbnailBadges}},{thumbnailBadgeViewModel:function(W){return _.R(n4u,{data:W.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"V");
g4J.idomCompat=!0;_.AL(g4J,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.wm,thumbnailSize:_.wm,isClip:_.wm}});_.Sr(nuf);_.Vz(nuf,"yt-page-indicator-view-model",{propNames:["data"]});var b7=function(){var Y=_.Z.apply(this,arguments)||this;Y.eventSink=function(){return Y};
Y.disableInteraction=!1;Y.noRoundedCorners=!1;Y.isPreviewLoading=!1;Y.isOriginalAspectRatio=!1;Y.computedObjectFit=!1;Y.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return Y};
_.r(b7,_.Z);_.z=b7.prototype;
_.z.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:_.f("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"}}};
_.z.onImageLoaded=function(){this.loaded=!0};
_.z.onImageUnloaded=function(){this.loaded=!1};
_.z.computeRichThumbnail=function(Y,S,P,u){if(Y&&S&&!u&&!_.f("disable_moving_thumbs_handling")&&!P)return S};
_.z.computeImageWidth=function(Y,S){return S||9999};
_.z.computeIsOriginalAspectRatio=function(Y){return Y};
_.z.computeIsLive=function(Y){if(Y==null?0:Y.badges)for(var S=0;S<Y.badges.length;S++){var P=Y.badges[S];if(P.metadataBadgeRenderer&&P.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(Y==null?0:Y.thumbnailOverlays)for(S=0;S<Y.thumbnailOverlays.length;S++)if(P=Y.thumbnailOverlays[S],P.thumbnailOverlayTimeStatusRenderer&&P.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.z.computeObjectFit=function(Y,S){return S||(Y?"CONTAIN":"")};
_.z.computeNavigationEndpoint=function(Y,S,P){return Y?S:P};
_.z.computeHasClip=function(Y){Y=_.n(Y||[]);for(var S=Y.next();!S.done;S=Y.next())if(S.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.z.computeOverlayColor=function(Y){var S;return(Y==null?0:(S=Y.darkColorPalette)==null?0:S.section2Color)?Y.darkColorPalette.section2Color:Y==null?void 0:Y.sampledThumbnailColor};
_.y6.Object.defineProperties(b7.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return tg(this.width)}}});
b7.prototype.onImageUnloaded=b7.prototype.onImageUnloaded;b7.prototype.onImageLoaded=b7.prototype.onImageLoaded;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],b7.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(tsU),_.k("design:type",Object)],b7.prototype,"ytdThumbnailBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],b7.prototype,"componentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],b7.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],b7.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],b7.prototype,"circular",void 0);
_.Q([_.X({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.k("design:type",Object)],b7.prototype,"richThumbnail",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.k("design:type",Boolean)],b7.prototype,"hasClip",void 0);_.Q([_.X(),_.k("design:type",Object)],b7.prototype,"eventSink",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],b7.prototype,"queued",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],b7.prototype,"richGridThumbnail",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],b7.prototype,"useExpandableTooltip",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],b7.prototype,"useUntranslatedNavigationEndpoint",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],b7.prototype,"disableInteraction",void 0);
_.Q([_.X({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.k("design:type",Object)],b7.prototype,"computedNavigationEndpoint",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],b7.prototype,"nowPlayingEqualizerOnly",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],b7.prototype,"hidePlaybackStatus",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],b7.prototype,"objectFit",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],b7.prototype,"noRoundedCorners",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],b7.prototype,"watchFeedThumbnail",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],b7.prototype,"isPreviewLoading",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.k("design:type",Object)],b7.prototype,"isOriginalAspectRatio",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.k("design:type",Object)],b7.prototype,"computedObjectFit",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.k("design:type",Boolean)],b7.prototype,"isLiveVideo",void 0);
_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],b7.prototype,"loaded",void 0);_.Q([_.X({computed:"computeOverlayColor(data.thumbnail)"}),_.k("design:type",Object)],b7.prototype,"overlayColor",void 0);_.Q([_.X({selector:_.JfJ}),_.k("design:type",Boolean)],b7.prototype,"inlinePreviewIsEnabled",void 0);_.Q([_.X(),_.k("design:type",Number)],b7.prototype,"width",void 0);
_.Q([_.d("inlinePreviewIsEnabled"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],b7.prototype,"isPreviewDisabled",null);_.Q([_.d("width"),_.k("design:type",String),_.k("design:paramtypes",[])],b7.prototype,"thumbnailSize",null);_.Q([_.WZ("image-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b7.prototype,"onImageLoaded",null);
_.Q([_.WZ("image-unloaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b7.prototype,"onImageUnloaded",null);b7=_.Q([_.t({disableElementRegistration:!0,is:"ytd-thumbnail"})],b7);
var $9J=_.eD()(b7,"ytd-thumbnail",function(){if(zR_===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);zR_=Y}Y=zR_;return Y},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var cXh=function(Y){var S=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12653_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12653_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(P){rrt(S,P)};
this.onLockupMouseLeaveFn=function(P){P=P.relatedTarget;var u,W;((u=document.getElementsByTagName("ytd-video-preview"))==null?0:(W=u.item(0))==null?0:W.contains(P))||(S.terminateVideoPreview(),T$(S))};
this.onThumbnailMouseDownFn=function(){S.terminateVideoPreview();T$(S)};
this.onTouchStart=function(){S.JSC$12653_touched=!0};
this.mediaRenderer=Y.mediaRenderer;this.thumbnailElement=Y.thumbnailElement;this.lockupElement=Y.lockupElement;this.videoPreviewOptsInput=Y.videoPreviewOpts;GsS(this);KC(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)):
_.sf(Error("Dh")):_.sf(Error("Eh")):hRJ(this)},Sb=function(Y){hRJ(Y);
var S;(S=Y.lockupElement)==null||S.removeEventListener("mouseenter",Y.onMouseMoveFn);var P;(P=Y.lockupElement)==null||P.removeEventListener("mouseleave",Y.onLockupMouseLeaveFn);var u;(u=Y.lockupElement)==null||u.removeEventListener("touchstart",Y.onTouchStart);var W;(W=Y.thumbnailElement)==null||W.removeEventListener("mousedown",Y.onThumbnailMouseDownFn);T$(Y)},GsS=function(Y){Y.inlinePreviewIsEnabledForUser=_.Na().getState().ui.inlinePreviewIsEnabled;
Y.unsubscribeFromInlinePreviewIsEnabled=_.J5(_.Na(),_.JfJ,function(S){(Y.inlinePreviewIsEnabledForUser=S)||T$(Y)});
Y.JSC$12653_unsubscribeFromInlinePreviewIsActive=_.J5(_.Na(),_.j8Y,function(S){(Y.inlinePreviewIsActive=S)||T$(Y)})},hRJ=function(Y){Y.unsubscribeFromInlinePreviewIsEnabled();
Y.unsubscribeFromInlinePreviewIsEnabled=function(){};
Y.JSC$12653_unsubscribeFromInlinePreviewIsActive();Y.JSC$12653_unsubscribeFromInlinePreviewIsActive=function(){}},rrt=function(Y,S){S.buttons>0||(S=_.z_("kevlar_lockup_hover_delay",-1),Y.JSC$12653_touched&&S>=0?(_.wc.cancelJob(Y.videoPreviewJobId),Y.videoPreviewJobId=_.yz(_.wc,function(){v4f(Y)},S),Y.JSC$12653_touched=!1):v4f(Y))},D96=function(Y){Y.videoPreviewJobId=_.yz(_.wc,function(){var S,P,u,W;
return _.B(function(m){if(m.nextAddress==1){if(!KC(Y))return m.return();S=Y.getVideoPreviewOpts();if(!S)return m.return();S.isAutoplay=!0;return(u=(P=_.jR(Y.mediaRenderer.hostElement,"yt-open-video-preview-action",[S]))&&P[0])?_.q(m,P[0],3):m.jumpTo(2)}m.nextAddress!=2&&(u=m.yieldResult===1);u&&JX$((W=Y.mediaRenderer)==null?void 0:W.data);_.Yt(m)})})},v4f=function(Y){!Y.previewTriggered&&KC(Y)&&(Y.inlinePreviewIsActive&&Y.terminateVideoPreview(),Y.previewTriggered=!0,Y.mediaRenderer.isInlinePreviewTriggered=
!0,_.wc.cancelJob(Y.videoPreviewJobId),Y.videoPreviewJobId=_.yz(_.wc,function(){var S,P,u,W;
return _.B(function(m){if(m.nextAddress==1){if(!KC(Y))return m.return();S=Y.getVideoPreviewOpts();return S?(u=(P=_.jR(Y.mediaRenderer.hostElement,"yt-open-video-preview-action",[S]))&&P[0])?_.q(m,P[0],3):m.jumpTo(2):m.return()}m.nextAddress!=2&&(u=m.yieldResult===1);u&&JX$((W=Y.mediaRenderer)==null?void 0:W.data);_.Yt(m)})}))};
cXh.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var Y,S;if((S=(Y=this.videoPreviewOptsInput)==null?void 0:Y.videoPreviewData)!=null)Y=S;else if(Y=this.mediaRenderer.data)if(j0a(Y))Y={inlinePlaybackEndpoint:_.vF(Y.inlinePlayerData.onVisible),navigationEndpoint:_.vF(Y.onTap),thumbnail:"image"in Y?Y.image:Y.thumbnail,thumbnailOverlays:void 0,accessibilityText:BSf(Y)};else if("multipleInlinePlaybackEndpoint"in Y){var P=_.g(_.g(Y.multipleInlinePlaybackEndpoint,blt),Ty6);if(P!=
null&&P.playerDescriptors){S=[];P=_.n(P.playerDescriptors);for(var u=P.next();!u.done;u=P.next())u=u.value,S.push({inlinePlaybackEndpoint:u.inlinePlaybackEndpoint,navigationEndpoint:u.navigationEndpoint,thumbnail:u.thumbnail,thumbnailOverlays:u.thumbnailOverlays,accessibilityText:BSf(Y)});Y=S}else Y=void 0}else Y={inlinePlaybackEndpoint:Y.inlinePlaybackEndpoint,navigationEndpoint:Y.navigationEndpoint,thumbnail:Y.thumbnail,thumbnailOverlays:Y.thumbnailOverlays,accessibilityText:BSf(Y)};else Y=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:Y,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var KC=function(Y){var S;if(S=Y.inlinePreviewIsEnabledForUser)S=(Y=Y.mediaRenderer.data)?"inlinePlaybackEndpoint"in Y&&Y.inlinePlaybackEndpoint||j0a(Y)&&Y.inlinePlayerData||"multipleInlinePlaybackEndpoint"in Y&&Y.multipleInlinePlaybackEndpoint?!0:!1:!1;return S};
cXh.prototype.terminateVideoPreview=function(){_.nb(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var T$=function(Y){_.wc.cancelJob(Y.videoPreviewJobId);Y.inlinePreviewIsActive=!1;Y.previewTriggered=!1;Y.mediaRenderer.isInlinePreviewTriggered=!1};var IM_=_.Q0(["#"]),EJ=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDisabled=!1;return Y};
_.r(EJ,_.Z);_.z=EJ.prototype;_.z.configureRendererStamper=function(){return{"data.menu":Yw,"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"}}}};
_.z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.getMetadata=function(Y){var S=[];if(Y.metadataText&&Object.keys(Y.metadataText).length>0){var P=this.ytRendererBehavior.getSimpleString(Y.metadataText);Y.upcomingEventData&&Y.upcomingEventData.upcomingEventText&&(P=_.L2(P,Number(Y.upcomingEventData.startTime)));S.push(P)}else Y.shortViewCountText&&S.push(this.ytRendererBehavior.getSimpleString(Y.shortViewCountText)),Y.publishedTimeText&&S.push(this.ytRendererBehavior.getSimpleString(Y.publishedTimeText)),Y.upcomingEventData&&Y.upcomingEventData.upcomingEventText&&
(P=this.ytRendererBehavior.getSimpleString(Y.upcomingEventData.upcomingEventText),S.push(_.L2(P,Number(Y.upcomingEventData.startTime))));return S};
_.z.calculateBylineText=function(Y){return Y.shortBylineText?Y.shortBylineText:Y.bylineText?Y.bylineText:null};
_.z.calculateIsDisabled=function(Y){return!!Y.isDisabled};
_.z.computeHrefWithDefault=function(Y){return this.ytComponentBehavior.computeHref_(Y)||_.qD(IM_)};
_.z.onDetailsTap=function(Y){var S=this.data&&this.data.navigationEndpoint;S&&!_.iN(_.iM(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.f("kevlar_grid_video_renderer_killswitch")?_.ms(this.hostElement,"yt-navigate",{endpoint:S}):this.ytComponentBehavior.resolveCommand(S))};
_.z.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12658_inlinePreviewHoverListener=UP({mediaRenderer:this,lockupElement:_.I(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.I(this.hostElement).querySelector("ytd-thumbnail")})};
_.z.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$12658_inlinePreviewHoverListener)==null||Sb(Y)};
_.z.computeThumbnailWidth=function(Y,S){return S&&S>0?S:Y?360:210};
_.z.computeShowChannelThumbnail=function(Y,S){var P;return S&&!!(Y==null?0:(P=Y.channelThumbnailSupportedRenderers)==null?0:P.channelThumbnailWithLinkRenderer)};
_.y6.Object.defineProperties(EJ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$12658_inlinePreviewHoverListener)==null?0:KC(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
EJ.prototype.dataChanged=EJ.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],EJ.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],EJ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],EJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.p(_.Fc),_.k("design:type",Object)],EJ.prototype,"ytdLockupBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],EJ.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],EJ.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],EJ.prototype,"noEndpoints",void 0);_.Q([_.X({computed:"calculateBylineText(data)"}),_.k("design:type",Object)],EJ.prototype,"bylineText",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],EJ.prototype,"isSearch",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],EJ.prototype,"isDownloading",void 0);_.Q([_.X({reflectToAttribute:!0,value:0}),_.k("design:type",Number)],EJ.prototype,"width",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.k("design:type",Object)],EJ.prototype,"isDisabled",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EJ.prototype,"dataChanged",null);_.Q([_.d("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],EJ.prototype,"isHovered",null);EJ=_.Q([_.t({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],EJ);
_.A(EJ,"ytd-grid-video-renderer",function(){if(Mli!==void 0)return Mli;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Mli=Y},{mode:_.OX("kevlar_poly_si_batch_j047")?1:2});var aMS;var fC=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundedContainer=!0;Y.skipRoundingTop=!1;Y.disableTopPadding=!1;Y.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");return Y};
_.r(fC,_.Z);fC.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
fC.prototype.onClick=function(Y){var S,P=(S=this.data)==null?void 0:S.sourceEndpoint;!_.iN(_.iM(Y),this.hostElement,["A".toString()])&&P&&_.ms(this.hostElement,"yt-navigate",{endpoint:P})};
_.y6.Object.defineProperties(fC.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(S=(Y=this.data)==null?void 0:Y.paragraphMaxLines)!=null?S:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],fC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],fC.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fC.prototype,"showVerticalDividers",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fC.prototype,"roundedContainer",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fC.prototype,"skipRoundingTop",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fC.prototype,"disableTopPadding",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],fC.prototype,"amsterdamEnabled",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],fC.prototype,"showMetadataAtTop",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],fC.prototype,"showMetadataBelowTitle",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.menu"),_.k("design:type",Object),_.k("design:paramtypes",[])],fC.prototype,"hasMenu",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.truncateParagraphs"),_.k("design:type",Object),_.k("design:paramtypes",[])],fC.prototype,"truncateParagraphs",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.paragraphMaxLines"),_.k("design:type",Number),_.k("design:paramtypes",[])],fC.prototype,"paragraphMaxLines",null);_.Q([_.X({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.d("data.background"),_.k("design:type",Object),_.k("design:paramtypes",[])],fC.prototype,"background",null);fC=_.Q([_.t({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],fC);
_.A(fC,"ytd-info-panel-content-renderer",function(){if(aMS!==void 0)return aMS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return aMS=Y},{mode:_.OX("kevlar_poly_si_batch_j076")?1:2});var LHd;var wwh;var pws;var FH6;var g$=function(){return _.Z.apply(this,arguments)||this};
_.r(g$,_.Z);g$.prototype.computeStyle=function(Y){return Y};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],g$.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],g$.prototype,"style_",void 0);g$=_.Q([_.r0({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],g$);
_.A(g$,"yt-channel-thumbnail-with-link-renderer",function(){if(FH6===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;pws===void 0&&(pws=document.createElement("template"));var u=pws;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);FH6=Y}Y=FH6;return Y},{mode:2});var $w=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernTypography=_.f("web_modern_typography");return Y};
_.r($w,_.Z);$w.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"}}}};
$w.prototype.computeTitleStyle=function(Y){return Y||null};
$w.prototype.computeAvatarStyle=function(Y){return Y||null};
$w.prototype.computeShowNavigationButton=function(Y,S){return!(Y==null||!Y.navigationButton||S)};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$w.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.k("design:type",String)],$w.prototype,"titleStyle",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.k("design:type",String)],$w.prototype,"avatarStyle",void 0);_.Q([_.X(),_.k("design:type",Boolean)],$w.prototype,"hideNavigationButton",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],$w.prototype,"isModernSd",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$w.prototype,"modernTypography",void 0);
$w=_.Q([_.t({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],$w);
_.A($w,"ytd-rich-list-header-renderer",function(){if(wwh!==void 0)return wwh;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return wwh=Y},{mode:_.OX("kevlar_poly_si_batch_j058")?1:2});var r$=function(){return _.Z.apply(this,arguments)||this};
_.r(r$,_.Z);r$.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],r$.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],r$.prototype,"isSearch",void 0);r$=_.Q([_.t({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],r$);
_.A(r$,"ytd-preview-card-renderer",function(){if(LHd!==void 0)return LHd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return LHd=Y},{mode:1});var sl_;var G$=function(){return _.Z.apply(this,arguments)||this};
_.r(G$,_.Z);G$.prototype.configureRendererStamper=function(){return{"data.menu":Yw}};
G$.prototype.dataChanged=function(){var Y=this.get("colorExtractionPalette.section1Color",this.data);Y=_.Gp(Y);_.PZ(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":Y})};
G$.prototype.computeCardStyle=function(Y){return this.get("style.value",Y)||null};
G$.prototype.dataChanged=G$.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],G$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],G$.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],G$.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.k("design:type",String)],G$.prototype,"cardStyle",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],G$.prototype,"dataChanged",null);G$=_.Q([_.t({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],G$);
_.A(G$,"ytd-compact-channel-recommendation-card-renderer",function(){if(sl_!==void 0)return sl_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return sl_=Y},{mode:1});var d9u;var lMS;var hB=function(){var Y=_.Z.apply(this,arguments)||this;Y.alignAuto=!1;Y.collapsed=!0;Y.isToggled=!1;Y.alwaysCollapsed=!1;Y.canToggle=!0;Y.collapsedHeight=80;Y.disableToggle=!1;Y.alwaysToggleable=!1;Y.reversed=!1;Y.shouldUseNumberOfLines=!1;Y.recomputeOnResize=!1;Y.canToggleJobId=0;Y.lastReversed=!1;return Y};
_.r(hB,_.Z);_.z=hB.prototype;_.z.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.z.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.z.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var Y=_.I(this.hostElement),S=Y.childNodes,P=document.createDocumentFragment(),u=Y.childNodes.length-1;u>=0;u--)_.I(P).appendChild(S[u]);_.f("enable_shadydom_free_scoped_node_methods")?_.Hq(this.hostElement).appendChild(P):Y.appendChild(P)}};
_.z.ready=function(){var Y=this;_.w0(function(){Y.initChildrenObserver()},1)};
_.z.detached=function(){this.detachObserver()};
_.z.toggle=function(Y,S){this.canToggle&&(this.isToggled=S,_.ms(this.hostElement,"yt-refit"),Y&&Y.stopPropagation())};
_.z.reset=function(){this.childrenChanged()};
_.z.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.z.computeIsMoreVisible=function(Y,S){return Y&&!S};
_.z.computeShouldUseNumberOfLines=function(Y){try{return!!Y&&window.CSS.supports("-webkit-line-clamp","1")}catch(S){}return!1};
_.z.computeIsLessVisible=function(Y,S){return Y&&S};
_.z.observeCollapsedHeightAndMaxLines=function(){var Y=this.collapsedHeight,S=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.PZ(this.hostElement,{"--ytd-expander-max-lines":""+S,"--ytd-expander-collapsed-height":""}):_.PZ(this.hostElement,{"--ytd-expander-collapsed-height":Y+"px","--ytd-expander-max-lines":""})};
_.z.handleMoreTap=function(Y){this.disableToggle||(_.ms(this.hostElement,"yt-expander-more-tapped"),this.toggle(Y,!0))};
_.z.handleLessTap=function(Y){_.ms(this.hostElement,"yt-expander-less-tapped");this.toggle(Y,!1)};
_.z.initChildrenObserver=function(){var Y=this;this.observer=new MutationObserver(function(){Y.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.z.childrenChanged=function(){var Y=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){MG(function(){Y.canToggleJobId=0;Y.calculateCanCollapse()})}))};
_.z.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};
_.z.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.z.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("collapsed-changed",this.collapsed))};
_.z.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("is-toggled-changed",this.isToggled))};
_.z.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("can-toggle-changed",this.canToggle))};
_.y6.Object.defineProperties(hB.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
hB.prototype.canToggleChangedForBinding=hB.prototype.canToggleChangedForBinding;hB.prototype.isToggledChangedForBinding=hB.prototype.isToggledChangedForBinding;hB.prototype.collapsedChangedForBinding=hB.prototype.collapsedChangedForBinding;hB.prototype.observeCollapsedHeightAndMaxLines=hB.prototype.observeCollapsedHeightAndMaxLines;hB.prototype.onIronResize=hB.prototype.onIronResize;hB.prototype.reversedChanged=hB.prototype.reversedChanged;hB.prototype.toggledChanged=hB.prototype.toggledChanged;
hB.prototype.alwaysToggleableChanged=hB.prototype.alwaysToggleableChanged;_.Q([_.p(_.G8),_.k("design:type",Object)],hB.prototype,"ironResizableBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],hB.prototype,"alignAuto",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],hB.prototype,"collapsed",void 0);_.Q([_.X(),_.k("design:type",Object)],hB.prototype,"isToggled",void 0);_.Q([_.X(),_.k("design:type",Object)],hB.prototype,"alwaysCollapsed",void 0);
_.Q([_.X(),_.k("design:type",Object)],hB.prototype,"canToggle",void 0);_.Q([_.X(),_.k("design:type",Object)],hB.prototype,"collapsedHeight",void 0);_.Q([_.X(),_.k("design:type",Object)],hB.prototype,"disableToggle",void 0);_.Q([_.X(),_.k("design:type",Object)],hB.prototype,"alwaysToggleable",void 0);_.Q([_.X(),_.k("design:type",Object)],hB.prototype,"reversed",void 0);_.Q([_.X(),_.k("design:type",Number)],hB.prototype,"maxNumberOfLines",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.k("design:type",Object)],hB.prototype,"shouldUseNumberOfLines",void 0);_.Q([_.X(),_.k("design:type",Object)],hB.prototype,"recomputeOnResize",void 0);_.Q([_.nc("#content"),_.k("design:type",HTMLDivElement)],hB.prototype,"content",void 0);_.Q([_.cZ("alwaysToggleable"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hB.prototype,"alwaysToggleableChanged",null);
_.Q([_.cZ("isToggled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hB.prototype,"toggledChanged",null);_.Q([_.d("canToggleJobId"),_.k("design:type",Object),_.k("design:paramtypes",[])],hB.prototype,"isResetting",null);_.Q([_.zY("reversed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hB.prototype,"reversedChanged",null);
_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hB.prototype,"onIronResize",null);_.Q([_.zY("maxNumberOfLines","collapsedHeight"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hB.prototype,"observeCollapsedHeightAndMaxLines",null);_.Q([_.zY("collapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hB.prototype,"collapsedChangedForBinding",null);
_.Q([_.zY("isToggled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hB.prototype,"isToggledChangedForBinding",null);_.Q([_.zY("canToggle"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hB.prototype,"canToggleChangedForBinding",null);hB=_.Q([_.t({disableElementRegistration:!0,is:"ytd-expander"})],hB);
_.A(hB,"ytd-expander",function(){if(lMS!==void 0)return lMS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return lMS=Y},{mode:1});var v4=function(){return _.Z.apply(this,arguments)||this};
_.r(v4,_.Z);v4.prototype.computeIsCarousel=function(Y){return!!Y.isCarousel};
v4.prototype.observeLightsourcePalette=function(){var Y,S=(Y=this.data)==null?void 0:Y.vibrantsourceColorPaletteData;S&&_.fR(this.hostElement,S)};
v4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
v4.prototype.observeLightsourcePalette=v4.prototype.observeLightsourcePalette;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],v4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],v4.prototype,"data",void 0);_.Q([_.X({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],v4.prototype,"isCarousel",void 0);
_.Q([_.zY("data.vibrantsourceColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],v4.prototype,"observeLightsourcePalette",null);v4=_.Q([_.t({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],v4);
_.A(v4,"ytd-media-upsell-renderer",function(){if(d9u!==void 0)return d9u;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return d9u=Y},{mode:2});var XwS;var Dq=function(){var Y=_.Z.apply(this,arguments)||this;Y.JSC$12686_playerEvents=new Map;Y.listeningToPlayer=!1;Y.startX=0;Y.active=!1;Y.shouldShowButtons=_.f("web_buttons_hidden_killswitch");Y.isHighlighted=!1;Y.useHighlightStyling=_.f("web_enable_deeper_metadata_highlight_styling");Y.modern=_.f("kevlar_modern_sd");Y.enableProblemWalkthrough=_.f("problem_walkthrough_sd");return Y};
_.r(Dq,_.Z);_.z=Dq.prototype;
_.z.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}}}}}};
_.z.created=function(){this.JSC$12686_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.z.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.up(this,this.onRepeatButtonToggle));_.f("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.up(this,this.onActiveUpdate))};
_.z.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.up(this,this.onRepeatButtonToggle));_.f("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.up(this,this.onActiveUpdate))};
_.z.onDataChanged=function(){this.removePlayerListeners()};
_.z.onColorPaletteChange=function(){var Y={},S;if(_.w2()==="USER_INTERFACE_THEME_DARK"&&((S=this.data)==null?0:S.darkColorPalette)){var P=this.data.darkColorPalette;Y["--ytd-macro-markers-list-item-background-color"]=_.hK(this.get("section2Color",P))}else{var u;_.w2()==="USER_INTERFACE_THEME_LIGHT"&&((u=this.data)==null?0:u.lightColorPalette)&&(P=this.data.lightColorPalette,Y["--ytd-macro-markers-list-item-background-color"]=_.hK(this.get("section3Color",P)))}P?(Y["--ytd-macro-markers-list-item-title-color"]=
_.hK(this.get("primaryTitleColor",P)),Y["--ytd-macro-markers-list-item-secondary-color"]=_.hK(this.get("secondaryTitleColor",P)),Y["--ytd-macro-markers-list-item-timestamp-background-color"]=_.hK(this.get("section1Color",P)),this.customButtonProperties={customColors:{color:_.hK(this.get("primaryTitleColor",P))}},this.useColorSampling=!0):(Y["--ytd-macro-markers-list-item-background-color"]="initial",Y["--ytd-macro-markers-list-item-title-color"]="initial",Y["--ytd-macro-markers-list-item-secondary-color"]=
"initial",Y["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.PZ(this.hostElement,Y)};
_.z.onEndpointMouseDown=function(Y){this.startX=Y.clientX};
_.z.onEndpointClick=function(Y){var S=this,P,u,W;return _.B(function(m){if(m.nextAddress==1){if(S.startX!==Y.clientX)return Y.preventDefault(),m.return();S.data&&S.ytRendererBehavior.logExplicitClick(S.data);if(!S.seekWithAnimationOnClick)return m.jumpTo(0);if(Y.button!==0||Y.shiftKey||Y.altKey||Y.metaKey||Y.ctrlKey||_.iN(_.iM(Y),S.hostElement,["BUTTON".toString()]))return m.return();Y.stopPropagation();Y.preventDefault();return S.data?_.q(m,_.ks().getPlayerPromise(),3):m.return()}P=m.yieldResult;
W=(u=_.g(S.data.onTap,_.yx))==null?void 0:u.startTimeSeconds;W!==void 0&&P.seekToTimeWithAnimation(W*1E3,_.Ma(S.data.title));_.Yt(m)})};
_.z.computeLayout=function(Y){return Y};
_.z.computeIsHighlighted=function(Y){return!!Y};
_.z.computeCarouselType=function(Y){return Y};
_.z.hideModernCarousel=function(Y){return this.modern&&this.hideThumbnail(Y)};
_.z.hideThumbnail=function(Y){return this.enableProblemWalkthrough&&Y!==null&&Y==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.z.onRepeatButtonToggle=function(Y){var S=this;Y.detail.toggled&&_.ks().getPlayerPromise().then(function(P){S.ytPlayerListenerBehavior.listenToPlayerEvents(P,S.JSC$12686_playerEvents);S.listeningToPlayer=!0})};
_.z.onLoopRangeChange=function(Y){var S=_.I(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(S){var P=S.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",S.polymerController.data);if(P){var u=Number(P.endTimeMs);if(Number(P.startTimeMs)!==(Y==null?void 0:Y.startTimeMs)||u!==(Y==null?void 0:Y.endTimeMs))S.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.z.removePlayerListeners=function(){var Y=this;this.listeningToPlayer&&_.ks().getPlayerPromise().then(function(S){Y.ytPlayerListenerBehavior.unlistenFromPlayerEvents(S,Y.JSC$12686_playerEvents);Y.listeningToPlayer=!1})};
_.z.onActiveUpdate=function(Y){this.active=Y.detail.active};
Dq.prototype.onColorPaletteChange=Dq.prototype.onColorPaletteChange;Dq.prototype.onDataChanged=Dq.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Dq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],Dq.prototype,"ytPlayerListenerBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],Dq.prototype,"data",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Dq.prototype,"useCustomColors",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Dq.prototype,"active",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Dq.prototype,"shouldShowButtons",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.k("design:type",String)],Dq.prototype,"layout",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.k("design:type",Object)],Dq.prototype,"isHighlighted",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Dq.prototype,"useHighlightStyling",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Dq.prototype,"modern",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Dq.prototype,"enableProblemWalkthrough",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.k("design:type",String)],Dq.prototype,"carouselType",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Dq.prototype,"useColorSampling",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Dq.prototype,"seekWithAnimationOnClick",void 0);_.Q([_.X(),_.k("design:type",Object)],Dq.prototype,"customButtonProperties",void 0);
_.Q([_.nc("#repeat-button"),_.k("design:type",HTMLElement)],Dq.prototype,"repeatButton",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dq.prototype,"onDataChanged",null);_.Q([_.zY("data.lightColorPalette","data.darkColorPalette"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dq.prototype,"onColorPaletteChange",null);
Dq=_.Q([_.t({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Dq);
_.A(Dq,"ytd-macro-markers-list-item-renderer",function(){if(XwS!==void 0)return XwS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return XwS=Y},{mode:1});var Ztt;var itf;var IT=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernTypography=_.f("web_modern_typography");return Y};
_.r(IT,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],IT.prototype,"modernTypography",void 0);_.Q([_.X(),_.k("design:type",Object)],IT.prototype,"data",void 0);IT=_.Q([_.t({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],IT);
_.A(IT,"ytd-title-and-button-list-header-renderer",function(){if(itf!==void 0)return itf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return itf=Y},{mode:1});var o4h;var t7h=new _.yH("BUTTON_RENDERER_WIZ_TOKEN"),Ar3=new _.yH("BUTTON_RENDERER_TOKEN");_.aT=_.AI(function(Y){var S=_.E().resolve(_.PQ(t7h));if(S)return _.R(S,Object.assign({},Y));var P=_.E().resolve(Ar3);return P?_.R(utY,null,function(){return _.R(Ns,null,function(){var u,W,m,J,c,C,x,b,T,K,G,v;return void P(Y.data(),{onButtonClickCallback:Y.onButtonClickCallback,shouldShowIcons:(u=Y.shouldShowIcons)==null?void 0:u.call(Y),icon:(W=Y.icon)==null?void 0:W.call(Y),processAllEndpoints:(m=Y.processAllEndpoints)==null?void 0:m.call(Y),preventDefault:(J=Y.preventDefault)==null?void 0:J.call(Y),
stopPropagation:(c=Y.stopPropagation)==null?void 0:c.call(Y),disableButtonRendererClickHandling:(C=Y.disableButtonRendererClickHandling)==null?void 0:C.call(Y),className:(x=Y.className)==null?void 0:x.call(Y),buttonOverrides:(b=Y.buttonOverrides)==null?void 0:b.call(Y),forceModernIconButton:(T=Y.forceModernIconButton)==null?void 0:T.call(Y),isSubscribe:(K=Y.isSubscribe)==null?void 0:K.call(Y),alignByText:(G=Y.alignByText)==null?void 0:G.call(Y),forceDisabled:(v=Y.forceDisabled)==null?void 0:v.call(Y)})})}):
_.R(_.SX,null)},"W");
_.aT.idomCompat=!0;var U9h=_.AI(function(Y){var S=Y.notification,P=_.o_(Y.useSquareAspectRatio,!1);return _.R(_.gw,{cond:function(){var u,W;return(u=S().responseText)==null?void 0:(W=u.runs)==null?void 0:W.length},
then:function(){var u={};return _.R("div",{class:_.Si("yt-mini-game-card-view-model__dismissed-card",(u["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!P()},u["yt-mini-game-card-view-model--dismissed-square-card"]=P,u))},_.R("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.R(_.gw,{cond:function(){return S().responseText.runs[0].text},
then:function(W){return _.R("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:W},W)}}),_.R(_.rv,{data:function(){return S().buttons}},{buttonRenderer:_.aT,
buttonViewModel:_.aq})))}})},"X");var HtS=_.AI(function(Y){Y=_.tI(Y,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var S=Y.data,P=Y.useFullWidth,u=Y.isDesktopWeb,W=Y.addSearchResultTopMargin,m=function(){return S().layout},J=function(){return S().title},c=function(){return S().genre},C=function(){return S().channelName},x=function(){return S().image},b=function(){return S().colorPalette},T=function(){return S().actionButton},K=function(){return S().overflowButton},G=function(){return S().avatar},
v=function(){var U={};
U=_.Si("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(U["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return u()},U));
return _.R("div",{class:U},_.R(Ql6,{imageData:x,colorPalette:b}),_.R(ksL,{onTap:function(){return S().onTap},
imageData:x,accessibilityText:function(){return S().accessibilityText},
overlayBadgeText:function(){return S().overlayBadgeText},
iconName:function(){return S().iconName},
unplayableInlinePlaybackIconName:function(){return S().unplayableInlinePlaybackIconName},
isDesktopWeb:u}),_.R(_.gw,{cond:function(){return!u()},
then:function(){return _.R(_.SX,null,_.R(M7u,{layout:m,colorPalette:b,isDesktopWeb:u,overflowButton:K,avatar:G,onTap:function(){return S().onTap},
genre:c,title:J,channelName:C,entityRedesignExperiments:function(){return S().entityRedesignExperiments}}),_.R(LC,{actionButton:T}))}}))},a=function(){var U={};
U=_.Si((U["yt-mini-game-card-view-model--search-result-desktop"]=function(){return u()},U["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!u()},U["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return W()},U));
return _.R("div",{class:U},v(),_.R(yri,{description:function(){return S().description},
isDesktopWeb:u,title:J,genre:c,onTap:function(){return S().onTap},
actionButton:T,overflowButton:K,avatar:G,channelName:C}))},w=function(){var U=function(){var M;
return(M=S().entityRedesignExperiments)==null?void 0:M.changePlayablesLayoutWithCta},V={};
V=_.Si("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(V["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return U()},V["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return u()},V["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return u()&&S().width===135},V["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return u()},V["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!U()&&u()&&S().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},V["yt-mini-game-card-view-model--big-metadata-font"]=function(){return S().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},V["yt-mini-game-card-view-model--use-full-width"]=function(){return P()},V["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!T()},V));
return _.R("div",{class:V},_.R(_.gw,{cond:function(){return U()},
then:function(){return _.R(_.SX,null,_.R(Ne_,{entityRedesignExperiments:function(){return S().entityRedesignExperiments},
colorPalette:b,isDesktopWeb:u,onTap:function(){return S().onTap},
accessibilityText:function(){return S().accessibilityText},
overlayBadgeText:function(){return S().overlayBadgeText},
iconName:function(){return S().iconName},
unplayableInlinePlaybackIconName:function(){return S().unplayableInlinePlaybackIconName},
actionButton:T,imageData:x}),_.R(M7u,{layout:m,colorPalette:b,isDesktopWeb:u,overflowButton:K,avatar:G,onTap:function(){return S().onTap},
genre:c,title:J,channelName:C,entityRedesignExperiments:function(){return S().entityRedesignExperiments}}),_.R(_.gw,{cond:function(){return!!U()===!1&&T()},
then:function(){return _.R(LC,{actionButton:T})}}))},
else:function(){return _.R(_.SX,null,_.R(Ql6,{imageData:x,colorPalette:b}),_.R(ksL,{onTap:function(){return S().onTap},
imageData:x,accessibilityText:function(){return S().accessibilityText},
overlayBadgeText:function(){return S().overlayBadgeText},
iconName:function(){return S().iconName},
unplayableInlinePlaybackIconName:function(){return S().unplayableInlinePlaybackIconName},
isDesktopWeb:u}),_.R(M7u,{layout:m,colorPalette:b,isDesktopWeb:u,overflowButton:K,avatar:G,onTap:function(){return S().onTap},
genre:c,title:J,channelName:C,entityRedesignExperiments:function(){return S().entityRedesignExperiments}}),_.R(LC,{actionButton:T}))}}))},F=function(){var U={};
U=_.Si("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(U["yt-mini-game-card-view-model--square-card-desktop"]=function(){return u()},U["yt-mini-game-card-view-model--use-full-width"]=function(){return P()},U));
return _.R("div",{class:U},_.R(ksL,{onTap:function(){return S().onTap},
imageData:x,accessibilityText:function(){return S().accessibilityText},
overlayBadgeText:function(){return S().overlayBadgeText},
iconName:function(){return S().iconName},
unplayableInlinePlaybackIconName:function(){return S().unplayableInlinePlaybackIconName},
isDesktopWeb:u}),_.R(M7u,{layout:m,colorPalette:b,isDesktopWeb:u,overflowButton:K,avatar:G,onTap:function(){return S().onTap},
genre:c,title:J,channelName:C,entityRedesignExperiments:function(){return S().entityRedesignExperiments}}))};
return _.R("mini-game-card-view-model",{class:Y.className},_.R(_.hA,null,_.R(_.rw,{when:function(){return m()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return w()}),_.R(_.rw,{when:function(){return m()==="MINI_APP_LAYOUT_SQUARE"}},function(){return F()}),_.R(_.rw,{when:function(){return m()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return a()})))},"Y");
HtS.idomCompat=!0;var LC=_.AI(function(Y){var S=_.o_(Y.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.R(_.rv,{data:Y.actionButton},{buttonViewModel:function(P){return _.R("div",{class:S},_.R(_.aq,{data:P.data}))}})},"Z"),ksL=_.AI(function(Y){var S=Y.onTap;
var P=Y.imageData;var u=Y.accessibilityText;var W=Y.overlayBadgeText;var m=Y.iconName;var J=Y.unplayableInlinePlaybackIconName;Y=Y.isDesktopWeb;return _.R(_.CR,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:S},_.R(_.ZZ,{data:P,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(u==null?void 0:u())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.R(V7h,{overlayBadgeText:W,iconName:m,unplayableInlinePlaybackIconName:J,isDesktopWeb:Y}))},"$"),V7h=_.AI(function(Y){var S=Y.overlayBadgeText;
var P=Y.iconName;var u=Y.unplayableInlinePlaybackIconName;var W=Y.isDesktopWeb;return _.R("div",{class:"yt-mini-game-card-view-model__badge-container"},_.R(_.gw,{cond:P,then:function(m){return _.R("div",{class:"yt-mini-game-card-view-model__badge"},_.R("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.R(_.BX,{icon:m,className:"yt-mini-game-card-view-model__icon"}),_.R("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},S)))}}),_.R(_.gw,{cond:function(){return!P()&&
S()},
then:function(){return _.R("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},S)}}),_.R(_.gw,{cond:function(){return u()&&W()},
then:function(){return _.R("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.R(_.BX,{icon:u,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"aa"),Ql6=_.AI(function(Y){var S=Y.colorPalette;
var P=Y.imageData;var u=function(){return S().vibrantColorPalette?S().vibrantColorPalette.section2Color:S().sectionTwoColor};
return _.R(_.SX,null,_.R("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Jg({"background-color":function(){return vq(u(),"1")}})}),_.R("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Jg({"background-image":function(){return"url("+P().sources[0].url+")"}})}),_.R("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Jg({background:function(){return"linear-gradient(180deg,\n    "+vq(u(),".8")+" 0%,\n    "+vq(u(),".4")+" 25%,\n    "+vq(S().vibrantColorPalette?S().vibrantColorPalette.section4Color:S().sectionFourColor,".8")+" 100%)"}})}))},"ba"),M7u=_.AI(function(Y){var S=Y.layout;
var P=Y.colorPalette;var u=Y.overflowButton;var W=Y.avatar;var m=Y.onTap;var J=Y.title;var c=Y.channelName;var C=Y.entityRedesignExperiments;var x=Y.genre;var b=function(){var K;return S()!=="MINI_APP_LAYOUT_SQUARE"&&((K=P())==null?0:K.textPrimaryColor)?"color: "+vq(P().textPrimaryColor,".7"):""},T=function(){var K;
return C==null?void 0:(K=C())==null?void 0:K.changePlayablesLayoutWithCta};
return _.R("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.R(_.gw,{cond:W,then:function(){return _.R("div",{class:"yt-mini-game-card-view-model__avatar"},_.R(_.rv,{data:W},{avatarViewModel:_.qr}))}}),_.R(_.CR,{command:m,
className:"yt-mini-game-card-view-model__metadata-details"},_.R("h3",{class:"yt-mini-game-card-view-model__title",title:J},J),_.R(_.gw,{cond:W,then:function(){return _.R("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.R("span",{class:"yt-mini-game-card-view-model__genre",title:c,style:b},c),_.R("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:b},x))},
else:function(){return _.R(_.gw,{cond:T,then:function(){return _.R("span",{class:"yt-mini-game-card-view-model__genre",title:x},x)},
else:function(){return _.R("span",{class:"yt-mini-game-card-view-model__genre",title:x,style:b},x)}})}})),_.R("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.R(_.rv,{data:u},{buttonViewModel:function(K){var G=K.data;
return _.R(_.aq,{data:function(){return Object.assign({},G(),{customFontColor:T()?void 0:G().customFontColor})}})}})))},"ca"),Ne_=_.AI(function(Y){var S=Y.entityRedesignExperiments;
var P=Y.colorPalette;var u=Y.isDesktopWeb;var W=Y.onTap;var m=Y.accessibilityText;var J=Y.overlayBadgeText;var c=Y.iconName;var C=Y.unplayableInlinePlaybackIconName;var x=Y.actionButton;Y=Y.imageData;var b=function(){var T;return S==null?void 0:(T=S())==null?void 0:T.changePlayablesLayoutWithCta};
return _.R("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.R(Ql6,{imageData:Y,colorPalette:P}),_.R(ksL,{onTap:W,imageData:Y,accessibilityText:m,overlayBadgeText:J,iconName:c,unplayableInlinePlaybackIconName:C,isDesktopWeb:u}),_.R(_.gw,{cond:function(){return(b==null?void 0:b())&&(x==null?void 0:x())},
then:function(){return _.R(LC,{actionButton:x})}}))},"da"),yri=_.AI(function(Y){var S=Y.description;
var P=Y.isDesktopWeb;var u=Y.title;var W=Y.genre;var m=Y.onTap;var J=Y.actionButton;var c=Y.overflowButton;var C=Y.avatar;Y=Y.channelName;var x={};x=_.Si("yt-mini-game-card-view-model--search-result-metadata-wrapper",(x["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=P,x["yt-mini-game-card-view-model--show-unplayable-on-hover"]=P,x["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!P()},x));
var b={};b=_.Si("yt-mini-game-card-view-model__search-result-info-row",(b["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!P()},b));
return _.R("div",{class:x},_.R("div",{class:b},_.R(_.CR,{command:m,className:"yt-mini-game-card-view-model__metadata-details"},_.R("h3",{class:"yt-mini-game-card-view-model__title",title:u},u),_.R("span",{class:"yt-mini-game-card-view-model__genre",title:W},W)),_.R(LC,{actionButton:J,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.R("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.R(_.rv,{data:c},{buttonViewModel:_.aq}))),_.R("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.R("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.R("div",{class:"yt-mini-game-card-view-model__avatar"},_.R(_.rv,{data:C},{avatarViewModel:function(T){var K=T.data;return _.R(_.qr,{data:function(){return Object.assign({},K(),{avatarImageSize:P()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.R(_.CR,{command:m,
className:"yt-mini-game-card-view-model__description"},_.R("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},Y)),_.R(_.CR,{command:m,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.R("div",null)))),_.R(_.gw,{cond:P,then:function(){return _.R(_.CR,{command:m,className:"yt-mini-game-card-view-model__description"},S)}}))},"ea");var eRt={isAdsVideo:!0},OtL={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},YFS={showPlayerControls:!1,videoPreviewDurationMs:15E3},nrh={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.f("web_shorts_imp_fullwidth_killswitch")},SFs={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var w$=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSearch=!1;Y.isRichGrid=!1;return Y};
_.r(w$,_.Z);_.z=w$.prototype;_.z.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.z.dismissibleItemOnYtServiceRequestSent=function(Y,S){S.actions&&this.dismissibleItemProcessActions(Y,S.actions)};
_.z.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.z.dismissibleItemProcessActions=function(Y,S){for(var P=0;P<S.length;P++){var u=S[P];_.g(u,_.xp)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.g(u,_.xp)),Y.stopPropagation())}};
_.z.dismissibleItemHandleReplaceEnclosingAction=function(Y){this.dismissedRenderer=Y.item;this.isDismissed=!0};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12718_inlinePreviewHoverListener=UP({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:SFs}))};
_.z.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$12718_inlinePreviewHoverListener)==null||Sb(Y)};
_.z.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.z.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var Y=this.data.layout==="MINI_APP_LAYOUT_SQUARE";l2(U9h)({notification:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:Y===void 0?!1:Y})}else l2(HtS)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
w$.prototype.experimentalPropertiesChanged=w$.prototype.experimentalPropertiesChanged;w$.prototype.dataChanged=w$.prototype.dataChanged;w$.prototype.dismissibleItemOnRequestSent=w$.prototype.dismissibleItemOnRequestSent;w$.prototype.dismissibleItemOnYtServiceRequestSent=w$.prototype.dismissibleItemOnYtServiceRequestSent;_.Q([_.p(GLu),_.k("design:type",Object)],w$.prototype,"ytIdomTemplatingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],w$.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],w$.prototype,"isSearch",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],w$.prototype,"isDismissed",void 0);_.Q([_.X(),_.k("design:type",Object)],w$.prototype,"dismissedRenderer",void 0);_.Q([_.nc(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.k("design:type",HTMLElement)],w$.prototype,"thumbnailWrapper",void 0);
_.Q([_.nc("mini-game-card-view-model"),_.k("design:type",HTMLElement)],w$.prototype,"miniGameCardViewModel",void 0);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],w$.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.Q([_.WZ("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],w$.prototype,"dismissibleItemOnRequestSent",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],w$.prototype,"dataChanged",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],w$.prototype,"isRichGrid",void 0);_.Q([_.zY("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],w$.prototype,"experimentalPropertiesChanged",null);
w$=_.Q([_.r0({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],w$);
_.A(w$,"ytd-mini-game-card-view-model",function(){if(o4h!==void 0)return o4h;var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return o4h=Y},{mode:_.OX("kevlar_poly_si_batch_j081")?1:2});var PUm;var u1d;var pC=function(){return _.Nz.apply(this,arguments)||this};
_.r(pC,_.Nz);pC.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
pC.prototype.getContinuationUrl=function(Y){var S={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(S.itct=this.data.clickTrackingParams);return _.NP(Y,S)};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],pC.prototype,"data",void 0);pC=_.Q([_.r0({is:"yt-reload-continuation",noInjection:!0})],pC);var WbU;var zg_;var Fa=function(){var Y=_.Z.apply(this,arguments)||this;Y.notificationData={};return Y};
_.r(Fa,_.Z);_.z=Fa.prototype;_.z.isMenuExpanded=function(Y){return Y&&Y.length<=1?"undefined":"false"};
_.z.dataChanged_=function(){this.selected=void 0;var Y=this.computeSelectedIndex_(this.data);Y>=0&&(this.selected=Y);Y=this.data&&this.data.length>1;_.Vm(this.hostElement,"has-items",Y);_.I(this.hostElement).querySelector("#label").tabIndex=Y?0:-1};
_.z.onDropdownOpen=function(){var Y=_.pM();if(this.parentTrackingParams&&this.data){var S=_.Re(this.parentTrackingParams);this.data.forEach(function(P){Y&&S&&P.trackingParams&&(P=_.Re(P.trackingParams),_.t6(Y,S,P),_.UV(Y,[P]))})}else this.parentTrackingParams||_.sf(new _.$2("No parent tracking params passed in for yt-dropdown-menu."))};
_.z.hasNotification=function(Y){var S;if(Y.targetId&&((S=this.notificationData)==null?0:S.targetId)){var P;return Y.targetId===((P=this.notificationData)==null?void 0:P.targetId)}};
_.z.computeSelectedIndex_=function(Y){if(Y)for(var S=0,P=Y.length;S<P;S++)if(Y[S].selected)return S;return-1};
_.z.computeLabel_=function(Y){return this.data&&Y!=void 0?this.data[Y].title:""};
_.z.computeShowIcon_=function(Y,S){return!S&&!!Y};
_.z.computeVerticalOffset_=function(Y){return Y?36:0};
_.z.computeEndpoint_=function(Y){return Y.endpoint||Y.navigationEndpoint};
_.z.onLabelClick_=function(Y){this.data&&this.data.length<=1?Y.stopPropagation():this.menuExpanded="true"};
_.z.onIronActivate_=function(Y){Y=Y.detail.item;var S=_.I(this.hostElement).querySelector("#repeat").itemForElement(Y);if(S&&S.trackingParams){var P=_.pM(),u=_.Re(S.trackingParams);P&&_.ko(P,u)}if(S&&S.serviceEndpoint)_.f("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(S.serviceEndpoint):_.Bu(this.hostElement,[S.serviceEndpoint]),_.ms(this.hostElement,"yt-playlist-reloading");else a:{if((S=Y.querySelector("yt-supported-renderers"))&&(S=
S.rendererElement)&&S.is=="yt-reload-continuation"){S.trigger();break a}(Y=Y.querySelector("yt-reload-continuation"))&&Y.trigger()}};
_.z.onTap_=function(Y){Y.preventDefault()};
_.z.onItemTap_=function(Y){this.ytEndpointBehavior.onEndpointTap_(Y)};
_.z.onLinkFocus_=function(Y){try{var S=Y.target}catch(u){}if(S){var P=S.querySelector("tp-yt-paper-item");P&&_.pc(this,"focus",function(){P.focus()})}};
_.z.onMenuClose_=function(){this.menuExpanded="false"};
_.z.isLabelIconActive_=function(Y){return Y==="true"};
_.z.computeHasSubtitle_=function(Y){return!!Y};
_.z.computeHrefForItem_=function(Y){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(Y))};
_.z.updateSelectedFromBinding=function(Y){this.selected=Y.detail.value};
Fa.prototype.onMenuClose_=Fa.prototype.onMenuClose_;Fa.prototype.onTap_=Fa.prototype.onTap_;Fa.prototype.onIronActivate_=Fa.prototype.onIronActivate_;Fa.prototype.onDropdownOpen=Fa.prototype.onDropdownOpen;Fa.prototype.dataChanged_=Fa.prototype.dataChanged_;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Fa.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.eo.YtEndpointBehavior),_.k("design:type",Object)],Fa.prototype,"ytEndpointBehavior",void 0);
_.Q([_.X(),_.k("design:type",Array)],Fa.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Fa.prototype,"parentTrackingParams",void 0);_.Q([_.X(),_.k("design:type",Object)],Fa.prototype,"selected",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Fa.prototype,"useLabel",void 0);_.Q([_.X(),_.k("design:type",String)],Fa.prototype,"icon",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],Fa.prototype,"iconLabel",void 0);
_.Q([_.X(),_.k("design:type",String)],Fa.prototype,"ariaLabel",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Fa.prototype,"disabled",void 0);_.Q([_.X({computed:"isMenuExpanded(data)"}),_.k("design:type",String)],Fa.prototype,"menuExpanded",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Fa.prototype,"closeOnActivate",void 0);_.Q([_.X({reflectToAttribute:!0,value:_.f("web_modern_buttons")}),_.k("design:type",Boolean)],Fa.prototype,"modernButtons",void 0);
_.Q([_.X(),_.k("design:type",Object)],Fa.prototype,"notificationData",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Fa.prototype,"dataChanged_",null);_.Q([_.WZ("paper-dropdown-open"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Fa.prototype,"onDropdownOpen",null);
_.Q([_.WZ("iron-activate"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Fa.prototype,"onIronActivate_",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Fa.prototype,"onTap_",null);_.Q([_.WZ("iron-overlay-closed"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Fa.prototype,"onMenuClose_",null);
Fa=_.Q([_.r0({is:"yt-dropdown-menu",disableElementRegistration:!0})],Fa);
_.A(Fa,"yt-dropdown-menu",function(){if(zg_===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[ariaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;WbU===void 0&&(WbU=document.createElement("template"));var u=WbU;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);zg_=Y}Y=zg_;return Y},{mode:2});var sJ=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasNotification=!1;return Y};
_.r(sJ,_.Z);sJ.prototype.computeId=function(Y){return Y};
sJ.prototype.computeHorizontalAlign=function(Y){return Y?"right":"left"};
sJ.prototype.computeAccessibilityLabel=function(Y){var S,P;return((S=Y.accessibility)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label)||null};
sJ.prototype.notificationDataChanged=function(){var Y;this.hasNotification=!!this.notificationData&&!((Y=this.data)==null?0:Y.icon)};
sJ.prototype.notificationDataChanged=sJ.prototype.notificationDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.$A.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],sJ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],sJ.prototype,"data",void 0);_.Q([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.k("design:type",String)],sJ.prototype,"id",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],sJ.prototype,"isRightAligned",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],sJ.prototype,"disabled",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],sJ.prototype,"closeOnActivate",void 0);_.Q([_.X(),_.k("design:type",Object)],sJ.prototype,"notificationData",void 0);_.Q([_.X(),_.k("design:type",Object)],sJ.prototype,"hasNotification",void 0);
_.Q([_.zY("notificationData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sJ.prototype,"notificationDataChanged",null);sJ=_.Q([_.r0({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],sJ);
_.A(sJ,"yt-sort-filter-sub-menu-renderer",function(){if(u1d===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;PUm===void 0&&(PUm=document.createElement("template"));var u=PUm;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);u1d=Y}Y=u1d;return Y},{mode:2});_.Sr(qFU);
var mmS=_.AI(function(Y){var S=Y.children;var P=Y.className;var u=Y.style;var W=Y.role;var m=Y.ariaSelected;var J=Y.ariaLabel;var c=Y.ariaHidden;var C=Y.ariaLabelledby;var x=Y.ariaDescribedby;var b=Y.command;var T=Y.elementsCommand;var K=Y.forceNewState;var G=Y.tabIdentifier;var v=Y.target;var a=Y.tabIndex;var w=Y.stopPropagation;Y=_.fJ(function(){var F=_.Ie({innertubeCommand:b==null?void 0:b(),elementsCommand:T==null?void 0:T(),forceNewState:K==null?void 0:K(),stopPropagation:(w==null?void 0:w())!==
!1});F||(F={});F["aria-hidden$"]=c==null?void 0:c();var U;F.tabindex$=(U=a==null?void 0:a())!=null?U:F.tabindex$;var V;F["force-new-state$"]=(V=K==null?void 0:K())!=null?V:F["force-new-state$"];var M;F.role$=(M=W==null?void 0:W())!=null?M:F.role$;var zJ;F["aria-hidden$"]=(zJ=c==null?void 0:c())!=null?zJ:F["aria-hidden$"];var O;F.target$=(O=v==null?void 0:v())!=null?O:F.target$;return F},void 0,"SU0Mnc");
return _.R(_.CR,{aTagConfig:Y,className:P,style:u,ariaLabel:J,ariaLabelledby:C,ariaDescribedby:x,ariaSelected:m,tabIdentifier:G},S)},"fa");var RgK=_.f("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",nus=_.WX(xmY);_.Sr(xmY);_.AL(nus,"place-data-view-model",{props:{data:_.wm}});var j0f=new _.yH("INLINE_PLAYBACK_HOOK_TOKEN");var axX=function(Y){this.setActiveSlideIndex=Y;this.jobIds=[];this.isSlideshowPlaying=!1},wr$=function(Y){if(Y.isSlideshowPlaying){Y.isSlideshowPlaying=!1;
for(var S=Y.jobIds,P=0,u=S.length;P<u;P++)_.wc.cancelJob(S[P]);Y.jobIds.length=0}},Lb9=function(Y,S){Y.isSlideshowPlaying||(Y.isSlideshowPlaying=!0,JXh(Y),BSs(Y,S,0))},JXh=function(Y){_.yz(_.wc,function(){Y.setActiveSlideIndex(0)},1)},BSs=function(Y,S,P){Y.jobIds.push(_.yz(_.wc,function(){var u=P<S-1?P+1:0;
Y.setActiveSlideIndex(u);BSs(Y,S,u)},1800))};var $mf=new _.yH("IMAGE_ON_LOAD_HANDLER_TOKEN");var cXs=_.AI(function(Y){return _.R("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.R(_.gw,{cond:function(){var S;return(S=Y.data())==null?void 0:S.thumbnail},
then:function(S){return _.R(_.ZZ,{data:S,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ga");_.d$=_.AI(function(Y){var S=Y.data;var P=Y.lockupExperiments;Y={};return _.R("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.R("div",{class:_.Si("ytThumbnailOverlayButtonViewModelButton",(Y.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var u;return P&&((u=P())==null?void 0:u.useLegacySizedIconButton)},Y))},_.R(_.rv,{data:function(){return S().overlayButton}},{buttonViewModel:function(u){return _.R(_.aq,{data:u.data,
buttonOverrides:function(){var W;return P&&((W=P())==null?0:W.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ha");
_.d$.idomCompat=!0;var CU_=_.AI(function(Y){var S=_.mR(function(P){P.preventDefault();return!1});
return _.R("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":S},_.R(_.rv,{data:function(){return Y.data().buttons}},{toggleButtonViewModel:function(P){return _.R("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.R(_.vL,{data:P.data}))}}))},"ia");
CU_.idomCompat=!0;var qFL=_.AI(function(Y){var S=function(){var P;return((P=_.g(Y.data().rendererContext,_.iL))==null?void 0:P.label)||""};
return _.R("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.R(_.gw,{cond:function(){return Y.data().image},
then:function(){return _.R("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.R(_.ZZ,{data:function(){return Y.data().image},
alt:S}))}}),_.R(_.gw,{cond:function(){return Y.data().text},
then:function(){return _.R("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return Y.data().text})}}))},"ja");var Gbu=_.EP({thumbnailOverlayTitleViewModel:E43,thumbnailOverlayBadgeViewModel:g4J,thumbnailBottomOverlayViewModel:jlu,thumbnailOverlayFullViewModel:qFL,thumbnailOverlayButtonViewModel:_.d$}),hg$=_.EP({thumbnailHoverOverlayViewModel:Beh,thumbnailHoverOverlayToggleActionsViewModel:CU_}),vuh=_.EP({animatedThumbnailOverlayViewModel:cXs});_.Sr(Dmh);var RgS,xm_;RgS=_.AI(function(Y){var S=[],P=function(){var K,G;return tg((K=Y.width)==null?void 0:K.call(Y),(G=Y.height)==null?void 0:G.call(Y))},u=_.E().resolve(_.PQ($mf)),W=_.Ms(function(){S.push("elRef.value set");
var K;(K=Y.playbackRef)==null||K.call(Y,{thumbnailElRef:W,thumbnail:Y.data().image,thumbnailOverlays:Y.data().overlays,thumbnailSize:P()})});
_.LE(function(){S.push("onInit");_.aI(function(){S.push("onCleanup")})});
var m=_.GI(TS9),J=function(){var K,G;return(G=(K=Y.aspectRatio)==null?void 0:K.call(Y))!=null?G:0},c=function(){return(Y.data().image?_.q7J(Y.data().image):J())<=1&&J()===0},C=function(){return c()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},x=function(){W.value||_.sf(new _.$2("Thumbnail elRef.value is null",S.join("\n")));
u&&W.value&&u(W.value)},b=function(){var K,G;
return((K=Y.hovered)==null?void 0:K.call(Y))&&P()!=="large"&&((G=Y.data().overlays)==null?void 0:G.some(function(v){return _.g(v,rXh)}))},T={};
return _.R("yt-thumbnail-view-model",{class:_.Si("yt-thumbnail-view-model",Y.className,function(){return IxY(J())},function(){var K,G;
a:{var v=P(),a=(K=Y.disableRounding)==null?void 0:K.call(Y);K=(G=Y.isClip)==null?void 0:G.call(Y);if(!a&&!K)switch(v){case "large":G="yt-thumbnail-view-model--large";break a;case "small":G="yt-thumbnail-view-model--small";break a;default:G="yt-thumbnail-view-model--medium";break a}G=void 0}return G},(T["yt-thumbnail-view-model--cinematic"]=c,T)),
style:_.Jg({"background-color":function(){var K,G=c()?(K=Y.data().backgroundColor)==null?void 0:K.lightTheme:void 0;return G?vq(G,"1"):void 0}}),
el:W},_.R(_.gw,{cond:c,then:function(){return _.R("div",{class:"yt-thumbnail-view-model__blurred-image"},_.R(_.ZZ,{data:function(){return Y.data().image},
alt:"",contentMode:C,targetWidth:Y.width,onload:x}))}}),_.R("div",{class:"yt-thumbnail-view-model__image"},_.R(_.ZZ,{data:function(){return Y.data().image},
alt:"",contentMode:C,targetWidth:Y.width,onload:x}),null),_.R(_.rv,{data:function(){return b()?void 0:Y.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:fMs,thumbnailOverlayBadgeViewModel:function(K){return _.R(g4J,{data:K.data,thumbnailSize:P,isClip:Y.isClip})},
thumbnailBottomOverlayViewModel:jlu,thumbnailOverlayFullViewModel:qFL,thumbnailOverlayButtonViewModel:function(K){return _.R(_.d$,{data:K.data,lockupExperiments:Y.lockupExperiments})}}),_.R(_.rv,{data:function(){var K;
return((K=Y.hovered)==null?0:K.call(Y))?Y.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(K){return _.R(cri,{data:K.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:CU_}),_.R(_.rv,{data:function(){var K;return((K=Y.hovered)==null?0:K.call(Y))&&m()?Y.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:cXs}),_.R(_.gw,{cond:Y.isClip,then:function(){return fxE()}}))},"ka");
xm_=_.f("web_enable_sink_lockups_batch")?RgS:Dmh;_.l7=_.f("web_enable_sink_lockups_batch")?RgS:_.WX(xm_,{callbacks:{playbackRef:!0}});RgS.idomCompat={callbacks:{playbackRef:!0}};var prK=_.EP({thumbnailViewModel:xm_});_.Sr(FbJ);var bn_=_.AI(function(Y){var S=_.n(_.qb(-1,void 0,"GEkecf")),P=S.next().value,u=S.next().value;_.LE(function(){var W=new axX(u);Lb9(W,Y.data().thumbnails.length);_.aI(function(){wr$(W)})});
return _.R("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.R(_.rv,{data:function(){return Y.data().thumbnails}},{thumbnailViewModel:function(W,m){return _.R("div",{class:function(){var J=!Y.data().primaryThumbnail,c=m(),C=P(),x=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
J&&c===0&&x.push("yt-collection-thumbnail-slideshow--first-slide");c<=C&&x.push("yt-collection-thumbnail-slideshow--show-slide");return x.join(" ")}},_.R(_.l7,{data:W.data,
disableRounding:Y.disableRounding}))}}))},"la"),ZnU=_.f("web_enable_sink_lockups_batch")?bn_:FbJ,TS6=_.f("web_enable_sink_lockups_batch")?bn_:_.WX(FbJ);
bn_.idomCompat=!0;var s01=new _.yH("DWELL_DETECTOR_REGISTRY_TOKEN");var Xrh=_.EP({thumbnailViewModel:xm_});_.Sr(in9);var Euu=_.AI(function(Y){var S=lxX(Y.triggeringElement),P=function(){return!!Y.data().primaryThumbnail};
return _.R("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.R(Kb6,{stackEnabled:P,thumbnailSize:function(){var u,W;return tg((u=Y.width)==null?void 0:u.call(Y),(W=Y.height)==null?void 0:W.call(Y))},
doubleStack:Y.doubleStack,stackColor:function(){return Y.data().stackColor}},_.R("div",null,_.R(_.rv,{data:function(){return Y.data().primaryThumbnail}},{thumbnailViewModel:function(u){var W={};
return _.R(_.l7,{data:u.data,width:Y.width,height:Y.height,aspectRatio:Y.aspectRatio,disableRounding:Y.disableRounding,className:_.Si((W["yt-collection-thumbnail-view-model--has-stacks"]=P,W)),hovered:Y.hovered,playbackRef:Y.playbackRef})}}),_.R(_.gw,{cond:function(){var u;
return S()&&((u=Y.data().thumbnails)==null?void 0:u.length)},
then:function(){return _.R("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.R(TS6,{data:Y.data,disableRounding:function(){return!P()}}))}}))))},"ma"),fxi=_.f("web_enable_sink_lockups_batch")?Euu:_.WX(in9,{callbacks:{playbackRef:!0}});
Euu.idomCompat={callbacks:{playbackRef:!0}};
var Kb6=_.AI(function(Y){var S=Y.children;var P=Y.stackEnabled;var u=Y.thumbnailSize;var W=Y.doubleStack;var m=Y.stackColor;var J,c=(J=_.E().resolve(_.PQ(_.F5)))==null?void 0:J();return _.R(_.gw,{cond:P,then:function(){return _.R(Xns,{data:function(){var C,x;return{experimentEnabled:!0,thumbnailSize:u(),doubleStack:W==null?void 0:W(),color:c?m==null?void 0:(C=m())==null?void 0:C.darkTheme:m==null?void 0:(x=m())==null?void 0:x.lightTheme,enableResponsiveMode:!1}}},S)},
else:function(){return S}})},"na");var gus=new _.yH("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Zq;_.Xa={calledOnce:!0,state:"visible"};Zq={calledOnce:!0,state:"hidden"};_.i7=_.AI(function(Y){var S=Y.data;var P=Y.customCommandResolver;var u=Y.className;var W=Y.delayedClassName;Y=Y.animationEntityKey;var m=_.Ms(),J=_.o_(Y,""),c=_.Jq(w8h,J),C=function(){var O,ca;return(ca=(O=c())==null?void 0:O.value)!=null?ca:!1},x=function(){_.ip(_.qE("booleanEntity",J(),{key:J(),
value:!0}));F=void 0};
Y=_.n(_.ji(C));var b=Y.next().value,T=Y.next().value;Y=_.n(_.ji(C));var K=Y.next().value,G=Y.next().value;Y=_.n(_.ji(function(){var O;return C()?(O=S().styleTransitionConfig)==null?void 0:O.destinationStyle:void 0}));
var v=Y.next().value,a=Y.next().value,w=function(){var O=Object.assign({},S(),v()&&{style:v()}),ca,hu,ah=O.label,va=(ca=O.interaction)==null?void 0:(hu=ca.accessibility)==null?void 0:hu.label;ca=O.iconImage?O.label&&O.label.content?O.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:ah,accessibilityLabel:va,style:Uma(O.style),type:Q0$(O.style),state:"active",size:AXa(O.size),iconPosition:ca,disabled:!1,aTagConfig:tz8(O,P)}},F;
_.Yy(m,{visibilityCallback:function(O){var ca,hu=(ca=S().interaction)==null?void 0:ca.onFirstVisible;O&&hu&&_.ae(hu)},
showOption:_.Xa});var U=function(){return cX(w(),!!S().iconImage)};
u=_.Si(function(){return"ytwAdButtonViewModelHost"},function(){return S().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var O=!!S().delayedAppearanceConfig,ca=b();
return O?ca?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var O=!!S().delayedAppearanceConfig,ca=K();
return O?ca?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!S().delayedAppearanceConfig||b()?W==null?void 0:W():""},u!=null?u:"");
var V=function(){var O,ca=(O=S().delayedAppearanceConfig)==null?void 0:O.delayedInvisibleSeconds;ca&&(F=_.bL(_.wc,function(){T(!0);M()},ca*1E3))},M=function(){var O,ca=(O=S().delayedAppearanceConfig)==null?void 0:O.delayedVisibleSeconds;
ca&&(F=_.bL(_.wc,function(){G(!0);zJ()},ca*1E3))},zJ=function(){var O,ca=(O=S().styleTransitionConfig)==null?void 0:O.styleTransitionSeconds,hu,ah=(hu=S().styleTransitionConfig)==null?void 0:hu.destinationStyle;
ca&&ah?F=_.bL(_.wc,function(){a(ah);x()},ca*1E3):x()};
_.LE(function(){var O;((O=S().delayedAppearanceConfig)==null?0:O.transitionDurationSeconds)&&m.value.style.setProperty("transition-duration",S().delayedAppearanceConfig.transitionDurationSeconds+"s");V()});
_.aI(function(){F&&_.wc.cancelJob(F)});
return _.R("ad-button-view-model",{class:u,el:m},_.R(_.gw,{cond:w,then:function(){return _.R(HL,{data:w,icon:function(){return _.R(_.gw,{cond:function(){return S().iconImage},
then:function(O){return _.R(_.ZZ,{data:O,alt:"",targetWidth:U,targetHeight:U,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"oa");var $ms=_.AI(function(Y){var S=Y.data;Y=_.Ms();_.Yy(Y,{visibilityCallback:function(P){var u,W=(u=S().interaction)==null?void 0:u.onFirstVisible;P&&W&&_.ae(W)},
showOption:_.Xa});return _.R("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:Y},_.R("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.R(_.rv,{data:function(){return S().secondaryAdButton}},{adButtonViewModel:function(P){return _.R(_.i7,{data:P.data})}})),_.R("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.R(_.rv,{data:function(){return S().primaryAdButton}},{adButtonViewModel:function(P){return _.R(_.i7,{data:P.data})}})))},"pa");var rXs=_.AI(function(Y){var S=function(){var P;return((P=Y.data())==null?void 0:P.answers)||[]};
return _.R("yt-survey-icons",{class:"ytSurveyIconsHost"},_.R("div",{class:"ytSurveyIconsHeader"},_.R("div",{class:"ytSurveyIconsTitle"},function(){var P;return(P=Y.data())==null?void 0:P.text}),_.R("div",null,_.R(HL,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var P;(P=Y.onDismiss)==null||P.call(Y)}}},
iconName:"DISMISSAL"}))),_.R("div",null,_.R("div",{class:"ytSurveyIconsAnswers"},_.R(_.$Z,{each:function(){return S()},
keyBy:"INDEX"},function(P,u){return _.R("div",null,_.R(HL,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var W;(W=Y.onSelect)==null||W.call(Y,P(),u)}}},
icon:function(){return _.R(_.BX,{icon:function(){var W,m;return(W=P())==null?void 0:(m=W.icon)==null?void 0:m.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.R("div",{class:"ytSurveyIconsAnswersText"},_.R("div",null,function(){return S().length?S()[0].text:""}),_.R("div",null,function(){return S().length?S()[S().length-1].text:""}))))},"qa");var Gbm=_.AI(function(Y){var S=_.n(_.qb(!1,void 0,"s8HkOb")),P=S.next().value,u=S.next().value,W=_.Jq(Y8Y,function(){var c;return(c=Y.data().keys)==null?void 0:c.surveyEntityKey}),m=_.Jq(S8U,function(){var c;
return(c=Y.data().keys)==null?void 0:c.surveyStateEntityKey});
_.kG("ytd-slimline-survey-show-action",function(){u(!1)});
var J=function(){var c,C;var x=(c=m())==null?void 0:(C=c.questionStack)==null?void 0:C[0];if(x!==void 0){var b,T;return(b=W())==null?void 0:(T=b.questions)==null?void 0:T[x]}};
S={};return _.R("yt-slimline-survey-view-model",{class:_.Si("ytSlimlineSurveyViewModelHost",(S.ytSlimlineSurveyViewModelCollapsed=function(){return P()},S))},_.R("div",{class:"ytSlimlineSurveyViewModelContainer"},_.R(_.gw,{cond:function(){var c;
return((c=J())==null?void 0:c.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.R(rXs,{data:function(){return J()},
onSelect:function(c,C){var x,b;return _.B(function(T){u(!0);if(b=(x=Y.data())==null?void 0:x.onSelectRating)_.ae(b),_.ip(aF3(C));_.Yt(T)})},
onDismiss:function(){u(!0)}})}})))},"ra");var hgh=_.AI(function(Y){return _.R("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.R(_.rv,{data:function(){var S;return(S=Y.data())==null?void 0:S.attachments}},{flexibleActionsViewModel:function(S){return _.R("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.R(K$,{data:S.data,
layout:function(){var P;return((P=Y.lockupStyle())==null?void 0:P.arrangement)===1?0:1},
justifyContentOverride:function(){var P;return((P=Y.lockupStyle())==null?void 0:P.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(S){return _.R("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.R(Gbm,{data:S.data}))},
expandableMetadataViewModel:function(S){S=S.data;var P;return _.R("div",{class:"ytLockupAttachmentsViewModelAttachment"},(P=_.E().resolve(_.PQ(gus)))==null?void 0:P({data:S}))},
adButtonGroupViewModel:function(S){return _.R("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.R($ms,{data:S.data}))}}))},"sa");var Vz$=_.z_("rich_grid_min_item_width",310),NSh=_.z_("rich_grid_max_item_width",500);var JGa=_.AI(function(Y){var S=Y.data;return _.R("br-nz-badge-shape",{class:_.Si(function(){return zVU(S().brNzRatingBadgeType)}),
role:function(){return S().accessibilityText?"img":void 0},
"aria-label":function(){return S().accessibilityText}},function(){var P;
return(P=S())==null?void 0:P.text})},"ta");_.Sr(BNJ);var vuU,Szh;vuU=_.AI(function(Y){var S=function(){var P=Y.data(),u,W;return P?jn1(P,!((u=Y.workaroundShortsIsThumbnailBadge)==null||!u.call(Y)),(W=Y.modern)==null?void 0:W.call(Y)):void 0};
return _.R("yt-badge-view-model",{class:_.Si("yt-badge-view-model-wiz",Y.class)},_.R(_.hA,null,_.R(_.rw,{when:function(){var P;return!((P=S())==null||!P.brNzRatingBadgeType)}},function(){return _.R(JGa,{data:function(){return S()}})}),_.R(_.rw,{when:function(){return!!S()&&!S().brNzRatingBadgeType}},function(){return _.R(_.ME,{data:function(){return S()}})})))},"ua");
Szh=_.f("web_enable_sink_yt_badge_view_model")?vuU:BNJ;_.oT=_.f("web_enable_sink_yt_badge_view_model")?vuU:_.WX(BNJ);vuU.idomCompat=!0;var Chf,cGh;Chf=16/9;cGh=2/3;_.tB=_.AI(function(Y){var S=Y.data;var P=Y.className;var u=Y.imageSizeConfig;var W=Y.notifyOnLoaded;Y=_.Ms();var m=function(){return S().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},J=function(){var b;
return _.lL((b=S())==null?void 0:b.rendererContext)},c={};
c=(c["yt-content-preview-image-view-model-wiz"]=!0,c["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return m()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},c["yt-content-preview-image-view-model-wiz--tappable"]=function(){return J()},c);
var C=function(){var b,T;return(T=(b=_.g(S().rendererContext,_.iL))==null?void 0:b.label)!=null?T:""},x=function(){return RV$(S())};
_.Zw(Y,function(){var b;return(b=S())==null?void 0:b.rendererContext});
return _.R("yt-content-preview-image-view-model",{el:Y,role:function(){return J()?"link":void 0},
tabindex:function(){return J()?0:void 0},
class:_.Si(P,c,function(){var b=m();var T=u==null?void 0:u();b=b==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||b==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(T==null?void 0:T.size)!=null&&T.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(T==null?void 0:T.size)!=null&&T.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 b}),
style:function(){return q5f(m(),S().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",u==null?void 0:u(),xth(x()),S().layoutWidth,S().layoutHeight)}},_.R(_.gw,{cond:x,
then:function(b){return _.R(_.ZZ,{data:b,alt:C,"data-disabled$":function(){return!C()},
notifyOnLoaded:W})}}),_.R(_.rv,{data:function(){var b;
return(b=S())==null?void 0:b.overlays}},{thumbnailHoverOverlayViewModel:cri,
thumbnailOverlayButtonViewModel:_.d$}))},"va");
_.tB.idomCompat=!0;var AB=_.AI(function(Y){var S=Y.data;var P=Y.className;var u=Y.useSmallLayout;var W=Y.useMediumText;Y=_.Ms();var m={};W=(m["yt-attribution-view-model-wiz"]=!0,m["yt-attribution-view-model-wiz--medium-text"]=W,m);_.Zw(Y,function(){var J;return(J=S())==null?void 0:J.rendererContext});
return _.R("yt-attribution-view-model",{el:Y,class:_.Si(P,W)},_.R(_.gw,{cond:function(){return _.lL(S().rendererContext)},
then:function(){return _.R("button",{class:"yt-attribution-view-model-wiz--tappable"},_.R(Dms,{data:S,useSmallLayout:u}))},
else:function(){return _.R(Dms,{data:S,useSmallLayout:u})}}))},"wa"),Dms=_.AI(function(Y){var S=Y.data;
var P=Y.useSmallLayout;var u=function(){return{size:(P==null?0:P())?16:24}};
return _.R(_.SX,null,_.R(_.rv,{data:function(){return S().contentPreviewImage}},{contentPreviewImageViewModel:function(W){return _.R(_.tB,{data:W.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:u})}}),_.R(_.rv,{data:function(){return S().badge}},{badgeViewModel:function(W){return _.R(_.oT,{data:W.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.R(_.gw,{cond:function(){return S().text},
then:function(){return _.R(_.qw,{text:function(){return S().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.R(_.gw,{cond:function(){return S().suffix},
then:function(){return _.R(_.qw,{text:function(){return S().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"xa");
AB.idomCompat=!0;var $th=_.EP({avatarStackViewModel:_.Te3,badgeViewModel:Szh});_.Sr(hVh);var Ix_,axJ,Lb6,wrh,prS,Fb3,s0d;Ix_=_.AI(function(Y){var S=Y.delimiter;var P=Y.max;var u=Y.index;var W=Y.isStandalone;return _.R(_.gw,{cond:function(){return P()-1>u()},
then:function(){var m={};return _.R("span",{class:_.Si("yt-content-metadata-view-model-wiz__delimiter",(m["yt-content-metadata-view-model-wiz__delimiter--standalone"]=W,m)),"aria-hidden":!0},S)}})},"ya");
axJ=_.AI(function(Y){var S=Y.metadataPart;var P=Y.maxLines;return _.R(_.qw,{text:function(){return S().text},
linkInheritColor:!0,className:function(){return vVY(P())},
userInput:!0})},"za");
Lb6=_.AI(function(Y){var S=Y.metadataPart;var P=Y.maxLines;return _.R(_.SX,null,_.R(_.gw,{cond:function(){return S().tooltip},
then:function(u){return _.R("span",{title:u,role:"tooltip"},_.R(axJ,{metadataPart:S,maxLines:P}))},
else:function(){return _.R(axJ,{metadataPart:S,maxLines:P})}}))},"Aa");
wrh=_.AI(function(Y){var S=Y.metadataPart;var P=Y.isOverlay;var u=Y.useMediumText;var W=Y.hideAvatar;var m=function(){return S().maxLines!==void 0?S().maxLines:1};
return _.R(_.SX,null,_.R(_.rv,{data:function(){return S().avatarStack}},{avatarStackViewModel:function(J){return _.R(_.xw,{data:J.data,
isOverlay:P,useMediumText:u,hideAvatar:W})},
badgeViewModel:_.oT}),_.R(_.gw,{cond:function(){return S().text},
then:function(){return _.R(Lb6,{metadataPart:S,maxLines:m})}}))},"Ba");
prS=_.AI(function(Y){var S=Y.metadataRow;var P=Y.isInline;var u=Y.delimiter;var W=Y.isOverlay;var m=Y.useMediumText;var J=Y.extensions;var c=function(){var C;return TNh(J==null?void 0:(C=J())==null?void 0:C.lockupMetadata,S())};
Y={};return _.R("div",{class:_.Si("yt-content-metadata-view-model-wiz__metadata-row",(Y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=P,Y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var C;return Kfh(J==null?void 0:(C=J())==null?void 0:C.lockupMetadata,S())},Y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var C;
return!!(J==null?0:(C=J())==null?0:C.lockupMetadata)&&S().badges},Y))},_.R(_.rv,{data:function(){return S().badges}},{badgeViewModel:function(C){return _.R("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.R(_.oT,{data:C.data}))}}),_.R(_.$Z,{each:function(){return S().metadataParts||[]}},function(C,x){return _.R(_.SX,null,_.R(wrh,{metadataPart:C,
isOverlay:W,useMediumText:m,hideAvatar:c}),_.R(Ix_,{delimiter:u,max:function(){return S().metadataParts.length},
index:x,isStandalone:!1}))}),_.R(_.gw,{cond:function(){return S().isSpacerRow&&!P()},
then:function(){return _.R("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ca");
Fb3=_.AI(function(Y){var S=_.tI(Y,{layout:0,isOverlay:!1});Y=S.className;var P=S.data,u=S.layout,W=S.isOverlay,m=S.useMediumText,J=S.extensions;S=_.Ms();var c=function(){return u()===0};
_.Zw(S,function(){return P().rendererContext});
var C={};return _.R("yt-content-metadata-view-model",{class:_.Si(Y,"yt-content-metadata-view-model-wiz",(C["yt-content-metadata-view-model-wiz--inline"]=c,C["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.lL(P().rendererContext)},C["yt-content-metadata-view-model-wiz--medium-text"]=m,C)),
el:S},_.R(_.$Z,{each:function(){return P().metadataRows}},function(x,b){return _.R(_.SX,null,_.R(prS,{metadataRow:x,
isInline:c,delimiter:function(){return P().delimiter},
isOverlay:W,useMediumText:m,extensions:J}),_.R(_.gw,{cond:function(){return c()&&!x.isSpacerRow},
then:function(){return _.R(Ix_,{delimiter:function(){return P().delimiter},
max:function(){return P().metadataRows.length},
index:b,isStandalone:!0})}}))}))},"Da");
s0d=_.f("web_enable_sink_yt_content_metadata_view_model")?Fb3:hVh;_.dmi=_.f("web_enable_sink_yt_content_metadata_view_model")?Fb3:_.WX(hVh);Fb3.idomCompat=!0;var anU=_.EP({avatarViewModel:_.rH,decoratedAvatarViewModel:x9J,contentMetadataViewModel:s0d,buttonViewModel:_.aq,attributionViewModel:AB});_.Sr(Lfa);var lxJ=_.AI(function(Y){var S={};return _.R("yt-lockup-metadata-view-model",{class:_.Si("yt-lockup-metadata-view-model-wiz",function(){a:{var P=Y.lockupStyle();if(P==null?0:P.isOverlay)P="yt-lockup-metadata-view-model-wiz--overlay";else switch(P==null?void 0:P.arrangement){case 1:P="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:P="yt-lockup-metadata-view-model-wiz--vertical"}}return P},function(){a:{var P=Y.lockupStyle();
if(P==null?0:P.isTiny)P="yt-lockup-metadata-view-model-wiz--tiny";else switch(P==null?void 0:P.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":P="yt-lockup-metadata-view-model-wiz--compact";break a;default:P="yt-lockup-metadata-view-model-wiz--standard"}}return P},(S["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var P;
return(P=Y.lockupStyle())==null?void 0:P.isOverlay},S["yt-lockup-metadata-view-model-wiz--card"]=function(){var P;
return(P=Y.lockupStyle())==null?void 0:P.isCard},S["yt-lockup-metadata-view-model-wiz--centered"]=function(){var P;
return(P=Y.lockupStyle())==null?void 0:P.isCentered},S["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var P;
return(P=Y.lockupStyle())==null?void 0:P.typographyBump},S["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var P;
return(P=Y.lockupStyle())==null?void 0:P.useLegacyTypography},S["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var P;
return(P=Y.lockupStyle())==null?void 0:P.useRichGridLegacyTypography},S))},_.R(_.rv,{data:function(){return Y.data().image}},{avatarViewModel:function(P){return _.R("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.R(_.qr,{data:P.data}))},
decoratedAvatarViewModel:function(P){return _.R("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.R(_.RT,{data:P.data}))}}),_.R("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.R("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var P;return(P=Y.data().title)==null?void 0:P.content}},_.R(_.gw,{cond:function(){return Y.data().title},
then:function(P){return _.R(_.CR,{command:Y.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:Y.lockupAccessibilityLabel},_.R(_.qw,{text:P}))}})),_.R("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.R(_.rv,{data:function(){return Y.data().metadata}},{contentMetadataViewModel:function(P){return _.R(_.dmi,{data:P.data,
layout:1,useMediumText:function(){var u,W;return((u=Y.lockupStyle())==null?void 0:u.typographyBump)||((W=Y.lockupStyle())==null?void 0:W.useRichGridLegacyTypography)},
extensions:function(){var u,W;return{lockupMetadata:{byline:{hideAvatar:((u=Y.lockupStyle())==null?void 0:u.arrangement)===0,addPadding:((W=Y.lockupStyle())==null?void 0:W.arrangement)===1}}}}})}})),_.R(_.rv,{data:function(){return Y.data().attribution}},{attributionViewModel:function(P){return _.R("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.R(AB,{data:P.data,
useSmallLayout:!0}))}})),_.R("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.R(_.rv,{data:function(){return Y.data().menuButton}},{buttonViewModel:function(P){return _.R(_.aq,{data:P.data,
buttonOverrides:function(){var u;return((u=Y.lockupStyle())==null?0:u.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ea"),Xrs=_.f("web_enable_sink_lockups_batch")?lxJ:_.WX(Lfa);
lxJ.idomCompat=!0;var ZnL=_.AI(function(Y){var S=_.Ms();_.Ij(function(){requestAnimationFrame(function(){_.H_(S.value)})});
var P={},u={},W={};return _.R("notification-multi-action-renderer",{class:_.Si("ytNotificationMultiActionRendererHost",(P.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var m;return(m=Y.useLegacyShelfStyle)==null?void 0:m.call(Y)},P)),
el:S},_.R("span",{"aria-live":"polite",class:_.Si("ytNotificationMultiActionRendererTextContainer",(u.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var m;return(m=Y.useLegacyShelfStyle)==null?void 0:m.call(Y)},u))},_.R(_.qw,{text:function(){return Y.data().responseText}})),_.R("div",{class:_.Si("ytNotificationMultiActionRendererButtonContainer",(W.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var m;
return(m=Y.useLegacyShelfStyle)==null?void 0:m.call(Y)},W))},_.R(_.rv,{data:function(){var m;
return(m=Y.data().buttons)==null?void 0:m.map(function(J){if(J=J.buttonRenderer){var c,C=Object,x=C.assign,b=(c=J.icon)==null?void 0:c.iconType;c=(c=J.command||J.serviceEndpoint||J.navigationEndpoint)?{innertubeCommand:c}:void 0;J={buttonViewModel:x.call(C,{},{iconName:b,onTap:c,trackingParams:J.trackingParams,titleFormatted:J.text?_.$J(J.text):void 0},wVa(J))}}else J=void 0;return J}).filter(function(J){return!!J})}},{buttonViewModel:function(m,J){return _.R("div",null,_.R(_.aq,{data:m.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var c;return((c=Y.useModernStyles)==null?0:c.call(Y))?{type:J()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Fa");var in6=_.AI(function(Y){var S=_.Ms();_.Ij(function(){requestAnimationFrame(function(){_.H_(S.value)})});
return _.R("notification-text-renderer",{el:S,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.R(_.qw,{text:function(){return Y.data().successResponseText}}))},"Ga");_.ou_=_.AI(function(Y){var S=_.Jq(pCJ,function(){var u;return pVh((u=Y.contentId)==null?void 0:u.call(Y))}),P=function(){var u;
return _.g((u=S())==null?void 0:u.command,_.xp)};
return _.R(_.gw,{cond:function(){var u;if(!(u=P())){var W;u=_.g((W=S())==null?void 0:W.command,rvi)}return u},
then:function(){return _.R(_.gw,{cond:P,then:function(){var u={};return _.R("div",{class:_.Si("ytDismissibleItemReplacedContent",function(){var W;return Ffh((W=Y.aspectRatio)==null?void 0:W.call(Y))})},_.R("div",{class:_.Si((u.ytDismissibleItemAspectRatioContainer=function(){var W;
return((W=Y.aspectRatio)==null?void 0:W.call(Y))!==void 0},u))},_.R(_.rv,{data:function(){var W;
return(W=P())==null?void 0:W.item}},{notificationMultiActionRenderer:function(W){return _.R(ZnL,{data:W.data,
useModernStyles:Y.useModernStyle,useLegacyShelfStyle:Y.useLegacyShelfStyle})},
notificationTextRenderer:in6})))}})},
else:Y.children})},"Ha");_.tzu=_.AI(function(Y){var S=Y.data;var P=Y.customCommandResolver;Y=_.yZ();var u=function(){var m;return((m=S().interaction)==null?0:m.onTap)?function(J){var c;ouY(J,(c=S().interaction)==null?void 0:c.onTap,P)}:void 0},W=function(){var m,J=S(),c=u(),C=(m=_.g(S().rendererContext,_.iL))==null?void 0:m.label;
a:switch(J.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":m=1;break a;default:m=0}return{size:ln8(J.size),type:m,onTap:c,accessibilityText:C}};
_.Yy(Y,{visibilityCallback:function(m){var J,c=(J=S().interaction)==null?void 0:J.onFirstVisible;m&&c&&_.ae(c)},
showOption:_.Xa});return _.R("ad-avatar-view-model",{class:function(){var m;return((m=S().interaction)==null?0:m.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:Y},_.R(_.gw,{cond:function(){return S().image},
then:function(m){return _.R(oq,{data:W,image:m})}}))},"Ia");_.UJ=_.AI(function(Y){Y=_.tI(Y,{hasDot:!1});var S=Object.assign({},Y),P=Y.data,u=Y.hasDot;Y=Y.customCommandResolver;var W=(delete S.data,delete S.hasDot,delete S.customCommandResolver,S);S=function(){return P().style};
S!==void 0&&S!==null||_.AA(Error("Fh"));S=_.Ms();_.QR(S,function(){return P().interaction},Y);
return _.R("ad-badge-view-model",{class:_.Si(function(){var m;return((m=P().interaction)==null?0:m.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var m=W.adRenderingContextType();
P();return m==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:S},_.R(_.ME,{data:function(){var m;P();return{type:2,text:(m=P().label)==null?void 0:m.content,adsIncludeDot:u(),isOverlay:P().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ja");var AXf;_.QT=_.AI(function(Y){var S=Y.data;var P=Y.customCommandResolver;var u=Y.adRenderingContextType;Y=_.Ms();_.QR(Y,function(){return S().interaction},P);
_.Yy(Y,{visibilityCallback:function(W){var m,J=(m=S().interaction)==null?void 0:m.onFirstVisible;W&&J&&_.ae(J)},
showOption:_.Xa});return _.R("ad-details-line-view-model",{class:function(){var W;return((W=S().interaction)==null?0:W.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:Y},_.R(_.gw,{cond:function(){return S().style},
then:function(W){return _.R(_.$Z,{each:function(){var m;return((m=S())==null?void 0:m.attributes)||[]},
keyBy:"INDEX"},function(m){return _.R(AXf,{attribute:m,style:W,adRenderingContextType:function(){return u()}})})}}))},"Ka");
AXf=_.AI(function(Y){var S=Y.attribute;var P=Y.style;var u=Y.adRenderingContextType;return _.R(_.gw,{cond:function(){return S().text},
then:function(W){return _.R(_.qw,{text:W,className:function(){var m=u();P();return m==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"La");var Umf=_.AI(function(Y){var S=Y.data;var P=function(){return S().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
return _.R(_.SX,null,_.R("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.R(_.qw,{text:function(){return S().headline},
className:function(){return P()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline"},
linkInheritColor:!0}),_.R(_.gw,{cond:function(){return S().description},
then:function(u){return _.R(_.qw,{text:u,className:function(){return P()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription"},
linkInheritColor:!0})}}),_.R("div",{class:function(){return P()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.R(_.rv,{data:function(){return S().adBadge}},{adBadgeViewModel:function(u){return _.R(_.UJ,{data:u.data,
hasDot:function(){return!!S().adDetailsLine},
adRenderingContextType:function(){return S().adRenderingContextType}})}}),_.R(_.rv,{data:function(){return S().adDetailsLine}},{adDetailsLineViewModel:function(u){return _.R(_.QT,{data:u.data,
adRenderingContextType:function(){return S().adRenderingContextType}})}}))),_.R("div",{class:function(){return P()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.R(_.rv,{data:function(){return S().menu}},{buttonViewModel:function(u){return _.R(_.aq,{data:u.data,
buttonOverrides:function(){a:switch(S().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var W="S";break a;default:W="M"}return{size:W}}})}})))},"Ma"),Q0h=_.AI(function(Y){var S=Y.data;
var P=Y.noBottomMargin;var u=Y.useVideoLockupTopPadding;Y={};Y=_.Si("ytwFeedAdMetadataViewModelHostMetadata",(Y.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return P==null?void 0:P()},Y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return u==null?void 0:u()},Y));
var W=function(){return S().adBadge};
W!==void 0&&W!==null||_.AA(Error("Gh"));W={};return _.R(_.SX,null,_.R(_.gw,{cond:function(){return S().adAvatar},
then:function(){return _.R("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.R(_.rv,{data:function(){return S().adAvatar}},{adAvatarViewModel:function(m){return _.R(_.tzu,{data:m.data})}}))}}),_.R("div",{class:Y},_.R("div",{class:"ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline"},_.R(_.qw,{text:function(){return S().headline},
linkInheritColor:!0})),_.R(_.gw,{cond:function(){return S().description},
then:function(m){return _.R(_.qw,{text:m,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.R("div",{class:function(){return S().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.f("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.R(_.rv,{data:function(){return S().adBadge}},
{adBadgeViewModel:function(m){return _.R(_.UJ,{data:m.data,
hasDot:function(){return!!S().adDetailsLine},
adRenderingContextType:function(){return S().adRenderingContextType}})}}),_.R(_.rv,{data:function(){return S().adDetailsLine}},{adDetailsLineViewModel:function(m){return _.R(_.QT,{data:m.data,
adRenderingContextType:function(){return S().adRenderingContextType}})}})),_.R(_.gw,{cond:function(){return S().secondaryDescription},
then:function(m){return _.R(_.qw,{text:m,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.R("div",{class:_.Si("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(W.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return u==null?void 0:u()},W))},_.R(_.rv,{data:function(){return S().menu}},{buttonViewModel:_.aq})))},"Na"),kbu=_.AI(function(Y){var S=Y.data;
var P=Y.noBottomMargin;var u=Y.listenToTapEvent;var W=Y.setTouchEndHandler;var m=Y.useVideoLockupTopPadding;var J=_.Ms();_.QR(J,function(){return S().interaction},void 0,function(){return u==null?void 0:u()});
Y=_.n(_.qb(!1,void 0,"rVW2Qd"));var c=Y.next().value,C=Y.next().value;Y=_.mR(function(){(W==null?0:W())&&!c()&&(J.value.click(),C(!0),setTimeout(function(){C(!1)},100));
return!1});
_.Yy(J,{visibilityCallback:function(x){var b,T=(b=S().interaction)==null?void 0:b.onFirstVisible;x&&T&&_.ae(T)},
showOption:_.Xa});return _.R("feed-ad-metadata-view-model",{class:function(){var x;return((x=S().interaction)==null?0:x.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:J,"on:touchend":Y},_.R(_.hA,null,_.R(_.rw,{when:function(){return S().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.R(Umf,{data:S})}),_.R(_.rw,{when:function(){return S().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.R(Q0h,{data:S,
noBottomMargin:P,useVideoLockupTopPadding:m})})))},"Oa");var kw=_.AI(function(Y){return _.R("yt-lockup-view-model",{class:_.Si(Y.className)},_.R(_.ou_,{contentId:function(){return Y.data().contentId},
useModernStyle:!0,aspectRatio:function(){var S,P;return((S=Y.containerType)==null?void 0:S.call(Y))!==3?uHh(Y.data().contentType,(P=Y.force16By9ThumbnailAspectRatio)==null?void 0:P.call(Y)):void 0}},function(){return _.R(Mzm,Object.assign({},Y))}))},"Pa"),Mzm=_.AI(function(Y){Y=_.tI(Y,{containerLayoutConfig:void 0,
protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var S=Y.data,P=Y.containerLayoutConfig,u=Y.containerType,W=Y.sizing,m=Y.protectBackground,J=Y.typographyBump,c=Y.force16By9ThumbnailAspectRatio,C=Y.thumbnailFixedWidth,x=Y.thumbnailTargetWidth,b=Y.lockupExperiments,T=Y.elementsPerRow;Y=_.Ms();_.Zw(Y,function(){var la;return(la=S())==null?
void 0:la.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var K=_.GI(Kb9),G=_.E().resolve(_.PQ(j0f)),v=G?{}:void 0,a=function(){var la,w1,U9;return(U9=(w1=_.g((la=S())==null?void 0:la.rendererContext,_.iL))==null?void 0:w1.label)!=null?U9:void 0},w=function(){var la=P==null?void 0:P(),w1;
if(la==null?0:la.containerType){var U9=(w1=S())==null?void 0:w1.contentType;w1=b();var nu=J(),Yc=x(),tu=m();la=Object.assign({},Wf$(Y5a(la),egf(la.responsiveSize),nu,U9,la.force16By9ThumbnailAspectRatio,Yc,tu,w1),{thumbnailFixedWidth:la.contentPreviewWidth})}else la=Wf$(u(),W(),J(),(U9=S())==null?void 0:U9.contentType,c(),x(),m(),b());return la};
G&&v&&G({enabled:function(){return K()},
itemPlaybackModel:function(){return S().itemPlayback},
thumbnailElRef:function(){return v.thumbnailElRef},
containerElRef:Y,options:function(){var la,w1=(la=_.g(S().metadata,WDs))==null?void 0:la.endorsement;la=v.thumbnailOverlays||[];w1&&la.push(w1);var U9,nu;return{thumbnail:v.thumbnail,thumbnailOverlays:la,accessibilityText:a(),thumbnailSize:v.thumbnailSize,enableRounding:w().isCollection,containPlayerWithinThumbnail:w().isCollection,trackingParams:(U9=_.g(S().rendererContext,_.lkY))==null?void 0:(nu=U9.loggingDirectives)==null?void 0:nu.trackingParams}}});
var F=0;G=_.n(_.qb(!1,void 0,"HzAs3"));var U=G.next().value,V=G.next().value;G=_.n(_.qb(!1,void 0,"ujOXud"));var M=G.next().value,zJ=G.next().value;G=_.mR(function(){var la=K()&&S().itemPlayback;M()?(_.wc.cancelJob(F),F=_.wc.addJob(function(){V(!la)},8,32)):V(!la);
return!0});
var O=_.mR(function(){F&&(_.wc.cancelJob(F),F=0);V(!1)});
_.aI(function(){F&&(_.wc.cancelJob(F),F=0)});
var ca=dtf(function(){zJ(!0)}),hu=ca.touchFeedbackEvents,ah=ca.touchFeedbackOnPointerUp,va=ca.touchFeedbackOnPointerDown;
ca=ca.touchFeedbackOnPointerLeave;var yX={};return _.R("div",{el:Y,class:_.Si("yt-lockup-view-model-wiz",function(){a:{var la=w();if(la.isOverlay)la="yt-lockup-view-model-wiz--overlay";else switch(la.arrangement){case 1:la="yt-lockup-view-model-wiz--horizontal";break a;default:la="yt-lockup-view-model-wiz--vertical"}}return la},function(){a:{var la=w();
if(la.isOverlay)la="yt-lockup-view-model-wiz--overlay";else{switch(la.collectionStackNumber){case 1:la="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:la="yt-lockup-view-model-wiz--collection-stack-2";break a}la=void 0}}return la},(yX["yt-lockup-view-model-wiz--card"]=function(){return w().isCard},yX["yt-lockup-view-model-wiz--compact"]=function(){return w().isTiny||w().sizing!=="STANDARD"},yX["yt-lockup-view-model-wiz--protect-background"]=m,yX["yt-lockup-view-model-wiz--add-margins"]=
function(){return w().addMarginForFullbleed},yX["yt-lockup-view-model-wiz--centered"]=function(){return w().isCentered},yX["yt-lockup-view-model-wiz--fullbleed"]=function(){return w().fullbleed},yX["yt-lockup-view-model-wiz--single-column-grid"]=function(){return T()===1&&u()===2},yX["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var la;
return(la=b())==null?void 0:la.useRichGridLegacyMargin},yX)),
"on:mousedown":va,"on:mouseleave":O,"on:mouseup":ah,"on:mouseover":G,"on:touchstart":va,"on:touchend":ah,"on:pointerleave":ca},_.R(_.CR,{command:function(){var la;return _.dv((la=S())==null?void 0:la.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return C()&&w().arrangement===1?"width: "+C():""}},_.R(_.rv,{data:function(){var la;
return(la=S())==null?void 0:la.contentImage}},{thumbnailViewModel:function(la){return _.R(_.l7,{data:la.data,
aspectRatio:function(){return w().aspectRatio},
disableRounding:function(){return w().disableRounding},
width:x,hovered:U,isClip:function(){var w1;return((w1=S())==null?void 0:w1.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:bnY(v),lockupExperiments:function(){return b()}})},
collectionThumbnailViewModel:function(la){return _.R(fxi,{data:la.data,aspectRatio:function(){return w().aspectRatio},
disableRounding:function(){return w().disableRounding},
width:x,doubleStack:function(){return w().collectionStackNumber===2},
hovered:U,playbackRef:bnY(v)})},
decoratedAvatarViewModel:_.RT})),_.R("div",{class:"yt-lockup-view-model-wiz__metadata"},_.R(_.rv,{data:function(){var la;return(la=S())==null?void 0:la.metadata}},{lockupMetadataViewModel:function(la){return _.R(Xrs,{data:la.data,
lockupStyle:w,lockupCommand:function(){var w1;return _.dv((w1=S())==null?void 0:w1.rendererContext)},
lockupAccessibilityLabel:function(){return a()}})},
feedAdMetadataViewModel:function(la){return _.R(kbu,{data:la.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0}})}}),_.R(_.rv,{data:function(){var la;
return(la=S())==null?void 0:la.attachmentSlot}},{lockupAttachmentsViewModel:function(la){return _.R(hgh,{data:la.data,
lockupStyle:w})}})),_.R(_.RF,{model:function(){a:{switch(w().collectionStackNumber){case 1:var la=8;
break a;case 2:la=12;break a}la=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:la}},
pointerDownEvent:hu.pointerDownEvent,pointerUpEvent:hu.pointerUpEvent,pointerLeaveEvent:hu.pointerLeaveEvent}))},"Qa");
kw.idomCompat=!0;_.AL(kw,"yt-lockup-view-model",{props:{data:_.wm,containerLayoutConfig:_.wm,containerType:_.wm,sizing:_.wm,protectBackground:_.wm,typographyBump:_.wm,thumbnailFixedWidth:_.wm,thumbnailTargetWidth:_.wm,force16By9ThumbnailAspectRatio:_.wm,className:_.wm,lockupExperiments:_.wm,elementsPerRow:_.wm}});_.Sr(AGE);var NN9=_.EP({buttonViewModel:_.aq}),yXU=_.WX(MJU);_.Sr(MJU);_.Sr(QnE);_.Sr(kQ9);_.AL(yXU,"yt-video-attribute-view-model",{props:{data:_.wm,className:_.wm}});var Mr=function(){var Y=_.Z.apply(this,arguments)||this;Y.useHighlightStyling=_.f("web_enable_deeper_metadata_highlight_styling");Y.isSearch=!1;Y.JSC$12906_lastScrollContainerWidth=NaN;Y.pageLoadingFromNavigation=!1;Y.currentIndex=0;Y.supportComponentResize=!1;return Y};
_.r(Mr,_.Z);_.z=Mr.prototype;
_.z.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}}}}}};
_.z.attached=function(){document.addEventListener("yt-page-type-changed",_.up(this,this.onPageChange))};
_.z.detached=function(){document.removeEventListener("yt-page-type-changed",_.up(this,this.onPageChange))};
_.z.getItemsPath=function(){return"data.cards"};
_.z.onIronResize=function(){this.updateListStyles()};
_.z.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var Y;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(Y=this.data)==null?void 0:Y.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.f("problem_walkthrough_sd")&&!!this.centerItems};
_.z.computeCardListStyle=function(Y){return Y||null};
_.z.computeEmpty=function(Y){return!this.get("cards.length",Y)};
_.z.computeThumbnailStyle=function(Y){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",Y)||null};
_.z.computeHasSubtitle=function(Y){return!!this.get("header.richListHeaderRenderer.subtitle",Y)};
_.z.computeInitialCountNumber=function(Y){return this.hasSquareMiniApp&&Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.z.computeUseFloorScrolling=function(Y){return Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.z.computeHasGameCard=function(Y){return(Y=this.get("cards",Y))?Y.some(function(S){return S.gameCardRenderer}):!1};
_.z.computeCenterHeaderTitle=function(Y){return!(Y==null||!Y.centerHeaderTitle)};
_.z.computeHasPortraitMiniApp=function(Y){return(Y=Y==null?void 0:Y.cards)?Y.some(function(S){return S.miniGameCardViewModel&&S.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.z.computeHasSquareMiniApp=function(Y){return(Y=Y==null?void 0:Y.cards)?Y.some(function(S){return S.miniGameCardViewModel&&S.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.z.computeHasSkinnyWidthPortraitMiniApp=function(Y){return(Y=Y==null?void 0:Y.cards)?Y.some(function(S){return S.miniGameCardViewModel&&S.miniGameCardViewModel.width===135}):!1};
_.z.computeCenterItems=function(Y){return!!Y};
_.z.computeHasInfoPanel=function(Y){var S;return Y==null?void 0:(S=Y.cards)==null?void 0:S.some(function(P){return P.infoPanelContentRenderer})};
_.z.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.z.getItemByIndex=function(Y){var S=this.items.children;return S&&S.length>Y?S[Y]:void 0};
_.z.onPageChange=function(){var Y=this;this.pageLoadingFromNavigation=!0;_.wc.addJob(function(){Y.pageLoadingFromNavigation=!1;_.jR(Y.hostElement,"yt-terminate-video-preview-action")},8)};
_.z.updateListStyles=function(){if(_.f("problem_walkthrough_sd")&&this.JSC$12906_scrollContainer!==void 0){var Y=this.JSC$12906_scrollContainer.clientWidth;Y!==this.JSC$12906_lastScrollContainerWidth&&(this.JSC$12906_lastScrollContainerWidth=Y,_.PZ(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(Y*.8,415)+"px"}),_.ms(this.hostElement,"iron-resize"))}};
_.y6.Object.defineProperties(Mr.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.f("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return _.f("kevlar_modern_sd")&&!!((Y=this.data)==null?0:(S=Y.cards)==null?0:(P=S[0])==null?0:P.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return!!((Y=this.data)==null?0:(S=Y.cards)==null?0:(P=S[0])==null?0:P.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return _.f("enable_desktop_amsterdam_info_panels")&&!!((Y=this.data)==null?0:(S=Y.cards)==null?0:(P=S[0])==null?0:P.infoPanelContentRenderer)}}});
Mr.prototype.dataChanged=Mr.prototype.dataChanged;Mr.prototype.onIronResize=Mr.prototype.onIronResize;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.kR.YtdHorizontalListBehavior),_.k("design:type",Object)],Mr.prototype,"ytdHorizontalListBehavior",void 0);
_.Q([_.p(_.vf),_.k("design:type",Object)],Mr.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Mr.prototype,"data",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Mr.prototype,"useCustomColors",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Mr.prototype,"useHighlightStyling",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.k("design:type",Object)],Mr.prototype,"cardListStyle",void 0);_.Q([_.X({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.k("design:type",Boolean)],Mr.prototype,"empty",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.k("design:type",Boolean)],Mr.prototype,"hasSubtitle",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.k("design:type",Boolean)],Mr.prototype,"thumbnailStyle",void 0);_.Q([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.k("design:type",Boolean)],Mr.prototype,"hasGameCard",void 0);_.Q([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.k("design:type",Boolean)],Mr.prototype,"centerHeaderTitle",void 0);
_.Q([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.k("design:type",Boolean)],Mr.prototype,"hasPortraitMiniApp",void 0);_.Q([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.k("design:type",Boolean)],Mr.prototype,"hasSquareMiniApp",void 0);_.Q([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.k("design:type",Boolean)],Mr.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.Q([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.k("design:type",Boolean)],Mr.prototype,"hasInfoPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Mr.prototype,"isSearch",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Mr.prototype,"inlineStructuredDescription",void 0);_.Q([_.nc("#scroll-container"),_.k("design:type",HTMLDivElement)],Mr.prototype,"JSC$12906_scrollContainer",void 0);
_.Q([_.X({computed:"computeInitialCountNumber(data.style.type)"}),_.k("design:type",Number)],Mr.prototype,"initialCount",void 0);_.Q([_.X({computed:"computeUseFloorScrolling(data.style.type)"}),_.k("design:type",Boolean)],Mr.prototype,"useFloorScrolling",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.k("design:type",Boolean)],Mr.prototype,"centerItems",void 0);_.Q([_.X(),_.k("design:type",Object)],Mr.prototype,"pageLoadingFromNavigation",void 0);
_.Q([_.X(),_.k("design:type",Object)],Mr.prototype,"currentIndex",void 0);_.Q([_.X(),_.k("design:type",Number)],Mr.prototype,"scrollCount",void 0);_.Q([_.X(),_.k("design:type",Object)],Mr.prototype,"supportComponentResize",void 0);_.Q([_.nc("#items"),_.k("design:type",HTMLDivElement)],Mr.prototype,"items",void 0);_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mr.prototype,"onIronResize",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mr.prototype,"dataChanged",null);_.Q([_.X({reflectToAttribute:!0}),_.d("inlineStructuredDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Mr.prototype,"hideNavigationButton",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Mr.prototype,"modernChapters",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Mr.prototype,"hasVideoAttributeViewModels",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Mr.prototype,"modernInfoPanels",null);Mr=_.Q([_.t({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Mr);
_.A(Mr,"ytd-horizontal-card-list-renderer",function(){if(Ztt!==void 0)return Ztt;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Ztt=Y},{mode:_.OX("kevlar_poly_si_batch_j072")?1:2});_.Sr(VJU);var NSU=_.WX(VJU);_.Vz(VJU,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var yT=function(){var Y=_.Z.apply(this,arguments)||this;var S,P;Y.isExpanded=(P=(S=Y.data)==null?void 0:S.isExpanded)!=null?P:!1;Y.disableExpand=!1;Y.showProminentLabel=!1;Y.showRightSideLabel=!0;Y.toggleExpandableContent=function(u){Y.disableExpand||(u.stopPropagation(),_.oF(_.iM(u),Y.hostElement,["info","expanded-subtitle"])||(Y.isExpanded=!Y.isExpanded,Y.ytRendererBehavior.logExplicitClick(Y.data),Y.JSC$12918_cardList&&!_.f("expandable_metadata_a11y_fix_ks")&&_.ky(Y,function(){_.NR(Y.hostElement)})))};
Y.useSquareThumbnail=!1;Y.startX=0;return Y};
_.r(yT,_.Z);_.z=yT.prototype;_.z.computeUseSquareThumbnail=function(){var Y;return(Y=this.data)==null?void 0:Y.useSquareThumbnail};
_.z.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"}}}}};
_.z.dataChanged=function(){if(this.data){var Y,S;this.isExpanded=(S=(Y=this.data)==null?void 0:Y.isExpanded)!=null?S:!1;var P,u,W,m;if(Y=this.isDarkTheme()?(P=this.data)==null?void 0:(u=P.colorData)==null?void 0:u.darkColorPalette:(W=this.data)==null?void 0:(m=W.colorData)==null?void 0:m.lightColorPalette){var J,c;if((J=this.data)==null?0:(c=J.colorData)==null?0:c.vibrantColorPalette)Y.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.fR(this.hostElement,Y)}}};
_.z.isExpandedChanged=function(){this.isExpanded&&this.JSC$12918_cardList&&_.ms(this.JSC$12918_cardList,"iron-resize")};
_.z.computeIsExpanded=function(Y){return!!Y.isExpanded};
_.z.computeShowProminentLabel=function(Y,S){var P;return!!(Y==null?0:(P=Y.header)==null?0:P.showLeadingCollapsedLabel)&&!S};
_.z.computeShowRightSideLabel=function(Y,S){var P;return!(Y==null?0:(P=Y.header)==null?0:P.showLeadingCollapsedLabel)&&!S};
_.z.captureContentClick=function(Y){if(!this.disableExpand)if(_.f("expandable_metadata_fix_killswitch")){var S=Y.target;_.k1m(S,"ytd-macro-markers-list-item-renderer")||Y.stopPropagation();(S==null?void 0:S.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.oF(_.iM(Y),this.hostElement,["items"])||_.iN(_.iM(Y),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.z.timestampClick=function(Y){Y.stopPropagation();var S,P;(Y=(S=this.data)==null?void 0:(P=S.header)==null?void 0:P.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(Y)};
_.z.onDown=function(Y){Y.stopPropagation();this.startX=Y.detail?Y.detail.x:0};
_.z.onUp=function(Y){this.skipKeyInteraction(Y)&&Y.stopPropagation()};
_.z.skipKeyInteraction=function(Y){var S=Y.target;if((S==null?void 0:S.id)==="scroll-container"||(S==null?void 0:S.id)==="items"||Y.detail&&Y.detail.x!==this.startX)return!0;Y=_.iM(Y);Y=_.n(Y);for(S=Y.next();!S.done;S=Y.next()){S=S.value;if(S===this.hostElement)break;if(S.hasAttribute&&S.hasAttribute("skip-key-interaction"))return!0}return!1};
_.z.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.y6.Object.defineProperties(yT.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.g((Y=this.data)==null?void 0:Y.expandedContent,bws)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.g((Y=this.data)==null?void 0:Y.expandedContent,_.z2U)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!((Y=this.data)==null||!Y.useCustomColors)&&!((S=this.data)==null||!S.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!!((Y=this.data)==null?0:(S=Y.header)==null?0:S.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!!((Y=this.data)==null?0:(S=Y.header)==null?0:S.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!!((Y=this.data)==null?0:(S=Y.header)==null?0:S.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
yT.prototype.onUp=yT.prototype.onUp;yT.prototype.onDown=yT.prototype.onDown;yT.prototype.isExpandedChanged=yT.prototype.isExpandedChanged;yT.prototype.dataChanged=yT.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],yT.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],yT.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],yT.prototype,"isExpanded",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],yT.prototype,"disableExpand",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],yT.prototype,"isSearch",void 0);
_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],yT.prototype,"isWatch",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.k("design:type",Object)],yT.prototype,"showProminentLabel",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.k("design:type",Object)],yT.prototype,"showRightSideLabel",void 0);
_.Q([_.X({value:!1,reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yT.prototype,"hasVideoSummary",null);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yT.prototype,"hasLockupViewModel",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data","isWatch"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yT.prototype,"useCustomColors",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yT.prototype,"showInfoButton",null);_.Q([_.d("data","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yT.prototype,"showTimestamp",null);_.Q([_.d("data","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yT.prototype,"showExpandedSubtitle",null);
_.Q([_.d("data","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yT.prototype,"showThumbnail",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],yT.prototype,"useVppShoppingDestinationStyle",null);_.Q([_.X(),_.k("design:type",Object)],yT.prototype,"toggleExpandableContent",void 0);_.Q([_.nc("ytd-horizontal-card-list-renderer"),_.k("design:type",Object)],yT.prototype,"JSC$12918_cardList",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.k("design:type",Object)],yT.prototype,"useSquareThumbnail",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yT.prototype,"dataChanged",null);_.Q([_.zY("isExpanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yT.prototype,"isExpandedChanged",null);
_.Q([_.WZ("down"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],yT.prototype,"onDown",null);_.Q([_.WZ("up"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],yT.prototype,"onUp",null);yT=_.Q([_.t({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],yT);
_.A(yT,"ytd-expandable-metadata-renderer",function(){if(ieL!==void 0)return ieL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ieL=Y},{mode:1});var Hnd,Vzh=function(){if(Hnd!==void 0)return Hnd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Hnd=Y};_.$s("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Nr=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableExpand=!1;Y.shouldShowChannelInfo=!1;Y.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return Y};
_.r(Nr,_.Z);_.z=Nr.prototype;_.z.computeUseSearchUi=function(){var Y,S;return this.isSearch||((Y=this.data)==null?void 0:(S=Y.style)==null?void 0:S.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.z.computeUseThreeLineTitle=function(){var Y;return((Y=this.data)==null?void 0:Y.maxTitleLines)===3};
_.z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.f("polymer_video_renderer_defer_menu")&&!FLS?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]]"}}}}}};
_.z.attached=function(){_.Vm(this.hostElement,"blue-links",_.f("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.eV(_.I(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var Y=this.get("data.buttons.buttonRenderer.serviceEndpoint"),S;Y&&((S=_.g(Y.commandMetadata,_.gD))==null?0:S.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(Y);this.updateInlinePreviewHoverListeners()};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12923_inlinePreviewHoverListener=UP({mediaRenderer:this,lockupElement:this.JSC$12923_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.z.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$12923_inlinePreviewHoverListener)==null||Sb(Y)};
_.z.onTextWrapperClick=function(Y){var S,P,u=this.hideTranslation?(S=this.data)==null?void 0:S.untranslatedNavigationEndpoint:(P=this.data)==null?void 0:P.navigationEndpoint;S=_.oF(_.iM(Y),this.hostElement,["expandable-metadata"]);!u||S&&!_.f("expandable_metadata_fix_killswitch")||_.iN(_.iM(Y),this.hostElement,["A".toString(),"BUTTON".toString()])||_.ms(this.hostElement,"yt-navigate",{endpoint:u})};
_.z.computeThumbnailWidth=function(Y,S,P,u,W){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:u?W==="MASSIVE"?600:W==="BIG"?500:W==="MEDIUM"?450:420:P?360:S?128:Y?210:246};
_.z.computeUseBiggerThumbs=function(Y){return Y&&_.f("enable_desktop_search_bigger_thumbs")};
_.z.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.z.computeVideoStyle=function(){if(_.f("enable_video_style")){var Y,S;return(Y=this.data)==null?void 0:(S=Y.style)==null?void 0:S.value}};
_.z.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.z.handleHideItemSectionVideosByIdCommand=function(Y){var S;Y=(S=_.g(Y,iQ_))==null?void 0:S.videoId;this.data&&this.data.videoId===Y&&(this.isHidden=!0)};
_.z.getMetadataSnippetContainerClass=function(Y){return Y?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.z.computeTitleText=function(Y,S,P){return Y?P:S};
_.z.computeDescriptionSnippet=function(Y,S,P){return Y?P:S};
_.z.computeSnippetText=function(Y,S,P){return Y?P:S};
_.z.computeNavigationEndpoint=function(Y,S){return Y?S==null?void 0:S.untranslatedNavigationEndpoint:S==null?void 0:S.navigationEndpoint};
_.z.hideInlineTitleIcon=function(Y,S){return Y||!S};
_.y6.Object.defineProperties(Nr.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var Y;return(Y=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?Y:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$12923_inlinePreviewHoverListener)==null?0:KC(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.y6.Object.defineProperties(Nr,{template:{configurable:!0,enumerable:!0,get:function(){return Vzh()}}});
Nr.prototype.dataChanged=Nr.prototype.dataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Nr.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Nr.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],Nr.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.p(_.Fc),_.k("design:type",Object)],Nr.prototype,"ytdLockupBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Nr.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Nr.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Nr.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Nr.prototype,"isBackstageVideo",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Nr.prototype,"isPostCompactVideo",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Nr.prototype,"isHistory",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Nr.prototype,"isRichGridVideoPost",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Nr.prototype,"isHidden",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Nr.prototype,"isSearch",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.k("design:type",Boolean)],Nr.prototype,"useSearchUi",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.k("design:type",Boolean)],Nr.prototype,"useThreeLineTitle",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.k("design:type",Boolean)],Nr.prototype,"useBiggerThumbs",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.k("design:type",Object)],Nr.prototype,"videoStyle",void 0);_.Q([_.X({computed:"computeDisableExpand(videoStyle)"}),_.k("design:type",Object)],Nr.prototype,"disableExpand",void 0);
_.Q([_.X({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.k("design:type",Object)],Nr.prototype,"shouldShowChannelInfo",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],Nr.prototype,"biggerThumbsStyle",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.k("design:type",String)],Nr.prototype,"inlineTitleIcon",void 0);_.Q([_.X({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.k("design:type",Object)],Nr.prototype,"computedNavigationEndpoint",void 0);_.Q([_.X({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"searchVideoResultEntity",S)}}),
_.k("design:type",Object)],Nr.prototype,"searchVideoResultEntity",void 0);_.Q([_.nc("ytd-thumbnail"),_.k("design:type",HTMLElement)],Nr.prototype,"thumbnail",void 0);_.Q([_.nc("#dismissible"),_.k("design:type",HTMLElement)],Nr.prototype,"JSC$12923_dismissibleMedia",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nr.prototype,"dataChanged",null);
_.Q([_.d("searchVideoResultEntity"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Nr.prototype,"hideTranslation",null);_.Q([_.d("searchVideoResultEntity"),_.k("design:type",Array),_.k("design:paramtypes",[])],Nr.prototype,"hiddenBadgeGroups",null);_.Q([_.d("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Nr.prototype,"isHovered",null);Nr=_.Q([_.t({is:"ytd-video-renderer",disableElementRegistration:!0})],Nr);
_.A(Nr,"ytd-video-renderer",function(){return Vzh()},{mode:_.OX("kevlar_poly_si_batch_j047")?1:2});var H4=function(){var Y=_.Z.apply(this,arguments)||this;Y.editDialog=null;Y.roundedContainer=!0;Y.isLoading=!1;Y.isRichGrid=!1;Y.isRichGridRepost=!1;Y.reduceSidePaddings=_.f("reduce_side_paddings_in_shelf");Y.JSC$12929_spinnerEl=null;return Y};
_.r(H4,_.Z);_.z=H4.prototype;
_.z.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"}}}};
_.z.contentTextChanged=function(){this.expander.reset()};
_.z.dataChanged=function(){var Y=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var S=0,P=this.data.actions&&this.data.actions.length;S<P;S++)this.openEditDialog(_.g(this.data.actions[S],BIJ));if((S=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(S=this.get("buttonRenderer.hint.hintRenderer.hintId",S))&&S.startsWith("share-post-hint")){var u=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(u){_.km.getInstance();var W=Mn(_.kW(_.Td("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.wc.addLowPriorityJob(function(){_.cu(Y.hostElement,W,u)})}}}};
_.z.updatePoll=function(Y){Y>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.z.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12929_spinnerEl||(this.JSC$12929_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.I(this.hostElement).appendChild(this.JSC$12929_spinnerEl));this.JSC$12929_spinnerEl&&(this.JSC$12929_spinnerEl.active=this.isLoading)};
_.z.onYtNavigate=function(Y){var S=this.get("updateCommentDialogEndpoint",Y.detail.endpoint);S&&(this.openEditDialog(S),Y.stopPropagation())};
_.z.onYtCommentboxDismiss=function(){this.editDialog=null};
_.z.onYtCommentPollRevert=function(Y,S){S&&this.updatePoll(S.selectedChoiceIndex)};
_.z.onYtServiceRequestSent=function(Y,S){var P;S.endpoint&&(_.g(S.endpoint,aPm)||_.g(S.endpoint,IP_)&&((P=_.g(S.endpoint,IP_))==null||!P.clientActions))&&(this.isLoading=!0);if(S.actions)for(Y=0;Y<S.actions.length;Y++)P=S.actions[Y],_.g(P,Ew)&&(P=this.get("updateBackstagePollAction.selectedChoiceIndex",P),P==void 0&&(P=-1),this.updatePoll(P))};
_.z.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.z.openEditDialog=function(Y){Y&&Y.dialog&&(this.editDialog=Y.dialog,Y=this.editDialogEl.firstElementChild)&&(Y.focus(),Y.openDialog&&Y.openDialog())};
_.z.computeIsPostHidden=function(Y,S){return!!Y||S};
_.z.computeSurfaceType=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.z.computeUsesCompactLockup=function(Y){return Y==="BACKSTAGE_SURFACE_TYPE_HOME"||Y==="BACKSTAGE_SURFACE_TYPE_SEARCH"||Y==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||Y==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||Y==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||Y==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.z.computeShowWithoutToolbar=function(Y){return!Y.actionButtons&&!Y.actionMenu};
_.z.computePostAttachment=function(Y){if(Y.backstageAttachment){if(_.g(Y.backstageAttachment,zDt))return"poll";if(_.g(Y.backstageAttachment,A7f))return"quiz";if(_.g(Y.backstageAttachment,_.qmJ))return"video";if(_.g(Y.backstageAttachment,UJL))return"uploaded-videos";if(_.g(Y.backstageAttachment,Zji))return Y.contentText?"image":"image-only";if(_.g(Y.backstageAttachment,Zrh))return"playlist"}return"none"};
_.z.computePostTabIndex=function(Y){return Y?0:-1};
_.z.computeButtonTooltipPosition=function(Y){return this.computeUsesCompactLockup(Y)?"top":"bottom"};
_.z.computeHasText=function(Y){return!(Y==null||!Y.contentText)};
_.z.onTap=function(Y){var S,P;if(((S=this.data)==null?0:S.navigationEndpoint)&&((P=this.data)==null?void 0:P.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var u;((u=this.data)==null?0:u.navigationEndpoint)&&!_.iN(_.iM(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.y6.Object.defineProperties(H4.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.voteCount)||_.kW("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,zDt))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,UJL))}}});
H4.prototype.onYtServiceRequestCompleted=H4.prototype.onYtServiceRequestCompleted;H4.prototype.onYtServiceRequestSent=H4.prototype.onYtServiceRequestSent;H4.prototype.onYtCommentPollRevert=H4.prototype.onYtCommentPollRevert;H4.prototype.onYtCommentboxDismiss=H4.prototype.onYtCommentboxDismiss;H4.prototype.onYtNavigate=H4.prototype.onYtNavigate;H4.prototype.isLoadingChanged=H4.prototype.isLoadingChanged;H4.prototype.dataChanged=H4.prototype.dataChanged;H4.prototype.contentTextChanged=H4.prototype.contentTextChanged;
_.Q([_.p(_.vf),_.k("design:type",Object)],H4.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],H4.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],H4.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],H4.prototype,"editDialog",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],H4.prototype,"roundedContainer",void 0);_.Q([_.X(),_.k("design:type",Object)],H4.prototype,"isLoading",void 0);_.Q([_.X({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.k("design:type",String)],H4.prototype,"surface",void 0);
_.Q([_.X({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.k("design:type",Boolean)],H4.prototype,"usesCompactLockup",void 0);_.Q([_.X({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],H4.prototype,"showWithoutToolbar",void 0);_.Q([_.X({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.k("design:type",String)],H4.prototype,"attachment",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],H4.prototype,"isRichGrid",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],H4.prototype,"isRichGridRepost",void 0);_.Q([_.X({reflectToAttribute:!0,value:_.f("use_better_post_dismissals")}),_.k("design:type",Boolean)],H4.prototype,"useBetterPostDismissals",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],H4.prototype,"reduceSidePaddings",void 0);
_.Q([_.X({computed:"computeHasText(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],H4.prototype,"hasText",void 0);_.Q([_.nc("#expander"),_.k("design:type",Object)],H4.prototype,"expander",void 0);_.Q([_.nc("#action-buttons"),_.k("design:type",Object)],H4.prototype,"actionButtons",void 0);_.Q([_.nc("#edit-dialog"),_.k("design:type",HTMLElement)],H4.prototype,"editDialogEl",void 0);
_.Q([_.zY("data.contentText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H4.prototype,"contentTextChanged",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H4.prototype,"dataChanged",null);_.Q([_.zY("isLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H4.prototype,"isLoadingChanged",null);
_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],H4.prototype,"onYtNavigate",null);_.Q([_.WZ("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H4.prototype,"onYtCommentboxDismiss",null);_.Q([_.WZ("yt-comment-poll-revert"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],H4.prototype,"onYtCommentPollRevert",null);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],H4.prototype,"onYtServiceRequestSent",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],H4.prototype,"onYtServiceRequestCompleted",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],H4.prototype,"voteCount",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],H4.prototype,"commentCount",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],H4.prototype,"hasPoll",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],H4.prototype,"hasUploadedVideo",null);H4=_.Q([_.t({is:"ytd-post-renderer",disableElementRegistration:!0})],H4);
_.A(H4,"ytd-post-renderer",function(){if(jgi!==void 0)return jgi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return jgi=Y},{mode:1});var egs;var Onu;var VT=function(){return _.Z.apply(this,arguments)||this};
_.r(VT,_.Z);VT.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],VT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.kR.YtdHorizontalListBehavior),_.k("design:type",Object)],VT.prototype,"ytdHorizontalListBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],VT.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],VT.prototype,"data",void 0);
_.Q([_.X({value:"$.items.children"}),_.k("design:type",String)],VT.prototype,"itemsPath",void 0);_.Q([_.X({value:1}),_.k("design:type",Number)],VT.prototype,"initialCount",void 0);_.Q([_.X(),_.k("design:type",String)],VT.prototype,"surface",void 0);VT=_.Q([_.t({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],VT);
_.A(VT,"ytd-post-multi-image-renderer",function(){if(Onu!==void 0)return Onu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Onu=Y},{mode:_.OX("kevlar_poly_si_batch_j079")?1:2});var Y5t={"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"}}},eQ=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasInlineCommentSection=!1;Y.editDialog=null;Y.isLoading=!1;Y.shouldHideAuthor=!1;Y.shouldShowVideoTime=!1;
Y.isInEngagementPanel=!1;Y.hideBorder=!1;Y.usesFullLockup=!1;Y.shouldShowMenuInCompactView=!1;Y.JSC$12945_spinnerEl=null;Y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return Y};
_.r(eQ,_.Z);_.z=eQ.prototype;_.z.configureRendererStamper=function(){return Y5t};
_.z.computeIsPollHeaderEnabled=function(Y){return(Y==null?void 0:Y.pollMetadataIcon)!=null};
_.z.getPublishTimeStampString=function(Y,S){S=new Date((Number(S)-60*((new Date).getTimezoneOffset()-(new Date(Number(S)*1E3)).getTimezoneOffset()))*1E3);S=(new UC(10)).format(S);if(Y&&Y.runs&&Y.runs.length)for(var P=0;P<Y.runs.length;P++)Y.runs[P].text&&(Y.runs[P].text=Y.runs[P].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",S));return Y};
_.z.created=function(){this.JSC$12945_spinnerEl=null};
_.z.contentTextChanged=function(){this.expander.reset()};
_.z.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var Y;if((Y=this.data)==null?0:Y.actions){Y=_.n(this.data.actions);for(var S=Y.next();!S.done;S=Y.next())this.openEditDialog(_.g(S.value,BIJ))}};
_.z.handleSignalActionOpenPostCommentDialogAction=function(){_.I(this.hostElement).querySelector("#action-buttons").reply()};
_.z.updatePoll=function(Y,S){S&&this.set("data.pollMetadataVoteCountText",S);this.hasInlineCommentSection&&(Y=Y>=0,S=_.I(this.hostElement).querySelector("#action-buttons"),Y?S.reply():S.hideReplyDialog())};
_.z.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12945_spinnerEl||(this.JSC$12945_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.I(this.hostElement).appendChild(this.JSC$12945_spinnerEl));this.JSC$12945_spinnerEl&&(this.JSC$12945_spinnerEl.active=this.isLoading)};
_.z.onYtNavigate=function(Y){var S=this.get("updateCommentDialogEndpoint",Y.detail.endpoint);S&&(this.openEditDialog(S),Y.stopPropagation())};
_.z.onYtCommentboxDismiss=function(){this.editDialog=null};
_.z.onYtCommentPollRevert=function(Y,S){S&&this.updatePoll(S.selectedChoiceIndex,S.totalVotes)};
_.z.onYtServiceRequestSent=function(Y,S){Y.stopPropagation();Y=_.g(S.endpoint,IP_);if(_.g(S.endpoint,aPm)||Y&&!Y.clientActions)this.isLoading=!0;if(S.actions)for(Y=0;Y<S.actions.length;Y++){var P=S.actions[Y],u=_.g(P,Ew);u&&(P=this.get("updateBackstagePollAction.selectedChoiceIndex",P),P===void 0&&(P=-1),this.updatePoll(P,u.totalVotes))}};
_.z.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.z.openEditDialog=function(Y){Y&&Y.dialog&&(this.editDialog=Y.dialog,Y=this.editDialogElement.firstElementChild)&&(Y.focus(),Y.openDialog&&Y.openDialog())};
_.z.computeIsBodyHidden=function(Y,S){return!!Y||S};
_.y6.Object.defineProperties(eQ.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var Y,S;if((Y=this.data)==null?0:(S=Y.pollMetadataIcon)==null?0:S.iconType)return _.u2(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.voteCount)||_.kW("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,zDt))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,A7f))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,UJL))}}});
eQ.prototype.onYtServiceRequestCompleted=eQ.prototype.onYtServiceRequestCompleted;eQ.prototype.onYtServiceRequestSent=eQ.prototype.onYtServiceRequestSent;eQ.prototype.onYtCommentPollRevert=eQ.prototype.onYtCommentPollRevert;eQ.prototype.onYtCommentboxDismiss=eQ.prototype.onYtCommentboxDismiss;eQ.prototype.onYtNavigate=eQ.prototype.onYtNavigate;eQ.prototype.isLoadingChanged=eQ.prototype.isLoadingChanged;eQ.prototype.dataChanged=eQ.prototype.dataChanged;eQ.prototype.contentTextChanged=eQ.prototype.contentTextChanged;
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],eQ.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],eQ.prototype,"rendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],eQ.prototype,"rendererstamperBehavior",void 0);_.Q([_.nc("#contentTextExpander"),_.k("design:type",Object)],eQ.prototype,"expander",void 0);
_.Q([_.nc("#edit-dialog"),_.k("design:type",Element)],eQ.prototype,"editDialogElement",void 0);_.Q([_.X(),_.k("design:type",Object)],eQ.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],eQ.prototype,"hasInlineCommentSection",void 0);_.Q([_.X(),_.k("design:type",Object)],eQ.prototype,"editDialog",void 0);_.Q([_.X(),_.k("design:type",Object)],eQ.prototype,"isLoading",void 0);
_.Q([_.X({computed:"computeIsPollHeaderEnabled(data)"}),_.k("design:type",Boolean)],eQ.prototype,"isPollHeaderEnabled",void 0);_.Q([_.X(),_.k("design:type",Object)],eQ.prototype,"shouldHideAuthor",void 0);_.Q([_.X(),_.k("design:type",Object)],eQ.prototype,"shouldShowVideoTime",void 0);_.Q([_.X(),_.k("design:type",Object)],eQ.prototype,"isInEngagementPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eQ.prototype,"hideBorder",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eQ.prototype,"usesFullLockup",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eQ.prototype,"shouldShowMenuInCompactView",void 0);_.Q([_.d("isInEngagementPanel"),_.k("design:type",Number),_.k("design:paramtypes",[])],eQ.prototype,"postTextMaxLines",null);_.Q([_.d("data.icon.iconType"),_.k("design:type",Object),_.k("design:paramtypes",[])],eQ.prototype,"pollIcon",null);
_.Q([_.zY("data.contentText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eQ.prototype,"contentTextChanged",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eQ.prototype,"dataChanged",null);_.Q([_.zY("isLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eQ.prototype,"isLoadingChanged",null);
_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],eQ.prototype,"onYtNavigate",null);_.Q([_.WZ("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eQ.prototype,"onYtCommentboxDismiss",null);_.Q([_.WZ("yt-comment-poll-revert"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],eQ.prototype,"onYtCommentPollRevert",null);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],eQ.prototype,"onYtServiceRequestSent",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],eQ.prototype,"onYtServiceRequestCompleted",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eQ.prototype,"voteCount",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eQ.prototype,"commentCount",null);_.Q([_.d("data.backstageAttachment"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],eQ.prototype,"hasPoll",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],eQ.prototype,"hasQuiz",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],eQ.prototype,"hasUploadedVideo",null);
eQ=_.Q([_.t({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],eQ);
_.A(eQ,"ytd-backstage-post-renderer",function(){if(egs!==void 0)return egs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return egs=Y},{mode:1});var S5_;var OJ=function(){var Y=_.Z.apply(this,arguments)||this;Y.editDialog=null;Y.showExpandButton=!1;Y.isRichGrid=!1;Y.usesFullLockup=!1;return Y};
_.r(OJ,_.Z);_.z=OJ.prototype;_.z.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"}}}};
_.z.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.z.computeShowExpandButton=function(Y){return this.usesCompactLockup||Y&&Y.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.z.computeUsesCompactLockup=function(Y){return!!Y.condensedContent};
_.z.computeShowFullContentText=function(Y){return!Y};
_.z.onYtNavigate=function(Y){Y=this.get("updateCommentDialogEndpoint",Y.detail.endpoint);this.openEditDialog(Y)};
_.z.onYtCommentboxDismiss=function(){this.editDialog=null};
_.z.openEditDialog=function(Y){Y&&Y.dialog&&(this.editDialog=Y.dialog,Y=this.repostEditDialogEl.firstElementChild)&&(Y.focus(),Y.openDialog&&Y.openDialog())};
_.z.onTap=function(Y){if(this.data){var S=null;this.usesCompactLockup&&!_.iN(_.iM(Y)||[],this.hostElement,["YT-IMG-SHADOW"])?S=this.get("navigationEndpoint",this.data):Y.target===this.moreButtonEl&&(S=this.get("navigationEndpoint",Y.target.data));S&&_.ms(this.hostElement,"yt-navigate",{endpoint:S})}};
OJ.prototype.onYtCommentboxDismiss=OJ.prototype.onYtCommentboxDismiss;OJ.prototype.onYtNavigate=OJ.prototype.onYtNavigate;OJ.prototype.dataChanged=OJ.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],OJ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],OJ.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],OJ.prototype,"editDialog",void 0);_.Q([_.X({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],OJ.prototype,"usesCompactLockup",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],OJ.prototype,"showExpandButton",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],OJ.prototype,"isRichGrid",void 0);
_.Q([_.X({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.k("design:type",Boolean)],OJ.prototype,"showFullContentText",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],OJ.prototype,"usesFullLockup",void 0);_.Q([_.nc("#more"),_.k("design:type",Object)],OJ.prototype,"moreButtonEl",void 0);_.Q([_.nc("#repost-content-text"),_.k("design:type",HTMLElement)],OJ.prototype,"repostContentTextEl",void 0);
_.Q([_.nc("#repost-edit-dialog"),_.k("design:type",HTMLElement)],OJ.prototype,"repostEditDialogEl",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OJ.prototype,"dataChanged",null);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],OJ.prototype,"onYtNavigate",null);
_.Q([_.WZ("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OJ.prototype,"onYtCommentboxDismiss",null);OJ=_.Q([_.t({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],OJ);
_.A(OJ,"ytd-shared-post-renderer",function(){if(S5_!==void 0)return S5_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return S5_=Y},{mode:1});var PhJ;var uHU;var S3=function(){return _.Z.apply(this,arguments)||this};
_.r(S3,_.Z);S3.prototype.attached=function(){var Y=this;this.networkStatusManager||(this.networkStatusManager=new _.kF,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){Y.onlineHandler()}))};
S3.prototype.detached=function(){var Y=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){Y.onlineHandler()}),delete this.networkStatusManager)};
S3.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],S3.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],S3.prototype,"data",void 0);S3=_.Q([_.t({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],S3);
_.A(S3,"ytd-reload-page-button-renderer",function(){if(uHU!==void 0)return uHU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
return uHU=Y},{mode:1});var Wfh={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"},PM=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(PM,_.Z);_.z=PM.prototype;_.z.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.z.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.z.computeHasBodyText=function(Y){return!!Y.bodyText};
_.z.computeButtons=function(Y){var S=[];Y.ctaButton&&S.push(Y.ctaButton);Y.secondaryButton&&S.push(Y.secondaryButton);return S};
_.z.computeRendererStyle=function(Y){return Y.style?Y.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():Y.icon?"":"no-icon"};
_.z.getIconName=function(Y,S){S=S===void 0?!1:S;if(Y===void 0)return"";Y=this.get("icon.iconType",Y);var P;_.f("enable_hlp_client_icon_pick")?P=this.getThemedIcon(Y,S):P=Y;(S=Wfh[P])||(S="yt-icons");return[S,P].join(":")};
_.z.getThemedIcon=function(Y,S){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(Y)?S?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(Y)?S?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":Y};
_.z.isThumbnail=function(Y){return!!Y.thumbnail};
_.z.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.z.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],PM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],PM.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],PM.prototype,"data",void 0);
_.Q([_.X({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],PM.prototype,"rendererStyle",void 0);_.Q([_.X({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.k("design:type",String)],PM.prototype,"iconName",void 0);_.Q([_.X({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],PM.prototype,"thumbnail",void 0);_.Q([_.X({computed:"computeButtons(data)"}),_.k("design:type",Array)],PM.prototype,"buttons",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],PM.prototype,"isDarkTheme",void 0);_.Q([_.X({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],PM.prototype,"hasBodyText",void 0);PM=_.Q([_.t({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],PM);
_.A(PM,"ytd-background-promo-renderer",function(){if(PhJ!==void 0)return PhJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return PhJ=Y},{mode:1});var zVL;var uC=function(){var Y=_.Z.apply(this,arguments)||this;Y.collections=_.f("web_modern_collections_v2");return Y};
_.r(uC,_.Z);_.y6.Object.defineProperties(uC.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u,W,m;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(Y=this.data)==null?void 0:(S=Y.thumbnail)==null?void 0:S.sampledThumbnailColor,vibrantColorPalette:(P=this.data)==null?void 0:(u=P.thumbnail)==null?void 0:u.vibrantColorPalette,darkColorPalette:(W=this.data)==null?void 0:(m=W.thumbnail)==null?void 0:m.darkColorPalette,experimentEnabled:this.collections}}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],uC.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],uC.prototype,"collections",void 0);_.Q([_.d("data","collections"),_.k("design:type",Object),_.k("design:paramtypes",[])],uC.prototype,"collectionStack",null);uC=_.Q([_.t({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],uC);
_.A(uC,"ytd-compact-station-renderer",function(){if(zVL!==void 0)return zVL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return zVL=Y},{mode:1});var mtf;var WM=function(){var Y=_.Z.apply(this,arguments)||this;Y.isRichGrid=!1;return Y};
_.r(WM,_.Z);WM.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],WM.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],WM.prototype,"isRichGrid",void 0);WM=_.Q([_.t({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],WM);
_.A(WM,"ytd-grid-channel-renderer",function(){if(mtf!==void 0)return mtf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return mtf=Y},{mode:1});var nVd;var zw=function(){return _.Z.apply(this,arguments)||this};
_.r(zw,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],zw.prototype,"data",void 0);zw=_.Q([_.t({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],zw);
_.A(zw,"ytd-grid-movie-playlist-renderer",function(){if(nVd!==void 0)return nVd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return nVd=Y},{mode:1});var jnd;var mL=function(){var Y=_.Z.apply(this,arguments)||this;Y.downloadProgress=0;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.modernButtons=_.f("web_modern_buttons");Y.useModernCollectionsV2=_.f("web_modern_collections_v2");return Y};
_.r(mL,_.Z);mL.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
mL.prototype.configureRendererStamper=function(){return{"data.menu":Yw}};
mL.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
mL.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.f("woffle_playlist_renderer_killswitch")){var Y,S=uoa(this.entityInfo,this.transferState,this.downloadProgress,(Y=this.data)==null?void 0:Y.playlistId,this.isOnline);Y=S.viewPlaylistText;var P=S.badges;S=S.thumbnailOverlays;this.isDownloads=!!Y||!!P;this.set("data.viewPlaylistText",Y);P&&P.length>0&&this.set("data.badges",P);S&&S.length>0&&this.set("data.thumbnailOverlays",
S)}};
_.y6.Object.defineProperties(mL.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null?0:Y.menu)}}});
mL.prototype.transferStateChanged=mL.prototype.transferStateChanged;mL.prototype.dataChanged=mL.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],mL.prototype,"ytdLockupBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],mL.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],mL.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X({selector:_.KaY,selectorArgs:["data.playlistId"]}),_.k("design:type",Object)],mL.prototype,"downloadProgress",void 0);_.Q([_.X({selector:_.dT,selectorArgs:["data.playlistId"]}),_.k("design:type",Object)],mL.prototype,"transferState",void 0);_.Q([_.X({selector:TDf,selectorArgs:["data.playlistId"]}),_.k("design:type",Object)],mL.prototype,"entityInfo",void 0);_.Q([_.X({selector:cfh}),_.k("design:type",Boolean)],mL.prototype,"isOnline",void 0);
_.Q([_.X(),_.k("design:type",Object)],mL.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],mL.prototype,"downloadRenderData",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],mL.prototype,"modernButtons",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],mL.prototype,"isDownloads",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],mL.prototype,"useModernCollectionsV2",void 0);
_.Q([_.d("transferState"),_.X({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],mL.prototype,"downloadState",null);_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],mL.prototype,"menuHidden",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mL.prototype,"dataChanged",null);
_.Q([_.cZ("transferState","downloadProgress","isOnline"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mL.prototype,"transferStateChanged",null);mL=_.Q([_.t({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],mL);
_.A(mL,"ytd-grid-playlist-renderer",function(){if(jnd!==void 0)return jnd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return jnd=Y},{mode:1});var JGf;var ni=function(){var Y=_.Z.apply(this,arguments)||this;Y.collections=_.f("web_modern_collections_v2");return Y};
_.r(ni,_.Z);ni.prototype.configureRendererStamper=function(){return{"data.menu":Yw,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.y6.Object.defineProperties(ni.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u,W,m;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(Y=this.data)==null?void 0:(S=Y.thumbnail)==null?void 0:S.sampledThumbnailColor,vibrantColorPalette:(P=this.data)==null?void 0:(u=P.thumbnail)==null?void 0:u.vibrantColorPalette,darkColorPalette:(W=this.data)==null?void 0:(m=W.thumbnail)==null?void 0:m.darkColorPalette,experimentEnabled:this.collections}}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],ni.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],ni.prototype,"ytdLockupBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ni.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],ni.prototype,"collections",void 0);_.Q([_.d("data","collections"),_.k("design:type",Object),_.k("design:paramtypes",[])],ni.prototype,"collectionStack",null);ni=_.Q([_.t({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],ni);
_.A(ni,"ytd-grid-radio-renderer",function(){if(JGf!==void 0)return JGf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return JGf=Y},{mode:1});var BN3;var j3=function(){var Y=_.Z.apply(this,arguments)||this;Y.useModernCollectionsV2=_.f("web_modern_collections_v2");return Y};
_.r(j3,_.Z);j3.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
j3.prototype.computeNavigationEndpoint=function(Y){return dKJ(Y==null?void 0:Y.navigationEndpoint)};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],j3.prototype,"ytdLockupBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],j3.prototype,"data",void 0);_.Q([_.X({computed:"computeNavigationEndpoint(data)"}),_.k("design:type",Object)],j3.prototype,"computedNavigationEndpoint",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],j3.prototype,"useModernCollectionsV2",void 0);j3=_.Q([_.t({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],j3);
_.A(j3,"ytd-grid-show-renderer",function(){if(BN3!==void 0)return BN3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return BN3=Y},{mode:1});var cGU;_.JM=function(Y){this.playerClient=Y};
_.Chs=function(Y,S,P){P=P===void 0?{}:P;return Y.playerClient.setOption("ad",S,P)};
_.JM.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.JM.prototype.executeCommand=function(Y,S){this.getOptions().includes("executeCommand")?_.Chs(this,"executeCommand",{command:Y,layoutId:S}):_.VR("Calling executeCommand when adModule is not loaded")};var BM=function(){return _.Z.apply(this,arguments)||this};
_.r(BM,_.Z);BM.prototype.getLayoutId=function(){var Y=_.tA("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.layoutId:null};
BM.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var Y=_.Q5(),S=this.getLayoutId(),P=this.data.clickthroughEndpoint;Y&&S&&_.f("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?Y.getPlayerPromise().then(function(u){(new _.JM(u)).executeCommand(P,S)}):_.ms(this.hostElement,"yt-navigate",{endpoint:P})}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],BM.prototype,"data",void 0);BM=_.Q([_.t({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],BM);
_.A(BM,"ytd-shopping-companion-item-renderer",function(){if(cGU!==void 0)return cGU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return cGU=Y},{mode:1});var q5s;var cM=function(){var Y=_.Z.apply(this,arguments)||this;Y.isExpandableContent=!1;return Y};
_.r(cM,_.Z);_.y6.Object.defineProperties(cM.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((Y=this.data)==null?void 0:Y.price)||((S=this.data)==null?void 0:(P=S.dealsData)==null?void 0:P.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var Y,S;if((Y=this.data)!=null&&Y.dealsData&&((S=this.data)==null||!S.priceReplacementText)){Y=this.data.dealsData;var P,u,W;return((P=Y.salesData)==null?void 0:P.originalPrice)||((u=Y.priceDropData)==null?void 0:u.referencePrice)||((W=Y.promotionData)==null?void 0:W.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(Y=this.data)==null?void 0:(S=Y.dealsData)==null?void 0:S.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],cM.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],cM.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],cM.prototype,"isExpandableContent",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"showCta",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"ctaText",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"hasPriceTopPosition",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"hasPriceBottomPosition",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"useNewStyle",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"showPriceReplacementText",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"priceValue",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"showDeal",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"showAffiliateDisclaimer",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"useSaleStyle",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"useFromBrandCtaStyle",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"useFromVendorCtaStyle",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cM.prototype,"useShoppingCollectionCtaStyle",null);cM=_.Q([_.t({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],cM);
_.A(cM,"ytd-vertical-product-card-renderer",function(){if(q5s!==void 0)return q5s;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return q5s=Y},{mode:1});var RVh;var Ci=function(){return _.Z.apply(this,arguments)||this};
_.r(Ci,_.Z);Ci.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Ci.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],Ci.prototype,"ytdLockupBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ci.prototype,"data",void 0);Ci=_.Q([_.t({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Ci);
_.A(Ci,"ytd-grid-movie-renderer",function(){if(RVh!==void 0)return RVh;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return RVh=Y},{mode:1});var xtU;var xT=function(){var Y=_.Z.apply(this,arguments)||this;Y.rounded=!0;Y.itemStyle="small-item";return Y};
_.r(xT,_.Z);xT.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var Y,S,P,u,W=(S=_.g((Y=this.data)==null?void 0:Y.buttonCommand,_.$if))==null?void 0:(P=S.item)==null?void 0:(u=P.notificationTextRenderer)==null?void 0:u.successResponseText;W&&_.eVK(this.hostElement,W)}};
_.y6.Object.defineProperties(xT.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:Y.isProductPlaceholder)!==void 0&&((S=this.data)==null?void 0:S.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xT.prototype,"rounded",void 0);_.Q([_.X(),_.k("design:type",Object)],xT.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],xT.prototype,"itemStyle",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],xT.prototype,"hasPrice",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],xT.prototype,"hasPriceReplacementText",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],xT.prototype,"hasAdditionalFeesText",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],xT.prototype,"hasAffiliateDisclaimer",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],xT.prototype,"isProductPlaceholder",null);
_.Q([_.X(),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],xT.prototype,"hideOpenInNewIcon",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],xT.prototype,"ariaLabel",null);xT=_.Q([_.t({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],xT);
_.A(xT,"ytd-merch-shelf-item-renderer",function(){if(xtU!==void 0)return xtU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return xtU=Y},{mode:1});var bHm=_.AI(function(Y){var S=_.Ms();_.Zw(S,function(){return Y.data().rendererContext});
return _.R("button-card-view-model",{el:S,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return Y.data().title},
role:"button"},_.R(_.RF,{model:{}}),_.R("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.R("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.R(_.gw,{cond:function(){return Y.data().image},
then:function(P){return _.R(_.ZZ,{data:P,alt:function(){var u;return(u=Y.data().title)!=null?u:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.R("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return Y.data().title})))},"Ra");_.f("web_button_view_model_wcw_registration_killswitch")||_.AL(bHm,"button-card-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){Y=_.tI(Y,{className:void 0});var S=Y.data;Y=Y.className;var P=_.fJ(function(){return S().onTapCommand},void 0,"NprDr");
return _.R("ytd-shopping-item-card",{class:_.Si("ytdShoppingItemCardHost",Y)},_.R(_.CR,{command:P,className:"ytdShoppingItemCardHostLink"},_.R("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.R(_.rv,{data:function(){return S().thumbnailViewModel}},{thumbnailViewModel:function(u){return _.R(_.l7,{data:u.data,
aspectRatio:3})}})),_.R("div",null,_.R("p",{class:"ytdShoppingItemCardHostItemTitle"},_.R(_.qw,{text:function(){return S().itemTitle}})),_.R("p",{class:"ytdShoppingItemCardHostPrice"},_.R(_.qw,{text:function(){return S().priceOrStatus}})))))},"Sa"),"ytd-shopping-item-card",{props:{data:_.wm,
className:_.wm}});var eF=null,OH9={};var PQ1="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(" "),bC={},uwh=(bC.FEwhat_to_watch="home",bC.FEhashtag="hashtag",bC.FEtrending="trending",bC.FEhistory="history",bC.SPunlimited="premium",bC.FEmemberships_and_purchases="paid_memberships",bC.SPredeem_code="redeem",bC.SPverify_location="locate",bC.SPminor_moment="minor_moment",
bC.FEmini_app_container="mini_app",bC.FEnews_destination="news",bC.SPopen_in_app="open_in_app",bC.FEexplore="explore",bC.FEsubscriptions="subscriptions",bC.FEsfv_audio_pivot="sfv_audio_pivot",bC.FEplaylist_aggregation="playlist_aggregation",bC);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");_.Cb("init");var JUh=_.EP({badgeViewModel:Szh}),mO8=function(){},TNs=_.WX(CQh),KfU=_.AI(function(Y){var S=_.fJ(function(){var P=Y.data().entityId;
return P?P.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"oz73f");
return _.R("ytm-shorts-lockup-view-model-v2",{class:_.Si("shortsLockupViewModelHost",Y.className)},_.R(_.ou_,{contentId:S,aspectRatio:function(){var P;if(((P=Y.aspectRatio)==null?void 0:P.call(Y))===1)return 1;var u;return((u=Y.aspectRatio)==null?void 0:u.call(Y))===2?2:4}},function(){return _.R(TNs,Object.assign({},Y))}))},"Ta");
_.Sr(CQh);_.Sr(jwX);_.Sr(cUJ);_.Sr(q3a);_.Sr(B_h);_.AL(KfU,"ytm-shorts-lockup-view-model-v2",{props:{data:_.tL,inlineMetadata:_.tL,aspectRatio:_.tL,scrimStyle:_.tL,className:_.tL,useDefaultStyle:_.tL}});var EV3=16/9*210,Tw=function(){var Y=_.Z.apply(this,arguments)||this;Y.isExpandableContent=!1;Y.hideShelfHeader=!1;Y.engagementPanel=!1;Y.buttonClasses=["arrow"];Y.isSearch=!1;Y.disableScrollEventListener=!1;Y.containsLockup=!1;Y.overrideArrowPositionForProductCard=!1;Y.overrideArrowPositionForShoppingItemCard=!1;Y.overrideArrowPositionForReelItems=!1;Y.overrideArrowPositionForGridMovie=!1;Y.overrideArrowPositionToCenter=!1;Y.isSearchPostShelf=!1;Y.overrideArrowPositionForMixedShelf=!1;Y.overrideArrowPositionForMixedShelfShortsOnly=
!1;Y.hasBigThumbsReelItems=!1;Y.shouldUseMixedListHeight=!1;Y.shouldUseShortsListHeight=!1;Y.gridVideoWidth=0;Y.isSearchVodShelf=!1;Y.disableWheelScroll=!1;Y.sizing="COMPACT";Y.shortsLockupAspectRatio=0;return Y};
_.r(Tw,_.Z);_.z=Tw.prototype;
_.z.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]]"}}}}};
_.z.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.f("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.z.computeInitialCountNumber=function(Y){if(!Y)return 6;var S=Y.items.some(function(m){return!!m.topicRecommendationsChipRenderer}),P=Y.items.some(function(m){return!!m.displayAdRenderer}),u=this.computeShouldListItemsHaveEqualHeight(Y),W=Y.items.some(function(m){return!!m.gridPlaylistRenderer});
Y=Y.items.some(function(m){return!!m.shoppingItemCardViewModel});
return S?9:P?8:W||u?10:Y?7:6};
_.z.computeContainsPost=function(Y){return!!Y&&!!Y.items&&Y.items.some(function(S){return!!S.postRenderer})};
_.z.computeContainsLockup=function(){if(_.f("web_horizontal_list_lockup_arrow_killswitch"))return!1;var Y,S;return(Y=this.data)==null?void 0:(S=Y.items)==null?void 0:S.some(function(P){return!!P.lockupViewModel})};
_.z.maybeUpdateLockupAspectRatio=function(){var Y,S;if(this.computeContainsLockup()&&((Y=this.data)==null?0:(S=Y.items)==null?0:S.length)){var P;Y=uHh((P=this.data.items[0].lockupViewModel)==null?void 0:P.contentType,this.data.force16By9ThumbnailAspectRatio);P=XDU(Y);P=this.computeLockupWidth()/P;_.PZ(this.hostElement,{"--yt-horizontal-list-content-height":P+"px"})}};
_.z.computeOverrideArrowPositionForProductCard=function(Y){if(this.isExpandableContent)return!1;var S;return!!(Y==null?0:(S=Y.items)==null?0:S.some(function(P){return!!P.verticalProductCardRenderer}))};
_.z.computeOverrideArrowPositionForShoppingItemCard=function(Y){var S;return!!(Y==null?0:(S=Y.items)==null?0:S.some(function(P){return!!P.shoppingItemCardViewModel}))};
_.z.computeOverrideArrowPositionForReelItemRenderer=function(Y){return this.containsReelItemRenderer(Y)};
_.z.computeHasBigThumbsReelItems=function(Y,S){return Y&&this.containsReelItemRenderer(S)};
_.z.computeShouldListItemsHaveEqualHeight=function(Y){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(Y==null?void 0:Y.itemSizeConstraint)};
_.z.computeShouldListItemsHaveShortsHeight=function(Y){return this.computeShouldListItemsHaveEqualHeight(Y)&&!this.containsGridVideoRenderer(Y)};
_.z.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.z.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.z.containsReelItemRenderer=function(Y){var S;return!!(Y==null?0:(S=Y.items)==null?0:S.some(function(P){return!(!P.reelItemRenderer&&!P.shortsLockupViewModel)}))};
_.z.containsGridVideoRenderer=function(Y){var S;return!!(Y==null?0:(S=Y.items)==null?0:S.some(function(P){return!!P.gridVideoRenderer||!!P.lockupViewModel}))};
_.z.computeContainsGridMovieRenderer=function(Y){var S;return!!(Y==null?0:(S=Y.items)==null?0:S.some(function(P){return!!P.gridMovieRenderer}))};
_.z.computeOverrideArrowPositionToCenter=function(Y){return this.computeIsSearchPostShelf(Y)};
_.z.computeIsSearchPostShelf=function(Y){var S;return!!(Y==null?0:(S=Y.items)==null?0:S.some(function(P){var u,W;return((W=(u=P.postRenderer)==null?void 0:u.surface)!=null?W:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.z.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(Y){var S;return!!(Y==null?0:(S=Y.items)==null?0:S.some(function(P){var u,W,m;return((m=(u=P.backgroundPromoRenderer)==null?void 0:(W=u.style)==null?void 0:W.value)!=null?m:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.z.computeIsSearchVodShelf=function(Y,S){return Y&&this.containsGridVideoRenderer(S)};
_.z.computeDisableWheelScroll=function(Y,S){return this.computeIsSearchVodShelf(Y,S)};
_.z.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.z.computeShortsLockupAspectRatio=function(Y){return Y&&_.f("web_shorts_2_by_3_lockups_no_search")&&!_.f("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.z.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.PZ(this.hostElement,{"--ytd-reel-item-thumbnail-height":EV3+"px"})};
Tw.prototype.dataChanged=Tw.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.kR.YtdHorizontalListBehavior),_.k("design:type",Object)],Tw.prototype,"ytdHorizontalListBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Tw.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],Tw.prototype,"isExpandableContent",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"hideShelfHeader",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"engagementPanel",void 0);_.Q([_.X(),_.k("design:type",Array)],Tw.prototype,"buttonClasses",void 0);_.Q([_.X(),_.k("design:type",Object)],Tw.prototype,"isSearch",void 0);
_.Q([_.X(),_.k("design:type",Object)],Tw.prototype,"disableScrollEventListener",void 0);_.Q([_.X({computed:"computeInitialCountNumber(data)"}),_.k("design:type",Number)],Tw.prototype,"initialCount",void 0);_.Q([_.X({computed:"computeContainsPost(data)"}),_.k("design:type",Boolean)],Tw.prototype,"supportComponentResize",void 0);_.Q([_.X({computed:"computeContainsPost(data)"}),_.k("design:type",Boolean)],Tw.prototype,"containsPost",void 0);
_.Q([_.X({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"containsLockup",void 0);_.Q([_.X({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Tw.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.Q([_.X({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"overrideArrowPositionForProductCard",void 0);_.Q([_.X({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.Q([_.X({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"overrideArrowPositionForReelItems",void 0);_.Q([_.X({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"overrideArrowPositionForGridMovie",void 0);
_.Q([_.X({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"overrideArrowPositionToCenter",void 0);_.Q([_.X({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"isSearchPostShelf",void 0);_.Q([_.X({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.Q([_.X({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.Q([_.X({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"hasBigThumbsReelItems",void 0);
_.Q([_.X({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"shouldUseMixedListHeight",void 0);_.Q([_.X({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"shouldUseShortsListHeight",void 0);_.Q([_.X({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"gridVideoWidth",void 0);
_.Q([_.X({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"isSearchVodShelf",void 0);_.Q([_.X({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.k("design:type",Object)],Tw.prototype,"disableWheelScroll",void 0);_.Q([_.X({computed:"computeSizing(isSearch)"}),_.k("design:type",Object)],Tw.prototype,"sizing",void 0);
_.Q([_.X({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.k("design:type",Object)],Tw.prototype,"shortsLockupAspectRatio",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tw.prototype,"dataChanged",null);
_.A(Tw,"yt-horizontal-list-renderer",function(){if(bgL===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);bgL=Y}Y=bgL;return Y},{mode:1});var fnJ;var gVi=[10,12,14,16,18,20,24,28,32,36],$tU=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Ki=function(){var Y=_.Z.apply(this,arguments)||this;Y.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";Y.hideOverflow=!1;Y.useRoboto=!1;Y.fontClass="";Y.overflown=!1;Y.actionMap={"yt-window-resized":"resize"};return Y};
_.r(Ki,_.Z);_.z=Ki.prototype;
_.z.attached=function(){var Y=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.ky(this,function(){Y.resize()});
if(!_.nj){var S,P,u;(S=document)==null||(P=S.fonts)==null||(u=P.ready)==null||u.then(function(){Y.resize()})}};
_.z.dataChanged=function(){this.resize()};
_.z.guideIsExpandedChanged=function(){this.resize()};
_.z.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var Y=this.getMaxNumLines(),S=this.getMinFont(),P=this.getMaxFont(),u=this.useRoboto?gVi:$tU;for(u=u.filter(function(m){return m<=P&&m>=S});u.length>1;){var W=Math.floor(u.length/2);
this.updateFontSize(u[W]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=Y)u=u.slice(W,u.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>Y)u=u.slice(0,W);else break}this.updateFontSize(u[u.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(Y)}};
_.z.handleOverflow=function(Y){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>Y&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",Y.toString()))};
_.z.updateFontSize=function(Y){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+Y;this.textNode.classList.add(this.fontClass)};
_.z.getMaxFont=function(){var Y=this.useRoboto?gVi:$tU;Y=Y[Y.length-1];return this.maxFontSize&&this.maxFontSize<=Y?this.maxFontSize:Y};
_.z.getMinFont=function(){var Y=(this.useRoboto?gVi:$tU)[0];return this.minFontSize&&this.minFontSize>=Y?this.minFontSize:Y};
_.z.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.z.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.z.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Ma(this.text).split("\n").length-1:Infinity};
_.z.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("Hh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Ki.prototype.guideIsExpandedChanged=Ki.prototype.guideIsExpandedChanged;Ki.prototype.dataChanged=Ki.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Ki.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Ki.prototype,"actionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ki.prototype,"text",void 0);
_.Q([_.X(),_.k("design:type",String)],Ki.prototype,"fontFamily",void 0);_.Q([_.X(),_.k("design:type",Number)],Ki.prototype,"maxWidth",void 0);_.Q([_.X(),_.k("design:type",Number)],Ki.prototype,"maxHeight",void 0);_.Q([_.X(),_.k("design:type",Number)],Ki.prototype,"maxFontSize",void 0);_.Q([_.X(),_.k("design:type",Number)],Ki.prototype,"minFontSize",void 0);_.Q([_.X(),_.k("design:type",Number)],Ki.prototype,"maxLines",void 0);_.Q([_.X(),_.k("design:type",Object)],Ki.prototype,"hideOverflow",void 0);
_.Q([_.X({selector:_.zSY}),_.k("design:type",Boolean)],Ki.prototype,"guideIsExpanded",void 0);_.Q([_.nc("#container"),_.k("design:type",HTMLElement)],Ki.prototype,"containerNode",void 0);_.Q([_.nc("#text"),_.k("design:type",HTMLElement)],Ki.prototype,"textNode",void 0);_.Q([_.cZ("text"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ki.prototype,"dataChanged",null);
_.Q([_.cZ("guideIsExpanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ki.prototype,"guideIsExpandedChanged",null);Ki=_.Q([_.t({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Ki);
_.A(Ki,"yt-dynamic-sizing-formatted-string",function(){if(fnJ!==void 0)return fnJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return fnJ=Y},{mode:1});var rG_;_.GQ3=function(Y){_.YY.call(this,Y)};
_.r(_.GQ3,_.YY);var hVs=function(Y){_.YY.call(this,Y)};
_.r(hVs,_.GQ3);var Ei=function(){return _.Z.apply(this,arguments)||this};
_.r(Ei,_.Z);Ei.prototype.onTapSuspendedChannel=function(){var Y;if((Y=this.data)!=null&&Y.serviceEndpoint){var S,P;(Y=(P=_.g((S=this.data)==null?void 0:S.serviceEndpoint,_.tp))==null?void 0:P.url)?_.aK(Y,void 0,void 0,window.top):(S=new hVs("Did not handle suspended account tap. No appealUrl."),_.p_(S))}else S=new hVs("Did not handle suspended account tap. No serviceEndpoint."),_.p_(S)};
Ei.prototype.onTap=function(){var Y=this,S=_.BF(),P,u=(P=_.JL(S,{veType:7116}))!=null?P:void 0;_.wL(S,{visualElement:u});_.DV();this.saveRoleText();var W;if((W=this.data)==null?0:W.youtubeSuspended)this.onTapSuspendedChannel();else{var m=!1,J,c;(S=(c=_.g((J=this.data)==null?void 0:J.serviceEndpoint,_.d$h))==null?void 0:c.supportedTokens)&&S.forEach(function(C){if(C.accountSigninToken)if(m=!0,Y.onAccountItemTap)Y.onAccountItemTap(C.accountSigninToken.signinUrl);else _.aK(C.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!m){if(J=this.get("serviceEndpoint",this.data))m=!0,this.ytComponentBehavior.resolveCommand(J);m||_.F_(new hVs("Did not handle account switch tap. No token."))}}};
Ei.prototype.saveRoleText=function(){if(this.data){var Y=this.data,S=Y.channelDelegationRole;if(S){var P,u=(P=_.g(Y==null?void 0:Y.serviceEndpoint,_.d$h))==null?void 0:P.supportedTokens;if(!u){var W,m,J,c;u=(W=_.g(Y==null?void 0:Y.serviceEndpoint,_.fP))==null?void 0:(m=W.popup)==null?void 0:(J=m.confirmDialogRenderer)==null?void 0:(c=J.confirmButton)==null?void 0:c.buttonRenderer;var C;u=(C=_.g(u==null?void 0:u.command,_.qT))==null?void 0:C.commands;if(!u)return;var x;u=(x=_.g(u[1],_.d$h))==null?
void 0:x.supportedTokens}if(u){C=void 0;x=_.n(u);for(u=x.next();!u.done;u=x.next())if(u=u.value,u.datasyncIdToken){C=u.datasyncIdToken.datasyncIdToken;break}if(C){var b;a:{if(_.Q19()&&(x=_.S2J(C+"::pom"))){x=new zS(x);break a}x=void 0}(b=x)==null||b.set("role_text",S);if((WyX?WyX:window.location).href.indexOf("studio")!==-1&&(b=kVE())){x=b.src?(new URL(b.src)).origin:"*";var T;(T=b.contentWindow)==null||T.postMessage({action:"save_pom_role",datasyncId:C,roleText:S},x)}}}}}};
_.y6.Object.defineProperties(Ei.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.accountPhoto)==null?void 0:S.thumbnails;return P&&P.length>0&&(P[0].height===36||P[0].height===48)?P[0].height:40}}});
Ei.prototype.onTap=Ei.prototype.onTap;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Ei.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ei.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!1}),_.k("design:type",Function)],Ei.prototype,"onAccountItemTap",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ei.prototype,"enableRingForActiveAccount",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],Ei.prototype,"thumbnailSize",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ei.prototype,"onTap",null);Ei=_.Q([_.t({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Ei);
_.A(Ei,"ytd-account-item-renderer",function(){if(rG_!==void 0)return rG_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return rG_=Y},{mode:1});var vV_;var fi=function(){return _.Z.apply(this,arguments)||this};
_.r(fi,_.Z);fi.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.E().resolve(_.uY).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],fi.prototype,"data",void 0);fi=_.Q([_.t({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],fi);
_.A(fi,"ytd-identity-chip-renderer",function(){if(vV_!==void 0)return vV_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return vV_=Y},{mode:1});var Dts;var Ins;var anL;var Lff;var gb=function(){var Y=_.Z.apply(this,arguments)||this;Y.richItemMinWidth=_.z_("wn_grid_min_item_width",310);Y.isShorts=!1;Y.isWatchNext=!1;Y.isExploreHub=!1;return Y};
_.r(gb,_.Z);_.y6.Object.defineProperties(gb.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var Y=[],S=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.PZ(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var P;if(((P=this.data)==null?0:P.rows)&&S)for(S*=this.data.rows,P=0;P<S;P++)Y.push({});return Y}}});
_.Q([_.p(_.Gn),_.k("design:type",Object)],gb.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],gb.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.wT,value:3}),_.k("design:type",Number)],gb.prototype,"itemsPerRow",void 0);_.Q([_.X({selector:_.Wa9,value:6}),_.k("design:type",Number)],gb.prototype,"slimItemsPerRow",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Number)],gb.prototype,"richItemMinWidth",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Boolean)],gb.prototype,"miniMode",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],gb.prototype,"isShorts",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],gb.prototype,"isWatchNext",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],gb.prototype,"isExploreHub",void 0);
_.Q([_.d("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.k("design:type",Array),_.k("design:paramtypes",[])],gb.prototype,"cardItems",null);gb=_.Q([_.t({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],gb);
_.wVt=_.eD()(gb,"ytd-ghost-grid-renderer",function(){if(Lff===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);Lff=Y}Y=Lff;return Y},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.AL(_.AI(function(Y){var S=_.tI(Y,{numberOfComments:3}).numberOfComments,P=_.tI(Y,{isInitialLoad:!1}).isInitialLoad,u=_.GI(_.Fp),W=function(){return Math.min(Number(S==null?void 0:S())||20,20)};
return _.R("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.R(_.gw,{cond:function(){return(u==null?void 0:u())&&(P==null?void 0:P())},
then:function(){return _.R("div",{class:"ytGhostCommentsComments"},_.R("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.R("div",{class:_.Si("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.R("div",{class:_.Si("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.R("div",{class:"ytGhostCommentsGhostCard"},_.R("div",{class:"ytGhostCommentsAvatar"},_.R("div",{class:"ytGhostCommentsCircle"})),_.R("div",{class:"ytGhostCommentsComments"},_.R("div",{class:"ytGhostCommentsMeta"},
_.R("div",{class:_.Si("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.R("div",{class:_.Si("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.R("div",{class:"ytGhostCommentsComments"},_.R(_.$Z,{each:function(){return Array((W==null?void 0:W())||3)}},function(){return _.R("div",{class:"ytGhostCommentsGhostCard"},_.R("div",{class:"ytGhostCommentsAvatar"},_.R("div",{class:"ytGhostCommentsCircle"})),_.R("div",{class:"ytGhostCommentsHost"},_.R("div",{class:"ytGhostCommentsMeta"},
_.R("div",{class:_.Si("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.R("div",{class:_.Si("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.R("div",{class:_.Si("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.R("div",{class:"ytGhostCommentsGhostLikeDislike"},_.R("div",{class:_.Si("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.R("div",{class:_.Si("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"Ua"),"yt-ghost-comments",{props:{numberOfComments:_.wm,
isInitialLoad:_.wm}});_.$s("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var $T=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOverridable=!1;Y.spinnerActive=!1;Y.showButton=!1;Y.isCommentsSection=!1;Y.isShortsGrid=!1;Y.isShortsPage=!1;Y.isWatchPage=!1;Y.ghostCardExperimentEnabled=_.f("show_ghost_comments_shorts_watch")||_.f("show_ghost_comments_desktop_watch");Y.originalShowButton=!1;Y.endOfList=!1;return Y};
_.r($T,_.Z);_.z=$T.prototype;_.z.resetIntersectionObserver=function(){var Y;(Y=this.observer)==null||Y.disconnect();this.observer=void 0};
_.z.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var Y,S;((Y=this.data)==null?void 0:Y.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((S=this.data)==null?0:S.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.z.initializeIntersectionObserver=function(){var Y=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(S){S=_.n(S);for(var P=S.next();!P.done;P=S.next())P.value.isIntersecting&&(Y.triggerContinuation(),Y.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.z.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostEngagementPanelRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.z.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var Y;((Y=this.data)==null?0:Y.continuationEndpoint)&&(Y=_.g(this.data.continuationEndpoint,_.vX))&&this.ytdReduxBehavior.dispatch(_.WT({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:Y}}))};
_.z.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.z.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.z.onServiceRequestCompleted=function(Y,S){if(!_.f("kevlar_hide_spinner_on_empty_continuation_killswitch")){var P;(P=S.actions)!=null&&P.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.z.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.z.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.z.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.z.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var Y=3;if(this.isShortsPage){var S,P,u;Y=Math.floor(((((S=this.hostElement)==null?void 0:(P=S.parentElement)==null?void 0:(u=P.parentElement)==null?void 0:u.scrollHeight)||108)-108)/108);Y=this.isInitialLoad?Math.max(Y,3):3}S=[].concat(_.cz(this.hostElement.querySelectorAll("yt-ghost-comments")));S=_.n(S);for(P=S.next();!P.done;P=S.next())P=P.value,P.numberOfComments=Y,P.isInitialLoad=this.isInitialLoad}};
_.z.detached=function(){this.resetIntersectionObserver()};
_.y6.Object.defineProperties($T.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.f("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.f("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
$T.prototype.numberOfGhostCommentsChanged=$T.prototype.numberOfGhostCommentsChanged;$T.prototype.continuationTriggerOffsetChanged=$T.prototype.continuationTriggerOffsetChanged;$T.prototype.showButtonChanged=$T.prototype.showButtonChanged;$T.prototype.onYtServiceRequestCompletedForButtonRenderer=$T.prototype.onYtServiceRequestCompletedForButtonRenderer;$T.prototype.onServiceRequestCompleted=$T.prototype.onServiceRequestCompleted;$T.prototype.onYtServiceRequestSentForButtonRenderer=$T.prototype.onYtServiceRequestSentForButtonRenderer;
$T.prototype.observeData=$T.prototype.observeData;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.vU.YtVisibilityBehavior),_.k("design:type",Object)],$T.prototype,"ytVisibilityBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],$T.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.Gn),_.k("design:type",Object)],$T.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$T.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],$T.prototype,"isOverridable",void 0);_.Q([_.X(),_.k("design:type",Object)],$T.prototype,"spinnerActive",void 0);_.Q([_.X(),_.k("design:type",Object)],$T.prototype,"showButton",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$T.prototype,"isCommentsSection",void 0);
_.Q([_.X(),_.k("design:type",Object)],$T.prototype,"isShortsGrid",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.npY}),_.k("design:type",Object)],$T.prototype,"isShortsPage",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.Fp}),_.k("design:type",Object)],$T.prototype,"isWatchPage",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$T.prototype,"ghostCardExperimentEnabled",void 0);_.Q([_.X(),_.k("design:type",Number)],$T.prototype,"continuationTriggerOffset",void 0);
_.Q([_.X(),_.k("design:type",Object)],$T.prototype,"endOfList",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],$T.prototype,"isInitialLoad",void 0);_.Q([_.nc("ytd-button-renderer"),_.k("design:type",_.ls)],$T.prototype,"buttonRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],$T.prototype,"buttonOverrides",void 0);
_.Q([_.X(),_.d("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.k("design:type",Object),_.k("design:paramtypes",[])],$T.prototype,"isShortsCommentsSection",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$T.prototype,"observeData",null);
_.Q([_.WZ("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$T.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],$T.prototype,"onServiceRequestCompleted",null);
_.Q([_.WZ("yt-service-request-completed-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$T.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.Q([_.cZ("showButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$T.prototype,"showButtonChanged",null);
_.Q([_.cZ("continuationTriggerOffset"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$T.prototype,"continuationTriggerOffsetChanged",null);_.Q([_.zY("isInitialLoad","isShortsPage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$T.prototype,"numberOfGhostCommentsChanged",null);$T=_.Q([_.t({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],$T);
_.A($T,"ytd-continuation-item-renderer",function(){if(anL!==void 0)return anL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return anL=Y},{mode:1});var pVU;var rb=function(){var Y=_.Z.apply(this,arguments)||this;Y.downloadProgress=0;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.downloadState="DOWNLOAD_STATE_UNKNOWN";Y.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";Y.offlineVideoPolicyExpirationTimestamp=0;Y.downloadedVideoPlaybackPosition=0;return Y};
_.r(rb,_.Z);rb.prototype.dataChanged=function(){var Y;this.videoData=_.g((Y=this.data)==null?void 0:Y.renderer,Bpu);this.transferStateChanged()};
rb.prototype.downloadProgressChanged=function(){if(this.entityInfo){var Y=Object.assign({},this.videoData),S=WDh(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),P=S.publishedTimeText,u=S.badges;Y.shortViewCountText=S.shortViewCountText;Y.publishedTimeText=P;Y.badges=u;this.set("videoData",Y)}};
rb.prototype.transferStateChanged=function(){if(this.entityInfo){var Y=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",S=_.fA(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!EC(this.entityInfo.policyEntity),P=Object.assign({},this.videoData),u=WDh(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),W=u.publishedTimeText,m=u.badges;P.shortViewCountText=
u.shortViewCountText;P.publishedTimeText=W;P.badges=m;P.isDisabled=S;P.isWatched=this.downloadedVideoPlaybackPosition>0;P.navigationEndpoint=S?void 0:FQJ(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var J;Y&&((J=this.videoData)==null?0:J.videoId)&&!_.f("dl_resume_click_killswitch")&&(P.isDisabled=!1,P.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});P.thumbnailOverlays=PAh(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",P)}};
rb.prototype.transferStateChanged=rb.prototype.transferStateChanged;rb.prototype.downloadProgressChanged=rb.prototype.downloadProgressChanged;rb.prototype.dataChanged=rb.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],rb.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],rb.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],rb.prototype,"videoData",void 0);_.Q([_.X({selector:lI,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],rb.prototype,"downloadProgress",void 0);_.Q([_.X(),_.k("design:type",Number)],rb.prototype,"relativeDateReference",void 0);_.Q([_.X({selector:_.sC,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],rb.prototype,"transferState",void 0);
_.Q([_.X({selector:D$1,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],rb.prototype,"downloadState",void 0);_.Q([_.X({selector:qw8,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],rb.prototype,"offlinePolicyAction",void 0);_.Q([_.X({selector:RSh,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],rb.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.Q([_.X({selector:Xp,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],rb.prototype,"downloadedVideoPlaybackPosition",void 0);_.Q([_.X({selector:bP$,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],rb.prototype,"entityInfo",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],rb.prototype,"isDownloading",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rb.prototype,"dataChanged",null);
_.Q([_.cZ("downloadProgress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rb.prototype,"downloadProgressChanged",null);_.Q([_.cZ("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rb.prototype,"transferStateChanged",null);
rb=_.Q([_.t({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],rb);
_.A(rb,"ytd-downloaded-video-grid-video-renderer",function(){if(pVU!==void 0)return pVU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return pVU=Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var Ffs;var Gw=function(){};
Gw.prototype.resolve=function(Y,S){var P=this;return _.B(function(u){return _.q(u,P.resolveCommand(Y,S),0)})};var sns,hM;sns=RY9(function(Y){return Y.targetId},{shouldPersist:!1});
hM=sns.updateData;_.dts=sns.useUpdatableData;var lnu,XVs;lnu=RY9(function(Y){return Y.targetId});
XVs=lnu.updateData;_.ZH3=lnu.useUpdatableData;var iHm=RHu.bind(null,hM),oV_=RHu.bind(null,XVs);(function(Y,S,P){var u=_.g(P==null?void 0:P.updatedRenderer,_.irS);return u?Y({targetId:S},function(){return u}):!1}).bind(null,hM);var vM=function(){};
_.r(vM,Gw);vM.prototype.resolveCommand=function(Y){var S;return _.B(function(P){S=_.g(Y,_.Ie9);if(!S)return P.return();iHm(S.targetId,S);_.Yt(P)})};var Dg=function(){var Y=_.JI.apply(this,arguments)||this;Y.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return Y};
_.r(Dg,_.JI);_.z=Dg.prototype;_.z.configureContinuationPathMap=function(){return{}};
_.z.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.z.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.z.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.z.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.z.handleAppendContinuationItemsAction=function(Y){var S=_.g(Y,_.flJ);if(this.data&&this.data.targetId&&S&&this.continuationPathMap&&S.targetId===this.data.targetId){var P=EJh(Y);if((Y=P&&this.continuationPathMap[P])&&P){P=this.get(Y,this.data);var u;a:{for(u=0;u<P.length;u++){var W=P[u],m=void 0,J=!!_.g((m=_.g(W,u$d))==null?void 0:m.content,_.m7s);if(_.g(W,_.Ws)||J)break a}u=P.length}Y="data."+Y;S.continuationItems?u===P.length-1?(this.pop(Y),this.push.apply(this,[Y].concat(_.cz(S.continuationItems)))):
u===P.length?this.push.apply(this,[Y].concat(_.cz(S.continuationItems))):this.splice.apply(this,[Y,u,1].concat(_.cz(S.continuationItems))):this.splice(Y,u,1);(_.f("web_enable_voting_animation")||_.f("enable_music_web_cairo_voting_animation"))&&_.ms(this.hostElement,"yt-append-continuation-items-action-finished");_.ms(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.sf(new _.$2("append continuation path does not exist",P))}};
_.z.handleReloadContinuationItemsCommand=function(Y){var S=_.g(Y,_.Ie9);if(this.data&&S){if(_.f("web_explore_hub")||_.f("web_client_explore_hub")||_.f("web_explore_hub_on_hover")||_.f("web_client_explore_hub_on_hover"))try{_.E().resolve(vM).resolveCommand(Y)}catch(m){}if(this.data.targetId&&this.continuationPathMap&&S.targetId===this.data.targetId&&(!_.f("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||S.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var P,u=(P=
S.slot)==null?void 0:P.replace("RELOAD_CONTINUATION_SLOT_","");P=(Y=EJh(Y)+"-"+(u==null?void 0:u.toLowerCase()))&&this.continuationPathMap[Y];if(!P||!Y||!u)_.sf(new _.$2("reload continuation path does not exist",Y));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(S)){if(S.replaceWithFirstItem){var W;this.set("data."+P,((W=S.continuationItems)==null?0:W.length)?S.continuationItems[0]:{})}else this.set("data."+P,S.continuationItems?S.continuationItems:
[]);this.continuationIsReloading=!1;_.ms(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.z.handleShowReloadUiCommand=function(Y){Y=_.g(Y,sL3);var S;((S=this.data)==null?0:S.targetId)&&(Y==null?0:Y.targetId)&&Y.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Dg.prototype.observeData=Dg.prototype.observeData;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Dg.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Dg.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Dg.prototype,"data",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Dg.prototype,"continuationIsReloading",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dg.prototype,"observeData",null);Dg=_.Q([_.BZ()],Dg);_.I3=[_.rm.YtComponentBehavior,_.tD.YtActionHandlerBehavior,Dg.prototype];_.a3={};_.a3.YtNextContinuationBehavior=[_.l4.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",_.up(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.up(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(Y,S){Y.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,S,{}):(Y={locationRetrieved:function(P){this.makeNextContinuationRequest_(P,S,{})}.bind(this)},_.ms(this.hostElement,"yt-retrieve-location",Y))},
makeNextContinuationRequest_:function(Y,S,P){_.sV("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();Y=S(Y);var u;this.canUseContextualNetworkManager_()&&(u=this.getNetworkManager());u||(u=_.E().resolve(_.ER));S=_.pR.instance;if(_.X3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&S){u=_.HT([Y.startsWith("/")?Y.substr(1):Y]);var W,m;P=_.h5(S,{},u,P==null?void 0:(W=P.context)==null?void 0:(m=W.clickTracking)==null?void 0:m.clickTrackingParams).then(function(J){return{response:J}})}else P=
this.nextContinuation.usePost?u.postData(Y,P):u.fetchData(Y);
P.then(this.updateNextContinuationData_.bind(this,Y));this.pendingContinuationRequest_=P;this.startListeningForNavigate_()},
updateNextContinuationData_:function(Y,S){var P=this;_.sV("ncl");this.pendingContinuationRequest_=void 0;if(S){var u={};this.nextContinuation&&(u=this.nextContinuation);if(S.response&&S.response.continuationContents&&S.response.continuationContents[u.continuationType]){Y=S.response.continuationContents[u.continuationType];var W=u.header||"data.header",m=Y[u.responseHeaderKey||"header"];m&&this.set(W,m);W=u.contentsArray||"data.contents";m=this.getContents_(Y,u.responseContentsKey||"contents")||[];
this.pathExists_(W)?(m.unshift(W),this.push.apply(this,m)):this.set(W,m);m&&(xOu(_.BF(),S.response,this.hostElement,function(J){_.nb(P.hostElement,"yt-store-grafted-ve-action",[J])}),_.ms(this.hostElement,"yt-next-continuation-data-updated",{continuationData:S,
page:this,contentsArray:W}));this.set(u.continuationsArray||"data.continuations",Y[u.responseContinuationsKey||"continuations"]||[])}else S.reload?_.sf(new _.$2("Reloading from continuation is unsupported")):S.responseContext&&S.responseContext.errors||(delete S.xsrf_token,delete S.timing,delete S.endpoint,delete S.csn,S.responseContext&&delete S.responseContext.serviceTrackingParams,W={request:_.y4(Y,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(S).sort()},S.response&&(W.responseContentKeys=
Object.keys(S.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(W.continuationType=this.nextContinuation.continuationType.substr(0,256)),S=new _.$2("Malformed continuation",W),Y.indexOf("/comment_service_ajax")==0?_.sf(S):_.p_(S)),this.set(u.continuationsArray||"data.continuations",[])}else _.F_(new _.$2("Missing continuation response",Y))},
getContents_:function(Y,S){S=S.split(".");return _.RY.getValueByKeys(Y,S)},
pathExists_:function(Y){var S=this;Y=Y.toString().split(".");for(var P=0;P<Y.length;P++)if(S=S[Y[P]],S===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var tJh;var AGi;var Li=function(){var Y=_.Z.apply(this,arguments)||this;Y.triggered_=!1;return Y};
_.r(Li,_.Z);_.z=Li.prototype;_.z.attached=function(){this.maybeTriggerAutoload()};
_.z.detached=function(){this.hasBeenTriggered_=!1};
_.z.onPrescanVisible=function(){this.onShow()};
_.z.onShow=function(){this.showButton||this.trigger()};
_.z.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.ms(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.z.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.z.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.z.computeLabel_=function(Y,S){return Y===void 0?null:Y.label||!S?Y.label:this.showMoreText_};
_.z.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.z.getContinuationUrl=function(Y){var S={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(S.itct=this.data.clickTrackingParams);return _.NP(Y,S)};
_.z.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Li.prototype.showButtonChanged_=Li.prototype.showButtonChanged_;Li.prototype.observeData_=Li.prototype.observeData_;_.Q([_.p(_.vU.YtVisibilityBehavior),_.k("design:type",Object)],Li.prototype,"ytVisibilityBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Li.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Li.prototype,"showButton",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Li.prototype,"showIcon",void 0);_.Q([_.X({computed:"computeLabel_(data, showButton)"}),_.k("design:type",Object)],Li.prototype,"label",void 0);_.Q([_.X({value:_.kW(_.Td("SHOW_MORE",void 0,"Show More"))}),_.k("design:type",Object)],Li.prototype,"showMoreText_",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Li.prototype,"spinnerActive_",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Li.prototype,"hasBeenTriggered_",void 0);
_.Q([_.X({value:void 0}),_.k("design:type",String)],Li.prototype,"observeVisibleOption",void 0);_.Q([_.X({value:void 0}),_.k("design:type",String)],Li.prototype,"observeHiddenOption",void 0);_.Q([_.X({value:"observe_once"}),_.k("design:type",Object)],Li.prototype,"observePrescanOption",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Li.prototype,"observeData_",null);
_.Q([_.zY("showButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Li.prototype,"showButtonChanged_",null);Li=_.Q([_.r0({is:"yt-next-continuation",disableElementRegistration:!0})],Li);
_.A(Li,"yt-next-continuation",function(){if(AGi===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;tJh===void 0&&(tJh=document.createElement("template"));var u=tJh;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);AGi=Y}Y=AGi;return Y},{mode:2});var UtU;var Qni;var wb=function(){return _.Z.apply(this,arguments)||this};
_.r(wb,_.Z);wb.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],wb.prototype,"data",void 0);wb=_.Q([_.r0({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],wb);
_.A(wb,"yt-music-pass-small-feature-info-renderer",function(){if(Qni===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;UtU===void 0&&(UtU=document.createElement("template"));var u=UtU;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Qni=Y}Y=Qni;return Y},{mode:2});_.$s("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var pi=function(){var Y=_.Z.apply(this,arguments)||this;Y.isCollapsible=!1;Y.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return Y};
_.r(pi,_.Z);_.z=pi.prototype;_.z.computeIsCollapsible=function(Y){return!!(((Y==null?0:Y.showMoreText)||(Y==null?0:Y.visibleRowCount))&&(Y==null?0:Y.isCollapsible))};
_.z.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"}}}};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.z.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.z.onIronResize=function(){var Y=this;_.pc(this,"updateGridInitItems",function(){Y.maybeUpdateInitialItemsDisplayed()})};
_.z.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var Y=this.getVisibleWidth();Y!==0&&(Y=Math.floor(Y/214)*(this.data.visibleRowCount||2),Y!==this.initialCount&&(this.initialCount=Y,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.z.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.z.computeExpandVisible=function(Y,S,P,u){return Y&&S&&P&&!!u&&!!u.showMoreText};
_.z.computeShowMoreButton=function(Y){return{text:Y,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.z.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.z.initCollapsed=function(){var Y=this;this.ytLazyListBehavior.canShowMore=!1;var S;(this.collapsed=!((S=this.data)==null||!S.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.ky(this,function(){_.jR(Y.hostElement,"yt-refit-popups-action")})};
_.z.fillRestIfNotCollapsible=function(){var Y=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!Y||this.ytLazyListBehavior.fillRemainingListItems()};
_.z.computeViewAllHidden=function(Y,S){return Y||!S.viewAllEndpoint};
pi.prototype.fillRestIfNotCollapsible=pi.prototype.fillRestIfNotCollapsible;pi.prototype.initCollapsed=pi.prototype.initCollapsed;pi.prototype.onIronResize=pi.prototype.onIronResize;pi.prototype.persistentGuideChanged=pi.prototype.persistentGuideChanged;_.Q([_.p(_.G8),_.k("design:type",Object)],pi.prototype,"ironResizableBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],pi.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.QG.YtLazyListBehavior),_.k("design:type",Object)],pi.prototype,"ytLazyListBehavior",void 0);_.Q([_.p(_.a3.YtNextContinuationBehavior),_.k("design:type",Object)],pi.prototype,"ytNextContinuationBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],pi.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.p(_.I3),_.k("design:type",Object)],pi.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],pi.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pi.prototype,"collapsed",void 0);_.Q([_.X(),_.k("design:type",Number)],pi.prototype,"initialCount",void 0);_.Q([_.X({computed:"computeShowMoreButton(data.showMoreText)"}),_.k("design:type",Object)],pi.prototype,"showMoreButton",void 0);
_.Q([_.X({computed:"computeIsCollapsible(data)"}),_.k("design:type",Object)],pi.prototype,"isCollapsible",void 0);_.Q([_.nc("#items"),_.k("design:type",HTMLElement)],pi.prototype,"items",void 0);_.Q([_.cZ("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pi.prototype,"persistentGuideChanged",null);_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pi.prototype,"onIronResize",null);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pi.prototype,"initCollapsed",null);_.Q([_.cZ("canShowMore"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pi.prototype,"fillRestIfNotCollapsible",null);pi=_.Q([_.t({is:"ytd-grid-renderer",disableElementRegistration:!0})],pi);
_.A(pi,"ytd-grid-renderer",function(){if(Ffs!==void 0)return Ffs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ffs=Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var FC=function(){return _.Z.apply(this,arguments)||this};
_.r(FC,_.Z);
FC.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],FC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],FC.prototype,"data",void 0);FC=_.Q([_.t({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],FC);
_.A(FC,"ytd-carousel-ad-renderer",function(){if(Ins!==void 0)return Ins;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ins=Y},{mode:1});var kQ6;var si=function(){return _.Z.apply(this,arguments)||this};
_.r(si,_.Z);_.z=si.prototype;_.z.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"}}}};
_.z.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,si.JSC$13115_CLICK_LOCATION_ID_MAP))};
_.z.onSitelinkTap=function(Y){Y.stopPropagation();var S,P,u=Y==null?void 0:(S=Y.model)==null?void 0:(P=S.item)==null?void 0:P.onTap;u&&this.ytSparklesClickLocationBehavior.handleClick(u,Y,!1)};
_.z.onTap=function(Y){var S=this.data&&this.data.content&&this.data.content.navigationEndpoint;S&&this.ytSparklesClickLocationBehavior.handleClick(S,Y,!1)};
_.z.sendImpression=function(){if(this.data&&this.data.content)for(var Y=_.n(this.data.content.impressionEndpoints||[]),S=Y.next();!S.done;S=Y.next()){S=_.n(S.value.loggingUrls||[]);for(var P=S.next();!P.done;P=S.next())P=P.value,P.baseUrl&&Qn(P.baseUrl,P.attributionSrcMode)}};
si.prototype.onTap=si.prototype.onTap;si.prototype.dataChanged=si.prototype.dataChanged;si.JSC$13115_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Uv.YtSparklesClickLocationBehavior),_.k("design:type",Object)],si.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],si.prototype,"data",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],si.prototype,"dataChanged",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],si.prototype,"onTap",null);si=_.Q([_.t({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],si);
_.A(si,"ytd-promoted-sparkles-text-search-renderer",function(){if(kQ6!==void 0)return kQ6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return kQ6=Y},{mode:1});var MJL;var db=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return Y};
_.r(db,_.Z);_.z=db.prototype;
_.z.configureRendererStamper=function(){return{"data.menu":{id:_.f("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]]"}}}}}};
_.z.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.z.computeHasAdBadge=function(Y){return!(Y==null||!Y.adBadge)};
_.z.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",db.JSC$13124_DEFAULT_AD_BADGE_RENDERER),_.Vm(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,db.JSC$13124_CLICK_LOCATION_ID_MAP))};
_.z.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var Y;(((Y=this.data)==null?void 0:Y.impressionCommands)||[]).forEach(function(S){S=_.n(S.loggingUrls||[]);for(var P=S.next();!P.done;P=S.next())P=P.value,P.baseUrl&&Qn(P.baseUrl,P.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.z.onTap=function(Y){var S,P=(S=this.data)==null?void 0:S.navigationEndpoint,u;(S=(u=this.data)==null?void 0:u.thumbnailNavigationEndpoint)&&_.oF(_.iM(Y),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(S,Y,!1):P&&this.ytSparklesClickLocationBehavior.handleClick(P,Y,!1)};
_.z.handleMuteAd=function(){this.collapsed=!0};
_.z.attached=function(){var Y=this;_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.z.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.y6.Object.defineProperties(db.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var Y;return!(((Y=this.data)==null?void 0:Y.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var Y;return!(((Y=this.data)==null?void 0:Y.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
db.prototype.dataChanged=db.prototype.dataChanged;
db.JSC$13124_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"]]);
db.JSC$13124_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Td("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.Q([_.p($R),_.k("design:type",Object)],db.prototype,"ytdActiveViewBehavior",void 0);
_.Q([_.p([_.tD.YtActionHandlerBehavior]),_.k("design:type",Object)],db.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.Uv.YtSparklesClickLocationBehavior),_.k("design:type",Object)],db.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],db.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],db.prototype,"collapsed",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],db.prototype,"useBiggerThumbs",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],db.prototype,"biggerThumbsStyle",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.k("design:type",Boolean)],db.prototype,"fixAlignmentSmallScreens",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs_square")}}),
_.k("design:type",Boolean)],db.prototype,"useBiggerThumbsSquare",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data.mediaHoverOverlay"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],db.prototype,"hideHoverOverlay",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.promotedSparklesWebStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],db.prototype,"webSearchLayout",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],db.prototype,"webSearchLayoutLandscape",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],db.prototype,"webSearchLayoutSquare",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.promotedSparklesWebStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],db.prototype,"sparklesCtaNoBackground",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.actionButton"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],db.prototype,"hideActionButton",null);_.Q([_.X({computed:"computeButtonOverride(uiUpdate)"}),_.k("design:type",Object)],db.prototype,"buttonOverride",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.k("design:type",Boolean)],db.prototype,"hasNewAdBadge",void 0);_.Q([_.d("data.promotedSparklesWebStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],db.prototype,"useRoundedBadge",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],db.prototype,"dataChanged",null);db=_.Q([_.t({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],db);
_.A(db,"ytd-promoted-sparkles-web-renderer",function(){if(MJL!==void 0)return MJL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return MJL=Y},{mode:1});var yGs;var lC=function(){return _.Z.apply(this,arguments)||this};
_.r(lC,_.Z);_.z=lC.prototype;_.z.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]]"}}}}}};
_.z.computeShowCta=function(Y){return!(Y==null||!Y.ctaRenderer)};
_.z.onCtaClick=function(){var Y,S,P,u=(Y=this.data)==null?void 0:(S=Y.ctaRenderer)==null?void 0:(P=S.buttonRenderer)==null?void 0:P.command;u&&this.ytComponentBehavior.resolveCommand(u)};
_.z.onWatchButtonClick=function(){var Y,S,P,u=(Y=this.data)==null?void 0:(S=Y.watchButtonRenderer)==null?void 0:(P=S.buttonRenderer)==null?void 0:P.command;u&&this.ytComponentBehavior.resolveCommand(u)};
_.z.onTap=function(){};
_.z.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",lC.JSC$13127_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",lC.JSC$13127_DEFAULT_CLICK_LOCATION_BEHAVIOR,lC.JSC$13127_CLICK_LOCATION_ID_MAP),this.thumbnail)){var Y=this.thumbnail.getElementsByTagName("a");Y.length>0&&(Y=Y.namedItem("thumbnail"))&&Y.removeAttribute("href")}};
_.z.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var Y=_.n(this.data.impressionUrls),S=Y.next();!S.done;S=Y.next())S=S.value,uQE(S,zC9(S));this.data.impressionsFired=!0}};
_.z.maybeComputeHref=function(){return null};
_.z.computeIsShortDR=function(Y){return!(Y==null||!Y.watchButtonRenderer)&&!(Y==null||!Y.ctaRenderer)&&!!this.enableShortDR};
_.z.computeIsNewUiOrShortDr=function(Y){return!!this.enableUiUpdate||this.computeIsShortDR(Y)};
_.z.computeIsNewUiAndNotShortDr=function(Y){return!!this.enableUiUpdate&&!this.computeIsShortDR(Y)};
_.z.computeHideAvatar=function(Y){return!((Y==null?0:Y.channelThumbnail)&&this.computeIsNewUiOrShortDr(Y))};
_.z.onClick=function(Y){var S,P=(S=this.data)==null?void 0:S.navigationEndpoint;if(this.enableShortDR&&P&&(_.g(P,_.yx)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(P,Y,!!_.g(P,_.yx)),Y.stopPropagation();else if(P&&_.g(P,_.yx))this.ytSparklesClickLocationBehavior.handleClick(P,Y,!0),Y.stopPropagation();else if(P){var u,W;((u=this.data)==null?0:u.navigationEndpoint)&&((W=this.data)==null?0:W.adPlaybackContextParams)&&ez9(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(P)}};
_.z.computeButtonOverride=function(Y){if(this.computeIsNewUiOrShortDr(Y))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.z.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.z.onThumbnailContainerClick=function(Y){this.onClick(Y)};
_.z.computeThumbnailWidth=function(Y,S){return Y?S==="MASSIVE"?600:S==="BIG"?500:S==="MEDIUM"?450:420:360};
_.z.attached=function(){var Y=this;_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.z.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
lC.prototype.dataChanged=lC.prototype.dataChanged;lC.prototype.onTap=lC.prototype.onTap;lC.JSC$13127_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Td("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};lC.JSC$13127_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
lC.JSC$13127_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.Q([_.p($R),_.k("design:type",Object)],lC.prototype,"ytdActiveViewBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],lC.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.Uv.YtSparklesClickLocationBehavior),_.k("design:type",Object)],lC.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],lC.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],lC.prototype,"useBiggerThumbs",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("enable_video_display_compact_button_group_for_desktop_search")}}),
_.k("design:type",Boolean)],lC.prototype,"enableShortDR",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("enable_vac_ui_update_for_desktop_search")}}),
_.k("design:type",Boolean)],lC.prototype,"enableUiUpdate",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],lC.prototype,"biggerThumbsStyle",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.k("design:type",Boolean)],lC.prototype,"showCta",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.k("design:type",Boolean)],lC.prototype,"isShortDr",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.k("design:type",Boolean)],lC.prototype,"isShortDrOrNewUi",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.k("design:type",Boolean)],lC.prototype,"isNewUiAndNotShortDr",void 0);_.Q([_.X({computed:"computeButtonOverride(data)"}),_.k("design:type",Object)],lC.prototype,"buttonOverride",void 0);_.Q([_.X({computed:"computeSecondaryButtonOverride(data)"}),_.k("design:type",Object)],lC.prototype,"secondaryButtonOverride",void 0);_.Q([_.nc("ytd-thumbnail"),_.k("design:type",HTMLElement)],lC.prototype,"thumbnail",void 0);
_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lC.prototype,"onTap",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lC.prototype,"dataChanged",null);lC=_.Q([_.t({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],lC);
_.A(lC,"ytd-promoted-video-renderer",function(){if(yGs!==void 0)return yGs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return yGs=Y},{mode:1});var NN6;var XC=function(){var Y=_.Z.apply(this,arguments)||this;Y.useRoundedBadge=!0;Y.sitelinkIds=[];return Y};
_.r(XC,_.Z);_.z=XC.prototype;
_.z.configureRendererStamper=function(){return{"data.menu":{id:_.f("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]]"}}}}}};
_.z.dataChanged=function(){var Y;(Y=this.data)!=null&&Y.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,XC.JSC$13134_CLICK_LOCATION_ID_MAP)};
_.z.onTap=function(Y){var S,P=(S=this.data)==null?void 0:S.navigationCommand;P&&!_.oF(_.iM(Y),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(P,Y,!1)};
_.z.onSitelinkTap=function(Y){var S,P,u=Y==null?void 0:(S=Y.model)==null?void 0:(P=S.item)==null?void 0:P.onTap;u&&this.ytSparklesClickLocationBehavior.handleClick(u,Y,!1)};
_.z.configureSitelinkClickTargets=function(){var Y=this,S,P,u=(S=this.data)==null?void 0:(P=S.clickLocationTargets)==null?void 0:P.find(function(W){return W.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
u&&_.I(this.hostElement).querySelectorAll(".sitelink").forEach(function(W){_.Vm(W,"yt-simple-endpoint",!0);Y.sitelinkIds.push(W.id);var m,J;(m=Y.ytSparklesClickLocationBehavior)==null||(J=m.clickTargetMap)==null||J.set(W.id,u)})};
_.z.sendImpression=function(){var Y,S,P=((Y=this.data)==null?void 0:(S=Y.impressionCommand)==null?void 0:S.loggingUrls)||[];Y=_.n(P);for(S=Y.next();!S.done;S=Y.next())S=S.value,S.baseUrl&&Qn(S.baseUrl,S.attributionSrcMode)};
_.z.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.y6.Object.defineProperties(XC.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
XC.prototype.onTap=XC.prototype.onTap;XC.prototype.dataChanged=XC.prototype.dataChanged;XC.JSC$13134_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],XC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Uv.YtSparklesClickLocationBehavior),_.k("design:type",Object)],XC.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],XC.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XC.prototype,"showFavicon",null);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],XC.prototype,"useBiggerThumbs",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],XC.prototype,"biggerThumbsStyle",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.k("design:type",Boolean)],XC.prototype,"enableThumbnailScalingFix",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XC.prototype,"dataChanged",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],XC.prototype,"onTap",null);XC=_.Q([_.t({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],XC);
_.A(XC,"ytd-text-image-no-button-layout-renderer",function(){if(NN6!==void 0)return NN6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return NN6=Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var HH3;var Zg=function(){var Y=_.Z.apply(this,arguments)||this;Y.isInlinePlaybackState=!1;Y.uiUpdate=_.f("web_modern_buttons");Y.hideCta=_.f("hide_cta_for_home_web_video_ads");Y.noBottomMargin=!1;Y.animateInTimeStamp=_.z_("hide_cta_for_home_web_video_ads_animate_in_time");Y.animateInCta=!1;Y.isHovered=!1;Y.player=null;Y.JSC$13141_playerEvents=new Map;Y.JSC$13141_preventProgressSaveTimer=null;Y.delayedCtaJobId=null;return Y};
_.r(Zg,_.Z);_.z=Zg.prototype;_.z.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]]"}}}}}};
_.z.attached=function(){this.JSC$13141_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13141_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.f("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.z.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13141_playerEvents)};
_.z.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Zg.JSC$13140_DEFAULT_CLICK_LOCATION_BEHAVIOR,Zg.JSC$13140_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.z.hoverChanged=function(){var Y=this;this.delayedCtaJobId&&(_.wc.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.f("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.bL(_.wc,function(){Y.buttonContainer.classList.add("show-delayed-buttons")},_.z_("delayed_cta_on_web_delay_milliseconds")))};
_.z.setPlayer=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return(S=_.jR(Y.hostElement,"yt-get-inline-preview-player-action"))&&S[0]?_.q(P,S[0].getPlayerPromise(),3):P.jumpTo(0);Y.player=P.yieldResult;Y.ytPlayerListenerBehavior.listenToPlayerEvents(Y.player,Y.JSC$13141_playerEvents);_.Yt(P)})};
_.z.onPlaybackStart=function(){var Y=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13141_preventProgressSaveTimer=_.yz(_.wc,function(){Y.JSC$13141_preventProgressSaveTimer=null},1E4))};
_.z.onVideoProgress=function(Y){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&Y>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.z.resetPreventProgressSaveTimer=function(){_.wc.cancelJob(this.JSC$13141_preventProgressSaveTimer);this.JSC$13141_preventProgressSaveTimer=null};
_.z.getSimpleString=function(Y){return _.Ma(Y)};
_.z.onClick=function(Y){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var S,P=(S=this.data)==null?void 0:S.navigationEndpoint,u;S=(u=this.data)==null?void 0:u.channelEndpoint;var W,m;(u=(m=_.g((W=this.data)==null?void 0:W.adCtaButton,_.I8))==null?void 0:m.command)&&_.oF(_.iM(Y),this.hostElement,["call-to-action"])?_.f("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(u,Y,!1):S&&_.oF(_.iM(Y),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(S,Y,!1):!_.oF(_.iM(Y),this.hostElement,["secondary-button"])&&P&&(_.f("enable_short_dr_for_desktop_launchable")?(W=!!_.g(P,_.yx),this.isInlinePlaybackState&&W&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(P,Y,W)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(P,Y,!0)))}};
_.z.updateWatchEndpointStartTime=function(){var Y,S;this.player&&((Y=this.data)==null?0:Y.inlinePlaybackEndpoint)&&((S=this.data)==null?0:S.navigationEndpoint)&&!this.JSC$13141_preventProgressSaveTimer&&(Y=Math.floor(this.player.getCurrentTime()),_.g(this.data.navigationEndpoint,_.yx).startTimeSeconds=Y,_.g(this.data.inlinePlaybackEndpoint,_.yx).startTimeSeconds=Y)};
_.z.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.z.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.y6.Object.defineProperties(Zg.prototype,{isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!((Y=this.data)==null||!Y.watchButton)&&!((S=this.data)==null||!S.adCtaButton)}}});
Zg.prototype.hoverChanged=Zg.prototype.hoverChanged;Zg.prototype.dataChanged=Zg.prototype.dataChanged;
Zg.JSC$13140_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"]]);
Zg.JSC$13140_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Zg.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.Uv.YtSparklesClickLocationBehavior),_.k("design:type",Object)],Zg.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],Zg.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Zg.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Zg.prototype,"isInlinePlaybackState",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Zg.prototype,"miniMode",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Zg.prototype,"uiUpdate",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Zg.prototype,"hideCta",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Zg.prototype,"noBottomMargin",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Zg.prototype,"animateInCta",void 0);_.Q([_.X({computed:"computeButtonOverride(uiUpdate)"}),_.k("design:type",Object)],Zg.prototype,"buttonOverride",void 0);
_.Q([_.X({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.k("design:type",Object)],Zg.prototype,"secondaryButtonOverride",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Zg.prototype,"isHovered",void 0);_.Q([_.nc("#button-container"),_.k("design:type",HTMLElement)],Zg.prototype,"buttonContainer",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zg.prototype,"dataChanged",null);
_.Q([_.zY("isHovered"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zg.prototype,"hoverChanged",null);_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Zg.prototype,"isButtonGroup",null);Zg=_.Q([_.t({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Zg);
_.A(Zg,"ytd-ad-inline-playback-meta-block",function(){if(HH3!==void 0)return HH3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return HH3=Y},{mode:_.OX("kevlar_poly_si_batch_j065")?1:2});var VJL;var iC=function(){var Y=_.Z.apply(this,arguments)||this;Y.noBottomMargin=!1;Y.isInlinePreviewTriggered=!1;Y.JSC$13146_activeViewMeasurementDataResolver=_.dL();return Y};
_.r(iC,_.Z);_.z=iC.prototype;_.z.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z.attached=function(){var Y=this;this.updateInlinePreviewHoverListeners();this.JSC$13146_activeViewMeasurementDataResolver.promise.then(function(S){Y.ytdActiveViewBehavior.enableActiveViewMeasurement(S,15)});
_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.z.detached=function(){this.clearInlinePreviewHoverListeners();_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13146_inlinePreviewHoverListener=UP({mediaRenderer:this,lockupElement:this.JSC$13146_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:eRt})};
_.z.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$13146_inlinePreviewHoverListener)==null||Sb(Y)};
_.z.onDataChanged=function(){var Y;((Y=this.data)==null?0:Y.activeView)&&this.JSC$13146_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",iC.JSC$13145_DEFAULT_CLICK_LOCATION_BEHAVIOR,iC.JSC$13145_CLICK_LOCATION_ID_MAP);this.thumbnail&&(Y=this.thumbnail.getElementsByTagName("a"),Y.length>0&&(Y=Y.namedItem("thumbnail"))&&Y.removeAttribute("href"));var S;if((S=this.data)==
null?0:S.hasAutoplay){var P;(P=this.JSC$13146_inlinePreviewHoverListener)==null||D96(P)}};
_.z.onThumbnailContainerClick=function(Y){if(this.data&&this.data.navigationEndpoint){var S,P=(S=this.data)==null?void 0:S.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(P,Y,!!_.g(P,_.yx));Y.stopPropagation()}};
_.z.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.z.impressionLog=function(){var Y=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var S,P,u=(P=_.g((S=this.data)==null?void 0:S.onImpression,_.qT))==null?void 0:P.commands;u&&(u.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;Y.ytComponentBehavior.resolveCommand(W)}),this.data.impressionsFired=!0)}};
_.y6.Object.defineProperties(iC.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$13146_inlinePreviewHoverListener)==null?0:KC(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
iC.prototype.onDataChanged=iC.prototype.onDataChanged;iC.JSC$13145_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);iC.JSC$13145_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],iC.prototype,"ytComponentBehavior",void 0);
_.Q([_.p($R),_.k("design:type",Object)],iC.prototype,"ytdActiveViewBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],iC.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],iC.prototype,"ytdLockupBehavior",void 0);
_.Q([_.p(_.Gn),_.k("design:type",Object)],iC.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.Uv.YtSparklesClickLocationBehavior),_.k("design:type",Object)],iC.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],iC.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],iC.prototype,"noBottomMargin",void 0);_.Q([_.X(),_.k("design:type",Object)],iC.prototype,"isInlinePreviewTriggered",void 0);
_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Boolean)],iC.prototype,"miniMode",void 0);_.Q([_.nc("ytd-thumbnail"),_.k("design:type",HTMLElement)],iC.prototype,"thumbnail",void 0);_.Q([_.nc("#dismissible"),_.k("design:type",HTMLElement)],iC.prototype,"JSC$13146_dismissibleMedia",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iC.prototype,"onDataChanged",null);
_.Q([_.d("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],iC.prototype,"isHovered",null);iC=_.Q([_.t({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],iC);
_.A(iC,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(VJL!==void 0)return VJL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return VJL=Y},{mode:1});var eVS;var o3=function(){var Y=_.Z.apply(this,arguments)||this;Y.isInlinePreviewTriggered=!1;Y.JSC$13149_activeViewMeasurementDataResolver=_.dL();return Y};
_.r(o3,_.Z);_.z=o3.prototype;_.z.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z.attached=function(){var Y=this;this.updateInlinePreviewHoverListeners();this.JSC$13149_activeViewMeasurementDataResolver.promise.then(function(S){Y.ytdActiveViewBehavior.enableActiveViewMeasurement(S,15)})};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13149_inlinePreviewHoverListener=UP({mediaRenderer:this,lockupElement:this.JSC$13149_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:eRt})};
_.z.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$13149_inlinePreviewHoverListener)==null||Sb(Y)};
_.z.onDataChanged=function(){var Y;((Y=this.data)==null?0:Y.activeView)&&this.JSC$13149_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",o3.JSC$13148_DEFAULT_CLICK_LOCATION_BEHAVIOR,o3.JSC$13148_CLICK_LOCATION_ID_MAP);this.thumbnail&&(Y=this.thumbnail.getElementsByTagName("a"),Y.length>0&&(Y=Y.namedItem("thumbnail"))&&Y.removeAttribute("href"))};
_.z.onThumbnailContainerClick=function(Y){if(this.data&&this.data.navigationEndpoint){var S,P=(S=this.data)==null?void 0:S.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(P,Y,!0);Y.stopPropagation()}};
_.z.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.z.impressionLog=function(){var Y=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var S,P,u=(P=_.g((S=this.data)==null?void 0:S.onImpression,_.qT))==null?void 0:P.commands;u&&(u.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;_.E().resolve(_.uY).resolveCommand(W,{form:{element:Y.hostElement}})}),this.data.impressionsFired=!0)}};
_.y6.Object.defineProperties(o3.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$13149_inlinePreviewHoverListener)==null?0:KC(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
o3.prototype.onDataChanged=o3.prototype.onDataChanged;o3.JSC$13148_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);o3.JSC$13148_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.Q([_.p($R),_.k("design:type",Object)],o3.prototype,"ytdActiveViewBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],o3.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],o3.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],o3.prototype,"ytdLockupBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],o3.prototype,"ytdReduxBehavior",void 0);
_.Q([_.p(_.Uv.YtSparklesClickLocationBehavior),_.k("design:type",Object)],o3.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],o3.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],o3.prototype,"isInlinePreviewTriggered",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Boolean)],o3.prototype,"miniMode",void 0);_.Q([_.nc("ytd-thumbnail"),_.k("design:type",HTMLElement)],o3.prototype,"thumbnail",void 0);
_.Q([_.nc("#dismissible"),_.k("design:type",HTMLElement)],o3.prototype,"JSC$13149_dismissibleMedia",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],o3.prototype,"onDataChanged",null);_.Q([_.d("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],o3.prototype,"isHovered",null);o3=_.Q([_.t({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],o3);
_.A(o3,"ytd-video-display-full-buttoned-renderer",function(){if(eVS!==void 0)return eVS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return eVS=Y},{mode:1});var mF=function(Y,S,P,u){u=u===void 0?!1:u;_.YY.call(this,Y);this.adsClientErrorMessage=P;this.aggressivelySample=u;this.args=[];S&&this.args.push(S)};
_.r(mF,_.YY);var WB=function(Y,S,P,u){u=u===void 0?!1:u;_.YY.call(this,Y);this.adsClientErrorMessage=P;this.aggressivelySample=u;this.args=[];S&&this.args.push(S)};
_.r(WB,_.YY);var OH6=function(Y){_.R6.call(this);var S=this;this.initializationFunction=Y;this.instance=null;this.addOnDisposeCallback(function(){_.oY(S.instance);S.instance=null})};
_.r(OH6,_.R6);OH6.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.VR("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var rUa=function(){var Y=new Map;[].forEach(function(S){Y.set(S.JSC$26650_getType(),S)})};new Promise(function(){});var KdY=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"]]),bFX=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"}]]),Y3s=function(Y){this.experimentApiProvider=Y;Y=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=Y<.1};var tM=function(Y,S,P,u){_.R6.call(this);this.adsControlFlowEventListeners=S;this.adEventLogger=P;this.experimentApiProvider=u;this.adsControlFlowManagerHelper=Y(this,this,this,this,this);_.Ph(this,this.adsControlFlowManagerHelper);Y=_.n(S);for(S=Y.next();!S.done;S=Y.next())_.Ph(this,S.value)};
_.r(tM,_.R6);var S3s=function(Y,S,P,u){AM(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",S,P,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,u);Y=_.n(Y.adsControlFlowEventListeners);for(u=Y.next();!u.done;u=Y.next())S3s(u.value,S,P)};
_.z=tM.prototype;_.z.onOpportunityProcessedExternallyManaged=function(Y,S,P,u){AM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",Y,P,S,void 0,void 0,void 0,void 0,void 0,void 0,void 0,u)};
_.z.onSlotReceivedExternallyManaged=function(Y,S){Ui(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",Y,S)};
_.z.onSlotEntered=function(Y){if(QF(this.adsControlFlowManagerHelper,Y)!=null){Ui(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",Y);this.adsControlFlowManagerHelper.onSlotEntered(Y);for(var S=_.n(this.adsControlFlowEventListeners),P=S.next();!P.done;P=S.next())P.value.onSlotEntered(Y);if(QF(this.adsControlFlowManagerHelper,Y)!=null&&QF(this.adsControlFlowManagerHelper,Y).isOccupyingSlotType()&&kT(this.adsControlFlowManagerHelper,Y)&&!PQd(this.adsControlFlowManagerHelper,Y)){var u;MQ(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",Y,(u=kT(this.adsControlFlowManagerHelper,Y))!=null?u:void 0);Y=QF(this.adsControlFlowManagerHelper,Y);Y.slotLifecycleStage!=="entered"&&yF(Y.slot,Y.slotLifecycleStage,"enterLayoutForSlot");Y.slotLifecycleStage="rendering";Y.registeredLayoutRenderingAdapter.startRendering(Y.layout)}}};
_.z.onSlotExited=function(Y){if(QF(this.adsControlFlowManagerHelper,Y)!=null){Ui(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",Y);this.adsControlFlowManagerHelper.onSlotExited(Y);for(var S=_.n(this.adsControlFlowEventListeners),P=S.next();!P.done;P=S.next())P.value.onSlotExited(Y);QF(this.adsControlFlowManagerHelper,Y)!=null&&QF(this.adsControlFlowManagerHelper,Y).markedForUnscheduleAfterOutboundAdapterRequests&&uwU(this,Y)}};
_.z.onLayoutReceivedExternallyManaged=function(Y,S,P){Y.managerLayer!=="core"&&MQ(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",Y,S,P)};
var Wdm=function(Y,S,P){if(QF(Y.adsControlFlowManagerHelper,S)!=null){MQ(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",S,P);Y=_.n(Y.adsControlFlowEventListeners);for(var u=Y.next();!u.done;u=Y.next())Wdm(u.value,S,P)}};
tM.prototype.onLayoutExited=function(Y,S,P){if(QF(this.adsControlFlowManagerHelper,Y)!=null){MQ(this.adEventLogger,T_h(P),Y,S);this.adsControlFlowManagerHelper.onLayoutExited(Y,S);for(var u=_.n(this.adsControlFlowEventListeners),W=u.next();!W.done;W=u.next())W.value.onLayoutExited(Y,S,P);(P=kT(this.adsControlFlowManagerHelper,Y))&&S.layoutId===P.layoutId&&zHm(this,Y)}};
tM.prototype.disposeInternal=function(){var Y=mOu(this.adsControlFlowManagerHelper);Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())uwU(this,S.value);_.R6.prototype.disposeInternal.call(this)};
var uwU=function(Y,S){if(QF(Y.adsControlFlowManagerHelper,S)!=null)if(QF(Y.adsControlFlowManagerHelper,S).JSC$26681_isSlotExitRequested()||QF(Y.adsControlFlowManagerHelper,S).JSC$26681_isLayoutExitRequested())QF(Y.adsControlFlowManagerHelper,S).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(QF(Y.adsControlFlowManagerHelper,S).isOccupyingSlotType())QF(Y.adsControlFlowManagerHelper,S).markedForUnscheduleAfterOutboundAdapterRequests=!0,zHm(Y,S);else if(QF(Y.adsControlFlowManagerHelper,S).JSC$26681_isSlotFillRequested())QF(Y.adsControlFlowManagerHelper,
S).markedForUnscheduleAfterOutboundAdapterRequests=!0,QF(Y.adsControlFlowManagerHelper,S)!=null&&(Ui(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",S),S=QF(Y.adsControlFlowManagerHelper,S),S.fulfillmentLifecycleStage="fill_cancel_requested",S.registeredFulfillmentAdapter.cancelSlotFilling());else{var P=kT(Y.adsControlFlowManagerHelper,S),u;Y.experimentApiProvider.get();(u=_.f("h5_enable_layout_unscheduling_events"))&&(P?nrs(Y,S,P):_.VR(Error("Jh"),S,P,void 0,!1));Ui(Y.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",S);var W=QF(Y.adsControlFlowManagerHelper,S),m=S.slotEntryTrigger,J=W.registeredSlotEntryTriggerAdapters.get(m.triggerId);J&&(J.unregisterTrigger(m),W.registeredSlotEntryTriggerAdapters.delete(m.triggerId));m=_.n(S.slotFulfillmentTriggers);for(J=m.next();!J.done;J=m.next()){J=J.value;var c=W.registeredFulfillmentTriggerAdapters.get(J.triggerId);c&&(c.unregisterTrigger(J),W.registeredFulfillmentTriggerAdapters.delete(J.triggerId))}m=_.n(S.slotExpirationTriggers);
for(J=m.next();!J.done;J=m.next())if(J=J.value,c=W.registeredExpirationTriggerAdapters.get(J.triggerId))c.unregisterTrigger(J),W.registeredExpirationTriggerAdapters.delete(J.triggerId);W.hasLayout()&&(m=W.layout,NQ(W,m.layoutExitNormalTriggers),NQ(W,m.layoutExitSkipTriggers),NQ(W,m.layoutExitMuteTriggers),NQ(W,m.layoutExitUserInputSubmittedTriggers),NQ(W,m.layoutExitUserCancelledTriggers));W.registeredFulfillmentAdapter=void 0;W.registeredSlotAdapter!=null&&(W.registeredSlotAdapter.release(),W.registeredSlotAdapter=
void 0);W.registeredLayoutRenderingAdapter!=null&&(W.registeredLayoutRenderingAdapter.release(),W.registeredLayoutRenderingAdapter=void 0);W=Y.adsControlFlowManagerHelper;QF(W,S)&&(W=jwJ(W,S.slotType+"_"+S.slotPhysicalPosition))&&W.delete(S.slotId);Ui(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",S);Y=_.n(Y.adsControlFlowEventListeners);for(W=Y.next();!W.done;W=Y.next())W=W.value,W.onSlotUnscheduled(S),P&&!u&&nrs(W,S,P)}},nrs=function(Y,S,P){MQ(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
S,P);
MQ(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",S,P);Y=_.n(Y.adsControlFlowEventListeners);for(var u=Y.next();!u.done;u=Y.next())u=u.value,P&&nrs(u,S,P)},zHm=function(Y,S){if(QF(Y.adsControlFlowManagerHelper,S)!=null&&QF(Y.adsControlFlowManagerHelper,S).isOccupyingSlotType()){var P=kT(Y.adsControlFlowManagerHelper,S);
if(P&&PQd(Y.adsControlFlowManagerHelper,S)){if(QF(Y.adsControlFlowManagerHelper,S)!=null){var u=Y.adEventLogger,W;var m=((W=bFX.get("abandoned"))==null?void 0:W.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";MQ(u,m,S,P);Y=QF(Y.adsControlFlowManagerHelper,S);Y.slotLifecycleStage!=="rendering"&&yF(Y.slot,Y.slotLifecycleStage,"exitLayout");Y.slotLifecycleStage="rendering_stop_requested";Y.registeredLayoutRenderingAdapter.stopRendering(P,"abandoned")}}else{Ui(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
S);try{u=QF(Y.adsControlFlowManagerHelper,S);if(!u)throw new WB("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");u.slotLifecycleStage!=="enter_requested"&&u.slotLifecycleStage!=="entered"&&u.slotLifecycleStage!=="rendering"&&yF(u.slot,u.slotLifecycleStage,"exitSlot");u.slotLifecycleStage="exit_requested";if(u.registeredSlotAdapter===void 0)throw u.slotLifecycleStage="scheduled",new WB("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
u.registeredSlotAdapter.exit()}catch(J){J instanceof WB&&J.adsClientErrorMessage?(JUU(Y.adEventLogger,J.adsClientErrorMessage,S),_.VR(J,S,void 0,void 0,J.aggressivelySample)):(JUU(Y.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",S),_.VR(J,S))}}}};var HM=function(Y,S,P,u,W,m){_.R6.call(this);this.registry=Y;this.experimentApiProvider=m;this.slotMap=new Map};
_.r(HM,_.R6);var jwJ=function(Y,S){return(Y=Y.slotMap.get(S))?Y:new Map},QF=function(Y,S){return jwJ(Y,S.slotType+"_"+S.slotPhysicalPosition).get(S.slotId)},mOu=function(Y){var S=[];
Y.slotMap.forEach(function(P){P=_.n(P.values());for(var u=P.next();!u.done;u=P.next())S.push(u.value.slot)});
return S};
HM.prototype.onSlotEntered=function(Y){Y=QF(this,Y);Y.slotLifecycleStage!=="enter_requested"&&yF(Y.slot,Y.slotLifecycleStage,"onSlotEntered");Y.slotLifecycleStage="entered"};
var PQd=function(Y,S){Y=QF(Y,S);return Y.hasLayout()&&Y.isRendering()},kT=function(Y,S){(Y=QF(Y,S))?Y.hasLayout()&&!Y.layout&&_.VR("Unexpected empty layout",S):_.VR("Unexpected undefined slotState",S);
return(Y==null?void 0:Y.layout)||null};
HM.prototype.onSlotExited=function(Y){Y=QF(this,Y);Y.slotLifecycleStage!=="exit_requested"&&yF(Y.slot,Y.slotLifecycleStage,"onSlotExited");Y.slotLifecycleStage="scheduled"};
HM.prototype.onLayoutExited=function(Y,S){Y=QF(this,Y);Y.isPrimaryLayout(S)&&(Y.slotLifecycleStage!=="rendering_stop_requested"&&yF(Y.slot,Y.slotLifecycleStage,"onLayoutExited"),Y.slotLifecycleStage="entered")};
var NQ=function(Y,S){S=_.n(S);for(var P=S.next();!P.done;P=S.next()){P=P.value;var u=Y.registeredLayoutExitTriggerAdapters.get(P.triggerId);u&&(u.unregisterTrigger(P),Y.registeredLayoutExitTriggerAdapters.delete(P.triggerId))}},yF=function(Y,S,P){_.VR("Slot stage was "+S+" when calling method "+P,Y)};var cU3=function(Y){_.R6.call(this);this.deps=Y;this.JSC$13198_adsControlFlowManager=B_s(this)};
_.r(cU3,_.R6);var B_s=function(Y){var S=new tM(function(P,u,W,m){return new HM(Y.deps.registry,P,u,W,m,Y.deps.experimentApiProvider)},new Set($Oa(Y.deps.registry).concat(Y.deps.listeners)),Y.deps.adEventLogger,Y.deps.experimentApiProvider);
_.Ph(Y,S);return S};var CQs=function(Y,S){_.R6.call(this);this.experimentApiProvider=Y;this.eventLoggingSettingsProvider=S;this.eventCount=0};
_.r(CQs,_.R6);CQs.prototype.logEvent=function(Y){AM(this,Y)};
var Ui=function(Y,S,P,u){AM(Y,S,void 0,void 0,void 0,P,void 0,void 0,void 0,P.adSlotLoggingData,void 0,void 0,u)},MQ=function(Y,S,P,u,W){AM(Y,S,void 0,void 0,void 0,P,u?u:void 0,void 0,void 0,P.adSlotLoggingData,u?u.adLayoutLoggingData:void 0,void 0,W)},JUU=function(Y,S,P){AM(Y,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,P,void 0,void 0,void 0,P.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:S})},AM=function(Y,S,P,u,W,m,J,c,C,x,b,T,K){K=K===void 0?0:K;
q3t(Y.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+S,"slot:",m,"layout:",J,"ping:",c,"Opportunity:",{opportunityType:P,associatedSlotId:u,slotsFromOpportunity:W,triggerBundle:C,adSlotLoggingData:x,adLayoutLoggingData:b});try{var G=function(){Y.experimentApiProvider.get();if(S!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){S||_.VR("Empty PACF event type",m,J);var v=Y.eventLoggingSettingsProvider.get();var a;(a=v.alwaysIncludeDebugData)||(v.experimentApiProvider.get(),a=
!1);v=a;a={eventType:S,eventOrder:++Y.eventCount};var w={};m&&(w.slotData=fE$(v,m));if(J){var F={type:J.layoutType,controlFlowManagerLayer:KdY.get(J.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};v&&(F.debugData={layoutId:J.layoutId});w.layoutData=F}c&&(w.pingData={pingDispatchStatus:c.dispatchStatus,serializedAdPingMetadata:c.ping.serializedAdPingMetadata,pingIndex:c.index});C&&(w.triggerData=Eru(C.trigger,C.category));P&&(w.opportunityData=grh(v,P,u,W));a.adClientData=w;x&&(a.serializedSlotAdServingData=
x.serializedSlotAdServingDataEntry);b&&(a.serializedAdServingData=b.serializedAdServingDataEntry);T&&(a.errorInfo=T);_.L_("adsClientStateChange",{adsClientEvent:a})}};
K&&K>0?_.hp(_.vs(),function(){return G()},K):G()}catch(v){q3t(Y.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.hp(_.vs(),function(){_.VR(v instanceof Error?v:String(v),m,J,{pacf_message:"exception during pacf logging"})})}};var RHm=function(Y,S){CQs.call(this,Y,S)};
_.r(RHm,CQs);var xOm=function(){},q3t=function(Y,S){return _.f(S)};var T_s=function(){var Y=new bFJ;this.JSC$13217_adsControlFlowManager=(new cU3(Y)).JSC$13198_adsControlFlowManager},bFJ=function(){_.R6.call(this);
var Y=this;this.experimentApiProvider=new OH6(function(){return new xOm});
var S=new OH6(function(){return new Y3s(Y.experimentApiProvider)});
this.adEventLogger=new RHm(this.experimentApiProvider,S);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.r(bFJ,_.R6);var Kd_=function(){},Erm,VF=function(){Erm||(Erm=new Kd_);
return Erm},e3=function(Y){if(!Y.JSC$13228_externallyManagedSlotAdapterCallback){var S=(new T_s).JSC$13217_adsControlFlowManager;
Y.JSC$13228_externallyManagedSlotAdapterCallback=S}return Y.JSC$13228_externallyManagedSlotAdapterCallback},fEh=function(Y,S,P){var u=S.opportunityType,W=Error("Kh");
if(u!==void 0){var m=e3(Y);S3s(m,u,void 0,P)}else _.VR(W,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});m=[];if(S.adSlotAndLayoutMetadata!==void 0){S=_.n(S.adSlotAndLayoutMetadata);for(var J=S.next();!J.done;J=S.next()){var c=J.value;if(J=c.adSlotMetadata)if(m.push(J),Y.onSlotReceivedExternallyManaged(J,P),c.adLayoutMetadata){c=_.n(c.adLayoutMetadata);for(var C=c.next();!C.done;C=c.next())Y.onLayoutReceivedExternallyManaged(J,C.value,P)}else P>0&&_.VR("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
u,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else P>0&&_.VR("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+u,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else P>0&&_.VR("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+u,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(u!==void 0)Y.onOpportunityProcessedExternallyManaged(u,m,void 0,P);else _.VR(W,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Kd_.prototype.onSlotReceivedExternallyManaged=function(Y,S){Y=zt(Y);if(Y instanceof WB)_.VR(Y,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else e3(this).onSlotReceivedExternallyManaged(Y,S)};
Kd_.prototype.onLayoutReceivedExternallyManaged=function(Y,S,P){Y=zt(Y);S=Gua(S);if(Y instanceof WB)_.VR(Y,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(S instanceof mF)_.VR(S,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else e3(this).onLayoutReceivedExternallyManaged(Y,S,P)};
Kd_.prototype.onOpportunityProcessedExternallyManaged=function(Y,S,P,u){var W=[];S=_.n(S);for(var m=S.next();!m.done;m=S.next())m=zt(m.value),m instanceof WB?_.VR(m,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):W.push(m);e3(this).onOpportunityProcessedExternallyManaged(Y,W,P,u)};
var grs=function(Y,S){S=zt(S);if(S instanceof WB)_.VR(S,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var P=e3(Y);Ui(P.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",S);P=_.n(P.adsControlFlowEventListeners);for(var u=P.next();!u.done;u=P.next())u=QF(u.value,S),u.slotLifecycleStage!=="not_scheduled"&&yF(u.slot,u.slotLifecycleStage,"onSlotScheduled"),u.slotLifecycleStage="scheduled";Y=e3(Y);Ui(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",S);Y=_.n(Y.adsControlFlowEventListeners);
for(P=Y.next();!P.done;P=Y.next())P.value.onSlotEntered(S)}},$Ot=function(Y,S){S=zt(S);
if(S instanceof WB)_.VR(S,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var P=e3(Y);Ui(P.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",S);P=_.n(P.adsControlFlowEventListeners);for(var u=P.next();!u.done;u=P.next())u.value.onSlotExited(S);Y=e3(Y);Ui(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",S);Y=_.n(Y.adsControlFlowEventListeners);for(P=Y.next();!P.done;P=Y.next())P.value.onSlotUnscheduled(S)}},rUf=function(Y,S,P){S=zt(S);
P=Gua(P);if(S instanceof WB)_.VR(S,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(P instanceof mF)_.VR(P,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var u=e3(Y);MQ(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",S,P);u=_.n(u.adsControlFlowEventListeners);for(var W=u.next();!W.done;W=u.next())W.value.onLayoutScheduled(S,P);Y=e3(Y);MQ(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",S,P);Y=_.n(Y.adsControlFlowEventListeners);
for(u=Y.next();!u.done;u=Y.next())Wdm(u.value,S,P)}},Oi=function(Y,S,P){S=zt(S);
P=Gua(P);if(S instanceof WB)_.VR(S,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(P instanceof mF)_.VR(P,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var u=e3(Y);MQ(u.adEventLogger,T_h("normal"),S,P);u=_.n(u.adsControlFlowEventListeners);for(var W=u.next();!W.done;W=u.next())W.value.onLayoutExited(S,P,"normal");Y=e3(Y);Y=_.n(Y.adsControlFlowEventListeners);for(u=Y.next();!u.done;u=Y.next())nrs(u.value,S,P)}};_.Yl=_.AI(function(Y){var S=_.tI(Y,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});Y=Object.assign({},S);var P=S.data;S=S.customCommandResolver;var u=(delete Y.data,delete Y.customCommandResolver,Y),W=_.Ms();_.QR(W,function(){return P().interaction},S,function(){var c;
return(c=u.listenToTapEvent)==null?void 0:c.call(u)});
_.Yy(W,{visibilityCallback:function(c){var C,x=(C=P().interaction)==null?void 0:C.onFirstVisible;c&&(x&&_.ae(x),u.setOnErrorHandler()&&hH$(W))},
showOption:_.Xa});Y=_.n(_.qb(!1,void 0,"eiYvIe"));var m=Y.next().value,J=Y.next().value;Y=_.mR(function(){var c;((c=u.setTouchEndHandler)==null?0:c.call(u))&&!m()&&(W.value.click(),J(!0),setTimeout(function(){J(!1)},100));
return!1});
return _.R("ad-image-view-model",{class:function(){var c,C=[((c=P().interaction)==null?0:c.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],x;((x=u.isGridViewEnabled)==null?0:x.call(u))&&C.push("ytwAdImageViewModelHostInGridView");return C.join(" ")},
el:W,"on:touchend":Y},_.R("div",{class:"ytwAdImageViewModelHostImageContainer"},_.R(_.ZZ,{data:function(){var c;return{sources:P().imageSources,contentMode:(c=P().imageProperties)==null?void 0:c.contentMode}},
alt:function(){var c,C;return((c=P().interaction)==null?void 0:(C=c.accessibility)==null?void 0:C.label)||""},
targetHeight:u.targetHeight,targetWidth:u.targetWidth,preserveHeight:u.preserveHeight,preserveWidth:u.preserveWidth,useWidth:u.useWidth,style:function(){var c,C;return"vertical-align: bottom;"+(((c=P().background)==null?0:c.color)?"background-color:"+_.Gp((C=P().background)==null?void 0:C.color)+";":"")},
className:function(){return u.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var c,C;return(C=(c=u.setDraggable)==null?void 0:c.call(u))!=null?C:void 0}})))},"Va");var Gut=_.AI(function(Y){var S=Y.data,P=Y.listenToTapEvent,u=_.Ms();_.f("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.QR(u,function(){return S().interaction},void 0,function(){return P==null?void 0:P()});
_.Yy(u,{visibilityCallback:function(m){var J,c=(J=S().interaction)==null?void 0:J.onFirstVisible;m&&c&&_.ae(c)},
showOption:_.Xa});Y=_.mR(function(){if(_.f("enable_web_home_top_landscape_image_layout_legacy_click_command")){var m,J=(m=S().interaction)==null?void 0:m.onTap;J&&_.ms(u.value,"yt-navigate",{endpoint:_.vF(J)})}});
var W=function(){};
return _.R("ad-button-hover-overlay-view-model",{"on:click":Y,class:function(){var m;return((m=S().interaction)==null?0:m.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:u},function(){return _.f("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.R(_.rv,{data:function(){return S().button}},{adButtonViewModel:function(m){return _.R(_.i7,{data:m.data,
customCommandResolver:W})}}):_.R(_.rv,{data:function(){return S().button}},{adButtonViewModel:_.i7})}())},"Wa");var n6;_.AL(_.AI(function(Y){var S=Y.data;var P=_.Ms();_.f("stop_av_measurement_on_detach")&&_.aI(function(){Jh(P)});
_.QR(P,function(){return S().interaction},void 0,function(){return!0});
_.Yy(P,{visibilityCallback:function(J){if(J){var c;(J=(c=S().interaction)==null?void 0:c.onFirstVisible)&&_.ae(J);var C;if(c=(C=S().adLayoutData)==null?void 0:C.activeViewData)jb(P,c),_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Jh(P)})}else _.f("stop_av_measurement_on_detach")&&Jh(P)},
showOption:_.Xa,hideOption:Zq});Y=_.n(_.qb(!1,void 0,"yzu6qe"));var u=Y.next().value,W=Y.next().value;Y=_.mR(function(){W(!0)});
var m=_.mR(function(){W(!1)});
return _.R("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:P,"on:mouseenter":Y,"on:mouseleave":m},_.R("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Jg({"max-width":function(){return _.f("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.R("div",{class:function(){var J;
a:{var c;switch((J=_.g(S().thumbnailImage,bO))==null?void 0:(c=J.imageProperties)==null?void 0:c.renderingAspect){case "RENDERING_ASPECT_SQUARE":J="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":J="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}J=void 0}return J}},_.R(_.rv,{data:function(){return S().thumbnailImage}},{adImageViewModel:function(J){return _.R(_.Yl,
{data:J.data,
listenToTapEvent:!0,setTouchEndHandler:_.f("enable_top_landscape_image_experiment_dom_id_web")})}})),_.R("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.R(_.gw,{cond:function(){var J,c,C;
return(J=_.g(S().thumbnailImage,bO))==null?void 0:(c=J.imageProperties)==null?void 0:(C=c.overlayIcon)==null?void 0:C.iconImage},
then:function(J){return _.R(_.ZZ,{data:J,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.R("div",{class:function(){return u()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.R(_.rv,{data:function(){return S().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(J){return _.R(Gut,
{data:J.data,
listenToTapEvent:!0})}}))),_.R("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.R(_.rv,{data:function(){return S().feedAdMetadata}},{feedAdMetadataViewModel:function(J){return _.R(kbu,{data:J.data,
listenToTapEvent:!0,setTouchEndHandler:_.f("enable_top_landscape_image_experiment_dom_id_web")})}})))},"Xa"),"compact-landscape-no-button-layout-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;var P=_.Ms();_.f("stop_av_measurement_on_detach")&&_.aI(function(){Jh(P)});
var u=_.GI(_.wv);_.QR(P,function(){return S().interaction});
_.Yy(P,{visibilityCallback:function(x){if(x){var b;(x=(b=S().interaction)==null?void 0:b.onFirstVisible)&&_.ae(x);var T;if(b=(T=S().adLayoutData)==null?void 0:T.activeViewData)jb(P,b),_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Jh(P)})}else _.f("stop_av_measurement_on_detach")&&Jh(P)},
showOption:_.Xa,hideOption:Zq});var W=_.mR(function(x){var b,T,K=(b=_.g(S().adImage,bO))==null?void 0:(T=b.interaction)==null?void 0:T.onTap;K&&(_.f("enable_square_image_components_ui_web_with_custom_event")?_.ms(P.value,"yt-navigate",{endpoint:_.vF(K)}):ouY(x,K))}),m=_.mR(function(){var x,b,T=(x=_.g(S().adButton,sJi))==null?void 0:(b=x.interaction)==null?void 0:b.onTap;
T&&_.ms(P.value,"yt-navigate",{endpoint:_.vF(T)})}),J=function(){};
Y={};var c={},C={};return _.R("square-image-layout-view-model",{class:_.Si("ytwSquareImageLayoutViewModelHost",(Y.ytwSquareImageLayoutViewModelHostColumn=u,Y)),el:P},_.R("div",{class:_.Si("ytwSquareImageLayoutViewModelHostImage",(c.ytwSquareImageLayoutViewModelHostColumnImage=u,c))},function(){return _.f("enable_square_image_components_ui_web_with_native_img")?_.R("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var x,b,T;return((x=_.g(S().adImage,bO))==null?void 0:(b=x.imageSources)==
null?void 0:(T=b[0])==null?void 0:T.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":W}):_.R(_.rv,{data:function(){return S().adImage}},{adImageViewModel:function(x){return _.R(_.Yl,{data:x.data,
isGridViewEnabled:u,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.R("div",{class:_.Si("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(C.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=u,C))},_.R(_.rv,{data:function(){return S().feedAdMetadata}},{feedAdMetadataViewModel:kbu}),function(){return _.f("enable_square_image_components_ui_web_with_float_button")?_.R("div",{"on:click":m},_.R(_.rv,{data:function(){return S().adButton}},
{adButtonViewModel:function(x){var b={};
return _.R(_.i7,{data:x.data,customCommandResolver:J,className:_.Si((b.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,b.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=u,b))})}})):_.R(_.rv,{data:function(){return S().adButton}},{adButtonViewModel:function(x){var b={};
return _.R(_.i7,{data:x.data,className:_.Si((b.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,b.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=u,b))})}})}()))},"Ya"),"square-image-layout-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;var P=Y.noBottomMargin;var u=_.Ms();_.f("stop_av_measurement_on_detach")&&_.aI(function(){Jh(u)});
_.f("enable_web_home_top_landscape_image_layout_level_click")&&_.QR(u,function(){return S().interaction},void 0,function(){return!0});
Y=function(){return S().interaction};
Y!==void 0&&Y!==null||_.AA(Error("Lh"));_.Yy(u,{visibilityCallback:function(x){if(x){var b;(x=(b=S().interaction)==null?void 0:b.onFirstVisible)&&_.ae(x);var T;if(b=(T=S().adLayoutData)==null?void 0:T.activeViewData)jb(u,b),_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Jh(u)})}else _.f("stop_av_measurement_on_detach")&&Jh(u)},
showOption:_.Xa,hideOption:Zq});var W=function(){var x,b,T;return(x=_.g(S().thumbnailImage,bO))==null?void 0:(b=x.background)==null?void 0:(T=b.backgroundImageSource)==null?void 0:T.imageSources};
Y=_.n(_.qb(!1,void 0,"rWKgsf"));var m=Y.next().value,J=Y.next().value;Y=_.mR(function(){J(!0)});
var c=_.mR(function(){J(!1)}),C=function(){return m()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.R("top-landscape-image-layout-view-model",{class:function(){var x;return((x=S().interaction)==null?0:x.onTap)&&_.f("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:u,"on:mouseenter":Y,"on:mouseleave":c},_.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.R(_.gw,{cond:function(){return W()&&W().length>0},
then:function(){return _.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Jg({top:"0","background-image":function(){return"url("+String(W()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.R(_.gw,{cond:function(){return!!S().adButtonHoverOverlay},
then:function(){return _.R("div",{class:C},_.R(_.rv,{data:function(){return S().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:Gut}))}}),_.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.R(_.rv,{data:function(){return S().thumbnailImage}},{adImageViewModel:function(x){return _.R(_.Yl,{data:x.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.f("enable_web_home_top_landscape_image_layout_level_click")})}})),_.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.R(_.ZZ,{data:{sources:[{clientResource:{imageName:_.f("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.R(_.rv,{data:function(){return S().feedAdMetadata}},{feedAdMetadataViewModel:function(x){return _.R(kbu,{data:x.data,
noBottomMargin:function(){return P==null?void 0:P()},
listenToTapEvent:function(){return _.f("enable_web_home_top_landscape_image_layout_level_click")}})}})))},"Za"),"top-landscape-image-layout-view-model",{props:{data:_.wm,
noBottomMargin:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;var P=_.Ms();_.f("stop_av_measurement_on_detach")&&_.aI(function(){Jh(P)});
_.Yy(P,{visibilityCallback:function(u){if(u){var W;(u=(W=S().interaction)==null?void 0:W.onFirstVisible)&&_.ae(u);var m;if(W=(m=S().adLayoutData)==null?void 0:m.activeViewData)jb(P,W),_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Jh(P)})}else _.f("stop_av_measurement_on_detach")&&Jh(P)},
showOption:_.Xa,hideOption:Zq});return _.R("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:P},_.R("div",null,_.R(_.rv,{data:function(){return S().videoLockup}},{lockupViewModel:function(u){return _.R(kw,{data:u.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999})}})))},"$a"),"video-display-button-group-layout-view-model",{props:{data:_.wm,
noBottomMargin:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;var P=_.Ms();_.f("stop_av_measurement_on_detach")&&_.aI(function(){Jh(P)});
_.Yy(P,{visibilityCallback:function(u){if(u){var W;(u=(W=S().interaction)==null?void 0:W.onFirstVisible)&&_.ae(u);var m;if(W=(m=S().adLayoutData)==null?void 0:m.activeViewData)jb(P,W),_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Jh(P)})}else _.f("stop_av_measurement_on_detach")&&Jh(P)},
showOption:_.Xa,hideOption:Zq});return _.R("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:P},_.R("div",null,_.R(_.rv,{data:function(){return S().videoLockup}},{lockupViewModel:function(u){return _.R(kw,{data:u.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999})}})))},"ab"),"video-display-full-layout-view-model",{props:{data:_.wm,
noBottomMargin:_.wm}});_.hHh=_.AI(function(Y){var S=Y.data;Y=_.Ms();return _.R("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:Y},_.R(_.gw,{cond:function(){return S().imageBadge},
then:function(P){return _.R(_.ZZ,{data:P,alt:""})}}))},"bb");var vrh=_.AI(function(Y){var S=Y.data;var P=Y.customCommandResolver;Y=_.Ms();_.QR(Y,function(){return S().interaction},P);
_.Yy(Y,{visibilityCallback:function(u){var W,m=(W=S().interaction)==null?void 0:W.onFirstVisible;u&&m&&_.ae(m)},
showOption:_.Xa});return _.R("carousel-ad-card-image-view-model",{class:function(){var u;return((u=S().interaction)==null?0:u.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:Y,"aria-label":function(){var u,W;return(u=S().interaction)==null?void 0:(W=u.accessibility)==null?void 0:W.label}},_.R(_.rv,{data:function(){return S().adImage}},{adImageViewModel:function(u){return _.R(_.Yl,{data:u.data,
customCommandResolver:P})}}),_.R("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.R(_.rv,{data:function(){return S().badge}},{adCardBadgeViewModel:_.hHh})),_.R(_.RF,{model:{color:4}}))},"cb");var DOL=_.AI(function(Y){var S=_.n(_.qb(0,void 0,"o9Bzd")),P=S.next().value;S.next();var u=S.next().value,W=_.n(_.qb(!1,void 0,"KLdzYe"));S=W.next().value;var m=W.next().value,J;_.aI(function(){clearTimeout(J)});
W=_.mR(function(){var x;((x=Y.animate)==null?0:x.call(Y))?(m(!0),J=setTimeout(function(){m(!1);c()},200)):c();
return!1});
var c=function(){u(function(x){return(x+Y.numShownItems())%Y.data().length})},C={};
return _.R("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.R("div",{class:_.Si("ytwHorizontalCarouselCarouselWrapper")},_.R("div",{class:_.Si("ytwHorizontalCarouselCarouselInnerWrapper",(C.ytwHorizontalCarouselAnimating=S,C))},_.R(_.$Z,{each:Y.data,keyBy:"INDEX"},function(x,b){return _.R("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Jg({"flex-basis":function(){return"calc((100% - (8px * "+(Y.numShownItems()-1)+")) / "+Y.numShownItems()+")"},
order:function(){var T=b-P();T<0&&(T+=Y.data().length);return T}})},Y.children(x,b))}))),_.R("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":W},Y.nextButton()))},"db");var IEU=_.AI(function(Y){var S=Y.data;var P=Y.customCommandResolver;var u=Y.expansive;Y=_.Ms();_.Yy(Y,{visibilityCallback:function(W){var m,J=(m=S().interaction)==null?void 0:m.onFirstVisible;W&&J&&_.ae(J)},
showOption:_.Xa});return _.R("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:Y},_.R(DOL,{data:function(){var W;return((W=S())==null?void 0:W.carouselAdCards)||[]},
nextButton:function(){return _.R(_.rv,{data:function(){return S().nextButton}},{buttonViewModel:function(W){var m=W.data;
return _.R(_.aq,{data:function(){return(u==null?0:u())?Object.assign({},m(),{style:"mono"}):m()},
className:_.f("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(W){return _.R(_.rv,{data:W},{carouselAdCardImageViewModel:function(m){return _.R(vrh,{data:m.data,customCommandResolver:P})}})}))},"eb");var aE6=_.AI(function(Y){var S=Y.data;var P=Y.customCommandResolver;var u=Y.className;var W=Y.buttonClassName;var m=Y.animationEntityKey;var J=Y.expansive;return _.R("carousel-button-view-model",{class:_.Si("ytwCarouselButtonViewModelHost",u)},_.R(_.rv,{data:function(){return S().carousel}},{carouselAdCardCollectionViewModel:function(c){return _.R(IEU,{data:c.data,
customCommandResolver:P,expansive:J})}}),_.R(_.rv,{data:function(){return S().button}},{adButtonViewModel:function(c){var C=c.data;
return _.R(_.i7,{data:function(){return(J==null?0:J())?Object.assign({},C(),{style:"AD_BUTTON_STYLE_TONAL"}):C()},
className:W,customCommandResolver:P,animationEntityKey:m})}}))},"fb");_.Ldf=_.AI(function(Y){var S=Y.data;Y=Y.className;var P=_.Ms();_.LE(function(){var u;((u=S())==null?0:u.backgroundColor)&&P.value.setAttribute("data-background-color",String(S().backgroundColor))});
return _.R("pivot-button-view-model",{el:P,class:_.Si("ytwPivotButtonViewModelHost",Y)},_.R(_.CR,{command:function(){var u=S();u=u.onClickCommand?_.vF(u.onClickCommand):u.contentDescription?_.ek(u.contentDescription):void 0;return u},
ariaLabel:function(){return S().contentDescription}},_.R(_.gw,{cond:function(){return S().thumbnail},
then:function(u){return _.R(_.ZZ,{data:u,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.R(_.gw,{cond:function(){return S().icon},
then:function(u){return _.R(_.BX,{icon:function(){return u().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"gb");_.wN_=_.AI(function(Y){var S=Y.data;var P=Y.buttonShapeOverrideables;return _.R("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.R(_.rv,{data:function(){return S().buttonViewModels}},{buttonViewModel:function(u){return _.R(_.aq,{data:u.data,
buttonOverrides:P})},
likeButtonViewModel:function(u){return _.R(_.P5f,{data:u.data,buttonShapeOverrideables:P})},
dislikeButtonViewModel:function(u){return _.R(_.SAs,{data:u.data,buttonShapeOverrideables:P})}}))},"hb");var pNu=_.AI(function(Y){var S=Y.avatar;var P=Y.headline;var u=Y.badge;var W=Y.description;var m=Y.expansive;Y={};return _.R("yt-ad-metadata-shape",{class:_.Si("ytAdMetadataShapeHost",(Y.ytAdMetadataShapeHostLarge=m,Y))},_.R("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.R(_.gw,{cond:S,then:function(J){return _.R(_.tzu,{data:function(){return(m==null?0:m())?Object.assign({},J(),{size:"AD_AVATAR_SIZE_MPLUS"}):J()}})}}),_.R("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.R(_.qw,{text:P,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.R(_.gw,{cond:u,then:function(J){return _.R(_.UJ,{data:function(){return(m==null?0:m())?Object.assign({},J(),{style:"AD_BADGE_STYLE_STARK"}):J()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.R("h2",{class:"ytAdMetadataShapeHostDescription"},_.R(_.qw,{text:W,
linkInheritColor:!0})))},"ib");var Fdt=_.AI(function(Y){var S=Y.data;var P=Y.onShow;var u=Y.expansive;Y=_.Ms();_.QR(Y,function(){return S().interaction});
_.LE(function(){var m,J=(m=S().animatedRenderingConfig)==null?void 0:m.delayedSecondsToVisible;if(J){var c=setTimeout(P,J*1E3);_.aI(function(){clearTimeout(c)})}});
var W={};return _.R("reels-ad-card-buttoned-view-model",{class:_.Si(function(){var m;return((m=S().interaction)==null?0:m.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(W.ytwReelsAdCardButtonedViewModelHostExpansive=u,W)),
el:Y},_.R(pNu,{avatar:function(){return _.g(S().avatar,pWU)},
headline:function(){return S().headline},
badge:function(){return _.g(S().adBadge,FX_)},
description:function(){return S().description},
expansive:u}),_.R(_.rv,{data:function(){return S().ctaButton}},{adButtonViewModel:function(m){var J=m.data;
return _.R(_.i7,{data:function(){return(u==null?0:u())?Object.assign({},J(),{style:"AD_BUTTON_STYLE_FILLED"}):J()}})}}))},"jb");var swL=_.AI(function(Y){var S=Y.data;Y=Y.expansive;var P=_.Ms();_.f("web_ad_metadata_clickable")&&_.QR(P,function(){return S().interaction});
var u={};u=_.uN("ytwReelsAdMetadataViewModelHost",(u.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.f("web_ad_metadata_clickable"),u));return _.R("reels-ad-metadata-view-model",{class:u,el:P},_.R(pNu,{avatar:function(){return _.g(S().avatar,pWU)},
headline:function(){return S().headline},
badge:function(){return _.g(S().adBadge,FX_)},
description:function(){return S().description},
expansive:Y}))},"kb");var dOJ={iconPosition:"icon-with-label",size:"L"},lE3=_.AI(function(Y){var S=Y.data;Y=Y.overlayDensity;var P=_.Ms(),u=_.o_(Y,0);_.D6(function(){P.value.setAttribute("overlay-density",String(u()))});
var W=function(){var T;return(T=S().reelsAdCardButtonedEntityKey)!=null?T:""},m=function(){return W()+"/ad_button"},J=_.Jq(w8h,W),c=function(){var T,K;
return(K=(T=J())==null?void 0:T.value)!=null?K:!1},C=_.GI(wNY),x=function(){return Object.assign({},dOJ,(C()||u()===2)&&{style:"overlay-dark"})};
Y={};var b={};return _.R("reels-player-overlay-layout-view-model",{class:_.Si("ytwReelsPlayerOverlayLayoutViewModelHost",(Y.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!S().extension},Y.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},Y)),
el:P},_.R("div",{class:_.Si("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(b.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},b))},_.R("div",{"aria-hidden":function(){return c()},
class:_.Si("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return c()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Jg({"transition-duration":function(){return swU(S())}})},_.R(_.rv,{data:function(){return S().adMetadata}},{reelsAdMetadataViewModel:function(T){return _.R(swL,{data:T.data,
expansive:function(){return u()===1}})}}),_.R(_.gw,{cond:function(){return S().extension},
then:function(T){return _.R("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.R(_.rv,{data:T},{adButtonViewModel:function(K){return _.R(_.i7,{data:K.data,animationEntityKey:m,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(K){return _.R(aE6,{data:K.data,animationEntityKey:m,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return u()===1}})}}))}})),_.R("div",{"aria-hidden":function(){return!c()},
class:_.Si("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return c()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Jg({"transition-duration":function(){return swU(S())}})},_.R(_.rv,{data:function(){return S().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(T){return _.R(Fdt,{data:T.data,
onShow:function(){_.ip(_.qE("booleanEntity",W(),{key:W(),value:!0}))},
expansive:function(){return u()===1}})}}))),_.R("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.R(_.rv,{data:function(){return S().actions}},{reelActionBarViewModel:function(T){return _.R(_.wN_,{data:T.data,
buttonShapeOverrideables:x})}}),_.R(_.rv,{data:function(){return S().menu}},{buttonViewModel:function(T){return _.R(_.aq,{data:T.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},x(),{type:"tonal"})}})}}),_.R(_.rv,{data:function(){return S().pivotButton}},{pivotButtonViewModel:function(T){return _.R(_.Ldf,{data:T.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"lb");_.AL(lE3,"reels-player-overlay-layout-view-model",{props:{data:_.wm,overlayDensity:_.wm}});var S6=function(){var Y=_.Z.apply(this,arguments)||this;Y.noBottomMargin=!1;Y.overlayDensity=0;return Y};
_.r(S6,_.Z);_.z=S6.prototype;
_.z.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.f("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.z.ready=function(){var Y=this;W_h(function(){Y.isAttached&&PB(Y.JSC$13271_storedAdSlotMetadata,Y.JSC$13271_storedAdLayoutMetadata,Y.adSlotMetadata,Y.adLayoutMetadata)&&Oi(VF(),Y.JSC$13271_storedAdSlotMetadata,Y.JSC$13271_storedAdLayoutMetadata)})};
_.z.attached=function(){PB(this.JSC$13271_storedAdSlotMetadata,this.JSC$13271_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&rUf(VF(),this.JSC$13271_storedAdSlotMetadata,this.JSC$13271_storedAdLayoutMetadata)};
_.z.detached=function(){PB(this.JSC$13271_storedAdSlotMetadata,this.JSC$13271_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Oi(VF(),this.JSC$13271_storedAdSlotMetadata,this.JSC$13271_storedAdLayoutMetadata)};
_.z.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13271_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13271_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13271_storedAdLayoutMetadata!==void 0&&this.JSC$13271_storedAdSlotMetadata!==void 0&&Oi(VF(),this.JSC$13271_storedAdSlotMetadata,this.JSC$13271_storedAdLayoutMetadata),rUf(VF(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13271_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13271_storedAdSlotMetadata=this.adSlotMetadata)};
_.y6.Object.defineProperties(S6.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.adLayoutMetadata}}});
S6.prototype.onAdMetadataChanged=S6.prototype.onAdMetadataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],S6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],S6.prototype,"rendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],S6.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],S6.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],S6.prototype,"noBottomMargin",void 0);_.Q([_.X(),_.k("design:type",Object)],S6.prototype,"overlayDensity",void 0);_.Q([_.d("data.adLayoutMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],S6.prototype,"adLayoutMetadata",null);_.Q([_.X(),_.k("design:type",Object)],S6.prototype,"adSlotMetadata",void 0);
_.Q([_.zY("adLayoutMetadata","adSlotMetadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S6.prototype,"onAdMetadataChanged",null);S6=_.Q([_.t({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],S6);
_.A(S6,"ytd-in-feed-ad-layout-renderer",function(){if(Dts!==void 0)return Dts;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Dts=Y},
{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var XNm;var ZFu;var PS=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return Y};
_.r(PS,_.Z);_.z=PS.prototype;_.z.computeHasLiveDescription=function(Y){return!(Y==null||!Y.liveDescription)};
_.z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.z.onYtToggleButton=function(Y){var S,P=(S=this.data)==null?void 0:S.videoReminderEntityKey;P&&this.ytdReduxBehavior.dispatch(_.qE("upcomingEventReminderStateEntity",P,{key:P,state:Y.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.z.attached=function(){this.updateChannelBanner()};
_.z.dataChanged=function(){this.updateChannelBanner()};
_.z.videoReminderStateChanged=function(){var Y;this.videoReminderState&&_.g((Y=this.data)==null?void 0:Y.cta,_.a8)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.z.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var Y=_.UD(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);Y&&(Y.startsWith("//")&&(Y="https:"+Y),this.hostElement.classList.add("channel-banner"),_.PZ(this.hostElement,{"--ytvmh-channel-banner":"url("+Y+")"}))}else _.f("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.z.onPlayerReady=function(){this.onIronResize()};
_.z.maybeFlushDebouncer=function(){_.f("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(Y){var S;Y=(S=Y.getElementsByTagName("yt-attributed-string"))==null?void 0:S[0];GwK(Y==null?void 0:Y.polymerController)})};
_.z.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var Y=_.I(this.hostElement).querySelector("#live-description"),S;Y&&((S=this.data)==null?0:S.shortLiveDescription)&&Y.clientWidth<Y.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
PS.prototype.onIronResize=PS.prototype.onIronResize;PS.prototype.videoReminderStateChanged=PS.prototype.videoReminderStateChanged;PS.prototype.dataChanged=PS.prototype.dataChanged;PS.prototype.onYtToggleButton=PS.prototype.onYtToggleButton;_.Q([_.p(_.G8),_.k("design:type",Object)],PS.prototype,"ironResizableBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],PS.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],PS.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],PS.prototype,"data",void 0);_.Q([_.X({selectorArgs:["data.videoReminderEntityKey"],selector:DNf}),_.k("design:type",Object)],PS.prototype,"videoReminderState",void 0);
_.Q([_.X({reflectToAttribute:!0,value:_.f("web_modern_buttons")}),_.k("design:type",Boolean)],PS.prototype,"rounded",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.k("design:type",Boolean)],PS.prototype,"hasLiveDescription",void 0);_.Q([_.X({reflectToAttribute:!0,value:_.f("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.k("design:type",Boolean)],PS.prototype,"resizableAdBannerSafariFix",void 0);
_.Q([_.X({reflectToAttribute:!0,value:_.f("align_three_dot_menu_with_title_description")}),_.k("design:type",Boolean)],PS.prototype,"menuFix",void 0);_.Q([_.jD("yt-formatted-string"),_.k("design:type",Array)],PS.prototype,"formattedStrings",void 0);_.Q([_.nc("#cta-button"),_.k("design:type",HTMLElement)],PS.prototype,"ctaButton",void 0);_.Q([_.WZ("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],PS.prototype,"onYtToggleButton",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PS.prototype,"dataChanged",null);_.Q([_.zY("videoReminderState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PS.prototype,"videoReminderStateChanged",null);_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PS.prototype,"onIronResize",null);
PS=_.Q([_.t({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],PS);
_.A(PS,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(ZFu!==void 0)return ZFu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ZFu=Y},{mode:1});var iFS;var uF=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};Y.isLocked=!1;return Y};
_.r(uF,_.Z);_.z=uF.prototype;_.z.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.z.onExpandedChanged=function(){this.expanded&&_.jR(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.z.onMouseOver=function(){this.maybeExpand()};
_.z.onTap=function(){this.maybeExpand()};
_.z.onExpandableTileExpanding=function(Y){Y!==this&&(this.expanded=!1)};
_.z.onExpandableTileLockAndCollapse=function(Y){this.isLocked=!0;Y!==this&&(this.expanded=!1)};
_.z.onExpandableTileUnlock=function(){this.isLocked=!1};
uF.prototype.onTap=uF.prototype.onTap;uF.prototype.onMouseOver=uF.prototype.onMouseOver;uF.prototype.onExpandedChanged=uF.prototype.onExpandedChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],uF.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],uF.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],uF.prototype,"expanded",void 0);_.Q([_.cZ("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uF.prototype,"onExpandedChanged",null);_.Q([_.WZ("mouseover"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uF.prototype,"onMouseOver",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uF.prototype,"onTap",null);
uF=_.Q([_.t({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],uF);
_.A(uF,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(iFS!==void 0)return iFS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return iFS=Y},{mode:1});var ord;var WS=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonOverrides={style:"overlay"};Y.useYtdPlayer=_.f("use_ytd_player_for_desktop_masthead");Y.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};Y.playbackFinished=!1;Y.JSC$13283_playerManager=null;Y.JSC$13283_mastheadCounter=new ixd;return Y};
_.r(WS,_.Z);_.z=WS.prototype;_.z.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"}}}};
_.z.created=function(){this.JSC$13283_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13283_playerManager=new me)};
_.z.ready=function(){var Y=this;this.JSC$13283_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var S=_.I(this.hostElement).querySelector("#player");this.useYtdPlayer?S.style.display="none":(this.ytdPlayer.style.display="none",Nb3(this.JSC$13283_playerManager,S,function(){Y.onPlaybackEnded()}),_.I(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var P;
((P=Y.data)==null?0:P.navigationEndpoint)&&_.ms(Y.hostElement,"yt-navigate",{endpoint:Y.data.navigationEndpoint})}))};
_.z.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13283_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.z.attached=function(){var Y=this;_.w0(function(){Y.maybePlayVideo()})};
_.z.maybePlayVideo=function(){var Y=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$13283_playerManager.playVideo(),this.getPlayerPromise().then(function(){Y.JSC$13283_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.z.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13283_playerManager.stopVideo()};
_.z.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var Y,S={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((Y=this.data.playbackStartMs)!=null?Y:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(S);this.setupYtdPlayer()}else V3J(this.JSC$13283_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(Hi6(this.JSC$13283_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.z.getPlayerPromise=function(){return this.JSC$13283_playerManager.getPlayerPromise()};
_.z.onYtToggleButton=function(Y){this.useYtdPlayer?this.toggleMute(Y.detail.toggled):Y.detail.toggled?this.JSC$13283_playerManager.mute():this.JSC$13283_playerManager.unMute()};
_.z.onYtNavigate=function(Y){var S=mc1(Y.detail.endpoint),P=nR8(this.data.clickthroughReportingData);S&&P&&(Y.detail.endpoint.watchEndpoint?Y.detail.tempData=P:_.ef(S,P,30))};
_.z.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.z.onExpandedChanged=function(){this.expanded?(_.jR(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.z.onMouseOver=function(){this.maybeExpand()};
_.z.onTap=function(){this.maybeExpand()};
_.z.onExpandableTileExpanding=function(Y){Y!==this&&(this.stopVideo(),this.expanded=!1)};
_.z.onExpandableTileLockAndCollapse=function(Y){Y!==this&&(this.isLocked=!0,this.expanded=!1)};
_.z.onExpandableTileUnlock=function(){this.isLocked=!1};
_.z.lockAndCollapseExpandableTiles=function(){_.nb(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.z.unlockExpandableTiles=function(){_.nb(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.z.setupYtdPlayer=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,Y.ytdPlayer.getPlayerPromise(),2);S=P.yieldResult;S.addEventListener("onStateChange",function(u){Y.onPlayerStateChange(u)});
S.addEventListener("onCueRangeExit",function(u){Y.onCueRangeExit(u)});
_.Yt(P)})};
_.z.onPlayerStateChange=function(Y){if(Y===1&&(Y=this.ytdPlayer.getPlayer())){var S=Y.getCurrentTime(),P,u,W=S+((u=(P=this.data)==null?void 0:P.playbackDurationMs)!=null?u:0)/1E3;Y.addCueRange("playback",S,W);this.JSC$13283_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.z.onCueRangeExit=function(Y){Y==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.z.toggleMute=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,S.ytdPlayer.getPlayerPromise(),2);P=u.yieldResult;Y?P.mute():P.unMute();_.Yt(u)})};
WS.prototype.onTap=WS.prototype.onTap;WS.prototype.onMouseOver=WS.prototype.onMouseOver;WS.prototype.onExpandedChanged=WS.prototype.onExpandedChanged;WS.prototype.onYtNavigate=WS.prototype.onYtNavigate;WS.prototype.onYtToggleButton=WS.prototype.onYtToggleButton;WS.prototype.dataChanged=WS.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],WS.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],WS.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],WS.prototype,"expanded",void 0);_.Q([_.X(),_.k("design:type",Object)],WS.prototype,"buttonOverrides",void 0);
_.Q([_.X(),_.k("design:type",Object)],WS.prototype,"useYtdPlayer",void 0);_.Q([_.nc("#ytd-player"),_.k("design:type",Object)],WS.prototype,"ytdPlayer",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WS.prototype,"dataChanged",null);_.Q([_.WZ("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],WS.prototype,"onYtToggleButton",null);
_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],WS.prototype,"onYtNavigate",null);_.Q([_.cZ("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WS.prototype,"onExpandedChanged",null);_.Q([_.WZ("mouseover"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WS.prototype,"onMouseOver",null);
_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WS.prototype,"onTap",null);WS=_.Q([_.t({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],WS);
_.A(WS,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(ord!==void 0)return ord;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ord=Y},{mode:1});var twU;var zx=function(){return _.Z.apply(this,arguments)||this};
_.r(zx,_.Z);zx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zx.prototype.onShow=function(){var Y=_.I(this.hostElement).querySelector("#live-description"),S;Y&&((S=this.data)==null?0:S.shortLiveDescription)&&Y.clientWidth<Y.scrollWidth&&this.hostElement.classList.add("short-live-description")};
zx.prototype.onYtToggleButton=function(Y){var S,P=(S=this.data)==null?void 0:S.videoReminderEntityKey;P&&this.ytdReduxBehavior.dispatch(_.qE("upcomingEventReminderStateEntity",P,{key:P,state:Y.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
zx.prototype.videoReminderStateChanged=function(){var Y;this.videoReminderState&&_.g((Y=this.data)==null?void 0:Y.cta,_.a8)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
zx.prototype.videoReminderStateChanged=zx.prototype.videoReminderStateChanged;zx.prototype.onYtToggleButton=zx.prototype.onYtToggleButton;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],zx.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],zx.prototype,"data",void 0);
_.Q([_.X({selectorArgs:["data.videoReminderEntityKey"],selector:DNf}),_.k("design:type",Object)],zx.prototype,"videoReminderState",void 0);_.Q([_.WZ("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],zx.prototype,"onYtToggleButton",null);_.Q([_.zY("videoReminderState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zx.prototype,"videoReminderStateChanged",null);
zx=_.Q([_.t({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],zx);
_.A(zx,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(twU!==void 0)return twU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return twU=Y},{mode:_.OX("kevlar_poly_si_batch_j065")?1:2});var AU_;var mC=function(){var Y=_.Z.apply(this,arguments)||this;Y.useYtdPlayer=_.f("use_ytd_player_for_desktop_masthead");Y.buttonOverrides={style:"overlay"};Y.JSC$13291_playerManager=null;Y.JSC$13291_mastheadCounter=new ixd;Y.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return Y};
_.r(mC,_.Z);_.z=mC.prototype;_.z.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"}}}};
_.z.created=function(){this.JSC$13291_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13291_playerManager=new me)};
_.z.ready=function(){var Y=this;this.JSC$13291_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var S;(S=this.embeddedPlayer)==null||S.remove()}else{var P;(P=this.ytdPlayer)==null||P.remove();Nb3(this.JSC$13291_playerManager,this.embeddedPlayer,function(){Y.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){Y.data&&Y.data.navigationEndpoint&&_.ms(Y.hostElement,"yt-navigate",{endpoint:Y.data.navigationEndpoint})})}};
_.z.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13291_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.z.dataChanged=function(){var Y=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var S=!this.data.disableAutoPlayback,P,u={autoplay:S,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((P=this.data.playbackStartMs)!=null?P:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(S?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(u);this.setupYtdPlayer()}else V3J(this.JSC$13291_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(Hi6(this.JSC$13291_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13291_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.nb(Y.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");Y.JSC$13291_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.z.getPlayerPromise=function(){return this.JSC$13291_playerManager.getPlayerPromise()};
_.z.onYtToggleButton=function(Y){this.useYtdPlayer?this.toggleMute(Y.detail.toggled):Y.detail.toggled?this.JSC$13291_playerManager.mute():this.JSC$13291_playerManager.unMute()};
_.z.onYtNavigate=function(Y){var S=mc1(Y.detail.endpoint),P=nR8(this.data.clickthroughReportingData);S&&P&&(Y.detail.endpoint.watchEndpoint?Y.detail.tempData=P:_.ef(S,P,30))};
_.z.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13291_playerManager.stopVideo()};
_.z.setupYtdPlayer=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,Y.ytdPlayer.getPlayerPromise(),2);S=P.yieldResult;S.addEventListener("onStateChange",function(u){Y.onPlayerStateChange(u)});
S.addEventListener("onCueRangeExit",function(u){Y.onCueRangeExit(u)});
_.Yt(P)})};
_.z.onPlayerStateChange=function(Y){if(Y===1&&(Y=this.ytdPlayer.getPlayer())){var S=Y.getCurrentTime(),P,u,W=S+((u=(P=this.data)==null?void 0:P.playbackDurationMs)!=null?u:0)/1E3;Y.addCueRange("playback",S,W);_.nb(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13291_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.z.onCueRangeExit=function(Y){Y==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.z.toggleMute=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,S.ytdPlayer.getPlayerPromise(),2);P=u.yieldResult;Y?P.mute():P.unMute();_.Yt(u)})};
_.y6.Object.defineProperties(mC.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var Y,S;if(!((Y=this.data)==null?0:(S=Y.accessibilityData)==null?0:S.label))return"Ad primary link";var P,u;return _.Td("AD_TITLE",{title:(P=this.data)==null?void 0:(u=P.accessibilityData)==null?void 0:u.label})}}});
mC.prototype.onYtMastheadHidden=mC.prototype.onYtMastheadHidden;mC.prototype.onYtNavigate=mC.prototype.onYtNavigate;mC.prototype.onYtToggleButton=mC.prototype.onYtToggleButton;mC.prototype.dataChanged=mC.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],mC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],mC.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],mC.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],mC.prototype,"useYtdPlayer",void 0);_.Q([_.nc("ytd-toggle-button-renderer"),_.k("design:type",Object)],mC.prototype,"muteButton",void 0);_.Q([_.X(),_.k("design:type",Object)],mC.prototype,"buttonOverrides",void 0);
_.Q([_.d("data.accessibilityData.label"),_.k("design:type",String),_.k("design:paramtypes",[])],mC.prototype,"titleAriaLabel",null);_.Q([_.nc("#replay-button"),_.k("design:type",Object)],mC.prototype,"replayButton",void 0);_.Q([_.nc("#player-container"),_.k("design:type",Object)],mC.prototype,"playerContainer",void 0);_.Q([_.nc("#player"),_.k("design:type",Object)],mC.prototype,"embeddedPlayer",void 0);_.Q([_.nc("#ytd-player"),_.k("design:type",Object)],mC.prototype,"ytdPlayer",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mC.prototype,"dataChanged",null);_.Q([_.WZ("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],mC.prototype,"onYtToggleButton",null);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],mC.prototype,"onYtNavigate",null);
_.Q([_.WZ("yt-masthead-hidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mC.prototype,"onYtMastheadHidden",null);mC=_.Q([_.t({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],mC);
_.A(mC,"ytd-video-masthead-ad-primary-video-renderer",function(){if(AU_!==void 0)return AU_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return AU_=Y},{mode:2});var UOm;var nm=function(){var Y=_.Z.apply(this,arguments)||this;Y.collapsed=!1;Y.impressionResolver=_.dL();Y.JSC$13295_activeViewMeasurementDataResolver=_.dL();Y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return Y};
_.r(nm,_.Z);_.z=nm.prototype;_.z.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"}}}};
_.z.ready=function(){var Y=this;_.I(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){Y.expandAd()});
this.hostElement.addEventListener("yt-action",function(S){if(S.detail.actionName==="yt-service-request"){var P=S.detail.args[1];P.videoMastheadAdMuteCommand&&(Y.collapseAd(P.videoMastheadAdMuteCommand.encryptedMastheadId),S.stopPropagation())}})};
_.z.attached=function(){var Y=this;_.w0(function(){Y.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(S){if(!Y.collapsed){S=_.n(S);for(var P=S.next();!P.done;P=S.next())P=P.value,Qn(P.baseUrl,P.attributionSrcMode);Y.data.impressionCommand=void 0}});
this.JSC$13295_activeViewMeasurementDataResolver.promise.then(function(S){Y.ytdActiveViewBehavior.enableActiveViewMeasurement(S,15)});
_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.z.dataChanged=function(){var Y;((Y=this.data.impressionCommand)==null?0:Y.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var S;((S=this.data)==null?0:S.activeView)&&this.JSC$13295_activeViewMeasurementDataResolver.resolve(this.data.activeView);(Y=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(Y.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.z.computeWidescreen=function(Y){var S;return!!(Y&&((S=_.g(Y,Dif))==null?0:S.isWidescreen))};
_.z.computeExpandable=function(Y){return!!(Y&&Y.length>0)};
_.z.onIronResize=function(){if(this.expandable){var Y=_.I(this.hostElement).querySelector("#expandable-tile-container :first-child");Y&&!Y.expanded&&(Y.expanded=!0)}};
_.z.handleMuteAd=function(){this.collapseAd(null)};
_.z.restoreCollapsedState=function(Y){this.collapsed=_.$o().get("HIDDEN_MASTHEAD_ID")===Y};
_.z.collapseAd=function(Y){if(Y){var S=_.$o();S.set("HIDDEN_MASTHEAD_ID",Y);S.save()}(Y=_.I(this.hostElement).querySelector("#video"))&&_.ms(Y,"yt-masthead-hidden");this.collapsed=!0};
_.z.expandAd=function(){var Y=_.$o();Y.set("HIDDEN_MASTHEAD_ID",!1);Y.save();location.reload()};
_.z.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
nm.prototype.onIronResize=nm.prototype.onIronResize;nm.prototype.dataChanged=nm.prototype.dataChanged;_.Q([_.p(_.G8),_.k("design:type",Object)],nm.prototype,"ironResizableBehavior",void 0);_.Q([_.p($R),_.k("design:type",Object)],nm.prototype,"ytdActiveViewBehavior",void 0);_.Q([_.p(_.I5),_.k("design:type",Object)],nm.prototype,"ytdGridStateAwareBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],nm.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],nm.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.k("design:type",Boolean)],nm.prototype,"widescreen",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.k("design:type",Boolean)],nm.prototype,"expandable",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],nm.prototype,"collapsed",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nm.prototype,"dataChanged",null);
_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nm.prototype,"onIronResize",null);nm=_.Q([_.t({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],nm);
_.A(nm,"ytd-video-masthead-ad-v3-renderer",function(){if(UOm!==void 0)return UOm;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return UOm=Y},{mode:2});var j6=function(){return _.Z.apply(this,arguments)||this};
_.r(j6,_.Z);_.z=j6.prototype;_.z.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.z.ready=function(){var Y=this;W_h(function(){Y.isAttached&&PB(Y.JSC$13300_storedAdSlotMetadata,Y.JSC$13300_storedAdLayoutMetadata,Y.adSlotMetadata,Y.adLayoutMetadata)&&Oi(VF(),Y.JSC$13300_storedAdSlotMetadata,Y.JSC$13300_storedAdLayoutMetadata)})};
_.z.attached=function(){PB(this.JSC$13300_storedAdSlotMetadata,this.JSC$13300_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&rUf(VF(),this.JSC$13300_storedAdSlotMetadata,this.JSC$13300_storedAdLayoutMetadata)};
_.z.detached=function(){PB(this.JSC$13300_storedAdSlotMetadata,this.JSC$13300_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Oi(VF(),this.JSC$13300_storedAdSlotMetadata,this.JSC$13300_storedAdLayoutMetadata)};
_.z.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13300_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13300_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13300_storedAdLayoutMetadata!==void 0&&this.JSC$13300_storedAdSlotMetadata!==void 0&&Oi(VF(),this.JSC$13300_storedAdSlotMetadata,this.JSC$13300_storedAdLayoutMetadata),rUf(VF(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13300_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13300_storedAdSlotMetadata=this.adSlotMetadata)};
_.y6.Object.defineProperties(j6.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.adLayoutMetadata}}});
j6.prototype.onAdMetadataChanged=j6.prototype.onAdMetadataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],j6.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],j6.prototype,"data",void 0);_.Q([_.d("data.adLayoutMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],j6.prototype,"adLayoutMetadata",null);
_.Q([_.X(),_.k("design:type",Object)],j6.prototype,"adSlotMetadata",void 0);_.Q([_.zY("adLayoutMetadata","adSlotMetadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],j6.prototype,"onAdMetadataChanged",null);j6=_.Q([_.t({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],j6);
_.A(j6,"ytd-page-top-ad-layout-renderer",function(){if(XNm!==void 0)return XNm;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return XNm=
Y},{mode:_.OX("kevlar_poly_si_batch_j070")?1:2});var QwL;var J2=function(){var Y=_.Z.apply(this,arguments)||this;Y.noBottomMargin=!1;Y.overlayDensity=0;return Y};
_.r(J2,_.Z);_.z=J2.prototype;
_.z.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.z.ready=function(){var Y=this;W_h(function(){Y.isAttached&&Y.adSlotMetadata&&$Ot(VF(),Y.adSlotMetadata)})};
_.z.attached=function(){if(this.adSlotMetadata){var Y;if(this.adSlotMetadata===((Y=this.data)==null?void 0:Y.adSlotMetadata))grs(VF(),this.adSlotMetadata);else{var S;_.sf(Error("Mh`"+this.adSlotMetadata+"`"+((S=this.data)==null?void 0:S.adSlotMetadata)))}}};
_.z.detached=function(){this.adSlotMetadata&&$Ot(VF(),this.adSlotMetadata)};
_.z.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&$Ot(VF(),this.adSlotMetadata),grs(VF(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.y6.Object.defineProperties(J2.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=_.g((Y=this.data)==null?void 0:(S=Y.fulfillmentContent)==null?void 0:S.fulfilledLayout,_.apf),u;return(Y=(u=_.g(P==null?void 0:P.renderingContent,Ips))==null?void 0:u.layout)?Y.toLowerCase().replace(/_/g,"-"):""}}});
J2.prototype.onAdSlotMetadataChanged=J2.prototype.onAdSlotMetadataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],J2.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],J2.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],J2.prototype,"rendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],J2.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],J2.prototype,"noBottomMargin",void 0);_.Q([_.X(),_.k("design:type",Object)],J2.prototype,"overlayDensity",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",String),_.k("design:paramtypes",[])],J2.prototype,"layout",null);_.Q([_.zY("data.adSlotMetadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],J2.prototype,"onAdSlotMetadataChanged",null);
J2=_.Q([_.t({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],J2);
_.A(J2,"ytd-ad-slot-renderer",function(){if(QwL!==void 0)return QwL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return QwL=Y},{mode:_.OX("kevlar_poly_si_batch_j077")?
1:2});var kuf;var BS=function(){return _.Z.apply(this,arguments)||this};
_.r(BS,_.Z);_.z=BS.prototype;_.z.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"}}}};
_.z.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&ez9(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.z.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var Y=_.n(this.data.impressionUrls),S=Y.next();!S.done;S=Y.next())S=S.value,uQE(S,zC9(S));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.z.attached=function(){var Y=this;_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.z.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.y6.Object.defineProperties(BS.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
BS.prototype.dataChanged=BS.prototype.dataChanged;BS.prototype.onTap=BS.prototype.onTap;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.Q([_.p($R),_.k("design:type",Object)],BS.prototype,"ytdActiveViewBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],BS.prototype,"ytdReduxBehavior",void 0);
_.Q([_.X({selector:_.wv}),_.k("design:type",Object)],BS.prototype,"isGridViewEnabled",void 0);_.Q([_.d("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BS.prototype,"watchFeedBigThumbs",null);_.Q([_.d("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],BS.prototype,"thumbnailWidth",null);_.Q([_.X(),_.k("design:type",Object)],BS.prototype,"data",void 0);
_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BS.prototype,"onTap",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BS.prototype,"dataChanged",null);BS=_.Q([_.t({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],BS);
_.A(BS,"ytd-compact-promoted-video-renderer",function(){if(kuf!==void 0)return kuf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return kuf=Y},{mode:1});var Mwi;_.$s("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var cS=function(){return _.Z.apply(this,arguments)||this};
_.r(cS,_.Z);cS.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],cS.prototype,"data",void 0);cS=_.Q([_.t({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],cS);
_.A(cS,"ytd-search-pyv-renderer",function(){if(Mwi!==void 0)return Mwi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Mwi=Y},{mode:1});var yU3;_.$s("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Cm=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundedContainer=!0;Y.JSC$13316_handleOpenPostCommentDialogActionAfterStamp=!1;Y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return Y};
_.r(Cm,_.Z);_.z=Cm.prototype;
_.z.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}}};
_.z.onStampFinished=function(){this.JSC$13316_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.z.handleSignalActionOpenPostCommentDialogAction=function(){var Y=_.I(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");Y?Y.openDialog():this.JSC$13316_handleOpenPostCommentDialogActionAfterStamp=!0};
_.z.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.z.computeHideBorder=function(){return this.isInEngagementPanel};
_.z.computeIsCompact=function(){return this.isInEngagementPanel};
_.z.computeUsesCompactLockup=function(Y){return Y==="BACKSTAGE_SURFACE_TYPE_HOME"||Y==="BACKSTAGE_SURFACE_TYPE_SEARCH"||Y==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||Y==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||Y==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||Y==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.z.computeUsesFullLockup=function(){var Y,S=(Y=this.data)==null?void 0:Y.post,P;Y=(P=_.g(S,ijs))==null?void 0:P.surface;var u;P=(u=_.g(S,t5L))==null?void 0:u.originalPost;var W;if(u=Y||((W=_.g(P,ijs))==null?void 0:W.surface))return!this.computeUsesCompactLockup(u)&&this.useUpdatedRepostUi;var m;return((m=_.g(S,t5L))==null?void 0:m.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.y6.Object.defineProperties(Cm.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((S=_.g((Y=this.data)==null?void 0:Y.post,ijs))==null?void 0:S.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.useUpdatedRepostUi}}});
Cm.prototype.onYtCommentModerationPanelEmpty=Cm.prototype.onYtCommentModerationPanelEmpty;Cm.prototype.onStampFinished=Cm.prototype.onStampFinished;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Cm.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],Cm.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Cm.prototype,"roundedContainer",void 0);_.Q([_.X({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Cm.prototype,"hideBorder",void 0);_.Q([_.X({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Cm.prototype,"isCompact",void 0);
_.Q([_.X({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Cm.prototype,"usesFullLockup",void 0);_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Cm.prototype,"onStampFinished",null);
_.Q([_.WZ("ytd-comment-moderation-panel-empty"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Cm.prototype,"onYtCommentModerationPanelEmpty",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Cm.prototype,"isInEngagementPanel",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Cm.prototype,"useUpdatedRepostUi",null);
Cm=_.Q([_.t({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Cm);
_.A(Cm,"ytd-backstage-post-thread-renderer",function(){if(yU3!==void 0)return yU3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return yU3=Y},{mode:1});var N_i;var qS=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(qS,_.Z);qS.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
qS.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var Y=this.data.thumbnail.thumbnails;this.isDarkTheme&&(Y=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(Y=_.UD(Y,24,void 0,"height"))?Y:void 0}};
qS.prototype.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
qS.prototype.computeHasText=function(){var Y;return!((Y=this.data)==null||!Y.text)};
_.y6.Object.defineProperties(qS.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Bx(this.bannerImageUrl))+'");'}}});
qS.prototype.computeHasText=qS.prototype.computeHasText;qS.prototype.computeBannerImageUrl=qS.prototype.computeBannerImageUrl;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],qS.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],qS.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],qS.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],qS.prototype,"isDarkTheme",void 0);_.Q([_.X(),_.k("design:type",String)],qS.prototype,"bannerImageUrl",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.k("design:type",Boolean)],qS.prototype,"hasText",void 0);_.Q([_.zY("data","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qS.prototype,"computeBannerImageUrl",null);
_.Q([_.zY("data.text"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qS.prototype,"computeHasText",null);_.Q([_.d("bannerImageUrl"),_.k("design:type",Object),_.k("design:paramtypes",[])],qS.prototype,"bannerStyle",null);qS=_.Q([_.t({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],qS);
_.A(qS,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(N_i!==void 0)return N_i;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return N_i=Y},{mode:1});var HFt;var Ro=function(){return _.Z.apply(this,arguments)||this};
_.r(Ro,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ro.prototype,"data",void 0);Ro=_.Q([_.t({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Ro);
_.A(Ro,"ytd-backstage-zero-state-renderer",function(){if(HFt!==void 0)return HFt;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return HFt=Y},{mode:1});var VwU;var xl=function(){return _.Z.apply(this,arguments)||this};
_.r(xl,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],xl.prototype,"data",void 0);_.Q([_.X({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],xl.prototype,"icon",void 0);xl=_.Q([_.t({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],xl);
_.A(xl,"ytd-post-filter-zero-state-renderer",function(){if(VwU!==void 0)return VwU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return VwU=Y},{mode:1});var eHi;var OFs={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},bF=function(){return _.Z.apply(this,arguments)||this};
_.r(bF,_.Z);bF.prototype.configureRendererStamper=function(){return OFs};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],bF.prototype,"rendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],bF.prototype,"data",void 0);_.Q([_.X({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],bF.prototype,"icon",void 0);bF=_.Q([_.t({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],bF);
_.A(bF,"ytd-post-scheduling-zero-state-renderer",function(){if(eHi!==void 0)return eHi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return eHi=Y},{mode:1});var Ycs;var Tx=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return Y};
_.r(Tx,_.Z);Tx.prototype.onTabsActivate=function(Y){this.data&&this.data.tabs&&_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[Y.detail.selected].navigationEndpoint})};
Tx.prototype.shouldShowTotalCount=function(Y){return Y&&Y.totalCount!==void 0};
Tx.prototype.handleUpdatePostsTotalCountAction=function(Y){var S=this.get(["data.tabs",1,"totalCount"]),P=this.get("updatePostsTotalCountAction.updateType",Y);Y=this.get("updatePostsTotalCountAction.number",Y);S!==void 0&&P!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&Y&&(P==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(S)+Y):P==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(S)-Y))};
_.y6.Object.defineProperties(Tx.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var Y=0,S=this.data.tabs.length;Y<S;Y++)if(this.data.tabs[Y].selected)return Y;return 0}}});
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Tx.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Tx.prototype,"rendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Tx.prototype,"data",void 0);_.Q([_.d("data.tabs"),_.k("design:type",Number),_.k("design:paramtypes",[])],Tx.prototype,"selected",null);Tx=_.Q([_.t({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Tx);
_.A(Tx,"ytd-post-stream-filter-renderer",function(){if(Ycs!==void 0)return Ycs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Ycs=Y},{mode:1});var Scu;var Km=function(){return _.Z.apply(this,arguments)||this};
_.r(Km,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Km.prototype,"kevlarBehaviors",void 0);_.Q([_.X(),_.k("design:type",Object)],Km.prototype,"data",void 0);Km=_.Q([_.t({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Km);
_.A(Km,"ytd-channel-age-gate-renderer",function(){if(Scu!==void 0)return Scu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Scu=Y},{mode:1});var PbS;_.$s("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Ek=function(){var Y=_.Z.apply(this,arguments)||this;Y.data=null;return Y};
_.r(Ek,_.Z);Ek.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.y6.Object.defineProperties(Ek.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((Y=this.data)==null?0:(S=Y.title)==null?0:(P=S.runs)==null?0:P.length)?147:160}}});
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Ek.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ek.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],Ek.prototype,"imageSizePx",null);Ek=_.Q([_.t({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Ek);
_.A(Ek,"ytd-channel-owner-empty-state-renderer",function(){if(PbS!==void 0)return PbS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return PbS=Y},{mode:1});var u83;var W7S;var fm=function(){var Y=_.Z.apply(this,arguments)||this;Y.boundSubmitSearch=function(){Y.submitSearch()};
Y.boundClearSearch=function(){Y.clearSearch()};
return Y};
_.r(fm,_.Z);_.z=fm.prototype;_.z.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]]"}}}}}};
_.z.toggleClearButton=function(){this.hideClearButton=t8E||!this.input.value};
_.z.submitOnEnterKeyUp=function(Y){Y.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.z.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.z.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.z.submit=function(){_.ms(this.hostElement,"search-query-changed",this.input.value)};
fm.prototype.toggleClearButton=fm.prototype.toggleClearButton;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],fm.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],fm.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],fm.prototype,"hideClearButton",void 0);_.Q([_.X(),_.k("design:type",Object)],fm.prototype,"boundSubmitSearch",void 0);_.Q([_.X(),_.k("design:type",Object)],fm.prototype,"boundClearSearch",void 0);_.Q([_.nc("#input"),_.k("design:type",Object)],fm.prototype,"input",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fm.prototype,"toggleClearButton",null);
fm=_.Q([_.t({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],fm);
_.A(fm,"ytd-channel-switcher-search-box-renderer",function(){if(W7S!==void 0)return W7S;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return W7S=Y},{mode:1});var zbd;var g5=function(){var Y=_.Z.apply(this,arguments)||this;Y.boundSubmit=function(){Y.submit()};
return Y};
_.r(g5,_.Z);_.z=g5.prototype;_.z.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"}}}}};
_.z.ready=function(){var Y=this;this.form.addEventListener("submit",function(S){return Y.onSubmit(S)})};
_.z.onSubmit=function(Y){Y.preventDefault();return!1};
_.z.toggleClearButton=function(){this.hideClearButton=t8E||!this.input.value};
_.z.submitOnEnterKeyUp=function(Y){Y.keyCode===13&&this.submit()};
_.z.submit=function(){var Y=this.data.endpoint,S=(0,_.RY.unsafeClone)(Y);_.g(S,_.CV)?_.g(S,_.CV).query=this.input.value:_.g(S,_.qy)&&(_.g(S,_.qy).query=this.input.value);var P=_.g(S.commandMetadata,_.Yo);(P==null?0:P.url)?(P.url=_.X_(P.url,"query",this.input.value),_.ms(this.hostElement,"yt-navigate",{endpoint:S})):_.g(S,gnt)?(_.g(S,gnt).channelSwitcherQuery=this.input.value,_.E().resolve(_.uY).resolveCommand(S,{form:{element:this.hostElement}})):(Y=Error("Nh`"+JSON.stringify(Y)),_.p_(Y))};
_.z.getUrl=function(Y){return this.get("commandMetadata.webCommandMetadata.url",Y)};
g5.prototype.toggleClearButton=g5.prototype.toggleClearButton;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],g5.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],g5.prototype,"hideClearButton",void 0);
_.Q([_.X(),_.k("design:type",Object)],g5.prototype,"boundSubmit",void 0);_.Q([_.nc("#form"),_.k("design:type",HTMLFormElement)],g5.prototype,"form",void 0);_.Q([_.nc("#input"),_.k("design:type",Object)],g5.prototype,"input",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],g5.prototype,"toggleClearButton",null);g5=_.Q([_.t({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],g5);
_.A(g5,"ytd-search-box-renderer",function(){if(zbd!==void 0)return zbd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return zbd=Y},{mode:2});var $l=function(){var Y=_.Z.apply(this,arguments)||this;Y.showSearchBox=!0;return Y};
_.r($l,_.Z);$l.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],$l.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$l.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$l.prototype,"showSearchBox",void 0);$l=_.Q([_.t({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],$l);
_.A($l,"ytd-channel-switcher-header-renderer",function(){if(u83!==void 0)return u83;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return u83=Y},{mode:1});var m36;var nkd;var r5=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDisplayed=!0;return Y};
_.r(r5,_.Z);_.z=r5.prototype;_.z.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.dataChanged=function(){this.isDisplayed=!0};
_.z.computeType=function(Y){return Y||"UNKNOWN"};
_.z.onYtServiceRequestCompleted=function(Y){Y.stopPropagation();this.isDisplayed=!1};
_.z.onClose=function(){this.isDisplayed=!1};
r5.prototype.onYtServiceRequestCompleted=r5.prototype.onYtServiceRequestCompleted;r5.prototype.dataChanged=r5.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],r5.prototype,"data",void 0);
_.Q([_.X({computed:"computeType(data.type)",reflectToAttribute:!0}),_.k("design:type",String)],r5.prototype,"type",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],r5.prototype,"isDisplayed",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],r5.prototype,"dataChanged",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],r5.prototype,"onYtServiceRequestCompleted",null);r5=_.Q([_.t({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],r5);
_.A(r5,"ytd-alert-with-button-renderer",function(){if(nkd!==void 0)return nkd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return nkd=Y},{mode:1});var Gx=function(){var Y=_.Z.apply(this,arguments)||this;Y.noResult=!1;Y.enableAlertBanner=!1;Y.dismissedAlertBanner=!1;Y.hideCreateChannelButton=!1;Y.boundDismissAlertBanner=function(){Y.dismissAlertBanner()};
Y.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return Y};
_.r(Gx,_.Z);_.z=Gx.prototype;_.z.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.z.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.z.updateChannelSwitcherAction=function(Y){var S;Y=(S=_.g(Y,PGf))==null?void 0:S.page;_.g(Y,SxL)!==void 0&&(this.data=_.g(Y,SxL))};
_.z.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]]"}}}}}};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.z.searchQueryChanged=function(Y,S){if(this.data&&this.data.contents&&this.data.contents.length){Y=[];var P=[];this.hideCreateChannelButton=this.noResult=!1;for(var u=document.querySelectorAll("ytd-account-item-renderer"),W=_.n(u),m=W.next();!m.done;m=W.next())m=m.value,P.push(m),m.style.display="block";this.resetRightBorder(P);if(S){this.hideCreateChannelButton=!0;for(P=1;P<this.data.contents.length;P++)if(m=this.data.contents[P],_.g(m,KXt)){var J=void 0,c=void 0;W=(J=_.g(m,KXt))==null?void 0:(c=
J.accountName)==null?void 0:c.simpleText;c=J=void 0;m=(J=_.g(m,KXt))==null?void 0:(c=J.channelHandle)==null?void 0:c.simpleText;(J=u[P-1])&&W&&_.qU(W,S)?Y.push(J):_.f("enable_handle_search_on_channel_switcher")&&J&&m&&_.qU(m.toString(),S.toString())?Y.push(J):J.style.display="none"}Y.length===0&&(this.noResult=!0);this.resetRightBorder(Y)}}};
_.z.resetRightBorder=function(Y){for(var S=0;S<Y.length;S++)Y[S].style.borderRight=!this.hideCreateChannelButton&&(S+2)%3===0||this.hideCreateChannelButton&&(S+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.z.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.z.setShowSearchBox=function(Y){if(Y&&Y.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var S=0;S<Y.contents.length;S++)_.g(Y.contents[S],_.Ws)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.z.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.y6.Object.defineProperties(Gx.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null?0:Y.contents)}}});
Gx.prototype.onContinuationItemsUpdated=Gx.prototype.onContinuationItemsUpdated;Gx.prototype.searchQueryChanged=Gx.prototype.searchQueryChanged;Gx.prototype.onDataChanged=Gx.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Gx.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Gx.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.I3),_.k("design:type",Object)],Gx.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Gx.prototype,"data",void 0);_.Q([_.nc("ytd-channel-switcher-header-renderer"),_.k("design:type",Object)],Gx.prototype,"channelSwitcherHeaderRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],Gx.prototype,"noResult",void 0);
_.Q([_.X(),_.k("design:type",Object)],Gx.prototype,"enableAlertBanner",void 0);_.Q([_.X(),_.k("design:type",Object)],Gx.prototype,"dismissedAlertBanner",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Gx.prototype,"hideCreateChannelButton",void 0);_.Q([_.d("data.contents"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Gx.prototype,"isLoading",null);_.Q([_.X(),_.k("design:type",Object)],Gx.prototype,"boundDismissAlertBanner",void 0);
_.Q([_.X({computed:"computeButtonOverride()"}),_.k("design:type",Object)],Gx.prototype,"buttonOverride",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gx.prototype,"onDataChanged",null);_.Q([_.WZ("search-query-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,String]),_.k("design:returntype")],Gx.prototype,"searchQueryChanged",null);
_.Q([_.WZ("yt-next-continuation-data-updated"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Gx.prototype,"onContinuationItemsUpdated",null);Gx=_.Q([_.t({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Gx);
_.A(Gx,"ytd-channel-switcher-page-renderer",function(){if(m36!==void 0)return m36;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return m36=Y},{mode:1});var jvU;var Jos;var h2=function(){var Y=_.Z.apply(this,arguments)||this;Y.images=[];Y.selectedImageIndex=0;return Y};
_.r(h2,_.Z);_.z=h2.prototype;
_.z.ready=function(){_.b2(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.b2(this.JSC$13361_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.b2(this.JSC$13361_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.b2(this.JSC$13361_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.z.onThumbnailClick=function(Y){if(Y=Y.event_.detail)this.selectedImageIndex=this.images.indexOf(Y)};
_.z.updateImageThumbnails=function(Y){Y=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:Y.event_.detail});this.images.splice(this.selectedImageIndex,1,Y);this.images=[].concat(_.cz(this.images))};
_.z.cancelImageRepositions=function(){this.selectedImageIndex=0;_.ms(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.z.saveImageRepositions=function(){this.selectedImageIndex=0;_.ms(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.y6.Object.defineProperties(h2.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var Y=this;return(this.images||[]).map(function(S,P){return{image:S,selected:P===Y.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],h2.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.nc("ytd-backstage-image-preview-renderer"),_.k("design:type",Object)],h2.prototype,"JSC$13361_imagePreviewContainer",void 0);_.Q([_.nc(".thumbnail-images-container"),_.k("design:type",HTMLElement)],h2.prototype,"thumbnailImagesContainer",void 0);_.Q([_.X(),_.k("design:type",Array)],h2.prototype,"images",void 0);
_.Q([_.X(),_.k("design:type",Object)],h2.prototype,"repositionInstructions",void 0);_.Q([_.X(),_.k("design:type",Object)],h2.prototype,"selectedImageIndex",void 0);_.Q([_.d("images","selectedImageIndex"),_.k("design:type",Array),_.k("design:paramtypes",[])],h2.prototype,"thumbnailRendererDatas",null);_.Q([_.d("images","selectedImageIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],h2.prototype,"selectedImageData",null);
h2=_.Q([_.t({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],h2);
_.A(h2,"ytd-backstage-multi-image-reposition-renderer",function(){if(Jos!==void 0)return Jos;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Jos=Y},{mode:1});var vS=function(Y,S){_.Tj.call(this);this.uploadUrl=Y;this.channelId=S;this.imagesUploadData=[]};
_.r(vS,_.Tj);vS.prototype.getAllUploadStatuses=function(){var Y=this,S,P,u;return _.B(function(W){if(W.nextAddress==1)return _.q(W,BRL(Y),2);S=W.yieldResult;P=S.get("succeed");u=S.get("failed");return W.return(P.concat(u))})};
var Cbu=function(Y){var S,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,BRL(Y),2);S=u.yieldResult;P=S.get("failed");P.length>0&&cot(Y,P);return u.return(Y.getAllUploadStatuses())})},BRL=function(Y){var S,P,u,W,m,J,c;
return _.B(function(C){if(C.nextAddress==1)return S=new Map,_.q(C,Promise.allSettled(Y.imagesUploadData.map(function(x){return x.uploadPromise})),2);
P=C.yieldResult;u=[];W=_.n(P);for(m=W.next();!m.done;m=W.next())J=m.value,J.status==="fulfilled"&&u.push(J.value);c=Y.imagesUploadData.map(function(x){return x.image}).filter(function(x){return u.every(function(b){return b.id!==x.id})});
S.set("succeed",u);S.set("failed",c);return C.return(S)})},cot=function(Y,S){S=_.n(S);
for(var P=S.next();!P.done;P=S.next()){var u=Y;P=P.value;qcS(u,P.id)>=0&&u.cancel(P.id);var W=new Rbf(P),m=_.mis(u.uploadUrl,{"X-YouTube-ChannelId":u.channelId},P.imageBlob);W.transfer=m;W.uploadPromise=x33(m,P);u.imagesUploadData.push(W);m.run()}};
vS.prototype.cancel=function(Y){var S=qcS(this,Y);S!==-1&&((S=this.imagesUploadData[S].transfer)&&S.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(P){return P.image.id!==Y}))};
var qcS=function(Y,S){return Y.imagesUploadData.findIndex(function(P){return P.image.id===S})},x33=function(Y,S){return new Promise(function(P,u){Y.listen("l",function(){var W=Y.getResponseText();
W?(W=JSON.parse(W).encryptedBlobId,S.encryptedBlobId=W,P(S)):u("upload failed")});
Y.listen("n",function(){u("upload failed")})})},Rbf=function(Y){this.image=Y};var dOX=function(Y,S,P,u,W){this.id=Y;this.imageBlob=S;this.localImageSrc=P;this.naturalWidth=u;this.naturalHeight=W;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 bWt=[".jpeg",".jpg",".png"],D2=function(){var Y=_.Z.apply(this,arguments)||this;Y.showImagesPreview=!1;Y.pollOptions=[];Y.errorMessage="";Y.optionPlaceholderText="";Y.optionDefaultText="";Y.JSC$13372_imageId=0;Y.maxFileSizeMb=0;Y.maxAspectRatio=0;Y.invalidFileSizeError="";Y.invalidAspectRatioError="";Y.invalidFileTypeError="";Y.imageSelector=new nP(null,"single_file",bWt);return Y};
_.r(D2,_.Z);_.z=D2.prototype;_.z.ready=function(){_.b2(this.imageSelector,"j",this.onImageSelect,!1,this);_.b2(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.b2(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.z.dataChanged=function(){var Y,S,P=_.g((Y=this.data)==null?void 0:(S=Y.cellTemplate)==null?void 0:S.onEmptyCellTap,Owd);if(P&&P.uploadUrl&&P.channelId){var u;this.maxFileSizeMb=((u=P.imageValidationInfo)==null?void 0:u.maxFileSizeMb)||0;var W;this.maxAspectRatio=((W=P.imageValidationInfo)==null?void 0:W.allowedMaxAspectRatio)||0;var m;this.invalidFileSizeError=this.getSimpleString((m=this.data)==null?void 0:m.invalidFileSizeError);var J;this.invalidAspectRatioError=this.getSimpleString((J=this.data)==
null?void 0:J.invalidAspectRatioError);var c;this.invalidFileTypeError=this.getSimpleString((c=this.data)==null?void 0:c.invalidFileTypeError);this.uploadManager=new vS(P.uploadUrl,P.channelId)}};
_.z.onEditorInfoChange=function(){this.optionPlaceholderText=_.Ma(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Ma(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.z.observeAddImageError=function(){this.errorMessage!==""&&_.ms(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.z.onPollOptionsChange=function(){for(var Y=!1,S=[],P=0;P<this.pollOptions.length;P++){var u=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(P+1);this.pollOptions[P].placeholderText!==u?(Y=!0,S.push(Object.assign({},this.pollOptions[P],{placeholderText:u}))):S.push(this.pollOptions[P])}Y&&(this.pollOptions=S);this.isValid()?_.ms(this.hostElement,"yt-commentbox-post-enable"):_.ms(this.hostElement,"yt-commentbox-post-disable")};
_.z.createPollOptions=function(Y){var S=[],P;Y=(P=Y==null?void 0:Y.minPollOptions)!=null?P:0;for(P=0;P<Y;P++)S.push(this.createPollOption());return S};
_.z.onImageSelect=function(Y){var S=this,P,u,W,m,J,c;return _.B(function(C){if(C.nextAddress==1){if(S.selectedImageIndex===void 0)return C.jumpTo(0);P=Y.files[0];S.errorMessage="";u=S.validateImage(P);if(u!=="")return S.errorMessage=u,C.return();W=new XZ(S.maxAspectRatio,!1,!0);return _.q(C,W.transform(P),3)}if(C.nextAddress!=4)return m=C.yieldResult,m.transformedData?m.invalidAspectRatio?(S.errorMessage=S.invalidAspectRatioError,C.return()):_.q(C,lEJ(S.JSC$13372_imageId,Y.files[0],m.transformedData),
4):(S.errorMessage=S.invalidFileTypeError,C.return());J=C.yieldResult;S.JSC$13372_imageId++;cot(S.uploadManager,[J]);c=Object.assign({},S.pollOptions[S.selectedImageIndex],{image:J});S.pollOptions.splice(S.selectedImageIndex,1,c);S.refreshPollOptions();_.ms(S.hostElement,"yt-backstage-poll-image-select");_.Yt(C)})};
_.z.validateImage=function(Y){return Y.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.z.refreshPollOptions=function(){this.pollOptions=[].concat(_.cz(this.pollOptions))};
_.z.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.cz(this.pollOptions),[this.createPollOption()]))};
_.z.onRemovePollOption=function(Y){var S=this.pollOptions[Y.model.index];S&&S.image&&this.uploadManager.cancel(S.image.id);this.pollOptions.splice(Y.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.ms(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.z.onTextInput=function(){this.refreshPollOptions()};
_.z.onImageButtonClick=function(Y){this.selectedImageIndex=Y.model.index;this.imageSelector.click()};
_.z.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.z.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.z.saveImageRepositions=function(Y){Y=Y.event_.detail;for(var S=0,P=[],u=_.n(this.pollOptions),W=u.next();!W.done;W=u.next())W=W.value,W.image!==void 0?(W=Object.assign({},W,{image:Y[S]}),P.push(W),S++):P.push(W);this.showImagesPreview=!1;this.pollOptions=[].concat(_.cz(P))};
_.z.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var Y=0,S=_.n(this.pollOptions),P=S.next();!P.done;P=S.next())if(P=P.value,P.optionText.trim()!==""||P.image!==void 0){if(!P.image||this.hasCustomOptionText&&P.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;Y++}return Y>=Number(this.editorInfo.minPollOptions)};
_.z.getAllUploadStatuses=function(){var Y=this,S,P,u,W;return _.B(function(m){if(m.nextAddress==1)return _.q(m,Y.uploadManager.getAllUploadStatuses(),2);S=m.yieldResult;P=_.n(S);for(u=P.next();!u.done;u=P.next())if(W=u.value,W.encryptedBlobId===void 0)return m.return(Cbu(Y.uploadManager));return m.return(S)})};
_.z.getPostCreateOptions=function(){for(var Y=[],S=_.n(this.pollOptions),P=S.next();!P.done;P=S.next())P=P.value,P.image!==void 0&&Y.push({text:this.hasCustomOptionText?P.optionText:P.placeholderText,image:P.image});return Y};
_.z.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.z.createButtonRenderer=function(Y,S){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Y,accessibilityData:{accessibilityData:{label:this.getSimpleString(Y)}},isDisabled:S}};
_.z.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.z.computeThumbnailRendererData=function(Y){return Y?{image:Y,selected:!1}:void 0};
_.z.getSimpleString=function(Y){return _.Ma(Y)};
_.z.updateOptionTextFromBinding=function(Y){if(Y.target){var S=Array.from(_.I(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(Y.target);if(S>=0){var P;this.pollOptions[S].optionText=(P=Y.detail.value)!=null?P:""}}};
_.y6.Object.defineProperties(D2.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var Y,S;return this.pollOptions.length<((S=(Y=this.editorInfo)==null?void 0:Y.maxPollOptions)!=null?S:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(Y){return Y.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(Y){return Y.image}).map(function(Y){return Y.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(Y){return Y.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var Y,S=(Y=this.data)==null?void 0:Y.addOptionButtonText;return S?this.createButtonRenderer(S,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var Y,S=(Y=this.data)==null?void 0:Y.repositionImagesButtonLabel;return S?this.createButtonRenderer(S,!this.hasImages):void 0}}});
D2.prototype.onPollOptionsChange=D2.prototype.onPollOptionsChange;D2.prototype.observeAddImageError=D2.prototype.observeAddImageError;D2.prototype.onEditorInfoChange=D2.prototype.onEditorInfoChange;D2.prototype.dataChanged=D2.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],D2.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.nc("ytd-backstage-multi-image-reposition-renderer"),_.k("design:type",Object)],D2.prototype,"imageRepositionContainer",void 0);
_.Q([_.X(),_.k("design:type",Object)],D2.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],D2.prototype,"editorInfo",void 0);_.Q([_.X(),_.k("design:type",vS)],D2.prototype,"uploadManager",void 0);_.Q([_.X(),_.k("design:type",Object)],D2.prototype,"showImagesPreview",void 0);_.Q([_.X(),_.k("design:type",Array)],D2.prototype,"pollOptions",void 0);_.Q([_.X(),_.k("design:type",Object)],D2.prototype,"errorMessage",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],D2.prototype,"dataChanged",null);_.Q([_.cZ("editorInfo"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],D2.prototype,"onEditorInfoChange",null);_.Q([_.zY("errorMessage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],D2.prototype,"observeAddImageError",null);
_.Q([_.cZ("pollOptions"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],D2.prototype,"onPollOptionsChange",null);_.Q([_.d("pollOptions","editorInfo"),_.k("design:type",Object),_.k("design:paramtypes",[])],D2.prototype,"isAllowedToAddOption",null);_.Q([_.d("pollOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],D2.prototype,"hasImages",null);
_.Q([_.d("pollOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],D2.prototype,"imagesToReposition",null);_.Q([_.d("pollOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],D2.prototype,"hasCustomOptionText",null);_.Q([_.d("data","isAllowedToAddOption"),_.k("design:type",Object),_.k("design:paramtypes",[])],D2.prototype,"addOptionButton",null);_.Q([_.d("data","hasImages"),_.k("design:type",Object),_.k("design:paramtypes",[])],D2.prototype,"repositionImagesButton",null);
D2=_.Q([_.t({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],D2);
_.A(D2,"ytd-backstage-image-poll-editor-renderer",function(){if(jvU!==void 0)return jvU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return jvU=Y},{mode:2});var TRu={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 K7L;var Io=function(){var Y=_.Z.apply(this,arguments)||this;Y.a11yConfig=TRu;Y.imageDisplayOffsetTop=0;Y.imageDisplayOffsetLeft=0;Y.pickerDisplayOffsetTop=0;Y.pickerDisplayOffsetLeft=0;Y.showPreviewContainer=!0;Y.startPicker=!1;Y.repositionOptional=!1;Y.editOnlyMode=!1;Y.savedImageDisplayOffsetTop=0;Y.savedImageDisplayOffsetLeft=0;return Y};
_.r(Io,_.Z);_.z=Io.prototype;_.z.created=function(){_.sm.requestAvailability()};
_.z.ready=function(){};
_.z.onArrowKeysDown=function(Y){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){Y.detail.keyboardEvent.preventDefault();var S=0,P=0,u="";switch(Y.detail.keyboardEvent.key){case "ArrowUp":XNu(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?u=this.a11yConfig.reachBottomOfImage:S=this.imageHeight*.05*-1;break;case "ArrowDown":XNu(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?u=this.a11yConfig.reachTopOfImage:
S=this.imageHeight*.05;break;case "ArrowLeft":XNu(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?u=this.a11yConfig.reachRightOfImage:P=this.imageWidth*.05*-1;break;case "ArrowRight":XNu(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?u=this.a11yConfig.reachLeftOfImage:P=this.imageWidth*.05}u&&_.Td(u)&&_.ms(this.hostElement,"iron-announce",{text:_.Td(u)});if(P||S)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+S)),Y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),Y=_.Td(this.a11yConfig.imageVerticalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+P)),Y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),Y=_.Td(this.a11yConfig.imageHorizontalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})),Y&&_.ms(this.hostElement,"iron-announce",{text:Y})}};
_.z.getPreviewPosition=function(Y,S,P,u){return Math.round(100*(Y+S*.5-P)/u)};
_.z.calculateDisplayPosition=function(){var Y=this.imageData.naturalWidth,S=this.imageData.naturalHeight;this.displayScale=Math.max(200/Y,200/S);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var P=Y*this.displayScale*this.imageData.previewCoordinates.left,u=S*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=S>Y?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-P;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=Y>S?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-u;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=Y*this.displayScale;this.imageHeight=S*this.displayScale};
_.z.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.z.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.z.getSignedPosition=function(Y,S,P){return S==="X"&&_.X3("HTML_DIR")==="rtl"?P==="-"?Y+"px":Y*-1+"px":P==="-"?Y*-1+"px":Y+"px"};
_.z.pickerMove=function(Y){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var S=this.pickerOffsetX-Y.clientX,P=this.pickerOffsetY-Y.clientY;this.pickerOffsetX=Y.clientX;this.pickerOffsetY=Y.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
P)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-S))}};
_.z.pickerMoveStart=function(Y){this.startPicker=!0;this.pickerOffsetX=Y.clientX;this.pickerOffsetY=Y.clientY};
_.z.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var Y=this.generateCropPreview();Y&&_.ms(this.hostElement,"ytd-backstage-image-preview-coordinates-update",Y)};
_.z.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.ms(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.z.deleteImage=function(){_.ms(this.hostElement,"ytd-backstage-image-preview-delete")};
_.z.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.z.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var Y=this.generateCropPreview();Y&&_.ms(this.hostElement,"ytd-backstage-image-preview-coordinates-save",Y)};
_.z.getPreviewOffset=function(Y,S,P){return S&&Y?(P==="X"&&_.X3("HTML_DIR")==="rtl"?300/S*Y:300/S*Y*-1)+"px":"0px"};
_.z.getSimpleText=function(Y){return Y?_.Ma(Y):""};
_.z.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}};
_.y6.Object.defineProperties(Io.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var Y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Td(this.a11yConfig.imageVerticalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})+"\n"+_.Td(this.a11yConfig.verticalRepositionInstruction)}Y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Td(this.a11yConfig.imageHorizontalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})+"\n"+_.Td(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(Y=this.instruction)==null?void 0:(S=Y.previewInstruction)==null?void 0:S.editButtonLabel;return P?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:P,accessibilityData:{accessibilityData:{label:this.getSimpleText(P)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u,W=this.editOnlyMode?(Y=this.instruction)==null?void 0:(S=Y.editInstruction)==null?void 0:S.saveImagesButtonLabel:(P=this.instruction)==null?void 0:(u=P.editInstruction)==null?void 0:u.saveButtonLabel;return W?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:W,accessibilityData:{accessibilityData:{label:this.getSimpleText(W)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(Y=this.instruction)==null?void 0:(S=Y.previewInstruction)==null?void 0:S.deleteButtonLabel;return P?{size:"SIZE_SMALL",text:P,accessibilityData:{accessibilityData:{label:this.getSimpleText(P)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(Y=this.instruction)==null?void 0:(S=Y.editInstruction)==null?void 0:S.cancelButtonLabel;Y=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return P?{style:Y,size:"SIZE_SMALL",text:P,accessibilityData:{accessibilityData:{label:this.getSimpleText(P)}}}: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"}}});
Io.prototype.onEditOnlyModeUpdate=Io.prototype.onEditOnlyModeUpdate;Io.prototype.onImageChange=Io.prototype.onImageChange;_.Q([_.X(),_.k("design:type",dOX)],Io.prototype,"imageData",void 0);_.Q([_.X(),_.k("design:type",Object)],Io.prototype,"instruction",void 0);_.Q([_.X(),_.k("design:type",Object)],Io.prototype,"a11yConfig",void 0);_.Q([_.X(),_.k("design:type",Number)],Io.prototype,"imageWidth",void 0);_.Q([_.X(),_.k("design:type",Number)],Io.prototype,"imageHeight",void 0);
_.Q([_.X(),_.k("design:type",Number)],Io.prototype,"displayScale",void 0);_.Q([_.X(),_.k("design:type",Object)],Io.prototype,"imageDisplayOffsetTop",void 0);_.Q([_.X(),_.k("design:type",Object)],Io.prototype,"imageDisplayOffsetLeft",void 0);_.Q([_.X(),_.k("design:type",Object)],Io.prototype,"pickerDisplayOffsetTop",void 0);_.Q([_.X(),_.k("design:type",Object)],Io.prototype,"pickerDisplayOffsetLeft",void 0);_.Q([_.X(),_.k("design:type",Object)],Io.prototype,"showPreviewContainer",void 0);
_.Q([_.X(),_.k("design:type",Object)],Io.prototype,"startPicker",void 0);_.Q([_.X(),_.k("design:type",Number)],Io.prototype,"pickerOffsetX",void 0);_.Q([_.X(),_.k("design:type",Number)],Io.prototype,"pickerOffsetY",void 0);_.Q([_.X(),_.k("design:type",Object)],Io.prototype,"repositionOptional",void 0);_.Q([_.X(),_.k("design:type",Object)],Io.prototype,"editOnlyMode",void 0);_.Q([_.nc("#picker-container"),_.k("design:type",HTMLElement)],Io.prototype,"JSC$13385_pickerContainer",void 0);
_.Q([_.nc("#picker"),_.k("design:type",HTMLElement)],Io.prototype,"picker",void 0);_.Q([_.nc("#preview-clipper"),_.k("design:type",HTMLElement)],Io.prototype,"previewClipper",void 0);_.Q([_.nc("#image-in-picker-background"),_.k("design:type",HTMLImageElement)],Io.prototype,"JSC$13385_imageInBackground",void 0);_.Q([_.nc("#image-in-picker"),_.k("design:type",HTMLImageElement)],Io.prototype,"JSC$13385_imageInPicker",void 0);
_.Q([_.nc("#image-in-preview-clipper"),_.k("design:type",HTMLImageElement)],Io.prototype,"JSC$13385_imageInPreviewClipper",void 0);_.Q([_.d("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],Io.prototype,"altLabelForImage",null);_.Q([_.d("imageHeight","imageWidth"),_.k("design:type",Number),_.k("design:paramtypes",[])],Io.prototype,"pickerSize",null);
_.Q([_.d("imageHeight","imageWidth"),_.k("design:type",Object),_.k("design:paramtypes",[])],Io.prototype,"imageOrientationStyle",null);_.Q([_.d("instruction"),_.k("design:type",Object),_.k("design:paramtypes",[])],Io.prototype,"editButton",null);_.Q([_.d("instruction","editOnlyMode"),_.k("design:type",Object),_.k("design:paramtypes",[])],Io.prototype,"saveButton",null);_.Q([_.d("instruction"),_.k("design:type",Object),_.k("design:paramtypes",[])],Io.prototype,"deleteButton",null);
_.Q([_.d("instruction","editOnlyMode"),_.k("design:type",Object),_.k("design:paramtypes",[])],Io.prototype,"cancelButton",null);_.Q([_.d("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.k("design:type",Number),_.k("design:paramtypes",[])],Io.prototype,"cropOffsetTop",null);_.Q([_.d("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.k("design:type",Number),_.k("design:paramtypes",[])],Io.prototype,"cropOffsetLeft",null);
_.Q([_.d("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],Io.prototype,"pickerBackgroundStyle",null);_.Q([_.d("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],Io.prototype,"pickerDisplayStyle",null);_.Q([_.d("cropOffsetLeft","cropOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],Io.prototype,"imageInPickerStyle",null);
_.Q([_.d("cropOffsetLeft","cropOffsetTop","pickerSize"),_.k("design:type",String),_.k("design:paramtypes",[])],Io.prototype,"previewClipperStyle",null);_.Q([_.cZ("imageData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Io.prototype,"onImageChange",null);_.Q([_.cZ("editOnlyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Io.prototype,"onEditOnlyModeUpdate",null);
_.Q([_.d("showPreviewContainer"),_.k("design:type",String),_.k("design:paramtypes",[])],Io.prototype,"pickerModeStyle",null);Io=_.Q([_.t({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Io);
_.A(Io,"ytd-backstage-image-preview-renderer",function(){if(K7L!==void 0)return K7L;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return K7L=Y},{mode:1});var Eku;var frs={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 gkU;var $3f;var sk=function(){var Y=_.Z.apply(this,arguments)||this;Y.a11yConfig=frs;Y.imageDisplayOffsetTop=0;Y.imageDisplayOffsetLeft=0;Y.pickerDisplayOffsetTop=0;Y.pickerDisplayOffsetLeft=0;Y.cropCoordinatesSaved=!1;Y.previewSize=0;Y.startPicker=!1;Y.repositionOptional=!1;return Y};
_.r(sk,_.Z);_.z=sk.prototype;_.z.created=function(){_.sm.requestAvailability()};
_.z.ready=function(){};
_.z.onArrowKeysDown=function(Y){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){Y.detail.keyboardEvent.preventDefault();var S=0,P=0,u="";switch(Y.detail.keyboardEvent.key){case "ArrowUp":ZF8(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?u=this.a11yConfig.reachBottomOfImage:S=this.imageHeight*.05*-1;break;case "ArrowDown":ZF8(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?u=this.a11yConfig.reachTopOfImage:
S=this.imageHeight*.05;break;case "ArrowLeft":ZF8(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?u=this.a11yConfig.reachRightOfImage:P=this.imageWidth*.05*-1;break;case "ArrowRight":ZF8(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?u=this.a11yConfig.reachLeftOfImage:P=this.imageWidth*.05}u&&_.Td(u)&&_.ms(this.hostElement,"iron-announce",{text:_.Td(u)});if(P||S)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+S)),Y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),Y=_.Td(this.a11yConfig.imageVerticalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+P)),Y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),Y=_.Td(this.a11yConfig.imageHorizontalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})),Y&&_.ms(this.hostElement,"iron-announce",{text:Y})}};
_.z.getPreviewPosition=function(Y,S,P,u){return Math.round(100*(Y+S*.5-P)/u)};
_.z.displayImage=function(){var Y=this.JSC$13396_pickerContainer.getBoundingClientRect().width,S=this.JSC$13396_pickerContainer.getBoundingClientRect().height,P=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),u=this.JSC$13396_imageInBackground.naturalWidth,W=this.JSC$13396_imageInBackground.naturalHeight;this.displayScale=Math.max(P/u,P/W);this.imageWidth=u*this.displayScale;this.imageHeight=W*this.displayScale;this.pickerDisplayOffsetLeft=(Y-P)/2;this.pickerDisplayOffsetTop=
(S-P)/2;this.imageDisplayOffsetLeft=W>u?this.pickerDisplayOffsetLeft:(Y-this.imageWidth)/2;this.imageDisplayOffsetTop=u>W?this.pickerDisplayOffsetTop:(S-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.z.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13396_imageInBackground.src=this.imageData.toString(),this.JSC$13396_imageInPicker.src=this.imageData.toString(),this.JSC$13396_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.z.getSignedPosition=function(Y,S,P){return S==="X"&&_.X3("HTML_DIR")==="rtl"?P==="-"?Y+"px":Y*-1+"px":P==="-"?Y*-1+"px":Y+"px"};
_.z.pickerMove=function(Y){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var S=this.pickerOffsetX-Y.clientX,P=this.pickerOffsetY-Y.clientY;this.pickerOffsetX=Y.clientX;this.pickerOffsetY=Y.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
P)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-S))}};
_.z.pickerMoveStart=function(Y){this.startPicker=!0;this.pickerOffsetX=Y.clientX;this.pickerOffsetY=Y.clientY};
_.z.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.z.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.ms(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.z.getPreviewOffset=function(Y,S,P,u){return S&&Y&&P?(u==="X"&&_.X3("HTML_DIR")==="rtl"?P/S*Y:P/S*Y*-1)+"px":"0px"};
_.z.getSimpleText=function(Y){return Y?_.Ma(Y):""};
_.z.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var Y=this.cropOffsetTop/this.imageHeight,S=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,P=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,u=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.I(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.ms(this.hostElement,"yt-img-crop-coordinates-update",{top:Y,right:S,bottom:P,left:u})}};
_.y6.Object.defineProperties(sk.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var Y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Td(this.a11yConfig.imageVerticalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})+"\n"+_.Td(this.a11yConfig.verticalRepositionInstruction)}Y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Td(this.a11yConfig.imageHorizontalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})+"\n"+_.Td(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var Y,S=(Y=this.learnMore.runs[0])==null?void 0:Y.navigationEndpoint,P;return((P=_.g(S,_.tp))==null?void 0:P.url)||void 0}}}});
sk.prototype.onImageDataChange=sk.prototype.onImageDataChange;_.Q([_.X(),_.k("design:type",Object)],sk.prototype,"imageData",void 0);_.Q([_.X(),_.k("design:type",Object)],sk.prototype,"instruction",void 0);_.Q([_.X(),_.k("design:type",Object)],sk.prototype,"a11yConfig",void 0);_.Q([_.X(),_.k("design:type",Number)],sk.prototype,"imageWidth",void 0);_.Q([_.X(),_.k("design:type",Number)],sk.prototype,"imageHeight",void 0);_.Q([_.X(),_.k("design:type",Number)],sk.prototype,"displayScale",void 0);
_.Q([_.X(),_.k("design:type",Object)],sk.prototype,"imageDisplayOffsetTop",void 0);_.Q([_.X(),_.k("design:type",Object)],sk.prototype,"imageDisplayOffsetLeft",void 0);_.Q([_.X(),_.k("design:type",Object)],sk.prototype,"pickerDisplayOffsetTop",void 0);_.Q([_.X(),_.k("design:type",Object)],sk.prototype,"pickerDisplayOffsetLeft",void 0);_.Q([_.X(),_.k("design:type",Object)],sk.prototype,"cropCoordinatesSaved",void 0);_.Q([_.X(),_.k("design:type",Object)],sk.prototype,"previewSize",void 0);
_.Q([_.X(),_.k("design:type",Object)],sk.prototype,"startPicker",void 0);_.Q([_.X(),_.k("design:type",Number)],sk.prototype,"pickerOffsetX",void 0);_.Q([_.X(),_.k("design:type",Number)],sk.prototype,"pickerOffsetY",void 0);_.Q([_.X(),_.k("design:type",Object)],sk.prototype,"repositionOptional",void 0);_.Q([_.nc("#picker-container"),_.k("design:type",HTMLElement)],sk.prototype,"JSC$13396_pickerContainer",void 0);_.Q([_.nc("#picker"),_.k("design:type",HTMLElement)],sk.prototype,"picker",void 0);
_.Q([_.nc("#image-in-picker-background"),_.k("design:type",HTMLImageElement)],sk.prototype,"JSC$13396_imageInBackground",void 0);_.Q([_.nc("#image-in-picker"),_.k("design:type",HTMLImageElement)],sk.prototype,"JSC$13396_imageInPicker",void 0);_.Q([_.nc("#image-in-preview-clipper"),_.k("design:type",HTMLImageElement)],sk.prototype,"JSC$13396_imageInPreviewClipper",void 0);_.Q([_.nc("#full-image-as-preview"),_.k("design:type",HTMLImageElement)],sk.prototype,"imageAsPreview",void 0);
_.Q([_.d("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],sk.prototype,"altLabelForImage",null);_.Q([_.d("imageHeight","imageWidth"),_.k("design:type",Number),_.k("design:paramtypes",[])],sk.prototype,"pickerSize",null);_.Q([_.d("imageHeight","imageWidth"),_.k("design:type",Object),_.k("design:paramtypes",[])],sk.prototype,"imageOrientationStyle",null);
_.Q([_.d("instruction.previewInstruction.editButtonLabel"),_.k("design:type",Object),_.k("design:paramtypes",[])],sk.prototype,"editButton",null);_.Q([_.d("instruction.editInstruction.saveButtonLabel"),_.k("design:type",Object),_.k("design:paramtypes",[])],sk.prototype,"saveButton",null);_.Q([_.d("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.k("design:type",Number),_.k("design:paramtypes",[])],sk.prototype,"cropOffsetTop",null);
_.Q([_.d("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.k("design:type",Number),_.k("design:paramtypes",[])],sk.prototype,"cropOffsetLeft",null);_.Q([_.d("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],sk.prototype,"pickerBackgroundStyle",null);_.Q([_.d("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],sk.prototype,"pickerDisplayStyle",null);
_.Q([_.d("cropOffsetLeft","cropOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],sk.prototype,"imageInPickerStyle",null);_.Q([_.d("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.k("design:type",String),_.k("design:paramtypes",[])],sk.prototype,"previewClipperStyle",null);_.Q([_.zY("imageData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sk.prototype,"onImageDataChange",null);
_.Q([_.d("cropCoordinatesSaved"),_.k("design:type",String),_.k("design:paramtypes",[])],sk.prototype,"pickerModeStyle",null);_.Q([_.d("instruction.editInstruction.learnMore"),_.k("design:type",Object),_.k("design:paramtypes",[])],sk.prototype,"learnMore",null);_.Q([_.d("learnMore"),_.k("design:type",Object),_.k("design:paramtypes",[])],sk.prototype,"learnMoreUrl",null);sk=_.Q([_.r0({is:"yt-img-crop-picker",disableElementRegistration:!0})],sk);
_.A(sk,"yt-img-crop-picker",function(){if($3f===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;gkU===void 0&&(gkU=document.createElement("template"));var u=gkU;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);$3f=Y}Y=$3f;return Y},{mode:2});var d5=function(){var Y=_.Z.apply(this,arguments)||this;Y.errorMessage="";Y.hasPreview=!1;Y.isBackstagePost=!1;Y.dismissButtonOverrides={size:"XS"};return Y};
_.r(d5,_.Z);_.z=d5.prototype;_.z.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"}}}};
_.z.detached=function(){this.removeOverlay()};
_.z.setPreview=function(Y){_.I(this.hostElement).querySelector("#preview-picker").imageData=Y;this.hasPreview=!0;_.ms(this.hostElement,"yt-backstage-image-select-preview")};
_.z.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var Y=_.I(this.hostElement).querySelector("#dropzone");Y.classList.remove("dragover");Y.classList.remove("error");_.ms(this.hostElement,"yt-backstage-image-select-cancel")};
_.z.setupOverlay=function(){var Y=this.imageUploadEndpoint;this.removeOverlay();if(Y&&Y.imageValidationInfo){var S=_.I(this.hostElement).querySelector("#dropzone"),P=_.I(this.hostElement).querySelector("#select");this.overlay=new iO(Y.uploadUrl,Y.channelId,Y.imageValidationInfo.maxFileSizeMb,Y.imageValidationInfo.allowedMaxAspectRatio,S,P,!0);_.b2(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.b2(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.b2(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.b2(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.b2(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.z.removeOverlay=function(){this.overlay&&(_.bG(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.bG(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.bG(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.bG(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.bG(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.z.onDragOver=function(Y){var S=_.I(this.hostElement).querySelector("#dropzone");_.Vm(S,"dragover",Y.value)};
_.z.onPreview=function(Y){this.setPreview(Y.value)};
_.z.onImageError=function(Y){if(Y.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var S;Y=(S=this.data)==null?void 0:S.fileSizeError}else if(Y.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var P;Y=(P=this.data)==null?void 0:P.invalidError}else if(Y.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var u;Y=(u=this.data)==null?void 0:u.invalidAspectRatioError}else return;this.errorMessage=_.Ma(Y);_.I(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.z.onImageAlert=function(Y){this.onImageError(Y)};
_.z.uploadPromise=function(){var Y=this,S=this.overlay&&this.overlay.uploadPromise();if(S)return S.catch(function(){throw Error(Y.data?_.Ma(Y.data.uploadFailureError):"");})};
_.y6.Object.defineProperties(d5.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var Y,S;if((Y=this.data)==null?0:(S=Y.icon)==null?0:S.iconType)return _.u2(this.data.icon.iconType)}}});
d5.prototype.setupOverlay=d5.prototype.setupOverlay;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],d5.prototype,"rendererStamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],d5.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],d5.prototype,"imageUploadEndpoint",void 0);_.Q([_.X(),_.k("design:type",Object)],d5.prototype,"errorMessage",void 0);
_.Q([_.X(),_.k("design:type",iO)],d5.prototype,"overlay",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],d5.prototype,"hasPreview",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],d5.prototype,"isBackstagePost",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],d5.prototype,"selectionCancel",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],d5.prototype,"previewCancel",null);
_.Q([_.d("data.icon.iconType"),_.k("design:type",Object),_.k("design:paramtypes",[])],d5.prototype,"icon",null);_.Q([_.X(),_.k("design:type",Object)],d5.prototype,"dismissButtonOverrides",void 0);_.Q([_.zY("imageUploadEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],d5.prototype,"setupOverlay",null);d5=_.Q([_.t({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],d5);
_.A(d5,"ytd-backstage-image-select-renderer",function(){if(Eku!==void 0)return Eku;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Eku=Y},{mode:1});var rod;var GmJ;var lF=function(){var Y=_.Z.apply(this,arguments)||this;Y.selected=!1;return Y};
_.r(lF,_.Z);_.z=lF.prototype;_.z.computeSelected=function(Y){return Y==null?void 0:Y.selected};
_.z.computeTransform=function(Y,S,P){var u,W,m=(W=(u=this.imageContainer)==null?void 0:u.getBoundingClientRect())!=null?W:{width:0,height:0};u=Math.max(m.width/S,m.height/P);P=P*u*Y.top;return"translateX("+this.getSignedPosition(S*u*Y.left,"X","-")+") translateY("+this.getSignedPosition(P,"Y","-")+")"};
_.z.getSignedPosition=function(Y,S,P){return S==="X"&&_.X3("HTML_DIR")==="rtl"?P==="-"?Y+"px":Y*-1+"px":P==="-"?Y*-1+"px":Y+"px"};
_.z.onClick=function(){var Y;_.ms(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(Y=this.data)==null?void 0:Y.image)};
_.z.onKeyPress=function(Y){if(Y.keyCode===13)this.onClick()};
_.y6.Object.defineProperties(lF.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:(S=Y.image)==null?void 0:S.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)!=null&&Y.image){var S;Y=(S=this.data)==null?void 0:S.image;return Y.previewCoordinates.top!==0||Y.previewCoordinates.left!==0?(S=this.computeTransform(Y.previewCoordinates,Y.naturalWidth,Y.naturalHeight),Y.naturalHeight>=Y.naturalWidth?"width:inherit;transform:"+S+";":"height:inherit;transform:"+S+";"):Y.naturalHeight>=Y.naturalWidth?"width:inherit;":"height:inherit;"}}}});
lF.prototype.onKeyPress=lF.prototype.onKeyPress;_.Q([_.nc(".image-container"),_.k("design:type",HTMLElement)],lF.prototype,"imageContainer",void 0);_.Q([_.X(),_.k("design:type",Object)],lF.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.k("design:type",Object)],lF.prototype,"selected",void 0);_.Q([_.d("data.image"),_.k("design:type",Object),_.k("design:paramtypes",[])],lF.prototype,"thumbnailUrl",null);
_.Q([_.d("data.image","data.image.previewCoordinates"),_.k("design:type",Object),_.k("design:paramtypes",[])],lF.prototype,"thumbnailStyle",null);_.Q([_.WZ("keypress"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],lF.prototype,"onKeyPress",null);lF=_.Q([_.t({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],lF);
_.A(lF,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(GmJ!==void 0)return GmJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return GmJ=Y},{mode:2});var Xz=function(Y,S,P){P=P===void 0?!1:P;_.Tj.call(this);var u=this;this.dropZoneOverlay=new ma(Y);this.selectOverlay=P?new nP(S,"multiple_file",["image/*"]):new nP(S,"single_file",["image/*"]);this.handler=new _.u6(this);_.Ph(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(S,"click",function(){u.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.r(Xz,_.Tj);Xz.prototype.onChange=function(Y){var S;(S=Y.files)!=null&&S.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:Y.files}))};var Z2=function(){var Y=_.Z.apply(this,arguments)||this;Y.addImageErrorMessage="";Y.errorMessage="";Y.images=[];Y.selectedImageIndex=0;Y.modern=_.f("web_modern_buttons");Y.maxNumImagesPerPost=_.z_("max_num_images_per_post_web_ui");Y.JSC$13411_imageId=0;return Y};
_.r(Z2,_.Z);_.z=Z2.prototype;_.z.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.ms(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.z.observeDragToReorder=function(){var Y=this;if(this.showImagesPreview){var S,P=QTi(_.km.getInstance(),(S=this.data)==null?void 0:S.dragToReorderTooltip);_.wc.addLowPriorityJob(function(){_.cu(Y.hostElement,P,Y.thumbnailDragDropArea)})}};
_.z.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}}};
_.z.computeThumbnail=function(Y){return(Y==null?void 0:Y.localImageSrc)||void 0};
_.z.onRendererstamperFinished=function(){_.f$d(this.ytReorderableBehavior,_.I(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.I(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.z.handleDrop=function(Y){var S=Y.currDragItem;if(S!=null&&S.data){Y=this.images[this.selectedImageIndex];var P=S.data.image,u=this.images.indexOf(P)||0;S=_.oh(S.parentNode.children,S);this.images.splice(u,1);this.images.splice(S,0,P);this.images=[].concat(_.cz(this.images));this.selectedImageIndex=this.images.indexOf(Y)}};
_.z.setUpImagePicker=function(){var Y=this.imageUploadEndpoint;Y&&Y.imageValidationInfo&&(this.uploadManager=new vS(Y.uploadUrl,Y.channelId),this.initialPicker||(this.initialPicker=new Xz(this.dropzone,this.selectLink,!0),_.b2(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Xz(this.addImageButtonContainer,this.addImageSelectButton),_.b2(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.b2(this.JSC$13411_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.b2(this.JSC$13411_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.b2(_.I(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.z.detached=function(){this.initialPicker&&(_.bG(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.bG(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.z.onInitialSelectImages=function(Y){var S=this;return _.B(function(P){return _.q(P,S.onSelectImages(Y,!1),0)})};
_.z.onAddImage=function(Y){var S=this;return _.B(function(P){return _.q(P,S.onSelectImages(Y,!0),0)})};
_.z.onSelectImages=function(Y,S){var P=this,u,W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V,M,zJ,O;return _.B(function(ca){switch(ca.nextAddress){case 1:S?P.addImageErrorMessage="":(P.images=[],P.errorMessage="");u=Y.detail;W=P.validateImages([].concat(_.cz(u)));if(W!=="")return S?P.addImageErrorMessage=W:P.errorMessage=W,ca.return();m=[].concat(_.cz(u)).map(function(hu){return(new XZ(P.maxAspectRatio,!1,!0)).transform(hu)});
return _.q(ca,Promise.allSettled(m),2);case 2:J=ca.yieldResult,c=_.n(J.entries()),C=c.next();case 3:if(C.done){ca.jumpTo(5);break}x=C.value;b=_.n(x);T=b.next().value;K=b.next().value;G=T;v=K;if(v.status!=="fulfilled"){F=w=a=void 0;S?P.addImageErrorMessage=_.Ma((a=P.data)==null?void 0:a.invalidError):P.errorMessage=P.errorMessage===""?_.Ma((w=P.data)==null?void 0:w.invalidError):_.Ma((F=P.data)==null?void 0:F.multiFileError);ca.jumpTo(4);break}U=v.value;U.cropped&&_.ms(P.hostElement,"yt-backstage-multi-image-cropped");
if(U.invalidAspectRatio){zJ=M=V=void 0;S?P.addImageErrorMessage=_.Ma((V=P.data)==null?void 0:V.invalidAspectRatioError):P.errorMessage=P.errorMessage===""?_.Ma((M=P.data)==null?void 0:M.invalidAspectRatioError):_.Ma((zJ=P.data)==null?void 0:zJ.multiFileError);ca.jumpTo(4);break}return _.q(ca,lEJ(P.JSC$13411_imageId,Y.detail[G],U.transformedData),8);case 8:O=ca.yieldResult,P.images.push(O),P.JSC$13411_imageId++;case 4:C=c.next();ca.jumpTo(3);break;case 5:if(P.errorMessage!==""||P.addImageErrorMessage!==
"")return ca.return();S?cot(P.uploadManager,[P.images[P.images.length-1]]):cot(P.uploadManager,P.images);P.images=[].concat(_.cz(P.images));P.selectedImageIndex=S?Math.max(P.images.length-1,0):0;_.ms(P.hostElement,"yt-backstage-multi-image-select");_.Yt(ca)}})};
_.z.onThumbnailClick=function(Y){if(Y=Y.event_.detail)this.selectedImageIndex=this.images.indexOf(Y)};
_.z.validateImages=function(Y){if(Y.length>this.maxNumImagesPerPost){var S;return _.Ma((S=this.data)==null?void 0:S.multiImageExceedMaxImageCountError)}var P=1048576*this.maxFileSizeMb;Y=Y.filter(function(m){return m.size>P}).length;
if(Y===0)return"";var u,W;Y=Y>1?(u=this.data)==null?void 0:u.multiFileError:(W=this.data)==null?void 0:W.fileSizeError;return _.Ma(Y)};
_.z.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.cz(this.images));this.selectedImageIndex=0};
_.z.repositionImage=function(Y){this.images[this.selectedImageIndex].previewCoordinates=Y.event_.detail;this.images=[].concat(_.cz(this.images))};
_.z.getAllUploadStatuses=function(){var Y=this,S,P,u,W;return _.B(function(m){if(m.nextAddress==1)return _.q(m,Y.uploadManager.getAllUploadStatuses(),2);S=m.yieldResult;P=_.n(S);for(u=P.next();!u.done;u=P.next())if(W=u.value,W.encryptedBlobId===void 0)return m.return(Cbu(Y.uploadManager));return m.return(S)})};
_.z.hasImages=function(){return this.images.length>0};
_.z.cancel=function(){for(var Y=this.uploadManager,S=_.n(Y.imagesUploadData),P=S.next();!P.done;P=S.next())Y.cancel(P.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.ms(this.hostElement,"yt-backstage-multi-image-cancel")};
_.y6.Object.defineProperties(Z2.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.imageUploadEndpoint)==null?void 0:(S=Y.imageValidationInfo)==null?void 0:S.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.imageUploadEndpoint)==null?void 0:(S=Y.imageValidationInfo)==null?void 0:S.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var Y,S;if((Y=this.data)==null?0:(S=Y.icon)==null?0:S.iconType)return _.u2(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var Y=this;return(this.images||[]).map(function(S,P){return{renderer:{image:S,selected:P===Y.selectedImageIndex}}})}}});
Z2.prototype.setUpImagePicker=Z2.prototype.setUpImagePicker;Z2.prototype.onRendererstamperFinished=Z2.prototype.onRendererstamperFinished;Z2.prototype.observeDragToReorder=Z2.prototype.observeDragToReorder;Z2.prototype.observeAddImageError=Z2.prototype.observeAddImageError;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Z2.prototype,"rendererStamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.gjs),_.k("design:type",Object)],Z2.prototype,"ytReorderableBehavior",void 0);_.Q([_.nc("#dropzone"),_.k("design:type",HTMLElement)],Z2.prototype,"dropzone",void 0);_.Q([_.nc("#select-link"),_.k("design:type",HTMLElement)],Z2.prototype,"selectLink",void 0);_.Q([_.nc("#thumbnail-drag-drop-area"),_.k("design:type",HTMLElement)],Z2.prototype,"thumbnailDragDropArea",void 0);_.Q([_.nc("#add-image-button-container"),_.k("design:type",HTMLElement)],Z2.prototype,"addImageButtonContainer",void 0);
_.Q([_.nc("#add-image-button"),_.k("design:type",HTMLElement)],Z2.prototype,"addImageSelectButton",void 0);_.Q([_.nc("#image-preview-container"),_.k("design:type",Object)],Z2.prototype,"JSC$13411_imagePreviewContainer",void 0);_.Q([_.X(),_.k("design:type",Object)],Z2.prototype,"addImageErrorMessage",void 0);_.Q([_.X(),_.k("design:type",Object)],Z2.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Z2.prototype,"errorMessage",void 0);
_.Q([_.X(),_.k("design:type",Object)],Z2.prototype,"imageUploadEndpoint",void 0);_.Q([_.X(),_.k("design:type",Array)],Z2.prototype,"images",void 0);_.Q([_.X(),_.k("design:type",Xz)],Z2.prototype,"initialPicker",void 0);_.Q([_.X(),_.k("design:type",Xz)],Z2.prototype,"addImagePicker",void 0);_.Q([_.X(),_.k("design:type",vS)],Z2.prototype,"uploadManager",void 0);_.Q([_.X(),_.k("design:type",Object)],Z2.prototype,"selectedImageIndex",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Z2.prototype,"modern",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Z2.prototype,"maxNumImagesPerPost",void 0);_.Q([_.d("imageUploadEndpoint"),_.k("design:type",Number),_.k("design:paramtypes",[])],Z2.prototype,"maxAspectRatio",null);_.Q([_.d("imageUploadEndpoint"),_.k("design:type",Number),_.k("design:paramtypes",[])],Z2.prototype,"maxFileSizeMb",null);
_.Q([_.d("data.icon.iconType"),_.k("design:type",Object),_.k("design:paramtypes",[])],Z2.prototype,"dropIcon",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Z2.prototype,"selectionCancel",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Z2.prototype,"previewCancel",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Z2.prototype,"dataForAddImageButton",null);
_.Q([_.d("errorMessage"),_.k("design:type",String),_.k("design:paramtypes",[])],Z2.prototype,"dropzoneClass",null);_.Q([_.d("images"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Z2.prototype,"showImagesPreview",null);_.Q([_.d("images"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Z2.prototype,"containMaxImages",null);_.Q([_.zY("addImageErrorMessage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Z2.prototype,"observeAddImageError",null);
_.Q([_.zY("showImagesPreview"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Z2.prototype,"observeDragToReorder",null);_.Q([_.d("images","selectedImageIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],Z2.prototype,"selectedImageData",null);_.Q([_.d("images","selectedImageIndex"),_.k("design:type",Array),_.k("design:paramtypes",[])],Z2.prototype,"thumbnailRenderers",null);
_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Z2.prototype,"onRendererstamperFinished",null);_.Q([_.zY("imageUploadEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Z2.prototype,"setUpImagePicker",null);Z2=_.Q([_.t({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Z2);
_.A(Z2,"ytd-backstage-multi-image-select-renderer",function(){if(rod!==void 0)return rod;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return rod=Y},{mode:1});var hbJ;var vk6;var D3s;var iF=function(){var Y=_.Z.apply(this,arguments)||this;Y.boundCaptureFocus=function(S){Y.onCaptureFocus(S)};
return Y};
_.r(iF,_.Z);_.z=iF.prototype;_.z.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.z.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.z.onCaptureFocus=function(Y){_.iM(Y).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.z.getIconType=function(Y){return Y?"yt-icons:"+Y.toLowerCase():null};
_.z.onSelect=function(){var Y;if((Y=this.data)==null?0:Y.onSelectCommand)if(_.f("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var S;((S=_.g(this.data.onSelectCommand.commandMetadata,_.Yo))==null?0:S.url)?_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.E().resolve(_.uY).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.y6.Object.defineProperties(iF.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Ma(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],iF.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],iF.prototype,"data",void 0);_.Q([_.nc("#item"),_.k("design:type",HTMLElement)],iF.prototype,"item",void 0);_.Q([_.d("data.label"),_.k("design:type",String),_.k("design:paramtypes",[])],iF.prototype,"label",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],iF.prototype,"value",null);iF=_.Q([_.t({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],iF);
_.A(iF,"ytd-privacy-dropdown-item-renderer",function(){if(D3s!==void 0)return D3s;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return D3s=Y},{mode:1});var oo=function(){var Y=_.Z.apply(this,arguments)||this;Y.value="";Y.label="";Y.disabled=!1;return Y};
_.r(oo,_.Z);_.z=oo.prototype;_.z.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"}}}};
_.z.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.z.dataChanged=function(){this.reset()};
_.z.valueChanged=function(){var Y;if(this.value&&(Y=this.data)!=null&&Y.entries){Y=_.n(this.data.entries);for(var S=Y.next();!S.done;S=Y.next())if((S=this.getRendererForEntry(S.value))&&this.getItemRendererValue(S)===this.value){this.label=this.ytComponentBehavior.getSimpleString(S.label);break}}};
_.z.setInitialLabel=function(){if(this.data&&this.data.entries)for(var Y=_.n(this.data.entries),S=Y.next();!S.done;S=Y.next())if(S=this.getRendererForEntry(S.value)){if(S.isSelected){this.label=this.ytComponentBehavior.getSimpleString(S.label);break}this.data.label&&(this.label=this.data.label)}};
_.z.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var Y=_.n(this.data.entries),S=Y.next();!S.done;S=Y.next()){S=this.getRendererForEntry(S.value);var P=void 0;if((P=S)==null?0:P.isSelected)return this.getItemRendererValue(S)||-1}return-1};
_.z.getItemRendererValue=function(Y){return"stringValue"in Y||"int32Value"in Y?Y.stringValue||Y.int32Value||null:null};
_.z.getRendererForEntry=function(Y){return Y.dropdownItemRenderer||Y.privacyDropdownItemRenderer||Y.navigationDropdownItemRenderer||null};
_.z.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("value-changed",this.value))};
_.z.updateValueFromBinding=function(Y){this.value=Y.detail.value};
oo.prototype.valueChangedForBinding=oo.prototype.valueChangedForBinding;oo.prototype.valueChanged=oo.prototype.valueChanged;oo.prototype.dataChanged=oo.prototype.dataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],oo.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],oo.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],oo.prototype,"value",void 0);_.Q([_.X(),_.k("design:type",Object)],oo.prototype,"label",void 0);_.Q([_.nc("#entries"),_.k("design:type",Object)],oo.prototype,"entries",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],oo.prototype,"disabled",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oo.prototype,"dataChanged",null);
_.Q([_.cZ("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oo.prototype,"valueChanged",null);_.Q([_.zY("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oo.prototype,"valueChangedForBinding",null);oo=_.Q([_.t({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],oo);
_.A(oo,"ytd-flat-dropdown-renderer",function(){if(vk6!==void 0)return vk6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return vk6=Y},{mode:1});var Ir3;var t2=function(){var Y=_.Z.apply(this,arguments)||this;Y.quizOptions=[];Y.explanationPlaceholderText="";Y.optionPlaceholderText="";Y.correctAnswerIndex=-1;Y.isMarkAnswerTooltipShown=!1;Y.timer=0;return Y};
_.r(t2,_.Z);_.z=t2.prototype;_.z.dataChanged=function(){this.optionPlaceholderText=_.Ma(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Ma(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.z.onMarkCorrectAnswer=function(Y){var S,P=((S=this.quizOptions[this.correctAnswerIndex])==null?void 0:S.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[Y.model.index]=Object.assign({},this.quizOptions[Y.model.index],{explanationText:P,isCorrect:!0});this.correctAnswerIndex=Y.model.index;this.quizOptions=[].concat(_.cz(this.quizOptions))};
_.z.updatePlaceholderTexts=function(){for(var Y=!1,S=[],P=0;P<this.quizOptions.length;P++){var u=this.optionPlaceholderText+" "+(P+1),W=void 0;((W=this.quizOptions[P])==null?void 0:W.placeholderText)!==u?(Y=!0,S.push(Object.assign({},this.quizOptions[P],{placeholderText:u}))):S.push(this.quizOptions[P])}Y&&(this.quizOptions=S);this.isValid()?_.ms(this.hostElement,"yt-commentbox-post-enable"):_.ms(this.hostElement,"yt-commentbox-post-disable")};
_.z.getSimpleString=function(Y){return _.Ma(Y)};
_.z.createQuizOptions=function(Y){var S=[],P;Y=(P=Y==null?void 0:Y.minQuizOptions)!=null?P:0;for(P=0;P<Y;P++)S.push(this.createQuizOption());return S};
_.z.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.cz(this.quizOptions),[this.createQuizOption()]))};
_.z.onInput=function(){this.quizOptions=[].concat(_.cz(this.quizOptions))};
_.z.onExplanationInput=function(){_.ms(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.z.onRemoveQuizOption=function(Y){this.quizOptions.splice(Y.model.index,1);Y.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:Y.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.cz(this.quizOptions));this.quizOptions.length===0&&_.ms(this.hostElement,"yt-quiz-attachment-dismiss")};
_.z.updateHintRenderer=function(){var Y=this;clearTimeout(this.timer);this.timer=setTimeout(function(){Y.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.z.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var Y=0,S=0,P=_.n(this.quizOptions),u=P.next();!u.done;u=P.next()){u=u.value;var W=void 0;if(((W=u.optionText)==null?void 0:W.trim())!==""||u.isCorrect){u.isCorrect&&S++;W=void 0;if(this.hasCustomOptionText&&((W=u.optionText)==null?void 0:W.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;Y++}}return Y>=
Number(this.editorInfo.minQuizOptions)&&S===1};
_.z.getPostCreateOptions=function(){for(var Y=[],S=_.n(this.quizOptions),P=S.next();!P.done;P=S.next()){P=P.value;var u=void 0;((u=P.optionText)==null?void 0:u.trim())!==""&&Y.push({pollOption:{text:P.optionText,explanation:P.explanationText},isCorrect:P.isCorrect})}return Y};
_.z.getExplanationText=function(){var Y;return((Y=this.quizOptions[this.correctAnswerIndex])==null?void 0:Y.explanationText)||""};
_.z.maybeDisplayMarkAnswerEduToolTip=function(){var Y,S,P,u,W,m,J;this.shouldShowMarkAnswerTooltip()&&((Y=this.editorInfo)==null?0:(S=Y.markAnswerButton)==null?0:(P=S.buttonRenderer)==null?0:(u=P.hint)==null?0:(W=u.hintRenderer)==null?0:(m=W.content)==null?0:(J=m.bubbleHintRenderer)==null?0:J.text)&&(_.km.getInstance(),Y=Mn(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(Y==null?void 0:Y.length)>0&&this.optionSelectors&&_.m4(Y[0],this.optionSelectors[0]))};
_.z.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var Y=0,S=_.n(this.quizOptions),P=S.next();!P.done;P=S.next()){P=P.value;var u=void 0;((u=P.optionText)==null?void 0:u.trim())!==""&&Y++;if(P.isCorrect)return!1}return Y<2?!1:!0};
_.z.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.z.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.z.updateOptionTextFromBinding=function(Y){if(Y.target){var S=Array.from(_.I(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(Y.target);if(S>=0){var P;this.quizOptions[S].optionText=(P=Y.detail.value)!=null?P:""}}};
_.y6.Object.defineProperties(t2.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(Y=this.editorInfo)==null?void 0:(S=Y.addOptionButton)==null?void 0:S.buttonRenderer;P&&(P.style="STYLE_SUGGESTIVE",P.size="SIZE_SMALL",P.isDisabled=!this.isAllowedToAddOption);return(P==null?0:P.text)?P:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var Y,S;return this.quizOptions.length<((S=(Y=this.editorInfo)==null?void 0:Y.maxQuizOptions)!=null?S:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(Y){var S;return(S=Y.optionText)==null?void 0:S.trim()})}}});
t2.prototype.updatePlaceholderTexts=t2.prototype.updatePlaceholderTexts;t2.prototype.dataChanged=t2.prototype.dataChanged;_.Q([_.X(),_.k("design:type",Object)],t2.prototype,"editorInfo",void 0);_.Q([_.X(),_.k("design:type",Array)],t2.prototype,"quizOptions",void 0);_.Q([_.X(),_.k("design:type",Object)],t2.prototype,"explanationPlaceholderText",void 0);_.Q([_.jD(".option-selector-button"),_.k("design:type",Array)],t2.prototype,"optionSelectors",void 0);
_.Q([_.cZ("editorInfo"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],t2.prototype,"dataChanged",null);_.Q([_.d("editorInfo","isAllowedToAddOption","quizOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],t2.prototype,"addAnswerButton",null);_.Q([_.d("editorInfo","quizOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],t2.prototype,"isAllowedToAddOption",null);
_.Q([_.cZ("quizOptions"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],t2.prototype,"updatePlaceholderTexts",null);_.Q([_.d("quizOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],t2.prototype,"hasCustomOptionText",null);t2=_.Q([_.t({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],t2);
_.A(t2,"ytd-backstage-quiz-editor-renderer",function(){if(Ir3!==void 0)return Ir3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ir3=Y},{mode:2});var arf;var L7m=(f6.FIRSTDAYOFWEEK+1)%7;var wlU;var plL=[],F7L=0,sv_=0;F7L=0;sv_=24;if(.25*(sv_-F7L)<0)wlU=[];else{for(var d3J=F7L;d3J<sv_;d3J+=.25)plL.push(d3J);wlU=plL}var lr_=wlU.map(function(Y){Y=Y*60*60;return{secondsSinceMidnight:Y,text:(new UC(7)).format(new Date(0,0,0,0,0,Y))}});var Xl6;var A2=function(){var Y=_.Z.apply(this,arguments)||this;Y.skipNextOpenDialog=!1;Y.errorMessage="";return Y};
_.r(A2,_.Z);_.z=A2.prototype;_.z.attached=function(){var Y=this,S=new MutationObserver(function(){Y.JSC$13454_calendarMain.scrollHeight>0&&(S.disconnect(),Y.calendarConfig&&Y.calendarConfig.selectedDate&&Y.scrollToDate())});
S.observe(this.JSC$13454_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){S.disconnect()},1E3)};
_.z.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.z.onDateTextChange=function(){if(this.calendarConfig){var Y=this.validateDateText();Y.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(Y.details)):this.textbox.setAttribute("invalid","")}};
_.z.handleDayClick=function(Y){Y.model.day.date&&(this.commitDate(Y.model.day.date),this.dialog.close())};
_.z.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var Y=yUJ(this.calendarConfig.selectedDate,this.renderData);Y!==void 0&&this.JSC$13454_calendarMain.scrollToIndex(Y)}};
_.z.scrollToNextMonth=function(){this.JSC$13454_calendarMain.scrollToIndex(this.JSC$13454_calendarMain.firstVisibleIndex+1)};
_.z.scrollToPrevMonth=function(){this.JSC$13454_calendarMain.firstVisibleIndex===0&&this.JSC$13454_calendarMain.scrollTo(0,0);this.JSC$13454_calendarMain.scrollToIndex(this.JSC$13454_calendarMain.firstVisibleIndex-1)};
_.z.onFormSubmit=function(Y){Y.preventDefault();this.calendarConfig&&(Y=this.validateDateText(),Y.isValid&&(this.commitDate(Y.details),this.dialog.close()))};
_.z.onEscOrClickingOutside=function(Y){Y=Y.detail.path&&!!Y.detail.path.length&&Y.detail.path[0];if(Y.classList.contains("ytd-calendar-date-picker")){Y===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var S=0;S<this.dropdownButton.children.length;S++)this.dropdownButton.children[S]===Y&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}Y=this.textbox.value!==this.dateText;S=this.validateDateText();Y&&S.isValid&&this.commitDate(S.details);this.dialog.close();this.textbox.value=
this.dateText};
_.z.commitDate=function(Y){this.calendarConfig&&(this.set("calendarConfig.selectedDate",Y),_.ms(this.hostElement,"ytd-calendar-date-selected",Y))};
_.z.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var Y=this.textbox.value;var S=new Date;Y=(new qcK(2)).parse(Y,S,{validate:!0})===Y.length?kua(S):void 0;if(!Y)return this.errorMessage=_.Td("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};S=this.calendarConfig.start;var P=this.calendarConfig.end;if(or1(Y,S))return this.errorMessage=_.Td("ENTER_DATE_OR_LATER",{allowed_date:QwU(S)}),{isValid:!1,details:void 0};if(or1(P,Y))return this.errorMessage=
_.Td("ENTER_DATE_OR_EARLIER",{allowed_date:QwU(P)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:Y}};
_.y6.Object.defineProperties(A2.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?QwU(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var Y=this.calendarConfig,S=[],P=0;P<7;P++)S.push(f6.NARROWWEEKDAYS[(P+L7m)%7]);P=[];for(var u=new Date(Y.start.year,Y.start.month);u.getFullYear()<Y.end.year||u.getFullYear()===Y.end.year&&u.getMonth()<=Y.end.month;){var W=P,m=W.push,J=u.getFullYear(),c=u.getMonth(),C=Y,x=void 0,b=[],T=Object.freeze({extraCssClass:"invisible",debugClass:""}),K=new Date(J,c),G=kua(K);K=K.getDay();for(var v=kua(new Date);G.month===
c;){K!==L7m&&x||(x=Array.from({length:7}).fill(T),b.push(x));var a={date:{year:J,month:c,day:G.day},extraCssClass:"",debugClass:""};C.selectedDate&&a.date&&iFK(a.date,C.selectedDate)&&(a.extraCssClass+=" selected");if(or1(G,C.start)||or1(C.end,G))a.extraCssClass+=" disabled";iFK(G,v)&&(a.extraCssClass+=" today");a.extraCssClass=a.extraCssClass.trim();x[(K-L7m+7)%7]=a;G=AUY(G);K=(K+1)%7}m.call(W,{weeks:b,monthLabel:f6.SHORTMONTHS[c]+" "+J,year:J,month:c,monthLabelExtraCssClass:b[0][2]===T?"shift-down-label":
""});u.setMonth(u.getMonth()+1)}return{months:P,daysOfWeekLabel:S}}}}});
A2.prototype.onEscOrClickingOutside=A2.prototype.onEscOrClickingOutside;A2.prototype.scrollToDate=A2.prototype.scrollToDate;_.Q([_.X(),_.k("design:type",Object)],A2.prototype,"calendarConfig",void 0);_.Q([_.X(),_.k("design:type",Object)],A2.prototype,"skipNextOpenDialog",void 0);_.Q([_.X(),_.k("design:type",Object)],A2.prototype,"errorMessage",void 0);_.Q([_.nc("#textbox"),_.k("design:type",HTMLInputElement)],A2.prototype,"textbox",void 0);
_.Q([_.nc("#calendar-dialog"),_.k("design:type",Object)],A2.prototype,"dialog",void 0);_.Q([_.nc("#calendar-main"),_.k("design:type",Object)],A2.prototype,"JSC$13454_calendarMain",void 0);_.Q([_.nc("#date-picker"),_.k("design:type",HTMLElement)],A2.prototype,"dropdownButton",void 0);_.Q([_.d("calendarConfig.selectedDate"),_.k("design:type",String),_.k("design:paramtypes",[])],A2.prototype,"dateText",null);
_.Q([_.d("calendarConfig","calendarConfig.selectedDate"),_.k("design:type",Object),_.k("design:paramtypes",[])],A2.prototype,"renderData",null);_.Q([_.zY("renderData","calendarConfig.selectedDate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],A2.prototype,"scrollToDate",null);_.Q([_.WZ("iron-overlay-canceled"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],A2.prototype,"onEscOrClickingOutside",null);
A2=_.Q([_.r0({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],A2);
_.A(A2,"ytd-calendar-date-picker",function(){if(Xl6!==void 0)return Xl6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Xl6=Y},{mode:2});var ZWh=_.Td("UTC_OFFSET_FORMAT",{utc_offset:(new UC("Z")).format(new Date)}),iWh=(new Date).getTimezoneOffset()*-60,ok_=new Date,tt6,Aou=AE(ok_.getTimezoneOffset());tt6=CMf(RCS(Aou,ok_));var U3u=_.Td("LOCAL_TIME_GMT_LABEL",{gmt_text:tt6.replace("+0","+").replace("-0","-").replace(":00","")}),Uk=function(){var Y=_.Z.apply(this,arguments)||this;Y.selectedTimeIndex=0;Y.selectedTimezoneIndex=0;Y.timeOfDayOptions=lr_;return Y};
_.r(Uk,_.Z);_.z=Uk.prototype;_.z.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var Y=UOu();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=Y,this.selectedTimeIndex=0;else{var S=MwE(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},Y,{selectedDate:S.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(P){return P.secondsSinceMidnight===S.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.z.onDatePicked=function(Y){this.selectedDate=Y.detail};
_.z.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.ms(this.hostElement,"ytd-date-time-selection-cancelled")};
_.z.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var Y=this.selectedDate;Y=new Date(Y.year,Y.month,Y.day);_.ms(this.hostElement,"ytd-date-time-selection-update",Math.floor(Y.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+Y.getTimezoneOffset()*60))}};
_.z.getTimezoneFormat=function(Y){return Y.localizedDisplayText?Y.localizedDisplayText:_.Td("TIMEZONE_FORMAT",{utc_offset_text:""+Y.localizedUtcOffset,city_name:""+Y.localizedName})};
_.z.updateSelectedTimeIndexFromBinding=function(Y){this.selectedTimeIndex=Y.detail.value};
_.z.updateSelectedTimezoneIndexFromBinding=function(Y){this.selectedTimezoneIndex=Y.detail.value};
_.y6.Object.defineProperties(Uk.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=this.data.timezoneOptions;var S={name:"Etc/Unknown",localizedName:_.Td("LOCAL_TIME_LABEL"),localizedUtcOffset:ZWh,utcOffsetSec:""+iWh,localizedDisplayText:U3u};Y?Y.length&&Y[0].name!==S.name&&(Y[0].localizedDisplayText||(S.localizedDisplayText=""),Y.unshift(S)):Y=[S];return Y}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
Uk.prototype.onDateTimeTimezoneChange=Uk.prototype.onDateTimeTimezoneChange;Uk.prototype.onDatePicked=Uk.prototype.onDatePicked;Uk.prototype.updateDefaultSelectedValue=Uk.prototype.updateDefaultSelectedValue;_.Q([_.X(),_.k("design:type",Object)],Uk.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Uk.prototype,"calendarConfig",void 0);_.Q([_.X(),_.k("design:type",Object)],Uk.prototype,"selectedDate",void 0);_.Q([_.X(),_.k("design:type",Object)],Uk.prototype,"selectedTimeIndex",void 0);
_.Q([_.X(),_.k("design:type",Object)],Uk.prototype,"selectedTimezoneIndex",void 0);_.Q([_.nc("#time-listbox"),_.k("design:type",Object)],Uk.prototype,"timeListBox",void 0);_.Q([_.nc("#timezone-listbox"),_.k("design:type",Object)],Uk.prototype,"timezoneListBox",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Uk.prototype,"rendererStamperBehavior",void 0);_.Q([_.d("data.timezoneOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],Uk.prototype,"timeZones",null);
_.Q([_.cZ("data","timeZones"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uk.prototype,"updateDefaultSelectedValue",null);_.Q([_.d("selectedTimezoneIndex","timeZones"),_.k("design:type",Object),_.k("design:paramtypes",[])],Uk.prototype,"selectedTimezone",null);_.Q([_.d("selectedTimeIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],Uk.prototype,"selectedTime",null);
_.Q([_.WZ("ytd-calendar-date-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Uk.prototype,"onDatePicked",null);_.Q([_.zY("selectedTimezone","selectedTime","selectedDate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uk.prototype,"onDateTimeTimezoneChange",null);Uk=_.Q([_.t({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Uk);
_.A(Uk,"ytd-date-time-picker-renderer",function(){if(arf!==void 0)return arf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return arf=Y},{mode:1});var Qvm;var QO=function(){var Y=_.Z.apply(this,arguments)||this;Y.boundOnTapDismissButton=function(){Y.dismissTapHandler()};
Y.dismissButtonOverrides={size:"XS"};return Y};
_.r(QO,_.Z);QO.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}}}}}};
QO.prototype.dismissTapHandler=function(){_.ms(this.hostElement,"yt-backstage-attachment-dismissed")};
QO.prototype.computeAttachmentType=function(Y){return Y?Y.backstageImageRenderer?"image":Y.videoRenderer?"video":"none":"none"};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],QO.prototype,"attachmentPreview",void 0);_.Q([_.X(),_.k("design:type",Object)],QO.prototype,"dismissButton",void 0);_.Q([_.X(),_.k("design:type",Object)],QO.prototype,"boundOnTapDismissButton",void 0);
_.Q([_.X(),_.k("design:type",Object)],QO.prototype,"dismissButtonOverrides",void 0);_.Q([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.k("design:type",String)],QO.prototype,"attachmentType",void 0);QO=_.Q([_.t({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],QO);
_.A(QO,"ytd-backstage-dismissable-attachment",function(){if(Qvm!==void 0)return Qvm;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Qvm=Y},{mode:1});var kmJ;var kl=function(){var Y=_.Z.apply(this,arguments)||this;Y.selectedVideoId=void 0;Y.picker=void 0;Y.dismissButtonOverrides={size:"XS"};Y.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return Y};
_.r(kl,_.Z);_.z=kl.prototype;_.z.onServiceRequestCompleted=function(Y){Y.stopPropagation()};
_.z.handleAddVideoPreviewAction=function(Y){Y=this.get("addVideoPreviewAction",Y);this.onGetVideoPreviewSuccess(Y)};
_.z.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}}}}}};
_.z.onLaunchVideoPicker=function(Y){var S=this,P=_.Ma(this.get("addVideoLinkAction.title",Y)),u=this.get("addVideoLinkAction.onePickHostId",Y);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",Y);u&&(this.picker||(P=_.xP_(_.BCf(u).setTitle(P).addView(cAS()).addView(Bws()),function(W){S.onPickVideo(W)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",Y)||P.addView("youtube"),this.picker=P.build()),this.picker.setVisible(!0))};
_.z.onPickVideo=function(Y){if(Y)if(Y.action==="cancel")_.ms(this.hostElement,"yt-video-link-button-cancel");else if(Y.action==="picked"){Y=Y.docs;if(!Y||Y.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(Y=(Y==null?0:Y.length)?Y[0]:void 0)?Y.id:void 0;this.setVideoPreview()}};
_.z.setVideoPreview=function(){var Y=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){Y.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.z.onGetVideoPreviewSuccess=function(Y){if(Y&&Y.videoPreview&&Y.cancelButton)this.videoPreview=Y.videoPreview,this.cancelButton=Y.cancelButton,_.ms(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.z.onGetVideoPreviewError=function(){this.cancel()};
_.z.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.ms(this.hostElement,"yt-video-link-cancel")};
_.z.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
kl.prototype.onServiceRequestCompleted=kl.prototype.onServiceRequestCompleted;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],kl.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],kl.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],kl.prototype,"videoPreview",void 0);_.Q([_.X(),_.k("design:type",Object)],kl.prototype,"cancelButton",void 0);_.Q([_.X(),_.k("design:type",Object)],kl.prototype,"getVideoPreviewCommand",void 0);_.Q([_.X(),_.k("design:type",Object)],kl.prototype,"dismissButtonOverrides",void 0);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],kl.prototype,"onServiceRequestCompleted",null);kl=_.Q([_.t({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],kl);
_.A(kl,"ytd-backstage-video-link-attachment",function(){if(kmJ!==void 0)return kmJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return kmJ=Y},{mode:1});var Mts;var you;var NRs;var MS=function(){return _.Z.apply(this,arguments)||this};
_.r(MS,_.Z);MS.prototype.dataChanged=function(){this.active=!1};
MS.prototype.onTap=function(){_.ms(this.hostElement,"yt-select-emoji-suggestion",this.data)};
MS.prototype.identity=function(Y){return Y};
_.y6.Object.defineProperties(MS.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u;if((Y=this.data)==null?0:(S=Y.image)==null?0:(P=S.thumbnails)==null?0:(u=P[0])==null?0:u.url)return Y=this.data.image.thumbnails[0].url,Y.startsWith("data:image/svg+xml")?Wx(Y):_.Bx(Y)}}});
MS.prototype.dataChanged=MS.prototype.dataChanged;_.Q([_.X(),_.k("design:type",Object)],MS.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],MS.prototype,"active",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MS.prototype,"dataChanged",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],MS.prototype,"imageSrc",null);
MS=_.Q([_.t({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],MS);
_.A(MS,"ytd-emoji-suggestion",function(){if(NRs!==void 0)return NRs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return NRs=Y},{mode:1});var HWu=/.*([:@#].*?)$/,yO=function(){var Y=_.Z.apply(this,arguments)||this;Y.suggestions=[];Y.suggestionIndex=-1;Y.JSC$13482_lastSuggestionRange=null;return Y};
_.r(yO,_.Z);_.z=yO.prototype;_.z.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.z.getSuggestions=function(Y){var S=[],P=h$h(this.emojiManager,Y.substr(0,3));if(P)for(var u in P)if(u.toLocaleLowerCase().indexOf(Y)===0){var W=P[u];if(W&&W.emojiId){W=rC(this.emojiManager,W.emojiId);var m=void 0,J=void 0,c=void 0,C=void 0,x=((m=W)==null?0:m.isCustomEmoji)?(J=W)==null?void 0:(c=J.shortcuts)==null?void 0:c[0]:(C=W)==null?void 0:C.emojiId;m=void 0;S.push({suggestion:{image:(m=W)==null?void 0:m.image,alt:x,text:u}});if(S.length>=64)break}}return S?S.sort(function(b,T){return T.suggestion.text<
b.suggestion.text?-1:T.suggestion.text===b.suggestion.text?0:1}):null};
_.z.insertSuggestion=function(Y){_.ms(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13482_lastSuggestionRange,text:Y.alt});this.dropdown.opened=!1};
_.z.updateSuggestionsAtCaret=function(Y){this.updateSuggestions(Y,this.retrieveTextBeforeRange(Y))};
_.z.offsetStartOfRangeBy=function(Y,S){Y.startOffset>=S&&Y.setStart(Y.startContainer,Y.startOffset-S)};
_.z.updateSuggestions=function(Y,S){var P=this;this.JSC$13482_lastSuggestionRange&&(this.JSC$13482_lastSuggestionRange.detach(),this.JSC$13482_lastSuggestionRange=null);if((S=HWu.exec(S))&&S.length&&(S=S[S.length-1].toLocaleLowerCase(),S.length>2||S===":_")&&(this.offsetStartOfRangeBy(Y,S.length),this.JSC$13482_lastSuggestionRange=Y,(Y=this.getSuggestions(S))&&Y.length)){this.suggestions=Y;_.ky(this,function(){P.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(Y.length-1);return}this.dropdown.opened=!1};
_.z.onKeyDown=function(Y){if(this.dropdown.opened)switch(Y.key){case "Escape":this.dropdown.opened=!1;Y.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);Y.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);Y.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),Y.preventDefault()}};
_.z.onKeyUp=function(Y,S){switch(Y.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(S);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(S)}};
_.z.onKeyPress=function(Y){Y.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),Y.preventDefault())};
_.z.changeSuggestionIndex=function(Y){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(Y+this.suggestions.length)%this.suggestions.length,Y=this.dropdownContent.children[this.suggestionIndex],Y.active=!0,this.dropdownContent.scrollTop=Y.offsetTop)};
_.z.retrieveTextBeforeRange=function(Y){var S=Y.startContainer;return S&&S.nodeType===Node.TEXT_NODE?S.textContent.substr(0,Y.startOffset):""};
yO.prototype.onKeyPress=yO.prototype.onKeyPress;yO.prototype.onKeyUp=yO.prototype.onKeyUp;yO.prototype.onKeyDown=yO.prototype.onKeyDown;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],yO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Array)],yO.prototype,"suggestions",void 0);_.Q([_.X(),_.k("design:type",_.gC)],yO.prototype,"emojiManager",void 0);_.Q([_.X(),_.k("design:type",Number)],yO.prototype,"verticalSuggestionsOffset",void 0);
_.Q([_.nc("#dropdown"),_.k("design:type",Object)],yO.prototype,"dropdown",void 0);_.Q([_.nc("#dropdown-content"),_.k("design:type",HTMLDivElement)],yO.prototype,"dropdownContent",void 0);_.Q([_.WZ("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],yO.prototype,"onKeyDown",null);_.Q([_.WZ("keyup"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent,Range]),_.k("design:returntype")],yO.prototype,"onKeyUp",null);
_.Q([_.WZ("keypress"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],yO.prototype,"onKeyPress",null);yO=_.Q([_.t({disableElementRegistration:!0,is:"ytd-emoji-input"})],yO);
_.A(yO,"ytd-emoji-input",function(){if(you!==void 0)return you;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return you=Y},{mode:2});var VtL;var NS=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasMaxOptions=!1;return Y};
_.r(NS,_.Z);_.z=NS.prototype;_.z.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.z.setPrefilledChoices=function(Y){var S=this;this.set("pollOptions",[]);var P;for(P=0;P<Math.min(Y.length,this.data.maxPollOptions);P++)this.push("pollOptions",Y[P].substring(0,this.data.maxPollOptionChars));for(;P<this.data.minPollOptions;P++)this.push("pollOptions","");this.hasMaxOptions=P>=this.data.maxPollOptions;_.ky(this,function(){for(var u=S.pollOptions,W=_.I(S.hostElement).querySelectorAll(".poll-option-input"),m=0;m<W.length;m++)W[m].value=u[m]})};
_.z.focusChanged=function(){_.PZ(this.hostElement)};
_.z.onInput=function(){var Y=this;_.pc(this,"onInput",function(){Y.isValid()?_.ms(Y.hostElement,"yt-commentbox-post-enable"):_.ms(Y.hostElement,"yt-commentbox-post-disable")},300)};
_.z.setPollOptions=function(){var Y=[],S,P=((S=this.data)==null?0:S.minPollOptions)?this.data.minPollOptions:0;for(S=0;S<P;S++)Y.push("");return Y};
_.z.addPollOption=function(){var Y=this;_.ms(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.wc.addLowPriorityJob(function(){var S;(S=_.I(Y.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||S.focus()})};
_.z.onRemovePollOption=function(Y){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.ms(this.hostElement,"yt-poll-attachment-dismiss")):(Y=this.repeat.indexForElement(Y.target.parentNode),Y!==null&&(this.splice("pollOptions",Y,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.ms(this.hostElement,"yt-commentbox-post-enable"))))};
_.z.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.z.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var Y=0,S=this.pollOptions.length;Y<S;Y++)if(this.pollOptions[Y].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.z.getPollOptions=function(){return this.pollOptions};
_.z.setPollOptionsFromInputs=function(){for(var Y=_.I(this.hostElement).querySelectorAll(".poll-option-input"),S=0;S<Y.length;S++)this.pollOptions[S]=Y[S].value.trim()};
_.z.clearPollOptions=function(){var Y=_.I(this.hostElement).querySelectorAll(".poll-option-input");Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())S.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.z.getSimpleString=function(Y){return _.Ma(Y)};
_.z.updateValueFromBinding=function(Y){if(Y.target&&this.pollOptions){var S=Array.from(_.I(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(Y.target);if(S>=0){var P;this.pollOptions[S]=(P=Y.detail.value)!=null?P:"";this.notifyPath("pollOptions."+S)}}};
NS.prototype.dataChanged=NS.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],NS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],NS.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Array)],NS.prototype,"pollOptions",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],NS.prototype,"hasMaxOptions",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],NS.prototype,"enableCreationBox",void 0);
_.Q([_.nc("#repeat"),_.k("design:type",EX)],NS.prototype,"repeat",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NS.prototype,"dataChanged",null);NS=_.Q([_.t({disableElementRegistration:!0,is:"ytd-poll-attachment"})],NS);
_.A(NS,"ytd-poll-attachment",function(){if(VtL!==void 0)return VtL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return VtL=Y},{mode:2});var ebd;var OWu;var YzL;var SzU;var HS=function(){return _.Z.apply(this,arguments)||this};
_.r(HS,_.Z);_.y6.Object.defineProperties(HS.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],HS.prototype,"rendererBehaviors",void 0);_.Q([_.X(),_.k("design:type",Object)],HS.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],HS.prototype,"focused",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("focused"),_.k("design:type",Object),_.k("design:paramtypes",[])],HS.prototype,"ariaSelected",null);HS=_.Q([_.r0({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],HS);
_.A(HS,"yt-user-mention-suggestion-renderer",function(){if(SzU===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;YzL===void 0&&(YzL=document.createElement("template"));var u=YzL;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);SzU=Y}Y=SzU;return Y},{mode:2});var Pxh;var uls;var VO=function(){var Y=_.Z.apply(this,arguments)||this;Y.focusedSuggestionIndex=-1;return Y};
_.r(VO,_.Z);_.z=VO.prototype;_.z.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.z.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.z.setFocusedSuggestionIndex=function(Y){!this.data||!this.data.suggestions||Y<0||Y>=this.data.suggestions.length||(this.focusedSuggestionIndex=Y,Y=this.getSuggestionId(Y),this._setFocusedSuggestionId(Y))};
_.z.advanceSuggestion=function(Y){this.focusedSuggestionIndex===-1||Y!==-1&&Y!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+Y),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.z.ensureSuggestionVisible=function(Y){Y=this.getSuggestionId(Y);Y=_.I(this.hostElement).querySelector("[id="+Y+"]");Y!=null&&(Y.offsetTop<this.hostElement.scrollTop?Y.scrollIntoView(!0):Y.offsetTop+Y.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&Y.scrollIntoView(!1))};
_.z.getSuggestionId=function(Y){return"user-mention-suggestion-"+Y};
_.z.onSuggestionTap=function(Y){var S=_.g(Y.model.item,yfu);this.ytRendererBehavior.logExplicitClick(S);_.ms(this.hostElement,"yt-user-mention-suggestion-selected",{data:S,index:Y.model.index})};
_.z.onSuggestionMouseMove=function(Y){Y.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(Y.model.index)};
_.z.isSuggestionFocused=function(Y,S){return Y===S};
_.z.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.z.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("focused-suggestion-id-changed",this.focusedSuggestionId))};
VO.prototype.focusedSuggestionIdChangedForBinding=VO.prototype.focusedSuggestionIdChangedForBinding;VO.prototype.onDomChange=VO.prototype.onDomChange;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],VO.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],VO.prototype,"focusedSuggestionIndex",void 0);_.Q([_.X({readOnly:!0}),_.k("design:type",String)],VO.prototype,"focusedSuggestionId",void 0);
_.Q([_.WZ("dom-change"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],VO.prototype,"onDomChange",null);_.Q([_.zY("focusedSuggestionId"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VO.prototype,"focusedSuggestionIdChangedForBinding",null);VO=_.Q([_.r0({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],VO);
_.A(VO,"yt-user-mention-suggestions-dropdown",function(){if(uls===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Pxh===void 0&&(Pxh=document.createElement("template"));var u=Pxh;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);uls=Y}Y=uls;return Y},{mode:2});var e6=function(){var Y=_.Z.apply(this,arguments)||this;Y.suggestionsResponse=null;Y.activeMention=null;Y.selectionChangeListener=Y.onSelectionChange.bind(Y);Y.handlesEnabled=_.f("enable_handles_in_mention_suggest_posts");Y.handlesInMentionSuggestionsEnabled=_.f("handles_in_mention_suggest_posts");Y.zeroPrefixMentionSuggestionEnabled=_.f("enable_zero_prefix_mention_suggestion_web");Y.pendingQuery=null;Y.flowNonce=null;return Y};
_.r(e6,_.Z);_.z=e6.prototype;_.z.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.z.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.z.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.z.hasSuggestions=function(Y){return!!(Y&&Y.suggestions&&Y.suggestions.length>0)};
_.z.onInput=function(){var Y=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var S=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),P=this.activeMention.JSC$9117_getText().slice(-1)===" ",u=this.activeMention.JSC$9117_getText().slice(-2,-1)===" ",W="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9117_getText().slice(-2,-1))>=
0;W=this.zeroPrefixMentionSuggestionEnabled&&W;if(this.activeMention.isCollapsed()||(S||u||W)&&P)this.cancelActiveMention();else{var m=this.activeMention.JSC$9117_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.pc(this,"requestSuggestions",function(){Y.requestSuggestions(m)},100)}}}};
_.z.onServiceRequestSent=function(Y){Y.stopPropagation()};
_.z.onServiceRequestCompleted=function(Y){Y.stopPropagation();Y=Y.detail.data;Y.query&&(!this.pendingQuery||this.pendingQuery!==Y.query)||!this.zeroPrefixMentionSuggestionEnabled&&Y.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=Y,this.hasSuggestions(Y)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.z.onServiceRequestError=function(Y){Y.stopPropagation()};
_.z.onUserMentionSuggestionSelected=function(Y){this.selectSuggestion(Y.detail.data,Y.detail.index)};
_.z.onSelectionChange=function(){if(this.activeMention){var Y=_.xa(),S=this.activeMention.JSC$9117_containsRange(Y);Y=Y&&this.containsHelper(this.dropdown,Y.getContainer());S||Y||this.cancelActiveMention()}};
_.z.containsHelper=function(Y,S){var P;if(((P=window.ShadyDOM)==null?void 0:P.noPatch)===!0)return Y.contains(S);for(;S;){if(S===Y)return!0;S=S instanceof ShadowRoot?S.host:S.parentNode}return!1};
_.z.maybeStartSuggest=function(){var Y=_.xa();if(Y&&Y.isCollapsed()){var S=Y.JSC$9117_getStartNode(),P=Y.JSC$9117_getStartOffset();if(S instanceof Text&&!(P<1)){var u=S.textContent;!(u=u&&u.charAt(P-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(u)<0||(this.activeMention=_.Lr(S,P-1,Y.JSC$9117_getEndNode(),Y.JSC$9117_getEndOffset()),this.flowNonce=ak(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.z.updateActiveMention=function(){if(this.activeMention){var Y=_.xa();Y&&Y.isCollapsed()&&(this.activeMention=_.Lr(this.activeMention.JSC$9117_getStartNode(),this.activeMention.JSC$9117_getStartOffset(),Y.JSC$9117_getEndNode(),Y.JSC$9117_getEndOffset()))}};
_.z.requestSuggestions=function(Y){if(this.activeMention){var S={suggestions_query:Y};this.pendingQuery=Y;_.Bu(this.hostElement,[this.suggestionsEndpoint,S])}};
_.z.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()};
_.z.focusPreviousSuggestion=function(Y){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),Y.preventDefault())};
_.z.focusNextSuggestion=function(Y){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),Y.preventDefault())};
_.z.selectFocusedSuggestion=function(Y){if(this.hasSuggestions(this.suggestionsResponse)){var S=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.g(S,yfu)&&(this.selectSuggestion(_.g(S,yfu),this.dropdown.focusedSuggestionIndex),Y.preventDefault())}};
_.z.selectSuggestion=function(Y,S){if(Y){var P=this.activeMention;if(P){var u=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&Y.handle?_.dI(u,"\u00a0\u2068@"+Y.handle+"\u2069\u00a0"):this.handlesEnabled?_.dI(u,"\u00a0"+Y.displayName+"\u00a0"):_.dI(u,"\u00a0@"+Y.displayName+"\u00a0");xU(u,"/channel/"+Y.channelId);u.classList.add("yt-formatted-string","yt-simple-endpoint");u.setAttribute("spellcheck","false");P.isCollapsed()||P.JSC$9117_removeContents();P.insertNode(u,!0);Y=document.createTextNode(" ");
u.parentNode.insertBefore(Y,u.nextSibling);window.getSelection().collapse(Y,1);S={suggestionSelected:{suggestionIndex:S}};if(this.zeroPrefixMentionSuggestionEnabled){var W;S.suggestionSelected.isZeroPrefix=((W=this.suggestionsResponse)==null?void 0:W.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",S);this.cancelActiveMention();_.ms(this.hostElement,"yt-mention-inserted")}}};
_.z.getPositionTarget=function(Y){return Y&&Y.getBrowserRangeObject()};
_.z.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.z.onFocusedSuggestionIdChanged=function(Y){var S=_.Exu(this.hostElement)[0];S&&(Y.detail.value?S.setAttribute("aria-activedescendant",Y.detail.value):S.removeAttribute("aria-activedescendant"))};
_.z.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.z.logGELEvent=function(Y,S){Y={eventType:Y,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};S&&(Y=Object.assign(Y,S));_.L_("userMentionAutoCompleteBoxEvent",Y)};
e6.prototype.onDomChange=e6.prototype.onDomChange;e6.prototype.onUserMentionSuggestionSelected=e6.prototype.onUserMentionSuggestionSelected;e6.prototype.onServiceRequestError=e6.prototype.onServiceRequestError;e6.prototype.onServiceRequestCompleted=e6.prototype.onServiceRequestCompleted;e6.prototype.onServiceRequestSent=e6.prototype.onServiceRequestSent;e6.prototype.onInput=e6.prototype.onInput;_.Q([_.p(_.x1),_.k("design:type",Object)],e6.prototype,"ironA11yKeysBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],e6.prototype,"suggestionsEndpoint",void 0);_.Q([_.X(),_.k("design:type",Object)],e6.prototype,"suggestionsResponse",void 0);_.Q([_.X(),_.k("design:type",Object)],e6.prototype,"activeMention",void 0);_.Q([_.nc("#dropdown"),_.k("design:type",Object)],e6.prototype,"dropdown",void 0);_.Q([_.nc("#iron-dropdown"),_.k("design:type",Object)],e6.prototype,"ironDropdown",void 0);
_.Q([_.WZ("input"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],e6.prototype,"onInput",null);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],e6.prototype,"onServiceRequestSent",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],e6.prototype,"onServiceRequestCompleted",null);
_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],e6.prototype,"onServiceRequestError",null);_.Q([_.WZ("yt-user-mention-suggestion-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],e6.prototype,"onUserMentionSuggestionSelected",null);
_.Q([_.WZ("dom-change"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],e6.prototype,"onDomChange",null);e6=_.Q([_.r0({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],e6);
_.A(e6,"yt-user-mention-autosuggest-input",function(){if(OWu===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;ebd===void 0&&(ebd=document.createElement("template"));var u=ebd;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);OWu=Y}Y=OWu;return Y},{mode:2});var Ok=null;
_.Kc({is:"ytd-commentbox",_template:function(){if(Mts!==void 0)return Mts;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Mts=Y},
behaviors:[_.P79.YtHostElementBehavior,_.x1,_.tD.YtActionHandlerBehavior,_.rm.YtComponentBehavior,_.om.YtRendererstamperBehavior,_.oKL.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"aadcGuidelinesStateEntityPayload",S)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(Y,S){return _.BT(Y.entities,"commentboxStateEntity",S)},
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 _.GV}},
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:_.f("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.f("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",_.up(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(Y){this.fire(Y?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(Y){this.set("submitButtonDisabled",void 0);this.clear();Y&&this.computeIsEmojiButtonDisplayed_(Y)&&(Y=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&Y.updateEmojiCategories()},
observePrefilledImage_:function(Y,S,P){this.isValidPrefilledImage_(Y,S,P)&&(this.prefilledAttachment_="image",this.prefilledImageData_=S,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(Y,S){this.isValidPrefilledVideo_(Y,S)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(Y){Y&&Y.pollData&&Y.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(Y.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.mT();this.focus()},
detached:function(){document.removeEventListener("tap",_.up(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(Y){Y=Y.detail;Y=Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId;var S=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(S,Y);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var Y=_.xa();if(Y){Y=Y.getBrowserRangeObject();for(var S=Y.commonAncestorContainer;S;){if(S===this.getEditableTextArea_())return Y;S=S.parentNode}}Y=this.getEditableTextArea_();Y=_.aM(Y,Y.childNodes.length);Y.select();return Y.getBrowserRangeObject()},
insertTextWithEmojis_:function(Y,S,P){(S=this.emojiManager.createDocumentFragment(S,!0,!1,P===void 0?!0:P))&&S.childNodes.length!==0&&(Y.collapsed||Y.deleteContents(),P=S.lastChild,Y.insertNode(S),_.FZs(P).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var Y=_.xa();if(Y){var S=Y.JSC$9117_getStartNode(),P=Y.JSC$9117_getEndNode();if(N_E(S)&&N_E(P)){var u=Y.JSC$9117_getStartOffset(),W;if(_.BW&&S.nodeType===Node.ELEMENT_NODE&&(W=_.$IU(S)))_.aM(W,0).select();else{W=C6(S)?S:_.rh(S,C6);var m=C6(P)?P:_.rh(P,C6);if(W||m)if(Y.isCollapsed()){if(S.nodeType===Node.TEXT_NODE){Y=!0;u===S.length&&(Y=!1);if(Ok==="end"||Ok==="right")Y=!1;S=S.parentNode;Y=[].concat(_.cz(S.parentNode.childNodes)).indexOf(S)+(Y?0:1);_.aM(S.parentNode,Y).select()}}else W?
W.previousSibling&&W.previousSibling.length>0?_.Lr(P,Y.JSC$9117_getEndOffset(),W.previousSibling,W.previousSibling.length-1).select():(S=document.createTextNode("\u200b"),W.parentNode.insertBefore(S,W),_.Lr(P,Y.JSC$9117_getEndOffset(),S,0).select()):m&&(m.nextSibling&&m.nextSibling.length>0?_.Lr(S,Y.JSC$9117_getStartOffset(),m.nextSibling,1).select():(P=document.createTextNode("\u200b"),m.parentNode.insertBefore(P,m.nextSibling),_.Lr(S,Y.JSC$9117_getStartOffset(),P,P.length).select()));Ok=null}}else Ok=
null}else Ok=null},
leftKeyPressed_:function(){Ok="left"},
rightKeyPressed_:function(){Ok="right"},
endKeyPressed_:function(){Ok="end"},
maybeDeleteChip_:function(){var Y=Sc8(!0);if(Y){var S=_.xa(),P=S.JSC$9117_getStartNode();S=S.JSC$9117_getStartOffset();_.Gf(P,S,Y,Y.childNodes.length).select()}},
maybeBackspaceChip_:function(){var Y=Sc8(!1);if(Y){var S=_.xa(),P=S.JSC$9117_getStartNode();S=S.JSC$9117_getStartOffset();_.Gf(P,S,Y,0).select()}},
maybeBackspaceChipWordMode_:function(Y){var S=_.xa();if(S.isCollapsed()){var P=S.JSC$9117_getStartNode();S=S.JSC$9117_getStartOffset();var u=PbK(P,S,!0);u&&(_.Gf(P,S,u,0).select(),document.execCommand("delete"),Y.preventDefault(),Y.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(Y){var S=_.xa();if(S.isCollapsed()){var P=S.JSC$9117_getStartNode();S=S.JSC$9117_getStartOffset();var u=PbK(P,S,!1);u&&(_.Gf(P,S,u,u.childNodes.length).select(),document.execCommand("delete"),Y.preventDefault(),Y.stopImmediatePropagation())}},
onTap_:function(Y){if(!Y.defaultPrevented&&(Y.currentTarget.tagName==="YTD-COMMENTBOX"&&C6(Y.target)&&Y.preventDefault(),this.isEmojiPickerDisplayed)){var S=this.$$("#emojis"),P=this.$$("#emoji-button"),u=this.getEditableTextArea_();if((Y=Y.path?Y.path:Y.composedPath&&Y.composedPath())&&!Y.includes(S)&&!Y.includes(u)&&!Y.includes(P))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(Y,S,P){return Y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&S!==void 0&&S.encryptedBlobId!==null&&S.sourceExternalVideoId!==null&&P!==void 0&&P.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(Y,S){return Y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!S&&!!S.videoRenderer&&!!S.videoRenderer.videoId},
isValidPrefilledAttachment_:function(Y,S,P){return this.isValidPrefilledImage_(Y,S,P)||this.isValidPrefilledVideo_(Y,P)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.f("enable_multi_image_post_creation")){var Y=this.$$("ytd-backstage-multi-image-select-renderer");Y&&Y.hasImages()&&Y.cancel()}else(Y=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&Y.cancel();(Y=this.$["poll-attachment"])&&this.hasPoll_&&Y.clearPollOptions();(Y=this.$["image-poll-attachment"])&&this.hasImagePoll_&&Y.resetPollOptions();(Y=this.$["quiz-attachment"])&&this.hasQuiz_&&Y.resetQuizOptions();
(Y=this.$["video-link-attachment"])&&this.hasVideo_&&Y.cancel();(Y=this.$["access-restrictions-selector"].firstElementChild)&&Y.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.I(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.I(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(Y,S){Y=Vwh(Y,this.emojiManager,S).cloneNode(!0);for(S=Y.firstChild;S;)if(S.nodeType!==1)S=S.nextSibling;else switch(S.tagName){case "BR":var P=_.aL();_.L5h(P,S);S=P.nextSibling;break;case "DIV":(P=S.lastChild)&&S.nextSibling&&_.Fs(_.aL(),P);S.previousSibling&&(S.previousSibling.nodeType===1||S.previousSibling.nodeType===3&&!S.previousSibling.textContent.endsWith("\n"))&&_.pX(_.aL(),S);P&&P.nodeName==="BR"&&_.jL(P);P=S;S.hasChildNodes()?(S=S.firstChild,
_.w6u(P)):(S=S.nextSibling,_.jL(P));break;default:S=S.nextSibling}return u8J(Y)},
onAddImageError_:function(Y){Y.stopPropagation();this.errorMessage_=_.kW(Y.detail)},
setTextAreaValue_:function(Y){Y||(Y="");var S=this.getEditableFormattedString_();S.text="";this.getEditableTextArea_().innerText="";typeof Y==="string"&&(Y={runs:[{text:Y}]});S.text=Y},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Ok=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var Y=this.getEditableTextArea_();Y&&(_.aM(Y,Y.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.X3("HTML_DIR")==="rtl"){var Y=this.getEditableTextArea_(),S=this.getTextAreaValue()!==""?"auto":"rtl";Y.setAttribute("dir",S)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var Y;return Mmh((Y=this.$["quiz-attachment"])==null?void 0:Y.getExplanationText())||Mmh(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var Y=null;if(this.isEmojiButtonDisplayed){var S=this.getInputRange_();S&&(Y=this.emojiInput.retrieveTextBeforeRange(S))}this.insertText_(Y,!0);this.updateCharCount_();this.setSubmitButton_();Y=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=Y.scrollHeight>Y.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var Y=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:Y})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(Y){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(Y)},
onPasteEmoji_:function(Y){Y.preventDefault();Y.stopImmediatePropagation();Y=Y.clipboardData.getData("text/plain");this.insertText_(Y,!1,!1)},
insertText_:function(Y,S,P){S=S===void 0?!1:S;P=P===void 0?!0:P;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&Y){var u=this.getInputRange_().cloneRange();this.emojiManager&&u&&(S&&this.emojiInput.offsetStartOfRangeBy(u,Y.length),this.insertTextWithEmojis_(u,Y,P),HFa(this.getEditableTextArea_().lastChild)||(u=this.getInputRange_().cloneRange()),u&&(this.emojiInput.updateSuggestions(u,Y),this.updateSuggestionOffset_(u)))}},
setSubmitButton_:function(){if(this.data){var Y=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",S=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(Y||S){var P=this.getTextAreaValue().trim();S=P===this.previousText_;P=!P||this.aboveCharLimit_;Y&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(P=this.aboveCharLimit_);this.submitButtonDisabled=
S||P||!this.getTextLength();Y&&_.f("enable_post_scheduling")&&(this.submitButtonDisabled=S&&!this.scheduledPublishTimeSec_||P)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Ma,computeCreationBoxClass_:function(Y){return Y?"focused":"not-focused"},
computeFooterMessageClass_:function(Y,S){return S?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(Y,S){return S?S:Y},
computeFooterMessageHidden_:function(Y,S){return!S&&!Y},
computePlaceholderText_:function(Y,S,P){return(P==="video"||P==="image")&&(Y==null?0:Y.prefilledPlaceholderText)?Y==null?void 0:Y.prefilledPlaceholderText:S==="poll"||S==="image-poll"?Y==null?void 0:Y.pollPostPlaceholderText:S==="quiz"?Y==null?void 0:Y.quizPostPlaceholderText:S==="image"?Y==null?void 0:Y.imagePostPlaceholderText:Y==null?void 0:Y.placeholderText},
computeHideAttachmentButtons_:function(Y,S,P,u){return Y===void 0?!1:u&&this.getSimpleString(u)===this.getSimpleString(Y.rateLimitErrorMessage)?!0:S!=="none"||P!=="none"||!Y.videoLinkButton&&!Y.pollButton&&!Y.imagePollButton&&!Y.quizButton&&!Y.imageButton},
computeHideDismissableAttachment_:function(Y){return Y!=="image"&&Y!=="video"},
computeHasVideo_:function(Y){return Y==="video"},
computeHasImage_:function(Y){return Y==="image"},
computeHasPoll_:function(Y){return Y==="poll"},
computeHasImagePoll_:function(Y){return Y==="image-poll"},
computeHasQuiz_:function(Y){return Y==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(Y){return Y&&Y.backstageAttachment?Y.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!Y.backstageAttachment.quizRenderer&&!Y.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(Y){if(this.isValidPrefilledAttachment_(Y.purpose,Y.prefilledImageData,Y.backstageAttachment))return Y.backstageAttachment},
computeEditAttachment_:function(Y){if(this.computePrefilledContent_(Y)===void 0)return Y.backstageAttachment},
computeAuthorThumbnailDimension_:function(Y,S){return Y&&!S?24:40},
computeImageUploadEndpoint_:function(Y){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",Y)},
computeRateLimitErrorCommands_:function(Y){var S,P;return Y==null?void 0:(S=Y.advancedTierFeatures)==null?void 0:(P=S.rateLimit)==null?void 0:P.rateLimitCommands},
computeIsBackstageComment_:function(Y){return!(!Y||Y!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(Y){return this.get("submitButton.buttonRenderer.serviceEndpoint",Y)||this.get("replyButton.buttonRenderer.serviceEndpoint",Y)||this.get("postButton.buttonRenderer.serviceEndpoint",Y)},
computeSubmitButtonOverride:function(){if(_.f("web_modern_buttons")){var Y,S;return{segmentedPosition:this.dropdownSchedulePanel_||!((Y=this.data)==null?0:(S=Y.postOptionsMenu)==null?0:S.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.f("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(Y,S){Y=this.get("submitButton.buttonRenderer",Y)||this.get("replyButton.buttonRenderer",Y)||this.get("postButton.buttonRenderer",Y);S&&(Y=S);Y&&(Y=Object.assign({},Y),Y.serviceEndpoint=void 0,Y.isDisabled=this.submitButtonDisabled);return Y},
computeHasExternalLinksAccess_:function(Y){if(_.f("enable_rfa_external_links")){var S,P,u;return(u=Y==null?void 0:(S=Y.advancedTierFeatures)==null?void 0:(P=S.externalLinks)==null?void 0:P.allowExternalLinks)!=null?u:!0}return!0},
computeIsEmojiButtonDisplayed_:function(Y){return Y.emojiButton&&Y.emojiPicker&&Y.emojiPicker.emojiPickerRenderer&&Y.emojiPicker.emojiPickerRenderer.categories?Y.emojiPicker.emojiPickerRenderer.categories.find(function(S){return S.emojiPickerCategoryRenderer?S.emojiPickerCategoryRenderer.emojiIds&&S.emojiPickerCategoryRenderer.emojiIds.length>0:S.emojiPickerUpsellCategoryRenderer?S.emojiPickerUpsellCategoryRenderer.emojis&&S.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(Y){return Y.charLimit?Y.charLimit:null},
computeDropdownSchedulingPanel_:function(Y,S){if(Y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&S)return S},
computeInlineSchedulingPanel_:function(Y,S){if(Y==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&S)return S},
computeHideAuthorThumbnail_:function(Y,S){return Y||this.computeUseIdentityChip_(S)},
computeHideIdentityChipRenderer_:function(Y,S){return Y||!this.computeUseIdentityChip_(S)},
computeUseIdentityChip_:function(Y){return!!Y&&!!Y.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(Y){var S,P,u,W;(Y==null?0:(S=Y.detail)==null?0:(P=S.endpoint)==null?0:P.ypcGetOffersEndpoint)||(Y==null?0:(u=Y.detail)==null?0:(W=u.endpoint)==null?0:W.ypcOffersEndpoint)?(Y.stopPropagation(),_.Bu(this,[Y.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",Y)&&(Y.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(Y){this.addedAttachment="video";this.selectedVideoId_=Y.detail.videoId},
commentboxStateEntityChanged_:function(Y){var S=this;(Y==null?void 0:Y.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(Y==null?void 0:Y.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){S.focus()})},
onYtServiceRequestSent_:function(Y,S){if(S.actions)for(Y=_.n(S.actions),S=Y.next();!S.done;S=Y.next())S.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(Y){this.isLoading=!1;var S=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",Y),P,u,W,m=Y==null?void 0:(P=Y.detail)==null?void 0:(u=P.data)==null?void 0:(W=u.actionResult)==null?void 0:W.commentboxStateEntityKey;if(S)this.errorMessage_=S;else if(m){var J;this.dismissData_=Y==null?void 0:(J=Y.detail)==null?void 0:J.data;this.commentboxStateKey_=m}else{this.clear();var c;this.fire("yt-commentbox-dismiss",Y==null?void 0:(c=Y.detail)==
null?void 0:c.data)}},
onYtServiceRequestError_:function(Y){Y.stopPropagation();this.isLoading=!1;var S,P;if(((S=this.data)==null?void 0:S.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((P=this.data)==null?void 0:P.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(S=this.get("detail.error.args",Y)||[],S.length>1&&S[1].message){this.handlePostsServiceRequestError_(S[1].message);return}(Y=this.get("detail.error.message",Y))?this.errorMessage_=this.data.errorMessage||_.kW(Y):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(Y){if(_.f("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var S=_.n(this.rateLimitErrorCommands),P=S.next();!P.done;P=S.next())if(P=P.value,P.errorLabel===Y){_.m4(P.command,this.hostElement);return}this.errorMessage_=_.kW(Y)},
submitIfNotBackstagePost_:function(Y){if(!this.isBackstagePost)this.onSubmit_(Y)},
onSubmit_:function(Y){var S=this,P,u,W,m,J,c,C,x,b,T,K,G,v,a,w;return _.B(function(F){switch(F.nextAddress){case 1:Y.stopPropagation();if(!S.serviceEndpoint||!S.isValidInput_())return F.return();if(S.shouldShowPostAadcNotice_())return S.showPostAadcNotice_(),F.return();if(S.shouldShowCommentAadcNotice_())return S.showCommentAadcNotice_(),F.return();if(!(S.$$("ytd-backstage-multi-image-select-renderer")&&S.hasImage_&&_.f("enable_multi_image_post_creation"))){F.jumpTo(2);break}P=S.$$("ytd-backstage-multi-image-select-renderer");
return _.q(F,P.getAllUploadStatuses(),3);case 3:u=F.yieldResult;if(!u)return F.return();W=_.n(u);for(m=W.next();!m.done;m=W.next())if(J=m.value,J.encryptedBlobId===void 0)return S.isLoading=!1,C=c=void 0,S.errorMessage_=(C=(c=S.imageUploadEndpoint_)==null?void 0:c.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?C:null,F.return();return F.return(S.submitForm_(void 0,void 0,void 0,void 0,P.images,S.taggedVideoId_));case 2:if(!S.hasImagePoll_||!S.$["image-poll-attachment"]){F.jumpTo(4);
break}return _.q(F,S.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:x=F.yieldResult;if(!x)return F.return();b=_.n(x);for(T=b.next();!T.done;T=b.next())if(K=T.value,!K.encryptedBlobId)return S.isLoading=!1,G=void 0,S.errorMessage_=(G=S.data.errorMessage)!=null?G:null,F.return();case 4:a=(v=S.$$("ytd-backstage-image-select-renderer"))&&v.uploadPromise(),w=S.getSharedPostId_(),a?a.then(function(){S.submitForm_.apply(S,_.cz(_.Ch.apply(0,arguments)))}).catch(function(U){S.isLoading=!1;
S.errorMessage_=_.kW(U.message)}):S.selectedVideoId_?S.submitForm_(void 0,S.selectedVideoId_):S.prefilledAttachment_==="image"?S.submitForm_(S.prefilledImageData_.encryptedBlobId,void 0,void 0,S.prefilledImageData_.sourceExternalVideoId,void 0,S.taggedVideoId_):S.prefilledAttachment_==="video"?S.submitForm_(void 0,S.data.backstageAttachment.videoRenderer.videoId):w?S.submitForm_(void 0,void 0,w):S.taggedVideoId_!==void 0?S.submitForm_(void 0,void 0,void 0,void 0,void 0,S.taggedVideoId_):S.submitForm_(),
_.Yt(F)}})},
openSchedulingPanel:function(Y){Y&&Y.scheduleButton&&Y.scheduleButton.buttonRenderer&&(this.scheduleButton_=Y.scheduleButton.buttonRenderer);Y&&Y.dateTimePicker&&this.set("data.schedulingDateTimePicker",Y.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(Y){Y.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(Y){Y.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(Y){Y.stopPropagation();Y.detail.alertMessage&&(this.alertMessage_=Y.detail.alertMessage)},
onImageSelected_:function(Y){Y.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(Y){Y.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(Y){Y.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(Y.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(Y){Y.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(Y){var S=this.$["video-link-attachment"];S&&S.onLaunchVideoPicker(Y)},
onAttachmentDismiss_:function(Y){Y.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.f("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.f("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var Y;if(this.addedAttachment==="image-poll"&&((Y=this.$["image-poll-attachment"])==null||!Y.isValid()))return!1;var S;if(this.addedAttachment==="quiz"&&((S=this.$["quiz-attachment"])==null||!S.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;Y=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(Y=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")Y=!0;return Y||!!this.getTextAreaValue().trim()},
submitForm_:function(Y,S,P,u,W,m){var J=this.getTextAreaValue().trim(),c={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&J===this.previousText_&&(J=void 0);J!==void 0&&(c.comment_text=J);this.isLoading=!0;m!=void 0&&(c.tagged_video_id=m);Y?(c.image_blob_id=Y,this.imagePreviewCoordinates_&&(c.image_preview_coordinates=this.imagePreviewCoordinates_)):S?c.attached_video_id=S:P?c.shared_post_id=P:W&&W.length>0&&(c.images_data=W.map(function(C){return{encryptedBlobId:C.encryptedBlobId,
previewCoordinates:C.previewCoordinates}}));
u&&(c.source_video_id=u);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(c.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(c.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(c.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.f("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(c.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.f("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(c.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Bu(this,[this.serviceEndpoint,c])},
onIsInputFocusChanged_:function(Y,S){Y?this.fire("yt-autonav-pause-focus"):S!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(Y){var S=this.getEditableTextArea_();[].concat(_.cz(Y.dataTransfer.items)).forEach(function(P){P.kind==="string"&&P.type.match("^text/plain")&&P.getAsString(function(u){S.appendChild(document.createTextNode(u))})});
Y.preventDefault()},
preventDefault_:function(Y){Y.preventDefault()},
onSuggestionInsert_:function(Y){this.insertTextWithEmojis_(Y.detail.range,Y.detail.text)},
onEmojiSuggestionClick_:function(Y){this.emojiInput.insertSuggestion(Y.detail)},
computeSubmitButtonClass_:function(Y,S){return!S||Y?"":"with-options"},
updateSuggestionOffset_:function(Y){if(this.emojiInput&&_.I(this.emojiInput).querySelector("#dropdown")){var S=this.getEditableTextArea_().getBoundingClientRect().bottom,P=Y.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(S-P)+5;S=this.getEditableTextArea_().getBoundingClientRect().left;Y=Y.getBoundingClientRect().left-S;_.I(this.emojiInput).querySelector("#dropdown").style.marginLeft=Y+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(Y){if(_.f("enable_post_scheduling")&&this.data&&this.data.purpose){Y=Y.detail;if(Math.floor(Date.now()/1E3)>=Y)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var S=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(S)||S!==Y?this.scheduledPublishTimeSec_=Y:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=Y;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var Y=["image-button","image-poll-button","poll-button"];_.f("enable_quiz_creation")&&Y.push("quiz-button");_.f("auto_convert_posts_video_tag")||Y.push("video-link-button");return Y},
getButtonRenderer:function(Y,S){if(Y)switch(S){case "video-link-button":var P;return((P=Y.videoLinkButton)==null?void 0:P.buttonRenderer)||void 0;case "image-button":var u;return((u=Y.imageButton)==null?void 0:u.buttonRenderer)||void 0;case "poll-button":var W;return((W=Y.pollButton)==null?void 0:W.buttonRenderer)||void 0;case "image-poll-button":var m;return((m=Y.imagePollButton)==null?void 0:m.buttonRenderer)||void 0;case "quiz-button":var J;return((J=Y.quizButton)==null?void 0:J.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var Y;return(Y=this.data)==null||!Y.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var Y,S;return!((Y=this.data)==null||!Y.openAadcDialog)&&!((S=this.aadcGuidelinesState_)==null||!S.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.X3("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var Y;((Y=this.data)==null?0:Y.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.lX("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(Y){Y.clickTrackingParams&&_.BF().clickCommand(Y);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.nb(this,"yt-close-popup-action")},
onHideIdentityChip:function(Y){var S;this.set("data.placeholderText",(S=Y.hideIdentityChipAction)==null?void 0:S.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Yh=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOpen=!1;Y.modern=_.f("web_modern_buttons");Y.roundedContainer=!0;Y.dropdownButtonOverride=_.f("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;Y.inPopupContainer=!1;Y.isCommentboxLoading=!1;var S=["image-button","image-poll-button","poll-button"];_.f("enable_quiz_creation")&&S.push("quiz-button");_.f("auto_convert_posts_video_tag")||S.push("video-link-button");Y.attachmentButtonIds=S;Y.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return Y};
_.r(Yh,_.Z);_.z=Yh.prototype;_.z.computeButtonOverride=function(){var Y;return((Y=this.data)==null?0:Y.postOptionsMenu)&&_.f("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.z.configureRendererStamper=function(){var Y={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.f("auto_convert_posts_video_tag")||(Y["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return Y};
_.z.ready=function(){var Y=this,S=_.I(this.hostElement).querySelector("#placeholder-area"),P=function(u){Y.onOpen(u)};
S.addEventListener("tap",P);S.addEventListener("keypress",P)};
_.z.showButtonEduTooltip=function(){var Y,S,P,u,W,m,J;if(_.f("enable_quiz_creation")&&((Y=this.data)==null?0:(S=Y.quizButton)==null?0:(P=S.buttonRenderer)==null?0:(u=P.hint)==null?0:(W=u.hintRenderer)==null?0:(m=W.content)==null?0:(J=m.bubbleHintRenderer)==null?0:J.text)&&(_.km.getInstance(),Y=Mn(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(Y==null?void 0:
Y.length)>0)){this.ytComponentBehavior.resolveCommand(Y[0],{form:{element:this.quizButton}});return}var c;if((c=this.data)==null?0:c.imagePollButtonTooltip)if(_.km.getInstance(),c=Mn(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(c==null?void 0:c.length)>0){this.ytComponentBehavior.resolveCommand(c[0],{form:{element:this.imagePollButton}});return}var C;_.f("enable_multi_image_post_creation")&&
((C=this.data)==null?0:C.multiImageButtonTooltip)&&(_.km.getInstance(),C=Mn(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(C==null?void 0:C.length)>0&&this.ytComponentBehavior.resolveCommand(C[0],{form:{element:this.imageButton}}))};
_.z.onCreatePollAction=function(Y){_.g(Y,jLJ)&&(this.JSC$13537_commentbox.addedAttachment="poll",this.openDialog())};
_.z.onAddVideoLinkAction=function(Y){if(_.g(Y,nQ6))this.JSC$13537_commentbox.onAddVideoLink(Y)};
_.z.onShowSchedulingPanelCommand=function(Y){(Y=_.g(Y,lp_))&&this.openSchedulingPanel(Y)};
_.z.onCreateImagePollCommand=function(Y){_.g(Y,ofh)&&(this.JSC$13537_commentbox.openImagePollComponent(),this.openDialog())};
_.z.onCreateQuizCommand=function(Y){_.g(Y,tp3)&&(this.JSC$13537_commentbox.openQuizComponent(),this.openDialog())};
_.z.openSchedulingPanel=function(Y){_.f("enable_post_scheduling")&&(this.openDialog(),this.JSC$13537_commentbox.openSchedulingPanel(Y))};
_.z.onCreateCommentAction=function(Y){this.get("createCommentAction.contents",Y)&&(this.JSC$13537_commentbox.clear(),this.closeDialog())};
_.z.onOpen=function(Y){Y instanceof KeyboardEvent&&Y.type==="keypress"&&Y.keyCode!==13&&Y.keyCode!==32||(this.data.prepareAccountEndpoint?_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.z.onYtCommentboxDismiss=function(){this.closeDialog()};
_.z.onYtCommentboxLoadingStart=function(Y){Y.stopPropagation();this.isCommentboxLoading=!0};
_.z.onYtCommentboxLoadingEnd=function(Y){Y.stopPropagation();this.isCommentboxLoading=!1};
_.z.onYtVideoLinkButtonCancel=function(Y){Y.stopPropagation();this.onOpen(Y)};
_.z.onYtVideoLinkSelected=function(Y){Y.stopPropagation();this.onOpen(Y)};
_.z.onIronSelect=function(Y){Y.stopPropagation();Y.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=Y.detail.item.value&&(this.accessRestriction?(this.accessRestriction=Y.detail.item.value,this.onOpen(Y)):this.accessRestriction=Y.detail.item.value)};
_.z.onYtNavigate=function(Y){this.get("detail.endpoint.backstageImageUploadEndpoint",Y)&&(this.JSC$13537_commentbox.addedAttachment="image",this.JSC$13537_commentbox.submitButtonDisabled=!0,this.onOpen(Y))};
_.z.onRequestSent=function(Y){if(_.f("web_button_rework"))for(var S=_.n(Y.detail),P=S.next();!P.done;P=S.next())_.g(P.value,Owd)&&(this.JSC$13537_commentbox.addedAttachment="image",this.JSC$13537_commentbox.submitButtonDisabled=!0,this.onOpen(Y))};
_.z.openDialog=function(){this.JSC$13537_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13537_commentbox.focus()};
_.z.onPopupClosed=function(){_.km.getInstance()};
_.z.computeCreationDisabled=function(Y){return!!Y};
_.z.computeIsCreationDialog=function(Y){return!!Y&&Y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.z.computeDisabledPostButton=function(Y){if(!Y)return null;Y.isDisabled=!0;return Y};
_.z.computeIsCreationDialogWithHeader=function(Y){return!this.inPopupContainer&&!!Y&&!!Y.authorText&&Y.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.z.computeIsHeaderHidden=function(Y,S){return!Y||S};
_.z.computeDropdownRendererClasses=function(Y){return Y?["text-secondary-style"]:[]};
_.z.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var Y=_.I(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;Y&&Y.reset()};
Yh.prototype.onPopupClosed=Yh.prototype.onPopupClosed;Yh.prototype.onRequestSent=Yh.prototype.onRequestSent;Yh.prototype.onYtNavigate=Yh.prototype.onYtNavigate;Yh.prototype.onIronSelect=Yh.prototype.onIronSelect;Yh.prototype.onYtVideoLinkSelected=Yh.prototype.onYtVideoLinkSelected;Yh.prototype.onYtVideoLinkButtonCancel=Yh.prototype.onYtVideoLinkButtonCancel;Yh.prototype.onYtCommentboxLoadingEnd=Yh.prototype.onYtCommentboxLoadingEnd;Yh.prototype.onYtCommentboxLoadingStart=Yh.prototype.onYtCommentboxLoadingStart;
Yh.prototype.onYtCommentboxDismiss=Yh.prototype.onYtCommentboxDismiss;Yh.prototype.showButtonEduTooltip=Yh.prototype.showButtonEduTooltip;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Yh.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Yh.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Yh.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yh.prototype,"isOpen",void 0);_.Q([_.X({computed:"computeButtonOverride(data)"}),_.k("design:type",Object)],Yh.prototype,"buttonOverride",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yh.prototype,"modern",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yh.prototype,"roundedContainer",void 0);_.Q([_.X(),_.k("design:type",Object)],Yh.prototype,"dropdownButtonOverride",void 0);_.Q([_.X({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.k("design:type",Boolean)],Yh.prototype,"creationDisabled",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Yh.prototype,"enableCreationBox",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.k("design:type",Boolean)],Yh.prototype,"isCreationDialog",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yh.prototype,"inPopupContainer",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.k("design:type",Boolean)],Yh.prototype,"isCreationDialogWithHeader",void 0);_.Q([_.X(),_.k("design:type",Object)],Yh.prototype,"accessRestriction",void 0);
_.Q([_.X({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.k("design:type",Array)],Yh.prototype,"dropdownRendererClasses",void 0);_.Q([_.X(),_.k("design:type",Object)],Yh.prototype,"isCommentboxLoading",void 0);_.Q([_.X(),_.k("design:type",Array)],Yh.prototype,"attachmentButtonIds",void 0);_.Q([_.nc("#image-button"),_.k("design:type",HTMLElement)],Yh.prototype,"imageButton",void 0);
_.Q([_.nc("#image-poll-button"),_.k("design:type",HTMLElement)],Yh.prototype,"imagePollButton",void 0);_.Q([_.nc("#quiz-button"),_.k("design:type",HTMLElement)],Yh.prototype,"quizButton",void 0);_.Q([_.nc("#commentbox"),_.k("design:type",Object)],Yh.prototype,"JSC$13537_commentbox",void 0);_.Q([_.zY("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yh.prototype,"showButtonEduTooltip",null);
_.Q([_.WZ("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Yh.prototype,"onYtCommentboxDismiss",null);_.Q([_.WZ("yt-commentbox-loading-start"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Yh.prototype,"onYtCommentboxLoadingStart",null);
_.Q([_.WZ("yt-commentbox-loading-end"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Yh.prototype,"onYtCommentboxLoadingEnd",null);_.Q([_.WZ("yt-video-link-button-cancel"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Yh.prototype,"onYtVideoLinkButtonCancel",null);
_.Q([_.WZ("yt-video-link-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Yh.prototype,"onYtVideoLinkSelected",null);_.Q([_.WZ("iron-select"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Yh.prototype,"onIronSelect",null);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Yh.prototype,"onYtNavigate",null);
_.Q([_.WZ("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Yh.prototype,"onRequestSent",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yh.prototype,"onPopupClosed",null);Yh=_.Q([_.t({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Yh);
_.A(Yh,"ytd-backstage-post-dialog-renderer",function(){if(hbJ!==void 0)return hbJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return hbJ=Y},{mode:1});var WK6;var z1u;var S1=function(){return _.Z.apply(this,arguments)||this};
_.r(S1,_.Z);_.z=S1.prototype;_.z.computeHeartButtonStyle=function(Y){return(Y==null?0:Y.styleType)?Y.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.z.onYtButtonTap=function(){if(this.data.isEnabled){var Y=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(Y=this.getEndpoint(Y))&&(_.f("web_ytd_creator_heart_renderer_command_resolver_ks")?_.Bu(this.hostElement,[Y]):_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}}))}else(Y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(Y)};
_.z.toggle=function(Y){this.set("data.isHearted",Y!==void 0?Y:!this.data.isHearted)};
_.z.getEndpoint=function(Y){var S,P=(S=this.data)==null?void 0:S.heartEndpoint,u;S=(u=this.data)==null?void 0:u.unheartEndpoint;if(P&&S)return Y?S:P};
_.z.computeButtonAccessibility=function(Y,S){var P,u,W=Y==null?void 0:(P=Y.heartedAccessibility)==null?void 0:(u=P.accessibilityData)==null?void 0:u.label,m,J;Y=Y==null?void 0:(m=Y.unheartedAccessibility)==null?void 0:(J=m.accessibilityData)==null?void 0:J.label;return S?W:Y};
_.y6.Object.defineProperties(S1.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var Y;return _.f("kevlar_system_icons")&&!((Y=this.data)==null||!Y.isHearted)}}});
S1.prototype.onYtButtonTap=S1.prototype.onYtButtonTap;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],S1.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],S1.prototype,"data",void 0);_.Q([_.d("data.isHearted"),_.k("design:type",Object),_.k("design:paramtypes",[])],S1.prototype,"heartTooltip",null);
_.Q([_.d("data.isHearted"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S1.prototype,"iconFilled",null);_.Q([_.X({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.k("design:type",String)],S1.prototype,"buttonAccessibility",void 0);_.Q([_.X({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],S1.prototype,"heartButtonStyle",void 0);
_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S1.prototype,"onYtButtonTap",null);S1=_.Q([_.t({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],S1);
_.A(S1,"ytd-creator-heart-renderer",function(){if(z1u!==void 0)return z1u;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return z1u=Y},{mode:1});var Pv=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasCreatorReply=!1;Y.buttonOverrides={size:"S",iconPosition:"icon-only"};Y.replyButtonOverrides={size:"S",type:"text"};Y.forceIconButton=!_.f("web_modern_buttons");Y.modern=_.f("web_modern_buttons");Y.buttonTooltipPosition="bottom";Y.systemIcons=_.f("kevlar_system_icons");Y.replyDialog=null;return Y};
_.r(Pv,_.Z);_.z=Pv.prototype;
_.z.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]]"}}}}}};
_.z.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.z.dataChange=function(){this.replyDialog&&_.I(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var Y,S,P;this.isLiked=this.systemIcons&&!!((Y=this.data)==null?0:(S=Y.likeButton)==null?0:(P=S.toggleButtonRenderer)==null?0:P.isToggled)};
_.z.computeShowVoteCountBeginning=function(Y,S){return Y===void 0||S===void 0?!0:Y.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!S&&this.ytRendererBehavior.getSimpleString(S)!=="0"};
_.z.computeShowVoteCountEnd=function(Y,S){return Y===void 0||S===void 0?!0:Y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!S&&this.ytRendererBehavior.getSimpleString(S)!=="0"};
_.z.computeShowCommentCount=function(Y,S){return Y===void 0||S===void 0?!0:Y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!S&&this.ytRendererBehavior.getSimpleString(S)!=="0"};
_.z.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.z.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.z.showReplyDialog=function(Y){Y&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.I(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=Y,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.z.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.z.onRequestSent=function(Y){if(_.f("web_button_rework")){Y=_.n(Y.detail);for(var S=Y.next();!S.done;S=Y.next())(S=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",S.value))&&this.showReplyDialog(S)}};
_.z.onYtNavigate=function(Y){var S,P;(Y=(S=_.g(Y.detail.endpoint,_.SqU))==null?void 0:(P=S.dialog)==null?void 0:P.commentReplyDialogRenderer)&&this.showReplyDialog(Y)};
_.z.onYtServiceRequestSent=function(Y,S){Y.stopPropagation();if(S.actions)for(Y=0;Y<S.actions.length;Y++){var P=_.g(S.actions[Y],c_t);P&&this.handleUpdateCommentVoteAction(P)}};
_.z.handleUpdateCommentVoteAction=function(Y){this.voteCount=Y.voteCount||_.kW("0");Y.voteStatus==="LIKE"?this.JSC$13548_ytdDislikeToggleButtonRenderer.toggle(!1):Y.voteStatus==="DISLIKE"?this.JSC$13548_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13548_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13548_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.z.computeReplyButtonHidden=function(Y){return Y};
_.z.computeReplyButtonBeginning=function(Y){return(Y==null?0:Y.replyButton)&&Y.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?Y.replyButton:void 0};
_.z.computeReplyButtonEnd=function(Y){return(Y==null?0:Y.replyButton)&&Y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?Y.replyButton:void 0};
_.z.computeActionButtonStyle=function(Y){return(Y==null?0:Y.style)?Y.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.z.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.z.onYtToggleButton=function(Y){var S,P;this.isLiked=this.systemIcons&&!!((S=Y.detail)==null?0:(P=S.actions)==null?0:P.like)};
Pv.prototype.onYtToggleButton=Pv.prototype.onYtToggleButton;Pv.prototype.onButtonTooltipPositionChanged=Pv.prototype.onButtonTooltipPositionChanged;Pv.prototype.onYtServiceRequestSent=Pv.prototype.onYtServiceRequestSent;Pv.prototype.onYtNavigate=Pv.prototype.onYtNavigate;Pv.prototype.onRequestSent=Pv.prototype.onRequestSent;Pv.prototype.onYtCommentboxDismiss=Pv.prototype.onYtCommentboxDismiss;Pv.prototype.dataChange=Pv.prototype.dataChange;
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Pv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Pv.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Pv.prototype,"voteCount",void 0);_.Q([_.X(),_.k("design:type",Object)],Pv.prototype,"commentCount",void 0);_.Q([_.X(),_.k("design:type",Object)],Pv.prototype,"replyThumbnail",void 0);
_.Q([_.X(),_.k("design:type",Object)],Pv.prototype,"hasCreatorReply",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Pv.prototype,"enableCreationBox",void 0);_.Q([_.X({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],Pv.prototype,"actionButtonsStyle",void 0);_.Q([_.X({computed:"computeReplyButtonBeginning(data)"}),_.k("design:type",Object)],Pv.prototype,"replyButtonBeginning",void 0);
_.Q([_.X({computed:"computeReplyButtonEnd(data)"}),_.k("design:type",Object)],Pv.prototype,"replyButtonEnd",void 0);_.Q([_.X(),_.k("design:type",Object)],Pv.prototype,"buttonOverrides",void 0);_.Q([_.X(),_.k("design:type",Object)],Pv.prototype,"replyButtonOverrides",void 0);_.Q([_.X(),_.k("design:type",Object)],Pv.prototype,"forceIconButton",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Pv.prototype,"useCommentIcon",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Pv.prototype,"modern",void 0);_.Q([_.X(),_.k("design:type",Object)],Pv.prototype,"buttonTooltipPosition",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Pv.prototype,"systemIcons",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Pv.prototype,"isLiked",void 0);_.Q([_.nc("ytd-button-renderer"),_.k("design:type",Object)],Pv.prototype,"ytdReplyButtonRenderer",void 0);
_.Q([_.nc("#like-button"),_.k("design:type",Object)],Pv.prototype,"JSC$13548_ytdLikeToggleButtonRenderer",void 0);_.Q([_.nc("#dislike-button"),_.k("design:type",Object)],Pv.prototype,"JSC$13548_ytdDislikeToggleButtonRenderer",void 0);_.Q([_.nc("#reply-dialog"),_.k("design:type",HTMLElement)],Pv.prototype,"replyDialogElement",void 0);_.Q([_.nc("#reply-button"),_.k("design:type",HTMLElement)],Pv.prototype,"replyButtonElement",void 0);
_.Q([_.nc("#reply-button-end"),_.k("design:type",HTMLElement)],Pv.prototype,"replyButtonEndElement",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pv.prototype,"dataChange",null);_.Q([_.WZ("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Pv.prototype,"onYtCommentboxDismiss",null);
_.Q([_.WZ("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Pv.prototype,"onRequestSent",null);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Pv.prototype,"onYtNavigate",null);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],Pv.prototype,"onYtServiceRequestSent",null);_.Q([_.zY("buttonTooltipPosition"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pv.prototype,"onButtonTooltipPositionChanged",null);
_.Q([_.WZ("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Pv.prototype,"onYtToggleButton",null);Pv=_.Q([_.t({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Pv);
_.A(Pv,"ytd-comment-action-buttons-renderer",function(){if(WK6!==void 0)return WK6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return WK6=Y},{mode:1});var mWJ;var uH=function(){return _.Z.apply(this,arguments)||this};
_.r(uH,_.Z);uH.prototype.focus=function(){_.I(this.hostElement).querySelector("#commentbox").focus()};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],uH.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],uH.prototype,"zeroStepChannelCreationRenderer",void 0);uH=_.Q([_.t({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],uH);
_.A(uH,"ytd-comment-dialog-renderer",function(){if(mWJ!==void 0)return mWJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return mWJ=Y},{mode:1});var n3_;var Wv=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonOverrides={size:"S",iconPosition:"icon-only"};Y.replyButtonOverrides={size:"S",type:"text"};return Y};
_.r(Wv,_.Z);_.z=Wv.prototype;_.z.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.z.detached=function(){this.replyBox&&this.replyBox.remove()};
_.z.showReplyDialog=function(Y){if(Y){var S=this.replyBox;S||(S=document.createElement("ytd-comment-reply-dialog-renderer"),S.id="replybox",_.I(this.replyDialogDiv).appendChild(S));S.data=Y;this.replyDialogDiv.hidden=!1;S.openDialog()}};
_.z.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.z.onYtServiceRequestSent=function(Y,S){Y.stopPropagation();if(S.actions)for(var P=0;P<S.actions.length;P++){var u=_.g(S.actions[P],c_t);u?this.handleUpdateCommentVoteAction(u):Y.target===this.heartButton&&this.toggleHeartState()}};
_.z.handleUpdateCommentVoteAction=function(Y){var S;(S=this.toolbarState)!=null&&S.key&&this.ytdReduxBehavior.dispatch(_.Dw("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:Y.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":Y.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.z.toggleHeartState=function(){var Y;(Y=this.toolbarState)!=null&&Y.key&&this.ytdReduxBehavior.dispatch(_.Dw("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.y6.Object.defineProperties(Wv.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return(((Y=this.toolbarState)==null?void 0:Y.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(S=this.toolbarData)==null?void 0:S.likeCountLiked:(P=this.toolbarData)==null?void 0:P.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.toolbarSurface)==null?void 0:Y.prepareAccountCommand)!==void 0&&!_.f("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,S=_.g((Y=this.toolbarSurface)==null?void 0:Y.prepareAccountCommand,_.hL),P,u,W,m,J,c,C,x,b;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((P=this.toolbarSharedData)==null||!P.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((u=this.toolbarState)==null?void 0:u.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:S!=null?S:_.g((W=this.toolbarSurface)==null?void 0:W.likeCommand,_.hL),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:S!=null?S:_.g((m=this.toolbarSurface)==null?void 0:m.unlikeCommand,_.hL),defaultCommand:this.isVisiblyDisabled?_.g((J=this.toolbarSurface)==null?void 0:J.commentDisabledActionCommand,_.hL):void 0,defaultTooltip:(c=this.toolbarData)==null?void 0:c.likeInactiveTooltip,toggledTooltip:(C=this.toolbarData)==null?void 0:C.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(x=this.toolbarData)==null?void 0:x.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(b=this.toolbarSharedData)==null?void 0:b.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,S=_.g((Y=this.toolbarSurface)==null?void 0:Y.prepareAccountCommand,_.hL),P,u,W,m,J,c,C,x,b,T;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((P=this.toolbarSharedData)==null||!P.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((u=this.toolbarState)==null?void 0:u.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:S!=null?S:_.g((W=this.toolbarSurface)==null?void 0:W.dislikeCommand,_.hL),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:S!=null?S:_.g((m=this.toolbarSurface)==null?void 0:m.undislikeCommand,_.hL),defaultCommand:this.isVisiblyDisabled?_.g((J=this.toolbarSurface)==null?void 0:J.commentDisabledActionCommand,_.hL):void 0,defaultTooltip:(c=this.toolbarData)==null?void 0:c.dislikeInactiveTooltip,toggledTooltip:(C=this.toolbarData)==null?void 0:
C.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(x=this.toolbarSharedData)==null?void 0:x.dislikeReplyButtonA11y:(b=this.toolbarSharedData)==null?void 0:b.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(T=this.toolbarSharedData)==null?void 0:T.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;if(((Y=this.toolbarState)==null?void 0:Y.heartState)!==void 0&&((S=this.toolbarState)==null?void 0:S.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((P=this.toolbarState)==null?void 0:P.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var u,W,m,J,c,C,x,b,T,K,G,v,a,w;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(u=this.toolbarData)==null?void 0:u.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((W=this.toolbarState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((m=this.toolbarState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((c=this.toolbarState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.g((C=this.toolbarSurface)==null?void 0:C.heartCommand,
_.hL),unheartEndpoint:this.isVisiblyDisabled?void 0:_.g((x=this.toolbarSurface)==null?void 0:x.unheartCommand,_.hL),disabledEndpoint:this.isVisiblyDisabled?_.g((b=this.toolbarSurface)==null?void 0:b.commentDisabledActionCommand,_.hL):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(T=this.toolbarData)==null?void 0:T.heartActiveTooltip,unheartedTooltip:(K=this.toolbarData)==null?void 0:K.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((G=
this.toolbarState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(v=this.toolbarSharedData)==null?void 0:v.unheartButtonA11y:(a=this.toolbarSharedData)==null?void 0:a.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(w=this.toolbarSharedData)==null?void 0:w.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.toolbarSurface)==null||!Y.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(Y=this.commentStrings)==null?void 0:Y.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.g((S=this.toolbarSurface)==null?void 0:S.replyCommand,_.hL),command:this.isVisiblyDisabled?_.g((P=this.toolbarSurface)==null?void 0:P.commentDisabledActionCommand,_.hL):void 0}}}});
Wv.prototype.onYtServiceRequestSent=Wv.prototype.onYtServiceRequestSent;Wv.prototype.hideReplyDialogDiv=Wv.prototype.hideReplyDialogDiv;_.Q([_.X(),_.k("design:type",Object)],Wv.prototype,"commentStrings",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Wv.prototype,"isReply",void 0);_.Q([_.X(),_.k("design:type",Object)],Wv.prototype,"toolbarData",void 0);_.Q([_.X(),_.k("design:type",Object)],Wv.prototype,"toolbarSharedData",void 0);
_.Q([_.X(),_.k("design:type",String)],Wv.prototype,"toolbarStateKey",void 0);_.Q([_.X(),_.k("design:type",String)],Wv.prototype,"toolbarSurfaceKey",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Wv.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Wv.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Wv.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.nc("#reply-dialog"),_.k("design:type",HTMLElement)],Wv.prototype,"replyDialogDiv",void 0);_.Q([_.nc("#replybox"),_.k("design:type",Object)],Wv.prototype,"replyBox",void 0);_.Q([_.nc("ytd-creator-heart-renderer"),_.k("design:type",Object)],Wv.prototype,"heartButton",void 0);_.Q([_.X({selector:function(Y,S){return _.BT(Y.entities,"engagementToolbarStateEntityPayload",S)},
selectorArgs:["toolbarStateKey"]}),_.k("design:type",Object)],Wv.prototype,"toolbarState",void 0);_.Q([_.X({selector:I$9,selectorArgs:["toolbarSurfaceKey"]}),_.k("design:type",Object)],Wv.prototype,"toolbarSurface",void 0);_.Q([_.X(),_.k("design:type",Object)],Wv.prototype,"buttonOverrides",void 0);_.Q([_.WZ("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Wv.prototype,"hideReplyDialogDiv",null);
_.Q([_.d("toolbarData","toolbarState"),_.k("design:type",String),_.k("design:paramtypes",[])],Wv.prototype,"likeCount",null);_.Q([_.d("likeCount"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Wv.prototype,"showLikeCount",null);_.Q([_.d("toolbarSurface"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Wv.prototype,"isVisiblyDisabled",null);_.Q([_.d("toolbarSurface"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Wv.prototype,"hasPrepareAccountCommand",null);
_.Q([_.d("toolbarData","toolbarState","toolbarSurface"),_.k("design:type",Object),_.k("design:paramtypes",[])],Wv.prototype,"likeToggleButtonRenderer",null);_.Q([_.d("isReply","toolbarData","toolbarState","toolbarSurface"),_.k("design:type",Object),_.k("design:paramtypes",[])],Wv.prototype,"dislikeToggleButtonRenderer",null);_.Q([_.d("toolbarData","toolbarState","toolbarSurface"),_.k("design:type",Object),_.k("design:paramtypes",[])],Wv.prototype,"creatorHeartSupportedRenderer",null);
_.Q([_.d("toolbarSurface"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Wv.prototype,"hasReplyCommand",null);_.Q([_.d("toolbarSurface","commentStrings","isVisiblyDisabled"),_.k("design:type",Object),_.k("design:paramtypes",[])],Wv.prototype,"replyButtonRenderer",null);_.Q([_.X(),_.k("design:type",Object)],Wv.prototype,"replyButtonOverrides",void 0);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],Wv.prototype,"onYtServiceRequestSent",null);Wv=_.Q([_.t({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Wv);
_.A(Wv,"ytd-comment-engagement-bar",function(){if(n3_!==void 0)return n3_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return n3_=Y},{mode:1});var jXs;var zL=function(){return _.Z.apply(this,arguments)||this};
_.r(zL,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],zL.prototype,"data",void 0);zL=_.Q([_.t({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],zL);
_.A(zL,"ytd-comment-inline-thumbnail-renderer",function(){if(jXs!==void 0)return jXs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return jXs=Y},{mode:1});var J1t;var mO=function(){return _.Z.apply(this,arguments)||this};
_.r(mO,_.Z);_.Q([_.X(),_.k("design:type",Object)],mO.prototype,"data",void 0);mO=_.Q([_.t({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],mO);
_.A(mO,"ytd-comment-pause-composer-renderer",function(){if(J1t!==void 0)return J1t;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return J1t=Y},{mode:1});var BOd;var c1s;var n0=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOpen=!1;return Y};
_.r(n0,_.Z);_.z=n0.prototype;_.z.dataChanged=function(){this.isOpen=!1};
_.z.onTap=function(){this.data&&(this.data.navigationEndpoint?_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.z.focus=function(){this.JSC$13574_commentbox.focus()};
_.z.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.z.openDialog=function(){this.isOpen=!0;this.JSC$13574_commentbox.focus();this.JSC$13574_commentbox.maybeHeightChanged()};
n0.prototype.onYtCommentboxDismiss=n0.prototype.onYtCommentboxDismiss;n0.prototype.dataChanged=n0.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],n0.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],n0.prototype,"isOpen",void 0);_.Q([_.nc("#commentbox"),_.k("design:type",Object)],n0.prototype,"JSC$13574_commentbox",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],n0.prototype,"dataChanged",null);_.Q([_.WZ("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],n0.prototype,"onYtCommentboxDismiss",null);n0=_.Q([_.t({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],n0);
_.A(n0,"ytd-comment-reply-dialog-renderer",function(){if(c1s!==void 0)return c1s;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return c1s=Y},{mode:1});var CxU;var j1=function(){return _.Z.apply(this,arguments)||this};
_.r(j1,_.Z);_.y6.Object.defineProperties(j1.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.icon)==null?void 0:S.iconType;return P?"yt-icons:"+P.toLowerCase():null}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],j1.prototype,"data",void 0);_.Q([_.X(),_.d("data.icon"),_.k("design:type",Object),_.k("design:paramtypes",[])],j1.prototype,"icon",null);j1=_.Q([_.t({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],j1);
_.A(j1,"ytd-pinned-comment-badge-renderer",function(){if(CxU!==void 0)return CxU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return CxU=Y},{mode:1});var qzi;var R1t={},xWL={input:!0,meta:!0,br:!0,link:!0,img:!0},JP=null;R1t.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(){JP==null&&(JP=document.createElement("tp-yt-paper-tooltip"),JP.offset=8,JP.fitToVisibleBounds=!0)},
onMouseOver_:function(Y){if(Y=_.rh(Y.target,function(W){return W==this||W.getAttribute&&W.getAttribute("shared-tooltip-text")}.bind(this),!0)){var S=Y.getAttribute("shared-tooltip-text");
if(S){var P=this,u=null;Y!=this&&(Y.tagName.toLowerCase()in xWL?P=Y.parentElement:P=Y,Y.id&&(u=Y.id));this.polymerController.createTooltipIfRequired_();if(JP.parentElement!=P||JP.for!=u)(0,_.OR)(JP).textContent=S,_.I(P).appendChild(JP),JP.for=u,JP.animationDelay=this.polymerController.sharedTooltipAnimationDelay,JP.position=this.polymerController.sharedTooltipPosition}}}};var Bv=function(){return _.Z.apply(this,arguments)||this};
_.r(Bv,_.Z);Bv.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]]"}}}}}};
Bv.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
Bv.prototype.colorChanged=function(){var Y,S,P,u=(Y=this.data)==null?void 0:(S=Y.color)==null?void 0:(P=S.basicColorPaletteData)==null?void 0:P.foregroundBodyColor;u&&(this.rgbBadgeColor=_.Gp(u));_.I(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Bv.prototype.tooltipChanged=function(){var Y;((Y=this.data)==null?0:Y.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Bv.prototype.tooltipChanged=Bv.prototype.tooltipChanged;Bv.prototype.colorChanged=Bv.prototype.colorChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Bv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(R1t.YtSharedTooltipBehavior),_.k("design:type",Object)],Bv.prototype,"ytSharedTooltipBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Bv.prototype,"data",void 0);
_.Q([_.X({value:"#4285F4"}),_.k("design:type",String)],Bv.prototype,"rgbBadgeColor",void 0);_.Q([_.zY("data.color"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bv.prototype,"colorChanged",null);_.Q([_.zY("data.tooltip"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bv.prototype,"tooltipChanged",null);Bv=_.Q([_.t({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Bv);
_.A(Bv,"ytd-sponsor-comment-badge-renderer",function(){if(qzi!==void 0)return qzi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return qzi=Y},{mode:1});var bLh;var TO6;var cv=function(){return _.Z.apply(this,arguments)||this};
_.r(cv,_.Z);cv.prototype.computeState=function(Y){switch(Y==null?void 0:Y.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
cv.prototype.updateStateIdentifier=function(Y){if(this.viewModel.triStateKey){var S=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Dw("triStateButtonStateEntityPayload",S,{key:S,stateIdentifier:Y}))}};
cv.prototype.onClick=function(){var Y=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){Y.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){Y.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.y6.Object.defineProperties(cv.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.buttonText)||""}}});
_.Q([_.X(),_.k("design:type",Object)],cv.prototype,"viewModel",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],cv.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],cv.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.Q([_.X({selector:a$U,selectorArgs:["viewModel.triStateKey"]}),_.k("design:type",Object)],cv.prototype,"triStateButtonStateEntity",void 0);
_.Q([_.X({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.k("design:type",String)],cv.prototype,"state",void 0);_.Q([_.d("viewModel","state"),_.k("design:type",Object),_.k("design:paramtypes",[])],cv.prototype,"data",null);_.Q([_.d("data"),_.k("design:type",String),_.k("design:paramtypes",[])],cv.prototype,"buttonText",null);cv=_.Q([_.t({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],cv);
_.A(cv,"ytd-tri-state-button-view-model",function(){if(TO6!==void 0)return TO6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return TO6=Y},{mode:1});var KKu;var E3u;var C0=function(){var Y=_.Z.apply(this,arguments)||this;Y.defaultIconToFilled=!_.f("kevlar_fill_comment_chip_icon_killswitch");return Y};
_.r(C0,_.Z);C0.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
C0.prototype.dataChanged=function(){if(this.data){var Y,S;((Y=this.data.chipColorPalette)==null?0:Y.backgroundColor)&&((S=this.data.chipColorPalette)==null?0:S.foregroundTitleColor)&&_.PZ(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.hK(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.hK(this.data.chipColorPalette.foregroundTitleColor)});var P;((P=this.data)==null?0:P.command)?(_.PZ(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.PZ(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}};
C0.prototype.onTap=function(){var Y;if(this.data&&(Y=this.data)!=null&&Y.command){var S;this.ytComponentBehavior.resolveCommand((S=this.data)==null?void 0:S.command)}};
C0.prototype.getIconSize=function(){return _.f("kevlar_fill_comment_chip_icon_killswitch")?24:12};
C0.prototype.onTap=C0.prototype.onTap;C0.prototype.dataChanged=C0.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],C0.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.x1),_.k("design:type",Object)],C0.prototype,"ironA11yKeysBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],C0.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],C0.prototype,"basePriceText",void 0);_.Q([_.X(),_.k("design:type",Object)],C0.prototype,"chipIcon",void 0);_.Q([_.X(),_.k("design:type",Object)],C0.prototype,"defaultIconToFilled",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C0.prototype,"dataChanged",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C0.prototype,"onTap",null);
C0=_.Q([_.r0({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],C0);
_.A(C0,"yt-pdg-comment-chip-renderer",function(){if(E3u===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;KKu===void 0&&(KKu=document.createElement("template"));var u=KKu;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);E3u=Y}Y=E3u;return Y},{mode:2});var qM=function(){var Y=_.Z.apply(this,arguments)||this;Y.useSmallAvatars=_.f("small_avatars_for_comments");Y.webWatchCompactComments=_.f("web_watch_compact_comments");Y.editDialog=null;return Y};
_.r(qM,_.Z);_.z=qM.prototype;_.z.onShow=function(){_.sV("cmv",void 0,"wn_comments")};
_.z.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"}}}};
_.z.detached=function(){this.editDialog=null;this.expander.reset()};
_.z.updateBackgroundColor=function(){if(this.backgroundColor){var Y={"--ytd-comment-paid-background-color":_.hK(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.PZ(this.hostElement,Y)}else _.PZ(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.z.resetExpander=function(){var Y;(Y=this.expander)==null||Y.reset()};
_.z.openEditDialog=function(Y){Y.dialog&&(this.editDialog=Y.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.z.onYtNavigate=function(Y){var S=Y.detail.endpoint;if(S=_.g(S,_.PvU)||_.g(S,_.uKm))Y.stopPropagation(),this.openEditDialog(S)};
_.z.onYtCommentboxDismiss=function(){this.editDialog=null;_.PZ(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.z.onAuthorThumbnailClicked=function(){var Y=this;_.f("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(S,P){Y.onAuthorThumbnailEndpointSuccess(P)},
onServerError:function(S,P){_.sf(new _.$2("Failed to resolve the command",P))}}})};
_.z.onAuthorThumbnailEndpointSuccess=function(Y){if((Y=Y==null?void 0:Y.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(Y,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();Y=Y==null?void 0:Y.clickTrackingParams;var S=_.wf();Y&&S&&_.BF().graftServerVe(Y,S)}};
_.z.logScreenVe=function(){_.Ow(_.BF(),66557)};
_.z.onYtCommentboxResize=function(Y){var S;(Y==null?0:(S=Y.detail)==null?0:S.height)&&_.PZ(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":Y.detail.height+"px"})};
_.y6.Object.defineProperties(qM.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var Y,S=(Y=this.commentEntity)==null?void 0:Y.author;return S&&(S.isCreator||S.isVerified||S.isArtist)?{renderer:{authorEndpoint:S.channelPageEndpoint?_.g(S.channelPageEndpoint,_.hL):_.g(S.channelCommand,_.hL),authorText:{runs:[{text:S.displayName}]},color:S.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:S.isArtist?{iconType:"AUDIO_BADGE"}:
S.isVerified?{iconType:S.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:S.isArtist||S.isVerified?S.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var Y,S=(Y=this.commentEntity)==null?void 0:Y.author;return S!=null&&S.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:S.sponsorBadgeUrl}]},tooltip:S.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;return _.g((Y=this.commentSurfaceEntity)==null?void 0:Y.pdgCommentChip,_.wmd)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var Y;return this.voiceReplyContainerViewModel&&((Y=this.voiceReplyContainerViewModel)==null?void 0:Y.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;return _.g((Y=this.commentSurfaceEntity)==null?void 0:Y.voiceReplyContainerViewModel,K0d)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var Y;return this.voiceReplyContainerViewModel&&(Y=this.voiceReplyContainerViewModel)!=null&&Y.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(S=(Y=this.commentSurfaceEntity)==null?void 0:Y.commentBackgroundColor)!=null?S:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.f("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(((Y=this.commentEntity)==null?void 0:(S=Y.properties)==null?void 0:S.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var Y,S;if(_.f("enable_profile_cards_on_comments")&&((Y=this.commentEntity)==null?0:(S=Y.author)==null?0:S.profileCardEndpoint)&&this.viewModel.allowProfileCard){var P,u;return _.g((P=this.commentEntity)==null?void 0:(u=P.author)==null?void 0:u.profileCardEndpoint,_.hL)}var W,m;return _.g((W=this.commentEntity)==null?void 0:(m=W.avatar)==null?void 0:m.endpoint,_.hL)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var Y,S;if(_.f("enable_profile_cards_on_comments")&&((Y=this.commentEntity)==null?0:(S=Y.author)==null?0:S.channelPageEndpoint)){var P,u;return _.g((P=this.commentEntity)==null?void 0:(u=P.author)==null?void 0:u.channelPageEndpoint,_.hL)}var W,m;return _.g((W=this.commentEntity)==null?void 0:(m=W.avatar)==null?void 0:m.endpoint,_.hL)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u,W=(Y=this.commentEntity)==null?void 0:(S=Y.avatar)==null?void 0:(P=S.image)==null?void 0:(u=P.sources)==null?void 0:u[0];return W?{thumbnails:[{url:W.url,width:W.width,height:W.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.commentEntity)==null?0:(S=Y.author)==null?0:S.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.commentEntity)==null?void 0:(S=Y.author)==null?void 0:S.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.commentEntity)==null?void 0:(S=Y.properties)==null?void 0:S.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var Y;return _.g((Y=this.commentSurfaceEntity)==null?void 0:Y.publishedTimeCommand,_.hL)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var Y,S;if(((Y=this.commentEntity)==null?0:Y.translatedContent)&&((S=this.translateButtonState)==null?void 0:S.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var P;if((P=this.voiceReplyContainerViewModel)==null?0:P.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var u,W;return((u=this.commentEntity)==null?void 0:(W=u.properties)==null?void 0:W.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.commentSharedEntity)==null?void 0:(S=Y.strings)==null?void 0:S.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.commentSharedEntity)==null?void 0:(S=Y.strings)==null?void 0:S.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.commentEntity)==null||!Y.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var Y,S,P=(S=_.g((Y=this.viewModel)==null?void 0:Y.translateButton,TIi))!=null?S:{},u,W,m,J,c,C,x,b,T,K,G;return Object.assign({},P,{untoggledStateData:Object.assign({},P.untoggledStateData,{buttonText:(u=this.commentEntity)==null?void 0:(W=u.translateData)==null?void 0:W.text}),togglingStateData:Object.assign({},P.togglingStateData,{buttonText:(m=this.commentSharedEntity)==null?
void 0:(J=m.strings)==null?void 0:J.translatingText}),toggledStateData:Object.assign({},P.toggledStateData,{buttonText:(c=this.commentSharedEntity)==null?void 0:(C=c.strings)==null?void 0:C.seeOriginalText}),transitionCommand:((x=this.commentEntity)==null?0:x.translatedContent)?void 0:_.g((b=this.commentEntity)==null?void 0:(T=b.translateData)==null?void 0:T.translateComment,_.hL),triStateKey:(K=this.commentEntity)==null?void 0:(G=K.properties)==null?void 0:G.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((S=_.g(_.g((Y=this.toolbarSurface)==null?void 0:Y.menuCommand,_.hL),WTi))==null?void 0:(P=S.menu)==null?void 0:P.menuRenderer)||null}}});
qM.prototype.onYtCommentboxResize=qM.prototype.onYtCommentboxResize;qM.prototype.onYtCommentboxDismiss=qM.prototype.onYtCommentboxDismiss;qM.prototype.onYtNavigate=qM.prototype.onYtNavigate;qM.prototype.resetExpander=qM.prototype.resetExpander;qM.prototype.updateBackgroundColor=qM.prototype.updateBackgroundColor;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],qM.prototype,"ytdReduxBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],qM.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],qM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.nc("#author-thumbnail > button"),_.k("design:type",HTMLElement)],qM.prototype,"authorThumbnailAnchor",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("viewModel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],qM.prototype,"linked",null);
_.Q([_.d("viewModel","linked"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"linkedCommentBadge",null);_.Q([_.X({reflectToAttribute:!0}),_.d("viewModel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],qM.prototype,"pinned",null);_.Q([_.d("viewModel","pinned"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"pinnedCommentBadge",null);
_.Q([_.d("commentEntity","commentSharedEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"authorCommentBadge",null);_.Q([_.X({reflectToAttribute:!0}),_.d("authorCommentBadge"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"hasAuthorBadge",null);_.Q([_.d("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"sponsorCommentBadge",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("sponsorCommentBadge"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"hasSponsorBadge",null);_.Q([_.d("commentSurfaceEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"pdgCommentChipRenderer",null);_.Q([_.X({reflectToAttribute:!0}),_.d("voiceReplyContainerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"hasVoiceReply",null);
_.Q([_.d("commentSurfaceEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"voiceReplyContainerViewModel",null);_.Q([_.d("voiceReplyContainerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"voiceReplyUnavailableText",null);_.Q([_.X(),_.k("design:type",Object)],qM.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"viewModel",null);
_.Q([_.X({selector:function(Y,S){return _.BT(Y.entities,"commentSharedEntityPayload",S)},
selectorArgs:["viewModel.sharedKey"]}),_.k("design:type",Object)],qM.prototype,"commentSharedEntity",void 0);_.Q([_.X({selector:function(Y,S){return _.BT(Y.entities,"commentEntityPayload",S)},
selectorArgs:["viewModel.commentKey"]}),_.k("design:type",Object)],qM.prototype,"commentEntity",void 0);_.Q([_.X({selector:function(Y,S){return _.BT(Y.entities,"commentSurfaceEntityPayload",S)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.k("design:type",Object)],qM.prototype,"commentSurfaceEntity",void 0);_.Q([_.X({selector:I$9,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.k("design:type",Object)],qM.prototype,"toolbarSurface",void 0);_.Q([_.X({selector:a$U,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.k("design:type",Object)],qM.prototype,"translateButtonState",void 0);
_.Q([_.d("commentSurfaceEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"backgroundColor",null);_.Q([_.X({reflectToAttribute:!0}),_.d("viewModel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],qM.prototype,"optimalReadingWidthComments",null);_.Q([_.nc("ytd-expander"),_.k("design:type",Object)],qM.prototype,"expander",void 0);
_.Q([_.zY("backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qM.prototype,"updateBackgroundColor",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],qM.prototype,"useSmallAvatars",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],qM.prototype,"webWatchCompactComments",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"isReply",null);
_.Q([_.d("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"authorThumbnailEndpoint",null);_.Q([_.d("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"authorNameEndpoint",null);_.Q([_.d("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"authorThumbnail",null);_.Q([_.d("commentEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],qM.prototype,"authorTextClass",null);
_.Q([_.d("commentEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],qM.prototype,"authorChannelName",null);_.Q([_.d("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"publishedTime",null);_.Q([_.d("commentSurfaceEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"publishedTimeCommand",null);
_.Q([_.d("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"contentText",null);_.Q([_.zY("contentText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qM.prototype,"resetExpander",null);_.Q([_.d("commentEntity"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],qM.prototype,"shouldShowReadMoreInitially",null);
_.Q([_.d("commentSharedEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],qM.prototype,"expandText",null);_.Q([_.d("commentSharedEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],qM.prototype,"collapseText",null);_.Q([_.d("commentEntity"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],qM.prototype,"shouldShowTranslateButton",null);
_.Q([_.d("commentEntity","commentSharedEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"translateButton",null);_.Q([_.d("toolbarSurface"),_.k("design:type",Object),_.k("design:paramtypes",[])],qM.prototype,"overflowMenuRenderer",null);_.Q([_.X(),_.k("design:type",Object)],qM.prototype,"editDialog",void 0);_.Q([_.nc("ytd-comment-dialog-renderer"),_.k("design:type",Object)],qM.prototype,"editCommentDialogContainer",void 0);
_.Q([_.nc("ytd-comment-reply-dialog-renderer"),_.k("design:type",Object)],qM.prototype,"editReplyDialogContainer",void 0);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],qM.prototype,"onYtNavigate",null);_.Q([_.WZ("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],qM.prototype,"onYtCommentboxDismiss",null);
_.Q([_.WZ("yt-commentbox-resize"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],qM.prototype,"onYtCommentboxResize",null);qM=_.Q([_.t({disableElementRegistration:!0,is:"ytd-comment-view-model"})],qM);
_.A(qM,"ytd-comment-view-model",function(){if(bLh!==void 0)return bLh;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return bLh=Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var RO=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("web_modern_buttons");Y.isWatchGrid=_.f("kevlar_watch_grid");Y.buttonOverrides={style:"call-to-action"};Y.JSC$13620_spinnerEl=null;return Y};
_.r(RO,_.Z);_.z=RO.prototype;_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.z.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]]"}}}}}};
_.z.attached=function(){this.isShowRepliesVisible=!0};
_.z.dataChanged=function(){var Y=this.expanderContents;Y&&(Y.hidden=!0);this.isLoading=!1};
_.z.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.z.isLoadingChanged=function(){this.isLoading&&!this.JSC$13620_spinnerEl&&(this.JSC$13620_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.I(this.expanderContents).appendChild(this.JSC$13620_spinnerEl));this.JSC$13620_spinnerEl&&(this.JSC$13620_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var Y;(Y=this.contents)==null||Y.classList.remove("reloading")}};
_.z.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var Y=_.g(this.data.viewReplies,_.I8);Y&&this.ytRendererBehavior.logExplicitClick(Y)};
_.z.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var Y=_.g(this.data.hideReplies,_.I8);Y&&this.ytRendererBehavior.logExplicitClick(Y)};
_.z.isShowMoreChanged=function(){var Y=_.I(this.hostElement).querySelector("#expander-contents");Y&&(Y.hidden=this.isShowRepliesVisible)};
_.z.computeAlign=function(){if(this.modern){var Y;return!((Y=this.data)==null?0:Y.viewRepliesCreatorThumbnail)}};
_.y6.Object.defineProperties(RO.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var Y,S=(Y=this.data)==null?void 0:Y.contents,P;return!((P=this.data)==null||!P.continuations)||!!S&&S.length>0&&!!S[S.length-1].continuationItemRenderer}}});
RO.prototype.isShowMoreChanged=RO.prototype.isShowMoreChanged;RO.prototype.isLoadingChanged=RO.prototype.isLoadingChanged;RO.prototype.triggerFirstContinuation=RO.prototype.triggerFirstContinuation;RO.prototype.dataChanged=RO.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],RO.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.I3),_.k("design:type",Object)],RO.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],RO.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],RO.prototype,"modern",void 0);_.Q([_.X(),_.k("design:type",Boolean)],RO.prototype,"isLoading",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],RO.prototype,"isShowRepliesVisible",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],RO.prototype,"useNewFormatting",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],RO.prototype,"isWatchGrid",void 0);_.Q([_.X(),_.k("design:type",Object)],RO.prototype,"buttonOverrides",void 0);_.Q([_.nc("#expander-contents"),_.k("design:type",HTMLElement)],RO.prototype,"expanderContents",void 0);_.Q([_.nc("ytd-continuation-item-renderer"),_.k("design:type",Object)],RO.prototype,"continuationItemRenderer",void 0);_.Q([_.nc("#contents"),_.k("design:type",HTMLElement)],RO.prototype,"contents",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RO.prototype,"dataChanged",null);_.Q([_.d("data.continuations","data.contents"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],RO.prototype,"hasContinuation",null);_.Q([_.WZ("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RO.prototype,"triggerFirstContinuation",null);
_.Q([_.zY("isLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RO.prototype,"isLoadingChanged",null);_.Q([_.zY("isShowRepliesVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RO.prototype,"isShowMoreChanged",null);RO=_.Q([_.t({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],RO);
_.A(RO,"ytd-comment-replies-renderer",function(){if(BOd!==void 0)return BOd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return BOd=Y},{mode:1});var fyS;var xh=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOpen=!1;Y.commentDialog=null;Y.useSmallAvatars=_.f("small_avatars_for_comments");Y.useSmallAvatarsEngagementPanelOnly=_.f("small_avatars_for_comments_ep");Y.placeholderFocusListener=null;Y.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return Y};
_.r(xh,_.Z);_.z=xh.prototype;_.z.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]]"}}}}}};
_.z.ready=function(){var Y=this,S=_.I(this.hostElement).querySelector("#placeholder-area"),P=_.I(this.hostElement).querySelector("#simplebox-placeholder"),u=function(W){W.stopPropagation();W instanceof KeyboardEvent&&W.type==="keypress"&&W.keyCode!==13&&W.keyCode!==32||Y.openDialog()};
this.placeholderFocusListener=u;P.addEventListener("focus",this.placeholderFocusListener);S.addEventListener("tap",u);S.addEventListener("keypress",u)};
_.z.maybeRemoveFocusEventListener=function(){var Y;(Y=this.data)!=null&&Y.prepareAccountEndpoint&&!_.f("web_comments_simplebox_modal_focus_on_tap_ks")&&(Y=_.I(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(Y.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.z.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.z.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.f("web_comment_simplebox_resolve_polymer_command_ks")?_.zR.instance.resolveCommand(this.data.prepareAccountEndpoint):_.m4(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.I(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.z.onYtCommentboxDismiss=function(Y){Y.stopPropagation();this.isOpen=!1};
_.z.onCreateCommentAction=function(Y){this.get("createCommentAction.contents",Y)&&(this.isOpen=!1)};
_.z.computeCommentDialog=function(Y){return{placeholderText:Y.placeholderText,authorThumbnail:Y.authorThumbnail,submitButton:Y.submitButton,imageButton:Y.imageButton,cancelButton:Y.cancelButton,emojiButton:Y.emojiButton,emojis:Y.emojis,emojiPicker:Y.emojiPicker,aadcGuidelinesStateEntityKey:Y.aadcGuidelinesStateEntityKey,openAadcDialog:Y.openAadcDialog,unicodeEmojisUrl:Y.unicodeEmojisUrl}};
_.z.onHideIdentityChip=function(Y){_.g(Y,J__)&&this.set("data.placeholderText",_.g(Y,J__).placeholderText)};
xh.prototype.onYtCommentboxDismiss=xh.prototype.onYtCommentboxDismiss;xh.prototype.dataChanged=xh.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],xh.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],xh.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],xh.prototype,"isOpen",void 0);_.Q([_.X(),_.k("design:type",Object)],xh.prototype,"commentDialog",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],xh.prototype,"engagementPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xh.prototype,"useSmallAvatars",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xh.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],xh.prototype,"enableCreationBox",void 0);_.Q([_.X(),_.k("design:type",Boolean)],xh.prototype,"showCreateDialog",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xh.prototype,"dataChanged",null);
_.Q([_.WZ("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],xh.prototype,"onYtCommentboxDismiss",null);xh=_.Q([_.t({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],xh);
_.A(xh,"ytd-comment-simplebox-renderer",function(){if(fyS!==void 0)return fyS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return fyS=Y},{mode:1});var g3S;_.$s("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var bH=function(){var Y=_.Z.apply(this,arguments)||this;Y.addHoverEffect=_.f("swatcheroo_comments_hover_effect");return Y};
_.r(bH,_.Z);bH.prototype.onTap=function(Y){if(this.addHoverEffect&&!this.engagementPanel&&!_.iN(_.iM(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var S;((S=window.getSelection())==null?0:S.toString().length)||_.m4({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
bH.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.y6.Object.defineProperties(bH.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)!=null&&Y.commentViewModel)return _.g(this.data.commentViewModel,bXu)}}});
bH.prototype.onTap=bH.prototype.onTap;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],bH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],bH.prototype,"addHoverEffect",void 0);_.Q([_.X(),_.k("design:type",Object)],bH.prototype,"data",void 0);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],bH.prototype,"commentViewModel",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],bH.prototype,"engagementPanel",void 0);_.Q([_.WZ("tap"),_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],bH.prototype,"onTap",null);bH=_.Q([_.t({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],bH);
_.A(bH,"ytd-comment-thread-renderer",function(){if(g3S!==void 0)return g3S;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return g3S=Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var $Ws;var TL=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernTypography=_.f("web_modern_typography");Y.compactHeader=_.f("web_watch_compact_comments_header");Y.hidePanelButton=!1;Y.isPostSchedulingEnabled=_.f("enable_post_scheduling");Y.hasFinishedStamping=!1;Y.JSC$13638_handleOpenPostCommentDialogActionAfterStamp=!1;Y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return Y};
_.r(TL,_.Z);_.z=TL.prototype;
_.z.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"}}}};
_.z.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.z.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13638_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.z.onYtServiceRequestSent=function(Y,S){if(!_.f("kevlar_command_handler")&&S.actions)for(Y=0;Y<S.actions.length;Y++){var P=S.actions[Y];_.g(P,lp_)&&_.I(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.g(P,lp_))}};
_.z.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var Y;if(this.getPrefilledBackstagePostDialog((Y=this.data)==null?void 0:Y.actions)){_.I(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var S=_.I(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;S&&_.ky(this,function(){S.focus();S.openDialog&&S.openDialog()})}}else this.hasActionsChange=!0};
_.z.computeIsBackstage=function(Y){return Y};
_.z.onYtCommentboxDismiss=function(){_.I(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.z.removePrefilledDialog=function(Y){if(Y==null?0:Y.actions){for(var S=Y.actions.length-1;S>=0;S--){var P=void 0;((P=_.g(Y.actions[S],YqJ))==null?0:P.dialog)&&delete Y.actions[S]}this.set("data",void 0);this.set("data",Y)}};
_.z.getPrefilledBackstagePostDialog=function(Y){if(Y)for(var S=0;S<Y.length;S++){var P=Y[S],u=void 0;if((u=_.g(P,YqJ))==null?0:u.dialog)return _.g(P,YqJ).dialog}return null};
_.z.computeBackstagePostDialog=function(Y){return Y&&(this.getPrefilledBackstagePostDialog(Y.actions)||Y.createRenderer)};
_.z.dataChanged=function(){if(this.data){var Y=this.data.customEmojis,S=this.data.unicodeEmojisUrl;_.GV.clear();S&&_.f5f(_.GV,S);Y&&_.GV.load(Y)}};
_.z.handleSignalActionOpenPostCommentDialogAction=function(){var Y=_.I(this.hostElement).querySelector("ytd-comment-simplebox-renderer");Y?Y.openDialog():this.JSC$13638_handleOpenPostCommentDialogActionAfterStamp=!0};
_.y6.Object.defineProperties(TL.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.f("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u,W,m,J;return!this.hidePanelButton&&_.f("kevlar_watch_comments_panel_button")&&((J=_.g((Y=this.data)==null?void 0:(S=Y.sortMenu)==null?void 0:(P=S.sortFilterSubMenuRenderer)==null?void 0:(u=P.subMenuItems)==null?void 0:(W=u[0])==null?void 0:(m=W.serviceEndpoint)==null?void 0:m.commandMetadata,_.Yo))==null?void 0:J.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Td("MINIPLAYER_EXPAND_LABEL"),text:_.kW(_.Td("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
TL.prototype.dataChanged=TL.prototype.dataChanged;TL.prototype.onYtCommentboxDismiss=TL.prototype.onYtCommentboxDismiss;TL.prototype.observePrefilledBackstagePostDialog=TL.prototype.observePrefilledBackstagePostDialog;TL.prototype.onYtServiceRequestSent=TL.prototype.onYtServiceRequestSent;TL.prototype.onStampFinished=TL.prototype.onStampFinished;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],TL.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],TL.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],TL.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],TL.prototype,"modernTypography",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],TL.prototype,"compactHeader",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],TL.prototype,"engagementPanel",void 0);_.Q([_.X(),_.k("design:type",Object)],TL.prototype,"hidePanelButton",void 0);_.Q([_.X({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.k("design:type",Boolean)],TL.prototype,"isBackstage",void 0);_.Q([_.X({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.k("design:type",Object)],TL.prototype,"backstagePostDialog",void 0);
_.Q([_.X(),_.k("design:type",Object)],TL.prototype,"isPostSchedulingEnabled",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data","showCommentsPanelButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],TL.prototype,"useSpaceBetween",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data","hidePanelButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],TL.prototype,"showCommentsPanelButton",null);
_.Q([_.d("data","showCommentsPanelButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],TL.prototype,"commentsPanelButtonData",null);_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],TL.prototype,"onStampFinished",null);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],TL.prototype,"onYtServiceRequestSent",null);
_.Q([_.zY("data.actions"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],TL.prototype,"observePrefilledBackstagePostDialog",null);_.Q([_.WZ("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],TL.prototype,"onYtCommentboxDismiss",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],TL.prototype,"dataChanged",null);
TL=_.Q([_.t({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],TL);
_.A(TL,"ytd-comments-header-renderer",function(){if($Ws!==void 0)return $Ws;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return $Ws=Y},{mode:1});var r1d;var K0=function(){return _.Z.apply(this,arguments)||this};
_.r(K0,_.Z);_.Q([_.X(),_.k("design:type",Object)],K0.prototype,"data",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);K0=_.Q([_.t({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],K0);
_.A(K0,"ytd-destination-button-renderer",function(){if(r1d!==void 0)return r1d;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return r1d=Y},{mode:1});var GiU;var EK=function(){var Y=_.Z.apply(this,arguments)||this;Y.isRichGrid=!1;Y.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};Y.modernTypography=_.f("web_modern_typography");return Y};
_.r(EK,_.Z);_.z=EK.prototype;_.z.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.z.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.z.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.z.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var Y;if((Y=this.data)==null||!Y.isExpanded){Y=this.hostElement.clientWidth;var S;if(Y&&(S=this.data)!=null&&S.destinationButtons){S=Math.floor((Y+4)/214);Y=this.data.destinationButtons.length;var P=Math.ceil(Y/S);this.fullyVisibleRows=Y%S===1&&P===2?1:Math.min(P,2);this.isShowMoreVisible=this.fullyVisibleRows<P}}}};
_.z.updateRichGridDestinationButtonsVisibility=function(){var Y,S;if(this.isRichGrid&&((Y=this.data)==null||!Y.isExpanded)&&(S=this.data)!=null&&S.destinationButtons){Y=this.richGridItemsPerRow+1;S=this.data.destinationButtons.length;var P=Math.ceil(S/Y);this.fullyVisibleRows=S%Y===1&&P===2?1:Math.min(P,2);this.isShowMoreVisible=this.fullyVisibleRows<P}};
_.z.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
EK.prototype.updateRichGridDestinationButtonsVisibility=EK.prototype.updateRichGridDestinationButtonsVisibility;_.Q([_.X(),_.k("design:type",Object)],EK.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Number)],EK.prototype,"fullyVisibleRows",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],EK.prototype,"isShowMoreVisible",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],EK.prototype,"isRichGrid",void 0);
_.Q([_.X({selector:_.wT,value:0}),_.k("design:type",Number)],EK.prototype,"richGridItemsPerRow",void 0);_.Q([_.X(),_.k("design:type",Object)],EK.prototype,"gridStateActionMap",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],EK.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],EK.prototype,"ytdReduxBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],EK.prototype,"modernTypography",void 0);_.Q([_.zY("data","richGridItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EK.prototype,"updateRichGridDestinationButtonsVisibility",null);
EK=_.Q([_.t({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],EK);
_.A(EK,"ytd-destination-shelf-renderer",function(){if(GiU!==void 0)return GiU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return GiU=Y},{mode:1});var h1f;var f0=function(){return _.Z.apply(this,arguments)||this};
_.r(f0,_.Z);f0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],f0.prototype,"data",void 0);f0=_.Q([_.t({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],f0);
_.A(f0,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(h1f!==void 0)return h1f;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return h1f=Y},{mode:1});var v3m;var g4=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableAnimation=!1;Y.isSlimlineSurvey=!1;Y.isSlimlineSurveyFollowUp=!1;Y.isShortsStyle=!1;return Y};
_.r(g4,_.Z);g4.prototype.onTap=function(Y){Y.preventDefault();this.data&&_.ms(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.y6.Object.defineProperties(g4.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u,W;return((Y=this.data)==null?0:Y.checked)?(S=this.data)==null?void 0:(P=S.onStateIcon)==null?void 0:P.iconType:(u=this.data)==null?void 0:(W=u.defaultStateIcon)==null?void 0:W.iconType}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],g4.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],g4.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],g4.prototype,"disableAnimation",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],g4.prototype,"isSlimlineSurvey",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],g4.prototype,"isSlimlineSurveyFollowUp",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],g4.prototype,"isShortsStyle",void 0);_.Q([_.d("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],g4.prototype,"isAnimatedIcon",null);
_.Q([_.d("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.k("design:type",Number),_.k("design:paramtypes",[])],g4.prototype,"iconSize",null);_.Q([_.d("isShortsStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],g4.prototype,"isDarkTheme",null);_.Q([_.d("data.checked"),_.k("design:type",Object),_.k("design:paramtypes",[])],g4.prototype,"icon",null);g4=_.Q([_.t({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],g4);
_.A(g4,"ytd-rating-survey-option-renderer",function(){if(v3m!==void 0)return v3m;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return v3m=Y},{mode:2});var DW3;var $h=function(){var Y=_.Z.apply(this,arguments)||this;Y.firstResponseText=null;Y.lastResponseText=null;Y.selectedNonStarOption=null;Y.hideOptions=!1;Y.hideUndoButton=!0;Y.disableAnimation=!1;Y.showResponseRangeText=!1;Y.selectedRatingIndex=-1;Y.isSlimlineSurvey=!1;Y.isSlimlineSurveyFollowUp=!1;Y.isShortsStyle=!1;Y.slimlineSurveyRatingSelectedIndex=-1;return Y};
_.r($h,_.Z);_.z=$h.prototype;_.z.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.z.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.z.onOptionChange=function(Y,S){var P=this;Y=S.onStateIcon&&S.defaultStateIcon&&S.onStateIcon.iconType===S.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(J,c){J.responseText===S.responseText?P.isSlimlineSurvey?(P.selectedRatingIndex=c,P.ytdReduxBehavior.dispatch(aF3(c))):(P.setSurveyOptionValue(c,!0,"checked"),P.setSurveyOptionValue(c,!0,"selected")):(P.setSurveyOptionValue(c,!1,"checked"),P.setSurveyOptionValue(c,
!1,"selected"))});
else if(Y)this.selectedNonStarOption=S,this.hideOptions=!0;else{var u=this.ytRendererBehavior.getSimpleString(S.responseText),W=!0;this.getOptionRenderers().forEach(function(J,c){P.setSurveyOptionValue(c,W,"checked");P.setSurveyOptionValue(c,!1,"selected");P.ytRendererBehavior.getSimpleString(J.responseText)===u&&(W=!1,P.setSurveyOptionValue(c,!0,"selected"))})}Y=S.responseEndpoint;
var m;S.followUpCommand&&(m=_.g(S.followUpCommand,ajU));this.isSlimlineSurvey?(this.resetComponent(),_.nb(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.nb(this.hostElement,"ytd-inline-survey-rating-select-action",[Y,m])};
_.z.showSelectedOption=function(){var Y=this;_.wc.addJob(function(){var S=Y.getOptionRenderers()[Y.slimlineSurveyRatingSelectedIndex];Y.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),S)},8,100)};
_.z.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(Y){var S;return(S=_.g(Y,wyi))!=null?S:{}}):[]};
_.z.onUndoClick=function(){this.resetComponent();_.nb(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.z.setSurveyOptionValue=function(Y,S,P){this.notifyPath("data.ratings."+Y+".ratingSurveyOptionRenderer."+P);this.set("data.ratings."+Y+".ratingSurveyOptionRenderer."+P,S)};
_.z.resetComponent=function(){var Y=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var S=this.getOptionRenderers(),P,u;this.firstResponseText=(u=(P=S[0])==null?void 0:P.responseText)!=null?u:null;var W,m;this.lastResponseText=(m=(W=S[S.length-1])==null?void 0:W.responseText)!=null?m:null;S.forEach(function(J,c){Y.setSurveyOptionValue(c,!1,"checked");Y.setSurveyOptionValue(c,!1,"selected")})};
_.y6.Object.defineProperties($h.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
$h.prototype.onOptionChange=$h.prototype.onOptionChange;$h.prototype.dataChanged=$h.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],$h.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$h.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],$h.prototype,"firstResponseText",void 0);_.Q([_.X(),_.k("design:type",Object)],$h.prototype,"lastResponseText",void 0);_.Q([_.X(),_.k("design:type",Object)],$h.prototype,"selectedNonStarOption",void 0);_.Q([_.X(),_.k("design:type",Object)],$h.prototype,"hideOptions",void 0);_.Q([_.X(),_.k("design:type",Object)],$h.prototype,"hideUndoButton",void 0);_.Q([_.X(),_.k("design:type",Object)],$h.prototype,"disableAnimation",void 0);
_.Q([_.X(),_.k("design:type",Object)],$h.prototype,"showResponseRangeText",void 0);_.Q([_.X(),_.k("design:type",Object)],$h.prototype,"selectedRatingIndex",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$h.prototype,"isSlimlineSurvey",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$h.prototype,"isSlimlineSurveyFollowUp",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$h.prototype,"isShortsStyle",void 0);_.Q([_.X({selector:function(Y){return Y.ui.slimlineSurveyRatingSelectedIndex}}),
_.k("design:type",Object)],$h.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.Q([_.d("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$h.prototype,"isSingleSelect",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$h.prototype,"dataChanged",null);
_.Q([_.WZ("ytd-rating-survey-option-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],$h.prototype,"onOptionChange",null);$h=_.Q([_.t({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],$h);
_.A($h,"ytd-rating-survey-renderer",function(){if(DW3!==void 0)return DW3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return DW3=Y},{mode:1});var Iy6;var ayt;var LKS;var BRU=(f6.FIRSTDAYOFWEEK+1)%7,w7d=function(Y,S,P,u){var W="";if(u.selection&&m39(u.selection))Tt(Y,u.selection)&&(W+=" selected");else if(u.selection&&nk1(u.selection)){var m=u.selection.selectionState||"START_DATE";Tt(Y,u.selection.start)&&(W+=" period-start ",m==="START_DATE"&&(W+="selected"));Tt(Y,u.selection.end)&&(W+=" period-end ",m==="END_DATE"&&(W+="selected"));K6(Y,u.selection.start)||K6(u.selection.end,Y)||(W+=" highlighted")}if(K6(S,u.start)||K6(u.end,S))W+=" disabled";u.circleToday&&
Tt(S,P)&&(W+=" today");return W};var r4=function(){return _.Z.apply(this,arguments)||this};
_.r(r4,_.Z);_.z=r4.prototype;_.z.attached=function(){var Y=this;_.ky(this,function(){Y.JSC$13672_calendarMain.scrollHeight>0&&(Y.calendarConfig.selection?Y.scrollToDate(jvh(Y.calendarConfig.selection)):Y.scrollToDate(Y.calendarConfig.end))})};
_.z.updateSelection=function(Y){Y=coa(Object.assign({},this.calendarConfig,{selection:Y}),w7d);this.splice.apply(this,["renderData.months",0,Y.length].concat(_.cz(Y)))};
_.z.scrollToDate=function(Y){this.renderData&&(Y=Cb8(Y,this.renderData),Y!==void 0&&this.JSC$13672_calendarMain.scrollToIndex(Y))};
_.z.scrollToNextMonth=function(){this.JSC$13672_calendarMain.scrollToIndex(this.JSC$13672_calendarMain.firstVisibleIndex+1)};
_.z.scrollToPrevMonth=function(){this.JSC$13672_calendarMain.firstVisibleIndex===0&&this.JSC$13672_calendarMain.scrollTo(0,0);this.JSC$13672_calendarMain.scrollToIndex(this.JSC$13672_calendarMain.firstVisibleIndex-1)};
_.z.handleDayClick=function(Y){_.nb(this.hostElement,"ytd-calendar-date-clicked",[Y.model.day.date])};
_.z.handleDayMouseDown=function(Y){Y.preventDefault();_.nb(this.hostElement,"ytd-calendar-date-mousedown",[Y.model.day.date])};
_.z.handleDayMouseUp=function(Y){_.nb(this.hostElement,"ytd-calendar-date-mouseup",[Y.model.day.date])};
_.z.handleDayMouseEnter=function(Y){Y.preventDefault();_.nb(this.hostElement,"ytd-calendar-date-mouseenter",[Y.model.day.date])};
_.z.handleDayMouseLeave=function(Y){_.nb(this.hostElement,"ytd-calendar-date-mouseleave",[Y.model.day.date])};
_.y6.Object.defineProperties(r4.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var Y=this.calendarConfig,S=w7d;S=S===void 0?w7d:S;for(var P=[],u=0;u<7;u++)P.push(f6.NARROWWEEKDAYS[(u+BRU)%7]);return{months:coa(Y,S),daysOfWeekLabel:P}}}});
_.Q([_.X(),_.k("design:type",Object)],r4.prototype,"calendarConfig",void 0);_.Q([_.nc("#calendar-main"),_.k("design:type",Object)],r4.prototype,"JSC$13672_calendarMain",void 0);_.Q([_.d("calendarConfig"),_.k("design:type",Object),_.k("design:paramtypes",[])],r4.prototype,"renderData",null);r4=_.Q([_.t({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],r4);
_.A(r4,"ytd-scrollable-calendar",function(){if(LKS!==void 0)return LKS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return LKS=Y},{mode:2});var p7_;var FKs;var GL=function(){var Y=_.Z.apply(this,arguments)||this;Y.hideCharCounter=!1;Y.hideLabel=!1;Y.noLabelFloat=!1;Y.autoValidate=!0;Y.invalid=!1;Y.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return Y};
_.r(GL,_.Z);_.z=GL.prototype;_.z.reset=function(Y){this.value=Y&&this.data?this.data.value=Y:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.z.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.z.focusTextInput=function(){this.input.focus()};
_.z.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()};
_.z.valueChanged=function(){var Y,S;if(((Y=this.data)==null?0:Y.value)||((S=this.data)==null?void 0:S.value)==="")this.value=this.data.value;else{var P;((P=this.data)==null?void 0:P.value)!==void 0||this.value||(this.value="")}};
_.z.computeLabel=function(Y,S){return S?"":_.Ma(Y)};
_.z.computeAriaLabel=function(Y,S){return S?_.Ma(Y):""};
_.z.computeErrorMessage=function(Y,S,P,u){!Y&&S?Y=P||this.strings.REQUIRED_LABEL:(Y=_.Ma(u),Y=_.C8(Y,"&")?"document"in _.Pa?kJL(Y):MKJ(Y):Y);return Y};
_.z.computeType=function(Y){return Y==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.z.onTextValueChanged=function(Y){this.value=Y.detail.value;var S;(S=this.onValueChanged)==null||S.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.z.handleUpdateTextInputFormFieldRendererCommand=function(Y){(Y=_.g(Y,Vmu))&&this.data&&this.data.id===Y.id&&(Y.invalid!==void 0&&(this.invalid=Y.invalid),Y.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",Y.invalidValueErrorMessage))};
_.z.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("value-changed",this.value))};
_.z.updateInvalidFromBinding=function(Y){this.invalid=Y.detail.value};
_.y6.Object.defineProperties(GL.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var Y;return!((Y=this.data)==null||!Y.isMultiline)}}});
GL.prototype.valueChangedForBinding=GL.prototype.valueChangedForBinding;GL.prototype.valueChanged=GL.prototype.valueChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],GL.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],GL.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],GL.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],GL.prototype,"value",void 0);_.Q([_.X(),_.k("design:type",String)],GL.prototype,"pattern",void 0);_.Q([_.X(),_.k("design:type",String)],GL.prototype,"errorMessage",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],GL.prototype,"componentStyle",void 0);_.Q([_.X(),_.k("design:type",Object)],GL.prototype,"hideCharCounter",void 0);
_.Q([_.X(),_.k("design:type",Object)],GL.prototype,"hideLabel",void 0);_.Q([_.X(),_.k("design:type",Object)],GL.prototype,"noLabelFloat",void 0);_.Q([_.X(),_.k("design:type",Function)],GL.prototype,"onValueChanged",void 0);_.Q([_.X(),_.k("design:type",Boolean)],GL.prototype,"isMultilineOverride",void 0);_.Q([_.X(),_.k("design:type",Object)],GL.prototype,"autoValidate",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],GL.prototype,"invalid",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],GL.prototype,"enableOverlayTheme",void 0);_.Q([_.X({value:{REQUIRED_LABEL:_.Td("REQUIRED_LABEL",void 0,"Required")}}),_.k("design:type",Object)],GL.prototype,"strings",void 0);_.Q([_.nc("#input"),_.k("design:type",Object)],GL.prototype,"input",void 0);_.Q([_.d("data","isMultilineOverride"),_.k("design:type",Object),_.k("design:paramtypes",[])],GL.prototype,"isMultiline",null);
_.Q([_.cZ("data.value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GL.prototype,"valueChanged",null);_.Q([_.zY("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GL.prototype,"valueChangedForBinding",null);GL=_.Q([_.r0({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],GL);
_.A(GL,"yt-text-input-form-field-renderer",function(){if(FKs===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;p7_===void 0&&(p7_=document.createElement("template"));var u=p7_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);FKs=Y}Y=FKs;return Y},{mode:2});var hP=function(){var Y=_.Z.apply(this,arguments)||this;Y.data=void 0;Y.selectionState="START_DATE";Y.isStartDateInvalid=!1;Y.isEndDateInvalid=!1;Y.autoapply=!1;Y.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return Y};
_.r(hP,_.Z);_.z=hP.prototype;_.z.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"}}}}};
_.z.focus=function(){this.startDateInput.focus()};
_.z.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Es(this.data.selection.start),end:Es(this.data.selection.end)})};
_.z.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.z.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.O6(this.selectionState)}};
_.z.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.z.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.z.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.z.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var Y=this.calendar.calendarConfig,S=Y.end;Y=Rba({start:Y.start,end:this.endDate||S},this.startDateInput.value||"");this.isStartDateInvalid=!Y.isValid;Y.isValid&&(Y=Y.value,this.selection=this.endDate?{start:Y,end:this.endDate}:Y,this.calendar.scrollToDate(Y));this.updateInvalidState()}};
_.z.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var Y=this.calendar.calendarConfig,S=Y.start;Y=Rba({start:this.startDate||S,end:Y.end},this.endDateInput.value||"");this.isEndDateInvalid=!Y.isValid;Y.isValid&&(Y=Y.value,this.selection={start:this.startDate,end:Y},this.calendar.scrollToDate(Y));this.updateInvalidState()}};
_.z.handleCalendarDateClicked=function(Y){var S=this.selection&&jvh(this.selection),P=this.selection&&Jof(this.selection);S&&!K6(Y,S)&&this.selectionState==="END_DATE"?(this.selection={start:S,end:Y},this.selectionState="START_DATE"):(P&&!K6(P,Y)?this.selection={start:Y,end:P}:this.selection=Y,this.selectionState="END_DATE")};
_.z.handleCalendarDateMouseDown=function(Y){this.selection&&!m39(this.selection)&&(this.dragPivot=Tt(Y,this.selection.start)?this.selection.end:Tt(Y,this.selection.end)?this.selection.start:Y)};
_.z.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.z.handleCalendarDateMouseEnter=function(Y){this.dragPivot&&(this.selection={start:function(S,P){return K6(S,P)?S:P}(this.dragPivot,Y),
end:function(S,P){return K6(S,P)?P:S}(this.dragPivot,Y)},this.dragPivot||(this.selectionState="START_DATE"))};
_.z.handleCalendarDateMouseLeave=function(){};
_.z.handleCalendarSubmitDateRange=function(){this.selection&&!m39(this.selection)&&_.nb(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.z.updateInvalidState=function(){var Y=function(S,P){P?S.setAttribute("invalid",""):S.removeAttribute("invalid")};
Y(this.startDateInput,this.isStartDateInvalid);Y(this.endDateInput,this.isEndDateInvalid)};
_.z.updateDateStrings=function(){this.selection&&(m39(this.selection)?zb1(this.selection):(zb1(this.selection.start),zb1(this.selection.end)))};
_.z.updateCalendarSelection=function(Y){this.calendar.updateSelection(Object.assign({},Y,{selectionState:this.selectionState}))};
_.z.updateIsStartDateInvalidFromBinding=function(Y){this.isStartDateInvalid=Y.detail.value};
_.z.updateIsEndDateInvalidFromBinding=function(Y){this.isEndDateInvalid=Y.detail.value};
_.z.updateStartDateStringFromBinding=function(){};
_.z.updateEndDateStringFromBinding=function(){};
_.y6.Object.defineProperties(hP.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Es(this.data.dateRangeStart),end:Es(this.data.dateRangeEnd),selection:{start:Es(this.data.selection.start),end:Es(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&jvh(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Jof(this.selection)}}});
hP.prototype.resetTextboxes=hP.prototype.resetTextboxes;hP.prototype.observeSelection=hP.prototype.observeSelection;hP.prototype.dataChanged=hP.prototype.dataChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],hP.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.nc("#calendar"),_.k("design:type",Object)],hP.prototype,"calendar",void 0);
_.Q([_.nc("#start-date"),_.k("design:type",Object)],hP.prototype,"startDateInput",void 0);_.Q([_.nc("#end-date"),_.k("design:type",Object)],hP.prototype,"endDateInput",void 0);_.Q([_.X(),_.k("design:type",Object)],hP.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],hP.prototype,"selection",void 0);_.Q([_.X(),_.k("design:type",String)],hP.prototype,"selectionState",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],hP.prototype,"calendarConfig",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],hP.prototype,"errorMessage",null);_.Q([_.d("selection"),_.k("design:type",Object),_.k("design:paramtypes",[])],hP.prototype,"startDate",null);_.Q([_.d("selection"),_.k("design:type",Object),_.k("design:paramtypes",[])],hP.prototype,"endDate",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hP.prototype,"dataChanged",null);
_.Q([_.zY("selection","selectionState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hP.prototype,"observeSelection",null);_.Q([_.zY("selectionState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hP.prototype,"resetTextboxes",null);hP=_.Q([_.t({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],hP);
_.A(hP,"ytd-date-period-picker-renderer",function(){if(ayt!==void 0)return ayt;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return ayt=Y},{mode:1});var vv=function(){var Y=_.Z.apply(this,arguments)||this;var S={};Y.actionMap=(S["ytd-date-period-picker-apply"]="handleDateRangeUpdated",S);return Y};
_.r(vv,_.Z);vv.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
vv.prototype.handleDateRangeUpdated=function(){};
_.Q([_.X(),_.k("design:type",Object)],vv.prototype,"data",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],vv.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],vv.prototype,"rendererstamperBehavior",void 0);vv=_.Q([_.t({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],vv);
_.A(vv,"ytd-report-history-section-header-renderer",function(){if(Iy6!==void 0)return Iy6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Iy6=Y},{mode:1});var sX6;var dWU;var ly_;var Dk=function(){return _.Z.apply(this,arguments)||this};
_.r(Dk,_.Z);_.y6.Object.defineProperties(Dk.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?0:(S=Y.icon)==null?0:S.iconType)?_.u2(this.data.icon.iconType):""}}});
_.Q([_.X(),_.k("design:type",Object)],Dk.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",String),_.k("design:paramtypes",[])],Dk.prototype,"icon",null);Dk=_.Q([_.t({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Dk);
_.A(Dk,"ytd-report-history-table-text-cell-renderer",function(){if(ly_!==void 0)return ly_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ly_=Y},{mode:1});var IO=function(){return _.Z.apply(this,arguments)||this};
_.r(IO,_.Z);IO.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],IO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],IO.prototype,"data",void 0);IO=_.Q([_.t({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],IO);
_.A(IO,"ytd-report-history-table-reason-cell-renderer",function(){if(dWU!==void 0)return dWU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return dWU=Y},{mode:1});var aO=function(){return _.Z.apply(this,arguments)||this};
_.r(aO,_.Z);aO.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],aO.prototype,"rendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],aO.prototype,"data",void 0);aO=_.Q([_.t({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],aO);
_.A(aO,"ytd-report-history-table-cell-renderer",function(){if(sX6!==void 0)return sX6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
return sX6=Y},{mode:1});var X7h;var L0=function(){var Y=_.Z.apply(this,arguments)||this;Y.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return Y};
_.r(L0,_.Z);L0.prototype.onDataChanged=function(){var Y;if((Y=this.data)==null?0:Y.style)this.componentStyle=this.getStyleName(this.data.style)};
L0.prototype.getCellForColumn=function(Y){return this.cells.find(function(S){var P;return((P=_.g(S==null?void 0:S.cell,sid)||_.g(S==null?void 0:S.cell,FJ6))==null?void 0:P.columnId)===Y.type})};
L0.prototype.getClassForColumn=function(Y){switch(Y){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
L0.prototype.getStyleName=function(Y){switch(Y){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.y6.Object.defineProperties(L0.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.cells)||[]).map(function(S){return _.g(S,pyu)})}}});
L0.prototype.onDataChanged=L0.prototype.onDataChanged;_.Q([_.X(),_.k("design:type",Object)],L0.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Array)],L0.prototype,"columnRenderData",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],L0.prototype,"componentStyle",void 0);_.Q([_.d("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],L0.prototype,"cells",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L0.prototype,"onDataChanged",null);L0=_.Q([_.t({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],L0);
_.A(L0,"ytd-report-history-table-row-renderer",function(){if(X7h!==void 0)return X7h;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return X7h=Y},{mode:1});var ZLd;var iLf;var x3J={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},bWa={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var w4=function(){return _.Z.apply(this,arguments)||this};
_.r(w4,_.Z);w4.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"}}}}}};
w4.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.y6.Object.defineProperties(w4.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.columns)?gkh(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Ek8(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var Y=this.tableSpec,S=x3J;S=S===void 0?bWa:S;S=frh(Y.columnDimensions,Y.columnsToShow||[],S);Y=0;S=_.n(S);for(var P=S.next();!P.done;P=S.next())P=P.value,Y+=P.minWidth+P.paddingLeft+P.paddingRight;return Y}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.Q([_.p(_.I3),_.k("design:type",Object)],w4.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],w4.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],w4.prototype,"tableSpec",null);_.Q([_.d("tableSpec"),_.k("design:type",Array),_.k("design:paramtypes",[])],w4.prototype,"columnRenderData",null);
_.Q([_.d("tableSpec"),_.k("design:type",Number),_.k("design:paramtypes",[])],w4.prototype,"totalMinWidth",null);_.Q([_.d("totalMinWidth"),_.k("design:type",String),_.k("design:paramtypes",[])],w4.prototype,"tableWidthStyle",null);w4=_.Q([_.t({is:"ytd-table-renderer",disableElementRegistration:!0})],w4);
_.A(w4,"ytd-table-renderer",function(){if(iLf!==void 0)return iLf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return iLf=Y},{mode:1});var p0=function(){return _.Z.apply(this,arguments)||this};
_.r(p0,_.Z);p0.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],p0.prototype,"data",void 0);p0=_.Q([_.t({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],p0);
_.A(p0,"ytd-report-reason-history-modal-renderer",function(){if(ZLd!==void 0)return ZLd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ZLd=Y},{mode:1});var o33;var tW6;var A1s;var F6=function(){return _.Z.apply(this,arguments)||this};
_.r(F6,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],F6.prototype,"data",void 0);F6=_.Q([_.t({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],F6);
_.A(F6,"ytd-profile-column-stats-entry-renderer",function(){if(A1s!==void 0)return A1s;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return A1s=Y},{mode:1});var UWi;var sK=function(){return _.Z.apply(this,arguments)||this};
_.r(sK,_.Z);sK.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],sK.prototype,"data",void 0);sK=_.Q([_.t({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],sK);
_.A(sK,"ytd-profile-column-stats-renderer",function(){if(UWi!==void 0)return UWi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return UWi=Y},{mode:1});var QXh;var d4=function(){return _.Z.apply(this,arguments)||this};
_.r(d4,_.Z);_.y6.Object.defineProperties(d4.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.useThumbnailSize)return 80;var S,P;Y=(S=this.data)==null?void 0:(P=S.thumbnail)==null?void 0:P.thumbnails;var u;return Y&&((u=Y[0])==null?void 0:u.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.useThumbnailSize)return 80;var S,P;Y=(S=this.data)==null?void 0:(P=S.thumbnail)==null?void 0:P.thumbnails;var u;return Y&&((u=Y[0])==null?void 0:u.height)||80}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],d4.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],d4.prototype,"componentStyle",void 0);_.Q([_.d("data.useThumbnailSize"),_.k("design:type",Object),_.k("design:paramtypes",[])],d4.prototype,"thumbnailWidth",null);
_.Q([_.d("data.useThumbnailSize"),_.k("design:type",Object),_.k("design:paramtypes",[])],d4.prototype,"thumbnailHeight",null);d4=_.Q([_.t({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],d4);
_.A(d4,"ytd-profile-column-user-info-renderer",function(){if(QXh!==void 0)return QXh;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return QXh=Y},{mode:1});var lH=function(){return _.Z.apply(this,arguments)||this};
_.r(lH,_.Z);lH.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],lH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],lH.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],lH.prototype,"componentStyle",void 0);lH=_.Q([_.t({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],lH);
_.A(lH,"ytd-profile-column-renderer",function(){if(tW6!==void 0)return tW6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return tW6=Y},{mode:1});var X6=function(){var Y=_.Z.apply(this,arguments)||this;Y.componentStyle="NON_CENTERED_PROFILE";return Y};
_.r(X6,_.Z);X6.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
X6.prototype.getIcon=function(Y){return Y?"settings:"+Y.toLowerCase():null};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],X6.prototype,"data",void 0);X6=_.Q([_.t({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],X6);
_.A(X6,"ytd-page-introduction-renderer",function(){if(o33!==void 0)return o33;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return o33=Y},{mode:1});var ki6;var Zk=function(){return _.Z.apply(this,arguments)||this};
_.r(Zk,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Zk.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Zk.prototype,"data",void 0);Zk=_.Q([_.t({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Zk);
_.A(Zk,"ytd-report-description-renderer",function(){if(ki6!==void 0)return ki6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ki6=Y},{mode:1});var MW6;var y1i;var iH=function(){return _.Z.apply(this,arguments)||this};
_.r(iH,_.Z);iH.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],iH.prototype,"data",void 0);iH=_.Q([_.t({is:"ytd-video-report-renderer",disableElementRegistration:!0})],iH);
_.A(iH,"ytd-video-report-renderer",function(){if(y1i!==void 0)return y1i;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return y1i=Y},{mode:1});var NO_;_.$s("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.$s("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var oO=function(){return _.Z.apply(this,arguments)||this};
_.r(oO,_.Z);oO.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]]"}}}}}};
oO.prototype.computeMessageStyle=function(Y){return Y};
oO.prototype.computeButtonOverride=function(Y){var S;if((Y==null?0:(S=Y.style)==null?0:S.value)&&Y.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],oO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],oO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],oO.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],oO.prototype,"shelf",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],oO.prototype,"panel",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.k("design:type",Boolean)],oO.prototype,"componentStyle",void 0);_.Q([_.X({computed:"computeButtonOverride(data)"}),_.k("design:type",Object)],oO.prototype,"buttonOverride",void 0);oO=_.Q([_.t({is:"ytd-message-renderer",disableElementRegistration:!0})],oO);
_.A(oO,"ytd-message-renderer",function(){if(NO_!==void 0)return NO_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return NO_=Y},{mode:1});var tP=function(){return _.Z.apply(this,arguments)||this};
_.r(tP,_.Z);tP.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"}}}};
tP.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
tP.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.y6.Object.defineProperties(tP.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!!(((Y=this.data)==null?0:Y.header)&&((S=this.data)==null?0:S.table))}}});
tP.prototype.onRequestError=tP.prototype.onRequestError;_.Q([_.p(_.I3),_.k("design:type",Object)],tP.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],tP.prototype,"data",void 0);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],tP.prototype,"isUnifiedReportHistory",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tP.prototype,"onRequestError",null);tP=_.Q([_.t({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],tP);
_.A(tP,"ytd-report-history-section-renderer",function(){if(MW6!==void 0)return MW6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return MW6=Y},{mode:1});var HL6;var AP=function(){var Y=_.Z.apply(this,arguments)||this;Y.answerExpanded=!1;return Y};
_.r(AP,_.Z);AP.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],AP.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],AP.prototype,"answerExpanded",void 0);AP=_.Q([_.t({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],AP);
_.A(AP,"ytd-handles-claiming-faq-renderer",function(){if(HL6!==void 0)return HL6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return HL6=Y},{mode:1});var VWf;var UK=function(){return _.Z.apply(this,arguments)||this};
_.r(UK,_.Z);_.Q([_.X(),_.k("design:type",Object)],UK.prototype,"data",void 0);UK=_.Q([_.t({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],UK);
_.A(UK,"ytd-handles-claiming-faq-section-renderer",function(){if(VWf!==void 0)return VWf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return VWf=Y},{mode:1});var e1s;var Qv=function(){var Y=_.Z.apply(this,arguments)||this;Y.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";Y.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";Y.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";Y.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";Y.leftSquiggly=Y.leftSquigglyLight;Y.rightSquiggly=Y.rightSquigglyLight;
Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};Y.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return Y};
_.r(Qv,_.Z);_.z=Qv.prototype;_.z.updateLeftSquigglyStyle=function(){_.PZ(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.z.updateRightSquigglyStyle=function(){_.PZ(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.z.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(Y)};
_.z.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.set("isDarkTheme",Y),Y?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Qv.prototype.updateRightSquigglyStyle=Qv.prototype.updateRightSquigglyStyle;Qv.prototype.updateLeftSquigglyStyle=Qv.prototype.updateLeftSquigglyStyle;_.Q([_.X(),_.k("design:type",Object)],Qv.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Qv.prototype,"isDarkTheme",void 0);_.Q([_.X(),_.k("design:type",String)],Qv.prototype,"leftSquiggly",void 0);_.Q([_.X(),_.k("design:type",String)],Qv.prototype,"rightSquiggly",void 0);
_.Q([_.zY("leftSquiggly"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qv.prototype,"updateLeftSquigglyStyle",null);_.Q([_.zY("rightSquiggly"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qv.prototype,"updateRightSquigglyStyle",null);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Qv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Qv.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Qv.prototype,"actionButtonOverride",void 0);Qv=_.Q([_.t({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Qv);
_.A(Qv,"ytd-handles-claiming-header-renderer",function(){if(e1s!==void 0)return e1s;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return e1s=Y},{mode:1});var OLu;var kh=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};Y.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";Y.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";Y.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";Y.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
Y.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";Y.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";Y.image0SquigglyBackground=Y.image0LightSquigglyBackground;Y.image1SquigglyBackground=Y.image1LightSquigglyBackground;Y.image3SquigglyBackground=Y.image3LightSquigglyBackground;return Y};
_.r(kh,_.Z);_.z=kh.prototype;_.z.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.z.onDataChanged=function(){this.updateTitleAndImages()};
_.z.onThemeChanged=function(){this.updateTitleAndImages()};
_.z.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.isDarkTheme=Y)};
_.z.updateImage0SquigglyBackground=function(){_.PZ(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.z.updateImage1SquigglyBackground=function(){_.PZ(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.z.updateImage3SquigglyBackground=function(){_.PZ(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.z.updateTitleAndImages=function(){var Y,S;((Y=this.data)==null?void 0:(S=Y.titleImages)==null?void 0:S.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))};
kh.prototype.updateImage3SquigglyBackground=kh.prototype.updateImage3SquigglyBackground;kh.prototype.updateImage1SquigglyBackground=kh.prototype.updateImage1SquigglyBackground;kh.prototype.updateImage0SquigglyBackground=kh.prototype.updateImage0SquigglyBackground;kh.prototype.onThemeChanged=kh.prototype.onThemeChanged;kh.prototype.onDataChanged=kh.prototype.onDataChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],kh.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],kh.prototype,"isDarkTheme",void 0);_.Q([_.X(),_.k("design:type",Object)],kh.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],kh.prototype,"title0",void 0);_.Q([_.X(),_.k("design:type",Object)],kh.prototype,"title1",void 0);_.Q([_.X(),_.k("design:type",Object)],kh.prototype,"title2",void 0);_.Q([_.X(),_.k("design:type",Object)],kh.prototype,"title3",void 0);
_.Q([_.X(),_.k("design:type",Object)],kh.prototype,"title4",void 0);_.Q([_.X(),_.k("design:type",Object)],kh.prototype,"image0",void 0);_.Q([_.X(),_.k("design:type",Object)],kh.prototype,"image1",void 0);_.Q([_.X(),_.k("design:type",Object)],kh.prototype,"image2",void 0);_.Q([_.X(),_.k("design:type",Object)],kh.prototype,"image3",void 0);_.Q([_.X(),_.k("design:type",Object)],kh.prototype,"image4",void 0);_.Q([_.X(),_.k("design:type",String)],kh.prototype,"image0SquigglyBackground",void 0);
_.Q([_.X(),_.k("design:type",String)],kh.prototype,"image1SquigglyBackground",void 0);_.Q([_.X(),_.k("design:type",String)],kh.prototype,"image3SquigglyBackground",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kh.prototype,"onDataChanged",null);_.Q([_.zY("isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kh.prototype,"onThemeChanged",null);
_.Q([_.zY("image0SquigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kh.prototype,"updateImage0SquigglyBackground",null);_.Q([_.zY("image1SquigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kh.prototype,"updateImage1SquigglyBackground",null);
_.Q([_.zY("image3SquigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kh.prototype,"updateImage3SquigglyBackground",null);kh=_.Q([_.t({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],kh);
_.A(kh,"ytd-handles-claiming-title-images-section-renderer",function(){if(OLu!==void 0)return OLu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return OLu=Y},{mode:1});var YZs;var MM=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(MM,_.Z);MM.prototype.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(Y)};
MM.prototype.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&this.set("isDarkTheme",Y)};
MM.prototype.onCopyButtonClick=function(){var Y=this,S,P,u;return _.B(function(W){return(S=Y.data)!=null&&S.primaryChannelUrl?_.q(W,navigator.clipboard.writeText(((P=Y.data)==null?0:P.encodedChannelUrl)?Y.data.encodedChannelUrl:"https://"+_.Ma((u=Y.data)==null?void 0:u.primaryChannelUrl)),0):W.jumpTo(0)})};
_.Q([_.X(),_.k("design:type",Object)],MM.prototype,"data",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],MM.prototype,"ytComponentBehavior",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],MM.prototype,"isDarkTheme",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],MM.prototype,"ytActionHandlerBehavior",void 0);MM=_.Q([_.t({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],MM);
_.A(MM,"ytd-handles-claiming-update-social-renderer",function(){if(YZs!==void 0)return YZs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return YZs=Y},{mode:1});var SZ6;var yv=function(){var Y=_.Z.apply(this,arguments)||this;Y.JSC$13767_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";Y.JSC$13767_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};Y.squigglyBackground=Y.JSC$13767_squigglyBackgroundLight;return Y};
_.r(yv,_.Z);yv.prototype.updateSquigglyBackgroundStyle=function(){_.PZ(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
yv.prototype.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",Y);this.squigglyBackground=Y?this.JSC$13767_squigglyBackgroundDark:this.JSC$13767_squigglyBackgroundLight};
yv.prototype.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.set("isDarkTheme",Y),this.squigglyBackground=Y?this.JSC$13767_squigglyBackgroundDark:this.JSC$13767_squigglyBackgroundLight)};
yv.prototype.updateSquigglyBackgroundStyle=yv.prototype.updateSquigglyBackgroundStyle;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],yv.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],yv.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],yv.prototype,"isDarkTheme",void 0);_.Q([_.X(),_.k("design:type",String)],yv.prototype,"squigglyBackground",void 0);_.Q([_.zY("squigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yv.prototype,"updateSquigglyBackgroundStyle",null);yv=_.Q([_.t({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],yv);
_.A(yv,"ytd-handles-claiming-vanity-info-renderer",function(){if(SZ6!==void 0)return SZ6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return SZ6=Y},{mode:1});var Pqi;var NM=function(){var Y=_.Z.apply(this,arguments)||this;Y.JSC$13770_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";Y.JSC$13770_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";Y.squigglyBackground=Y.JSC$13770_squigglyBackgroundLight;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(NM,_.Z);_.z=NM.prototype;_.z.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(Y)};
_.z.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.set("isDarkTheme",Y),this.squigglyBackground=Y?this.JSC$13770_squigglyBackgroundDark:this.JSC$13770_squigglyBackgroundLight)};
_.z.updateSquigglyBackgroundStyle=function(){_.PZ(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.z.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.z.detached=function(){this.stop()};
_.z.stop=function(){this.playerElement.stop()};
_.z.setupVideoPlayer=function(){var Y=this,S,P;return _.B(function(u){S=Y.data.videoId;P="http://i1.ytimg.com/vi/"+S+"/maxresdefault.jpg";Y.playerElement.loadVideoWithPlayerVars({video_id:S,iurlhq:P});_.Yt(u)})};
NM.prototype.onDataChanged=NM.prototype.onDataChanged;NM.prototype.updateSquigglyBackgroundStyle=NM.prototype.updateSquigglyBackgroundStyle;_.Q([_.X({value:!1}),_.k("design:type",Boolean)],NM.prototype,"isDarkTheme",void 0);_.Q([_.X(),_.k("design:type",String)],NM.prototype,"squigglyBackground",void 0);_.Q([_.nc("#player"),_.k("design:type",Object)],NM.prototype,"playerElement",void 0);_.Q([_.X(),_.k("design:type",Object)],NM.prototype,"data",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],NM.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.zY("squigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NM.prototype,"updateSquigglyBackgroundStyle",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NM.prototype,"onDataChanged",null);
NM=_.Q([_.t({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],NM);
_.A(NM,"ytd-handles-claiming-video-item-renderer",function(){if(Pqi!==void 0)return Pqi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Pqi=Y},{mode:1});var uX3;var Vv=function(){var Y=_.JI.apply(this,arguments)||this;Y.dragging=!1;Y.dragMouseStart=0;Y.dragOffsetStart=0;Y.containerWidthDiff=0;Y.boundPrevClick=function(){Y.set("offset",Hv(Y,Y.offset-(Y.scrollDistance||320)))};
Y.boundNextClick=function(){Y.set("offset",Hv(Y,Y.offset+(Y.scrollDistance||320)))};
Y.boundScrollContainerMouseDown=function(S){Y.dragMouseStart=S.clientX;Y.dragOffsetStart=Y.offset;Y.dragging=!0};
Y.boundScrollContainerDrag=function(S){Y.dragging&&Y.set("offset",Hv(Y,Y.dragOffsetStart-(S.clientX-Y.dragMouseStart)))};
Y.boundMouseUp=function(){Y.onMouseUp()};
Y.boundWheelScroll=function(S){var P=0;Math.abs(S.deltaX)>=Math.abs(S.deltaY)?P=S.deltaX:S.shiftKey&&(P=S.deltaY);P!==0&&(Y.offset+=P,S.stopPropagation(),S.preventDefault())};
Y.boundChipCloudChipScrollIntoView=function(S){(S=S.detail)&&Y.scrollChipIntoView(S)};
return Y};
_.r(Vv,_.JI);Vv.prototype.attached=function(){var Y=_.I(this.hostElement).querySelector("#scroll-container");Y.addEventListener("wheel",this.boundWheelScroll);Y.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);Y.style.touchAction="pan-y";Y.addEventListener("pointerdown",this.boundScrollContainerMouseDown);Y.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Vv.prototype.detached=function(){var Y=_.I(this.hostElement).querySelector("#scroll-container");Y.removeEventListener("wheel",this.boundWheelScroll);Y.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);Y.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);Y.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Vv.prototype.reset=function(){this.set("offset",0);_.ky(this,this.setContainerWidthDiff);e1(this)};
var Hv=function(Y,S){return Math.min(Math.max(S,0),Y.containerWidthDiff)};
Vv.prototype.onMouseUp=function(){this.dragging=!1};
Vv.prototype.transformContainer=function(){this.offset=Hv(this,this.offset);var Y=_.X3("HTML_DIR")==="rtl"?"":"-";_.I(this.hostElement).querySelector("#chips").style.transform="translateX("+Y+this.offset+"px)";e1(this)};
var e1=function(Y){_.ky(Y,Y.setButtonsState)};
Vv.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Hv(this,this.offset));this.atStart=this.offset<=0};
Vv.prototype.setContainerWidthDiff=function(){var Y=_.I(this.hostElement).querySelector("#scroll-container"),S=_.I(this.hostElement).querySelector("#chips");Y&&S&&(this.containerWidthDiff=S.clientWidth-Y.clientWidth)};
Vv.prototype.scrollChipIntoView=function(Y){var S=_.I(this.hostElement).querySelector("#scroll-container");if(S){var P=this.atStart?0:106,u=this.atEnd?0:106;Y.offsetLeft<this.offset+P?this.offset=Hv(this,Y.offsetLeft-P):Y.offsetLeft+Y.clientWidth>this.offset+S.clientWidth-u&&(this.offset=Hv(this,Y.offsetLeft+Y.clientWidth+u-S.clientWidth))}};
Vv.prototype.transformContainer=Vv.prototype.transformContainer;_.Q([_.X({value:0}),_.k("design:type",Number)],Vv.prototype,"offset",void 0);_.Q([_.X({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],Vv.prototype,"atStart",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Vv.prototype,"atEnd",void 0);_.Q([_.X(),_.k("design:type",Number)],Vv.prototype,"scrollDistance",void 0);
_.Q([_.zY("offset"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vv.prototype,"transformContainer",null);Vv=_.Q([_.BZ()],Vv);var Wvd;var zss;var jVs=_.AI(function(Y){var S=Y.data;Y=_.n(_.qb(!1,void 0,"icHmSe"));var P=Y.next().value,u=Y.next().value;Y={};Y=_.Si("ytChipShapeChip",function(){a:switch(S==null?void 0:S().state){case 0:var c="ytChipShapeActive";break a;case 1:c="ytChipShapeDisabled";break a;default:c="ytChipShapeInactive"}return c},function(){var c=S().type===1||S().type===2,C=S();
return c||C!=null&&C.startIcon?C==null||!C.startIcon||C!=null&&C.text?c?"ytChipShapeEndIconPadding":(C==null?0:C.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(Y.ytChipShapeFocused=function(){var c;
return P()&&((c=S())==null?void 0:c.state)!==1},Y));
var W=function(c){if((S==null?void 0:S().state)!==1){var C,x;(x=(C=S()).onTap)==null||x.call(C,c)}},m=_.mR(function(){var c=_.E().resolve(_.PQ(_.Tz));
if(c){u(c.isKeyBoardInUse());var C,x;(x=(C=S()).onFocusIn)==null||x.call(C)}return!1}),J=_.mR(function(){u(!1);
return!1});
return _.R("chip-shape",{class:"ytChipShapeHost","on:focusin":m,"on:focusout":J},_.R(m0U,{shouldWrapInButton:function(){return S().type!==2},
selected:function(){return S().state===0},
onClick:W,isDropdown:function(){return S().type===1},
accessibilityLabel:function(){return S().accessibilityLabel}},_.R("div",{class:Y},_.R(_.gw,{cond:function(){return S().startIcon},
then:function(){return _.R(_.BX,{icon:function(){var c;return(c=S())==null?void 0:c.startIcon},
className:function(){return S().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return S().text},_.R(nHf,{shape:S,
onClick:W}))))},"mb");
jVs.idomCompat=!0;var m0U=_.AI(function(Y){var S=_.mR(function(P){Y.onClick(P);return!1});
return _.R(_.gw,{cond:Y.shouldWrapInButton,then:function(){return _.R("button",{class:"ytChipShapeButtonReset","on:click":S,role:function(){return Y.isDropdown()?"combobox":"tab"},
"aria-label":Y.accessibilityLabel,"aria-selected":Y.selected},Y.children)},
else:function(){return Y.children}})},"nb"),nHf=_.AI(function(Y){var S=Y.shape;
var P=Y.onClick;var u=_.mR(function(W){P(W);return!1});
return _.R(_.hA,null,_.R(_.rw,{when:function(){return S().type===1}},function(){return _.R(_.BX,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.R(_.rw,{when:function(){return S().type===2}},function(){return _.R("button",{class:"ytChipShapeButtonReset",
"on:click":u},_.R(_.BX,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.R(_.rw,{when:function(){return S().type===0}},function(){return _.R(_.SX,null)}))},"ob");_.AL(jVs,"chip-shape",{props:{data:_.wm}});var OK=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableDeselectEvent=!1;Y.modern=_.f("web_modern_typography");Y.useChipShape=_.f("web_chip_shape_defrag");Y.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return Y};
_.r(OK,_.Z);_.z=OK.prototype;_.z.beforeRegister=function(){_.f("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.z.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.z.onSelectChipCommand=function(Y){if(!this.selected&&this.data&&(Y=_.g(Y,tmU),Y.targetId&&Y.targetId===this.data.targetId))this.onTap()};
_.z.onFilterChipTransformCommand=function(Y){if(!this.selected&&this.data){var S;(Y=(S=_.g(Y,kef))==null?void 0:S.chipUniqueId)&&Y===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.z.dataChanged=function(){var Y=this;_.ky(this,function(){Y.data&&Y.data.isSelected&&!Y.selected&&(Y.scrollChipIntoView(),Y.onTap())})};
_.z.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.z.computeChipStyle=function(Y){return Y!=null?Y:"STYLE_DEFAULT"};
_.z.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.nb(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.nb(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.z.onFocus=function(){var Y=_.E().resolve(_.PQ(_.Tz));Y&&Y.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.z.scrollChipIntoView=function(){_.ms(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.y6.Object.defineProperties(OK.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return D3f({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
OK.prototype.onFocus=OK.prototype.onFocus;OK.prototype.onTap=OK.prototype.onTap;OK.prototype.selectionChanged=OK.prototype.selectionChanged;OK.prototype.dataChanged=OK.prototype.dataChanged;_.Q([_.p(_.KD),_.k("design:type",Object)],OK.prototype,"ironButtonState",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],OK.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],OK.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.x1),_.k("design:type",Object)],OK.prototype,"ironA11yKeysBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],OK.prototype,"disableDeselectEvent",void 0);_.Q([_.X(),_.k("design:type",Object)],OK.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data.icon"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],OK.prototype,"hasIcon",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.uniqueId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],OK.prototype,"isGnomeChip",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],OK.prototype,"modern",void 0);_.Q([_.X({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.k("design:type",String)],OK.prototype,"chipStyle",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],OK.prototype,"selected",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],OK.prototype,"useChipShape",void 0);_.Q([_.d("data","selected"),_.k("design:type",Object),_.k("design:paramtypes",[])],OK.prototype,"chipShapeData",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OK.prototype,"dataChanged",null);_.Q([_.zY("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OK.prototype,"selectionChanged",null);
_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OK.prototype,"onTap",null);_.Q([_.WZ("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OK.prototype,"onFocus",null);OK=_.Q([_.r0({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],OK);
_.A(OK,"yt-chip-cloud-chip-renderer",function(){if(zss===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Wvd===void 0&&(Wvd=document.createElement("template"));var u=Wvd;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);zss=Y}Y=zss;return Y},{mode:2});var Yb=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDarkTheme=!1;Y.notSticky=!1;Y.transparentBackground=!1;Y.shouldHide=!1;Y.disableSticky=!1;Y.fluidWidth=!1;Y.isClipList=!1;Y.defaultChipIndex=0;Y.isPlaylist=!1;Y.playlistVotingAnimationEnabled=_.f("web_enable_voting_animation");Y.toolbarHeight=0;Y.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return Y};
_.r(Yb,_.Z);_.z=Yb.prototype;
_.z.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}}}}}};
_.z.attached=function(){var Y=this;document.addEventListener("scroll",_.up(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var S;this.toolbarHeight=((S=document.querySelector("ytd-masthead"))==null?void 0:S.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(P){Y.handleIntersect(P)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){Y.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.z.detached=function(){var Y;(Y=this.intersectionObserver)==null||Y.disconnect();var S;(S=this.resizeObserver)==null||S.disconnect();document.removeEventListener("scroll",_.up(this,this.updateChipBarWidthAndTop))};
_.z.dataChanged=function(){var Y=this,S,P,u;((u=_.g((S=this.data)==null?void 0:(P=S.contents)==null?void 0:P[0],jSt))==null?void 0:u.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var W=this.findSelectedChipIndex();this.selectedIndex!==W&&(this.selectedIndex=-1);_.ky(this,function(){Y.selectedIndex=W;Y.updating=!1;Y.ytScrollableChipCloudBehavior.reset()})};
_.z.findSelectedChipIndex=function(){var Y;if((Y=this.data)==null||!Y.contents)return 0;Y=this.data.contents;for(var S=0;S<Y.length;S++){var P=void 0;if((P=_.g(Y[S],jSt))==null?0:P.isSelected)return S}return 0};
_.z.computeStyle=function(Y){return Y};
_.z.handleChipCloudChipSelectAction=function(Y){Y=this.JSC$13789_chipsSelector.indexOf(Y);Y>-1&&this.JSC$13789_chipsSelector.selectIndex(Y)};
_.z.handleChipCloudChipDeselectAction=function(){if(_.f("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var Y,S,P,u=(P=_.g((Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:S[0],jSt))==null?void 0:P.navigationEndpoint;u&&_.nb(this.hostElement,"yt-browse-section-list-reload-endpoint",[u]);this.JSC$13789_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.z.onGuideIsExpandedChanged=function(){var Y=this.ytScrollableChipCloudBehavior;_.ky(Y,Y.setContainerWidthDiff);e1(this.ytScrollableChipCloudBehavior)};
_.z.onResize=function(){var Y=this.ytScrollableChipCloudBehavior;_.ky(Y,Y.setContainerWidthDiff);e1(this.ytScrollableChipCloudBehavior)};
_.z.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.z.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.z.handleIntersect=function(Y){_.f("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||Y[0].intersectionRatio===1)};
_.z.updateDimensions=function(){var Y=this.ytRendererBehavior.parentComponent;if(Y){var S,P=(S=Y.headerElement)!=null?S:Y;_.PZ(this.hostElement,{"--ytd-rich-grid-chips-bar-width":P.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.z.updateSelectedIndexFromBinding=function(Y){this.selectedIndex=Y.detail.value};
_.z.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var Y;(Y=this.sortFilterHeaderRendererElement)==null||Y.setAttribute("is-playlist-page-with-filters","")}};
_.z.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.WT({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.y6.Object.defineProperties(Yb.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:S.find(function(u){return _.g(u,Cr3)});
return{sortFilterHeaderRenderer:_.g(P,Cr3)}}}});
Yb.prototype.dispatchChipBarIsSticky=Yb.prototype.dispatchChipBarIsSticky;Yb.prototype.isPlaylistPageChanged=Yb.prototype.isPlaylistPageChanged;Yb.prototype.updateChipBarWidthAndTop=Yb.prototype.updateChipBarWidthAndTop;Yb.prototype.onResize=Yb.prototype.onResize;Yb.prototype.onGuideIsExpandedChanged=Yb.prototype.onGuideIsExpandedChanged;Yb.prototype.dataChanged=Yb.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Yb.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.G8),_.k("design:type",Object)],Yb.prototype,"ironResizableBehavior",void 0);_.Q([_.p(),_.k("design:type",Vv)],Yb.prototype,"ytScrollableChipCloudBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Yb.prototype,"ytdReduxBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],Yb.prototype,"data",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],Yb.prototype,"selectedIndex",void 0);_.Q([_.X({value:320}),_.k("design:type",Number)],Yb.prototype,"scrollDistance",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"isDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"notSticky",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"transparentBackground",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.k("design:type",String)],Yb.prototype,"componentStyle",void 0);_.Q([_.X({selector:_.zSY}),_.k("design:type",Boolean)],Yb.prototype,"guideIsExpanded",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"shouldHide",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"disableSticky",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"fluidWidth",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"isClipList",void 0);_.Q([_.X(),_.k("design:type",Object)],Yb.prototype,"defaultChipIndex",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"isPlaylist",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Yb.prototype,"playlistVotingAnimationEnabled",void 0);_.Q([_.nc("#chips"),_.k("design:type",Object)],Yb.prototype,"JSC$13789_chipsSelector",void 0);_.Q([_.nc("ytd-sort-filter-header-renderer"),_.k("design:type",HTMLElement)],Yb.prototype,"sortFilterHeaderRendererElement",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Yb.prototype,"updating",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yb.prototype,"dataChanged",null);_.Q([_.zY("guideIsExpanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yb.prototype,"onGuideIsExpandedChanged",null);_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yb.prototype,"onResize",null);
_.Q([_.cZ("isChannelPageGrid","disableSticky","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yb.prototype,"updateChipBarWidthAndTop",null);_.Q([_.d("componentStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Yb.prototype,"isChannelPageGrid",null);_.Q([_.d("componentStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Yb.prototype,"isHashtagLandingPage",null);
_.Q([_.zY("isPlaylistPage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yb.prototype,"isPlaylistPageChanged",null);_.Q([_.d("componentStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Yb.prototype,"isPlaylistPage",null);_.Q([_.d("componentStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Yb.prototype,"isDisableDeselectEvent",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yb.prototype,"sortFilterHeaderRendererData",null);_.Q([_.X({reflectToAttribute:!0,selector:_.COX}),_.k("design:type",String)],Yb.prototype,"frostedGlassMode",void 0);_.Q([_.zY("notSticky"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yb.prototype,"dispatchChipBarIsSticky",null);Yb=_.Q([_.t({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Yb);
_.A(Yb,"ytd-feed-filter-chip-bar-renderer",function(){if(uX3!==void 0)return uX3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return uX3=Y},{mode:1});var Jes;var BMt=_.AI(function(Y){var S=Y.data;var P=Y.buttonIndex;var u=Y.selectedIndex;var W=Y.onSelect;var m=function(){return P()===u()},J=function(){var C,x;
return(x=(C=S().text)==null?void 0:C.content)!=null?x:""};
_.mR(function(){});
Y=_.FJ();var c=_.mR(function(){W(S().onSubmitCommand);return!1});
return _.R("yt-toggleable-image-button-view-model",{class:function(){var C={};C=(C["toggleable-image-button-view-model-wiz"]=!0,C[""]=!0,C["toggleable-image-button-view-model-wiz__semi-transparent"]=u()!==-1&&!m(),C);return _.uN(C)},
tabindex:0,"aria-label":J,"aria-pressed":m,role:"button","on:keydown":Y,"on:click":c},_.R(_.gw,{cond:function(){return S().logo},
then:function(C){return _.R(_.ZZ,{data:C,className:function(){var x={};x=(x["toggleable-image-button-view-model-wiz__image"]=!0,x["toggleable-image-button-view-model-wiz__circular-radius"]=!(!S().backgroundColor||!S().backgroundColorDarkMode),x["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(m()&&S().backgroundColor&&S().backgroundColorDarkMode),x);return _.uN(x)},
alt:J,useWidth:!1,style:function(){if(m()&&S().backgroundColor&&S().backgroundColorDarkMode){var x=vq(Number(S().backgroundColorDarkMode),"1");var b=vq(Number(S().backgroundColor),"1");x="background: linear-gradient(180deg,"+x+","+b+") border-box;"}else x="";return x}})}}),_.R(_.RF,{model:{borderRadius:"16px"}}),_.R("p",{class:function(){var C={};
C=(C["toggleable-image-button-view-model-wiz__label"]=!0,C["toggleable-image-button-view-model-wiz__bold-text"]=m(),C);return _.uN(C)}},_.R(_.qw,{text:function(){return S().text}})))},"pb");
BMt.idomCompat=!0;var Cqi=_.AI(function(Y){var S=Y.data;Y=_.n(_.qb({index:-1,command:{}},void 0,"Zcqtsb"));var P=Y.next().value,u=Y.next().value;return _.R("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.R("div",{class:"nudge-form-view-model-wiz__form-options"},_.R(_.rv,{data:function(){return S().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(W,m){return _.R(BMt,{data:W.data,buttonIndex:m,selectedIndex:function(){return P().index},
onSelect:function(J){u({index:m(),command:J})}})}})),_.R(_.qw,{text:function(){return S().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.R("div",{class:"nudge-form-view-model-wiz__submit"},_.R(_.rv,{data:function(){return S().submitButton}},{buttonViewModel:function(W){return _.R(ce3,{data:W.data,
isDisabled:function(){return P().index===-1},
onClick:function(){_.ae(P().command)}})}})))},"qb");
Cqi.idomCompat=!0;var ce3=_.AI(function(Y){var S=_.fJ(function(){return Object.assign({},Y.data(),{state:Y.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.R(_.aq,{data:S,onClick:Y.onClick})},"rb");_.AL(Cqi,"yt-nudge-form-view-model",{props:{data:_.wm}});var Se=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundedContainer=!0;Y.buttonUpdate=_.f("web_modern_buttons");Y.isDarkMode=!1;Y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return Y};
_.r(Se,_.Z);_.z=Se.prototype;_.z.computeNudgeStyle=function(Y){return Y?"modernized-nudge":""};
_.z.handleDarkModeToggledAction=function(Y){this.isDarkMode=Y};
_.z.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.z.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"}}}};
_.z.computeIsHorizontalButtons=function(Y){return Y?!!Y.applyModernizedStyle&&!!Y.enableHorizontalButtons&&!!Y.secondaryButton:!1};
_.y6.Object.defineProperties(Se.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(S=(Y=this.data)==null?void 0:Y.backgroundStyle)!=null?S:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(S=(Y=this.data)==null?void 0:Y.contentsLocation)!=null?S:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null?0:Y.lightIconImage)}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],Se.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Se.prototype,"actionHandlerBehavior",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("isHideEnclosingAction"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Se.prototype,"isHidden",null);_.Q([_.X(),_.k("design:type",Object)],Se.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Se.prototype,"roundedContainer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Se.prototype,"buttonUpdate",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.k("design:type",String)],Se.prototype,"nudgeStyle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data.trimStyle"),_.k("design:type",String),_.k("design:paramtypes",[])],Se.prototype,"trimStyle",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.backgroundStyle"),_.k("design:type",String),_.k("design:paramtypes",[])],Se.prototype,"backgroundStyle",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.contentsLocation"),_.k("design:type",String),_.k("design:paramtypes",[])],Se.prototype,"contentsLocation",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.disableDropShadow"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Se.prototype,"noShadow",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.lightIconImage"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Se.prototype,"noIcon",null);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.k("design:type",Boolean)],Se.prototype,"isHorizontalButtons",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Object)],Se.prototype,"isDarkMode",void 0);Se=_.Q([_.t({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Se);
_.A(Se,"ytd-feed-nudge-renderer",function(){if(Jes!==void 0)return Jes;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Jes=Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var qZu;var Rsf;var P$=function(){var Y=_.Z.apply(this,arguments)||this;Y.collapsed=!1;Y.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return Y};
_.r(P$,_.Z);P$.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"}}}};
P$.prototype.handleRatingSelect=function(){var Y;((Y=this.data)==null?0:Y.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
P$.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],P$.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],P$.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.vf),_.k("design:type",Object)],P$.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],P$.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],P$.prototype,"collapsed",void 0);P$=_.Q([_.t({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],P$);
_.A(P$,"ytd-slimline-survey-renderer",function(){if(Rsf!==void 0)return Rsf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Rsf=Y},{mode:1});var x0s;var uS=function(){return _.Z.apply(this,arguments)||this};
_.r(uS,_.Z);uS.prototype.maybeGetBackgroundColor=function(Y){return this.isDarkMode?Y.section2Color:Y.section3Color};
uS.prototype.colorPaletteChanged=function(){var Y=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;Y&&(Y==null?0:Y.secondaryTitleColor)&&this.maybeGetBackgroundColor(Y)?(this.hostElement.style.backgroundColor=_.Gp(this.maybeGetBackgroundColor(Y)),this.hostElement.style.color=_.Gp(Y.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
uS.prototype.colorPaletteChanged=uS.prototype.colorPaletteChanged;_.Q([_.p(_.Gn),_.k("design:type",Object)],uS.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],uS.prototype,"data",void 0);_.Q([_.X({selector:function(Y){return Y.ui.darkModeIsEnabled}}),
_.k("design:type",Boolean)],uS.prototype,"isDarkMode",void 0);_.Q([_.X(),_.k("design:type",Object)],uS.prototype,"lightColorPalette",void 0);_.Q([_.X(),_.k("design:type",Object)],uS.prototype,"darkColorPalette",void 0);_.Q([_.zY("darkColorPalette","lightColorPalette","data","isDarkMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uS.prototype,"colorPaletteChanged",null);uS=_.Q([_.t({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],uS);
_.A(uS,"ytd-endorsement-header-renderer",function(){if(x0s!==void 0)return x0s;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return x0s=Y},{mode:1});_.AL(_.RT,"yt-decorated-avatar-view-model",{props:{data:_.wm,className:_.wm}});var W$=function(){var Y=_.Z.apply(this,arguments)||this;Y.fullHeight=_.f("web_rich_grid_media_full_height");Y.showChannelAvatar=!0;Y.hasPlaylistThumbnail=!1;Y.prepareThumbnailForPageTransition=function(){_.f("web_thumbnail_to_watch_transition")&&(Y.thumbnail.style.viewTransitionName="thumbnail-to-watch",Y.cleanupThumbnailAfterPageTransition(Y.thumbnail))};
return Y};
_.r(W$,_.Z);_.z=W$.prototype;
_.z.configureRendererStamper=function(){return{lazyLoadMenu:Yw,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"decorated-avatar",mapping:{decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.shouldLazyLoadMenu=function(){var Y=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.f("kevlar_modern_downloads_page")||!Y};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13815_inlinePreviewHoverListener=UP({mediaRenderer:this,lockupElement:this.JSC$13815_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.z.getVideoPreviewOpts=function(){var Y={},S;if((S=this.data)==null?0:S.multipleInlinePlaybackEndpoint)Y=YFS;this.isRadio&&(Y=OtL);return _.f("web_thumbnail_to_watch_transition")?Object.assign({},Y,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):Y};
_.z.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$13815_inlinePreviewHoverListener)==null||Sb(Y)};
_.z.getOwner=function(){var Y,S,P;return((Y=this.data)==null?void 0:(S=Y.channelThumbnailSupportedRenderers)==null?void 0:S.channelThumbnailWithLinkRenderer)||_.g((P=this.data)==null?void 0:P.showProviderChannelThumbnail,ush)};
_.z.updateLockupSize=function(){var Y;((Y=this.getOwner())==null?0:Y.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.z.getFeedbackEndpoint=function(Y){if(_.g(Y,_.La))return Y;var S,P;Y=(P=(S=_.g(Y,_.qT))==null?void 0:S.commands)!=null?P:[];S=_.n(Y);for(P=S.next();!P.done;P=S.next())if(P=this.getFeedbackEndpoint(P.value))return P;return null};
_.z.computeNavigationEndpoint=function(Y){return dKJ(Y==null?void 0:Y.navigationEndpoint)};
_.z.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var Y=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(Y)!==JSON.stringify(this.data)&&this.set("data",Y)}};
_.z.onDataChanged=function(){var Y=this,S=this.getOwner();if(S){this.set("data.owner",S);var P,u,W,m,J,c=((P=this.data)==null?void 0:(u=P.shortBylineText)==null?void 0:(W=u.runs)==null?void 0:(m=W[0])==null?void 0:m.text)||((J=S.name)==null?void 0:J.simpleText);this.set("data.owner.title",c)}var C,x,b,T,K,G;S=((C=this.data)==null?void 0:(x=C.thumbnailRenderer)==null?void 0:x.playlistVideoThumbnailRenderer)||((b=this.data)==null?void 0:(T=b.thumbnailRenderer)==null?void 0:T.playlistCustomThumbnailRenderer)||
((K=this.data)==null?void 0:(G=K.thumbnailRenderer)==null?void 0:G.showCustomThumbnailRenderer);var v;((v=this.data)==null?0:v.thumbnail)||!S||this.set("data.thumbnail",S.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){Y.updateLockupSize()});
var a;if(C=((a=this.data)==null?void 0:a.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(C);var w;((w=this.dismissActionToReplayEntity)==null?0:w.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.z.onHiddenChanged=function(){this.updateLockupSize()};
_.z.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.nb(this.hostElement,"yt-terminate-video-preview-action");else{var Y;(Y=this.videoTitleLink)==null||Y.focus()}};
_.z.metadataColorChanged=function(){var Y;if(this.metadataColor&&((Y=this.videoTitle)==null?0:Y.style))this.videoTitle.style.color=_.Gp(this.metadataColor);else{var S,P;!this.metadataColor&&((S=this.videoTitle)==null?0:(P=S.style)==null?0:P.color)&&(this.videoTitle.style.color="")}};
_.z.onDetailsClick=function(Y){var S=this.computedNavigationEndpoint;S&&(_.iN(_.iM(Y),this.hostElement,["A","BUTTON"])||_.ms(this.hostElement,"yt-navigate",{endpoint:S}))};
_.z.cleanupThumbnailAfterPageTransition=function(Y){_.IV9(document,"yt-page-type-changed",function(){Y.style.viewTransitionName=""})};
_.z.onRendererTap=function(){this.prepareThumbnailForPageTransition();var Y,S,P=((Y=this.data)==null?void 0:Y.serviceEndpoint)||this.getFeedbackEndpoint((S=this.data)==null?void 0:S.navigationEndpoint);P&&_.g(P,_.La)&&this.ytComponentBehavior.resolveCommand(P)};
_.z.onMouseDown=function(Y){var S=Y.target,P=this.computedNavigationEndpoint,u;Y=S.href||((u=_.g(P==null?void 0:P.commandMetadata,_.Yo))==null?void 0:u.url);u=S.data||P;Y&&u&&ylu(Y,u)};
_.z.computeVideoTitleText=function(){var Y;if((Y=this.data)==null?0:Y.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.z.computeHasPlaylistThumbnail=function(Y){var S,P,u,W,m;if((((S=Y.thumbnailRenderer)==null?0:S.playlistVideoThumbnailRenderer)||((P=Y.thumbnailRenderer)==null?0:P.playlistCustomThumbnailRenderer)||((u=Y.thumbnailRenderer)==null?0:u.showCustomThumbnailRenderer)||((W=Y.thumbnailRenderer)==null?0:W.playlistVideoThumbnailRenderer)||((m=Y.thumbnailRenderer)==null?0:m.playlistCustomThumbnailRenderer))&&Y.thumbnailOverlays)for(S=0;S<Y.thumbnailOverlays.length;S++)if(P=void 0,(P=Y.thumbnailOverlays[S])==
null?0:P.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.y6.Object.defineProperties(W$.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.f("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var Y;return(Y=this.data)==null?void 0:Y.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var Y;return(Y=this.data)==null?void 0:Y.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$13815_inlinePreviewHoverListener)==null?0:KC(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.eeh(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:Y.videoId)||((S=this.data)==null?void 0:S.playlistId)||""}}});
W$.prototype.onMouseDown=W$.prototype.onMouseDown;W$.prototype.metadataColorChanged=W$.prototype.metadataColorChanged;W$.prototype.onIsDismissedChanged=W$.prototype.onIsDismissedChanged;W$.prototype.onHiddenChanged=W$.prototype.onHiddenChanged;W$.prototype.onDataChanged=W$.prototype.onDataChanged;W$.prototype.handleReloadDownloadsInfo=W$.prototype.handleReloadDownloadsInfo;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],W$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],W$.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],W$.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],W$.prototype,"ytdLockupBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],W$.prototype,"ytdReduxBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],W$.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],W$.prototype,"entitySelectorType",void 0);_.Q([_.X(),_.k("design:type",Boolean)],W$.prototype,"noEndpoints",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],W$.prototype,"isRadio",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Boolean)],W$.prototype,"miniMode",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],W$.prototype,"fullHeight",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],W$.prototype,"showDarkVideoMetadata",void 0);_.Q([_.X(),_.k("design:type",Boolean)],W$.prototype,"showLightVideoMetadata",void 0);_.Q([_.X(),_.k("design:type",Number)],W$.prototype,"metadataColor",void 0);_.Q([_.X(),_.k("design:type",Object)],W$.prototype,"showChannelAvatar",void 0);_.Q([_.X(),_.k("design:type",Boolean)],W$.prototype,"hidden",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],W$.prototype,"showYtInteraction",void 0);
_.Q([_.X(),_.k("design:type",String)],W$.prototype,"dismissedContentId",void 0);_.Q([_.X({selectorArgs:["dismissedContentId"],selector:pCJ}),_.k("design:type",Object)],W$.prototype,"dismissActionToReplayEntity",void 0);
_.Q([_.X({selectorArgs:["entitySelectorType","mediaId"],selector:function(Y,S,P){if(_.f("kevlar_modern_downloads_page")&&P&&S&&S!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(S){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var u=bP$(Y,P);if(u){S=_.sC(Y,P);var W=lI(Y,P),m=D$1(Y,P);Y=Xp(Y,P);var J=WDh(u,S,W,m);W=J.shortViewCountText;var c=J.publishedTimeText;J=J.badges;var C=Y>0;m=PAh(u,S,m,Y);u=_.fA(S)||S==="TRANSFER_STATE_FAILED"||S==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!EC(u.policyEntity)?
void 0:FQJ(P,Y,u.videoEntity.lengthSeconds);S==="TRANSFER_STATE_PAUSED_BY_USER"&&P&&!_.f("dl_resume_click_killswitch")&&(u={offlineVideoEndpoint:{videoId:P,action:"ACTION_RESUME"}});P={shortViewCountText:W,publishedTimeText:c,badges:J,isWatched:C,navigationEndpoint:u,thumbnailOverlays:m}}else P=void 0;return P;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(S=TDf(Y,P))if(u=_.dT(Y,P),m=_.KaY(Y,P),u!=="TRANSFER_STATE_UNKNOWN"){P=uoa(S,u,m,P,cfh(Y));break a}P=void 0}return P;default:_.sf(new _.$2("Error: entitySelectorType defined but not matched in selector.",
Y,S))}}}),
_.k("design:type",Object)],W$.prototype,"entityDrivenState",void 0);_.Q([_.X({computed:"computeVideoTitleText(data)"}),_.k("design:type",Object)],W$.prototype,"videoTitleText",void 0);_.Q([_.X({computed:"computeHasPlaylistThumbnail(data)"}),_.k("design:type",Object)],W$.prototype,"hasPlaylistThumbnail",void 0);_.Q([_.X({computed:"computeNavigationEndpoint(data)"}),_.k("design:type",Object)],W$.prototype,"computedNavigationEndpoint",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],W$.prototype,"typographyBump",void 0);_.Q([_.d("typographyBump"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],W$.prototype,"typographyBumpV2",null);_.Q([_.nc("#video-title"),_.k("design:type",HTMLElement)],W$.prototype,"videoTitle",void 0);_.Q([_.nc("#video-title-link"),_.k("design:type",HTMLElement)],W$.prototype,"videoTitleLink",void 0);
_.Q([_.nc("#thumbnail"),_.k("design:type",HTMLElement)],W$.prototype,"thumbnail",void 0);_.Q([_.nc("#dismissible"),_.k("design:type",HTMLElement)],W$.prototype,"JSC$13815_dismissibleMedia",void 0);_.Q([_.d("data.menu"),_.k("design:type",Object),_.k("design:paramtypes",[])],W$.prototype,"lazyLoadMenu",null);_.Q([_.d("data.menu"),_.k("design:type",Object),_.k("design:paramtypes",[])],W$.prototype,"immediateLoadMenu",null);
_.Q([_.cZ("entityDrivenState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W$.prototype,"handleReloadDownloadsInfo",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W$.prototype,"onDataChanged",null);_.Q([_.cZ("hidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W$.prototype,"onHiddenChanged",null);
_.Q([_.zY("isDismissed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W$.prototype,"onIsDismissedChanged",null);_.Q([_.zY("metadataColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W$.prototype,"metadataColorChanged",null);_.Q([_.WZ("mousedown"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],W$.prototype,"onMouseDown",null);
_.Q([_.d("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],W$.prototype,"isHovered",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],W$.prototype,"useAvatar",null);_.Q([_.d("data","entitySelectorType"),_.k("design:type",String),_.k("design:paramtypes",[])],W$.prototype,"mediaId",null);W$=_.Q([_.t({is:"ytd-rich-grid-media",disableElementRegistration:!0})],W$);
var b4u=_.eD()(W$,"ytd-rich-grid-media",function(){if(qZu!==void 0)return qZu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="decorated-avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return qZu=Y},{mode:_.OX("kevlar_poly_si_batch_j072")?1:2});var TMs;var zh=function(){var Y=_.Z.apply(this,arguments)||this;Y.removeMaxWidth=!0;Y.insetMetadata=!1;return Y};
_.r(zh,_.Z);_.z=zh.prototype;_.z.configureRendererStamper=function(){return{innerMenu:Yw,outerMenu:Object.assign({},Yw,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z.onDataChanged=function(){var Y,S=((Y=this.data)==null?void 0:Y.trackingParams)||"";S&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(S));var P;((P=this.dismissActionToReplayEntity)==null?0:P.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13821_inlinePreviewHoverListener=UP({mediaRenderer:this,lockupElement:this.JSC$13821_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:nrh})};
_.z.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$13821_inlinePreviewHoverListener)==null||Sb(Y)};
_.z.onRendererTap=function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.serviceEndpoints)==null?void 0:S[0];_.g(P,_.La)&&this.componentBehavior.resolveCommand(P)};
_.z.onDetailsClick=function(Y){var S,P=(S=this.data)==null?void 0:S.navigationEndpoint;P&&(_.iN(_.iM(Y),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(P))};
_.z.onShow=function(){var Y=this.data;Y.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(Y.onFirstVisibleCommand),delete Y.onFirstVisibleCommand)};
_.y6.Object.defineProperties(zh.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var Y;return this.insetMetadata?void 0:(Y=this.data)==null?void 0:Y.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var Y;return this.insetMetadata?(Y=this.data)==null?void 0:Y.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var Y=this.data;if(Y!=null&&Y.badge&&(Y=_.g(Y.badge,SmU))){var S,P,u;return[{metadataBadgeRenderer:{label:((S=Y.label)==null?void 0:(P=S.runs)==null?void 0:P[0].text)||((u=Y.label)==null?void 0:u.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var Y=this.data;return Object.assign({},Y.headline,{accessibility:Y.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return this.isSlimShort?(Y=this.computedTitle)==null?void 0:(S=Y.accessibility)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$13821_inlinePreviewHoverListener)==null?0:KC(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
zh.prototype.onDataChanged=zh.prototype.onDataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],zh.prototype,"componentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],zh.prototype,"ytdLockupBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.vf),_.k("design:type",Object)],zh.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],zh.prototype,"ytdReduxBehavior",void 0);_.Q([_.nc("ytd-thumbnail"),_.k("design:type",HTMLElement)],zh.prototype,"thumbnail",void 0);_.Q([_.nc("#dismissible"),_.k("design:type",HTMLElement)],zh.prototype,"JSC$13821_dismissibleMedia",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],zh.prototype,"removeMaxWidth",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],zh.prototype,"insetMetadata",void 0);_.Q([_.X(),_.k("design:type",String)],zh.prototype,"dismissedContentId",void 0);_.Q([_.X({selectorArgs:["dismissedContentId"],selector:pCJ}),_.k("design:type",Object)],zh.prototype,"dismissActionToReplayEntity",void 0);_.Q([_.d("insetMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],zh.prototype,"thumbnailObjectFit",null);
_.Q([_.d("data","insetMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],zh.prototype,"innerMenu",null);_.Q([_.d("data","insetMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],zh.prototype,"outerMenu",null);_.Q([_.X(),_.k("design:type",Object)],zh.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Boolean)],zh.prototype,"miniMode",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zh.prototype,"onDataChanged",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],zh.prototype,"shortsBadges",null);_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zh.prototype,"isShort",null);
_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zh.prototype,"isSlimShort",null);_.Q([_.d("data","isShort"),_.k("design:type",Object),_.k("design:paramtypes",[])],zh.prototype,"computedTitle",null);_.Q([_.d("isSlimShort","computedTitle"),_.k("design:type",Object),_.k("design:paramtypes",[])],zh.prototype,"computedAccessibilityLabel",null);
_.Q([_.d("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zh.prototype,"isHovered",null);zh=_.Q([_.t({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],zh);
_.A(zh,"ytd-rich-grid-slim-media",function(){if(TMs!==void 0)return TMs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return TMs=Y},{mode:_.OX("kevlar_poly_si_batch_j063")?1:2});var Kvf;var EHi;var m1=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(m1,_.Z);m1.prototype.computeIcon=function(Y){return Y&&Y.iconType?"yt-sys-icons:"+Y.iconType.toLowerCase():""};
m1.prototype.onMouseEnter=function(){this.isHovered=!0};
m1.prototype.onMouseLeave=function(){this.isHovered=!1};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],m1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],m1.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],m1.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],m1.prototype,"isHovered",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],m1.prototype,"darkerDarkTheme",void 0);m1=_.Q([_.t({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],m1);
_.A(m1,"ytd-expand-on-hover-card-renderer",function(){if(EHi!==void 0)return EHi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return EHi=Y},{mode:1});var fU3,gHu=function(){if(fU3!==void 0)return fU3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return fU3=Y};_.$s("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var np=function(){var Y=_.Z.apply(this,arguments)||this;Y.compactStyle=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(np,_.Z);_.z=np.prototype;_.z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.z.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"}}}};
_.z.computeHideDot=function(Y){return!(Y&&Y.subscriberCountText&&Y.videoCountText)||this.compactStyle};
_.z.hasDualButtons=function(Y){return Y&&Y.purchaseButton&&Y.subscribeButton};
_.z.backgroundColorChanged=function(){if(this.data!==void 0){var Y=this.data.backgroundColor;this.isDarkTheme&&(Y=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=Y!=null?_.Gp(Y):"transparent"}};
_.z.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.z.onTap=function(Y){var S,P,u=((S=this.data)==null?void 0:S.navigationEndpoint)||((P=this.data)==null?void 0:P.serviceEndpoint);_.g(u,_.Ya)&&(u&&_.E().resolve(_.uY).resolveCommand(u,{form:{element:this.hostElement}}),Y.preventDefault())};
_.z.computeChannelEndpoint=function(Y){return _.g(Y,_.Ya)?null:Y};
_.z.computeHrefEndpoint=function(Y){return _.g(Y,_.Ya)?null:this.componentBehavior.computeHref_(Y)};
_.z.computeChannelRendererStyle=function(Y){return Y};
_.z.computeIconSize=function(Y){return Y?108:136};
_.y6.Object.defineProperties(np,{template:{configurable:!0,enumerable:!0,get:function(){return gHu()}}});
np.prototype.backgroundColorChanged=np.prototype.backgroundColorChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],np.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],np.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],np.prototype,"componentBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],np.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],np.prototype,"isDarkTheme",void 0);_.Q([_.X({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.k("design:type",String)],np.prototype,"channelRendererStyle",void 0);_.Q([_.X({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],np.prototype,"dualButtons",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],np.prototype,"useBiggerThumbs",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],np.prototype,"biggerThumbStyle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],np.prototype,"compactStyle",void 0);_.Q([_.zY("data","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],np.prototype,"backgroundColorChanged",null);np=_.Q([_.t({is:"ytd-channel-renderer",disableElementRegistration:!0})],np);_.A(np,"ytd-channel-renderer",function(){return gHu()},{mode:1});var $03;var reh;_.$s("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var je=function(){var Y=_.Z.apply(this,arguments)||this;Y.displayItemCount=2;Y.collections=_.f("web_modern_collections_v2");Y.hasPlaylistThumbnail=!1;Y.stackThumbnailSize="large";return Y};
_.r(je,_.Z);_.z=je.prototype;_.z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.z.computeFirstVideos=function(Y,S){return Y&&S?Y.slice(0,S):[]};
_.z.computeThumbnailWidth=function(Y,S){return Y?S==="BIG"?500:S==="MASSIVE"?600:S==="MEDIUM"?450:420:360};
_.z.computeThumbnailHeight=function(Y,S){return Y?S==="BIG"?280:S==="MASSIVE"?337:234:202};
_.z.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$13834_inlinePreviewHoverListener)==null||Sb(Y)};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13834_inlinePreviewHoverListener=UP({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:YFS,thumbnailElement:this.thumbnail})};
_.z.computeHasPlaylistThumbnail=function(Y){var S,P;if((((S=Y.thumbnailRenderer)==null?0:S.playlistVideoThumbnailRenderer)||((P=Y.thumbnailRenderer)==null?0:P.playlistCustomThumbnailRenderer))&&Y.thumbnailOverlays)for(S=0;S<Y.thumbnailOverlays.length;S++)if(P=void 0,(P=Y.thumbnailOverlays[S])==null?0:P.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.y6.Object.defineProperties(je.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$13834_inlinePreviewHoverListener)==null?0:KC(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
je.prototype.dataChanged=je.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],je.prototype,"ytdLockupBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],je.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],je.prototype,"displayItemCount",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],je.prototype,"useBiggerThumbs",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],je.prototype,"biggerThumbsStyle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],je.prototype,"collections",void 0);_.Q([_.X({computed:"computeHasPlaylistThumbnail(data)"}),_.k("design:type",Object)],je.prototype,"hasPlaylistThumbnail",void 0);_.Q([_.X(),_.k("design:type",String)],je.prototype,"stackThumbnailSize",void 0);_.Q([_.nc("ytd-thumbnail"),_.k("design:type",HTMLElement)],je.prototype,"thumbnail",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],je.prototype,"dataChanged",null);_.Q([_.d("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],je.prototype,"isHovered",null);je=_.Q([_.t({is:"ytd-radio-renderer",disableElementRegistration:!0})],je);
_.A(je,"ytd-radio-renderer",function(){if(reh!==void 0)return reh;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return reh=Y},{mode:_.OX("kevlar_poly_si_batch_j058")?1:2});var GvS;_.$s("itemSectionRenderer","showRenderer","ytd-show-renderer");var JR=function(){return _.Z.apply(this,arguments)||this};
_.r(JR,_.Z);JR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
JR.prototype.computeThumbnailWidth=function(Y){return Y?360:246};
JR.prototype.computeUseProminentThumbs=function(Y){return Y};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],JR.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],JR.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],JR.prototype,"isSearch",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.k("design:type",Boolean)],JR.prototype,"useProminentThumbs",void 0);JR=_.Q([_.t({is:"ytd-show-renderer",disableElementRegistration:!0})],JR);
_.A(JR,"ytd-show-renderer",function(){if(GvS!==void 0)return GvS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return GvS=Y},{mode:1});_.$s("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var B$=function(){var Y=_.Z.apply(this,arguments)||this;Y.isRichGrid=!1;return Y};
_.r(B$,_.Z);B$.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],B$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],B$.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],B$.prototype,"isRichGrid",void 0);B$=_.Q([_.t({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],B$);
_.A(B$,"ytd-feed-entry-renderer",function(){if($03!==void 0)return $03;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return $03=Y},{mode:1});var hs6;var c$=function(){return _.Z.apply(this,arguments)||this};
_.r(c$,_.Z);c$.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.Q([_.p(_.Gn),_.k("design:type",Object)],c$.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],c$.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],c$.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.wT,value:3}),_.k("design:type",Number)],c$.prototype,"itemsPerRow",void 0);
c$=_.Q([_.t({is:"ytd-link-card-renderer",disableElementRegistration:!0})],c$);
_.A(c$,"ytd-link-card-renderer",function(){if(hs6!==void 0)return hs6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return hs6=Y},{mode:1});var vH3;var Cp=function(){return _.Z.apply(this,arguments)||this};
_.r(Cp,_.Z);_.z=Cp.prototype;_.z.configureRendererStamper=function(){return{"data.menu":Yw,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z.onRendererTap=function(Y){if(!this.ytdDismissibleItemBehavior.isDismissed){var S,P=(S=this.data)==null?void 0:S.navigationEndpoint;P&&!_.iN(_.iM(Y),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(P)?_.iN(_.iM(Y),this.hostElement,["A"])||_.ms(this.hostElement,"yt-navigate",{endpoint:P}):this.ytComponentBehavior.resolveCommand(P,{}))}};
_.z.maybeComputeHref=function(Y){return this.ytComponentBehavior.computeHref_(Y,!0)};
_.z.getNavigationCommand=function(Y){return this.isNavigationCommand(Y)?Y:null};
_.z.isNavigationCommand=function(Y){return Y?_.g(Y,_.CV)||_.g(Y,_.yx)||_.g(Y,_.tp)?!0:!1:!1};
Cp.prototype.onRendererTap=Cp.prototype.onRendererTap;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Cp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],Cp.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Cp.prototype,"ytComponentBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],Cp.prototype,"data",void 0);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Cp.prototype,"onRendererTap",null);Cp=_.Q([_.t({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Cp);
_.A(Cp,"ytd-lumiere-promo-item-image-renderer",function(){if(vH3!==void 0)return vH3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return vH3=Y},{mode:1});var D0d;var qp=function(){return _.Z.apply(this,arguments)||this};
_.r(qp,_.Z);qp.prototype.computeLandscapeThumbnail=function(){var Y;return((Y=this.data)==null?void 0:Y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],qp.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],qp.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Boolean)],qp.prototype,"miniMode",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.wT}),_.k("design:type",Number)],qp.prototype,"itemsPerRow",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.k("design:type",Boolean)],qp.prototype,"landscapeThumbnail",void 0);qp=_.Q([_.t({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],qp);
_.A(qp,"ytd-lumiere-shelf-details-renderer",function(){if(D0d!==void 0)return D0d;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return D0d=Y},{mode:_.OX("kevlar_poly_si_batch_j076")?1:2});var IU6;var RP=function(){return _.Z.apply(this,arguments)||this};
_.r(RP,_.Z);RP.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],RP.prototype,"data",void 0);RP=_.Q([_.t({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],RP);
_.A(RP,"ytd-primetime-promo-details-renderer",function(){if(IU6!==void 0)return IU6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return IU6=Y},{mode:1});var aUU;var xb=function(){return _.Z.apply(this,arguments)||this};
_.r(xb,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],xb.prototype,"data",void 0);xb=_.Q([_.t({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],xb);
_.A(xb,"ytd-panel-show-style-metadata-renderer",function(){if(aUU!==void 0)return aUU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return aUU=Y},{mode:1});var LvU;var bS=function(){return _.Z.apply(this,arguments)||this};
_.r(bS,_.Z);_.z=bS.prototype;_.z.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.z.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.z.computeThumbnail=function(Y){if(Y)return Y.smallFormFactorBackgroundThumbnail||Y.largeFormFactorBackgroundThumbnail};
_.z.maybeComputeHref=function(Y){return this.ytComponentBehavior.computeHref_(Y,!0)};
_.z.isNavigationCommand=function(Y){return Y?_.g(Y,_.CV)||_.g(Y,_.yx)||_.g(Y,_.tp)?!0:!1:!1};
_.z.getNavigationCommand=function(Y){return this.isNavigationCommand(Y)?Y:null};
bS.prototype.onPanelTap=bS.prototype.onPanelTap;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],bS.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],bS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],bS.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],bS.prototype,"roundedContainer",void 0);_.Q([_.X({reflectToAttribute:!0,value:_.f("web_modern_buttons")}),_.k("design:type",Boolean)],bS.prototype,"modernButtons",void 0);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bS.prototype,"onPanelTap",null);bS=_.Q([_.t({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],bS);
_.A(bS,"ytd-primetime-promo-panel-renderer",function(){if(LvU!==void 0)return LvU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return LvU=Y},{mode:1});_.AL(_.AI(function(Y){Y=_.tI(Y,{data:{},useFullWidth:!1});var S=Y.data,P=Y.useFullWidth,u=function(){return S().caption},W=function(){return S().image},m=function(){return _.vF(S().onTap)};
Y={};Y=_.Si("ytTeaserCardViewModelHost",(Y.ytTeaserCardViewModelUseFullWidth=function(){return P()},Y));
return _.R("teaser-card-view-model",{class:Y},_.R(_.gw,{cond:function(){return m()},
then:function(){return _.R(mmS,{className:"ytTeaserCardViewModelLink",command:m,forceNewState:!0,useATagConfig:!0},_.R("div",{class:"ytTeaserCardViewModelImageContainer"},_.R(_.gw,{cond:W,then:function(J){return _.R(_.ZZ,{data:J,className:"ytTeaserCardViewModelImage",alt:""})}})),_.R("p",{class:"ytTeaserCardViewModelCaption"},u))}}))},"sb"),"teaser-card-view-model",{props:{data:_.wm,
useFullWidth:_.wm}});var wcs=new _.yH("RICH_GRID_VIDEO_RENDERER_TOKEN");_.AL(_.AI(function(Y){var S=Y.data;var P=Y.showYtInteractionInContent;var u=function(){return!!S().selectableFeedback};
Y=_.n(_.qb(!1,void 0,"nblDw"));var W=Y.next().value,m=Y.next().value;_.LE(function(){var K=_.g(S().primaryButton,_.hq);(K==null?0:K.isToggled)&&m(K.isToggled)});
Y=_.mR(function(K){if(!u())return!1;if(W()){var G;var v=(G=S().selectableFeedback)==null?void 0:G.onDeselect}else{var a;v=(a=S().selectableFeedback)==null?void 0:a.onSelect}v&&_.ae(v,{form:{element:K.target}});m(!W());if(K=_.g(S().primaryButton,_.hq))K.isToggled=W();return!1});
var J=function(){if(!u()){var K,G=(K=S().loggingDirectives)==null?void 0:K.trackingParams;G&&_.uA(_.E().resolve(_.jG),G)}},c=_.GsK(),C=function(){var K;
return u()?(K=S().selectableFeedback)==null?void 0:K.a11yLabel:void 0},x=function(){return u()?{toggled:W()}:{}},b=_.E().resolve(_.PQ(wcs)),T={};
return _.R("yt-feedback-item-renderer",{class:_.Si("ytFeedbackItemRendererHost",(T.ytFeedbackItemRendererSelectableFeedback=u,T)),"on:click":Y,"on:keydown":c,title:C,"aria-label":C,"aria-pressed":function(){return u()?W():void 0},
tabindex:function(){return u()?0:void 0},
role:function(){return u()?"button":void 0}},_.R("div",{class:"ytFeedbackItemRendererContentContainer"},_.R(_.rv,{data:function(){return S().content}},{videoRenderer:function(K){return _.R(b,{data:K.data,
showYtInteraction:P})},
lockupViewModel:function(K){return _.R(kw,{data:K.data,containerType:2})}})),_.R("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.R(_.rv,{data:function(){return S().primaryButton}},{toggleButtonViewModel:function(K){return _.R(_.vL,{data:K.data,
buttonShapeOverrides:x,disableExplicitClickLogging:!0,onToggle:J})}})))},"tb"),"yt-feedback-item-renderer",{props:{data:_.wm,
showYtInteractionInContent:_.wm}});var Th=function(){var Y=_.Z.apply(this,arguments)||this;Y.isShortsGrid=!1;Y.isCompactGrid=!1;Y.isShortsPanelGrid=!1;Y.renderedFromRichGrid=!1;Y.isInFirstColumn=!1;Y.noGutterMargins=!1;Y.isInlineGroupItem=!1;Y.insetMetadata=!1;Y.noBottomMarginInAds=_.f("web_no_bottom_margin_for_home_ad_buttons");Y.force16By9ThumbnailAspectRatio=!1;Y.useCompactList=!1;Y.containerType=2;Y.thumbnailTargetWidth=9999;Y.isResponsiveGrid=!1;Y.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};Y.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};Y.hoverListener=Y.hover.bind(Y);Y.leaveListener=Y.leave.bind(Y);Y.highlighted=!1;Y.JSC$13869_unsubscribeFromInlinePreviewIsActive=function(){};
return Y};
_.r(Th,_.Z);_.z=Th.prototype;_.z.computeContainerType=function(){return this.useCompactList?3:2};
_.z.computeThumbnailTargetWidth=function(){var Y;return(Y=this.itemWidth)!=null?Y:9999};
_.z.updateIsInFirstColumn=function(){var Y;this.isInFirstColumn=((Y=this.data)==null?void 0:Y.colIndex)===0};
_.z.observerContainerType=function(){if(this.lockup){var Y=this.lockup;Y.containerType=this.containerType;Y.sizing=this.sizing;Y.typographyBump=this.typographyBump;Y.itemWidth=this.itemWidth}this.richGridMedia&&_.f("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump)};
_.z.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",params:{isRichGrid:!0}},
expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.z.leave=function(Y){Y=Y.relatedTarget;var S=document.querySelector("ytd-video-preview");Y&&S&&_.Hq(S).contains(Y)||this.removeAndCleanupHighlight()};
_.z.hover=function(){var Y;if(!this.highlighted&&(!_.f("web_enable_rich_item_on_focus_effect")||(Y=this.data)!=null&&Y.onFocusEffect)){var S,P;((S=this.data)==null?void 0:(P=S.onFocusEffect)==null?void 0:P.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(Y=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:Y,boxShadow:"0 0 0 10px "+Y}));var u,W;((u=this.data)==null?void 0:(W=u.onFocusEffect)==null?void 0:
W.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.z.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};
_.z.registerHoverHighlightListeners=function(){var Y=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13869_unsubscribeFromInlinePreviewIsActive=_.J5(_.Na(),_.j8Y,function(S){Y.highlighted&&!S&&Y.removeAndCleanupHighlight()})};
_.z.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13869_unsubscribeFromInlinePreviewIsActive()};
_.z.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.z.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.z.getBackgroundColor=function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.onFocusEffect)==null?void 0:S.onFocusColor;if(P){if(document.documentElement.hasAttribute("dark")&&(P==null?0:P.darkTheme))return _.Gp(P==null?void 0:P.darkTheme);if(P==null?0:P.lightTheme)return _.Gp(P==null?void 0:P.lightTheme)}};
_.z.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var Y=_.pM(),S,P,u;Y&&((S=this.data)==null?0:S.trackingParams)&&((P=this.data)==null?void 0:P.colIndex)!=null&&((u=this.data)==null?void 0:u.rowIndex)!=null&&_.yP(Y,_.Re(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.z.isSlimMediaRenderer=function(Y){return!!_.g(Y==null?void 0:Y.content,_.wHs)||!!_.g(Y==null?void 0:Y.content,LQ_)||!!_.g(Y==null?void 0:Y.content,_.DP)||!!_.g(Y==null?void 0:Y.content,e73)};
_.z.isPostRenderer=function(){var Y,S;return!!_.g((Y=this.data)==null?void 0:Y.content,ond)||!!_.g((S=this.data)==null?void 0:S.content,t5L)};
_.z.computeIsGameCardShelf=function(){var Y;return!!_.g((Y=this.data)==null?void 0:Y.content,oMi)};
_.z.computeIsMiniGameCardShelf=function(){var Y,S;return!!_.g((Y=this.data)==null?void 0:Y.content,Pis)||!!_.g((S=this.data)==null?void 0:S.content,uyL)};
_.z.computeIsTeaserCard=function(){var Y;return!!_.g((Y=this.data)==null?void 0:Y.content,uyL)};
_.z.computeIsSelectableFeedbackItem=function(){var Y,S;return!((S=_.g((Y=this.data)==null?void 0:Y.content,_.zO6))==null||!S.selectableFeedback)};
_.z.computeContainsLumierePosters=function(){var Y,S;return((S=_.g((Y=this.data)==null?void 0:Y.content,exf))==null?void 0:S.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.z.computeIsExpandOnHoverCardShelf=function(){var Y;return!!_.g((Y=this.data)==null?void 0:Y.content,V5i)};
_.z.computeIsLinkCardShelf=function(){var Y;return!!_.g((Y=this.data)==null?void 0:Y.content,NG6)};
_.z.computeIsReelItemStyleAvatarCircle=function(Y){var S;return((S=_.g(Y==null?void 0:Y.content,_.DP))==null?void 0:S.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.z.computeIsLinkCardFullWidth=function(Y,S){var P;return((P=_.g(Y==null?void 0:Y.content,NG6))==null?void 0:P.useFullWidth)||S<=2};
_.y6.Object.defineProperties(Th.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&&_.f("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.f("web_enable_rich_item_on_focus_effect")||_.f("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.f("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.f("web_shorts_2_by_3_lockups_study")||_.f("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
Th.prototype.richGridHoverHighlightChanged=Th.prototype.richGridHoverHighlightChanged;Th.prototype.observerContainerType=Th.prototype.observerContainerType;Th.prototype.updateIsInFirstColumn=Th.prototype.updateIsInFirstColumn;_.Q([_.p(_.Gn),_.k("design:type",Object)],Th.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Th.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],Th.prototype,"ytdLockupBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Th.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.k("design:type",Boolean)],Th.prototype,"isPost",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.k("design:type",Boolean)],Th.prototype,"containsLumierePosters",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.k("design:type",Boolean)],Th.prototype,"isSlimMedia",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.k("design:type",Boolean)],Th.prototype,"isGameCardShelf",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.k("design:type",Boolean)],Th.prototype,"isMiniGameCardShelf",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.k("design:type",Boolean)],Th.prototype,"isTeaserCard",void 0);_.Q([_.X({computed:"computeIsSelectableFeedbackItem(data)"}),_.k("design:type",Boolean)],Th.prototype,"isSelectableFeedbackItem",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Th.prototype,"isShortsGrid",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Th.prototype,"isSlimGrid",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Th.prototype,"isCompactGrid",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Th.prototype,"isShortsPanelGrid",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.k("design:type",Boolean)],Th.prototype,"isExpandOnHoverCardShelf",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.k("design:type",Boolean)],Th.prototype,"isLinkCardShelf",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.wT,value:3}),_.k("design:type",Number)],Th.prototype,"itemsPerRow",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Th.prototype,"renderedFromRichGrid",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Th.prototype,"isInFirstColumn",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Th.prototype,"noGutterMargins",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Th.prototype,"isInlineGroupItem",void 0);_.Q([_.X(),_.k("design:type",Object)],Th.prototype,"insetMetadata",void 0);
_.Q([_.X(),_.k("design:type",Object)],Th.prototype,"noBottomMarginInAds",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Th.prototype,"isShelfItem",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.k("design:type",Boolean)],Th.prototype,"isReelItemStyleAvatarCircle",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.k("design:type",Boolean)],Th.prototype,"isLinkCardFullWidth",void 0);
_.Q([_.X(),_.k("design:type",Object)],Th.prototype,"force16By9ThumbnailAspectRatio",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Th.prototype,"useCompactList",void 0);_.Q([_.X(),_.k("design:type",String)],Th.prototype,"sizing",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Th.prototype,"typographyBump",void 0);_.Q([_.X(),_.k("design:type",Number)],Th.prototype,"itemWidth",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Th.prototype,"isHomeShelf",void 0);
_.Q([_.nc("yt-lockup-view-model"),_.k("design:type",HTMLElement)],Th.prototype,"lockup",void 0);_.Q([_.nc("ytd-rich-grid-media"),_.k("design:type",HTMLElement)],Th.prototype,"richGridMedia",void 0);_.Q([_.X({computed:"computeContainerType(useCompactList)"}),_.k("design:type",Object)],Th.prototype,"containerType",void 0);_.Q([_.X({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.k("design:type",Object)],Th.prototype,"thumbnailTargetWidth",void 0);
_.Q([_.d("showYtInteractionOnRichItem"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Th.prototype,"showYtInteractionOnRichGridMedia",null);_.Q([_.d("isSelectableFeedbackItem","richGridHoverHighlight"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Th.prototype,"showYtInteractionOnRichItem",null);_.Q([_.d("typographyBump"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Th.prototype,"richTypographyBump",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("isShortsGrid","isCompactGrid"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Th.prototype,"richGridHoverHighlight",null);_.Q([_.d("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.k("design:type",Number),_.k("design:paramtypes",[])],Th.prototype,"shortsLockupViewModelAspectRatio",null);_.Q([_.d("isInlineGroupItem"),_.k("design:type",Number),_.k("design:paramtypes",[])],Th.prototype,"shortsLockupViewModelScrimStyle",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Th.prototype,"updateIsInFirstColumn",null);_.Q([_.zY("containerType","sizing","typographyBump"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Th.prototype,"observerContainerType",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Th.prototype,"isResponsiveGrid",void 0);_.Q([_.X(),_.k("design:type",Object)],Th.prototype,"lockupExperiments",void 0);
_.Q([_.zY("richGridHoverHighlight"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Th.prototype,"richGridHoverHighlightChanged",null);Th=_.Q([_.t({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Th);
_.pcd=_.eD()(Th,"ytd-rich-item-renderer",function(){if(Kvf===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);Kvf=Y}Y=Kvf;return Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var lrY={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var Qvu=_.kW(_.Td("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Fvf;var Kp=function(){var Y=_.Z.apply(this,arguments)||this;Y.useResponsiveGrid=!1;Y.hidden=!1;Y.standardShelfMargins=_.f("web_rich_grid_standard_shelf_margins");Y.isShowMoreHidden=!1;Y.isExpanded=!1;Y.isInnerShelf=!1;Y.allVideosCount=0;Y.allPlaylistCount=0;Y.haveSmartDownloadsCompleted=!1;Y.isShowLessHidden=!0;Y.restrictContentsOverflow=!1;Y.firstShownIndex=0;Y.horizontalOffset=0;Y.atEnd=!0;Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};Y.nextClick=function(){var S;(S=Y.data)!=null&&S.contents&&(Y.firstShownIndex+=Y.currentElementsPerRow,Y.updateHorizontalOffset(),Y.updateHorizontalItemVisibility())};
Y.previousClick=function(){var S;(S=Y.data)!=null&&S.contents&&(Y.firstShownIndex-=Y.currentElementsPerRow,Y.updateHorizontalOffset(),Y.updateHorizontalItemVisibility())};
return Y};
_.r(Kp,_.Z);_.z=Kp.prototype;
_.z.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:_.X3("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.z.attached=function(){this.requestElementsPerRow()};
_.z.refreshGridLayoutNew=function(){var Y;if((Y=this.data)!=null&&Y.contents&&this.containerWidth){var S;((S=this.data.responsiveContainerConfiguration)==null?0:S.responsiveSize)?(Y=_.yo8(this.data.responsiveContainerConfiguration,this.containerWidth),Y=_.kI(Object.assign({},Y,{standardUnitMinWidth:this.standardUnitMinWidth}))):Y=_.kI({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=Y.typographyBump;if(this.elementsPerRow!==
Y.numItems||this.gutter!==Y.gutter)this.elementsPerRow=Y.numItems,this.gutter=Y.gutter,this.itemWidth=Y.itemWidth,_.PZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":Y.gutter+"px"})}};
_.z.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.f("web_use_layout_library_for_rich_grid_disable_shorts"))){var Y=_.On8(this.data);if(Y)return Y;if(_.f("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.z.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.f("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.z.computeButton=function(Y){var S=_.g(Y,_.I8);Y=Object.assign({},_.g(Y,_.I8));return S?(Y.text||(Y.text={simpleText:Y.tooltip}),Y.style="STYLE_MONO_OUTLINE",Y.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",Y):S};
_.z.onRowIndexChange=function(){var Y=_.pM(),S,P;((S=this.data)==null?0:S.trackingParams)&&((P=this.data)==null?void 0:P.rowIndex)!=null&&Y&&_.yP(Y,_.Re(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.z.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var Y,S=((Y=this.getRichItemRenderers()[0])==null?void 0:Y.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*S;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.z.requestElementsPerRow=function(){_.ms(this.hostElement,"yt-request-elements-per-row")};
_.z.onUpdateElementsPerRowAction=function(Y,S,P,u,W,m){if(this.containerWidth!==m&&(this.containerWidth=m,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&Y&&S&&P&&u&&W&&(this.elementsPerRow!==Y||this.postsPerRow!==S||this.slimItemsPerRow!==P||this.gameCardsPerRow!==u||this.miniGameCardsPerRow!==W)&&(this.elementsPerRow=Y,this.postsPerRow=S,this.slimItemsPerRow=P,this.gameCardsPerRow=u,this.miniGameCardsPerRow=W,this.updateItemVisibility())};
_.z.getRichItemRenderers=function(){return _.I(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.z.updateItemVisibility=function(){var Y=this;if(this.data&&this.data.contents){var S=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(u,W){var m;((m=Y.data)==null?0:m.isExpanded)?(u.hidden=W>S-1,u.ytRendererBehavior.markDirty()):u.hidden=W>Y.currentElementsPerRow-1||W>S-1});
var P=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||P||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||P||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.z.setHeightToSingleRow=function(){var Y=this.getRichItemRenderers(),S=Number.parseInt(getComputedStyle(Y[0]).marginBottom,10)||0;Y=Y.slice(0,this.currentElementsPerRow).reduce(function(P,u){return Math.max(P,u.getBoundingClientRect().height+S)},0);
this.contents.style.height=Y+"px"};
_.z.focusNextExpandedItem=function(){var Y;((Y=this.data)==null?0:Y.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.z.focusItem=function(Y,S){var P=this.getRichItemRenderers();if(P[Y]&&(Y=P[Y].querySelector(".focus-on-expand"))){if(S){var u;(u=P[this.currentElementsPerRow])==null||u.scrollIntoView({behavior:"smooth",block:"center"})}Y.focus({preventScroll:!0})}};
_.z.onDataChange=function(){var Y=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.ky(this,function(){Y.updateItemVisibility()});
var S;if((S=this.data)==null?0:S.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.PZ(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),S=0;S<this.data.contents.length;S++){var P=_.g(this.data.contents[S],_.$p)||{};P.colIndex=S;P.rowIndex=this.data.rowIndex}};
_.z.handleRerenderDownloadsData=function(){_.f("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())};
_.z.blockInlinePreview=function(Y){var S=this,P;return _.B(function(u){(P=S.inlinePreviewIsEnabled)&&S.ytdReduxBehavior.dispatch(_.wbh(!1));return u.return(new Promise(function(W){Y(function(){P&&S.ytdReduxBehavior.dispatch(_.wbh(!0));W()})}))})};
_.z.expandShelf=function(){var Y=this;if(this.data){var S,P=(S=_.g(this.data.showMoreButton,_.I8))==null?void 0:S.trackingParams;P&&_.uA(_.BF(),P);this.data.isExpanded=!0;this.blockInlinePreview(function(u){Y.setHeightToSingleRow();Y.updateItemVisibility();Y.contents.style.height=Y.contents.scrollHeight+"px";_.wc.addJob(function(){Y.contents.style.height="auto";Y.focusNextExpandedItem();u()},2,200)})}};
_.z.collapseShelf=function(){var Y=this;return _.B(function(S){if(S.nextAddress==1){if(!Y.data)return S.return();Y.data.isExpanded=!1;return _.q(S,Y.blockInlinePreview(function(P){Y.contents.style.height=Y.contents.scrollHeight+"px";Y.setHeightToSingleRow();_.wc.addJob(function(){Y.updateItemVisibility();Y.contents.style.height="auto";P()},2,200)}),2)}_.ms(Y.hostElement,"yt-rich-shelf-renderer-collapse",Y.data.trackingParams);
Y.focusItem(0,!1);_.Yt(S)})};
_.z.updateArrowButtonStatus=function(){var Y=this.getRichItemRenderers().length;if(!_.f("web_rich_shelf_renderer_use_data_contents_killswitch")){var S,P;Y=((S=this.data)==null?void 0:(P=S.contents)==null?void 0:P.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=Y};
_.z.onChildElementFocus=function(Y){this.hasChevronButtons&&(Y=Y.target.closest("#contents > *"),this.contents.contains(Y)&&(Y.offsetLeft<this.horizontalOffset?this.previousClick():Y.offsetLeft+Y.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.z.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.X3("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.z.updateHorizontalOffset=function(){var Y=this.getRichItemRenderers(),S=Y.length;if(!_.f("web_rich_shelf_renderer_use_data_contents_killswitch")){var P,u;S=((P=this.data)==null?void 0:(u=P.contents)==null?void 0:u.length)||0}var W;Y=((W=Y[0])==null?void 0:W.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>S?this.firstShownIndex=S-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*Y};
_.z.isSlimMediaShelfRenderer=function(){var Y,S,P,u=(P=_.g((Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:S[0],_.$p))==null?void 0:P.content;return!!(_.g(u,_.wHs)||_.g(u,LQ_)||_.g(u,_.DP)||_.g(u,e73))};
_.z.isGameCardShelf=function(){var Y,S,P,u=(P=_.g((Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:S[0],_.$p))==null?void 0:P.content;return!!_.g(u,oMi)};
_.z.isGnomeShelf=function(){var Y,S,P,u=(P=_.g((Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:S[0],_.$p))==null?void 0:P.content;return!!_.g(u,_.zO6)};
_.z.isMiniGameCardShelf=function(){var Y,S,P,u=(P=_.g((Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:S[0],_.$p))==null?void 0:P.content;return!!_.g(u,Pis)||!!_.g(u,uyL)};
_.z.hasGameBoxArtAvatarStyle=function(){var Y;return((Y=this.data)==null?void 0:Y.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.z.hasRoundedGameBoxArtAvatarStyle=function(){var Y;return((Y=this.data)==null?void 0:Y.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.z.isShortsShelf=function(){var Y,S,P,u=(P=_.g((Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:S[0],_.$p))==null?void 0:P.content;return!!_.g(u,_.DP)||!!_.g(u,e73)};
_.z.isPostShelfRenderer=function(){var Y,S,P,u=(P=_.g((Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:S[0],_.$p))==null?void 0:P.content;return!(!_.g(u,ond)&&!_.g(u,t5L))};
_.z.isLumiereShelf=function(){var Y,S,P=_.g((Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:S[0],_.$p);return!!_.g(P==null?void 0:P.content,exf)};
_.z.isLumiereShelfWithPosters=function(){var Y,S,P=_.g((Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:S[0],_.$p),u;return((u=_.g(P==null?void 0:P.content,exf))==null?void 0:u.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.z.isExpandOnHoverCardShelf=function(){var Y,S,P,u=(P=_.g((Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:S[0],_.$p))==null?void 0:P.content;return!!_.g(u,V5i)};
_.z.computeHasFeaturedBadge=function(){var Y,S,P=_.g((Y=this.data)==null?void 0:(S=Y.badges)==null?void 0:S[0],_.zzm);return P?P.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.z.computeHasPaygatedFeaturedBadge=function(){var Y,S,P=_.g((Y=this.data)==null?void 0:(S=Y.badges)==null?void 0:S[0],_.zzm);return P?(P==null?void 0:P.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.z.computeHeaderHidden=function(){var Y,S,P,u,W,m;return!((Y=this.data)==null?0:Y.icon)&&!((S=this.data)==null?0:S.title)&&!((P=this.data)==null?0:P.subtitle)&&!((u=this.data)==null?0:u.thumbnail)&&!((W=this.data)==null?0:W.badges)&&!((m=this.data)==null?0:m.menu)};
_.z.showCtaButton=function(){var Y;return!((Y=this.data)==null||!Y.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.z.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.z.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.z.computeForce16By9ThumbnailAspectRatio=function(){var Y,S;return((Y=this.data)==null?void 0:(S=Y.responsiveContainerConfiguration)==null?void 0:S.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.z.onSectionReactiveDismissal=function(Y,S,P){var u,W;var m=(u=this.data)==null?void 0:(W=u.targetingContext)==null?void 0:W.targetGroupId;this&&m&&S.targetGroupId&&m.includes(S.targetGroupId)?(u=this.rowIndex,Y=u===void 0?!1:!(S.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&u<=Y)):Y=!1;Y&&(this.hidden=P)};
_.y6.Object.defineProperties(Kp.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var Y=this.elementsPerRow;this.isPostShelfRenderer()?Y=this.postsPerRow:this.isSlimMediaShelfRenderer()?Y=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?Y=this.slimItemsPerRow-1:this.isGameCardShelf()?Y=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(Y=this.miniGameCardsPerRow);return Y}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.f("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!((Y=this.data)==null||!Y.previousButton)&&!((S=this.data)==null||!S.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=_.E().resolve(_.Ag).getCurrentPage())==null?void 0:Y.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u;return!((Y=this.data)==null?0:(S=Y.thumbnail)==null?0:(P=S.accessibility)==null?0:(u=P.accessibilityData)==null?0:u.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Kp.prototype.onChildElementFocus=Kp.prototype.onChildElementFocus;Kp.prototype.handleRerenderDownloadsData=Kp.prototype.handleRerenderDownloadsData;Kp.prototype.onDataChange=Kp.prototype.onDataChange;Kp.prototype.onRowIndexChange=Kp.prototype.onRowIndexChange;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Kp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.vf),_.k("design:type",Object)],Kp.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Kp.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Kp.prototype,"ytdReduxBehavior",void 0);_.Q([_.X({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.k("design:type",Object)],Kp.prototype,"useResponsiveGrid",void 0);_.Q([_.X(),_.k("design:type",Object)],Kp.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Number)],Kp.prototype,"standardUnitMinWidth",void 0);_.Q([_.X({reflectToAttribute:!0,value:3}),_.k("design:type",Number)],Kp.prototype,"elementsPerRow",void 0);_.Q([_.X({value:3}),_.k("design:type",Number)],Kp.prototype,"postsPerRow",void 0);_.Q([_.X({value:6}),_.k("design:type",Number)],Kp.prototype,"slimItemsPerRow",void 0);_.Q([_.X({value:6}),_.k("design:type",Number)],Kp.prototype,"gameCardsPerRow",void 0);
_.Q([_.X({value:6}),_.k("design:type",Number)],Kp.prototype,"miniGameCardsPerRow",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Kp.prototype,"hidden",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Kp.prototype,"standardShelfMargins",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Kp.prototype,"isShowMoreHidden",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Kp.prototype,"isExpanded",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Kp.prototype,"isInnerShelf",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.k("design:type",Boolean)],Kp.prototype,"isShorts",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.k("design:type",Boolean)],Kp.prototype,"isLumiere",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.k("design:type",Boolean)],Kp.prototype,"hasBoxArtThumbnailStyle",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.k("design:type",Boolean)],Kp.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.k("design:type",Boolean)],Kp.prototype,"hasFeaturedBadge",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.k("design:type",Boolean)],Kp.prototype,"hasPaygatedFeaturedBadge",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.k("design:type",Boolean)],Kp.prototype,"isHeaderHidden",void 0);_.Q([_.X({selector:_.x$a}),_.k("design:type",Object)],Kp.prototype,"allVideosCount",void 0);_.Q([_.X({selector:Mtf}),_.k("design:type",Object)],Kp.prototype,"allPlaylistCount",void 0);_.Q([_.X({selector:hSf}),_.k("design:type",Object)],Kp.prototype,"haveSmartDownloadsCompleted",void 0);
_.Q([_.X({selectorArgs:["entitySelectorType"],selector:function(Y,S){if(_.f("kevlar_modern_downloads_page")&&S&&S!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var P=Y.entities;switch(S){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":S=_.vT(P);Y=$a(S);var u=_.gT(S);P=_.IR(P);P=_.Sk(ZW$(u,P,S.length));return{contents:Y,subtitle:P};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return P=_.vT(P),{contents:$a(P)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return P=
_.DS(P),{contents:$a(P)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return P=_.MB9(P),{contents:$a(P)};default:_.sf(new _.$2("Error: entitySelectorType defined but not matched in selector.",Y,S))}}}}),
_.k("design:type",Object)],Kp.prototype,"entityDrivenRichShelfData",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.k("design:type",Boolean)],Kp.prototype,"hasTopCtaButton",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.k("design:type",Boolean)],Kp.prototype,"hasBottomCtaButton",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.k("design:type",Boolean)],Kp.prototype,"force16By9ThumbnailAspectRatio",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Kp.prototype,"isShowLessHidden",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Kp.prototype,"restrictContentsOverflow",void 0);_.Q([_.X({selector:_.JfJ}),_.k("design:type",Boolean)],Kp.prototype,"inlinePreviewIsEnabled",void 0);
_.Q([_.X({computed:"computeSizing(data)"}),_.k("design:type",String)],Kp.prototype,"sizing",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Kp.prototype,"typographyBump",void 0);_.Q([_.X(),_.k("design:type",Number)],Kp.prototype,"itemWidth",void 0);_.Q([_.X(),_.k("design:type",Object)],Kp.prototype,"firstShownIndex",void 0);_.Q([_.X(),_.k("design:type",Object)],Kp.prototype,"horizontalOffset",void 0);_.Q([_.X(),_.k("design:type",Object)],Kp.prototype,"atEnd",void 0);
_.Q([_.nc("#contents"),_.k("design:type",HTMLElement)],Kp.prototype,"contents",void 0);_.Q([_.zY("data.rowIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kp.prototype,"onRowIndexChange",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kp.prototype,"onDataChange",null);
_.Q([_.zY("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kp.prototype,"handleRerenderDownloadsData",null);_.Q([_.WZ("focusin"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Kp.prototype,"onChildElementFocus",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data","isHomePage"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Kp.prototype,"isTruncated",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Kp.prototype,"hideBottomDivider",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Kp.prototype,"hasChevronButtons",null);_.Q([_.d("firstShownIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],Kp.prototype,"previousButtonOverride",null);
_.Q([_.d("atEnd"),_.k("design:type",Object),_.k("design:paramtypes",[])],Kp.prototype,"nextButtonOverride",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Kp.prototype,"isHomePage",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Kp.prototype,"thumbnailAriaHidden",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Kp.prototype,"initiallyIsExpanded",null);
_.Q([_.d("data"),_.k("design:type",String),_.k("design:paramtypes",[])],Kp.prototype,"entitySelectorType",null);Kp=_.Q([_.t({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Kp);
_.sVt=_.eD()(Kp,"ytd-rich-shelf-renderer",function(){if(Fvf===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);Fvf=Y}Y=Fvf;return Y},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var d03;var Ep=function(){var Y=_.Z.apply(this,arguments)||this;Y.tileLottieAnimationRef={};Y.backgroundLottieAnimationRef={};Y.isOnHoverBehaviorForLottieEnabled=!0;Y.useBiggerShowcaseImage=_.f("enable_desktop_search_bigger_thumbs");Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return Y};
_.r(Ep,_.Z);_.z=Ep.prototype;_.z.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.z.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"}}}};
_.z.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var Y=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);Y!==this.hasTile&&this.set("hasTile",Y);Y=this.hasLogo(this.data)||!!this.data.badgeText;Y!==this.hasMetadata&&this.set("hasMetadata",Y);Y=this.data.overflowButton?!1:Y;Y!==this.showLogoImage&&this.set("showLogoImage",Y);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.z.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.z.currentColorChanged=function(){this.updateButtonPalette()};
_.z.computeBackgroundStyle=function(Y){if(Y&&this.data){var S=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var P=_.Qz((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);P&&S.push('background-image: url("'+P+'");')}var u;((u=Y.basicColorData)==null?void 0:u.backgroundColor)!==void 0&&S.push("background-color: "+_.hK(Y.basicColorData.backgroundColor)+";");return S.join("")}};
_.z.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&this.set("isDarkTheme",Y)};
_.z.getCurrentLogo=function(Y,S){if(Y)return S?Y.darkLogoImage:Y.lightLogoImage};
_.z.getCurrentStaticTileImage=function(Y,S){if(this.hasStaticTile(Y))return Y.darkTileImage?S?Y.darkTileImage:Y.tileImage:Y.tileImage};
_.z.computeTitleStyle=function(Y){if(this.data&&this.data.title&&Y&&Y.basicColorData&&Y.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Gp(Y.basicColorData.foregroundTitleColor)+";"};
_.z.computeSubtitleStyle=function(Y){if(this.data&&this.data.subtitle&&Y&&Y.basicColorData&&Y.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Gp(Y.basicColorData.foregroundBodyColor)+";"};
_.z.computeSupplementalStyle=function(Y){if(this.data&&this.data.supplementalText&&Y&&Y.supplementalTextColor!==void 0)return Y=_.Gp(Y.supplementalTextColor),"color:"+Y+";--yt-endpoint-color:"+Y+";--yt-endpoint-hover-color:"+Y+";--yt-endpoint-visited-color:"+Y+";--yt-formatted-string-bold-font-weight:700;"};
_.z.computeBadgeStyle=function(Y){if(this.data&&this.data.badgeText&&Y&&Y.basicColorData&&Y.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.Gp(Y.basicColorData.foregroundActivatedColor)+";"};
_.z.computeDismissIconStyle=function(Y){var S,P;if((Y==null?0:(S=Y.dismissButtonColorData)==null?0:S.foregroundTitleColor)&&(Y==null?0:(P=Y.dismissButtonColorData)==null?0:P.backgroundColor))return"--yt-button-color:"+_.hK(Y.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.hK(Y.dismissButtonColorData.backgroundColor)+";"};
_.z.computeOverflowIconStyle=function(Y){var S,P;if((Y==null?0:(S=Y.dismissButtonColorData)==null?0:S.foregroundTitleColor)&&(Y==null?0:(P=Y.dismissButtonColorData)==null?0:P.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.hK(Y.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.hK(Y.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.hK(Y.dismissButtonColorData.foregroundTitleColor)+";"};
_.z.computeBannerStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.z.computeLocation=function(Y){switch(Y==null?void 0:Y.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.z.shouldShowTileSection=function(Y,S,P){return!this.shouldExpandLogo(Y,S,P)&&S};
_.z.shouldShowExpandedLogoSection=function(Y,S,P){return this.shouldExpandLogo(Y,S,P)&&Y!==void 0&&this.hasLogo(Y)};
_.z.shouldExpandLogo=function(Y,S,P){return Y&&S?!1:P>=2};
_.z.hasStaticTile=function(Y){return!(Y==null||!Y.tileImage)};
_.z.hasTileLottie=function(Y){var S;return!!(Y==null?0:(S=Y.tileLottie)==null?0:S.url)};
_.z.hasLogo=function(Y){return this.getCurrentLogo(Y,this.isDarkTheme)!==void 0};
_.z.getLogoHeight=function(Y){return this.logoWithPadding(Y)?"26":"20"};
_.z.getExpandedLogoHeight=function(Y){return this.logoWithPadding(Y)?"31":"24"};
_.z.getLogoImageId=function(Y){return this.logoWithPadding(Y)?"logo-image-with-padding":"logo-image"};
_.z.hasBackgroundLottie=function(Y){var S;return!!(Y==null?0:(S=Y.backgroundLottie)==null?0:S.url)};
_.z.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var Y,S;(Y=this.tileLottieAnimationRef)==null||(S=Y.lottieEl)==null||S.play();var P,u;(P=this.backgroundLottieAnimationRef)==null||(u=P.lottieEl)==null||u.play()}};
_.z.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var Y,S;(Y=this.tileLottieAnimationRef)==null||(S=Y.lottieEl)==null||S.pause();var P,u;(P=this.backgroundLottieAnimationRef)==null||(u=P.lottieEl)==null||u.pause()}};
_.z.pauseLottie=function(){var Y,S;(Y=this.tileLottieAnimationRef)==null||(S=Y.lottieEl)==null||S.pause();var P,u;(P=this.backgroundLottieAnimationRef)==null||(u=P.lottieEl)==null||u.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.z.performPrimaryButtonAction=function(){var Y,S,P;((Y=this.data)==null?0:(S=Y.primaryButton)==null?0:(P=S.buttonRenderer)==null?0:P.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.z.requestElementsPerRow=function(){_.ms(this.hostElement,"yt-request-elements-per-row")};
_.z.updateButtonPalette=function(){if(this.data&&this.currentColorData){var Y;((Y=this.data.dismissButton)==null?0:Y.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var S;if((S=this.data.primaryButton)==null?0:S.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 P;if((P=this.data.secondaryButton)==
null?0:P.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 u;((u=this.data.primaryButton)==null?0:u.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var W;((W=this.data.secondaryButton)==null?0:W.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.z.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var Y=this.getTileLottieDataBasedOnTheme(),S,P;if(Y.url!==((S=this.tileLottiePlayerProps)==null?void 0:(P=S.animationConfig)==null?void 0:P.path)){var u,W;(u=this.tileLottieAnimationRef)==null||(W=u.lottieEl)==null||W.destroy();var m;this.isOnHoverBehaviorForLottieEnabled=!((m=Y.settings)==null?0:m.autoplay);var J,c;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(c=(J=Y.settings)==null?void 0:J.autoplay)!=null?c:!1,loop:this.getLottieLoopValue(Y.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof Y.url==="string"?this.tileLottiePlayerProps.animationConfig.path=Y.url:this.tileLottiePlayerProps.animationConfig.animationData=Y.url}}};
_.z.getOverflowButton=function(Y){return _.g(Y.overflowButton,uUL)};
_.z.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var Y=this.getBackgroundLottieDataBasedOnTheme(),S,P;if(Y.url!==((S=this.backgroundLottiePlayerProps)==null?void 0:(P=S.animationConfig)==null?void 0:P.path)){var u,W;(u=this.backgroundLottieAnimationRef)==null||(W=u.lottieEl)==null||W.destroy();var m;this.isOnHoverBehaviorForLottieEnabled=!((m=Y.settings)==null?0:m.autoplay);var J,c;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(c=(J=Y.settings)==null?void 0:J.autoplay)!=null?c:!1,loop:this.getLottieLoopValue(Y.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof Y.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=Y.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
Y.url}}};
_.z.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var Y;((Y=this.tileLottieAnimationRef)==null?void 0:Y.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var S;((S=this.backgroundLottieAnimationRef)==null?void 0:S.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.z.getTileLottieDataBasedOnTheme=function(){var Y;if(this.isDarkTheme&&((Y=this.data)==null?0:Y.darkThemeTileLottie))return this.data.darkThemeTileLottie;var S;return((S=this.data)==null?0:S.tileLottie)?this.data.tileLottie:{}};
_.z.getBackgroundLottieDataBasedOnTheme=function(){var Y;if(this.isDarkTheme&&((Y=this.data)==null?0:Y.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var S;return((S=this.data)==null?0:S.backgroundLottie)?this.data.backgroundLottie:{}};
_.z.onUpdateElementsPerRowAction=function(Y){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y)};
_.z.getLottieLoopValue=function(Y){return Y?Y.loop!==void 0?Y.loop:Y.loopCount?Y.loopCount-1:!0:!0};
_.z.logoWithPadding=function(Y){var S,P,u;return(Y=(S=this.getCurrentLogo(Y,this.isDarkTheme))==null?void 0:(P=S.thumbnails)==null?void 0:(u=P[0])==null?void 0:u.height)&&Y%31===0?!0:!1};
Ep.prototype.currentColorChanged=Ep.prototype.currentColorChanged;Ep.prototype.themeChanged=Ep.prototype.themeChanged;Ep.prototype.dataChanged=Ep.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],Ep.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Ep.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Ep.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ep.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Ep.prototype,"primaryButton",void 0);_.Q([_.X(),_.k("design:type",Object)],Ep.prototype,"secondaryButton",void 0);
_.Q([_.X({reflectToAttribute:!0,value:3}),_.k("design:type",Number)],Ep.prototype,"elementsPerRow",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Ep.prototype,"isDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Ep.prototype,"hasTile",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Ep.prototype,"hasMetadata",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Ep.prototype,"showLogoImage",void 0);_.Q([_.X(),_.k("design:type",Object)],Ep.prototype,"currentColorData",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.k("design:type",String)],Ep.prototype,"bannerStyle",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.k("design:type",String)],Ep.prototype,"location",void 0);
_.Q([_.X(),_.k("design:type",Object)],Ep.prototype,"tileLottiePlayerProps",void 0);_.Q([_.X(),_.k("design:type",Object)],Ep.prototype,"tileLottieAnimationRef",void 0);_.Q([_.X(),_.k("design:type",Object)],Ep.prototype,"backgroundLottiePlayerProps",void 0);_.Q([_.X(),_.k("design:type",Object)],Ep.prototype,"backgroundLottieAnimationRef",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Ep.prototype,"useBiggerShowcaseImage",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ep.prototype,"isHideEnclosingAction",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ep.prototype,"dataChanged",null);_.Q([_.cZ("isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ep.prototype,"themeChanged",null);
_.Q([_.cZ("currentColorData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ep.prototype,"currentColorChanged",null);Ep=_.Q([_.t({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Ep);
_.A(Ep,"ytd-statement-banner-renderer",function(){if(d03!==void 0)return d03;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n    <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n  </ytd-lottie-player></div>\n  <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n      <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n        <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n      </ytd-lottie-player></div>\n    </div>\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n      <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n      <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-dynamic-sizing-formatted-string>\n          <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n        </div>\n        <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n        </div>\n      </div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return d03=Y},{mode:1});var lUd;var fp=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSearch=!1;Y.hideShelfHeader=!1;Y.engagementPanel=!1;Y.disableMouseScroll=!0;Y.useFloorScrolling=!0;Y.modernTypography=_.f("web_modern_typography");return Y};
_.r(fp,_.Z);fp.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Td("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Td("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
fp.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
fp.prototype.onDataChanged=fp.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],fp.prototype,"isSearch",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fp.prototype,"hideShelfHeader",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fp.prototype,"engagementPanel",void 0);_.Q([_.X(),_.k("design:type",Object)],fp.prototype,"disableMouseScroll",void 0);_.Q([_.X(),_.k("design:type",Object)],fp.prototype,"useFloorScrolling",void 0);_.Q([_.X(),_.k("design:type",Object)],fp.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fp.prototype,"modernTypography",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fp.prototype,"onDataChanged",null);fp=_.Q([_.t({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],fp);
_.A(fp,"ytd-reel-shelf-renderer",function(){if(lUd!==void 0)return lUd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return lUd=Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var XcU;var Z4f=_.AI(function(Y){var S=Y.data;Y=Y.useSmallFont;var P={},u={};return _.R("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.R(_.gw,{cond:function(){return S().favicon},
then:function(W){return _.R(_.ZZ,{data:W,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.R("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.R(_.qw,{text:function(){return S().title},
className:_.Si("yt-channel-external-link-view-model-wiz__title",(P["yt-channel-external-link-view-model-wiz__title--title-small-font"]=Y,P)),ellipsisTruncate:!0,userInput:!0}),_.R(_.qw,{text:function(){return S().link},
className:_.Si("yt-channel-external-link-view-model-wiz__link",(u["yt-channel-external-link-view-model-wiz__link--link-small-font"]=Y,u)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"ub");
Z4f.idomCompat=!0;_.AL(Z4f,"yt-channel-external-link-view-model",{props:{data:_.wm,useSmallFont:_.wm}});_.$s("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var gs=function(){var Y=_.Z.apply(this,arguments)||this;Y.revealButtonClass="button";Y.businessEmailDisplayState="HIDE_SECTION";return Y};
_.r(gs,_.Z);_.z=gs.prototype;_.z.refit=function(){var Y=this;_.w0(function(){_.jR(Y.hostElement,"yt-refit-popups-action")});
_.ky(this,function(){_.jR(Y.hostElement,"yt-refit-popups-action")})};
_.z.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Xv("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.z.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"};
_.z.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.z.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"}}}};
_.z.computeEmailHref=function(Y){return"mailto:"+Y};
_.z.computeSafeUrl=function(Y){if(Y)return _.Bx(Y)};
_.z.linkEndpoint=function(Y){return _.g(Y.onTap,_.hL)};
_.z.linkEndpointToHref=function(Y){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(Y))};
_.z.onYtServiceRequestCompleted=function(Y){var S;if((S=Y.detail.data)==null?0:S.businessEmail)this.businessEmail=Y.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var P;if((P=Y.detail.data)==null?0:P.errorMessage)this.businessEmailErrorMessage=Y.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.z.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var Y=this.JSC$13972_captchaTextarea.value;if(Y){Y={recaptcha_response_token:Y,channel_id:this.metadata.channelId};var S=_.g(this.metadata.onBusinessEmailRevealClickCommand,_.hL);S&&this.ytComponentBehavior.resolveCommand(S,{form:Y})}}};
_.z.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.y6.Object.defineProperties(gs.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var Y;return _.g((Y=this.data)==null?void 0:Y.metadata,Pdt)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.g(this.metadata.businessEmailRevealButton,_.Gz)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var Y=new URL(this.metadata.canonicalChannelUrl);return Y.host+Y.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.g(this.metadata.learnMoreOnTap,_.hL)}}});
gs.prototype.onYtServiceRequestCompleted=gs.prototype.onYtServiceRequestCompleted;gs.prototype.businessEmailMetadataChanged=gs.prototype.businessEmailMetadataChanged;gs.prototype.refit=gs.prototype.refit;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],gs.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.nc("#g-recaptcha-response"),_.k("design:type",HTMLTextAreaElement)],gs.prototype,"JSC$13972_captchaTextarea",void 0);_.Q([_.X(),_.k("design:type",Object)],gs.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],gs.prototype,"revealButtonClass",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],gs.prototype,"metadata",null);
_.Q([_.d("metadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],gs.prototype,"revealButton",null);_.Q([_.d("metadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],gs.prototype,"channelDisplayUrl",null);_.Q([_.cZ("metadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gs.prototype,"refit",null);_.Q([_.d("metadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],gs.prototype,"formattedDescription",null);
_.Q([_.d("metadata","learnMoreCommand"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gs.prototype,"shouldRendereVerifiedPhoneStatus",null);_.Q([_.d("metadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],gs.prototype,"learnMoreCommand",null);_.Q([_.X(),_.k("design:type",String)],gs.prototype,"businessEmailDisplayState",void 0);_.Q([_.X(),_.k("design:type",String)],gs.prototype,"businessEmail",void 0);
_.Q([_.X(),_.k("design:type",String)],gs.prototype,"businessEmailErrorMessage",void 0);_.Q([_.cZ("metadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gs.prototype,"businessEmailMetadataChanged",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],gs.prototype,"onYtServiceRequestCompleted",null);
gs=_.Q([_.t({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],gs);
_.A(gs,"ytd-about-channel-renderer",function(){if(XcU!==void 0)return XcU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return XcU=Y},{mode:1});var i4S;var $b=function(){return _.Z.apply(this,arguments)||this};
_.r($b,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$b.prototype,"data",void 0);$b=_.Q([_.t({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],$b);
_.A($b,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(i4S!==void 0)return i4S;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return i4S=Y},{mode:1});var oHt;var rs=function(){return _.Z.apply(this,arguments)||this};
_.r(rs,_.Z);rs.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],rs.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],rs.prototype,"aligment",void 0);rs=_.Q([_.t({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],rs);
_.A(rs,"ytd-channel-list-sub-menu-renderer",function(){if(oHt!==void 0)return oHt;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return oHt=
Y},{mode:1});var ty_;var Gh=function(){return _.Z.apply(this,arguments)||this};
_.r(Gh,_.Z);Gh.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Gh.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Gh.prototype,"data",void 0);Gh=_.Q([_.t({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Gh);
_.A(Gh,"ytd-channel-sub-menu-renderer",function(){if(ty_!==void 0)return ty_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ty_=Y},{mode:1});var Aeu;var U0t;var hR=function(){var Y=_.Z.apply(this,arguments)||this;Y.isCompact=!1;return Y};
_.r(hR,_.Z);_.y6.Object.defineProperties(hR.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((S=_.g((Y=this.data)==null?void 0:Y.endpoint,_.tp))==null?void 0:S.target)==="TARGET_NEW_WINDOW"}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],hR.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],hR.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],hR.prototype,"isCompact",void 0);_.Q([_.d("isCompact"),_.k("design:type",Number),_.k("design:paramtypes",[])],hR.prototype,"thumbnailWidth",null);
_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],hR.prototype,"openNewWindow",null);hR=_.Q([_.t({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],hR);
_.A(hR,"ytd-media-lockup-renderer",function(){if(U0t!==void 0)return U0t;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return U0t=Y},{mode:1});var QVi;var v$=function(){return _.Z.apply(this,arguments)||this};
_.r(v$,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],v$.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],v$.prototype,"data",void 0);v$=_.Q([_.t({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],v$);
_.A(v$,"ytd-structured-description-channel-lockup-renderer",function(){if(QVi!==void 0)return QVi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return QVi=Y},{mode:1});var kvU;var D8=function(){var Y=_.Z.apply(this,arguments)||this;Y.isCompact=!1;Y.collections=_.f("web_modern_collections_v2");Y.collectionsStackColor=_.f("modernize_structured_description_playlist_lockups_v2");return Y};
_.r(D8,_.Z);D8.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:_.f("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.y6.Object.defineProperties(D8.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u,W,m;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(Y=this.data)==null?void 0:(S=Y.thumbnail)==null?void 0:S.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(P=this.data)==null?void 0:(u=P.thumbnail)==null?void 0:u.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(W=this.data)==null?void 0:(m=W.thumbnail)==
null?void 0:m.vibrantColorPalette:void 0}}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],D8.prototype,"componentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],D8.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],D8.prototype,"showSidePanelThumbnailOverlay",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],D8.prototype,"isCompact",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],D8.prototype,"collections",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],D8.prototype,"collectionsStackColor",void 0);_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],D8.prototype,"twoLineTitle",null);
_.Q([_.d("data","collections","collectionsStackColor"),_.k("design:type",Object),_.k("design:paramtypes",[])],D8.prototype,"collectionStack",null);D8=_.Q([_.t({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],D8);
_.A(D8,"ytd-structured-description-playlist-lockup-renderer",function(){if(kvU!==void 0)return kvU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return kvU=Y},{mode:1});var Myf;var IP=function(){return _.Z.apply(this,arguments)||this};
_.r(IP,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],IP.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],IP.prototype,"data",void 0);IP=_.Q([_.t({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],IP);
_.A(IP,"ytd-structured-description-video-lockup-renderer",function(){if(Myf!==void 0)return Myf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Myf=Y},{mode:2});var aP=function(){return _.Z.apply(this,arguments)||this};
_.r(aP,_.Z);
aP.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],aP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],aP.prototype,"data",void 0);aP=_.Q([_.t({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],aP);
_.A(aP,"ytd-compact-infocard-renderer",function(){if(Aeu!==void 0)return Aeu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Aeu=Y},{mode:1});var yem;var Lp=function(){var Y=_.Z.apply(this,arguments)||this;Y.useModernCollectionsV2=_.f("web_modern_collections_v2");return Y};
_.r(Lp,_.Z);Lp.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.y6.Object.defineProperties(Lp.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],Lp.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Lp.prototype,"ytdReduxBehavior",void 0);_.Q([_.X({selector:_.wv}),_.k("design:type",Object)],Lp.prototype,"isGridViewEnabled",void 0);
_.Q([_.d("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Lp.prototype,"watchFeedBigThumbs",null);_.Q([_.d("isGridViewEnabled","data"),_.X({reflectToAttribute:!0,value:"168"}),_.k("design:type",String),_.k("design:paramtypes",[])],Lp.prototype,"thumbnailWidth",null);_.Q([_.d("isGridViewEnabled","data"),_.X({reflectToAttribute:!0,value:"94"}),_.k("design:type",String),_.k("design:paramtypes",[])],Lp.prototype,"customThumbnailSize",null);
_.Q([_.X(),_.k("design:type",Object)],Lp.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Lp.prototype,"useModernCollectionsV2",void 0);Lp=_.Q([_.t({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Lp);
_.A(Lp,"ytd-compact-playlist-renderer",function(){if(yem!==void 0)return yem;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return yem=Y},{mode:1});var NMS;var ws=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");Y.roundedContainer=!0;Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return Y};
_.r(ws,_.Z);_.z=ws.prototype;_.z.attached=function(){this.requestElementsPerRow()};
_.z.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"}}}};
_.z.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.z.computeViewStyle=function(Y){return Y.style?Y.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.z.onUpdateElementsPerRowAction=function(Y){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&Y===1};
_.z.requestElementsPerRow=function(){_.ms(this.hostElement,"yt-request-elements-per-row")};
ws.prototype.dataChanged=ws.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],ws.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],ws.prototype,"actionHandlerBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],ws.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],ws.prototype,"hideThumbnail",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.k("design:type",String)],ws.prototype,"viewStyle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],ws.prototype,"darkerDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],ws.prototype,"roundedContainer",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ws.prototype,"dataChanged",null);ws=_.Q([_.t({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],ws);
_.A(ws,"ytd-compact-promoted-item-renderer",function(){if(NMS!==void 0)return NMS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return NMS=Y},{mode:1});var H4u;var pp=function(){var Y=_.Z.apply(this,arguments)||this;Y.collections=_.f("web_modern_collections_v2");return Y};
_.r(pp,_.Z);pp.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
pp.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
pp.prototype.onYtNavigate=function(Y,S){var P=this;if(S.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",S)){var u=this.get("watchEndpoint.videoId",S.endpoint),W=_.jR(this.hostElement,"yt-get-current-video-id-action")[0];_.f("kevlar_mix_handle_first_endpoint_different")&&u&&W&&u!==W||(Y.stopPropagation(),_.ks().getPlayerPromise().then(function(m){if(m.getPlayerState()===0&&P.data.secondaryNavigationEndpoint)var J=P.data.secondaryNavigationEndpoint;else{J=
Object.assign({},S.endpoint);var c=_.g(J.commandMetadata,_.Yo);c&&(m=Math.floor(m.getCurrentTime()),c.url=_.NP(c.url,{t:m}),!_.f("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(c=_.g(J,_.yx)))&&(c.startTimeSeconds=m)}_.ms(P.hostElement,"yt-navigate",{endpoint:J})}))}};
_.y6.Object.defineProperties(pp.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u,W,m;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(Y=this.data)==null?void 0:(S=Y.thumbnail)==null?void 0:S.sampledThumbnailColor,vibrantColorPalette:(P=this.data)==null?void 0:(u=P.thumbnail)==null?void 0:u.vibrantColorPalette,darkColorPalette:(W=this.data)==null?void 0:(m=W.thumbnail)==null?void 0:m.darkColorPalette,experimentEnabled:this.collections}}}});
pp.prototype.onYtNavigate=pp.prototype.onYtNavigate;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.eo.YtEndpointBehavior),_.k("design:type",Object)],pp.prototype,"ytEndpointBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],pp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],pp.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.p(_.Fc),_.k("design:type",Object)],pp.prototype,"ytdLockupBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],pp.prototype,"ytdReduxBehavior",void 0);_.Q([_.X({selector:_.wv}),_.k("design:type",Object)],pp.prototype,"isGridViewEnabled",void 0);_.Q([_.d("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],pp.prototype,"watchFeedBigThumbs",null);
_.Q([_.d("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],pp.prototype,"thumbnailWidth",null);_.Q([_.X(),_.k("design:type",Object)],pp.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],pp.prototype,"collections",void 0);_.Q([_.d("data","collections"),_.k("design:type",Object),_.k("design:paramtypes",[])],pp.prototype,"collectionStack",null);
_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],pp.prototype,"onYtNavigate",null);pp=_.Q([_.t({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],pp);
_.A(pp,"ytd-compact-radio-renderer",function(){if(H4u!==void 0)return H4u;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return H4u=Y},{mode:1});var VyS;var Fq=function(){return _.Z.apply(this,arguments)||this};
_.r(Fq,_.Z);Fq.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Fq.prototype.computeRendererStyle=function(Y){return Y.style?Y.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.Q([_.X(),_.k("design:type",Object)],Fq.prototype,"data",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Fq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Fq.prototype,"rendererBehavior",void 0);_.Q([_.X({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],Fq.prototype,"rendererStyle",void 0);
Fq=_.Q([_.t({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Fq);
_.A(Fq,"ytd-compact-text-promo-renderer",function(){if(VyS!==void 0)return VyS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return VyS=Y},{mode:1});var esJ;var sp=function(){var Y=_.Z.apply(this,arguments)||this;Y.isShortsStyle=!1;return Y};
_.r(sp,_.Z);_.z=sp.prototype;_.z.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"}}}};
_.z.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.ms(this.hostElement,"yt-disable-lockup-interaction"):_.ms(this.hostElement,"yt-enable-lockup-interaction"))};
_.z.isMetaBlockEmpty=function(Y){return!Y||!Y.longBylineText&&!Y.shortBylineText&&!Y.shortViewCountText&&!Y.viewCountText};
_.z.computeHasOneLineTitle=function(Y){return this.forceOneLineTitle||!(Y==null||!Y.buttons)};
_.z.computeDisableInteraction=function(){var Y;return!((Y=this.data)==null?0:Y.navigationEndpoint)};
_.z.hasSingularTopStandaloneBadge=function(){var Y;return!((Y=this.data)==null||!Y.topStandaloneBadge)};
_.y6.Object.defineProperties(sp.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var Y;return this.hasSingularTopStandaloneBadge()?[(Y=this.data)==null?void 0:Y.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var Y;return this.shouldShowTopBadges?((Y=this.data)==null?void 0:Y.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
sp.prototype.disableInteractionChanged=sp.prototype.disableInteractionChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],sp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],sp.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],sp.prototype,"ytdLockupBehavior",void 0);
_.Q([_.p(_.Gn),_.k("design:type",Object)],sp.prototype,"ytdReduxBehavior",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.k("design:type",Boolean)],sp.prototype,"metaBlockEmpty",void 0);_.Q([_.X({selector:_.wv}),_.k("design:type",Object)],sp.prototype,"isGridViewEnabled",void 0);_.Q([_.d("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],sp.prototype,"watchFeedBigThumbs",null);
_.Q([_.d("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],sp.prototype,"thumbnailWidth",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],sp.prototype,"isShortsStyle",void 0);_.Q([_.X(),_.k("design:type",Object)],sp.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.k("design:type",Boolean)],sp.prototype,"hasOneLineTitle",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],sp.prototype,"hideThumbnail",void 0);_.Q([_.X(),_.k("design:type",Boolean)],sp.prototype,"forceOneLineTitle",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.k("design:type",Boolean)],sp.prototype,"disableInteraction",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],sp.prototype,"musicMetadataVideoLockup",void 0);
_.Q([_.zY("disableInteraction"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sp.prototype,"disableInteractionChanged",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],sp.prototype,"shouldShowTopBadges",null);_.Q([_.d("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],sp.prototype,"topBadges",null);
_.Q([_.d("shouldShowTopBadges","data"),_.k("design:type",Array),_.k("design:paramtypes",[])],sp.prototype,"inlineMetadataBadges",null);_.Q([_.d("shouldShowTopBadges"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],sp.prototype,"shouldShowBadgesBelowMetadata",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],sp.prototype,"compactTitleClass",null);sp=_.Q([_.t({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],sp);
_.A(sp,"ytd-compact-video-renderer",function(){if(esJ!==void 0)return esJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return esJ=Y},{mode:_.OX("kevlar_poly_si_batch_j067")?1:2});var O4s;_.$s("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var ds=function(){return _.Z.apply(this,arguments)||this};
_.r(ds,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ds.prototype,"data",void 0);ds=_.Q([_.t({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],ds);
_.A(ds,"ytd-counterfactual-renderer",function(){if(O4s!==void 0)return O4s;var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return O4s=Y},{mode:1});var YS3;var lS=function(){var Y=_.Z.apply(this,arguments)||this;Y.hidden=!1;return Y};
_.r(lS,_.Z);lS.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.E().resolve(_.uY).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
lS.prototype.computeHidden=function(Y){return!!Y};
_.y6.Object.defineProperties(lS.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],lS.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.k("design:type",Object)],lS.prototype,"hidden",void 0);_.Q([_.d("data.label"),_.k("design:type",String),_.k("design:paramtypes",[])],lS.prototype,"label",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],lS.prototype,"value",null);
lS=_.Q([_.t({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],lS);
_.A(lS,"ytd-dropdown-item-renderer",function(){if(YS3!==void 0)return YS3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return YS3=Y},{mode:1});var SSi;var P86;var Xq=function(){return _.Z.apply(this,arguments)||this};
_.r(Xq,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Xq.prototype,"data",void 0);_.Q([_.X({computed:"getSimpleString(data.label)"}),_.k("design:type",String)],Xq.prototype,"label",void 0);Xq=_.Q([_.t({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Xq);
_.A(Xq,"ytd-navigation-dropdown-item-renderer",function(){if(P86!==void 0)return P86;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return P86=Y},{mode:1});var Z8=function(){var Y=_.Z.apply(this,arguments)||this;Y.disabled=!1;Y.value="";Y.noLabelFloat=!1;Y.noUnderline=!1;Y.usePrimaryColor=!1;Y.hasBackground=!1;Y.verticalAlign="top";Y.autosize=!1;Y.minAutosizeWidth=100;Y.autosizeFont="14px Roboto";return Y};
_.r(Z8,_.Z);_.z=Z8.prototype;_.z.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"}}}};
_.z.open=function(){this.inputEl.open()};
_.z.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.z.dataChanged=function(){this.reset()};
_.z.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("value-changed",this.value))};
_.z.stopPropagation=function(Y){Y.stopPropagation()};
_.z.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var Y=this.canvas.getContext("2d");Y&&(Y.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(Y.measureText(this.inputEl.value).width)+24)+"px")}};
_.z.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var Y=0,S=this.data.entries.length;Y<S;Y++){var P=this.data.entries[Y],u;for(u in P)if(P.hasOwnProperty(u)){var W=P[u];if("isSelected"in W&&W.isSelected)return"stringValue"in W?W.stringValue||"":"int32Value"in W?W.int32Value||0:0}}return null};
_.z.updateValueFromBinding=function(Y){this.value=Y.detail.value};
_.y6.Object.defineProperties(Z8.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var Y=0,S=this.data.entries.length;Y<S;Y++){var P=this.data.entries[Y],u;for(u in P)if(P.hasOwnProperty(u)){var W=P[u];if("isSelected"in W&&W.isSelected&&"label"in W)return this.ytRendererBehavior.getSimpleString(W.label)}}return null}}});
Z8.prototype.autoSizeLabel=Z8.prototype.autoSizeLabel;Z8.prototype.stopPropagation=Z8.prototype.stopPropagation;Z8.prototype.valueChangedForBinding=Z8.prototype.valueChangedForBinding;Z8.prototype.dataChanged=Z8.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Z8.prototype,"ytRendererStamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],Z8.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Z8.prototype,"disabled",void 0);_.Q([_.X(),_.k("design:type",Object)],Z8.prototype,"value",void 0);_.Q([_.X(),_.k("design:type",Object)],Z8.prototype,"noLabelFloat",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Z8.prototype,"noUnderline",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],Z8.prototype,"theme",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Z8.prototype,"usePrimaryColor",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Z8.prototype,"hasBackground",void 0);_.Q([_.X(),_.k("design:type",Object)],Z8.prototype,"verticalAlign",void 0);_.Q([_.X(),_.k("design:type",Object)],Z8.prototype,"autosize",void 0);_.Q([_.X(),_.k("design:type",Object)],Z8.prototype,"minAutosizeWidth",void 0);_.Q([_.X(),_.k("design:type",Object)],Z8.prototype,"autosizeFont",void 0);
_.Q([_.nc("#entries"),_.k("design:type",Object)],Z8.prototype,"entries",void 0);_.Q([_.nc("#input"),_.k("design:type",Object)],Z8.prototype,"inputEl",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Z8.prototype,"dataChanged",null);_.Q([_.cZ("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Z8.prototype,"valueChangedForBinding",null);
_.Q([_.WZ("iron-overlay-opened"),_.WZ("iron-overlay-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Z8.prototype,"stopPropagation",null);_.Q([_.WZ("iron-select"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Z8.prototype,"autoSizeLabel",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Z8.prototype,"label",null);
Z8=_.Q([_.t({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Z8);
_.A(Z8,"ytd-dropdown-renderer",function(){if(SSi!==void 0)return SSi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return SSi=Y},{mode:1});var ugU;var iS=function(){var Y=_.Z.apply(this,arguments)||this;Y.isConstrainedList=!1;return Y};
_.r(iS,_.Z);iS.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"}}}};
iS.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
iS.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
iS.prototype.computeViewAllHidden=function(Y,S){return Y||!S.viewAllEndpoint};
iS.prototype.fillRestIfNoShowMore=iS.prototype.fillRestIfNoShowMore;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.QG.YtLazyListBehavior),_.k("design:type",Object)],iS.prototype,"ytLazyListBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],iS.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],iS.prototype,"isConstrainedList",void 0);_.Q([_.cZ("data","canShowMore"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iS.prototype,"fillRestIfNoShowMore",null);iS=_.Q([_.t({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],iS);
_.A(iS,"ytd-expanded-shelf-contents-renderer",function(){if(ugU!==void 0)return ugU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ugU=Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var WBJ;var oP=function(){return _.Z.apply(this,arguments)||this};
_.r(oP,_.Z);oP.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],oP.prototype,"data",void 0);oP=_.Q([_.t({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],oP);
_.A(oP,"ytd-feed-channel-filter-header-renderer",function(){if(WBJ!==void 0)return WBJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return WBJ=Y},{mode:1});var zQh;var m66;var nz3;var tR=function(){return _.Z.apply(this,arguments)||this};
_.r(tR,_.Z);_.z=tR.prototype;_.z.onClick=function(Y){var S,P=(S=this.data)==null?void 0:S.sectionEndpoint;!_.iN(_.iM(Y),this.hostElement,["A".toString()])&&P&&_.ms(this.hostElement,"yt-navigate",{endpoint:P})};
_.z.computeHasSectionEndpoint=function(Y){return(Y==null?void 0:Y.sectionEndpoint)!==void 0};
_.z.computeShowHeaderAsLink=function(Y){return(Y==null?void 0:Y.header)!==void 0&&(Y==null?void 0:Y.sectionEndpoint)!==void 0};
_.z.computeShowSubheaderAsLink=function(Y){return(Y==null?void 0:Y.subheader)!==void 0&&(Y==null?void 0:Y.sectionEndpoint)!==void 0&&(Y==null?void 0:Y.header)===void 0};
_.z.getHeaderAsLinkClass=function(Y){var S=[],P;(Y==null?0:(P=Y.headerIcon)==null?0:P.iconType)&&S.push("header-link-active");return S.join(" ")};
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],tR.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],tR.prototype,"data",void 0);
_.Q([_.X({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],tR.prototype,"hasSectionEndpoint",void 0);_.Q([_.X({computed:"computeShowHeaderAsLink(data)"}),_.k("design:type",Boolean)],tR.prototype,"showHeaderAsLink",void 0);_.Q([_.X({computed:"computeShowSubheaderAsLink(data)"}),_.k("design:type",Boolean)],tR.prototype,"showSubheaderAsLink",void 0);tR=_.Q([_.t({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],tR);
_.A(tR,"ytd-medical-panel-section-renderer",function(){if(nz3!==void 0)return nz3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return nz3=Y},{mode:1});var AR=function(){var Y=_.Z.apply(this,arguments)||this;Y.isExpanded=!1;Y.roundedContainer=!0;Y.skipRoundingTop=!1;Y.toggleExpandableSection=function(){Y.isExpanded=!Y.isExpanded};
return Y};
_.r(AR,_.Z);
AR.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]]"}}}}}};
AR.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
AR.prototype.dataChanged=AR.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],AR.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],AR.prototype,"isExpanded",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],AR.prototype,"roundedContainer",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],AR.prototype,"skipRoundingTop",void 0);_.Q([_.X(),_.k("design:type",Object)],AR.prototype,"toggleExpandableSection",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AR.prototype,"dataChanged",null);AR=_.Q([_.t({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],AR);
_.A(AR,"ytd-medical-panel-content-renderer",function(){if(m66!==void 0)return m66;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return m66=Y},{mode:1});_.$s("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Up=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundedContainer=!0;Y.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");Y.hasTitle=!1;Y.linkIcon="OPEN_IN_NEW";Y.isDismissed=!1;return Y};
_.r(Up,_.Z);
Up.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"}}}};
Up.prototype.computeHasTitle=function(Y){return!(Y==null||!Y.title)};
Up.prototype.onClick=function(Y){var S,P=(S=this.data)==null?void 0:S.headerEndpoint;!_.iN(_.iM(Y),this.hostElement,["BUTTON".toString()])&&P&&this.ytComponentBehavior.resolveCommand(P)};
_.y6.Object.defineProperties(Up.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:Y.disableBottomDivider)||!((S=this.data)==null?0:S.title)}}});
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Up.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Up.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Up.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Up.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Up.prototype,"roundedContainer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Up.prototype,"amsterdamEnabled",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.k("design:type",Object)],Up.prototype,"hasTitle",void 0);
_.Q([_.X({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.d("data.background"),_.k("design:type",Object),_.k("design:paramtypes",[])],Up.prototype,"background",null);_.Q([_.X({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.d("data.titleStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Up.prototype,"titleStyle",null);
_.Q([_.X({type:_.f("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.d("data.titleStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Up.prototype,"showLinkIcon",null);_.Q([_.X(),_.k("design:type",String)],Up.prototype,"linkIcon",void 0);_.Q([_.X({type:_.f("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Up.prototype,"hideDivider",null);
_.Q([_.X({selectorArgs:["data.dismissStateEntityKey"],selector:function(Y,S){Y=_.BT(Y.entities,"dismissState",S);return(Y==null?void 0:Y.isDismissed)||(Y==null?void 0:Y.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(Y==null?void 0:Y.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.k("design:type",Object)],Up.prototype,"isDismissed",void 0);Up=_.Q([_.t({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Up);
_.A(Up,"ytd-info-panel-container-renderer",function(){if(zQh!==void 0)return zQh;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return zQh=Y},{mode:1});var jCi;_.$s("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var Qo=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernTypography=_.f("web_modern_typography");return Y};
_.r(Qo,_.Z);Qo.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Qo.prototype.computeStyle=function(Y){return Y?Y:""};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Qo.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Qo.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.k("design:type",String)],Qo.prototype,"titleStyle",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Qo.prototype,"modernTypography",void 0);Qo=_.Q([_.t({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],Qo);
_.A(Qo,"ytd-item-section-header-renderer",function(){if(jCi!==void 0)return jCi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return jCi=Y},{mode:1});var JSd;var Bid,cS_=function(){return Bid!==void 0?Bid:Bid=document.createElement("template")};
document.head.appendChild(cS_().content);var C83;_.kb=new _.yH("VOTING_ANIMATION_CONTROLLER_TOKEN");var RQS=_.AI(function(Y){var S=Y.data;var P=_.Ms(),u=_.Ms();Y=_.n(_.qb("VOTE_STATUS_NONE",void 0,"FVF7mc"));var W=Y.next().value,m=Y.next().value,J=_.Jq(NRf,function(){var K;return(K=S())==null?void 0:K.entityKey}),c=_.f("web_enable_voting_animation")||_.f("enable_music_web_cairo_voting_animation");
_.LE(function(){var K;((K=S().initialState)==null?0:K.status)&&m(S().initialState.status)});
var C=function(){var K,G,v=(G=(K=S().initialState)==null?void 0:K.votes)!=null?G:0,a;K=(a=S().initialState)==null?void 0:a.status;return K==="VOTE_STATUS_UPVOTED"?v-1:K==="VOTE_STATUS_DOWNVOTED"?v+1:v},x=function(){return W()==="VOTE_STATUS_UPVOTED"?C()+1:W()==="VOTE_STATUS_DOWNVOTED"?C()-1:C()},b=function(K){var G=K?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
m(G);var v=x(),a=_.E().resolve(_.PQ(_.kb)),w=J();w&&(K&&(w==null?0:w.upvoteDefaultButtonOnTap)?_.ae(w.upvoteDefaultButtonOnTap,{form:{element:P.value},disableClickTracking:!0}):(w==null?0:w.upvoteToggledButtonOnTap)&&_.ae(w.upvoteToggledButtonOnTap,{form:{element:P.value},disableClickTracking:!0}));var F;K=(F=w==null?void 0:w.enableOptimisticReordering)!=null?F:S().enableOptimisticReordering;c&&a&&S().itemId&&K&&qS6(a,S().itemId,v,G)},T=function(K){var G=K?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
m(G);var v=x(),a=_.E().resolve(_.PQ(_.kb)),w=J();w&&(K&&(w==null?0:w.downvoteDefaultButtonOnTap)?_.ae(w.downvoteDefaultButtonOnTap,{form:{element:u.value},disableClickTracking:!0}):(w==null?0:w.downvoteToggledButtonOnTap)&&_.ae(w.downvoteToggledButtonOnTap,{form:{element:u.value},disableClickTracking:!0}));var F;K=(F=w==null?void 0:w.enableOptimisticReordering)!=null?F:S().enableOptimisticReordering;c&&a&&S().itemId&&K&&qS6(a,S().itemId,v,G)};
Y={};Y=_.Si("ytVotingViewModelVoteCount",(Y.ytVotingViewModelVoteCountDisabled=function(){return S().isDisabled},Y));
return _.R("voting-view-model",{class:"ytVotingViewModelHost"},_.R("div",{el:P},_.R(_.rv,{data:function(){var K=_.g(S().upvoteButton,_.hq);return{toggleButtonViewModel:Object.assign({},K,{isToggled:W()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(K){return _.R(_.vL,{data:K.data,
onToggle:b})}})),_.R("div",{class:Y},function(){var K,G,v;
return W()==="VOTE_STATUS_UPVOTED"?(K=S().initialState)==null?void 0:K.compactVotesUpvoted:W()==="VOTE_STATUS_DOWNVOTED"?(G=S().initialState)==null?void 0:G.compactVotesDownvoted:(v=S().initialState)==null?void 0:v.compactVotes}),_.R("div",{el:u},_.R(_.rv,{data:function(){var K=_.g(S().downvoteButton,_.hq);
return{toggleButtonViewModel:Object.assign({},K,{isToggled:W()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(K){return _.R(_.vL,{data:K.data,
onToggle:T})}})))},"vb");_.AL(_.AI(function(Y){var S=Y.data;return _.R("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.R("div",{class:_.Si("ytEngagementBarViewModelEngagementBarWrapper",Y.className)},_.R(_.rv,{data:function(){return S().actions}},{votingViewModel:RQS})))},"wb"),"engagement-bar-view-model",{props:{data:_.wm,
className:_.wm}});var Mp=function(){var Y=_.Z.apply(this,arguments)||this;Y.amsterdamPostMvp=_.f("web_amsterdam_post_mvp_playlists");Y.cairoCollabPlaylistPostMvp=_.f("web_collab_playlist_thumbnail_size");Y.playlistVotingAnimationEnabled=_.f("web_enable_voting_animation");Y.downloadProgress=0;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.downloadState="DOWNLOAD_STATE_UNKNOWN";Y.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";Y.offlineVideoPolicyExpirationTimestamp=0;return Y};
_.r(Mp,_.Z);_.z=Mp.prototype;_.z.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"}}}};
_.z.canReorderChanged=function(){this.persistentDragHandle=_.f("kevlar_playlist_drag_handles")&&this.canReorder};
_.z.onDrag=function(){if(this.thumbnail){var Y=_.I(this.thumbnail).querySelector("yt-image");Y&&(Y.shouldRenderLazy=!1)}};
_.z.onMenuOverlayChanged=function(Y,S){this.menuOpened=S};
_.z.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.z.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.z.onContentsTap=function(Y){var S,P=(S=this.data)==null?void 0:S.serviceEndpoints;if(P&&P.length===1&&_.g(P[0],Wdu)&&!_.iN(_.iM(Y),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(P[0]);else{var u;(S=(u=this.data)==null?void 0:u.navigationEndpoint)&&_.f("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?x66(_.E().resolve(_.l1),S):(_.nd().playlistSuggestionsShelfActivation=
!0,_.bT6(_.E().resolve(_.l1),S)):S&&!_.iN(_.iM(Y),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.f("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.ms(this.hostElement,"yt-navigate",{endpoint:S}):this.ytComponentBehavior.resolveCommand(S))}};
_.z.computeStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.z.computeThumbnailWidth=function(Y){return Y==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.z.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=WDh(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))}};
_.z.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.z.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.z.dataChanged=function(){if(this.data){var Y,S,P,u=((Y=this.downloadRenderData)==null?void 0:Y.badges)&&((S=this.downloadRenderData)==null?void 0:S.badges)!==((P=this.data)==null?void 0:P.badges),W,m,J;Y=((W=this.downloadRenderData)==null?void 0:W.thumbnailOverlays)&&((m=this.downloadRenderData)==null?void 0:m.thumbnailOverlays)!==((J=this.data)==null?void 0:J.thumbnailOverlays);(!this.downloadRenderData||u||Y)&&this.downloadStateChanged()}};
_.z.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var Y,S,P=(Y=this.data.menu)==null?void 0:(S=Y.menuRenderer)==null?void 0:S.items;if(P)for(Y=_.n(P),S=Y.next();!S.done;S=Y.next())if(S=S.value,P=void 0,_.g((P=S.menuServiceItemRenderer)==null?void 0:P.serviceEndpoint,_.hf)){var u=P=void 0,W=void 0;S=(P=S)==null?void 0:(u=P.menuServiceItemRenderer)==null?void 0:(W=u.serviceEndpoint)==null?void 0:W.playlistEditEndpoint;W=u=void 0;if(P=(u=S)==null?void 0:(W=u.actions)==null?void 0:
W[0])u=void 0,P.setVideoId=(u=this.data)==null?void 0:u.setVideoId;W=u=P=void 0;if(S=(P=S)==null?void 0:(u=P.clientActions)==null?void 0:(W=u[0])==null?void 0:W.playlistRemoveVideosAction)P=void 0,S.setVideoIds=[(P=this.data)==null?void 0:P.setVideoId]}}};
_.y6.Object.defineProperties(Mp.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Mp.prototype.setVideoIdChanged=Mp.prototype.setVideoIdChanged;Mp.prototype.dataChanged=Mp.prototype.dataChanged;Mp.prototype.downloadStateChanged=Mp.prototype.downloadStateChanged;Mp.prototype.onMenuOverlayChanged=Mp.prototype.onMenuOverlayChanged;Mp.prototype.canReorderChanged=Mp.prototype.canReorderChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Mp.prototype,"ytdReduxBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],Mp.prototype,"ytdLockupBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],Mp.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Mp.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Mp.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Mp.prototype,"amsterdamPostMvp",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Mp.prototype,"canReorder",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Mp.prototype,"menuOpened",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Mp.prototype,"handleIsHovered",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Mp.prototype,"persistentDragHandle",void 0);
_.Q([_.X(),_.k("design:type",Object)],Mp.prototype,"downloadRenderData",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],Mp.prototype,"styleType",void 0);_.Q([_.X({computed:"computeThumbnailWidth(data.style)"}),_.k("design:type",Number)],Mp.prototype,"thumbnailWidth",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Mp.prototype,"isDownloads",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Mp.prototype,"cairoCollabPlaylistPostMvp",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Mp.prototype,"playlistVotingAnimationEnabled",void 0);_.Q([_.X({selector:lI,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],Mp.prototype,"downloadProgress",void 0);_.Q([_.X(),_.k("design:type",Number)],Mp.prototype,"relativeDateReference",void 0);
_.Q([_.X({selector:_.sC,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],Mp.prototype,"transferState",void 0);_.Q([_.X({selector:D$1,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],Mp.prototype,"downloadState",void 0);_.Q([_.X({selector:qw8,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],Mp.prototype,"offlinePolicyAction",void 0);_.Q([_.X({selector:RSh,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],Mp.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.Q([_.X({selector:bP$,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],Mp.prototype,"entityInfo",void 0);_.Q([_.X({selector:_.pA}),_.k("design:type",Boolean)],Mp.prototype,"miniplayerIsActive",void 0);_.Q([_.d("data"),_.k("design:type",String),_.k("design:paramtypes",[])],Mp.prototype,"playlistVideoId",null);_.Q([_.nc("#thumbnail"),_.k("design:type",Object)],Mp.prototype,"thumbnail",void 0);
_.Q([_.cZ("canReorder"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mp.prototype,"canReorderChanged",null);_.Q([_.WZ("yt-menu-overlay-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Boolean]),_.k("design:returntype")],Mp.prototype,"onMenuOverlayChanged",null);
_.Q([_.cZ("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mp.prototype,"downloadStateChanged",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mp.prototype,"dataChanged",null);
_.Q([_.cZ("data.setVideoId"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mp.prototype,"setVideoIdChanged",null);Mp=_.Q([_.t({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Mp);
_.A(Mp,"ytd-playlist-video-renderer",function(){if(C83!==void 0)return C83;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);Y.content.insertBefore(cS_().content.cloneNode(!0),Y.content.firstChild);return C83=Y},{mode:1});var Ti_;var yo=function(){return _.Z.apply(this,arguments)||this};
_.r(yo,_.Z);_.Q([_.X(),_.k("design:type",Object)],yo.prototype,"data",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],yo.prototype,"rendererBehavior",void 0);yo=_.Q([_.t({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],yo);
_.A(yo,"ytd-premium-browse-footer-renderer",function(){if(Ti_!==void 0)return Ti_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ti_=Y},{mode:1});var KBU;var Np=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return Y};
_.r(Np,_.Z);_.z=Np.prototype;_.z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.z.handleDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.z.computeHeaderLogoThumbnail=function(Y,S){if(Y)return S?Y.darkLogo:Y.lightLogo};
_.z.computeHeaderLogoHeight=function(Y,S){var P,u,W;return(Y=(P=this.computeHeaderLogoThumbnail(Y,S))==null?void 0:(u=P.thumbnails)==null?void 0:(W=u[0])==null?void 0:W.height)&&Y%31===0?"31":"24"};
_.z.computeHeaderLogoMarginBottom=function(Y,S){return this.computeHeaderLogoHeight(Y,S)==="24"?"0":"-7"};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Np.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Np.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Np.prototype,"isDarkTheme",void 0);_.Q([_.X({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.k("design:type",Object)],Np.prototype,"themeLogo",void 0);
_.Q([_.X({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.k("design:type",String)],Np.prototype,"logoHeight",void 0);_.Q([_.X({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.k("design:type",String)],Np.prototype,"logoMarginBottom",void 0);Np=_.Q([_.t({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Np);
_.A(Np,"ytd-primetime-promo-header-renderer",function(){if(KBU!==void 0)return KBU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return KBU=Y},{mode:1});var Ezm;_.Sr(eb1);var WK9;WK9=_.EP({flexibleActionsViewModel:Og_});_.H$=_.WX(z18);_.Sr(z18);_.AL(_.H$,"yt-section-header-view-model",{props:{data:_.wm,className:_.wm,disableHorizontalPadding:_.wm,disableVerticalPadding:_.wm,forceSmallLayout:_.wm,useResponsiveLayout:_.wm,isOverlay:_.wm}});_.$s("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Vo=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return Y};
_.r(Vo,_.Z);_.z=Vo.prototype;_.z.attached=function(){this.requestElementsPerRow()};
_.z.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"}}}};
_.z.onDataChange=function(){var Y=this;_.ky(this,function(){Y.updateItemVisibility()})};
_.z.onUpdateElementsPerRowAction=function(Y){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y,this.updateItemVisibility())};
_.z.updateItemVisibility=function(){var Y=this;this.data&&this.data.panels&&_.I(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(S,P){S.hidden=P>Y.elementsPerRow-1})};
_.z.requestElementsPerRow=function(){_.ms(this.hostElement,"yt-request-elements-per-row")};
Vo.prototype.onDataChange=Vo.prototype.onDataChange;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Vo.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],Vo.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Vo.prototype,"actionHandlerBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],Vo.prototype,"data",void 0);_.Q([_.X({value:3}),_.k("design:type",Number)],Vo.prototype,"elementsPerRow",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vo.prototype,"onDataChange",null);Vo=_.Q([_.t({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Vo);
_.A(Vo,"ytd-primetime-promo-renderer",function(){if(Ezm!==void 0)return Ezm;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ezm=Y},{mode:1});var fht;var ee=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return Y};
_.r(ee,_.Z);ee.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
ee.prototype.handleButtonRefreshAction=function(Y){if(Y=_.g(Y,_.Ge_))this.set("data.button",Y.membershipButton),this.notifyPath("data.button")};
_.y6.Object.defineProperties(ee.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:(S=Y.avatars)==null?void 0:S.slice(0,8))||[]}}});
_.Q([_.X(),_.k("design:type",Object)],ee.prototype,"data",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],ee.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ee.prototype,"rendererBehavior",void 0);_.Q([_.d("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],ee.prototype,"avatars",null);
ee=_.Q([_.t({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],ee);
_.A(ee,"ytd-recognition-shelf-renderer",function(){if(fht!==void 0)return fht;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return fht=Y},{mode:1});var gzU;var $6i;var Op=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernButtons=_.f("web_modern_buttons");return Y};
_.r(Op,_.Z);_.z=Op.prototype;
_.z.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",
videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.z.dataChanged=function(){this.collapsed=!0};
_.z.computeVisibleItems=function(Y,S){return Y!==void 0&&Y.items?S?Y.items.slice(0,this.data.collapsedItemCount):Y.items:[]};
_.z.computeHideShowMore=function(Y,S,P){return Y>=S||!P};
_.z.computeHideShowAll=function(Y,S,P){return!(Y&&S)||P};
_.z.onMoreClick=function(){this.collapsed=!1};
_.y6.Object.defineProperties(Op.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.f("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Op.prototype.dataChanged=Op.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Op.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Op.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Op.prototype,"isSearch",void 0);
_.Q([_.X({computed:"computeVisibleItems(data,collapsed)"}),_.k("design:type",Array)],Op.prototype,"visibleItems",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],Op.prototype,"collapsed",void 0);_.Q([_.X({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.k("design:type",Boolean)],Op.prototype,"hideShowMore",void 0);
_.Q([_.X({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.k("design:type",Boolean)],Op.prototype,"hideShowAll",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Op.prototype,"modernButtons",void 0);_.Q([_.d("isSearch"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Op.prototype,"typographyBump",null);
_.Q([_.d("isSearch"),_.k("design:type",String),_.k("design:paramtypes",[])],Op.prototype,"thumbnailWidth",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Op.prototype,"dataChanged",null);Op=_.Q([_.t({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Op);
_.A(Op,"ytd-vertical-list-renderer",function(){if($6i!==void 0)return $6i;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return $6i=Y},{mode:1});var rSi=_.Q0(["#"]);_.$s("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Yi=function(){var Y=_.Z.apply(this,arguments)||this;Y.isConstrainedList=!1;Y.modernTypography=_.f("web_modern_typography");return Y};
_.r(Yi,_.Z);_.z=Yi.prototype;
_.z.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"}}}};
_.z.computeThumbnailStyle=function(Y){return Y||""};
_.z.computePlaceAnnotationUnderTitle=function(){var Y;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((Y=this.data)==null?void 0:Y.thumbnailStyle)||"")};
_.z.computeHrefWithDefault=function(Y){return this.ytComponentBehavior.computeHref_(Y)||_.qD(rSi)};
_.z.computeIsPromoShelf=function(Y){var S;return(Y=Y==null?void 0:(S=Y[0])==null?void 0:S.metadataBadgeRenderer)?Y.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.z.computePlaceBadgeBesideTitle=function(Y){var S;return(Y==null?0:(S=Y[0])==null?0:S.metadataBadgeRenderer)?!this.computeIsPromoShelf(Y):!1};
_.z.computeMenuIcon=function(Y){return this.computeIsPromoShelf(Y)?"yt-icons:more_vert":"yt-icons:more"};
_.z.onDataChange=function(){var Y,S;((Y=this.data)==null?0:(S=Y.content)==null?0:S.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.z.onLockupRequested=function(Y){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&Y.detail&&Y.detail.videoIds){for(var S=this.data.content.gridRenderer.items,P=new Set,u=_.n(Y.detail.videoIds),W=u.next();!W.done;W=u.next())P.add(W.value);Y.detail.returnValue=S.filter(function(m){return m.gridVideoRenderer&&m.gridVideoRenderer.videoId&&P.has(m.gridVideoRenderer.videoId)}).map(function(m){return m.gridVideoRenderer})}};
_.z.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Yi.prototype.onLockupRequested=Yi.prototype.onLockupRequested;Yi.prototype.onDataChange=Yi.prototype.onDataChange;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Yi.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],Yi.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Yi.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.G8),_.k("design:type",Object)],Yi.prototype,"ironResizableBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Yi.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Yi.prototype,"isSearch",void 0);_.Q([_.X(),_.k("design:type",Object)],Yi.prototype,"isConstrainedList",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("kevlar_fluid_dismiss")}}),
_.k("design:type",Boolean)],Yi.prototype,"enableFluidDismiss",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.k("design:type",String)],Yi.prototype,"thumbnailStyle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yi.prototype,"modernTypography",void 0);_.Q([_.X({computed:"computeMenuIcon(data.badges)"}),_.k("design:type",String)],Yi.prototype,"menuIcon",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yi.prototype,"onDataChange",null);_.Q([_.WZ("yt-lockup-requested"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Yi.prototype,"onLockupRequested",null);Yi=_.Q([_.t({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Yi);
_.A(Yi,"ytd-shelf-renderer",function(){if(gzU!==void 0)return gzU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return gzU=Y},{mode:1});var GD3;var S0=function(){return _.Z.apply(this,arguments)||this};
_.r(S0,_.Z);S0.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.y6.Object.defineProperties(S0.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],S0.prototype,"data",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],S0.prototype,"isPlaylist",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],S0.prototype,"isClipList",void 0);
_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],S0.prototype,"isPlaylistPageWithFilters",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],S0.prototype,"hasTitle",null);_.Q([_.X(),_.d("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.k("design:type",Object),_.k("design:paramtypes",[])],S0.prototype,"isRightAligned",null);
S0=_.Q([_.t({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],S0);
_.A(S0,"ytd-sort-filter-header-renderer",function(){if(GD3!==void 0)return GD3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return GD3=Y},{mode:1});var hQf;var Pj=function(){return _.Z.apply(this,arguments)||this};
_.r(Pj,_.Z);
Pj.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]]"}}}}}};
Pj.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.y6.Object.defineProperties(Pj.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.f("enable_creator_details_shelf_m2")){var Y=[],S;((S=this.data)==null?0:S.creatorVideosButton)&&Y.push(this.data.creatorVideosButton);var P;((P=this.data)==null?0:P.creatorAboutButton)&&Y.push(this.data.creatorAboutButton);S=_.n(this.data.creatorCustomUrlButtons||[]);for(P=S.next();!P.done;P=S.next())Y.push(P.value);return Y}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.f("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.kR.YtdHorizontalListBehavior),_.k("design:type",Object)],Pj.prototype,"ytdHorizontalListBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Pj.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Pj.prototype,"engagementPanel",void 0);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Pj.prototype,"creatorCustomUrlButtons",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data","creatorCustomUrlButtons"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Pj.prototype,"showCreatorCustomUrlButtons",null);_.Q([_.d("showCreatorCustomUrlButtons"),_.k("design:type",Number),_.k("design:paramtypes",[])],Pj.prototype,"channelAvatarSize",null);
Pj=_.Q([_.t({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Pj);
_.A(Pj,"ytd-video-description-infocards-section-renderer",function(){if(hQf!==void 0)return hQf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return hQf=Y},{mode:_.OX("kevlar_poly_si_batch_j067")?1:2});var vzf;var uc=function(){return _.Z.apply(this,arguments)||this};
_.r(uc,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],uc.prototype,"data",void 0);_.Q([_.X({computed:"computeIcon_(data.infoIcon)"}),_.k("design:type",Object)],uc.prototype,"infoIcon",void 0);uc=_.Q([_.t({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],uc);
_.A(uc,"ytd-eom-settings-disclaimer-renderer",function(){if(vzf!==void 0)return vzf;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return vzf=Y},{mode:1});var D6f;var Wj=function(){return _.Z.apply(this,arguments)||this};
_.r(Wj,_.Z);_.y6.Object.defineProperties(Wj.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.suppressPaddingDisclaimer)}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Wj.prototype,"componentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Wj.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Wj.prototype,"suppressPaddingDisclaimer",null);Wj=_.Q([_.t({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Wj);
_.A(Wj,"ytd-product-list-header-renderer",function(){if(D6f!==void 0)return D6f;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return D6f=Y},{mode:1});var Ihh;var zC=function(){return _.Z.apply(this,arguments)||this};
_.r(zC,_.Z);zC.prototype.computeThumbnailStyle=function(Y){if(Y&&(Y=_.Gp(Y)))return"background-color:"+Y+";"};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],zC.prototype,"rendererBehaviors",void 0);_.Q([_.X(),_.k("design:type",Object)],zC.prototype,"data",void 0);zC=_.Q([_.t({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],zC);
_.A(zC,"ytd-hashtag-tile-renderer",function(){if(Ihh!==void 0)return Ihh;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ihh=Y},{mode:1});var ah_;var mq=function(){return _.Z.apply(this,arguments)||this};
_.r(mq,_.Z);mq.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],mq.prototype,"data",void 0);mq=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],mq);
_.A(mq,"ytd-sponsorships-alert-renderer",function(){if(ah_!==void 0)return ah_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ah_=Y},{mode:1});var LBS;var nB=function(){return _.Z.apply(this,arguments)||this};
_.r(nB,_.Z);nB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.y6.Object.defineProperties(nB.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.Q([_.p(_.vf),_.k("design:type",Object)],nB.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],nB.prototype,"ytdLockupBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.Q([_.X({selector:_.wv}),_.k("design:type",Object)],nB.prototype,"isGridViewEnabled",void 0);
_.Q([_.d("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nB.prototype,"watchFeedBigThumbs",null);_.Q([_.d("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],nB.prototype,"thumbnailWidth",null);_.Q([_.X(),_.k("design:type",Object)],nB.prototype,"data",void 0);nB=_.Q([_.t({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],nB);
_.A(nB,"ytd-compact-movie-renderer",function(){if(LBS!==void 0)return LBS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return LBS=Y},{mode:1});var wIs;var pI_;var FBS=_.X3("HTML_DIR")==="rtl",j0=function(){var Y=_.Z.apply(this,arguments)||this;Y.engagementPanel=!1;Y.maxLines=2;Y.expandButtonOffset=0;Y.showExpandButton=!1;Y.isTruncated=!1;Y.isExpanded=!1;Y.currentSnippetType=2;Y.alwaysShowExpandButton=!1;Y.JSC$14120_lastWidth=NaN;Y.observer=null;Y.left=0;Y.right=0;Y.mid=0;Y.longestSnippetLength=0;Y.isFinalSnippet=!1;Y.isFirstMutation=!1;Y.isResetMutation=!1;Y.OVERFLOW_THRESHOLD=5;return Y};
_.r(j0,_.Z);_.z=j0.prototype;_.z.onClick=function(Y){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.iN(_.iM(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var S;if((S=window.getSelection())==null||!S.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.z.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.z.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.z.updateTextOnSnippetTypeChange=function(){_.f("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.z.setUpBinarySearch=function(Y){Y=Y*this.maxLines/8;this.left=0;var S,P;this.right=Math.min(Y*2,(P=(S=this.simpleText)==null?void 0:S.length)!=null?P:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.z.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.z.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.sf(new _.$2("AttributedSnippet is empty when the description is not empty",this.text))};
_.z.mutationCallback=function(){if(this.observer!=null){var Y=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var S=Math.floor(Y*this.maxLines/8);this.setSnippetText(this.text,S);S!==0||this.attributedTextIsEmpty()||_.sf(new _.$2("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;Y=Y*this.maxLines/8;this.left=0;var P;this.right=Math.min(Y*2,(P=(S=this.simpleText)==null?void 0:S.length)!=null?P: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)}}};
_.z.mutationObserve=function(Y){var S=this;this.observer||(this.observer=new MutationObserver(function(){S.mutationCallback()}));
this.observer.observe(Y,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.z.attached=function(){var Y=this;_.ky(this,function(){Y.resize()})};
_.z.isExpandedChanged=function(){_.ms(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.z.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)};
_.z.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var Y="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((FBS?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",Y);this.snippetContainer.style.setProperty("mask-image",
Y)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(FBS?"right":"left",this.expandButtonOffset+"px")};
_.z.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.z.setSnippetText=function(Y,S){Y||(Y={});if(_.sD(Y)){var P=Upa(Y,S);P.attachmentRuns||P.commandRuns||P.decorationRuns||P.styleRuns||P.alignment||P.lineBreakMode?this.attributedSnippetTextEl?(_.f("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=Upa(Y,S),this.attributedSnippetTextEl.headerRuns=ARh(S,this.headerRuns)):this.attributedSnippetText={data:Upa(Y,S),headerRuns:ARh(S,this.headerRuns)},this.currentSnippetType=0):_.sf(new _.$2("Tried to set snippet text when HTML element was null",
Y)):(this.plainSnippetText.textContent=w8(Y.content||"",S),this.currentSnippetType=2)}else{a:{P=mWX(Y,S);if(P.runs){P=_.n(P.runs);for(var u=P.next();!u.done;u=P.next())if(u=u.value,u.bold||u.deemphasize||u.italics||u.strikethrough||u.textColor||u.navigationEndpoint||_.g(u,r8)){P=!0;break a}}P=!1}P?this.formattedSnippetText?(this.formattedSnippetText.text=mWX(Y,S),this.currentSnippetType=1):_.sf(new _.$2("Tried to set snippet text when HTML element was null",Y)):(this.plainSnippetText.textContent=
w8(_.Ma(Y),S),this.currentSnippetType=2)}};
_.z.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.z.attributedTextIsEmpty=function(){var Y=this.text;if(!_.sD(Y))return!0;var S;return((S=Y.content)==null?void 0:S.length)===0?!0:!1};
_.z.resize=function(Y){if(this.snippetText){if(Y===void 0?0:Y)this.JSC$14120_lastWidth=NaN;var S=this.hostElement.offsetWidth;if(S!==this.JSC$14120_lastWidth&&!this.isExpanded)if(this.JSC$14120_lastWidth=S,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;Y=0;var P,u;S=Math.min(S*this.maxLines/8*2,(u=(P=this.simpleText)==null?void 0:P.length)!=null?u:0)-1;for(P=0;Y<=S;)u=Math.floor(Y+(S-Y)/2),this.setSnippetText(this.text,u),this.isOverflowing()?S=u-1:(Y=u+1,P=u);this.setSnippetText(this.text,P);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.z.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.z.onExpandClick=function(){var Y=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.f("inline_expander_reset_focus_killswitch")||_.ky(this,function(){var S;((S=_.E().resolve(_.PQ(_.Tz)))==null?0:S.isKeyBoardInUse())&&_.NR(Y.hostElement)});
_.ms(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.z.onCollapseClick=function(){this.collapse();_.ms(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.z.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.z.computeExpandButtonOffset=function(){var Y=this.expandSizer;return Y?FBS?Y.offsetParent?Y.offsetParent.offsetWidth-Y.offsetWidth-Y.offsetLeft:0:Y.offsetLeft:0};
_.y6.Object.defineProperties(j0.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.sD(this.text)?this.text.content||"":_.Ma(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 _.sD(this.text)?!0:this.text&&_.f("web_replace_formatted_with_attributed_string")&&Bs8(this.text)?(this.text=_.$J(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}}});
j0.prototype.onTextChanged=j0.prototype.onTextChanged;j0.prototype.updateMaskAndExpandButtonOffset=j0.prototype.updateMaskAndExpandButtonOffset;j0.prototype.updateSnippetContainerMaxHeight=j0.prototype.updateSnippetContainerMaxHeight;j0.prototype.isExpandedChanged=j0.prototype.isExpandedChanged;j0.prototype.updateTextOnSnippetTypeChange=j0.prototype.updateTextOnSnippetTypeChange;j0.prototype.updateIsFormattedExpanded=j0.prototype.updateIsFormattedExpanded;j0.prototype.updateIsAttributedExpanded=j0.prototype.updateIsAttributedExpanded;
j0.prototype.onClick=j0.prototype.onClick;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],j0.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],j0.prototype,"text",void 0);_.Q([_.X(),_.k("design:type",Array)],j0.prototype,"headerRuns",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],j0.prototype,"engagementPanel",void 0);_.Q([_.X(),_.k("design:type",Object)],j0.prototype,"maxLines",void 0);
_.Q([_.X(),_.k("design:type",String)],j0.prototype,"expandLabel",void 0);_.Q([_.X(),_.k("design:type",String)],j0.prototype,"collapseLabel",void 0);_.Q([_.X(),_.k("design:type",Object)],j0.prototype,"expandCommand",void 0);_.Q([_.X(),_.k("design:type",Object)],j0.prototype,"expandButtonOffset",void 0);_.Q([_.d("text"),_.k("design:type",String),_.k("design:paramtypes",[])],j0.prototype,"simpleText",null);
_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],j0.prototype,"onClick",null);_.Q([_.d("text","isExpanded"),_.k("design:type",Object),_.k("design:paramtypes",[])],j0.prototype,"expandedText",null);_.Q([_.d("headerRuns","isExpanded"),_.k("design:type",Object),_.k("design:paramtypes",[])],j0.prototype,"expandedHeaderRuns",null);
_.Q([_.d("text"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],j0.prototype,"hasAttributedStringText",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],j0.prototype,"showExpandButton",void 0);_.Q([_.d("collapseLabel","isExpanded"),_.k("design:type",Object),_.k("design:paramtypes",[])],j0.prototype,"showCollapseButton",null);_.Q([_.X(),_.k("design:type",Object)],j0.prototype,"isTruncated",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],j0.prototype,"isExpanded",void 0);_.Q([_.X(),_.k("design:type",Boolean)],j0.prototype,"isAttributedExpanded",void 0);_.Q([_.zY("isExpanded","hasAttributedStringText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],j0.prototype,"updateIsAttributedExpanded",null);_.Q([_.X(),_.k("design:type",Boolean)],j0.prototype,"isFormattedExpanded",void 0);
_.Q([_.zY("isExpanded","hasAttributedStringText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],j0.prototype,"updateIsFormattedExpanded",null);_.Q([_.X(),_.k("design:type",Number)],j0.prototype,"currentSnippetType",void 0);_.Q([_.d("currentSnippetType"),_.k("design:type",Object),_.k("design:paramtypes",[])],j0.prototype,"useAttributedSnippet",null);
_.Q([_.d("currentSnippetType"),_.k("design:type",Object),_.k("design:paramtypes",[])],j0.prototype,"useFormattedSnippet",null);_.Q([_.d("currentSnippetType"),_.k("design:type",Object),_.k("design:paramtypes",[])],j0.prototype,"usePlainSnippet",null);_.Q([_.X(),_.k("design:type",Object)],j0.prototype,"alwaysShowExpandButton",void 0);_.Q([_.zY("currentSnippetType"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],j0.prototype,"updateTextOnSnippetTypeChange",null);
_.Q([_.X(),_.k("design:type",Object)],j0.prototype,"attributedSnippetText",void 0);_.Q([_.nc("#snippet"),_.k("design:type",HTMLElement)],j0.prototype,"snippetContainer",void 0);_.Q([_.nc("#snippet-text"),_.k("design:type",HTMLElement)],j0.prototype,"snippetText",void 0);_.Q([_.nc("#plain-snippet-text"),_.k("design:type",HTMLElement)],j0.prototype,"plainSnippetText",void 0);_.Q([_.nc("#formatted-snippet-text"),_.k("design:type",Object)],j0.prototype,"formattedSnippetText",void 0);
_.Q([_.nc("#attributed-snippet-text"),_.k("design:type",Object)],j0.prototype,"attributedSnippetTextEl",void 0);_.Q([_.nc("#expand"),_.k("design:type",HTMLElement)],j0.prototype,"expandButton",void 0);_.Q([_.nc("#expand-sizer"),_.k("design:type",HTMLElement)],j0.prototype,"expandSizer",void 0);_.Q([_.cZ("isExpanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],j0.prototype,"isExpandedChanged",null);
_.Q([_.zY("isExpanded","maxLines"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],j0.prototype,"updateSnippetContainerMaxHeight",null);_.Q([_.zY("isTruncated","showExpandButton","expandButtonOffset"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],j0.prototype,"updateMaskAndExpandButtonOffset",null);
_.Q([_.cZ("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],j0.prototype,"onTextChanged",null);j0=_.Q([_.t({is:"ytd-text-inline-expander",disableElementRegistration:!0})],j0);
_.A(j0,"ytd-text-inline-expander",function(){if(pI_===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);pI_=Y}Y=pI_;return Y},{mode:2});var JW=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return Y};
_.r(JW,_.Z);JW.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
JW.prototype.handleUpdateDescriptionAction=function(Y){if(Y=_.g(Y,_.f36))if(Y.attributedDescription)this.set("data.attributedDescriptionBodyText",Y.attributedDescription);else if(Y.description){var S;((S=this.data)==null?0:S.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.$J(Y.description)):this.set("data.descriptionBodyText",Y.description)}};
_.y6.Object.defineProperties(JW.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!((Y=this.data)==null||!Y.attributedDescriptionBodyText)||!((S=this.data)==null||!S.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null?0:Y.collapsedLineCount){var S;return(S=this.data)==null?void 0:S.collapsedLineCount}Y=_.z_("web_watch_description_collapsed_default_lines",12);if(_.f("ww_desc_line_page_size_ks"))return Y;S=Math.round(_.x9().height*_.z_("web_watch_description_screen_height_percentage",.5)/20);return Math.max(S,Y)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return(P=(Y=this.data)==null?void 0:Y.descriptionBodyText)!=null?P:(S=this.data)==null?void 0:S.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.sourceAttributions}}});
JW.prototype.panelContentVisibleChanged=JW.prototype.panelContentVisibleChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],JW.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],JW.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],JW.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],JW.prototype,"panelContentVisible",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],JW.prototype,"engagementPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],JW.prototype,"shortsPanel",void 0);_.Q([_.nc("#inline-expander"),_.k("design:type",Object)],JW.prototype,"inlineExpander",void 0);
_.Q([_.zY("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JW.prototype,"panelContentVisibleChanged",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],JW.prototype,"hasDescriptionText",null);_.Q([_.d("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],JW.prototype,"collapsedLines",null);
_.Q([_.d("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.k("design:type",Object),_.k("design:paramtypes",[])],JW.prototype,"descriptionText",null);_.Q([_.d("data","data.headerRuns"),_.k("design:type",Object),_.k("design:paramtypes",[])],JW.prototype,"headerRuns",null);_.Q([_.d("data","data.sourceAttributions"),_.k("design:type",Object),_.k("design:paramtypes",[])],JW.prototype,"sourceAttributions",null);
JW=_.Q([_.t({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],JW);
_.A(JW,"ytd-expandable-video-description-body-renderer",function(){if(wIs!==void 0)return wIs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return wIs=Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var sCi;var d6d=_.AI(function(Y){var S=Y.data;return _.R("factoid-renderer",{class:"ytwFactoidRendererHost"},_.R("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return S().accessibilityText}},_.R("span",{class:"ytwFactoidRendererValue"},_.R(_.qw,{text:function(){return S().value}})),_.R("span",{class:"ytwFactoidRendererLabel"},_.R(_.qw,{text:function(){return S().label}}))))},"xb");_.AL(d6d,"factoid-renderer",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;return _.R("upload-time-factoid-renderer",null,_.R(_.rv,{data:function(){return S().factoid}},{factoidRenderer:d6d}))},"yb"),"upload-time-factoid-renderer",{props:{data:_.tL}});_.AL(_.AI(function(Y){var S=Y.data;return _.R("view-count-factoid-renderer",null,_.R(_.rv,{data:function(){return S().factoid}},{factoidRenderer:d6d}))},"zb"),"view-count-factoid-renderer",{props:{data:_.tL}});var Bj=function(){var Y=_.Z.apply(this,arguments)||this;Y.shortsPanel=!1;Y.engagementPanel=!1;Y.watchWhileSdp=_.f("shorts_desktop_watch_while_sdp");return Y};
_.r(Bj,_.Z);Bj.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"}}}}};
_.y6.Object.defineProperties(Bj.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var Y;return(Y=this.data)==null?void 0:Y.channel}}});
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Bj.prototype,"componentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Bj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Bj.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Bj.prototype,"shortsPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Bj.prototype,"engagementPanel",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Bj.prototype,"watchWhileSdp",void 0);_.Q([_.d("shortsPanel","engagementPanel","data.channel"),_.k("design:type",Object),_.k("design:paramtypes",[])],Bj.prototype,"showChannelInfo",null);Bj=_.Q([_.t({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Bj);
_.A(Bj,"ytd-video-description-header-renderer",function(){if(sCi!==void 0)return sCi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return sCi=Y},{mode:1});var lhd;var cj=function(){return _.Z.apply(this,arguments)||this};
_.r(cj,_.Z);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],cj.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],cj.prototype,"noPadding",void 0);_.Q([_.X(),_.k("design:type",Object)],cj.prototype,"data",void 0);cj=_.Q([_.t({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],cj);
_.A(cj,"ytd-list-item-view-model",function(){if(lhd!==void 0)return lhd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return lhd=Y},{mode:1});var XIt;var ZTS;var iTf;var ozU;var CB=function(){var Y=_.Z.apply(this,arguments)||this;Y.adaptiveFullWidth=!1;Y.modernButtons=_.f("web_modern_buttons");Y.buttonOverrides={style:"call-to-action",type:"filled"};Y.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return Y};
_.r(CB,_.Z);CB.prototype.handleSetTimestamp_=function(Y){this.data&&this.data.shortUrl&&(_.I(this.hostElement).querySelector("#share-url").value=Y.isSet?_.Eg(this.data.shortUrl,"t",Y.timestamp):this.data.shortUrl)};
CB.prototype.handleSignalActionCopyShareUrl_=function(Y,S){(_.f("killswitch_copy_link_target_check")||_.I(this.hostElement).querySelector("#copy-button")===S)&&this.copyUrlToClipboard()};
CB.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.I(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
CB.prototype.computeStyle_=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],CB.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],CB.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.k("design:type",String)],CB.prototype,"rendererStyle",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CB.prototype,"adaptiveFullWidth",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CB.prototype,"modernButtons",void 0);_.Q([_.X(),_.k("design:type",Object)],CB.prototype,"buttonOverrides",void 0);CB=_.Q([_.r0({is:"yt-copy-link-renderer",disableElementRegistration:!0})],CB);
_.A(CB,"yt-copy-link-renderer",function(){if(ozU===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;iTf===void 0&&(iTf=document.createElement("template"));var u=iTf;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);ozU=Y}Y=ozU;return Y},{mode:2});_.$s("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var qv=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return Y};
_.r(qv,_.Z);_.z=qv.prototype;_.z.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.z.attached=function(){this.keyboardFocused=!1};
_.z.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var Y=_.E().resolve(_.PQ(_.Tz));Y&&(this.keyboardFocused=Y.isKeyBoardInUse())}};
_.z.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.z.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}};
_.z.onChange_=function(){if(this.data){var Y=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;Y&&this.ytComponentBehavior.resolveCommand(Y);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.z.handleUpdateToggleAction_=function(Y){(Y=_.g(Y,X9S))&&this.data&&Y.targetId==this.data.targetId&&this.set("data.toggled",Y.toggled)};
_.z.toBoolean_=function(Y){return!!Y};
_.z.reset=function(){};
_.z.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("data-changed",this.data))};
_.z.updateDataToggledFromBinding=function(Y){this.set("data.toggled",Y.detail.value)};
qv.prototype.dataChangedForBinding=qv.prototype.dataChangedForBinding;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],qv.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],qv.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],qv.prototype,"data",void 0);_.Q([_.X({computed:"computeDescription_(data.*)"}),_.k("design:type",Object)],qv.prototype,"description_",void 0);_.Q([_.X({value:function(){return!!_.E().resolve(_.PQ(_.Tz))&&_.f("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.k("design:type",Boolean)],qv.prototype,"useKeyboardFocused",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],qv.prototype,"keyboardFocused",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qv.prototype,"dataChangedForBinding",null);qv=_.Q([_.r0({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],qv);
_.A(qv,"yt-toggle-form-field-renderer",function(){if(ZTS===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;XIt===void 0&&(XIt=document.createElement("template"));var u=XIt;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);ZTS=Y}Y=ZTS;return Y},{mode:2});var tnd;var ASf;var R$=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDarkTheme=!1;Y.isSearch=!1;Y.darkerDarkTheme=_.f("web_darker_dark_theme");Y.noTopMargin=_.f("kevlar_watch_no_top_margin");Y.maskFade=_.f("web_watch_chips_mask_fade");Y.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(R$,_.Z);_.z=R$.prototype;_.z.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}}}}}};
_.z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.z.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.z.dataChanged=function(){var Y=this.getSelectedIndex();if(Y>0)this.selected=Y;else{this.selected=0;var S,P;(S=this.ytScrollableChipCloudBehavior)==null||(P=S.reset)==null||P.call(S)}};
_.z.getSelectedIndex=function(){var Y;if((Y=this.data)==null||!Y.chips)return-1;Y=-1;for(var S,P=0;P<((S=this.data)==null?void 0:S.chips.length);P++){var u=void 0,W=void 0;if((u=this.data)==null?0:(W=u.chips[P].chipCloudChipRenderer)==null?0:W.isSelected){Y=P;break}}return Y};
_.z.onResize=function(){var Y=this.ytScrollableChipCloudBehavior;_.ky(Y,Y.setContainerWidthDiff);e1(this.ytScrollableChipCloudBehavior)};
_.z.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.z.handleRelatedChipCommand=function(Y,S){Y=this.JSC$14147_chipsSelector.indexOf(S);Y!==-1&&this.JSC$14147_chipsSelector.selectIndex(Y)};
_.z.handleChipCloudChipSelectAction=function(Y){Y=this.JSC$14147_chipsSelector.indexOf(Y);Y>-1&&this.JSC$14147_chipsSelector.selectIndex(Y)};
_.z.handleChipCloudChipDeselectAction=function(){var Y=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14147_chipsSelector&&((Y==null?0:Y.continuationCommand)?_.Bu(this.hostElement,[Y]):(Y==null?0:Y.searchEndpoint)?this.ytComponentBehavior.resolveCommand(Y):Y&&_.cu(this.hostElement,[Y],this.hostElement),this.JSC$14147_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.z.updateSelectedFromBinding=function(Y){this.selected=Y.detail.value};
R$.prototype.onResize=R$.prototype.onResize;R$.prototype.dataChanged=R$.prototype.dataChanged;R$.prototype.isSearchChanged=R$.prototype.isSearchChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],R$.prototype,"actionHandlerBehavior",void 0);
_.Q([_.p(_.G8),_.k("design:type",Object)],R$.prototype,"ironResizableBehavior",void 0);_.Q([_.p(),_.k("design:type",Vv)],R$.prototype,"ytScrollableChipCloudBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],R$.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],R$.prototype,"data",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],R$.prototype,"selected",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],R$.prototype,"isDarkTheme",void 0);_.Q([_.X({value:160}),_.k("design:type",Number)],R$.prototype,"scrollDistance",void 0);_.Q([_.X(),_.k("design:type",Object)],R$.prototype,"isSearch",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],R$.prototype,"darkerDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],R$.prototype,"noTopMargin",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],R$.prototype,"maskFade",void 0);_.Q([_.nc("#chips"),_.k("design:type",Object)],R$.prototype,"JSC$14147_chipsSelector",void 0);_.Q([_.zY("isSearch"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R$.prototype,"isSearchChanged",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R$.prototype,"dataChanged",null);
_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R$.prototype,"onResize",null);R$=_.Q([_.r0({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],R$);
_.A(R$,"yt-chip-cloud-renderer",function(){if(ASf===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;tnd===void 0&&(tnd=document.createElement("template"));var u=tnd;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);ASf=Y}Y=ASf;return Y},{mode:2});var U6s,QCL=function(){return U6s!==void 0?U6s:U6s=document.createElement("template")};
document.head.appendChild(QCL().content);var kDL;var Mni=document.head,ySi=Mni.appendChild,Nih;if(kDL===void 0){var HTt=document.createElement("template");_.h(HTt,"");HTt.content.insertBefore(QCL().content.cloneNode(!0),HTt.content.firstChild);kDL=HTt}Nih=kDL;ySi.call(Mni,Nih.content);var VnL=_.AI(function(Y){var S=Y.data;return _.R("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.R("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.R("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.R(_.gw,{cond:function(){return _.yR(S().image)},
then:function(P){return _.R("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.R(_.ZZ,{data:P,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.R("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.R(_.qw,{text:function(){return S().title}})),_.R("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.R(_.qw,{text:function(){return S().subtitle}})))),_.R(_.gw,{cond:function(){var P;
return(P=S())==null?void 0:P.hasBottomDivider},
then:function(){return _.R("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ab");var eQJ=_.AI(function(Y){var S=Y.data;return _.R("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.R("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.R(_.rv,{data:function(){var P;return(P=S().offerPlanDetailsItem)!=null?P:[]}},{offerPlanDetailsItemViewModel:function(P){return _.R("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.R(VnL,{data:P.data}))}})),_.R("div",null,_.R(_.gw,{cond:function(){return S().hasBottomDivider},
then:function(){return _.R("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.R("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.R("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.R("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.R("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Bb");var OT3=_.AI(function(Y){var S=Y.data;Y=_.n(_.qb(!1,void 0,"SpEGQd"));var P=Y.next().value,u=Y.next().value,W=_.mR(function(){u(!P());return!1}),m=function(){var J;
return(J=S().offerPlanDetailsContainer)!=null?J:[]};
return _.R("lp-complex-offer-card-details-view-model",null,_.R("div",null,_.R(_.gw,{cond:function(){return P()},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.R("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":W,"aria-expanded":P},_.R(_.qw,{text:function(){return S().expandedTitle}})),_.R("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.R(_.rv,{data:m},{offerPlanDetailsContainerViewModel:function(J){return _.R("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.R(eQJ,{data:J.data}))}})),_.R("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.R(_.qw,{text:function(){return S().legalText}})))},
else:function(){return _.R("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":W,"aria-expanded":P},_.R(_.qw,{text:function(){return S().collapsedTitle}}),_.R("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.R(_.BX,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Cb");var YBL=_.AI(function(Y){var S=Y.data;return _.R("lp-complex-offer-card-option-view-model",null,_.R("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.R(_.gw,{cond:function(){return S().planPricingPrimary},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.R(_.qw,{text:function(){return S().planPricingPrimary}}))}}),_.R(_.gw,{cond:function(){return S().planPricingSecondary},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.R(_.qw,{text:function(){return S().planPricingSecondary}}))}}),_.R(_.gw,{cond:function(){return S().primaryButton},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.R(_.rv,{data:function(){return S().primaryButton}},{buttonViewModel:function(P){return _.R(_.aq,{data:P.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Db");var SB_=_.AI(function(Y){var S=Y.data;var P=function(){var m;return((m=S())==null?void 0:m.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
Y={};var u={},W={};return _.R("ytm-lp-complex-offer-card-view-model",null,_.R("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.R("div",{class:_.Si((Y.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=P,Y),"ytmLpComplexOfferCardViewModelCardContainer")},_.R(_.gw,{cond:function(){var m;return(m=S())==null?void 0:m.bannerText},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.R("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.R(_.qw,{text:function(){return S().bannerText}})))}}),_.R(_.gw,{cond:function(){return _.yR(S().logo)},
then:function(m){var J={};return _.R("div",{class:_.Si((J.ytmLpComplexOfferCardViewModelLogoAlignLeft=P,J),"ytmLpComplexOfferCardViewModelLogo")},_.R(_.ZZ,{data:m,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.R("div",{class:_.Si((u.ytmLpComplexOfferCardViewModelTitleAlignLeft=P,u),"ytmLpComplexOfferCardViewModelTitle")},_.R(_.qw,{text:function(){return S().title}})),_.R(_.gw,{cond:function(){var m;
return(m=S())==null?void 0:m.subtitle},
then:function(){var m={};return _.R("div",{class:_.Si((m.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=P,m),"ytmLpComplexOfferCardViewModelSubtitle")},_.R(_.qw,{text:function(){return S().subtitle}}))}}),_.R(_.gw,{cond:function(){return S().planPricingPrimary},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.R(_.qw,{text:function(){return S().planPricingPrimary}}))}}),_.R(_.gw,{cond:function(){return S().planPricingSecondary},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.R(_.qw,{text:function(){return S().planPricingSecondary}}))}}),_.R(_.gw,{cond:function(){return S().purchaseButton},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.R(_.rv,{data:function(){return S().purchaseButton}},{buttonViewModel:function(m){return _.R(_.aq,{data:m.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.R(_.gw,{cond:function(){var m;
return(m=S())==null?void 0:m.offerOptions},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.R(_.rv,{data:function(){return S().offerOptions}},{lpComplexOfferCardOptionViewModel:YBL}))}}),_.R("div",{class:_.Si((W.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=P,W),"ytmLpComplexOfferCardViewModelLegalText")},_.R(_.qw,{text:function(){return S().legalText}})),_.R(_.gw,{cond:function(){var m;
return(m=S())==null?void 0:m.offerCardDetails},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.R(_.rv,{data:function(){return S().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:OT3}))}}))))},"Eb");var PeU=_.AI(function(Y){var S=Y.data;var P=function(){var J;return((J=S())==null?void 0:J.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
Y={};var u={},W={},m={};return _.R("ytm-lp-complex-offer-card-section-view-model",null,_.R("div",{class:_.Si("ytmLpComplexOfferCardSectionViewModelHost")},_.R("div",{class:_.Si((Y.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=P,Y),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.R("div",{class:_.Si((u.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=P,u),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.R("h2",{class:_.Si((W.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
P,W),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.R(_.qw,{text:function(){return S().title}}))),_.R(_.gw,{cond:function(){var J;
return(J=S())==null?void 0:J.subtitle},
then:function(){var J={},c={};return _.R("div",{class:_.Si((J.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=P,J),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.R("div",{class:_.Si((c.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=P,c),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.R(_.qw,{text:function(){return S().subtitle}})))}}),_.R("div",{class:_.Si((m.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=P,m),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.R(_.rv,{data:function(){var J;
return(J=S().offerPlans)!=null?J:[]}},{lpComplexOfferCardViewModel:function(J){return _.R("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.R(SB_,{data:J.data}))}})))))},"Fb");_.If=uVd.getInstance();var uG3=_.AI(function(Y){return _.R("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":Y.shouldAriaHideContent},_.R("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:Y.questionId},_.R(_.qw,{text:Y.question})))},"Gb"),Wxi=_.AI(function(Y){var S=Y.data;
var P=Y.themeOverride;Y=_.n(_.qb(!1,void 0,"ljTVPd"));var u=Y.next().value,W=Y.next().value;Y=_.mR(function(){W(!u());return!1});
var m=function(){return u()?"EXPAND_LESS":"EXPAND_MORE"},J=("faq-container"+_.D_(_.If)).toString(),c="faq-question-and-answers-section-question"+_.D_(_.If),C={},x={};
return _.R("faq-entry-view-model-c3",null,_.R("div",{class:_.Si("yt-lp-faq-entry-view-model",(C["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return P==null?void 0:P().useDarkTheme},C))},_.R("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":Y,role:"button","aria-expanded":u,"aria-labelledby":c.toString(),"tab-index":"0"},_.R(uG3,{question:function(){return S().question},
questionId:c,shouldAriaHideContent:!0}),_.R(_.gw,{cond:function(){return u()!==void 0},
then:function(){return _.R("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.R(_.BX,{icon:m,ariaHidden:!0}),_.R("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.R("div",{class:_.Si("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(x["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!u()},x))},_.R("div",{id:J},_.R(_.$Z,{each:function(){return S().answers||[]}},function(b){return _.R("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.R(_.qw,{text:b}))})))))},"Hb");
Wxi.idomCompat=!0;var z5_=_.AI(function(Y){var S=Y.data;var P=Y.themeOverride;Y={};return _.R("lp-faq-section-view-model-c3",null,_.R("div",{class:_.Si("yt-lp-faq-section-view-model",(Y["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return S().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},Y["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(P==null||!P().useDarkTheme)},Y))},_.R("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.R(_.gw,{cond:function(){return S().header},
then:function(u){return _.R("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.R(_.qw,{text:u}))}}),_.R("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.R(_.rv,{data:function(){return S().faqs}},{faqEntryViewModel:function(u){return _.R(Wxi,{data:u.data,
themeOverride:P})}})),_.R("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.R(_.$Z,{each:function(){return S().footers||[]}},function(u){return _.R(_.qw,{text:u})})),_.R(_.gw,{cond:function(){return S().legal},
then:function(u){return _.R("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.R(_.qw,{text:u}))}}))))},"Ib");
z5_.idomCompat=!0;var meS=_.AI(function(Y){var S=Y.data;var P=Y.themeOverride;_.LE(function(){var J=S().gtmId;J&&_.JD(J,_.X3("GL",""))});
var u={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var J,c,C;return(C=(J=S().logo)==null?void 0:(c=J.accessibilityData)==null?void 0:c.label)!=null?C:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},W=_.E().resolve(_.PQ(_.F5)),m=function(){return W&&W()||(P==null?void 0:P().useDarkTheme)};
return _.R("lp-header-section-view-model",null,_.R("div",{class:function(){var J=S().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",c=S().marginType==="LP_SECTION_MARGIN_TYPE_TOP",C=P==null?void 0:P().useDarkTheme,x=["lp-header-section-view-model"];J&&x.push("lp-header-section-view-model--ptc-layout-type");c&&x.push("lp-header-section-view-model__lp-header-section-margin");C&&x.push("lp-header-section-view-model--premium-force-dark-mode");return x.join(" ")}},_.R(_.gw,{cond:function(){return S().logo},
then:function(){return _.R("div",null,_.R(_.gw,{cond:m,then:function(){return _.R(_.gw,{cond:function(){var J;return(J=S().logo)==null?void 0:J.imageDark},
then:function(J){return _.R(_.ZZ,Object.assign({},{data:J},u))}})},
else:function(){return _.R(_.gw,{cond:function(){var J;return(J=S().logo)==null?void 0:J.imageLight},
then:function(J){return _.R(_.ZZ,Object.assign({},{data:J},u))}})}}))}}),_.R(_.gw,{cond:function(){return S().title},
then:function(J){return _.R("div",{class:"lp-header-section-view-model__lp-header-title"},_.R(_.qw,{text:J}))}}),_.R("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.R(_.gw,{cond:function(){return S().subtitles},
then:function(J){return _.R(_.$Z,{each:J},function(c){return _.R("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.R(_.qw,{text:c}))})}})),_.R(_.gw,{cond:function(){return S().additionalInfo},
then:function(J){return _.R("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.R(_.qw,{text:J}))}}),_.R("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.R(_.gw,{cond:function(){return S().primaryButton},
then:function(J){return _.R("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.R(_.rv,{data:J},{buttonViewModel:_.aq}))}}),_.R(_.gw,{cond:function(){return S().secondaryButton},
then:function(J){return _.R("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.R(_.rv,{data:J},{buttonViewModel:_.aq}))}})),_.R(_.gw,{cond:function(){return S().otherOffersInfo},
then:function(J){return _.R("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.R(_.qw,{text:J}))}}),_.R("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.R(_.gw,{cond:function(){return S().billingInfo},
then:function(J){return _.R(_.$Z,{each:J},function(c){return _.R("div",null,_.R(_.qw,{text:c}))})}}))))},"Jb");
meS.idomCompat=!0;var neh=_.AI(function(Y){var S=Y.data;var P=_.o_(Y.themeOverride,{useDarkTheme:!1});Y={};Y=_.Si("ytm-lp-headline-section-view-model",(Y["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return P().useDarkTheme},Y));
return _.R("lp-headline-section-view-model",null,_.R("div",{class:Y},_.R("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.R(_.qw,{text:function(){return S().title}})),_.R(_.gw,{cond:function(){return S().subtitle},
then:function(u){return _.R("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.R(_.qw,{text:u}))}})))},"Kb");var jHm=_.AI(function(Y){var S=Y.data;var P=Y.themeOverride;var u=_.E().resolve(_.PQ(_.F5)),W=function(){return u&&u()||(P==null?void 0:P().useDarkTheme)},m=function(){var x,b;
var T=W()?(x=S().textBackgroundImage)==null?void 0:x.imageDark:(b=S().textBackgroundImage)==null?void 0:b.imageLight;return CcE((T==null?void 0:T.sources)||[])},J=function(){var x,b;
return W()?(x=S().featureImage)==null?void 0:x.imageDark:(b=S().featureImage)==null?void 0:b.imageLight},c=function(){return S().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},C=function(){var x,b;
return W()?(x=S().logo)==null?void 0:x.imageDark:(b=S().logo)==null?void 0:b.imageLight};
return _.R("ytm-lp-large-feature-section-view-model",null,_.R("div",{class:function(){var x=S().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",b=S().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",T=(S().index||0)%2===1,K=P==null?void 0:P().useDarkTheme,G=["yt-lp-large-feature-section-view-model"];x?G.push("yt-lp-large-feature-section-view-model--music-feature-type"):b?G.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):T||G.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
K&&G.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return G.join(" ")}},_.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.R(_.gw,{cond:J,
then:function(){return _.R(_.ZZ,{data:function(){return J()},
alt:function(){var x,b,T;return(T=(x=S().featureImage)==null?void 0:(b=x.accessibilityData)==null?void 0:b.label)!=null?T:""},
contentMode:c})}})),_.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var x;return((x=m())==null?0:x.url)?"background-image: url("+_.Bx(m().url)+");":""}},_.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.R(_.gw,{cond:C,
then:function(){return _.R(_.ZZ,{data:function(){return C()},
alt:function(){var x,b,T;return(T=(x=S().logo)==null?void 0:(b=x.accessibilityData)==null?void 0:b.label)!=null?T:""},
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"})}}),_.R(_.gw,{cond:function(){return S().eyebrowText},
then:function(){return _.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.R(_.qw,{text:function(){return S().eyebrowText}}))}}),_.R(_.gw,{cond:function(){return S().title},
then:function(){return _.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.R(_.qw,{text:function(){return S().title}}))}}),_.R(_.gw,{cond:function(){return S().subtitles},
then:function(){return _.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.R(_.$Z,{each:function(){return S().subtitles||[]}},function(x){return _.R(_.qw,{text:x})}))}})))))},"Lb");
jHm.idomCompat=!0;var JCi=_.AI(function(Y){return _.R("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.R("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.R(_.BX,{icon:function(){var S;return(S=Y.data())==null?void 0:S.iconType},
className:function(){var S;return((S=Y.data())==null?void 0:S.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.R("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.R(_.qw,{text:function(){var S;
return(S=Y.data())==null?void 0:S.text}}))))},"Mb");var BAS=_.AI(function(Y){Y=_.tI(Y,{config:void 0,themeOverride:void 0});var S=Y.data,P=Y.config,u=Y.themeOverride;Y={};Y=_.Si("ytm-lp-offer-card-option-view-model",(Y["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var C;return(C=u())==null?void 0:C.useDarkTheme},Y));
var W=_.mR(function(){var C,x;(C=P())==null||(x=C.handleRadioButtonClick)==null||x.call(C,S());return!1}),m=function(){var C;
return(C=P())==null?void 0:C.shouldDisplayRadioButton},J=_.mR(function(){if(m()){var C,x;
(C=P())==null||(x=C.handleRadioButtonClick)==null||x.call(C,S())}return!1}),c=function(){var C;
return(C=S().featureListItems)!=null?C:[]};
return _.R("ytm-lp-offer-card-option-view-model",null,_.R("div",{class:Y,"on:click":J},_.R(_.gw,{cond:m,then:function(){return _.R("div",null,_.R("input",{type:"radio","on:click":W,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var C;return!((C=P())==null||!C.isOptionSelected)}}))}}),_.R("div",null,_.R("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.R(_.qw,{text:function(){return S().eyebrowText}})),_.R("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.R(_.qw,{text:function(){return S().title}})),_.R("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.R(_.qw,{text:function(){return S().subtitle}})),_.R(_.gw,{cond:function(){return c().length>0},
then:function(){return _.R("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.R(_.rv,{data:c},{lpFeatureListItemViewModel:JCi}))}}),_.R("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.R(_.qw,{text:function(){return S().description}})))))},"Nb");
BAS.idomCompat=!0;var cCh=_.AI(function(Y){var S=Y.data;var P=Y.themeOverride;Y=_.n(_.ji(function(){var m,J=(m=S().offerOptions)==null?void 0:m[0];return _.g(J,kf6)||{}}));
var u=Y.next().value,W=Y.next().value;Y={};return _.R("ytm-lp-offer-card-view-model",null,_.R("div",{class:_.Si("ytm-lp-offer-card-view-model",(Y["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(P==null||!P().useDarkTheme)},Y))},_.R("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.R(_.gw,{cond:function(){return S().titleIconType},
then:function(){return _.R("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.R(_.BX,{icon:function(){var m;return((m=S().titleIconType)==null?void 0:m.toString())||""}}))}}),_.R("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.R(_.qw,{text:function(){return S().title}})),_.R(_.rv,{data:function(){return S().titleBadge}},{badgeViewModel:function(m){return _.R("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.R(_.oT,{data:m.data}))}})),_.R("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.R(_.rv,{data:function(){return S().offerOptions}},{lpOfferCardOptionViewModel:function(m){var J=m.data;
return _.R(_.SX,null,_.R("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.R(BAS,{data:J,config:function(){var c;return{shouldDisplayRadioButton:(S().offerOptions||[]).length>1,isOptionSelected:J().id===((c=u())==null?void 0:c.id),handleRadioButtonClick:function(C){return void W(C)}}},
themeOverride:P}))}})),_.R("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.R(_.rv,{data:function(){var m;
return(m=u())==null?void 0:m.purchaseButtonOverride}},{buttonViewModel:_.aq}))))},"Ob");
cCh.idomCompat=!0;var CeS=_.AI(function(Y){var S=Y.data;var P=Y.themeOverride;Y={};Y=_.Si("ytm-lp-offer-card-section-view-model",(Y["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var u;return P==null?void 0:(u=P())==null?void 0:u.useDarkTheme},Y));
return _.R("ytm-lp-offer-card-section-view-model",null,_.R("div",{class:Y},_.R(_.gw,{cond:function(){return S().title!==void 0},
then:function(){return _.R("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.R("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.R(_.qw,{text:function(){return S().title}})),_.R(_.gw,{cond:function(){return S().subtitle},
then:function(){return _.R("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.R(_.qw,{text:function(){return S().subtitle}}))}}))}}),_.R("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.R(_.rv,{data:function(){return S().offerCards}},{lpOfferCardViewModel:function(u){return _.R("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.R(cCh,{data:u.data,
themeOverride:P}))}})),_.R(_.gw,{cond:function(){return S().footer},
then:function(){return _.R("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.R(_.qw,{text:function(){return S().footer}}))}})))},"Pb");var qBm=_.AI(function(Y){var S=Y.data;return _.R("lp-offer-table-cell-content-view-model",null,_.R("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.R(_.hA,null,_.R(_.rw,{when:function(){return S().title}},function(){return _.R(_.qw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return S().title}})}),_.R(_.rw,{when:function(){return S().subTitle}},function(){return _.R(_.qw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return S().subTitle}})}),_.R(_.rw,{when:function(){return S().featureDescription}},function(){return _.R(_.qw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return S().featureDescription}})}),_.R(_.rw,{when:function(){return S().description}},function(){return _.R(_.qw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return S().description}})}),_.R(_.rw,{when:function(){return S().iconType}},function(){return _.R("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.R(_.BX,{icon:function(){return S().iconType.toString()}}))}),_.R(_.rw,{when:function(){return S().purchaseButton}},function(){return _.R(_.rv,{data:function(){return S().purchaseButton}},{buttonViewModel:function(P){return _.R("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.R(_.aq,{data:P.data}))}})}),_.R(_.rw,{when:function(){return S().note}},function(){return _.R(_.qw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return S().note}})}),_.R(_.rw,{when:function(){return S().featureDetail}},function(){return _.R(_.qw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return S().featureDetail}})}),_.R(_.rw,{when:function(){return S().badge}},function(){return _.R(_.rv,{data:function(){return S().badge}},{badgeViewModel:_.oT})}))))},"Qb");
qBm.idomCompat=!0;var R5J=_.AI(function(Y){var S=Y.data;return _.R("lp-offer-table-cell-view-model",null,_.R("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(S().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;"}}},_.R(_.rv,{data:function(){return S().contents}},{lpOfferTableCellContentViewModel:qBm})))},
"Rb");
R5J.idomCompat=!0;var xed=_.AI(function(Y){var S=Y.data;var P=Y.lpTableIsFirstRow;var u=Y.lpTableIsLastRow;var W=function(){return(P==null?0:P())?"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"},m=function(){return(P==null?0:P())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(u==null?0:u())?"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 _.R("ytm-lp-offer-table-row-view-model",null,_.R("div",{class:"yt-lp-offer-table-row-view-model"},_.R(_.rv,{data:function(){return S().rowHeaderCell}},{lpOfferTableCellViewModel:function(J){return _.R("div",{class:W},_.R(R5J,{data:J.data}))}}),_.R(_.rv,{data:function(){return S().contentCells}},{lpOfferTableCellViewModel:function(J){return _.R("div",{class:m},_.R(R5J,{data:J.data}))}})))},"Sb");
xed.idomCompat=!0;var bIS=_.AI(function(Y){var S=Y.data;var P=Y.themeOverride;var u=_.E().resolve(_.PQ(_.F5)),W=function(){return _.g(S().logo,Vaf)||{}};
Y={};return _.R("ytm-lp-offer-table-section-view-model",null,_.R("div",{class:"yt-lp-offer-table-view-model"},_.R(_.gw,{cond:function(){var m,J;return u&&u()||(P==null?0:P().useDarkTheme)?(m=W())==null?void 0:m.imageDark:(J=W())==null?void 0:J.imageLight},
then:function(m){return _.R(_.ZZ,{data:m,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var J,c,C;return(C=(J=W())==null?void 0:(c=J.accessibilityData)==null?void 0:c.label)!=null?C:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.R(_.qw,{text:function(){return S().title}})),_.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.R(_.qw,{text:function(){return S().subtitle}})),_.R(_.gw,{cond:function(){return S().disclaimers},
then:function(m){return _.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.R(_.$Z,{each:m},function(J){return _.R("div",null,_.R(_.qw,{text:J}))}))}}),_.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.R(_.rv,{data:function(){return S().rows}},{lpOfferTableRowViewModel:function(m,J){return _.R(xed,{data:m.data,
lpTableIsFirstRow:function(){return J()===0},
lpTableIsLastRow:function(){return J()===S().rows.length-1}})}})),_.R("div",{class:_.Si((Y["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return S().hasFooterBackground},Y))},_.R(_.gw,{cond:function(){return S().footer},
then:function(){return _.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.R(_.qw,{text:function(){return S().footer}}))}}),_.R(_.gw,{cond:function(){return S().footerTitle},
then:function(){return _.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.R(_.qw,{text:function(){return S().footerTitle}}))}}),_.R(_.gw,{cond:function(){return S().footerDescription},
then:function(){return _.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.R(_.qw,{text:function(){return S().footerDescription}}))}}))))},"Tb");
bIS.idomCompat=!0;var TAs=_.AI(function(Y){var S=Y.data;var P=Y.themeOverride;var u=_.E().resolve(_.PQ(_.F5)),W=function(){var c;return P==null?void 0:(c=P())==null?void 0:c.useDarkTheme},m=function(){var c,C;
return u&&u()||W()?(c=S().image)==null?void 0:c.imageDark:(C=S().image)==null?void 0:C.imageLight};
Y={};Y=_.Si("ytm-lp-small-feature-section-view-model",(Y["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=W,Y));var J=function(){var c,C,x;return(x=(c=S().image)==null?void 0:(C=c.accessibilityData)==null?void 0:C.label)!=null?x:""};
return _.R("ytm-lp-small-feature-section-view-model",{class:Y},_.R(_.gw,{cond:function(){return m()&&!IrJ},
then:function(){return _.R("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.R(_.ZZ,{data:function(){return m()},
alt:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.R("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.R("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.R(_.gw,{cond:function(){return S().title},
then:function(c){return _.R(_.qw,{text:c})}})),_.R("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.R(_.qw,{text:function(){return S().description}}))))},"Ub");
TAs.idomCompat=!0;var KxS=_.AI(function(Y){var S=Y.data;var P=Y.themeOverride;Y={};return _.R("ytm-lp-small-feature-section-group-view-model",null,_.R("div",{class:_.Si("ytm-lp-small-feature-section-group-view-model",(Y["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(P==null||!P().useDarkTheme)},Y))},_.R("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.R(_.rv,{data:function(){return S().smallFeatures}},{lpSmallFeatureSectionViewModel:function(u){return _.R("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.R(TAs,{data:u.data,
themeOverride:P}))}}))))},"Vb");
KxS.idomCompat=!0;_.AL(_.AI(function(Y){var S=Y.data;var P=function(){return S().forcedTheme==="USER_INTERFACE_THEME_DARK"},u=function(){return S().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},W=function(){var J="",c,C;
var x=_.E().resolve(_.PQ(_.F5));x=P()||(x==null?0:x())?(c=S().themedImageViewModel)==null?void 0:c.imageDark:(C=S().themedImageViewModel)==null?void 0:C.imageLight;(c=CcE((x==null?void 0:x.sources)||[]))&&c.url&&(J=u()?"background-image: linear-gradient(to bottom, transparent, "+(S().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Bx(c.url)+");":"background-image: url("+_.Bx(c.url)+");");return J},m=function(){return{useDarkTheme:P()}};
Y={};return _.R("yt-section-group-view-model",null,_.R("div",{class:_.Si("yt-lp-section-group-view-model",(Y["yt-lp-section-group-view-model--premium-force-dark-mode"]=P,Y["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return S().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},Y))},_.R(_.gw,{cond:function(){return W().length},
then:function(){var J={};return _.R("div",{class:_.Si("yt-lp-section-group-view-model__bg-image",(J["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=u,J)),style:W})}}),_.R("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.R(_.rv,{data:function(){return S().sections}},{lpFaqSectionViewModel:function(J){return _.R(z5_,{data:J.data,
themeOverride:m})},
lpHeaderSectionViewModel:function(J){return _.R(meS,{data:J.data,themeOverride:m})},
lpHeadlineSectionViewModel:function(J){return _.R(neh,{data:J.data,themeOverride:m})},
lpLargeFeatureSectionViewModel:function(J){return _.R(jHm,{data:J.data,themeOverride:m})},
lpOfferCardSectionViewModel:function(J){return _.R(CeS,{data:J.data,themeOverride:m})},
lpComplexOfferCardSectionViewModel:function(J){return _.R(PeU,{data:J.data})},
lpOfferTableSectionViewModel:function(J){return _.R(bIS,{data:J.data,themeOverride:m})},
lpSmallFeatureSectionGroupViewModel:function(J){return _.R(KxS,{data:J.data,themeOverride:m})}}))))},"Wb"),"yt-section-group-view-model",{props:{data:_.wm}});var J1a=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Eem=_.AI(function(Y){function S(){if(J1a.has(Y.data().displayType)){var x=!u(),b;if((b=Y.disableDeselection)==null||!b.call(Y)||x){Y.data().selected=x;b=Object.assign({},J(),{selected:x});c(b);var T;(T=Y.callback)==null||T.call(Y,b,x)}}}
var P=_.Ms(),u=function(){var x,b;return!!(((x=Y.selected)==null?void 0:x.call(Y))!==void 0?(b=Y.selected)==null?0:b.call(Y):J().selected)},W=_.n(_.ji(Y.data)),m=W.next().value;
W=W.next().value;var J=m,c=W,C=_.Jq(jXh,function(){return Y.data().chipEntityKey||""});
return _.R("chip-view-model",{class:"ytChipViewModelHost",el:P},_.R(jVs,{data:function(){var x,b=Object.assign({},J(),{selected:u()}),T=C(),K=(x=Y.disableDeselection)==null?void 0:x.call(Y);a:switch(b.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":x=1;break a;default:x=0}return{text:(T==null?void 0:T.text)||b.text,state:b.disabled?1:b.selected?0:2,type:x,onTap:BO1(b,P,S,K),accessibilityLabel:b.accessibilityLabel||b.text}}}))},"Xb");
_.Eem.idomCompat={callbacks:{callback:!0}};_.AL(_.AI(function(Y){var S=_.Jq(n3Y,function(){var J;return(J=Y.data())==null?void 0:J.chipBarStateEntityKey}),P=function(){return Y.data().disableDeselection},u=_.n(_.ji(function(){var J;
if(((J=S())==null?void 0:J.selectedIndex)!=void 0)return S().selectedIndex;var c,C;J=_.n(((c=Y.data())==null?void 0:(C=c.chips)==null?void 0:C.entries())||[]);for(c=J.next();!c.done;c=J.next()){c=_.n(c.value);C=c.next().value;c=c.next().value;var x=void 0;if((x=_.g(c,_.wD))==null?0:x.selected)return C}return-1})),W=u.next().value,m=u.next().value;
return _.R("chip-bar-view-model",{class:_.Si("ytChipBarViewModelHost",Y.className),role:"tablist"},_.R(_.rv,{data:function(){return Y.data().chips}},{chipViewModel:function(J,c){return _.R("div",{class:"ytChipBarViewModelChipWrapper"},_.R(_.Eem,{data:J.data,
selected:function(){return c()===W()},
callback:function(C,x){C=!!x;x=c();m(C?x:-1);var b,T=(b=Y.data())==null?void 0:b.chipBarStateEntityKey;T&&C&&_.ip(_.qE("chipBarStateEntity",T,{key:T,selectedIndex:x}))},
disableDeselection:Y.disableDeselection||P}))}}))},"Yb"),"chip-bar-view-model",{props:{data:_.tL,
className:_.tL,disableDeselection:_.tL}});var hh=new Map,Gt=new Map,qzE=0,vB;var fyK=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],r11={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var fJS,gei;fJS=function(Y){return function(S){return function(){return String(S())+Y}}};
_.xi=fJS("px");gei=fJS("s");var rCh=_.AI(function(Y){function S(M){return function(){var zJ=G().numItemsPerGridRow,O=M()*zJ;zJ=O+zJ;var ca,hu;return(hu=(ca=u().contents)==null?void 0:ca.slice(O,zJ))!=null?hu:[]}}
var P=_.tI(Y,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),u=P.data,W=P.layoutContainerWidth,m=P.shouldUseOwnContainerSize,J=P.marginSettings;P=_.n(_.qb(!0,void 0,"qgr2Je"));var c=P.next().value,C=P.next().value,x=function(){var M,zJ=(M=_.g(u().showMoreButton,_.Gz))==null?void 0:M.trackingParams;zJ&&_.uA(_.BF(),zJ);C(!1)},b=function(){var M,zJ=(M=_.g(u().showLessButton,_.Gz))==null?void 0:M.trackingParams;
zJ&&_.uA(_.BF(),zJ);C(!0)};
P=_.Ms();var T=_.h1a(P,{canHaveZeroSize:!1}),K=function(){var M;return(M=u().contentAspectRatio)!=null?M:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},G=_.fJ(function(){var M=_.kI({containerWidth:m()&&T.width()>0?T.width()||W():W(),
sizing:"EXTRA_COMPACT",marginSettings:J(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:M.maxContainerWidth,numItemsPerGridRow:M.numItems,contentPadding:m()?M.margin:M.contentMargin,itemWidth:M.itemWidth,itemMargin:M.gutter/2}},void 0,"pqVdjc"),v=function(){if(u().enableVerticalExpansion){if(c())return 1;
var M,zJ,O=(zJ=(M=u().contents)==null?void 0:M.length)!=null?zJ:0;return Math.ceil(O/G().numItemsPerGridRow)}return G().numItemsPerGridRow<=2?2:1},a=function(){return u().enableVerticalExpansion&&u().showLessButton&&!c()&&v()>1},w=function(){var M,zJ;
return u().enableVerticalExpansion&&u().showMoreButton&&c()&&((zJ=(M=u().contents)==null?void 0:M.length)!=null?zJ:0)>G().numItemsPerGridRow},F=function(){return!a()},U=function(){return!w()},V={};
return _.R("grid-shelf-view-model",{class:_.Si("ytGridShelfViewModelHost",Y.className,(V.ytGridShelfViewModelHostHasBottomButton=function(){return a()||w()},V)),
el:P,style:_.Jg({"margin-left":(0,_.xi)(function(){return G().contentPadding}),
"margin-right":(0,_.xi)(function(){return G().contentPadding})})},_.R(_.gw,{cond:function(){return _.g(u().header,J53)},
then:function(M){return _.R(_.H$,{data:M,disableHorizontalPadding:!0})}}),_.R("div",null,_.R(_.$Z,{each:function(){return Array(v())}},function(M,zJ){return _.R($eS,{className:Y.className,
items:S(zJ),responsiveGridShelfLayout:G,contentAspectRatio:K})})),_.R("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.R(_.rv,{data:function(){return u().showMoreButton}},{buttonViewModel:function(M){return _.R("div",{hidden:U},_.R(_.aq,{data:M.data,
onClick:x}))}}),_.R(_.rv,{data:function(){return u().showLessButton}},{buttonViewModel:function(M){return _.R("div",{hidden:F},_.R(_.aq,{data:M.data,
onClick:b}))}})))},"dc");
rCh.idomCompat=!0;var $eS=_.AI(function(Y){var S=Y.items;var P=Y.responsiveGridShelfLayout;var u=Y.contentAspectRatio;Y=Y.className;var W=_.Ms();Cxh(W,function(){a:{var J=W.value;for(var c=S(),C=[],x=0;x<c.length;x++){var b=_.g(c[x],e73);if(!b||b==null||!b.inlinePlayerData){J=null;break a}var T=J.children.item(x);if(!T){J=null;break a}C.push({thumbnailElement:T,videoData:b})}J={gridVideoPreviewData:{gridItems:C}}}return J});
var m=(0,_.xi)(function(){return-P().itemMargin});
return _.R("div",{el:W,class:_.Si("ytGridShelfViewModelGridShelfRow",Y),style:_.Jg({"margin-left":m,"margin-right":m})},_.R(_.rv,{data:S,replacementWrapper:function(J){return _.R(G0J,{responsiveGridShelfLayout:P},J)}},{shortsLockupViewModel:function(J){return _.R(G0J,{responsiveGridShelfLayout:P},_.R(KfU,{data:J.data,
aspectRatio:function(){return u()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"ec"),G0J=_.AI(function(Y){return _.R("div",{style:_.Jg({width:(0,_.xi)(function(){return Y.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+Y.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},Y.children)},"fc");_.AL(rCh,"grid-shelf-view-model",{props:{data:_.wm,layoutContainerWidth:_.wm,shouldUseOwnContainerSize:_.wm,marginSettings:_.wm,className:_.wm}});var h5J=_.AI(function(Y){var S=_.n(_.qb(!1,void 0,"YYtxR")),P=S.next().value,u=S.next().value;S={};return _.R("yt-alert-banner-view-model",{class:_.Si("ytAlertBannerViewModelHost",function(){var W;a:switch((W=Y.data())==null?void 0:W.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":W="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":W="ytAlertBannerViewModelWarning";break a;default:W="ytAlertBannerViewModelInformational"}return W},(S.ytAlertBannerViewModelDismissed=P,S.ytAlertBannerViewModelFullbleed=
Y.fullbleed,S.ytAlertBannerViewModelNarrow=Y.narrow,S.ytAlertBannerViewModelIsInRichGrid=Y.isInRichGrid,S))},_.R(_.gw,{cond:function(){var W;
return!((W=Y.data())==null?0:W.hideIcon)},
then:function(){return _.R("div",{class:"ytAlertBannerViewModelIcon"},_.R(_.BX,{icon:function(){return"info_circle"}}))}}),_.R("div",{class:"ytAlertBannerViewModelOuterContainer"},_.R("div",{class:"ytAlertBannerViewModelContainer"},_.R("div",{class:"ytAlertBannerViewModelContent"},_.R("div",{class:"ytAlertBannerViewModelHeading"},_.R(_.qw,{text:function(){var W;
return(W=Y.data())==null?void 0:W.heading}})),_.R("div",{class:"ytAlertBannerViewModelBody"},_.R(_.qw,{text:function(){var W;
return(W=Y.data())==null?void 0:W.body}})))),_.R(_.rv,{data:function(){var W;
return(W=Y.data())==null?void 0:W.actionButton}},{buttonViewModel:function(W){return _.R(_.aq,{data:W.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.R(_.rv,{data:function(){var W;
return(W=Y.data())==null?void 0:W.dismissButton}},{buttonViewModel:function(W){return _.R(_.aq,{data:W.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var m;((m=Y.data())==null?0:m.disableLocalDismissBehavior)||u(!0)}})}}))},"gc");_.AL(h5J,"yt-alert-banner-view-model",{props:{data:_.wm,fullbleed:_.wm,narrow:_.wm,isInRichGrid:_.wm}});var v3u;v3u=_.EP({chipViewModel:_.Eem,buttonViewModel:_.aq});_.veL=_.WX(DWJ,{callbacks:{callback:!0}});_.Sr(DWJ);_.AL(_.veL,"chips-shelf-view-model",{props:{data:_.wm,callback:_.tL,enableSingleChipSelection:_.wm,disableChipsScrollAnimation:_.wm}});var De3=_.AI(function(Y){Y=_.tI(Y,{disabled:!1});var S=Y.active,P=Y.disabled;Y={};Y=_.Si("ytSwitchShapeTrack",(Y.ytSwitchShapeTrackActive=function(){return S()},Y.ytSwitchShapeTrackDisabled=function(){return P()},Y));
var u={};u=_.Si("ytSwitchShapeKnob",(u.ytSwitchShapeKnobActive=function(){return S()},u));
return _.R("switch-shape",{class:"ytSwitchShapeHost"},_.R("div",{class:Y}),_.R("div",{class:u}))},"hc");var IJS=_.AI(function(Y){var S=_.tI(Y,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),P=S.data;Y=S.className;var u=S.handleOnTapEventInParent,W=S.parentActive;S=_.n(_.ji(function(){var T;return(T=W())!=null?T:P().switchedOnByDefault||!1}));
var m=S.next().value,J=S.next().value,c=function(){return P().isDisabled},C=_.Ms();
S=_.mR(function(T){return T.key==="Enter"?(T.preventDefault(),C.value.click(),!1):!0});
var x=_.mR(function(T){if(P().handleOnTapEventInParent||u())return!0;if(c())return!1;w71(P(),m(),T);J(!m());return!1}),b={};
b=_.Si("ytSwitchButtonViewModelButton",(b.ytSwitchButtonViewModelTappable=function(){return!c()},b));
return _.R("switch-button-view-model",{class:_.Si("ytSwitchButtonViewModelHost",Y)},_.R("button",{el:C,class:b,"on:click":x,"on:keydown":S,"aria-label":function(){return m()?P().a11yLabelSwitchedOn:P().a11yLabelSwitchedOff},
"aria-pressed":m,"aria-disabled":c},_.R(De3,{active:m,disabled:c})))},"ic");_.Sr(dWh);var aJ6=_.WX(dWh,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});_.bc=_.WX(X7$,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});_.Sr(X7$);var o3J=_.EP({buttonViewModel:_.aq,switchButtonViewModel:IJS,avatarViewModel:_.rH,accountLinkButtonViewModel:n48,subscribeButtonViewModel:_.y3d,collectionThumbnailViewModel:fxi,toggleButtonViewModel:_.vL});_.Sr(UWE);var wi_,pit;wi_=_.AI(function(Y){function S(){var nu;((nu=_.E().resolve(_.PQ(_.Tz)))==null?0:nu.isKeyBoardInUse())&&U9(!0)}
function P(){U9(!1)}
var u=Y.data;var W=Y.isMenuItem;var m=Y.isCompact;var J=Y.onTap;var c=Y.trailingAccessory;var C=Y.hideSelectionTextChevron;var x=Y.disabled;var b=Y.inPopup;var T=Y.disableHorizontalPadding;Y=Y.isOverlay;var K=_.f("apply_button_role_to_list_item"),G=_.GI(function(nu){return aya(nu,u())}),v=function(){return _.f("enable_web_shorts_captions_language_command")?Object.assign({},u(),G()):u()},a=function(){return!(v().isSelected===void 0||!v().selectionStyle||v().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
w=function(){return(_.lL(v().rendererContext)||J)&&!a()},F=function(){return _.lL(v().rendererContext)||a()},U={};
Y=_.Si("yt-list-item-view-model-wiz",(U["yt-list-item-view-model-wiz--is-overlay"]=Y,U["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!K&&w1()},U));
U={};var V=_.Si("yt-list-item-view-model-wiz__label",(U["yt-list-item-view-model-wiz__container"]=function(){return!a()},U["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!v().isDisabled||!(x==null||!x())},U["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!v().subtitle},U["yt-list-item-view-model-wiz__container--compact"]=m,U["yt-list-item-view-model-wiz__container--tappable"]=w,U["yt-list-item-view-model-wiz__container--in-popup"]=b,U["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return K&&w1()},U));
U={};var M=_.Si("yt-list-item-view-model-wiz__container",(U["yt-list-item-view-model-wiz__container--tappable"]=F,U["yt-list-item-view-model-wiz__container--compact"]=m,U["yt-list-item-view-model-wiz__container--in-popup"]=b,U["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=T,U)),zJ=function(){return v().leadingImage||v().leadingAccessory},O=_.Si("yt-list-item-view-model-wiz__image-container",function(){return zJ()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
b=_.Ms();var ca=_.Ms(),hu=K?ca:b,ah=_.AI(function(){return _.R(_.gw,{cond:function(){return K},
then:function(){return _.R("div",{class:V,el:ca,role:function(){return F()||w()?"button":void 0},
tabindex:function(){return J||w()?0:void 0},
"on:keydown":yX,"on:click":va},_.R(LxL,{data:v,hideSelectionTextChevron:C,trailingAccessory:c}))},
else:function(){return _.R("div",{class:V,el:ca},_.R(LxL,{data:v,hideSelectionTextChevron:C,trailingAccessory:c}))}})},"jc");
ah.idomCompat=!0;_.Zw(b,function(){return v().rendererContext});
var va=_.mR(function(nu){return void(J==null?void 0:J(nu))}),yX=_.FJ(),la=_.n(_.qb(!1,void 0,"bOoKke"));
U=la.next().value;la=la.next().value;var w1=U,U9=la;_.LE(function(){w()&&(hu.value.addEventListener("focusin",S),hu.value.addEventListener("focusout",P));_.aI(function(){hu.value&&w()&&(hu.value.removeEventListener("focusin",S),hu.value.removeEventListener("focusout",P))})});
U=_.mR(function(){return!1});
return _.R("yt-list-item-view-model",{el:b,class:Y,role:function(){return(W==null?0:W())?"menuitem":"listitem"},
tabindex:function(){var nu=w();nu=K?void 0:J||nu?0:void 0;return nu},
"on:keydown":K?U:yX,"on:click":K?U:va},_.R(_.gw,{cond:a,then:function(){return _.R(_.hA,null,_.R(_.rw,{when:function(){return v().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.R(aJ6,{labelRenderable:function(){return _.R(ah,null)},
isCompact:m,checked:function(){return v().isSelected},
hasLeadingLabel:function(){return!!zJ()},
labelClass:M,selectElementClass:O,disableHorizontalPadding:T})}),_.R(_.rw,{when:function(){return v().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.R(_.bc,{labelRenderable:function(){return _.R(ah,null)},
isCompact:m,checked:function(){return v().isSelected},
hasLeadingLabel:function(){return!!zJ()},
labelClass:M,selectElementClass:O})}),_.R(_.rw,{when:function(){return v().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.R(_.bc,{labelRenderable:function(){return _.R(ah,null)},
isCompact:m,checked:function(){return v().isSelected},
hasLeadingLabel:function(){return!!zJ()},
labelClass:M,selectElementClass:O,useCheckIcon:!0})}),_.R(_.GB,null,function(){return _.R(ah,null)}))},
else:function(){return _.R(ah,null)}}))},"kc");
pit=_.f("web_enable_sink_list_view_models")?wi_:UWE;_.TC=_.f("web_enable_sink_list_view_models")?wi_:_.WX(UWE,{callbacks:{onTap:!0,trailingAccessory:!0}});wi_.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var LxL=_.AI(function(Y){var S=Y.data;var P=Y.hideSelectionTextChevron;var u=Y.trailingAccessory;return _.R(_.SX,null,_.R(Fxs,{data:S,isLeading:!0,hideSelectionTextChevron:function(){return!(P==null||!P())}}),_.R(sHi,{data:S}),_.R(_.gw,{cond:function(){return!!u},
then:function(){return _.R("div",{class:"yt-list-item-view-model-wiz__trailing"},u==null?void 0:u())},
else:function(){return _.R(Fxs,{data:S,isLeading:!1,hideSelectionTextChevron:function(){return!(P==null||!P())}})}}))},"lc"),Fxs=_.AI(function(Y){var S=Y.data;
var P=Y.isLeading;var u=Y.hideSelectionTextChevron;var W=_.Si("yt-list-item-view-model-wiz__button-container");Y={};var m=_.Si("yt-list-item-view-model-wiz__image-container",(Y["yt-list-item-view-model-wiz__leading"]=P,Y["yt-list-item-view-model-wiz__trailing"]=function(){return!P()},Y)),J=function(){return P()?S().leadingImage:S().trailingImage},c=_.Si("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
Y={};var C=_.Si("yt-list-item-view-model-wiz__accessory",(Y["yt-list-item-view-model-wiz__leading"]=P,Y["yt-list-item-view-model-wiz__trailing"]=function(){return!P()},Y)),x=function(){return iLa(S().listItemIconAfterSelectionText)};
return _.R(_.gw,{cond:function(){return ZL1(S(),P())},
then:function(){return _.R(_.SX,null,_.R(_.gw,{cond:J,then:function(b){return _.R("div",{class:m,"aria-hidden":"true"},_.R(_.ZZ,{data:b,alt:"",preserveWidth:!0,preserveHeight:!0,className:c}))}}),_.R(_.gw,{cond:function(){return P()&&S().leadingAccessory},
then:function(){return _.R("div",{class:m},_.R(_.rv,{data:function(){return S().leadingAccessory}},{avatarViewModel:function(b){return _.R(_.qr,{data:b.data,
avatarButtonCustomClassName:c})},
collectionThumbnailViewModel:fxi}))}}),_.R(_.gw,{cond:function(){return!P()&&S().trailingButton},
then:function(){return _.R("div",{class:W},_.R(_.rv,{data:function(){return S().trailingButton}},{buttonViewModel:function(b){return _.R(_.aq,{data:b.data,
className:C})}}))}}),_.R(_.gw,{cond:function(){var b;
return!P()&&((b=S().trailingButtons)==null?void 0:b.buttons)},
then:function(){return _.R("div",{class:W},_.R(_.rv,{data:function(){var b;return(b=S().trailingButtons)==null?void 0:b.buttons}},{buttonViewModel:function(b){return _.R(_.aq,{data:b.data,
className:C})},
accountLinkButtonViewModel:function(b){return _.R(n48,{data:b.data,className:function(){return C()||""}})},
switchButtonViewModel:function(b){return _.R(IJS,{data:b.data,className:C})},
subscribeButtonViewModel:function(b){return _.R(Nju,{data:b.data,isOverlay:!1,animateWidth:!1})},
toggleButtonViewModel:function(b){return _.R(_.vL,{data:b.data,className:C})}}))}}),_.R(_.gw,{cond:function(){return!P()&&!!S().selectionText},
then:function(){return _.R(_.SX,null,_.R(_.qw,{text:function(){return S().selectionText},
className:_.Si("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.R(_.gw,{cond:function(){return!u()},
then:function(){return _.R(_.BX,{icon:x,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"mc"),sHi=_.AI(function(Y){var S=Y.data;
return _.R(_.gw,{cond:function(){return S().title||S().subtitle},
then:function(){return _.R("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.R("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.R(_.gw,{cond:function(){return S().title},
then:function(P){return _.R(_.qw,{text:P,className:"yt-list-item-view-model-wiz__title"})}})),_.R(_.gw,{cond:function(){return S().subtitle},
then:function(P){return _.R(_.qw,{text:P,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"nc");_.KB=_.AI(function(Y){var S=Y.data;var P=Y.onTap;var u=Y.onSwitch;var W=Y.overrideDisabled;Y=_.n(_.ji(function(){var b;return((b=FKh(x()))==null?void 0:b.switchedOnByDefault)||!1}));
var m=Y.next().value,J=Y.next().value;Y=_.n(_.qb(!1,void 0,"Ri8Twb"));var c=Y.next().value,C=Y.next().value,x=function(){var b;if(!(b=S().switchButton)){var T=S();b=W==null?void 0:W();T={switchOnCommand:T.switchOnCommand,switchOffCommand:T.switchOffCommand,switchedOnByDefault:T.switchedOnByDefault,isDisabled:T.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:T.a11yLabelSwitchedOn,a11yLabelSwitchedOff:T.a11yLabelSwitchedOff};b!==void 0&&(T.isDisabled=b);b={switchButtonViewModel:T}}return b};
return _.R("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.R(_.TC,{data:function(){return{title:S().title,subtitle:S().attributedSubtitle,leadingImage:S().leadingImage,leadingAccessory:S().leadingAccessory,isDisabled:S().isDisabled}},
onTap:function(b){var T=FKh(x());!T||T.isDisabled||S().ignoreTapUntilCommandCompletes&&c()||(P==null||P(b),w71(T,m(),b,S().ignoreTapUntilCommandCompletes,C),J(!m()),u==null||u(m()))},
trailingAccessory:function(){return _.R(_.rv,{data:x},{switchButtonViewModel:function(b){return _.R(IJS,{data:b.data,parentActive:m,handleOnTapEventInParent:!!P})}})}}))},"oc");var def=_.Td("DOWNLOAD",{},"Download"),lJ_=_.Td("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),Xim=_.Td("RETRY",{},"Retry"),ZIt=_.Td("PAUSE_DOWNLOADING",{},"Pause downloading"),iIu=_.Td("RESUME_DOWNLOAD",{},"Resume download"),QX$={text:def,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},af={text:lJ_,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},y1E={text:Xim,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
ki9={text:ZIt,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},MW9={text:iIu,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var oeu=_.AI(function(Y){var S=function(){var c=Y.data();c=_.dv(c.rendererContext);var C;return(C=_.g(c,_.mA))==null?void 0:C.videoId},P=_.GI(function(c){var C=S(),x=VWa(Y.data());
return C?_.sC(c,C):x?_.dT(c,x):"TRANSFER_STATE_UNKNOWN"}),u=_.Jq(_.vpX,S),W=_.GI(function(c){return _.fPh(c,S(),VWa(Y.data()))}),m=function(){return HL9(P(),u(),_.dv(Y.data().rendererContext),!!VWa(Y.data()))},J=function(){return W()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.R("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:J},_.R(_.gw,{cond:function(){return!J()},
then:function(){return _.R(_.gw,{cond:m,then:function(c){return _.R(_.$Z,{each:c},function(C){return _.R(_.TC,{data:C,isCompact:Y.isCompact,isMenuItem:Y.isMenuItem,inPopup:Y.inPopup})})}})}}))},"pc");
oeu.idomCompat=!0;var OL8=_.EP({listItemViewModel:pit,downloadListItemViewModel:oeu,switchListItemViewModel:_.KB});_.Sr(YZf);var tUi;tUi=_.AI(function(Y){var S=Y.data;var P=Y.isCompact;var u=Y.hideSelectionTextChevron;var W=Y.inPopup;var m=Y.isOverlay;var J=function(){return e1h(S())&&(W==null?void 0:W())};
Y={};return _.R("yt-list-view-model",{class:_.Si("yt-list-view-model-wiz",(Y["yt-list-view-model-wiz--kaios-spat-nav"]=Iy9(),Y)),role:function(){return J()?"menu":"list"}},_.R(_.rv,{data:function(){return S().listItems}},{listItemViewModel:function(c){return _.R(_.TC,{data:c.data,
isMenuItem:J,isCompact:P,hideSelectionTextChevron:u,inPopup:W,isOverlay:m})},
downloadListItemViewModel:function(c){return _.R(oeu,{data:c.data,isMenuItem:J,isCompact:P,inPopup:W})},
switchListItemViewModel:_.KB}))},"qc");
_.ACS=_.f("web_enable_sink_list_view_models")?tUi:_.WX(YZf);tUi.idomCompat=!0;var UeJ=_.AI(function(Y){var S=Y.data;var P=Y.isOverlay;Y={};return _.R("yt-course-perks-view-model",{class:_.Si("ytwCoursePerksViewModelHost",(Y.ytwCoursePerksViewModelHostOverlay=P,Y))},_.R("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.R(_.qw,{text:function(){return S().title}})),_.R("div",null,_.R(_.gw,{cond:function(){return S().perks},
then:function(u){return _.R(_.ACS,{data:function(){return{listItems:u()}},
isCompact:!0,isOverlay:P})}})))},"rc");_.AL(UeJ,"yt-course-perks-view-model",{props:{data:_.tL,isOverlay:_.tL}});_.AL(_.AI(function(Y){var S=Y.data;return _.R("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.R("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.R(_.qw,{text:function(){return S().title}})),_.R("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.R(_.qw,{text:function(){return S().progressSummary}})),_.R("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.R("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Jg({width:function(){return S().progressPercentage*100+"%"}})})))},"sc"),"yt-course-progress-view-model",{props:{data:_.wm}});var QHi=_.AI(function(Y){var S=_.tI(Y,{}).data;return _.R("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.R(_.gw,{cond:function(){return S().progressSummary},
then:function(P){return _.R("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.R(_.qw,{text:P}))}}),_.R("div",{class:"ytwProgressViewModelHostProgressContainer"},_.R("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.R(_.qw,{text:function(){var P;
return(P=S())==null?void 0:P.leadingLabel}})),_.R("div",{class:"ytwProgressViewModelHostProgressBar"},_.R("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var P;return"width: "+(((P=S())==null?void 0:P.progressPercentage)||0)*100+"%"}}))))},"tc");var E7=_.AI(function(Y){var S=Y.starNumber;var P=Y.data;var u=function(){var W;return((W=P())==null?void 0:W.rating)||0};
return _.R(_.gw,{cond:function(){return S()},
then:function(W){return _.R(_.hA,null,_.R(_.rw,{when:function(){return u()>=W()-.25}},function(){return _.R("div",{class:"ytStarRatingViewModelHostStar"},_.R(_.BX,{icon:"STAR_FILLED"}))}),_.R(_.rw,{when:function(){return u()>=W()-.75}},function(){return _.R("div",{class:"ytStarRatingViewModelHostStar"},_.R(_.BX,{icon:"STAR_HALF"}))}),_.R(_.GB,null,function(){return _.R("div",{class:"ytStarRatingViewModelHostStar"},_.R(_.BX,{icon:"STAR_BORDER"}))}))}})},"uc"),k0J=_.AI(function(Y){Y=Y.data;
return _.R("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.R(E7,{starNumber:1,data:Y}),_.R(E7,{starNumber:2,data:Y}),_.R(E7,{starNumber:3,data:Y}),_.R(E7,{starNumber:4,data:Y}),_.R(E7,{starNumber:5,data:Y}))},"vc");_.AL(_.AI(function(Y){var S=_.tI(Y,{}).data;return _.R("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.R("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.R(_.qw,{text:function(){var P;return(P=S())==null?void 0:P.title}})),_.R("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.R(_.gw,{cond:function(){return S().starProgressViewModels},
then:function(P){return _.R("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.R(_.rv,{data:P},{progressViewModel:QHi}))}}),_.R("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.R("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.R(_.qw,{text:function(){var P;
return(P=S())==null?void 0:P.averageRatingLabel}})),_.R(_.gw,{cond:function(){return S().zeroStateText},
then:function(P){return _.R("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.R(_.qw,{text:P}))}}),_.R(_.gw,{cond:function(){return S().starRatingViewModel},
then:function(P){return _.R("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.R(_.rv,{data:P},{starRatingViewModel:k0J}))}}),_.R("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.R(_.qw,{text:function(){var P;
return(P=S())==null?void 0:P.totalRatingsCountLabel}})))))},"wc"),"yt-course-ratings-view-model",{props:{data:_.tL}});var MUL;MUL={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.yCi=_.AI(function(Y){var S=_.Ms(),P=_.uL();_.Ij(function(){requestAnimationFrame(function(){var J;(J=P.lottieEl)==null||J.addEventListener("DOMLoaded",function(){var c;(c=Y.onLottieLoaded)==null||c.call(Y)})});
var u,W={browseEndpoint:{params:(u=Y.data)==null?void 0:u.call(Y).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}},m;((m=Y.shouldSkipRequest)==null?0:m.call(Y))||_.ms(S.value,"yt-navigate",{endpoint:W})});
return _.R("yt-learning-journey-loader-view-model",{class:_.Si("learningJourneyLoaderViewModelHost",Y.className),"data-target-id":function(){var u;return((u=Y.data)==null?void 0:u.call(Y).targetId)||""},
el:S},_.R(_.PX,{className:_.Si("learningJourneyLoaderViewModelLoader",Y.className),animationName:function(){return MUL.animationConfig.name},
data:MUL,animationRef:P}))},"xc");_.AL(_.yCi,"yt-learning-journey-loader-view-model",{props:{data:_.wm,className:_.tL,onLottieLoaded:_.tL,shouldSkipRequest:_.tL}});var NA_=_.AI(function(Y){var S=function(){return Y.data()},P=_.n(_.qb(-1,void 0,"X3Tlgd")),u=P.next().value,W=P.next().value,m=function(x){return u()===x},J=function(x){return S().correctAnswerIndex===x},c=function(){return u()!==-1},C=_.mR(function(){W(-1);
return!1});
return _.R("learning-journey-quiz-view-model",{class:_.Si("learningJourneyQuizViewModelHost",Y.className),style:_.Jg({background:function(){return FW(wH(S())).backgroundColor}})},_.R(_.gw,{cond:function(){return!!S().video},
then:function(){return _.R("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Jg({background:function(){return FW(wH(S())).videoBackgroundColor}})},_.R(_.rv,{data:function(){return S().video}},{lockupViewModel:function(x){return _.R(kw,{data:x.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.R("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.R("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.R("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.Jg({color:function(){return FW(wH(S())).primaryTextColor}})},_.R(_.qw,{text:function(){var x=S(),b=c(),T=u()===S().correctAnswerIndex;
return b?T?x.successTitle:x.failureTitle:x.questionHeaderText}})),_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.R(_.gw,{cond:c,
then:function(){return _.R("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":C,role:"button","aria-label":"Reset","tab-index":"0"},_.R("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Jg({fill:function(){return FW(wH(S())).primaryTextColor}})},_.R("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"})))}}),
_.R(_.rv,{data:function(){return S().overflowMenu}},{buttonViewModel:function(x){return _.R(_.aq,{data:x.data})}}))),_.R("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.Jg({color:function(){return FW(wH(S())).secondaryTextColor}})},_.R(_.qw,{text:function(){var x=S();
return c()?x.explanationText:x.questionSubheaderText}}))),_.R("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.R(_.$Z,{each:function(){return S().optionsData||[]}},function(x,b){var T={};
return _.R("div",{class:_.Si("learningJourneyQuizViewModelHostQuizOptions",(T.learningJourneyQuizViewModelHostQuizHover=function(){return!c()},T.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return u()===S().correctAnswerIndex&&m(b())},T.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return u()!==S().correctAnswerIndex&&m(b())},T.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return c()&&!m(b())},T)),
"on:click":_.mR(function(){if(c())return!1;W(b());return!1}),
style:_.Jg({background:function(){return c()&&m(b())?"":FW(wH(S())).optionColor}}),
role:"button","aria-disabled":c,"tab-index":"0"},_.R(_.gw,{cond:c,then:function(){return _.R("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var K=b();return J(K)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.Jg({fill:function(){return FW(wH(S())).primaryTextColor}})},_.R("path",{d:function(){var K=b();
return J(K)?"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"}}))}}),_.R(_.qw,{text:x.optionText}))})))))},"yc");
NA_.idomCompat=!0;_.AL(NA_,"learning-journey-quiz-view-model",{props:{data:_.wm,className:_.wm}});var HIh=_.AI(function(Y){var S=_.Ms();_.Zw(S,function(){return Y.data().rendererContext});
var P=_.tI(Y,{palette:void 0,isLastItem:!1}),u=P.palette,W=P.isLastItem,m=function(){return Y.data().isHighlighted},J=function(){var x;
return SZ9((x=u())==null?void 0:x.iconDisabledColor)},c=function(){var x;
return SZ9((x=u())==null?void 0:x.primaryTitleColor)},C=function(){var x;
return SZ9((x=u())==null?void 0:x.secondaryTitleColor)};
P={};return _.R("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:S},_.R(_.rv,{data:function(){return Y.data().thumbnail}},{thumbnailViewModel:_.l7}),_.R("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.R("div",{class:_.Si("ytMacroMarkerListItemViewModelTimeDescription",(P.ytMacroMarkerListItemViewModelHighlighted=m,P)),
style:_.Jg({"background-color":function(){return m()?c():J()},
color:function(){return m()?"":C()}})},_.R(_.qw,{text:function(){return Y.data().timestamp}})),_.R("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Jg({"background-color":function(){return W()?"transparent":J()}})}),_.R("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(m()?c():C())}},_.R(_.qw,{text:function(){return Y.data().title}}))))},"zc");_.fB=_.AI(function(Y){function S(fu){F("transform:translateX("+(_.X3("HTML_DIR")==="rtl"?"":"-")+fu+"px)")}
function P(fu){return Math.min(Math.max(fu,0),w()-O())}
function u(){var fu=M()+va();return W()?(Math.round(O()/fu)||1)*fu:0}
var W=function(){return Y.data().items||[]},m=function(){return Y.data().previousButton},J=function(){return Y.data().nextButton},c=function(){var fu,G3;
return(G3=(fu=Y.disableArrows)==null?void 0:fu.call(Y))!=null?G3:!1},C=function(){var fu;
return!((fu=Y.forceNarrowLayout)==null||!fu.call(Y))},x=_.Ms(),b=_.Ms(),T=_.n(_.qb(0,void 0,"yngx7d")),K=T.next().value,G=T.next().value;
T=_.n(_.qb(0,void 0,"rUOyGb"));var v=T.next().value,a=T.next().value,w=v;v=_.n(_.qb("",void 0,"jv2kWc"));T=v.next().value;var F=v.next().value;v=_.n(_.qb(0,void 0,"Xb0f0d"));var U=v.next().value,V=v.next().value,M=U;v=_.n(_.qb(0,void 0,"pt5wQ"));U=v.next().value;var zJ=v.next().value,O=U;v=_.n(_.qb(!1,void 0,"FfPefe"));var ca=v.next().value,hu=v.next().value;v=_.n(_.qb(0,void 0,"kB5mhb"));U=v.next().value;var ah=v.next().value,va=U;v=_.n(_.qb(0,void 0,"dnDmUd"));var yX=v.next().value,la=v.next().value,
w1=function(){var fu,G3=(fu=Y.data())==null?void 0:fu.responsiveContainerConfiguration,wd,Wd;return G3?egf(G3==null?void 0:G3.responsiveSize):(Wd=(wd=Y.sizing)==null?void 0:wd.call(Y))!=null?Wd:"STANDARD"};
v=_.fJ(function(){return!c()&&K()>0},void 0,"ZIGxke");
U=_.fJ(function(){return!c()&&K()<w()-O()},void 0,"OJzhRd");
var U9=function(){G(P(K()-u()));S(K())},nu=function(){G(P(K()+u()));
S(K())},Yc=function(){x.value!==null&&$_()},tu;
_.LE(function(){$_();window.ResizeObserver?(tu=new ResizeObserver(_.KX(Yc,0)),tu.observe(x.value)):window.addEventListener("resize",Yc)});
_.aI(function(){if(window.ResizeObserver){var fu;(fu=tu)==null||fu.disconnect()}else window.removeEventListener("resize",Yc)});
var $_=function(){var fu=x.value.clientWidth,G3=Y.includeMargin!==void 0?Y.includeMargin():!1,wd;var Wd=Y.hasPeek!==void 0?Y.hasPeek():!((wd=Y.data())==null||!wd.hasPeek);fu=_.kI({containerWidth:fu,hasPeek:Wd,sizing:w1(),marginSettings:G3?C()?4:1:0});ah(fu.gutter);la(fu.margin);V(fu.itemWidth);hu(fu.maxContainerWidth<528||C());zJ(fu.maxContainerWidth);W()&&a((fu.itemWidth+fu.gutter)*W().length-fu.gutter)};
return _.R("horizontal-shelf-view-model",{class:_.Si("ytwHorizontalShelfViewModelHost",Y.className),el:x},_.R(_.gw,{cond:function(){return Y.data().header},
then:function(){return _.R("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Jg({width:function(){return O()+"px"},
padding:function(){return"0 "+yX()+"px"}})},_.R(_.rv,{data:function(){return Y.data().header}},{sectionHeaderViewModel:function(fu){return _.R(_.H$,{data:fu.data,
disableHorizontalPadding:!0,forceSmallLayout:ca,useResponsiveLayout:!0})}}))}}),_.R("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.R("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Jg({width:function(){return O()+"px"},
padding:function(){return"0 "+yX()+"px"},
overflow:function(){return c()?"auto":"hidden"}})},_.R("div",{class:"ytwHorizontalShelfViewModelItems",
el:b,style:T},_.R(_.rv,{data:W},{macroMarkerListItemViewModel:function(fu,G3){return _.R("div",{style:_.Jg({width:function(){return M()+"px"},
"margin-right":function(){return(G3()===W().length-1?0:va())+"px"}})},_.R(HIh,{data:fu.data,
palette:_.o_(Y.palette),isLastItem:function(){return G3()===W().length-1}}))},
lockupViewModel:function(fu,G3){var wd=fu.data;return _.R("div",{style:_.Jg({width:function(){return M()+"px"},
"margin-right":function(){return(G3()===W().length-1?0:va())+"px"}})},_.R(kw,{data:wd,
containerType:4,sizing:w1,protectBackground:Y.protectBackground,thumbnailFixedWidth:function(){return PqE(wd())+"px"},
thumbnailTargetWidth:function(){return PqE(wd())}}))}}))),_.R(_.gw,{cond:v,
then:function(){return _.R("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.R(_.rv,{data:m},{buttonViewModel:function(fu){return _.R(_.aq,{data:fu.data,onClick:U9})}}))}}),_.R(_.gw,{cond:U,
then:function(){return _.R("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.R(_.rv,{data:J},{buttonViewModel:function(fu){return _.R(_.aq,{data:fu.data,onClick:nu})}}))}})))},"Ac");
_.fB.idomCompat=!0;var VUh=_.AI(function(Y){var S=function(){return Y.data().targetId||""},P=function(){var b;
return((b=Y.data())==null?void 0:b.expansionEntityKey)||""},u=_.Jq(_.mkE,P),W=function(){var b;
return u()?u().value===S():(b=Y.data())==null?void 0:b.isExpanded},m=function(){if(W()){var b=!0;
Y.onCollapse!==void 0&&(b=Y.onCollapse());b&&_.ip(_.qE("stringEntity",P(),{key:P(),value:""}))}else _.ip(_.qE("stringEntity",P(),{key:P(),value:S()}))},J=_.mR(m),c=function(){var b;
return(((b=Y.accordionStyle)==null?void 0:b.call(Y))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},C={},x={};
return _.R("yt-accordion-item-view-model",{class:_.Si("ytAccordionItemViewModelHost",Y.className,(C.ytAccordionItemViewModelExpanded=function(){return W()},C.ytAccordionItemViewModelHidden=function(){var b;
return(b=Y.hideIfNotExpanded)==null?void 0:b.call(Y)},C.ytAccordionItemViewModelMini=c,C)),
"data-target-id":S},_.R("div",{class:"ytAccordionItemViewModelContainer"},_.R("div",{class:"ytAccordionItemViewModelLeftSection","on:click":J},_.R(_.qw,{text:function(){return Y.data().title},
className:"ytAccordionItemViewModelLabel"})),_.R("div",{class:"ytAccordionItemViewModelRightSection"},_.R(_.rv,{data:function(){return W()?Y.data().expandButton:Y.data().collapseButton}},{buttonViewModel:function(b){return _.R(_.aq,{data:b.data,
className:"ytAccordionItemViewModelToggleButton",onClick:m})}}))),_.R("div",{class:"ytAccordionItemViewModelContainer"},_.R("div",{class:_.Si("ytAccordionItemViewModelContent",(x.ytAccordionItemViewModelExpandedSubtitle=function(){return W()},x))},_.R(_.gw,{cond:function(){return!c()},
then:function(){return _.R(_.qw,{text:function(){return Y.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.R(_.rv,{data:function(){return Y.data().content}},{horizontalShelfViewModel:function(b){return _.R(_.fB,{data:b.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Bc");_.e5s=_.AI(function(Y){var S=_.n((0,_.dts)(Y.data)).next().value,P=function(){return Y.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},u=function(){return P()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},W=_.n(_.qb(!0,void 0,"ewf0jb")),m=W.next().value,J=W.next().value,c=function(){return u()&&m()},C=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){J(!m())}}};
W={};return _.R("yt-accordion-view-model",{class:_.Si("ytAccordionViewModelHost",(W.ytAccordionViewModelMinimized=function(){return c()},W)),
"data-target-id":function(){return Y.data().targetId||""}},_.R(_.gw,{cond:function(){return u()||!!S().title},
then:function(){return _.R("div",{class:"ytAccordionViewModelHeader"},_.R(_.qw,{text:function(){return S().title},
className:"ytAccordionViewModelTitle"}),_.R(_.gw,{cond:u,then:function(){return _.R(HL,{data:C,iconName:function(){return c()?"chevron_down":"chevron_up"}})}}))}}),_.R("div",{class:"ytAccordionViewModelContent"},_.R(_.rv,{data:function(){return S().contents}},{accordionItemViewModel:function(x){return _.R(VUh,{data:x.data,
className:"ytAccordionViewModelRow",accordionStyle:P,hideIfNotExpanded:c,onCollapse:function(){return u()?(J(!0),!1):!0}})}})),_.R("div",null,_.R(_.qw,{text:function(){return S().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})))},"Cc");_.AL(_.e5s,"yt-accordion-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S,P=(S=_.E().resolve(_.PQ(_.F5)))==null?void 0:S(),u=_.n(_.qb(!1,void 0,"XM2Sxc"));S=u.next().value;var W=u.next().value;u=_.n(_.qb(!0,void 0,"Jgzg2d"));var m=u.next().value,J=u.next().value,c=_.Ms(),C=function(G){W(!0);G={learningJourneyFormData:{query:G}};_.ae(Y.data().searchEndpoint||{},{form:{formData:G}});return!1};
u=_.mR(function(){J(c.value.value.length===0)});
var x=_.mR(function(G){if(G.key==="Enter"&&!G.shiftKey&&!m()){var v=G.target;G.preventDefault();C(v.value)}}),b={},T={},K={};
return _.R("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.R("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.R(_.ZZ,{data:function(){return Y.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.R("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.R("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.R("div",{class:_.Si("ytLearningJourneyZeroStateSearchBar",(b.ytLearningJourneyZeroStateSearchBarDark=P,b))},_.R("textarea",{class:_.Si("ytLearningJourneyZeroStateTextInput",(T.ytLearningJourneyZeroStateTextInputDark=P,T)),el:c,"on:keyup":u,"on:keydown":x,placeholder:"What do you want to learn?",
rows:1})),_.R("div",{class:_.Si("ytLearningJourneyZeroStateSearchButtonContainer",(K.ytLearningJourneyZeroStateSearchButtonContainerDark=P,K))},_.R(_.aq,{data:function(){return _.g(Y.data().searchButton,_.Gz)},
className:"search-button",onClick:function(){return C(c.value.value)},
buttonOverrides:function(){return{disabled:m(),style:P?"mono-inverse":"mono",size:"XL"}}}))),_.R(_.gw,{cond:function(){return!!Y.data().errorBanner},
then:function(){return _.R("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.R(_.rv,{data:function(){return Y.data().errorBanner}},{alertBannerViewModel:h5J}))}})),_.R(_.gw,{cond:S,
then:function(){return _.R("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.R(_.rv,{data:function(){return Y.data().loader}},{learningJourneyLoaderViewModel:function(G){return _.R(_.yCi,{data:G.data,
shouldSkipRequest:!0})}}))},
else:function(){return _.R("div",null,_.R(_.gw,{cond:function(){return!!Y.data().learningJourneyShelf},
then:function(){return _.R("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.R("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return Y.data().learningJourneySectionTitle}),_.R(_.rv,{data:function(){return Y.data().learningJourneyShelf}},{horizontalShelfViewModel:_.fB}))}}),_.R("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.R("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return Y.data().suggestedJourneySectionTitle}),
_.R(_.rv,{data:function(){return Y.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(G){return _.R(K$,{data:G.data,
layout:1})}})))}}))},"Dc"),"yt-learning-journey-zero-state",{props:{data:_.wm}});var OIJ=_.AI(function(Y){var S=Y.data;return _.R("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Si("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.R(_.qw,{text:function(){var P;return(P=S())==null?void 0:P.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.R(_.rv,{data:function(){return S().actionButton}},{buttonViewModel:function(P){return _.R(_.aq,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:P.data})}}))},"Ec");var YHL=_.AI(function(Y){var S=Y.data;return _.R("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Si("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.R(_.qw,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var P;return(P=S())==null?void 0:P.displayName},
ellipsisTruncate:!0}),_.R(_.rv,{data:function(){return S().badge}},{buttonViewModel:function(P){return _.R(_.aq,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:P.data})}}))},"Fc");_.AL(_.AI(function(Y){var S=Y.data;return _.R("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.R("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.R(_.qw,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var P;return(P=S())==null?void 0:P.rank}})),_.R("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.R(_.rv,{data:function(){return S().avatar}},{avatarViewModel:_.qr})),_.R("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.R(_.rv,{data:function(){return S().content}},{liveLeaderboardItemChannelContentViewModel:YHL,
liveLeaderboardItemActionContentViewModel:OIJ})),_.R(_.qw,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var P;return(P=S())==null?void 0:P.points}}))},"Gc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;return _.R("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.R(_.qw,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var P,u;return(P=S())==null?void 0:(u=P.ranking)==null?void 0:u.rank}}),_.R("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.R(_.rv,{data:function(){return S().avatar}},{avatarViewModel:_.qr})),_.R(_.qw,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var P,u;return(P=S())==null?void 0:(u=P.channelContent)==null?void 0:u.channelName}}),_.R(_.qw,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var P;return(P=S())==null?void 0:P.points}}))},"Hc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.wm}});var SHL=_.AI(function(Y){Y=_.tI(Y,{wrapper:!1}).wrapper;return _.R(_.gw,{cond:Y,then:function(){return _.R("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.R("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.R("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ic");
SHL.idomCompat=!0;var Pus=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],uAu=_.AI(function(Y){var S=Y.data;var P=_.Ms(),u=_.fJ(function(){return S().command},void 0,"CGDtVe");
_.D6(function(){u()&&_.DZ(u(),{form:{element:P.value}})});
return _.R("div",{el:P},_.R(_.gw,{cond:function(){return S().qrCodeImage},
then:function(W){return _.R(_.ZZ,{data:W,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.R(_.gw,{cond:function(){return S().spinner},
then:function(){return _.R(SHL,null)}})}}),_.R(_.gw,{cond:function(){return S().label},
then:function(W){return _.R(_.qw,{text:W,className:"YtQrCodeRendererHostLabel"})}}),_.R(_.gw,{cond:function(){return S().labels},
then:function(W){return _.R("div",{class:"YtQrCodeRendererHostLabels"},_.R(_.$Z,{each:W},function(m){return _.R(_.qw,{text:m})}))}}))},"Kc");_.AL(_.AI(function(Y){var S=Y.data;var P=_.fJ(function(){return S().qrEntityKey},void 0,"joYCxd"),u=_.fJ(function(){return S().deleteEntityOnDismiss},void 0,"x3yAde"),W=_.fJ(function(){return S().command},void 0,"dJe1Re"),m=_.Jq(p89,P);
Y=_.fJ(function(){return S().style&&Pus.includes(S().style)},void 0,"rGILzf");
var J=_.Ms();_.Yy(J,{visibilityCallback:function(c){c&&W()&&_.DZ(W())},
showOption:{calledOnce:!0,state:"visible"}});_.LE(function(){_.aI(function(){u()&&P()&&_.X2().dispatch(_.qE("qrCodeEntity",P()))})});
return _.R("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:J},_.R(_.gw,{cond:Y,then:function(){return _.R(_.gw,{cond:m,then:function(c){return _.R(uAu,{data:c})}})}}))},"Jc"),"yt-qr-code-renderer",{props:{data:_.wm}});var WPs=_.AI(function(Y){var S=Y.data;var P=Y.topbarOffset;var u,W=((u=_.E().resolve(_.PQ(_.F5)))==null?void 0:u())||!1;return _.R("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var m=S();var J,c,C=W?(J=m.config)==null?void 0:J.darkThemeBackgroundColor:(c=m.config)==null?void 0:c.lightThemeBackgroundColor;m=C?_.Gp(C):void 0;m="background-color: "+m+";";P!==void 0&&(m+="top: -"+P()+"px;");return m},
"aria-hidden":!0},_.R(_.gw,{cond:function(){var m,J,c;return!!((m=S().backgroundImageConfig)==null?0:(J=m.image)==null?0:(c=J.sources)==null?0:c.length)},
then:function(){return _.R(_.ZZ,{data:function(){var m;return(m=S().backgroundImageConfig)==null?void 0:m.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.R("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+uXJ(W,S().gradientColorConfig)+";"}}))},"Lc");
WPs.idomCompat=!0;var zri=_.WX(Wv1);_.Sr(Wv1);var m5J=_.AI(function(Y){var S=Y.data;var P=Y.isOverlay;return _.R("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.R("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.R(_.rv,{data:function(){return S().header}},{sectionHeaderViewModel:function(u){return _.R(_.H$,{data:u.data,
isOverlay:P})}})),_.R("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.R(_.rv,{data:function(){return S().channelInfoButtons}},{flexibleActionsViewModel:K$})),_.R("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.R(_.rv,{data:function(){return S().description}},{descriptionPreviewViewModel:function(u){return _.R(zri,{data:u.data,
isOverlay:P})}})))},"Mc");
m5J.idomCompat=!0;var nLm=_.AI(function(Y){var S=Y.data;var P={};return _.R("factoid-view-model",{class:_.Si("ytwFactoidViewModelHost",(P.ytwFactoidViewModelHostOverlay=Y.isOverlay,P))},_.R(_.qw,{text:function(){return S().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.R(_.qw,{text:function(){return S().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Nc");
nLm.idomCompat=!0;var jb_=_.AI(function(Y){var S=Y.data;var P=Y.isOverlay;return _.R("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.R(_.rv,{data:function(){return S().factoids}},{factoidViewModel:function(u){return _.R(nLm,{data:u.data,
isOverlay:P})}}))},"Oc");
jb_.idomCompat=!0;_.JtJ=_.AI(function(Y){var S=Y.data;var P=Y.isOverlay;return _.R("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.R(_.rv,{data:function(){return S().items}},{channelInfoViewModel:function(u){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(m5J,{data:u.data,
isOverlay:P}))},
coursePerksViewModel:function(u){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(UeJ,{data:u.data,isOverlay:P}))},
descriptionPreviewViewModel:function(u){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(zri,{data:u.data,isOverlay:P}))},
factoidsRowViewModel:function(u){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(jb_,{data:u.data,isOverlay:P}))}}))},"Pc");var Bqd=_.AI(function(Y){return _.R("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.R(_.rv,{data:function(){return Y.data().content}},{courseMetadataViewModel:function(S){return _.R(_.JtJ,{data:S.data,
isOverlay:Y.isOverlay})}}))},"Qc");var ctt=_.AI(function(Y){var S=Y.data;Y=Y.className;var P=_.Ms(),u=function(){var m;return _.lL((m=S())==null?void 0:m.rendererContext)},W={};
W=(W["dynamic-text-view-model-wiz"]=!0,W["dynamic-text-view-model-wiz--tappable"]=function(){return u()},W);
_.Zw(P,function(){var m;return(m=S())==null?void 0:m.rendererContext});
return _.R("yt-dynamic-text-view-model",{el:P,role:function(){return u()?"link":void 0},
tabindex:function(){return u()?0:void 0},
class:_.Si(Y,W)},_.R("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var m,J,c;return(c=(J=_.g((m=S())==null?void 0:m.rendererContext,_.iL))==null?void 0:J.label)!=null?c:""}},_.R(_.qw,{text:function(){return S().text},
userInput:!0})))},"Rc");
ctt.idomCompat=!0;_.gt=_.AI(function(Y){var S=Y.data;var P=Y.isPositionRelative;var u=_.yZ(),W=_.jVf("(max-width: 527.9px)"),m=function(){var J,c;return(c=(J=S())==null?void 0:J.style)!=null?c:"IMAGE_BANNER_STYLE_FULL_BLEED"};
Y={};Y=(Y["yt-image-banner-view-model-wiz"]=!0,Y["yt-image-banner-view-model-wiz--inset"]=function(){return Jef(m())},Y["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.wK(!0)&&!(P==null?0:P())},Y["yt-image-banner-view-model-wiz--small-inset"]=function(){return Jef(m())&&W()},Y["yt-image-banner-view-model-wiz--tappable"]=function(){var J;
return _.wK(u.value)&&_.lL((J=S())==null?void 0:J.rendererContext)},Y);
_.Zw(u,function(){var J;return(J=S())==null?void 0:J.rendererContext});
return _.R("yt-image-banner-view-model",{el:u,class:_.Si(Y)},_.R(_.gw,{cond:function(){var J;return(J=S())==null?void 0:J.image},
then:function(){return _.R(_.ZZ,{data:function(){return S().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.R(_.rv,{data:function(){var J;
return(J=S())==null?void 0:J.overlays}},{thumbnailHoverOverlayViewModel:cri}))},"Sc");
_.gt.idomCompat=!0;var ss=_.EP({descriptionPreviewViewModel:Wv1,dynamicTextViewModel:ctt,contentPreviewImageViewModel:_.tB,contentMetadataViewModel:s0d,flexibleActionsViewModel:Og_,attributionViewModel:AB,imageBannerViewModel:_.gt,decoratedAvatarViewModel:x9J,cinematicContainerViewModel:WPs,flexibleContainer:Bqd});_.Sr(TMh);var Cu6,qHs;Cu6=_.AI(function(Y){var S=Y.condition;var P=Y.content;return _.R(_.gw,{cond:S,then:function(){return _.R("div",{class:"page-header-view-model-wiz__scroll-container"},P())},
else:function(){return P()}})},"Tc");
qHs=_.AI(function(Y){var S=Y.data;var P=Y.noPadding;var u=Y.enableBanner;var W=Y.cinematicContainerTopbarOffset;var m=Y.allowCinematicContainerOverflow;var J=Y.displayAsSidebar;var c=Y.displayAsPanel;var C=BMa(),x=function(){return!!S().image||!!S().animatedImage},b=function(){return!!S().background},T=function(){return(J==null?0:J())||(c==null?0:c())?1:C()},K=function(){return T()===1},G=function(){return K()||T()===2},v=function(){return T()===4},a=function(){return nHa(S(),!!S().heroImage,T(),
ceJ(S()),J==null?void 0:J())};
Y={};Y=_.Si((Y["page-header-view-model-wiz"]=!0,Y["page-header-view-model-wiz--no-padding"]=function(){return!(P==null||!P())},Y["page-header-view-model-wiz--small-top-padding"]=function(){return K()&&!S().actions||T()===2&&!(x()||S().heroImage)},Y["page-header-view-model-wiz--small-bottom-padding"]=function(){return G()&&!S().actions},Y["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(m==null?0:m())},Y["page-header-view-model-wiz--display-as-sidebar"]=J,Y["page-header-view-model-wiz--display-as-panel"]=
c,Y));
var w={},F=_.Si((w["page-header-view-model-wiz__page-header-headline"]=!0,w["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return a().allowFullWidth},w)),U=function(){return K()&&(!!S().heroImage||x())&&ceJ(S())>0},V=function(){return U()&&(c==null?void 0:c())};
w={};var M=_.Si((w["page-header-view-model-wiz__page-header-title"]=!0,w["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!U()},w["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return U()&&!V()},w["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=V,w["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=b,w));
w={};var zJ=_.Si((w["page-header-view-model-wiz__page-header-headline-image"]=!0,w["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!S().heroImage&&G()},w));
w={};var O=_.Si((w["page-header-view-model-wiz__page-header-banner-container"]=u,w["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var va;return(u==null?void 0:u())&&((va=_.g(S().banner,_.b48))==null?void 0:va.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},w));
w={};var ca=_.Si((w["page-header-view-model-wiz__page-header-content-metadata"]=!0,w["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=b,w));w={};var hu=_.Si((w["page-header-view-model-wiz__page-header-flexible-actions"]=!0,w["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!S().metadata||G()},w["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!G()},w));
w={};var ah=_.Si((w["page-header-view-model-wiz__page-header-attribution"]=!0,w["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=b,w));return _.R("yt-page-header-view-model",{class:Y},_.R(_.gw,{cond:b,then:function(){return _.R("div",{class:"page-header-view-model-wiz__page-header-background"},_.R(_.rv,{data:function(){return S().background}},{cinematicContainerViewModel:function(va){return _.R(WPs,{data:va.data,
topbarOffset:W})}}))}}),_.R(Cu6,{condition:function(){return!(J==null||!J())},
content:function(){return _.R("div",{class:"page-header-view-model-wiz__page-header-content"},_.R(_.gw,{cond:function(){return(u==null?void 0:u())&&S().banner},
then:function(){return _.R("div",{class:O},_.R(_.rv,{data:function(){return S().banner}},{imageBannerViewModel:_.gt}))}}),_.R("div",{class:F},_.R(_.gw,{cond:x,
then:function(){return _.R(_.rv,{data:function(){var va;(va=S().animatedImage)||(va=S(),x()&&(va=Object.assign({},va),qZ8(va,T(),ceJ(S()))),va=va.image);return va}},{contentPreviewImageViewModel:function(va){return _.R(_.tB,{data:va.data,
className:zJ,imageSizeConfig:a})},
decoratedAvatarViewModel:function(va){return _.R(_.RT,{data:va.data,className:zJ})}})}}),_.R(_.gw,{cond:function(){return!!S().heroImage&&!(G()&&!a().allowFullWidth)},
then:function(){return _.R(_.rv,{data:function(){return S().heroImage}},{contentPreviewImageViewModel:function(va){return _.R(_.tB,{data:va.data,
className:zJ,imageSizeConfig:a})}})}}),_.R("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.R(_.gw,{cond:function(){return!!S().heroImage&&G()&&!a().allowFullWidth},
then:function(){return _.R("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.R(_.rv,{data:function(){return S().heroImage}},{contentPreviewImageViewModel:function(va){return _.R(_.tB,{data:va.data,
className:zJ,imageSizeConfig:a})}}))}}),_.R(_.rv,{data:function(){return S().title}},{dynamicTextViewModel:function(va){return _.R(ctt,{data:va.data,
className:M})}}),_.R(_.rv,{data:function(){return S().metadata}},{contentMetadataViewModel:function(va){return _.R(_.dmi,{data:va.data,
layout:function(){return K()?1:0},
className:ca,isOverlay:b,useMediumText:v})}}),_.R(_.gw,{cond:function(){return S().description&&!K()},
then:function(){return _.R(_.rv,{data:function(){return S().description}},{descriptionPreviewViewModel:function(va){return _.R(zri,{data:va.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:b,maxLinesOverride:function(){return K()?void 0:1},
useMediumText:v})}})}}),_.R(_.gw,{cond:function(){return S().attribution&&!G()},
then:function(){return _.R(_.rv,{data:function(){return S().attribution}},{attributionViewModel:function(va){return _.R(AB,{data:va.data,
className:ah,useMediumText:v})}})}}),_.R(_.gw,{cond:function(){return S().actions&&!G()},
then:function(){return _.R(_.rv,{data:function(){return S().actions}},{flexibleActionsViewModel:function(va){return _.R(K$,{data:va.data,
layout:function(){return Rsa(T())},
className:hu})}})}}))),_.R("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.R(_.gw,{cond:function(){return S().description&&K()},
then:function(){return _.R(_.rv,{data:function(){return S().description}},{descriptionPreviewViewModel:function(va){return _.R(zri,{data:va.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:b,maxLinesOverride:function(){return K()?void 0:1},
useMediumText:v})}})}}),_.R(_.gw,{cond:function(){return S().attribution&&G()},
then:function(){return _.R(_.rv,{data:function(){return S().attribution}},{attributionViewModel:function(va){return _.R(AB,{data:va.data,
className:ah,useMediumText:v})}})}}),_.R(_.gw,{cond:function(){return S().actions&&G()},
then:function(){return _.R(_.rv,{data:function(){return S().actions}},{flexibleActionsViewModel:function(va){return _.R(K$,{data:va.data,
layout:function(){return Rsa(T())},
className:hu})}})}})),_.R("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.R(_.rv,{data:function(){return S().bottomMetadataFlexibleContainer}},{flexibleContainer:function(va){return _.R(Bqd,{data:va.data,
isOverlay:b})}})))}}))},"Uc");
_.Rrm=_.f("web_enable_sink_page_header_view_model")?qHs:TMh;_.x5d=_.f("web_enable_sink_page_header_view_model")?qHs:_.WX(TMh);qHs.idomCompat=!0;_.AL(_.AI(function(Y){var S=_.n(_.qb(!1,void 0,"vVRl3b")),P=S.next().value,u=S.next().value;return _.R("yt-official-card-view-model",{class:_.Si("ytOfficialCardViewModelHost",Y.className),style:_.Jg({"background-color":function(){var W,m=HW8((W=Y.data())==null?void 0:W.backgroundColor);return m?_.hK(m):void 0}})},_.R(_.rv,{data:function(){return Y.data().header}},{pageHeaderViewModel:function(W){return _.R(_.x5d,{data:W.data,
noPadding:!0})}}),_.R(_.rv,{data:function(){return Y.data().contents}},{horizontalShelfViewModel:_.fB}),_.R(_.gw,{cond:P,
then:function(){return _.R("div",{class:"ytOfficialCardViewModelExpandedContent"},_.R(_.rv,{data:function(){return Y.data().expandedContents}},{horizontalShelfViewModel:function(W){return _.R(_.fB,{data:W.data,
sizing:"MINI"})}}),_.R("div",{class:"ytOfficialCardViewModelCollapseButton"},_.R(_.rv,{data:function(){return Y.data().collapseButton}},{buttonViewModel:function(W){return _.R(_.aq,{data:W.data,
onClick:function(){u(!P())}})}})))},
else:function(){return _.R("div",{class:"ytOfficialCardViewModelExpandButton"},_.R(_.rv,{data:function(){return Y.data().expandButton}},{buttonViewModel:function(W){return _.R(_.aq,{data:W.data,
onClick:function(){u(!P())}})}}))}}))},"Vc"),"yt-official-card-view-model",{props:{data:_.wm,
className:_.wm}});var Kva=_.EP({buttonViewModel:_.aq});_.Sr(EHE);_.Vz(EHE,"ytw-search-friction-view-model",{propNames:["data"]});_.$i=_.AI(function(Y){var S=_.Ms(),P,u=(P=_.E().resolve(_.PQ(_.F5)))==null?void 0:P();_.D6(function(){var W=S.value;var m=new uYf,J=new Map(m.JSC$7177_sanitizerTable.globalAttributePolicies);J.set("style",{policyAction:4});m.JSC$7177_sanitizerTable=new fX(m.JSC$7177_sanitizerTable.allowedElements,m.JSC$7177_sanitizerTable.elementPolicies,m.JSC$7177_sanitizerTable.allowedGlobalAttributes,J,m.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes);var c=["data-time"];if(c===void 0)J=new Set(m.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes),
J.add("data-"),m.JSC$7177_sanitizerTable=new fX(m.JSC$7177_sanitizerTable.allowedElements,m.JSC$7177_sanitizerTable.elementPolicies,m.JSC$7177_sanitizerTable.allowedGlobalAttributes,m.JSC$7177_sanitizerTable.globalAttributePolicies,J);else{J=new Set(m.JSC$7177_sanitizerTable.allowedGlobalAttributes);c=_.n(c);for(var C=c.next();!C.done;C=c.next()){C=C.value;if(C.indexOf("data-")!==0)throw Error("qa`"+C);J.add(C)}m.JSC$7177_sanitizerTable=new fX(m.JSC$7177_sanitizerTable.allowedElements,m.JSC$7177_sanitizerTable.elementPolicies,
J,m.JSC$7177_sanitizerTable.globalAttributePolicies,m.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes)}J=new Set(m.JSC$7177_sanitizerTable.allowedGlobalAttributes);J.add("class");m.JSC$7177_sanitizerTable=new fX(m.JSC$7177_sanitizerTable.allowedElements,m.JSC$7177_sanitizerTable.elementPolicies,J,m.JSC$7177_sanitizerTable.globalAttributePolicies,m.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes);_.a9(W,_.eUS(m.build(),gH8(Y.text())));$0J(S.value)});
P={};return _.R("div",null,_.R("markdown-div",{class:_.Si("ytwMarkdownDivHost",(P.ytwMarkdownDivDark=u,P.ytwMarkdownDivHostSmall=function(){var W;return((W=Y.isSmallText)==null?void 0:W.call(Y))||!1},P)),
el:S}))},"Wc");
_.$i.idomCompat=!0;var byt=_.AI(function(Y){var S=Y.imageData;var P=_.o_(Y.isInList,!1),u=function(){return P()?{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 _.R("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.R(_.gw,{cond:function(){return S().image},
then:function(W){return _.R(_.ZZ,{data:W,alt:function(){return u().alt},
contentMode:function(){return u().contentMode},
targetWidth:function(){return u().targetWidth},
targetHeight:function(){return u().targetHeight},
className:function(){return u().className}})}}),_.R("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.R("div",{class:_.Si("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.R(_.qw,{text:function(){return S().title}})),_.R(_.$Z,{each:function(){var W;
return(W=S().description)!=null?W:[]}},function(W){return _.R("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.R(rt,{content:W}))})))},"Xc"),Tqt=_.AI(function(Y){var S=Y.list;
var P=function(){var u;return(u=S().items)!=null?u:[]};
return _.R("div",{class:"ytwGenAiRichTextViewModelListContent"},_.R(_.gw,{cond:function(){return S().title},
then:function(u){return _.R("div",{class:_.Si("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.R(_.qw,{text:u}))}}),_.R(_.gw,{cond:function(){return S().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.R("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.R(_.$Z,{each:P},function(u){return _.R("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.R(rt,{content:u,isInList:!0}))}))}}),_.R(_.gw,{cond:function(){return S().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.R("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.R(_.$Z,{each:P},function(u){return _.R("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.R(rt,{content:u,isInList:!0}))}))}}),_.R(_.gw,{cond:function(){return S().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.R("div",{class:"ytwGenAiRichTextViewModelImageList"},_.R(_.$Z,{each:P},function(u){return _.R("div",{class:"ytwGenAiRichTextViewModelListItem"},_.R(rt,{content:u,isInList:!0}))}))}}))},"Yc"),KP6=_.AI(function(Y){var S=Y.table;
return _.R("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.R("thead",null,_.R("tr",null,_.R(_.$Z,{each:function(){var P,u;return(u=(P=S().header)==null?void 0:P.cells)!=null?u:[]}},function(P){return _.R("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.R(_.$Z,{each:function(){return P.contents}},function(u){return _.R(rt,{content:u})}))}))),_.R("tbody",null,_.R(_.$Z,{each:function(){var P;
return(P=S().rows)!=null?P:[]}},function(P){return _.R("tr",null,_.R(_.$Z,{each:function(){return P.cells}},function(u){return _.R("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.R(_.$Z,{each:function(){return u.contents}},function(W){return _.R(rt,{content:W})}))}))})))},"Zc"),rt=_.AI(function(Y){var S=Y.content;
var P=_.o_(Y.isInList,!1),u=function(){var W,m;return(m=(W=S().contentBlock)==null?void 0:W.contents)!=null?m:[]};
return _.R("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.R(_.gw,{cond:function(){return S().text},
then:function(W){return _.R(_.qw,{className:"ytwGenAiRichTextViewModelText",text:W})}}),_.R(_.gw,{cond:function(){return S().image},
then:function(W){return _.R(byt,{imageData:W,isInList:P})}}),_.R(_.gw,{cond:function(){return S().list},
then:function(W){return _.R(Tqt,{list:W})}}),_.R(_.gw,{cond:function(){return S().contentBlock},
then:function(){return _.R("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.R(_.$Z,{each:u},function(W){return _.R(rt,{content:W,isInList:!1})}))}}),_.R(_.gw,{cond:function(){return S().table},
then:function(W){return _.R(KP6,{table:W})}}))},"$c"),ELi=_.AI(function(Y){var S={};
S=_.uN("ytwGenAiRichTextViewModelHost",(S.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.mG("search_overview_link_style")),S));return _.R("gen-ai-rich-text-view-model",{class:S},_.R(rt,{content:function(){return Y.data().content}}))},"ad");_.Sr(re$);_.Sr(dH);_.fu_=_.AI(function(Y){var S=Y.data;var P=function(){var a;return((a=S().loadingUi)!=null?a:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},u=function(){return S().isLoading&&(P()==="UNSPECIFIED"||P()==="GHOST_CARD")},W=function(){return!S().isLoading},m=function(){return!!S().content&&!S().contents},J=function(){return!!S().contents},c=function(){return!!S().nextQueryButtons},C=function(){return S().isLoading&&P()==="INVISIBLE"},x=function(){var a,w;
return(w=(a=S().headerIcon)==null?void 0:a.iconType)!=null?w:""},b=function(){var a;
return(a=S().content)!=null?a:""},T=function(){return!!S().sourcesSection},K,G=!((K=_.E().resolve(_.PQ(_.F5)))==null||!K()),v=_.fJ(function(){var a=[],w=S().contents;
if(w)for(var F=0;F<w.length;F++){var U=_.g(w&&w[F],Tp3);U&&a.push(U)}return a},void 0,"ycU97e");
_.LE(function(){S().isLoading||_.Fk("so_re",void 0,"search_overview_answer")});
return _.R("ytd-overview-answer-view-model",{class:function(){var a={};a=(a.ytdOverviewAnswerViewModelHost=!0,a.ytdOverviewAnswerViewModelDarkBackground=G&&!C(),a.ytdOverviewAnswerViewModelLightBackground=!G&&!C(),a);return _.uN(a)}},_.R(_.gw,{cond:function(){return!C()},
then:function(){return _.R(_.SX,null,_.R("h2",null,_.R("div",{class:"ytdOverviewAnswerViewModelHeader"},_.R(_.gw,{cond:x,then:function(a){return _.R("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.R(_.BX,{icon:a}))}}),_.R("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.R("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return S().headerText}),_.R("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.R(_.qw,{text:function(){return S().headerSubtext}}))))),_.R(_.gw,
{cond:u,
then:function(){return re$()}}),_.R(_.gw,{cond:W,
then:function(){return _.R(_.SX,null,_.R(_.gw,{cond:m,then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelText"},_.R(_.$i,{text:b,isSmallText:!0}))}}),_.R(_.gw,{cond:J,
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelRichText"},_.R(_.$Z,{each:v},function(a){return _.R(ELi,{data:a})}))}}),_.R(_.gw,{cond:c,
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.R(_.rv,{data:function(){return S().nextQueryButtons}},{buttonViewModel:function(a){return _.R(_.aq,{data:a.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.fB}))}}),_.R("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.R("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.R(_.gw,{cond:function(){return!!_.g(S().likeButtonViewModel,sg9)&&!!_.g(S().dislikeButtonViewModel,dfY)},
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.R(_.P5f,{data:function(){return _.g(S().likeButtonViewModel,sg9)},
disableIconAnimation:!0}),_.R(_.SAs,{data:function(){return _.g(S().dislikeButtonViewModel,dfY)}}))}})),_.R(_.gw,{cond:function(){var a;
return(a=S().sourcesSection)==null?void 0:a.headerText},
then:function(a){return _.R("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.R(_.qw,{text:a}))}})),_.R(_.gw,{cond:T,
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelSources"},_.R(_.rv,{data:function(){var a;return(a=S().sourcesSection)==null?void 0:a.sourcesShelf}},{buttonViewModel:_.aq,
horizontalShelfViewModel:function(a){return _.R(_.fB,{data:a.data,includeMargin:!0,hasPeek:!0})}}))}}),_.R(_.gw,{cond:function(){return S().disclaimerText},
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.R(_.qw,{text:function(){return S().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"bd");var gLt=_.AI(function(Y){var S=Y.data;var P=Y.active;var u=_.Ms();_.D6(function(){var W,m,J,c=((W=_.E().resolve(_.PQ(_.F5)))==null?0:W())?(m=S())==null?void 0:m.darkThemeColorPalette:(J=S())==null?void 0:J.lightThemeColorPalette;c&&(c.invertedBackground&&u.value.style.setProperty("--timestamp-active-background-color",_.hK(c.invertedBackground)),c.additiveBackground&&u.value.style.setProperty("--timestamp-background-color",_.hK(c.additiveBackground)),c.textPrimaryInverse&&u.value.style.setProperty("--timestamp-active-color",
_.hK(c.textPrimaryInverse)),c.textSecondary&&u.value.style.setProperty("--timestamp-color",_.hK(c.textSecondary)))},"PUzFSd");
Y={};return _.R("transcript-segment-view-model",{class:_.Si("ytwTranscriptSegmentViewModelHost",(Y.ytwTranscriptSegmentViewModelHostActive=P,Y.ytwTranscriptSegmentViewModelHostModern=_.f("enable_timeline_view_modern_transcript")||_.f("enable_timeline_view_modern_transcript_fe"),Y)),el:u},_.R(_.gw,{cond:function(){var W;return(W=S())==null?void 0:W.timestamp},
then:function(W){var m={};return _.R("div",{class:_.Si("ytwTranscriptSegmentViewModelTimestamp",(m.ytwTranscriptSegmentViewModelTimestampActive=P,m))},W)}}),_.R(_.qw,{text:function(){var W,m,J;
return(J=(W=S())==null?void 0:W.attributedText)!=null?J:{content:(m=S())==null?void 0:m.simpleText}},
linkInheritColor:!0}))},"cd");var $5d=_.AI(function(Y){var S=Y.data;return _.R("div",{class:"yt-video-attributes-section-view-model__header"},_.R("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return S().headerTitle}),_.R(_.gw,{cond:function(){return S().headerSubtitle},
then:function(){return _.R("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return S().headerSubtitle})}}))},"dd"),rtS=_.AI(function(Y){function S(v){return Math.max(Math.min(v,0),x()-c())}
var P=Y.data;var u=_.Ms(),W=_.Ms();Y=_.n(_.qb(0,void 0,"ucDlDf"));var m=Y.next().value,J=Y.next().value,c=m;Y=_.n(_.qb(0,void 0,"lHzSub"));m=Y.next().value;var C=Y.next().value,x=m;Y=_.n(_.qb(0,void 0,"Q8fDIe"));var b=Y.next().value,T=Y.next().value;_.LE(function(){var v=function(){J(W.value.scrollWidth);C(u.value.clientWidth)};
v();if(window.ResizeObserver){var a=new ResizeObserver(v);a.observe(u.value);_.aI(function(){a.disconnect()})}});
var K=function(){T(S(b()+x()))},G=function(){T(S(b()-x()))};
return _.R("yt-video-attributes-section-view-model",null,_.R("div",{class:"yt-video-attributes-section-view-model"},_.R(_.gw,{cond:function(){return P().headerTitle},
then:function(){return _.R($5d,{data:P})}}),_.R("div",{class:_.Si("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:u},_.R("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Jg({transform:function(){var v=b();_.X3("HTML_DIR")==="rtl"&&(v*=-1);return"translateX("+v+"px)"}}),
el:W},_.R(_.rv,{data:function(){return P().videoAttributeViewModels}},{videoAttributeViewModel:yXU}))),_.R(_.rv,{data:function(){return P().footerButton}},{buttonViewModel:function(v){return _.R(_.aq,{data:v.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.R(_.gw,{cond:function(){return b()<0&&P().previousButton},
then:function(){return _.R("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.R(_.rv,{data:function(){return P().previousButton}},{buttonViewModel:function(v){return _.R(_.aq,{data:v.data,
onClick:K})}}))}}),_.R(_.gw,{cond:function(){return b()>x()-c()&&P().nextButton},
then:function(){return _.R("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.R(_.rv,{data:function(){return P().nextButton}},{buttonViewModel:function(v){return _.R(_.aq,{data:v.data,
onClick:G})}}))}})))},"ed");
rtS.idomCompat=!0;var GgU=_.AI(function(Y){var S=Y.data;var P=Y.active;var u={},W={};return _.R("timeline-item-view-model",{class:_.Si("ytwTimelineItemViewModelHost",(u.ytwTimelineItemViewModelHostChapterChild=Y.chapterChild,u.ytwTimelineItemViewModelModern=_.f("enable_timeline_view_modern_transcript")||_.f("enable_timeline_view_modern_transcript_fe"),u))},_.R("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.R("div",{class:_.Si("ytwTimelineItemViewModelTimestamp",(W.ytwTimelineItemViewModelTimestampActive=
P,W))},function(){return S().timestamp})),_.R("div",{class:"ytwTimelineItemViewModelContentItems"},_.R(_.rv,{data:function(){return S().contentItems}},{transcriptSegmentViewModel:function(m){return _.R(gLt,{data:m.data,
active:P})},
videoAttributesSectionViewModel:rtS})))},"fd");var hr_=_.AI(function(Y){var S=Y.data;Y={};return _.R("timeline-chapter-view-model",{class:_.Si("ytwTimelineChapterViewModelHost")},_.R("div",{class:_.Si("ytwTimelineChapterViewModelTitle",(Y.ytwTimelineChapterViewModelModern=_.f("enable_timeline_view_modern_transcript")||_.f("enable_timeline_view_modern_transcript_fe"),Y))},function(){return S().title}),_.R(_.rv,{data:function(){return S().contents}},{timelineItemViewModel:function(P){return _.R(GgU,{data:P.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(P){return _.R(rtS,{data:P.data})}}))},"gd");var vLh=_.AI(function(Y){var S=Y.data;var P=_.Ms(),u=_.Jq(_.DjY,function(){var m;return(m=S().markersEngagementPanelSyncEntityKey)!=null?m:""}),W=function(){var m;
return((m=u())==null?void 0:m.activeItemIndex)===S().index};
Y=_.mR(function(m){var J,c,C,x,b;return _.B(function(T){if(T.nextAddress==1)return m.stopPropagation(),_.hRX(_.sP(m),P.value,["A".toString(),"BUTTON".toString()])?T.return():(J=_.vF(S().onTap))?_.q(T,_.SF(),2):T.return();c=T.yieldResult;x=(C=_.g(J,_.yx))==null?void 0:C.startTimeSeconds;x===void 0||(b=c)!=null&&b.seekTo(x,!0);_.Yt(T)})});
return _.R("macro-markers-panel-item-view-model",{class:_.Si("ytwMacroMarkersPanelItemViewModelHost",{"is-active":W}),el:P,"on:click":Y,tabindex:0},_.R(_.rv,{data:function(){var m;return(m=S())==null?void 0:m.item}},{timelineChapterViewModel:function(m){return _.R(hr_,{data:m.data,
active:W})},
timelineItemViewModel:function(m){return _.R(GgU,{data:m.data,active:W})},
videoAttributeViewModel:yXU}))},"hd");
vLh.idomCompat=!0;_.AL(vLh,"macro-markers-panel-item-view-model",{props:{data:_.wm}});_.AL(rtS,"yt-video-attributes-section-view-model",{props:{data:_.wm}});var D5S=_.AI(function(Y){var S=function(){var P,u,W;return(W=(P=Y.data().leadingLogoAccessibility)==null?void 0:(u=P.accessibilityData)==null?void 0:u.label)!=null?W:""};
return _.R("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.R(_.gw,{cond:function(){return Y.data().leadingLogo},
then:function(P){return _.R(_.ZZ,{className:"ytwFantasySectionHeaderViewModelLogo",data:P,alt:S})}}),_.R("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.R(_.qw,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return Y.data().title}}),_.R(_.qw,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return Y.data().subtitle}})),_.R(_.rv,{data:function(){return Y.data().trailingButton}},{buttonViewModel:function(P){return _.R(_.aq,{data:P.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"id");var Ius=_.AI(function(Y){var S={};S=_.Si("ytwFantasyTeamViewModelHost",(S.ytwFantasyTeamViewModelCompact=function(){var W;return!((W=Y.compact)==null||!W.call(Y))},S.ytwFantasyTeamViewModelUser=function(){return Y.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},S.ytwFantasyTeamViewModelOpponent=function(){return Y.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},S));
var P=function(){var W,m,J;return(J=(W=Y.data().teamLogoAccessibility)==null?void 0:(m=W.accessibilityData)==null?void 0:m.label)!=null?J:""},u=_.Jq(a51,function(){return Y.data().teamEntityKey});
return _.R("ytw-fantasy-team-view-model",{class:S},_.R(_.gw,{cond:function(){return Y.data().teamLogo},
then:function(W){return _.R(_.ZZ,{className:"ytwFantasyTeamViewModelLogo",data:W,alt:P})}}),_.R("div",{class:"ytwFantasyTeamViewModelMetadata"},_.R("div",{class:"ytwFantasyTeamViewModelHeader"},_.R(_.qw,{className:"ytwFantasyTeamViewModelScore",
text:function(){var W;return(W=u())==null?void 0:W.score}}),_.R(_.BX,{icon:function(){var W;
return(W=u())==null?void 0:W.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.R(_.qw,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var W;return(W=u())==null?void 0:W.projectedScore}})),_.R(_.qw,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return Y.data().primaryText}}),_.R(_.qw,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return Y.data().secondaryText}}),_.R(_.qw,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return Y.data().tertiaryText}})),_.R(_.qw,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var W;return(W=u())==null?void 0:W.score}}))},"jd");_.AL(_.AI(function(Y){return _.R("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.R("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.R(_.rv,{data:function(){return Y.data().summaryHeader}},{fantasySectionHeaderViewModel:D5S})),_.R(_.rv,{data:function(){return Y.data().userTeam}},{fantasyTeamViewModel:Ius}),_.R(_.rv,{data:function(){return Y.data().opponentTeam}},{fantasyTeamViewModel:Ius}))},"kd"),"fantasy-league-summary-view-model",{props:{data:_.wm}});var auS=_.AI(function(Y){var S=_.tI(Y,{shape:{},useCustomTabRenderable:!1}),P=S.shape;S=S.useCustomTabRenderable;var u=Y.customTabRenderable,W=function(){return P().disabled},m=function(){return P().selected},J=function(){return P().title},c=_.Ms();
Y=_.mR(function(b){var T;if(!W()&&((T=P().aTagConfig)==null?0:T.onclick))P().aTagConfig.onclick(b);return!1});
var C=_.mR(function(b){if(b.key==="Enter"||b.key==="ArrowUp"||b.key==="ArrowDown")b.preventDefault(),c.value.click();return!1}),x={};
return _.R("yt-tab-shape",{class:_.Si("yt-tab-shape-wiz",function(){return P().className},(x["yt-tab-shape-wiz__tab--last-tab"]=function(){return P().isLastTab},x["yt-tab-shape-wiz--host-disabled"]=W,x["yt-tab-shape-wiz--host-clickable"]=!u,x)),
role:u?void 0:"tab","aria-selected":m!=null?m:!1,"aria-disabled":W,tabindex:u?void 0:0,"on:click":Y,"on:keydown":C,el:c,"tab-identifier":function(){return P().identifier},
"tab-title":J},_.R(_.gw,{cond:S,then:function(){return u()},
else:function(){var b={},T={};return _.R(_.SX,null,_.R("div",{class:_.Si("yt-tab-shape-wiz__tab",(b["yt-tab-shape-wiz__tab--tab-selected"]=m,b))},J),_.R("div",{class:_.Si("yt-tab-shape-wiz__tab-bar",(T["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=m,T))}))}}))},"ld");
auS.idomCompat={callbacks:{customTabRenderable:!0}};_.w2_=_.AI(function(Y){var S=Y.shape;Y=_.n(_.qb(48,void 0,"S7XsSd"));var P=Y.next().value,u=Y.next().value;Y=_.n(_.qb(0,void 0,"CzMxb"));var W=Y.next().value,m=Y.next().value,J=function(){return S().tabs},c=_.Ms(),C=function(){var x,b;
return(b=(x=J())==null?void 0:x.findIndex(function(T){return T.selected}))!=null?b:-1};
_.LE(function(){var x=c.value.querySelectorAll("yt-tab-shape"),b=C()>-1?x[C()]:void 0;requestAnimationFrame(function(){u((b==null?void 0:b.getBoundingClientRect().width)||0)})});
_.D6(function(){var x=C();requestAnimationFrame(function(){var b=c.value.querySelectorAll("yt-tab-shape"),T;u(((T=x>-1?b[x]:void 0)==null?void 0:T.getBoundingClientRect().width)||0);for(var K=T=0;K<x;K++)T+=b[K].offsetWidth+24;_.X3("HTML_DIR")==="rtl"&&(T=-T);m(T)})});
Y={};return _.R("yt-tab-group-shape",{class:_.Si("yt-tab-group-shape-wiz",(Y["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return S().isOverflowHidden},Y)),
el:c},_.R(_.gw,{cond:J,then:function(x){return _.R(_.SX,null,_.R("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.R(_.$Z,{each:x},function(b,T){return _.R(auS,{shape:function(){return Object.assign({},b,{isLastTab:T()===x().length-1})},
customTabRenderable:b.customTabRenderable,useCustomTabRenderable:!!b.customTabRenderable})})),_.R(LPt,{width:P,
sliderOffset:W}))}}))},"md");
_.w2_.idomCompat=!0;var LPt=_.AI(function(Y){var S=_.o_(Y.sliderOffset,0),P=Y.width;return _.R("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Jg({width:function(){return P()+"px"},
transform:function(){return"translateX("+S()+"px)"}})})},"nd");var p2J=_.AI(function(Y){var S=function(){var m,J,c;return(c=(m=Y.data().playerLogoAccessibility)==null?void 0:(J=m.accessibilityData)==null?void 0:J.label)!=null?c:""},P=_.Jq(Lt9,function(){return Y.data().playerEntityKey}),u={};
u=_.Si("ytwFantasyPlayerViewModelHost",(u.ytwFantasyPlayerViewModelPlaying=function(){var m;return!((m=P())==null||!m.isPlayerPlaying)},u.ytwFantasyPlayerViewModelOnField=function(){var m;
return((m=P())==null?void 0:m.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},u.ytwFantasyPlayerViewModelRedZone=function(){var m;
return((m=P())==null?void 0:m.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},u));
var W=function(){var m,J,c,C=((m=_.E().resolve(_.PQ(_.F5)))==null?0:m())?(J=Y.data().playerLogoBackgroundColor)==null?void 0:J.darkTheme:(c=Y.data().playerLogoBackgroundColor)==null?void 0:c.lightTheme;return C===void 0?"":_.hK(C)};
return _.R("ytw-fantasy-player-view-model",{class:u},_.R(_.gw,{cond:function(){return Y.data().playerLogo},
then:function(m){return _.R("div",{class:"ytwFantasyPlayerViewModelLogo"},_.R("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.R(_.ZZ,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Jg({"background-color":W}),data:m,alt:S})),_.R("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.R(_.BX,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.R("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.R("div",{class:"ytwFantasyPlayerViewModelHeader"},_.R(_.qw,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var m;return(m=Y.data())==null?void 0:m.playerNameText}}),_.R(_.qw,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var m;return(m=Y.data())==null?void 0:m.playerDescriptionText}})),_.R("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.R(_.qw,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var m;return(m=P())==null?void 0:m.gamePeriodText}}),_.R(_.qw,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var m;return(m=Y.data())==null?void 0:m.opponentTeamText}}),_.R(_.qw,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var m;return(m=P())==null?void 0:m.gameStatusText}}),_.R(_.qw,{className:_.Si("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var m;return(m=P())==null?void 0:m.playerStatusText}})),_.R("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.R(_.qw,{text:function(){var m;
return(m=P())==null?void 0:m.playerStatsText}}))),_.R(_.qw,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var m;return(m=P())==null?void 0:m.fantasyScore}}))},"od");var FPt=_.AI(function(Y){return _.R("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.R(_.gw,{cond:function(){return Y.data().players},
then:function(S){return _.R(_.rv,{data:S},{fantasyPlayerViewModel:p2J})}}))},"pd");var sbd=_.AI(function(Y){var S=_.n(_.ji(function(){var W;return(W=Y.data().selectedTabIdentifierKey)!=null?W:""})),P=S.next().value,u=S.next().value;
_.Ij(function(){var W;(W=Y.setSelectedTabSignal)==null||W.call(Y,P)});
return _.R("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.R("div",{class:"ytTabbedViewModelTabGroup"},_.R(_.w2_,{shape:function(){var W=Y.data(),m=[],J={tabs:m};if(!W.tabs)return J;W=_.n(W.tabs);for(var c=W.next(),C={};!c.done;C={tabViewModel:void 0},c=W.next())if(C.tabViewModel=_.g(c.value,TGi),C.tabViewModel){var x=c=void 0;m.push({aTagConfig:{onclick:function(b){return function(){var T;u((T=b.tabViewModel.tabIdentifier)!=null?T:"")}}(C)},
identifier:C.tabViewModel.tabIdentifier,selected:P()===C.tabViewModel.tabIdentifier,title:(x=(c=C.tabViewModel.title)==null?void 0:c.content)!=null?x:""})}return J}})),_.R(_.rv,{data:function(){var W,m=_.n((W=Y.data().tabs)!=null?W:[]);
for(W=m.next();!W.done;W=m.next())if((W=_.g(W.value,TGi))&&W.tabIdentifier===P())return W.content}},{fantasyRosterViewModel:FPt}))},"qd");_.AL(_.AI(function(Y){var S=_.n(GvK()),P=S.next().value,u=S.next().value;return _.R("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.R(_.qw,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return Y.data().title}}),_.R(_.gw,{cond:function(){return Y.data().tabbedViewModel},
then:function(W){return _.R(_.rv,{data:W},{tabbedViewModel:function(m){return _.R(sbd,{data:m.data,setSelectedTabSignal:u})}})}}),_.R(_.gw,{cond:function(){var W,m=(W=_.g(Y.data().tabbedViewModel,KDs))==null?void 0:W.tabs;
W=_.g(m==null?void 0:m[0],TGi);m=_.g(m==null?void 0:m[1],TGi);var J=W==null?void 0:W.tabIdentifier;if(P()===J){var c,C;if(!((c=_.g(W==null?void 0:W.content,Ijm))==null?0:(C=c.players)==null?0:C.length))return Y.data().noUserTeamPlayersText}else{var x,b;if(!((x=_.g(m==null?void 0:m.content,Ijm))==null?0:(b=x.players)==null?0:b.length))return Y.data().noOpponentTeamPlayersText}},
then:function(W){return _.R(_.qw,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:W})}}))},"rd"),"ytw-fantasy-matchup-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){return _.R("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.R(_.qw,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return Y.data().title}}),_.R(_.gw,{cond:function(){return Y.data().matchupTeamPairs},
then:function(S){return _.R(_.$Z,{each:S,keyBy:"INDEX"},function(P){return _.R("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.R(_.rv,{data:function(){return[P().firstTeam,P().secondTeam]}},{fantasyTeamViewModel:function(u){return _.R(Ius,{data:u.data,
compact:!0})}}))})}}))},"sd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=function(){var W,m,J;return(J=(W=Y.data().userLogoAccessibility)==null?void 0:(m=W.accessibilityData)==null?void 0:m.label)!=null?J:""},P=function(){var W,m,J;
return(J=(W=Y.data().opponentLogoAccessibility)==null?void 0:(m=W.accessibilityData)==null?void 0:m.label)!=null?J:""},u=_.Jq(I5Y,function(){return Y.data().entityKey});
return _.R("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.R("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.R(_.gw,{cond:function(){return Y.data().userLogo},
then:function(W){return _.R(_.ZZ,{className:"ytwFantasyWinProbabilityViewModelLogo",data:W,alt:S})}}),_.R("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.R(_.qw,{text:function(){return Y.data().title}})),_.R(_.gw,{cond:function(){return Y.data().opponentLogo},
then:function(W){return _.R(_.ZZ,{className:"ytwFantasyWinProbabilityViewModelLogo",data:W,alt:P})}})),_.R("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.R("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.R(_.qw,{text:function(){var W;
return(W=u())==null?void 0:W.userWinNumberLabel}})),_.R("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.R("div",{class:_.Si("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Jg({flex:function(){var W,m;return(m=(W=u())==null?void 0:W.userWinNumber)!=null?m:50}})}),_.R("div",{class:_.Si("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Jg({flex:function(){var W,m;return(m=(W=u())==null?void 0:W.opponentWinNumber)!=null?m:50}})})),_.R("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.R(_.qw,{text:function(){var W;
return(W=u())==null?void 0:W.opponentWinNumberLabel}}))))},"td"),"fantasy-win-probability-view-model",{props:{data:_.wm}});_.$s("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var GC=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerPanels=_.f("web_watch_darker_panels");Y.commentsHidePanelButton=!1;Y.isWatchGrid=!1;Y.continuationShowButton=!1;Y.isSearch=!1;Y.isConstrainedList=!1;Y.isWatch=!1;Y.eligibleToSwitchToGrid=!1;Y.epRestyle=!1;Y.isCarouselInFeed=!0;Y.topSpacingZero=!1;Y.continuationIsInitialLoad=!0;Y.enableSqueezebackPanels=_.f("web_shorts_enable_squeezeback_panels");Y.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");Y.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};Y.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return Y};
_.r(GC,_.Z);_.z=GC.prototype;_.z.updateLockupContainerTypes=function(Y){if(this.eligibleToSwitchToGrid){var S;(S=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||S.forEach(function(P){P.containerType=Y})}};
_.z.getItemsPath=function(){return"data.contents"};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.z.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.f("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.f("kevlar_low_priority_continuation")}}};
_.z.created=function(){this.JSC$14368_cachedViewportHeight=_.X3("initialInnerHeight")||window.innerHeight};
_.z.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var Y=_.I(this.hostElement).querySelector("ytd-comments-header-renderer");Y&&(Y.hidePanelButton=this.commentsHidePanelButton)}};
_.z.onRetrieveLocation=function(Y,S){this.containsComments()&&(this.firstCommentsLoaded=S.hasComments=!0)};
_.z.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.z.onLoadReloadContinuation=function(Y,S){var P=this;Y.stopPropagation();this.isReloading=!0;_.ms(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(u){var W=_.E().resolve(_.ER);u=S(u);W.postData(u).then(function(m){P.onReloadContinuationData(m)})}})};
_.z.onReloadContinuationData=function(Y){if(Y=this.get("response.continuationContents.itemSectionContinuation",Y)||this.get("response.contents.itemSectionRenderer",Y)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",Y)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",Y))this.set("data.contents",Y.contents||Y.results),Y.header&&this.set("data.header",Y.header),this.set("data.continuations",
Y.continuations||[]);this.isReloading=!1};
_.z.computeContentsClass=function(Y){return Y?"reloading":""};
_.z.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.z.computeSectionIdentifier=function(Y){return Y==null?void 0:Y.sectionIdentifier};
_.z.computeFitContainer=function(Y){return(Y==null?void 0:Y.sectionIdentifier)==="youchat-item-section"};
_.z.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.f("kevlar_disable_comments_auto_load")};
_.z.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.z.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.z.computeHasDestinationShelfRenderer=function(Y){var S,P;return!!(Y==null?0:(S=Y.contents)==null?0:(P=S[0])==null?0:P.destinationShelfRenderer)};
_.z.computeHasSectionGroupViewModel=function(Y){var S,P;return!!(Y==null?0:(S=Y.contents)==null?0:(P=S[0])==null?0:P.sectionGroupViewModel)};
_.z.computeStaticCommentsHeader=function(Y){return Y&&this.containsComments()};
_.z.computeEpRestyle=function(Y){return _.f("web_ep_restyling")&&Y&&this.containsComments()};
_.z.computeIsContinuationCommentSection=function(Y){return(Y==null?void 0:Y.targetId)==="shorts-engagement-panel-comments-section"||(Y==null?void 0:Y.targetId)==="comments-section"};
_.z.computeSuppressPaddingDisclaimer=function(){var Y,S,P,u;return!!((Y=this.data)==null?0:(S=Y.contents)==null?0:(P=S[0])==null?0:(u=P.productListHeaderRenderer)==null?0:u.suppressPaddingDisclaimer)};
_.z.computeHeaderStyle=function(Y){switch(Y==null?void 0:Y.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.z.dataChanged=function(){this.firstCommentsLoaded=!1};
_.z.observeDataContentsLength=function(){var Y,S;((Y=this.data)==null?0:(S=Y.contents)==null?0:S.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.z.onYtDismissibleItemDismissedChange=function(Y){this._setItemDismissed(Y.type==="yt-dismissible-item-dismissed")};
_.z.triggerContinuations=function(){for(var Y=_.I(this.hostElement).querySelector("#continuations").children,S=0;S<Y.length;S++)Y[S].trigger()};
_.z.triggerInitialContinuations=function(){for(var Y=_.I(this.hostElement).querySelector("#continuations").children,S=0;S<Y.length;S++)Y[S].triggerIfNotPreviouslyTriggered()};
_.z.handleYtItemSectionContinuation=function(Y,S){var P;S&&((P=this.data)==null?void 0:P.sectionIdentifier)!==S||(this.set("data.continuations",[Y]),this.triggerContinuations())};
_.z.handleYtItemSectionReplace=function(Y,S){var P;S&&((P=this.data)==null?void 0:P.sectionIdentifier)!==S||(this.set("data.contents",Y),this.set("data.continuations",[]))};
_.z.computeUseHeightHack=function(Y){return Y&&!_.f("kevlar_disable_height_hack")};
_.z.computeTopSpacingZero=function(Y){return Y};
_.z.continuationShowButtonChanged=function(){var Y=_.I(this.hostElement).querySelector("ytd-continuation-item-renderer");Y&&(Y.showButton=this.continuationShowButton)};
_.z.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("data-changed",this.data))};
_.y6.Object.defineProperties(GC.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.f("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return!!((Y=this.data)==null?0:(S=Y.contents)==null?0:(P=S[0])==null?0:P.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u,W,m,J;return!!((Y=this.data)==null?0:(S=Y.contents)==null?0:(P=S[0])==null?0:(u=P.shelfRenderer)==null?0:(W=u.content)==null?0:(m=W.gridRenderer)==null?0:(J=m.targetId)==null?0:J.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return!!((Y=this.data)==null?0:(S=Y.contents)==null?0:(P=S[0])==null?0:P.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return!!((Y=this.data)==null?0:(S=Y.contents)==null?0:(P=S[0])==null?0:P.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.mG("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.f("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.f("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14368_cachedViewportHeight-130)/150)},
set:function(){}}});
GC.prototype.dataChangedForBinding=GC.prototype.dataChangedForBinding;GC.prototype.continuationShowButtonChanged=GC.prototype.continuationShowButtonChanged;GC.prototype.onYtDismissibleItemDismissedChange=GC.prototype.onYtDismissibleItemDismissedChange;GC.prototype.observeDataContentsLength=GC.prototype.observeDataContentsLength;GC.prototype.dataChanged=GC.prototype.dataChanged;GC.prototype.onServiceRequestCompleted=GC.prototype.onServiceRequestCompleted;GC.prototype.onLoadReloadContinuation=GC.prototype.onLoadReloadContinuation;
GC.prototype.onRetrieveLocation=GC.prototype.onRetrieveLocation;GC.prototype.commentsHidePanelButtonChanged=GC.prototype.commentsHidePanelButtonChanged;GC.prototype.updateLockupContainerTypes=GC.prototype.updateLockupContainerTypes;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],GC.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],GC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.QG.YtLazyListBehavior),_.k("design:type",Object)],GC.prototype,"ytLazyListBehavior",void 0);_.Q([_.p(_.a3.YtNextContinuationBehavior),_.k("design:type",Object)],GC.prototype,"ytNextContinuationBehavior",void 0);_.Q([_.p(_.I3),_.k("design:type",Object)],GC.prototype,"ytContinuationHandlerBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],GC.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],GC.prototype,"ytdReduxBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],GC.prototype,"darkerPanels",void 0);_.Q([_.X(),_.k("design:type",Object)],GC.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],GC.prototype,"engagementPanel",void 0);
_.Q([_.X(),_.k("design:type",Object)],GC.prototype,"commentsHidePanelButton",void 0);_.Q([_.X(),_.k("design:type",Object)],GC.prototype,"isWatchGrid",void 0);_.Q([_.X(),_.k("design:type",Object)],GC.prototype,"continuationShowButton",void 0);_.Q([_.X({computed:"computeIsContinuationCommentSection(data)"}),_.k("design:type",Boolean)],GC.prototype,"continuationIsCommentsSection",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],GC.prototype,"autoFill",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],GC.prototype,"continuationDisablePrescanVisibility",void 0);_.Q([_.X(),_.k("design:type",Boolean)],GC.prototype,"isReloading",void 0);_.Q([_.X(),_.k("design:type",Object)],GC.prototype,"isSearch",void 0);_.Q([_.X(),_.k("design:type",Object)],GC.prototype,"isConstrainedList",void 0);_.Q([_.X(),_.k("design:type",Object)],GC.prototype,"isWatch",void 0);_.Q([_.X(),_.k("design:type",Object)],GC.prototype,"eligibleToSwitchToGrid",void 0);
_.Q([_.X({selector:_.wv}),_.k("design:type",Object)],GC.prototype,"isGridViewEnabled",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.k("design:type",Object)],GC.prototype,"epRestyle",void 0);_.Q([_.d("isWatch"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GC.prototype,"hideShortsShelfHeader",null);
_.Q([_.d("isSearch","isWatch"),_.k("design:type",String),_.k("design:paramtypes",[])],GC.prototype,"thumbnailWidth",null);_.Q([_.d("isSearch","isWatch"),_.k("design:type",String),_.k("design:paramtypes",[])],GC.prototype,"sizing",null);_.Q([_.d("isWatch","isGridViewEnabled","data"),_.X({reflectToAttribute:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],GC.prototype,"lockupContainerType",null);
_.Q([_.zY("lockupContainerType","data"),_.k("design:type",Function),_.k("design:paramtypes",[Number]),_.k("design:returntype")],GC.prototype,"updateLockupContainerTypes",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],GC.prototype,"pageSubtype",void 0);_.Q([_.X({computed:"computeContainerWidth()"}),_.k("design:type",Number)],GC.prototype,"containerWidth",void 0);_.Q([_.X(),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GC.prototype,"isPlaylist",null);
_.Q([_.X(),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GC.prototype,"isClipList",null);_.Q([_.X(),_.k("design:type",Object)],GC.prototype,"isCarouselInFeed",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GC.prototype,"isPlaylistVideoContainer",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GC.prototype,"isSearchFrictionPage",null);
_.Q([_.X({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.k("design:type",Boolean)],GC.prototype,"useHeightHack",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.k("design:type",Object)],GC.prototype,"topSpacingZero",void 0);_.Q([_.X({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.k("design:type",Boolean)],GC.prototype,"showButton",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],GC.prototype,"firstCommentsLoaded",void 0);_.Q([_.X(),_.k("design:type",Object)],GC.prototype,"continuationIsInitialLoad",void 0);_.Q([_.X(),_.k("design:type",Boolean)],GC.prototype,"isSearchDova",void 0);_.Q([_.X({reflectToAttribute:!0,readOnly:!0}),_.k("design:type",Boolean)],GC.prototype,"itemDismissed",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.k("design:type",String)],GC.prototype,"sectionIdentifier",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.k("design:type",String)],GC.prototype,"fitContainer",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.k("design:type",Boolean)],GC.prototype,"hasDestinationShelfRenderer",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.k("design:type",Boolean)],GC.prototype,"staticCommentsHeader",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],GC.prototype,"enableSqueezebackPanels",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],GC.prototype,"enableAnchoredPanel",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.k("design:type",Boolean)],GC.prototype,"hasSectionGroupViewModel",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.k("design:type",Boolean)],GC.prototype,"suppressDisclaimerSeparator",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.k("design:type",String)],GC.prototype,"headerStyle",void 0);_.Q([_.d("isSearch"),_.k("design:type",Object),_.k("design:paramtypes",[])],GC.prototype,"lockupExperiments",null);
_.Q([_.d("isSearch"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GC.prototype,"typographyBump",null);_.Q([_.nc("#header"),_.k("design:type",HTMLElement)],GC.prototype,"header",void 0);_.Q([_.zY("commentsHidePanelButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GC.prototype,"commentsHidePanelButtonChanged",null);
_.Q([_.WZ("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],GC.prototype,"onRetrieveLocation",null);_.Q([_.WZ("yt-load-reload-continuation"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Function]),_.k("design:returntype")],GC.prototype,"onLoadReloadContinuation",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GC.prototype,"onServiceRequestCompleted",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GC.prototype,"dataChanged",null);_.Q([_.cZ("data.contents.length"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GC.prototype,"observeDataContentsLength",null);
_.Q([_.WZ("yt-dismissible-item-dismissed"),_.WZ("yt-dismissible-item-undismissed"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],GC.prototype,"onYtDismissibleItemDismissedChange",null);_.Q([_.zY("continuationShowButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GC.prototype,"continuationShowButtonChanged",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GC.prototype,"dataChangedForBinding",null);GC=_.Q([_.t({is:"ytd-item-section-renderer",disableElementRegistration:!0})],GC);
_.A(GC,"ytd-item-section-renderer",function(){if(JSd!==void 0)return JSd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return JSd=Y},{mode:1});var d56;var aUh=_.kW(_.Td("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var hs9={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var lus={},IU9=(lus[0]={title:_.Sk(_.Td("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Sk(_.Td("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:OV("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},lus[1]={title:_.Sk(_.Td("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:OV("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},lus);_.$s("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var hW=function(){var Y=_.Z.apply(this,arguments)||this;Y.allVideosCount=0;Y.allPlaylistCount=0;Y.shouldRenderDownloadsBanner=!1;Y.hasOptedIntoSmartDownloads=!1;Y.areAllSmartDownloadsDeleted=!1;Y.smartDownloadsCompleted=!1;return Y};
_.r(hW,_.Z);hW.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
hW.prototype.attached=function(){this.downloadsToRenderChanged()};
hW.prototype.detached=function(){this.set("renderableData",{})};
hW.prototype.downloadsToRenderChanged=function(){var Y=_.Na().getState().entities,S=_.vT(Y),P=_.f("kevlar_playlist_dl_page_killswitch")?PO8(Y):_.DS(Y),u=_.VBX(Y),W=_.gT(S);Y=_.IR(Y);this.set("renderableData",wch(P,S,u,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,W,Y))};
hW.prototype.downloadsToRenderChanged=hW.prototype.downloadsToRenderChanged;_.Q([_.p(_.Gn),_.k("design:type",Object)],hW.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],hW.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],hW.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],hW.prototype,"renderableData",void 0);_.Q([_.X({selector:_.x$a}),_.k("design:type",Object)],hW.prototype,"allVideosCount",void 0);_.Q([_.X({selector:Mtf}),_.k("design:type",Object)],hW.prototype,"allPlaylistCount",void 0);_.Q([_.X({selector:_.$$Y}),_.k("design:type",Object)],hW.prototype,"shouldRenderDownloadsBanner",void 0);_.Q([_.X({selector:_.rfa}),_.k("design:type",Object)],hW.prototype,"hasOptedIntoSmartDownloads",void 0);
_.Q([_.X({selector:_.GNE}),_.k("design:type",Object)],hW.prototype,"areAllSmartDownloadsDeleted",void 0);_.Q([_.X({selector:hSf}),_.k("design:type",Object)],hW.prototype,"smartDownloadsCompleted",void 0);_.Q([_.cZ("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hW.prototype,"downloadsToRenderChanged",null);
hW=_.Q([_.t({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],hW);
_.A(hW,"ytd-offline-item-section-renderer",function(){if(d56!==void 0)return d56;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return d56=Y},
{mode:1});var X2d;var Zyh;var vj=function(){return _.Z.apply(this,arguments)||this};
_.r(vj,_.Z);
vj.prototype.onDataChanged=function(){if(this.JSC$14395_lastData){var Y=this.getFilterClass(this.JSC$14395_lastData.status);Y&&this.hostElement.classList.remove(Y)}var S;(Y=this.getFilterClass((S=this.data)==null?void 0:S.status))&&this.hostElement.classList.add(Y);Y==="selected"?_.I(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.I(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");Y==="disabled"?_.I(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.I(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14395_lastData=this.data};
vj.prototype.getFilterClass=function(Y){switch(Y){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
vj.prototype.onDataChanged=vj.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],vj.prototype,"data",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vj.prototype,"onDataChanged",null);vj=_.Q([_.t({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],vj);
_.A(vj,"ytd-search-filter-renderer",function(){if(Zyh!==void 0)return Zyh;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Zyh=Y},{mode:_.OX("kevlar_poly_si_batch_j075")?1:2});var Dt=function(){return _.Z.apply(this,arguments)||this};
_.r(Dt,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Dt.prototype,"data",void 0);Dt=_.Q([_.t({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Dt);
_.A(Dt,"ytd-search-filter-group-renderer",function(){if(X2d!==void 0)return X2d;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return X2d=Y},{mode:_.OX("kevlar_poly_si_batch_j075")?1:2});var iyL;var I$=function(){return _.Z.apply(this,arguments)||this};
_.r(I$,_.Z);I$.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.mT());this.isCollapsed=!this.isCollapsed};
I$.prototype.navigateToAboutTheseResultsPage=function(){var Y=j2("https://www.youtube.com/howyoutubeworks/product-features/search/");Y?_.$U(window,Y,"_blank"):_.ik(Error("Sh"))};
I$.prototype.dataChanged=function(){this.isCollapsed=!0};
I$.prototype.computeShowBottomBorder=function(){var Y,S,P;return!!((Y=this.data)==null?0:(S=Y.button)==null?0:S.toggleButtonRenderer)||!((P=this.data)==null||!P.aboutTheseResultsButton)};
I$.prototype.dataChanged=I$.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],I$.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.k("design:type",Boolean)],I$.prototype,"showBottomBorder",void 0);_.Q([_.X(),_.k("design:type",Boolean)],I$.prototype,"renderCollapsibleMenu",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],I$.prototype,"isCollapsed",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],I$.prototype,"dataChanged",null);I$=_.Q([_.t({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],I$);
_.A(I$,"ytd-search-sub-menu-renderer",function(){if(iyL!==void 0)return iyL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return iyL=Y},{mode:1});var oLs;var tAs=new _.yH("SECTION_LIST_RENDERER_TOKEN");var AtU;var a$=function(){return _.Z.apply(this,arguments)||this};
_.r(a$,_.Z);a$.prototype.computeStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],a$.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],a$.prototype,"headerStyle",void 0);a$=_.Q([_.t({is:"ytd-text-header-renderer",disableElementRegistration:!0})],a$);
_.A(a$,"ytd-text-header-renderer",function(){if(AtU!==void 0)return AtU;var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return AtU=Y},{mode:1});var U5t;var LB=function(){return _.Z.apply(this,arguments)||this};
_.r(LB,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],LB.prototype,"data",void 0);LB=_.Q([_.t({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],LB);
_.A(LB,"ytd-minor-moment-header-renderer",function(){if(U5t!==void 0)return U5t;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return U5t=Y},{mode:1});var Qb6;var wt=function(){return _.Z.apply(this,arguments)||this};
_.r(wt,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],wt.prototype,"data",void 0);wt=_.Q([_.t({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],wt);
_.A(wt,"ytd-minor-moment-setting-alert-renderer",function(){if(Qb6!==void 0)return Qb6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Qb6=Y},{mode:1});var kg3;var MAU;var pB=function(){var Y=_.Z.apply(this,arguments)||this;Y.booleanSettingById=!1;Y.smartDownloadsEnabledVE=_.TI(128287);Y.smartDownloadsDisabledVE=_.TI(128286);Y.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return Y};
_.r(pB,_.Z);_.z=pB.prototype;_.z.attachSmartDownloadsSettingVes=function(){var Y;this.activeVeForLogging||((Y=this.data)==null?void 0:Y.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Ym(_.BF(),this.smartDownloadsEnabledVE),_.Ym(_.BF(),this.smartDownloadsDisabledVE))};
_.z.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.ms(this.hostElement,"yt-settings-switch-ready")};
_.z.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.z.onSwitchChange=function(Y){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(Y=_.oK(Y).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.f("kevlar_settings_switch_resolve_command_killswitch")?_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(Y)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.z.handleUpdateSettingsSwitch=function(Y){(Y=_.g(Y,NIJ))&&this.data&&this.data.id===Y.id&&this.set("data.enabled",!!Y.enabled)};
_.z.onToggleSettingsSwitch=function(Y,S){this.data&&this.data.id===Y&&this.set("data.enabled",S!=null?S:!this.data.enabled)};
_.z.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Af.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.z.maybeLogSmartDownloadsSettingVisibility=function(){var Y=_.pM(),S;Y&&((S=this.data)==null?void 0:S.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.UV(Y,[this.smartDownloadsEnabledVE]),_.QP(Y,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.UV(Y,[this.smartDownloadsDisabledVE]),_.QP(Y,[this.smartDownloadsEnabledVE])))};
_.z.maybeLogSmartDownloadsSettingClick=function(){var Y;((Y=this.data)==null?void 0:Y.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Pp(_.BF(),this.activeVeForLogging)};
_.z.updateDataEnabledFromBinding=function(Y){this.set("data.enabled",Y.detail.value)};
_.y6.Object.defineProperties(pB.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!Y&&(Y=this.ytRendererBehavior.getSimpleString(this.data.title));return Y}}});
pB.prototype.dataChanged=pB.prototype.dataChanged;_.Q([_.p(_.Gn),_.k("design:type",Object)],pB.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],pB.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],pB.prototype,"ytComponentBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],pB.prototype,"data",void 0);_.Q([_.X({selector:function(Y,S){if(Object.keys(Y==null?void 0:Y.entities).length)switch(S){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return uZJ(Y.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.k("design:type",Object)],pB.prototype,"booleanSettingById",void 0);_.Q([_.X(),_.k("design:type",_.LM)],pB.prototype,"activeVeForLogging",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],pB.prototype,"toggleAriaLabel",null);_.Q([_.cZ("data"),_.cZ("booleanSettingById"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pB.prototype,"dataChanged",null);
pB=_.Q([_.t({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],pB);
_.A(pB,"ytd-settings-switch-renderer",function(){if(MAU!==void 0)return MAU;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return MAU=Y},{mode:1});var F7=function(){return _.Z.apply(this,arguments)||this};
_.r(F7,_.Z);F7.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}}}}};
_.y6.Object.defineProperties(F7.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var Y=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(Y+=" remove-left-margin");this.data.extraBottomSpace&&(Y+=" extra-bottom-space");return Y}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],F7.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],F7.prototype,"contentsClassName",null);F7=_.Q([_.t({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],F7);
_.A(F7,"ytd-minor-moment-setting-section-renderer",function(){if(kg3!==void 0)return kg3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return kg3=Y},{mode:1});var yti;var s7=function(){return _.Z.apply(this,arguments)||this};
_.r(s7,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],s7.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],s7.prototype,"data",void 0);s7=_.Q([_.t({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],s7);
_.A(s7,"ytd-empty-product-details-renderer",function(){if(yti!==void 0)return yti;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return yti=Y},{mode:1});var Nqs;var HyS;var dt=function(){var Y=_.Z.apply(this,arguments)||this;Y.expanded=!0;return Y};
_.r(dt,_.Z);dt.prototype.getBadgeRowClass=function(Y,S,P){for(var u=_.n(this.hostElement.querySelectorAll("yt-img-shadow")),W=u.next();!W.done;W=u.next())W.value.onShow();Y=Y.selected;return P?Y!==-1?Y===S?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(Y!==void 0?Y:0)===S?"badge-line":"badge-hidden"};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],dt.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],dt.prototype,"expanded",void 0);dt=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],dt);
_.A(dt,"ytd-sponsorships-loyalty-badges-renderer",function(){if(HyS!==void 0)return HyS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return HyS=Y},{mode:1});var VAh;var lc=function(){var Y=_.Z.apply(this,arguments)||this;Y.expanded=!0;return Y};
_.r(lc,_.Z);lc.prototype.getContainerClasses=function(Y,S){Y=Y?"expanded":"collapsed";S&&(Y+=" item");return Y};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],lc.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],lc.prototype,"expanded",void 0);lc=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],lc);
_.A(lc,"ytd-sponsorships-perk-renderer",function(){if(VAh!==void 0)return VAh;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return VAh=Y},{mode:1});var ers;var X7=function(){var Y=_.Z.apply(this,arguments)||this;Y.expanded=!0;return Y};
_.r(X7,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],X7.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],X7.prototype,"expanded",void 0);X7=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],X7);
_.A(X7,"ytd-sponsorships-perks-renderer",function(){if(ers!==void 0)return ers;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ers=Y},{mode:1});var Zt=function(){var Y=_.Z.apply(this,arguments)||this;Y.isCollapsed=!1;return Y};
_.r(Zt,_.Z);Zt.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Zt.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Zt.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var Y;this.expandCollapseButton=_.g((Y=this.data)==null?void 0:Y.expandButton,_.I8)}else{var S;this.expandCollapseButton=_.g((S=this.data)==null?void 0:S.collapseButton,_.I8)}};
Zt.prototype.updateExpandCollapseButton=Zt.prototype.updateExpandCollapseButton;Zt.prototype.onDataChanged=Zt.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Zt.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Zt.prototype,"isCollapsed",void 0);_.Q([_.X(),_.k("design:type",Object)],Zt.prototype,"expandCollapseButton",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zt.prototype,"onDataChanged",null);_.Q([_.cZ("data","isCollapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zt.prototype,"updateExpandCollapseButton",null);Zt=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Zt);
_.A(Zt,"ytd-sponsorships-expandable-perks-renderer",function(){if(Nqs!==void 0)return Nqs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Nqs=Y},{mode:1});var Oyt;var ic=function(){return _.Z.apply(this,arguments)||this};
_.r(ic,_.Z);ic.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],ic.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ic.prototype,"data",void 0);ic=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],ic);
_.A(ic,"ytd-sponsorships-actionable-message-renderer",function(){if(Oyt!==void 0)return Oyt;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Oyt=Y},{mode:1});var Y1S;var o$=function(){return _.Z.apply(this,arguments)||this};
_.r(o$,_.Z);_.z=o$.prototype;_.z.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.z.getExpansionIcon=function(Y){return Y?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.z.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.z.computeMessageContainerStyle=function(Y){var S=Y.expandableItems?" style-clickable":"";return Y.messageContainerStyle?Y.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+S:"style-unspecified"+S};
_.z.isSinglePerk=function(Y){return!!Y.messageContainerStyle&&(Y.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||Y.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.z.onExpandedChanged=function(){var Y=this;if(this.expanded)for(var S=_.n(this.hostElement.querySelectorAll("yt-img-shadow")),P=S.next();!P.done;P=S.next())P.value.onShow();_.ky(this,function(){_.ms(Y.hostElement,"yt-refit")})};
_.z.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
o$.prototype.onDataChanged=o$.prototype.onDataChanged;o$.prototype.onExpandedChanged=o$.prototype.onExpandedChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],o$.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],o$.prototype,"expanded",void 0);
_.Q([_.zY("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],o$.prototype,"onExpandedChanged",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],o$.prototype,"onDataChanged",null);o$=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],o$);
_.A(o$,"ytd-sponsorships-expandable-message-renderer",function(){if(Y1S!==void 0)return Y1S;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Y1S=Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var S1U;var tW=function(){return _.Z.apply(this,arguments)||this};
_.r(tW,_.Z);tW.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"}}}}};
tW.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.g(this.data.endButton,_.I8).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
tW.prototype.onDataChanged=tW.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],tW.prototype,"data",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tW.prototype,"onDataChanged",null);
tW=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],tW);
_.A(tW,"ytd-sponsorships-heading-renderer",function(){if(S1U!==void 0)return S1U;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return S1U=Y},{mode:1});var PZi;var AW=function(){return _.Z.apply(this,arguments)||this};
_.r(AW,_.Z);_.Q([_.X(),_.k("design:type",Object)],AW.prototype,"data",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);AW=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],AW);
_.A(AW,"ytd-sponsorships-links-renderer",function(){if(PZi!==void 0)return PZi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return PZi=Y},{mode:1});var uxs;var U7=function(){return _.Z.apply(this,arguments)||this};
_.r(U7,_.Z);_.z=U7.prototype;_.z.onDataChanged=function(){if(this.data&&this.data.expandableItems){var Y;(Y=_.I(this.hostElement).querySelector("tp-yt-paper-button"))==null||Y.setAttribute("role","button")}else{var S;(S=_.I(this.hostElement).querySelector("tp-yt-paper-button"))==null||S.removeAttribute("role")}};
_.z.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.z.getExpansionIcon=function(Y){return Y?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.z.getTileClasses=function(Y){return Y?"tile expandable-tile":"tile"};
_.z.getButtonDisabled=function(Y){return Y?void 0:""};
U7.prototype.onDataChanged=U7.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],U7.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],U7.prototype,"expanded",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],U7.prototype,"onDataChanged",null);
U7=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],U7);
_.A(U7,"ytd-sponsorships-list-tile-renderer",function(){if(uxs!==void 0)return uxs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return uxs=Y},{mode:1});var Wg_;var zFm;var QD=function(){return _.Z.apply(this,arguments)||this};
_.r(QD,_.Z);QD.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],QD.prototype,"data",void 0);QD=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],QD);
_.A(QD,"ytd-sponsorships-promotion-renderer",function(){if(zFm!==void 0)return zFm;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return zFm=Y},{mode:1});var mlL;var ki=function(){return _.Z.apply(this,arguments)||this};
_.r(ki,_.Z);ki.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ki.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ki.prototype,"data",void 0);ki=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],ki);
_.A(ki,"ytd-sponsorships-purchase-option-renderer",function(){if(mlL!==void 0)return mlL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return mlL=Y},{mode:1});var nDJ;var jtL;var Mv=function(){return _.Z.apply(this,arguments)||this};
_.r(Mv,_.Z);_.Q([_.X(),_.k("design:type",Object)],Mv.prototype,"data",void 0);Mv=_.Q([_.t({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],Mv);
_.A(Mv,"ytd-ypc-offer-promo-renderer",function(){if(jtL!==void 0)return jtL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return jtL=Y},{mode:1});var yD=function(){return _.Z.apply(this,arguments)||this};
_.r(yD,_.Z);_.z=yD.prototype;
_.z.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"}}}}};
_.z.expansionCTA=function(Y,S){return Y&&(S?Y.collapseCallToAction:Y.expansionCallToAction)};
_.z.getExpansionIcon=function(Y){return Y?"arrow_drop_up":"arrow_drop_down"};
_.z.expansionCallToActionTap=function(){var Y=this;this.expanded=!this.expanded;_.ky(this,function(){_.ms(Y.hostElement,"yt-refit")})};
_.z.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var Y,S=(Y=this.data)==null?void 0:Y.onVisible;S&&this.ytComponentBehavior.resolveCommand(S)};
_.z.computeDisplayTitle=function(Y){return!(!Y||this.titledisplaystatus!=="show")};
_.z.computeDisplaySeparator=function(){return!1};
_.z.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
yD.prototype.onDataChanged=yD.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],yD.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],yD.prototype,"data",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],yD.prototype,"expanded",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],yD.prototype,"purchaseButtonClicked",void 0);_.Q([_.X({reflectToAttribute:!0,value:"show"}),_.k("design:type",String)],yD.prototype,"titledisplaystatus",void 0);_.Q([_.X({computed:"computeDisplayTitle(data.title)"}),_.k("design:type",Boolean)],yD.prototype,"displayTitle",void 0);
_.Q([_.X({computed:"computeDisplaySeparator(data)"}),_.k("design:type",Boolean)],yD.prototype,"displaySeparator",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yD.prototype,"onDataChanged",null);yD=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],yD);
_.A(yD,"ytd-sponsorships-tier-renderer",function(){if(nDJ!==void 0)return nDJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return nDJ=Y},{mode:2});var Nv=function(){return _.Z.apply(this,arguments)||this};
_.r(Nv,_.Z);
Nv.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Nv.prototype,"data",void 0);Nv=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Nv);
_.A(Nv,"ytd-sponsorships-management-renderer",function(){if(Wg_!==void 0)return Wg_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Wg_=Y},{mode:1});var JZd;var Hj=function(){return _.Z.apply(this,arguments)||this};
_.r(Hj,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Hj.prototype,"data",void 0);Hj=_.Q([_.t({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],Hj);
_.A(Hj,"ytd-open-in-native-app-view-model",function(){if(JZd!==void 0)return JZd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return JZd=Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var Bn_;var cZh;var CZi=_.Q0(["top-"]),q1S=_.Q0(["bottom-"]),RFU=_.Q0(["left-"]),xlU=_.Q0(["right-"]),bvJ={},TnL=function(Y,S,P){Y.removeAttribute("top-"+P);Y.removeAttribute("bottom-"+P);Y.removeAttribute("left-"+P);Y.removeAttribute("right-"+P);S&&(S.top&&_.Lh([_.Ua(CZi)],Y,"top-"+P,S.top),S.bottom&&_.Lh([_.Ua(q1S)],Y,"bottom-"+P,S.bottom),S.left&&_.Lh([_.Ua(RFU)],Y,"left-"+P,S.left),S.right&&_.Lh([_.Ua(xlU)],Y,"right-"+P,S.right))};
bvJ.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(Y){var S,P=_.I((S=this.hostElement)!=null?S:this),u;S=this.cardItemBoxBehaviorMarginTargetId&&P?P.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(u=this.hostElement)!=null?u:this;TnL(S,Y,"margin")},
cardItemContainerPaddingChanged_:function(Y){var S,P=_.I((S=this.hostElement)!=null?S:this),u;S=this.cardItemBoxBehaviorPaddingTargetId&&P?P.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(u=this.hostElement)!=null?u:this;TnL(S,Y,"padding")}}];var VD={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 Kgf;var EDJ;var e0=function(){return _.Z.apply(this,arguments)||this};
_.r(e0,_.Z);e0.prototype.textColorChanged_=function(){this.hostElement.style.color=VD[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
e0.prototype.textColorChanged_=e0.prototype.textColorChanged_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(bvJ.YtCardItemBoxBehavior),_.k("design:type",Object)],e0.prototype,"ytCardItemBoxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],e0.prototype,"data",void 0);_.Q([_.zY("data.textColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e0.prototype,"textColorChanged_",null);
e0=_.Q([_.r0({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],e0);
_.A(e0,"yt-card-item-text-renderer",function(){if(EDJ===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Kgf===void 0&&(Kgf=document.createElement("template"));var u=Kgf;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);EDJ=Y}Y=EDJ;return Y},{mode:2});var fvm;var gDf;var O7=function(){return _.Z.apply(this,arguments)||this};
_.r(O7,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],O7.prototype,"data",void 0);O7=_.Q([_.r0({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],O7);
_.A(O7,"yt-card-item-badge-renderer",function(){if(gDf===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;fvm===void 0&&(fvm=document.createElement("template"));var u=fvm;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);gDf=Y}Y=gDf;return Y},{mode:2});var $lJ;var rZi;var YP=function(){return _.Z.apply(this,arguments)||this};
_.r(YP,_.Z);YP.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],YP.prototype,"data",void 0);YP=_.Q([_.r0({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],YP);
_.A(YP,"yt-card-item-text-collection-renderer",function(){if(rZi===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;$lJ===void 0&&($lJ=document.createElement("template"));var u=$lJ;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);rZi=Y}Y=rZi;return Y},{mode:2});var GAh;var hFJ;var SI=function(){return _.Z.apply(this,arguments)||this};
_.r(SI,_.Z);SI.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],SI.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],SI.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Number)],SI.prototype,"iconSize",void 0);SI=_.Q([_.r0({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],SI);
_.A(SI,"yt-card-item-text-with-button-renderer",function(){if(hFJ===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;GAh===void 0&&(GAh=document.createElement("template"));var u=GAh;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);hFJ=Y}Y=hFJ;return Y},{mode:2});var P8=function(){return _.Z.apply(this,arguments)||this};
_.r(P8,_.Z);P8.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],P8.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],P8.prototype,"data",void 0);P8=_.Q([_.t({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],P8);
_.A(P8,"ytd-commerce-cart-summary-line-item-renderer",function(){if(cZh!==void 0)return cZh;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return cZh=Y},{mode:1});_.$s("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var uw=function(){var Y=_.Z.apply(this,arguments)||this;Y.hidden=!1;return Y};
_.r(uw,_.Z);_.z=uw.prototype;_.z.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"}}}}};
_.z.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.z.updateSummary=function(){var Y=this.commerceCartCheckoutButtonEntity,S;if(((S=this.data)==null?0:S.cartButton)&&Y.checkoutSummaryText){var P,u=lJ((P=this.data)==null?void 0:P.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+u+".cardItemTextRenderer.text",XW(Y.checkoutSummaryText));if(Y.checkoutDetailText){var W;P=lJ((W=this.data)==null?void 0:W.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+P+".cardItemTextRenderer.text",XW(Y.checkoutDetailText))}if(Y.checkoutAdditionalMetadataText){var m;
W=lJ((m=this.data)==null?void 0:m.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+W+".cardItemTextRenderer.text",XW(Y.checkoutAdditionalMetadataText))}}else Y.estimatedTotalPrice&&(m=lJ((u=this.data)==null?void 0:u.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+m+".cardItemTextRenderer.text",XW(Y.estimatedTotalPrice)))};
_.z.updateIsHidden=function(){var Y,S=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.isHidden;S!==void 0&&(this.hidden=S)};
_.z.updateCheckoutButton=function(){var Y,S=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.isDisabled;S!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",S);var P;Y=(P=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:P.innertubeCommand;Y!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",Y);var u;P=(u=this.commerceCartCheckoutButtonEntity)==null?void 0:u.checkoutButtonText;P!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:P})};
uw.prototype.entityChanged=uw.prototype.entityChanged;_.Q([_.p(_.Gn),_.k("design:type",Object)],uw.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],uw.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],uw.prototype,"fullWidth",void 0);_.Q([_.X(),_.k("design:type",Object)],uw.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],uw.prototype,"compact",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],uw.prototype,"hidden",void 0);
_.Q([_.X({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:L_U}),_.k("design:type",Object)],uw.prototype,"commerceCartCheckoutButtonEntity",void 0);_.Q([_.zY("commerceCartCheckoutButtonEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uw.prototype,"entityChanged",null);uw=_.Q([_.t({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],uw);
_.A(uw,"ytd-commerce-cart-checkout-button-renderer",function(){if(Bn_!==void 0)return Bn_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Bn_=Y},{mode:2});var vDs;_.DlS={};
_.DlS.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",_.up(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.up(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(Y){!this.tappableItemBehaviorTapEnabled||Y.keyCode!==13&&Y.keyCode!==32||Y.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var Y=this.data.onTap;Y.ypcGetCartEndpoint?(_.Bu(this.hostElement,[Y]),this.tappableItemBehaviorTapEnabled=!1):Y.ypcOffersEndpoint?_.Bu(this.hostElement,[Y]):_.cu(this.hostElement,[Y],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(Y){this.tappableItemBehaviorTapEnabled=!!Y},
tappableItemBehaviorOnTapEnabledChanged_:function(){var Y=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(Y.setAttribute("tabIndex",0),Y.setAttribute("role","button")):(Y.removeAttribute("tabIndex"),Y.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(Y){Y.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var Ivi;var avt;var W8=function(){return _.Z.apply(this,arguments)||this};
_.r(W8,_.Z);W8.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.rL("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.rL("sharingToggleButtonAndDefaultButton")}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],W8.prototype,"data",void 0);W8=_.Q([_.r0({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],W8);
_.A(W8,"yt-card-item-actions-renderer",function(){if(avt===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Ivi===void 0&&(Ivi=document.createElement("template"));var u=Ivi;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);avt=Y}Y=avt;return Y},{mode:2});var Lg6;var wPs;var pPJ;var Fg3;var stf;var dlt;var zK=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return Y};
_.r(zK,_.Z);zK.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
zK.prototype.handleDarkModeToggledAction_=function(Y){this.isDarkTheme_=Y};
zK.prototype.computeThemeImage_=function(Y,S){if(!Y||!Y.imageLight)return!1;this.isCircular_=Y.isCircular;Y.imageWidth&&(this.hostElement.style.width=Y.imageWidth+"px");Y.imageHeight&&(this.hostElement.style.height=Y.imageHeight+"px");Y.borderWidth&&(this.image.style.borderWidth=Y.borderWidth+"px",this.image.style.borderStyle="solid");Y.borderColor&&(this.image.style.borderColor=_.hK(Y.borderColor));return S&&Y.imageDark?Y.imageDark:Y.imageLight};
zK.prototype.computeThemeIcon_=function(Y){var S,P;if(!(Y==null?0:(S=Y.themedIcon)==null?0:(P=S.icon)==null?0:P.iconType))return!1;this.icon.style.color=VD[Y.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(Y.imageWidth||18)+"px";this.icon.style.height=(Y.imageHeight||18)+"px";return _.u2(Y.themedIcon.icon.iconType)};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(bvJ.YtCardItemBoxBehavior),_.k("design:type",Object)],zK.prototype,"ytCardItemBoxBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],zK.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],zK.prototype,"data",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],zK.prototype,"fit",void 0);_.Q([_.X(),_.k("design:type",Boolean)],zK.prototype,"isDarkTheme_",void 0);_.Q([_.X({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.k("design:type",Object)],zK.prototype,"themeImage_",void 0);_.Q([_.X({computed:"computeThemeIcon_(data)"}),_.k("design:type",Object)],zK.prototype,"themeIcon_",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Object)],zK.prototype,"isCircular_",void 0);
_.Q([_.nc("#image"),_.k("design:type",Object)],zK.prototype,"image",void 0);_.Q([_.nc("#icon"),_.k("design:type",Object)],zK.prototype,"icon",void 0);zK=_.Q([_.r0({is:"yt-themed-image-renderer",disableElementRegistration:!0})],zK);
_.A(zK,"yt-themed-image-renderer",function(){if(dlt===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;stf===void 0&&(stf=document.createElement("template"));var u=stf;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);dlt=Y}Y=dlt;return Y},{mode:2});var mt=function(){return _.Z.apply(this,arguments)||this};
_.r(mt,_.Z);mt.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"}}}}};
mt.prototype.computeImagePlacement_=function(Y){return Y||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],mt.prototype,"data",void 0);_.Q([_.X({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.k("design:type",String)],mt.prototype,"imagePlacement",void 0);
mt=_.Q([_.r0({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],mt);
_.A(mt,"yt-card-item-text-with-image-renderer",function(){if(Fg3===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;pPJ===void 0&&(pPJ=document.createElement("template"));var u=pPJ;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Fg3=Y}Y=Fg3;return Y},{mode:2});var n5=function(){return _.Z.apply(this,arguments)||this};
_.r(n5,_.Z);n5.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],n5.prototype,"data",void 0);n5=_.Q([_.r0({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],n5);
_.A(n5,"yt-card-item-error-renderer",function(){if(wPs===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Lg6===void 0&&(Lg6=document.createElement("template"));var u=Lg6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);wPs=Y}Y=wPs;return Y},{mode:2});var lv6;var XPm;_.$s("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var jI=function(){return _.Z.apply(this,arguments)||this};
_.r(jI,_.Z);_.z=jI.prototype;
_.z.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"}}}}};
_.z.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.z.backgroundColorChanged_=function(){var Y,S=(Y=this.data)==null?void 0:Y.backgroundColor;Y=VD[S||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.I(this.hostElement).querySelector("#main-content").style.backgroundColor=Y};
_.z.headerPromoBackgroundColorChanged_=function(){var Y,S=(Y=this.data)==null?void 0:Y.headerPromoBackgroundColor;Y=VD[S||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.I(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=Y};
_.z.errorRendererVisibilityChanged_=function(){var Y=this.isExpanded_,S;this.isErrorRendererVisible_=!((S=this.data)==null||!S.errorRenderer)&&!Y};
_.z.onYtToggleButton_=function(Y,S){this.isExpanded_=S.toggled};
jI.prototype.onYtToggleButton_=jI.prototype.onYtToggleButton_;jI.prototype.errorRendererVisibilityChanged_=jI.prototype.errorRendererVisibilityChanged_;jI.prototype.headerPromoBackgroundColorChanged_=jI.prototype.headerPromoBackgroundColorChanged_;jI.prototype.backgroundColorChanged_=jI.prototype.backgroundColorChanged_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],jI.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],jI.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(bvJ.YtCardItemBoxBehavior),_.k("design:type",Object)],jI.prototype,"ytCardItemBoxBehavior",void 0);_.Q([_.p(_.DlS.YtTappableItemBehavior),_.k("design:type",Object)],jI.prototype,"ytTappableItemBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],jI.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],jI.prototype,"isExpanded_",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],jI.prototype,"isErrorRendererVisible_",void 0);_.Q([_.zY("data.backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jI.prototype,"backgroundColorChanged_",null);_.Q([_.zY("data.headerPromoBackgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jI.prototype,"headerPromoBackgroundColorChanged_",null);
_.Q([_.zY("data.errorRenderer","isExpanded_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jI.prototype,"errorRendererVisibilityChanged_",null);_.Q([_.WZ("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[Event,Object]),_.k("design:returntype")],jI.prototype,"onYtToggleButton_",null);jI=_.Q([_.r0({is:"yt-card-item-renderer",disableElementRegistration:!0})],jI);
_.A(jI,"yt-card-item-renderer",function(){if(XPm===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;lv6===void 0&&(lv6=document.createElement("template"));var u=lv6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);XPm=Y}Y=XPm;return Y},{mode:2});_.$s("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var JN=function(){var Y=_.Z.apply(this,arguments)||this;Y.hidden=!1;return Y};
_.r(JN,_.Z);_.z=JN.prototype;_.z.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.z.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.z.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var Y,S=(Y=this.commerceCartHeaderEntity)==null?void 0:Y.isHidden;S!==void 0&&(this.hidden=S)}};
_.z.updateTitle=function(){var Y=this.commerceCartHeaderEntity.isDisabled,S,P,u=(P=_.g((S=this.data)==null?void 0:S.item,kEm))==null?void 0:P.headingRenderer;u&&(S=lJ(u,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+S+".0.cardItemTextRenderer.textColor",Y?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.z.updateSummaryText=function(){var Y=this.commerceCartHeaderEntity;if(this.compact){var S,P,u=(P=_.g((S=this.data)==null?void 0:S.item,kEm))==null?void 0:P.headingRenderer;u&&(S=lJ(u,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+S+".1.cardItemTextRenderer.text",Y.shortHeaderSummaryText?XW(Y.shortHeaderSummaryText):Y.headerSummaryText?XW(Y.headerSummaryText):""))}else{var W;if(S=(W=_.g((u=this.data)==null?void 0:u.item,kEm))==null?void 0:W.additionalInfoRenderer)S=lJ(S,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+S+".text",Y.headerSummaryText?XW(Y.headerSummaryText):"")}};
_.z.updateCheckoutButton=function(){var Y=this.commerceCartHeaderEntity,S,P,u=(P=_.g((S=this.data)==null?void 0:S.item,kEm))==null?void 0:P.additionalInfoRenderer;S=lJ(u,"buttonRenderer");var W;P=(W=this.commerceCartHeaderEntity)==null?void 0:W.isButtonDisabled;var m;W=(m=this.commerceCartHeaderEntity)==null?void 0:m.isButtonHidden;P!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+S+".buttonRenderer.isDisabled",P);W!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
W);var J;Y=(J=Y.checkoutButtonCommand)==null?void 0:J.innertubeCommand;Y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+S+".buttonRenderer.command",Y)};
JN.prototype.entityChanged=JN.prototype.entityChanged;_.Q([_.p(_.Gn),_.k("design:type",Object)],JN.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],JN.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],JN.prototype,"compact",void 0);_.Q([_.X({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"commerceCartHeaderEntity",S)}}),
_.k("design:type",Object)],JN.prototype,"commerceCartHeaderEntity",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],JN.prototype,"hidden",void 0);_.Q([_.zY("commerceCartHeaderEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JN.prototype,"entityChanged",null);JN=_.Q([_.t({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],JN);
_.A(JN,"ytd-commerce-cart-header-renderer",function(){if(vDs!==void 0)return vDs;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return vDs=Y},{mode:1});var Zvi;var ivs=_.KX(function(Y,S){var P;return(P=Y.onChangeCallback)==null?void 0:P.call(Y,S)},1E3),oD3=_.AI(function(Y){var S=Y.data;
var P=Y.iconMinus;Y=Y.iconPlus;var u=function(){return!!S().disabled},W=_.n(_.qb(0,void 0,"r56zNb")),m=W.next().value,J=W.next().value;
W={};W=_.Si("yt-spec-quantity-incrementer-shape__icon",(W["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return u()||m()===(S().onRemoveCommand?0:1)},W));
var c={};c=_.Si("yt-spec-quantity-incrementer-shape__icon",(c["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return m()>=S().maxValue||u()},c));
var C={};C=_.Si("yt-spec-quantity-incrementer-shape__text",(C["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return m()>S().maxValue},C["yt-spec-quantity-incrementer-shape__text--text-disabled"]=u,C));
var x=_.mR(function(){if(m()===1){var T,K;(K=(T=S()).onRemoveCommand)==null||K.call(T)}T=m()>S().maxValue?S().maxValue:m()-1;J(T);ivs(S(),T);return!1}),b=_.mR(function(){if(m()===S().maxValue)return!1;
var T=m()+1;J(T);ivs(S(),T);return!1});
_.Ij(function(){J(S().value)});
return _.R("quantity-incrementer-shape",null,_.R("div",{class:"yt-spec-quantity-incrementer-shape"},_.R("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return m()===(S().onRemoveCommand?0:1)||u()},
"aria-label":function(){return m()!==1?S().minusLabel:S().minimumReachedLabel},
"on:click":x},_.R(_.RF,{model:{circular:!0}}),_.R("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.R("div",{class:W},P()))),_.R("div",{class:C},m),_.R("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return m()>=S().maxValue||u()},
"aria-label":function(){return m()!==S().maxValue?S().plusLabel:S().maximumReachedLabel},
"on:click":b},_.R(_.RF,{model:{circular:!0}}),_.R("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.R("div",{class:c},Y())))))},"ud");_.AL(_.AI(function(Y){function S(){P().onRemoveCommand&&_.ae(P().onRemoveCommand)}
var P=Y.data;var u=_.Jq(P3f,function(){return P().quantityIncrementerEntityKey});
return _.R("yt-quantity-incrementer-view-model",null,_.R(oD3,{data:function(){var W=P(),m;var J=u()?!((m=u())==null||!m.disabled):!1;var c;m=u()?(c=u())==null?void 0:c.quantity:P().quantity;return sVa(W,J,S,m)},
iconMinus:function(){return _.R(_.BX,{icon:"BAR_HORIZONTAL",className:_.uN("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.R(_.BX,{icon:"ADD",className:_.uN("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"vd"),"yt-quantity-incrementer-view-model",{props:{data:_.wm}});var B8=function(){var Y=_.Z.apply(this,arguments)||this;Y.compact=!1;Y.hasQuantityIncrementer=!1;return Y};
_.r(B8,_.Z);B8.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"}}}};
B8.prototype.computeHasQuantityIncrementer=function(){var Y;return!!_.g((Y=this.data)==null?void 0:Y.picker,Hdf)};
B8.prototype.onLabelClick=function(){var Y;(Y=this.dropdownEl)==null||Y.open()};
_.Q([_.nc("ytd-dropdown-renderer"),_.k("design:type",Object)],B8.prototype,"dropdownEl",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],B8.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],B8.prototype,"quantityColor",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],B8.prototype,"compact",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.k("design:type",Object)],B8.prototype,"hasQuantityIncrementer",void 0);B8=_.Q([_.t({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],B8);
_.A(B8,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(Zvi!==void 0)return Zvi;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Zvi=Y},{mode:1});var tPS;var AZt;var c8=function(){return _.Z.apply(this,arguments)||this};
_.r(c8,_.Z);c8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
c8.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
c8.prototype.updateTitle=function(){var Y=this.disabledCartItemEntity;Y.disableActionName&&this.set("data.title",XW(Y.disableActionName))};
c8.prototype.updateButton=function(){var Y,S=(Y=this.disabledCartItemEntity.undoCommand)==null?void 0:Y.innertubeCommand;S!==void 0&&(this.set("data.actionButton.buttonRenderer.command",S),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
c8.prototype.entityChanged=c8.prototype.entityChanged;_.Q([_.p(_.Gn),_.k("design:type",Object)],c8.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],c8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"disabledCartItemEntity",S)}}),
_.k("design:type",Object)],c8.prototype,"disabledCartItemEntity",void 0);_.Q([_.X(),_.k("design:type",Object)],c8.prototype,"data",void 0);_.Q([_.zY("disabledCartItemEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c8.prototype,"entityChanged",null);c8=_.Q([_.t({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],c8);
_.A(c8,"ytd-disabled-cart-item-renderer",function(){if(AZt!==void 0)return AZt;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return AZt=Y},{mode:1});_.$s("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var C5=function(){var Y=_.Z.apply(this,arguments)||this;Y.compact=!1;Y.hidden=!1;Y.errorHidden=!1;Y.noOnTap=!1;return Y};
_.r(C5,_.Z);_.z=C5.prototype;
_.z.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"}}}};
_.z.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.z.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var Y=this.firstButtonElement;Y.alignByText=!0;Y.iconAlignByText=!0}};
_.z.computeNoOnTap=function(Y){return!Y};
_.z.updateQuantityColor=function(){if(this.pickerElement){var Y,S=(Y=this.commerceCartItemEntity)==null?void 0:Y.quantityColor;this.pickerElement.quantityColor=S}};
_.z.updateTotalPriceColor=function(){var Y,S=(Y=this.commerceCartItemEntity)==null?void 0:Y.totalPriceColor;if(S){var P;Y=_.g((P=this.data)==null?void 0:P.quantityPicker,y5u);if(P=_.g(Y==null?void 0:Y.price,Ma6))P.textColor=S}};
_.z.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var Y,S=(Y=this.commerceCartItemEntity)==null?void 0:Y.isHidden;S!==void 0&&(this.hidden=S)}};
_.z.updateHideErrorMessage=function(){var Y,S=(Y=this.commerceCartItemEntity)==null?void 0:Y.hideErrorMessage;S!==void 0&&(this.errorHidden=S)};
_.z.updateQuantity=function(){var Y=this,S,P=(S=this.commerceCartItemEntity)==null?void 0:S.quantity,u;S=(u=this.commerceCartItemEntity)==null?void 0:u.totalPrice;if(P){this.updateTotalPriceColor();this.updateQuantityColor();var W;u=_.g((W=this.data)==null?void 0:W.quantityPicker,y5u);if(W=_.g(u==null?void 0:u.price,Ma6))W.text=S?{simpleText:S.content}:void 0;if(S=_.g(u==null?void 0:u.picker,Hdf))S.quantity=P;var m;if(W=(m=_.g(u==null?void 0:u.picker,Jnh))==null?void 0:m.entries){m=!1;S=void 0;W=
_.n(W);for(u=W.next();!u.done;u=W.next())u=u.value,u.dropdownItemRenderer&&(S||(S=u.dropdownItemRenderer),u.dropdownItemRenderer.isSelected=!1,P===u.dropdownItemRenderer.int32Value&&(m=!0,u.dropdownItemRenderer.isSelected=!0));!m&&S&&(S.isSelected=!0)}_.ky(this,function(){var J;Y.set("data.quantityPicker",_.RY.unsafeClone((J=Y.data)==null?void 0:J.quantityPicker))})}};
C5.prototype.onYtRendererstamperFinished=C5.prototype.onYtRendererstamperFinished;C5.prototype.entityChanged=C5.prototype.entityChanged;_.Q([_.X(),_.k("design:type",Object)],C5.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],C5.prototype,"compact",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],C5.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],C5.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"commerceCartItemEntity",S)}}),
_.k("design:type",Object)],C5.prototype,"commerceCartItemEntity",void 0);_.Q([_.X(),_.k("design:type",Object)],C5.prototype,"quantityPicker",void 0);_.Q([_.X(),_.k("design:type",Object)],C5.prototype,"compactQuantityPicker",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],C5.prototype,"hidden",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],C5.prototype,"errorHidden",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.k("design:type",Object)],C5.prototype,"noOnTap",void 0);_.Q([_.nc("ytd-commerce-cart-item-quantity-picker-renderer"),_.k("design:type",Object)],C5.prototype,"pickerElement",void 0);_.Q([_.nc("yt-button-renderer"),_.k("design:type",Element)],C5.prototype,"firstButtonElement",void 0);
_.Q([_.zY("commerceCartItemEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C5.prototype,"entityChanged",null);_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C5.prototype,"onYtRendererstamperFinished",null);C5=_.Q([_.t({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],C5);
_.A(C5,"ytd-commerce-cart-item-renderer",function(){if(tPS!==void 0)return tPS;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return tPS=Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var Uls;var Qt3;var qj=function(){return _.Z.apply(this,arguments)||this};
_.r(qj,_.Z);qj.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}}}}}};
qj.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
qj.prototype.updateCheckoutLineItems=function(){var Y,S=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.checkoutLineItems;S&&(Y=S.map(function(P){a:{var u=P.price,W=P.description;switch(P.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":P={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:XW(W),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:XW(u),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:P={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:XW(W),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:XW(u),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 P}),this.set("data.summaryLineItems",Y))};
qj.prototype.updateIsHidden=function(){var Y,S=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.isHidden;S!==void 0&&(this.hostElement.hidden=S)};
qj.prototype.entityChanged=qj.prototype.entityChanged;_.Q([_.p(_.Gn),_.k("design:type",Object)],qj.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],qj.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],qj.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],qj.prototype,"data",void 0);_.Q([_.X({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:L_U}),_.k("design:type",Object)],qj.prototype,"commerceCartCheckoutButtonEntity",void 0);_.Q([_.zY("commerceCartCheckoutButtonEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qj.prototype,"entityChanged",null);qj=_.Q([_.t({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],qj);
_.A(qj,"ytd-commerce-cart-summary-renderer",function(){if(Qt3!==void 0)return Qt3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Qt3=Y},{mode:1});var kAd={};kAd.InjectBehavior=[O$U.InjectBehavior];var MP6;var yZi;var Ry=function(){return _.Z.apply(this,arguments)||this};
_.r(Ry,_.Z);
Ry.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:_.rL("menuRenderer")}}};
Ry.prototype.onMenuTap=function(Y){Y.stopPropagation()};
_.y6.Object.defineProperties(Ry.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!(((Y=this.data)==null||!Y.sectionHeading)&&((S=this.data)==null?void 0:S.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!(((Y=this.data)==null||!Y.image)&&((S=this.data)==null?void 0:S.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!(((Y=this.data)==null||!Y.menu)&&((S=this.data)==null?void 0:S.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Ry.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.DlS.YtTappableItemBehavior),_.k("design:type",Object)],Ry.prototype,"ytTappableItemBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ry.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.accessibilityData"),_.k("design:type",String),_.k("design:paramtypes",[])],Ry.prototype,"ariaLabel",null);_.Q([_.d("data.sectionHeading","data.layout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ry.prototype,"sectionHeadingVisible",null);_.Q([_.d("data.image","data.layout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ry.prototype,"imageVisible",null);
_.Q([_.d("data.menu","data.layout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ry.prototype,"menuVisible",null);Ry=_.Q([_.r0({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Ry);
_.A(Ry,"yt-activity-item-renderer",function(){if(yZi===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;MP6===void 0&&(MP6=document.createElement("template"));var u=MP6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);yZi=Y}Y=yZi;return Y},{mode:2});var Nnm;var Hvs;var VPS;var eFS;var xP=function(){return _.Z.apply(this,arguments)||this};
_.r(xP,_.Z);
xP.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"}}}}};
xP.prototype.backgroundColorChanged_=function(){var Y,S=(Y=this.data)==null?void 0:Y.backgroundColor;this.hostElement.style.backgroundColor=VD[S||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
xP.prototype.backgroundColorChanged_=xP.prototype.backgroundColorChanged_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],xP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],xP.prototype,"data",void 0);
_.Q([_.zY("data.backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xP.prototype,"backgroundColorChanged_",null);xP=_.Q([_.r0({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],xP);
_.A(xP,"yt-offer-item-upsell-renderer",function(){if(eFS===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;VPS===void 0&&(VPS=document.createElement("template"));var u=VPS;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);eFS=Y}Y=eFS;return Y},{mode:2});_.$s("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var bw=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};Y.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return Y};
_.r(bw,_.Z);_.z=bw.prototype;
_.z.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:_.rL("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.z.computeContainerStyle_=function(Y){return Y};
_.z.computeContainerIsHidden_=function(Y){return Y&&!!Y.isHidden};
_.z.computeShowSpinner_=function(Y,S){return Y&&S==="in-progress"};
_.z.computeShowMoreContentsButton_=function(Y,S,P,u,W){return!(!(u&&u.length||W&&W.length&&P)||!Y||S)};
_.z.onToggleButton_=function(Y){var S=this;Y.stopPropagation();this.isExpanded_=Y.detail&&Y.detail.toggled;var P,u;this.isExpanded_&&!this.data.continuationSection.length&&((P=this.data)==null?0:(u=P.continuation)==null?0:u.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.ms(this.hostElement,"yt-load-next-continuation",function(W){return S.getContinuationUrl_(S.data.continuation.onClickContinuationData,W)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Bu(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.z.onShowMoreContentsButtonClicked_=function(Y){var S=this;Y.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.ms(this.hostElement,"yt-load-next-continuation",function(P){return S.getContinuationUrl_(S.data.continuations[0].nextContinuationData,P)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Bu(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.z.getContinuationUrl_=function(Y,S){var P=Y.continuation;Y=Y.clickTrackingParams;var u=_.pM();Y&&u&&_.ko(u,_.Re(Y));return _.NP(S,{continuation:P})};
_.z.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var Y=_.I(this.hostElement).querySelector("#continuation-section");Y&&(Y=Y.querySelectorAll("ytmusic-item-section-renderer"))&&Y.forEach(function(S){return S.classList.add("memberships-and-purchases")})};
_.z.dataChanged_=function(){var Y;this.isExpanded_=!((Y=this.data)==null||!Y.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.z.updateCardOnClickCommand_=function(Y){Y=_.g(Y,Xpi);var S,P;this.data&&((S=this.data)==null?0:S.targetId)&&Y&&Y.targetId===((P=this.data)==null?void 0:P.targetId)&&Y.onClickCommand&&(this.data.onClickCommand=Y.onClickCommand,this.isOnClickCommand_=!0)};
_.z.backgroundColorChanged_=function(){var Y,S=(Y=this.data)==null?void 0:Y.backgroundColor;this.hostElement.style.backgroundColor=VD[S||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
bw.prototype.backgroundColorChanged_=bw.prototype.backgroundColorChanged_;bw.prototype.dataChanged_=bw.prototype.dataChanged_;bw.prototype.nextContinuationDataUpdated_=bw.prototype.nextContinuationDataUpdated_;bw.prototype.onToggleButton_=bw.prototype.onToggleButton_;_.Q([_.p(_.I3),_.k("design:type",Object)],bw.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],bw.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.a3.YtNextContinuationBehavior),_.k("design:type",Object)],bw.prototype,"ytNextContinuationBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.Q([_.p(kAd.InjectBehavior),_.k("design:type",Object)],bw.prototype,"injectBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],bw.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],bw.prototype,"compact",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],bw.prototype,"isExpanded_",void 0);_.Q([_.X({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.k("design:type",String)],bw.prototype,"containerStyle_",void 0);_.Q([_.X({value:"not-started"}),_.k("design:type",String)],bw.prototype,"continuationStatus_",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.k("design:type",Boolean)],bw.prototype,"showSpinner_",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],bw.prototype,"isOnClickCommand_",void 0);_.Q([_.X({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.k("design:type",Boolean)],bw.prototype,"showMoreContentsButton_",void 0);
_.Q([_.X({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(Y,S){return!S||Y.entities?null:_.BT(Y.entities,"cardItemContainerEntity",S)}}),
_.k("design:type",Object)],bw.prototype,"cardItemContainerEntity_",void 0);_.Q([_.WZ("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bw.prototype,"onToggleButton_",null);_.Q([_.WZ("yt-next-continuation-data-updated"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bw.prototype,"nextContinuationDataUpdated_",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bw.prototype,"dataChanged_",null);_.Q([_.zY("data.backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bw.prototype,"backgroundColorChanged_",null);bw=_.Q([_.r0({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],bw);
_.A(bw,"yt-card-item-container-renderer",function(){if(Hvs===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Nnm===void 0&&(Nnm=document.createElement("template"));var u=Nnm;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Hvs=Y}Y=Hvs;return Y},{mode:2});var TK=function(){return _.Z.apply(this,arguments)||this};
_.r(TK,_.Z);TK.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"}}}};
TK.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
TK.prototype.computeLoadingHidden=function(){var Y;return!((Y=this.commerceCartPageStateEntity)==null?0:Y.cartActionInProgress)};
TK.prototype.updateNotification=function(){var Y,S=(Y=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:Y.summaryText;S&&this.set("data.cartNotification",XW(S))};
TK.prototype.notificationEntityChanged=TK.prototype.notificationEntityChanged;_.Q([_.p(_.Gn),_.k("design:type",Object)],TK.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],TK.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],TK.prototype,"data",void 0);_.Q([_.X({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"commerceCartExpandableNotificationEntity",S)}}),
_.k("design:type",Object)],TK.prototype,"commerceCartExpandableNotificationEntity",void 0);_.Q([_.X({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"commerceCartPageStateEntity",S)}}),
_.k("design:type",Object)],TK.prototype,"commerceCartPageStateEntity",void 0);_.Q([_.nc("#spinner"),_.k("design:type",HTMLElement)],TK.prototype,"spinner",void 0);_.Q([_.zY("commerceCartExpandableNotificationEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],TK.prototype,"notificationEntityChanged",null);TK=_.Q([_.t({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],TK);
_.A(TK,"ytd-commerce-cart-renderer",function(){if(Uls!==void 0)return Uls;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Uls=Y},{mode:1});var OvJ;var K5=function(){var Y=_.Z.apply(this,arguments)||this;Y.bigImage=!1;return Y};
_.r(K5,_.Z);_.y6.Object.defineProperties(K5.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.placeholderImageUrl}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],K5.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],K5.prototype,"bigImage",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],K5.prototype,"placeholderImageUrl",null);K5=_.Q([_.t({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],K5);
_.A(K5,"ytd-empty-product-shelf-renderer",function(){if(OvJ!==void 0)return OvJ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return OvJ=Y},{mode:1});var YYd;var Er=function(){var Y=_.Z.apply(this,arguments)||this;Y.itemStyle="link-item";Y.watchMetadataRefresh=!1;Y.skinnyMode=!1;Y.metaPanel=!1;Y.inStructuredDescription=!1;Y.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};Y.updateOnResizeDebouncer=null;return Y};
_.r(Er,_.Z);_.z=Er.prototype;_.z.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.z.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"}}}}};
_.z.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.z.attachVEs=function(Y){Y.trackingParams&&_.BF().graftServerVe(Y.trackingParams)};
_.z.handleUpdateMerchShelfAction=function(Y){var S=this,P=_.g(Y.updateMerchandiseShelfAction.merchandiseShelf,_.aT_);P&&(P.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){S.attachVEs(P);S.data=P},Number(P.renderDelayMs))):(this.attachVEs(P),this.data=P))};
_.z.updateOnResize=function(){if(this.JSC$14563_scrollContainer!==void 0&&this.JSC$14563_scrollContainer.clientWidth!==0&&this.items!==void 0){var Y=this.JSC$14563_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-Y));this.ytdHorizontalListBehavior.reposition_();var S;switch((S=this.data)==null?void 0:S.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var P,
u;((P=this.data)==null?void 0:(u=P.items)==null?void 0:u.length)===1?this.itemStyle="cta-item":this.itemStyle=Y>=740?"large-item":"small-item"}}};
_.z.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Sp(this.updateOnResizeDebouncer,_.AV.after(100),this.updateOnResize)};
Er.prototype.debouncedUpdateOnResize=Er.prototype.debouncedUpdateOnResize;Er.prototype.dataChanged=Er.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Er.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.kR.YtdHorizontalListBehavior),_.k("design:type",Object)],Er.prototype,"ytdHorizontalListBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Er.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Er.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Er.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Er.prototype,"itemStyle",void 0);_.Q([_.X({value:6}),_.k("design:type",Number)],Er.prototype,"initialCount",void 0);
_.Q([_.X({value:"data.items"}),_.k("design:type",String)],Er.prototype,"itemsPath",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Er.prototype,"watchMetadataRefresh",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Er.prototype,"skinnyMode",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Er.prototype,"metaPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Er.prototype,"inStructuredDescription",void 0);
_.Q([_.nc("#items"),_.k("design:type",HTMLDivElement)],Er.prototype,"items",void 0);_.Q([_.nc("#scroll-container"),_.k("design:type",HTMLDivElement)],Er.prototype,"JSC$14563_scrollContainer",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Er.prototype,"dataChanged",null);_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Er.prototype,"debouncedUpdateOnResize",null);
Er=_.Q([_.t({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Er);
_.A(Er,"ytd-merch-shelf-renderer",function(){if(YYd!==void 0)return YYd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return YYd=Y},{mode:2});var SY6;var f5=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return Y};
_.r(f5,_.Z);_.z=f5.prototype;
_.z.addBackstagePostAction=function(Y){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(Y=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",Y))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:Y}):this.set("data.contents",[{backstagePostThreadRenderer:Y}]))};
_.z.addBackstageCommentAction=function(Y){var S=this.get("addBackstageCommentAction.parentId",Y);Y=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",Y);if(S&&Y){S=this.postIdToIndices(S);for(var P=0;P<S.length;P++){var u=S[P];if(u<0)break;u="data.contents."+u+".backstagePostThreadRenderer.comments";this.get(u)&&(this.get(u+".backstageCommentsRenderer.contents")&&this.push(u+".backstageCommentsRenderer.contents",{commentThreadRenderer:Y}),this.get(u+".backstageCommentsRenderer.teaserContents")?
this.push(u+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:Y}):this.set(u+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:Y}]))}}};
_.z.addBackstageReplyAction=function(Y){var S=this.get("addBackstageReplyAction.parentId",Y);Y=this.get("addBackstageReplyAction.renderer.commentRenderer",Y);S&&Y&&this.setCreatorReply(S,Y)};
_.z.banAuthorAction=function(Y){var S=this.get("banAuthorAction.commentId",Y);S&&(Y=this.get("banAuthorAction.parentCommentId",Y)||this.getParentPostId(S),this.removeFromStream(S,Y))};
_.z.hideReportedCommentAction=function(Y){var S=this.get("hideReportedCommentAction.commentId",Y);S&&((Y=this.get("hideReportedCommentAction.parentCommentId",Y))||(Y=this.getParentPostId(S)),this.removeFromStream(S,Y))};
_.z.replaceBackstageCommentAction=function(Y){var S=this.get("replaceBackstageCommentAction.commentId",Y),P=this.get("replaceBackstageCommentAction.parentId",Y);Y=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",Y);if(S&&P&&Y){P=this.postIdToIndices(P);for(var u=0;u<P.length;u++){var W=P[u];if(W<0)break;var m=this.commentIdToIndex(S,W,!1);if(m>=0){var J=this.get("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+m+".commentThreadRenderer.replies.commentRepliesRenderer");
J&&(Y.replies={commentRepliesRenderer:J});this.splice("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",m,1,{commentThreadRenderer:Y})}m=this.commentIdToIndex(S,W,!0);if(m>=0){if(J=this.get("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(m+".commentThreadRenderer.replies.commentRepliesRenderer")))Y.replies={commentRepliesRenderer:J};this.splice("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
m,1,{commentThreadRenderer:Y})}}}};
_.z.replaceBackstagePostAction=function(Y){var S=this.get("replaceBackstagePostAction.itemId",Y);if(S){S=this.postIdToIndices(S);for(var P=0;P<S.length;P++){var u=S[P];if(u<0)break;var W=this.getPostRendererType(u),m=this.get("replaceBackstagePostAction.renderer."+W,Y);if(!m&&W!=="sharedPostRenderer")break;var J=!1;m||(J=!0,m=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",Y));if(!m)break;var c={};J?(_.g8(c,ijs,m),this.set("data.contents."+u+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
c)):(_.g8(c,new _.N(W),m),this.set("data.contents."+u+".backstagePostThreadRenderer.post",c))}}};
_.z.replaceBackstageReplyAction=function(Y){var S=this.get("replaceBackstageReplyAction.replyId",Y),P=this.get("replaceBackstageReplyAction.parentId",Y);Y=this.get("replaceBackstageReplyAction.renderer.commentRenderer",Y);S&&Y&&P&&this.setCreatorReply(P,Y)};
_.z.removeCommentAction=function(Y){var S=this.get("removeCommentAction.commentId",Y);if(S){var P=this.get("removeCommentAction.parentCommentId",Y);P&&this.get("removeCommentAction.isCreatorReply",Y)?this.setCreatorReply(P,void 0):(P||(P=this.getParentPostId(S)),this.removeFromStream(S,P))}};
_.z.setCreatorReply=function(Y,S){var P=this.getParentPostId(Y);if(P){P=this.postIdToIndices(P);for(var u=0;u<P.length;u++){var W=P[u];if(W<0)break;var m=this.commentIdToIndex(Y,W,!1);if(m>=0){var J="data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+m;m=J+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";J+=".commentThreadRenderer.replies";S==void 0?(this.set(J,{}),this.set(m,!1)):(this.set(J,{commentRepliesRenderer:{teaserContents:[{commentRenderer:S}]}}),
this.set(J+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(m,!0))}m=this.commentIdToIndex(Y,W,!0);m>=0&&(m="data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+m,W=m+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",m+=".commentThreadRenderer.replies",S==void 0?(this.set(m,{}),this.set(W,!1)):(this.set(m,{commentRepliesRenderer:{teaserContents:[{commentRenderer:S}]}}),this.set(W,!0)))}}};
_.z.removeFromStream=function(Y,S){if(S){S=this.postIdToIndices(S);for(var P=0;P<S.length;P++){var u=S[P];if(u<0)break;var W=this.commentIdToIndex(Y,u,!1);W>=0&&this.splice("data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",W,1);W=this.commentIdToIndex(Y,u,!0);W>=0&&this.splice("data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",W,1);u="data.contents."+u+".backstagePostThreadRenderer.post.backstagePostRenderer";
W=u+".backstageAttachment.pollRenderer.votedCommentId";this.get(W)===Y&&(this.set(W,null),this.set(u+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(S=this.postIdToIndices(Y).reverse(),P=0;P<S.length;P++){u=S[P];if(u<0)break;W=this.getPostRendererType(u);var m=this.get("backstagePostThreadRenderer.post."+W,this.data.contents[u]);m.postId===Y?this.splice("data.contents",u,1):W==="sharedPostRenderer"&&this.set("data.contents."+u+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);m.scheduledPublishTimeSec&&_.nb(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.z.postIdToIndices=function(Y){for(var S=[],P=0;P<this.data.contents.length;P++){var u=this.getPostRendererType(P);this.get("backstagePostThreadRenderer.post."+u+".postId",this.data.contents[P])===Y&&S.push(P);if(u==="sharedPostRenderer"){var W=this.get("backstagePostThreadRenderer.post."+u+".originalPost.backstagePostRenderer.postId",this.data.contents[P]);u=this.get("backstagePostThreadRenderer.post."+u+".originalPost.postRenderer.postId",this.data.contents[P]);W!==Y&&u!==Y||S.push(P)}}return S};
_.z.commentIdToIndex=function(Y,S,P){if(S<0)return-1;var u,W,m,J,c=_.g((u=this.data)==null?void 0:(W=u.contents)==null?void 0:(m=W[S])==null?void 0:(J=m.backstagePostThreadRenderer)==null?void 0:J.comments,XWJ);return(S=P?c==null?void 0:c.teaserContents:c==null?void 0:c.contents)&&S.length?S.findIndex(function(C){return _.g(C,CdJ).comment.commentRenderer.commentId===Y}):-1};
_.z.getParentPostId=function(Y){Y=Y.split(".");if(Y[1])return Y[0]};
_.z.getPostRendererType=function(Y){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[Y])?"sharedPostRenderer":"backstagePostRenderer"};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],f5.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],f5.prototype,"data",void 0);f5=_.Q([_.t({disableElementRegistration:!0,is:"ytd-backstage-items"})],f5);
_.A(f5,"ytd-backstage-items",function(){if(SY6!==void 0)return SY6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return SY6=
Y},{mode:1});var PDL;_.Kc({is:"ytd-comments",_template:function(){if(PDL!==void 0)return PDL;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-spinner-lite active="[[canShowDefaultSpinner_]]" class="style-scope ytd-comments"></tp-yt-paper-spinner-lite>\n<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return PDL=Y},
behaviors:[_.P79.YtHostElementBehavior,_.da.YtPlayerListenerBehavior,_.e.YtRendererBehavior,_.tD.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},canShowDefaultSpinner_:{type:Boolean,computed:"computeCanShowDefaultSpinner_(data, canScheduleJobs)"},
engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},
listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)","headerChanged_(data.header)"],created:function(){var Y=this;this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_();this.player=
null;this.JSC$14576_PLAYER_EVENTS_=new Map;this.JSC$14576_PLAYER_EVENTS_.set("onVideoProgress",function(){Y.onVideoProgress_()})},
attached:function(){this.maybeGetAndSetPlayer_()},
maybeGetAndSetPlayer_:function(){var Y=this,S=_.Q5(this);S&&S.getPlayerPromise().then(function(P){Y.playerApiReady_(P)})},
playerApiReady_:function(Y){this.setPlayer_(Y)},
setPlayer_:function(Y){this.player_&&this.unlistenFromPlayerEvents(this.player_,this.JSC$14576_PLAYER_EVENTS_);(this.player_=Y)&&this.listenToPlayerEvents(Y,this.JSC$14576_PLAYER_EVENTS_)},
detached:function(){this.setPlayer_(null)},
onVideoProgress_:function(){var Y=this,S=_.z_("prefetch_comments_ms_after_video");S>0&&setTimeout(function(){return Y.loadComments()},S);
_.f("prefetch_comments_idle_job")&&_.hp(_.wc,function(){return Y.loadComments()});
this.setPlayer_(null)},
dataChanged_:function(){this.player_||this.maybeGetAndSetPlayer_()},
contentsChanged_:function(Y){Y&&Y.value&&Y.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(Y){Y&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.pb("wn_comments");var Y=_.pM();Y&&_.wP({clientScreenNonce:Y},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(Y){Y=d0J(Y);var S,P,u;if(Y=(S=Y)==null?void 0:(P=S.createCommentAction)==null?void 0:(u=P.contents)==null?void 0:u.commentThreadRenderer){var W,m,J,c,C,x;!this.isBackstage&&((W=this.data)==null?0:(m=W.header)==null?0:(J=m.commentsHeaderRenderer)==null?0:(c=J.createRenderer)==null?0:(C=c.commentSimpleboxRenderer)==null?0:(x=C.zeroStep)==null?0:x.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var b,T,K,G;this.isBackstage&&((b=this.data)==null?0:(T=b.header)==null?0:(K=T.commentsHeaderRenderer)==null?0:(G=K.zeroStateMessage)==null?0:G.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(Y)}},
doReplyInsert_:function(Y,S,P,u){u?this.splice(Y,u,0,S):this.push(Y,S)},
getRepliesPath_:function(Y){return"data.contents."+Y+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(Y,S){Y=this.getRepliesPath_(Y);return S?Y+".commentRepliesRenderer.teaserContents":Y+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(Y){Y=d0J(Y);var S,P,u=(S=Y)==null?void 0:(P=S.createCommentReplyAction)==null?void 0:P.parentCommentId,W,m;if(S=(W=Y)==null?void 0:(m=W.createCommentReplyAction)==null?void 0:m.contents)if(u=this.commentIdToIndex_(u),!(u<0))if(W=this.getRepliesPath_(u),this.get(W)){var J,c;Y=(J=Y)==null?void 0:(c=J.createCommentReplyAction)==null?void 0:c.replyToCommentId;J=this.getRepliesContentsPath_(u,!1);this.get(J)&&(c=this.get(J).length,W=J+"."+(c-1)+".continuationItemRenderer",
this.get(W+".button")?(W=this.replyIdToIndex_(Y,u,!1),this.doReplyInsert_(J,S,W,c-1)):this.get(W)||(c=this.replyIdToIndex_(Y,u,!1),this.doReplyInsert_(J,S,c,null)));J=this.getRepliesContentsPath_(u,!0);this.get(J)?(u=this.replyIdToIndex_(Y,u,!0),(!Y||u>=0)&&this.doReplyInsert_(J,S,u,null)):this.set(J,[S])}else this.set(W,{commentRepliesRenderer:{teaserContents:[S]}})},
hideReportedCommentAction_:function(Y){var S,P=Y==null?void 0:(S=Y.hideReportedCommentAction)==null?void 0:S.commentId;if(P){var u;Y=Y==null?void 0:(u=Y.hideReportedCommentAction)==null?void 0:u.parentCommentId;P=P.replace("#",".");Y||(Y=this.getParentCommentId_(P));this.remove_(P,Y)}},
getParentCommentId_:function(Y){Y=Y.split(".");if(Y[1])return Y[0]},
removeCommentAction_:function(Y){var S,P=Y==null?void 0:(S=Y.removeCommentAction)==null?void 0:S.commentId;if(P){var u;Y=Y==null?void 0:(u=Y.removeCommentAction)==null?void 0:u.parentCommentId;P=P.replace("#",".");Y||(Y=this.getParentCommentId_(P));this.remove_(P,Y)}},
pinCommentAction_:function(Y){Y=d0J(Y);var S,P,u=(S=Y)==null?void 0:(P=S.pinCommentAction)==null?void 0:P.commentId;u&&(Y=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",Y))&&(this.remove_(u),this.insert_(Y,!0))},
unpinCommentAction_:function(Y){Y=d0J(Y);var S,P,u=(S=Y)==null?void 0:(P=S.unpinCommentAction)==null?void 0:P.commentId;if(u){var W,m,J;if(Y=(W=Y.unpinCommentAction)==null?void 0:(m=W.actionResult)==null?void 0:(J=m.update)==null?void 0:J.commentThreadRenderer)this.remove_(u),this.insert_(Y)}},
banAuthorAction_:function(Y){var S,P=Y==null?void 0:(S=Y.banAuthorAction)==null?void 0:S.commentId;if(P){var u;Y=Y==null?void 0:(u=Y.banAuthorAction)==null?void 0:u.parentCommentId;P=P.replace("#",".");Y||(Y=this.getParentCommentId_(P));this.remove_(P,Y)}},
commentIdToIndex_:function(Y){var S;return Y&&(S=this.data)!=null&&S.contents?this.data.contents.findIndex(function(P){var u,W;return Y===((P==null?void 0:(u=P.commentThreadRenderer)==null?void 0:u.commentViewModel)&&((W=_.g(P.commentThreadRenderer.commentViewModel,bXu))==null?void 0:W.commentId))}):-1},
insert_:function(Y,S){var P,u;if((P=this.data)==null?0:(u=P.contents)==null?0:u.some(function(m){return!(m==null||!m.commentThreadRenderer)}))for(P=0,u=this.data.contents.length;P<u;P++){var W=this.data.contents[P].commentThreadRenderer;
if(this.RenderingPriority[Y.renderingPriority]>=this.RenderingPriority[W.renderingPriority]){S&&this.RenderingPriority[Y.renderingPriority]==this.RenderingPriority[W.renderingPriority]?this.splice("data.contents",P,1,{commentThreadRenderer:Y}):this.splice("data.contents",P,0,{commentThreadRenderer:Y});break}}else this.set("data.contents",[{commentThreadRenderer:Y}])},
doReplyRemove_:function(Y,S,P){Y=this.replyIdToIndex_(Y,S,P);Y<0||(S=this.getRepliesContentsPath_(S,P),this.splice(S,Y,1))},
remove_:function(Y,S){S=this.commentIdToIndex_(S);S<0?(S=this.commentIdToIndex_(Y),S<0||this.splice("data.contents",S,1)):(this.doReplyRemove_(Y,S,!1),this.doReplyRemove_(Y,S,!0))},
replyIdToIndex_:function(Y,S,P){if(S<0)return-1;S=this.getRepliesContentsPath_(S,P);S=this.get(S);if(!S||!S.length)return-1;P=0;for(var u=S.length;P<u;P++){var W=void 0,m=void 0;if(((W=S[P])==null?void 0:(m=W.commentViewModel)==null?void 0:m.commentId)===Y)return P}return-1},
computeIsBackstage_:function(Y){return!!Y},
computeCanShowDefaultSpinner_:function(Y,S){return S?(S=_.E().resolve(_.PQ(_.Ag)))&&S.isOnWatch&&S.isOnWatch()?!(Y&&(Y.contents||Y.header||Y.continuations)):!1:!1},
onRetrieveLocation_:function(Y,S){S&&S.hasComments&&this.tickForCommentsTimer_("lss")},
tickForCommentsTimer_:function(Y){_.sV(Y,void 0,"wn_comments")},
reloadComments_:function(Y){Y&&Y.reloadCommentsCommand&&Y.reloadCommentsCommand.command&&Y.reloadCommentsCommand.command.continuationCommand&&_.Bu(this,[Y.reloadCommentsCommand.command])},
loadComments:function(){_.z_("prefetch_comments_ms_after_video")||_.f("prefetch_comments_idle_job")?this.$.sections.triggerInitialContinuations():this.$.sections.triggerContinuations()}});var gz=function(){return _.JI.apply(this,arguments)||this};
_.r(gz,_.JI);_.z=gz.prototype;_.z.bindIf=function(Y,S,P){return Y?S:P};
_.z.bindIfDefined=function(Y,S){return Y!==void 0?Y:S};
_.z.booleanString=function(Y){return(!!Y).toString()};
_.z.equals=function(){for(var Y=_.Ch.apply(0,arguments),S=Y[0],P=1;P<Y.length;P++)if(S!=Y[P])return!1;return!0};
_.z.isGreaterThan=function(Y,S){return Y>S};
_.z.isLessThan=function(Y,S){return Y<S};
_.z.logicalAND=function(){for(var Y=_.Ch.apply(0,arguments),S=!!Y[0],P=1;P<Y.length;P++)S=S&&!!Y[P];return S};
_.z.logicalOR=function(){for(var Y=_.Ch.apply(0,arguments),S=!!Y[0],P=1;P<Y.length;P++)S=S||!!Y[P];return S};
_.z.toBool=function(Y){return!!Y};
gz.prototype.toBool=gz.prototype.toBool;gz.prototype.logicalOR=gz.prototype.logicalOR;gz.prototype.logicalAND=gz.prototype.logicalAND;gz.prototype.isLessThan=gz.prototype.isLessThan;gz.prototype.isGreaterThan=gz.prototype.isGreaterThan;gz.prototype.equals=gz.prototype.equals;gz.prototype.booleanString=gz.prototype.booleanString;gz.prototype.bindIfDefined=gz.prototype.bindIfDefined;gz.prototype.bindIf=gz.prototype.bindIf;gz=_.Q([_.BZ()],gz);_.udt=[gz.prototype];var W6u;var zmd;var $P=function(){return _.Z.apply(this,arguments)||this};
_.r($P,_.Z);$P.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
$P.prototype.onBackIconTap_=function(){window.history.back()};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$P.prototype,"data",void 0);$P=_.Q([_.r0({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],$P);
_.A($P,"yt-header-with-back-renderer",function(){if(zmd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;W6u===void 0&&(W6u=document.createElement("template"));var u=W6u;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);zmd=Y}Y=zmd;return Y},{mode:2});var mxJ;var n$U;var rz=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(rz,_.Z);_.z=rz.prototype;_.z.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.z.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.isDarkTheme=Y,this.setUrl())};
_.z.dataChanged=function(){var Y=this;if(this.data){var S=this.setUrl();S&&_.e5({destination:window,iframe:this.iframe,origin:_.pt_(S.toString()),channelName:"yt-iframe",onMessage:function(P){(P=Y.getCommunicationCommand(P.data))&&Y.ytComponentBehavior.resolveCommand(P)},
onEstablished:function(){}})}};
_.z.setUrl=function(){if(this.data&&this.data.iframeUrl){var Y=_.pZ(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(Y)return _.fh(this.iframe,Y),Y}};
_.z.getCommunicationCommand=function(Y){var S;if((S=this.data)!=null&&S.onCommunicationCommandsMap){S=this.data.onCommunicationCommandsMap.find(function(W){return W.key===Y});
if(S==null?0:S.value)return S==null?void 0:S.value;try{var P=I3d(_.z3(Y)),u=this.data.onCommunicationCommandsMap.find(function(W){return W.key===(P==null?void 0:_.aJ(P,1))});
if(u==null?0:u.value)return u==null?void 0:u.value}catch(W){}}};
rz.prototype.dataChanged=rz.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],rz.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],rz.prototype,"actionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],rz.prototype,"data",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],rz.prototype,"isDarkTheme",void 0);_.Q([_.nc("#iframe"),_.k("design:type",HTMLIFrameElement)],rz.prototype,"iframe",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rz.prototype,"dataChanged",null);rz=_.Q([_.r0({is:"yt-iframe-renderer",disableElementRegistration:!0})],rz);
_.A(rz,"yt-iframe-renderer",function(){if(n$U===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;mxJ===void 0&&(mxJ=document.createElement("template"));var u=mxJ;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);n$U=Y}Y=n$U;return Y},{mode:2});_.GK=function(Y){_.R6.call(this);this.callback=Y;this.bezier=new Kms(0,0,.4,0,.2,1,1,1);this.delay=new _.V6(this.next,window,this);this.JSC$14594_animating=!1;_.Ph(this,this.delay)};
_.r(_.GK,_.R6);_.GK.prototype.isAnimating=function(){return this.JSC$14594_animating};
_.GK.prototype.start=function(Y,S,P){this.config={from:Y,to:S,duration:P,startTime:(0,_.Oh)()};this.JSC$14594_animating=!0;this.next()};
_.GK.prototype.stop=function(){this.delay.stop();this.JSC$14594_animating=!1;this.config=void 0};
_.GK.prototype.next=function(){if(this.config){var Y=this.config,S=Y.from,P=Y.to,u=Y.duration;Y=Y.startTime;var W=(0,_.Oh)()-Y;Y=this.bezier;u=fQi(Y,W/u);if(u==0)Y=Y.y0;else if(u==1)Y=Y.y3;else{W=G2(Y.y0,Y.y1,u);var m=G2(Y.y1,Y.y2,u);Y=G2(Y.y2,Y.y3,u);W=G2(W,m,u);m=G2(m,Y,u);Y=G2(W,m,u)}Y=_.wx(Y,0,1);this.callback(S+(P-S)*Y);Y<1?this.delay.start():this.JSC$14594_animating=!1}};_.hN=new _.yH("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var jas={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Bou=function(Y,S,P,u){_.R6.call(this);this.JSC$14602_miniAppId=Y;this.localReleaseId=S;this.derivedDeviceInterface=P;this.isForeground=u;this.JSC$14602_playNonceResolver=new _.nV;this.playPingTimerId=NaN;this.playPingIntervalMs=_.z_("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.z_("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.f("enable_displaying_ppn");this.JSC$14602_miniAppClientDataProvider=_.E().resolve(_.hN);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;J0s(this);var W=setTimeout(function(){_.sf(new _.$2("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14602_playNonceResolver.promise.then(function(){clearTimeout(W)})};
_.r(Bou,_.R6);var CDd=function(Y,S){Y.JSC$14602_playNonceResolver.resolve(S!=null?S:ak(8));Y.enableDisplayingPpn&&c03(Y).then(function(P){Y.JSC$14602_miniAppClientDataProvider.clientData.set("post_play_nonce",P)})},c03=function(Y){return _.B(function(S){return S.nextAddress==1?_.q(S,Y.JSC$14602_playNonceResolver.promise,2):S.return(S.yieldResult)})},J0s=function(Y){var S,P;
_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$14602_playNonceResolver.promise,2);S=u.yieldResult;P={miniAppInfo:{externalPostId:Y.JSC$14602_miniAppId,localReleaseId:Y.localReleaseId,postPlayNonce:S,derivedDeviceInterface:Y.derivedDeviceInterface}};_.wP(P);_.Yt(u)})},RmJ=function(Y){Y.state!==0?_.sf(new _.$2("[MiniAppPlayLogger] recordPlayStart failed with state "+jas[Y.state])):(Y.state=1,v8(Y,"ma_cl"),D5(Y,"PLAY_EVENT_TYPE_PLAY_START"),qYh(Y))},xxJ=function(Y){Y.isForeground=!1;
D5(Y,"PLAY_EVENT_TYPE_PLAY_PAUSE")},bYd=function(Y){Y.state!==1&&Y.state!==2?_.sf(new _.$2("[MiniAppPlayLogger] recordPlayEnd failed with state "+jas[Y.state])):(Y.state=3,window.clearInterval(Y.playPingTimerId),Y.playPingTimerId=NaN,yzJ(),D5(Y,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Tom=function(Y,S){Y.state===2&&Y.gameReady&&(Y.firstClickRecorded?Date.now()-Y.clickRecordedMs<Y.playClickIntervalMs||(Y.clickRecordedMs=Date.now(),D5(Y,"PLAY_EVENT_TYPE_PLAY_CLICK")):S&&(v8(Y,"ma_fua"),D5(Y,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),Y.firstClickRecorded=!0,Y.clickRecordedMs=Date.now()))};
Bou.prototype.logError=function(Y){var S=this,P;_.B(function(u){if(u.nextAddress==1)return Y.metadata.externalPostId=S.JSC$14602_miniAppId,P=Y.metadata,_.q(u,Promise.race([S.JSC$14602_playNonceResolver.promise,new Promise(function(W){setTimeout(function(){W("")},3E4)})]),2);
P.postPlayNonce=u.yieldResult;Y.metadata.localReleaseId=S.localReleaseId;Y.loggingError.level="WARNING";_.p_(Y.loggingError,Y.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:Y.metadata});_.Yt(u)})};
var K6i=function(Y,S,P,u){var W,m,J,c,C,x;_.B(function(b){if(b.nextAddress==1)return _.q(b,Y.JSC$14602_playNonceResolver.promise,2);W=b.yieldResult;m={externalPostId:Y.JSC$14602_miniAppId,localReleaseId:Y.localReleaseId,postPlayNonce:W,sdkVersion:P,api:S};u!==void 0&&(m.networkRequestsMeasurement={networkRequests:_.kg(u,1),cachedRequests:_.kg(u,2),transferredBytes:_.kg(u,3)},(J=u)==null?0:_.bW(J,k1,6))&&(m.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((c=_.P_(u,
k1,6))==null?void 0:wV(c,1))||"0",cacheHits:((C=_.P_(u,k1,6))==null?void 0:wV(C,2))||"0",cachedBytes:((x=_.P_(u,k1,6))==null?void 0:wV(x,3))||"0"});_.L_("miniAppSdkUsage",m);_.Yt(b)})},fmf=function(Y,S,P){var u,W,m,J,c,C,x,b,T,K,G,v,a,w,F,U;
_.B(function(V){if(V.nextAddress==1)return _.q(V,Y.JSC$14602_playNonceResolver.promise,2);u=V.yieldResult;W={externalPostId:Y.JSC$14602_miniAppId,localReleaseId:Y.localReleaseId,postPlayNonce:u,sdkVersion:P,measurementWindow:{startTimestampMs:String(Dp(S,1)),endTimestampMs:String(Dp(S,2))},frameRate:{averageFrameTimeDeltaMs:IJ(S,3),averageFrameIdleTimeMs:IJ(S,4)}};_.bW(S,M7,5)&&(W.networkRequests={networkRequests:(m=Yp(S))==null?void 0:_.kg(m,1),cachedRequests:(J=Yp(S))==null?void 0:_.kg(J,2),transferredBytes:(c=
Yp(S))==null?void 0:_.kg(c,3),sameOriginStatusCodeToCounts:E$U((C=Yp(S))==null?void 0:Ou1(C,4)),crossOriginStatusCodeToCounts:E$U((x=Yp(S))==null?void 0:Ou1(x,5))},(b=Yp(S))==null?0:_.bW(b,k1,6))&&(W.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((T=Yp(S))==null?void 0:(K=_.P_(T,k1,6))==null?void 0:wV(K,1))||"0",cacheHits:((G=Yp(S))==null?void 0:(v=_.P_(G,k1,6))==null?void 0:wV(v,2))||"0",cachedBytes:((a=Yp(S))==null?void 0:(w=_.P_(a,k1,6))==null?void 0:wV(w,3))||"0"});_.bW(S,
FwS,7)&&(W.gameCapture={averageFrameTimeDeltaMs:(F=_.P_(S,FwS,7))==null?void 0:IJ(F,1),averageFrameIdleTimeMs:(U=_.P_(S,FwS,7))==null?void 0:IJ(U,2)});_.L_("miniAppPerformanceMetrics",W);_.Yt(V)})},g$h=function(Y,S,P){var u,W;
return _.B(function(m){if(m.nextAddress==1)return _.q(m,Y.JSC$14602_playNonceResolver.promise,2);u=m.yieldResult;W={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:Y.JSC$14602_miniAppId,postPlayNonce:u,miniAppReleaseId:Y.localReleaseId},derivedDeviceInterface:Y.derivedDeviceInterface,adTriggerType:S};W.rejectedReason=P||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.L_("miniAppAdEvent",W);_.Yt(m)})};
Bou.prototype.disposeInternal=function(){_.R6.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var D5=function(Y,S,P,u){P=P===void 0?{}:P;u=u===void 0?!1:u;var W,m,J,c;_.B(function(C){if(C.nextAddress==1)return W=Y.isForeground,m=Y.beforeReady,_.q(C,Y.JSC$14602_playNonceResolver.promise,2);J=C.yieldResult;c={externalPostId:Y.JSC$14602_miniAppId,localReleaseId:Y.localReleaseId,derivedDeviceInterface:Y.derivedDeviceInterface,postPlayNonce:J,type:S};P.sequenceGroup=J;c.playState=m?"PLAY_STATE_NOT_READY":W?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.L_("miniAppPlayEvent",c,P);
u&&_.w6();_.Yt(C)})},v8=function(Y,S){var P;
_.B(function(u){if(u.nextAddress==1)return P=(0,_.Oh)(),_.q(u,Y.JSC$14602_playNonceResolver.promise,2);_.Fk(S,P);_.Yt(u)})},qYh=function(Y){isNaN(Y.playPingTimerId)&&(Y.playPingTimerId=_.BQ(function(){Y.state!==1&&Y.state!==2?_.sf(new _.$2("[MiniAppPlayLogger] reportPlayPing failed with state "+jas[Y.state])):D5(Y,"PLAY_EVENT_TYPE_PLAY_PING")},Y.playPingIntervalMs))},E$U=function(Y){return Array.from(Y.entries()).map(function(S){var P=_.n(S);
S=P.next().value;P=P.next().value;return{key:S,value:P}})};var $xi=_.z_("show_mini_app_ad_frequency_cap_ms",0),r0_=function(){this.showAdIntervalMs=$xi;this.isRateLimited=!0},GoU=function(Y,S){setTimeout(function(){return Y.isRateLimited=!1},Y.showAdIntervalMs);
Y.showMiniAppAdCommand=S.showMiniAppAdCommand;Y.isEmbeddedInWebview=S.isEmbeddedInWebview;Y.playLogger=S.playLogger},v$i=function(Y,S){var P;
return _.B(function(u){if(u.nextAddress==1){if(!Y.showMiniAppAdCommand||!Y.isEmbeddedInWebview)return u.return(hmh(Y,S,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(Y.isRateLimited)return u.return(hmh(Y,S,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));Y.adResolver=new _.nV;P=OlU(new ez6,S);iJ(Y.showMiniAppAdCommand,Yjt(P));Y.isRateLimited=!0;setTimeout(function(){return Y.isRateLimited=!1},Y.showAdIntervalMs);
return _.q(u,Y.adResolver.promise,2)}return u.return(u.yieldResult)})};
r0_.prototype.onAdFinished=function(Y){Y=C1t(Y);var S;(S=this.adResolver)==null||S.resolve(Y)};
var hmh=function(Y,S,P){var u;return _.B(function(W){if(W.nextAddress==1)W=_.q(W,(u=Y.playLogger)==null?void 0:g$h(u,tyY(S),P),2);else{var m=W.return;var J=new ckJ;J=_.uX(J,1,2);W=m.call(W,J)}return W})};var Dxh=new _.yH("INNERTUBE_MANAGER_TOKEN");var ImL=function(){this.callbacks={}};
ImL.prototype.initialize=function(Y){var S=this;this.callbacks=Y;window.youtubewebview?window.youtubewebview.onmessage=function(P){amd(S,P)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(P){amd(S,P)})};
var amd=function(Y,S){if(S.data)try{var P=I3d(S.data);if(_.p1(_.xn(P,1))!=null){var u=Mjt(_.aJ(P,2));switch(_.aJ(P,1)){case "yt-mini-app-load-audio-state":var W,m;(m=(W=Y.callbacks).onAudioStateLoaded)==null||m.call(W,_.vW(u,g6(u,rD,1)));break;case "yt-mute-mini-app":var J,c;(c=(J=Y.callbacks).onMuteMiniApp)==null||c.call(J);break;case "yt-unmute-mini-app":var C,x;(x=(C=Y.callbacks).onUnmuteMiniApp)==null||x.call(C);break;case "yt-playable-exit":var b,T;(T=(b=Y.callbacks).onExit)==null||T.call(b);
break;case "yt-post-play-nonce":var K,G;(G=(K=Y.callbacks).onPostPlayNonceReceived)==null||G.call(K,pj(u,2,rD));break;case "yt-confirm-exit-mini-app":var v,a;(a=(v=Y.callbacks).confirmExitMiniApp)==null||a.call(v);break;case "yt-confirm-exit-mini-app-edu":var w,F;(F=(w=Y.callbacks).confirmExitMiniAppEdu)==null||F.call(w);break;case "yt-benchmarking-response":var U,V;(V=(U=Y.callbacks).onNativeBenchmarkingMessageReceived)==null||V.call(U,pj(u,2,rD));break;case "yt-mini-app-load-3p-consent-state":var M,
zJ;(zJ=(M=Y.callbacks).multiplayer3pAckStateLoaded)==null||zJ.call(M,_.vW(u,g6(u,rD,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var O,ca;(ca=(O=Y.callbacks).exitMiniAppSeenStateLoaded)==null||ca.call(O,_.vW(u,g6(u,rD,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var hu,ah;(ah=(hu=Y.callbacks).onNavigateToNewMiniApp)==null||ah.call(hu);break;case "yt-game-data-available":var va,yX;(yX=(va=Y.callbacks).onGameDataAvailable)==null||yX.call(va,pj(u,2,rD));break;case "yt-pause-mini-app":var la,
w1;(w1=(la=Y.callbacks).onPauseMiniApp)==null||w1.call(la);break;case "yt-resume-mini-app":var U9,nu;(nu=(U9=Y.callbacks).onResumeMiniApp)==null||nu.call(U9);break;case "yt-playable-ad-finished":var Yc,tu;(tu=(Yc=Y.callbacks).onAdFinished)==null||tu.call(Yc,pj(u,2,rD))}}else _.sf(Error("Th"))}catch($_){_.p_(Error("Uh"))}else _.sf(Error("Vh"))};var U0a=function(Y){this.rpcErrorCode=Y};var Iy=function(Y,S,P){this.intervalMs=Y;this.apiFunc=S;this.type=P;this.schedulerReady=!0};
Iy.prototype.call=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1){if(S.type!==1&&Y===S.cachedValue)return u.return();S.pendingApiRequestResolver||(S.pendingApiRequestResolver=new _.nV);P=S.pendingApiRequestResolver.promise;S.cachedValue=Y;return _.q(u,L6U(S),2)}return u.return(P)})};
Iy.prototype.flush=function(Y){Y=Y===void 0?!1:Y;var S=this;return _.B(function(P){return S.cachedValue===void 0?P.return():_.q(P,S.apiFunc(S.cachedValue,Y),0)})};
var L6U=function(Y){var S,P,u;return _.B(function(W){switch(W.nextAddress){case 1:if(!Y.schedulerReady||!Y.pendingApiRequestResolver)return W.return();Y.schedulerReady=!1;S=Y.pendingApiRequestResolver;Y.pendingApiRequestResolver=void 0;_.ND(W,2);if(Y.cachedValue===void 0){W.jumpTo(4);break}return _.q(W,Y.apiFunc(Y.cachedValue),5);case 5:P=W.yieldResult,S.resolve(P);case 4:_.tc(W,3);break;case 2:u=_.O4(W),S.reject(u);case 3:setTimeout(function(){return _.B(function(m){Y.schedulerReady=!0;return _.q(m,
L6U(Y),0)})},Y.intervalMs),_.Yt(W)}})};var Mya=window.location.origin+"/miniapp_cloudsaves",QVE=[400,401],wGs=_.z_("cloud_save_game_data_rate_limit_ms",3E3),sam=function(Y){var S=this;this.JSC$14646_miniAppId=Y;this.loadAttempts=0;this.cloudSaveIntervalMs=wGs;this.initialDownloadDataSucceeded=!1;this.JSC$14646_playNonceResolver=new _.nV;this.scottyUploadRateLimiter=new Iy(this.cloudSaveIntervalMs,function(P,u){return pGs(S,P,u)},2);
this.downloadDataPromise=F6i(this);this.downloadDataPromise.then(function(){S.initialDownloadDataSucceeded=!0}).catch(function(){})},dxL=function(Y,S){S.then(function(P){return Y.JSC$14646_playNonceResolver.resolve(P)})},lmS=function(Y){return _.B(function(S){return Y.cachedData===void 0?S.return(Y.downloadDataPromise):S.return(Y.cachedData)})},XGS=function(Y,S){return _.B(function(P){Y.cachedData=S;
if(!Y.initialDownloadDataSucceeded)throw Error("Wh");return _.q(P,Y.scottyUploadRateLimiter.call(S),0)})},ZYs=function(){return new Promise(function(Y){setTimeout(Y,1E3,"")})},iYt=function(Y,S){var P,u;
return _.B(function(W){if(W.nextAddress==1)return P=Y.JSC$14646_miniAppId,_.q(W,Promise.race([Y.JSC$14646_playNonceResolver.promise,ZYs()]),2);u={"X-YouTube-MiniAppId":P,"X-YouTube-PostPlayNonce":W.yieldResult};"DELEGATED_SESSION_ID"in _.dw&&rJJ(S,u);return W.return(u)})},pGs=function(Y,S,P){P=P===void 0?!1:P;
return _.B(function(u){return Ae8()?_.f("enable_cloud_save_error_popup_after_retry")?u.return(new Promise(function(W,m){var J,c,C,x,b;return _.B(function(T){switch(T.nextAddress){case 1:J=0,c=!0,x=C=null;case 2:if(!(c&&J++<2)){T.jumpTo(4);break}_.ND(T,5);return _.q(T,o$S(Y,S,P),7);case 7:C=T.yieldResult;c=C.ok?!1:!QVE.includes(C.status);_.tc(T,2);break;case 5:x=b=_.O4(T);c=kvh(x);T.jumpTo(2);break;case 4:C?C.ok?(ay(Y,wGs),W()):(ay(Y,Y.cloudSaveIntervalMs*2),m(Error("Xh`"+String(C.status),{cause:{rpcErrorCode:C.status}}))):
(ay(Y,Y.cloudSaveIntervalMs*2),m(x||Error("Yh"))),_.Yt(T)}})})):u.return(new Promise(function(W,m){var J,c;
return _.B(function(C){if(C.nextAddress==1){if(Y.JSC$14646_miniAppId==="")return m(Error("Zh")),C.return();_.ND(C,2);return _.q(C,o$S(Y,S,P),4)}if(C.nextAddress!=2)return J=C.yieldResult,J.ok?(ay(Y,wGs),W()):(ay(Y,Y.cloudSaveIntervalMs*2),m(Error("Xh`"+String(J.status),{cause:{rpcErrorCode:J.status}}))),_.tc(C,0);c=_.O4(C);ay(Y,Y.cloudSaveIntervalMs*2);m(c);_.Yt(C)})})):u.return()})},o$S=function(Y,S,P){P=P===void 0?!1:P;
var u,W,m;return _.B(function(J){if(J.nextAddress==1)return u=_.QB((new TextEncoder).encode(S)),W=yeu(),_.q(J,iYt(Y,W),2);m=J.yieldResult;return J.return(fetch(W,{method:"POST",body:new Blob([u]),headers:m,keepalive:P}))})},F6i=function(Y){var S,P;
return _.B(function(u){if(u.nextAddress==1){if(!Ae8())return u.return("");if(Y.JSC$14646_miniAppId==="")throw Error("Zh");if(Y.loadAttempts>2)return u.return(Y.downloadDataPromise);_.ND(u,2);return _.q(u,t9i(Y),4)}if(u.nextAddress!=2)return S=u.yieldResult,u.return(S);P=_.O4(u);if(kvh(P)&&++Y.loadAttempts<2)return u.return(F6i(Y));throw P;})},t9i=function(Y){var S,P,u,W,m;
return _.B(function(J){switch(J.nextAddress){case 1:return _.ND(J,2),S=yeu(),_.q(J,iYt(Y,S),4);case 4:return P=J.yieldResult,_.q(J,fetch(S,{method:"GET",headers:P}),5);case 5:return u=J.yieldResult,u.ok?_.q(J,u.text(),6):J.return(Promise.reject(Error("$h`"+String(u.status),{cause:new U0a(u.status)})));case 6:return W=J.yieldResult,J.return((new TextDecoder).decode(_.z3(W)));case 2:return m=_.O4(J),J.return(Promise.reject(m))}})},ay=function(Y,S){Y.cloudSaveIntervalMs=S;
Y.scottyUploadRateLimiter.intervalMs=Y.cloudSaveIntervalMs};
sam.prototype.flush=function(){var Y=this;return _.B(function(S){return Y.initialDownloadDataSucceeded?_.q(S,Y.scottyUploadRateLimiter.flush(!0),0):S.return()})};var A0J=eB(VQ(1),N7(1)),UxJ=eB(VQ(1),N7(3)),L5=function(Y){this.callbacks=Y};
_.z=L5.prototype;_.z.onAudioToggled=function(Y,S){(S===void 0||S)&&_.PU("yt-mini-app-is-audio-enabled",Y,2592E3)};
_.z.onPause=function(){this.onAudioToggled(!1,!1)};
_.z.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.z.returnNativeBenchmarkingMessage=function(){};
_.z.sendGameData=function(){};
_.z.sendStartGameFrameCapture=function(){};
var NMK=function(Y,S,P){this.callbacks=Y;var u=this;this.sdkVersion=new _.nV;this.channel=new W$J(_.e5({destination:window,iframe:S,origin:(new URL(P.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var W=wz;var m=VQ(5);var J=new gXS;J=_.sM(J,1,1E4);m=_.Hd(m,4,ads,J);W(u,m);u.onAudioToggled(u.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){u.sdkVersion.resolve("")},1E4)};
_.r(NMK,L5);_.z=NMK.prototype;_.z.onAudioToggled=function(Y,S){L5.prototype.onAudioToggled.call(this,Y,S===void 0?!0:S);S=wz;var P=VQ(2),u=new EXi;Y=_.Hk(u,1,Y);Y=_.Hd(P,3,ads,Y);S(this,Y)};
_.z.onPause=function(){L5.prototype.onPause.call(this);wz(this,VQ(3))};
_.z.onResume=function(){L5.prototype.onResume.call(this);wz(this,VQ(4))};
_.z.returnNativeBenchmarkingMessage=function(Y){var S=wz,P=VQ(6);var u=N7(_.bW(Y,Ug,1)?1:2);Y=_.bW(Y,Ug,1)?Y:null;u=_.Hd(u,5,HY,Y);S(this,eB(P,u))};
_.z.sendGameData=function(Y){var S=wz,P=VQ(7);Y=_.Hd(P,5,ads,Y);S(this,Y)};
_.z.sendStartGameFrameCapture=function(){wz(this,VQ(9))};
var p5=function(Y,S,P){var u,W,m;return _.B(function(J){if(J.nextAddress==1)return u=Y.callbacks,W=u.onSdkCalled,m=S,_.q(J,Y.sdkVersion.promise,2);W.call(u,m,J.yieldResult,P);_.Yt(J)})};
NMK.prototype.onMessage=function(){var Y=this;return nYs(ST,function(S){var P,u,W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V,M,zJ,O,ca,hu,ah,va,yX,la,w1,U9,nu,Yc,tu,$_,fu,G3,wd,Wd,kE,n8,P6,ML,zc,Ku,uo;return _.B(function(qL){switch(qL.nextAddress){case 1:if(!XsL(S.data))return _.sf(Error("ai")),qL.return();P=_.Lj(S.data,1);_.f("enable_iframe_message_get_type_via_fields")&&(u=S.data,P=W=_.Lj(u,1));switch(P){case 8:if(S.data.hasMetadata()){var Zf=Y.sdkVersion,Cu=Zf.resolve;var hm=S.data.getMetadata();hm=_.aJ(hm,
1);Cu.call(Zf,hm);clearTimeout(Y.sdkVersionTimeoutId)}break;case 6:return qL.jumpTo(2);case 16:if(!_.Te(S.data,wsm,14,Pg))return qL.return();m=_.F0(S.data,wsm,14,Pg);(c=(J=Y.callbacks).onGameFrameReceived)==null||c.call(J,m);return qL.return();case 1:if(Zf=_.F0(S.data,GUs,2,Pg))switch(_.Lj(Zf,1)){case 1:Y.callbacks.onFirstFrameReady();if(_.f("enable_network_request_logging_on_game_events")&&_.bW(Zf,M7,4)){p5(Y,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.P_(Zf,M7,4));break}p5(Y,"MINI_APP_SDK_API_FIRST_FRAME_READY");
break;case 2:(hm=(Cu=Y.callbacks).onGameReady)==null||hm.call(Cu);if(_.f("enable_network_request_logging_on_game_events")&&_.bW(Zf,M7,4)){p5(Y,"MINI_APP_SDK_API_GAME_READY",_.P_(Zf,M7,4));break}p5(Y,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Te(Zf,yQ,3,hNu))Y.callbacks.onResourceLoaded(_.F0(Zf,yQ,3,hNu))}return qL.return();case 3:return qL.jumpTo(3);case 4:return qL.jumpTo(4);case 2:return qL.jumpTo(5);case 9:return qL.jumpTo(6);case 10:return Y.callbacks.onClick(),qL.return();case 5:return qL.jumpTo(7);
case 11:if(!_.Te(S.data,Um,9,Pg))return qL.return();C=_.F0(S.data,Um,9,Pg);(b=(x=Y.callbacks).onBenchmarkingMessageReceived)==null||b.call(x,C);Zf=S.reply;Cu=VQ(1);hm=N7(1);var Iu=new Um;var Fi=new Uint8Array(LSf(C,g6(C,RN3,6))|0);Iu=Rz(Iu,5,RN3,_.s6(Fi,!1));hm=_.Hd(hm,5,HY,Iu);Zf.call(S,eB(Cu,hm));return qL.return();case 12:return qL.jumpTo(8);case 13:return qL.jumpTo(9);case 15:if(!_.f("enable_open_yt_content"))return S.reply(UxJ),qL.return();if(!_.Te(S.data,Lwt,12,Pg))return S.reply(eB(VQ(1),N7(2))),
qL.return();Zf=_.F0(S.data,Lwt,12,Pg);T=_.aJ(Zf,1);Y.callbacks.onOpenYTContent(T);S.reply(A0J);return qL.return();case 14:return qL.jumpTo(10);default:return qL.return()}qL.jumpTo(0);break;case 2:if(!_.Te(S.data,Om,5,Pg))return qL.return();Cu=S.data;Zf=g6(Cu,Pg,5);Cu=Cu.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(Zf=xE(Cu,Cu[_.E6]|0,Om,Zf))||(Zf=Om[dZ])||(Zf=new Om,rd(Zf.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),Zf=Om[dZ]=Zf);K=Zf;Zf=_.Uy(K,QQ,1,_.QI());G=_.n(Zf);v=G.next();
case 12:if(v.done){qL.jumpTo(14);break}a=v.value;w=new _.$2;w.level=_.Lj(a,2)===1?"WARNING":"ERROR";F=VyK(a.getSource());return _.q(qL,Y.sdkVersion.promise,15);case 15:U={source:F,sdkVersion:qL.yieldResult};_.B6(_.xn(a,6))!=null?(w.message=a.getMessage(),w.stack=_.aJ(a,5),U.sdkErrorType=esX(_.Lj(a,6)),_.B6(_.xn(a,7))!=null&&(U.sdkApi=O4h(_.Lj(a,7)))):w.stack=void 0;M=V=void 0;(M=(V=Y.callbacks).onError)==null||M.call(V,{loggingError:w,metadata:U});v=G.next();qL.jumpTo(12);break;case 14:return qL.return();
case 3:return _.ND(qL,16),Zf=Y.callbacks,Cu=Zf.onSave,hm=_.F0(S.data,fd3,4,Pg),hm=_.aJ(hm,1),_.q(qL,Cu.call(Zf,hm),18);case 18:S.reply(A0J);_.tc(qL,17);break;case 16:return zJ=_.O4(qL),O=Us,ca=zJ,hu=Y.callbacks,ah="MINI_APP_SDK_API_SAVE_DATA",_.q(qL,Y.sdkVersion.promise,19);case 19:O(ca,hu,ah,qL.yieldResult),S.reply(UxJ);case 17:return _.q(qL,p5(Y,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return qL.return();case 4:return _.ND(qL,21),_.q(qL,Y.callbacks.onLoad(),23);case 23:va=qL.yieldResult;Zf=S.reply;
Cu=VQ(1);hm=N7(1);Iu=new fd3;Iu=_.zH(Iu,1,va);hm=_.Hd(hm,3,HY,Iu);Zf.call(S,eB(Cu,hm));_.tc(qL,22);break;case 21:return yX=_.O4(qL),la=Us,w1=yX,U9=Y.callbacks,nu="MINI_APP_SDK_API_LOAD_DATA",_.q(qL,Y.sdkVersion.promise,24);case 24:la(w1,U9,nu,qL.yieldResult),S.reply(UxJ);case 22:return _.q(qL,p5(Y,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return qL.return();case 5:_.ND(qL,26);Y.callbacks.onSendHighScore(hF(_.F0(S.data,d2i,3,Pg).getValue()));S.reply(eB(VQ(1),N7(1)));_.tc(qL,27);break;case 26:return Yc=
_.O4(qL),tu=Us,$_=Yc,fu=Y.callbacks,G3="MINI_APP_SDK_API_SEND_SCORE",_.q(qL,Y.sdkVersion.promise,28);case 28:tu($_,fu,G3,qL.yieldResult),S.reply(UxJ);case 27:return _.q(qL,p5(Y,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return qL.return();case 6:if(!_.Te(S.data,ld3,8,Pg)){qL.jumpTo(30);break}Zf=_.F0(S.data,ld3,8,Pg);Zf=_.Lj(Zf,1);return _.q(qL,p5(Y,O4h(Zf)),30);case 30:return qL.return();case 7:return Zf=S.reply,Cu=VQ(1),hm=N7(1),Iu=Y.callbacks.getLanguage(),hm=Rz(hm,4,HY,wZ(Iu)),Zf.call(S,eB(Cu,
hm)),_.q(qL,p5(Y,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return qL.return();case 8:if(!_.Te(S.data,sBf,10,Pg))return qL.return();wd=_.F0(S.data,sBf,10,Pg);Wd=Y.callbacks;kE=Wd.onSdkPerformanceUpdate;return _.q(qL,Y.sdkVersion.promise,33);case 33:return kE.call(Wd,wd,qL.yieldResult),qL.return();case 9:Zf=S.data;Cu=g6(Zf,Pg,11);if(_.p1(_.xn(Zf,Cu))==null)return S.reply(eB(VQ(1),N7(2))),qL.return();n8=pj(S.data,11,Pg);Y.callbacks.onShareInviteCode(n8);S.reply(A0J);return _.q(qL,p5(Y,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),
34);case 34:return qL.return();case 10:if(_.Te(S.data,Kw6,13,Pg)){qL.jumpTo(35);break}return _.q(qL,Y.callbacks.onShowMiniAppAd(2),36);case 36:return P6=qL.yieldResult,S.reply(eB(VQ(1),D2t(P6))),_.q(qL,p5(Y,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return qL.return();case 35:Zf=_.F0(S.data,Kw6,13,Pg);a:switch(_.Lj(Zf,1)){case 1:Zf={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:Zf={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Zf={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}ML=
Zf;zc=ML.adType;Ku=ML.sdkApi;Zf=Y.callbacks;Cu=Zf.onShowMiniAppAd;hm=_.F0(S.data,Kw6,13,Pg);hm=_.aJ(hm,2);return _.q(qL,Cu.call(Zf,zc,hm||void 0),38);case 38:return uo=qL.yieldResult,S.reply(eB(VQ(1),D2t(uo))),_.q(qL,p5(Y,Ku),39);case 39:return qL.return()}})})};
var wz=function(Y,S){_.B(function(P){Y.channel.send(S);_.Yt(P)})},Qi=function(Y,S,P){this.callbacks=Y;
var u=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;Y=zLa(S,(new URL(P.toString())).origin);this.gameSnacks=new ffS(Y);this.gameSnacks.page.onReady(function(){u.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){u.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var W,m;(m=(W=u.callbacks).onGameReady)==null||m.call(W)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(W,m){try{u.callbacks.onSendHighScore(m)}catch(J){Us(J,u.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(W,m){var J;return _.B(function(c){if(c.nextAddress==1)return _.ND(c,2),_.q(c,u.callbacks.onSave(u.decoder.decode(m)),4);if(c.nextAddress!=2)return _.tc(c,0);J=_.O4(c);Us(J,u.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return c.return()})});
this.gameSnacks.storage.onLoad(function(){var W,m;return _.B(function(J){if(J.nextAddress==1)return _.ND(J,2),_.q(J,u.callbacks.onLoad(),4);if(J.nextAddress!=2)return W=J.yieldResult,J.return(u.encoder.encode(W));m=_.O4(J);Us(m,u.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return J.return(u.encoder.encode(""))})});
this.gameSnacks.init()};
_.r(Qi,L5);Qi.prototype.onAudioToggled=function(Y,S){L5.prototype.onAudioToggled.call(this,Y,S===void 0?!0:S);var P;(P=this.gameSnacks)==null||P.audio.update(Y)};
Qi.prototype.onPause=function(){L5.prototype.onPause.call(this);var Y;(Y=this.gameSnacks)==null||Y.game.pause()};
Qi.prototype.onResume=function(){L5.prototype.onResume.call(this);var Y;(Y=this.gameSnacks)==null||Y.game.resume()};var Qaf=YSJ,kod=_.AI(function(Y){var S=Y.data;var P=Y.loadingProgress;Y=_.n(_.qb("",void 0,"LYYTdd"));var u=Y.next().value,W=Y.next().value;Y=_.n(_.qb(!1,void 0,"K0waae"));var m=Y.next().value,J=Y.next().value,c=[],C=function(){return"transform: scaleX("+(_.wK(P)||0)+")"},x=null,b=function(){var v;
return(v=S()&&x)!=null?v:x=S().showAnniversaryAnimation?6:Qaf()};
_.D6(function(){var v;if(S().timeOutMessages&&((v=S().timeOutMessages)==null?0:v.length)){x=null;v=_.n(c);for(var a=v.next();!a.done;a=v.next())clearTimeout(a.value);c.length=0;SSE(S().timeOutMessages,c,W,J)}});
var T=function(){return!!S().persistentErrorMessageTitle},K=function(){return P!==void 0},G=function(){return S().title};
return _.R("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.R("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.R("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.R("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var v,a=(v=S().backgroundImage)==null?void 0:v.sources,w;return(a==null?0:a.length)?"background-image: url("+((w=a[0])==null?void 0:w.url)+")":
""}}),_.R("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.R(_.gw,{cond:function(){return!T()},
then:function(){var v={};return _.R("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.R("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.R(_.PX,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+b()},
data:function(){var a="loading_animation_"+b();return{animationConfig:{name:a,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+a+".json",loop:!0,autoplay:!0}}}})),_.R("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.R(_.gw,{cond:G,
then:function(){return _.R("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},G)}}),_.R("p",{class:_.Si("mini-app-splash-screen-view-model-wiz__timeout-message",(v["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return m()},v)),
"aria-live":"polite"},u),_.R(_.gw,{cond:K,then:function(){return _.R("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.R("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:C}))}})))}}),_.R(_.gw,{cond:T,
then:function(){return _.R("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.R("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return S().persistentErrorMessageTitle}),_.R(_.gw,{cond:function(){return!!S().persistentErrorMessageDescription},
then:function(){return _.R("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return S().persistentErrorMessageDescription})}}))}})))},"wd");var M93=new _.yH("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var y0i=Nb;Nb=function(Y){function S(P){if(P){var u,W;(u=P.__spec)==null||(W=u.didUnmount)==null||W.call(u);for(u=0;u<P.childNodes.length;u++)S(P.childNodes[u])}}
y0i==null||y0i(Y);Ks(function(){for(var P=0;P<Y.length;P++)S(Y[P])})};var Nos=_.AI(function(Y){var S=Y.data;var P=Y.score;var u=Y.formattedScore;var W=Y.onScoreChanged;var m=Y.isEmbeddedInWebview;var J=_.yZ(),c=function(){var G;return _.g(S==null?void 0:(G=S())==null?void 0:G.buttonViewModel,_.Gz)},C=function(){var G;
return(P==null?void 0:P())||Number(S==null?void 0:(G=S())==null?void 0:G.lastScore)||0},x=function(){var G;
return(u==null?void 0:u())||((G=c())==null?void 0:G.title)||""},b,T=1;
if(Y=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))Y=Number(Y),T=isNaN(Y)?1:Y/100;_.D6(function(){W==null||W(C());var G;var v=_.vF((G=c())==null?void 0:G.onTap);if(v){G=_.g(v,PAU);var a,w,F;G=_.g(G==null?void 0:(a=G.panelLoadingStrategy)==null?void 0:(w=a.inlineContent)==null?void 0:(F=w.dialogViewModel)==null?void 0:F.customContent,SjS)}else G=void 0;if(a=G)a.score=x()});
Y=_.mR(function(){var G,v,a=S==null?void 0:(G=S())==null?void 0:(v=G.loggingDirectives)==null?void 0:v.trackingParams;a&&_.uA(_.E().resolve(_.jG),a);return!1});
_.LE(function(){if(J.value){var G=J.value.querySelector("button"),v=c();G&&v&&P89(G,v);eu("yt-share-playable-with-high-score",function(){var a=C().toString(),w=S==null?void 0:S().onShareHighScoreCommand,F=S==null?void 0:S().highScoreShareClientParamIdentifier,U=m==null?void 0:m();w&&(U?(F=new Q8f,a=_.zH(F,2,a),iJ(w,a.JSC$10130_serializeBinary())):F&&(_.E().resolve(M93).clientParams.set(F,{miniAppClientParams:{highScore:a}}),Z4a(w,!1)))})}});
var K=function(){var G=c();G&&(P==null?0:P())&&G.accessibilityText&&(G.accessibilityText=G.accessibilityText.replace(b,x()));b=x();return{numberValue:C(),numberText:x(),heightPx:36,fontSizeMultiplier:T,shouldAnimate:!(P==null||!P())&&!0}};
return _.R("yt-mini-app-score-button-view-model",{class:function(){var G={};return _.uN("mini-app-score-button-view-model-wiz",(G["mini-app-score-button-view-model-wiz--is-visible"]=C()!==0,G))},
el:J,"on:click":Y},_.kS(!1,function(){return _.R("span",{style:"display:none;"},C)}),_.R(_.rv,{data:function(){var G;
return S==null?void 0:(G=S())==null?void 0:G.buttonViewModel}},{buttonViewModel:function(G){return _.R(_.aq,{data:G.data,
animatedTextProps:K})}}))},"xd");var YNt=_.AI(function(Y){var S,P=(S=_.u4("yt-mini-app-is-theater-mode-enabled"))!=null?S:!1,u=_.f("enable_playable_container_save_button"),W=_.f("enable_play_next_destination_page_in_toolbar");S={};return _.R("ytm-mini-app-top-bar-view-model",null,_.R("div",{class:_.Si("yt-mini-app-top-bar-view-model",(S["yt-mini-app-top-bar-view-model--mobile"]=!1,S["yt-mini-app-top-bar-view-model--desktop"]=!0,S))},_.R("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.R(_.gw,{cond:function(){var m;
return!!Y.data().backButtonEdu&&!((m=Y.isExitMiniAppSeen)==null?0:m.call(Y))},
then:function(){return _.R(_.rv,{data:function(){return Y.data().backButtonEdu}},{buttonViewModel:_.aq})},
else:function(){return _.R(_.rv,{data:function(){return Y.data().backButton}},{buttonViewModel:_.aq})}}),_.R(_.gw,{cond:function(){return Y.data().viewAllButton&&!0},
then:function(){return _.R(_.rv,{data:function(){return Y.data().viewAllButton}},{buttonViewModel:_.aq})}}),_.R(_.gw,{cond:function(){return Y.data().title&&!0},
then:function(){return _.R("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return Y.data().title})}})),_.R("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.R(_.gw,{cond:function(){var m;
return(m=Y.isDesktopPlayPage)==null?void 0:m.call(Y)},
then:function(){return _.R(_.SX,null,_.R(HYf,{highScoreButton:function(){return Y.data().highScoreButton},
score:Y.score,formattedScore:Y.formattedScore,onScoreChanged:Y.onScoreChanged,isEmbeddedInWebview:Y.isEmbeddedInWebview}),_.R(V9m,{enableSaveButton:function(){return _.wK(u)},
saveButton:function(){return Y.data().saveButton},
isSaved:Y.isSaved,onSaveToggled:function(){return Y.onSaveToggled}}),_.R(emh,{menuButton:function(){return Y.data().menuButton}}))},
else:function(){return _.R(_.gw,{cond:function(){return!1},
then:function(){return _.R(_.rv,{data:function(){return Y.data().playPageButton}},{buttonViewModel:function(m){return _.R(_.aq,{data:m.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.R(HYf,{highScoreButton:function(){return Y.data().highScoreButton},
score:Y.score,formattedScore:Y.formattedScore,onScoreChanged:Y.onScoreChanged,isEmbeddedInWebview:Y.isEmbeddedInWebview})}})}})),_.R("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.R(_.rv,{data:function(){return Y.data().muteButton}},{toggleButtonViewModel:function(m){var J=m.data;
return _.R(_.vL,{data:function(){var c,C;return Object.assign({},J(),{isToggled:(C=(c=Y.isAudioEnabled)==null?void 0:c.call(Y))!=null?C:!0})},
onToggle:Y.onAudioToggled,useOutlinedIcon:!0})}}),_.R(_.rv,{data:function(){return Y.data().theatreModeButton}},{toggleButtonViewModel:function(m){var J=m.data;
return _.R("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.R(_.vL,{data:function(){return Object.assign({},J(),{isToggled:P})},
useOutlinedIcon:!0}))}}),_.R(OYJ,{fullscreenButton:function(){return Y.data().fullscreenButton}}),_.R(_.gw,{cond:function(){return _.wK(W)&&Y.data().viewAllButton&&!1},
then:function(){return _.R(_.rv,{data:function(){return Y.data().viewAllButton}},{buttonViewModel:_.aq})}}),_.R(_.gw,{cond:function(){var m;
return!((m=Y.isDesktopPlayPage)==null?0:m.call(Y))},
then:function(){return _.R(_.SX,null,_.R(V9m,{enableSaveButton:function(){return _.wK(u)},
saveButton:function(){return Y.data().saveButton},
isSaved:Y.isSaved,onSaveToggled:function(){return Y.onSaveToggled}}),_.R(emh,{menuButton:function(){return Y.data().menuButton}}))}}))))},"yd");
YNt.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var emh=_.AI(function(Y){return _.R(_.rv,{data:Y.menuButton},{buttonViewModel:_.aq})},"zd"),V9m=_.AI(function(Y){var S=Y.enableSaveButton;
var P=Y.saveButton;var u=Y.isSaved;var W=Y.onSaveToggled;return _.R(_.gw,{cond:function(){return S()&&!(P==null||!P())},
then:function(){return _.R(_.rv,{data:function(){var m=_.g(P==null?void 0:P(),_.hq),J;return{toggleButtonViewModel:Object.assign({},m,{isToggled:(J=u==null?void 0:u())!=null?J:!(m==null||!m.isToggled)})}}},{toggleButtonViewModel:function(m){return _.R(_.vL,{data:m.data,
onToggle:W})}})}})},"Ad"),HYf=_.AI(function(Y){var S=Y.highScoreButton;
var P=Y.score;var u=Y.formattedScore;var W=Y.onScoreChanged;var m=Y.isEmbeddedInWebview;return _.R(_.rv,{data:S},{miniAppScoreButtonViewModel:function(J){return _.R(Nos,{data:J.data,score:P,formattedScore:u,onScoreChanged:W,isEmbeddedInWebview:m})}})},"Bd"),OYJ=_.AI(function(Y){Y=Y.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.R(_.SX,null):_.R(_.rv,{data:Y},{buttonViewModel:_.aq})},"Cd");_.SNf=new _.yH("DESKTOP_CURRENT_PAGE");var n7h=_.AI(function(Y){var S=Y.data;var P=_.f("force_active_time_logging_webview"),u=_.f("skip_logs_after_end_event"),W=!1,m=new ImL,J=void 0,c=void 0,C=_.E().resolve(Dxh),x=new r0_,b=void 0,T=void 0,K=[],G=void 0,v=void 0,a=!1,w=!1,F=!1,U=!1,V=new _.nV,M=_.E().resolve(M93),zJ=_.E().resolve(_.hN),O=_.E().resolve(_.PQ(zX)),ca,hu=(ca=_.E().resolve(_.PQ(_.SNf)))==null?void 0:ca.getCurrentPage(),ah=!1,va=0,yX=function(QX){QX.preventDefault();return QX.returnValue=""},la;
Y=_.n(_.qb(!((la=_.u4("yt-mini-app-is-audio-enabled"))!=null&&!la),void 0,"HKETIe"));var w1=Y.next().value,U9=Y.next().value,nu;la=_.n(_.qb(!((nu=_.u4("exit-mini-app-seen-state"))==null||!nu),void 0,"YikM9"));var Yc=la.next().value,tu=la.next().value;nu=_.n(_.qb(!1,void 0,"iTNqCb"));var $_=nu.next().value,fu=nu.next().value;nu=_.n(_.qb(void 0,void 0,"bU3Vbf"));var G3=nu.next().value,wd=nu.next().value;nu=_.n(_.qb(void 0,void 0,"qd4Zt"));var Wd=nu.next().value,kE=nu.next().value;nu=_.n(_.qb(!0,void 0,
"Cqc83e"));var n8=nu.next().value,P6=nu.next().value;nu=_.n(_.qb(!1,void 0,"oHovIe"));var ML=nu.next().value,zc=nu.next().value;nu=_.n(_.qb(void 0,void 0,"aeN11"));var Ku=nu.next().value,uo=nu.next().value;nu=_.n(_.qb(0,void 0,"AEGRyb"));var qL=nu.next().value,Zf=nu.next().value,Cu=_.Ms(),hm=function(){return S().isEmbeddedInWebview},Iu=function(){return S().hasPlayNextShelf};
eu("yt-page-type-changed",function(QX){if(_.f("enable_is_mini_app_page_active_bugfix"))QX.detail.newPageSubtype!=="mini_app"&&n8()&&vd();else if(QX=_.zHu()==="mini_app",QX!==n8())if(P6(QX),QX){var C1;QX=(C1=S().playableId)==null?void 0:C1.toString();QX!==void 0&&window.location.href.includes(QX)&&!w&&(U=!0,Fi(),kc(x_.value))}else QX||vd()});
eu("yt-action",function(QX){QX.detail.actionName==="yt-engagement-panel-visible-changed"&&QX.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&QX.detail.args[2]==="PAmini_app_panel"&&vd();_.f("enable_is_mini_app_page_active_bugfix")?QX.detail.actionName==="yt-history-load"&&!n8()&&(hu==null?0:hu.active)?(P6(!0),Fi(),kc(x_.value)):QX.detail.actionName==="yt-history-load"&&n8()&&!S().isEmbeddedInWebview&&Y5():n8()&&QX.detail.actionName==="yt-history-load"&&(U?U=!1:S().isEmbeddedInWebview||Y5())});
_.aI(function(){tj()});
_.D6(function(){Fi()});
var Fi=function(){var QX=S().playableId,C1=S().localReleaseId,fS=S().derivedDeviceInterface;if(w)_.sf(new _.$2("[MiniAppContainerViewModel] onEnter was called more than once"));else{w=!0;J=new Bou(QX,C1,fS,document.visibilityState==="visible");RmJ(J);c=new sam(QX);P_m(C,QX);GoU(x,{showMiniAppAdCommand:S().showMiniAppAdCommand,isEmbeddedInWebview:S().isEmbeddedInWebview,playLogger:J});jkE()&&(v=document.body.style.backgroundColor,_.Xs(document.body,"background-color","black"));JA();T3();V=new _.nV;
if(S().isEmbeddedInWebview){if(QX=(new URLSearchParams(window.location.search)).get("postPlayNonce"))CDd(J,QX),ah=!0;m.initialize({onAudioStateLoaded:function(KS){XO(KS)},
onMuteMiniApp:function(){XO(!1)},
onUnmuteMiniApp:function(){XO(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(KS){ah||(CDd(J,KS),ah=!0)},
confirmExitMiniApp:function(){var KS,RD,Pz;return _.B(function(IN){if(IN.nextAddress==1)return S().confirmExitMiniAppCommand?_.q(IN,Promise.race([V.promise,Promise.resolve(!1)]),2):IN.return();(KS=IN.yieldResult)?!S().confirmExitMiniAppCommandEdu||(Pz=(RD=Yc)==null?void 0:RD())!=null&&Pz?qg(S().confirmExitMiniAppCommand):(qg(S().confirmExitMiniAppCommandEdu),_.PU("exit-mini-app-seen-state","true",2592E6)):qg(S().closeMiniAppCommand);_.Yt(IN)})},
onNativeBenchmarkingMessageReceived:function(KS){KS=bah(_.d61(KS));if(_.Te(KS,_.Z_,3,q$_)){var RD=_.F0(KS,_.Z_,3,q$_),Pz=i4K();var IN=hF(Pz.getSeconds())-hF(RD.getSeconds());RD=_.kg(Pz,2)-_.kg(RD,2);IN<0&&RD>0?(IN+=1,RD-=1E9):IN>0&&RD<0&&(--IN,RD+=1E9);IN=(new Ug).setSeconds(IN);IN=_.Bd(IN,2,_.qI(RD),0);_.N8(KS,1,IN)}var Kj;(Kj=T)==null||Kj.returnNativeBenchmarkingMessage(KS)},
multiplayer3pAckStateLoaded:function(KS){Y5(KS)},
exitMiniAppSeenStateLoaded:function(KS){S().confirmExitMiniAppCommandEdu&&tu(KS)},
onNavigateToNewMiniApp:function(){qg(S().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(KS){KS=new URLSearchParams(KS);var RD=void 0;KS.has("invite_code")&&(RD=new rkJ,KS=KS.get("invite_code"),RD=_.zH(RD,1,KS));if(KS=RD){var Pz;(Pz=T)==null||Pz.sendGameData(KS)}},
onPauseMiniApp:function(){W=!0;OE()},
onResumeMiniApp:function(){W=!0;Tc()},
onAdFinished:function(KS){x.onAdFinished(KS)}});
S().showMultiplayer3pConsentDialogCommand||V.resolve(!0);qg(S().onContainerReadyCommand)}else CDd(J),V.resolve(!0);dxL(c,c03(J));c03(J).then(function(KS){KS={miniAppPlayData:{postPlayNonce:KS}};var RD,Pz=(RD=S().loggingDirectives)==null?void 0:RD.trackingParams;Pz&&_.BF().stateChanged(Pz,KS)});
QX=S().showSignInDialogCommand;!Ae8()&&QX&&(_.PU("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),qg(QX));S().confirmExitMiniAppCommand&&O&&(QX=lU1(S().confirmExitMiniAppCommand))&&(O.customConfirmationCommand=QX)}},tj=function(){if(!u||w)v&&_.Xs(document.body,"background-color",v),a=!1,G&&G.release(),c.flush().catch(function(QX){_.sf(QX)}),C.flush().catch(function(QX){_.sf(QX)}),bYd(J),pS(),T=void 0,u&&(w=!1),uu3(M)},vd=function(){P6(!1);
tj();fu(!1);uo(void 0);wd(void 0);kE(void 0);va=0;Zf(0);u||(w=!1)},OE=function(){var QX;
(QX=T)==null||QX.onPause();G&&G.release();c.flush().catch(function(C1){_.sf(C1)});
C.flush().catch(function(C1){_.sf(C1)});
xxJ(J)},Tc=function(){var QX;
(QX=T)==null||QX.onResume();T3();QX=J;QX.isForeground=!0;D5(QX,"PLAY_EVENT_TYPE_PLAY_RESUME")},XO=function(QX){var C1;
(C1=T)==null||C1.onAudioToggled(QX);U9(QX)},Y5=function(QX){S().showMultiplayer3pConsentDialogCommand&&(S().isEmbeddedInWebview&&QX!==void 0&&V.resolve(QX),!QX&&_.zHu()==="mini_app"&&qg(S().showMultiplayer3pConsentDialogCommand))},L7=function(){var QX,C1,fS,KS;
return _.B(function(RD){if(RD.nextAddress==1){if(u&&!w)return RD.return();!S().isLivestream||S().disableVideoCapture||(QX=T)!=null&&QX.sendStartGameFrameCapture();C1=(new URL(window.location.href)).searchParams;if(C1.has("invite_code")){var Pz=new rkJ,IN=C1.get("invite_code");fS=_.zH(Pz,1,IN);(KS=T)==null||KS.sendGameData(fS)}$_()||(fu(!0),Pz=J,Pz.state!==1?_.sf(new _.$2("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+jas[Pz.state])):(_.nz("mini_app_ids_without_game_ready").includes(Pz.JSC$14602_miniAppId)&&
(Pz.gameReady=!0),Pz.state=2,Pz.beforeReady=!1,v8(Pz,"ma_ffr"),D5(Pz,"PLAY_EVENT_TYPE_PLAY_READY")));return _.q(RD,V.promise,2)}qg(S().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();S().isEmbeddedInWebview||Y5();_.Yt(RD)})},tF=function(){var QX=J;
QX.gameReady=!0;v8(QX,"ma_gr")},jX=function(QX){var C1;
return _.B(function(fS){if(fS.nextAddress==1)return _.ND(fS,2),_.q(fS,XGS(c,QX),4);if(fS.nextAddress!=2)return _.tc(fS,0);C1=_.O4(fS);qg(S().showSavingErrorPopupCommand);throw C1;})},XF=function(){var QX,C1;
return _.B(function(fS){if(fS.nextAddress==1)return _.ND(fS,2),_.q(fS,lmS(c),4);if(fS.nextAddress!=2)return QX=fS.yieldResult,fS.return(QX);C1=_.O4(fS);qg(S().showLoadingErrorDialogCommand);throw C1;})},bI=function(QX){J.logError(QX)},g7=function(QX,C1,fS){K6i(J,QX,C1,fS)},Wu=function(QX,C1){fmf(J,QX,C1)},V4=function(){!P&&S().isEmbeddedInWebview||_.PK();
Tom(J,!0);a||(window.addEventListener("beforeunload",yX,{capture:!0}),a=!0)},y3=function(QX){var C1,fS,KS,RD,Pz,IN,Kj;
return _.B(function(EM){if(EM.nextAddress==1)return C&&(!b||b<QX)&&QX>0?_.q(EM,Wn6(C,QX),3):EM.jumpTo(0);C1=EM.yieldResult;fS=_.n(C1);KS=fS.next().value;RD=fS.next().value;Pz=KS;IN=RD;((Kj=Pz)==null?0:Kj.displayString)&&IN&&(wd(IN),kE(Pz.displayString));_.Yt(EM)})},W_=function(QX){var C1=S().onBenchmarkingMessageReceivedCommand;
if(C1){var fS=i4K();_.Hd(QX,3,q$_,fS);iJ(C1,Txu(QX))}},E9=function(QX){var C1=S().onGameFrameReceivedCommand;
if(C1){var fS=new ez6;var KS=new Nys;var RD=Dp(QX,1);KS=_.r6(KS,1,RD);QX=_.aJ(QX,2);QX=_.zH(KS,2,QX);fS=_.N8(fS,2,QX);iJ(C1,Yjt(fS))}},FE=function(){var QX=new URLSearchParams(window.location.search);
if(S().isEmbeddedInWebview&&QX&&QX.get("override_hl")==="true"&&QX.get("hl"))return QX.get("hl");QX=document.documentElement.lang;return QX!==""?QX:_.ZS},ia=function(QX){var C1=S().onShareInviteCodeCommand;
if(C1)if(S().isEmbeddedInWebview){var fS=new Q8f;QX=_.zH(fS,1,QX);iJ(C1,MTf(QX))}else fS=S().inviteCodeShareClientParamIdentifier,M.clientParams.set(fS,{miniAppClientParams:{inviteCode:QX}}),qg(C1)},Rs=function(QX){var C1,fS,KS;
return _.B(function(RD){if(RD.nextAddress==1)return C1=S().onMiniAppOpenYtContentRequested,C&&_.f("enable_open_yt_content")&&C1?_.q(RD,zIL(C,QX),3):RD.jumpTo(0);fS=RD.yieldResult;if(fS==="OK")if(S().isEmbeddedInWebview){var Pz=new Qi_;KS=Rz(Pz,2,rD,wZ(QX));iJ(C1,yyf(KS))}else zJ.clientData.set("video_id",QX),qg(C1);_.Yt(RD)})},W6=function(QX){va+=_.kg(QX,3);
QX=Math.min(Math.log(1+va/15E6*9)/Math.log(10),.99);Zf(QX);DB(QX)},DB=_.KX(function(QX){var C1=S().updateLoadingProgressCommand;
if(C1){var fS=new Qi_;QX=Rz(fS,3,rD,_.S_(QX));iJ(C1,yyf(QX))}},100),c6=function(QX){return v$i(x,QX)},T3=function(){var QX,C1;
((QX=_.cta())==null?void 0:(C1=QX.wakeLock)==null?void 0:C1.request)!=null&&_.cta().wakeLock.request("screen").then(function(fS){G=fS}).catch(function(){})},x_=_.Ms();
_.D6(function(){S().isSupportedCountry&&(Ae8()||_.f("enable_sign_in_promo")||!S().showSignInDialogCommand?kc(x_.value):qg(S().onMiniAppReadyCommand))});
var xc=function(){return _.R("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return $_()?0:-1},
el:x_})},kc=function(QX,C1){C1=C1===void 0?!1:C1;
var fS=mh();fS&&(C1||fS.toString()!==QX.getAttribute("src"))&&(T=H48(S().source,{isAudioEnabled:w1,onFirstFrameReady:L7,onGameReady:tF,onSave:jX,onLoad:XF,onError:bI,onSdkCalled:g7,onSdkPerformanceUpdate:Wu,onClick:V4,onSendHighScore:y3,onBenchmarkingMessageReceived:W_,getLanguage:FE,onShareInviteCode:ia,onResourceLoaded:W6,onOpenYTContent:Rs,onShowMiniAppAd:c6,onGameFrameReceived:E9},QX,fS),Cs(QX,"load",function(){v8(J,"ma_il");Cs(QX,"load",function(){kc(QX,!0)})}),_.fh(QX,fS))},mh=function(){var QX=
S().url;
if(QX&&(QX=_.pZ(QX),QX!==null)){if(S().source&&S().source==="MINI_APP_SOURCE_GAMESNACKS")QX=_.Mg(QX,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.f("enable_origin_query_parameter_bugfix")){var C1=_.hk(_.ca8(QX.toString()));C1=new URLSearchParams(C1||"");C1.set("origin",window.location.origin);C1=C1.toString();QX=_.S2(QX).toString();QX=_.YU(W5s.exec(QX)[0]+(C1.trim()?"#"+C1:""))}return QX}},ZD=function(){var QX={};
QX=_.Si("yt-mini-app-container-view-model__loading-screen",(QX["yt-mini-app-container-view-model__loading-screen--fade-out"]=$_,QX));var C1=function(){return $_()?1:qL()};
return _.R("div",{class:QX},_.R(_.rv,{data:function(){return S().splashScreen}},{miniAppSplashScreenViewModel:function(fS){return _.R(kod,{data:fS.data,
loadingProgress:C1})}}))},JA=function(){K=[];
K.push(_.b2(window,"visibilitychange",function(){F||W&&hm()||(document.visibilityState==="visible"?Tc():OE())}));
K.push(_.b2(window,"pagehide",function(){tj()}));
K.push(_.b2(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Cu.value.dispatchEvent(new Event("tap"))},0)}));
K.push(_.b2(Cu.value,"pointerdown",function(){Tom(J,!1)},!0));
K.push(_.b2(Cu.value,"pause",function(){F=!0;OE()}));
K.push(_.b2(Cu.value,"play",function(){F=!1;Tc()}));
K.push(_.b2(Cu.value,"exit",function(){tj()}));
var QX=navigator.keyboard,C1=QX&&QX.lock;K.push(_.b2(window,lSm,function(){zc(ZAi());ZAi()?(S().hasPlayNextShelf&&L6("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),zZ("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),C1&&QX.lock(["Escape"])):(S().hasPlayNextShelf&&zZ("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),L6("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),C1&&QX.unlock())}));
S().showMultiplayer3pConsentDialogCommand&&K.push(_.b2(window,"yt-playables-ack-3p-data-usage",function(){m_m(C)}));
S().confirmExitMiniAppCommandEdu&&K.push(_.b2(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.PU("exit-mini-app-seen-state","true",2592E6)}))},pS=function(){K.forEach(function(QX){qG(QX)});
window.removeEventListener("beforeunload",yX,{capture:!0})},qg=function(QX){QX&&Z4a(QX,S().isEmbeddedInWebview||!1)},zZ=function(QX,C1){QX=_.n(Cu.value.getElementsByClassName(QX));
for(var fS=QX.next();!fS.done;fS=QX.next())fS.value.classList.add(C1)},L6=function(QX,C1){QX=_.n(Cu.value.getElementsByClassName(QX));
for(var fS=QX.next();!fS.done;fS=QX.next())fS.value.classList.remove(C1)};
return function(){var QX={};QX=_.Si("yt-mini-app-container-view-model",(QX["yt-mini-app-container-view-model--desktop"]=!0,QX["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return S().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},QX["yt-mini-app-container-view-model--ios-web-view"]=jkE(),QX["yt-mini-app-container-view-model--no-top-bar"]=function(){return!S().topBar},QX["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return S().hasPlayNextShelf},QX["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return S().hasPlayNextShelf},QX["yt-mini-app-container-view-model--show-peek-below"]=function(){return!ML()&&S().hasPlayNextShelf},QX));
var C1={};C1=_.Si("yt-mini-app-container-view-model__content",(C1["yt-mini-app-container-view-model__content--desktop-content"]=!0,C1["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return S().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},C1["yt-mini-app-container-view-model--desktop-play-page"]=function(){return S().hasPlayNextShelf},C1));
return _.R("mini-app-container-view-model",{el:Cu},_.R("div",{class:QX},_.R(_.gw,{cond:function(){return S().topBar&&!ML()},
then:function(){return _.R(_.rv,{data:function(){return S().topBar}},{miniAppTopBarViewModel:function(fS){return _.R(YNt,{data:fS.data,
isAudioEnabled:w1,onAudioToggled:function(KS){XO(KS)},
score:G3,formattedScore:Wd,onScoreChanged:function(KS){b=KS},
isEmbeddedInWebview:hm,isSaved:Ku,onSaveToggled:function(KS){uo(KS)},
isExitMiniAppSeen:Yc,isDesktopPlayPage:Iu})}})}}),_.R("div",{class:C1},_.R(_.gw,{cond:n8,
then:function(){return xc()}}),_.R(_.gw,{cond:function(){return!S().isEmbeddedInWebview},
then:function(){return ZD()}}))))}()},"Dd");
n7h.idomCompat=!0;_.AL(n7h,"mini-app-container-view-model",{props:{data:_.wm}});var jZJ=_.AI(function(Y){var S=Y.data;return _.R("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.R("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.mR(function(){var P=S().onTap;P&&_.ae(P)})},_.R(_.gw,{cond:function(){return S().icon},
then:function(P){return _.R(_.BX,{icon:function(){return P().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.R("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return S().title})))},"Ed");
jZJ.idomCompat=!0;var Jbf=_.AI(function(Y){var S=_.Ms(),P=_.n(_.qb(void 0,void 0,"kFCJ0c")),u=P.next().value,W=P.next().value;P=_.n(_.qb(void 0,void 0,"PIPgWd"));var m=P.next().value,J=P.next().value;P=_.n(_.qb(void 0,void 0,"rV66ob"));var c=P.next().value,C=P.next().value,x=function(){var F=u();return F!==void 0?Math.abs(F):void 0},b=function(){var F=x();
return F===void 0||F<=3},T=function(){var F=x();
var U=m(),V=c();F=F!==void 0&&U!==void 0&&V!==void 0?U-V-F:void 0;return F===void 0||F<=3},K=function(F){S.value&&S.value.scrollBy({top:0,
left:(_.X3("HTML_DIR")==="rtl"?-1:1)*F*S.value.clientWidth,behavior:"smooth"})},G=function(){var F;
W((F=S.value)==null?void 0:F.scrollLeft);var U;J((U=S.value)==null?void 0:U.scrollWidth);var V;C((V=S.value)==null?void 0:V.clientWidth)},v=function(){K(-.5)},a=function(){K(.5)};
P=_.mR(function(){G()});
_.Ij(function(){G();if(S.value){var F=new ResizeObserver(G);F.observe(S.value);_.aI(function(){F.disconnect()})}});
var w={};return _.R("yt-sponsorships-scrollable-shelf",{class:_.Si("ytdSponsorshipsScrollableShelfHost",Y.className)},_.R("div",{class:_.Si("ytdSponsorshipsScrollableShelfContent",(w.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return!b()&&!T()},w.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return!b()&&T()},w.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return b()&&!T()},w)),
el:S,"on:scroll":P},Y.children),_.R(_.gw,{cond:function(){return!b()},
then:function(){return _.R(_.rv,{data:function(){return Y.data().previousButton}},{buttonViewModel:function(F){return _.R(_.aq,{data:F.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:v})}})}}),_.R(_.gw,{cond:function(){return!T()},
then:function(){return _.R(_.rv,{data:function(){return Y.data().nextButton}},{buttonViewModel:function(F){return _.R(_.aq,{data:F.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:a})}})}}))},"Fd");
Jbf.idomCompat=!0;var cbt=_.AI(function(Y){var S=Y.data;Y={};return _.R("yt-sponsorships-hub",{class:_.Si("ytdSponsorshipsHubHost",(Y.ytdSponsorshipsHubHostIndented=function(){return S().indented},Y))},_.R("div",{class:"ytdSponsorshipsHubHeader"},_.R("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.R("div",{class:"ytdSponsorshipsHubAvatar"},_.R(_.rv,{data:function(){return S().avatar}},{avatarViewModel:_.qr})),_.R(_.gw,{cond:function(){return S().badgeImage},
then:function(P){return _.R("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.R("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.R("div",{class:"ytdSponsorshipsHubBadge"},_.R(_.ZZ,{data:P,targetWidth:24,targetHeight:24,alt:""}))))}})),_.R("div",{class:"ytdSponsorshipsHubDetails"},_.R("div",{class:"ytdSponsorshipsHubTierName"},function(){return S().tierName}),_.R("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return S().membershipType}),_.R("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return S().membershipDurationOrExpiry})),_.R("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.R(_.rv,{data:function(){return S().manageButton}},{buttonViewModel:function(P){return _.R(_.aq,{data:P.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.R(_.rv,{data:function(){return S().actionMenuButton}},{buttonViewModel:function(P){return _.R(_.aq,{data:P.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.R("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return S().perksTitle}),_.R(Jbf,{data:function(){return{previousButton:S().previousPerkButton,
nextButton:S().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.R("div",{class:"ytdSponsorshipsHubPerkCards"},_.R(_.rv,{data:function(){return S().perkCards}},{sponsorshipsHubPerkCardViewModel:jZJ}),_.R(_.gw,{cond:function(){return S().viewAllPerksButton},
then:function(P){return _.R(BJu,{data:P})}}))))},"Gd");
cbt.idomCompat=!0;var BJu=_.AI(function(Y){var S=Y.data;return _.R("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.R(_.rv,{data:function(){return S().button}},{buttonViewModel:_.aq}),_.R("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.R("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return S().title}),_.R("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return S().subtitle})))},"Hd");
BJu.idomCompat=!0;_.AL(cbt,"yt-sponsorships-hub",{props:{data:_.wm}});_.C_s=_.AI(function(Y){var S=Y.data;return _.R("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.Jg({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var P;return((P=S().badgeCutoutRadius)!=null?P:14)+"px"}})},_.R("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.R(_.rv,{data:function(){return S().startAvatar}},{avatarViewModel:_.qr}),_.R(_.rv,{data:function(){return S().endAvatar}},{avatarViewModel:_.qr})),_.R(_.rv,{data:function(){return S().badge}},{contentPreviewImageViewModel:function(P){return _.R("div",
{class:"ytDualAvatarViewModelBadge"},_.R(_.tB,{data:P.data}))}}))},"Id");
_.C_s.idomCompat=!0;var RIU=_.AI(function(Y){var S=Y.data;var P,u=!((P=_.E().resolve(_.PQ(_.F5)))==null||!P());Y=_.fJ(function(){var x,b,T=u?(x=S().header)==null?void 0:x.backgroundColorDarkMode:(b=S().header)==null?void 0:b.backgroundColorLightMode;if(T!==void 0)return _.hK(T)},void 0,"UX2G6c");
P=_.fJ(function(){var x,b;return u?(x=S().header)==null?void 0:x.backgroundImagePart1Dark:(b=S().header)==null?void 0:b.backgroundImagePart1Light},void 0,"GPAi1d");
var W=_.fJ(function(){var x,b;return u?(x=S().header)==null?void 0:x.backgroundImagePart2Dark:(b=S().header)==null?void 0:b.backgroundImagePart2Light},void 0,"nboJld"),m=_.fJ(function(){return _.X3("HTML_DIR")==="rtl"},void 0,"LGJceb"),J=_.Ms(),c=!1,C=function(){var x=J.value;
if(x&&!c){var b,T=(b=x.parentElement)==null?void 0:b.parentElement;if(T)for(x=x.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),b=0;b<x.length;++b){var K=x[b];if(K instanceof HTMLElement){T.scrollTo({top:K.offsetTop+K.clientHeight/2-T.clientHeight/2,behavior:"smooth"});c=!0;break}}}};
_.LE(function(){var x=J.value;if(x){var b=new ResizeObserver(C);b.observe(x);_.aI(function(){b.disconnect()})}});
return _.R("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost",el:J},_.R("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.R("div",{class:"ytdSponsorshipsPerksListHeader",style:_.Jg({"background-color":Y})},_.R("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.R(_.gw,{cond:P,then:function(x){var b={};return _.R("div",{class:_.Si((b.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=u,b.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!u,b.ytdSponsorshipsPerksListFlipped=
m,b))},_.R(_.ZZ,{data:x,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.R("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.R(_.gw,{cond:W,
then:function(x){var b={};return _.R("div",{class:_.Si((b.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=u,b.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!u,b.ytdSponsorshipsPerksListFlipped=m,b))},_.R(_.ZZ,{data:x,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.R("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.R(_.rv,{data:function(){var x;
return(x=S().header)==null?void 0:x.dualAvatar}},{dualAvatarViewModel:_.C_s})))),_.R("div",{class:"ytdSponsorshipsPerksListBody"},_.R("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return S().title}),_.R(_.gw,{cond:function(){return S().perks},
then:function(x){return _.R(_.$Z,{each:x},function(b,T){var K={};return _.R("div",{class:_.Si("ytdSponsorshipsPerksListPerkContainer",(K.ytdSponsorshipsPerksListSelectedPerk=function(){var G=T(),v=S().selectedPerkIndex;return G===v},K))},_.R(_.gw,{cond:function(){return T()>0},
then:function(){return _.R("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.R("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.R(_.gw,{cond:function(){return b.icon},
then:function(G){return _.R(_.BX,{icon:function(){return G().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.R("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.R("div",{class:"ytdSponsorshipsPerksListPerkTitle"},b.title),_.R("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.R(_.qw,{text:b.description})),_.R(_.gw,{cond:function(){return b.instructions},
then:function(){var G,v;return _.R("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.R("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(G=b.instructions)==null?void 0:G.title),_.R("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.R(_.qw,{text:(v=b.instructions)==null?void 0:v.text})))}}))),_.R(_.gw,{cond:function(){return b.emoji},
then:function(G){return _.R("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.R(_.$Z,{each:function(){return G()}},function(v){return _.R(_.ZZ,{data:v,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.R(qNt,{data:b}))})}})))},"Jd");
RIU.idomCompat=!0;var qNt=_.AI(function(Y){var S=Y.data;var P=function(J,c){return J===c},u=function(){var J=S();
J=_.g(J==null?void 0:J.badgesShelf,VTs);return J!==void 0&&J!==null?J:{previousButton:{},nextButton:{}}},W=_.yZ(),m=function(){var J=W.value;
if(J){var c=J.parentElement;if(c){J=J.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var C=0;C<J.length;++C){var x=J[C];if(x instanceof HTMLElement){c.scrollTo({left:x.offsetLeft+x.clientWidth/2-c.clientWidth/2,behavior:"instant"});break}}}}};
_.LE(function(){var J=W.value;if(J){var c=new ResizeObserver(m);c.observe(J);_.aI(function(){c.disconnect()})}});
return _.R("div",null,_.R(_.gw,{cond:function(){return S().badges},
then:function(J){return _.R(Jbf,{data:u},_.R("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:W},_.R(_.$Z,{each:function(){return J()}},function(c,C){var x={},b={},T={};
return _.R("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.R(_.gw,{cond:function(){return C()>0},
then:function(){return _.R("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.R("div",{class:_.Si("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(x.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return P(C(),S().currentBadgeIndex)},x.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!P(C(),S().currentBadgeIndex)},x))},_.R("div",{class:_.Si("ytdSponsorshipsPerksListLoyaltyBadge",(b.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return P(C(),
S().currentBadgeIndex)},b.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!P(C(),S().currentBadgeIndex)},b))},_.R(_.gw,{cond:function(){return c.image},
then:function(K){var G={};return _.R("div",{class:_.Si((G.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return P(C(),S().currentBadgeIndex)},G.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!P(C(),S().currentBadgeIndex)},G))},_.R(_.ZZ,{data:K,
alt:""}))}})),_.R("div",{class:_.Si("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(T.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return P(C(),S().currentBadgeIndex)},T))},c.title)))})))}}))},"Kd");
qNt.idomCompat=!0;_.AL(RIU,"yt-sponsorships-perks-list",{props:{data:_.wm}});_.AL(_.AI(function(Y){return _.R("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.R(_.gw,{cond:function(){return Y.data().image},
then:function(S){return _.R(_.ZZ,{className:"ytwFantasyEmptyStateViewModelImage",data:S,ariaHidden:!0,alt:""})}}),_.R(_.qw,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return Y.data().title}}),_.R(_.qw,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return Y.data().subtitle}}),_.R(_.rv,{data:function(){return Y.data().primaryButton}},{buttonViewModel:function(S){return _.R(_.aq,{data:S.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Ld"),"ytw-fantasy-empty-state-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;var P;Y=_.n(_.qb(!((P=_.u4("yt-mini-app-is-theater-mode-enabled"))==null||!P),void 0,"CUtq5"));var u=Y.next().value,W=Y.next().value,m;P=(m=_.E().resolve(_.PQ(tAs)))!=null?m:function(){return _.R("div",null)};
_.kG("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){W(!0);_.PU("yt-mini-app-is-theater-mode-enabled",!0)});
_.kG("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){W(!1);_.PU("yt-mini-app-is-theater-mode-enabled",!1)});
m={};Y={};var J={};return _.R("mini-app-play-page-renderer",{class:_.Si("miniAppPlayPageRendererHost",(m.miniAppPlayPageRendererHostDetailsView=function(){return!u()},m))},_.R("div",{class:_.Si("miniAppPlayPageRendererGameContainer",(Y.miniAppPlayPageRendererGameContainerDetailsView=function(){return!u()},Y))},_.R(_.rv,{data:function(){return S().containerViewModel}},{miniAppContainerViewModel:n7h}),_.R(_.gw,{cond:function(){return!u()&&S().description},
then:function(){return _.R("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.R("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return S().description}))}})),_.R("div",{class:_.Si("miniAppPlayPageRendererPlayNextContainer",(J.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!u()},J))},_.R(_.rv,{data:function(){return S().sectionList}},{sectionListRenderer:P})))},"Md"),"mini-app-play-page-renderer",{props:{data:_.wm}});var FL=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSearch=!1;Y.isConstrainedList=!1;Y.hasChipsBar=!1;Y.inReplyPanel=!1;Y.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};Y.monitorScroll=!0;Y.SCROLL_ANIMATION_DURATION_MS=300;Y.nextContinuation={continuationType:"sectionListContinuation"};return Y};
_.r(FL,_.Z);_.z=FL.prototype;
_.z.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(Y){switch(Y.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.f("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.f("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.z.created=function(){var Y=this;this.JSC$14728_scrollAnimation=new _.GK(function(S){Y.hostElement.scrollTop=S})};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.z.getItemsPath=function(){return"data.contents"};
_.z.replacePrimaryContent=function(Y){this.set("data.contents",Y)};
_.z.computeHasSortFilter=function(Y){return!!Y&&!!Y.sortFilterSubMenuRenderer};
_.z.computeShouldScrollInPanel=function(Y){var S;return!!(Y==null?0:(S=Y.scrollPaneStyle)==null?0:S.scrollable)};
_.z.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Vm(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.z.scrollToTop=function(){this.hostElement.scrollTop=0};
_.z.scrollToItemSection=function(Y){if(Y=this.getItemByIdentifier(Y))Y=this.getScrollPositionForItem(Y),this.hostElement.scrollTop!==Y&&this.JSC$14728_scrollAnimation.start(this.hostElement.scrollTop,Y,this.SCROLL_ANIMATION_DURATION_MS)};
_.z.getItemByIdentifier=function(Y){var S=this.contents.querySelectorAll("ytd-item-section-renderer");if(S&&S.length!==0){var P=Array.from(S).findIndex(function(u){return u.sectionIdentifier===Y});
return S[P===-1?0:P]}};
_.z.getScrollPositionForItem=function(Y){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===Y)return 0;Y=_.gh(Y).y+this.hostElement.scrollTop-_.gh(this.hostElement).y;return Math.min(Y,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.y6.Object.defineProperties(FL.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.targetId)==="browse-feedFEclips"}}});
FL.prototype.onScroll=FL.prototype.onScroll;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],FL.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.QG.YtLazyListBehavior),_.k("design:type",Object)],FL.prototype,"ytLazyListBehavior",void 0);_.Q([_.p(_.a3.YtNextContinuationBehavior),_.k("design:type",Object)],FL.prototype,"ytNextContinuationBehavior",void 0);
_.Q([_.p(_.udt),_.k("design:type",Object)],FL.prototype,"ytBooleanLogicBehavior",void 0);_.Q([_.p(_.I3),_.k("design:type",Object)],FL.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],FL.prototype,"data",void 0);_.Q([_.X({value:2}),_.k("design:type",Number)],FL.prototype,"initialCount",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],FL.prototype,"autoFill",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.k("design:type",Boolean)],FL.prototype,"hasSortFilter",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.k("design:type",Boolean)],FL.prototype,"hideBottomSeparator",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.k("design:type",Boolean)],FL.prototype,"shouldScrollInPanel",void 0);
_.Q([_.X(),_.k("design:type",Object)],FL.prototype,"isSearch",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],FL.prototype,"isConstrainedList",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],FL.prototype,"responsiveSizing",void 0);_.Q([_.X(),_.k("design:type",Object)],FL.prototype,"hasChipsBar",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],FL.prototype,"pageSubtype",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],FL.prototype,"engagementPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],FL.prototype,"liveChatEngagementPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],FL.prototype,"inReplyPanel",void 0);_.Q([_.nc("#action-button"),_.k("design:type",HTMLElement)],FL.prototype,"actionButton",void 0);_.Q([_.X(),_.k("design:type",Object)],FL.prototype,"scrollUpButtonData",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],FL.prototype,"engagementPanelDropdown",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],FL.prototype,"engagementPanelDialog",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],FL.prototype,"isClipList",null);_.Q([_.nc("#contents"),_.k("design:type",HTMLElement)],FL.prototype,"monitorScrollElement",void 0);_.Q([_.nc("#contents"),_.k("design:type",HTMLElement)],FL.prototype,"contents",void 0);
_.Q([_.WZ("scroll"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FL.prototype,"onScroll",null);FL=_.Q([_.t({is:"ytd-section-list-renderer",disableElementRegistration:!0})],FL);
var x_s=_.eD()(FL,"ytd-section-list-renderer",function(){if(oLs===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);oLs=Y}Y=oLs;return Y},{mode:1});var bOs;var TJ3;var Knu;var E7s;var sr=function(){return _.Z.apply(this,arguments)||this};
_.r(sr,_.Z);sr.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
sr.prototype.onLikeButtonClick=function(Y){Y.stopPropagation();Y.preventDefault()};
_.y6.Object.defineProperties(sr.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)!=null&&Y.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],sr.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],sr.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],sr.prototype,"ytRendererStamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],sr.prototype,"data",void 0);
_.Q([_.X({selectorArgs:["data.likeStatusEntityKey"],selector:hg}),_.k("design:type",Object)],sr.prototype,"likeStatusEntity",void 0);_.Q([_.d("data","likeStatusEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],sr.prototype,"likeButtonRenderer",null);sr=_.Q([_.t({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],sr);
_.A(sr,"ytd-slim-metadata-toggle-button-renderer",function(){if(E7s!==void 0)return E7s;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
return E7s=Y},{mode:1});var dz=function(){var Y=_.Z.apply(this,arguments)||this;Y.minimizePipBreakages=_.f("web_pip_minimize_breakages");Y.showEqualizer=_.f("web_enable_playlist_video_lockup_equalizer");Y.watchColorUpdate=_.f("kevlar_watch_color_update");Y.actionMap={};return Y};
_.r(dz,_.Z);_.z=dz.prototype;_.z.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"}}}};
_.z.computeEditableClass=function(Y){return Y&&Y.menu?"editable":""};
_.z.computeSelected=function(Y){return!(Y==null||!Y.selected)};
_.z.computeUseColorPalette=function(Y){return!!((Y==null?0:Y.lightColorPalette)&&(Y==null?0:Y.darkColorPalette))};
_.z.computeLargerPlaylistThumbs=function(Y,S){return _.f("web_enable_playlist_bigger_thumbnails")&&!S};
_.z.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.z.onYtServiceRequestSent=function(Y,S){S.endpoint&&this.isHideEnclosingAction(S.endpoint)&&!this.selected&&JBu(_.pd(),this.data.videoId)};
_.z.isHideEnclosingAction=function(Y){var S=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",Y);Y=this.get("likeEndpoint.status",Y)==="INDIFFERENT";return S||Y};
_.z.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.z.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.y6.Object.defineProperties(dz.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var Y;return!!(this.withinMiniplayer&&((Y=this.data)==null?0:Y.actionButtons))}}});
dz.prototype.onYtServiceRequestSent=dz.prototype.onYtServiceRequestSent;dz.prototype.canReorderChanged=dz.prototype.canReorderChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],dz.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.Fc),_.k("design:type",Object)],dz.prototype,"ytdLockupBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],dz.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],dz.prototype,"withinMiniplayer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],dz.prototype,"minimizePipBreakages",void 0);_.Q([_.X({computed:"computeSelected(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],dz.prototype,"selected",void 0);
_.Q([_.X({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],dz.prototype,"useColorPalette",void 0);_.Q([_.X({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.k("design:type",Boolean)],dz.prototype,"largerPlaylistThumbs",void 0);_.Q([_.X(),_.k("design:type",Object)],dz.prototype,"showEqualizer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],dz.prototype,"canReorder",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],dz.prototype,"touchPersistentDragHandle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],dz.prototype,"handleIsHovered",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],dz.prototype,"watchColorUpdate",void 0);_.Q([_.d("largerPlaylistThumbs"),_.k("design:type",Number),_.k("design:paramtypes",[])],dz.prototype,"thumbnailWidth",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],dz.prototype,"showActionButtons",null);_.Q([_.cZ("canReorder"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dz.prototype,"canReorderChanged",null);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],dz.prototype,"onYtServiceRequestSent",null);
dz=_.Q([_.t({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],dz);
_.A(dz,"ytd-playlist-panel-video-renderer",function(){if(Knu!==void 0)return Knu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="yt-icons:drag_handle" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Knu=Y},{mode:2});var lw=function(){return _.Z.apply(this,arguments)||this};
_.r(lw,_.Z);lw.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],lw.prototype,"data",void 0);lw=_.Q([_.t({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],lw);
_.A(lw,"ytd-playlist-panel-supported-items",function(){if(TJ3!==void 0)return TJ3;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return TJ3=
Y},{mode:1});Xq_=!0;YPU("\\P{N}");var ugh;var fcu=_.Td("END_OF_PLAYLIST",void 0,"End of playlist"),g7f=_.Td("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),XL=function(){var Y=_.Z.apply(this,arguments)||this;Y.minimizePipBreakages=_.f("web_pip_minimize_breakages");Y.updatedCoursePanel=_.f("move_three_dot_menu_to_playlist_panel_header_for_courses");Y.reducedPlaylistHeight=_.f("web_playlist_mini_playlist_height");Y.hideHeaderText=!1;Y.useColorPalette=!1;Y.collapsed=!1;Y.collapsedPreServerOverride="not_tracked";
Y.isHovered=!1;Y.modernPanels=_.f("kevlar_watch_modern_panels");Y.expandLabel=_.Td("MINIPLAYER_EXPAND_LABEL");Y.collapseLabel=_.Td("MINIPLAYER_COLLAPSE_LABEL");Y.isFloating=!1;Y.metaPanel=!1;Y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};Y.currentIndex=void 0;return Y};
_.r(XL,_.Z);_.z=XL.prototype;
_.z.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"}}}};
_.z.created=function(){this.scrollThrottle=new _.NE(this.onThrottledScroll,1E3,this)};
_.z.onMouseEnter=function(){this.isHovered=!0};
_.z.onMouseLeave=function(){this.isHovered=!1};
_.z.computeOverflowMenuData=function(Y){return Y&&Y.menu?Y.menu:null};
_.z.computeCollapsible=function(Y){return!Y};
_.z.computeHasPlaylistButtons=function(Y){return!(!Y||!Y.playlistButtons)};
_.z.computeHasSeparateSaveButton=function(Y){return!(!Y||!Y.saveButton)};
_.z.computeHasToolbarButton=function(Y,S){return!(!Y||!(S||Y.saveButton||Y.menu))};
_.z.computePlaylistType=function(Y){if(Y&&Y.playlistId)return Y.playlistId.substring(0,4)};
_.z.computeCanReorder=function(Y){return Y?Y.playlistId&&Y.playlistId.startsWith("TLPQ")?!0:!!Y.isEditable&&!Y.isInfinite:!1};
_.z.attached=function(){var Y=this;try{_.E().resolve(_.D3).setPlaylistComponent(this.hostElement)}catch(S){if(_.f("kevlar_park_on_playlist_token_killswitch"))throw S;_.aQ().parkOrScheduleJob(function(){_.E().resolve(_.D3).setPlaylistComponent(Y.hostElement)},2,"ci")}_.uj(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.z.detached=function(){_.zd(this.hostElement)};
_.z.computeTrailingIcon=function(Y,S,P){return P?S?"yt-icons:collapse":"yt-icons:close":S?"yt-icons:expand":_.f("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.z.computeIndexMessage=function(Y,S){return m69(Y+1)+" / "+m69(S)};
_.z.onRenderStamperFinished=function(){if(this.scrollForStampDom){var Y=!0;this.isHovered&&(Y=!1);if(this.collapsed||this.hidden)Y=!1;Y&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.z.collapseChanged=function(){var Y=this;this.collapsed||(_.$I(this.ytTaskEmitterBehavior.getTaskManager(),function(){Y.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.z.hiddenChanged=function(){var Y=this;this.hidden||_.$I(this.ytTaskEmitterBehavior.getTaskManager(),function(){Y.scrollToCurrentVideo()})};
_.z.setupReordering=function(){var Y=_.I(this.hostElement).querySelector("#items");FLS?_.f$d(this.ytReorderableBehavior,Y,Y,"playlist-drag-handle"):_.f$d(this.ytReorderableBehavior,Y,Y)};
_.z.scrollToCurrentVideo=function(){var Y=this;_.wc.addJob(function(){var S=_.I(Y.hostElement).querySelector("#items");if(S){S.style.setProperty("padding-bottom","");var P=_.I(Y.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(P){S=P.parentElement||_.Dl(document);var u=S||_.Dl(document);var W=_.gh(P),m=_.gh(u),J=_.zLt(u);if(u==_.Dl(document)){var c=W.x-u.scrollLeft;W=W.y-u.scrollTop}else c=W.x-m.x-J.left,W=W.y-m.y-J.top;P=SUs(P);m=u.clientHeight-
P.height;J=u.scrollLeft;var C=u.scrollTop;J+=c-(u.clientWidth-P.width)/2;u=new _.TH(J,C+(W-m/2));S.scrollLeft=u.x;S.scrollTop=u.y}}},8)};
_.z.dataChanged=function(){var Y=this;_.Ejt(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.ky(this,function(){_.hp(Y.ytTaskEmitterBehavior.getTaskManager(),function(){Y.ytRendererBehavior.markDirty();Y.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.z.updateNowPlayingOverlay=function(){_.f("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.z.onPlaylistLockupNowPlaying=function(Y,S){S&&(this.activeNowPlayingRenderer=S);this.updateNowPlayingOverlay()};
_.z.onScroll=function(){this.scrollThrottle.fire()};
_.z.onThrottledScroll=function(){var Y=this;_.hp(this.ytTaskEmitterBehavior.getTaskManager(),function(){Y.ytRendererBehavior.markDirty()})};
_.z.onToggleExpanded=function(Y){this.collapsible&&_.oK(Y).tagName!=="A"&&!_.iN(_.iM(Y),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.z.setCollapsed=function(Y){this.collapsible&&(this.collapsed=Y,_.jR(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.z.handleCollapsedFromData=function(Y){if(Y){var S=Y.playlistPanelCollapseState;S==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||S==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),S=S==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==S&&this.setCollapsed(S)):this.currentPlaylistId!==Y.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(S=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==S&&this.setCollapsed(S),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=Y.playlistId}};
_.z.handleDrop=function(Y){var S=Y.currDragItem;Y=S.data.playlistSetVideoId;var P=_.oh(S.parentNode.childNodes,S),u=void 0;P>0&&(u=S.parentNode.childNodes[P-1].data.playlistSetVideoId);S=_.pd();if(S.responsePlaylistData&&S.responsePlaylistData.contents){var W=UnE(Y,S.responsePlaylistData);S.responsePlaylistData=(0,_.RY.unsafeClone)(S.responsePlaylistData);GJU(S.responsePlaylistData.contents,W,P);S.queueProxy?i$h(S.queueProxy,W,P,Y,u):S.playlistProxy&&i$h(S.playlistProxy,W,P,Y,u);_.Fo(S,_.sG(S,S.response?
S.response.autoplayRenderer:void 0))}};
_.z.handleDarkModeChange=function(Y){Y!==this.isDarkTheme&&(this.isDarkTheme=Y)};
_.z.colorPaletteChanged=function(){var Y,S=((Y=this.data)==null?void 0:Y.contents)||[],P;Y=_.n(S);for(S=Y.next();!S.done;S=Y.next()){S=S.value;var u=void 0;if((u=S.playlistPanelVideoRenderer)==null?0:u.selected){Y=S.playlistPanelVideoRenderer;u=S=void 0;(P=this.isDarkTheme?(S=Y)==null?void 0:S.darkColorPalette:(u=Y)==null?void 0:u.lightColorPalette)&&_.fR(this.hostElement,P);break}}this.useColorPalette=!!P};
_.y6.Object.defineProperties(XL.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!((Y=this.data)==null||!Y.playlistId)&&!((S=this.data)==null||!S.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var Y=_.E().resolve(_.PQ(_.D3)),S;if(((S=this.data)==null?0:S.contents)&&(Y==null?0:Y.hasAutoplayData())){var P;if(((P=this.playlistLoopStateEntity)==null?void 0:P.state)==="PLAYLIST_LOOP_STATE_ONE"){if(Y=this.data.currentIndex,Y!==void 0){var u,W;var m=(u=this.data.contents[Y])==null?void 0:(W=u.playlistPanelVideoRenderer)==null?void 0:W.title}}else{var J,c=(J=_.g(Y.getAutoplayEndpoint(),_.yx))==null?void 0:J.videoId,C,x;m=(C=this.data.contents.find(function(b){var T;
return((T=b.playlistPanelVideoRenderer)==null?void 0:T.videoId)===c}))==null?void 0:(x=C.playlistPanelVideoRenderer)==null?void 0:x.title}return m}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)!=null&&Y.nextVideoLabel?this.nextVideoTitle?_.Ma(this.data.nextVideoLabel)+":":fcu:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var Y;if(((Y=this.data)==null?0:Y.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.kW(g7f);var S;return(S=this.data)==null?void 0:S.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u=(Y=this.data)==null?void 0:(S=Y.playlistButtons)==null?void 0:(P=S.menuRenderer)==null?void 0:P.topLevelButtons;if(u)for(Y=_.n(u),S=Y.next();!S.done;S=Y.next())if(S=S.value,S.playlistLoopButtonRenderer)return S.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var Y;return!!(this.collapsed&&((Y=this.data)==null?0:Y.nextVideoLabel))}}});
XL.prototype.colorPaletteChanged=XL.prototype.colorPaletteChanged;XL.prototype.onPlaylistLockupNowPlaying=XL.prototype.onPlaylistLockupNowPlaying;XL.prototype.updateNowPlayingOverlay=XL.prototype.updateNowPlayingOverlay;XL.prototype.dataChanged=XL.prototype.dataChanged;XL.prototype.hiddenChanged=XL.prototype.hiddenChanged;XL.prototype.collapseChanged=XL.prototype.collapseChanged;XL.prototype.onRenderStamperFinished=XL.prototype.onRenderStamperFinished;XL.prototype.onMouseLeave=XL.prototype.onMouseLeave;
XL.prototype.onMouseEnter=XL.prototype.onMouseEnter;_.Q([_.p(_.G8),_.k("design:type",Object)],XL.prototype,"ironResizableBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],XL.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(TYm.YtPlaylistPanelBehavior),_.k("design:type",Object)],XL.prototype,"ytPlaylistPanelBehavior",void 0);
_.Q([_.p(_.l4.YtTaskEmitterBehavior),_.k("design:type",Object)],XL.prototype,"ytTaskEmitterBehavior",void 0);_.Q([_.p(_.gjs),_.k("design:type",Object)],XL.prototype,"ytReorderableBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],XL.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],XL.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],XL.prototype,"actionHandlerBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],XL.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],XL.prototype,"autoplayData",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],XL.prototype,"withinMiniplayer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XL.prototype,"minimizePipBreakages",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XL.prototype,"updatedCoursePanel",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XL.prototype,"reducedPlaylistHeight",void 0);_.Q([_.X({computed:"setMenuData_(data)"}),_.k("design:type",Object)],XL.prototype,"menuRendererData",void 0);_.Q([_.X({computed:"computeOverflowMenuData(data)"}),_.k("design:type",Object)],XL.prototype,"overflowMenuDataTopRow",void 0);_.Q([_.X({computed:"computeOverflowMenuData(data)"}),_.k("design:type",Object)],XL.prototype,"overflowMenuData",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XL.prototype,"hideHeaderText",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XL.prototype,"useColorPalette",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.k("design:type",Boolean)],XL.prototype,"collapsible",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XL.prototype,"collapsed",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],XL.prototype,"hidden",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.k("design:type",Boolean)],XL.prototype,"hasPlaylistButtons",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.k("design:type",Boolean)],XL.prototype,"hasSeparateSaveButton",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.k("design:type",Boolean)],XL.prototype,"hasToolbar",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.k("design:type",String)],XL.prototype,"playlistType",void 0);_.Q([_.X(),_.k("design:type",Object)],XL.prototype,"isHovered",void 0);_.Q([_.X({selectorArgs:["playlistLoopStateEntityKey"],selector:_.wCu}),_.k("design:type",Object)],XL.prototype,"playlistLoopStateEntity",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XL.prototype,"modernPanels",void 0);_.Q([_.X({value:56}),_.k("design:type",Number)],XL.prototype,"scrollMargin",void 0);_.Q([_.X({computed:"computeCanReorder(data)"}),_.k("design:type",Boolean)],XL.prototype,"canReorder",void 0);_.Q([_.X(),_.k("design:type",Object)],XL.prototype,"expandLabel",void 0);_.Q([_.X(),_.k("design:type",Object)],XL.prototype,"collapseLabel",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XL.prototype,"isFloating",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XL.prototype,"metaPanel",void 0);_.Q([_.X({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.k("design:type",String)],XL.prototype,"trailingIcon",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],XL.prototype,"isDarkTheme",void 0);
_.Q([_.X({selector:_.pA}),_.k("design:type",Boolean)],XL.prototype,"miniplayerIsActive",void 0);_.Q([_.X({selector:function(Y){return Y.watch.playerState}}),
_.k("design:type",Number)],XL.prototype,"playerState",void 0);_.Q([_.X(),_.k("design:type",Object)],XL.prototype,"activeNowPlayingRenderer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XL.prototype,"moveThreeDotMenuToTopRow",null);_.Q([_.d("data","autoplayData","playlistLoopStateEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],XL.prototype,"nextVideoTitle",null);
_.Q([_.d("data","nextVideoTitle"),_.k("design:type",String),_.k("design:paramtypes",[])],XL.prototype,"nextVideoLabel",null);_.Q([_.d("collapsed"),_.k("design:type",String),_.k("design:paramtypes",[])],XL.prototype,"buttonAriaLabel",null);_.Q([_.d("data","playlistId","longBylineText"),_.k("design:type",Object),_.k("design:paramtypes",[])],XL.prototype,"mixLongByLine",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],XL.prototype,"playlistLoopStateEntityKey",null);
_.Q([_.WZ("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XL.prototype,"onMouseEnter",null);_.Q([_.WZ("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XL.prototype,"onMouseLeave",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data","collapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XL.prototype,"showNextVideoHeader",null);
_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XL.prototype,"onRenderStamperFinished",null);_.Q([_.zY("collapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XL.prototype,"collapseChanged",null);_.Q([_.zY("hidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XL.prototype,"hiddenChanged",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XL.prototype,"dataChanged",null);_.Q([_.zY("playerState","miniplayerIsActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XL.prototype,"updateNowPlayingOverlay",null);_.Q([_.WZ("yt-playlist-lockup-now-playing-active"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],XL.prototype,"onPlaylistLockupNowPlaying",null);
_.Q([_.zY("data","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XL.prototype,"colorPaletteChanged",null);XL=_.Q([_.t({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],XL);
_.$_U=_.eD()(XL,"ytd-playlist-panel-renderer",function(){if(bOs===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);bOs=Y}Y=bOs;return Y},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var rbL;var Z5=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("web_button_rework");return Y};
_.r(Z5,_.Z);Z5.prototype.computeShouldButtonBeVertical=function(Y,S){return Y||S};
Z5.prototype.onYtServiceRequestSent=function(Y,S){(Y=_.g(S.endpoint,_.ka))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.qE("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:Y.status})):this.handleLikeEndpoint(Y))};
Z5.prototype.computelikeStatusEntityKey=function(Y){return Y==null?void 0:Y.likeStatusEntityKey};
Z5.prototype.handleLikeEndpoint=function(Y){Y.status==="LIKE"?this.JSC$14753_ytdDislikeToggleButtonRenderer.toggle(!1):Y.status==="DISLIKE"?this.JSC$14753_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14753_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14753_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.y6.Object.defineProperties(Z5.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var Y;return Bi1(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(Y=this.likeStatusEntity)==null?void 0:Y.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var Y;return Bi1(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(Y=this.likeStatusEntity)==null?void 0:Y.likeStatus)}}});
Z5.prototype.onYtServiceRequestSent=Z5.prototype.onYtServiceRequestSent;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Z5.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Z5.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Z5.prototype,"vertical",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],Z5.prototype,"textTransform",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Z5.prototype,"useShortsIcon",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Z5.prototype,"underIconLabel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Z5.prototype,"modern",void 0);_.Q([_.X({value:"left"}),_.k("design:type",String)],Z5.prototype,"buttonTooltipPosition",void 0);
_.Q([_.X(),_.k("design:type",Object)],Z5.prototype,"overrides",void 0);_.Q([_.nc("#like-button"),_.k("design:type",Object)],Z5.prototype,"JSC$14753_ytdLikeToggleButtonRenderer",void 0);_.Q([_.nc("#dislike-button"),_.k("design:type",Object)],Z5.prototype,"JSC$14753_ytdDislikeToggleButtonRenderer",void 0);_.Q([_.d("data","likeStatusEntity.likeStatus"),_.k("design:type",Object),_.k("design:paramtypes",[])],Z5.prototype,"likeButton",null);
_.Q([_.d("data","likeStatusEntity.likeStatus"),_.k("design:type",Object),_.k("design:paramtypes",[])],Z5.prototype,"dislikeButton",null);_.Q([_.X({computed:"computelikeStatusEntityKey(data)"}),_.k("design:type",String)],Z5.prototype,"likeStatusEntityKey",void 0);_.Q([_.X({selectorArgs:["likeStatusEntityKey"],selector:hg}),_.k("design:type",Object)],Z5.prototype,"likeStatusEntity",void 0);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],Z5.prototype,"onYtServiceRequestSent",null);Z5=_.Q([_.t({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Z5);
var G7S=_.eD()(Z5,"ytd-like-button-renderer",function(){if(rbL===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);rbL=Y}Y=rbL;return Y},{mode:1});_.hIf={};
_.hIf.YtConditionalRendererBehavior=[_.e.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(Y,S){var P=this,u,W;return _.B(function(m){switch(m.nextAddress){case 1:if(!S)return P.hidden=!0,P.showSpinner=!1,m.return();if((u=Y)==null?0:(W=u.visibilityCondition)==null?0:W.mode)switch(Y.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return m.jumpTo(5);default:return m.jumpTo(6)}P.showSpinner=
!1;P.hidden=!0;return _.q(m,P.shouldShow_(Y),4);case 4:P.hidden=!m.yieldResult;m.jumpTo(0);break;case 5:return _.q(m,P.shouldShow_(Y),8);case 8:P.showSpinner=m.yieldResult;P.hidden=!1;m.jumpTo(0);break;case 6:return P.showSpinner=!1,_.q(m,P.shouldShow_(Y),9);case 9:P.hidden=!m.yieldResult,_.Yt(m)}})},
shouldShow_:function(Y){return Y&&Y.supportedDatas&&Y.supportedDatas.rendererVisibilityConditionData&&Y.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(Y.supportedDatas.rendererVisibilityConditionData.showIf):Y&&Y.visibilityCondition&&Y.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(Y.visibilityCondition.showIf):Y&&Y.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(Y.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(Y){switch(Y){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(Y){switch(Y){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var Y=_.nb(this.hostElement,"yt-get-mdx-status");return Y.length==1&&Y[0].connected},
isLocationPermissionGranted_:function(){var Y;return _.B(function(S){return S.nextAddress==1?navigator.permissions?_.q(S,navigator.permissions.query({name:"geolocation"}),3):S.jumpTo(2):S.nextAddress!=2?(Y=S.yieldResult,S.return(Promise.resolve(Y.state==="granted"))):S.return(Promise.resolve(!1))})}}];var v7S=function(Y,S){S=S===void 0?{}:S;return function(P){var u=document.createElement(Y),W;var m=(W=u.polymerController)!=null?W:u;USE(u,m,P,S);return u}}("yt-icon");var D_6=function(Y){var S=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];LM9();_.HQ("ytglobal.ytUtilActivityCallback_",function(){_.jR(Y,"yt-user-activity")});
new Su(function(){return S.JSC$14765_onMouseMove});
document.addEventListener("scroll",function(){return S.onScroll});
window.addEventListener("resize",function(){return S.onResize})},Icm=function(Y,S,P){S in Y.eventJobIds||(P=_.vs().addLowPriorityJob(function(){_.PK();
delete Y.eventJobIds[S]},P),Y.eventJobIds[S]=P)};
D_6.prototype.onScroll=function(Y){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):Y.target===document&&Icm(this,"scroll",200)};
D_6.prototype.onResize=function(){Icm(this,"resize",200)};
D_6.prototype.JSC$14765_onMouseMove=function(){Icm(this,"mousemove",100)};
_.bKt=function(Y){Y.scrollEventsToIgnore+=1;Y.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){Y.scrollEventsToIgnore--},500))};var acs=function(Y){this.element=Y;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
acs.prototype.showFeedbackDialog=function(Y,S,P,u){var W=LnL();if(!W)return!1;var m=$6E();m.productId=W;S&&(m.flow="submit",m.report={description:S});P&&(LnL()==="59"?m.callback=_.oj(function(){_.L_("userFeedbackEvent",{});P()}):m.callback=_.oj(P));
m.bucket=u||_.X3("GOOGLE_FEEDBACK_BUCKET","Other");w5h(m);Y=p56(this,"GFEEDBACK",Y);try{_.CWm(m,Y)}catch(J){return _.ik(J),!1}return!0};
acs.prototype.showHelpDialog=function(Y,S,P){var u=this,W=LnL();if(!W)return!1;var m={helpCenterPath:"/youtube",productData:p56(this,"GUIDED_HELP",P)};w5h(m);var J=$6E();J.context=Y||m.productData.context||"default";J.defaultHelpArticleId=S;J.enableSendFeedback=!0;(_.tA("gapi.load")||function(c,C){return C()})("client",function(){try{var c=PV6(W,m);
if(_.f("web_always_load_chat_support")&&!u.chatSupportLoaded)try{c.JSC$7847_loadChatSupport(J),u.chatSupportLoaded=!0}catch(C){}c.startHelp(J)}catch(C){_.ik(C)}})};
var LnL=function(){var Y=_.X3("GOOGLE_FEEDBACK_PRODUCT_ID");Y||_.ik(Error("ei"));return Y},w5h=function(Y){Y&&(Y.locale=_.f("kevlar_help_use_locale")?_.X3("INNERTUBE_CONTEXT_HL","en"):_.X3("HTML_LANG","en"))},p56=function(Y,S,P){var u=Y.productData;
delete u.origin;u.device=_.Rh();var W;a:{if(W=document.createElement("canvas")){var m=W.getContext("experimental-webgl",{stencil:!0});if(m){var J=m.getExtension("WEBGL_debug_renderer_info");if(J){W=m.getParameter(J.UNMASKED_RENDERER_WEBGL);break a}}if(m=W.getContext("webgl")){W=m.getParameter(m.RENDERER);break a}}W=null}u.gpu=W;u.isSDC=!!_.X3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(W=_.X3("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.RY.extend(u,W);_.fha(S,u);_.gzh(u);(Y=_.jR(Y.element,"yt-get-autonav-pause-debug-state"))&&
Y.length&&(u.autonav_pause_state=Y[0]);Y=_.Pk();u.browser_resolution=Y.width+"\u00d7"+Y.height+"@"+(window.devicePixelRatio||1)+"x";P&&_.RY.extend(u,P);return u};
acs.prototype.resetProductData=function(){this.productData={}};var Fnt=function(Y){this.feedbackManager=new acs(Y)};
Fnt.prototype.showFeedbackDialog=function(Y,S,P,u){return this.feedbackManager.showFeedbackDialog(Y,S,P,u)};
Fnt.prototype.showHelpDialog=function(Y,S,P){return this.feedbackManager.showHelpDialog(Y,S,P)};var sZf=function(){this.baseUrl="";this.aTag=document.createElement("a")},Dj_=function(Y,S,P){P=P===void 0?{}:P;
P.pbj||(P.pbj=1);P=_.xGX(S,P);Y.baseUrl&&P&&!_.HR(P)[1]&&!_.eX(P)&&(S=Y.baseUrl,jK(S,"/")&&(S=S.slice(0,-1)),_.m$(P,"/")&&(P=P.slice(1)),P=S+"/"+P);xU(Y.aTag,j2(P||""));return Y.aTag.href};
sZf.prototype.fetchData=function(Y){return _.RQK(Y)};
sZf.prototype.postData=function(Y,S){var P={method:"POST"};if(S){for(var u=_.n(Object.keys(S)),W=u.next();!W.done;W=u.next()){W=W.value;var m=S[W];_.SS(m)&&(S[W]=JSON.stringify(m))}P.postParams=S}return _.RQK(Y,P)};
_.I5_=function(Y,S,P,u,W){Y=Dj_(Y,S,P);if(!Y)throw u=Error("fi"),Object.assign(u,{params:S}),u;return _.RQK(Y,W,u)};
sZf.prototype.requestDataForServiceEndpoint=function(Y,S){if(_.g(Y,_.$kJ))return this.fetchData("/getAccountSwitcherEndpoint");S=S||{};var P=_.g(Y,g1s);P?S.se=P.base64EncodedServiceEndpoint:S.sej=JSON.stringify(Y);(P=_.pM())&&_.f("enable_service_ajax_csn")&&(S.csn=P);S.theme=_.w2();_.g(Y,feJ)&&_.X3("DELEGATION_CONTEXT")&&(S.delegation_context=JSON.stringify(_.X3("DELEGATION_CONTEXT")));P=null;for(var u in Y)if(jK(u,"Endpoint")||jK(u,"Command")){P=u;break}if(!P){var W=Error("gi");Object.assign(W,{params:Y});
_.C2f(W,"WARNING");return new _.qs(function(J,c){c(W)})}u={name:P};
var m;(P=(m=_.g(Y,_.xo))==null?void 0:m.signal)&&(u.signal=P);(m=_.MP(window.location.href))&&m.internalcountrycode&&(u.internalcountrycode=m.internalcountrycode);m="/service_ajax";_.f("debug_forward_web_query_parameters")&&(m=_.Dzf(m,window.location.search));m=_.NP(m,u);Y.clickTrackingParams&&_.ef(m,{itct:Y.clickTrackingParams});return this.postData(m,S)};_.d_U=new _.yH("GFEEDBACK_TOKEN");var lcd;var X5i;var ZOs;var iOs;var iw=function(){var Y=_.Z.apply(this,arguments)||this;Y.compact=!1;return Y};
_.r(iw,_.Z);iw.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
iw.prototype.computeHasIcon_=function(Y){return!!Y};
iw.prototype.isSignInIcon_=function(Y){return Y=="yt-icons:prompted_sign_in"};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.hIf.YtConditionalRendererBehavior),_.k("design:type",Object)],iw.prototype,"ytConditionalRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],iw.prototype,"data",void 0);
_.Q([_.X({computed:"computeIcon_(data.icon)"}),_.k("design:type",Object)],iw.prototype,"icon_",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.k("design:type",Boolean)],iw.prototype,"hasIcon_",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.k("design:type",Boolean)],iw.prototype,"signInIcon_",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],iw.prototype,"compact",void 0);
iw=_.Q([_.r0({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],iw);
_.A(iw,"yt-player-error-message-renderer",function(){if(iOs===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;ZOs===void 0&&(ZOs=document.createElement("template"));var u=ZOs;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);iOs=Y}Y=iOs;return Y},{mode:2});var o7i;var t8i;var oy=function(){return _.Z.apply(this,arguments)||this};
_.r(oy,_.Z);oy.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
oy.prototype.computeIcon_=function(Y){return Y?"yt-icons:"+Y.iconType.toLowerCase():"error_outline"};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],oy.prototype,"data",void 0);_.Q([_.X({computed:"computeIcon_(data.icon)"}),_.k("design:type",Object)],oy.prototype,"icon_",void 0);oy=_.Q([_.r0({is:"yt-player-kav-renderer",disableElementRegistration:!0})],oy);
_.A(oy,"yt-player-kav-renderer",function(){if(t8i===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;o7i===void 0&&(o7i=document.createElement("template"));var u=o7i;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);t8i=Y}Y=t8i;return Y},{mode:2});_.AL(_.AI(function(Y){var S=_.Ms(),P=_.n(_.qb(0,void 0,"gCmSbf")),u=P.next().value,W=P.next().value;P=_.n(_.qb(null,void 0,"Rj9zMe"));var m=P.next().value,J=P.next().value;_.LE(function(){hQa(S.value,W,J);S.value.scrollIntoView()});
P=vza.bind(null,Y.data,u);eu("resize",function(){var c=m();if(u()===1&&c!==null){var C;(C=window.grecaptcha)==null||C.reset(c)}});
return _.R("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.R("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.R("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var c,C;return(c=Y.data().accessibility)==null?void 0:(C=c.accessibilityData)==null?void 0:C.label}),_.R(_.qw,{text:P,
className:_.Si("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.R("div",{el:S,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Nd"),"yt-player-captcha-view-model",{props:{data:_.tL}});var D6a=!1;_.Abh=_.AI(function(Y){var S=Y.data;return _.R("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.R(_.gw,{cond:function(){return S().icon},
then:function(P){return _.R("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.R(_.ZZ,{data:P,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.R(_.gw,{cond:function(){return S().title},
then:function(P){return _.R("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.R(_.qw,{text:P}))}}),_.R(_.gw,{cond:function(){return S().description},
then:function(P){return _.R("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.R(_.qw,{text:P}))}}),_.R(_.rv,{data:function(){return S().primaryButton}},{buttonViewModel:function(P){return _.R(_.aq,{data:P.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.R(_.rv,{data:function(){return S().secondaryButton}},{buttonViewModel:function(P){return _.R(_.aq,{data:P.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Od");
_.Abh.idomCompat=!0;var U_f=_.AI(function(Y){var S=Y.data;_.NF();return _.R("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.R("div",{class:"player-interstitial-renderer-wiz__scrim"},_.R(_.rv,{data:function(){return S().content}},{interstitialViewModel:_.Abh})))},"Pd");
U_f.idomCompat=!0;_.AL(U_f,"yt-player-interstitial-renderer",{props:{data:_.wm}});var tN=function(){var Y=_.Z.apply(this,arguments)||this;Y.noBackground=!1;Y.compact=!1;Y.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return Y};
_.r(tN,_.Z);tN.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"}}}};
tN.prototype.onUpdatePlayerErrorMessageCommand_=function(Y){if(_.g(Y,dJS)){var S;if(Y=(S=_.g(Y,dJS))==null?void 0:S.newPlayerErrorMessageRenderer)this.data=Y}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],tN.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],tN.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],tN.prototype,"status",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],tN.prototype,"noBackground",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],tN.prototype,"compact",void 0);tN=_.Q([_.r0({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],tN);
var QZi=_.eD()(tN,"yt-playability-error-supported-renderers",function(){if(X5i===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;lcd===void 0&&(lcd=document.createElement("template"));var u=lcd;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);X5i=Y}Y=X5i;return Y},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Ih$=void 0,LBK=void 0;var FBK=new og_;var Jk=new _.yH("ENTITY_STATE_TOKEN"),AN=new _.yH("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var k7d=function(Y){this.store=Y;this.jVG=new _.U1L},ZYh=function(Y,S,P){var u,W;
if(!(W=((u=S.playabilityStatus)==null?void 0:u.status)!=="OK")){Y=Y.store;var m;W=S.offlineState&&((m=S.videoDetails)==null?0:m.videoId)?_.f("enable_pl_r_c_cd")?UJU(Y.getState().entities,S.videoDetails.videoId):!!yn1(Y.getState().entities,S.videoDetails.videoId):!1}if(W)return!0;W=ZTK(S);if(W===1){if(_.f("ab_v_vid_sig")){var J,c=(J=S.videoDetails)==null?void 0:J.videoId;if(!c||!P||c!==P){var C;S=new _.$2("282054944_vid",{xNy:P,k9R:(C=S.videoDetails)==null?void 0:C.videoId});_.p_(S)}}return!0}vAX=
0;var x,b;C=(c=S.auxiliaryUi)==null?void 0:(x=c.messageRenderers)==null?void 0:(b=x.bkaEnforcementMessageViewModel)==null?void 0:b.displayType;if(W!==3&&(C==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||C==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;C={reason:_.Sk(_.Td("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.f("ks_something_wrong_learn_more")?plU("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Sk(_.Td("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:_.Sk("282054944")};M86(S,{playerErrorMessageRenderer:C});return!1},iYa=function(Y,S){if(Qmh(S)){_.cq(1,!0);
var P=(P=Qmh(S))&&_.ahY()?P:void 0;P?(M86(S,{enforcementMessageViewModel:P}),Y.jVG.increment("IN_PLAYER"),_.cq(5)):(Y.jVG.increment("SKIP_DISPLAY"),_.cq(2))}},M86=function(Y,S){Y.playabilityStatus=Object.assign({},Y.playabilityStatus,{status:"ERROR",
errorScreen:S});Y.videoDetails=void 0};
k7d.prototype.handleResponse=function(Y,S){if(Y.playabilityStatus){var P,u,W,m=(S==null?void 0:(P=S.innerTubeRequest)==null?void 0:P.videoId)||(S==null?void 0:(u=S.innerTubeRequest)==null?void 0:(W=u.playerRequest)==null?void 0:W.videoId);ZYh(this,Y,m)&&iYa(this,Y)}};
k7d[Md]=[Jk];var lmK=new _.yH("ADBLOCK_DETECTION_SERVICE_TOKEN");var Os=function(Y){this.sgx=Y};
Os.prototype.bindInnertubeChallengeFetcher=function(Y){this.sgx.bicf(Y)};
Os.prototype.registerChallengeFetchedCallback=function(Y){this.sgx.bcr(Y)};
Os.prototype.getLatestChallengeResponse=function(){return this.sgx.blc()};var V8h;_.Ur=function(Y,S,P){var u=this;this.network=Y;this.options=S;this.networkStatusManager=P;this.qH=null;if(S.useBotguardEverywhere){var W=new _.nV;this.qH=W.promise;_.Pa.ytAtRC&&_.bL(_.wc,function(){var m,J;return _.B(function(c){if(c.nextAddress==1){if(!_.Pa.ytAtRC)return c.return();m=yb6(null);return _.q(c,u.bT(m),2)}J=c.yieldResult;_.Pa.ytAtRC&&_.Pa.ytAtRC(JSON.stringify(J));_.Yt(c)})});
U6h().then(function(m){var J,c,C,x;return _.B(function(b){if(b.nextAddress==1)return m.bindInnertubeChallengeFetcher(function(T){return u.bT(yb6(T))}),_.q(b,DZh(),2);
J=b.yieldResult;c=m.getLatestChallengeResponse();C=c.challenge;if(!C)throw Error("hi");x={challenge:C,pD:eb(C),g6:J,bgChallenge:new HB};W.resolve(x);m.registerChallengeFetchedCallback(function(T){T=T.challenge;if(!T)throw Error("ii");T={challenge:T,pD:eb(T),g6:J,bgChallenge:new HB};u.qH=Promise.resolve(T)});
_.Yt(b)})})}else S.preload&&NJm(this,new Promise(function(m){_.hp(_.wc,function(){m(HOd(u))},0)}))};
V8h=function(Y){var S={preload:!0,useBotguardEverywhere:_.f("attmusi")},P=!1;if(typeof S==="boolean")var u={preload:S};else typeof S==="undefined"?u={preload:!0}:(u=S,P=!!S.iar);S=P?void 0:new _.kF;_.Ur.instance=new _.Ur(Y,u,S);return _.Ur.instance};
_.Ur.prototype.pdV=function(){var Y=this;return _.B(function(S){return S.nextAddress==1?_.q(S,Promise.race([Y.qH,null]),2):S.return(!!S.yieldResult)})};
_.Ur.prototype.ozI=function(Y,S,P){var u=this,W,m,J;return _.B(function(c){u.qH===null&&NJm(u,HOd(u));W=!1;m={};J=function(){var C,x,b;return _.B(function(T){switch(T.nextAddress){case 1:return _.q(T,u.qH,2);case 2:C=T.yieldResult;m.challenge=C.challenge;if(!C.g6){"c1a"in C.pD&&(m.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");T.jumpTo(3);break}x=Object.assign({},{c:C.challenge,e:Y},S);_.ND(T,4);W=!0;if(_.f("attbs")&&!_.f("attmusi")){b=_.AsS(C.g6,{qf:x});T.jumpTo(6);break}return _.q(T,C.g6.snapshot({qf:x}),
7);case 7:b=T.yieldResult;case 6:b?m.webResponse=b:m.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.tc(T,3);break;case 4:_.O4(T),m.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(Y==="ENGAGEMENT_TYPE_PLAYBACK"){var K=C.pD,G={};if(K.c6a){var v=Number(_.X3("DCLKSTAT",0));G.reportingStatus=String(Number(K.c)^(isNaN(v)?0:v))}K.c6b&&(G.broadSpectrumDetectionResult=String(Number(K.c)^Number(_.X3("CATSTAT",0))));m.adblockReporting=G}return T.return(m)}})};
return c.return(Promise.race([J(),eIu(P,function(){var C=Object.assign({},m);W&&(C.error="ATTESTATION_ERROR_VM_TIMEOUT");return C})]))})};
var yb6=function(Y){var S={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};Y&&(S.interpreterHash=Y);return S},HOd=function(Y,S){S=S===void 0?0:S;
var P,u,W,m,J,c,C,x,b,T,K,G;return _.B(function(v){switch(v.nextAddress){case 1:P=yb6(QDh().cRR);if(_.f("att_fet_ks"))return _.ND(v,7),_.q(v,Y.bT(P),9);_.ND(v,4);return _.q(v,OOu(Y,P),6);case 6:J=v.yieldResult;W=J.hBT;m=J.oWb;u=J;_.tc(v,3);break;case 4:return _.O4(v),_.sf(Error("ji`"+S)),Yl6(Y,864E5),v.return({challenge:"",pD:{},g6:void 0,bgChallenge:void 0});case 9:u=v.yieldResult;if(!u)throw Error("ki");if(!u.challenge)throw Error("li");W=u.challenge;m=eb(W);if("c1a"in m&&(!u.bgChallenge||!u.bgChallenge.program))throw Error("mi");
_.tc(v,3);break;case 7:c=_.O4(v);_.sf(c);S++;if(S>=5)return _.sf(Error("ji`"+S)),Yl6(Y,864E5),v.return({challenge:"",pD:{},g6:void 0,bgChallenge:void 0});C=1E3*Math.pow(2,S-1)+Math.random()*1E3;return v.return(new Promise(function(a){_.hp(_.wc,function(){a(HOd(Y,S))},C)}));
case 3:x=ASa(m);Yl6(Y,x*1E3);b=void 0;if(!("c1a"in m&&u.bgChallenge)){v.jumpTo(10);break}T=tn1(u.bgChallenge);_.ND(v,11);return _.q(v,MYU(QDh(),T),13);case 13:_.tc(v,12);break;case 11:return K=_.O4(v),_.sf(K),v.return({challenge:W,pD:m,g6:b,bgChallenge:T});case 12:return _.ND(v,14),b=new _.ai({challenge:T,oc:{rD:"aGIf"}}),_.q(v,b.qwe,16);case 16:_.tc(v,10);break;case 14:G=_.O4(v),_.sf(G),b=void 0;case 10:return v.return({challenge:W,pD:m,g6:b,bgChallenge:T})}})};
_.Ur.prototype.bT=function(Y){var S=this,P;return _.B(function(u){P=S.networkStatusManager;if(!P||P.isNetworkAvailable())return u.return(S.network.bT(Y));_.dP("att_pna",void 0,"attestation_challenge_fetch");return u.return(new Promise(function(W){P.listenOnce("publicytnetworkstatus-online",function(){S.network.bT(Y).then(W)})}))})};
var SlU=function(Y){if(!Y)throw Error("ki");if(!Y.challenge)throw Error("li");var S=Y.challenge,P=eb(S);if("c1a"in P&&(!Y.bgChallenge||!Y.bgChallenge.program))throw Error("mi");return Object.assign({},Y,{hBT:S,oWb:P})},OOu=function(Y,S){var P,u,W,m,J;
return _.B(function(c){switch(c.nextAddress){case 1:P=void 0,u=0,W={};case 2:if(!(u<5)){c.jumpTo(4);break}if(!(u>0)){c.jumpTo(5);break}W.cbh=1E3*Math.pow(2,u-1)+Math.random()*1E3;return _.q(c,new Promise(function(C){return function(x){_.hp(_.wc,function(){x(void 0)},C.cbh)}}(W)),5);
case 5:return _.ND(c,7),_.q(c,Y.bT(S),9);case 9:return m=c.yieldResult,c.return(SlU(m));case 7:P=J=_.O4(c),J instanceof Error&&_.sf(J);case 8:u++;W={cbh:void 0};c.jumpTo(2);break;case 4:throw P;}})},NJm=function(Y,S){Y.qH=S},PmS=function(Y){var S,P,u;
return _.B(function(W){if(W.nextAddress==1)return _.q(W,Promise.race([Y.qH,null]),2);S=W.yieldResult;var m=HOd(Y);Y.qH=m;(P=S)==null||(u=P.g6)==null||u.dispose();_.Yt(W)})},Yl6=function(Y,S){var P=Date.now()+S,u=function(){var W;
return _.B(function(m){W=P-Date.now();return W<1E3?_.q(m,PmS(Y),0):(_.hp(_.wc,u,Math.min(W,6E4)),m.jumpTo(0))})};
u()},eIu=function(Y,S){return new Promise(function(P){_.hp(_.wc,function(){P(S())},Y)})};var ufU=function(){};
ufU.prototype.processContext=function(Y){var S=_.Ur.instance;if(!S)return _.lO();var P=Ni$(Y);return P?new dD(S.ozI(P,MnE(Y),500).then(function(u){var W;(Y==null?0:(W=Y.innerTubeRequest)==null?0:W.context)||(Y.innerTubeRequest.context={});W=Y.innerTubeRequest.context;W.request||(W.request={});W.request.attestationResponseData=u})):_.lO()};var WSs=function(Y){this.innertubeTransportService=Y};
WSs.prototype.bT=function(Y){_.dP("att_fsr",void 0,"attestation_challenge_fetch");return _.h5(this.innertubeTransportService,Y,_.HT(_.hes)).then(function(S){_.dP("att_frr",void 0,"attestation_challenge_fetch");return S})};_.z8_=function(Y){this.innertubeTransportService=Y};var mB3=new _.yH("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var n6i=function(){},JTf=function(Y,S,P,u,W){var m=_.X3("YPC_MB_URL");
_.IJK(m).then(function(){jpm(m,Y,S,P,u,W)})},jpm=function(Y,S,P,u,W,m){try{var J=payments.business.integration,c=payments.business.integration.Style.create().withMaterialDesignStyle(),C=J.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.f("enable_window_constrained_buy_flow_dialog")&&(C=C.usingPopupStyle("windowConstrained"));m&&(C=C.usingCloseCallback(m));var x=P?P:_.X3("YPC_GB_LANGUAGE"),b=_.X3("SESSION_INDEX");J.bootstrap.fromPaymentsUrl(Y);J.bootstrap.asMashupMode(C).usingGaiaIndex(b).usingLocale(x).usingStyle(c).usingDefaultActivityStatusChangeHandler().inStandaloneContext(J.standaloneContextAuthId.forGaia()).purchaseManager(S,function(T){u&&u(T)}).load(void 0,W)}catch(T){throw W&&W(T),_.p_(T),T;
}};var B93=new _.yH("PURCHASE_MANAGER_TOKEN");var cT_=function(){var Y=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return Y.videos},
getContinuationsPresent:function(){return Y.continuationsPresent},
setVideos:function(S){Y.videos=S},
getRecommendedVideos:function(){return Y.recommendedVideos},
setRecommendedVideos:function(S){Y.recommendedVideos=S}}};
cT_.prototype.addVideos=function(Y){Y&&(this.videos=Y.filter(function(S){return!!_.VnU(S)}).map(function(S){var P=_.VnU(S);
a:{var u;if(S.playlistVideoRenderer&&((u=S.playlistVideoRenderer)==null?0:u.voteSortTiebreaker))var W=S.playlistVideoRenderer.voteSortTiebreaker;else{if(_.g(S,SN)){var m;if(u=(W=_.g(S,SN))==null?void 0:(m=W.playlistItemData)==null?void 0:m.voteSortTiebreaker){W=u;break a}}W=""}}return{itemId:P,videoId:_.YBU(S),voteCount:_.SBY(S),voteSortTiebreaker:W}}),this.continuationsPresent=!!_.g(Y[Y.length-1],_.Ws))};
var CmL=function(Y,S){return Y.videos.findIndex(function(P){return P.itemId===S})},qli=function(Y,S){return Y.recommendedVideos.findIndex(function(P){return P.itemId===S})},R8s=function(Y){Y={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:Y}}}}};_.E().resolve(_.uY).resolveCommand(Y)};var xBi=function(){cT_.apply(this,arguments)};
_.r(xBi,cT_);
var qS6=function(Y,S,P,u){if(!Y.parentElem)throw Error("ri");var W=CmL(Y,S);W===-1&&(W=qli(Y,S),W=W!==-1?W+Y.videos.length:-1);if(W===-1)throw Error("si");var m=W>=Y.videos.length?Y.recommendedVideos[W-Y.videos.length]:Y.videos[W];m.voteCount=P;m.voteSortTiebreaker=Date.now().toString();W>=Y.videos.length?Y.recommendedVideos.splice(W-Y.videos.length,1):Y.videos.splice(W,1);var J=Y.videos;for(var c=0,C=J.length-1;c<=C;){var x=Math.floor((c+C)/2);if(J[x].voteCount<m.voteCount)C=x-1;else if(J[x].voteCount>m.voteCount)c=
x+1;else{a:{var b=m.voteSortTiebreaker;var T=J[x].voteSortTiebreaker;if(b.length!==T.length)b=b.length>T.length;else{for(var K=0;K<b.length;K++){var G=b.charCodeAt(K),v=T.charCodeAt(K);if(G>v){b=!0;break a}if(G<v)break}b=!1}}b?C=x-1:c=x+1}}J=c;if(J===-1)throw Error("ti");Y.videos.splice(J,0,m);W!==J&&bqS(Y,W,J,S,P,u)},bqS=function(Y,S,P,u,W,m){var J,c=(J=Y.parentElem)==null?void 0:J.children,C=Math.min(S,P),x=Math.max(S,P);
if(c)for(J=C;J<=x;J++)c[J].style.viewTransitionName="item-"+String(J);document.startViewTransition(function(){if(Y.parentElem){var b=Y.parentElem.children;if(!(!b||S<0||S>=b.length||P<0||P>=b.length)){var T=b[S];if(T){T.remove();Y.showRefreshPill=P>=Y.videos.length-1&&Y.continuationsPresent;if(!Y.showRefreshPill){b=b[P]||null;var K;(K=Y.parentElem)==null||K.insertBefore(T,b)}_.ms(Y.parentElem,"yt-update-video-data-voting-animation",{toIdx:P,itemId:u,newVoteCount:W,voteStatus:m,hideItem:Y.showRefreshPill})}}}}).finished.then(function(){if(c)for(var b=
C;b<=x;b++)c[b].style.viewTransitionName="";
if(Y.showRefreshPill)R8s(_.Td("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var T;if(T=b=(T=Y.parentElem)==null?void 0:T.children[P])T=b.getBoundingClientRect(),b=T.bottom,T=!(T.top>=0&&b<=Y.clientHeight);T&&(T=_.fb(S>P?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(S-P)),R8s(T))}})};var E6m=function(Y,S){var P=this;Y?this.innertubeTransportServicePromise=Promise.resolve(Y):S&&(this.innertubeTransportServicePromise=S(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Iy(3E3,function(u){return T96(P,u)},0);
this.validateMiniAppVideoIdRateLimiter=new Iy(3E3,function(u){return KSs(P,u)},1)},P_m=function(Y,S){Y.JSC$14879_miniAppId=S;
Y.reportMiniAppValueRateLimiter=new Iy(3E3,function(P){return T96(Y,P)},0);
Y.validateMiniAppVideoIdRateLimiter=new Iy(3E3,function(P){return KSs(Y,P)},1)},Wn6=function(Y,S){var P;
return _.B(function(u){if(u.nextAddress==1)return _.q(u,Y.reportMiniAppValueRateLimiter.call(S),2);P=u.yieldResult;return u.return([P,S])})},T96=function(Y,S){var P,u,W,m,J,c,C;
return _.B(function(x){switch(x.nextAddress){case 1:return _.q(x,Y.innertubeTransportServicePromise,2);case 2:return P=x.yieldResult,u=_.HT(p03),W=Date.now(),m={externalPostId:Y.JSC$14879_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(W/1E3),nanos:Math.round(W%1E3*1E6)},intValue:""+S}},_.ND(x,3),_.q(x,_.h5(P,m,u),5);case 5:J=x.yieldResult;_.tc(x,4);break;case 3:throw c=_.O4(x),c;case 4:if(J){if("error"in J&&J.error)throw J.error;if(J.errorMetadata)throw Error("ui`"+
J.errorMetadata.status);if(C=J.userStatResult)return x.return(C);throw Error("vi");}throw Error("wi");}})},m_m=function(Y){var S,P,u,W,m;
_.B(function(J){switch(J.nextAddress){case 1:return _.q(J,Y.innertubeTransportServicePromise,2);case 2:return S=J.yieldResult,P=_.HT(p03),u={externalPostId:Y.JSC$14879_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.ND(J,3),_.q(J,_.h5(S,u,P),5);case 5:W=J.yieldResult;_.tc(J,4);break;case 3:throw m=_.O4(J),m;case 4:if(W==null)throw Error("wi");if("error"in W&&W.error)throw W.error;if(W.errorMetadata)throw Error("ui`"+W.errorMetadata.status);_.Yt(J)}})};
E6m.prototype.flush=function(){var Y=this;return _.B(function(S){return S.nextAddress==1?_.q(S,Y.reportMiniAppValueRateLimiter.flush(),2):_.q(S,Y.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var zIL=function(Y,S){return _.B(function(P){return P.nextAddress==1?_.q(P,Y.validateMiniAppVideoIdRateLimiter.call(S),2):P.return(P.yieldResult)})},KSs=function(Y,S){var P,u,W,m,J,c;
return _.B(function(C){switch(C.nextAddress){case 1:return _.q(C,Y.innertubeTransportServicePromise,2);case 2:return P=C.yieldResult,u=_.HT(GVL),W={videoId:S},_.ND(C,3),_.q(C,_.h5(P,W,u),5);case 5:m=C.yieldResult;_.tc(C,4);break;case 3:throw J=_.O4(C),J;case 4:if(m){if("error"in m&&m.error)throw m.error;if(m.errorMetadata)throw Error("ui`"+m.errorMetadata.status);if(c=m.playabilityStatus)return C.return(c.status);throw Error("xi");}throw Error("wi");}})};
E6m[Md]=[_.PQ(_.fV),_.PQ(YJ3)];var fO_=function(){this.clientData=new Map};
fO_.prototype.getData=function(Y){return this.clientData.get(Y)};var g6S=function(Y){this.store=Y};
g6S.prototype.handleResponse=function(Y){(Y=_.g(Y.frameworkUpdates,Xt))&&_.xW(Y,this.store)};
g6S[Md]=[_.Ee];var $Bm=new _.yH("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var rTJ={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,1,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var GkL=new _.yH("ICON_SET_TOKEN"),h8U=new _.yH("ICON_URL_PROVIDER_TOKEN"),v6h=new _.yH("PREFETCH_ICONS_TOKEN"),DBL=new _.yH("ICON_MAP_FN_TOKEN");var QM={},IO6=(QM.ACCESS_TIME="clock",QM.ACCOUNT_BOX="person_account",QM.ACCOUNT_BOX_CAIRO="person_account_cairo",QM.ACCOUNT_CIRCLE="person_circle",QM.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",QM.ACCOUNT_LINKED="account_link_success",QM.ACCOUNT_UNLINKED="account_link",QM.ADD_FRIEND="people",QM.ADD_TO_LIBRARY=u1("add"),QM.ADD_TO_PLAYLIST="add",QM.ADD_TO_QUEUE_TAIL="list_queue",QM.ADD_TO_REMOTE_QUEUE="list_music",QM.ADD_TO_WATCH_LATER="clock",QM.ADD_VIDEO_LINK="film_strip_add",QM.ALERT_WARN_RED="alert_triangle",
QM.ARROW_BACK="arrow_left",QM.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",QM.ARROW_DROP_DOWN="chevron_down",QM.ARROW_DROP_UP="chevron_up",QM.ARROW_FORWARD="arrow_right",QM.AUDIOTRACK="audio",QM.AUTO_AWESOME="sparkle",QM.AVATAR_ANONYMOUS="person_circle",QM.AVATAR_LOGGED_OUT="person_circle",QM.BACK="arrow_left",QM.BAR_CHART="bar_graph",QM.BLOCK="slash_circle_left",QM.BLOCK_USER="slash_circle_left",QM.BOOKMARK_BORDER="bookmark",QM.BREAKING_NEWS_ALT_1="article_alert",QM.BROADCAST_CAIRO="podcast_cairo",
QM.BUG_REPORT="bug",QM.CAMERA_ALT="camera",QM.CAMPAIGN="megaphone",QM.CANCEL="x_circle",QM.CAPTIONS="closed_caption",QM.CAST_OUTLINE="chromecast",QM.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",QM.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",QM.CHAT="message_bubble_left",QM.CHAT_BUBBLE="message_bubble_empty",QM.CHECK_BOX_OUTLINE_BLANK="box_empty",QM.CHECK_CIRCLE_OUTLINE="check_circle",QM.CHECK_CIRCLE_THICK="check_circle",QM.CLARIFY="article_clarify",QM.CLOSED_CAPTION_SELECTED="closed_caption",QM.CLOSE=
"x_mark",QM.CLOUD_UPLOAD="cloud_arrow_up",QM.COLLAPSE="chevron_up",QM.COLLAPSE_CAIRO="chevron_up_cairo",QM.COLLECTION="layers",QM.COLOR_LENS="palette",QM.COMMENT="message_bubble_right",QM.CONSENT_SHIELD="person_shield",QM.CONTENT_CUT="scissors",QM.CONTENT_CUT_CAIRO="scissors_cairo",QM.COURSE=_.f("web_enable_course_icon_update")?"creator_academy":"lightbulb",QM.COURSE_CAIRO=_.f("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",QM.CREATION_LIVE="radar_live",QM.CREATION_UPLOAD=
"my_videos",QM.CREATION_UPLOAD_RED="upload",QM.CREATOR_STUDIO="youtube_studio",QM.DELETE="trash_can",QM.DELETE_SWEEP="trash_can",QM.DESKTOP="laptop",QM.DISLIKE="thumb_down",QM.DISLIKE_SELECTED="thumb_down",QM.DISMISSAL="x_mark",QM.DISMISS_QUEUE="list_remove",QM.DOWN_ARROW="arrow_down",QM.DO_NOT_DISTURB="slash_circle_left",QM.DRAFT="paper_corner_folded",QM.DRAG_HANDLE="bars_2",QM.EDIT="pencil",QM.EMOJI="face_very_happy",QM.EMOJI_FLAGS="flag",QM.EMOJI_OBJECTS="lightbulb",QM.EMOJI_PEOPLE="face_very_happy",
QM.EMOJI_RECENT="clock",QM.EMPTY_HEART="heart",QM.EMPTY_LIKE="thumb_up",QM.ERROR_BLACK="alert_circle",QM.ERROR_OUTLINE="alert_circle",QM.EXIT_APP="arrow_in",QM.EXIT_TO_APP="arrow_in",QM.EXPAND="chevron_down",QM.EXPAND_ALL="chevron_expand",QM.EXPAND_CAIRO="chevron_down_cairo",QM.EXPAND_LESS="chevron_up",QM.EXPAND_MORE="chevron_down",QM.EXPLORE="compass",QM.EXPLORE_DESTINATION="compass",QM.EXTERNAL_LINK="open_new",QM.FAB_UPLOAD="upload",QM.FACE_HAPPY_OUTLINE="face_happy",QM.FACT_CHECK="article_check",
QM.FASHION_LOGO="fashion",QM.FASHION_LOGO_CAIRO="fashion_cairo",QM.FAVORITE="heart",QM.FEEDBACK="message_bubble_alert",QM.FEEDBACK_CAIRO="message_bubble_alert_cairo",QM.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",QM.FILL_ARROW_SOLID_UP_16="arrow_solid_up",QM.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",QM.FLAG="flag",QM.FULL_HEART="heart",QM.GAME_CONSOLE_DPAD="game_console_dpad",QM.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",QM.GAMING_LOGO="gaming",QM.GAMING_LOGO_CAIRO="gaming_cairo",QM.GO_TO_PAGE=
"arrow_right",QM.GROUPS="people_group",QM.HAPPY="face_happy",QM.HEALTH_AND_SAFETY="shield_plus",QM.HELP="question_circle",QM.HELP_CAIRO="question_circle_cairo",QM.HELP_OUTLINE="question_circle",QM.HIDE="slash_circle_left",QM.IMAGE="image",QM.INFINITY_ICON="infinity",QM.INFO="info_circle",QM.INFO_OUTLINE="info_circle",QM.INSERT_CHART_OUTLINED="bar_graph_box_vertical",QM.INSERT_PHOTO="image",QM.KEEP="pin",QM.KEEP_OFF="pin_off",QM.KEYBOARD="keyboard",QM.KEYBOARD_ARROW_DOWN="chevron_down",QM.KEYBOARD_ARROW_UP=
"chevron_up",QM.KIDS_BLOCK="slash_circle_left",QM.LANGUAGE="globe",QM.LAUNCH="open_new",QM.LEARNING="lightbulb",QM.LEARNING_CAIRO="lightbulb_cairo",QM.LIBRARY_ADD=u1("library_add"),QM.LIBRARY_OUTLINE="library",QM.LIBRARY_REMOVE=u1(),QM.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",QM.LIKES_PLAYLIST="thumb_up",QM.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",QM.LIKE="thumb_up",QM.LIKE_SELECTED="thumb_up",QM.LIVE="radar_live",QM.LIVE_CAIRO="radar_live_cairo",QM.LIVE_UNLISTED="link",QM.LOCATION_ON="location_point",
QM.LOCATION_PIN="location_point",QM.LOOP="arrow_repeat",QM.LOOP_ACTIVE="arrow_repeat",QM.LOOP_ONE="arrow_repeat_1",QM.LOOP_ONE_ACTIVE="arrow_repeat_1",QM.MEH="face_meh",QM.MEMBERS_ONLY_MODE_OFF="message_bubble_left",QM.MESSAGE="message_bubble_left",QM.MICROPHONE_ON="mic",QM.MIX="youtube_mix",QM.MONETIZATION_ON="dollar_sign_circle",QM.MONEY_FILL="dollar_sign_container",QM.MONEY_FILL_JPY="yen_sign_container",QM.MONEY_HEART="dollar_sign_heart",QM.MORE_HORIZ="overflow_horizontal",QM.MORE_VERT="overflow_vertical",
QM.MUSIC="audio",QM.MUSIC_CAIRO="audio_cairo",QM.MUSIC_NOTE_SYMBOL="music",QM.MUSIC_SHUFFLE="arrow_shuffle",QM.MY_CHANNEL="person_circle",QM.MY_LOCATION="location_point",QM.NEWS_STORY="news",QM.NEXT="chevron_right",QM.NOTIFICATIONS="bell",QM.NOTIFICATIONS_ACTIVE="bell_on",QM.NOTIFICATIONS_CAIRO="bell_cairo",QM.NOTIFICATIONS_DONE_CHECKMARK="check",QM.NOTIFICATIONS_INBOX="bell",QM.NOTIFICATIONS_NONE="bell",QM.NOTIFICATIONS_OFF="bell_off",QM.NOT_INTERESTED="slash_circle_left",QM.OFFICIAL_ARTIST_BADGE=
"audio",QM.OFFLINE_CLOUD="cloud_off",QM.OFFLINE_DOWNLOAD="download",QM.OFFLINE_DOWNLOAD_CAIRO="download_cairo",QM.OFFLINE_PAUSE="pause",QM.OPEN_IN_NEW="open_new",QM.OUTLINE_ADJUST="adjust",QM.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",QM.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",QM.OUTLINE_BAG="bag",QM.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",QM.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",QM.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",QM.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
QM.PAID="dollar_sign",QM.PAUSE_OUTLINED="pause",QM.PAYMENT="credit_card",QM.PERSON_RADAR_FILLED="person_radar",QM.PHONE_DOWNLOAD="mobile_download",QM.PLAYABLES_LOGO="tic_tac_toe",QM.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",QM.PLAYLISTS="list_play_arrow",QM.PLAYLISTS_CAIRO="list_play_arrow_cairo",QM.PLAYLIST_ADD=u1("list_add"),QM.PLAYLIST_ADD_CHECK=u1("list_check"),QM.PLAY_ALL="play_arrow",QM.PLAY_CIRCLE="play_arrow_circle",QM.PLAY_OUTLINED="play_arrow_circle",QM.PRIVACY_INFO="shield",QM.PRIVACY_PRIVATE=
"lock",QM.PRIVACY_PUBLIC="earth",QM.PRIVACY_UNLISTED="link",QM.PROMOTE="megaphone",QM.PURCHASES="price_tag",QM.PURCHASE_SUPER_CHAT="super_chat",QM.PURCHASE_SUPER_STICKER="super_sticker",QM.QUESTION_ANSWER="message_bubble_question",QM.QUEUE_PLAY_LAST="list_queue_last",QM.QUEUE_PLAY_NEXT="list_play_arrow",QM.REMIX_FILLED="youtube_shorts_remix",QM.REMOVE="bar_circle",QM.REMOVE_CIRCLE="bar_circle",QM.REMOVE_CIRCLE_OUTLINE="bar_circle",QM.REMOVE_FROM_HISTORY="bar_circle",QM.REMOVE_FROM_PLAYLIST="bar_circle",
QM.REPLAY="arrow_circle",QM.REPORT_PROBLEM="alert_triangle",QM.SAD="face_sad",QM.SAVE_PLAYLIST=u1("library_add"),QM.SCHEDULE="clock",QM.SCHOOL="creator_academy",QM.SCREEN_FULLSCREEN="screen_full",QM.SEARCH_HISTORY="arrow_time",QM.SELL="price_tag",QM.SETTINGS="gear",QM.SETTINGS_CAIRO="gear_cairo",QM.SETTINGS_LIGHT="gear",QM.SETTINGS_MATERIAL="gear",QM.SHARE_ARROW="share",QM.SHIELD_WITH_AVATAR="person_shield",QM.SHOPPING_BAG="bag",QM.SHOPPING_BAG_CAIRO="bag_cairo",QM.SHOPPING_CART="cart",QM.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",QM.SHORTS_DISLIKE="youtube_shorts_thumb_down",QM.SHORTS_LIKE="youtube_shorts_thumb_up",QM.SHORTS_SHARE="youtube_shorts_share",QM.SHUFFLE="arrow_shuffle",QM.SLOW_MODE_OFF="message_bubble_left",QM.SOCIAL="people",QM.SORT="menu_sort",QM.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",QM.SPEED_1X="1x",QM.SPEED_1_POINT_2X="1_point_2x",QM.SPEED_1_POINT_5X="1_point_5x",QM.SPEED_1_POINT_8X="1_point_8x",QM.SPEED_2X="2x",QM.SPEED_POINT_2X="point_2x",QM.SPEED_POINT_8X="point_8x",
QM.SPONSORSHIP_STAR=_.f("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",QM.STAFF_PICK="spotlight",QM.START_DVR="add",QM.STAR_BORDER="star",QM.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",QM.STICKER_EMOTICON="face_happy",QM.STOP_DVR="stop",QM.SUBSCRIBE="youtube_logo_icon",QM.SUBSCRIBE_PLUS="add_cairo",QM.SUBSCRIPTION_MANAGER="gear",QM.SUPERVISOR_ACCOUNT="people",QM.SWAP_HORIZ="arrow_swap_horizontal",QM.SWITCH_ACCOUNTS="person_account",QM.TAB_ACCOUNT="person",QM.TAB_ACTIVITY=
"bell",QM.TAB_EXPLORE="compass",QM.TAB_HOME="home",QM.TAB_HOME_CAIRO="home_cairo",QM.TAB_INBOX="mail",QM.TAB_LIKED="thumb_up",QM.TAB_MUSIC_PREMIUM="youtube_music",QM.TAB_SHORTS="youtube_shorts",QM.TAB_SHORTS_CAIRO="youtube_shorts_cairo",QM.TAB_SUBSCRIPTIONS="subscriptions",QM.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",QM.TAB_TRENDING="fire",QM.TIMER="stopwatch",QM.TRENDING="fire",QM.TRENDING_CAIRO="fire_cairo",QM.TRENDING_UP="rating_up",QM.TROPHY="trophy",QM.TROPHY_CELEBRATIONS="fireworks",QM.TUNE=
"adjust",QM.UNBLOCK_USER="bar_circle",QM.UNLIMITED="youtube_logo_icon",QM.UNPLUGGED_LIVE_GUIDE="radar_live",QM.UNPLUGGED_SPORTS="eye_off",QM.UPLOADS="library",QM.UP_ARROW="arrow_up",QM.VERTICAL_ALIGN_BOTTOM="download",QM.VERY_HAPPY="face_very_happy",QM.VERY_SAD="face_very_sad",QM.VIDEOS="play_arrow_circle",QM.VIDEO_CALL="video_camera_add",QM.VIDEO_LIBRARY_WHITE="library",QM.VIDEO_YOUTUBE="youtube_logo_icon",QM.VIEW_LIST="list_view",QM.VIEW_LIST_CAIRO="list_view_cairo",QM.VISIBILITY="eye",QM.VISIBILITY_OFF=
"eye_off",QM.VOLUME_MUTE="volume_off",QM.VOLUME_UP="volume_on",QM.WALLPAPER="image",QM.WARNING="alert_triangle",QM.WATCH_HISTORY="arrow_time",QM.WATCH_HISTORY_CAIRO="arrow_time_cairo",QM.WATCH_LATER="clock",QM.WATCH_LATER_CAIRO="clock_cairo",QM.WATCH_RELATED_MIX="youtube_mix",QM.WHAT_TO_WATCH="home",QM.YOUTUBE_MUSIC_MONOCHROME="youtube_music",QM.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",QM.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",QM.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",QM.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",QM.YT_OUTLINE_MUSIC_24="music",QM);var aOs={},LSs=(aOs.TAB_SHORTS="youtube_shorts",aOs.TAB_SHORTS_CAIRO="youtube_shorts",aOs.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",aOs);var wAL={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_flip_dollar_sign:[[1,1,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,
2,24]],arrow_merge:[[1,1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,
2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,3,24],[1,3,24]],bag:[[0,
5,12],[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],bookmark:[[0,6,24],[1,6,
24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,
3,48]],bug:[[0,1,24],[1,1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],cat:[[0,1,24],[1,1,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,8,24]],check_double:[[1,
1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,
1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,
1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,2,24]],code:[[1,
1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],dogfood:[[1,1,24]],
dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,
6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],
face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,
2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,3,24]],
gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,6,24],[1,6,24]],headset:[[0,
6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],info_circle:[[1,8,16],[1,8,
18],[1,8,20],[1,8,24]],journey:[[1,1,24]],key:[[1,4,24]],keyboard:[[0,2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,
6,18],[1,6,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,
24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,
1,24]],medal:[[1,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,
2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,
1,24],[1,1,24]],motion:[[1,1,24]],move:[[1,1,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,
32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,5,12],[0,5,13],[0,5,16],
[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,
24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,
24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],
[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,1,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,3,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],
[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,
24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],
video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,
2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,5,24],[1,5,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,
24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,
2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]],zoom_auto:[[0,1,24],[1,1,24]]};var pAu={youtube_shorts:[[0,10,24],[1,10,24]]};var kP=function(Y){this.iconUrlProvider=Y};
kP.prototype.resolveIcon=function(Y,S){var P=Y.iconName;P=P.replace(/-/g,"_");Y=Object.assign({},Y,{iconName:this.mapIconTypeToStandardName(P)||P.toLowerCase()});if(_.f("enable_web_delhi_icons")){var u;return uGJ(pAu,Y,((u=this.iconUrlProvider)==null?void 0:u.getYtStandardUrl)||meK,S)}var W;return uGJ(wAL,Y,((W=this.iconUrlProvider)==null?void 0:W.getYtStandardUrl)||z5Y,S)};
kP.prototype.mapIconTypeToStandardName=function(Y){return _.f("enable_web_delhi_icons")?LSs[Y.toUpperCase()]:IO6[Y.toUpperCase()]};
kP[Md]=[_.PQ(h8U)];var FS_=function(Y){this.urlProvider=this.iconUrlProvider=Y};
_.r(FS_,kP);
FS_.prototype.resolveIcon=function(Y,S){Y.iconName==="youtube_logo"&&(Y.iconName="yt-logo-updated");if(Y.iconName==="youtube_premium_logo"||Y.iconName==="youtube_red_logo")Y.iconName="yt-logo-red-updated";var P=Object.assign({},Y);Y.iconName==="menu"&&(P.iconName="bars_3",P.iconStyle="youtube_outline");Y.iconName==="youtube_music"&&(P.iconStyle="youtube_fill");Y.iconName==="mail"&&Y.iconSetName==="socialNetworksRound"&&(P.iconName="email");Y.iconName==="more"&&(P.iconName="overflow_horizontal");Y.iconName===
"fullscreen"&&(P.iconName="screen_full");if(Y.iconName==="play_all"||Y.iconName==="play_arrow")P.iconStyle="youtube_fill";Y.iconName==="premium_standalone"&&(P.iconName="premium_standalone_cairo");_.f("enable_connect_icon_update_web")&&Y.iconName==="account_linked"&&(P.iconName="circles_overlap_check",P.iconStyle="youtube_fill");_.f("enable_connect_icon_update_web")&&Y.iconName==="account_unlinked"&&(P.iconName="circles_overlap",P.iconStyle="youtube_outline");Y=Object.assign({},P,{iconName:(kP.prototype.mapIconTypeToStandardName.call(this,
P.iconName)||P.iconName).toLowerCase()});var u;return(Y=uGJ(rTJ,Y,((u=this.urlProvider)==null?void 0:u.getUrl)||ne$,S))?Y:kP.prototype.resolveIcon.call(this,P,S)};
FS_[Md]=[_.PQ(h8U)];_.spS=1;var Mj=function(){};
_.r(Mj,Gw);Mj.prototype.resolveCommand=function(Y){var S,P;return _.B(function(u){S=_.g(Y,hx6);if(!S)return u.return();P=Number(S.enableDelayedPacfLoggingTvMs);if(isNaN(P)){var W=VF();fEh(W,S,0)}else fEh(VF(),S,P);_.Yt(u)})};_.yM=function(){};
_.r(_.yM,Gw);
_.yM.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c,C,x;return _.B(function(b){u=_.g(Y,vnU);m=(W=S.form)==null?void 0:W.element;c=(J=m)==null?void 0:J.closest("ytd-enforcement-message-view-model");if(!u||!c)return b.return();P.allowAdsAction||(C=u.fundingChoiceInstructionPageUrl,P.allowAdsAction=new W26(window,_.pZ(C)));var T=P.allowAdsAction;T.wallElement=c;T.allowAdsPopup.style.setProperty("display","flex","important");var K=T.scrollManager;K.originalBodyOverflow=K.JSC$7873_domHelper.JSC$7241_document_.body.style.overflow;K.JSC$7873_domHelper.JSC$7241_document_.body.style.overflow=
"hidden";T.wallElement.style.setProperty("display","none","important");bNS(T.accessibilityManager,T.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((x=P.allowAdsAction.allowAdsPopup)&&x instanceof HTMLElement)for(T=_.n(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),K=T.next();!K.done;K=T.next()){var G=_.n(K.value);K=G.next().value;G=G.next().value;x.style.setProperty(K,G)}_.Yt(b)})};
_.yM.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Nj=function(){};
_.r(Nj,Gw);Nj.prototype.resolveCommand=function(Y){var S;return _.B(function(P){S=_.g(Y,s8d);if(!S)return P.return();I8X(Y);_.Yt(P)})};var H8=function(Y){this.JSC$14919_commandHandler=Y};
_.r(H8,Gw);
H8.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J,c,C,x;return _.B(function(b){if(b.nextAddress==1){P=_.g(Y,mJ3);if((u=P)==null||!u.text||!navigator.clipboard)return b.return();_.ND(b,2);return _.q(b,navigator.clipboard.writeText(P.text),4)}if(b.nextAddress!=2){if(!P.successActions||P.successActions.length===0)return b.return();W=_.n(P.successActions);for(m=W.next();!m.done;m=W.next())J=m.value,S.JSC$14919_commandHandler.resolveCommand(J);return _.tc(b,0)}_.O4(b);if(!P.failureActions||P.failureActions.length===
0)return b.return();c=_.n(P.failureActions);for(C=c.next();!C.done;C=c.next())x=C.value,S.JSC$14919_commandHandler.resolveCommand(x);_.Yt(b)})};
H8[Md]=[_.uY];var VM=function(Y){this.JSC$14923_commandHandler=Y};
_.r(VM,Gw);
VM.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c,C,x,b,T,K;return _.B(function(G){switch(G.nextAddress){case 1:u=_.g(Y,tT6);if(!u)return G.return();_.ND(G,2);if(!u.imageBytes&&!u.imageUrl)throw Error("yi");if(!u.imageUrl){if(u.imageBytes){m=u.imageBytes;J=m.replace(/-/g,"+").replace(/_/g,"/");var v=JCE(J);W=_.cx(v)}G.jumpTo(4);break}return _.q(G,fetch(u.imageUrl),5);case 5:return c=G.yieldResult,_.q(G,c.blob(),6);case 6:C=G.yieldResult,W=_.cx(C);case 4:T=(x=S)==null?void 0:(b=x.form)==
null?void 0:b.element;K=document.createElement("a");xU(K,W);T.appendChild(K);K.download="";K.click();T.removeChild(K);URL.revokeObjectURL(_.mp(W));u.successCommand&&P.JSC$14923_commandHandler.resolveCommand(u.successCommand);_.tc(G,0);break;case 2:_.O4(G),u.errorCommand&&P.JSC$14923_commandHandler.resolveCommand(u.errorCommand),_.Yt(G)}})};
VM[Md]=[_.uY];var eI=function(Y){this.store=Y};
_.r(eI,Gw);eI.prototype.resolveCommand=function(Y){var S=this,P,u,W;return _.B(function(m){u=(P=_.g(Y,_.gMf))==null?void 0:P.entityBatchUpdate;if(!u)return m.jumpTo(0);W=Object.assign({},u,{mutations:[].concat(_.cz(u.mutations||[]))});return _.q(m,_.xW(W,S.store),0)})};var dBi=function(Y){this.JSC$14930_commandHandler=Y;this.feedbackDialogMap=new Map};
dBi.prototype.openDialog=function(Y,S){(Y=this.feedbackDialogMap.get(Y))&&this.JSC$14930_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:Y}},S)};
dBi[Md]=[_.uY];var Or=new _.yH("FEEDBACK_CONTROLLER_TOKEN");var YC=new _.yH("APP_STORE_TOKEN");var S$=function(Y,S){this.store=Y;this.controller=S};
_.r(S$,Gw);S$.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V;return _.B(function(M){if(M.nextAddress==1){u=_.g(Y,_.La);if(m=(W=u)==null?void 0:W.contentId)for(c=_.n(((J=u)==null?void 0:J.actions)||[]),C=c.next();!C.done;C=c.next())x=C.value,lOU(P,x,m);K=(b=S)==null?void 0:(T=b.form)==null?void 0:T.element;return _.q(M,_.Bu(K,[Y]).catch(function(){}),2)}G=M.yieldResult;
((v=G)==null?0:(a=v.data)==null?0:(w=a.feedbackResponses)==null?0:w.length)&&(U=(F=G.data.feedbackResponses[0])==null?void 0:F.followUpDialog)&&m&&(V=P.controller)!=null&&V.feedbackDialogMap.set(m,U);_.Yt(M)})};
var lOU=function(Y,S,P){var u=_.g(S,_.qT);if(u){u=_.n(u.commands||[]);for(var W=u.next();!W.done;W=u.next())lOU(Y,W.value,P)}_.g(S,_.xp)&&Y.store.dispatch(_.qE("commandEntity",pVh(P),{key:P,command:S}));_.g(S,rvi)&&Y.store.dispatch(_.qE("commandEntity",pVh(P),{key:P,command:S}))};
S$[Md]=[YC,Or];var P1=function(Y){this.controller=Y};
_.r(P1,Gw);P1.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J;return _.B(function(c){u=_.g(Y,_.iE);m=(W=u)==null?void 0:W.targetId;if(((J=u)==null?void 0:J.signal)!=="TELL_US_WHY"||!m)return c.return();P.controller.openDialog(m,S);_.Yt(c)})};
P1[Md]=[Or];var uP=function(Y){this.store=Y};
_.r(uP,Gw);uP.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c,C,x;return _.B(function(b){u=_.g(Y,fvu);m=(W=u)==null?void 0:W.contentId;C=(J=S)==null?void 0:(c=J.form)==null?void 0:c.element;x=_.Bu(C,[Y]);m&&P.undo(m);return _.q(b,x,0)})};
uP.prototype.undo=function(Y){this.store.dispatch(_.qE("commandEntity",pVh(Y),{key:Y,command:void 0}))};
uP[Md]=[YC];var W1=function(Y){this.JSC$14945_commandHandler=Y};
_.r(W1,Gw);W1.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J,c,C,x;return _.B(function(b){P=_.g(Y,XyS);u=P.flowStateKey;W=P.validationFailureCommand;m=P.submitValidFormCommand;J=ZQ(_.Ps,[u||""]);c=_.g(J,ilm);((C=c)==null?0:C.isValid)&&m&&S.JSC$14945_commandHandler.resolveCommand(m);((x=c)==null?0:x.isValid)||!W||S.JSC$14945_commandHandler.resolveCommand(W);_.Yt(b)})};
W1[Md]=[_.uY];var zP=function(Y){this.innertubeTransportService=Y};
_.r(zP,Gw);zP.prototype.resolveCommand=function(Y,S){var P=this,u;return _.B(function(W){return _.q(W,_.sn(P.innertubeTransportService,Y,(u=S)==null?void 0:u.form).then(function(m){var J,c;S==null||(J=S.commandController)==null||(c=J.onSuccess)==null||c.call(J,Y,m)},function(m){var J,c;
S==null||(J=S.commandController)==null||(c=J.onServerError)==null||c.call(J,Y,m)}),0)})};
zP[Md]=[_.fV];var m3=function(){};
_.r(m3,Gw);m3.prototype.resolveCommand=function(Y){var S,P,u,W;return _.B(function(m){if(S=_.g(Y,_.l3_)){if(P=S.gtmId)u=_.X3("GL",""),_.JD(P,u);(W=S.gtmData)&&_.BU(W)}_.Yt(m)})};var nU=function(Y,S){this.innertubeTransportService=Y;this.JSC$14956_actionRouter=S};
_.r(nU,Gw);nU.prototype.resolveCommand=function(Y){var S=this,P,u;return _.B(function(W){P=_.g(Y,M5L);if(!P)return W.return();u=P.command;if(!u)return W.return();S.JSC$14956_actionRouter.triggerAction("yt-insert-rich-section-action",P);return _.q(W,_.sn(S.innertubeTransportService,u,{disableCache:!0}),0)})};
nU[Md]=[_.fV,tf];cC$.bind(null,hM);var XAU=cC$.bind(null,XVs);qBu.bind(null,hM);var Zqh=qBu.bind(null,XVs);bIK.bind(null,hM);var iqu=bIK.bind(null,XVs);var j$=function(){};
_.r(j$,Gw);
j$.prototype.resolveCommand=function(Y){var S,P,u,W,m,J,c,C,x,b;return _.B(function(T){S=_.g(Y,$Au);if(!S)return T.return();u=((P=S.operations)==null?void 0:P.operations)||[];W=_.n(u);for(m=W.next();!m.done;m=W.next())if(J=m.value,J.insertItemSectionContent){var K=J.insertItemSectionContent,G=K.contents||[];K.insertByPositionInSection?XAU(K.insertByPositionInSection.sectionTargetId,G,K.insertByPositionInSection.position):K.insertByRelativePositionInSection&&K.insertByRelativePositionInSection.sectionTargetId&&K.insertByRelativePositionInSection.itemTargetId&&
Zqh(K.insertByRelativePositionInSection.sectionTargetId,K.insertByRelativePositionInSection.itemTargetId,G,K.insertByRelativePositionInSection.relativePosition)}else J.replaceSection?(K=J.replaceSection,G={},K.replaceByTargetId?G=K.replaceByTargetId:K.replaceByGroupId&&(G={targetId:K.replaceByGroupId.groupId,newContent:K.replaceByGroupId.newContent,undoKey:""}),G.newContent&&oV_(G.targetId,{continuationItems:[G.newContent]})):J.removeItem?(K=J.removeItem,K.removeByTargetId&&K.sectionTargetId&&iqu(K.sectionTargetId,
K.removeByTargetId.targetIds||[])):J.removeSection&&(J.removeSection.removeByTargetId?(c=void 0,o66(((c=J.removeSection)==null?void 0:c.removeByTargetId.targetIds)||[])):J.removeSection.removeByGroupId&&(C=void 0,o66(((C=J.removeSection)==null?void 0:C.removeByGroupId.groupIds)||[])));b=((x=S.operations)==null?void 0:x.scrollConfig)||{};tgi(b);_.Yt(T)})};
var o66=function(Y){Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())oV_(S.value,{continuationItems:[]})},tgi=function(Y){if(Y.scrollToItem){var S=Y.scrollToItem.item||{},P=S.itemTargetId;
S=S.sectionTargetId;if(P&&S){var u=document.querySelector("[data-target-id="+S+"]"),W=u==null?void 0:u.querySelector("[data-target-id="+P+"]");u&&W&&setTimeout(function(){var m=W.offsetTop-u.offsetTop,J;if(((J=Y.scrollToItem)==null?void 0:J.scrollPosition)==="SCROLL_POSITION_CENTER")m-=u.offsetHeight/2,m+=W.offsetHeight/2;else{var c;((c=Y.scrollToItem)==null?void 0:c.scrollPosition)==="SCROLL_POSITION_END"&&(m-=u.offsetHeight,m+=W.offsetHeight)}u.scroll({top:m,behavior:"smooth"})},100)}}};var Jl=new _.yH("CLIENT_NAME_TOKEN");var ATt=new _.yH("DEFAULT_STORE_EXPIRATION_TOKEN");var XGK=new _.yH("CLIENT_LOCATION_SERVICE_TOKEN");var B1=function(Y,S,P){this.clientName=Y||_.X3("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=S||_.sR.getInstance();this.JSC$14984_commandHandler=P||_.zR.instance};
_.r(B1,Gw);B1.prototype.resolveCommand=function(Y){var S=this,P,u;return _.B(function(W){u=(P=_.g(Y,LIs))==null?void 0:P.onComplete;S.clientLocationService.clearLocationPlayabilityToken(S.clientName);u&&S.JSC$14984_commandHandler.resolveCommand(u);_.Yt(W)})};
B1[Md]=[Jl,XGK,_.uY];var c1=function(Y){this.innertubeTransportService=Y};
_.r(c1,Gw);c1.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J;return _.B(function(c){m=(u=S)==null?void 0:(W=u.form)==null?void 0:W.element;return _.q(c,_.sn(P.innertubeTransportService,Y,(J=S)==null?void 0:J.form).then(function(C){ZU1(m,new CustomEvent("yt-service-request-completed"),{data:C},_.X3("openPopupConfig"))}),0)})};
c1[Md]=[_.fV];var CU=function(){};
_.r(CU,Gw);CU.prototype.resolveCommand=function(Y){var S,P;return _.B(function(u){S=_.g(Y,U4f);P=document.querySelector("mini-app-container-view-model");if(!S||!P)return u.return();S.isPlaying?P.dispatchEvent(new Event("play")):P.dispatchEvent(new Event("pause"));_.Yt(u)})};var qu=function(){};
_.r(qu,Gw);qu.prototype.resolveCommand=function(Y){var S,P,u,W,m,J,c;return _.B(function(C){S=_.g(Y,LDt);if((P=S)==null||!P.paramKeys)return C.return();u=S.paramKeys;W=_.d7(window.location.href);m=_.n(u);for(J=m.next();!J.done;J=m.next())c=J.value,W.JSC$7905_queryData_.remove(c);window.history.replaceState(window.history.state,document.title,W.toString());_.Yt(C)})};var UB3=function(){this.dropdownMap=new Map};_.QpS=new _.yH("DROPDOWN_CONTROLLER_TOKEN");var RU=function(Y){this.controller=Y};
_.r(RU,Gw);RU.prototype.resolveCommand=function(Y){var S=this,P,u,W,m;return _.B(function(J){P=_.g(Y,BGU);if(!P)return J.return();u=P;W=u.dropdownId;m=u.selectedOptionIndex;if(W===void 0||m===void 0)return J.return();var c=S.controller.dropdownMap.get(W);c&&c(m);_.Yt(J)})};
RU[Md]=[_.QpS];var xC=function(Y){this.controller=Y};
_.r(xC,Gw);xC.prototype.resolveCommand=function(Y){var S=this,P;return _.B(function(u){return(P=_.g(Y,ZQu))?_.q(u,S.controller.closeDialog(),0):u.return()})};
xC[Md]=[_.bn];var bP=function(Y){this.controller=Y};
_.r(bP,Gw);bP.prototype.resolveCommand=function(Y){var S=this,P,u;return _.B(function(W){P=_.g(Y,KQ_);if(!P)return W.return();var m,J=P.panelIdentifier||((m=P.identifier)==null?void 0:m.tag);if(!J)throw Error("zi");return(u=J)?_.q(W,S.controller.hidePanel(u),0):W.jumpTo(0)})};
bP[Md]=[_.Rr];var TP=function(Y,S){this.innertubeTransportService=Y;this.controller=S};
_.r(TP,Gw);TP.prototype.resolveCommand=function(Y){var S=this,P,u,W,m;return _.B(function(J){if(J.nextAddress==1)return P=_.g(Y,ENf),(u=P)!=null&&u.panelId?_.q(J,S.controller.getReloadContinuation(P.panelId),2):J.return();if(J.nextAddress!=3)return(W=J.yieldResult)?_.q(J,_.sn(S.innertubeTransportService,Y,{continuation:W}),3):J.return();m=J.yieldResult;return _.q(J,S.controller.updatePanel(P.panelId,m.content,!1),0)})};
TP[Md]=[_.fV,_.Rr];var KU=function(Y,S,P){this.innertubeTransportService=Y;this.JSC$15020_screenManager=S;this.JSC$15020_commandHandler=P};
_.r(KU,Gw);
KU.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J,c;return _.B(function(C){if(C.nextAddress==1){P=_.g(Y,_.J7L);if(!P)return C.return();if(P.commands)for(u=_.n(P.commands),W=u.next();!W.done;W=u.next())m=W.value,S.JSC$15020_commandHandler.resolveCommand(m,{disableClickTracking:!0});J=_.Re(Y.clickTrackingParams);_.Ow(S.JSC$15020_screenManager,21760,J,{layer:7,parentLayer:0});return _.q(C,_.sn(S.innertubeTransportService,Y),2)}c=C.yieldResult;if(!c)return C.return();S.JSC$15020_screenManager.graftServerVe(c.trackingParams,J,
7);_.Yt(C)})};
KU[Md]=[_.fV,_.jG,_.uY];var ET=new _.yH("PANEL_LOADING_STRATEGY_TOKEN");var fU=function(Y,S){this.controller=Y;this.panelLoadingStrategy=S};
_.r(fU,Gw);
fU.prototype.resolveCommand=function(Y,S){var P=this,u,W,m;return _.B(function(J){u=_.g(Y,PAU);if((W=u)==null||!W.panelLoadingStrategy)return J.return();m=function(c){var C,x,b,T,K,G,v,a,w;return _.B(function(F){x=_.g((C=c.dialogViewModel)==null?void 0:C.header,c5t);b={viewModel:c.dialogViewModel};T={};if(v=_.f("web_enable_dialog_header_label")?(K=x)==null?void 0:(G=K.headline)==null?void 0:G.content:void 0)T.ariaLabel=v;u.dismissOnBackgroundTap===!1&&(T.isModal=!0);return c.dialogViewModel?_.q(F,
P.controller.openDialog(b,(a=S)==null?void 0:(w=a.form)==null?void 0:w.element,T),0):F.return()})};
return _.q(J,P.panelLoadingStrategy.execute({command:Y,data:u.panelLoadingStrategy,renderFn:m,createScreenConfig:{layer:4}}),0)})};
fU[Md]=[_.bn,ET];var g3=function(Y,S,P){this.innertubeTransportService=Y;this.controller=S;this.JSC$15040_screenManager=P};
_.r(g3,Gw);
g3.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c,C,x,b,T,K,G,v;return _.B(function(a){switch(a.nextAddress){case 1:u=_.g(Y,_.aB);if(!u)return a.return();var w,F=u.panelIdentifier||((w=u.identifier)==null?void 0:w.tag);if(!F)throw Error("zi");W=F;return _.q(a,P.controller.isVisible(W,!0),2);case 2:if((m=a.yieldResult)&&u.blockIfPanelOpen)return a.return();C=(c=(J=P.controller).getPanelContent)==null?void 0:c.call(J,W);if(!(w=C))if(u){var U;w=((U=u.globalConfiguration)==null?void 0:U.initialState)||
u.engagementPanel;if(U=!w)U=!!(u==null?0:(F=u.engagementPanelPresentationConfigs)==null?0:F.engagementPanelPopupPresentationConfig);U&&(w=_.TAf(u.panelIdentifier,u.identifier))}else w=void 0;x=w;b=u.engagementPanelPresentationConfigs;T=u.engagementPanelExtras;return _.q(a,P.controller.showPanel(W,x,b,T,(K=S)==null?void 0:(G=K.form)==null?void 0:G.element),3);case 3:if(!u.globalConfiguration){a.jumpTo(0);break}_.Ow(P.JSC$15040_screenManager,32633);return _.q(a,_.sn(P.innertubeTransportService,Y),5);
case 5:return v=a.yieldResult,P.JSC$15040_screenManager.graftServerVe(v.trackingParams),_.q(a,P.controller.updatePanel(W,v.content,!0,T,void 0,v.updatePanelContinuationData),0)}})};
g3[Md]=[_.fV,_.Rr,_.jG];var $C=function(Y,S){this.controller=Y;this.panelLoadingStrategy=S};
_.r($C,Gw);$C.prototype.resolveCommand=function(Y,S){var P=this,u,W,m;return _.B(function(J){u=_.g(Y,_.Rq);if((W=u)==null||!W.panelLoadingStrategy)return J.return();m=function(c){var C,x;return _.B(function(b){return c.sheetViewModel?_.q(b,P.controller.openSheet({viewModel:c.sheetViewModel},(C=S)==null?void 0:(x=C.form)==null?void 0:x.element),0):b.return()})};
return _.q(J,P.panelLoadingStrategy.execute({command:Y,data:u.panelLoadingStrategy,renderFn:m,createScreenConfig:{layer:0}}),0)})};
$C[Md]=[_.xx,ET];var r3=function(Y,S){this.controller=Y;this.JSC$15048_commandHandler=S};
_.r(r3,Gw);r3.prototype.resolveCommand=function(Y,S){var P=this,u,W,m;return _.B(function(J){if(J.nextAddress==1){u=_.g(Y,rV6);var c=_.g(u.showCommand,_.aB),C,x,b=(x=c==null?void 0:c.panelIdentifier)!=null?x:c==null?void 0:(C=c.identifier)==null?void 0:C.tag;if(!b)throw Error("Ai");W=b;return _.q(J,P.controller.isVisible(W),2)}return(m=J.yieldResult)?_.q(J,P.controller.hidePanel(W),0):_.q(J,P.JSC$15048_commandHandler.resolveCommand(u.showCommand,S),0)})};
r3[Md]=[_.Rr,_.uY];var GP=function(Y,S,P){this.innertubeTransportService=Y;this.controller=S;this.JSC$15051_screenManager=P};
_.r(GP,Gw);
GP.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V,M,zJ,O,ca;return _.B(function(hu){switch(hu.nextAddress){case 1:return u=P=_.g(Y,GfS),W=u.targetPanelIdentifier,m=u.contentSourcePanelIdentifier,J=u.globalConfiguration,((c=W)==null?0:c.tag)&&((C=m)==null?0:C.tag)?J?_.q(hu,S.controller.showPanel(W.tag,_.TAf(W.tag,W),void 0,void 0,void 0),5):_.q(hu,(K=(T=S.controller).getPanel)==null?void 0:K.call(T,m.tag),4):hu.return();case 4:G=hu.yieldResult;x=(v=G)==null?void 0:
(w=(a=v).getPanelContent)==null?void 0:w.call(a);hu.jumpTo(3);break;case 5:return _.q(hu,_.sn(S.innertubeTransportService,Y),6);case 6:F=hu.yieldResult,((U=F)==null?0:U.trackingParams)&&S.JSC$15051_screenManager.graftServerVe(F.trackingParams),x=(V=F)==null?void 0:V.content,b=(M=F)==null?void 0:M.updatePanelContinuationData;case 3:if(O=(zJ=x)==null?void 0:zJ.engagementPanelSectionListRenderer)return _.q(hu,S.controller.showPanel(W.tag,void 0,void 0,void 0,void 0,{content:O.content,secondaryHeaderContent:(ca=
O.header)!=null?ca:{},targetId:O.targetId},b),0);hu.jumpTo(0)}})};
GP[Md]=[_.fV,_.Rr,_.jG];var hl=function(Y,S){this.JSC$15059_commandHandler=Y;this.store=S};
_.r(hl,Gw);hl.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J;return _.B(function(c){if(c.nextAddress==1)return(P=_.g(Y,lHi))?_.q(c,_.SF(),2):c.return();u=c.yieldResult;if(!u)return c.return();fJK(u,S.store,(W=P)==null?void 0:W.languageCode);m=u.isSubtitlesOn()?_.Td("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.Td("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");J=_.ek(m);S.JSC$15059_commandHandler.resolveCommand(J);_.Yt(c)})};
hl[Md]=[_.uY,Jk];var v1=function(Y,S){this.shortsPlayerPromise=Y;this.JSC$15063_commandHandler=S};
_.r(v1,Gw);
v1.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J,c,C,x;return _.B(function(b){if(b.nextAddress==1)return(P=_.g(Y,Vdu))?_.q(b,S.shortsPlayerPromise,2):b.return();u=b.yieldResult;var T=geE(u);T!=null&&T.length||(u.loadModule("captions"),T=geE(u));W=T;if((m=W)==null||!m.length)return J=_.Td("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),c=_.ek(J),S.JSC$15063_commandHandler.resolveCommand(c),b.return();u.toggleSubtitles();C=u.isSubtitlesOn()?_.Td("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Td("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");x=_.ek(C);S.JSC$15063_commandHandler.resolveCommand(x);_.Yt(b)})};
v1[Md]=[_.h4J,_.uY];var D1=function(Y){this.JSC$15066_playerPromise=Y};
_.r(D1,Gw);D1.prototype.resolveCommand=function(Y){var S=this,P,u,W,m;return _.B(function(J){if(J.nextAddress==1)return(P=_.g(Y,gNd))?_.q(J,S.JSC$15066_playerPromise,2):J.return();u=J.yieldResult;W=u.getVideoData().video_id;P.videoId===W&&(m=Number(P.offsetFromVideoStartMilliseconds),m>=0&&u.seekTo(m/1E3));_.Yt(J)})};
D1[Md]=[_.HX];var kk6=_.JE("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),IU=function(Y){this.store=Y};
_.r(IU,Gw);
var MgU=function(Y){var S,P,u,W;return _.B(function(m){if(m.nextAddress==1)return S=_.X3("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,P=_.X3("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,u=S||P,Y.mainAppPlayer=new Xc(u),_.q(m,Y.mainAppPlayer.api,2);W=m.yieldResult;W.addEventListener("onStateChange",Y.JSC$15070_playerStateChangeListener.bind(Y));document.addEventListener("yt-page-data-updated",Y.pauseOnNavigation.bind(Y));window.addEventListener("state-navigatestart",
Y.pauseOnNavigation.bind(Y));_.Yt(m)})};
IU.prototype.JSC$15070_playerStateChangeListener=function(Y){switch(Y){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}yT_(this)};
var yT_=function(Y){Y.store.dispatch(_.qE("sfvAudioItemCurrentlyPlayingEntity",kk6,{key:kk6,externalVideoId:Y.externalVideoId,sfvAudioItemPlaybackState:Y.playbackState,nowPlayingEntityValue:Y.nowPlayingEntityValue}))};
IU.prototype.pauseOnNavigation=function(){var Y=this,S,P,u,W;return _.B(function(m){if(m.nextAddress==1){if(!Y.mainAppPlayer){var J=new _.$2("Error: mainAppPlayer is unavailable",Y.mainAppPlayer);_.p_(J);return m.return()}return _.q(m,Y.mainAppPlayer.api,2)}S=m.yieldResult;u=(P=S)==null?void 0:P.getPlayerState();u!==1||(W=S)!=null&&W.pauseVideo();_.Yt(m)})};
IU.prototype.playVideo=function(Y,S,P){var u=this,W,m;return _.B(function(J){if(J.nextAddress==1)return _.q(J,(W=u.mainAppPlayer)==null?void 0:W.api,2);m=J.yieldResult;if(!u.mainAppPlayer||!m){var c=new _.$2("Error: mainAppPlayer is unavailable",u.mainAppPlayer);_.p_(c);return J.return()}return _.q(J,u.mainAppPlayer.loadVideoWithPlayerVars({videoId:u.externalVideoId,audio_only:"1",start:Y/1E3,end:Y/1E3+S,player_params:P}),0)})};
IU.prototype.pauseVideo=function(){var Y=this,S,P;return _.B(function(u){if(u.nextAddress==1){if(!Y.mainAppPlayer){var W=new _.$2("Error: mainAppPlayer is unavailable",Y.mainAppPlayer);_.p_(W);return u.return()}return _.q(u,Y.mainAppPlayer.api,2)}S=u.yieldResult;(P=S)==null||P.pauseVideo();_.Yt(u)})};
IU.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V,M;return _.B(function(zJ){if(zJ.nextAddress==1)return P=_.g(Y,Mps),W=(u=P)==null?void 0:u.nowPlayingEntityValue,J=(m=P)==null?void 0:m.externalVideoId,T=Number((b=(c=P)==null?void 0:(C=c.defaultStartPoints)==null?void 0:(x=C[0])==null?void 0:x.offsetMs)!=null?b:"0"),F=Number((w=(K=P)==null?void 0:(G=K.defaultStartPoints)==null?void 0:(v=G[0])==null?void 0:(a=v.duration)==null?void 0:a.seconds)!=null?w:"15"),M=(V=
(U=P)==null?void 0:U.playerParams)!=null?V:"",W&&J?S.mainAppPlayer?zJ.jumpTo(2):_.q(zJ,MgU(S),2):zJ.return();if(zJ.nextAddress!=6){if(S.nowPlayingEntityValue&&W===S.nowPlayingEntityValue)return S.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.q(zJ,S.pauseVideo(),0):_.q(zJ,S.playVideo(T,F,M),0);S.externalVideoId=J;S.nowPlayingEntityValue=W;S.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.q(zJ,S.playVideo(T,F,M),6)}yT_(S);return zJ.jumpTo(0)})};
IU[Md]=[Jk];var aU=function(Y){this.JSC$15087_commandHandler=Y};
_.r(aU,Gw);aU.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c;return _.B(function(C){if(C.nextAddress==1)return(u=_.g(Y,XO3))?_.q(C,_.SF(),2):C.return();W=C.yieldResult;if(!W)return C.return();(m=h5X(W))?P.JSC$15087_commandHandler.resolveCommand(m,S):(J=_.Td("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),c=_.ek(J),P.JSC$15087_commandHandler.resolveCommand(c));_.Yt(C)})};
aU[Md]=[_.uY];var LU=function(Y){this.JSC$15090_playerPromise=Y};
_.r(LU,Gw);LU.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J;return _.B(function(c){if(c.nextAddress==1){P=_.g(Y,$K_);if(!P)return c.return();u=P.overlayRenderer;return u?(W=_.g(u,h2h))?_.q(c,S.JSC$15090_playerPromise,3):c.jumpTo(0):c.return()}m=c.yieldResult;m.renderChapterSeekingAnimation(1,_.Ma(W.text),(J=W.icon)==null?void 0:J.iconType);_.Yt(c)})};
LU[Md]=[_.HX];var w3=function(Y){this.store=Y};
_.r(w3,Gw);w3.prototype.resolveCommand=function(Y){var S=this,P,u,W;return _.B(function(m){if(m.nextAddress==1){P=_.g(Y,iXh);if(!P)return m.return();u="";(W=S.store.getState().collabInviteLink)&&P.id===W.playlistId?u=W.inviteLinkURL:P.shortUrl&&(u=P.shortUrl);return u?_.q(m,navigator.clipboard.writeText(u),3):m.jumpTo(0)}var J={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Td("COPY_LINK_SUCCESS_TOAST")}}}}};_.E().resolve(_.uY).resolveCommand(J);_.Yt(m)})};
w3[Md]=[YC];var pU=function(Y,S){this.innertubeTransportService=Y;this.JSC$15100_commandHandler=S};
_.r(pU,Gw);pU.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c,C,x,b,T,K;return _.B(function(G){if(G.nextAddress==1)return(u=_.g(Y,_.LP))?_.q(G,_.sn(P.innertubeTransportService,Y,(W=S)==null?void 0:W.form),2):G.return();(m=G.yieldResult)&&m.errorMetadata&&(J=m,c=_.ek(J.error.message),P.JSC$15100_commandHandler.resolveCommand(c));C=m;if((x=C)==null?0:x.actions)for(b=_.n(C.actions),T=b.next();!T.done;T=b.next())K=T.value,P.JSC$15100_commandHandler.resolveCommand(K);_.Yt(G)})};
pU[Md]=[_.fV,_.uY];var Fb=function(){};
_.r(Fb,Gw);Fb.prototype.resolveCommand=function(Y){var S;return _.B(function(P){S=_.g(Y,w9J);if(!S)return P.return();(new TbL(S)).show();_.Yt(P)})};_.sT=new _.yH("PLAYLIST_EDIT_CONTROLLER_TOKEN");var d3=function(Y,S,P,u){this.store=Y;this.innertubeTransportService=S;this.controller=P;this.JSC$15108_commandHandler=u};
_.r(d3,Gw);
d3.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V,M,zJ,O,ca,hu,ah,va,yX,la;return _.B(function(w1){if(w1.nextAddress==1){u=_.g(Y,_.hf);if(!u)return w1.return();if(u.clientActions){W=_.n(u.clientActions);for(m=W.next();!m.done;m=W.next())J=m.value,P.JSC$15108_commandHandler.resolveCommand(J);var U9,nu=S==null?void 0:(U9=S.form)==null?void 0:U9.element;nu&&_.ms(nu,"yt-dismissible-item-action",u.clientActions)}return _.q(w1,_.sn(P.innertubeTransportService,Y,(c=S)==
null?void 0:c.form),2)}if(C=w1.yieldResult)C.errorMetadata?(x=C,b=_.ek(x.error.message),P.JSC$15108_commandHandler.resolveCommand(b),"error"in C&&((T=S)==null?0:(K=T.commandController)==null?0:K.onServerError)&&((G=S)==null||(v=G.commandController)==null||v.onServerError(Y,C))):(a=S)==null||(w=a.commandController)==null||(U=(F=w).onSuccess)==null||U.call(F,Y,C);V=C;((M=V)==null?0:M.collaborationInviteLink)&&u.playlistId&&(_.f("web_enable_invite_collaborators_link")||_.f("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
P.store.dispatch(_.WT({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:u.playlistId,inviteLinkUrl:V.collaborationInviteLink}}));((zJ=V)==null?0:zJ.redirectEndpoint)&&P.JSC$15108_commandHandler.resolveCommand(V.redirectEndpoint);((O=V)==null?0:(ca=O.newHeader)==null?0:ca.playlistHeaderRenderer)?N9s(P.controller,V.newHeader.playlistHeaderRenderer):((hu=V)==null?0:(ah=hu.newHeader)==null?0:ah.musicEditablePlaylistDetailHeaderRenderer)&&N9s(P.controller,V.newHeader.musicEditablePlaylistDetailHeaderRenderer);
P.controller.playlistVideoListElement&&((va=V)==null?0:(yX=va.playlistEditResults)==null?0:(la=yX[0])==null?0:la.playlistEditVideoAddedResultData)&&((nu=P.controller.playlistVideoListElement)==null||nu.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:V.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Yt(w1)})};
d3[Md]=[YC,_.fV,_.sT,_.uY];var lP=function(Y,S){this.controller=Y;this.JSC$15118_commandHandler=S};
_.r(lP,Gw);lP.prototype.resolveCommand=function(Y,S){var P=this,u,W,m;return _.B(function(J){u=_.g(Y,oQ_);P.controller.showRefreshPill&&((W=u)==null?0:W.command)&&(P.JSC$15118_commandHandler.resolveCommand((m=u)==null?void 0:m.command,S),P.controller.showRefreshPill=!1);_.Yt(J)})};
lP[Md]=[_.kb,_.uY];var Xb=function(Y,S){this.store=Y;this.JSC$15122_commandHandler=S||_.zR.instance};
_.r(Xb,Gw);Xb.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c,C,x,b,T,K;return _.B(function(G){u=_.g(Y,Yxd);W=P.store.getState().radioButtonGroup;if((m=u)==null?0:m.command)P.JSC$15122_commandHandler.resolveCommand((J=u)==null?void 0:J.command,S);else if(((c=u)==null?void 0:c.formId)===W.currentFormId)for(C=Object.values(W.commandsMap),x=_.n(C),b=x.next();!b.done;b=x.next()){T=b.value;K=_.vF(T);if(!K)return G.return();P.JSC$15122_commandHandler.resolveCommand(K,S)}_.Yt(G)})};
Xb[Md]=[YC];var Z1=new _.yH("USER_PREFS");var iP=function(Y){this.JSC$15126_prefCookie=Y};
_.r(iP,Gw);iP.prototype.resolveCommand=function(Y){var S=this,P;return _.B(function(u){(P=_.g(Y,r_J))&&typeof P.useListView==="boolean"&&(_.rP(0,155,P.useListView),S.JSC$15126_prefCookie.save());_.Yt(u)})};
iP[Md]=[Z1];var oU=function(Y){this.JSC$15130_prefCookie=Y};
_.r(oU,Gw);oU.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J;return _.B(function(c){P=_.g(Y,F0U);if((u=P)==null||!u.gl)return c.return();W=P.gl;m={persist_gl:"1",gl:W};S.JSC$15130_prefCookie.set("gl",W);S.JSC$15130_prefCookie.save();J=_.tS_(m);_.aK(J);_.Yt(c)})};
oU[Md]=[Z1];var tl=function(Y){this.JSC$15134_prefCookie=Y};
_.r(tl,Gw);tl.prototype.resolveCommand=function(Y){var S=this,P,u;return _.B(function(W){P=_.g(Y,A_d);if(!P)return W.return();u=!1;P.flagNum&&typeof P.value==="boolean"?(_.rP(0,P.flagNum,P.value),u=!0):P.key&&typeof P.stringValue==="string"&&(S.JSC$15134_prefCookie.set(P.key,P.stringValue),u=!0);u&&S.JSC$15134_prefCookie.save();_.Yt(W)})};
tl[Md]=[Z1];var Al=new _.yH("PREF_STORAGE_PROMISE_TOKEN");var UT=function(Y){this.JSC$15138_prefStoragePromise=Y};
_.r(UT,Gw);UT.prototype.resolveCommand=function(Y){var S=this,P,u;return _.B(function(W){if(W.nextAddress==1)return(P=_.g(Y,QLm))?_.q(W,S.JSC$15138_prefStoragePromise,2):W.return();u=W.yieldResult;return u===void 0||P.key===void 0||P.value===void 0?W.return():_.q(W,u.set(P.key,P.value),0)})};
UT[Md]=[Al];var Hqi=function(Y){this.innertubeTransportService=Y};
_.r(Hqi,Gw);Hqi.prototype.resolveCommand=function(Y,S){var P=this,u,W;return _.B(function(m){(u=_.g(Y,_.bDs))&&u&&u.isFirstRequest&&(_.pb("search_overview_answer"),_.Fk("so_rq",void 0,"search_overview_answer"));return _.q(m,_.sn(P.innertubeTransportService,Y,(W=S)==null?void 0:W.form),0)})};
Hqi[Md]=[_.fV];var VgL=function(){};
_.r(VgL,Gw);
VgL.prototype.resolveCommand=function(Y){var S,P,u,W,m,J,c,C,x;return _.B(function(b){S=_.g(Y,fTu);if((P=S)==null?0:P.sectionIdentifier){if(S.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(W=(u=document.getElementsByTagName(S.sectionIdentifier))==null?void 0:u.item(0))W.scrollIntoView({behavior:"smooth"}),(m=$y$(W))&&m.focus({preventScroll:!0});return b.return()}J=document.querySelector("[section-identifier="+S.sectionIdentifier+"]");c=document.querySelector("[section-identifier="+S.referenceSectionIdentifier+
"]");if(!J)return b.return();C=S.verticalScrollOffsetDp?S.verticalScrollOffsetDp:0;c&&(C-=c.offsetTop);window.scrollTo({top:J.offsetTop+C,behavior:"smooth"});(x=$y$(J))&&x.focus({preventScroll:!0})}_.Yt(b)})};var QS=function(){};
_.r(QS,Gw);
QS.prototype.resolveCommand=function(Y){var S,P,u,W,m,J,c;return _.B(function(C){if(C.nextAddress==1){S=_.g(Y,Afh);if(!S||!S.imageBytes||!navigator.clipboard)return C.return();if(S.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.p_(Error("Bi")),C.return();_.ND(C,2);u=(P=S)==null?void 0:P.imageBytes;W=u.replace(/-/g,"+").replace(/_/g,"/");m=JCE(W);J={};c=[new ClipboardItem((J[m.type]=m,J))];return _.q(C,navigator.clipboard.write(c),4)}if(C.nextAddress!=2)return _.tc(C,0);
_.O4(C);_.Yt(C)})};var kC=function(Y,S){this.innertubeTransportService=Y;this.JSC$15153_commandHandler=S};
_.r(kC,Gw);kC.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c;return _.B(function(C){if(C.nextAddress==1)return(u=_.g(Y,U$S))?_.q(C,_.sn(P.innertubeTransportService,Y,(W=S)==null?void 0:W.form),2):C.return();(m=C.yieldResult)&&m.errorMetadata&&u.onFailureCommand&&P.JSC$15153_commandHandler.resolveCommand(u.onFailureCommand);J=m;((c=J)==null?0:c.shareCommand)&&P.JSC$15153_commandHandler.resolveCommand(J.shareCommand,S);_.Yt(C)})};
kC[Md]=[_.fV,_.uY];var Mu=function(){};
_.r(Mu,Gw);Mu.prototype.resolveCommand=function(Y){var S,P;return _.B(function(u){S=_.g(Y,ZXi);if(!S||!navigator.share)return u.return();P={url:S.url};try{return u.return(navigator.share(P))}catch(W){}_.Yt(u)})};var yS=function(){};
_.r(yS,Gw);yS.prototype.resolveCommand=function(){return _.B(function(Y){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Yt(Y)})};var Nu=function(Y){this.JSC$15163_navigationConfirmationService=Y};
_.r(Nu,Gw);Nu.prototype.resolveCommand=function(){var Y=this;return _.B(function(S){Y.JSC$15163_navigationConfirmationService.cancelPendingNavigation();_.Yt(S)})};
Nu[Md]=[zX];var H1=function(Y){this.JSC$15166_screenManager=Y};
_.r(H1,Gw);H1.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c,C,x;return _.B(function(b){W=(u=S.form)==null?void 0:u.event;J=(m=S.form)==null?void 0:m.element;if(!W)throw new _.$2("Event not passed in when resolving command");c=_.n(W.composedPath());for(C=c.next();!C.done;C=c.next())if(x=C.value,x.tagName==="YT-COPY-LINK-RENDERER")return x.copyUrlToClipboard(),J&&_.wL(P.JSC$15166_screenManager,J),b.return();_.Yt(b)})};
H1[Md]=[_.jG];var VS=function(){this.JSC$15170_miniAppClientDataProvider=_.E().resolve(_.hN)};
_.r(VS,Gw);VS.prototype.resolveCommand=function(){var Y=this,S,P;return _.B(function(u){if(Y.JSC$15170_miniAppClientDataProvider.clientData.has("video_id")){var W=Y.JSC$15170_miniAppClientDataProvider,m=W.clientData.get("video_id");m&&W.clientData.delete("video_id");S="https://youtube.com/watch?v="+m;P=j2(S);if(P===void 0)throw Error("Ci`"+S);_.$U(window,P)}_.Yt(u)})};var e$=function(){};
_.r(e$,Gw);e$.prototype.resolveCommand=function(){return _.B(function(Y){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Yt(Y)})};var OT=function(){};
_.r(OT,Gw);OT.prototype.resolveCommand=function(){var Y;return _.B(function(S){if(S.nextAddress==1)return _.q(S,_.Olh(window.document.documentElement),2);(Y=document.querySelector("mini-app-container-view-model iframe"))&&Y.focus();_.Yt(S)})};var YK=function(Y){this.JSC$15177_navigationConfirmationService=Y};
_.r(YK,Gw);
YK.prototype.resolveCommand=function(){var Y=this;return _.B(function(S){var P=Y.JSC$15177_navigationConfirmationService,u=_.E().resolve(_.OG),W;if(((W=P.navigateParams)==null?void 0:W.data)!==void 0){var m;_.RZi(u,P.navigateParams.endpoint,P.navigateParams.data,(m=P.navigateParams.navigationType)!=null?m:1,P.navigateParams.tempData,P.navigateParams.isMiniplayer,void 0,!0);P.navigateParams=void 0;P.customConfirmationCommand=void 0}else P.navigateParams&&(u.navigate(P.navigateParams.endpoint,P.navigateParams.reload,
P.navigateParams.params,P.navigateParams.tempData,P.navigateParams.requestType,P.navigateParams.createScreenConfig,!0),P.navigateParams=void 0,P.customConfirmationCommand=void 0);_.Yt(S)})};
YK[Md]=[zX];var Ss=function(){};
_.r(Ss,Gw);Ss.prototype.resolveCommand=function(){return _.B(function(Y){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Yt(Y)})};var PD=function(Y){this.JSC$15182_prefStorage=Y};
_.r(PD,Gw);PD.prototype.resolveCommand=function(){var Y=this,S,P;return _.B(function(u){switch(u.nextAddress){case 1:return _.q(u,Y.JSC$15182_prefStorage,2);case 2:return(S=u.yieldResult)?_.q(u,S.set("sfvle",!1),3):u.return();case 3:return _.q(u,S.set("sfvles",!0),4);case 4:P=_.$o(),_.rP(0,203,!1),_.rP(0,204,!0),P.save(),_.Yt(u)}})};
PD[Md]=[Al];var ut=function(Y){this.JSC$15185_prefStorage=Y};
_.r(ut,Gw);ut.prototype.resolveCommand=function(){var Y=this,S,P;return _.B(function(u){switch(u.nextAddress){case 1:return _.q(u,Y.JSC$15185_prefStorage,2);case 2:return(S=u.yieldResult)?_.q(u,S.set("sfvle",!0),3):u.return();case 3:return _.q(u,S.set("sfvles",!0),4);case 4:P=_.$o(),_.rP(0,203,!0),_.rP(0,204,!0),P.save(),_.Yt(u)}})};
ut[Md]=[Al];var WD=function(){};
_.r(WD,Gw);WD.prototype.resolveCommand=function(Y){var S;return _.B(function(P){S=_.g(Y,UAi);if(!S||typeof S.key!=="string"||typeof S.value!=="string")return P.return();window.localStorage.setItem(S.key,S.value);_.Yt(P)})};var za=function(Y){this.store=Y};
_.r(za,Gw);za.prototype.resolveCommand=function(Y){var S=this,P;return _.B(function(u){P=_.g(Y,EDX);if(!P||!P.stepId||!P.token)return u.return();S.store.dispatch(DHu({stepId:P.stepId,token:P.token,isSelected:!1}));_.Yt(u)})};
za[Md]=[YC];var mr=function(Y,S,P){this.innertubeTransportService=Y;this.store=S;this.JSC$15196_screenManager=P};
_.r(mr,Gw);
mr.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V,M,zJ,O,ca,hu;return _.B(function(ah){P=_.g(Y,yvh);if(!P||(u=P.stepIds)==null||!u.length)return ah.return();W=S.store.getState().talkToRecs;m=[];J=[];c=_.n(P.stepIds);for(C=c.next();!C.done;C=c.next())for(x=C.value,b=void 0,(T=(b=W.stepStates[x])==null?void 0:b.userQuery)&&J.push({userQuery:T.userQuery,userQueryToken:T.token}),K=void 0,G=(K=W.stepStates[x])==null?void 0:K.selectionStates,v=_.n(Object.entries(G)),a=
v.next();!a.done;a=v.next())w=a.value,F=_.n(w),U=F.next().value,V=F.next().value,M=U,zJ=V,zJ.isSelected&&m.push(M);O={selectedChipTokens:m,userQueries:J,submittedStepIds:P.stepIds};ca={browseTalk2recsFormData:O};P.browseEndpoint?(hu=Y,_.g8(hu,_.CV,P.browseEndpoint)):P.command&&(hu=P.command);return hu?_.q(ah,_.sn(S.innertubeTransportService,hu,{formData:ca,disableCache:!0}).then(function(va){(va==null?0:va.trackingParams)&&S.JSC$15196_screenManager.graftServerVe(va==null?void 0:va.trackingParams)}),
0):ah.return()})};
mr[Md]=[_.fV,YC,_.jG];var n3=function(Y){this.store=Y};
_.r(n3,Gw);n3.prototype.resolveCommand=function(Y){var S=this,P;return _.B(function(u){P=_.g(Y,Kga);if(!P||!P.stepId||!P.token)return u.return();S.store.dispatch(DHu({stepId:P.stepId,token:P.token,isSelected:!0}));_.Yt(u)})};
n3[Md]=[YC];var js=function(Y){this.store=Y};
_.r(js,Gw);js.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c;return _.B(function(C){u=_.g(Y,NVs);if(!u||!u.stepId||!u.userQueryToken)return C.return();c=(J=(W=S)==null?void 0:(m=W.form)==null?void 0:m.userQuery)!=null?J:"";P.store.dispatch(_.WT({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:u.stepId,userQueryToken:u.userQueryToken,userQuery:c}}));_.Yt(C)})};
js[Md]=[YC];_.e86=new _.yH("TIMELY_ACTIONS_CONTROLLER_TOKEN");var J4=function(Y){this.controller=Y};
_.r(J4,Gw);J4.prototype.resolveCommand=function(Y){var S=this,P,u,W,m;return _.B(function(J){P=_.g(Y,Tgm);if(!P)return J.return();u=P;W=u.id;m=u.isVisible;if(W===void 0||m===void 0)return J.return();var c;(c=S.controller.timelyActionsMap.get(W))==null||c(W,m);_.Yt(J)})};
J4[Md]=[_.e86];var Oqf=function(){this.timelyActionsMap=new Map};var BD=function(Y){this.JSC$15223_commandHandler=Y};
_.r(BD,Gw);BD.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J;return _.B(function(c){P=_.g(Y,_.$if);if(!P)return c.return();m=(u=P.item)==null?void 0:(W=u.notificationTextRenderer)==null?void 0:W.successResponseText;if(!m)return c.return();J=_.Vc(m);S.JSC$15223_commandHandler.resolveCommand(J);_.Yt(c)})};
BD[Md]=[_.uY];var cD=function(Y,S){this.innertubeTransportService=Y;this.JSC$15228_playerApiPromise=S};
_.r(cD,Gw);
cD.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J,c,C,x,b;return _.B(function(T){if(T.nextAddress==1)return _.q(T,S.JSC$15228_playerApiPromise,2);P=T.yieldResult;u=P.getOption("captions","track");W=Object.assign({},_.g(Y,_.cyt));(J=(m=P.getVideoData())==null?void 0:m.video_id)?W.externalVideoId=J:_.AA(Error("Di"));if((c=u)==null?0:c.languageCode)W.languageCode=u.languageCode;if((C=u)==null?0:C.kind)W.kind=u.kind;if((x=u)==null?0:x.name)W.name=u.name;b=Object.assign({},Y,{getTranscriptEndpoint:W});return _.q(T,
_.sn(S.innertubeTransportService,b),0)})};
cD[Md]=[_.fV,_.HX];var C3=function(){};
_.r(C3,Gw);C3.prototype.resolveCommand=function(Y){var S,P,u,W,m,J,c,C;return _.B(function(x){S=_.g(Y,OX_);if((P=S)==null||!P.paramKeyValuePairs)return x.return();u=window.location.href;W=_.n(S.paramKeyValuePairs);for(m=W.next();!m.done;m=W.next())J=m.value,J.key&&J.value&&(c={},u=_.y4(u,(c[J.key]=J.value,c)));C=_.E().resolve(_.Pb);_.SM(C,u);_.Yt(x)})};var qk=function(Y,S){this.JSC$15235_commandHandler=Y;this.innertubeTransportService=S};
_.r(qk,Gw);
qk.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V;return _.B(function(M){switch(M.nextAddress){case 1:return(m=(u=S)==null?void 0:(W=u.form)==null?void 0:W.element)&&_.MF(m),J=_.$o().get("hl"),c="",_.ND(M,2),_.q(M,aJ9(J),4);case 4:c=M.yieldResult;_.tc(M,3);break;case 2:return _.O4(M),m&&_.yi(m),_.p_(Error("Fi"),"ERROR"),M.return();case 3:C=_.g(Y,FD3);if(!C)return m&&_.yi(m),M.return();(T=(x=C.commerceActionConfig)==null?void 0:(b=x.commandLifeCycleConfig)==null?
void 0:b.onStartCommand)&&P.JSC$15235_commandHandler.resolveCommand(T);return _.q(M,_.sn(P.innertubeTransportService,Y,{client_data:{paymentsClientToken:{token:c}}}),5);case 5:(K=M.yieldResult)?(m&&_.yi(m),((w=K)==null?0:w.command)&&P.JSC$15235_commandHandler.resolveCommand(K.command),(V=(F=C.commerceActionConfig)==null?void 0:(U=F.commandLifeCycleConfig)==null?void 0:U.onSuccessCommand)&&P.JSC$15235_commandHandler.resolveCommand(V)):(m&&_.yi(m),_.p_(Error("Gi")),(a=(G=C.commerceActionConfig)==null?
void 0:(v=G.commandLifeCycleConfig)==null?void 0:v.onFailureCommand)&&P.JSC$15235_commandHandler.resolveCommand(a)),_.Yt(M)}})};
qk[Md]=[_.uY,_.fV];var RE=function(Y,S,P){this.store=Y;this.JSC$15251_commandHandler=S;this.innertubeTransportService=P};
_.r(RE,Gw);
RE.prototype.resolveCommand=function(Y,S){var P=this,u,W,m,J,c,C,x,b,T;return _.B(function(K){u=_.g(Y,sQU);W=u.googlePaymentPayload;u.onStartCommand&&P.JSC$15251_commandHandler.resolveCommand(u.onStartCommand);m=W.encryptedPurchaseParams;J=W.ypcLogWalletAnalyticDataEndpoint;c=u.serializedTransactionFlowLoggingParams;C=W.serializedPaymentsClientParams;x=u.ypcCujContext;T=pia(P.innertubeTransportService,(b=S)==null?void 0:b.form,m,J,c,C,x);return K.return(T.then(function(G){LxU(S==null?void 0:S.form,
!1);var v=P.store,a=P.JSC$15251_commandHandler,w=G.integratorData;w==null||w===""||G.error!=null?(String(G.error)==="-1"&&u.onDismissCommand?a.resolveCommand(u.onDismissCommand):String(G.error)!=="-1"&&u.onFailureCommand&&a.resolveCommand(u.onFailureCommand),String(G.error)!=="-1"&&String(G.error)!=="132"&&_.p_(Error("Hi"),"ERROR")):(u.googlePaymentEntityKey&&v.dispatch(_.qE("commerceAcquisitionClientPayloadEntity",u.googlePaymentEntityKey,{key:u.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:w,
fundsGuaranteeCallbackClientData:G.integratorClientCallbackData}}})),u.onSuccessCommand&&a.resolveCommand(u.onSuccessCommand));_.Cb()},function(G){LxU(S==null?void 0:S.form,!1);
_.p_(G,"ERROR");u.onFailureCommand&&P.JSC$15251_commandHandler.resolveCommand(u.onFailureCommand)}))})};
RE[Md]=[Jk,_.uY,_.fV];var xK=function(Y,S){this.JSC$15255_commandHandler=Y;this.purchaseManager=S};
_.r(xK,Gw);
xK.prototype.resolveCommand=function(Y){var S=this,P,u,W,m,J,c,C,x,b;return _.B(function(T){P=_.g(Y,dnh);((u=P)==null?0:(W=u.commandLifeCycleConfig)==null?0:W.onStartCommand)&&S.JSC$15255_commandHandler.resolveCommand(P.commandLifeCycleConfig.onStartCommand);if(!((m=P)==null?0:(J=m.googlePaymentPurchaseManagerPayload)==null?0:J.securePayloadBytes))return _.p_(Error("Ii"),"ERROR"),T.return();c=cEd(_.z3(P.googlePaymentPurchaseManagerPayload.securePayloadBytes));C=_.$o().get("hl");x=_.dL();JTf(c.serialize(),
C,function(K){x.resolve(K)},function(K){x.reject(K)},x.resolve);
b=x.promise;return T.return(b.then(function(K){if(K)if(K==null?0:K.errorCode){_.p_(Error("Ji`"+K.errorCode),"ERROR");var G,v;((G=P)==null?0:(v=G.commandLifeCycleConfig)==null?0:v.onFailureCommand)&&S.JSC$15255_commandHandler.resolveCommand(P.commandLifeCycleConfig.onFailureCommand)}else if(K==null?0:K.isCancelled){var a,w;((a=P)==null?0:(w=a.commandLifeCycleConfig)==null?0:w.onCancelCommand)&&S.JSC$15255_commandHandler.resolveCommand(P.commandLifeCycleConfig.onCancelCommand)}else{var F,U;((F=P)==
null?0:(U=F.commandLifeCycleConfig)==null?0:U.onSuccessCommand)&&S.JSC$15255_commandHandler.resolveCommand(P.commandLifeCycleConfig.onSuccessCommand)}},function(K){_.p_(K,"ERROR");
var G,v;((G=P)==null?0:(v=G.commandLifeCycleConfig)==null?0:v.onFailureCommand)&&S.JSC$15255_commandHandler.resolveCommand(P.commandLifeCycleConfig.onFailureCommand)}))})};
xK[Md]=[_.uY,B93];var Y0S=function(Y,S){this.JSC$15263_commandHandler=Y;this.commandAllowlistOverride=S;var P;this.commandAllowlist=(P=this.commandAllowlistOverride)!=null?P:lN};
Y0S.prototype.handleResponse=function(Y,S,P){var u,W=S==null?void 0:(u=S.config)==null?void 0:u.command;if(!W||this.commandAllowlist.some(function(m){return!!_.g(W,m)})){S=void 0;
P!==void 0&&(S={form:{element:P}});Y.onResponseReceivedCommand&&this.JSC$15263_commandHandler.resolveCommand(Y.onResponseReceivedCommand,S);Y.onResponseReceivedAction&&this.JSC$15263_commandHandler.resolveCommand(Y.onResponseReceivedAction,S);Y.onResponseReceivedEndpoint&&this.JSC$15263_commandHandler.resolveCommand(Y.onResponseReceivedEndpoint,S);Y.command&&this.JSC$15263_commandHandler.resolveCommand(Y.command,S);if(Y.onResponseReceivedCommands)for(P=_.n(Y.onResponseReceivedCommands),u=P.next();!u.done;u=
P.next())this.JSC$15263_commandHandler.resolveCommand(u.value,S);if(Y.onResponseReceivedActions)for(P=_.n(Y.onResponseReceivedActions),u=P.next();!u.done;u=P.next())this.JSC$15263_commandHandler.resolveCommand(u.value,S);if(Y.onResponseReceivedEndpoints)for(P=_.n(Y.onResponseReceivedEndpoints),u=P.next();!u.done;u=P.next())this.JSC$15263_commandHandler.resolveCommand(u.value,S);if(Y.actions)for(Y=_.n(Y.actions),P=Y.next();!P.done;P=Y.next())this.JSC$15263_commandHandler.resolveCommand(P.value,S)}};
Y0S[Md]=[_.uY,_.PQ(vKJ)];var S06=new _.yH("INNERTUBE_TOKEN_SERVICE");var P$s=new _.yH("SCHEDULER_TOKEN");var u9S=function(Y){this.scheduler=Y;Y={};this.tokenMap=(Y.app={},Y.user={},Y)};
u9S.prototype.handleResponse=function(Y,S){if(!S)throw Error("Ki");var P;if(Y=(P=Y.responseContext)==null?void 0:P.innertubeTokenJar){if(Y.appTokens){var u,W,m;P=(u=S.innerTubeRequest.context)==null?void 0:(W=u.request)==null?void 0:(m=W.innertubeTokenJar)==null?void 0:m.appTokens;WYi(this,Y.appTokens,this.tokenMap.app,P)}if(Y.userTokens){var J,c,C;S=(J=S.innerTubeRequest.context)==null?void 0:(c=J.request)==null?void 0:(C=c.innertubeTokenJar)==null?void 0:C.userTokens;WYi(this,Y.userTokens,this.tokenMap.user,
S)}}};
u9S.prototype.processContext=function(Y){Y.request||(Y.request={});var S=Object.keys(this.tokenMap.app).length,P=Object.keys(this.tokenMap.user).length;if(S||P)Y.request.innertubeTokenJar={},S&&(Y.request.innertubeTokenJar.appTokens=[].concat(_.cz(Object.values(this.tokenMap.app).flat()))),P&&(Y.request.innertubeTokenJar.userTokens=[].concat(_.cz(Object.values(this.tokenMap.user).flat())))};
var WYi=function(Y,S,P,u){S=_.n(S);for(var W=S.next(),m={};!W.done;m={token$jscomp$137:void 0},W=S.next()){m.token$jscomp$137=W.value;if(m.token$jscomp$137.type===void 0)throw new _.$2("InnerTube token has no type",m.token$jscomp$137);if(m.token$jscomp$137.clearTokens)P[m.token$jscomp$137.type]=[];else if(m.token$jscomp$137.value!==void 0){P[m.token$jscomp$137.type]||(P[m.token$jscomp$137.type]=[]);if(u!==void 0&&u.length){W=_.n(u);for(var J=W.next(),c={};!J.done;c={requestToken:void 0},J=W.next())c.requestToken=
J.value,J=P[m.token$jscomp$137.type].findIndex(function(C){return function(x){return x===C.requestToken||(0,_.RY.equals)(x,C.requestToken)}}(c)),J>-1&&P[m.token$jscomp$137.type].splice(J,1)}P[m.token$jscomp$137.type].push(m.token$jscomp$137);
m.token$jscomp$137.maxAgeSeconds&&Number(m.token$jscomp$137.maxAgeSeconds)>0&&Y.scheduler.addLowPriorityJob(function(C){return function(){var x=P[C.token$jscomp$137.type].indexOf(C.token$jscomp$137);x>-1&&P[C.token$jscomp$137.type].splice(x,1)}}(m),Number(m.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.$2("InnerTube token has no value",m.token$jscomp$137);
}};
u9S[Md]=[P$s];var zPS=new _.yH("LOCAL_INNERTUBE_ROUTER_TOKEN"),mos=new _.yH("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var bt=function(Y){this.serviceMap=Y};
bt.prototype.shouldPreferLocalResponse=function(Y,S){return(Y=nv_(this,Y))?Y.shouldPreferLocalResponse(S):!1};
bt.prototype.localInnertubeResponse=function(Y,S){var P=this,u;return _.B(function(W){return(u=nv_(P,Y))?W.return(u.localInnertubeResponse(S)):W.return(Promise.reject(Error("Li")))})};
bt.prototype.canProvideFallbackResponse=function(Y,S){return(Y=nv_(this,Y))?Y.canProvideFallbackResponse(S):!1};
bt.prototype.localFallbackInnertubeResponse=function(Y,S){var P=this,u;return _.B(function(W){return(u=nv_(P,Y))?W.return(u.localFallbackInnertubeResponse(S)):W.return(Promise.reject(Error("Li")))})};
var nv_=function(Y,S){S=_.Cz(S);return S?(Y=Y.serviceMap[S])?Y:null:null};
bt[Md]=[mos];var gx=function(){};
gx.prototype.shouldPreferLocalResponse=function(){return!1};
gx.prototype.localInnertubeResponse=function(){return _.B(function(Y){return Y.return(Promise.reject(Error("Mi")))})};
gx.prototype.canProvideFallbackResponse=function(){return!0};
gx.prototype.localFallbackInnertubeResponse=function(){var Y,S,P;return _.B(function(u){Y=gH("CLOSE_POPUP");S={openPopupAction:sHE()};P={actions:[Y,S]};return u.return(P)})};var JZ1=function(Y,S){this.JSC$15313_upliftPromise=Y;this.store=S};
_.z=JZ1.prototype;_.z.shouldPreferLocalResponse=function(Y){var S=Y.videoId,P;if(P=S)P=UJU(this.store.getState().entities,Y.videoId);return P&&QMK(this.store.getState().entities,S)?lJY(this.store.getState().entities,Y.playlistId):!1};
_.z.localInnertubeResponse=function(Y){var S=this,P;return _.B(function(u){return(P=S.getPlayerResponse(Y))?u.return(Promise.resolve(P)):u.return(Promise.reject(Error("Ni")))})};
_.z.canProvideFallbackResponse=function(Y){return!!Y.videoId};
_.z.localFallbackInnertubeResponse=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,S.JSC$15313_upliftPromise,2);P=S.getPlayerResponse(Y);var W;P?W=u.return(Promise.resolve(P)):W=rT(S.store.getState().entities,Y.videoId)?u.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Sk(_.Td("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:F7U()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
u.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Sk(_.Td("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:plU()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return W})};
_.z.getPlayerResponse=function(Y){return yn1(this.store.getState().entities,Y.videoId)};var fa=function(Y,S){this.localPlayerService=Y;this.localWatchNextService=S};
fa.prototype.shouldPreferLocalResponse=function(Y){var S=Y.playerRequest;Y=Y.watchNextRequest;return!!(S&&this.localPlayerService.shouldPreferLocalResponse(S)&&Y&&this.localWatchNextService.shouldPreferLocalResponse(Y))};
fa.prototype.localInnertubeResponse=function(Y){var S=this,P,u,W,m;return _.B(function(J){if(J.nextAddress==1){P=Y.playerRequest;u=Y.watchNextRequest;if(!P||!u)throw new _.$2("Missing streaming request",Y);return _.q(J,S.localPlayerService.localInnertubeResponse(P),2)}if(J.nextAddress!=3)return W=J.yieldResult,_.q(J,S.localWatchNextService.localInnertubeResponse(u),3);m=J.yieldResult;return J.return({playerResponse:W,watchNextResponse:m})})};
fa.prototype.canProvideFallbackResponse=function(Y){var S=Y.playerRequest;Y=Y.watchNextRequest;return!!(S&&this.localPlayerService.canProvideFallbackResponse(S)&&Y&&this.localWatchNextService.canProvideFallbackResponse(Y))};
fa.prototype.localFallbackInnertubeResponse=function(Y){var S=this,P,u,W,m;return _.B(function(J){if(J.nextAddress==1)return P=Y.playerRequest,u=Y.watchNextRequest,P&&u?_.q(J,S.localPlayerService.localFallbackInnertubeResponse(P),2):J.return(Promise.reject(new _.$2("Missing streaming request",Y)));if(J.nextAddress!=3)return W=J.yieldResult,_.q(J,S.localWatchNextService.localFallbackInnertubeResponse(u),3);m=J.yieldResult;return J.return({playerResponse:W,watchNextResponse:m})})};var TU=function(Y){this.JSC$15323_persistentStorePromiseAccessor=Y};
TU.prototype.shouldPreferLocalResponse=function(){return!1};
TU.prototype.localInnertubeResponse=function(){return _.B(function(Y){return Y.return(Promise.reject(Error("Oi")))})};
TU.prototype.canProvideFallbackResponse=function(){return!0};
TU.prototype.localFallbackInnertubeResponse=function(){var Y=this,S,P;return _.B(function(u){return u.nextAddress==1?_.q(u,Y.JSC$15323_persistentStorePromiseAccessor(),2):u.nextAddress!=3?(S=u.yieldResult)?_.q(u,S.get("service:guide:fallback"),3):u.return(Promise.reject(Error("Pi"))):(P=u.yieldResult)&&_.na(P)?u.return(Xiu(_.na(P))):u.return(Promise.reject(Error("Qi")))})};var $X=function(){};
$X.prototype.shouldPreferLocalResponse=function(){return!1};
$X.prototype.localInnertubeResponse=function(){return _.B(function(Y){return Y.return(Promise.reject(Error("Ri")))})};
$X.prototype.canProvideFallbackResponse=function(){return!0};
$X.prototype.localFallbackInnertubeResponse=function(){var Y,S,P;return _.B(function(u){Y=gH("CLOSE_POPUP");S={openPopupAction:sHE()};P={actions:[Y,S]};return u.return(P)})};var b1=function(){this.urlMap=j2t;this.fallbackCommand=_.ja};
b1.prototype.shouldPreferLocalResponse=function(Y){return(Y=Y.url)?!!JHd(this,Y):!1};
b1.prototype.localInnertubeResponse=function(Y){var S=this,P;return _.B(function(u){return(P=Y.url)?u.return(Bls(Y,JHd(S,P))):u.return(Promise.reject(Error("Si")))})};
b1.prototype.canProvideFallbackResponse=function(){return!0};
b1.prototype.localFallbackInnertubeResponse=function(Y){var S=this,P,u,W,m,J,c,C;return _.B(function(x){P=Y.url;if(!P)return x.return(Bls(Y,S.fallbackCommand));if(u=JHd(S,P))return x.return(Bls(Y,u));W=void 0;m=_.Cz(P);m==="/watch"&&(J=_.FI(P,"v"))&&(C=(c=_.FI(P,"list"))!=null?c:void 0,W=_.YW(J,C));W||(W=S.fallbackCommand);return x.return(Bls(Y,W))})};
var JHd=function(Y,S){if(S)return Y.urlMap[_.A9(S)]},Bls=function(Y,S){S&&Y.parentTrackingParams&&(S.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:Y.parentTrackingParams}},S.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:S})};var Ka=function(Y,S,P){this.JSC$15333_upliftPromise=Y;this.store=S;this.JSC$15333_persistentStorePromiseAccessor=P};
Ka.prototype.shouldPreferLocalResponse=function(){return!1};
Ka.prototype.localInnertubeResponse=function(){return _.B(function(Y){return Y.return(Promise.reject(Error("Ti")))})};
Ka.prototype.canProvideFallbackResponse=function(){return!0};
Ka.prototype.localFallbackInnertubeResponse=function(){var Y=this;return _.B(function(S){return S.return(cHJ(Y))})};
var cHJ=function(Y){var S,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,mw(Y.JSC$15333_upliftPromise,Y.store),2);S=u.yieldResult;P={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[dea(S)]}}}};return u.return(C$6(Y,P))})},C$6=function(Y,S){var P,u;
return _.B(function(W){if(W.nextAddress==1)return _.q(W,Y.JSC$15333_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3)return P=W.yieldResult,_.q(W,jN(P),3);u=W.yieldResult;return W.return({responseContext:{},contents:S,topbar:u})})};var RB=function(Y,S,P){this.JSC$15340_upliftPromise=Y;this.store=S;this.JSC$15340_persistentStorePromiseAccessor=P};
RB.prototype.shouldPreferLocalResponse=function(Y){var S=Y.videoId;return S&&UJU(this.store.getState().entities,S)&&QMK(this.store.getState().entities,S)?lJY(this.store.getState().entities,Y.playlistId):!1};
RB.prototype.localInnertubeResponse=function(Y){var S=this,P,u;return _.B(function(W){if(W.nextAddress==1)return(P=Y.videoId)?_.q(W,S.JSC$15340_upliftPromise,2):W.return(Promise.reject(Error("Ui")));if(W.nextAddress!=3)return _.q(W,q03(S,Y,P),3);u=W.yieldResult;return W.return(RPm(S,u,P))})};
RB.prototype.canProvideFallbackResponse=function(Y){return Y.videoId?!0:!1};
RB.prototype.localFallbackInnertubeResponse=function(Y){var S=this,P,u,W,m;return _.B(function(J){switch(J.nextAddress){case 1:return(P=Y.videoId)?_.q(J,S.JSC$15340_upliftPromise,2):J.return(Promise.reject(Error("Ui")));case 2:return _.q(J,q03(S,Y,P),3);case 3:u=J.yieldResult;if(rT(S.store.getState().entities,P)){J.jumpTo(4);break}return _.q(J,mw(S.JSC$15340_upliftPromise,S.store),5);case 5:return W=J.yieldResult,J.return(xoh(u,W));case 4:return UJU(S.store.getState().entities,P)&&QMK(S.store.getState().entities,
P)?J.return(RPm(S,u,P)):(m={title:_.Sk(_.Td("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:F7U()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},J.return(xoh(u,m)))}})};
var q03=function(Y,S,P){var u,W,m,J,c;return _.B(function(C){if(C.nextAddress==1)return u=S.playlistId,W=_.YW(P,u),_.q(C,Y.JSC$15340_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3)return m=C.yieldResult,_.q(C,jN(m),3);J=C.yieldResult;c={responseContext:{},currentVideoEndpoint:W,topbar:J};return C.return(c)})},RPm=function(Y,S,P){if(Y=rT(Y.store.getState().entities,P)){var u;
P=Y.videoEntity;var W,m={title:PT(P.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.uI((u=P.localizedStrings)==null?void 0:u.viewCount),viewCount:_.uI((W=P.localizedStrings)==null?void 0:W.viewCount)}}};P.publishedTimestampMillis&&(m.dateText=_.uI(d$$(new Date(Number(P.publishedTimestampMillis)))));u={videoPrimaryInfoRenderer:m};W=Y.videoEntity;Y=Y.channelEntity;Y={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:PT(_.Td("SHOW_MORE",void 0,"Show more")),
showLessText:PT(_.Td("SHOW_LESS",void 0,"Show less")),description:W.formattedDescription,owner:{videoOwnerRenderer:{title:PT(Y.title),thumbnail:Y.avatar}}}};S.contents={twoColumnWatchNextResults:{results:{results:{contents:[u,Y]}}}}}return S},xoh=function(Y,S){Y.contents={singleColumnWatchNextResults:{results:{results:{contents:[dea(S)]}}}};
return Y};var E$=function(Y,S,P){this.JSC$15346_upliftPromise=Y;this.store=S;this.JSC$15346_persistentStorePromiseAccessor=P};
E$.prototype.shouldPreferLocalResponse=function(){return!1};
E$.prototype.localInnertubeResponse=function(){return _.B(function(Y){return Y.return(Promise.reject(Error("Vi")))})};
E$.prototype.canProvideFallbackResponse=function(){return!0};
E$.prototype.localFallbackInnertubeResponse=function(){var Y=this,S,P,u,W;return _.B(function(m){switch(m.nextAddress){case 1:return _.q(m,Y.JSC$15346_persistentStorePromiseAccessor(),2);case 2:return S=m.yieldResult,_.q(m,jN(S),3);case 3:return P=m.yieldResult,u={responseContext:{},topbar:P},_.q(m,Y.JSC$15346_upliftPromise,4);case 4:return _.q(m,mw(Y.JSC$15346_upliftPromise,Y.store),5);case 5:return W=m.yieldResult,u.watchStatus={backgroundPromoRenderer:W},m.return(u)}})};var b9_=new _.yH("ENDPOINT_MAP");var Tlm=function(){var Y=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return Y.sequenceMap}}},qr6=function(Y,S,P){var u,W=(u=S.config)==null?void 0:u.sequenceStrategy;
if(!W)return P();Y.sequenceMap.has(W.sequenceKey)||Y.sequenceMap.set(W.sequenceKey,[]);Y=Y.sequenceMap.get(W.sequenceKey);switch(W.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return KYf(Y,S,P);case "REQUEST_SEQUENCE_TYPE_REPLACE":return Evs(Y,S,P);default:throw new _.$2("Request could not be sequenced",S);}},KYf=function(Y,S,P){var u,W,m;
return _.B(function(J){Y.length>0?(W=Y[Y.length-1],u=W.responsePromise.then(function(){return P()})):u=P();
m={request:S,responsePromise:u};Y.push(m);fLU(Y,m);return J.return(m.responsePromise)})},Evs=function(Y,S,P){P=P();
if(Y.length>0)for(var u=_.n(Y),W=u.next();!W.done;W=u.next())W.value.responsePromise=P;var m={request:S,responsePromise:P};Y.push(m);fLU(Y,m);return Promise.resolve().then(function(){return Y.indexOf(m)>0?m.responsePromise.then(function(J){return Object.assign({},J,{sequenceMetaData:{skipProcessing:!0}})}):m.responsePromise})},fLU=function(Y,S){S.responsePromise.then(function(){var P=Y.indexOf(S);
P>-1&&Y.splice(P,1)})};var gv6=new _.yH("REQUEST_SEQUENCING");var Ta=function(){};
_.r(Ta,Kk);Ta.prototype.getApiPaths=function(){return[]};
Ta.prototype.getExtension=function(Y){return _.g(Y,RxJ)};
Ta.prototype.JSC$11770_buildRequest=function(Y,S){Y.recaptchaToken=S.recaptchaToken};
Ta.prototype.getApiUrl=function(){return"/das_captcha"};var K3=function(){};
_.r(K3,Kk);K3.prototype.getApiPaths=function(){return pUJ};
K3.prototype.getExtension=function(Y){return _.g(Y,AvJ)};
K3.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;S.createBackstagePostParams&&(Y.createBackstagePostParams=S.createBackstagePostParams);P.comment_text&&(Y.commentText=P.comment_text);if(P.attached_video_id)Y.videoAttachment={videoId:P.attached_video_id};else if(P.image_poll_options)Y.pollAttachmentData={options:P.image_poll_options};else if(P.poll_options)Y.pollAttachment={choices:P.poll_options};else if(P.quiz_options)Y.quizAttachmentData={options:P.quiz_options};else if(P.image_blob_id)Y.imageAttachment=
{encryptedBlobId:P.image_blob_id},P.source_video_id&&(Y.imageAttachment.sourceExternalVideoId=P.source_video_id),P.image_preview_coordinates&&(Y.imageAttachment.previewCoordinates=JSON.parse(P.image_preview_coordinates));else if(P.images_data)Y.imagesAttachment={imagesData:P.images_data};else if(P.clip_external_video_id!==void 0||P.clip_offset_ms!==void 0||P.clip_duration_ms!==void 0){var u,W,m,J,c;Y.clipAttachment={externalVideoId:(m=P.clip_external_video_id)!=null?m:"",offsetMs:(J=(u=P.clip_offset_ms)==
null?void 0:u.toString())!=null?J:"",durationMs:(c=(W=P.clip_duration_ms)==null?void 0:W.toString())!=null?c:""}}else P.shared_post_id&&(Y.sharedPostAttachment={postId:P.shared_post_id});P.tagged_video_id&&(Y.postCreationData={taggedVideoId:P.tagged_video_id});P.access_restrictions&&(typeof P.access_restrictions==="number"&&(S=P.access_restrictions,Y.accessRestrictions={restriction:S!==1&&S===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof P.access_restrictions==="string"&&
(Y.accessRestrictionsParams=P.access_restrictions));P.scheduled_publish_time_sec&&(Y.scheduledPublishTimeSec=P.scheduled_publish_time_sec.toString())};var Et=function(){};
_.r(Et,Kk);Et.prototype.getApiPaths=function(){return ifs};
Et.prototype.getExtension=function(Y){return _.g(Y,QMS)};
Et.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;S.decorateMessageParams&&(Y.params=S.decorateMessageParams);P.text&&(Y.text=P.text)};var f3=function(){};
_.r(f3,Kk);f3.prototype.getApiPaths=function(){return mVh};
f3.prototype.getExtension=function(Y){return _.g(Y,Ui6)};
f3.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;P.video_id&&(Y.videoId=P.video_id)};var gr=function(){};
_.r(gr,Kk);gr.prototype.getApiPaths=function(){return Css};
gr.prototype.getExtension=function(Y){return _.g(Y,_.xo)};
gr.prototype.JSC$11770_buildRequest=function(Y,S,P){P.suggestions_query&&(Y.input=P.suggestions_query)};var $K=function(){};
_.r($K,Kk);$K.prototype.getApiPaths=function(){return Q16};
$K.prototype.getExtension=function(Y){return _.g(Y,QJ6)};
$K.prototype.JSC$11770_buildRequest=function(Y,S,P){P.comment_text!==void 0&&(Y.commentText=P.comment_text);P.scheduled_publish_time_sec&&(Y.scheduledPublishTimeSec=P.scheduled_publish_time_sec.toString());Y.updateBackstagePostParams=S.updateBackstagePostParams};var rr=function(){};
_.r(rr,Kk);rr.prototype.getApiPaths=function(){return YX};
rr.prototype.getExtension=function(Y){return _.g(Y,_.vX)};
rr.prototype.JSC$11770_buildRequest=function(Y,S,P){P.formData&&(Y.formData=P.formData);S.token?Y.continuation=S.token:S.continuationTokenKey&&(P=_.Na().getState(),S=_.BT(P.entities,"continuationTokenEntity",S.continuationTokenKey))&&(Y.continuation=String(S.continuationToken))};
var $ou=function(){};
_.r($ou,Kk);_.z=$ou.prototype;_.z.getApiPaths=function(){return YX};
_.z.getExtension=function(Y){return _.g(Y,_.CV)};
_.z.isNavigationCommand=function(){return!0};
_.z.JSC$11777_getStoreKey=function(Y){if((Y=this.getExtension(Y))&&Y.browseId){var S={browseId:Y.browseId};Y.browseEndpointContextSupportedConfigs&&(S.browseEndpointContextSupportedConfigs=JSON.stringify(Y.browseEndpointContextSupportedConfigs));Y.params&&(S.params=Y.params);Y.query&&(S.query=Y.query);return _.Mq("browse",S)}};
_.z.JSC$11770_buildRequest=function(Y,S,P){S.browseId&&(Y.browseId=S.browseId);S.params&&(Y.params=S.params);S.query&&(Y.query=S.query);P.formData?Y.formData=P.formData:S.formData&&(Y.formData=S.formData);S.browseId==="FEsubscriptions"&&_.$o().getFlag(155)&&(Y.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");S.browseId==="SPaccount_playback"&&(P=_.$o(),Y.formData||(Y.formData={}),Y.formData.accountSettingsFormData={flagCaptionsDefaultOff:P.getFlag(65),flagAutoCaptionsDefaultOn:P.getFlag(66),
flagDisableInlinePreview:P.getFlag(186),flagAudioDescriptionDefaultOn:P.getFlag(198)});if(S.browseId==="FEwhat_to_watch"){P=_.$o();var u=P.getFlag(196);P.getFlag(197)&&(Y.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:u}}})}S.browseId==="FEwhat_to_watch"&&(S=_.$o().getFlag(186),Y.inlineSettingStatus=S?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.z.getRequestConfig=function(Y,S){S=S===void 0?{}:S;var P={};if(Y=this.JSC$11777_getStoreKey(Y,S))P.storeStrategy={storeKey:Y,disableCache:S.disableCache};_.f("web_log_browse_ticks_ks")||(P.requestTick="br_s",P.responseTick="br_r");return P};var Ga=function(){};
_.r(Ga,Kk);Ga.prototype.getApiPaths=function(){return vAJ};
Ga.prototype.getExtension=function(Y){return _.g(Y,jiS)};
Ga.prototype.JSC$11770_buildRequest=function(Y,S,P){Y.legacyYoutubeChannelUsername=P.legacyYouTubeChannelUsername||"";Y.legacyYoutubeChannelPassword=P.legacyYouTubeChannelPassword||""};var h4=function(){};
_.r(h4,Kk);h4.prototype.getApiPaths=function(){return s1d};
h4.prototype.getExtension=function(Y){return _.g(Y,Ojm)};
h4.prototype.JSC$11770_buildRequest=function(Y,S,P){P.recaptcha_response_token&&(Y.recaptchaResponseToken=P.recaptcha_response_token);P.channel_id&&(Y.channelId=P.channel_id)};var vD=function(){};
_.r(vD,Kk);vD.prototype.getApiPaths=function(){return kVi};
vD.prototype.getExtension=function(Y){return _.g(Y,zkS)};
vD.prototype.JSC$11770_buildRequest=function(Y,S,P){S.externalChannelId&&(Y.externalChannelId=S.externalChannelId);P.handle&&(Y.handleUpdate={handle:P.handle},S.handleEditSource&&(Y.handleUpdate.handleEditSource=S.handleEditSource))};var De=function(){};
_.r(De,Kk);De.prototype.getApiPaths=function(){return Hks};
De.prototype.getExtension=function(Y){return _.g(Y,EQU)};
De.prototype.JSC$11770_buildRequest=function(Y,S,P){S.request&&(Y.channelId=S.request.channelId);var u;if(P==null?0:(u=P.uploadDefaults)==null?0:u.emojiReactionSet)Y.uploadDefaultsRequest||(Y.uploadDefaultsRequest={}),Y.uploadDefaultsRequest.emojiReactionSet=P.uploadDefaults.emojiReactionSet};var IE=function(){};
_.r(IE,Kk);IE.prototype.getApiPaths=function(){return OkS};
IE.prototype.getExtension=function(Y){return _.g(Y,YgJ)};
IE.prototype.JSC$11770_buildRequest=function(Y,S,P){S.externalChannelId&&(Y.externalChannelId=S.externalChannelId);S.channelHandleEntityKey&&(Y.channelHandleEntityKey=S.channelHandleEntityKey);S.handleEditSource&&(Y.handleEditSource=S.handleEditSource);P.handle?Y.handle=P.handle:P.name&&(Y.name=P.name)};var aE=function(){};
_.r(aE,Kk);aE.prototype.getApiPaths=function(){return aGs};
aE.prototype.getExtension=function(Y){return _.g(Y,IP_)};
aE.prototype.JSC$11770_buildRequest=function(Y,S){S.actions?Y.actions=S.actions:S.action&&(Y.actions=[S.action])};var L3=function(){};
_.r(L3,Kk);L3.prototype.getApiPaths=function(){return LeS};
L3.prototype.getExtension=function(Y){return _.g(Y,_.vX)};
L3.prototype.JSC$11770_buildRequest=function(Y,S){S.token&&(Y.continuation=S.token)};var wr=function(){};
_.r(wr,Kk);wr.prototype.getApiPaths=function(){return Wit};
wr.prototype.getExtension=function(Y){return _.g(Y,_.vX)};
wr.prototype.JSC$11770_buildRequest=function(Y,S){Y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";S.token&&(Y.fetchCommentsParams={continuation:S.token})};var p3=function(){};
_.r(p3,Kk);p3.prototype.getApiPaths=function(){return dCs};
p3.prototype.getExtension=function(Y){return _.g(Y,D$d)};
p3.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;S.createReplyParams&&(Y.createReplyParams=S.createReplyParams);S.commentText&&(Y.commentText=_.Ma(S.commentText));P.comment_text&&(Y.commentText=P.comment_text);P.image_blob_id&&(Y.imageAttachment={encryptedBlobId:P.image_blob_id});P.botguard_response&&(Y.botguardResponse=P.botguard_response)};
_.y6.Object.defineProperties(p3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Fr=function(){};
_.r(Fr,Kk);Fr.prototype.getApiPaths=function(){return lG6};
Fr.prototype.getExtension=function(Y){return _.g(Y,_.vpJ)};
Fr.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;S.createCommentParams&&(Y.createCommentParams=S.createCommentParams);S.commentText&&(Y.commentText=_.Ma(S.commentText));S.videoPositionMention&&(Y.videoPositionMention=S.videoPositionMention);S.sources&&(Y.sources=S.sources);P.comment_text&&(Y.commentText=P.comment_text);P.attached_video_id?Y.videoAttachment={videoId:P.attached_video_id}:P.poll_options?Y.pollAttachment={choices:P.poll_options}:P.image_blob_id?Y.imageAttachment=
{encryptedBlobId:P.image_blob_id}:P.shared_post_id&&(Y.sharedPostAttachment={postId:P.shared_post_id});P.access_restrictions&&typeof P.access_restrictions==="number"&&(S=P.access_restrictions,Y.accessRestrictions={restriction:S!==1&&S===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});P.botguard_response&&(Y.botguardResponse=P.botguard_response)};
_.y6.Object.defineProperties(Fr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var st=function(){};
_.r(st,Kk);st.prototype.getApiPaths=function(){return MGh};
st.prototype.getExtension=function(Y){return _.g(Y,Laf)};
st.prototype.JSC$11770_buildRequest=function(Y,S,P){S.commentText&&(Y.replyText=_.Ma(S.commentText));P.comment_text&&(Y.replyText=P.comment_text);Y.updateReplyParams=S.updateReplyParams};
_.y6.Object.defineProperties(st.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dr=function(){};
_.r(dr,Kk);dr.prototype.getApiPaths=function(){return yOt};
dr.prototype.getExtension=function(Y){return _.g(Y,aPm)};
dr.prototype.JSC$11770_buildRequest=function(Y,S,P){S.commentText&&(Y.commentText=_.Ma(S.commentText));P.comment_text&&(Y.commentText=P.comment_text);Y.updateCommentParams=S.updateCommentParams};
_.y6.Object.defineProperties(dr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lt=function(){};
_.r(lt,Kk);lt.prototype.getApiPaths=function(){return NCu};
lt.prototype.getExtension=function(Y){return _.g(Y,xAm)};
lt.prototype.JSC$11770_buildRequest=function(Y,S){S.settings&&(Y.settings=S.settings)};var Xr=function(){};
_.r(Xr,Kk);Xr.prototype.getApiPaths=function(){return Voh};
Xr.prototype.getExtension=function(Y){return _.g(Y,Sg_)};
Xr.prototype.JSC$11770_buildRequest=function(Y,S){S.channelCreationToken&&(Y.channelCreationToken=S.channelCreationToken);S.source&&(Y.source=S.source)};var Ze=function(){};
_.r(Ze,Kk);Ze.prototype.getApiPaths=function(){return smf};
Ze.prototype.getExtension=function(Y){return _.g(Y,W0s)};
Ze.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;if(P.name&&(P.given_name||P.family_name))Y=new _.$2("channel creation cannot set both GAIA and YouTube names",S),_.p_(Y);else{if(S.zeroStepChannelCreationParams){if(!P.comment_text){Y=new _.$2("zero_step_create_comment_params but no zero_step_texts",S);_.p_(Y);return}Y.zeroStepChannelCreationParams=S.zeroStepChannelCreationParams;Y.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(Y.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
P.comment_text,P.botguard_response&&(Y.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=P.botguard_response))}Y.channelCreationToken=S.channelCreationToken;P.given_name&&(Y.givenName=P.given_name);P.family_name&&(Y.familyName=P.family_name);S.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(Y.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(P.name||P.handle||P.avatar_url||P.encryptedBlobId||P.isNameChanged!==void 0||P.isHandleChanged!==void 0||P.isDefaultProfilePhoto!==
void 0||P.obakeImageSource)Y.overrideChannelCreationParams={},P.name&&(Y.overrideChannelCreationParams.name=P.name),P.handle&&(Y.overrideChannelCreationParams.handle=P.handle),P.avatar_url&&(Y.overrideChannelCreationParams.avatarUrl=P.avatar_url),P.encryptedBlobId&&(Y.overrideChannelCreationParams.blobEncryptionId=P.encryptedBlobId),P.enableIdentityForAllChannelCreationDialog&&(P.encryptedBlobId?Y.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
P.isDefaultProfilePhoto!==void 0&&(Y.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=P.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),P.isNameChanged!==void 0&&(Y.overrideChannelCreationParams.identityForAllChannelCreationNameTag=P.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),P.isHandleChanged!==
void 0&&(Y.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=P.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),P.obakeImageSource&&(Y.overrideChannelCreationParams.obakeImageSourceType=P.obakeImageSource))}};var oE=function(){};
_.r(oE,Kk);oE.prototype.getApiPaths=function(Y){return(Y=this.getExtension(Y))&&Y.status==="DISLIKE"?UCu:Y&&Y.status==="INDIFFERENT"?aXs:TCd};
oE.prototype.getExtension=function(Y){return _.g(Y,_.ka)};
oE.prototype.JSC$11770_buildRequest=function(Y,S){S.target&&(Y.target=S.target);if(S=this.getParams(S))Y.params=S};
oE.prototype.getParams=function(Y){switch(Y==null?void 0:Y.status){case "DISLIKE":return Y.dislikeParams;case "INDIFFERENT":return Y.removeLikeParams;default:return Y==null?void 0:Y.likeParams}};var t4=function(){};
_.r(t4,Kk);t4.prototype.getApiPaths=function(){return ikt};
t4.prototype.getExtension=function(Y){return _.g(Y,lPs)};
t4.prototype.JSC$11770_buildRequest=function(Y,S){S.settingItemId&&(Y.settingItemId=S.settingItemId);S.stringValue!=null&&S.stringValue!==void 0?Y.newValue={stringValue:S.stringValue}:S.intValue?Y.newValue={intValue:S.intValue}:S.boolValue!==null&&S.boolValue!==void 0?Y.newValue={boolValue:S.boolValue}:(Y=new _.$2("Unknown value type for SetSettingEndpoint.",S),_.p_(Y))};var A4=function(){};
_.r(A4,Kk);A4.prototype.getApiPaths=function(){return tGu};
A4.prototype.getExtension=function(Y){return _.g(Y,YG_)||void 0};
A4.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;S.channelIds&&(Y.channelIds=S.channelIds);S.siloName&&(Y.siloName=S.siloName);S.params&&(Y.params=S.params);P.botguardResponse&&(Y.botguardResponse=P.botguardResponse);P.feature&&(Y.clientFeature=P.feature)};
_.y6.Object.defineProperties(A4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ut=function(){};
_.r(Ut,Kk);Ut.prototype.getApiPaths=function(){return UVs};
Ut.prototype.getExtension=function(Y){return _.g(Y,Xgi)||void 0};
Ut.prototype.JSC$11770_buildRequest=function(Y,S){S.channelIds&&(Y.channelIds=S.channelIds);S.siloName&&(Y.siloName=S.siloName);S.params&&(Y.params=S.params)};
_.y6.Object.defineProperties(Ut.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Q$=function(Y){this.shareClientParamsProvider=Y};
_.r(Q$,Kk);Q$.prototype.getApiPaths=function(){return j1m};
Q$.prototype.getExtension=function(Y){return _.g(Y,jMi)||_.g(Y,_.J7L)||_.g(Y,nff)};
Q$.prototype.JSC$11770_buildRequest=function(Y,S){S.serializedShareEntity&&(Y.serializedSharedEntity=S.serializedShareEntity);if(S.clientParamIdentifier){var P;if((P=this.shareClientParamsProvider)==null?0:P.clientParams.has(S.clientParamIdentifier)){P=this.shareClientParamsProvider;S=S.clientParamIdentifier;var u=P.clientParams.get(S);u&&P.clientParams.delete(S);Y.clientParams=u}}};
Q$[Md]=[M93];var kK=function(){};
_.r(kK,Kk);kK.prototype.getApiPaths=function(){return rDt};
kK.prototype.getExtension=function(Y){return _.g(Y,KJf)};
kK.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params)};var Mk=function(){};
_.r(Mk,Kk);Mk.prototype.getApiPaths=function(){return QmU};
Mk.prototype.getExtension=function(Y){return _.g(Y,x4J)};
Mk.prototype.JSC$11770_buildRequest=function(Y,S){S.dismissal&&(Y.items=[S.dismissal])};
_.y6.Object.defineProperties(Mk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var y$=function(){};
_.r(y$,Kk);y$.prototype.getApiPaths=function(){return xVm};
y$.prototype.getExtension=function(Y){return _.g(Y,_.La)||void 0};
y$.prototype.JSC$11770_buildRequest=function(Y,S,P){Y.feedbackTokens=[];S.feedbackToken&&Y.feedbackTokens.push(S.feedbackToken);if(S=S.cpn||P.cpn)Y.feedbackContext={cpn:S};Y.isFeedbackTokenUnencrypted=!!P.is_feedback_token_unencrypted;Y.shouldMerge=!1;P.extra_feedback_tokens&&(Y.shouldMerge=!0,Y.feedbackTokens=Y.feedbackTokens.concat(P.extra_feedback_tokens))};
_.y6.Object.defineProperties(y$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Nk=function(){};
_.r(Nk,Kk);Nk.prototype.getApiPaths=function(){return xVm};
Nk.prototype.getExtension=function(Y){return _.g(Y,_.xo)};
Nk.prototype.JSC$11770_buildRequest=function(Y,S,P){P.feedback_tokens&&(Y.feedbackTokens=P.feedback_tokens,Y.shouldMerge=!0)};
_.y6.Object.defineProperties(Nk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var HD=function(){};
_.r(HD,Kk);HD.prototype.getApiPaths=function(){return xVm};
HD.prototype.getExtension=function(Y){return _.g(Y,fvu)};
HD.prototype.JSC$11770_buildRequest=function(Y,S){S.undoToken&&(Y.feedbackTokens=[S.undoToken]);S.isUndoTokenUnencrypted&&(Y.isFeedbackTokenUnencrypted=S.isUndoTokenUnencrypted)};
_.y6.Object.defineProperties(HD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var V$=function(){};
_.r(V$,Kk);V$.prototype.getApiPaths=function(){return Yvu};
V$.prototype.getExtension=function(Y){return _.g(Y,CG3)};
V$.prototype.JSC$11770_buildRequest=function(Y,S){S.nextEndpoint&&_.g(S.nextEndpoint,_.tp)?Y.nextEndpoint={urlEndpoint:_.g(S.nextEndpoint,_.tp)}:S.nextEndpoint&&_.g(S.nextEndpoint,_.yx)&&(Y.nextEndpoint={watchEndpoint:_.g(S.nextEndpoint,_.yx)});S.setRacy&&(Y.setRacy=S.setRacy);S.setControvercy&&(Y.setControvercy=S.setControvercy)};var es=function(Y){this.JSC$15528_storeWithEntities=Y};
_.r(es,Kk);es.prototype.getApiPaths=function(){return MoU};
es.prototype.getExtension=function(Y){return _.g(Y,lji)};
es.prototype.JSC$11770_buildRequest=function(Y,S){S.flowId&&(Y.flowId=S.flowId);S.targetId&&(Y.targetId=S.targetId);S.continuation&&(Y.continuation=S.continuation);var P=S.flowStateEntityKey;if(S.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&P&&this.JSC$15528_storeWithEntities){var u;if(S=(u=this.JSC$15528_storeWithEntities.getState())==null?void 0:u.entities)if(u=_.mZ(P).entityType,u=_.BT(S,u,P))Y.flowState=u,Y.flowStateEntityKey=P}};
_.y6.Object.defineProperties(es.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
es[Md]=[Jk];var rHm=function(){};
_.r(rHm,Kk);_.z=rHm.prototype;_.z.getApiPaths=function(){return RwL};
_.z.JSC$11777_getStoreKey=function(){return _.Mq("guide")};
_.z.getRequestConfig=function(){var Y=this.JSC$11777_getStoreKey(),S;Y&&(S={storeStrategy:{storeKey:Y}});return S};
_.z.isNavigationCommand=function(){return!0};
_.z.getExtension=function(Y){return _.g(Y,_.xo)};
_.z.JSC$11770_buildRequest=function(Y){Y.fetchLiveState=!0};var Ot=function(){};
_.r(Ot,Kk);Ot.prototype.getApiPaths=function(){return DCi};
Ot.prototype.getExtension=function(Y){return _.g(Y,E1J)};
Ot.prototype.JSC$11770_buildRequest=function(){};var nK=function(){};
_.r(nK,Kk);nK.prototype.getApiPaths=function(){return IG6};
nK.prototype.getExtension=function(Y){return _.g(Y,fWU)};
nK.prototype.JSC$11770_buildRequest=function(){};var jx=function(){};
_.r(jx,Kk);jx.prototype.getApiPaths=function(){return $Cm};
jx.prototype.getExtension=function(Y){return _.g(Y,_.vX)};
jx.prototype.JSC$11770_buildRequest=function(Y,S){S.token&&(Y.continuation=S.token);var P,u;Y==null||(P=Y.context)==null||(u=P.user)==null||delete u.onBehalfOfUser};
jx.prototype.getRequestConfig=function(Y){var S={},P;if(((P=this.getExtension(Y))==null?void 0:P.sessionIndex)!==void 0){var u;S={authStrategy:{sessionIndex:(u=this.getExtension(Y))==null?void 0:u.sessionIndex}}}return S};var Ja=function(){};
_.r(Ja,Kk);Ja.prototype.JSC$11770_getRequest=function(Y){var S=this.getExtension(Y),P=Y="";if(S==null?0:S.popup)Y="true";if(S==null?0:S.disableSignout)P="true";S={};return{input:"/getAccountSwitcherEndpoint",requestShell:k5("/getAccountSwitcherEndpoint","GET",(S["X-YouTube-Delegation-Context"]=_.X3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),S["X-YouTube-Account-Switcher-Popup"]=Y,S["X-YouTube-Account-Switcher-Disable-Signout"]=P,S)),innerTubeRequest:{}}};
Ja.prototype.getApiPaths=function(){return[]};
Ja.prototype.getExtension=function(Y){return _.g(Y,_.$kJ)};
Ja.prototype.JSC$11770_buildRequest=function(){};var BC=function(){};
_.r(BC,Kk);BC.prototype.JSC$11770_getRequest=function(Y){var S="/cross_account_channel_transfer";(Y=this.getExtension(Y))&&(S=zTX(S,{target_session:Y.targetSessionIndex,source_rapt:Y.sourceRapt,rapt:Y.targetRapt}));return{input:S,requestShell:k5(S,"GET"),innerTubeRequest:{}}};
BC.prototype.getApiPaths=function(){return[]};
BC.prototype.getExtension=function(Y){return _.g(Y,fpm)};
BC.prototype.JSC$11770_buildRequest=function(){};var cC=function(){};
_.r(cC,Kk);cC.prototype.getApiPaths=function(){return yDu};
cC.prototype.isNavigationCommand=function(){return!0};
cC.prototype.getExtension=function(Y){return _.g(Y,_.xo)};
cC.prototype.JSC$11770_buildRequest=function(Y){var S=_.$o().get("gsml","");S&&(Y.safetyModeLockerObfuscatedGaiaId=S);Y.userInterfaceTheme=_.w2(!0);_.pV()?Y.deviceTheme="DEVICE_THEME_SELECTED":_.J8X()?Y.deviceTheme="DEVICE_THEME_SUPPORTED":Y.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var CK=function(){};
_.r(CK,Kk);CK.prototype.getApiPaths=function(){return $Cm};
CK.prototype.getExtension=function(Y){return _.g(Y,gnt)};
CK.prototype.JSC$11770_buildRequest=function(Y,S){if(S&&S.requestType&&(Y.requestType=S.requestType,S.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||S.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var P=S.nextUrl;P&&(_.ny9(P)||Y2(P))&&(Y.nextNavendpoint={urlEndpoint:{url:P}})}S&&S.channelSwitcherQuery&&(Y.channelSwitcherQuery=S.channelSwitcherQuery);S&&S.triggerChannelCreation&&(Y.triggerChannelCreation=S.triggerChannelCreation);var u;if(S==null?0:(u=S.contentOwnerConfig)==
null?0:u.externalContentOwnerId)Y.contentOwnerConfig=S.contentOwnerConfig;Y.callCircumstance=S&&S.requestType&&S.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var W,m;S=Y==null?void 0:(W=Y.context)==null?void 0:(m=W.user)==null?void 0:m.onBehalfOfUser;if(S!==void 0){Y.obfuscatedSelectedGaiaId=S;var J,c;Y==null||(J=Y.context)==null||(c=J.user)==null||delete c.onBehalfOfUser}var C,x;if(W=Y==null?void 0:(C=Y.context)==null?void 0:(x=C.user)==null?
void 0:x.serializedDelegationContext)Y.selectedSerializedDelegationContext=W};var qN=function(){};
_.r(qN,Kk);qN.prototype.getApiPaths=function(){return nOU};
qN.prototype.getExtension=function(Y){return _.g(Y,bjd)};
qN.prototype.JSC$11770_buildRequest=function(Y,S){S.profileOwnerExternalChannelId&&(Y.profileOwnerExternalChannelId=S.profileOwnerExternalChannelId);S.profileCardContext&&(Y.profileCardContext=S.profileCardContext)};var Rc=function(){};
_.r(Rc,Kk);Rc.prototype.getApiPaths=function(){return GS6};
Rc.prototype.getExtension=function(Y){return _.g(Y,BFu)};
Rc.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params)};var xj=function(){};
_.r(xj,Kk);xj.prototype.getApiPaths=function(){return Fef};
xj.prototype.getExtension=function(Y){return _.g(Y,_.Grs)};
xj.prototype.JSC$11770_buildRequest=function(Y,S){if(S=S.createBroadcastRequest)Y.useMasks=S.useMasks,Y.broadcastType=S.broadcastType,Y.broadcastSource=S.broadcastSource,Y.broadcastMetadata=S.broadcastMetadata,Y.broadcastMetadataMask=S.broadcastMetadataMask,Y.videoMetadata=S.videoMetadata,Y.videoMetadataMask=S.videoMetadataMask,Y.liveChatSettingsUpdate=S.liveChatSettingsUpdate,Y.liveChatSettingsUpdateMask=S.liveChatSettingsUpdateMask,Y.cloneVideoId=S.cloneVideoId,Y.cloneWithOverrides=S.cloneWithOverrides,
Y.targetEntity=S.targetEntity,Y.scheduledRedirectMetadata=S.scheduledRedirectMetadata};var bz=function(){};
_.r(bz,Kk);bz.prototype.getApiPaths=function(){return XUh};
bz.prototype.getExtension=function(Y){return _.g(Y,hOu)};
bz.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;S.params&&(Y.params=S.params);P.questionText&&(Y.questionText=P.questionText);P.optionText&&P.optionText.length>0&&(Y.optionText=P.optionText)};var TO=function(){};
_.r(TO,Kk);TO.prototype.getApiPaths=function(){return oAu};
TO.prototype.getExtension=function(Y){return _.g(Y,rz6)};
TO.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params)};var KK=function(){};
_.r(KK,Kk);KK.prototype.getApiPaths=function(){return Ofu};
KK.prototype.getExtension=function(Y){return _.g(Y,Eqi)};
KK.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params)};var EI=function(){};
_.r(EI,Kk);EI.prototype.getApiPaths=function(){return SLJ};
EI.prototype.getExtension=function(Y){return _.g(Y,fH3)};
EI.prototype.JSC$11770_buildRequest=function(Y,S,P){S.params&&(Y.params=S.params);S.continuation&&(Y.continuation=S.continuation);P.currentPlayerState&&P.currentPlayerState.playerOffsetMs&&(Y.currentPlayerState={playerOffsetMs:P.currentPlayerState.playerOffsetMs.toString()})};var fK=function(){};
_.r(fK,Kk);fK.prototype.getApiPaths=function(){return PsU};
fK.prototype.getExtension=function(Y){return _.g(Y,KIs)};
fK.prototype.JSC$11770_buildRequest=function(Y,S,P){S.params&&(Y.params=S.params);P.continuation&&(Y.continuation=P.continuation);"hidden"in P&&(Y.webClientInfo={isDocumentHidden:P.hidden});P.isInvalidationTimeoutRequest&&(Y.isInvalidationTimeoutRequest=P.isInvalidationTimeoutRequest);P.invalidationPayload&&(S=TUS(_.z3(SH(P.invalidationPayload))),Y.invalidationPayloadLastPublishAtUsec=wV(S,2));P.reloadActionPanel&&(Y.reloadActionPanel=P.reloadActionPanel);P.fullReload&&(Y.fullReload=P.fullReload);
P.currentPlayerState&&(Y.currentPlayerState=P.currentPlayerState)};var gY=function(){};
_.r(gY,Kk);gY.prototype.getApiPaths=function(){return KiJ};
gY.prototype.getExtension=function(Y){return _.g(Y,G96)};
gY.prototype.JSC$11770_buildRequest=function(Y,S){Y.params=S.params};var rY=function(){};
_.r(rY,Kk);rY.prototype.getApiPaths=function(){return YLJ};
rY.prototype.getExtension=function(Y){return _.g(Y,vfu)};
rY.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params)};var GO=function(){};
_.r(GO,Kk);GO.prototype.getApiPaths=function(){return uRd};
GO.prototype.getExtension=function(Y){return _.g(Y,DJ6)};
GO.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params)};var ha=function(){};
_.r(ha,Kk);ha.prototype.getApiPaths=function(){return EOi};
ha.prototype.getExtension=function(Y){return _.g(Y,vqu)};
ha.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params)};var vC=function(){};
_.r(vC,Kk);vC.prototype.getApiPaths=function(){return gOs};
vC.prototype.getExtension=function(Y){return _.g(Y,Ddh)};
vC.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params)};var D$=function(){};
_.r(D$,Kk);D$.prototype.getApiPaths=function(){return LiS};
D$.prototype.getExtension=function(Y){return _.g(Y,qqt)};
D$.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params)};var Ic=function(){};
_.r(Ic,Kk);Ic.prototype.getApiPaths=function(){return X0u};
Ic.prototype.getExtension=function(Y){return _.g(Y,_.IHm)};
Ic.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;S.params&&(Y.params=S.params);P.client_message_id&&(Y.clientMessageId=P.client_message_id);P.recaptcha_token&&(Y.recaptchaToken=P.recaptcha_token);P.rich_message&&P.rich_message.text_segments?(S=P.rich_message.text_segments.map(function(u){var W={};u.text&&(W.text=u.text);u.emoji_id&&(W.emojiId=u.emoji_id);return W}),Y.richMessage={textSegments:S}):P.message&&(Y.message=P.message);
P.currentPlayerState&&(Y.currentPlayerState=P.currentPlayerState)};var ac=function(){};
_.r(ac,Kk);ac.prototype.getApiPaths=function(){return Zk3};
ac.prototype.getExtension=function(Y){return _.g(Y,aHS)};
ac.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params)};var LK=function(){};
_.r(LK,Kk);LK.prototype.getApiPaths=function(){return AOU};
LK.prototype.getExtension=function(Y){return _.g(Y,wOt)};
LK.prototype.JSC$11770_buildRequest=function(Y,S,P){S.isUserInitiated&&(Y.isUserInitiated=S.isUserInitiated);S.initiationSource&&(Y.initiationSource=S.initiationSource);P.locationInfo&&(Y.context.client.locationInfo=P.locationInfo)};var wY=function(){};
_.r(wY,Kk);wY.prototype.getApiPaths=function(){return fX_};
wY.prototype.getExtension=function(Y){return _.g(Y,hu6)};
wY.prototype.JSC$11770_buildRequest=function(Y,S,P){S.metadataUpdateRequest&&(S=S.metadataUpdateRequest,Y.encryptedVideoId=S.encryptedVideoId,S.liveChat&&(S=S.liveChat,Y.liveChat||(Y.liveChat={}),S.performAsExternalChannelId&&(Y.liveChat.performAsExternalChannelId=S.performAsExternalChannelId),S.source&&(Y.liveChat.source=S.source)));var u;if(P==null?0:(u=P.liveChat)==null?0:u.liveChatSettings)Y.liveChat||(Y.liveChat={}),P=P.liveChat.liveChatSettings,Y.liveChat.newLiveChatSettings=P,Y.liveChat.newLiveChatSettingsMask||
(Y.liveChat.newLiveChatSettingsMask={}),P.emojiReactionSet&&(Y.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var pK=function(){};
_.r(pK,Kk);pK.prototype.getApiPaths=function(){return ewu};
pK.prototype.getExtension=function(Y){return _.g(Y,_.ZPJ)};
pK.prototype.JSC$11770_buildRequest=function(Y,S,P){P.continuation?Y.continuation=P.continuation:S.videoId&&(Y.videoId=S.videoId);P.clientParams&&(Y.clientParams=P.clientParams)};var Fe=function(){};
_.r(Fe,Kk);Fe.prototype.getApiPaths=function(){return Wit};
Fe.prototype.getExtension=function(Y){return _.g(Y,_.GN)};
Fe.prototype.JSC$11770_buildRequest=function(Y,S){Y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";Y.fetchCommentsParams={};S.videoId&&(Y.fetchCommentsParams.encryptedVideoId=S.videoId);S.postId&&(Y.fetchCommentsParams.postId=S.postId);S.externalChannelId&&(Y.fetchCommentsParams.externalChannelId=S.externalChannelId);S.linkedCommentId&&(Y.fetchCommentsParams.linkedCommentId=S.linkedCommentId);(0,_.RY.isEmpty)(Y.fetchCommentsParams)&&delete Y.fetchCommentsParams};var sI=function(){};
_.r(sI,Kk);sI.prototype.getApiPaths=function(){return YX};
sI.prototype.JSC$11770_buildRequest=function(Y){Y.browseId="FEnotifications_inbox"};
sI.prototype.getExtension=function(Y){return _.g(Y,_.xo)};var dY=function(){};
_.r(dY,Kk);dY.prototype.getApiPaths=function(){return Wit};
dY.prototype.JSC$11770_buildRequest=function(Y,S){S.signal==="GET_NOTIFICATIONS_MENU"&&(Y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");S.ctoken&&(Y.ctoken=S.ctoken)};
var GW3=function(){};
_.r(GW3,dY);GW3.prototype.getExtension=function(Y){return _.g(Y,_.xo)};
var hPJ=function(){};
_.r(hPJ,dY);hPJ.prototype.getExtension=function(Y){return _.g(Y,JyL)};var lz=function(){};
_.r(lz,Kk);lz.prototype.getApiPaths=function(){return cO6};
lz.prototype.getExtension=function(Y){return _.g(Y,_.xo)};
lz.prototype.JSC$11770_buildRequest=function(){};var Xe=function(){};
_.r(Xe,Kk);Xe.prototype.getApiPaths=function(){return $VU};
Xe.prototype.getExtension=function(Y){return _.g(Y,FaU)||void 0};
Xe.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params);S.secondaryParams&&(Y.secondaryParams=S.secondaryParams)};var Z$=function(){};
_.r(Z$,Kk);Z$.prototype.getApiPaths=function(){return rOi};
Z$.prototype.getExtension=function(Y){return _.g(Y,c7d)};
Z$.prototype.JSC$11770_buildRequest=function(Y,S){S.undo&&(Y.undo=S.undo);S.serializedOptOut&&(Y.serializedOptOut=S.serializedOptOut);S.serializedRecordInteractionsRequest&&(Y.serializedRecordInteractionsRequest=S.serializedRecordInteractionsRequest)};var iz=function(){};
_.r(iz,Kk);iz.prototype.getApiPaths=function(){return vO_};
iz.prototype.getExtension=function(Y){return _.g(Y,Cvf)};
iz.prototype.JSC$11770_buildRequest=function(Y,S){S.serializedInteractionsRequest&&(Y.serializedRecordNotificationInteractionsRequest=S.serializedInteractionsRequest)};var oc=function(){};
_.r(oc,Kk);oc.prototype.getApiPaths=function(){return ySE};
oc.prototype.getExtension=function(Y){return _.g(Y,Lrf)};
oc.prototype.JSC$11770_buildRequest=function(Y,S,P){S=S===void 0?{}:S;P=P===void 0?{}:P;S.videoId?Y.videoId=S.videoId:S.playlistId&&(Y.playlistId=S.playlistId);var u,W=(u=S.offlineWebClientEligibility)!=null?u:P.offlineWebClientEligibility;W&&(Y.offlineWebClientEligibility=W);var m;if(u=(m=S.preferredFormatType)!=null?m:P.preferredFormatType)Y.preferredFormatType=u;var J;if(m=(J=S.lastOfflineQualitySettingsSavedMs)!=null?J:P.lastOfflineQualitySettingsSavedMs)Y.lastOfflineQualitySettingsSavedMs=m;
S.params&&(Y.params=S.params)};var ta=function(){};
_.r(ta,Kk);ta.prototype.getApiPaths=function(){return o8};
ta.prototype.getExtension=function(Y){return _.g(Y,_.vX)};
ta.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;S.token&&(Y.continuation=S.token);P.formData&&(Y.formData=P.formData)};var Aa=function(){};
_.r(Aa,Kk);Aa.prototype.getApiPaths=function(){return o8};
Aa.prototype.getExtension=function(Y){return _.g(Y,ENf)};
Aa.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;Y.continuation=P.continuation};var UI=function(){};
_.r(UI,Kk);UI.prototype.getApiPaths=function(){return o8};
UI.prototype.getExtension=function(Y){return _.g(Y,_.aB)};
UI.prototype.JSC$11770_buildRequest=function(Y,S){var P,u=S.panelIdentifier||((P=S.identifier)==null?void 0:P.tag);u&&(Y.panelId=u);var W;if((W=S.globalConfiguration)==null?0:W.params){var m;Y.params=(m=S.globalConfiguration)==null?void 0:m.params}};
_.y6.Object.defineProperties(UI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Qj=function(){};
_.r(Qj,Kk);Qj.prototype.getApiPaths=function(){return o8};
Qj.prototype.getExtension=function(Y){return _.g(Y,PAU)};
Qj.prototype.JSC$11770_buildRequest=function(Y,S){S.panelLoadingStrategy&&tUE(Y,S.panelLoadingStrategy)};var kj=function(){};
_.r(kj,Kk);kj.prototype.getApiPaths=function(){return o8};
kj.prototype.getExtension=function(Y){return _.g(Y,r7i)};
kj.prototype.JSC$11770_buildRequest=function(Y,S){S.loadingStrategy&&tUE(Y,S.loadingStrategy)};var MN=function(){};
_.r(MN,Kk);MN.prototype.getApiPaths=function(){return o8};
MN.prototype.getExtension=function(Y){return _.g(Y,_.Rq)};
MN.prototype.JSC$11770_buildRequest=function(Y,S){S.panelLoadingStrategy&&tUE(Y,S.panelLoadingStrategy)};var yj=function(){};
_.r(yj,Kk);yj.prototype.getApiPaths=function(){return o8};
yj.prototype.getExtension=function(Y){return _.g(Y,GfS)};
yj.prototype.JSC$11770_buildRequest=function(Y,S){var P,u=(P=S.contentSourcePanelIdentifier)==null?void 0:P.tag;u&&(Y.panelId=u);var W;if((W=S.globalConfiguration)==null?0:W.params){var m;Y.params=(m=S.globalConfiguration)==null?void 0:m.params}};var NN=function(){};
_.r(NN,Kk);NN.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
NN.prototype.getExtension=function(Y){return _.g(Y,h7_)};
NN.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params)};var HC=function(){};
_.r(HC,Kk);HC.prototype.getApiPaths=function(){return VGi};
HC.prototype.getExtension=function(Y){return _.g(Y,Io3)};
HC.prototype.JSC$11770_buildRequest=function(Y,S){S.externalChannelId&&(Y.externalChannelId=S.externalChannelId);S.superChatAction&&(Y.superChatAction=S.superChatAction);S.superStickersAction&&(Y.superStickersAction=S.superStickersAction)};var Vj=function(){};
_.r(Vj,Kk);Vj.prototype.getApiPaths=function(){return Nmu};
Vj.prototype.getExtension=function(Y){return _.g(Y,Klm)||_.g(Y,pDX)};
Vj.prototype.JSC$11770_buildRequest=function(Y,S){S.videoIds?Y.videoIds=S.videoIds:S.videoId&&(Y.videoIds=[S.videoId]);S.playlistId&&(Y.playlistId=S.playlistId);S.params&&(Y.params=S.params);Y.excludeWatchLater=!1};var ex=function(){};
_.r(ex,Kk);ex.prototype.getApiPaths=function(){return Zf6};
ex.prototype.getExtension=function(Y){return _.g(Y,_.LP)};
ex.prototype.JSC$11770_buildRequest=function(Y,S,P){P.create_playlist_title?Y.title=P.create_playlist_title:S.title&&(Y.title=S.title);if(P.create_playlist_privacy_status&&typeof P.create_playlist_privacy_status==="number"){a:{var u=P.create_playlist_privacy_status;if(u!==0){if(u===1){u="PUBLIC";break a}if(u===2){u="UNLISTED";break a}}u="PRIVATE"}Y.privacyStatus=u}else S.privacyStatus&&(Y.privacyStatus=S.privacyStatus);P.create_playlist_description&&(Y.description=P.create_playlist_description);S.videoIds&&
(Y.videoIds=S.videoIds);S.params&&(Y.params=S.params);S.sourcePlaylistId&&(Y.sourcePlaylistId=S.sourcePlaylistId)};var OI=function(){};
_.r(OI,Kk);OI.prototype.getApiPaths=function(){return tot};
OI.prototype.getExtension=function(Y){return _.g(Y,wgU)};
OI.prototype.JSC$11770_buildRequest=function(Y,S){Y.playlistId=S.playlistId};var Y8=function(){};
_.r(Y8,Kk);Y8.prototype.getApiPaths=function(){return zwU};
Y8.prototype.getExtension=function(Y){return _.g(Y,z7S)};
Y8.prototype.JSC$11770_buildRequest=function(Y,S){S.playlistId&&(Y.playlistId=S.playlistId);S.params&&(Y.params=S.params)};var SE=function(){};
_.r(SE,Kk);SE.prototype.getApiPaths=function(){return hw6};
SE.prototype.getExtension=function(Y){return _.g(Y,_.hf)||void 0};
SE.prototype.JSC$11770_buildRequest=function(Y,S){S.actions&&(Y.actions=S.actions);S.params&&(Y.params=S.params);S.playlistId&&(Y.playlistId=S.playlistId)};var Po=function(){};
_.r(Po,Kk);_.z=Po.prototype;_.z.getApiPaths=function(){return DVL};
_.z.getExtension=function(Y){return _.g(Y,_.bM)};
_.z.JSC$11770_buildRequest=function(Y,S){S.videoId&&(Y.playerRequest={videoId:S.videoId},S.playerParams&&(Y.playerRequest.params=S.playerParams),S.racyCheckOk&&(Y.playerRequest.racyCheckOk=!!S.racyCheckOk),S.contentCheckOk&&(Y.playerRequest.contentCheckOk=!!S.contentCheckOk));S.params&&(Y.params=S.params);S.inputType&&(Y.inputType=S.inputType);Y.disablePlayerResponse=!0};
_.z.getRequestConfig=function(Y){var S;(Y=this.JSC$11777_getStoreKey(Y))&&(S={storeStrategy:{storeKey:Y}});_.f("web_log_reels_ticks")&&(S=S||{},S.requestTick="r_wrs",S.responseTick="r_wrr");return S};
_.z.JSC$11777_getStoreKey=function(Y){Y=this.getExtension(Y);if(_.f("shorts_controller_retrieve_seedless_sequence_v2")){if((Y==null?void 0:Y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Mq("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.f("web_prefetch_riw_for_next_video")||_.f("web_shorts_prefetch_service_enabled"))&&Y!=null&&Y.videoId){var S={videoId:Y.videoId};Y.params&&(S.params=Y.params);return _.Mq("reel_item_watch",S)}};var uR=function(){};
_.r(uR,Kk);_.z=uR.prototype;_.z.getApiPaths=function(){return IXs};
_.z.getExtension=function(Y){return _.g(Y,_.bM)};
_.z.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;Y.sequenceParams=S.sequenceParams;var u;((u=P)==null?0:u.contentPlaybackContext)&&_.f("web_shorts_prefetch_service_enabled")&&(Y.playbackContext={contentPlaybackContext:P.contentPlaybackContext})};
_.z.JSC$11777_getStoreKey=function(Y){if(_.f("shorts_controller_retrieve_seedless_sequence_v2")&&(Y=this.getExtension(Y),Y==null?0:Y.sequenceParams))return _.Mq("reel_watch_sequence",{sequenceParams:Y.sequenceParams})};
_.z.getRequestConfig=function(Y){Y=this.JSC$11777_getStoreKey(Y);var S;Y&&(S={storeStrategy:{storeKey:Y}});_.f("reel_watch_sequence_request_log_ticks")&&(S=S||{},S.requestTick="r_wsrs",S.responseTick="r_wsrr",S.processorTick="r_wsrp");return S};
var Wo=function(){};
_.r(Wo,Kk);Wo.prototype.getApiPaths=function(){return IXs};
Wo.prototype.getExtension=function(Y){return _.g(Y,_.vX)};
Wo.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;S.token&&(Y.continuation=S.token);var u;((u=P)==null?0:u.contentPlaybackContext)&&_.f("web_shorts_prefetch_service_enabled")&&(Y.playbackContext={contentPlaybackContext:P.contentPlaybackContext})};
Wo.prototype.getRequestConfig=function(Y){Y=this.JSC$11777_getStoreKey(Y);var S;Y&&(S={storeStrategy:{storeKey:Y}});_.f("reel_watch_sequence_request_log_ticks")&&(S=S||{},S.requestTick="r_wsrs",S.responseTick="r_wsrr",S.processorTick="r_wsrp");return S};var zF=function(){};
_.r(zF,Kk);zF.prototype.getApiPaths=function(){return kSJ};
zF.prototype.getExtension=function(Y){return _.g(Y,_.d4i)};
zF.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;S.flagAction&&(Y.action=S.flagAction);S.flagRequestType&&(Y.flagRequestType=S.flagRequestType);S.additionalDetailCheckboxChecked&&(Y.additionalDetailCheckboxChecked=S.additionalDetailCheckboxChecked);S.legalCheckboxChecked&&(Y.legalCheckboxChecked=S.legalCheckboxChecked);S={};P.flag_issue_type!==void 0&&(S.issue=P.flag_issue_type);P.flag_affiliation!==void 0&&(S.affiliation=P.flag_affiliation);P.flag_full_name&&(S.fullName=P.flag_full_name);
Object.keys(S).length&&(Y.legalReportDetails=S);if(P.flag_description||P.text)Y.userComments=P.flag_description||P.text;S={};P.minutes!==void 0&&P.seconds!==void 0&&(S.minutes=P.minutes,S.seconds=P.seconds);P.vss_id&&(S.vssId=P.vss_id);Object.keys(S).length&&(Y.videoReportDetails=S);S={};P.video_ids&&(S.videoIds=P.video_ids);P.impersonated_channel_url&&(S.impersonatedChannelUrl=P.impersonated_channel_url);Object.keys(S).length&&(Y.channelAbuseReportDetails=S)};
_.y6.Object.defineProperties(zF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mj=function(){};
_.r(mj,Kk);mj.prototype.getApiPaths=function(){return ees};
mj.prototype.getExtension=function(Y){return _.g(Y,Jzs)};
mj.prototype.JSC$11770_buildRequest=function(Y,S){S.blockedForKidsContent&&(Y.blockedForKidsContent=S.blockedForKidsContent)};var jE=function(){};
_.r(jE,Kk);jE.prototype.getApiPaths=function(){return w03};
jE.prototype.getExtension=function(Y){return _.g(Y,wDU)};
jE.prototype.JSC$11770_buildRequest=function(Y,S,P){Y.params=S.params;P.impersonated_channel_url&&(Y.impersonatedChannelUrl=P.impersonated_channel_url)};var J3=function(){};
_.r(J3,Kk);J3.prototype.getApiPaths=function(){return bkm};
J3.prototype.getExtension=function(Y){return _.g(Y,_.BUd)};
J3.prototype.JSC$11770_buildRequest=function(Y,S){S.items&&(Y.items=S.items);S.kidGaiaId&&(Y.kidGaiaId=S.kidGaiaId)};var Bo=function(){};
_.r(Bo,Kk);Bo.prototype.getApiPaths=function(){return Hff};
Bo.prototype.getExtension=function(Y){return _.g(Y,_.bDs)};
Bo.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params);S.targetId&&(Y.targetId=S.targetId)};var co=function(){};
_.r(co,Kk);co.prototype.getApiPaths=function(){return dVh};
co.prototype.getExtension=function(Y){return _.g(Y,Bym)};
co.prototype.JSC$11770_buildRequest=function(Y,S){S.externalVideoId&&(Y.externalVideoId=S.externalVideoId);S.query&&(Y.query=S.query);S.sourceTimelines&&(Y.sourceTimelines=S.sourceTimelines)};var Cg=function(){};
_.r(Cg,Kk);Cg.prototype.getApiPaths=function(){return lXd};
Cg.prototype.getExtension=function(Y){return _.g(Y,_.vX)||void 0};
Cg.prototype.JSC$11770_buildRequest=function(Y,S){S.token&&(Y.continuation=S.token)};
_.vvm=function(){};
_.r(_.vvm,Kk);_.z=_.vvm.prototype;_.z.getApiPaths=function(){return lXd};
_.z.getExtension=function(Y){return _.g(Y,_.qy)||void 0};
_.z.isNavigationCommand=function(){return!0};
_.z.JSC$11777_getStoreKey=function(Y,S){S=S===void 0?{}:S;if(!S.disableCache&&(Y=this.getExtension(Y))&&Y.query)return S={query:Y.query},Y.params&&(S.params=Y.params),_.Mq("search",S)};
_.z.JSC$11770_buildRequest=function(Y,S,P){S.query&&(Y.query=S.query);S.params&&(Y.params=S.params);if(!_.f("web_forward_suggest_stats_killswitch")){var u=_.g(S,eu_);u&&(Y.suggestStats=u)}var W;!_.f("kevlar_searchbox_stats_killswitch")&&((W=P.tempData)==null?0:W.gs_l)&&!_.g(S,eu_)&&(Y.webSearchboxStatsUrl="/search?oq="+(P.tempData.oq||"")+"&gs_l="+P.tempData.gs_l)};
_.z.getRequestConfig=function(Y,S){S=S===void 0?{}:S;Y=this.JSC$11777_getStoreKey(Y,S);var P;Y&&(P={storeStrategy:{storeKey:Y}});_.f("web_log_search_ticks_ks")||(P=P||{},P.requestTick="sr_s",P.responseTick="sr_r");return P};var qX=function(){};
_.r(qX,Kk);qX.prototype.getApiPaths=function(){return JO6};
qX.prototype.getExtension=function(Y){return _.g(Y,U$S)};
qX.prototype.JSC$11770_buildRequest=function(Y,S){S.serializedGetSharingProviderDataParams&&(Y.serializedGetSharingProviderDataParams=S.serializedGetSharingProviderDataParams)};var RG=function(){};
_.r(RG,Kk);RG.prototype.getApiPaths=function(){return BCs};
RG.prototype.getExtension=function(Y){return _.g(Y,LJU)};
RG.prototype.JSC$11770_buildRequest=function(Y,S){S.endpoint&&(Y.endpoint=S.endpoint);S.action&&(Y.action=S.action)};var x8=function(){};
_.r(x8,Kk);x8.prototype.getApiPaths=function(){return ADs};
x8.prototype.getExtension=function(Y){return _.g(Y,pgs)};
x8.prototype.JSC$11770_buildRequest=function(Y,S){Y.videoId=S.videoId;S.scheduledRedirectMetadataSourceVideoId&&(Y.scheduledRedirectMetadata={sourceVideoId:S.scheduledRedirectMetadataSourceVideoId})};var Do_=XMLHttpRequest.prototype.fetch,ILL=Do_&&Do_.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!_.yl?!0:!1;var bR=function(Y){this.JSC$15795_storeWithEntities=Y};
_.r(bR,Kk);_.z=bR.prototype;_.z.getApiPaths=function(){return GVL};
_.z.getExtension=function(Y){return _.g(Y,_.yx)||_.g(Y,_.bM)||_.g(Y,sM_)};
_.z.isNavigationCommand=function(){return!0};
_.z.JSC$11777_getStoreKey=function(Y){if((_.f("kevlar_cache_on_ttl_player")||_.f("mweb_enable_shorts_innertube_player_prefetch")||_.f("mweb_use_new_history_manager")||_.f("web_shorts_prefetch_service_enabled"))&&(Y=this.getExtension(Y))&&Y.videoId){var S={videoId:Y.videoId};Y.playlistId&&(S.playlistId=Y.playlistId);Y.playerParams&&(S.params=Y.playerParams);return _.Mq("player",S)}};
_.z.JSC$11770_getClientScreen=function(Y){var S;return((S=Y.contentPlaybackContext)==null?void 0:S.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.z.JSC$11770_buildRequest=function(Y,S,P){if(_.f("enable_interstitial_entity_check")){var u=this.JSC$15795_storeWithEntities;if(S.videoId)for(var W=_.n(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),m=W.next();!m.done;m=W.next()){m=m.value;var J;var c=void 0,C=void 0,x=S.videoId,b=m;(J=u)?(x=_.JE(x+b,"interstitialInteractionStateEntity"),J=(c=(C=_.BT(J.getState().entities,"interstitialInteractionStateEntity",x))==null?void 0:C.primaryButtonClicked)!=null?c:!1):J=!1;if(J)switch(m){case "CONTENT_CHECK_REQUIRED":S.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":S.racyCheckOk=!0}}}S.videoId&&(Y.videoId=S.videoId);S.playlistId&&(Y.playlistId=S.playlistId);S.index!==void 0&&(Y.playlistIndex=S.index+1);S.playerParams&&(Y.params=S.playerParams);"startTimeSeconds"in S&&S.startTimeSeconds&&(_.f("enable_player_request_builder_start_time_floor")?Y.startTimeSecs=Math.floor(S.startTimeSeconds):Y.startTimeSecs=S.startTimeSeconds);P.contentPlaybackContext&&(Y.playbackContext={contentPlaybackContext:P.contentPlaybackContext});P.prefetchPlaybackContext&&
(Y.playbackContext=Object.assign({},Y.playbackContext,{prefetchPlaybackContext:P.prefetchPlaybackContext}),Y.context.request||(Y.context.request={}),Y.context.request.isPrefetch=!0);Y.playbackContext||(Y.playbackContext={});u=N$6();Y.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!u,supportXhr:ILL};P.overrideMutedAtStart&&(Y.overrideMutedAtStart=P.overrideMutedAtStart);Y.racyCheckOk=!!S.racyCheckOk;Y.contentCheckOk=!!S.contentCheckOk;!_.f("captions_prefs_killswitch")&&(P=(P=_.u4("yt-player-caption-language-preferences"))?
P:[],P==null?0:P.length)&&(Y.captionParams={viewerSelectedCaptionLangs:P})};
_.z.getRequestConfig=function(Y){Y=this.JSC$11777_getStoreKey(Y);var S;Y&&(S={storeStrategy:{storeKey:Y}});_.f("web_log_player_watch_next_ticks")&&(S=S||{},S.requestTick="ps_s",S.responseTick="ps_r");return S};
bR[Md]=[Jk];var TF=function(){};
_.r(TF,Kk);TF.prototype.getApiPaths=function(){return oOf};
TF.prototype.getExtension=function(Y){return _.g(Y,_.xnJ)};
TF.prototype.JSC$11770_buildRequest=function(Y,S){Y.params=S.params;Y.correctionText=S.correctionText};var Kg=function(){};
_.r(Kg,Kk);Kg.prototype.getApiPaths=function(){return kDU};
Kg.prototype.getExtension=function(Y){return _.g(Y,_.cyt)};
Kg.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params);Y.searchQuery=S.searchQuery;Y.languageCode=S.languageCode;Y.kind=S.kind;Y.name=S.name;Y.externalVideoId=S.externalVideoId};var Eo=function(){};
_.r(Eo,Kk);_.z=Eo.prototype;_.z.getApiPaths=function(){return Svt};
_.z.getExtension=function(Y){return _.g(Y,_.yx)};
_.z.isNavigationCommand=function(){return!0};
_.z.JSC$11777_getStoreKey=function(Y){if((Y=this.getExtension(Y))&&Y.videoId){var S={videoId:Y.videoId};Y.playlistId&&(S.playlistId=Y.playlistId);Y.index&&(S.index=Y.index);Y.params&&(S.params=Y.params);return _.Mq("next",S)}};
_.z.JSC$11770_getClientScreen=function(Y){var S;return((S=Y.contentPlaybackContext)==null?void 0:S.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.z.JSC$11770_buildRequest=function(Y,S,P){S.videoId&&(Y.videoId=S.videoId);S.playlistId&&(Y.playlistId=S.playlistId);S.params&&(Y.params=S.params);S.index!==void 0&&(Y.playlistIndex=S.index);Y.racyCheckOk=!(!P.racyCheckOk&&!S.racyCheckOk);Y.contentCheckOk=!!S.contentCheckOk;P.contentPlaybackContext&&(Y.autonavState=P.contentPlaybackContext.autonavState,Y.playbackContext={vis:P.contentPlaybackContext.vis,lactMilliseconds:P.contentPlaybackContext.lactMilliseconds});P.prefetchPlaybackContext&&(Y.context.request||
(Y.context.request={}),Y.context.request.isPrefetch=!0);_.f("captions_hats_killswitch")||(S=_.$o().getFlag(65),S=S!=null?!S:!1,P=!!_.u4("yt-player-sticky-caption"),Y.captionsRequested=S&&P)};
_.z.getRequestConfig=function(Y){Y=this.JSC$11777_getStoreKey(Y);var S;Y&&(S={storeStrategy:{storeKey:Y}});_.f("web_log_player_watch_next_ticks")&&(S=S||{},S.requestTick="wn_s",S.responseTick="wn_r");return S};
var fg=function(){};
_.r(fg,Kk);fg.prototype.getApiPaths=function(){return Svt};
fg.prototype.getExtension=function(Y){return _.g(Y,_.vX)};
fg.prototype.JSC$11770_buildRequest=function(Y,S){S.token&&(Y.continuation=S.token)};var gj=function(Y,S){this.playerRequestBuilder=Y;this.watchNextRequestBuilder=S};
_.r(gj,uL_);gj.prototype.getApiPaths=function(){return qL6};
gj.prototype.getExtension=function(Y){return _.g(Y,_.yx)};
gj.prototype.isNavigationCommand=function(){return!0};
gj.prototype.JSC$11770_buildRequest=function(Y,S,P){Y.playerRequest={};Y.watchNextRequest={};this.playerRequestBuilder.JSC$11770_buildRequest(Y.playerRequest,S,P);this.watchNextRequestBuilder.JSC$11770_buildRequest(Y.watchNextRequest,S,P)};
gj[Md]=[bR,Eo];var $8=function(){};
_.r($8,Kk);$8.prototype.getApiPaths=function(){return Pl3};
$8.prototype.getExtension=function(Y){return _.g(Y,a36)};
$8.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.params=S.params)};var rj=function(Y){this.JSC$15822_storeWithEntities=Y};
_.r(rj,Kk);rj.prototype.getApiPaths=function(){return wUU};
rj.prototype.getExtension=function(Y){return _.g(Y,wps)||_.g(Y,FD3)};
rj.prototype.JSC$11770_buildRequest=function(Y,S,P){P.client_data&&(Y.clientData=P.client_data);if(S.commerceActionConfig){var u=S.commerceActionConfig;S=u.actionId;u=u.commerceActionParams;S&&(Y.actionId=S);u&&(Y.commerceActionParams=u)}else{var W=S.actionId,m=S.commerceActionParams;P=S.entityKeys;W&&(Y.actionId=W);m&&(Y.commerceActionParams=m);var J;S=(u=this.JSC$15822_storeWithEntities)==null?void 0:(J=u.getState())==null?void 0:J.entities;if(P&&S){u=[];J=_.n(P);for(P=J.next();!P.done;P=J.next())if(W=
P.value,P=_.mZ(W).entityType,W=_.BT(S,P,W))m={},u.push((m[P]=W,m));Y.entityMutationPayloads=u}}};
rj.prototype.getRequestConfig=function(Y){var S,P=(S=_.g(Y,wps))==null?void 0:S.requestSequenceType;if(P&&Y.clickTrackingParams&&P!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:Y.clickTrackingParams,sequenceType:P}}};
rj[Md]=[Jk];var GF=function(){};
_.r(GF,Kk);GF.prototype.getApiPaths=function(){return ucs};
GF.prototype.getExtension=function(Y){return _.g(Y,_.e2f)};
GF.prototype.JSC$11770_buildRequest=function(Y,S){S.feedbackData&&(Y.feedbackData=S.feedbackData);S.params&&(Y.itemParams=S.params)};
_.y6.Object.defineProperties(GF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var h3=function(){};
_.r(h3,Kk);h3.prototype.getApiPaths=function(){return WyJ};
h3.prototype.getExtension=function(Y){return _.g(Y,Ods)};
h3.prototype.JSC$11770_buildRequest=function(Y,S,P){P.payments_payload&&(Y.paymentsPayload=P.payments_payload);P.offer_params&&(Y.offerParams=P.offer_params);S.transactionParams&&(Y.transactionParams=S.transactionParams)};var vo=function(){};
_.r(vo,Kk);vo.prototype.getApiPaths=function(){return zK3};
vo.prototype.getExtension=function(Y){return _.g(Y,_.Yem)};
vo.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;S.buybucketParams&&(Y.buybucketData={params:S.buybucketParams},S.stickerParams?Y.buybucketData.stickerParams=S.stickerParams:(P.rich_chat_message?Y.buybucketData.richChatMessage=P.rich_chat_message:P.chat_message_text&&(Y.buybucketData.chatMessageText=P.chat_message_text),P.purchase_price_micros&&(Y.buybucketData.purchasePriceMicros=P.purchase_price_micros.toString())));S.donationAmountMicros&&(Y.tipAmountMicros=S.donationAmountMicros,
S.tipParams&&(Y.tipParams=S.tipParams));S.offerParams&&(Y.offerParams=S.offerParams);S.productData&&(Y.productData=S.productData);S.transactionParams&&(Y.transactionParams=S.transactionParams)};var Da=function(){};
_.r(Da,Kk);Da.prototype.getApiPaths=function(){return mcd};
Da.prototype.getExtension=function(Y){return _.g(Y,uhi)};
Da.prototype.JSC$11770_buildRequest=function(Y,S){S.updateFopParams&&(Y.updateFopParams=S.updateFopParams)};var IG=function(){};
_.r(IG,Kk);IG.prototype.getApiPaths=function(){return nRu};
IG.prototype.getExtension=function(Y){return _.g(Y,_.Ya)};
IG.prototype.JSC$11770_buildRequest=function(Y,S){S.couponCode&&(Y.couponCode=S.couponCode);S.params&&(Y.itemParams=S.params)};var aG=function(){};
_.r(aG,Kk);aG.prototype.getApiPaths=function(){return j5L};
aG.prototype.getExtension=function(Y){return _.g(Y,_.pph)};
aG.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;S.params&&(Y.params=S.params);P.ctk&&(Y.clientToken=P.ctk)};var Lg=function(Y){this.JSC$15857_storeWithEntities=Y};
_.r(Lg,Kk);Lg.prototype.getApiPaths=function(){return J8J};
Lg.prototype.getExtension=function(Y){return _.g(Y,_.pP)};
Lg.prototype.JSC$11770_buildRequest=function(Y,S,P){P.purchase_price_micros&&(Y.productData={pdgData:{purchasePriceMicros:P.purchase_price_micros.toString()}},P.rich_chat_message&&(Y.productData.pdgData.richChatMessage=P.rich_chat_message),P.currency_code&&(Y.productData.pdgData.currencyCode=P.currency_code));S.transactionParams&&(Y.transactionParams=S.transactionParams);S.clientLocationContext&&(Y.clientLocationContext=S.clientLocationContext);P.payments_payload&&(Y.paymentsPayload=P.payments_payload);
P.funds_guarantee_callback_client_data&&(Y.fundsGuaranteeCallbackClientData=P.funds_guarantee_callback_client_data);var u,W;P=(u=this.JSC$15857_storeWithEntities)==null?void 0:(W=u.getState())==null?void 0:W.entities;if(S.entityKeys&&P){u=[];S=_.n(S.entityKeys);for(W=S.next();!W.done;W=S.next()){var m=W.value;W=_.mZ(m).entityType;if(m=_.BT(P,W,m)){var J={};u.push((J[W]=m,J))}}Y.entityMutationPayloads=u}};
Lg[Md]=[Jk];var wj=function(){};
_.r(wj,Kk);wj.prototype.getApiPaths=function(){return BaL};
wj.prototype.getExtension=function(Y){return _.g(Y,Ses)};
wj.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;P.backend_analytics&&(Y.serializedBackendAnalyticsEvent=P.backend_analytics);S.offerParams&&(Y.offerParams=S.offerParams)};var pg=function(){};
_.r(pg,Kk);pg.prototype.getApiPaths=function(){return nRu};
pg.prototype.getExtension=function(Y){return _.g(Y,Wdu)};
pg.prototype.JSC$11770_buildRequest=function(Y,S){S.params&&(Y.itemParams=S.params)};var FN=function(){};
_.r(FN,Kk);FN.prototype.getApiPaths=function(){return c8h};
FN.prototype.getExtension=function(Y){return _.g(Y,_.Zdd)};
FN.prototype.JSC$11770_buildRequest=function(Y,S,P){P.resume_time_ms&&(Y.resumeTimeMs=P.resume_time_ms);S.pauseParams&&(Y.pauseParams=S.pauseParams)};var so=function(){};
_.r(so,Kk);so.prototype.getApiPaths=function(){return Cls};
so.prototype.getExtension=function(Y){return _.g(Y,_.P4U)};
so.prototype.JSC$11770_buildRequest=function(Y,S,P){P=P===void 0?{}:P;P.c&&(Y.redeemCode=P.c);P.rd&&(Y.riskData=P.rd);P.ctk&&(Y.clientToken=P.ctk)};var dj=function(){};
_.r(dj,Kk);dj.prototype.getApiPaths=function(){return qvs};
dj.prototype.getExtension=function(Y){return _.g(Y,_.idu)};
dj.prototype.JSC$11770_buildRequest=function(Y,S){S.resumeParams&&(Y.resumeParams=S.resumeParams)};var lR=function(Y,S){this.clientName=Y;this.defaultExpirationDelayMs=S};
lR.prototype.put=function(Y,S){var P=this,u;return _.B(function(W){u=Object.assign({},S.data);u.key=Y;u.clientName=P.clientName;u.expireTimestampMs===void 0&&(u.expireTimestampMs=(Math.round((0,_.Oh)())+P.defaultExpirationDelayMs).toString());return W.return(P.putInternal(Y,u))})};
lR[Md]=[Jl,ATt];var aLh=function(){lR.apply(this,arguments);this.JSC$15887_responseStore=new Map};
_.r(aLh,lR);_.z=aLh.prototype;_.z.get=function(Y){var S=this;return _.B(function(P){return P.return(Ov(S,Y))})};
_.z.putInternal=function(Y,S){var P=this,u,W,m;return _.B(function(J){u=P.defaultExpirationDelayMs;S.expireTimestampMs&&(u=Number(S.expireTimestampMs)-Math.round((0,_.Oh)()),W=_.z_("mweb_override_response_store_expiration_ms"),W>0&&W<u&&(u=W));m=setTimeout(function(){P.remove(Y)},u);
P.JSC$15887_responseStore.set(Y,{entryData:S,timer:m});_.Yt(J)})};
_.z.remove=function(Y){var S=this;return _.B(function(P){LY_(S,Y);_.Yt(P)})};
_.z.removeAll=function(){var Y=this;return _.B(function(S){Y.JSC$15887_responseStore.forEach(function(P){clearTimeout(P.timer)});
Y.JSC$15887_responseStore.clear();_.Yt(S)})};
_.z.has=function(Y){return!!this.JSC$15887_responseStore.get(Y)};
_.z.getKeys=function(){return this.JSC$15887_responseStore.keys()};
var Ov=function(Y,S){if(Y=Y.JSC$15887_responseStore.get(S))return new _.e4(Y.entryData)},LY_=function(Y,S){var P=Y.JSC$15887_responseStore.get(S);
P&&(clearTimeout(P.timer),Y.JSC$15887_responseStore.delete(S))};var ACK;var k0X=function(Y,S,P){lR.call(this,Y,S);this.token=P};
_.r(k0X,lR);_.z=k0X.prototype;_.z.get=function(Y){var S=this,P,u;return _.B(function(W){return W.nextAddress==1?_.q(W,QHE(S.token),2):W.nextAddress!=3?(P=W.yieldResult,_.q(W,P.get("ResponseStore",[Y,S.clientName]),3)):(u=W.yieldResult)?W.return(new _.e4(u)):W.return(void 0)})};
_.z.putInternal=function(Y,S){var P=this,u;return _.B(function(W){if(W.nextAddress==1)return _.q(W,QHE(P.token),2);u=W.yieldResult;return _.q(W,u.put("ResponseStore",S),0)})};
_.z.remove=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,QHE(S.token),2);P=u.yieldResult;return u.return(P.delete("ResponseStore",[Y,S.clientName]))})};
_.z.removeAll=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,QHE(Y.token),2);S=P.yieldResult;return _.q(P,CEU(S,IDBKeyRange.only(Y.clientName)),0)})};
_.z.has=function(){throw Error("Wi");};_.XN=new _.yH("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var wEU=function(Y){var S;this.stateTagsData=(S=Y.responseContext)==null?void 0:S.stateTags},pEs=function(Y){var S;
return((S=Y.stateTagsData)==null?void 0:S.stateTagsModified)||[]};var FYs;FYs=function(Y){this.JSC$15900_responseStore=Y};
_.oB=function(Y,S,P){if(!_.f("state_tags_killswitch")){var u=new wEU(S);if(pEs(u).length>0){var W=Y.JSC$15900_responseStore.getKeys();W=_.n(W);for(var m=W.next();!m.done;m=W.next()){m=m.value;var J=Ov(Y.JSC$15900_responseStore,m);if(J){var c=_.na(J);a:{var C=void 0;J=pEs(u);c=((C=(new wEU(c)).stateTagsData)==null?void 0:C.relevantStateTags)||[];C=_.n(c);for(c=C.next();!c.done;c=C.next())if(c=c.value,c.stateTag!=null&&J.includes(c.stateTag)&&c.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){J=
!0;break a}J=!1}J&&LY_(Y.JSC$15900_responseStore,m)}}}}var x;u=(x=S.responseContext)==null?void 0:x.maxAgeSeconds;_.f("web_prefetch_riw_for_next_video")&&!u&&S.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(u=3600);P&&u&&Number(u)>0&&(S=ei(S,u),Y.JSC$15900_responseStore.put(P,new _.e4(S)))};
FYs.prototype.handleResponse=function(Y,S){if(!S)throw Error("Xi");var P,u;S=(P=S.config)==null?void 0:(u=P.storeStrategy)==null?void 0:u.storeKey;_.oB(this,Y,S)};
FYs[Md]=[_.VG];_.F6E=new _.yH("STORE_RESPONSE_PROCESSOR_TOKEN");var s26=function(Y){this.JSC$15903_responseStore=Y};
s26.prototype.handleResponse=function(Y,S){if(S.input.match(_.HT(IXs))){var P;if(Y==null?0:(P=Y.entries)==null?0:P.length)for(Y=_.n(Y.entries),S=Y.next();!S.done;S=Y.next()){P=S.value.command;var u=void 0;S=(u=_.g(P,_.bM))==null?void 0:u.unserializedPrefetchData;if(!P||!S)break;u=(new Po).JSC$11777_getStoreKey(P);var W=_.g(S,Yms),m=void 0,J=void 0,c=void 0,C=_.z_("web_shorts_prefetch_service_ttl_seconds")>0?_.z_("web_shorts_prefetch_service_ttl_seconds"):Number((c=(m=W)==null?void 0:(J=m.responseContext)==
null?void 0:J.maxAgeSeconds)!=null?c:3600);u&&C>0&&(W=ei(W,C),this.JSC$15903_responseStore.put(u,new _.e4(W)));P=(new bR).JSC$11777_getStoreKey(P);S=_.g(S,Xmu);m=W=u=void 0;J=_.z_("web_shorts_prefetch_service_ttl_seconds")>0?_.z_("web_shorts_prefetch_service_ttl_seconds"):Number((m=(u=S)==null?void 0:(W=u.responseContext)==null?void 0:W.maxAgeSeconds)!=null?m:3600);P&&J>0&&(S=ei(S,J),this.JSC$15903_responseStore.put(P,new _.e4(S)))}}};
s26[Md]=[_.VG];var Za=function(){this.scheduler=_.vs()},do3;
Za.prototype.pause=function(){throw Error("Yi");};
Za.prototype.resume=function(){throw Error("Yi");};
Za.prototype.queue=function(Y){var S=this,P=_.dL(),u=_.hp(this.scheduler,function(){try{var W;if(_.zR.instance)var m=_.zR.instance;else{var J=new _.$2("Error: Unexpected uninitialized CommandHandler.");_.p_(J);m=void 0}(W=m)==null||W.resolveCommand(Y.command);P.resolve()}catch(c){P.reject(c)}});
P.promise.thenCatch(function(W){W instanceof _.ok&&S.scheduler.cancelJob(u)});
return P.promise};
Za.prototype.queueAll=function(Y){var S=new Map;Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())P=P.value,S.set(P.id,this.queue(P));return S};var XE3=function(Y,S){var P=this;this.taskModel=Y;this.onTaskCancelledCallback=S;this.resolver=_.dL();Y=Y.proto.prefetchConfig;if(!Y)throw Error("Zi");if(!Y.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(u){u instanceof _.ok&&(lLi(P,P.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),P.onTaskCancelledCallback(P.taskModel.id,P.jobId),P.tick("pcc"));
throw u;});
this.timerName=this.taskModel.id;_.pb(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},Z9h=function(Y){switch(Y.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},lLi=function(Y,S){_.wP({prefetchInfo:{cancellationReason:S}},Y.timerName)};
XE3.prototype.tick=function(Y){_.Fk(Y,void 0,this.timerName)};var oG=function(){var Y=this;this.scheduler=_.vs();this.maxInflightTasks=_.z_("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.z_("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new s__;this.onTaskCancelled=function(S,P){P&&Y.scheduler.cancelJob(P);i9f(Y,S);iR(Y,3)}},ovu=function(){oG.instance||(oG.instance=new oG);
return oG.instance};
oG.prototype.pause=function(){this.prefetchCoordinatorState=0};
oG.prototype.resume=function(){iR(this,0)};
oG.prototype.queue=function(Y){Y=tOt(this,Y);iR(this,1);return Y};
oG.prototype.queueAll=function(Y){var S=new Map;Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())P=P.value,S.set(P.id,tOt(this,P));iR(this,1);return S};
var tOt=function(Y,S){var P=Y.allPrefetchTasks.get(S.id);if(P)return P.cancellablePromise;try{var u=new XE3(S,Y.onTaskCancelled)}catch(m){return _.t9(m)}P=u;P.tick("pcq");var W={prefetchInfo:{taskId:P.taskModel.id,isPrefetch:!0,fetchAction:P.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:P.taskModel.command.clickTrackingParams}};P.taskModel.csn&&(W.clientScreenNonce=P.taskModel.csn);_.wP(W,P.timerName);Y.allPrefetchTasks.set(S.id,u);Y.drainingHeap.insert(-Z9h(u),u);return u.cancellablePromise},
iR=function(Y,S){Y.prefetchCoordinatorState===S&&(Y.prefetchCoordinatorState=2,AHh(Y))},AHh=function(Y){for(var S={};Y.prefetchCoordinatorState!==0;S={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(Y.inflightPrefetchTasks.size>=Y.maxInflightTasks){Y.prefetchCoordinatorState=3;break}S.prefetchTask$jscomp$1=Y.drainingHeap.remove();if(!S.prefetchTask$jscomp$1){Y.prefetchCoordinatorState=1;break}S.taskId$jscomp$3=S.prefetchTask$jscomp$1.taskModel.id;if(Y.allPrefetchTasks.has(S.taskId$jscomp$3)){var P=-1;Y.coordinatorTimeoutMs>0&&(P=_.hp(Y.scheduler,function(u){return function(){t3(Y,u.taskId$jscomp$3,Error("aj"))}}(S),Y.coordinatorTimeoutMs));
Y.inflightPrefetchTasks.set(S.taskId$jscomp$3,P);if(!Y.JSC$15919_commandHandler){if(!_.zR.instance){t3(Y,S.taskId$jscomp$3,Error("bj"));continue}Y.JSC$15919_commandHandler=_.zR.instance}a:switch(S.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":P=1;break a;default:P=0}S.prefetchTask$jscomp$1.jobId=Y.scheduler.addJob(function(u){return function(){u.prefetchTask$jscomp$1.tick("pcr");try{Y.JSC$15919_commandHandler.resolveCommand(u.prefetchTask$jscomp$1.taskModel.command)||
t3(Y,u.taskId$jscomp$3,Error("cj"))}catch(W){t3(Y,u.taskId$jscomp$3,W)}}}(S),P,0)}}},UoL=function(Y,S){(S=i9f(Y,S))!=null&&(S.resolver.resolve(),S.tick("pce"));
iR(Y,3)},t3=function(Y,S,P){(S=i9f(Y,S,P))!=null&&(S.resolver.reject(P),S.tick("pcc"),lLi(S,"CANCELLATION_REASON_ERROR"),Math.random()<=_.z_("prefetch_coordinator_error_logging_sampling_rate")&&(P=new _.$2("Prefetch Command failed.",S.taskModel.id,P.message),_.p_(P)));
iR(Y,3)},i9f=function(Y,S,P){var u=Y.allPrefetchTasks.get(S);
u?((P=Y.inflightPrefetchTasks.get(S))&&P!==-1&&Y.scheduler.cancelJob(P),Y.inflightPrefetchTasks.delete(S),Y.allPrefetchTasks.delete(S)):_.sf(new _.$2("Unexpected missing prefetch task when deleting task.",S,P==null?void 0:P.message));return u};var Q2m=function(Y,S,P,u,W){this.id=Y;this.triggerOn=S;this.cancelOn=P;this.command=u;this.proto=W};
_.y6.Object.defineProperties(Q2m.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var kWs=function(){this.JSC$15924_prefetchCoordinator=ovu();do3||(do3=new Za);this.defaultCoordinator=do3},MOL;
kWs.getInstance=function(){MOL||(MOL=new kWs);return MOL};
kWs.prototype.get=function(Y){switch(Y){case 0:return this.JSC$15924_prefetchCoordinator;default:return this.defaultCoordinator}};var A3=function(){this.coordinatorSupplier=kWs.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},H9s=function(Y){var S=_.pM()||void 0,P=Object.keys(yHd)[0];
if(P){var u=Y.taskIdByTriggerId.get(P);if(u!=null){Y.taskIdByTriggerId.delete(P);P=[];u=_.n(u);for(var W=u.next();!W.done;W=u.next())if(W=Y.tasks.get(W.value))S!=="UNDEFINED_CSN"&&(W.csn=S),P.push(W);P=NAY(P);S=[];P=_.n(P);for(u=P.next();!u.done;u=P.next()){W=_.n(u.value);u=W.next().value;W=W.next().value;u=Y.coordinatorSupplier.get(u).queueAll(W);u=_.n(u);var m=u.next();for(W={};!m.done;W={taskId$jscomp$9:void 0},m=u.next()){var J=_.n(m.value);m=J.next().value;J=J.next().value;W.taskId$jscomp$9=
m;m=J;S.push(W.taskId$jscomp$9);Y.queuedPromisesByTask.set(W.taskId$jscomp$9,_.gy(m,function(c){return function(){Nli(Y,c.taskId$jscomp$9)}}(W)))}}}}else _.sf(new _.$2("Unexpected malformed TriggerEvent."))};
A3.prototype.trigger=function(Y,S){var P=this,u=this.tasks.get(Y);if(!u||this.queuedPromisesByTask.has(Y))return!1;VOd(this,Y,u.triggerOn);S!=="UNDEFINED_CSN"&&(u.csn=S);S=this.coordinatorSupplier.get(u.taskType).queue(u);this.queuedPromisesByTask.set(Y,_.gy(S,function(){Nli(P,Y)}));
return!0};
A3.prototype.cancel=function(Y){var S=this.queuedPromisesByTask.get(Y);if(S)S.cancel();else return Nli(this,Y)};
var Nli=function(Y,S){Y.queuedPromisesByTask.delete(S);var P=Y.tasks.get(S);if(!P)return!1;Y.tasks.delete(S);VOd(Y,S,P.triggerOn);(P=yCE(P.cancelOn))&&(Y=Y.taskIdByCancelId.get(P))&&Y.delete(S);return!0},VOd=function(Y,S,P){(P=Object.keys(P)[0])&&(Y=Y.taskIdByTriggerId.get(P))&&Y.delete(S)};var yHd={taskRegistered:{}},Uo=function(){A3.instance||(A3.instance=new A3);this.JSC$15933_taskManager=A3.instance};
_.r(Uo,Gw);
Uo.prototype.resolveCommand=function(Y){var S=this,P,u;return _.B(function(W){P=_.g(Y,SGs);if((u=P)==null||!u.tasks){var m=new _.$2("RegisterTasksCommand is missing tasks.");_.p_(m);return W.return()}m=S.JSC$15933_taskManager;for(var J=_.n(P.tasks),c=J.next();!c.done;c=J.next())if(c=c.value,c=c.id&&c.triggerOn&&c.cancelOn&&c.command?new Q2m(c.id,c.triggerOn,c.cancelOn,c.command,c):void 0,c){var C=Object.keys(c.triggerOn)[0];if(C){var x=yCE(c.cancelOn);x?(m.tasks.set(c.id,c),m.taskIdByTriggerId.has(C)||m.taskIdByTriggerId.set(C,
new Set),m.taskIdByTriggerId.get(C).add(c.id),m.taskIdByCancelId.has(x)||m.taskIdByCancelId.set(x,new Set),m.taskIdByCancelId.get(x).add(c.id)):_.sf(new _.$2("Unexpected malformed cancelOn field."))}else _.sf(new _.$2("Unexpected malformed triggerOn field."))}else _.sf(new _.$2("Unexpected malformed Task proto."));H9s(S.JSC$15933_taskManager);_.Yt(W)})};var ePL={},O9J=(ePL.rendered={priority:0,callback:function(){var Y={};Y.numCpu=navigator.hardwareConcurrency;var S={};S.ramGb=_.Pa.navigator.deviceMemory;var P={staticContext:{}};S.ramGb&&HI$(S.ramGb)&&(P.staticContext.memoryTotalKbytes=(S.ramGb*1048576).toString());Y.numCpu&&HI$(Y.numCpu)&&(P.staticContext.cpuCores=Y.numCpu);if(_.f("web_enable_adaptive_appl_signal")){Y={};S=_.lj("rses_dpj");var u=_.lj("rsef_dpj");S&&S>0&&u&&u>0&&(S=Math.ceil(u-S),S>0&&(Y.loadLatency=S));Y.loadLatency&&HI$(Y.loadLatency)&&
(P.appL=Y.loadLatency.toString())}_.L_("applicationStarted",P)}},ePL);var Y95=new _.yH("WINDOW_ON_ERROR"),S91=new _.yH("ERROR_WEIGHT_MAPS"),Pao=new _.yH("INIT_ERROR");var uEd={},W$B=(uEd.initialized={priority:10,callback:function(Y){Y.injector.resolve(Pao)()}},uEd);var zhj=function(){},mUd=function(){var Y=_.tA("meta_logger_impl");
Y||(Y=new zhj,_.HQ("meta_logger_impl",Y));return Y},nYu=function(){mUd().csiSubscriptionKey=Obf("meta_logging_csi_event",function(Y){var S=Y.timerName;
if(Y=Y.timelineData){_.pb(S,{startTime:Y.startTime},S);Y.infos&&_.wP(Y.infos,S);for(var P=_.n(Object.keys(Y.ticks)),u=P.next();!u.done;u=P.next())u=u.value,_.Fk(u,Y.ticks[u],S)}})};
zhj.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&PIh(this.csiSubscriptionKey)};var jhX={},Juo=(jhX.initialized={priority:10,callback:function(){nYu()}},jhX);var B1c=function(Y,S){this.innertubeClientName=Y;this.JSC$15949_prefCookie=S};
B1c.prototype.record=function(){if(_.f("web_li_record_binary_eval_tick")){var Y=_.lj("rsef_dpj");var S=_.lj("rses_dpj");Y=Y!==void 0&&S!==void 0?Math.round(Y-S):void 0;if(Y!==void 0&&Y>0){S=_.u4(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var P=this.poolSize;if(!(S.valuesSeen>=1E9)){if(S.valuesSample.length<P)S.valuesSample.push(Y);else{var u=Math.floor(Math.random()*(S.valuesSeen+1));u<P&&(S.valuesSample[u]=Y)}S.valuesSeen+=1}_.PU(this.storagePrefix+"-"+this.innertubeClientName,
S,2592E3);Y=S.valuesSample;S=VU$(Y);Y=Y.length<5?void 0:S<400?1:S<1700?2:3;Y!==void 0&&(this.JSC$15949_prefCookie.set(this.cookiePrefix+this.innertubeClientName,Y),this.JSC$15949_prefCookie.save())}}else _.WU(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15949_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15949_prefCookie.save()};
B1c[Md]=[Jl,Z1];var cuo=function(){B1c.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.r(cuo,B1c);var e5h=!1;var Ca_=new _.yH("PAGE_LOAD_TIME_TOKEN");var q9I=new _.yH("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Qk=function(Y,S){this.JSC$15972_storeWithEntities=Y;this.JSC$15972_commandHandler=S;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Qk.prototype.start=function(){this.JSC$15972_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Qk.prototype.observeDownloadingEntities=function(){var Y=_.Zr$(this.JSC$15972_storeWithEntities.getState().entities).map(function(u){return irK(u)});
if(Y.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var S={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:svY()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Sk(_.Td("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$15972_commandHandler.resolveCommand(S)}this.downloadingEntities=Y}else if(this.downloadingEntities.length){var P=Xm8(this.JSC$15972_storeWithEntities.getState().entities).map(function(u){return irK(u)});
this.downloadingEntities.filter(function(u){return P.includes(u)}).length&&(Y={openPopupAction:Fxf()},this.JSC$15972_commandHandler.resolveCommand(Y));
this.downloadingEntities=[]}};
Qk[Md]=[Jk,_.uY];var RhX;_.k8=function(Y,S,P,u,W,m,J,c){this.JSC$15975_playerApiPromise=Y;this.JSC$15975_commandHandler=S;this.JSC$15975_screenManager=P;this.offlineWebClientEligibility=u;this.JSC$15975_prefStorage=W;this.JSC$15975_actionRouter=m;this.entityTypeMap=J;this.JSC$15975_persistentStorePromiseAccessor=c;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
RhX=function(){var Y=_.E().resolve(_.k8),S;_.B(function(P){if(P.nextAddress==1)return Y.downloadFailureListenerBound?P.return():_.q(P,Y.JSC$15975_playerApiPromise,2);S=P.yieldResult;S.addEventListener("onOfflineOperationFailure",function(u){if(u.failureReason&&u.entityKey&&u.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(u.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var W=_.mZ(u.entityKey).entityId;W&&Y.JSC$15975_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
W)}else if(_.f("kevlar_woffle")){W=Y.JSC$15975_commandHandler;var m=W.resolveCommand;u=u.failureReason;var J=_.Td("TRANSFER_FAILED",void 0,"Download failed");u==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(J=_.Td("STORAGE_FULL",void 0,"Storage full"));m.call(W,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Sk(J),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
Y.downloadFailureListenerBound=!0;_.Yt(P)})};
_.k8.prototype.deleteVideo=function(Y,S){var P=this,u,W,m;return _.B(function(J){if(J.nextAddress==1)return _.q(J,P.JSC$15975_playerApiPromise,2);u=J.yieldResult;m={offlineLoggingData:{offlineDeleteReason:(W=S)!=null?W:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.q(J,u.queueOfflineAction(Y,P.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",m),0)})};
_.k8.prototype.pauseVideoDownload=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,S.JSC$15975_playerApiPromise,2);P=u.yieldResult;P.pauseVideoDownload(Y);_.Yt(u)})};
_.k8.prototype.resumeVideoDownload=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,S.JSC$15975_playerApiPromise,2);P=u.yieldResult;return _.q(u,P.resumeVideoDownload(Y),0)})};
_.k8[Md]=[_.HX,_.uY,_.jG,q9I,Al,tf,b$s,AN];var xUB=new _.yH("DOWNLOAD_STATE_STORE_TOKEN");var b81=function(Y,S){this.JSC$15994_persistentStorePromiseAccessor=Y;this.store=S;this.upliftCompletionResolver=new _.nV},EYI=function(){var Y=_.E().resolve(T16),S;
_.B(function(P){switch(P.nextAddress){case 1:if(Y.upliftImplPromise)return P.return(Y.upliftImplPromise);_.ND(P,2);Y.upliftImplPromise=K$B(Y);return _.q(P,Y.upliftImplPromise,4);case 4:Y.upliftCompletionResolver.resolve();_.tc(P,3);break;case 2:throw S=_.O4(P),Y.upliftCompletionResolver.reject(S),S;case 3:return P.return(Y.upliftImplPromise)}})},K$B=function(Y){var S,P,u;
return _.B(function(W){switch(W.nextAddress){case 1:return _.Z4("LOGGED_IN")?_.q(W,Y.JSC$15994_persistentStorePromiseAccessor(),2):W.return();case 2:S=W.yieldResult;if(!S)return _.Fk("vdeur"),W.return();_.Fk("vdeus");_.ND(W,3);return _.q(W,ff_(S),5);case 5:P=W.yieldResult;Y.store.dispatch(r7E(P));S.observe(function(m){GfK(Y.store,m)});
_.tc(W,4);break;case 3:throw u=_.O4(W),_.Fk("vdeur"),u;case 4:_.Fk("vdeuc"),_.Yt(W)}})},ff_=function(Y){var S;
return _.B(function(P){if(P.nextAddress==1)return _.q(P,m5X(Y),2);S=P.yieldResult;return P.return(S.reduce(function(u,W){if(!W.data||!W.key||!W.entityType)return u;u[W.entityType]||(u[W.entityType]={});u[W.entityType][W.key]=W.data;return u},{}))})};
b81[Md]=[AN,_.Ee];var T16;T16=new _.yH("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.MX=new _.yH("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var yk=function(Y,S){this.JSC$15997_persistentStorePromiseAccessor=Y;this.transportService=S};
yk.prototype.refresh=function(){var Y=this,S,P,u,W;return _.B(function(m){if(m.nextAddress==1)return _.Z4("LOGGED_IN")?_.q(m,Y.JSC$15997_persistentStorePromiseAccessor(),2):m.return();if(m.nextAddress!=3)return(S=m.yieldResult)?_.q(m,iI8(S),3):m.return();if((P=m.yieldResult)&&!(Number(P.data.refreshTimestampMs||0)<(0,_.Oh)()))return m.return();u={browseId:"SPaccount_downloads"};W=_.HT(YX);_.h5(Y.transportService,u,W).then(function(J){var c;if(S&&(J==null?void 0:(c=J.responseContext)==null?void 0:
c.maxAgeSeconds)!==0){var C;c=(J==null?void 0:(C=J.responseContext)==null?void 0:C.maxAgeSeconds)||604800;C=String(Math.floor((0,_.Oh)())+c*1E3);S.put("service:downloads_settings:fallback",new _.e4({innertubeResponse:J,refreshTimestampMs:C}))}});
_.Yt(m)})};
yk[Md]=[_.XN,_.fV];var NX=function(Y,S){this.JSC$16001_playerPromise=Y;this.store=S;this.started=!1};
NX.prototype.start=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return Y.started?P.return():_.q(P,Y.JSC$16001_playerPromise,2);S=P.yieldResult;S.addEventListener("onOrchestrationBecameLeader",Y.updateIsLeader.bind(Y,!0));S.addEventListener("onOrchestrationLostLeader",Y.updateIsLeader.bind(Y,!1));if(S.isOrchestrationLeader)Y.updateIsLeader(S.isOrchestrationLeader());else{var u=new _.$2("Function isOrchestrationLeader is undefined",{"player.isReady":S.isReady(),"player.playVideo":S.playVideo?
"defined":"undefined"});_.p_(u);Y.updateIsLeader(!1)}Y.started=!0;_.Yt(P)})};
NX.prototype.updateIsLeader=function(Y){this.store.dispatch(_.WT({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:Y}}))};
NX[Md]=[_.HX,_.Ee];var gY6=function(Y,S){this.networkStatusManager=Y;this.JSC$16004_prefStoragePromise=S;this.redirectsToPreload=["https://youtube.com"]},$UX=function(){var Y=_.E().resolve(gY6),S,P,u,W,m,J;
_.B(function(c){switch(c.nextAddress){case 1:return _.q(c,Y.JSC$16004_prefStoragePromise,2);case 2:S=c.yieldResult;if(!(P=S)){c.jumpTo(3);break}return _.q(c,S.get("yt-redirect-prefetch-id"),4);case 4:P=c.yieldResult;case 3:if(P||!Y.networkStatusManager.isNetworkAvailable())return c.return();u={cache:"reload",redirect:"manual"};W=_.n(Y.redirectsToPreload);m=W.next();case 5:if(m.done){if(!S){c.jumpTo(0);break}return _.q(c,S.set("yt-redirect-prefetch-id",!0,86400),0)}J=m.value;_.ND(c,8);return _.q(c,
_.Pa.fetch(J,u),10);case 10:_.tc(c,6);break;case 8:_.O4(c);case 6:m=W.next(),c.jumpTo(5)}})};var Ho=function(Y){Y?(this.container=Y,this.containerWasInjected=!0):this.containerWasInjected=!1};
Ho.prototype.openDialog=function(Y,S,P){var u=this,W;return _.B(function(m){(W=u.container)==null||W.openDialog(Y,S,P);_.Yt(m)})};
Ho.prototype.closeDialog=function(){var Y=this,S;return _.B(function(P){(S=Y.container)==null||S.closeDialog();_.Yt(P)})};
Ho.prototype.isDialogOpen=function(){var Y=this,S,P;return _.B(function(u){return u.return((P=(S=Y.container)==null?void 0:S.isDialogOpen())!=null?P:!1)})};
Ho[Md]=[_.PQ(Xo3)];_.ruI=new _.yH("POPUP_CONTROLLER_TOKEN");var GJI=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
GJI.prototype.registerPanel=function(Y,S){if(Y){this.panelMap.set(Y,S);var P=this.pendingPanelResolvers.get(Y);P&&(P.resolve(S),this.pendingPanelResolvers.delete(Y))}};
GJI.prototype.getPanel=function(Y){var S=this,P;return _.B(function(u){return(P=S.panelMap.get(Y))?u.return(P):u.return(hh1(S,Y))})};
var hh1=function(Y,S){var P,u;return _.B(function(W){if(P=Y.pendingPanelResolvers.get(S))return W.return(P.promise);u=new _.nV;Y.pendingPanelResolvers.set(S,u);return W.return(u.promise)})},vYB=function(Y){GJI.call(this);
var S=this;this.popupController=Y;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return S.panelMap.size}}};
_.r(vYB,GJI);_.z=vYB.prototype;_.z.getReloadContinuation=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,S.getPanel(Y),2);P=u.yieldResult;return u.return(P.getReloadContinuation())})};
_.z.showPanel=function(Y,S,P,u,W,m,J){var c=this,C,x,b,T;return _.B(function(K){if(K.nextAddress==1){J&&c.updatePanelContinuationDatas.set(Y,J);if((C=P)==null?0:(x=C.engagementPanelPopupPresentationConfig)==null?0:x.popupType){b=P.engagementPanelPopupPresentationConfig.popupType;W===void 0&&(W=document.body);var G=K.return,v=c.popupController,a=v.openPopup;a:switch(b){case "PANEL_POPUP_TYPE_DIALOG":var w="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":w="DROPDOWN";break a;default:throw Error("ej`"+
b);}return G.call(K,a.call(v,Y,S,w,W))}return _.q(K,c.getPanel(Y),2)}T=K.yieldResult;(S||m)&&T.updatePanel(S,!1,u,m);T.showPanel(u);_.Yt(K)})};
_.z.hidePanel=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,S.getPanel(Y),2);P=u.yieldResult;P.hidePanel();S.popupController.closePopup(Y);_.Yt(u)})};
_.z.isVisible=function(Y,S){var P=this,u;return _.B(function(W){if(W.nextAddress==1)return S&&!P.panelMap.has(Y)?W.return(!1):_.q(W,P.getPanel(Y),2);u=W.yieldResult;return W.return(u.isVisible())})};
_.z.updatePanel=function(Y,S,P,u,W,m){P=P===void 0?!1:P;var J=this,c;return _.B(function(C){if(C.nextAddress==1){if(!S&&!W)return C.return();m&&J.updatePanelContinuationDatas.set(Y,m);return _.q(C,J.getPanel(Y),2)}c=C.yieldResult;c.updatePanel(S,P,u,W);_.Yt(C)})};
_.z.registerPanelContent=function(Y,S){Y&&this.panelContentMap.set(Y,S)};
_.z.getPanelContent=function(Y){return this.panelContentMap.get(Y)};
_.z.getUpdatePanelContinuationData=function(Y){return this.updatePanelContinuationDatas.get(Y)};
vYB[Md]=[_.ruI];var Vk=function(Y,S){this.innertubeTransportService=Y;this.JSC$16020_screenManager=S},DUj=function(Y){var S;
return!((S=Y.panelLoadingStrategy)==null||!S.requestTemplate)};
Vk.prototype.makeRequest=function(Y){var S=this,P,u;return _.B(function(W){switch(W.nextAddress){case 1:if(!DUj(S)){W.jumpTo(2);break}_.ND(W,3);return _.q(W,_.sn(S.innertubeTransportService,Y),5);case 5:return P=W.yieldResult,P?W.return(P.content):(_.p_(Error("fj")),W.return(void 0));case 3:u=_.O4(W),_.p_(u);case 2:return W.return(void 0)}})};
Vk.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Vk.prototype.execute=function(Y){var S=this,P,u,W,m,J,c,C,x,b,T;return _.B(function(K){if(K.nextAddress==1){P=Y;u=P.data;W=P.fallbackVe;m=P.parentVe;J=P.createScreenConfig;c=P.renderFn;C=P.command;S.panelLoadingStrategy=u;var G,v,a=((G=S.panelLoadingStrategy)==null?0:G.screenVe)?(v=S.panelLoadingStrategy)==null?void 0:v.screenVe:W;a&&_.Ow(S.JSC$16020_screenManager,a,m,J);return(x=S.getContent())?_.q(K,c(x),2):K.jumpTo(2)}return K.nextAddress!=4?DUj(S)?_.q(K,S.makeRequest(C),4):K.return():(T=b=K.yieldResult)?
_.q(K,c(T),0):K.return()})};
Vk[Md]=[_.fV,_.jG];var eE=function(){};
eE.prototype.getContainer=function(){return _.SR()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
eE.prototype.openSheet=function(Y,S){var P=this,u,W,m,J,c,C;return _.B(function(x){switch(x.nextAddress){case 1:return u={stack:[],error:void 0,hasError:!1},_.ND(x,2,3),W=MZ,_.q(x,P.isSheetOpen(),5);case 5:m=x.yieldResult;nlf(u,gZ1(W));if(m&&!_.f("delay_sheet_open_killswitch")){if(S&&P.currentTarget===S)return(J=P.getContainer())==null||J.closeSheet(),x.return();P.pendingData={data:Y,target:S};return x.return()}Y.viewModel&&(Y={viewModel:Y.viewModel});(c=P.getContainer())==null||c.openSheet(Y,S);
P.currentTarget=S;case 3:_.Hx(x);c2K(u);_.e2(x,0);break;case 2:C=_.O4(x),u.error=C,u.hasError=!0,x.jumpTo(3)}})};
eE.prototype.closeSheet=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,(S=Y.getContainer())==null?void 0:S.closeSheet(),2);if(P.nextAddress!=4)return Y.currentTarget=void 0,!Y.pendingData||_.f("delay_sheet_open_killswitch")?P.jumpTo(0):_.q(P,Y.openSheet(Y.pendingData.data,Y.pendingData.target),4);Y.pendingData=void 0;_.Yt(P)})};
eE.prototype.isSheetOpen=function(){var Y=this,S,P;return _.B(function(u){return u.return((P=(S=Y.getContainer())==null?void 0:S.isSheetOpen())!=null?P:!1)})};var Bs=window.documentPictureInPicture;var KP9=_.Q0(["dark"]),ELE=_.Q0(["system-icons"]),fuY=_.Q0(["typography"]),gLa=_.Q0(["lang"]),$51=_.Q0(["style"]),Rru=_.Q0(["dir"]),x51=_.Q0(["rounded-container"]),bya=_.Q0(["style"]),Ggh=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Oo=function(Y){this.JSC$16032_clientRoot=Y;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Oo.prototype.openWindow=function(Y){var S=this,P,u;return _.B(function(W){if(W.nextAddress==1)return window.documentPictureInPicture&&_.Df()&&!S.currentPipWindow?_.q(W,(P=Bs?Bs:null)==null?void 0:P.requestWindow(Y),2):W.return(!1);if(W.nextAddress!=3){u=W.yieldResult;if(!u)return W.return(!1);u.addEventListener("pagehide",function(){If_(S)});
u.addEventListener("resize",S.handlePipWindowResize);S.pipWindowResizeDelay=new _.V6(function(){S.currentPipWindow&&_.nb(S.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.SZ(S.currentPipWindow.innerWidth,S.currentPipWindow.innerHeight)])},u);
rtK(u);vL$(u);return _.q(W,qHf(u),3)}if(!Bq1())return W.return(!1);S.currentPipWindow=u;S.JSC$16032_eventForwarder=hrY(u,S.JSC$16032_clientRoot);S.pipWindowResizeDelay.start();return W.return(!0)})};
Oo.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var If_=function(Y){if(Y.currentPipWindow){var S,P;(S=Bs?Bs:null)==null||(P=S.window)==null||P.close();Y.currentPipWindow.removeEventListener("resize",Y.handlePipWindowResize);var u;(u=Y.pipWindowResizeDelay)==null||u.dispose();Y.pipWindowResizeDelay=void 0;var W;(W=Y.JSC$16032_eventForwarder)==null||W.stop();Y.JSC$16032_eventForwarder=void 0;S=_.n(Y.onCloseCallbacks);for(P=S.next();!P.done;P=S.next())P=P.value,P();Y.onCloseCallbacks=[];Y.currentPipWindow=null}};
Oo.prototype.getWindow=function(){return this.currentPipWindow};
var af1=function(Y,S){var P;(P=Y.onCloseCallbacks)==null||P.push(S)};
_.y6.Object.defineProperties(Oo.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Oo[Md]=[uN3];_.L$c=new _.yH("PICTURE_IN_PICTURE_CONTROLLER");var D5K=function(Y,S){this.lengthY=this.lengthX=0;this.lengthX=S.x-Y.x;this.lengthY=S.y-Y.y};var wa5=function(){},N9s=function(Y,S){var P;
(P=Y.headerElement)==null||P.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:S}))};var paX=function(){};
paX.prototype.openPopup=function(Y,S,P,u){var W=this,m;return _.B(function(J){if(!W.container)return J.return();m={openPopupAction:{popup:S,popupType:P,uniqueId:Y}};return J.return(W.container.handleOpenPopupAction(m,u))})};
paX.prototype.closePopup=function(Y){this.container&&this.container.closePopup(Y)};var F$o=function(){this.openTunnels=new Map},TYu=function(Y,S,P){if(w2Y(P)){P={handleEvent:function(J){S&&!S.closed&&typeof S.postMessage==="function"&&J&&J.origin&&J.source===S&&J.data&&J.data.action==="gcl_setup"&&S.postMessage({action:"gcl_transfer",
gadSource:2},J.origin)}};
for(var u=_.n(Y.openTunnels),W=u.next();!W.done;W=u.next()){var m=_.n(W.value);W=m.next().value;m=m.next().value;if(W.closed)try{window.removeEventListener("message",m),Y.openTunnels.delete(W)}catch(J){_.p_(J)}}S&&Y.openTunnels.size<15&&(Y.openTunnels.set(S,P),window.addEventListener("message",P))}};var sh6=function(){this.clientParams=new Map},uu3=function(Y){for(var S=_.n(Y.clientParams.keys()),P=S.next();!P.done;P=S.next())P=P.value,P.startsWith("yt-mini-app-share")&&Y.clientParams.delete(P)};var dUZ=function(Y,S){_.R6.call(this);var P=this;this.shortsController=Y;this.storeWithShorts=S;Y=_.J5(this.storeWithShorts,_.pN8,function(u){if(u){var W,m=(W=P.shortsController.getRoot())==null?void 0:W.getPlayer(),J;(W=(J=P.shortsController.alternativePlayerContainerElement)==null?void 0:J.getPlayerContainer())&&(m==null||m.appendTo(W))}else{var c;J=(c=P.shortsController.alternativePlayerContainerElement)==null?void 0:c.getPlayerContainer().querySelector("#player");W=P.shortsController.activeIndex;
(c=(m=P.shortsController.getRoot())==null?void 0:m.querySelector('ytd-reel-video-renderer[id="'+W+'"] #player-container'))&&(J==null||J.appendTo(c,void 0,!0))}});
this.addOnDisposeCallback(Y)};
_.r(dUZ,_.R6);var Y0=function(Y,S,P,u,W){var m=this;this.storeWithShorts=Y;this.ephemeralResponseStore=S;this.store=P;this.innertubeTransportService=u;this.innertubeTransportLoader=W;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.GI(_.BB);this.isShortsPipActive=_.GI(_.cB);this.nextReelVe=_.TI(56921);this.prevReelVe=_.TI(56922);this.backButtonVe=_.TI(22156);this.TEST_ONLY={getActiveModules:function(){return m.activeModules}}},qif,Rd3,lfc;
Y0.prototype.initOrDisposeActiveModules=function(Y){Y?this.activeModules.push(new dUZ(this,this.storeWithShorts)):(_.t$(this.activeModules),this.activeModules.length=0)};
Y0.prototype.getRoot=function(){return this.rootElement};
Y0.prototype.setActiveIndex=function(Y){this.activeIndex=Y};
_.nT6=function(Y,S){var P,u,W,m,J,c;return _.B(function(C){switch(C.nextAddress){case 1:return P=new Po,(u=P.JSC$11777_getStoreKey(S))&&Y.ephemeralResponseStore.has(u)?_.q(C,Y.ephemeralResponseStore.get(u),7):_.q(C,lfc(Y,S),4);case 4:W=C.yieldResult;if(!u){C.jumpTo(3);break}m=ei(W,3600);return _.q(C,Y.ephemeralResponseStore.put(u,new _.e4(m)),3);case 7:W=(J=C.yieldResult)==null?void 0:_.na(J);case 3:return W.replacementEndpoint&&(c=_.g(W.replacementEndpoint,_.bM))&&W.sequenceContinuation&&(c.sequenceParams=
W.sequenceContinuation),C.return(W)}})};
qif=function(Y,S){S=(new uR).JSC$11777_getStoreKey(S);return!!S&&Y.ephemeralResponseStore.has(S)};
Rd3=function(Y,S,P){var u,W,m,J,c;_.B(function(C){if(C.nextAddress==1){u=new uR;W=u.JSC$11777_getStoreKey(S);if(!W)return C.return();if(P.reelWatchSequenceResponse)return m=ei(P.reelWatchSequenceResponse,3600),Y.ephemeralResponseStore.put(W,new _.e4(m)),C.jumpTo(0);if(!Y.ephemeralResponseStore.has(W))return C.jumpTo(0);c=P;return _.q(C,Y.ephemeralResponseStore.get(W),4)}c.reelWatchSequenceResponse=(J=C.yieldResult)==null?void 0:_.na(J);_.Yt(C)})};
lfc=function(Y,S){var P=P===void 0?{}:P;var u,W,m;return _.B(function(J){switch(J.nextAddress){case 1:if(Y.innertubeTransportService){u=Y.innertubeTransportService;J.jumpTo(2);break}if(!Y.innertubeTransportLoader){_.ik(Error("hj"));J.jumpTo(2);break}return _.q(J,Y.innertubeTransportLoader(),4);case 4:u=J.yieldResult;case 2:return _.q(J,(W=u)==null?void 0:_.sn(W,S,P),5);case 5:return m=J.yieldResult,J.return(m)}})};
_.y6.Object.defineProperties(Y0.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Y0[Md]=[HC_,_.VG,Jk,_.PQ(_.fV),_.PQ(YJ3)];_.Xa5=new _.yH("STORAGE_MANAGER_TOKEN");var luf=new Set(["touchmove","scroll"]);var Z8I=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},i8_;
Z8I.prototype.enqueue=function(Y,S){S===1?this.currentPersistentToast=Y:this.queue.push(Y);this.openToast()};
Z8I.prototype.openToast=function(){var Y;(Y=this.currentToast)!=null&&Y.opened||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.oYX=new _.yH("TOAST_MANAGER_TOKEN");var tKX;_.Au5=_.AI(function(Y){return _.R("basic-content-view-model",{class:_.Si("ytBasicContentViewModelHost",_.o_(Y.className))},_.R(_.gw,{cond:function(){return Y.data().headline},
then:function(S){return _.R("div",{class:"ytBasicContentViewModelHeadline"},_.R(_.qw,{text:S}))}}),_.R(_.$Z,{each:function(){return Y.data().paragraphs||[]},
keyBy:"INDEX"},function(S){return _.R("div",{class:"ytBasicContentViewModelParagraph"},_.R(_.gw,{cond:function(){var P=S();return!!(P.header||P.customHeader||P.headline)},
then:function(){return _.R(tKX,{paragraph:S})}}),_.R(_.gw,{cond:function(){return S().asset||S().text},
then:function(){return _.R("div",{class:"ytBasicContentViewModelParagraphContent"},_.R(_.gw,{cond:function(){return S().asset},
then:function(P){return _.R("div",{class:"ytBasicContentViewModelParagraphAsset"},_.R(_.rv,{data:P},{contentPreviewImageViewModel:_.tB}))}}),_.R(_.gw,{cond:function(){return S().text},
then:function(P){return _.R("div",{class:"ytBasicContentViewModelParagraphText"},_.R(_.qw,{text:P}))}}))}}))}))},"Qd");
tKX=_.AI(function(Y){var S=Y.paragraph;return _.R(_.SX,null,_.R(_.gw,{cond:function(){return S().headline},
then:function(P){return _.R(_.qw,{text:P,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.R(_.rv,{data:function(){return S().header||S().customHeader}},{sectionHeaderViewModel:function(P){return _.R(_.H$,{data:P.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Rd");var Qhd=_.AI(function(Y){return _.R("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.R(_.gw,{cond:function(){return Y.expanded()},
then:function(){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.R("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.R(_.gw,{cond:function(){return Y.data().expandedTitleImage},
then:function(S){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.R(_.ZZ,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:S}))}}),_.R("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.R("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.R(_.qw,{text:function(){return Y.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.R(_.qw,{text:function(){return Y.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.R(_.qw,{text:function(){return Y.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.R("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.R(_.rv,{data:function(){return Y.data().infoButton}},{buttonViewModel:_.aq}),_.R(_.rv,{data:function(){return Y.data().collapseButton}},{buttonViewModel:function(S){return _.R(_.aq,{data:S.data,
onClick:function(){var P;(P=Y.expandedCallback)==null||P.call(Y,!1)}})}})))},
else:function(){return _.R(UU1,Object.assign({},Y))}}))},"Sd"),kJI=_.AI(function(Y){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.R(_.gw,{cond:function(){return Y.data().collapsedLabelImage},
then:function(S){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.R(_.ZZ,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:S,alt:""}))}}),_.R(_.qw,{text:function(){return Y.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Td"),UU1=_.AI(function(Y){var S=_.mR(function(){var P;
return void((P=Y.expandedCallback)==null?void 0:P.call(Y,!0))});
return _.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":S},_.R("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.R(_.gw,{cond:function(){return Y.data().collapsedImage},
then:function(P){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.R(_.ZZ,{width:16,height:16,data:P,alt:""}))}}),_.R(_.gw,{cond:function(){return Y.data().showLeadingCollapsedLabel},
then:function(){return _.R(kJI,Object.assign({},Y))}}),_.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.R(_.qw,{text:function(){return Y.data().collapsedTitle}}))),_.R("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.R(_.gw,{cond:function(){return!Y.data().showLeadingCollapsedLabel},
then:function(){return _.R(kJI,Object.assign({},Y))}}),_.R(_.rv,{data:function(){return Y.data().infoButton}},{buttonViewModel:_.aq}),_.R(_.rv,{data:function(){return Y.data().expandButton}},{buttonViewModel:function(P){return _.R(_.aq,{data:P.data,
onClick:function(){var u;(u=Y.expandedCallback)==null||u.call(Y,!0)}})}})))},"Ud");var MKB=_.AI(function(Y){var S=_.n(_.ji(function(){return Y.data().initiallyExpanded})),P=S.next().value,u=S.next().value,W,m=(W=_.E().resolve(_.PQ(_.F5)))==null?void 0:W(),J=function(){var c=Y.data().colorData;
if(c)return m?c==null?void 0:c.darkColorPalette:c==null?void 0:c.lightColorPalette};
return _.R("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Jg({"background-color":function(){var c=J();return(c==null?0:c.section2Color)?_.hK(c.section2Color):""}})},_.R(_.rv,{data:function(){return Y.data().header}},{expandableMetadataHeaderViewModel:function(c){return _.R(Qhd,{data:c.data,
expanded:function(){return!!P()},
expandedCallback:function(C){u(C)}})}}),_.R(_.gw,{cond:function(){return P()},
then:function(){return _.R("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.R(_.rv,{data:function(){return Y.data().expandedContent}},{horizontalShelfViewModel:function(c){return _.R(_.fB,{data:c.data,
includeMargin:!0,forceNarrowLayout:!0,palette:J})},
videoSummaryContentViewModel:function(c){return _.R(NSU,{data:c.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(c){return _.R(kw,{data:c.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(c){return _.R(_.Au5,{data:c.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.R(_.rv,{data:function(){return Y.data().expandedBottomButtons}},{buttonViewModel:function(c){return _.R("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.R(_.aq,{data:c.data}))}}))}}))},"Vd");var yuj=_.AI(function(Y){var S=Y.text;var P=Y.marqueeSpacing;var u=Y.scrollDelay;var W=Y.scrollDuration;var m=Y.enableMarqueeScroll;Y=Y.large;var J=_.n(_.qb(!1,void 0,"kfNqfd")),c=J.next().value,C=J.next().value,x=_.n(_.qb(0,void 0,"bYgZbf"));J=x.next().value;var b=x.next().value,T=_.Ms();x=_.Ms();var K=_.Ms(),G=_.E().resolve(_.d8);_.D6(function(){if(m()){var w=K.value.getBoundingClientRect().width,F=T.value.getBoundingClientRect().width;if(w>F){var U=(G==="ltr"?-1:1)*(w+(P?P():16));Promise.resolve().then(function(){C(!0);
b(U)})}}});
var v={},a={};return _.R("marquee-scroll",{class:_.Si("ytMarqueeScrollHost",(v.ytMarqueeScrollHostLarge=Y,v)),el:T},_.R("div",{id:"marquee-scroll-inner-container",class:_.Si("ytMarqueeScrollInnerContainer",(a.ytMarqueeScrollAnimationEnabled=function(){return c()},a)),
el:x,style:_.Jg({gap:P?(0,_.xi)(P):"16px","animation-duration":W?gei(W):"16s","animation-delay":u?gei(u):"3s","--marquee-translate":(0,_.xi)(J)})},_.R("span",{el:K,dir:"auto"},_.R(_.qw,{text:S,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.R(_.gw,{cond:c,then:function(){return _.R("span",{"aria-hidden":"true",dir:"auto"},_.R(_.qw,{text:S,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Wd");_.N11=_.AI(function(Y){var S=Y.data;var P=Y.overlayDensity;Y=_.mR(function(){S().onTapCommand&&_.ae(S().onTapCommand);return!1});
var u=_.FJ(),W={};return _.R("reel-sound-metadata-view-model",{class:_.Si("ytReelSoundMetadataViewModelHost",(W.ytReelSoundMetadataViewModelHostLarge=function(){return(P==null?void 0:P())===1},W)),
"on:click":Y,tabindex:0,role:"button","on:keydown":u},_.R("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.R(_.gw,{cond:function(){return S().musicIcon},
then:function(m){return _.R(_.ZZ,{data:m,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.R("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.R(yuj,{text:function(){return S().soundMetadata},
enableMarqueeScroll:function(){return!!S().enableMarqueeScroll},
large:function(){return(P==null?void 0:P())===1}}))))},"Xd");var H8Z,VKZ,Sl,S6_,uiB,Y6c,mLc,zUY;H8Z=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];VKZ=_.z_("wil_icon_max_concurrent_fetches",Infinity);
Sl=function(Y,S,P){var u=this;this.iconSet=Y;this.appDirection=S;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Pa.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.f("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.f("wil_icon_network_first");this.renderWhenIdle=_.f("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.f("wil_icon_load_immediately");this.isPurging=!1;Y=function(){u.cacheStorageAvailable&&(u.cacheStorageAsync=_.Pa.caches.open("yt-icons").then(function(m){return u.cacheStorageSync=m}).catch(function(){u.cacheStorageAvailable=!1}))};
P=(P==null?void 0:P())||{};P=_.n(Object.entries(P));for(S=P.next();!S.done;S=P.next()){var W=_.n(S.value);S=W.next().value;W=W.next().value;W=xZ(W);ehI(W);this.iconCache[S]=W.cloneNode(!0)}this.isPurging=O8X(this);this.isPurging instanceof Promise?this.isPurging.then(Y):Y()};
_.kKa=function(Y,S){var P=Y.resolveIcon(S);return P?Y.renderingMode===1?Y6c(Y,P,Y.renderingMode):(S=Y.iconCache[P.url])?(S=S.cloneNode(!0),S6_(Y,S),Y6c(Y,P,Y.renderingMode,S)):_.Pfc(Y,P).then(function(u){var W=u?0:1;S6_(Y,u);return Y6c(Y,P,W,u)}):(_.F_(new _.$2("Icon not found",{iconShape:S})),function(){})};
S6_=function(Y,S){if(S){Y.counter+=1;Y="_yt"+Y.counter;S=[S].concat(_.cz(S.getElementsByTagName("*")));S=_.n(S);for(var P=S.next();!P.done;P=S.next())if(P=P.value,P.tagName==="style"&&P.textContent)P.textContent=uiB(P.textContent,Y,!0);else for(var u=_.n(P.attributes),W=u.next();!W.done;W=u.next()){W=W.value;W.name==="id"&&(W.value+=Y);["mask","fill","clip-path"].includes(W.name)&&(W.value=uiB(W.value,Y));if(W.name==="style"){var m=P.style;try{m.cssText=uiB(m.cssText,Y,!0)}catch(b){var J=void 0,c=
void 0,C=void 0,x=void 0;Pn({error:((J=b)==null?void 0:(C=(c=J).toString)==null?void 0:C.call(c))||"",el:P.outerHTML,style:!!m,cssText:(x=m)==null?void 0:x.cssText})}}W.name==="xlink:href"&&(W.value=W.value.replace(/#(.*)/,"#$1"+Y))}}};
uiB=function(Y,S,P){var u=/url\(["']?#(.*?)["']?\)/;(P===void 0?0:P)&&(u=/url\(["']?#(.*?)["']?\)/g);return Y.replace(u,"url(#$1"+S+")")};
Y6c=function(Y,S,P,u){return function(W,m){var J=Object.assign({},{iconColor:"currentcolor",iconWidth:S.size+"px",iconHeight:S.size+"px",iconDisplay:"block"},m);m=_.nN("DIV");var c=J.iconColor,C=J.iconFilter;J="width: "+J.iconWidth+"; height: "+J.iconHeight+"; display: "+J.iconDisplay+";";C&&(J+=" filter: "+C+";");P===0&&(J+=" fill: "+c+";");P===1&&(C=S.url,J+=" -webkit-mask: url("+C+") no-repeat center / cover; mask: url("+(C+") no-repeat center / cover; background-color: ")+c);S.allowMirroring&&
Y.appDirection==="rtl"&&(J+=" transform: scale(-1, 1); transform-origin: center center;");m.setAttribute("style",J);P===0&&u&&m.appendChild(u);W.appendChild(m)}};
_.Pfc=function(Y,S){var P,u,W;return _.B(function(m){P=function(J){return Kh(J)};
u=S.url;if(!Wh6(u))throw Error("ij");W=zUY(Y,u);return m.return(W.then(function(J){return J.clone().text()}).then(function(J){var c=P(J);
J=S.size;var C=_.nN("DIV");_.a9(C,c);c=_.jL(C.firstElementChild!==void 0?C.firstElementChild:_.p6U(C.firstChild,!0));J=ehI(c,J);Y.iconCache[u]=J.cloneNode(!0);delete Y.responsePromises[u];return J}).catch(function(){}))})};
mLc=function(Y){var S,P=(S=Y.requestAninmationFrameResolver)==null?void 0:S.promise;P||(Y.requestAninmationFrameResolver=new _.nV,P=Y.requestAninmationFrameResolver.promise,_.Pa.requestAnimationFrame(function(){var u;(u=Y.requestAninmationFrameResolver)==null||u.resolve();Y.requestAninmationFrameResolver=null}));
return P};
zUY=function(Y,S){var P,u;return _.B(function(W){if(W.nextAddress==1)return Y.waitForAnimationFrame?_.q(W,mLc(Y),2):W.jumpTo(2);P=Y.responsePromises[S];P||(u=function(){var m,J,c;return _.B(function(C){switch(C.nextAddress){case 1:if(!Y.cacheStorageAvailable){m=void 0;C.jumpTo(2);break}if(J=Y.cacheStorageSync){C.jumpTo(3);break}return _.q(C,Y.cacheStorageAsync,4);case 4:J=C.yieldResult;case 3:m=J;case 2:return c=m,Y.isNetworkFirstStrategy?C.return(Y.fetchAndUpdateCache(S,c).catch(Y.getCacheStorageResponse.bind(Y,
S,c))):C.return(Y.getCacheStorageResponse(S,c).catch(Y.fetchAndUpdateCache.bind(Y,S,c)))}})},P=Y.renderWhenIdle?new Promise(function(m,J){_.hp(_.wc,function(){u().then(m).catch(J)},10)}):u(),Y.responsePromises[S]=P);
return W.return(P.catch(function(m){delete Y.responsePromises[S];Pn({error:(m==null?0:m.toString)?m.toString():"",url:S});throw m;}))})};
Sl.prototype.fetchAndUpdateCache=function(Y,S){var P=this;return _.B(function(u){return u.return(n_B(P,Y).then(function(W){js6(P,Y,W,S);return W}))})};
var n_B=function(Y,S){var P;return _.B(function(u){if(Y.numFetches<VKZ)return Y.numFetches+=1,u.return(Jmo(Y,S).finally(function(){--Y.numFetches;if(Object.keys(Y.queuedResponseResolvers).length){var W=Object.keys(Y.queuedResponseResolvers)[0],m=Y.queuedResponseResolvers[W];delete Y.queuedResponseResolvers[W];m.resolve(n_B(Y,W))}}));
P=new _.nV;Y.queuedResponseResolvers[S]=P;return u.return(P.promise)})},Jmo=function(Y,S,P){P=P===void 0?2:P;
var u;return _.B(function(W){u={credentials:"same-origin",priority:"low"};return W.return(_.Pa.fetch(S,u).then(function(m){return m.ok?m:Promise.reject(Error("jj`"+m.status+"`"+m.statusText))}).catch(function(m){if(P>0)return Jmo(Y,S,P-1);
throw m;}))})},js6=function(Y,S,P,u){_.B(function(W){return u?W.return(new Promise(function(m){_.hp(_.wc,function(){var J,c;
return _.B(function(C){switch(C.nextAddress){case 1:if(!Y.isNetworkFirstStrategy){J=void 0;C.jumpTo(2);break}return _.q(C,u.match(S).catch(function(){}),3);
case 3:J=C.yieldResult;case 2:if(c=J){C.jumpTo(4);break}return _.q(C,u.put(S,P.clone()).catch(function(x){Pn({error:(x==null?0:x.toString)?x.toString():"",url:S})}),4);
case 4:m(),_.Yt(C)}})},50)})):W.return()})};
Sl.prototype.getCacheStorageResponse=function(Y,S){return _.B(function(P){return S?P.return(S.match(Y).then(function(u){return u&&u.ok?u:Promise.reject()})):P.return(Promise.reject())})};
var ehI=function(Y,S){S===void 0||Y.getAttribute("viewBox")||Y.setAttribute("viewBox","0 0 "+S+" "+S);Y.setAttribute("focusable","false");Y.setAttribute("aria-hidden","true");try{Y.style.pointerEvents="none",Y.style.display="inherit",Y.style.width="100%",Y.style.height="100%"}catch(W){var P;Pn({error:((P=W)==null?0:P.toString)?W.toString():""});try{Y.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(m){var u;Pn({error:((u=m)==null?0:u.toString)?m.toString():
""})}}return Y},Wh6=function(Y){for(var S=_.n(H8Z),P=S.next();!P.done;P=S.next())if(Y.startsWith(P.value)&&Y.endsWith(".svg"))return!0;
return!1};
Sl.prototype.resolveIcon=function(Y){return this.iconSet.resolveIcon(Y)};
var Pn=function(Y){_.sf(new _.$2("Error in IconManager",Y))},O8X=function(Y){if(_.f("wil_icons_cache_purge_killswitch"))return!1;
try{var S=_.Pa.localStorage}catch(m){return!1}if(!S||!Y.cacheStorageAvailable)return!1;var P=function(m){try{var J;(J=S)==null||J.setItem("yt-icons-last-purged",m.toString())}catch(C){var c;Pn({error:((c=C)==null?0:c.toString)?C.toString():""})}},u=Number(S.getItem("yt-icons-last-purged"));
if(!u)return u=new Date,u=u.setDate(u.getDate()-Math.floor(Math.random()*90+1)),P(u),!1;if(function(m,J){m=new Date(m);J=new Date(J);return J.getMonth()-m.getMonth()+12*(J.getFullYear()-m.getFullYear())}(u,Date.now())<3)return!1;
try{return _.Pa.caches.delete("yt-icons").then(function(m){m&&P(Date.now());return m}).catch(function(){return!1}).finally(function(){Y.isPurging=!1})}catch(m){var W;
Pn({error:((W=m)==null?0:W.toString)?m.toString():""});return!1}};
Sl[Md]=[GkL,_.d8,_.PQ(DBL)];_.u5=function(Y,S){this.iconManager=Y;this.iconsToFetch=S};
_.u5[Md]=[_.WF,_.PQ(v6h)];var Bd1=function(Y,S,P){this.requestKey=Y;this.zr5=S;this.foO=P;this.sPJ=function(){return new XMLHttpRequest};
this.bMb=void 0;this.pPy=[]};
Bd1.prototype.getLatestChallengeResponse=function(){return this.foO};
var m1S=function(Y,S,P){var u,W,m,J;return _.B(function(c){if(c.nextAddress==1){_.pb("attestation_challenge_fetch");_.Fk("att_fs",void 0,"attestation_challenge_fetch");if(!Y.bMb)throw new _.ry(9,"Missing fetcher");return _.q(c,Y.bMb(S,P),2)}u=c.yieldResult;m=(W=u)==null?void 0:W.bgChallenge;if(!m)throw new _.ry(15,"Missing field");Y.foO=u;Y.pPy.forEach(function(C){C(u)});
J=tn1(m);_.Fk("att_fc",void 0,"attestation_challenge_fetch");Mv$("attestation_challenge_fetch");return c.return(J)})},a06=function(Y,S){var P,u,W,m,J;
return _.B(function(c){switch(c.nextAddress){case 1:P=new eZ(100,3E5,.25,2),u=void 0;case 2:if(!(P.currBackoffCount_<10)){c.jumpTo(4);break}_.ND(c,5);if(!(P.currBackoffCount_>0)){c.jumpTo(7);break}return _.q(c,X21(P.getValue()),7);case 7:return _.q(c,cm1(Y,S),9);case 9:return W=c.yieldResult,c.return(W);case 5:m=_.O4(c);m instanceof _.ry?u=m:(J=m instanceof Error?m.message:"Unknown",u=new _.ry(9,J));bhs(P);c.jumpTo(2);break;case 4:if(u)throw u;throw new _.ry(9,"Unknown error");}})},cm1=function(Y,
S){S=NQm(H7J(new ysf,S),Y.requestKey);
var P=new _.nV,u=Y.sPJ();u.open("POST",Y.zr5);u.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");u.setRequestHeader("Content-Type","application/json+protobuf");u.onload=function(){if(EyY(u)){var W=Woi(u.responseText);P.resolve(W)}else P.reject(new _.ry(_.YS(jH(u)),u.statusText))};
u.onerror=function(){P.reject(new _.ry(_.YS(jH(u)),u.statusText))};
u.send(S.serialize());return P.promise};var q6o=function(Y){this.networkStatusManager=Y;this.isDownloaded=oe8===void 0?function(){return!1}:oe8;
this.isReady=!1;this.aAI=CfI(this)},CfI=function(Y){var S;
return _.B(function(P){if(P.nextAddress==1)return _.q(P,DZh(),2);if(P.nextAddress!=3)return S=P.yieldResult,_.q(P,wds(S),3);Y.xd=P.yieldResult;iyU(Y.xd).then(function(){Y.isReady=!0});
return P.return(Y.xd)})},RUj=function(Y,S,P){Y.xd?(Y=Y.xd.m3({qf:P,
arr:!0,d8O:!0}),S.serviceIntegrityDimensions={poToken:Y}):_.p_(Error("kj"))};
q6o.prototype.processContext=function(Y){var S=this;if(!Y.input.match(_.HT(GVL)))return _.lO();var P=Y.innerTubeRequest,u=P.videoId;return!u||this.isDownloaded(P)||this.networkStatusManager&&!this.xd&&!this.networkStatusManager.isNetworkAvailable()?_.lO():this.xd?this.isReady?(RUj(this,P,u),_.lO()):new dD(iyU(this.xd).then(function(){RUj(S,P,u)})):new dD(this.aAI.then(function(W){return _.B(function(m){if(m.nextAddress==1)return _.q(m,iyU(W),2);
RUj(S,P,u);_.Yt(m)})}))};var xL1=new _.yH("WEB_PO_CONTEXT_PROCESSOR");var buB=function(Y,S){var P=this;this.iy4=0;var u;this.jFI=(u=S==null?void 0:S.jFI)!=null?u:window;this.networkStatusManagerPromise=S==null?void 0:S.networkStatusManagerPromise;var W;this.requestKey=(W=S==null?void 0:S.requestKey)!=null?W:_.mG("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var m;this.oS5=(m=S==null?void 0:S.oS5)!=null?m:function(C){return new Ll(C)};
var J;u=(J=S==null?void 0:S.fDv)!=null?J:function(C,x,b){return new Bd1(C,x,b)};
this.bgChallenge=tn1(Y.bgChallenge);this.ttlSeconds=ASa(eb(Y.challenge||""));this.gF=u(this.requestKey,_.f("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Pa.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",Y);Zy$(this.gF);var c;this.xDh=(c=S==null?void 0:S.xDh)!=null?c:function(C){_.b2(P.jFI.document,"visibilitychange",function(){P.jFI.document.visibilityState===
"visible"&&C()})}},Khc=function(Y){if(!Y.g6){var S={maxAttempts:5,
bGb:Y.ttlSeconds*1E3};oLh(Y.jFI);Y.g6=Y.oS5({gF:Y.gF,oc:{disable:_.f("html5_web_po_disable_remote_logging"),rD:"aGIf",w76:RTE("html5_web_po_experiment_ids"),v72:_.f("wpo_dis_lfdms")?0:1E3},ddH:S,qbj:Y.bgChallenge,tLs:tAh});Y.iy4=Date.now();Syd(Y.g6,function(){Y.iy4=Date.now()});
whK(Y.g6,function(){return _.B(function(u){return u.return(TdB(Y))})});
var P=Y.iS2.bind(Y);Y.networkStatusManagerPromise&&Y.ttlSeconds>0&&Y.networkStatusManagerPromise.then(function(u){u.listen("publicytnetworkstatus-online",P)});
Y.xDh(P)}};
buB.prototype.iS2=function(){if(Date.now()>this.iy4+this.ttlSeconds*1E3){var Y;(Y=this.g6)==null||YyL(Y)}};
var TdB=function(Y){if(Y.eAh)return Y.eAh;if(!Y.g6)throw Error("lj");Y.eAh=new sx({g6:Y.g6,gF:Y.gF,nDy:!0,onError:tAh});return Y.eAh},U5a=function(Y,S){Y=new buB(Y,S);
Khc(Y);TdB(Y)};var Wn=function(Y,S){this.store=Y;this.queue=[];this.supportsFocus=_.f("web_ephemeral_actions_focus");S==null||S.addEventListener("yt-navigate-start",this.reset.bind(this))};
Wn.prototype.enqueue=function(Y){var S=Y.command,P=Y.durationMs,u=Y.elementToFocus;var W=Y.label;var m=Y.elementToFocus;Y.command?W=_.Td("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:W,shortcut:_.Td("SHIFT_PLUS_ENTER")}):m&&this.supportsFocus&&(Y=W+". "+_.Td("SHIFT_PLUS_ENTER")+" for more information.",W=_.Td("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:W,shortcut:_.Td("SHIFT_PLUS_ENTER")},Y));P={announcement:W,durationMs:P!=null?P:this.supportsFocus?8E3:void 0};S?P.command=S:u&&this.supportsFocus&&(u.classList.add("ephemeral-action-focusable-element"),
P.selector=u.tagName+".ephemeral-action-focusable-element");this.queue.push(P);E__(this)};
Wn.prototype.activate=function(Y){var S=_.uA8(this.store.getState());if(S){if(S==null?0:S.command)_.DZ(S.command),this.store.dispatch(KEi(null));(S==null?0:S.selector)&&this.supportsFocus&&(S=document.querySelector(S.selector),_.VhK(S));Y.preventDefault()}};
var E__=function(Y){if(!_.uA8(Y.store.getState())&&Y.queue.length){var S=Y.queue.shift();S&&(Y.previousAnnouncement===S.announcement&&(S.announcement+="\u00a0"),Y.store.dispatch(KEi(S)),Y.previousAnnouncement=S.announcement,Y.timeoutId=setTimeout(function(){if(S.selector&&Y.supportsFocus){var P;(P=document.querySelector(S.selector))==null||P.classList.remove("ephemeral-action-focusable-element")}Y.store.dispatch(KEi(null));E__(Y)},S.durationMs))}};
Wn.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(KEi(null));this.queue.length=0;this.timeoutId=void 0};
Wn[Md]=[_.Ee,_.OG];_.zG=new _.yH("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var fsd=new _.yH("AUTH_SERVICE_TOKEN");var MAh=_.Q0(["about:blank"]),kgJ;var g_Y=new _.yH("API_IFRAME_TOKEN"),$Lu=new _.yH("FETCH_FN_TOKEN"),rmX=new _.yH("PARSE_FN_TOKEN"),G3u=new _.yH("WINDOW_REQUEST_TOKEN");var mZ3;mZ3=new _.yH("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.hUI=new _.yH("MISC_UI_SHARED_FLAGS_TOKEN");var v_I=function(){};
v_I.prototype.getFlag=function(Y){if(Y.configType!==2)throw Error("mj");return DL1(Y)};
var DL1=function(Y){switch(Y.flagType){case "bool":return _.f(Y.flagName);case "int":return _.tm(_.z_(Y.flagName));case "double":return _.z_(Y.flagName);case "string":return _.mG(Y.flagName);case "int32_list":return RTE(Y.flagName);case "int64_list":return RTE(Y.flagName).map(function(S){return _.tm(S)});
case "string_list":return _.nz(Y.flagName);default:throw Error("nj");}};var mk=function(Y,S,P){S=S===void 0?{}:S;vH.call(this,P===void 0?"uninitialized":P);this.env=Y;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];S.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=S.shouldWaitOnAsyncImmediate)};
_.r(mk,vH);mk.prototype.init=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return S.processPluginOptions.shouldWaitOnAsyncImmediate?_.q(u,Y(S.env),2):(Y(S.env),u.jumpTo(2));if(u.nextAddress!=4)return S.jobSet?_.q(u,S.jobSet.completedResolver.promise,4):u.jumpTo(4);P=_.aQ();P.parkOrScheduleJob(function(){S.transition("rendering")},10,"ci");
_.Yt(u)})};
mk.prototype.initialRender=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return S.processPluginOptions.shouldWaitOnAsyncImmediate?_.q(u,Y(S.env),2):(Y(S.env),u.jumpTo(2));if(u.nextAddress!=4)return S.jobSet?_.q(u,S.jobSet.completedResolver.promise,4):u.jumpTo(4);P=_.aQ();P.parkOrScheduleJob(function(){S.transition("rendered")},10,"cr");
_.Yt(u)})};
mk.prototype.afterRenderImmediate=function(Y){var S=this,P;return _.B(function(u){if(u.nextAddress==1)return S.processPluginOptions.shouldWaitOnAsyncImmediate?_.q(u,Y(S.env),2):(Y(S.env),u.jumpTo(2));if(u.nextAddress!=4)return S.jobSet?_.q(u,S.jobSet.completedResolver.promise,4):u.jumpTo(4);P=_.aQ();P.parkOrScheduleJob(function(){S.transition("after-render-deferred")},10,"carml");
_.Yt(u)})};
mk.prototype.afterRenderDeferred=function(Y){var S=this;return _.B(function(P){Y(S.env);_.Yt(P)})};var IsZ={},as6=(IsZ.rendered={priority:0,callback:function(Y){pKd(Y.injector.resolve(vK))}},IsZ);var Lh1=!1,PZE=0,erf=null,S1h=null;var wt1=new _.yH("NETWORK_SLI_TOKEN");var ptc=function(Y,S,P,u){this.networkSli=Y;this.fetchFn=S;this.parseFn=P;this.requestFn=u};
ptc.prototype.fetch=function(Y,S,P){var u=this,W,m,J;return _.B(function(c){W=FhI(u,Y,S);J=(m=u.fetchFn)!=null?m:fetch;return c.return(J(W).then(function(C){return u.handleResponse(C,P)}).catch(function(C){_.sf(C);
if((P==null?0:P.expectJsonStrict)&&C instanceof Hp&&C.errorType===1)return Promise.reject(C)}))})};
var CwS=function(Y,S,P,u){var W,m,J,c,C,x;return _.B(function(b){switch(b.nextAddress){case 1:return W=FhI(Y,S,P),_.ND(b,2),_.q(b,fetch(W),4);case 4:m=b.yieldResult;_.tc(b,3);break;case 2:throw _.O4(b),new Hp(2,"Failed to parse streaming response",W.url);case 3:if(!m.redirected&&!m.ok)throw(J=Y.networkSli)==null||J.failure(),new _.$2("Streaming fetch request not ok",W.url);if(!m.body)throw new _.$2("No response body in streaming response",W.url);c=m.body.pipeThrough(new TextDecoderStream).getReader();
C=new _.Oq;x={};return b.return(ssu(Y,c,C,c4K,x,u))}})},FhI=function(Y,S,P){if(Y.networkSli){var u=_.Cz(_.O2(S,"key"))||"/UNKNOWN_PATH";
Y.networkSli.start(u)}u=P;_.f("wug_networking_gzip_request")&&(u=vWf(P));var W;return new ((W=Y.requestFn)!=null?W:window.Request)(S,u)},ssu=function(Y,S,P,u,W,m){var J,c,C,x,b,T,K,G,v;
return _.B(function(a){if(a.nextAddress==1)return _.q(a,S.read(),2);J=a.yieldResult;c=J.value;if(C=J.done)return(x=Y.networkSli)==null||x.success(),a.return(W);try{b=P.parse(c)}catch(w){throw new Hp(1,"Failed to parse streaming response",c);}if(b!=null)for(T=_.n(b),K=T.next();!K.done;K=T.next())G=K.value,u(W,G),v=void 0,(v=m)==null||v(W,G);return a.return(ssu(Y,S,P,u,W,m))})};
ptc.prototype.handleResponse=function(Y,S){var P,u=(P=this.parseFn)!=null?P:JSON.parse;P=Y.text().then(function(W){if((S==null?0:S.jspbResponseCtor)&&Y.ok)return SUh(S.jspbResponseCtor,W);W=W.replace(")]}'","");if((S==null?0:S.expectJsonStrict)&&W)try{var m=u(W)}catch(c){throw new Hp(1,"JSON parsing failed after fetch");}var J;return(J=m)!=null?J:u(W)});
Y.redirected||Y.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),P=P.then(function(W){_.sf(new _.$2("Error: API fetch failed",Y.status,Y.url,W));return Object.assign({},W,{errorMetadata:{status:Y.status}})}));
return P};
ptc[Md]=[_.PQ(wt1),_.PQ($Lu),_.PQ(rmX),_.PQ(G3u)];var dLj=new _.yH("NETWORK_MANAGER_TOKEN");var ls1=[1,2,4,8,16,30],Zu1=function(Y){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=Y.maxTimeMs;this.maxFrameCount=Y.maxFrameCount===void 0?Math.ceil(60*Y.maxTimeMs/1E3):Y.maxFrameCount;Y=_.n(ls1);for(var S=Y.next();!S.done;S=Y.next())this.brokenFrameSummarizers.push(new Xt_(S.value/60*1E3))},iu1=function(Y){var S=Y.frameCountInternal>=Y.maxFrameCount;
return Y.elapsedTimeMs>=Y.maxTimeMs||S},o_Y=function(Y){for(var S=[],P=_.n(Y.brokenFrameSummarizers),u=P.next();!u.done;u=P.next())u=u.value,u=u.brokenFrameCount!==0?{severityMs:Math.round(u.targetFrameTimeMs),
eventCount:u.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(u.averageDurationBetweenEventsMs)}:void 0,u&&S.push(u);return{summaries:S,monitoringDurationMs:Math.round(Y.elapsedTimeMs)}};
_.y6.Object.defineProperties(Zu1.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 Xt_=function(Y){this.targetFrameTimeMs=Y;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.y6.Object.defineProperties(Xt_.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var tSc=function(){};
tSc.prototype.start=function(Y,S){var P=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var u=new Zu1({maxTimeMs:Y});this.monitor=u;this.lastSummaryInternal=void 0;this.metadataToLog=S;return new Promise(function(W){var m=function(J){if(J===void 0)P.stop(),W(void 0);else if(P.monitor!==u)J=Object.assign({},o_Y(u),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),W(J);else{var c=P.monitor;if(!iu1(c)){c.frameCountInternal++;if(c.prevTime===void 0)c.startTime=
J;else for(var C=J-c.prevTime,x=_.n(c.brokenFrameSummarizers),b=x.next();!b.done;b=x.next()){b=b.value;var T=b.currTimeMs;b.currTimeMs+=C;C>b.targetFrameTimeMs+2&&(b.brokenFrameCount++,b.timeOfFirstBrokenFrameMs===void 0&&(b.timeOfFirstBrokenFrameMs=T),b.timeOfLastBrokenFrameMs=T)}c.prevTime=J}iu1(P.monitor)?W(P.stop()):_.wc.addJob(m,5,0)}};
_.wc.addJob(m,5,0)})};
tSc.prototype.stop=function(Y){if(!this.monitor)return this.lastSummaryInternal;var S=Object.assign({},o_Y(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(S.monitoringDurationMs){Y=Y!=null?Y:this.metadataToLog;var P={droppedFramesSummary:S,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};Y&&(P[Y.type]=Y.data);_.L_("manualSmoothnessMeasurement",P)}this.monitor=void 0;this.lastSummaryInternal=S;this.metadataToLog=void 0;return S};_.Am1=new _.yH("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var ULc;ULc=function(Y){this.JSC$16152_expiringStorage=new G_(Y)};
_.Qs5=function(Y){if(_.uxh()&&(Y=_.P6$(_.fz()+"::"+Y)))return new ULc(Y)};
ULc.prototype.set=function(Y,S,P){P=P!==void 0?Date.now()+P:void 0;this.JSC$16152_expiringStorage.set(Y,S,P)};
ULc.prototype.get=function(Y){return this.JSC$16152_expiringStorage.get(Y)};
ULc.prototype.remove=function(Y){this.JSC$16152_expiringStorage.remove(Y)};var k3Z=new _.yH("SESSION_STORAGE");_.ne=function(){};
_.ne.getInstance=function(){var Y=_.tA("ytglobal.storage_");Y||(Y=new _.ne,_.HQ("ytglobal.storage_",Y));return Y};
_.ne.prototype.estimate=function(){var Y,S,P;return _.B(function(u){Y=navigator;return((S=Y.storage)==null?0:S.estimate)?u.return(Y.storage.estimate()):((P=Y.webkitTemporaryStorage)==null?0:P.queryUsageAndQuota)?u.return(WgY()):u.return()})};
_.HQ("ytglobal.storageClass_",_.ne);var MSX=_.Q0(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),ymI=_.Q0(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var j2t={"/":_.ja,"/?feature=ytca":_.ja,"/feed/downloads":_.L7u};var xX=function(Y,S,P){this.JSC$16163_upliftPromise=Y;this.store=S;this.JSC$16163_persistentStorePromiseAccessor=P};
xX.prototype.shouldPreferLocalResponse=function(Y){return Y.browseId==="FEdownloads"||Y.browseId==="FEsmart_downloads"&&_.f("kevlar_modern_downloads_page")?!0:!1};
xX.prototype.localInnertubeResponse=function(Y){var S=this;return _.B(function(P){return Y.browseId==="FEdownloads"?_.f("kevlar_modern_downloads_page")?P.return(Nd5(S)):P.return(Hu1(S)):Y.browseId==="FEsmart_downloads"&&_.f("kevlar_modern_downloads_page")?P.return(VSY(S)):P.return(Promise.reject(Error("pj")))})};
xX.prototype.canProvideFallbackResponse=function(){return!0};
xX.prototype.localFallbackInnertubeResponse=function(Y){var S=this,P,u,W;return _.B(function(m){switch(m.nextAddress){case 1:return _.q(m,S.JSC$16163_persistentStorePromiseAccessor(),2);case 2:P=m.yieldResult;if(Y.browseId!=="SPaccount_downloads"||!P){m.jumpTo(3);break}return _.q(m,iI8(P),4);case 4:if(u=m.yieldResult)return m.return(_.na(u));case 3:return Y.browseId==="FEwhat_to_watch"?m.return(eU_(S)):(W=_.f("web_offline_continuation_automatic_retry")||_.f("web_offline_continuation_retry_button"))&&
Y.continuation?m.return(OuZ(S)):m.return(Ydd(S))}})};
var eU_=function(Y){var S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,Y.JSC$16163_upliftPromise,2);S=_.MB9(Y.store.getState().entities);return S.length?P.return(SdZ(Y,S)):P.return(Ydd(Y))})},Hu1=function(Y){var S,P;
return _.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$16163_upliftPromise,2);if(u.nextAddress!=3)return S=PoY([{offlineItemSectionRenderer:{}}]),_.q(u,uYo(Y,S),3);P=u.yieldResult;P.onResponseReceivedActions=[gH("REFRESH_DOWNLOADS")];return u.return(P)})},Nd5=function(Y){var S,P,u,W,m,J,c,C,x,b,T,K,G;
return _.B(function(v){if(v.nextAddress==1)return _.q(v,Y.JSC$16163_upliftPromise,2);if(v.nextAddress!=3)return S=Y.store.getState(),P=S.entities,u=_.vT(P),W=_.DS(P),m=_.rfa(S),J=_.$$Y(S),c=_.GNE(S),C=_.VBX(P),x=_.gT(u),b=_.IR(P),T={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.okY(u,W,C,m,J,x,b,c),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},K=_.Td("DOWNLOADS",void 0,"Downloads"),_.q(v,W5I(Y,T,K),3);G=v.yieldResult;
G.onResponseReceivedActions=[gH("REFRESH_DOWNLOADS")];return v.return(G)})},VSY=function(Y){var S,P,u,W,m,J,c,C,x;
return _.B(function(b){if(b.nextAddress==1)return _.q(b,Y.JSC$16163_upliftPromise,2);if(b.nextAddress!=3)return S=Y.store.getState(),P=S.entities,u=_.vT(P),W=_.gT(u),m=_.IR(P),J={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Ao8(u),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},c=_.Td("SMART_DOWNLOADS",void 0,"Smart downloads"),C=ZW$(W,m),_.q(b,W5I(Y,J,c,C),3);x=b.yieldResult;x.onResponseReceivedActions=[gH("REFRESH_DOWNLOADS")];
return b.return(x)})},Ydd=function(Y){var S,P;
return _.B(function(u){if(u.nextAddress==1)return _.q(u,mw(Y.JSC$16163_upliftPromise,Y.store),2);S=u.yieldResult;P=PoY([dea(S)]);return u.return(uYo(Y,P))})},OuZ=function(Y){var S,P,u,W;
return _.B(function(m){if(m.nextAddress==1)return S={},P=Y.store.getState().continuation.continuationCommand,_.g8(S,_.vX,P),_.q(m,mw(Y.JSC$16163_upliftPromise,Y.store,S,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);u=m.yieldResult;W={};_.g8(W,_.flJ,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:u}}}],targetId:"browse-feedFEwhat_to_watch"});return m.return({responseContext:{},onResponseReceivedActions:[W]})})},PoY=function(Y){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:Y}}}}]}}},SdZ=function(Y,S){var P,u;
return _.B(function(W){var m={contents:$a(S)};P=m&&m.contents?m:{};_.f("kevlar_modern_downloads_page")&&(P=Object.assign({},_.U38(S),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));u={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:P}}}]}};return W.return(uYo(Y,u))})},uYo=function(Y,S){var P,u;
return _.B(function(W){if(W.nextAddress==1)return _.q(W,Y.JSC$16163_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3)return P=W.yieldResult,_.q(W,jN(P),3);u=W.yieldResult;return W.return({responseContext:{},contents:S,topbar:u})})},W5I=function(Y,S,P,u){var W,m;
return _.B(function(J){if(J.nextAddress==1)return _.q(J,Y.JSC$16163_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3)return W=J.yieldResult,_.q(J,jN(W),3);m=J.yieldResult;var c=J.return;var C=u;C=C===void 0?"":C;C={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:P}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Td("SETTINGS",void 0,"Settings"),accessibilityText:_.Td("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:OV("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:C}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:P};
return c.call(J,{responseContext:{},contents:S,topbar:m,header:{pageHeaderRenderer:C}})})};var zXY=function(){this.moduleRegistry={};this.fetchCount=0};
zXY.prototype.isFetching=function(){return this.fetchCount>0};
var Xj=function(Y,S){Y.moduleRegistry[S.toString()]={asyncId:S,isFetching:!1};return Y};
zXY.prototype.JSC$16174_loadModules=function(){for(var Y=this,S=new Map,P=[],u=_.n(_.Ch.apply(0,arguments)),W=u.next();!W.done;W=u.next()){W=W.value;var m=this.moduleRegistry[W];m?m.resolver?S.set(W,m.resolver):(m.resolver=new _.nV,S.set(W,m.resolver),P.push(m.asyncId),m.isFetching=!0):(m=new _.nV,S.set(W,m),m.resolve(void 0))}P.length&&(this.fetchCount+=1,_.gy(_.TV.getMultipleAsync.apply(_.TV,_.cz(P)).then(function(J){for(var c=0;c<P.length;c++){var C=J[c],x=Y.moduleRegistry[P[c].toString()];x.isFetching=
!1;x.resolver.resolve(C)}}).catch(function(J){for(var c=_.n(P),C=c.next();!C.done;C=c.next()){C=C.value;
var x=Y.moduleRegistry[C.toString()];x.resolver=void 0;x.isFetching=!1;S.get(C.toString()).reject(J)}}),function(){--Y.fetchCount}));
return Promise.all([].concat(_.cz(S.values())).map(function(J){return J.promise}))};_.Zd=new _.yH("MODULE_REGISTRY_TOKEN");var mI1={},ncB=(mI1.rendered={priority:0,callback:function(Y){a:{var S=void 0;try{var P;b:{if(_.Q19()){var u=_.S2J(_.fz()+"::pom");if(u){var W=new zS(u);break b}}W=void 0}var m=(P=W)==null?void 0:P.get("role_text");if(!m)break a;S={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:m}]}}}}}}catch(C){}S&&Y.injector.resolve(_.uY).resolveCommand(S)}try{var J=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(J){var c=JSON.parse(J);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
c&&Y.injector.resolve(_.uY).resolveCommand(c)}}catch(C){}}},mI1);var ju5,Jjc={},BZY=(Jjc.initialized={priority:10,callback:function(){ju5=GU()}},Jjc.rendering={callback:function(Y){var S;
return _.B(function(P){if(P.nextAddress==1)return _.q(P,ju5,2);S=P.yieldResult;if(!S.endpoint)throw Error("rj`"+_.Pa.location.href);IB(Y,S);_.Yt(P)})}},Jjc);var cjo={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(_.cz(_.f("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(Y){var S=Y.stack;if(S.includes("chrome://")||S.includes("chrome-extension://")||Y.message.includes("chrome-extension://")||S.includes("moz-extension://")||S.includes("local.adguard.org")||S.includes("auctioneer3.50million.club")||S.includes("youtubedownloader")||S.includes("youtube_home_page")||S.includes("is_youtube_video_no_longer_available")||
S.includes("switchScreenSizeHack")||S.includes("yt_main_big_banner.js")||S.includes("YouTubeCenter.js")||S.includes("/mytube.js")||S.includes("JSON.parseWrapper")||S.includes("/inj_js/common.js")||S.includes("firebug-lite")||S.includes(".repl.co/")||S.includes("linkfix")||S.includes("playAfterAd")||Y.message.includes("Access is denied for this document")&&S.includes("<anonymous>")||Y.fileName==="user-script"||Y.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
S.includes("<anonymous>"))return!0;if(S.includes("https://www.youtube.com"))return!1;Y=S.split("\n");if(!Y.length)return!1;if(Y.length<=3&&S.includes("s.onloadeddata"))return!0;S=0;for(var P=_.n(Y),u=P.next();!u.done;u=P.next())u=u.value,(u.includes("https://")||u.includes("http://"))&&S++;return S/Y.length>.95},
weight:0},{callback:function(Y){return Y.message==="Unknown Error"&&Y.name.indexOf("NS_")===0},
weight:100},{callback:function(Y){if(!_.nj)return!1;var S=Y.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||Y.message.includes("available to complete this operation"),P=Y.stack.includes("webcomponents")&&Y.message==="Object doesn't support this action";Y=Y.message.includes("object that does not implement interface Element");return S||P||Y},
weight:0},{callback:function(Y){return Y.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(Y){return Y.message==="Operation is not supported"&&(Y.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(Y){return Y.stack.includes("eval code (eval (code:1:1)")||Y.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(Y){return Y.message.includes("Permission denied")&&Y.stack.includes("this.domHandler")?!0:Y.name.includes("TypeError")&&Y.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(Y){if(!Y.stack)return!1;var S=Y.stack.trim().split("\n");S.length&&S[0].endsWith("Error: "+Y.message)&&S.shift();S.length&&S[S.length-1].includes("at window.onerror (")&&S.pop();if(!S.length)return!0;if(Y.message==="Script error.")return S[0].includes("www.youtube.com")||S.length>=2&&S[0].startsWith("at new")&&S[1].startsWith("at window.onerror");if(Y.message==="Unexpected token")return!0;Y=_.n(S);for(S=Y.next();!S.done;S=Y.next())if(S=S.value,!(S.includes("<anonymous>")||
S.startsWith("load@")||S.startsWith("global code@")||S.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(Y){return Y.message==="Cannot read property 'experiments'"&&Y.stack.includes("/s/player/")},
weight:500},{callback:function(Y){return Y.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(Y){return Y.stack.includes("/embed.js")?(Y.params&&Y.params&&(Y.params.name="56"),!0):!1},
weight:1}]};var Coj={},qdu=(Coj.initialized={priority:10,callback:function(Y){Y.injector.addProvider({provide:uN3,useValue:Y.root});Y.injector.addProvider({provide:Y95,useValue:enu});Y.injector.addProvider({provide:S91,useValue:cjo});var S={};Y.injector.addProvider((S.provide=Pao,S.useFactory=function(P,u){return function(){Puh(P,u)}},S[Md]=[Y95,
S91],S));Y.injector.addProvider({provide:un,useClass:un})}},Coj);var RXZ={},xI6=(RXZ.initialized={priority:3,callback:function(){var Y;if(Y=yJ$()){Y=Y.replace("/",".");var S=_.$o();S.set("tz",Y);S.save();Y=!0}else Y=!1;Y||(Y=_.$o(),Y.set("utco",-Math.floor((new Date).getTimezoneOffset())),Y.save())}},RXZ);var b11={},TZB=(b11.initialized={priority:10,callback:function(Y){Y.injector.resolve(un).start();Y=_.d2();var S=_.Z4("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Z4("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Z4("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Z4("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Ca(_.KJa(),{mainAppWeb:Object.assign({},Y,{pageType:S})});_.Ca(fjE(),{mainAppWeb:Object.assign({},Y,{pageType:S})});
_.Ca(gMa(),{mainAppWeb:Y});_.Ca($4U(),{mainAppWeb:Y});Qdh(function(){_.q2(gMa(),"FAILURE");_.q2($4U(),"FAILURE")});
bvX();TnU();s11()}},b11);var K5_={},EcX=(K5_.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Fk("dl"),_.aQ().processSignal("pcl");else{var Y=function(){_.Fk("dl");_.aQ().processSignal("pcl");window.removeEventListener("load",Y)};
window.addEventListener("load",Y)}}},K5_);var fI1={},gc1=(fI1.rendering={priority:0,callback:function(){var Y=_.aQ();Y.parkOrScheduleJob(function(){Y.processSignal("eocs")},10,"eor",5E3)}},fI1);var $IX=function(){};
_.r($IX,Gw);
$IX.prototype.resolveCommand=function(Y,S){var P,u,W,m,J,c,C,x;return _.B(function(b){W=(P=_.g(Y,_.SqU))==null?void 0:(u=P.dialog)==null?void 0:u.commentReplyDialogRenderer;if(!W)throw new _.$2("No dialog in createCommentReplyDialogEndpoint");J=(m=S.form)==null?void 0:m.event;if(!J)throw new _.$2("Event not passed in when resolving command");c=_.n(J.composedPath());for(C=c.next();!C.done;C=c.next())if(x=C.value,x.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||x.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return x.showReplyDialog(W),b.return();
_.Yt(b)})};var jl=function(Y){this.pageRequestService=Y;this.JSC$16189_prefetchCoordinator=ovu()};
_.r(jl,Gw);jl.prototype.resolveCommand=function(Y){var S=this,P,u,W,m;return _.B(function(J){if(J.nextAddress==1){P=_.g(Y,sM_);if((u=P)==null||!u.taskId)throw Error("sj");W=P.taskId;_.ND(J,2);return _.q(J,_.cMs(S.pageRequestService,Y,{},"").then(function(c){if(!c)throw Error("tj");},function(c){throw Error("uj`"+c);
}),4)}if(J.nextAddress!=2)return UoL(S.JSC$16189_prefetchCoordinator,W),_.tc(J,0);
m=_.O4(J);t3(S.JSC$16189_prefetchCoordinator,W,m);_.Yt(J)})};
jl[Md]=[rx];var JQ=function(Y){this.innertubeTransportService=Y};
_.r(JQ,Gw);JQ.prototype.resolveCommand=function(Y){var S=this,P,u;return _.B(function(W){P=_.g(Y,lPs);if(P.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||P.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")u=P.boolValue?2:1,_.Af.getInstance().setState(u,!0,!0);return _.q(W,_.sn(S.innertubeTransportService,Y),0)})};
JQ[Md]=[_.fV];var Bn={},rjB=(Bn.addToPlaylistEndpoint=eR(c1),Bn.addToToastAction=eR(BD),Bn.adsControlFlowOpportunityReceivedCommand=eR(Mj),Bn.captionLanguageSelectActionCommand=eR(hl),Bn.captionPickerEndpoint=eR(v1),Bn.changeMiniAppPlayStateCommand=eR(CU),Bn.changeTimelyActionVisibilityCommand=eR(J4),Bn.channelCreationFormEndpoint=eR(zP),Bn.clearLocationCommand=eR(B1),Bn.clearUrlParamCommand=eR(qu),Bn.copyLinkCommand=eR(w3),Bn.copyTextEndpoint=eR(H8),Bn.createCommentReplyDialogEndpoint=wHh($IX),Bn.createPlaylistServiceEndpoint=
eR(pU),Bn.dismissDialogEndpoint=eR(xC),Bn.entityUpdateCommand=eR(eI),Bn.feedbackEndpoint=eR(S$),Bn.getAnswerCommand=eR(Hqi),Bn.getPaymentsClientTokenCommand=eR(qk),Bn.getTranscriptEndpoint=eR(cD),Bn.googlePaymentBillingCommand=eR(RE),Bn.googlePaymentPurchaseManagerCommand=eR(xK),Bn.hideEngagementPanelEndpoint=eR(bP),Bn.insertRichSectionCommand=eR(nU),Bn.listMutationCommand=eR(j$),Bn.logGtmCommand=eR(m3),Bn.notifyDropdownOptionSelectedCommand=eR(RU),Bn.openAdAllowlistInstructionCommand=eR(_.yM),Bn.openOnePickAddVideoModalCommand=
eR(Fb),Bn.persistSubscriptionsDisplayPreferencesCommand=eR(iP),Bn.pingingEndpoint=eR(Nj),Bn.playlistEditEndpoint=eR(d3),Bn.playlistVotingRefreshPopupCommand=eR(lP),Bn.refreshPanelEndpoint=eR(TP),Bn.saveImageToDeviceEndpoint=eR(VM),Bn.scrollToSectionEndpoint=wHh(VgL),Bn.seekToVideoTimestampCommand=eR(D1),Bn.selectCountryCommand=eR(oU),Bn.setCookieCommand=eR(tl),Bn.setLocalStorageCommand=eR(WD),Bn.setPrefStorageEntryCommand=eR(UT),Bn.setSettingEndpoint=eR(JQ),Bn.sfvAudioItemPlaybackCommand=eR(IU),Bn.shareImageCommand=
eR(QS),Bn.sharingProviderDataCommand=eR(kC),Bn.showCaptionLanguageSelectActionCommand=eR(aU),Bn.showDialogCommand=eR(fU),Bn.showEngagementPanelEndpoint=eR(g3),Bn.showSheetCommand=eR($C),Bn.showTransientPlayerScrimOverlayCommand=eR(LU),Bn.submitFormWithValidationFlowCommand=eR(W1),Bn.talkToRecsDeselectCommand=eR(za),Bn.talkToRecsNextCommand=eR(mr),Bn.talkToRecsSelectCommand=eR(n3),Bn.talkToRecsUpdateTextCommand=eR(js),Bn.toggleEngagementPanelCommand=eR(r3),Bn.undoFeedbackEndpoint=eR(uP),Bn.updateEngagementPanelContentCommand=
eR(GP),Bn.updateUrlParamCommand=eR(C3),Bn.verifyCommand=eR(zP),Bn.webNativeShareCommand=eR(Mu),Bn.webSubmitFormCommand=eR(Xb),Bn.ACK_PLAYABLES_3P_DATA_CONSENT=eR(yS),Bn.CANCEL_NAVIGATION=eR(Nu),Bn.COPY_SHARE_URL=eR(H1),Bn.MINI_APP_EXIT_DIALOG_SEEN=eR(e$),Bn.MINI_APP_OPEN_URL=eR(VS),Bn.REQUEST_MINI_APP_FULLSCREEN=eR(OT),Bn.RESUME_NAVIGATION=eR(YK),Bn.SHARE_PLAYABLE_WITH_HIGH_SCORE=eR(Ss),Bn.TELL_US_WHY=eR(P1),Bn);
_.f("web_enable_prefetching_videos_on_home")&&(rjB.prefetchWatchCommand=eR(jl),rjB.registerTasksCommand=eR(Uo));_.f("enable_share_panel_navigation_logging_fix_on_web")&&(rjB.shareEntityServiceEndpoint=eR(KU));var Dcs=Object.assign({},rjB);var G15={},hXd=(G15.initialized={priority:10,callback:$lX},G15);var vc5={},DII=(vc5.initialized={callback:function(Y){var S={},P={};ueh().install((S.document_disposed={callback:function(){_.f("finalize_all_timelines")?yzJ():Lb();Oya("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.RGK();var u=Y.injector.resolve(un);u.intervalId!==void 0&&(u.intervalId&&_.wc.cancelJob(u.intervalId),u.intervalId=void 0,--u.currentPartitionIndex,u=Qc3(u),u>0&&Rei({mainAppWeb:_.d2(),survivalSli:{partitionMinute:u,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));zef(FZ);sw!=null&&
sw.flush();uM&&uM.snapshotAndFlush()}},S),(P.flush_logs={callback:function(){_.w6()}},P))}},vc5);var II1={},aI6=(II1.rendered={priority:0,callback:function(){var Y=new ZxJ;Y.increment("STARTED");if(_.X3("LOGGED_IN")&&_.X3("SERVER_VERSION")!=="test"&&_.X3("SERVER_VERSION")!=="dev"&&!v_s()&&!hUL()){Y.increment("EXECUTING");var S=document.createElement("iframe");S.style.display="none";_.TXh(S,2,_.Bx("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.X3("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(S);Y.increment("DONE")}}},II1);var L55={},w61=(L55.rendered={callback:function(){ovu().resume()}},L55);var p6X={acknowledgeChannelTouStrikeCommand:DK(kK),addToPlaylistServiceEndpoint:DK(Vj),addToPlaylistEndpoint:DK(Vj),addUpcomingEventReminderEndpoint:DK(Rc),browseEndpoint:DK($ou),channelCreationFormEndpoint:DK(Xr),channelCreationServiceEndpoint:DK(Ze),claimLegacyYoutubeChannelEndpoint:DK(Ga),clearSearchHistoryEndpoint:DK(Ot),clearWatchHistoryEndpoint:DK(nK),commerceActionCommand:IF(rj),createBackstagePostEndpoint:DK(K3),createBroadcastCommand:DK(xj),createCommentEndpoint:DK(Fr),createCommentReplyEndpoint:DK(p3),
createLiveChatPollEndpoint:DK(bz),createPlaylistServiceEndpoint:DK(ex),crossAccountChannelTransferEndpoint:DK(BC),deleteLiveChatMessageCommand:DK(TO),deletePlaylistEndpoint:DK(OI),deleteVideoEndpoint:DK(x8),dismissalEndpoint:DK(Mk),feedbackEndpoint:DK(y$),flagEndpoint:DK(zF),getAccountSwitcherEndpoint:DK(Ja),verifyCommand:DK(Ta),getAccountsListInnertubeEndpoint:DK(CK),getCommentsFromInboxCommand:DK(Fe),getDownloadActionCommand:DK(oc),getFlowCommand:IF(es),getKidsBlocklistPickerCommand:DK(mj),getNotificationMenuEndpoint:DK(hPJ),
getPaymentInstrumentsParamsCommand:DK(aG),getPaymentsClientTokenCommand:IF(rj),getPdgBuyFlowCommand:DK(NN),getReportFormEndpoint:DK(jE),getSearchInVideoCommand:DK(co),getAnswerCommand:DK(Bo),getSurveyCommand:DK(RG),getTranscriptEndpoint:DK(Kg),getPostVideoPreviewEndpoint:DK(f3),decorateMessageEndpoint:DK(Et),likeEndpoint:DK(oE),liveChatActionEndpoint:DK(gY),liveChatEndpoint:DK(fK),liveChatItemContextMenuEndpoint:DK(KK),liveChatPurchaseMessageEndpoint:DK(rY),liveChatReplayEndpoint:DK(EI),manageLiveChatUserEndpoint:DK(ha),
metadataUpdateCommand:DK(wY),moderateLiveChatEndpoint:DK(vC),modifyChannelNotificationPreferenceEndpoint:DK(Xe),notificationOptOutEndpoint:DK(Z$),openSuperStickerBuyFlowCommand:DK(GO),performCommentActionEndpoint:DK(aE),playlistEditEndpoint:DK(SE),playlistEditorEndpoint:DK(Y8),profileCardCommand:DK(qN),recordNotificationInteractionsEndpoint:DK(iz),reelWatchEndpoint:DK(Po),refreshPanelEndpoint:DK(Aa),removeUpcomingEventReminderEndpoint:DK(D$),resolveLocationCommand:DK(LK),revealBusinessEmailCommand:DK(h4),
searchEndpoint:DK(_.vvm),sendLiveChatMessageEndpoint:DK(Ic),sendLiveChatVoteEndpoint:DK(ac),setSettingEndpoint:DK(t4),shareEntityServiceEndpoint:IF(Q$),sharingProviderDataCommand:DK(qX),showEngagementPanelEndpoint:DK(UI),showMoreDrawerCommand:DK(kj),showSheetCommand:DK(MN),showDialogCommand:DK(Qj),subscribeEndpoint:DK(A4),transcriptSubmitCaptionCorrectionCommand:DK(TF),undoFeedbackEndpoint:DK(HD),unsubscribeEndpoint:DK(Ut),updateBackstagePostEndpoint:DK($K),updateCommentEndpoint:DK(dr),updateCommentReplyEndpoint:DK(st),
updateCommentsSettingsEndpoint:DK(lt),updateCreatorChannelInnertubeCommand:DK(De),updateKidsBlacklistEndpoint:DK(J3),updateEngagementPanelContentCommand:DK(yj),updatePdgFeatureEnablementCommand:DK(HC),updatedMetadataEndpoint:DK(pK),validateChannelHandleCommand:DK(IE),updateChannelPageSettingsEndpoint:DK(vD),verifyAgeEndpoint:DK(V$),watchEndpoint:IF(bR),whitelistEditEndpoint:DK($8),ypcCancelRecurrenceEndpoint:DK(GF),ypcCompleteTransactionEndpoint:DK(h3),ypcFixInstrumentEndpoint:DK(Da),ypcGetCartEndpoint:DK(vo),
ypcGetOffersEndpoint:DK(IG),ypcHandleTransactionEndpoint:IF(Lg),ypcLogWalletAnalyticDataEndpoint:DK(wj),ypcOffersEndpoint:DK(pg),ypcPauseSubscriptionCommand:DK(FN),ypcRedeemCodeEndpoint:DK(so),ypcResumeSubscriptionCommand:DK(dj),ypcUpdateFopEndpoint:DK(Da)},cn={},F5j=(cn.GET_ACCOUNT_MENU=DK(cC),cn.GET_NOTIFICATIONS_MENU=DK(GW3),cn.GET_NOTIFICATIONS_INBOX=DK(sI),cn.GET_UNSEEN_NOTIFICATION_COUNT=DK(lz),cn.GET_USER_MENTION_SUGGESTIONS=DK(gr),cn.LOAD_GUIDE=DK(rHm),cn.SUBMIT_FEEDBACK=DK(Nk),cn),Ce={},
suu=(Ce.CONTINUATION_REQUEST_TYPE_BROWSE=DK(rr),Ce.CONTINUATION_REQUEST_TYPE_SEARCH=DK(Cg),Ce.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=DK(fg),Ce.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=DK(jx),Ce.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=DK(wr),Ce.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=DK(L3),Ce.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=DK(Wo),Ce.CONTINUATION_REQUEST_TYPE_GET_PANEL=DK(ta),Ce),dIo={player:IF(bR),watchNext:DK(Eo)},lI1={player:IF(bR),reelItemWatch:DK(Po),reelWatchSequence:DK(uR)},
X6X={watchEndpoint:IF(gj)},Z1B={commandEndpointMap:p6X,signalEndpointMap:F5j,continuationEndpointMap:suu,watchEndpointMap:dIo,reelWatchEndpointMap:lI1,streamingEndpointMap:X6X};var i1j,oc_,t_Y,AjX={disableAllTransitions:(oc_=(i1j=window).matchMedia)==null?void 0:(t_Y=oc_.call(i1j,"(prefers-reduced-motion: reduce)"))==null?void 0:t_Y.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var UI6=new _.yH("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.QuB=new _.yH("VIEW_TRANSITION_MANAGER_TOKEN");var k1j=function(Y){this.config=Y;this.transitionTasksMap=new Map;Y=_.n(Y.transitionConfigs);for(var S=Y.next();!S.done;S=Y.next())S=_.n(S.value).next().value,this.transitionTasksMap.set(S,[])};
k1j[Md]=[UI6];var rZE={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1};var hFX=["videoPrimaryInfoRenderer","title"],vDf=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var M_d;M_d=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.yjB=_.AI(function(Y){Y=_.tI(Y,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var S=Y.data,P=Y.playlistData,u=Y.expanded,W=Y.onExpandClick,m=Y.isReadyToResume,J=function(){var b;return!((b=P())==null||!b.contents)},c=function(){var b=P();
return b&&b.totalVideos&&b.currentIndex!==void 0?b.currentIndex+1+" / "+b.totalVideos:""};
Y=_.mR(function(){_.qf(_.E().resolve(_.l1))});
var C=_.mR(function(){J()&&W&&W()}),x={};
return _.R("ytd-miniplayer-info-bar",{class:_.Si("ytdMiniplayerInfoBarHost",(x.ytdMiniplayerInfoBarHasPlaylistData=J,x)),"on:click":C},_.R("div",{class:"ytdMiniplayerInfoBarContent"},_.R("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":Y},_.R(_.qw,{text:function(){var b=S();var T=P();if(T==null?0:T.contents){var K;b=(K=_.Ma9(T))==null?void 0:K.title}else b=b==null?void 0:b.miniplayerTitle;return IvE(b)},
noEndpoints:!0,ellipsisTruncate:!0})),_.R("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.R("h1",null,_.R(_.qw,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var b=S();var T=P();b=m()?{simpleText:_.Td("CONTINUE_WATCHING",void 0,"Continue watching")}:(T==null?0:T.contents)?T.titleText:b==null?void 0:b.miniplayerSubtitle;return IvE(b)},
noEndpoints:!0,ellipsisTruncate:!0})),_.R(_.gw,{cond:function(){return!!c()&&!m()},
then:function(){return _.R("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.R("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.R("span",null,c))}}),_.R(_.gw,{cond:m,
then:function(){return _.R(n0f,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:M_d})}}))),_.R(_.gw,{cond:J,
then:function(){return _.R("div",{class:"ytdMiniplayerInfoBarExpand"},_.R(HL,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(b){W&&(W(),b.stopPropagation())}}},
iconName:function(){return u()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Yd");var NZj;NZj=_.AI(function(Y){return _.R("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.R(HL,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:Y.onTap}},
iconName:"yt-icons:close"}))},"Zd");
_.H1u=_.AI(function(Y){Y=_.tI(Y,{playabilityStatus:void 0,isDisabled:!1});var S=Y.size,P=Y.playabilityStatus,u=Y.isDisabled,W=_.Ms();Y=_.n(_.qb(void 0,void 0,"bJr0Se"));var m=Y.next().value,J=Y.next().value;Y=_.GI(_.cB);var c=!1,C=function(){return S().height<=0};
_.D6(function(){var K=S(),G=C(),v=m();v&&!G&&v.setInternalSize(K.width,K.height)});
_.Ij(function(){var K,G,v;return _.B(function(a){if(a.nextAddress==1){K=_.E().resolve(_.l1);G=K.getPlayerElement();if(!K.isMiniplayerActive()||!G||!W.value)return a.return();G.appendTo(W.value);return _.q(a,G.getPlayerPromise(),2)}v=a.yieldResult;v.setSizeStyle(!1,!0);J(v);_.Yt(a)})});
_.aI(function(){x()});
_.D6(function(){var K=m();if(K)if(u()){var G=K.getPlayerState();(c=G===-1||G===1||G===3)&&K.pauseVideo()}else x()});
var x=function(){if(c){c=!1;var K;(K=m())==null||K.playVideo()}},b=_.mR(function(){_.qf(_.E().resolve(_.l1))}),T={};
return _.R("ytd-miniplayer-player-container",{class:_.Si("ytdMiniplayerPlayerContainerHost",(T.ytdMiniplayerPlayerContainerHidden=C,T.ytdMiniplayerPlayerContainerHostShortsPip=Y,T)),style:_.Jg({width:function(){return S().width+"px"},
height:function(){return S().height+"px"}})},_.R("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:W}),_.R(_.gw,{cond:function(){return!!P()&&!_.LPa(P())},
then:function(){return _.R(QZi,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var K;return((K=P())==null?void 0:K.errorScreen)||null},
status:function(){var K;return((K=P())==null?void 0:K.status)||null}})}}),_.R(_.gw,{cond:u,
then:function(){return _.R("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":b},_.R(NZj,{onTap:function(){_.E().resolve(_.l1).close()}}))}}))},"$d");_.V_c=_.AI(function(Y){var S=Y.toastData;var P=_.Ms();Y=_.n(_.ji(function(){return!!S()}));
var u=Y.next().value,W=Y.next().value;Y=_.n(_.qb(!1,void 0,"xkrBze"));var m=Y.next().value,J=Y.next().value,c=function(){var b;return _.Ma((b=S())==null?void 0:b.data.title)};
_.LE(function(){_.sm.requestAvailability();S()&&W(!1)});
var C,x;_.D6(function(){u()&&(_.ms(P.value,"iron-announce",{text:S().label+" "+c()}),C&&_.wc.cancelJob(C),C=_.wc.addLowPriorityJob(function(){J(!0)},2500))});
_.D6(function(){m()&&(x&&_.wc.cancelJob(x),x=_.wc.addLowPriorityJob(function(){W(!1);J(!1)},300))});
Y={};return _.R("ytd-miniplayer-toast",{el:P,class:_.Si("ytdMiniplayerToastHost",(Y.ytdMiniplayerToastOpening=function(){return u()},Y.ytdMiniplayerToastClosing=function(){return m()},Y))},_.R(_.gw,{cond:function(){var b;
return(b=S())==null?void 0:b.data},
then:function(b){return _.R($9J,{className:"ytdMiniplayerToastThumbnail",data:b,width:78})}}),_.R("div",{class:"ytdMiniplayerToastInfo"},_.R("div",{class:"ytdMiniplayerToastLabel"},function(){var b;
return(b=S())==null?void 0:b.label}),_.R("div",{class:"ytdMiniplayerToastTitle"},c)))},"ae");var ZvE;var AZa=new Set,tPK=null;var QtJ=null;var O1j=_.AI(function(Y){var S=Y.progressState;var P=Y.multiMarkersPlayerBarRenderer;var u=Y.progressBarWidth;var W=function(){return Nnu(P())},m=function(){return eFK(S())},J=function(){return u()*(S().playedTime/S().videoDuration)};
return _.R("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.R(_.$Z,{each:W},function(c,C){return _.R(eX6,{modifiedProps:m,chapters:W,index:C,playedProgressWidth:J,backgroundGradientPosition:function(){var x=m(),b=W(),T=C(),K=J();return(x.playedTime-s$(_.g(b[T],Fj)))/x.playedTime*K}})}))},"be"),eX6=_.AI(function(Y){var S=Y.modifiedProps;
var P=Y.chapters;var u=Y.index;var W=Y.playedProgressWidth;var m=Y.backgroundGradientPosition;Y={};Y=_.Si("ytChapteredProgressBarChapteredPlayerBarChapter",(Y.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return J().isScrubbing},Y.ytChapteredProgressBarHoveredMacroMarker=function(){return J().scrubberHovering},Y.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return J().videoPosition==="seen"},Y));
var J=function(){return OvX(S(),P(),u())},c=function(){var C=S();
var x=P(),b=u();if(OvX(C,x,b).videoPosition!=="active")C=0;else{var T=s$(_.g(x[b],Fj));C=(C.playedTime-T)/((s$(_.g(x[b+1],Fj))||C.videoDuration)-T)}return C};
return _.R("div",{class:Y,style:_.Jg({width:function(){var C=S(),x=P(),b=u(),T=_.g(x[b],Fj);x=_.g(x[b+1],Fj);return(x?s$(x)-s$(T):C.videoDuration-s$(T))/C.videoDuration*100+"%"},
"background-color":function(){a:{var C=J();switch(C.videoPosition){case "pending":C=C.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":C=C.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:C=""}}return C},
"background-size":function(){return(YY1(J())?W():"")+"px"},
"background-position-x":function(){return(YY1(J())?m():"")+"px"}})},_.R("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var C=S(),x=P(),b=u();if(OvX(C,x,b).videoPosition==="seen")var T=0;else T=s$(_.g(x[b],Fj)),x=s$(_.g(x[b+1],Fj))||C.videoDuration,C=C.videoDuration*C.percentLoaded,T=x<=C?1:T>=C?0:(C-T)/(x-T);return"width: "+T*100+"%"}}),_.R("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Jg({width:function(){return c()*100+"%"},
"background-size":function(){return(YY1(J(),c())?W():"")+"px"},
"background-position-x":function(){return(YY1(J(),c())?m():"")+"px"}})}))},"ce");var YUB=function(Y,S){S=S===void 0?Osm:S;var P,u=[],W,m=!1;return function(){var J=_.Ch.apply(0,arguments);if(m&&P===this&&S(J,u))return W;W=Y.apply(this,J);m=!0;P=this;u=J;return W}}(function(Y){var S=Y.heatMarkers,P=Y.minHeightDp===void 0?0:Y.minHeightDp,u=Y.maxHeightDp===void 0?60:Y.maxHeightDp;
var W=W===void 0?!1:W;var m=1E3/S.length;Y=[];Y.push({x:0,y:100});for(var J=0;J<S.length;J++){var c=void 0,C=((c=_.g(S[J],GE_))==null?void 0:c.heatMarkerIntensityScoreNormalized)||0;c=(J+.5)*m;C=100-_.wx(C*100,P/321*100,u/321*100);J!==0||W||Y.push({x:0,y:C});Y.push({x:c,y:C});J===S.length-1&&Y.push({x:1E3,y:C})}Y.push({x:1E3,y:100});S="";for(P=0;P<Y.length;P++)W=Y[P],P===0?W="M "+W.x.toFixed(1)+","+W.y.toFixed(1):(u=Iuh(Y[P-1],Y[P-2],W),m=Iuh(W,Y[P-1],Y[P+1],!0),W=" C "+(u.x.toFixed(1)+","+u.y.toFixed(1)+
" "+m.x.toFixed(1)+","+m.y.toFixed(1)+" "+W.x.toFixed(1)+","+W.y.toFixed(1))),S+=W;return S});var SUu=_.AI(function(Y){var S=Y.progressBarProps;var P=Y.config;var u={};Y=_.Si("ytHeatSeekerHost",(u.ytHeatSeekerHighContrast=Y.highContrast,u));var W=function(){return FgJ(P().chapterData)};
return _.R("yt-progress-bar-heatseeker",{class:Y,style:function(){var m;return"height: 320px; display: "+(S().isDragging&&((m=W())==null?0:m.heatMarkers)?"block":"none")}},_.R(_.gw,{cond:W,
then:function(m){return _.R(_.gw,{cond:function(){return m().heatMarkers},
then:function(){return _.R("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.R("path",{d:function(){return YUB(m())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"de");var PKc=_.AI(function(Y){var S=Y.progressBarProps;var P=Y.config;Y={};Y=_.Si("ytProgressBarLineProgressBarLine",(Y.ytProgressBarLineProgressBarLineRounded=function(){return P().rounded},Y.ytProgressBarLineProgressBarLineBottomInset=function(){return P().position===2},Y));
return _.R("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.R("div",{class:Y},_.R("div",{class:"ytProgressBarLineProgressBarBackground"}),_.R("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+S().percentLoaded*100+"%"}}),_.R("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var u=S();return"width: "+(u.videoDuration?_.wx(u.hoveredTime/u.videoDuration,0,1):0)*100+"%"}}),_.R("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Lg9(S())*100+"%"}})))},"ee");
PKc.idomCompat=!0;var uFc=_.AI(function(Y){var S=Y.progressBarProps;var P=Y.playheadData;var u=Y.interpolateDotPosition;var W=Y.hidePlayhead;Y={};var m=_.Si("ytProgressBarPlayheadProgressBarPlayheadDot",(Y.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return S().isDragging},Y.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!S().isDragging&&W()},Y));
return _.R("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Jg({"margin-left":function(){return wPf(S())*100+"%"},
transform:function(){return"translateX(-"+(u()?wPf(S())*12:6)+"px)"}})},_.R(_.gw,{cond:function(){var J;
return(J=_.o_(P)())==null?void 0:J.playheadImage},
then:function(J){var c={};return _.R("div",{class:_.Si("ytProgressBarPlayheadProgressBarPlayheadCustom",(c.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return S().isDragging},c.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!S().isDragging&&W()},c)),
style:_.Jg({"transform-origin":function(){return(u()?wPf(S())*20:10)+"px center"}})},_.R(_.ZZ,{data:J,
alt:"","aria-hidden":"true"}))},
else:function(){return _.R("div",{class:m,style:_.Jg({"transform-origin":function(){return(u()?wPf(S())*12:6)+"px center"}})})}}))},"fe");
uFc.idomCompat=!0;var Rg=function(Y,S,P,u,W,m){this.getProgressBarRect=Y;this.updateProgressBarRect=S;this.getFilmstripYPosition=P;this.setFineScrubbingDraggedTime=u;this.updateFilmStripDraggedYDistance=W;this.resetFilmStripYOffset=m;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.NE(this.onThrottledSeek,100,this)},Wz1=function(Y,S,P){return function(u){Y.handleClick(u,S(),P())}},nEd=function(Y,S){return function(P){zL6(Y,
P,m81(P),S())}},jNB=function(Y,S){return function(P){zL6(Y,P,{x:P.clientX,
y:P.clientY},S())}},BX1=function(Y,S,P){return function(u){var W=S(),m=P();
JY1(Y,u,m81(u),W,m,!0);if(m.onTouchMove)m.onTouchMove(W)}},CK_=function(Y,S,P){return function(u){cYI(Y,u,S(),P())}},qUo=function(Y,S){return function(){Y.handleMouseLeave(S())}},RL1=function(Y,S,P){return function(){var u=S(),W=P();
x0(Y,u,W);if(W.onTouchEnd)W.onTouchEnd(u)}},x8B=function(Y,S,P){return function(){var u=S(),W=P();
x0(Y,u,W);if(W.onTouchEnd)W.onTouchEnd(u)}},bS5=function(Y,S,P){return function(){x0(Y,S(),P())}},TXX=function(Y,S,P){return function(u){!P().disableScrubbing&&Y.startPosition&&cYI(Y,u,S(),P())}},Kzu=function(Y,S,P){return function(){if(!P().disableScrubbing)if(Y.startPosition){var u=S(),W=P();
x0(Y,S(),P());if(W.onTouchEnd)W.onTouchEnd(u)}else S().setState({isDragging:!1})}},m81=function(Y){Y=Y.touches[0];
return{x:Y.clientX,y:Y.clientY}},cYI=function(Y,S,P,u){if(S.buttons!==1){if(S.movementX||S.movementY)S.preventDefault(),S.stopPropagation(),Y=EE6(Y,P,S.clientX),P.setState({isHovering:!0,
hoveredTime:Y*P.videoDuration})}else fB_(P),JY1(Y,S,{x:S.clientX,y:S.clientY},P,u,!1)};
Rg.prototype.handleMouseLeave=function(Y){fB_(Y)};
var fB_=function(Y){Y.isHovering&&Y.setState({isHovering:!1,hoveredTime:0})},zL6=function(Y,S,P,u){Y.startPosition||(Y.startPosition=P,Y.updateProgressBarRect(),Y.controlsWereVisibleBeforeDragging=u.controlsVisible,S.stopPropagation(),_.f("medium_progress_bar_modification")||S.preventDefault())},JY1=function(Y,S,P,u,W,m){if(Y.startPosition)if(m&&W.isInlinePlayback&&Y.startPosition&&!Y.hasDraggedTheMinimumDistance&&Math.abs(P.y-Y.startPosition.y)>Math.abs(P.x-Y.startPosition.x))x0(Y,u,W);
else if(S.preventDefault(),S.stopPropagation(),u.videoDuration&&(Y.startPosition&&!Y.hasDraggedTheMinimumDistance&&(Y.hasDraggedTheMinimumDistance=Math.abs(P.x-Y.startPosition.x)>=1),W.enableFineScrubbing&&(Y.startPosition&&(Y.isDraggedForFineScrubbing=-(P.y-Y.startPosition.y)>=60),!Y.startPosition||P.y>=Y.startPosition.y||(u.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:SY9(u.draggedTime,u,W.chapterData)}),Y.setFineScrubbingDraggedTime(u.draggedTime),Y.updateFilmStripDraggedYDistance(Y.startPosition.y,
P.y,u))),Y.hasDraggedTheMinimumDistance)){S=EE6(Y,u,P.x);if(Y.isDraggedForFineScrubbing){var J;(J=u.playerApi)==null||J.pauseVideo();u.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:u.draggedTime,filmStripXDistance:SY9(S*u.videoDuration,u,W.chapterData)})}W.enableFineScrubbing&&(!W.enableFineScrubbing||Y.getFilmstripYPosition(u)<68)||u.setState({draggedTime:S*u.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:Y.controlsWereVisibleBeforeDragging});var c;(c=
W.cancelAutohideControlsFn)==null||c.call(W)}},x0=function(Y,S,P){var u=P.enableFineScrubbing&&S.fineScrubbingActiveState!=="off";
if(S.isDragging||u){u={isDragging:!1,playedTime:S.draggedTime,controlsVisible:Y.controlsWereVisibleBeforeDragging};P.enableFineScrubbing&&S.fineScrubbingActiveState!=="on"&&(Y.resetFilmStripYOffset(),u.fineScrubbingActiveState="off");var W=W===void 0?QtJ:W;var m=_.pM(0);m&&W&&_.MT(m,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(S.playedTime*1E3),endMediaTimeMs:Math.round(S.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});S.setState(u);
Y.seekThrottle.fire(S.draggedTime,S,7);_.f("mweb_new_progress_bar_play_on_seek")&&Y.resumeVideo(S);P.unmuteOnSeek&&(P=S.playerApi,S.volumeMuted&&(P==null||P.unMute()))}else S.setState({controlsVisible:!S.controlsVisible}),(m=P.triggerAutohideControlsAfterDelayFn)==null||m.call(P);Y.startPosition=null;Y.hasDraggedTheMinimumDistance=!1;Y.isDraggedForFineScrubbing=!1;Y.controlsWereVisibleBeforeDragging=!1};
Rg.prototype.handleClick=function(Y,S,P){this.updateProgressBarRect();Y.stopPropagation();Y=EE6(this,S,Y.clientX)*S.videoDuration;S.setState({playedTime:Y});if(S.playerState!==2){var u;(u=P.triggerAutohideControlsAfterDelayFn)==null||u.call(P)}this.seekThrottle.fire(Y,S,7)};
var EE6=function(Y,S,P){Y=Y.getProgressBarRect(S);return _.wx(0,(P-Y.left)/Y.width,1)};
Rg.prototype.resumeVideo=function(Y){if(Y.draggedTime<Y.videoDuration){var S;(S=Y.playerApi)==null||S.playVideo()}};
Rg.prototype.onThrottledSeek=function(Y,S,P){if(S=S.playerApi){var u;if((u=S.getVideoData())==null?0:u.isLive)u=this.getProgressState(S),Y+=(u==null?void 0:u.seekableStart)||0;S.seekTo(Y,void 0,void 0,void 0,P)}};
Rg.prototype.getProgressState=function(Y){var S=Y==null?void 0:Y.getPresentingPlayerType();return Y==null?void 0:Y.getProgressState(S)};var rYZ,$8o,Gcu,vEY,gEd,D8c,IBI,aB5,LzI;rYZ=_.AI(function(Y){var S=Y.progressBarProps;var P=Y.config;var u=Y.progressBarWidthPx;var W=Y.chapterData;var m=mxX(S,function(){return P().isShortsPage}),J=function(){return!S().isHovering&&!P().isShortsPage};
Y={};var c=_.Si("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(Y.ytPlayerStoryboardHostMwebShorts=function(){return P().isShortsPage&&!1},Y));
return _.R("yt-player-storyboard",null,_.R(_.gw,{cond:function(){return S().isDragging||S().isHovering},
then:function(){return _.R(_.gw,{cond:m,then:function(C){return _.R(_.gw,{cond:J,then:function(){return _.R("div",{class:c,"aria-hidden":"true"},_.R(gEd,{props:S,config:P,isBigboard:!0,chapterData:W}))},
else:function(){return _.R($8o,{props:S,frame:C,config:P,progressBarWidthPx:u,chapterData:W})}})}})}}))},"ge");
_.hL6=_.AI(function(Y){var S=Y.progressBarProps;var P=mxX(S,Y.isShortsPage);return _.R("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.R(_.gw,{cond:function(){return S().isDragging||S().isHovering},
then:function(){return _.R(_.gw,{cond:P,then:function(u){return _.R(Gcu,{frame:u,props:S,isBigboard:!0})}})}}))},"he");
$8o=_.AI(function(Y){var S=Y.props;var P=Y.frame;var u=Y.config;var W=Y.progressBarWidthPx;Y=Y.chapterData;var m={};m=_.Si("ytPlayerStoryboardHost",(m.ytPlayerStoryboardHostMwebShorts=function(){return u().isShortsPage&&!1},m.ytPlayerStoryboardHostInlinePlayer=function(){return u().isInlinePlayer},m.ytPlayerStoryboardHostFadeIn=function(){return u().useFadeInAnimation},m));
return _.R("div",{class:m,"aria-hidden":"true",style:function(){var J=S(),c=PDU(P()),C=W();J=uda(J)/J.videoDuration;var x=C*J,b=c/2+6;c=C-(c/2+6);return"left: "+(x<=b?b/C*100:x>=c?c/C*100:J*100)+"%"}},_.R(_.gw,{cond:function(){var J=S();
return!(u().isShortsPage&&J.videoDuration<15)},
then:function(){return _.R(Gcu,{frame:P,props:S,isBigboard:!1})}}),_.R(gEd,{props:S,
config:u,isBigboard:!1,chapterData:Y}))},"ie");
Gcu=_.AI(function(Y){var S=Y.frame;var P=Y.props;var u=Y.isBigboard;var W=function(){var c,C;return(C=(c=P().playerApi)==null?void 0:c.getVideoContentRect())!=null?C:{width:0,height:0}},m=function(){return PDU(S())},J=function(){var c=S();
return c?c.height/c.rows:0};
Y={};Y=_.Si((Y.ytPlayerStoryboardBigboardImageWrapper=u,Y.ytPlayerStoryboardStoryboardImageWrapper=function(){return!u()},Y));
return _.R("div",{class:Y,style:function(){return"width: "+(u()?W().width:m())+"px; height: "+(u()?W().height:J())+"px;"}},_.R(vEY,{frame:S,
storyboardWidth:m,storyboardHeight:J,storyboardScale:function(){return(u()?W().width:m())/m()}}))},"je");
vEY=_.AI(function(Y){var S=Y.frame;var P=Y.storyboardWidth;var u=Y.storyboardHeight;var W=Y.storyboardScale;var m=function(){var J=S().row,c=S().column,C=P(),x=u(),b=W();return{left:-c*C*b,top:-J*x*b}};
return _.R("img",{src:function(){return S().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+m().left+"px; top: "+m().top+"px; width: "+S().width*W()+"px; height: "+S().height*W()+"px;"}})},"ke");
gEd=_.AI(function(Y){var S=Y.props;var P=Y.config;var u=Y.isBigboard;var W=Y.chapterData;Y={};Y=_.Si("ytPlayerStoryboardMetadata",(Y.ytPlayerStoryboardMetadataBigboard=u,Y));return _.R("div",{class:Y},_.R(_.gw,{cond:u,then:function(){return _.R(_.SX,null,_.R(D8c,{props:S,config:P}),_.R(_.gw,{cond:function(){a:{var m=S();var J=P(),c=W(),C;if((J==null?0:J.activeChapter)&&((C=_.g(J==null?void 0:J.activeChapter,Fj))==null?0:C.title))m=!0;else{J=_.n(sta(c));for(J=J.next();!J.done;J=J.next()){m=(J=_.g(J.value,
vmm))&&W68(m,J);break a}m=!1}}return m},
then:function(){return _.R(IBI,{props:S,config:P,isBigboard:!0,chapterData:W})}}))},
else:function(){return _.R(_.SX,null,_.R(IBI,{props:S,config:P,isBigboard:!0,chapterData:W}),_.R(D8c,{props:S,config:P}))}}))},"le");
D8c=_.AI(function(Y){var S=Y.props;var P=Y.config;Y={};Y=_.Si("ytPlayerStoryboardTimestamp",(Y.ytPlayerStoryboardTimestampShorts=function(){return P().isShortsPage},Y.ytPlayerStoryboardTimestampIsHovering=function(){return S().isHovering||P().isShortsPage&&!0},Y));
return _.R("div",{class:Y},_.R(_.SX,null,function(){return _.zm1(uda(S()))}))},"me");
IBI=_.AI(function(Y){var S=Y.props;var P=Y.config;var u=Y.isBigboard;var W=Y.chapterData;Y={};u=_.Si("ytPlayerStoryboardTitle",(Y.ytPlayerStoryboardTitleBigboard=u,Y));return _.R("div",{class:u},_.R(_.gw,{cond:function(){return!P().isShortsPage},
then:function(){return _.R(aB5,{props:S,activeChapter:function(){return P().activeChapter},
chapterData:W})}}))},"ne");
aB5=_.AI(function(Y){var S=Y.props;var P=Y.activeChapter;var u=Y.chapterData;return _.R(_.SX,null,_.R(_.$Z,{each:function(){return sta(u())},
keyBy:"INDEX"},function(W){return _.R(_.SX,null,_.R(_.gw,{cond:function(){return _.g(W(),vmm)&&W68(S(),_.g(W(),vmm))},
then:function(){return _.R(LzI,{timedMarker:function(){return _.g(W(),vmm)}})}}))}),_.R(_.gw,{cond:function(){var W;
return P()&&((W=_.g(P(),Fj))==null?void 0:W.title)},
then:function(W){return _.R(_.qw,{text:W,noPreWrap:!0})}}))},"oe");
LzI=_.AI(function(Y){var S=Y.timedMarker;return _.R(_.SX,null,_.R("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.R(_.BX,{icon:function(){return S().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.R(_.qw,{text:function(){return S().label},
noPreWrap:!0}))},"pe");_.wdI=_.AI(function(Y){var S=Y.progressBarProps;var P=Y.playheadData;var u=Y.config;Y=_.Ms();var W=_.Ms(),m=_.Ms(),J=_.n(_.qb({width:0,left:0},void 0,"NcXsUb")),c=J.next().value,C=J.next().value,x=function(){m.value&&C(m.value.getBoundingClientRect())},b=function(){c().width<=0&&x();
return c()};
eu("resize",x);var T=new Rg(b,function(){},function(){return 0},function(){},function(){},function(){}),K=function(){return S()};
J=_.n(_.qb(!1,void 0,"ZsF6Xc"));var G=J.next().value,v=J.next().value;J=_.mR(function(){v(!0);u().position===2?setTimeout(function(){x()},100):x()});
var a=_.mR(function(){v(!1);qUo(T,K)()}),w=_.mR(function(w1){u().doSeekOnClick&&Wz1(T,K,u)(w1);
return!1}),F=_.mR(function(w1){nEd(T,K)(w1);
return!1}),U=_.mR(function(w1){jNB(T,K)(w1);
return!1}),V=_.mR(function(w1){BX1(T,K,u)(w1);
return!1}),M=_.mR(function(w1){CK_(T,K,u)(w1);
return!1}),zJ=_.mR(function(){RL1(T,K,u)();
return!1}),O=_.mR(function(){x8B(T,K,u)();
return!1}),ca=_.mR(function(){bS5(T,K,u)();
return!1});
eu("mousemove",TXX(T,K,u));eu("mouseup",Kzu(T,K,u));_.LE(function(){kA1(W.value);v(!1);x();Kzu(T,K,u)()});
var hu={};hu=_.Si("ytPlayerProgressBarHost",function(){return u().className},(hu.ytPlayerProgressBarHostReadOnly=function(){return u().disableScrubbing},hu.ytPlayerProgressBarHostHidden=function(){return u().hideProgressBar&&!G()},hu.ytPlayerProgressBarHostLowerPlayer=function(){return u().position===0},hu.ytPlayerProgressBarHostBottomEdge=function(){return u().position===1},hu.ytPlayerProgressBarHostBottomInset=function(){return u().position===2},hu.ytPlayerProgressBarHostCustom=function(){return u().position===
3},hu));
var ah={},va=_.Si("ytPlayerProgressBarBackground",(ah.ytPlayerProgressBarBackgroundHide=function(){return u().position===2&&!G()&&!S().isDragging},ah));
ah={};ah=_.Si("ytPlayerProgressBarDragContainer",(ah.ytPlayerProgressBarDragContainerBottomEdge=function(){return u().position===1},ah));
var yX={};yX=_.Si("ytPlayerProgressBarProgressBar",(yX.ytPlayerProgressBarProgressBarInset=function(){return u().position===2},yX.ytPlayerProgressBarProgressBarInsetMinimized=function(){return u().position===2&&!G()&&!S().isDragging},yX));
var la=function(){return Math.floor(Lg9(S())*100)};
return _.R("yt-progress-bar",{el:Y,class:hu},_.R(_.gw,{cond:function(){return u().position===2},
then:function(){return _.R("div",{class:va})}}),_.R("div",{el:W,
"on:click":w,"on:touchstart":F,"on:touchmove":V,"on:mouseenter":J,"on:mousedown":U,"on:mouseleave":a,"on:mousemove":M,"on:mouseup":O,"on:touchend":zJ,"on:touchcancel":ca,class:ah,role:"slider","aria-valuenow":la,"aria-valuetext":function(){return la()+"%"},
tabindex:0,"aria-label":_.Td("SEEK_SLIDER")},_.R("div",{el:m,class:yX},_.R(SUu,{progressBarProps:S,config:u,highContrast:function(){return!!u().isInlinePlayback}}),_.R(_.gw,{cond:function(){return u().chapterData&&dla(u().chapterData)},
then:function(){return _.R(O1j,{progressState:S,multiMarkersPlayerBarRenderer:function(){return u().chapterData},
progressBarWidth:function(){return c().width}})},
else:function(){return _.R(PKc,{progressBarProps:S,config:u})}}),_.R(uFc,{progressBarProps:S,
playheadData:P,interpolateDotPosition:function(){return u().position!==2},
hidePlayhead:function(){return u().playheadDotBehavior===1&&!G()}}))),_.R(rYZ,{progressBarProps:S,
config:function(){return{activeChapter:VPK(S(),u().chapterData),getProgressBarWidthPx:function(){return b().width},
isShortsPage:!!u().isShortsPage,isInlinePlayer:!!u().isInlinePlayback,useFadeInAnimation:!!u().isInlinePlayback}},
progressBarWidthPx:function(){return c().width},
chapterData:function(){return u().chapterData}}))},"qe");
_.wdI.idomCompat=!0;Object.assign({},_.lv9(),{setState:function(){},
domMeasurements:{},appApi:_.ava(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var pdd;
_.FzZ=_.AI(function(){var Y,S=(Y=_.dx(n$h().playerApi))!=null?Y:void 0;Y=_.n(_.qb(!1,void 0,"HLFBmb"));var P=Y.next().value,u=Y.next().value;Y=_.n(_.qb(!1,void 0,"lHH9bc"));var W=Y.next().value,m=Y.next().value;Y=_.n(_.qb(!1,void 0,"zsY7yd"));var J=Y.next().value,c=Y.next().value;Y=_.n(_.qb(!1,void 0,"KeHQgc"));var C=Y.next().value,x=Y.next().value;Y=_.n(_.qb(0,void 0,"gLLCj"));var b=Y.next().value,T=Y.next().value;Y=_.n(_.qb(0,void 0,"s3RYkf"));var K=Y.next().value,G=Y.next().value;Y=_.n(_.qb(!1,void 0,
"Dn608e"));var v=Y.next().value,a=Y.next().value;Y=_.n(_.qb(0,void 0,"AnkH1b"));var w=Y.next().value,F=Y.next().value;Y=_.n(_.qb(0,void 0,"QYNL0b"));var U=Y.next().value,V=Y.next().value;Y=_.n(_.qb("",void 0,"Yzw45d"));var M=Y.next().value,zJ=Y.next().value;Y=_.n(_.qb(-1,void 0,"iiVI0c"));var O=Y.next().value,ca=Y.next().value,hu=_.fJ(function(){var ah={controlsVisible:P(),isOverlayHidden:W(),shouldWaitToHideControls:J(),isDragging:C(),isHovering:v(),videoDuration:w(),playedTime:U(),videoId:M(),draggedTime:K(),
hoveredTime:b(),playerState:O()};return Object.assign({},_.lv9(),ah,{domMeasurements:{},setState:function(va){va.controlsVisible!==void 0&&u(va.controlsVisible);va.isOverlayHidden!==void 0&&m(va.isOverlayHidden);va.shouldWaitToHideControls!==void 0&&c(va.shouldWaitToHideControls);va.isDragging!==void 0&&x(va.isDragging);va.isHovering!==void 0&&a(va.isHovering);va.draggedTime!==void 0&&G(va.draggedTime);va.hoveredTime!==void 0&&T(va.hoveredTime);va.videoDuration!==void 0&&F(va.videoDuration);va.playedTime!==
void 0&&V(va.playedTime);va.videoId!==void 0&&zJ(va.videoId);va.playerState!==void 0&&ca(va.playerState)},
appApi:_.ava(),playerApi:S})},void 0,"ZW7y9");
_.Ij(function(){S==null||S.addEventListener("onVideoProgress",oDJ(hu));S==null||S.addEventListener("onVideoDataChange",ivf(hu));S==null||S.addEventListener("onStateChange",XPu(hu))});
_.aI(function(){if(S==null?0:S.isReady())S==null||S.removeEventListener("onVideoProgress",oDJ(hu)),S==null||S.removeEventListener("onVideoDataChange",ivf(hu)),S==null||S.removeEventListener("onStateChange",XPu(hu))});
return _.R("desktop-shorts-player-controls",null,_.R(pdd,{playerControlsProps:hu}))},"re");
pdd=_.AI(function(Y){var S=Y.playerControlsProps;return _.R("div",{class:"desktopShortsPlayerControlsWizHost"},_.R(_.wdI,{progressBarProps:S,config:function(){return{isShortsPage:!0,hideProgressBar:S().videoDuration<30&&S().playerState!==2&&!S().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"se");_.Sr(_.CD1);_.sN6=_.AI(function(Y){var S=Y.data;return _.R("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.R(_.CR,{command:function(){return S().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.R(_.gw,{cond:function(){return S().iconName},
then:function(P){return _.R(_.BX,{icon:P})}}),_.R("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return S().text}),_.R(_.gw,{cond:function(){return S().showEndChevron},
then:function(){return _.R(_.BX,{icon:"CHEVRON_RIGHT"})}})))},"te");var d8j=_.AI(function(Y){var S=Y.data;var P=Y.overlayDensity;Y={};return _.R("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.R(_.rv,{data:function(){return S().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(u){var W=u.data;
return _.R(_.RT,{data:function(){return(P==null?void 0:P())===1?Object.assign({},W(),{avatar:{avatarViewModel:Object.assign({},_.g(W().avatar,_.Aq),{avatarImageSize:"AVATAR_SIZE_48"})}}):W()}})}}),_.R(_.rv,{data:function(){return S().avatarStackViewModel}},{avatarStackViewModel:function(u){return _.R(_.xw,{data:u.data})}}),_.R(_.qw,{className:_.Si("ytReelChannelBarViewModelChannelName",(Y.ytReelChannelBarViewModelChannelNameLarge=function(){return(P==null?void 0:P())===1},Y)),
text:function(){return S().channelName},
linkInheritColor:!0,userInput:!0}),_.R("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.R(_.rv,{data:function(){return S().subscribeButtonViewModel}},{subscribeButtonViewModel:function(u){var W=u.data;
return _.R(Nju,{data:function(){return(P==null?void 0:P())===1?Object.assign({},W(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},W().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):W()},
isOverlay:!1})},
buttonViewModel:_.aq})),_.R("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.R(_.rv,{data:function(){var u,W;return(W=_.g((u=S())==null?void 0:u.sponsorButtonViewModel,Orf))==null?void 0:W.sponsorButton}},{buttonViewModel:function(u){return _.R(_.aq,{data:u.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ue");var lBZ=_.AI(function(Y){var S={};return _.R("yt-reel-multi-format-link-view-model",{class:_.Si("ytReelMultiFormatLinkViewModelHost",(S.ytReelMultiFormatLinkViewModelHostTall=!0,S.ytReelMultiFormatLinkViewModelHostLarge=function(){var P;return((P=Y.overlayDensity)==null?void 0:P.call(Y))===1},S))},_.R(_.CR,{ariaLabel:function(){return Y.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.vF(Y.data().command)},
dangerousStopPropagation:!1},_.R("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.R(_.gw,{cond:function(){return Y.data().icon},
then:function(P){return _.R(_.ZZ,{data:P,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.R(_.qw,{text:function(){return Y.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ve");
lBZ.idomCompat=!0;var Xdc=_.AI(function(Y){var S=Y.data;var P=_.Ms();Y=_.n(_.qb(!1,void 0,"XwMNzb"));var u=Y.next().value,W=Y.next().value;Y=_.n(_.qb(!1,void 0,"ZysOx"));var m=Y.next().value,J=Y.next().value,c=function(){return S().isMultiLineSa},C=_.Jq(w8h,function(){var F,U;
return(U=(F=S().toggleableContent)==null?void 0:F.entityKey)!=null?U:""}),x=function(){var F,U,V;
return(V=S().toggleableContent)!=null&&V.entityKey?(U=(F=C())==null?void 0:F.value)!=null?U:!1:!1},b=function(){var F,U,V,M,zJ,O,ca,hu,ah,va,yX;
return S().toggleableContent?x()?(F=S().toggleableContent)==null?void 0:F.toggledData:(U=S().toggleableContent)==null?void 0:U.untoggledData:{primaryText:(hu=(V=S().defaultContent)==null?void 0:V.primaryText)!=null?hu:S().text,secondaryText:(M=S().defaultContent)==null?void 0:M.secondaryText,onTapCommand:(ah=(zJ=S().defaultContent)==null?void 0:zJ.onTapCommand)!=null?ah:S().onTapCommand,icon:(va=(O=S().defaultContent)==null?void 0:O.icon)!=null?va:S().icon,image:(yX=(ca=S().defaultContent)==null?
void 0:ca.image)!=null?yX:S().image}},T=function(){return c()?S().trailingTapTarget:void 0};
Y=function(F,U){return function(){return u()?U:F}};
var K={leadingSection:Y("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:Y("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:Y("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:Y("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};Y={};Y=_.Si((Y.ytShortsSuggestedActionViewModelStaticHost=function(){return!c()},Y.ytShortsSuggestedActionViewModelDynamicHost=c,Y.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return c()&&m()},Y.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return c()&&!m()},Y));
_.LE(function(){if(c()){var F=0,U;if((U=S().animationParams)==null?0:U.shouldExpand){var V,M;F=((M=(V=S().animationParams)==null?void 0:V.expansionDelaySecs)!=null?M:0)*1E3}var zJ,O=((zJ=S().animationParams)==null?0:zJ.shouldExpand)?setTimeout(function(){W(!0)},F):void 0,ca,hu;
F=((ca=S().animationParams)==null?0:ca.visibilityDelaySecs)?((hu=S().animationParams)==null?NaN:hu.visibilityDelaySecs)*1E3:0;var ah=setTimeout(function(){J(!0)},F);
_.aI(function(){O&&clearTimeout(O);clearTimeout(ah)})}});
var G=function(F){_.ae(F,Object.assign({},{form:{element:P.value}}))},v=_.mR(function(){var F,U=(F=b())==null?void 0:F.onTapCommand;
U&&G(U)}),a=_.mR(function(){var F,U;
if(F=(U=T())==null?void 0:U.onTapCommand)return G(F),!1}),w=_.Jg({"vertical-align":"bottom",
"border-radius":function(){var F;return c()?((F=S().defaultContent)==null?0:F.isCircleImage)?"50%":"4px":"0px"},
width:function(){var F,U,V;return c()&&((F=S().defaultContent)==null?0:F.imageSize)?((V=(U=S().defaultContent)==null?void 0:U.imageSize)!=null?V:24)+"px":null},
height:function(){var F,U,V;return c()&&((F=S().defaultContent)==null?0:F.imageSize)?((V=(U=S().defaultContent)==null?void 0:U.imageSize)!=null?V:24)+"px":null}});
return _.R("yt-shorts-suggested-action-view-model",{class:Y,el:P},_.R("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.R("button",{class:_.Si(function(){return c()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var F;
return(F=S().useFullRoundedBorder)!=null&&F?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!T()&&c()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":c()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var F;
return(F=S().disableFixedHeight)!=null&&F?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""}),
"on:click":v},_.R(_.RF,{model:{color:4}}),_.R("div",{class:_.Si(function(){return c()?K.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.R(_.gw,{cond:function(){var F;
return(F=b())==null?void 0:F.image},
then:function(F){return _.R(_.ZZ,{data:F,alt:"",className:function(){return c()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:w})}}),_.R(_.gw,{cond:function(){var F,U;
return(F=b())==null?void 0:(U=F.icon)==null?void 0:U.iconType},
then:function(F){return _.R(_.BX,{icon:F,active:x,className:function(){return c()?u()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.R("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.R(_.gw,{cond:function(){var F;
return(F=b())==null?void 0:F.primaryText},
then:function(F){return _.R("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.R(_.qw,{text:F}))}}),_.R(_.gw,{cond:function(){var F;
return(F=b())==null?void 0:F.secondaryText},
then:function(F){return _.R("div",{class:K.secondaryText},_.R(_.qw,{text:F}))}}))),_.R(_.gw,{cond:T,
then:function(F){return _.R("div",{class:K.trailingSection,"aria-label":function(){var U;return(U=F().a11yLabel)!=null?U:""},
"on:click":a,role:"button",tabindex:0},_.R(_.RF,{model:{color:4}}),_.R(_.BX,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"we");var ZS1=_.AI(function(Y){var S=Y.data;var P=Y.overlayDensity;var u=_.Ms();Y=_.mR(function(J){if(_.hRX(_.sP(J),u.value,["A".toString()]))return!1;(J=S().truncatedTextOnTapCommand)&&_.ae(J);return!1});
var W={},m={};return _.R("yt-shorts-video-title-view-model",{el:u,class:_.Si("ytShortsVideoTitleViewModelHost",(W.ytShortsVideoTitleViewModelHostClickable=function(){return!!S().truncatedTextOnTapCommand},W)),
"on:click":Y},_.R("h2",{class:_.Si("ytShortsVideoTitleViewModelShortsVideoTitle",(m.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(P==null?void 0:P())===1},m))},_.R(_.qw,{text:function(){return S().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"xe");_.iSj=_.AI(function(Y){var S=Y.data;var P=Y.overlayDensity;return _.R("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.R(_.rv,{data:function(){return S().metadataItems}},{badgeViewModel:function(u){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(_.oT,{data:u.data}))},
playerDisclosureViewModel:function(u){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(_.sN6,{data:u.data}))},
shortsSuggestedActionViewModel:function(u){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(Xdc,{data:u.data}))},
reelChannelBarViewModel:function(u){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(d8j,{data:u.data,overlayDensity:P}))},
reelMultiFormatLinkViewModel:function(u){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(lBZ,{data:u.data,overlayDensity:P}))},
shortsVideoTitleViewModel:function(u){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(ZS1,{data:u.data,overlayDensity:P}))},
reelSoundMetadataViewModel:function(u){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(_.N11,{data:u.data,overlayDensity:P}))}}))},"ye");var oEj=_.AI(function(Y){var S=_.tI(Y,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),P=S.size,u=S.onTap,W=S.disabled,m=S.tooltipText;return _.R("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.R(HL,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:P(),disabled:W(),tooltipText:m(),onTap:u}},
iconName:Y.iconType}))},"ze"),tcj=_.AI(function(Y){function S(b){b.stopPropagation();
b.code==="ArrowUp"?(b.preventDefault(),bY1(c.value)):b.code==="ArrowDown"?(b.preventDefault(),Tou(c.value)):b.code==="KeyM"?RmX():(b.code==="KeyK"||b.code==="Space")&&xxX(C())}
var P=_.tI(Y,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});Y=P.previousButtonDisabled;var u=P.nextButtonDisabled,W=P.data,m=P.playabilityStatus,J=P.previewThumbnail,c=_.Ms(),C=_.GI(_.BDX),x;_.Ij(function(){(x=_.Ey(c.value))&&x.addEventListener("keydown",S)});
_.aI(function(){var b;(b=x)==null||b.removeEventListener("keydown",S)});
P=function(){var b,T,K;return(b=W())==null?void 0:(T=b.reelPlayerOverlayRenderer)==null?void 0:(K=T.likeButton)==null?void 0:K.likeButtonRenderer};
return _.R("ytd-shorts-miniplayer-overlay",{el:c,class:"ytdShortsMiniplayerOverlayHost"},_.R("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Jg({"background-image":function(){var b=J();return b?'url("'+_.Qz(b.thumbnails)+'")':""}})}),_.R("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.R("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.R(oEj,{iconType:function(){var b=C();
return b===2||b===-1||b===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){xxX(C())},
tooltipText:function(){var b=C();return b===1||b===3?_.Td("PLAYER_LABEL_PAUSE"):_.Td("PLAYER_LABEL_PLAY")}}),_.R(_.CD1,null)),_.R("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.R(oEj,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:Y,onTap:function(){bY1(c.value)},
tooltipText:_.Td("PREVIOUS_VIDEO_LABEL")}),_.R(oEj,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:u,onTap:function(){Tou(c.value)},
tooltipText:_.Td("NEXT_VIDEO_LABEL")}),_.f("web_shorts_pip_like_button")?_.R("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.R(G7S,{buttonTooltipPosition:"left",data:P,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.R("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.R(_.gw,{cond:function(){var b,T;return _.g((b=W())==null?void 0:(T=b.reelPlayerOverlayRenderer)==null?void 0:T.metapanel,
NFS)},
then:function(b){return _.R("div",{class:_.Si("ytdShortsMiniplayerOverlayInteractive")},_.R(_.iSj,{data:b}))}})),_.R("div",{class:_.Si("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var b;return!((b=W())==null||!b.adsOverlay)||m()&&!auK(m())}},_.R("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.R(_.FzZ,null)))),_.R(_.gw,{cond:function(){var b=W(),T,K;
b=_.g(b==null?void 0:(T=b.adsOverlay)==null?void 0:(K=T.fulfillmentContent)==null?void 0:K.fulfilledLayout,LXd);return _.g(b==null?void 0:b.renderingContent,diS)},
then:function(b){return _.R("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.R(lE3,{data:b}))}}))},"Ae");var K6E=_.AI(function(){var Y=_.n(_.qb(new _.SZ(NaN,NaN),void 0,"dCf7yb")),S=Y.next().value,P=Y.next().value;Y=_.n(_.qb(!1,void 0,"smJHAc"));var u=Y.next().value,W=Y.next().value,m=_.n(_.qb(!1,void 0,"HnqDAc"));Y=m.next().value;var J=m.next().value,c=_.E().resolve(_.l1).miniplayerPropSignalMap[0],C=c.data,x=c.shortsData,b=c.nextButtonDisabled,T=c.shortsPreviewThumbnail,K=c.previousButtonDisabled,G=c.externalPlaylistData;m=c.toastData;var v=c.playabilityStatus,a=c.isDisabled;c=_.GI(_.cB);_.kG("yt-pip-window-resized",
function(V){P(V)});
_.kG("yt-activate-pip-miniplayer",function(){return _.B(function(V){J(!0);_.Yt(V)})});
var w=function(){var V;return!((V=G())==null||!V.contents)&&u()},F=function(){var V=S(),M=!!C(),zJ=w();
V=V.clone();M&&(V.height-=76);zJ&&(V.height-=285);return V},U=function(){W(!u())};
return _.R("ytd-pip-container",{class:"ytdPipContainerHost"},_.R(_.gw,{cond:Y,then:function(){return _.R(_.H1u,{isDisabled:a,playabilityStatus:v,size:F})}}),_.R(_.gw,{cond:C,
then:function(){return _.R(_.yjB,{data:C,expanded:u,onExpandClick:U,playlistData:G})}}),_.R(_.gw,{cond:w,
then:function(){return _.R("div",{class:"ytdPipContainerPlaylistPanel"},_.R(_.$_U,{data:G,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.R(_.gw,{cond:c,
then:function(){return _.R(tcj,{data:x,nextButtonDisabled:b,previousButtonDisabled:K,playabilityStatus:v,previewThumbnail:T})}}),_.R("div",{class:"ytdPipContainerToast"},_.R(_.V_c,{toastData:m})))},"Be");var b5=function(Y,S){var P=this;this.pipController=Y;this.JSC$16333_clientRoot=S;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=GA$();this.watchPipEnabled=_.f("web_watch_pip");this.shortsPipEnabled=_.f("web_shorts_pip");this.JSC$16333_watchWhileEnabled=_.f("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;_.J5(_.Na(),_.m$$,function(u){P.isSingleOptionSurveyActive=u});
this.JSC$16333_onPlayerPlayVideo=this.JSC$16333_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);_.Uf(_.Ap.getInstance(),this.miniplayerServiceActionMap,this.JSC$16333_clientRoot);window.documentPictureInPicture&&_.Df()&&_.L_("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},mX3,eLY,yYI,OSd,Y4u,x66,S4u,PB5,um1,HSu;
b5.prototype.handleMediaSessionPipActivation=function(){var Y=this,S;return _.B(function(P){_.nd().mediaSessionPipActivation=!0;S=_.E().resolve(_.Ag);return S.isOnWatch()&&Y.watchPipEnabled?(_.nd().watchPipActivation=!0,_.AYo(Y,S.data),P.jumpTo(0)):S.isOnShorts()&&Y.shortsPipEnabled?(_.nd().shortsPipActivation=!0,_.U86(Y),P.jumpTo(0)):Y.isMiniplayerActive()&&Y.watchPipEnabled&&!Y.watchWhileMode?_.q(P,QNu(Y),0):P.jumpTo(0)})};
var QNu=function(Y){var S,P,u,W;return _.B(function(m){if(m.nextAddress==1)return S=!Y.miniplayerToPipMode,P=Y.playerElement,u=Y.miniplayerData,W=Y.watchResponse,_.q(m,Y.deactivate(),2);if(m.nextAddress!=3)return S?(_.nd().mediaSessionPipActivation=!0,_.nd().watchPipActivation=!0):_.nd().miniplayerButtonActivation=!0,_.q(m,Y.activate(P,u,W),3);Y.miniplayerToPipMode=S;_.Yt(m)})};
b5.prototype.onDownloadedVideoDeleted=function(Y){var S,P=_.g((S=this.miniplayerData)==null?void 0:S.watchEndpoint,_.yx),u,W;P&&((u=this.watchResponse)==null?void 0:(W=u.playerResponse)==null?void 0:W.offlineState)!==void 0&&(S=P.videoId)&&Y&&S===Y&&this.close()};
b5.prototype.onShowMiniplayerCommand=function(Y){var S=this,P,u,W,m,J,c,C,x,b,T,K,G,v;return _.B(function(a){switch(a.nextAddress){case 1:return P=_.g(Y,oqs),W=(u=P)==null?void 0:u.miniplayerCommand,m=_.g(W,_.yx),W&&m&&!S.active?_.q(a,_.bA.getInstance(),2):a.return();case 2:return J=a.yieldResult,_.q(a,(c=J)==null?void 0:c.get("yt-miniplayer-shown-video-id"),3);case 3:C=a.yieldResult;x=m.videoId;if(!x||C===x)return a.return();b=_.E().resolve(_.Ag);if(b.isOnWatch())return _.sf(Error("Dj")),a.return();
T={channelItem:{externalId:btoa(x)}};S.readyToResumeVe=_.TI(121253,void 0,void 0,T);_.nd().showMiniplayerCommandActivation=!0;return _.q(a,_.bT6(S,W,!0),4);case 4:return S.active?(_.TG(S,{readyToResumeVe:S.readyToResumeVe,continueWatching:!0,premiumBranding:!((K=P)==null||!K.showPremiumBranding)}),S.isReadyToResume=!0):_.TG(S,{continueWatching:!0,premiumBranding:!((G=P)==null||!G.showPremiumBranding)}),_.f("ytd_miniplayer_to_wiz")&&_.TG(S,{isReadyToResume:!0}),_.q(a,(v=J)==null?void 0:v.set("yt-miniplayer-shown-video-id",
m.videoId),5);case 5:S.readyToResumeVe=void 0,_.Yt(a)}})};
b5.prototype.init=function(Y){this.miniplayerEl?_.sf(new _.$2("MiniplayerService already initialized.")):this.miniplayerEl=Y};
b5.prototype.isInitialized=function(){var Y=!!this.miniplayerEl;Y||_.sf(new _.$2("MiniplayerService used before initialized."));return Y};
_.AYo=function(Y,S){if(Y.isInitialized()){var P=_.DlK(S.response,S.playerResponse),u=_.E().resolve(_.Ag).getPlayerFromWatch();_.nd().currentEndpoint=P.watchEndpoint||null;Y.activate(u,P,S)}};
_.U86=function(Y){if(Y.isInitialized()){var S=_.E().resolve(_.Ag).getPlayerFromShorts();Y.activate(S)}};
mX3=function(Y,S){var P;(P=!Y.isInitialized())||(P=_.E().resolve(_.Ag).isOnWatch()&&Y.watchPipMode,P=!(Y.isMiniplayerActive()&&(_.nd().userActivation||_.nd().lockupActivation||P)));if(P)return!1;kcY(Y,S)?_.qf(Y):x66(Y,S);return Y.watchPipMode?!_.E().resolve(_.Ag).isOnWatch():!0};
b5.prototype.isMiniplayerActive=function(){return this.active};
var kcY=function(Y,S){var P;S=(P=_.g(S,_.yx))==null?void 0:P.videoId;var u,W;Y=(W=_.g((u=Y.miniplayerData)==null?void 0:u.watchEndpoint,_.yx))==null?void 0:W.videoId;return S!=null&&S===Y};
b5.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.ms(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.nb(this.miniplayerEl,"yt-navigate-home-action"))};
_.bT6=function(Y,S,P,u){P=P===void 0?!1:P;var W,m,J;return _.B(function(c){switch(c.nextAddress){case 1:if(Y.active){c.jumpTo(2);break}W=_.E().resolve(_.Ag);if(J=(m=Y.playerElement)!=null?m:W.getPlayerFromWatch()){c.jumpTo(3);break}return _.q(c,_.E().resolve(_.HX),4);case 4:J=W.getPlayerFromWatch();case 3:if(!J){_.sf(Error("Fj"));c.jumpTo(2);break}return _.q(c,Y.activate(J,u),2);case 2:return Y.active?_.q(c,x66(Y,S,P),0):c.return()}})};
b5.prototype.activate=function(Y,S,P){var u=this,W,m,J,c,C,x,b,T;return _.B(function(K){switch(K.nextAddress){case 1:if(!u.isInitialized())return K.return();if(!Y)return _.sf(Error("Fj")),K.return();if(_.l7d()||u.isMiniplayerActive())var G=!0;else G=_.nd().watchPipActivation||_.nd().watchWhileActivation,_.E().resolve(_.Ag).isOnWatch()&&!G?(_.sf(new _.$2("miniplayer activated on watch page")),G=!0):G=_.nd().watchWhileActivation?u.userDeactivatedWatchWhile||!!document.pictureInPictureElement||Bq1():
!1;if(G)return dcu(),K.return();W=_.nd().mediaSessionPipActivation;m=_.nd().shortsPipActivation;J=_.nd().watchPipActivation;C=(c=_.nd().watchWhileActivation)||J;x=J||m;if(!u.pictureInPictureEnabled()||!x){K.jumpTo(2);break}return _.q(K,Mcu(u,W),3);case 3:if(!K.yieldResult)return _.sf(Error("Ej")),dcu(),K.return();case 2:return u.setActive(!0),u.watchResponse=P,u.playerElement=Y,u.updateMiniplayerData(S),_.q(K,yYI(u,Y),4);case 4:if(!u.active)return _.sf(new _.$2("miniplayer deactivated during activation")),
u.removePlayerListeners(),K.return();G=_.E().resolve(_.D3);G.addEventListener("yt-navigate",_.up(u,u.onPlaylistNavigate));G.addEventListener("yt-playlist-data-updated",_.up(u,u.JSC$16333_onPlaylistDataUpdated));u.JSC$16333_onPlaylistDataUpdated();dcu();u.JSC$16333_watchWhileEnabled&&_.NXY(u,c);u.pictureInPictureEnabled()&&u.shortsPipEnabled&&(u.shortsPipMode=m,_.Na().dispatch(gxu(u.shortsPipMode)));u.pictureInPictureEnabled()&&u.watchPipEnabled&&(u.watchPipMode=J);u.player&&(b=u.player.getPlayerState(),
T=b===1,_.Na().dispatch(LEd(b)),_.jR(u.miniplayerEl,"yt-miniplayer-play-state-changed",[T]),_.nd().isVideoPlaying=T);u.watchPipEnabled&&_.Cu9(u.handleMediaSessionPipActivation);_.jR(u.miniplayerEl,"yt-miniplayer-endpoint-changed");HSu(u);_.VcI(u);return u.shortsPipMode||u.watchPipMode?_.q(K,_.J6(u.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.f("ytd_miniplayer_to_wiz")?_.q(K,_.J6(u.miniplayerEl,"yt-activate-miniplayer",[C]),6):_.q(K,_.J6(u.miniplayerEl,"yt-activate-miniplayer-action",[Y,C]),6);
case 6:eLY(u),OSd(u,!0),_.Yt(K)}})};
b5.prototype.updateMiniplayerData=function(Y){this.miniplayerData=Y;_.TG(this,{data:Y})};
_.VcI=function(Y){var S,P,u=((S=Y.miniplayerData)==null?void 0:(P=S.miniplayerRenderer)==null?void 0:P.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";S=Y.watchWhileMode||Y.watchPipMode?u&&!_.E().resolve(_.Ag).isOnWatch():u;_.TG(Y,{isDisabled:S});var W,m;P=_.g((W=Y.miniplayerData)==null?void 0:(m=W.miniplayerRenderer)==null?void 0:m.minimizedEndpoint,_.fP);S&&P&&_.E().resolve(_.xx).openSheet({openPopupActionCommand:{openPopupAction:P}},Y.miniplayerEl)};
eLY=function(Y){if(Y.watchResponse&&!Y4u(Y)){var S,P=(S=Y.watchResponse.playerResponse)==null?void 0:S.trackingParams;P&&(_.TG(Y,{expandVe:_.TI(35989),closeVe:_.TI(34699),readyToResumeCloseVe:_.TI(131070),repositionVe:_.TI(226204),resizeVe:_.TI(226205)}),_.TG(Y,{playerVe:_.Re(P)}))}};
yYI=function(Y,S){return _.B(function(P){if(P.nextAddress==1)return S.preparePlayer(),_.q(P,S.getPlayerPromise(),2);Y.player=P.yieldResult;Y.player&&(Y.player.addEventListener("onPlayVideo",Y.JSC$16333_onPlayerPlayVideo),Y.player.addEventListener("onCloseMiniplayer",Y.onPlayerCloseMiniplayer),Y.player.addEventListener("onExpandMiniplayer",Y.onPlayerExpandMiniplayer),Y.player.addEventListener("onStateChange",Y.onPlayerStateChange));_.Yt(P)})};
_.z=b5.prototype;_.z.JSC$16333_onPlayerPlayVideo=function(Y){var S=Y.sessionData&&"autonav"in Y.sessionData,P;Y.sessionData&&Y.sessionData.itct&&(P=Y.sessionData.itct);var u=Y.watchEndpoint;S=u&&S?_.oKU(u,P):_.YW(Y.videoId,Y.listId||void 0,P);Y.sessionData&&_.ef(_.g(S.commandMetadata,_.Yo).url,Y.sessionData);x66(this,S)};
_.z.onPlayerExpandMiniplayer=function(){_.qf(this)};
_.z.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.z.onPlayerStateChange=function(){if(this.player){var Y=this.player.getPlayerState(),S=Y===1;_.Na().dispatch(LEd(Y));_.Na().dispatch(_.pbU(Y));_.jR(this.miniplayerEl,"yt-miniplayer-play-state-changed",[S]);_.nd().isVideoPlaying=S;if(Y===0){S=!_.Af.getInstance().isAutoplaySetExplicitly();var P,u,W,m,J,c,C=(P=this.watchResponse.response)==null?void 0:(u=P.contents)==null?void 0:(W=u.twoColumnWatchNextResults)==null?void 0:(m=W.autoplay)==null?void 0:(J=m.autoplay)==null?void 0:(c=J.autoplayExplicitChoiceDialogRenderer)==
null?void 0:c.confirmDialogRenderer;S&&C&&this.player.setAutonavState(1)}Y===0&&this.watchWhileMode&&this.deactivate()}};
_.z.onPlaylistNavigate=function(Y,S){var P=this,u,W,m,J,c,C,x;return _.B(function(b){if(b.nextAddress==1){if(!_.g(S.endpoint,_.yx))return b.return();_.nd().currentEndpoint=S.endpoint;_.jR(P.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.E().resolve(_.Ag).isOnWatch()&&(P.watchWhileMode||P.watchPipMode))return b.return();Y.stopPropagation();(m=(W=_.g((u=S.endpoint)==null?void 0:u.commandMetadata,_.Yo))==null?void 0:W.url)&&S.tempData&&!_.RY.isEmpty(S.tempData)&&_.ef(m,S.tempData);J={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};c=new sT3(function(){return P.getPlayerElement()},J,{layer:3});
C=function(T){c.processChunk({endpoint:S.endpoint,data:T})};
S4u(P);P.miniplayerFetchRequest=PB5(P,S.endpoint,C);_.ND(b,2);return _.q(b,P.miniplayerFetchRequest,4)}if(b.nextAddress!=2)return x=b.yieldResult,um1(P,x),_.tc(b,0);_.O4(b);_.Yt(b)})};
_.z.JSC$16333_onPlaylistDataUpdated=function(){var Y=_.E().resolve(_.D3).getPlaylistData();this.hasPlaylistData=!!Y;_.TG(this,{externalPlaylistData:Y||{}})};
_.z.close=function(Y){if(this.isInitialized())if(Y){if(!((this.watchWhileMode||this.watchPipMode)&&_.E().resolve(_.Ag).isOnWatch()||this.shortsPipMode)){var S;(S=this.getPlayerElement())==null||S.stop()}this.deactivate()}else _.pd().closeMiniplayer(this.miniplayerEl)};
_.z.deactivate=function(Y){var S=this,P,u,W,m;return _.B(function(J){if(J.nextAddress==1){if(!S.isInitialized()||!S.active)return J.return();S.setActive(!1);S4u(S);(P=!!Y&&kcY(S,Y))&&S.isSingleOptionSurveyActive&&_.nb(S.miniplayerEl,"yt-show-watch-page-survey",[S.isSingleOptionSurveyActive]);return _.q(J,Wpo(S),2)}if(J.nextAddress!=3){OSd(S,!1);S.isReadyToResume=!1;S.watchResponse=void 0;S.updateMiniplayerData(void 0);S.shortsPipMode&&(S.shortsPipMode=!1,_.Na().dispatch(gxu(S.shortsPipMode)),If_(S.pipController),
(u=S.player)==null||u.setInternalSize(NaN,NaN));S.watchPipMode&&(S.watchPipMode=!1,If_(S.pipController));(W=S.watchWhileMode)&&_.NXY(S,!1);S.removePlayerListeners();var c=_.E().resolve(_.D3);c.removeEventListener("yt-navigate",_.up(S,S.onPlaylistNavigate));c.removeEventListener("yt-playlist-data-updated",_.up(S,S.JSC$16333_onPlaylistDataUpdated));_.nd().currentEndpoint=null;_.jR(S.miniplayerEl,"yt-miniplayer-endpoint-changed");S.playerElement=null;dcu();return S.shortsPipMode||S.watchPipMode?J.jumpTo(3):
_.q(J,_.J6(S.miniplayerEl,_.f("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[P,W]),3)}(m=S.player)==null||m.setInternalSize(NaN,NaN);S.player=null;_.Yt(J)})};
var Wpo=function(Y){var S;return _.B(function(P){S=_.E().resolve(_.Ag);return Y.shortsPipMode?_.q(P,S.movePlayerToShorts(Y.playerElement),0):_.q(P,S.movePlayerToWatch(Y.playerElement),0)})};
b5.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16333_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
b5.prototype.setActive=function(Y){this.active=Y;this.isSingleOptionSurveyActive?_.nb(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.nb(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Na().dispatch(_.WT({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.NXY=function(Y,S){Y.watchWhileMode=S;_.TG(Y,{watchWhile:S})};
OSd=function(Y,S){if(!Y4u(Y))if(Y.shortsPipMode||Y.watchPipMode){var P;(P=Y.player)==null||P.setDocumentPictureInPicture(S)}else{var u;(u=Y.player)==null||u.setMinimized(S)}};
Y4u=function(Y){return Y.watchWhileMode&&_.f("kevlar_watch_while_counterfactual")};
_.qf=function(Y){var S;return _.B(function(P){switch(P.nextAddress){case 1:if(!Y.isInitialized())return P.return();_.ND(P,2);return _.q(P,Y.miniplayerFetchRequest,4);case 4:_.tc(P,3);break;case 2:_.O4(P);case 3:Y.watchResponse&&Y.miniplayerData&&Y.miniplayerData.watchEndpoint?(S={url:Y.watchResponse.url,endpoint:Y.miniplayerData.watchEndpoint,data:Y.watchResponse,miniplayer:!0},_.ms(Y.miniplayerEl,"yt-navigate-cache",S)):Y.miniplayerData&&Y.miniplayerData.watchEndpoint&&_.ms(Y.miniplayerEl,"yt-navigate",
{endpoint:Y.miniplayerData.watchEndpoint}),_.Yt(P)}})};
x66=function(Y,S,P){var u,W,m,J;return _.B(function(c){if(c.nextAddress==1){if(kcY(Y,S))return c.return();_.nd().currentEndpoint=S;_.jR(Y.miniplayerEl,"yt-miniplayer-endpoint-changed");_.jR(Y.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.nd().isVideoPlaying=!1;u={clientParams:{miniplayer:!0,autoSaveToQueue:!P}};W=new sT3(function(){return Y.getPlayerElement()},u,{layer:3,
parentLayer:0},void 0,Y.readyToResumeVe);m=function(C){var x,b,T=Object.assign({},(x=C.playerResponse)==null?void 0:(b=x.playerConfig)==null?void 0:b.playbackStartConfig,{startPaused:!0}),K;P&&((K=C.playerResponse)==null?0:K.playerConfig)&&(C.playerResponse.playerConfig.playbackStartConfig=T);W.processChunk({endpoint:S,data:C})};
S4u(Y);Y.miniplayerFetchRequest=PB5(Y,S,m);_.ND(c,2);return _.q(c,Y.miniplayerFetchRequest,4)}if(c.nextAddress!=2)return J=c.yieldResult,um1(Y,J),_.tc(c,0);_.O4(c);_.Yt(c)})};
S4u=function(Y){Y.miniplayerFetchRequest&&(Y.miniplayerFetchRequest.cancel&&Y.miniplayerFetchRequest.cancel("Active request obsolete"),Y.miniplayerFetchRequest=null)};
PB5=function(Y,S,P){var u=_.VV.instance,W,m=(W=_.g(S.commandMetadata,_.Yo))==null?void 0:W.url,J;W=!m||_.f("disable_miniplayer_tempdata")?{}:(J=Hlh(m))!=null?J:{};return i1(u,S,W,window.location.href,"watch",function(c,C){P(C)},function(c){return c!==Y.miniplayerFetchRequest})};
um1=function(Y,S){var P;_.B(function(u){if(!S)return u.return();Y.watchResponse=S;eLY(Y);HSu(Y);P=_.DlK(S.response,S.playerResponse);if(Y.isMiniplayerActive()){S.response&&(Y.playerElement.watchNextData=S.response);var W=_.RY.getValueByKeys.apply(_.RY,[S].concat(_.cz(Qri)));_.RY.getValueByKeys.apply(_.RY,[S].concat(_.cz(H$i)))&&W&&_.E().resolve(_.D3).setAutoplayRenderer(W);if(W)if(_.f("kevlar_is_pupi_enabled")){var m,J,c,C,x,b=((m=S.response)==null?0:(J=m.playerOverlays)==null?0:(c=J.playerOverlayRenderer)==
null?0:(C=c.autonavToggle)==null?0:(x=C.autoplaySwitchButtonRenderer)==null?0:x.enabled)?2:1;_.Af.getInstance().setState(b,!1,!1)}else m=Jzh()?2:1,(b=Y.player)==null||b.setAutonavState(m);Y.updateMiniplayerData(P);_.VcI(Y)}_.Yt(u)})};
HSu=function(Y){var S,P,u=(S=Y.watchResponse)==null?void 0:(P=S.playerResponse)==null?void 0:P.playabilityStatus,W;S=u==null?void 0:(W=u.miniplayer)==null?void 0:W.miniplayerRenderer;(S==null?void 0:S.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&S.minimizedEndpoint&&_.Bu(Y.miniplayerEl,[S.minimizedEndpoint]);_.TG(Y,{miniplayerRenderer:S,playabilityStatus:u})};
b5.prototype.openToast=function(Y,S){_.TG(this,{toastData:{data:Y,label:S}})};
_.TG=function(Y,S){var P=Y.miniplayerEl,u;for(u in S)P[u]=S[u];(0,Y.miniplayerPropSignalMap[1])(S)};
b5.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var Y;return this.playerElement?this.playerElement:(Y=_.I(this.miniplayerEl).querySelector("#player-container"))==null?void 0:Y.firstElementChild};
var Mcu=function(Y,S){S=S===void 0?!1:S;var P,u,W,m,J,c,C;return _.B(function(x){if(x.nextAddress==1){P=navigator.userActivation.isActive||S;if(!P)return x.return(!1);u=zE1(Y);W=u.width;m=u.height;return _.q(x,Y.pipController.openWindow({width:W,height:m}),2)}J=x.yieldResult;c=Y.pipController.getWindow();if(!c||!J)return x.return(!1);c.document.body.style.overflow="hidden";C=E$h(c);af1(Y.pipController,function(){mDY(Y);C()});
return x.return(!0)})},zE1=function(Y){var S=_.nd().shortsPipActivation,P,u;
Y=S?.5625:(u=(P=Y.player)==null?void 0:P.getVideoAspectRatio())!=null?u:16/9;P=Math.min(window.innerWidth,window.innerHeight)/2;S=S?0:76;return Y>1?new _.SZ(P,S+P/Y):new _.SZ(P*Y,S+P)},mDY=function(Y){var S;
_.B(function(P){S=_.E().resolve(_.Ag);return S.isOnWatch()&&Y.watchPipMode||S.isOnShorts()&&Y.shortsPipMode?_.q(P,Y.deactivate(),0):Y.miniplayerToPipMode?_.q(P,QNu(Y),0):Y.watchPipMode?_.q(P,_.qf(Y),0):P.jumpTo(0)})};
b5.prototype.pictureInPictureEnabled=function(){return!!window.documentPictureInPicture&&_.Df()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.y6.Object.defineProperties(b5.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
b5[Md]=[_.L$c,uN3];var nUd="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(" "),
j9u="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var JwI=null;var BE1={},cw6=(BE1.initialized={priority:10,callback:function(Y){var S=_.E();S.addProvider({provide:mZ3,useClass:v_I});S.addProvider({provide:_.hUI,useFactory:function(){return new nSd}});
S.addProvider({provide:Jl,useValue:_.X3("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});S.addProvider({provide:ATt,useValue:5184E6});S.addProvider({provide:P$s,useValue:_.vs()});S.addProvider({provide:Ca_,useClass:Rti});S.addProvider({provide:vM,useClass:vM});S.addProvider({provide:_.HX,useFactory:function(){return rdd.promise}});
S.addProvider({provide:_.h4J,useFactory:function(){return _.GXS.promise}});
S.addProvider({provide:XC$,useValue:function(){var c;return((c=_.Q5())==null?void 0:c.getPlayer())||null}});
var P={};S.addProvider((P.provide=_.XN,P.useFactory=function(c,C){return function(){return MUU(c,C)}},P[Md]=[Jl,
ATt],P));P={};S.addProvider((P.provide=_.VG,P.useClass=aLh,P[Md]=[Jl,ATt],P));P={};S.addProvider((P.provide=_.F6E,P.useClass=FYs,P[Md]=[_.VG],P));S.addProvider({provide:YC,useFactory:_.Na});S.addProvider({provide:Jk,useFactory:_.Na});S.addProvider({provide:xUB,useFactory:_.Na});S.addProvider({provide:HC_,useFactory:_.Na});S.addProvider({provide:_.Ee,useFactory:_.Na});S.addProvider({provide:AN,useValue:_.qa});S.addProvider({provide:fsd,useClass:mTh});S.addProvider({provide:$Bm,useClass:g6S});S.addProvider({provide:rj,
useClass:rj});S.addProvider({provide:bR,useClass:bR});S.addProvider({provide:Eo,useClass:Eo});S.addProvider({provide:gj,useClass:gj});S.addProvider({provide:Lg,useClass:Lg});S.addProvider({provide:es,useClass:es});S.addProvider({provide:Q$,useClass:Q$});S.addProvider({provide:b9_,useValue:Z1B});S.addProvider({provide:_.jG,useFactory:_.BF});S.addProvider({provide:Z1,useFactory:_.$o});P={};S.addProvider((P.provide=q1K,P.useFactory=function(c){return function(C){var x=x===void 0?{}:x;var b,T,K=(T=_.g((b=
C.endpoint)==null?void 0:b.commandMetadata,_.Yo))==null?void 0:T.rootVe;if(K){var G,v;if(b=C.previousCsn||((v=_.g((G=C.endpoint)==null?void 0:G.commandMetadata,RDJ))==null?void 0:v.parentCsn)){var a=a===void 0?{}:a;if(b!==_.pM(a.layer)||K!==PGa(a.layer))nM9(b,a.cttAuthInfo,a.layer||0),Yx1(b,a.layer||0),G=a.layer||0,_.lk(SxU(G===void 0?0:G),K);x.parentCsn=b}C.endpoint&&b?gR3(c,C.endpoint,x):_.Ow(c,K,void 0,x);var w;((w=C.response)==null?0:w.trackingParams)&&c.graftServerVe(C.response.trackingParams);
var F;((F=C.playerResponse)==null?0:F.trackingParams)&&c.graftServerVe(C.playerResponse.trackingParams);var U;((U=C.reelWatchSequenceResponse)==null?0:U.trackingParams)&&c.graftServerVe(C.reelWatchSequenceResponse.trackingParams)}}},P[Md]=[_.jG],P));
P={};S.addProvider((P.provide=T16,P.useClass=b81,P[Md]=[AN,_.Ee],P));P={};S.addProvider((P.provide=NX,P.useClass=NX,P[Md]=[_.HX,_.Ee],P));P={};S.addProvider((P.provide=Qk,P.useClass=Qk,P[Md]=[Jk,_.uY],P));S.addProvider({provide:_.ruI,useClass:paX});P={};S.addProvider((P.provide=_.Rr,P.useClass=vYB,P[Md]=[_.ruI],P));S.addProvider({provide:_.xx,useClass:eE});S.addProvider({provide:_.bn,useClass:Ho});P={};S.addProvider((P.provide=_.sT,P.useClass=wa5,P[Md]=[_.sT],P));_.f("web_enable_voting_animation")&&
S.addProvider({provide:_.kb,useClass:xBi});S.addProvider({provide:zP,useClass:zP});S.addProvider({provide:c1,useClass:c1});S.addProvider({provide:ET,useClass:Vk});P={};S.addProvider((P.provide=$C,P.useClass=$C,P[Md]=[_.xx,ET],P));_.f("web_enable_feedback_endpoint_resolver")&&(P={},S.addProvider((P.provide=S$,P.useClass=S$,P[Md]=[YC,Or],P)),S.addProvider({provide:Or,useClass:dBi}));_.f("web_enable_feedback_endpoint_resolver_batch_2")&&(P={},S.addProvider((P.provide=uP,P.useClass=uP,P[Md]=[YC],P)),
P={},S.addProvider((P.provide=P1,P.useClass=P1,P[Md]=[Or],P)));P={};S.addProvider((P.provide=fU,P.useClass=fU,P[Md]=[_.bn,ET],P));P={};S.addProvider((P.provide=xC,P.useClass=xC,P[Md]=[_.bn],P));P={};S.addProvider((P.provide=g3,P.useClass=g3,P[Md]=[_.fV,_.Rr],P));P={};S.addProvider((P.provide=KU,P.useClass=KU,P[Md]=[_.fV,_.jG],P));S.addProvider({provide:QS,useClass:QS});P={};S.addProvider((P.provide=Xb,P.useClass=Xb,P[Md]=[YC],P));P={};S.addProvider((P.provide=za,P.useClass=za,P[Md]=[YC],P));P={};
S.addProvider((P.provide=mr,P.useClass=mr,P[Md]=[_.fV,YC],P));P={};S.addProvider((P.provide=n3,P.useClass=n3,P[Md]=[YC],P));P={};S.addProvider((P.provide=js,P.useClass=js,P[Md]=[YC],P));P={};S.addProvider((P.provide=bP,P.useClass=bP,P[Md]=[_.Rr],P));P={};S.addProvider((P.provide=H1,P.useClass=H1,P[Md]=[_.jG],P));P={};S.addProvider((P.provide=PD,P.useClass=PD,P[Md]=[Al],P));P={};S.addProvider((P.provide=ut,P.useClass=ut,P[Md]=[Al],P));S.addProvider({provide:OT,useClass:OT});S.addProvider({provide:YK,
useClass:YK});S.addProvider({provide:Nu,useClass:Nu});P={};S.addProvider((P.provide=r3,P.useClass=r3,P[Md]=[_.Rr,_.uY],P));S.addProvider({provide:j$,useClass:j$});P={};S.addProvider((P.provide=TP,P.useClass=TP,P[Md]=[_.fV,_.Rr],P));S.addProvider({provide:CU,useClass:CU});P={};S.addProvider((P.provide=d3,P.useClass=d3,P[Md]=[YC,_.fV,_.sT],P));P={};S.addProvider((P.provide=pU,P.useClass=pU,P[Md]=[_.fV,_.uY],P));S.addProvider({provide:j0f,useValue:jHu});S.addProvider({provide:$mf,useValue:nPK});S.addProvider({provide:Fb,
useClass:Fb});P={};S.addProvider((P.provide=w3,P.useClass=w3,P[Md]=[YC],P));P={};S.addProvider((P.provide=lP,P.useClass=lP,P[Md]=[_.kb,_.uY],P));P={};S.addProvider((P.provide=W1,P.useClass=W1,P[Md]=[_.uY],P));S.addProvider({provide:eI,useFactory:function(){return new eI(_.Na())}});
S.addProvider({provide:XGK,useFactory:_.sR.getInstance});P={};S.addProvider((P.provide=B1,P.useClass=B1,P[Md]=[Jl,XGK,_.uY],P));S.addProvider({provide:m3,useClass:m3});S.addProvider({provide:Mj,useClass:Mj});S.addProvider({provide:Nj,useClass:Nj});S.addProvider({provide:_.yM,useClass:_.yM});S.addProvider({provide:cD,useClass:cD});P={};S.addProvider((P.provide=IU,P.useClass=IU,P[Md]=[Jk],P));P={};S.addProvider((P.provide=aU,P.useClass=aU,P[Md]=[_.uY],P));_.f("web_enable_prefetching_videos_on_home")&&
(S.addProvider({provide:Uo,useClass:Uo}),S.addProvider({provide:jl,useClass:jl}));P={};S.addProvider((P.provide=BD,P.useClass=BD,P[Md]=[_.uY],P));S.addProvider({provide:H8,useClass:H8});P={};S.addProvider((P.provide=kC,P.useClass=kC,P[Md]=[_.fV,_.uY],P));P={};S.addProvider((P.provide=VM,P.useClass=VM,P[Md]=[_.uY],P));S.addProvider({provide:JQ,useClass:JQ});S.addProvider({provide:v1,useClass:v1});P={};S.addProvider((P.provide=hl,P.useClass=hl,P[Md]=[Jk,_.uY],P));P={};S.addProvider((P.provide=RE,P.useClass=
RE,P[Md]=[Jk,_.uY,_.fV],P));P={};S.addProvider((P.provide=xK,P.useClass=xK,P[Md]=[_.uY],P));P={};S.addProvider((P.provide=qk,P.useClass=qk,P[Md]=[_.uY,_.fV],P));P={};S.addProvider((P.provide=LU,P.useClass=LU,P[Md]=[_.HX],P));P={};S.addProvider((P.provide=D1,P.useClass=D1,P[Md]=[_.HX],P));S.addProvider({provide:tl,useClass:tl});S.addProvider({provide:UT,useClass:UT});S.addProvider({provide:WD,useClass:WD});S.addProvider({provide:Mu,useClass:Mu});S.addProvider({provide:oU,useClass:oU});S.addProvider({provide:qu,
useClass:qu});S.addProvider({provide:iP,useClass:iP});_.f("kevlar_enable_mss_lazy_load")&&S.addProvider({provide:_.Zd,useClass:zXY});S.addProvider({provide:_.Nn,useClass:Y0});S.addProvider({provide:tf,useFactory:function(){return _.Ap.getInstance()}});
S.addProvider({provide:q9I,useFactory:JtX});S.addProvider({provide:Al,useFactory:function(){return _.bA.getInstance()}});
S.addProvider({provide:b$s,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});P={};S.addProvider((P.provide=_.k8,P.useClass=_.k8,P[Md]=[_.HX,_.uY,_.jG,q9I,Al,tf,b$s,AN],P));S.addProvider({provide:_.Pb,useClass:oj6});S.addProvider({provide:_.QpS,useClass:UB3});P={};S.addProvider((P.provide=RU,P.useClass=RU,P[Md]=[_.QpS],P));P={};S.addProvider((P.provide=_.MX,P.useFactory=function(c){return c.upliftCompletionResolver.promise},P[Md]=[T16],P));
P=_.Z4("IS_SHELL_LOAD")?"aa":"eocs";var u=_.Z4("IS_SHELL_LOAD")?3:2;_.aQ().parkOrScheduleJob(function(){EYI()},u,P);
_.aQ().parkOrScheduleJob(function(){_.E().resolve(NX).start()},2,"eocs");
_.aQ().parkOrScheduleJob(function(){RhX()},2,"eocs");
_.aQ().parkOrScheduleJob(function(){_.E().resolve(Qk).start()},2,"eocs");
_.f("kevlar_debug_data_app_registration_ks")||Jau();S.addProvider({provide:_.En,useValue:new D_6(Y.root)});S.addProvider({provide:oz,useValue:new GRh});S.addProvider({provide:_.d_U,useValue:new Fnt(Y.root)});S.addProvider({provide:_.ER,useValue:new sZf});S.addProvider({provide:_.OG,useClass:mE});S.addProvider({provide:_.L$c,useClass:Oo});_.f("kevlar_network_sli_killswitch")||S.addProvider({provide:wt1,useValue:PFi});S.addProvider({provide:g_Y,useFactory:ytE});_.f("web_bind_fetch")&&(P={},S.addProvider((P.provide=
$Lu,P.useFactory=Nqh,P[Md]=[_.PQ(g_Y)],P)));_.f("web_bind_parse")&&(P={},S.addProvider((P.provide=rmX,P.useFactory=HyK,P[Md]=[_.PQ(g_Y)],P)));_.f("web_bind_window_request")&&(P={},S.addProvider((P.provide=G3u,P.useFactory=VA$,P[Md]=[_.PQ(g_Y)],P)));P={};S.addProvider((P.provide=mos,P.useFactory=BnY,P[Md]=[_.MX,YC,_.XN],P));P={};S.addProvider((P.provide=zPS,P.useClass=bt,P[Md]=[mos],P));S.addProvider({provide:gv6,useClass:Tlm});S.addProvider({provide:S06,useClass:u9S});P=[].concat(_.cz(lN));_.f("web_continuation_response_processing")&&
P.push(_.vX);P.push(wps);_.f("enable_share_panel_navigation_logging_fix_on_web")&&P.push(_.J7L);S.addProvider({provide:vKJ,useValue:P});S.addProvider({provide:o$K,useClass:Y0S});S.addProvider({provide:dLj,useClass:ptc});P={};S.addProvider((P.provide=lmK,P.useClass=k7d,P[Md]=[Jk],P));_.wc.addLowPriorityJob(function(){pIY()});
P={};S.addProvider((P.provide=Sii,P.useFactory=function(c){return function(C){var x,b=(x=_.g(C.commandMetadata,_.Yo))==null?void 0:x.url;if(!b)throw new _.$2("No URL for PBJ Command",C);b=zTX(b,{pbj:"1"});x=rJJ(b,{})||{};x=Object.assign({},x,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.X3("STS").toString()});C=_.R4({command:JSON.stringify(C),session_token:_.X3("XSRF_TOKEN")});return c.fetch(b,{method:"POST",headers:x,body:C})}},P[Md]=[dLj],P));
P=[];P.push(S.resolve(S06));u={};u=(u.client_location=_.sR.getInstance(),u.consistency=_.qvh(),u.entities=S.resolve($Bm),u.response_received_commands=S.resolve(o$K),u.store=S.resolve(_.F6E),u.tokens=S.resolve(S06),u);if(_.f("web_shorts_prefetch_service_enabled")){var W=new s26(S.resolve(_.VG));u.shorts_prefetch=W}u.adblock_detection=S.resolve(lmK);S.addProvider({provide:_.kF,useClass:_.kF});W=S.resolve(b9_);var m=[];if(_.f("PremiumClientSharedConfig__enable_att_context_processor")||_.f("enable_att_for_transcript_request_on_web_client"))S.addProvider({provide:mB3,
useClass:ufU}),m.push(S.resolve(mB3));if(_.f("owl_pl_await")){var J={};S.addProvider((J.provide=xL1,J.useFactory=function(c){return new q6o(c)},J[Md]=[_.kF],J));
m.push(S.resolve(xL1))}jy3(W,S.resolve(dLj),S.resolve(fsd),u,S.resolve(_.VG),P,m,S.resolve(zPS),S.resolve(gv6));S.addProvider({provide:_.fV,useValue:_.pR.instance});_.f("start_client_gcf")&&S.addProvider({provide:vK,useValue:aNt()});S.addProvider({provide:gY6,useFactory:function(){return new gY6(_.E().resolve(_.kF),_.bA.getInstance())}});
_.aQ().parkOrScheduleJob(function(){$UX()},1,"eocs");
P={};S.addProvider((P.provide=yk,P.useClass=yk,P[Md]=[_.XN,_.fV],P));S.addProvider({provide:_.Xa5,useFactory:_.ne.getInstance});_.aQ().parkOrScheduleJob(function(){_.E().resolve(yk).refresh()},0,"eocs");
PC_(Z1B.watchEndpointMap||{},W.reelWatchEndpointMap||{},Y.injector.resolve(_.fV));S.addProvider({provide:rx,useValue:_.VV.instance});_.f("web_prs_testing_mode_killswitch")||(P=new _.Nq(window.location.href),P.JSC$7905_queryData_.toString()!==""&&P.JSC$7905_queryData_.get("force_ad_encrypted")&&(_.VV.instance.forceWebFEForAdsTesting=!0));_.f("kevlar_signal_collection_killswitch")||(P={},S.addProvider((P.provide=cuo,P.useClass=cuo,P[Md]=[Jl,Z1],P)),_.aQ().parkOrScheduleJob(function(){_.E().resolve(cuo).record()},
1,"eocs"));
_.f("web_debug_handler_registration_killswitch")||_.aQ().parkOrScheduleJob(function(){njf("DOWNLOAD_PES",jbY);_.f("offline_client_state_export_ks")||njf("OFFLINE_CLIENT_STATE",zrE)},0,"eocs");
_.f("kevlar_prevent_polymer_dynamic_font_load")&&_.aQ().parkOrScheduleJob(function(){var c=[_.kt(MSX),_.kt(ymI)];c=_.n(c);for(var C=c.next();!C.done;C=c.next()){C=C.value;var x=document.createElement("link");_.wE(x,C,"stylesheet");document.head.appendChild(x)}},1,"eocs");
P=Y.injector.resolve(_.fV);_.z8_.instance=new _.z8_(P);QCU(V8h(new WSs(P)));P={};Y.injector.addProvider((P.provide=Of,P.useFactory=function(c){(c=c==null?void 0:c.getCurrentPage())?c=c.visibilityObserver:(JwI||(JwI=RwU()),c=JwI);return c},P[Md]=[_.PQ(_.Ag)],P.skipCache=!0,P));
S.addProvider({provide:_.l1,useClass:b5});S.addProvider({provide:zX,useClass:yaJ});S.addProvider({provide:Nj8,useValue:cSY});Y.injector.addProvider({provide:Yp6,useValue:v7S});S.addProvider({provide:Ar3,useValue:nzJ});S.addProvider({provide:_.F5,useValue:Ezu});Y=S.addProvider;i8_||(i8_=new Z8I);Y.call(S,{provide:_.oYX,useValue:i8_});S.addProvider({provide:_.d8,useValue:_.X3("HTML_DIR")==="rtl"?"rtl":"ltr"});S.addProvider({provide:GkL,useClass:FS_});S.addProvider({provide:_.WF,useClass:Sl});_.E().addProvider({provide:v6h,
useValue:nUd.concat(j9u)});S.addProvider({provide:_.u5,useClass:_.u5});S.addProvider({provide:_.Am1,useValue:new tSc});S.addProvider({provide:Dxh,useClass:E6m});S.addProvider({provide:yS,useClass:yS});S.addProvider({provide:VS,useClass:VS});Y={};S.addProvider((Y.provide=GP,Y.useClass=GP,Y[Md]=[_.fV,_.Rr],Y));S.addProvider({provide:C3,useClass:C3});S.addProvider({provide:M93,useClass:sh6});S.addProvider({provide:Ss,useClass:Ss});S.addProvider({provide:wcs,useValue:b4u});S.addProvider({provide:_.hN,
useClass:fO_});_.f("enable_payments_purchase_manager")&&S.addProvider({provide:B93,useClass:n6i});S.addProvider({provide:k3Z,useFactory:function(){return function(c){return _.Qs5(c)}}});
S.addProvider({provide:_.e86,useClass:Oqf});Y={};S.addProvider((Y.provide=J4,Y.useClass=J4,Y[Md]=[_.e86],Y));S.addProvider({provide:e$,useClass:e$});S.addProvider({provide:tAs,useValue:x_s});S.addProvider({provide:gus,useValue:MKB});S.addProvider({provide:K_Y,useClass:F$o});S.addProvider({provide:UI6,useValue:AjX});Y={};S.addProvider((Y.provide=_.QuB,Y.useClass=k1j,Y[Md]=[UI6],Y));_.f("web_ephemeral_actions")&&(Y={},S.addProvider((Y.provide=_.zG,Y.useClass=Wn,Y[Md]=[_.Ee,_.OG],Y)));if(_.f("web_explore_hub_on_hover")||
_.f("web_client_explore_hub_on_hover"))Y={},S.addProvider((Y.provide=nU,Y.useClass=nU,Y[Md]=[_.fV,tf],Y));S.addProvider({provide:Uj9,useValue:dj1})}},BE1);var CB5={},q4Z=(CB5.initialized={priority:10,callback:function(){if(!Lh1){LM9();Oya("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.BQ(_.gP(Oya,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.f("log_heartbeat_with_lifecycles")){var Y={};o5.instance||(o5.instance=new o5);o5.instance.install((Y.document_visible={callback:Y1K,priority:10},Y.document_hidden={callback:Y1K,priority:10},Y))}else _.YG(document,"visibilitychange",Y1K);Lh1=!0}(Y=_.pM())&&Y!=="UNDEFINED_CSN"&&ek8(Y)}},CB5);var REj={},xD6=(REj.initialized={callback:function(Y){var S=_.TI(232091),P=Y.injector.resolve(_.jG);_.Ym(P,S);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?fma()&&_.Pp(P,S):(Y=Y.injector.resolve(k3Z)("refresh_detector"))&&(Y.get("first_tab_load")?_.Pp(P,S):Y.set("first_tab_load","1"))}},REj);var bhI={},TEc=(bhI.initialized={priority:10,callback:ImU},bhI);var Kpj={},EU5=(Kpj.rendering={priority:8,callback:am1},Kpj);var fio={},gUZ=(fio.rendering={priority:10,callback:A0X},fio.rendered={callback:t9E},fio),$DI={},rwu=($DI.rendering={callback:A0X},$DI.rendered={callback:t9E},$DI);var GT5=!1,hE5={},vUI=(hE5.initialized={priority:10,callback:function(){GT5||(z_8({didPatch:function(Y){Y.el&&Ufa(Y.el,Y.props)},
didUnmount:function(Y){tlf(Y.el)}}),GT5=!0)}},hE5);var DD6=/^\/shorts\/?$/;_.lk("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(_.f("kevlar_enable_mss")){_.OJY(new RjS);var Ii1=!0,aiX,Ke;Ii1=Ii1===void 0?!1:Ii1;aiX=aiX===void 0?!1:aiX;Ke=Ke===void 0?{}:Ke;var LpB=Ke.cssRowKey||"",wx6=Ke.combinedSignature||"";!LpB&&window&&window._F_cssRowKey&&(LpB=window._F_cssRowKey,!wx6&&window._F_combinedSignature&&(wx6=window._F_combinedSignature));if(LpB&&typeof window._F_installCss!=="function")throw Error("vd");var pxI=Ke.loaderClass||_.FP,FpY,s9u=sj$("base-js");FpY=_.YU(s9u);var EA=new pxI(FpY,LpB,wx6,Ii1,aiX);Ke.useCors&&(EA.useCors_=
Ke.useCors);Ke.corsMode&&(EA.corsMode_=Ke.corsMode);Ke.urlMaxLength&&(EA.urlMaxLength=Ke.urlMaxLength);Ke.fetchPriority&&(EA.fetchPriority=Ke.fetchPriority);var dD1=$S();dD1.JSC$7927_loader_=EA;dD1.setBatchModeEnabled(!0)}
(function(){var Y=document.querySelector("ytd-app");if(!Y)throw Error("Gj");Y=new mk({root:Y,injector:_.E()});Y.install(q4Z);var S={};Y.install((S.initialized={priority:10,callback:zKJ},S));_.f("wp_lat_b")&&(S={},Y.install((S.initialized={priority:10,callback:function(){Qb9()}},S)));
S={};Y.install((S.rendered={priority:0,callback:PlJ},S));S={};Y.install((S.rendered={priority:0,callback:function(){_.wc.addLowPriorityJob(function(){_.spS>1&&(NC8(),Yv8())},4E4)}},S));
Y.install(EcX);Y.install(xD6);Y.install(vUI);R_h=Dzs;u_8=zFu;EGh=YKX;b_h=SKh;_.f("ytwiz_enable_debug_component_props")&&h_a();Y.install(DII);Y.install(qdu);Y.install(TZB);Y.install(W$B);Y.install(Juo);Y.install(hXd);Y.install(cw6);_.f("kevlar_enable_mss_lazy_load")&&Y.install(TEc);Y.install(xI6);if(!_.Z4("IS_SHELL_LOAD")||_.f("kevlar_fetch_initial_data_promise_client")||_.f("sw_nav_preload_pbj")){var P=_.Cz(window.location.href);S=P&&P==="/watch";P=P&&P.match(DD6);S?Y.install(rwu):P?Y.install(EU5):
Y.install(gUZ)}else Y.install(BZY);Y.install(gc1);_.f("web_enable_prefetching_videos_on_home")&&Y.install(w61);_.f("start_client_gcf")&&Y.install(as6);Y.install(O9J);(new ZxJ).increment("INSTALLED");Y.install(aI6);Y.install(ncB);Y.transition("initialized");d59()})();
_._ModuleManager_initialize=function(Y,S){if(!_.KN){if(!_.fN)return;_.OJY(_.fN())}_.KN.setAllModuleInfoString(Y,S)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/nmfa2d:h,n,o/syl:7,o/sym:g,h,q/CF909:n,r/Tm0L3c:r/L3n37:g,h,n,q/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','syl','syg','syf','syj','sym','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.GG=function(Y,S,P,u,W){var m={};S&&(m[S]=P);u?m.errorType=u:W&&(m.errorReason=W);_.L_(Y,m);_.w6()};
_.hQ=function(Y,S){_.eVK(Y,_.kW(S))};
_.vn=function(Y){var S=_.aQ();return _.P76(S,Y,1)};
_.Kc({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var Y=this.query;Y&&(this.full||Y[0]==="("||(Y="("+Y+")"),this._mq=window.matchMedia(Y),this._add(),this.queryHandler(this._mq))},
queryHandler:function(Y){this._setQueryMatches(Y.matches)}});var M25;var yw5;var NEZ=function(){};
_.z=NEZ.prototype;_.z.addOwnKeyBinding=function(){};
_.z.removeOwnKeyBindings=function(){};
_.z.keyboardEventMatchesKeys=function(){};
_.z._collectKeyBindings=function(){};
_.z._prepKeyBindings=function(){};
_.z._addKeyBinding=function(){};
_.z._resetKeyEventListeners=function(){};
_.z._listenKeyEventListeners=function(){};
_.z._unlistenKeyEventListeners=function(){};
_.z._onKeyBindingEvent=function(){};
_.z._triggerKeyHandler=function(){};
_.z._tapHandler=function(){};
_.z._focusChanged=function(){};
_.z._detectKeyboardFocus=function(){};
_.z._userActivate=function(){};
_.z._upHandler=function(){};
_.z._spaceKeyDownHandler=function(){};
_.z._spaceKeyUpHandler=function(){};
_.z._asyncClick=function(){};
_.z._pressedChanged=function(){};
_.z._ariaActiveAttributeChanged=function(){};
_.z._activeChanged=function(){};
_.z._controlStateChanged=function(){};
_.z._changedButtonState=function(){};
_.z._focusBlurHandler=function(){};
_.z._disabledChanged=function(){};
_.z._changedControlState=function(){};
_.z._downHandler=function(){};
_.z.ensureRipple=function(){};
_.z.getRipple=function(){};
_.z.hasRipple=function(){};
_.z._noinkChanged=function(){};
_.z._focusedChanged=function(){};
_.z._createRipple=function(){};
_.z.registered=function(){};
_.z._invalidChanged=function(){};
_.z.hasValidator=function(){};
_.z.validate=function(){};
_.z._getValidity=function(){};
_.z._requiredChanged=function(){};
_.z._valueChanged=function(){};
_.z._checkedChanged=function(){};
_.z._buttonStateChanged=function(){};
_.z._setPressed=function(){};
_.z._setPointerDown=function(){};
_.z._setReceivedFocusFromKeyboard=function(){};
_.z._setFocused=function(){};
NEZ=_.Kc({is:"tp-yt-paper-radio-button",_template:function(){if(yw5!==void 0)return yw5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;M25===void 0&&(M25=document.createElement("template"));var u=M25;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return yw5=Y},
behaviors:[_.Sst],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(){_.ky(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var Y=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),S=Math.floor(3*Y);S%2!==Y%2&&S++;this.updateStyles({"--paper-radio-button-ink-size":S+"px"})}})}});var Hhd;var V2o;_.Kc({_template:function(){if(V2o!==void 0)return V2o;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Hhd===void 0&&(Hhd=document.createElement("template"));var u=Hhd;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return V2o=Y},
is:"tp-yt-paper-radio-group",behaviors:[_.qnm],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(Y){var S=this._valueToItem(Y);if(!S||!S.hasAttribute("disabled")){if(this.selected){S=this._valueToItem(this.selected);if(this.selected==Y)if(this.allowEmptySelection)Y="";else{S&&(S.checked=!0);return}S&&
(S.checked=!1)}_.sX.select.apply(this,[Y]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(Y){this._focusPrevious();Y.preventDefault();this._activateFocusedItem()},
_onDownKey:function(Y){this._focusNext();Y.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(Y){_.CNf._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(Y){_.CNf._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.sX._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.rp._resetTabindices.apply(this,arguments);this.items.forEach(function(Y){Y.removeAttribute("aria-selected")},this)}});var eEI;_.$s("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Dz=function(){return _.Z.apply(this,arguments)||this};
_.r(Dz,_.Z);_.z=Dz.prototype;_.z.computeHasPrimaryIcon=function(Y){return!(!Y.icon&&!Y.thumbnail)};
_.z.computeHasSecondary=function(Y){return!(!Y.secondaryIcon&&!Y.secondaryNotificationText)};
_.z.computeHideSecondaryString=function(Y){return!_.f("disable_hide_empty_secondary_string")&&!Y.secondaryNotificationText};
_.z.computeCompactLinkStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.z.computeHasFitHeight=function(Y){return Y==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.z.isActiveEndpoint=function(Y){return(Y=this.get("commandMetadata.webCommandMetadata.url",Y))?_.Cz(window.location.href)!=="/account_transfer_channel"&&_.Cz(window.location.href)!=="/gaia_link"&&_.Cz(window.location.href)!=="/channel_switcher"||Y!=="/account"?_.Cz(window.location.href)===Y:!0:!1};
_.z.onTap=function(){var Y;((Y=this.data)==null?0:Y.serviceEndpoint)&&_.Bu(this.hostElement,[this.data.serviceEndpoint])};
Dz.prototype.onTap=Dz.prototype.onTap;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Dz.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.k("design:type",Boolean)],Dz.prototype,"active",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.k("design:type",String)],Dz.prototype,"compactLinkStyle",void 0);
_.Q([_.X({computed:"computeIcon_(data.icon)"}),_.k("design:type",Object)],Dz.prototype,"icon",void 0);_.Q([_.X({computed:"computeIcon_(data.secondaryIcon)"}),_.k("design:type",Object)],Dz.prototype,"secondaryIcon",void 0);_.Q([_.X({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Dz.prototype,"hasSecondary",void 0);_.Q([_.X({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Dz.prototype,"hideSecondaryString",void 0);
_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dz.prototype,"onTap",null);Dz=_.Q([_.t({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],Dz);
_.A(Dz,"ytd-compact-link-renderer",function(){if(eEI!==void 0)return eEI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return eEI=Y},{mode:1});var OhZ;_.$s("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Ig=function(){var Y=_.Z.apply(this,arguments)||this;Y.role="link";Y.tabindex="0";Y.actionMap=_.f("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return Y};
_.r(Ig,_.Z);_.z=Ig.prototype;_.z.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.w2()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.z.getCurrentTheme=function(){return _.pV()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.w2()};
_.z.onThemeSelected=function(Y,S){var P=Y||S?Y:_.LV(),u=(P&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!P&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.BaU(_.Cz(window.location.href));_.rP(0,165,Y);_.rP(0,174,S);this.prefs.save();u&&_.nb(this.hostElement,"yt-dark-mode-toggled-action",[P]);_.nb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.z.onTap=function(){this.data.serviceEndpoint&&_.Bu(this.hostElement,[this.data.serviceEndpoint])};
_.z.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.z.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.z.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Ig.prototype.onTap=Ig.prototype.onTap;Ig.prototype.dataChanged=Ig.prototype.dataChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Ig.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.An),_.k("design:type",Object)],Ig.prototype,"paperItemBehaviors",void 0);_.Q([_.X(),_.k("design:type",Object)],Ig.prototype,"data",void 0);_.Q([_.X({value:function(){return _.$o()}}),
_.k("design:type",_.HO)],Ig.prototype,"prefs",void 0);_.Q([_.X(),_.k("design:type",Object)],Ig.prototype,"label",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Ig.prototype,"role",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Ig.prototype,"tabindex",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ig.prototype,"dataChanged",null);
_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ig.prototype,"onTap",null);Ig=_.Q([_.t({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Ig);
_.A(Ig,"ytd-toggle-theme-compact-link-renderer",function(){if(OhZ!==void 0)return OhZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return OhZ=Y},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Ar=function(Y,S,P){_.oj(_.mKh)(void 0,Y,S,P)};
_.U8=function(Y){return function(S,P){var u=Y||P.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(S,P,{get:function(){var W;return this.$?this.$[u]:(W=_.mm(this))==null?void 0:W.querySelector("#"+u)},
enumerable:!0,configurable:!0})}};_.QC=function(Y){Y=Y===void 0?!1:Y;_.R6.call(this);this.pubSub_=new _.x2(Y);_.Ph(this,this.pubSub_)};
_.PW(_.QC,_.R6);_.QC.prototype.subscribe=function(Y,S,P){return this.isDisposed()?0:this.pubSub_.subscribe(Y,S,P)};
_.QC.prototype.unsubscribe=function(Y,S,P){return this.isDisposed()?!1:this.pubSub_.unsubscribe(Y,S,P)};
_.QC.prototype.unsubscribeByKey=function(Y){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(Y)};
_.QC.prototype.publish=function(Y,S){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var Vsu=function(){_.GG("ypcRedeemFlowStarted")},mP=function(Y){_.GG("ypcRedeemFlowFailed",void 0,void 0,void 0,Y)},ecB=function(Y,S,P){S&&P&&(Y.videos.forEach(function(u){u.videoId===S&&(u.itemId=P)}),Y.recommendedVideos.forEach(function(u){u.videoId===S&&(u.itemId=P)}))};var O3X;var YII;/*

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
*/
_.Kc({_template:function(){if(YII!==void 0)return YII;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;O3X===void 0&&(O3X=document.createElement("template"));var u=O3X;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return YII=Y},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(Y,S){var P=this._resolveSrc(Y);P!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",Y===""||S?this._setLoading(!1):(this._resolvedSrc=P,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var Y=this.$.sizedImgDiv.style,S=this.$.placeholder.style;Y.backgroundSize=S.backgroundSize=this.sizing;Y.backgroundPosition=S.backgroundPosition=this.sizing?this.position:"";Y.backgroundRepeat=S.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(Y){Y=_.We(Y,this.$.baseURIAnchor.href);Y.length>=2&&Y[0]==="/"&&Y[1]!=="/"&&(Y=(location.origin||location.protocol+"//"+location.host)+Y);return Y}});var SI6;var Pz5;_.Kc({_template:function(){if(Pz5!==void 0)return Pz5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;SI6===void 0&&(SI6=document.createElement("template"));var u=SI6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return Pz5=Y},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(Y){return Y?"false":"true"},
_headingChanged:function(Y){var S=this.getAttribute("heading"),P=this.getAttribute("aria-label");typeof P==="string"&&P!==S||this.setAttribute("aria-label",Y)},
_computeHeadingClass:function(Y){return Y?" over-image":""},
_computeAnimated:function(Y){return Y}});var ueu=new _.N("addRendererToItemSectionAction");var W_u;var ny=function(){return _.Z.apply(this,arguments)||this};
_.r(ny,_.Z);ny.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ny.prototype,"rendererBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],ny.prototype,"dismissibleItemBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ny.prototype,"rendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ny.prototype,"data",void 0);ny=_.Q([_.t({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],ny);
_.A(ny,"ytd-comment-history-entry-renderer",function(){if(W_u!==void 0)return W_u;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return W_u=Y},{mode:1});var zG6;_.$s("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.$s("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var jA=function(){return _.Z.apply(this,arguments)||this};
_.r(jA,_.Z);_.z=jA.prototype;_.z.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.onKeyUp=function(Y){if(Y.keyCode===13)this.onTap()};
_.z.onTap=function(){this.data.recordClickEndpoint&&_.E().resolve(_.uY).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var Y=this.data.navigationEndpoint;Y&&_.g(Y,_.GN)&&_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}})};
_.z.readChanged=function(){var Y;_.Vm(this.hostElement,"unread",!((Y=this.data)==null?0:Y.read))};
_.z.dataChanged=function(){this.data&&_.Vm(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.z.computeThumbnailSize=function(){var Y;return((Y=this.data)==null?0:Y.highPriorityNotification)?32:48};
_.z.getEndpointURL=function(Y){return Y&&!_.g(Y,_.GN)?this.componentBehavior.computeHref_(Y):null};
_.z.getEndpointData=function(Y){return Y&&!_.g(Y,_.GN)?Y:null};
jA.prototype.computeThumbnailSize=jA.prototype.computeThumbnailSize;jA.prototype.dataChanged=jA.prototype.dataChanged;jA.prototype.readChanged=jA.prototype.readChanged;jA.prototype.onKeyUp=jA.prototype.onKeyUp;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],jA.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],jA.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],jA.prototype,"data",void 0);_.Q([_.X({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.k("design:type",Number)],jA.prototype,"thumbnailSize",void 0);_.Q([_.WZ("keyup"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],jA.prototype,"onKeyUp",null);
_.Q([_.zY("data.read"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jA.prototype,"readChanged",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jA.prototype,"dataChanged",null);_.Q([_.zY("data.highPriorityNotification"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jA.prototype,"computeThumbnailSize",null);
jA=_.Q([_.t({is:"ytd-notification-renderer",disableElementRegistration:!0})],jA);
_.A(jA,"ytd-notification-renderer",function(){if(zG6!==void 0)return zG6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return zG6=Y},{mode:1});var mNZ;var Jt=function(){return _.Z.apply(this,arguments)||this};
_.r(Jt,_.Z);Jt.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"}}}};
Jt.prototype.computeActionButtonClass=function(Y){return!Y.actionButtons||Y.actionButtons.length<=1?"single-button":Y.description?"vertical-buttons":"horizontal-buttons"};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Jt.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Jt.prototype,"data",void 0);Jt=_.Q([_.t({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Jt);
_.A(Jt,"ytd-playlist-show-metadata-renderer",function(){if(mNZ!==void 0)return mNZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return mNZ=Y},{mode:1});var njI;_.$s("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var B2=function(){return _.Z.apply(this,arguments)||this};
_.r(B2,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],B2.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],B2.prototype,"data",void 0);B2=_.Q([_.t({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],B2);
_.A(B2,"ytd-purchase-item-renderer",function(){if(njI!==void 0)return njI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return njI=Y},{mode:1});var jcj;var Jaj={};Jaj.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(Y){if(Y)return Y.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(Y){if(Y==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.$s("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var c2=function(){return _.Z.apply(this,arguments)||this};
_.r(c2,_.Z);c2.prototype.onYtNavigate=function(Y){var S=this.openPopupBehavior.getNavigationEndpointPopupAction(Y.detail.endpoint);S&&(Y.stopPropagation(),this.openPopupBehavior.openPopup(S))};
c2.prototype.onYtNavigate=c2.prototype.onYtNavigate;_.Q([_.p(Jaj.YtSimpleTextSectionBehavior),_.k("design:type",Object)],c2.prototype,"ytSimpleTextSectionBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],c2.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],c2.prototype,"openPopupBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],c2.prototype,"data",void 0);
_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],c2.prototype,"onYtNavigate",null);c2=_.Q([_.t({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],c2);
_.A(c2,"ytd-simple-text-section-renderer",function(){if(jcj!==void 0)return jcj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return jcj=Y},{mode:1});var BYI;_.$s("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Cy=function(){return _.Z.apply(this,arguments)||this};
_.r(Cy,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Cy.prototype,"data",void 0);Cy=_.Q([_.t({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],Cy);
_.A(Cy,"ytd-unlimited-page-feature-info-renderer",function(){if(BYI!==void 0)return BYI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return BYI=Y},{mode:1});var ca1;var Cz6;var q5=function(){return _.Z.apply(this,arguments)||this};
_.r(q5,_.Z);q5.prototype.dataChanged=function(){if(this.data){var Y=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);Y&&(Y=_.UD(Y,screen.width),this.hostElement.style.backgroundImage="url("+Y+")")}};
q5.prototype.dataChanged=q5.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],q5.prototype,"data",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q5.prototype,"dataChanged",null);q5=_.Q([_.t({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],q5);
_.A(q5,"ytd-post-redemption-section-renderer",function(){if(Cz6!==void 0)return Cz6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Cz6=Y},{mode:1});var qId;var Rb=function(){return _.Z.apply(this,arguments)||this};
_.r(Rb,_.Z);Rb.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Rb.prototype,"data",void 0);Rb=_.Q([_.t({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Rb);
_.A(Rb,"ytd-ypc-post-redemption-renderer",function(){if(qId!==void 0)return qId;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return qId=Y},{mode:1});_.$s("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var xL=function(){var Y=_.Z.apply(this,arguments)||this;Y.MIN_CODE_LENGTH=12;Y.MAX_CODE_LENGTH=24;return Y};
_.r(xL,_.Z);_.z=xL.prototype;_.z.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.z.created=function(){this.riskService=new _.veU;this.loadPaymentThenable=_.IJK(_.X3("YPC_MB_URL"))};
_.z.ready=function(){var Y=this;this.code.addEventListener("keypress",function(S){Y.onCodeInputKeypress(S)})};
_.z.dataChanged=function(){var Y=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(S){S=_.n(S);for(var P=S.next();!P.done;P=S.next())P=P.value,P.type==="attributes"&&P.attributeName==="dark"&&Y.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.z.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var Y=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+Y+")")}};
_.z.computeRedeemButton=function(Y){(Y=this.get("redeemButton.buttonRenderer",Y))&&(Y=Object.assign({},Y,{serviceEndpoint:void 0}));return Y};
_.z.onRedeemButtonTap=function(Y){Y.stopPropagation();Vsu();this.redeemCode()};
_.z.redeemCode=function(){var Y=this;this.isLoading=!0;var S=this.riskService.init();_.fl([S,this.loadPaymentThenable]).then(function(){var P=Y.data.redeemButton.buttonRenderer.serviceEndpoint,u=_.DeJ(),W=payments.business.integration.ClientTokenFactory.createClientToken(_.g(P,_.P4U).countryCode,u);u={c:Y.code.value.trim(),rd:window.btoa(u),ctk:W};P&&(_.f("web_ytd_redeem_code_renderer_command_resolver_ks")?_.Bu(Y.hostElement,[P,u]):_.E().resolve(_.uY).resolveCommand(P,{form:Object.assign({},u,{element:Y.hostElement})}))},
function(){Y.showGenericError();
mP("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.ik(Error("Ul"))})};
_.z.onYtServiceRequestCompleted=function(Y){Y.stopPropagation();this.isLoading=!1;var S,P;this.errorMessage=(S=Y.detail)==null?void 0:(P=S.data)==null?void 0:P.errorMessage;var u,W;this.postRedemptionRenderer=(u=Y.detail)==null?void 0:(W=u.data)==null?void 0:W.renderer;var m,J;if(Y=(m=Y.detail)==null?void 0:(J=m.data)==null?void 0:J.redirectEndpoint)this.isLoading=!0,_.ms(this.hostElement,"yt-navigate",{endpoint:Y});this.errorMessage?mP("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
Y)&&_.GG("ypcRedeemFlowSucceeded")};
_.z.onYtServiceRequestError=function(Y){Y.stopPropagation();this.isLoading=!1;if(Y=this.get("detail.error.message",Y))this.errorMessage=_.kW(Y);mP("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.z.onInvokeInstrumentManagerActionCompleted=function(Y){Y.stopPropagation();this.redeemCode()};
_.z.onInvokeInstrumentManagerActionError=function(Y){Y.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",Y)){case "instrumentManagerLoadError":this.showGenericError();mP("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();mP("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.GG("ypcRedeemFlowCancelled")}};
_.z.onInput=function(){var Y=this;_.pc(this,"onInput",function(){var S=Y.code.value.trim();Y.redeemButtonDisabled=S.length<Y.MIN_CODE_LENGTH||S.length>Y.MAX_CODE_LENGTH},200)};
_.z.onCodeInputKeypress=function(Y){Y.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(Vsu(),this.redeemCode())};
_.z.computeImageUrl=function(Y){return Y?_.UD(Y.thumbnails,600):null};
_.z.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
xL.prototype.onInvokeInstrumentManagerActionError=xL.prototype.onInvokeInstrumentManagerActionError;xL.prototype.onInvokeInstrumentManagerActionCompleted=xL.prototype.onInvokeInstrumentManagerActionCompleted;xL.prototype.onYtServiceRequestError=xL.prototype.onYtServiceRequestError;xL.prototype.onYtServiceRequestCompleted=xL.prototype.onYtServiceRequestCompleted;xL.prototype.dataChanged=xL.prototype.dataChanged;
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],xL.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],xL.prototype,"isLoading",void 0);_.Q([_.X(),_.k("design:type",Boolean)],xL.prototype,"redeemButtonDisabled",void 0);
_.Q([_.X(),_.k("design:type",Object)],xL.prototype,"errorMessage",void 0);_.Q([_.X(),_.k("design:type",Object)],xL.prototype,"postRedemptionRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],xL.prototype,"observer",void 0);_.Q([_.nc("#code"),_.k("design:type",HTMLInputElement)],xL.prototype,"code",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xL.prototype,"dataChanged",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],xL.prototype,"onYtServiceRequestCompleted",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],xL.prototype,"onYtServiceRequestError",null);
_.Q([_.WZ("yt-invoke-instrument-manager-action-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],xL.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.Q([_.WZ("yt-invoke-instrument-manager-action-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],xL.prototype,"onInvokeInstrumentManagerActionError",null);xL=_.Q([_.t({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],xL);
_.A(xL,"ytd-redeem-code-renderer",function(){if(ca1!==void 0)return ca1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return ca1=Y},{mode:1});var RG_;_.$s("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var bu=function(){var Y=_.Z.apply(this,arguments)||this;Y.businessEmailDisplayState="HIDE_SECTION";return Y};
_.r(bu,_.Z);_.z=bu.prototype;_.z.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}}}}}};
_.z.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"};
_.z.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.z.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Xv("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.z.onYtServiceRequestCompleted=function(Y){var S;if((S=Y.detail.data)==null?0:S.businessEmail)this.businessEmail=Y.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var P;if((P=Y.detail.data)==null?0:P.errorMessage)this.businessEmailErrorMessage=Y.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.z.computeEmailHref=function(Y){return"mailto:"+Y};
_.z.computeSafeUrl=function(Y){if(Y)return _.Bx(Y)};
_.z.onBusinessEmailCaptchaSubmit=function(){var Y;(Y=this.data)!=null&&Y.onBusinessEmailRevealClickCommand&&(Y=this.JSC$18911_captchaTextarea.value)&&(Y={recaptcha_response_token:Y,channel_id:this.data.channelId},_.E().resolve(_.uY).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},Y,{element:this.hostElement})}))};
_.z.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.y6.Object.defineProperties(bu.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!((Y=this.data)==null||!Y.primaryLinks)&&!((S=this.data)==null?0:S.links)&&this.data.primaryLinks.every(function(P){return P.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!((Y=this.data)==null||!Y.primaryLinks)&&!((S=this.data)==null?0:S.links)&&!this.shouldShowNewLinks}}});
bu.prototype.onYtServiceRequestCompleted=bu.prototype.onYtServiceRequestCompleted;bu.prototype.dataChanged=bu.prototype.dataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],bu.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],bu.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.nc("#g-recaptcha-response"),_.k("design:type",HTMLTextAreaElement)],bu.prototype,"JSC$18911_captchaTextarea",void 0);_.Q([_.X(),_.k("design:type",Object)],bu.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],bu.prototype,"businessEmailDisplayState",void 0);_.Q([_.X(),_.k("design:type",String)],bu.prototype,"businessEmail",void 0);_.Q([_.X(),_.k("design:type",String)],bu.prototype,"businessEmailErrorMessage",void 0);
_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bu.prototype,"hideDetailsSection",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bu.prototype,"dataChanged",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bu.prototype,"shouldShowNewLinks",null);_.Q([_.d("data","shouldShowLinks"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bu.prototype,"shouldShowLegacyLinks",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bu.prototype,"onYtServiceRequestCompleted",null);bu=_.Q([_.t({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],bu);
_.A(bu,"ytd-channel-about-metadata-renderer",function(){if(RG_!==void 0)return RG_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return RG_=Y},{mode:1});var xN1;_.$s("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Tg=function(){return _.Z.apply(this,arguments)||this};
_.r(Tg,_.Z);Tg.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Tg.prototype,"data",void 0);Tg=_.Q([_.t({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Tg);
_.A(Tg,"ytd-channel-featured-content-renderer",function(){if(xN1!==void 0)return xN1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return xN1=Y},{mode:1});var bK6;_.$s("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Ky=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundContainer=!0;Y.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");return Y};
_.r(Ky,_.Z);_.z=Ky.prototype;_.z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.z.dataChanged=function(){this.imageWidth=this.imageHeight=24;var Y=this.data;Y.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!Y.style&&Y.image&&Y.image.thumbnails.length&&(Y=Y.image.thumbnails[0],this.imageWidth=Y.width||0,this.imageHeight=Y.height||0)};
_.z.computeSource=function(Y){return Y.secondarySource?_.Ma(Y.secondarySource):_.Ma(Y.source)};
_.z.computeClarifyStyle=function(Y){return Y?Y.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.z.isLargeStyle=function(Y){return Y==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.z.computeBackgroundStyle=function(Y){return Y?Y.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.z.computeHasActionButton=function(Y){return!!Y.actionButton};
_.z.computeHasBottomSection=function(Y){return!!Y.ctaHasBottomSection};
_.z.computeIsSourceMissing=function(Y){return Y.ctaHasBottomSection===!1?!0:Y&&this.computeSource(Y)?!1:!0};
_.z.computeSecondaryEndpoint=function(Y){return Y.secondaryEndpoint||Y.endpoint};
Ky.prototype.dataChanged=Ky.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Ky.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ky.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Number)],Ky.prototype,"imageWidth",void 0);_.Q([_.X(),_.k("design:type",Number)],Ky.prototype,"imageHeight",void 0);
_.Q([_.X({computed:"computeSecondaryEndpoint(data)"}),_.k("design:type",Object)],Ky.prototype,"secondaryEndpoint",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.k("design:type",Boolean)],Ky.prototype,"hasActionButton",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.k("design:type",Boolean)],Ky.prototype,"hasBottomSection",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.k("design:type",Boolean)],Ky.prototype,"missingSource",void 0);_.Q([_.X({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],Ky.prototype,"icon",void 0);_.Q([_.X({computed:"computeIcon_(data.secondaryIcon)"}),_.k("design:type",String)],Ky.prototype,"secondaryIcon",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.k("design:type",String)],Ky.prototype,"clarifyStyle",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.k("design:type",String)],Ky.prototype,"backgroundStyle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Ky.prototype,"roundContainer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ky.prototype,"amsterdamEnabled",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ky.prototype,"dataChanged",null);
Ky=_.Q([_.t({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Ky);
_.A(Ky,"ytd-clarification-renderer",function(){if(bK6!==void 0)return bK6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return bK6=Y},{mode:1});var TYj;var K_c;var EH=function(){var Y=_.Z.apply(this,arguments)||this;Y.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");return Y};
_.r(EH,_.Z);_.z=EH.prototype;_.z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.z.computeIcon=function(Y){return Y?"yt-icons:"+Y.toLowerCase():null};
_.z.computeUseContacts=function(Y){return!!Y.contacts&&Y.contacts.length>0};
_.z.computePhoneContact=function(Y){var S,P;return(S=Y.contacts)==null?void 0:(P=S.find(function(u){var W;return(u==null?void 0:(W=u.icon)==null?void 0:W.iconType)==="PHONE"}))==null?void 0:P.actionText};
_.z.computeSmsContact=function(Y){var S,P;return(S=Y.contacts)==null?void 0:(P=S.find(function(u){var W;return(u==null?void 0:(W=u.icon)==null?void 0:W.iconType)==="SMS"}))==null?void 0:P.actionText};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],EH.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],EH.prototype,"amsterdamEnabled",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.k("design:type",Boolean)],EH.prototype,"useContacts",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.k("design:type",String)],EH.prototype,"phoneContact",void 0);EH=_.Q([_.t({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],EH);
_.A(EH,"ytd-single-action-emergency-support-renderer",function(){if(K_c!==void 0)return K_c;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return K_c=Y},{mode:1});_.$s("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var fy=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundedContainer=!0;Y.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");return Y};
_.r(fy,_.Z);fy.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],fy.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],fy.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fy.prototype,"roundedContainer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],fy.prototype,"amsterdamEnabled",void 0);
fy=_.Q([_.t({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],fy);
_.A(fy,"ytd-emergency-onebox-renderer",function(){if(TYj!==void 0)return TYj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return TYj=Y},{mode:1});var Ej6;_.$s("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var gq=function(){return _.Z.apply(this,arguments)||this};
_.r(gq,_.Z);gq.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],gq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],gq.prototype,"data",void 0);gq=_.Q([_.t({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],gq);
_.A(gq,"ytd-exploratory-results-renderer",function(){if(Ej6!==void 0)return Ej6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ej6=Y},{mode:1});var f$Z;_.$s("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var $L=function(){var Y=_.Z.apply(this,arguments)||this;Y.messageData=null;return Y};
_.r($L,_.Z);_.z=$L.prototype;_.z.onServiceRequestCompleted=function(Y,S){Y=S.actions||[];S=0;for(var P=Y.length;S<P;S++){var u=Y[S],W=void 0,m=void 0;if((W=_.g(u,_.xp))==null?0:(m=W.item)==null?0:m.messageRenderer)this.messageData=_.g(u,_.xp).item.messageRenderer}};
_.z.dataChanged=function(){var Y=this.data;this.hostElement.hidden=!1;_.Vm(this.hostElement,"is-channel",Y&&!Y.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.z.computeThumbnailWidth=function(Y){return Y?126:56};
_.z.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.z.onSubmitTap=function(){var Y=this.data,S=this.selectedResponseIndex;Y!==void 0&&S!==void 0&&(Y=Y.responses[S],Y.responseData&&(_.f("web_ytd_feedback_elicitation_single_question_renderer_command_resolver_ks")?_.Bu(this.hostElement,[Y.responseData]):_.E().resolve(_.uY).resolveCommand(Y.responseData,{form:{element:this.hostElement}})))};
_.z.onDismissTap=function(){this.hostElement.hidden=!0;var Y=this.data;Y!==void 0&&Y.dismissalEndpoint&&(_.f("web_ytd_feedback_elicitation_single_question_renderer_command_resolver_ks")?_.Bu(this.hostElement,[Y.dismissalEndpoint]):_.E().resolve(_.uY).resolveCommand(Y.dismissalEndpoint,{form:{element:this.hostElement}}))};
_.z.updateSelectedResponseIndexFromBinding=function(Y){this.selectedResponseIndex=Y.detail.value};
$L.prototype.onSelectedResponseIndexChange=$L.prototype.onSelectedResponseIndexChange;$L.prototype.dataChanged=$L.prototype.dataChanged;$L.prototype.onServiceRequestCompleted=$L.prototype.onServiceRequestCompleted;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$L.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],$L.prototype,"messageData",void 0);
_.Q([_.X(),_.k("design:type",Number)],$L.prototype,"selectedResponseIndex",void 0);_.Q([_.nc("#submit-button"),_.k("design:type",HTMLButtonElement)],$L.prototype,"submitButton",void 0);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],$L.prototype,"onServiceRequestCompleted",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$L.prototype,"dataChanged",null);
_.Q([_.zY("selectedResponseIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$L.prototype,"onSelectedResponseIndexChange",null);$L=_.Q([_.t({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],$L);
_.A($L,"ytd-feedback-elicitation-single-question-renderer",function(){if(f$Z!==void 0)return f$Z;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return f$Z=Y},{mode:1});var gjI;var rq=function(){return _.Z.apply(this,arguments)||this};
_.r(rq,_.Z);rq.prototype.computeThumbnailWidth=function(Y){return Y?602:428};
rq.prototype.updateWideFromBinding=function(Y){this.wide=Y.detail.value};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],rq.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],rq.prototype,"wide",void 0);rq=_.Q([_.t({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],rq);
_.A(rq,"ytd-newspaper-hero-video-renderer",function(){if(gjI!==void 0)return gjI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return gjI=Y},{mode:1});var $NB;var Gg=function(){return _.Z.apply(this,arguments)||this};
_.r(Gg,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Gg.prototype,"rendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Gg.prototype,"data",void 0);Gg=_.Q([_.t({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Gg);
_.A(Gg,"ytd-newspaper-mini-video-renderer",function(){if($NB!==void 0)return $NB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return $NB=Y},{mode:1});var ra_;_.$s("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var ht=function(){return _.Z.apply(this,arguments)||this};
_.r(ht,_.Z);ht.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ht.prototype,"data",void 0);ht=_.Q([_.t({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],ht);
_.A(ht,"ytd-newspaper-renderer",function(){if(ra_!==void 0)return ra_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ra_=Y},{mode:1});var GO1;_.$s("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var v2=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSegment=!1;Y.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};Y.nextContinuation={continuationType:"playlistVideoListContinuation"};return Y};
_.r(v2,_.Z);_.z=v2.prototype;_.z.attached=function(){_.E();var Y;(Y=_.E().resolve(_.PQ(_.sT)))!=null&&(Y.playlistVideoListElement=this.hostElement)};
_.z.detached=function(){var Y;(Y=_.E().resolve(_.PQ(_.sT)))!=null&&(Y.playlistVideoListElement=void 0);Y=_.E().resolve(_.PQ(_.kb));_.f("web_enable_voting_animation")&&Y&&(Y.parentElem=void 0,Y.videos=[],Y.continuationsPresent=!1,Y.showRefreshPill=!1)};
_.z.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"}}}}}};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.z.dataChanged=function(){var Y=_.E().resolve(_.PQ(_.kb));if(_.f("web_enable_voting_animation")&&this.data&&Y){var S=_.I(this.hostElement).querySelector("#contents");S&&(Y.parentElem=S);Y.addVideos(this.data.contents)}_.Ejt(this.ytReorderableBehavior)};
_.z.onRendererstamperFinished=function(){this.canReorder&&_.f$d(this.ytReorderableBehavior,_.I(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.z.onPlaylistReloading=function(){this.isReloading=!0};
_.z.onUpdateSetVideoId=function(Y){if(Y.detail&&this.data&&this.data.contents){var S=Y.detail;Y=this.data.contents.findIndex(function(W){var m;return((m=W.playlistVideoRenderer)==null?void 0:m.videoId)===S.videoId});
if(!(Y<0)&&S.setVideoId&&(this.set("data.contents."+Y+".playlistVideoRenderer.setVideoId",S.setVideoId),_.f("web_enable_voting_animation"))){var P;if(Y=_.g((P=this.data.contents[Y].playlistVideoRenderer)==null?void 0:P.engagementBar,_.eQX)){var u;(u=Y.actions)==null||u.forEach(function(W){if(W=_.g(W,_.OTJ))W.itemId=S.setVideoId})}(P=_.E().resolve(_.PQ(_.kb)))&&ecB(P,S.videoId,S.setVideoId)}}};
_.z.computeContentsClass=function(Y){return Y?"reloading":""};
_.z.computeIsSortable=function(Y,S){return Y&&S>0&&!this.isSegment&&!_.f("shorts_in_playlists_web")};
_.z.computeIsEditable=function(Y){return Y};
_.z.computeCanReorder=function(Y){return Y};
_.z.handlePlaylistRemoveVideosAction=function(Y){if(this.get("playlistRemoveVideosAction.setVideoIds",Y)&&this.data&&this.data.contents){Y=_.g(Y,_.G2s).setVideoIds;for(var S=this.data.contents.length-1;S>=0;){var P=this.data.contents[S].playlistVideoRenderer;P&&P.setVideoId&&Y.includes(P.setVideoId)&&this.splice("data.contents",S,1);S--}_.nb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.z.updateIndices=function(){if(this.data&&this.data.contents)for(var Y=0;Y<this.data.contents.length;Y++)this.set("data.contents."+Y+".playlistVideoRenderer.index",_.kW(String(Y+1)))};
_.z.handleDrop=function(Y){Y=Y.currDragItem;var S=_.oh(Y.parentNode.childNodes,Y),P=this.data.contents.splice(Number(_.Ma(Y.data.index))-1,1)[0];this.data.contents.splice(S,0,P);S=S?this.get("contents."+(S-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();Y=this.buildReorderServiceEndpoint(Y.data.setVideoId,S);this.ytComponentBehavior.resolveCommand(Y)};
_.z.buildReorderServiceEndpoint=function(Y,S){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",Y),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",S),this.data.onReorderEndpoint):null};
_.z.handleUpdatePlaylistAction=function(Y){var S;(Y=_.g((S=_.g(Y,_.hk_))==null?void 0:S.updatedRenderer,_.irS))&&this.canReorder!==Y.canReorder&&this.set("data.canReorder",Y.canReorder);Y&&Y.contents&&(this.set("data.contents",Y.contents),this.isReloading=!1);Y&&Y.continuations&&this.set("data.continuations",Y.continuations)};
_.z.handleAddRendererToItemSectionAction=function(Y){var S,P=(S=_.g(Y,ueu))==null?void 0:S.renderer,u;P&&((u=_.g(Y,ueu))==null?void 0:u.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,P),Y=_.E().resolve(_.PQ(_.kb)),_.f("web_enable_voting_animation")&&Y&&(P&&(S=_.VnU(P))&&Y.recommendedVideos.push({itemId:S,videoId:_.YBU(P),voteCount:_.SBY(P),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.z.isVotingEnabledOnPlaylist=function(Y){if(!Y)return!1;Y=_.n(Y);for(Y=Y.next();!Y.done;Y=Y.next()){var S=void 0;return!!_.g((S=Y.value.playlistVideoRenderer)==null?void 0:S.engagementBar,_.eQX)}return!1};
_.z.onAppendContinuationItemsActionFinished=function(){var Y;this.isVotingEnabledOnPlaylist((Y=this.data)==null?void 0:Y.contents)&&(this.updateIndices(),Y=_.E().resolve(_.PQ(_.kb)),_.f("web_enable_voting_animation")&&Y&&this.data&&Y.addVideos(this.data.contents))};
_.z.updateVideoData=function(Y){if(Y.detail&&this.data&&this.data.contents){var S=Y.detail;Y=S.toIdx;var P=S.itemId,u=S.newVoteCount,W=S.voteStatus;S=S.hideItem;var m,J,c=(m=this.data)==null?void 0:(J=m.contents)==null?void 0:J.findIndex(function(T){return _.VnU(T)===P});
if(!(c<0)){m=this.data.contents[c];var C;if((C=m.playlistVideoRenderer)==null?0:C.voteCount)m.playlistVideoRenderer.voteCount=u;var x;if(C=_.g((x=m.playlistVideoRenderer)==null?void 0:x.engagementBar,_.eQX)){var b;(b=C.actions)==null||b.forEach(function(T){(T=_.g(T,_.OTJ))&&T.initialState&&(T.initialState.votes=u,T.initialState.status=W)})}this.data.contents.splice(c,1);
S||this.data.contents.splice(Y,0,m);this.updateIndices()}}};
v2.prototype.updateVideoData=v2.prototype.updateVideoData;v2.prototype.onAppendContinuationItemsActionFinished=v2.prototype.onAppendContinuationItemsActionFinished;v2.prototype.onUpdateSetVideoId=v2.prototype.onUpdateSetVideoId;v2.prototype.onPlaylistReloading=v2.prototype.onPlaylistReloading;v2.prototype.onRendererstamperFinished=v2.prototype.onRendererstamperFinished;v2.prototype.dataChanged=v2.prototype.dataChanged;
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],v2.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.a3.YtNextContinuationBehavior),_.k("design:type",Object)],v2.prototype,"ytNextContinuationBehavior",void 0);
_.Q([_.p(_.gjs),_.k("design:type",Object)],v2.prototype,"ytReorderableBehavior",void 0);_.Q([_.p(_.I3),_.k("design:type",Object)],v2.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],v2.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],v2.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],v2.prototype,"isReloading",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],v2.prototype,"isSegment",void 0);_.Q([_.X({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.k("design:type",Boolean)],v2.prototype,"isSortable",void 0);_.Q([_.X({computed:"computeIsEditable(data.isEditable)"}),_.k("design:type",Boolean)],v2.prototype,"isEditable",void 0);_.Q([_.X({computed:"computeCanReorder(data.canReorder)"}),_.k("design:type",Boolean)],v2.prototype,"canReorder",void 0);
_.Q([_.X({value:101}),_.k("design:type",Number)],v2.prototype,"scrollMargin",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],v2.prototype,"dataChanged",null);_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],v2.prototype,"onRendererstamperFinished",null);
_.Q([_.WZ("yt-playlist-reloading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],v2.prototype,"onPlaylistReloading",null);_.Q([_.WZ("yt-update-set-video-id"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],v2.prototype,"onUpdateSetVideoId",null);
_.Q([_.WZ("yt-append-continuation-items-action-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],v2.prototype,"onAppendContinuationItemsActionFinished",null);_.Q([_.WZ("yt-update-video-data-voting-animation"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],v2.prototype,"updateVideoData",null);v2=_.Q([_.t({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],v2);
_.A(v2,"ytd-playlist-video-list-renderer",function(){if(GO1!==void 0)return GO1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return GO1=Y},{mode:_.OX("kevlar_poly_si_batch_j047")?1:2});var hGd;var Du=function(){return _.Z.apply(this,arguments)||this};
_.r(Du,_.Z);Du.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"}}}}};
Du.prototype.onTextWrapperTap=function(Y){var S=this.data&&this.data.navigationEndpoint;S&&!_.iN(_.iM(Y),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.ms(this.hostElement,"yt-navigate",{endpoint:S})};
Du.prototype.dataChanged=function(){var Y=this.get("data.offerButton.buttonRenderer.serviceEndpoint");Y&&Y.commandMetadata&&_.g(Y.commandMetadata,_.gD)&&_.g(Y.commandMetadata,_.gD).fireAutomatically&&_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}})};
Du.prototype.dataChanged=Du.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Du.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Fc),_.k("design:type",Object)],Du.prototype,"ytdLockupBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Du.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],Du.prototype,"useBiggerThumbs",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],Du.prototype,"biggerThumbsStyle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Du.prototype,"leftAligned",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Du.prototype,"dataChanged",null);Du=_.Q([_.t({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Du);
_.A(Du,"ytd-movie-renderer",function(){if(hGd!==void 0)return hGd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return hGd=Y},{mode:1});var vjd;var Ib=function(){var Y=_.Z.apply(this,arguments)||this;Y.rounded=!0;Y.pageAttachedTo=void 0;Y.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return Y};
_.r(Ib,_.Z);Ib.prototype.attached=function(){this.pageAttachedTo=_.E().resolve(_.Ag).getCurrentPage();_.ms(this.hostElement,"yt-player-attached",this.player)};
Ib.prototype.detached=function(){var Y;if((Y=this.pageAttachedTo)==null?0:Y.hostElement)_.ms(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Ib.prototype.dataChanged=function(){var Y;if((Y=this.data)==null?0:Y.videoId)Y={video_id:this.data.videoId,autoplay:!0},!_.f("miniplayer_stop_channel_video_autoplay_killswitch")&&_.E().resolve(_.l1).isMiniplayerActive()&&(Y.pause_at_start=!0,Y.autoplay=!1),this.player.loadVideoWithPlayerVars(Y)};
Ib.prototype.handleSignalActionPausePlayer=function(){_.ks().pause()};
Ib.prototype.dataChanged=Ib.prototype.dataChanged;_.Q([_.X(),_.k("design:type",Object)],Ib.prototype,"data",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Ib.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Ib.prototype,"rounded",void 0);_.Q([_.nc("#player"),_.k("design:type",Object)],Ib.prototype,"player",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ib.prototype,"dataChanged",null);Ib=_.Q([_.t({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Ib);
_.A(Ib,"ytd-channel-video-player-renderer",function(){if(vjd!==void 0)return vjd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return vjd=Y},{mode:1});var DNI;var I$d;var a$I;var ab=function(){var Y=_.Z.apply(this,arguments)||this;Y.playing=!1;Y.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Pt(Y);Y.active=!1;return Y};
_.r(ab,_.Z);_.z=ab.prototype;_.z.detached=function(){this.stop()};
_.z.play=function(){var Y=this,S,P,u,W,m;return _.B(function(J){if(J.nextAddress==1)return Y.active=!0,S=Y.get("data.inlinePlaybackEndpoint.watchEndpoint"),P=S.videoId||Y.data.videoId,u=S.startTimeSeconds||0,W=S.playerParams||null,_.f("kevlar_player_update_killswitch")?_.q(J,Y.playerEl.update({args:{video_id:P,startSeconds:u,player_params:W}}),2):(Y.playerEl.loadVideoWithPlayerVars({video_id:P,startSeconds:u,player_params:W,autoplay:!0}),J.jumpTo(2));if(J.nextAddress!=4)return _.q(J,Y.playerEl.getPlayerPromise(),
4);m=J.yieldResult;m.unloadModule("annotations_module");m.addEventListener("onStateChange",function(c){Y.onPlayerStateChange(c)});
_.Yt(J)})};
_.z.onPlayerStateChange=function(Y){if(this.active)switch(this.playing=Y===1,Y){case 1:_.ms(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.ms(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.z.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.z.resize=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,Y.playerEl.getPlayerPromise(),2);S=P.yieldResult;S.setSize(NaN,NaN);_.Yt(P)})};
_.Q([_.X(),_.k("design:type",Object)],ab.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],ab.prototype,"playing",void 0);_.Q([_.X(),_.k("design:type",Object)],ab.prototype,"playerId",void 0);_.Q([_.nc("#player"),_.k("design:type",Object)],ab.prototype,"playerEl",void 0);ab=_.Q([_.t({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],ab);
_.A(ab,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(a$I!==void 0)return a$I;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return a$I=Y},{mode:1});var L_I;var wCj;var Ly=function(){var Y=_.Z.apply(this,arguments)||this;Y.width=0;return Y};
_.r(Ly,_.Z);_.z=Ly.prototype;_.z.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.up(this,this.onEnded));this.mp4El.addEventListener("error",_.up(this,this.onError))};
_.z.detached=function(){this.videoEl.removeEventListener("ended",_.up(this,this.onEnded));this.mp4El.removeEventListener("error",_.up(this,this.onError))};
_.z.play=function(){var Y=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var S=this.videoEl.play();S?S.then(function(){Y.handleVideoStartPlaying()}).catch(function(){_.ms(Y.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.ms(this.hostElement,"yt-video-thumbnail-not-playing")};
_.z.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.z.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.z.dataChanged=function(){var Y;if((Y=this.data)==null?0:Y.thumbnailPlaceholder)Y=_.UD(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+Y+")";this.stop();this.autoplay&&this.play()};
_.z.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.z.onEnded=function(){this.stop();_.ms(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.z.onError=function(){_.ms(this.hostElement,"yt-video-thumbnail-error")};
_.z.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.z.getVideoThumbnail=function(Y){if(Y&&Y.length)return Y[0]};
Ly.prototype.dataChanged=Ly.prototype.dataChanged;_.Q([_.X(),_.k("design:type",Object)],Ly.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ly.prototype,"animatePlaceholderOnEntrance",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ly.prototype,"autoplay",void 0);_.Q([_.X({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.k("design:type",Object)],Ly.prototype,"videoThumbnail",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],Ly.prototype,"loop",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Ly.prototype,"isVideoPlaying",void 0);_.Q([_.X(),_.k("design:type",Object)],Ly.prototype,"width",void 0);_.Q([_.nc("#mp4"),_.k("design:type",HTMLElement)],Ly.prototype,"mp4El",void 0);_.Q([_.nc("#placeholder"),_.k("design:type",HTMLElement)],Ly.prototype,"placeholderEl",void 0);_.Q([_.nc("#video"),_.k("design:type",HTMLVideoElement)],Ly.prototype,"videoEl",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ly.prototype,"dataChanged",null);Ly=_.Q([_.r0({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Ly);
_.A(Ly,"yt-video-as-thumbnail-details",function(){if(wCj===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;L_I===void 0&&(L_I=document.createElement("template"));var u=L_I;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);wCj=Y}Y=wCj;return Y},{mode:2});var wq=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableGridStateAware=!1;Y.animationEnabled=_.f("enable_web_ketchup_hero_animation");Y.transitioningOut=!1;Y.narrow=!1;Y.narrower=!1;Y.isCarouselInFeed=!1;Y.videoTimeoutJobId=0;Y.panelTimeoutJobId=0;Y.panelTimeoutJobStartMs=0;Y.actionMap={"yt-window-resized":"onWindowResized"};return Y};
_.r(wq,_.Z);_.z=wq.prototype;_.z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.z.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var Y;this.player&&((Y=this.data)==null?0:Y.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.z.attached=function(){this.onWindowResized()};
_.z.detached=function(){this.clearTimeouts()};
_.z.onWindowResized=function(){this.updateSize()};
_.z.computePanelLayout=function(Y){return Y&&Y.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.z.playVideo=function(){var Y;this.video&&((Y=this.data)==null?0:Y.videoThumbnail)&&this.video.play();var S;this.player&&((S=this.data)==null?0:S.inlinePlaybackRenderer)&&this.player.play()};
_.z.stopVideo=function(){var Y;this.video&&((Y=this.data)==null?0:Y.videoThumbnail)&&this.video.stop();var S;this.player&&((S=this.data)==null?0:S.inlinePlaybackRenderer)&&this.player.stop()};
_.z.transitionOut=function(){var Y=this;this.transitioningOut=!0;return new Promise(function(S){var P=function(){_.I(Y.hostElement).querySelector("#action-button").removeEventListener("animationend",P);_.wc.cancelJob(u);S();Y.transitioningOut=!1};
var u=_.hp(_.wc,P,1E3);_.I(Y.hostElement).querySelector("#action-button").addEventListener("animationend",P);Y.player&&(Y.player.playing=!1)})};
_.z.computeMetadataOrder=function(Y){return Y&&Y.metadataOrder&&Y.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?Y.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.z.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.z.computeAvatarSize=function(Y){return Y&&Y.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.z.onContentClick=function(Y){if(!_.iN(_.iM(Y),this.hostElement,["A".toString(),"BUTTON".toString()])){var S;if((S=this.data)==null?0:S.navigationEndpoint){var P;this.componentBehavior.resolveCommand((P=this.data)==null?void 0:P.navigationEndpoint)}}};
_.z.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.z.setBackgroundImage=function(Y){if(Y=this.getBackgroundImageUrl(Y))_.I(this.hostElement).querySelector("#hero").style.backgroundImage="url("+Y+")"};
_.z.setScrimLayer=function(Y){var S=this.getScrimLayerColorStops(Y);Y=((Y==null?void 0:Y.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(Y=180);_.X3("HTML_DIR")==="rtl"&&(Y=-Y);S&&(_.I(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+Y+"deg, "+S+")")};
_.z.isNarrower=function(){return this.hostElement.clientWidth<wq.NARROW_VERSION_SIZE};
_.z.getScrimLayerColorStops=function(){var Y,S=(Y=this.data)==null?void 0:Y.scrimColorValues;if(!S)return null;if(S.length===1)return Y=_.hK(S[0]),Y+" 0%, "+Y+" 100%";if(S.length===3){var P=[0,72,98];return S.map(function(u,W){return _.hK(u)+" "+P[W]+"%"}).join(",")}return null};
_.z.getBackgroundImageUrl=function(Y){return Y&&Y.largeFormFactorBackgroundThumbnail?_.UD((Y.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||Y.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.z.onPlaying=function(){this.startVideoTimeout()};
_.z.onEnded=function(){this.rotate()};
_.z.startPanelTimeout=function(){var Y=this;if(!this.panelTimeoutJobId){var S=this.get("data.minPanelDisplayDurationMs");S&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.hp(_.wc,function(){Y.rotate()},S))}};
_.z.startVideoTimeout=function(){var Y=this;if(!this.videoTimeoutJobId){_.wc.cancelJob(this.panelTimeoutJobId);var S=Date.now()-this.panelTimeoutJobStartMs;S=Math.max(0,this.get("data.minPanelDisplayDurationMs")-S);S=Math.max(this.get("data.minVideoPlayDurationMs")||0,S);this.videoTimeoutJobId=_.hp(_.wc,function(){Y.rotate()},S)}};
_.z.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.wc.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.wc.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.z.rotate=function(){this.clearTimeouts();_.ms(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.y6.Object.defineProperties(wq.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.I(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.I(this.hostElement).querySelector("#video")}}});
_.y6.Object.defineProperties(wq,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
wq.prototype.onEnded=wq.prototype.onEnded;wq.prototype.onPlaying=wq.prototype.onPlaying;wq.prototype.dataChanged=wq.prototype.dataChanged;_.Q([_.p(_.I5),_.k("design:type",Object)],wq.prototype,"ytdGridStateAwareBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],wq.prototype,"componentBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],wq.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.p(_.udt),_.k("design:type",Object)],wq.prototype,"ytBooleanLogicBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],wq.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],wq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],wq.prototype,"disableGridStateAware",void 0);_.Q([_.X(),_.k("design:type",Object)],wq.prototype,"data",void 0);_.Q([_.X({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.k("design:type",String)],wq.prototype,"panelLayout",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],wq.prototype,"animationEnabled",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],wq.prototype,"transitioningOut",void 0);
_.Q([_.X({computed:"computeMetadataOrder(data)"}),_.k("design:type",Boolean)],wq.prototype,"metadataOrder",void 0);_.Q([_.X({computed:"computeByline(data)"}),_.k("design:type",Object)],wq.prototype,"byline",void 0);_.Q([_.X({computed:"computeAvatarSize(data)"}),_.k("design:type",Number)],wq.prototype,"avatarSize",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],wq.prototype,"narrow",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],wq.prototype,"narrower",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],wq.prototype,"layoutStyle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],wq.prototype,"isCarouselInFeed",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wq.prototype,"dataChanged",null);_.Q([_.WZ("yt-default-promo-panel-renderer-playing"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wq.prototype,"onPlaying",null);
_.Q([_.WZ("yt-default-promo-panel-renderer-ended"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wq.prototype,"onEnded",null);wq=_.Q([_.t({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],wq);
_.A(wq,"ytd-default-promo-panel-renderer",function(){if(I$d!==void 0)return I$d;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return I$d=Y},{mode:1});_.$s("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var py=function(){var Y=_.Z.apply(this,arguments)||this;Y.narrower=!1;Y.dotMenuVisible=!1;Y.paginationThumbnailsVisible=!1;Y.active=!0;Y.disableGridStateAware=!1;Y.actionMap={"yt-window-resized":"onWindowResized"};return Y};
_.r(py,_.Z);_.z=py.prototype;_.z.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]]"}}}}}};
_.z.attached=function(){this.onWindowResized()};
_.z.detached=function(){this.jobId&&_.wc.cancelJob(this.jobId);this.updateSizeJobId&&_.wc.cancelJob(this.updateSizeJobId)};
_.z.onWindowResized=function(){this.updateSize()};
_.z.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.z.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.z.setCarouselItem=function(Y){Y>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.wc.cancelJob(this.jobId);var S=this.getCurrentPanelElement();S&&S.stopVideo();this.currentItemIndex=Y%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(S||(S=this.getCurrentPanelElement()),S.playVideo()):this.startRotationJob()};
_.z.scrollThumbnails=function(Y){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var S=this.getCurrentPaginationElement();if(S){var P=_.I(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?P.style.transform="translateX(0)":(S=S.offsetWidth+8,P.style.transform="translateX(-"+S*(Y-Math.ceil(Math.floor(this.overlay.offsetWidth/S)/2)+1)+"px)")}}};
_.z.onDataChanged=function(){var Y=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.$I(_.wc,function(){Y.getCurrentPanelElement().updateSize();Y.updateSize()}))};
_.z.getCurrentPanelElement=function(){return _.I(_.I(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.z.getCurrentPaginationElement=function(){return _.I(_.I(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.z.getNavigationClass=function(Y,S){return Y===S?"selected":""};
_.z.getNavigationDurationStyle=function(Y){return"animation-duration:"+(this.get("data.carouselItems."+Y+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.z.onNavigationTap=function(Y){var S=this,P=Y.model.index;P!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){S.setCarouselItem(P)}),this.autorotateActive=!1)};
_.z.onVideoThumbnailEnded=function(){var Y=this;if(this.shouldRotate()){var S=this.getCurrentPaginationElement();S&&(S.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){S.classList.remove("finished");Y.setNextCarouselItem()}))}};
_.z.onVideoThumbnailError=function(){this.startRotationJob()};
_.z.onVideoNotPlaying=function(){this.startRotationJob()};
_.z.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.z.startRotationJob=function(){var Y=this;_.wc.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.wc.addLowPriorityJob(function(){Y.getCurrentPanelElement().transitionOut().then(function(){Y.setNextCarouselItem()})},this.rotationTimeout))};
_.z.computeDotMenuVisible=function(Y,S){return!!Y&&!!Y.carouselItems&&Y.carouselItems.length>1&&!Y.paginationThumbnails||!!S};
_.z.computePaginationThumbnailsVisible=function(Y,S){var P,u;return((u=Y==null?void 0:(P=Y.paginationThumbnails)==null?void 0:P.length)!=null?u:0)>1&&!S};
_.z.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.z.computePaginatorAlignment=function(Y){return(Y==null?void 0:Y.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.z.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.z.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.z.isNarrower=function(Y){return(Y!=null?Y:0)<wq.NARROW_VERSION_SIZE};
py.prototype.activeChanged=py.prototype.activeChanged;py.prototype.onVideoNotPlaying=py.prototype.onVideoNotPlaying;py.prototype.onVideoThumbnailError=py.prototype.onVideoThumbnailError;py.prototype.onVideoThumbnailEnded=py.prototype.onVideoThumbnailEnded;py.prototype.onDataChanged=py.prototype.onDataChanged;_.Q([_.p(_.I5),_.k("design:type",Object)],py.prototype,"ytdGridStateAwareBehavior",void 0);
_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],py.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],py.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],py.prototype,"currentItem",void 0);
_.Q([_.X(),_.k("design:type",Number)],py.prototype,"currentItemIndex",void 0);_.Q([_.X(),_.k("design:type",Number)],py.prototype,"rotationTimeout",void 0);_.Q([_.X(),_.k("design:type",Number)],py.prototype,"loopCount",void 0);_.Q([_.X({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.k("design:type",String)],py.prototype,"paginatorAlignment",void 0);_.Q([_.X(),_.k("design:type",Number)],py.prototype,"jobId",void 0);
_.Q([_.X(),_.k("design:type",Number)],py.prototype,"updateSizeJobId",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],py.prototype,"isCarouselInFeed",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],py.prototype,"narrower",void 0);_.Q([_.X({computed:"computeDotMenuVisible(data, narrower)"}),_.k("design:type",Object)],py.prototype,"dotMenuVisible",void 0);
_.Q([_.X({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.k("design:type",Object)],py.prototype,"paginationThumbnailsVisible",void 0);_.Q([_.X({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.k("design:type",String)],py.prototype,"layoutType",void 0);_.Q([_.X({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],py.prototype,"autorotateActive",void 0);_.Q([_.X(),_.k("design:type",Object)],py.prototype,"active",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],py.prototype,"disableGridStateAware",void 0);_.Q([_.nc("#overlay"),_.k("design:type",HTMLElement)],py.prototype,"overlay",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],py.prototype,"onDataChanged",null);
_.Q([_.WZ("yt-video-thumbnail-ended"),_.WZ("yt-default-promo-panel-renderer-rotate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],py.prototype,"onVideoThumbnailEnded",null);_.Q([_.WZ("yt-video-thumbnail-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],py.prototype,"onVideoThumbnailError",null);
_.Q([_.WZ("yt-video-thumbnail-not-playing"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],py.prototype,"onVideoNotPlaying",null);_.Q([_.cZ("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],py.prototype,"activeChanged",null);py=_.Q([_.t({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],py);
_.A(py,"ytd-carousel-item-renderer",function(){if(DNI!==void 0)return DNI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return DNI=Y},{mode:2});var pC1;var F__;var scB;var dNY;var FA=function(){var Y=_.Z.apply(this,arguments)||this;Y.originalQuery=null;Y.originalEndpoint=null;return Y};
_.r(FA,_.Z);FA.prototype.computeShowOriginalQueryWithoutEndpoint_=function(Y,S){return!(!Y||S)};
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],FA.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],FA.prototype,"correctedText",void 0);_.Q([_.X(),_.k("design:type",Object)],FA.prototype,"correctedQuery",void 0);_.Q([_.X(),_.k("design:type",Object)],FA.prototype,"correctedEndpoint",void 0);_.Q([_.X(),_.k("design:type",Object)],FA.prototype,"originalText",void 0);_.Q([_.X(),_.k("design:type",Object)],FA.prototype,"originalQuery",void 0);
_.Q([_.X(),_.k("design:type",Object)],FA.prototype,"originalEndpoint",void 0);_.Q([_.X({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.k("design:type",Boolean)],FA.prototype,"showOriginalQueryWithoutEndpoint",void 0);FA=_.Q([_.r0({is:"yt-search-query-correction",disableElementRegistration:!0})],FA);
_.A(FA,"yt-search-query-correction",function(){if(dNY===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;scB===void 0&&(scB=document.createElement("template"));var u=scB;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);dNY=Y}Y=dNY;return Y},{mode:2});_.$s("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var sH=function(){return _.Z.apply(this,arguments)||this};
_.r(sH,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],sH.prototype,"data",void 0);sH=_.Q([_.r0({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],sH);
_.A(sH,"yt-did-you-mean-renderer",function(){if(F__===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;pC1===void 0&&(pC1=document.createElement("template"));var u=pC1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);F__=Y}Y=F__;return Y},{mode:2});var l$_;var XC5;_.$s("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var dq=function(){return _.Z.apply(this,arguments)||this};
_.r(dq,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],dq.prototype,"data",void 0);dq=_.Q([_.r0({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],dq);
_.A(dq,"yt-including-results-for-renderer",function(){if(XC5===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;l$_===void 0&&(l$_=document.createElement("template"));var u=l$_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);XC5=Y}Y=XC5;return Y},{mode:2});var ZK6;var iK_;_.$s("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var lu=function(){return _.Z.apply(this,arguments)||this};
_.r(lu,_.Z);lu.prototype.computeExtraClasses_=function(Y,S){var P="";Y&&(P+=" "+Y.toLowerCase().replace(/_/g,"-"));S&&(P+=" "+S.toLowerCase().replace(/_/g,"-"));return P};
lu.prototype.computeUrlImg_=function(){var Y=this.data;Y.image&&(_.I(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.UD(Y.image.thumbnails,Number.MAX_VALUE)+")")};
lu.prototype.computeUrlImg_=lu.prototype.computeUrlImg_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],lu.prototype,"data",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lu.prototype,"computeUrlImg_",null);lu=_.Q([_.r0({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],lu);
_.A(lu,"yt-music-pass-feature-info-renderer",function(){if(iK_===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;ZK6===void 0&&(ZK6=document.createElement("template"));var u=ZK6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);iK_=Y}Y=iK_;return Y},{mode:2});var ojd;var txB;_.$s("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var XA=function(){return _.Z.apply(this,arguments)||this};
_.r(XA,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],XA.prototype,"data",void 0);XA=_.Q([_.r0({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],XA);
_.A(XA,"yt-no-results-found-showing-results-for-renderer",function(){if(txB===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;ojd===void 0&&(ojd=document.createElement("template"));var u=ojd;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);txB=Y}Y=txB;return Y},{mode:2});var Aac;var UNY;_.$s("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Zu=function(){return _.Z.apply(this,arguments)||this};
_.r(Zu,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Zu.prototype,"data",void 0);Zu=_.Q([_.r0({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Zu);
_.A(Zu,"yt-results-without-quotes-renderer",function(){if(UNY===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Aac===void 0&&(Aac=document.createElement("template"));var u=Aac;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);UNY=Y}Y=UNY;return Y},{mode:2});var Qc1;var kOI;_.$s("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var iu=function(){return _.Z.apply(this,arguments)||this};
_.r(iu,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],iu.prototype,"data",void 0);iu=_.Q([_.r0({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],iu);
_.A(iu,"yt-search-no-results-renderer",function(){if(kOI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Qc1===void 0&&(Qc1=document.createElement("template"));var u=Qc1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);kOI=Y}Y=kOI;return Y},{mode:2});var Mx5;var yaB;_.$s("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var ob=function(){return _.Z.apply(this,arguments)||this};
_.r(ob,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ob.prototype,"data",void 0);ob=_.Q([_.r0({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],ob);
_.A(ob,"yt-showing-results-for-renderer",function(){if(yaB===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Mx5===void 0&&(Mx5=document.createElement("template"));var u=Mx5;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);yaB=Y}Y=yaB;return Y},{mode:2});var NYc;var HKj;var Vx1;var eGo;var tt=function(){var Y=_.Z.apply(this,arguments)||this;Y.answerExpanded=!1;return Y};
_.r(tt,_.Z);tt.prototype.toggleAnswer_=function(Y){var S=_.oK(Y);S&&S.classList.contains("yt-simple-endpoint")||(Y.preventDefault(),Y.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
tt.prototype.toggleAnswer_=tt.prototype.toggleAnswer_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],tt.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],tt.prototype,"answerExpanded",void 0);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],tt.prototype,"toggleAnswer_",null);
tt=_.Q([_.r0({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],tt);
_.A(tt,"yt-generic-faq-question-renderer",function(){if(eGo===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Vx1===void 0&&(Vx1=document.createElement("template"));var u=Vx1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);eGo=Y}Y=eGo;return Y},{mode:2});_.$s("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var At=function(){return _.Z.apply(this,arguments)||this};
_.r(At,_.Z);At.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],At.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],At.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],At.prototype,"data",void 0);At=_.Q([_.r0({is:"yt-faq-section-renderer",disableElementRegistration:!0})],At);
_.A(At,"yt-faq-section-renderer",function(){if(HKj===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;NYc===void 0&&(NYc=document.createElement("template"));var u=NYc;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);HKj=Y}Y=HKj;return Y},{mode:2});var OK1;var You;_.$s("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var UH=function(){return _.Z.apply(this,arguments)||this};
_.r(UH,_.Z);
UH.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],UH.prototype,"data",void 0);UH=_.Q([_.r0({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],UH);
_.A(UH,"yt-offer-item-expanded-renderer",function(){if(You===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;OK1===void 0&&(OK1=document.createElement("template"));var u=OK1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);You=Y}Y=You;return Y},{mode:2});var So5;var PR1;_.$s("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Q8=function(){return _.Z.apply(this,arguments)||this};
_.r(Q8,_.Z);
Q8.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"}}}}};
Q8.prototype.computeFullWidthMode=function(Y){return!(!Y||!Y.fullWidthMode)};
Q8.prototype.computeBorderlessMode=function(Y){return!(!Y||!Y.borderlessMode)};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Q8.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.k("design:type",Boolean)],Q8.prototype,"fullWidthMode",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.k("design:type",Boolean)],Q8.prototype,"borderlessMode",void 0);Q8=_.Q([_.r0({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Q8);
_.A(Q8,"yt-offer-item-renderer",function(){if(PR1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;So5===void 0&&(So5=document.createElement("template"));var u=So5;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);PR1=Y}Y=PR1;return Y},{mode:2});var uN1;var Wj6;_.$s("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var kL=function(){return _.Z.apply(this,arguments)||this};
_.r(kL,_.Z);kL.prototype.computeAriaLevel_=function(Y){return this.getLevelID_(Y)};
kL.prototype.getLevelID_=function(Y){return(Y=Y.match(/[0-9]+$/))&&Y.length==1?Y[0]:"1"};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],kL.prototype,"data",void 0);_.Q([_.X({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.k("design:type",String)],kL.prototype,"ariaLevel",void 0);_.Q([_.X({value:"heading",reflectToAttribute:!0}),_.k("design:type",String)],kL.prototype,"role",void 0);
_.Q([_.X({value:-1,reflectToAttribute:!0}),_.k("design:type",Number)],kL.prototype,"tabindex",void 0);kL=_.Q([_.r0({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],kL);
_.A(kL,"yt-subscription-product-header-renderer",function(){if(Wj6===void 0){var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;uN1===void 0&&(uN1=document.createElement("template"));var u=uN1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Wj6=Y}Y=Wj6;return Y},{mode:2});var zZB;var mX1;_.$s("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var M5=function(){return _.Z.apply(this,arguments)||this};
_.r(M5,_.Z);M5.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:_.rL("menuRenderer"),events:!0}}};
M5.prototype.onStampFinished_=function(){_.I(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
M5.prototype.onStampFinished_=M5.prototype.onStampFinished_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],M5.prototype,"data",void 0);_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],M5.prototype,"onStampFinished_",null);
M5=_.Q([_.r0({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],M5);
_.A(M5,"yt-subscription-product-renderer",function(){if(mX1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;zZB===void 0&&(zZB=document.createElement("template"));var u=zZB;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);mX1=Y}Y=mX1;return Y},{mode:2});var n8c;var jG6;_.$s("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var y8=function(){return _.Z.apply(this,arguments)||this};
_.r(y8,_.Z);y8.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
y8.prototype.imageScrimColorValuesChanged_=function(){var Y,S=(Y=this.data)==null?void 0:Y.imageScrimColorValues;_.I(this.hostElement).querySelector("#scrim").style.backgroundColor=S?_.hK(S[0]):"transparent"};
y8.prototype.imageScrimColorValuesChanged_=y8.prototype.imageScrimColorValuesChanged_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],y8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],y8.prototype,"data",void 0);
_.Q([_.zY("data.imageScrimColorValues"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],y8.prototype,"imageScrimColorValuesChanged_",null);y8=_.Q([_.r0({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],y8);
_.A(y8,"yt-subscription-product-upsell-offer-renderer",function(){if(jG6===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;n8c===void 0&&(n8c=document.createElement("template"));var u=n8c;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);jG6=Y}Y=jG6;return Y},{mode:2});var J3j;var Bj_;var c3Y;var CRj;var qoc;var RZY;var N5=function(){return _.Z.apply(this,arguments)||this};
_.r(N5,_.Z);N5.prototype.onYtServiceRequestError_=function(Y){_.hQ(this.hostElement,Y.detail.error.message)};
N5.prototype.onYtServiceRequestError_=N5.prototype.onYtServiceRequestError_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],N5.prototype,"data",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],N5.prototype,"collapsible",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],N5.prototype,"isManageRed",void 0);
_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],N5.prototype,"onYtServiceRequestError_",null);N5=_.Q([_.r0({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],N5);
_.A(N5,"yt-single-ypc-offer-renderer",function(){if(RZY===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;qoc===void 0&&(qoc=document.createElement("template"));var u=qoc;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);RZY=Y}Y=RZY;return Y},{mode:2});var H2=function(){return _.Z.apply(this,arguments)||this};
_.r(H2,_.Z);H2.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],H2.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],H2.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],H2.prototype,"isManageRed",void 0);H2=_.Q([_.r0({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],H2);
_.A(H2,"yt-single-ypc-offer-list-renderer",function(){if(CRj===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;c3Y===void 0&&(c3Y=document.createElement("template"));var u=c3Y;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);CRj=Y}Y=CRj;return Y},{mode:2});var xXu;var bgI;_.$s("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var V8=function(){return _.Z.apply(this,arguments)||this};
_.r(V8,_.Z);V8.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],V8.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],V8.prototype,"isManageRed",void 0);V8=_.Q([_.r0({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],V8);
_.A(V8,"yt-ypc-offers-list-renderer",function(){if(bgI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;xXu===void 0&&(xXu=document.createElement("template"));var u=xXu;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);bgI=Y}Y=bgI;return Y},{mode:2});_.$s("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var eA=function(){return _.Z.apply(this,arguments)||this};
_.r(eA,_.Z);
eA.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],eA.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],eA.prototype,"data",void 0);eA=_.Q([_.r0({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],eA);
_.A(eA,"yt-unlimited-manage-subscription-page-renderer",function(){if(Bj_===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;J3j===void 0&&(J3j=document.createElement("template"));var u=J3j;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Bj_=Y}Y=Bj_;return Y},{mode:2});var Tju;var KjI;var OH=function(){return _.Z.apply(this,arguments)||this};
_.r(OH,_.Z);_.z=OH.prototype;_.z.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.z.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.z.onKeypress_=function(Y){Y.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.z.handleHeaderTap_=function(Y){Y.preventDefault();Y.stopPropagation();this.expandOffers_()};
_.z.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.z.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
OH.prototype.dataChanged_=OH.prototype.dataChanged_;_.Q([_.p(_.x1),_.k("design:type",Object)],OH.prototype,"ironA11yKeysBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],OH.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],OH.prototype,"offersVisible_",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OH.prototype,"dataChanged_",null);OH=_.Q([_.r0({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],OH);
_.A(OH,"yt-collapsible-ypc-offer-renderer",function(){if(KjI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Tju===void 0&&(Tju=document.createElement("template"));var u=Tju;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);KjI=Y}Y=KjI;return Y},{mode:2});var E81;var faj;_.$s("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var YD=function(){return _.Z.apply(this,arguments)||this};
_.r(YD,_.Z);_.z=YD.prototype;_.z.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.z.dataChanged_=function(){if(this.data.backgroundImage){var Y=_.UD(this.data.backgroundImage.thumbnails,screen.width),S=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=S?"linear-gradient(180deg, "+S+"), url("+Y+")":"url("+Y+")";this.data.gtmId&&_.JD(this.data.gtmId,_.X3("GL",""))}};
_.z.onYtServiceRequestError_=function(Y){_.hQ(this.hostElement,Y.detail.error.message)};
_.z.getScrimLayerColorStops_=function(){var Y,S,P=(Y=this.data.unlimitedHeaderV2Data)==null?void 0:(S=Y.unlimitedHeaderV2Data)==null?void 0:S.scrimLayerColors;if(!P)return null;var u=100/P.length;return P.map(function(W,m){m*=u;return _.hK(W)+" "+m+"%"}).join(",")};
_.z.computeLogoWithPadding=function(Y){var S,P,u;return(Y=(S=Y.unlimitedLogoImage)==null?void 0:(P=S.thumbnails)==null?void 0:(u=P[0])==null?void 0:u.height)&&Y%31===0?!0:!1};
YD.prototype.onYtServiceRequestError_=YD.prototype.onYtServiceRequestError_;YD.prototype.dataChanged_=YD.prototype.dataChanged_;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],YD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.Q([_.X({computed:"computeLogoWithPadding(data)"}),_.k("design:type",Boolean)],YD.prototype,"logoWithPadding",void 0);
_.Q([_.X(),_.k("design:type",Object)],YD.prototype,"data",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],YD.prototype,"dataChanged_",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],YD.prototype,"onYtServiceRequestError_",null);YD=_.Q([_.r0({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],YD);
_.A(YD,"yt-unlimited-page-header-renderer",function(){if(faj===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;E81===void 0&&(E81=document.createElement("template"));var u=E81;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);faj=Y}Y=faj;return Y},{mode:2});var g8_;var $XI;_.$s("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var SP=function(){return _.Z.apply(this,arguments)||this};
_.r(SP,_.Z);SP.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],SP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],SP.prototype,"data",void 0);SP=_.Q([_.r0({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],SP);
_.A(SP,"yt-unlimited-user-notification-renderer",function(){if($XI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;g8_===void 0&&(g8_=document.createElement("template"));var u=g8_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);$XI=Y}Y=$XI;return Y},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Bkd=_.AI(function(Y){var S=_.tI(Y,{numberOfChips:5}).numberOfChips;return _.R("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.R(_.$Z,{each:function(){return Array(S==null?void 0:S())}},function(){return _.R("div",{class:"ytGhostChipShelfChip"})}))},"Pf");
}catch(e){_._DumpException(e)}
try{
var i7u,ot1,tYj,As_,Ugc,QD5,kqX,k0,Mf,yso,NQj,H7B,eA6,m1_,yA,zqd,SyZ,W8Z,uM6,P9_,YyI,ngY,jYI,J$_,BhY,Nf,c$1,C9o,qyB,K8d,Thj,bx5,Rqc,x1_,Eg1,f0X,ggI,$1u,r$o,GH1,I0_,wk1,pkY,F8_,d1c,Xk1,ixZ,ogc,tZX,A$I,QYX,kHZ,MZI,y$B,NhI,HxZ,VZj,Ox1,uIY,PVd,Y_Z,WoY,S_6,zJ1,JF6,j6o,mZ1,nSZ,el,B71,q_c,ESB,fbd,gSd,$ZX,rF1,Gl1,hJ1,vS1,DZu,Ib1,Lo5,wh_,ph1,MYX,bN_;
_.UA=function(Y){var S=new _.$2("Error accessing DB");return _.EOE().then(function(P){return new Promise(function(u,W){try{var m=P.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(Y);m.onsuccess=function(){var J=m.result;u(J?J.value:null)};
m.onerror=function(){S.params={key:Y,source:"onerror"};W(S)}}catch(J){S.params={key:Y,
thrownError:String(J)},W(S)}})},function(){return null})};
_.Z7_=function(Y,S){var P=_.RL8(S);P!=="javascript:"&&P!=="data:"&&Y.setAttribute("href",S)};
i7u=function(Y,S){return _.BT(Y.entities,"flowStateEntity",S)};
ot1=function(Y){return(Y=Y.getOption("captions","track"))?!!Y.displayName:!1};
tYj=function(Y,S){S=S.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(S==null||!S.length)return Y;var P=S.filter(function(J){return J});
S=Y.filter(function(J){return J.languageCode.startsWith("en")});
P=_.n(P);for(var u=P.next();!u.done;u=P.next())if(u=u.value,S.length){var W=S[0],m=Object.assign({},W);W.languageCode!==u.languageCode&&(m.displayName=W.languageName+" >> "+u.languageName,m.translationLanguage=u,Y.push(m))}return Y};
As_=function(Y){var S,P=(S=Y.getOption("captions","tracklist",{includeAsr:!0}))!=null?S:[];_.f("mweb_watch_captions_enable_auto_translate")&&(P=tYj(P,Y));return P};
Ugc=function(Y){return _.d1(Y,function(S){return S.languageCode==="en"})};
QD5=function(Y){var S=QA;if(ot1(Y))Y.setOption("captions","stickyLoading",{}),Y.setOption("captions","track",{});else{var P=_.d1(As_(Y),function(u){return u.displayName===S});
Y.setOption("captions","track",P)}};
kqX=function(Y){if(!Y)return 0;var S=Y.getPresentingPlayerType(),P=Y.getVideoData();return P&&P.isLive?(Y=Y.getProgressState(S),Y.seekableEnd-Y.seekableStart):Y.getDuration(S)};
k0=function(Y,S){_.pa(S,Y,function(){return MYX[S]},function(P){MYX[S]=P;
if(!_.f("mweb_player_ve_show_ks")){var u=_.pM(0);u&&P&&_.A6(u,P)}})};
Mf=function(Y){(Y=MYX[Y])&&_.Pp(_.BF(),Y)};
yso=function(Y,S){for(var P=_.n(Object.keys(Y)),u=P.next();!u.done;u=P.next())if(u=u.value,Y[u]!==S[u])return!1;return!0};
NQj=function(){return document.getElementById("player-control-overlay")};
H7B=function(Y){Y!==-1&&!_.f("player_controls_log_creation_killswitch")&&NQj()&&(_.Fk("pcu_cs",Y),_.Fk("pcu_ce"))};
eA6=function(Y){return _.R("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(Y.subscribeButton?[Y.subscribeButton,Y.channelAccess]:[Y.channelAccess]).map(function(S){return _.R("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.R("div",{class:"yt-profile-identity-info-view-model-wiz--button"},VYo(S)))}))};
_.O7I=function(Y){var S=Y.data;Y=Y.hideDivider;var P={};P=(P["yt-profile-identity-info-view-model-wiz__frame"]=!0,P["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!S.channelBanner,P);P={class:_.uN(P)};var u,W={imageBannerViewModel:{image:(u=S.channelBanner)==null?void 0:u.image,style:"IMAGE_BANNER_STYLE_INSET"}};u=_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},S.channelBanner?_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
VYo(W,{imageBannerViewModel:{isPositionRelative:!0}})):null);W=_.R("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},VYo(S.avatar));var m;var J=_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},S.channelDisplayName),S.verifiedOrOacBadge?_.R("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.R(_.ZZ,{data:{thumbnails:[{url:(m=S.verifiedOrOacBadge)==null?void 0:m.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);m=_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},J,VYo(S.threeDotMenu));J=_.R("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.R("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.R("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},S.channelHandle),S.channelPronouns&&S.channelHandle?_.R("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.R("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},S.channelPronouns)),_.R("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.R("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},S.leftOfBulletInfo),S.leftOfBulletInfo&&S.rightOfBulletInfo?_.R("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.R("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},S.rightOfBulletInfo)));m=_.R("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},m,J);return _.R("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.R("div",P,u,_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},W,m),S.channelDescription?_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},S.channelDescription):
null,eA6(S),Y?null:_.R("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
m1_=function(Y,S){var P=_.o_(Y,{}),u=YyI("top",S),W=YyI("bottom",S),m=YyI("left",S),J=YyI("right",S);return _.Jg({top:function(){return yA(P().position,u)},
bottom:function(){return yA(P().position,W)},
left:function(){return yA(P().position,m)},
right:function(){return yA(P().position,J)},
position:function(){return yA(P().positionType,SyZ)},
height:function(){return yA(P().height,Nf)},
width:function(){return yA(P().width,Nf)},
"min-width":function(){return yA(P().minWidth,Nf)},
"min-height":function(){return yA(P().minHeight,Nf)},
"max-width":function(){return yA(P().maxWidth,Nf)},
"max-height":function(){return yA(P().maxHeight,Nf)},
"aspect-ratio":function(){return yA(P().aspectRatio,String)},
"margin-top":function(){return yA(P().margin,u)},
"margin-bottom":function(){return yA(P().margin,W)},
"margin-left":function(){return yA(P().margin,m)},
"margin-right":function(){return yA(P().margin,J)},
"padding-top":function(){return yA(P().padding,u)},
"padding-bottom":function(){return yA(P().padding,W)},
"padding-left":function(){return yA(P().padding,m)},
"padding-right":function(){return yA(P().padding,J)},
"flex-direction":function(){return yA(P().flexDirection,P9_)},
"justify-content":function(){return yA(P().justifyContent,uM6)},
"align-items":function(){return yA(P().alignItems,W8Z)},
"flex-grow":function(){return yA(P().flexGrow,String)},
"flex-shrink":function(){return yA(P().flexShrink,String)},
"flex-basis":function(){return yA(P().flexBasis,Nf)},
"align-self":function(){return yA(P().alignSelf,W8Z)},
"flex-wrap":function(){return yA(P().flexWrap,zqd)},
"align-content":function(){return yA(P().alignContent,W8Z)}})};
yA=function(Y,S){return Y!==void 0?S(Y):void 0};
zqd=function(Y){switch(Y){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
SyZ=function(Y){switch(Y){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
W8Z=function(Y){switch(Y){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
uM6=function(Y){switch(Y){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
P9_=function(Y){switch(Y){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
YyI=function(Y,S){var P=S==="rtl";switch(Y){case "top":var u=ngY;break;case "bottom":u=jYI;break;case "left":u=J$_;break;default:u=BhY}return function(W){return yA(u(W,P),Nf)}};
ngY=function(Y){var S=Y.top;var P=Y.vertical;Y=Y.all;var u;return(u=S!=null?S:P)!=null?u:Y};
jYI=function(Y){var S=Y.bottom;var P=Y.vertical;Y=Y.all;var u;return(u=S!=null?S:P)!=null?u:Y};
J$_=function(Y,S){var P=Y.left;var u=Y.end;var W=Y.start;var m=Y.horizontal;Y=Y.all;var J,c;return(c=(J=P!=null?P:S?u:W)!=null?J:m)!=null?c:Y};
BhY=function(Y,S){var P=Y.right;var u=Y.end;var W=Y.start;var m=Y.horizontal;Y=Y.all;var J,c;return(c=(J=P!=null?P:S?W:u)!=null?J:m)!=null?c:Y};
Nf=function(Y){var S=Y.value;switch(Y.unit){case "YPC_DIMENSION_UNIT_POINT":return S+"px";case "YPC_DIMENSION_UNIT_FRACTION":return S+"%";default:return""+S}};
c$1=function(Y){switch(Y){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
C9o=function(Y){var S=Y!=null?Y:{};Y=S.fontRole;var P=S.fontSize;S=S.fontWeight;if(Y!==null&&P!==null)switch(Y){case "YPC_FONT_ROLE_DISPLAY":switch(P){case "YPC_FONT_SIZE_L":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(P){case "YPC_FONT_SIZE_L":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return S===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(P){case "YPC_FONT_SIZE_XL":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
qyB=function(Y,S){return _.BT(Y.entities,"pdpStateEntity",S)};
K8d=function(Y,S,P){function u(x){return Object.values(x).map(function(b){var T=b.productId;b=b.pricingOptionIndex;return Rqc(W(T).pricingOptions,b).pricingOptionId})}
function W(x){return c().get(x)}
function m(x){x=u(x);P(x)}
var J=x1_([Y,S],function(x,b){var T=x==null?void 0:x.selectedPricingOptions;x={};var K=!0;if(T&&b.length)for(var G=_.n(b),v=G.next();!v.done;v=G.next()){v=v.value;var a=bx5(v.pricingOptions,function(w){a:{w=w.pricingOptionId;for(var F=_.n(T),U=F.next();!U.done;U=F.next())if(U.value===w){w=!0;break a}w=!1}return w});
a>=0&&(K=!1,x[v.groupId]={productId:v.productId,pricingOptionIndex:a})}K&&b.length&&(x[b[0].groupId]={productId:b[0].productId,pricingOptionIndex:0});return x}),c=x1_([S],function(x){return new Map(x.map(function(b){return[b.productId,
b]}))}),C=x1_([S],function(x){var b=new Map;
x=_.n(x);for(var T=x.next();!T.done;T=x.next()){var K=T.value;T=K.groupId;var G=K.productId;K=_.n(Thj(K.pricingOptions));for(var v=K.next();!v.done;v=K.next()){var a=_.n(v.value);v=a.next().value;a=a.next().value;b.set(a.pricingOptionId,{groupId:T,productId:G,index:v,pricingOption:a})}}return b});
return{getProductById:W,isProductSelected:function(x){var b=W(x);if(!b)return!1;var T;return((T=J()[b.groupId])==null?void 0:T.productId)===x},
getSelectedPricingOptions:function(){return Object.values(J()).map(function(x){var b=x.productId;x=x.pricingOptionIndex;return Rqc(W(b).pricingOptions,x)})},
getSelectedProductByGroupId:function(x){var b;return(x=(b=J()[x])==null?void 0:b.productId)?W(x):void 0},
onProductSelected:function(x){var b=W(x);if(b){var T=J(),K;if(((K=T[b.groupId])==null?void 0:K.productId)!==x){var G,v;K=(v=(G=T[b.groupId])==null?void 0:G.pricingOptionIndex)!=null?v:0;G=0;for(v=b.pricingOptions[Symbol.iterator]();!v.next().done;)++G;G<=K&&(K=0);G={};m(Object.assign({},T,(G[b.groupId]={productId:x,pricingOptionIndex:K},G)))}}},
onPricingOptionSelected:function(x){var b=C().get(x);if(b){x=b.groupId;var T=b.productId;b=b.index;var K=J(),G,v;if(((G=K[x])==null?void 0:G.productId)!==T||((v=K[x])==null?void 0:v.pricingOptionIndex)!==b)G={},m(Object.assign({},K,(G[x]={productId:T,pricingOptionIndex:b},G)))}},
onClearGroupSelected:function(x){var b=J();b[x]&&(b=Object.fromEntries(Object.entries(b).filter(function(T){return _.n(T).next().value!==x})),m(b))}}};
Thj=function(Y){return function P(){var u,W,m,J;return _.p2X(P,function(c){switch(c.nextAddress){case 1:_.V3(c,2),u=0,W=_.n(Y),m=W.next();case 4:if(m.done){c.jumpTo(2);break}J=m.value;return _.q(c,[u++,J],7);case 7:m=W.next();c.jumpTo(4);break;case 2:_.Hx(c),_.e2(c,0)}})}()};
bx5=function(Y,S){Y=_.n(Thj(Y));for(var P=Y.next();!P.done;P=Y.next()){var u=_.n(P.value);P=u.next().value;u=u.next().value;if(S(u))return P}return-1};
Rqc=function(Y,S){Y=_.n(Thj(Y));for(var P=Y.next();!P.done;P=Y.next()){var u=_.n(P.value);P=u.next().value;u=u.next().value;if(P===S)return u}};
x1_=function(Y,S){var P,u;return function(){for(var W=Y.map(function(J){return J()}),m=0;m<W.length;m++)if(!P||W[m]!==P[m]){P=W;
u=S.apply(null,_.cz(W));break}return u}};
Eg1=function(Y){var S;return!!(Y.productId&&Y.groupId&&((S=Y.pricingOptions)==null?0:S.length)&&Y.pricingOptions.every(function(P){return P.pricingOptionId}))};
f0X=function(Y,S,P){return K8d(Y,x1_([S],function(u){return u.filter(Eg1)}),P)};
ggI=function(Y){switch(Y){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
$1u=function(Y,S){return S.length===0?[Y]:[Y.slice(0,S[0]),Y.slice(S[0])].filter(function(P){return P.length>0})};
r$o=function(Y){switch(Y){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
GH1=function(Y,S,P,u){u=Object.assign({},u);_.g8(u,Hn,{selectedOptionId:Y,primaryButtonOverride:P});_.X2().dispatch(_.qE("flowStateEntity",S,u))};
_.D11=function(){if(!hqY){var Y=_.n(_.qb(new Map,void 0,"UJImUe"));hqY=Y.next().value;vgd=Y.next().value}return hqY};
I0_=function(Y){if(Y)return _.D11()().get(Y)};
_.a0d=function(Y,S){if(Y&&S){var P=_.D11();P().set(Y,S);Y=P();vgd(new Map(Y))}};
_.L8c=function(Y){return{onSubmit:function(){var S;(S=I0_(Y()))==null||S.onSubmit()},
isValid:function(){var S=I0_(Y());return S?S.isValid():!0},
isSubmitting:function(){var S,P;return!!((S=I0_(Y()))==null?0:(P=S.isSubmitting)==null?0:P.call(S))}}};
wk1=function(Y,S){return _.BT(Y.entities,"contextNoteFeedEntityPayload",S)};
pkY=function(Y){Y.style.height="auto";Y.style.height=Y.scrollHeight+"px"};
F8_=function(Y){return[Y.syncStep,Y.asyncStep].filter(function(S){return S!==void 0})};
d1c=function(Y){var S,P,u;if(Y=(S=Y.structuredContextNoteFormSchema)==null?void 0:(P=S.fieldSchemas)==null?void 0:(u=P.noteBody)==null?void 0:u.validationSchema)for(S=_.n(F8_(Y)),P=S.next();!P.done;P=S.next()){P=P.value.rules;if(!P)break;P=_.n(P);for(P=P.next();!P.done;P=P.next())return _.g(P.value,_.sY_)}};
Xk1=function(Y){if(Y){Y=_.n(F8_(Y));for(var S=Y.next();!S.done;S=Y.next()){S=S.value.rules;if(!S)break;S=_.n(S);for(S=S.next();!S.done;S=S.next())return _.g(S.value,l0Y)}}};
ixZ=function(Y){if(Y){Y=_.n(F8_(Y));for(var S=Y.next();!S.done;S=Y.next()){S=S.value.rules;if(!S)break;S=_.n(S);for(S=S.next();!S.done;S=S.next())return _.g(S.value,ZxB)}}};
ogc=function(Y){Y=/^https?:\/\//.test(Y)?Y:"http://"+Y;try{var S=_.d7(Y)}catch(P){return!1}if(S.toString()!==Y)return!1;Y=S.JSC$7905_domain_.split(".");return Y.length>1&&Y.every(function(P){return!!P})};
tZX=function(Y,S,P,u){var W;u=(W=u.structuredContextNoteData)==null?void 0:W.createCommentEndpoint;if(W=_.g(u,_.vpJ))return W.commentText=_.kW(Y),W.videoPositionMention=S,W.sources=P,u};
A$I=function(Y){return Y==null?void 0:Y.stringValue};
QYX=function(Y,S,P){Y=Y.map(function(u,W){return{listItemViewModel:{title:u.title,subtitle:u.subtitle,leadingImage:u.leadingImage,trailingImage:W===S?U1I:void 0,rendererContext:{commandContext:{onTap:u.onTap}}}}});
return Object.assign({},P&&{header:{panelHeaderViewModel:{title:P}}},{content:{listViewModel:{listItems:Y}}})};
kHZ=function(Y,S){if(Y&&S)switch(S){case "SELECTION_TYPE_BOOL":return Y.boolValue;case "SELECTION_TYPE_INT":return Y.intValue;case "SELECTION_TYPE_STRING":return Y.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return Y.privacyStatusValue}};
MZI=function(Y){var S;Y=(S=Y.options)==null?void 0:S.findIndex(function(P){return P.isSelected});
return Y===void 0?-1:Y};
y$B=function(Y,S,P){var u=function(){return Y().label},W={},m=_.Si("ytDropdownViewModelLabel",(W.ytDropdownViewModelLabelError=S,W));
return _.R(_.gw,{cond:function(){return Y().label&&!(P()===-1&&Y().label&&!Y().placeholderText)},
then:function(){return _.R("div",{class:m},_.R(_.qw,{text:u}))}})};
NhI=function(Y,S){var P={};P=_.Si("ytDropdownViewModelTitle",(P.ytDropdownViewModelTitlePlaceholder=function(){return S()===-1},P));
return _.R("div",{class:P},_.R(_.qw,{text:function(){var u=Y();var W=S();if(W===-1)u=u.placeholderText?u.placeholderText:u.label;else{var m,J;u=(m=u.options)==null?void 0:(J=m[W])==null?void 0:J.title}return u}}))};
HxZ=function(Y,S){var P=function(){return Y().hint};
return _.R(_.SX,null,_.R(_.gw,{cond:function(){return P()&&!S()},
then:function(){return _.R("div",{class:_.Si("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.R(_.qw,{text:P,className:"ytDropdownViewModelSupportText"}))}}),_.R(_.gw,{cond:S,
then:function(){return _.R("div",{id:"dropdown-view-model-error",role:"alert",class:_.Si("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.R(_.BX,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.R(_.qw,{text:S,className:"ytDropdownViewModelSupportText"}))}}))};
VZj=function(Y,S){var P=_.E().resolve(_.QpS);_.LE(function(){var u=Y().id;u&&P!=null&&P.dropdownMap.set(u,S)})};
Ox1=function(Y){Y=_.g(Y.scheduleButton,eqI);Y=_.g(Y==null?void 0:Y.primaryButton,_.Gz);Y=_.g(Y==null?void 0:Y.onTap,_.hL);var S,P,u=((P=_.g(Y,_.qT))==null?void 0:P.commands)||[Y];P=_.n(u);for(Y=P.next();!Y.done&&!(S=_.g(Y.value,_.Grs));Y=P.next());var W;S=(W=S)==null?void 0:W.createBroadcastRequest;if(!S)throw Error("Ij");return S};
uIY=function(Y,S,P){P=P===void 0?{}:P;var u,W;return _.B(function(m){if(u=Y_Z(S))return m.return(u);(W=S_6(Y,S,P))&&PVd(S,W);return m.return(W)})};
PVd=function(Y,S){var P=WoY(Y);P&&S.then(function(u){_.E().resolve(_.VG).put(P,new _.e4({innertubeResponse:u}))})};
Y_Z=function(Y){if(Y=WoY(Y)){var S=_.E().resolve(_.VG);if(S.has(Y))return S.get(Y).then(function(P){return P==null?void 0:_.na(P)})}return null};
WoY=function(Y){var S=_.g(Y.endpoint,_.yx);if(S!=null&&S.videoId)return S={videoId:S.videoId},_.f("web_imp_player_mute_params")&&(S.mutedAtStart=Y.startPlaybackInMutedState),_.Mq("inline_playback",S)};
S_6=function(Y,S,P){Y=_.sn(Y,S.endpoint,zJ1(S,P)).then(function(u){return u});
return Promise.resolve(Y)};
zJ1=function(Y,S){S=_.f("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!Y.startPlaybackInMutedState},S):Object.assign({},{vis:5,autonav:"1"},S);var P;S={contentPlaybackContext:_.Tp(S,(P=_.g(Y.endpoint.commandMetadata,_.Yo))==null?void 0:P.url,window.location.href)};_.f("web_imp_player_mute_params")&&(S.overrideMutedAtStart=!Y.startPlaybackInMutedState);return S};
JF6=function(Y,S){var P=window.MutationObserver;P&&(VA=new P(function(u,W){u=_.n(u);for(var m=u.next();!m.done;m=u.next()){m=m.value;var J;if(J=m.type==="childList"&&m.target)a:{J=Y;m=mZ1(m.target);J=mZ1(J);for(var c=null,C=0;C<m.length;C++)if(J.includes(m[C])){if(C===0){J=!1;break a}c=m[C];break}c?(m=nSZ(m,c),J=nSZ(J,c),J=m<J):J=!1}if(J){S();W.disconnect();break}}}),(P=j6o())&&VA.observe(P,{childList:!0,
subtree:!0}))};
j6o=function(){var Y=document.getElementsByTagName("ytd-rich-grid-renderer");if(Y.length>0)return Y[0];Y=document.getElementsByTagName("ytd-section-list-renderer");return Y.length>0?Y[0]:null};
mZ1=function(Y){for(var S=[];Y;)S.push(Y),Y=Y.parentElement;return S};
nSZ=function(Y,S){var P=Array.from(S.children);S=Y.indexOf(S);return S>0?P.indexOf(Y[S-1]):-1};
el=function(Y,S,P){P=P===void 0?{}:P;return _.Td(Y,P,S)};
B71=function(Y){return Y==null?void 0:Y.filter(function(S){return S.premiereTrailerBadgeRenderer})};
q_c=function(Y,S){var P="",u="";switch(Y){case -1:case 0:P=S?"VOLUME_OFF":"VOLUME_OFF_FILLED";u=cF6;break;case 1:P=S?"VOLUME_UP_OUTLINE":"VOLUME_UP";u=CV6;break;default:_.O6(Y)}return{iconName:P,ariaLabel:u}};
ESB=function(Y,S){var P=RJu,u=_.n(_.qb(xZB(new bN_(function(){},P,S)),void 0,"PAnyd")),W=u.next().value,m=u.next().value,J=new bN_(function(c){m(c)},P,S);
_.D6(function(){Promise.resolve().then(function(){var c,C=(c=Y())!=null?c:{};J.playerControlsData=C;_.f("player_controls_skip_double_signal_old")&&(J.lastSeenPlayerApi=_.dx(C.playerApi));_.f("player_controls_skip_double_signal_old")||(J.lastSeenPlayerApi=_.dx(C.playerApi));T71(J)});
_.aI(function(){Ko_(J)})});
_.aI(function(){Ko_(J)});
return function(){return W()}};
fbd=function(Y){return function(S){var P=Y(),u={playerState:S};if(S===1){var W;(W=P.playerApi)==null||W.loadModule("captions")}if(S===0){var m;(m=P.playerApi)==null||m.unloadModule("captions")}(S!==-1||_.f("web_imp_controls_set_player_state_killswitch"))&&P.setState(u)}};
gSd=function(Y){return function(S){Y().setState({playbackRate:S})}};
$ZX=function(Y){return function(S){var P=Y(),u=P.playerApi,W=u==null?void 0:u.getVideoData(),m=(W==null?void 0:W.isLive)||!1;W=W==null?void 0:W.video_id;m={videoDuration:kqX(u||void 0),isLive:m,videoId:W};m.videoId!==P.videoId&&(m=Object.assign({},_.lv9(u),m));if(S==null?0:S.playertype)m.playerType=S.playertype;if(u){m.captionsAvailable=!!u.getOptions("captions");S=m;var J;W=(J=u.getStoryboardLevel(u.getNumberOfStoryboardLevels()-1))==null?void 0:J.intervalMs;S.storyboardInterval=W?W/1E3:void 0;m.captionsAvailable&&
(m.captionsEnabled=ot1(u))}m.volumeMuted=!(u==null||!u.isMuted());P.setState(m)}};
rF1=function(Y){return function(S){var P=Y(),u=P.playerApi;if(u){var W=u.getPresentingPlayerType();S={playedTime:S||0,percentLoaded:u.getVideoLoadedFraction(),playerType:W};P.playerState===0&&(S.playedTime=P.videoDuration);P.isLive&&(W=u.getProgressState(W),S.playedTime-=W.seekableStart,S.videoDuration=kqX(u));if(P.playerType===1)u=!1;else{var m;if(_.f("embeds_emc3ds_dompaused_fix")&&((m=P.uxConfig)==null?0:m.showCuedOverlay)){var J;u=!((J=P.playerApi)==null?0:J.getPlayerStateObject(P.playerType).isDomPaused)}else u=
!0}u&&delete S.playedTime;P.setState(S)}}};
Gl1=function(Y){return function(){var S=Y(),P,u,W,m={volume:(W=(P=S.playerApi)==null?void 0:P.getVolume())!=null?W:0,volumeMuted:!((u=S.playerApi)==null||!u.isMuted())};S.setState(m)}};
hJ1=function(Y){return function(){var S=Y(),P=S.playerApi;if(P){var u={captionsAvailable:!!P.getOptions("captions")};u.captionsAvailable&&(u.captionsEnabled=ot1(P));S.setState(u)}}};
vS1=function(Y){return function(){var S=Y();if(S.playerApi&&!(S.volumeMuted||S.controlsVisible&&S.isProbablyAScreenreaderUser)){S.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var P;(P=document.querySelector(".player-control-play-pause-icon"))==null||P.focus()}}};
DZu=function(Y){return{appApi:Object.assign({},_.ava(),{showCaptionsToggleToast:function(S){var P,u;(u=(P=Y()).showCaptionsToggleToast)==null||u.call(P,S)},
openInMiniplayer:function(){var S,P;(P=(S=Y()).openInMiniplayer)==null||P.call(S)}})}};
Ib1=function(Y,S){var P,u,W;return!!(Y==null?0:(P=Y.playerResponse)==null?0:(u=P.playerConfig)==null?0:(W=u.inlinePlaybackConfig)==null?0:W.showScrubbingControls)&&!(S==null?0:S.hideScrubbingControls)};
_.ab5=function(Y){var S=!Y.miniplayerIsActive;return[5,2,0].includes(Y.miniplayerPlaybackState)||S};
Lo5={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};wh_=function(Y,S){var P,u,W,m,J;_.B(function(c){if(!S.length)return c.return([]);P=[];u=_.n(S);for(W=u.next();!W.done;W=u.next())m=W.value,(J=Y.resolveIcon(m))&&!Y.iconCache[J.url]&&P.push(_.Pfc(Y,J).then(function(){}).catch(function(){}));
return c.return(Promise.all(P))})};
ph1=function(Y,S){var P=[];S=(new Set(S)).values();S=_.n(S);for(var u=S.next();!u.done;u=S.next()){u=u.value;for(var W=_.n(Object.values(Lo5)),m=W.next();!m.done;m=W.next())P.push({iconName:u,iconStyle:m.value})}wh_(Y.iconManager,P)};
_.Foo=function(Y,S,P){var u=P!=null?P:Y.iconsToFetch;u!=null&&u.length?S!==void 0&&S>=0?_.hp(_.wc,function(){ph1(Y,u)},S):ph1(Y,u):Promise.resolve()};
MYX={};
bN_=function(Y,S,P){var u=this;this.renderFn=Y;this.listeners=S;this.context=P;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var W;this.lastSeenPlayerApi=_.dx((W=this.playerControlsData)==null?void 0:W.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.lv9(),void 0);_.f("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){xZB(u).setState({playerState:-1});u.resetRecentlyNavigatedJobId&&_.wc.cancelJob(u.resetRecentlyNavigatedJobId);u.recentlyNavigated=
!0;u.resetRecentlyNavigatedJobId=_.wc.addJob(function(){u.recentlyNavigated=!1},8,1E4)})};
bN_.prototype.setState=function(Y){if(!_.f("mweb_player_skip_no_op_state_changes")||!yso(Y,this.state))if(this.state=Object.assign({},this.state,Y),!_.f("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)Y=-1,_.f("player_controls_log_creation_killswitch")||NQj()||(Y=(0,_.Oh)()),_.Fk("pcu_s"),_.Fk("pcu_se"),_.Fk("pcu_rs"),this.renderFn(xZB(this)),_.Fk("pcu_re"),H7B(Y),_.wc.addJob(function(){_.Fk("pcu_ap")},8)};
var xZB=function(Y){var S;var P=_.dx((S=Y.playerControlsData)==null?void 0:S.playerApi);return Object.assign({},Y.state,{setState:Y.boundSetState,domMeasurements:{progressBarLineRect:Y.progressBarLineRect},playerApi:P,appApi:Y.context.appApi,playerContainer:Y.context.playerContainer,playerControlContainer:Y.context.playerControlContainer,uxConfig:Y.context.uxConfig})},T71=function(Y){Y.listeners.forEach(function(S){Y.eventListenerCleanupFunctions.push(S.register(function(){return xZB(Y)},function(){return Y.getData()}))})},
Ko_=function(Y){Y.eventListenerCleanupFunctions.forEach(function(S){S()});
Y.eventListenerCleanupFunctions.length=0};
bN_.prototype.getData=function(){return this.playerControlsData};
var OA=new _.N("abuseReportFlowState");var s6c=new _.N("feedbackFormFlowState");var dZI=new _.N("inputBoxViewModel");var lb5=new _.N("flowNextStepCommand");var Xh5=new _.N("flowPrevStepCommand");var ZN_=new _.N("updateFlowCommand");_.iNo=new _.N("flowStepRenderer");_.sY_=new _.N("lengthValidationRule");var l0Y=new _.N("regexValidationRule");var ZxB=new _.N("selectedValidationRule");var oSY=new _.N("talkToRecsViewModel");var tLo=new _.N("creatorGoalSetUpFlowDropdownItemViewModel");var AF6=new _.N("creatorGoalSetUpFlowDropdownViewModel");_.UZu=new _.N("radioButtonGroupViewModel");var eqI=new _.N("panelFooterViewModel");var Q65=new _.N("ypcCancelRecurrenceCommand");var kl1=new _.N("cancellationFlowState");var Hn=new _.N("premiumPurchaseFlowState");var ML1=new _.N("surveyAnswerCardRenderer");var yF6=new _.N("showMoreButtonRenderer");var N75;var HN6,VLX=function(){if(HN6!==void 0)return HN6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;N75===void 0&&(N75=document.createElement("template"));var u=N75;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return HN6=Y};var Y4=function(){var Y=_.Z.apply(this,arguments)||this;Y.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";Y.goalDescription="";Y.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";Y.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";Y.startButtonId="start-button";Y.exampleButtonId="example-button";return Y};
_.r(Y4,_.Z);_.z=Y4.prototype;_.z.getGoalDropdownItems=function(){var Y,S;return(S=_.g((Y=this.data)==null?void 0:Y.purchaseTargetDropdown,AF6))==null?void 0:S.dropdownItems};
_.z.getTimerDropdownItems=function(){var Y,S;return(S=_.g((Y=this.data)==null?void 0:Y.timerDropdown,AF6))==null?void 0:S.dropdownItems};
_.z.getColorDropdownItems=function(){var Y,S;return(S=_.g((Y=this.data)==null?void 0:Y.colorDropdown,AF6))==null?void 0:S.dropdownItems};
_.z.getDropdownItemText=function(Y){var S;return(S=_.g(Y,tLo))==null?void 0:S.itemLabel};
_.z.getDropdownItemValue=function(Y){Y=_.g(Y,tLo);return(Y==null?void 0:Y.timeLimit)||(Y==null?void 0:Y.purchaseTarget)||(Y==null?void 0:Y.eligiblePurchaseType)};
_.z.updateFlowState=function(Y){_.nb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:Y}])};
_.z.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.z.updateGoalValue=function(Y){this.goal=Y.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.z.onTextValueChanged=function(Y){this.goalDescription=Y.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.z.updateTimerValue=function(Y){this.timer=Y.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.z.updateTierValue=function(Y){this.tier=Y.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.z.getButtonViewModel=function(Y){Y=(Y==null?void 0:Y.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var S,P=_.g((S=this.data)==null?void 0:S.startGoalButton,_.Gz);return Object.assign({},P,{state:Y})};
_.y6.Object.defineProperties(Y4,{template:{configurable:!0,enumerable:!0,get:function(){return VLX()}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Y4.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Y4.prototype,"goal",void 0);_.Q([_.X(),_.k("design:type",Object)],Y4.prototype,"goalDescription",void 0);_.Q([_.X(),_.k("design:type",Object)],Y4.prototype,"timer",void 0);_.Q([_.X(),_.k("design:type",Object)],Y4.prototype,"tier",void 0);
_.Q([_.X(),_.k("design:type",Object)],Y4.prototype,"startButtonId",void 0);_.Q([_.X(),_.k("design:type",Object)],Y4.prototype,"exampleButtonId",void 0);Y4=_.Q([_.r0({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Y4);_.A(Y4,"yt-creator-goal-set-up-flow-view-model",function(){return VLX()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var eJY;var ON_;var YuY;var S7=function(){return _.Z.apply(this,arguments)||this};
_.r(S7,_.Z);_.Q([_.X(),_.k("design:type",Object)],S7.prototype,"data",void 0);S7=_.Q([_.r0({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],S7);
_.A(S7,"yt-survey-answer-card-renderer",function(){if(YuY===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;ON_===void 0&&(ON_=document.createElement("template"));var u=ON_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);YuY=Y}Y=YuY;return Y},{mode:2});var Suo;var Pyu;var Pw=function(){return _.Z.apply(this,arguments)||this};
_.r(Pw,_.Z);_.z=Pw.prototype;_.z.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.z.selectedItemChanged=function(Y){_.nb(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[Y.feedbackToken||""]}])};
_.z.surveyAnswerCardRendererClicked=function(Y){if(Y.target&&_.g(Y.model.item,ML1)){var S=Y.target;Y=_.g(Y.model.item,ML1);Y.onTapCommand?_.cu(S,[Y.onTapCommand],S):this.data.onTapCommand&&_.cu(S,[this.data.onTapCommand],S);this.selectedItemChanged(Y)}};
_.z.checkIsCancellationStyle=function(Y){return Y==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.z.updateSelectedItemFromBinding=function(Y){this.selectedItem=Y.detail.value};
Pw.prototype.onSelectedItemChanged=Pw.prototype.onSelectedItemChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Pw.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Pw.prototype,"selectedItem",void 0);_.Q([_.X({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Pw.prototype,"isCancellationStyle",void 0);
_.Q([_.zY("selectedItem"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pw.prototype,"onSelectedItemChanged",null);Pw=_.Q([_.r0({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Pw);
_.A(Pw,"yt-survey-flow-step-renderer",function(){if(Pyu===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Suo===void 0&&(Suo=document.createElement("template"));var u=Suo;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Pyu=Y}Y=Pyu;return Y},{mode:2});var u3=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return Y};
_.r(u3,_.Z);u3.prototype.handleSurveyFlowStepOptionChanged=function(Y){this.ytdReduxBehavior.dispatch(_.WT({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:Y}));_.nb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:Y}}])};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],u3.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],u3.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],u3.prototype,"data",void 0);u3=_.Q([_.t({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],u3);
_.A(u3,"ytd-survey-flow-step-renderer",function(){if(eJY!==void 0)return eJY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return eJY=Y},{mode:1});var VYo;VYo=_.EP({avatarViewModel:_.rH,buttonViewModel:_.aq,subscribeButtonViewModel:_.y3d,imageBannerViewModel:_.gt});_.un_=_.WX(_.O7I);_.Sr(_.O7I);var W2d;var Ww=function(){return _.Z.apply(this,arguments)||this};
_.r(Ww,_.Z);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Ww.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ww.prototype,"data",void 0);Ww=_.Q([_.t({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Ww);
_.A(Ww,"ytd-channel-history-renderer",function(){if(W2d!==void 0)return W2d;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return W2d=Y},{mode:1});var zfj;var zs=function(){return _.Z.apply(this,arguments)||this};
_.r(zs,_.Z);_.Q([_.X(),_.k("design:type",Object)],zs.prototype,"data",void 0);zs=_.Q([_.t({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],zs);
_.A(zs,"ytd-feature-enablement-info-renderer",function(){if(zfj!==void 0)return zfj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return zfj=Y},{mode:1});var mbX;var ndX;var mH=function(){var Y=_.Z.apply(this,arguments)||this;Y.textBoxMaxLength=_.f("enable_tvod_campaign_code_integration")?15:12;return Y};
_.r(mH,_.Z);_.z=mH.prototype;_.z.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.z.onSubmit=function(){var Y=this.data.serviceEndpoint,S=_.g(Y,_.Ya);S&&Y&&(S.couponCode=this.userInput,_.f("web_ytd_ypc_coupon_renderer_command_resolver_ks")?_.Bu(this.hostElement,[Y]):_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}}))};
_.z.validate=function(){var Y=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=Y&&!this.data.errorMessage;this.showErrorMessage=Y&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.f("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.z.computeStyle=function(Y){return Y};
_.z.computeShowValidationBelowInput=function(Y){return Y!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.z.updateUserInputFromBinding=function(Y){this.userInput=Y.currentTarget.value};
_.z.updateShowErrorMessageFromBinding=function(Y){this.showErrorMessage=Y.detail.value};
_.y6.Object.defineProperties(mH.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
mH.prototype.dataChanged=mH.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],mH.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],mH.prototype,"userInput",void 0);_.Q([_.X(),_.k("design:type",Boolean)],mH.prototype,"disableApplyButton",void 0);_.Q([_.X(),_.k("design:type",Boolean)],mH.prototype,"hideApplyButton",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],mH.prototype,"hideErrorMessage",void 0);_.Q([_.X(),_.k("design:type",Boolean)],mH.prototype,"showTick",void 0);_.Q([_.X(),_.k("design:type",Boolean)],mH.prototype,"showErrorMessage",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],mH.prototype,"couponStyle",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.k("design:type",Boolean)],mH.prototype,"showValidationBelowInput",void 0);_.Q([_.X(),_.k("design:type",Object)],mH.prototype,"textBoxMaxLength",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mH.prototype,"dataChanged",null);
_.Q([_.d("showTick","showErrorMessage","userInput"),_.k("design:type",String),_.k("design:paramtypes",[])],mH.prototype,"validationState",null);mH=_.Q([_.t({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],mH);
_.A(mH,"ytd-ypc-coupon-renderer",function(){if(ndX!==void 0)return ndX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ndX=Y},{mode:1});var nt=function(){return _.Z.apply(this,arguments)||this};
_.r(nt,_.Z);nt.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"}}}};
nt.prototype.computeStyle=function(Y){return Y};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],nt.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],nt.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],nt.prototype,"buttonStyle",void 0);nt=_.Q([_.t({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],nt);
_.A(nt,"ytd-flow-bottom-bar-renderer",function(){if(mbX!==void 0)return mbX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return mbX=Y},{mode:1});var jIB;var Jx1;var BKu;var j7=function(){return _.Z.apply(this,arguments)||this};
_.r(j7,_.Z);j7.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
j7.prototype.focus=function(Y){this.title&&_.NR(this.title,Y)};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],j7.prototype,"data",void 0);_.Q([_.nc("#title"),_.k("design:type",HTMLElement)],j7.prototype,"title",void 0);j7=_.Q([_.t({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],j7);
_.A(j7,"ytd-flow-top-bar-renderer",function(){if(BKu!==void 0)return BKu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return BKu=Y},{mode:1});var cxX;var Cy6;var quB;var Jr=function(){return _.Z.apply(this,arguments)||this};
_.r(Jr,_.Z);Jr.prototype.freeTextValueChanged=function(){_.nb(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Jr.prototype.updateFreeTextValueFromBinding=function(Y){this.freeTextValue=Y.detail.value};
_.y6.Object.defineProperties(Jr.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(S=(Y=this.data)==null?void 0:Y.responseMaxLength)!=null?S:500,u;return((u=this.freeTextValue)!=null?u:"").length>=P?"maxed-out":""}}});
Jr.prototype.freeTextValueChanged=Jr.prototype.freeTextValueChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Jr.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],Jr.prototype,"freeTextValue",void 0);_.Q([_.nc("#user-input"),_.k("design:type",HTMLTextAreaElement)],Jr.prototype,"input",void 0);
_.Q([_.d("freeTextValue"),_.k("design:type",Object),_.k("design:paramtypes",[])],Jr.prototype,"characterLimitClass",null);_.Q([_.zY("freeTextValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jr.prototype,"freeTextValueChanged",null);Jr=_.Q([_.r0({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Jr);
_.A(Jr,"yt-free-text-input-flow-step-renderer",function(){if(quB===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Cy6===void 0&&(Cy6=document.createElement("template"));var u=Cy6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);quB=Y}Y=quB;return Y},{mode:2});var Bw=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return Y};
_.r(Bw,_.Z);Bw.prototype.handleFreeTextFlowStepInputChanged=function(Y){_.nb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:Y}}])};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Bw.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Bw.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Bw.prototype,"data",void 0);Bw=_.Q([_.t({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Bw);
_.A(Bw,"ytd-free-text-input-flow-step-renderer",function(){if(cxX!==void 0)return cxX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return cxX=Y},{mode:1});var Rfu;var xbB;var cw=function(){return _.Z.apply(this,arguments)||this};
_.r(cw,_.Z);_.Q([_.X(),_.k("design:type",Object)],cw.prototype,"data",void 0);cw=_.Q([_.t({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],cw);
_.A(cw,"ytd-metadata-line-renderer",function(){if(xbB!==void 0)return xbB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return xbB=Y},{mode:1});var Ct=function(){return _.Z.apply(this,arguments)||this};
_.r(Ct,_.Z);Ct.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Ct.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ct.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ct.prototype,"isMasthead",void 0);Ct=_.Q([_.t({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Ct);
_.A(Ct,"ytd-media-product-renderer",function(){if(Rfu!==void 0)return Rfu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Rfu=Y},{mode:1});var bJB;var q9=function(){return _.Z.apply(this,arguments)||this};
_.r(q9,_.Z);q9.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
q9.prototype.onBillboardImageLoaded=function(){_.ms(this.hostElement,"yt-refit")};
q9.prototype.onBillboardImageLoaded=q9.prototype.onBillboardImageLoaded;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],q9.prototype,"data",void 0);_.Q([_.nc("#billboardImage"),_.k("design:type",Object)],q9.prototype,"billboardImage",void 0);_.Q([_.WZ("yt-img-shadow-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q9.prototype,"onBillboardImageLoaded",null);
q9=_.Q([_.t({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],q9);
_.A(q9,"ytd-billboard-masthead-renderer",function(){if(bJB!==void 0)return bJB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return bJB=Y},{mode:1});var TKd;var Rl=function(){var Y=_.Z.apply(this,arguments)||this;Y.smallSize=!1;return Y};
_.r(Rl,_.Z);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Rl.prototype,"ytComponentBehaviorType",void 0);_.Q([_.X(),_.k("design:type",Object)],Rl.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Rl.prototype,"smallSize",void 0);Rl=_.Q([_.t({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Rl);
_.A(Rl,"ytd-bullet-formatted-string",function(){if(TKd!==void 0)return TKd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return TKd=Y},{mode:1});var K2_;var x4=function(){return _.Z.apply(this,arguments)||this};
_.r(x4,_.Z);x4.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],x4.prototype,"data",void 0);x4=_.Q([_.t({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],x4);
_.A(x4,"ytd-offer-detail-renderer",function(){if(K2_!==void 0)return K2_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return K2_=Y},{mode:1});var Edj;var b3=function(){return _.Z.apply(this,arguments)||this};
_.r(b3,_.Z);b3.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],b3.prototype,"data",void 0);b3=_.Q([_.t({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],b3);
_.A(b3,"ytd-offer-detail-step-renderer",function(){if(Edj!==void 0)return Edj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Edj=Y},{mode:1});var f6Y;var Ts=function(){var Y=_.Z.apply(this,arguments)||this;Y.isInOfferModule=!1;return Y};
_.r(Ts,_.Z);_.z=Ts.prototype;_.z.computeHasEndpoint=function(){var Y;return!((Y=this.data)==null||!Y.onClickCommand)};
_.z.dataChanged=function(){var Y;if((Y=this.data)==null?0:Y.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.z.detached=function(){var Y;if((Y=this.data)==null?0:Y.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.z.handleClickEvent=function(){var Y;if((Y=this.data)==null?0:Y.onClickCommand){var S;this.componentBehavior.resolveCommand((S=this.data)==null?void 0:S.onClickCommand)}};
_.z.onContentKeyDown=function(Y){Y.key==="Enter"?this.handleClickEvent(Y):Y.key===" "&&Y.preventDefault()};
_.z.onContentKeyUp=function(Y){Y.key===" "&&this.handleClickEvent(Y)};
Ts.prototype.dataChanged=Ts.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Ts.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ts.prototype,"data",void 0);_.Q([_.X({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Ts.prototype,"hasEndpoint",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Ts.prototype,"isInOfferModule",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ts.prototype,"dataChanged",null);Ts=_.Q([_.t({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Ts);
_.A(Ts,"ytd-channel-masthead-renderer",function(){if(f6Y!==void 0)return f6Y;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return f6Y=Y},{mode:1});var gd1;var Kt=function(){var Y=_.Z.apply(this,arguments)||this;Y.thumbnailObjectFit="CONTAIN";Y.thumbnailObjectPosition="LEFT";Y.isExpanded=!1;return Y};
_.r(Kt,_.Z);_.z=Kt.prototype;_.z.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.z.dataChanged=function(){this.resetStates()};
_.z.computeisTapOnOfferInfoContainerEnabled=function(){var Y;return((Y=this.data)==null?void 0:Y.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.z.onExpandBtnClick=function(){var Y,S=_.g((Y=this.data)==null?void 0:Y.showMoreButtonRenderer,yF6);S&&_.uA(_.BF(),S.trackingParams);this.isExpanded=!this.isExpanded};
_.z.onOfferInfoClick=function(Y){this.isTapOnOfferInfoContainerEnabled&&(_.iN(_.iM(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.oF(_.iM(Y)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.z.onBottomBarClick=function(){this.executeTapCommand()};
_.z.executeTapCommand=function(){var Y,S=(Y=this.data)==null?void 0:Y.tapCommand;S&&this.ytComponentBehavior.resolveCommand(S)};
_.z.resetStates=function(){this.isExpanded=!1};
_.y6.Object.defineProperties(Kt.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var Y=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),S,P,u;return((S=this.data)==null?void 0:S.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&Y&&!!((P=this.data)==null?0:(u=P.benefits)==null?0:u.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((S=_.g((Y=this.data)==null?void 0:Y.showMoreButtonRenderer,yF6))==null?void 0:S.showMoreButtonTitle)||((P=this.data)==null?void 0:P.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((S=_.g((Y=this.data)==null?void 0:Y.showMoreButtonRenderer,yF6))==null?void 0:S.showLessButtonTitle)||((P=this.data)==null?void 0:P.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var Y;return(Y=this.showLessButtonTitle)!=null?Y:""}var S;return(S=this.showMoreButtonTitle)!=null?S:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((Y=this.data)==null?void 0:Y.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((S=this.data)==null?0:S.footerTitle)||((P=this.data)==null?0:P.footerSubtitle))}}});
Kt.prototype.dataChanged=Kt.prototype.dataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Kt.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Kt.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",String)],Kt.prototype,"thumbnailObjectFit",void 0);
_.Q([_.X(),_.k("design:type",String)],Kt.prototype,"thumbnailObjectPosition",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.k("design:type",Boolean)],Kt.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.Q([_.X(),_.k("design:type",Object)],Kt.prototype,"isExpanded",void 0);_.Q([_.X(),_.k("design:type",Object)],Kt.prototype,"data",void 0);_.Q([_.X({computed:"computeIcon_(data.footerIcon)"}),_.k("design:type",String)],Kt.prototype,"icon",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kt.prototype,"dataChanged",null);_.Q([_.d("data.thumbnail"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Kt.prototype,"hasThumbnail",null);_.Q([_.d("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Kt.prototype,"enableExpandButton",null);
_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Kt.prototype,"enableOfferContentIcon",null);_.Q([_.d("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Kt.prototype,"showMoreButtonTitle",null);_.Q([_.d("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Kt.prototype,"showLessButtonTitle",null);
_.Q([_.d("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.k("design:type",String),_.k("design:paramtypes",[])],Kt.prototype,"expandedBtnText",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Kt.prototype,"enableBottomBar",null);Kt=_.Q([_.t({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Kt);
_.A(Kt,"ytd-offer-card-renderer",function(){if(gd1!==void 0)return gd1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return gd1=Y},{mode:1});var $b6;var E8=function(){return _.Z.apply(this,arguments)||this};
_.r(E8,_.Z);E8.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"}}}};
E8.prototype.onClick=function(Y){if(!_.iN(Y.composedPath()||[],this.hostElement,["A".toString()])){var S,P;if((Y=(P=_.g((S=this.data)==null?void 0:S.actionButton,_.I8))==null?void 0:P.command)&&!this.ytComponentBehavior.resolveCommand(Y)){var u;(u=_.BF())==null||u.clickCommand(Y);_.f("web_ytd_offer_content_renderer_command_resolver_ks")?_.Bu(this.hostElement,[Y]):_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}})}}};
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],E8.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],E8.prototype,"data",void 0);E8=_.Q([_.t({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],E8);
_.A(E8,"ytd-offer-content-renderer",function(){if($b6!==void 0)return $b6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return $b6=Y},{mode:1});var rxc;var ft=function(){return _.Z.apply(this,arguments)||this};
_.r(ft,_.Z);ft.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.y6.Object.defineProperties(ft.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!((Y=this.data)==null||!Y.title)||!((S=this.data)==null||!S.description)}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ft.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ft.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ft.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ft.prototype,"hasHeaderData",null);ft=_.Q([_.t({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],ft);
_.A(ft,"ytd-offer-section-renderer",function(){if(rxc!==void 0)return rxc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return rxc=Y},{mode:1});var G6c;var ge=function(){return _.Z.apply(this,arguments)||this};
_.r(ge,_.Z);
ge.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ge.prototype,"data",void 0);ge=_.Q([_.t({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],ge);
_.A(ge,"ytd-offer-selection-step-renderer",function(){if(G6c!==void 0)return G6c;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return G6c=Y},{mode:1});var hfu;var $4=function(){return _.Z.apply(this,arguments)||this};
_.r($4,_.Z);$4.prototype.computeStyle=function(Y){return Y};
$4.prototype.computeImageWidth=function(Y){return Y==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.Q([_.X({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.k("design:type",String)],$4.prototype,"containerStyle",void 0);_.Q([_.X({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.k("design:type",String)],$4.prototype,"imageWidth",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$4.prototype,"data",void 0);
$4=_.Q([_.t({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],$4);
_.A($4,"ytd-confirmation-masthead-renderer",function(){if(hfu!==void 0)return hfu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return hfu=Y},{mode:1});var vd1;var re=function(){return _.Z.apply(this,arguments)||this};
_.r(re,_.Z);re.prototype.computeStyle=function(Y){return Y};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],re.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.k("design:type",String)],re.prototype,"containerStyle",void 0);re=_.Q([_.t({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],re);
_.A(re,"ytd-purchase-complete-detail-renderer",function(){if(vd1!==void 0)return vd1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return vd1=Y},{mode:1});var DbB;var Gs=function(){var Y=_.Z.apply(this,arguments)||this;Y.scriptsAppended=!1;return Y};
_.r(Gs,_.Z);Gs.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"}}}};
Gs.prototype.onDataChanged=function(){var Y=this.get("data.gtmId");Y&&(_.JD(Y,_.X3("GL","")),this.setupConversionTracking())};
Gs.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var Y=document.createElement("noscript");Y.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(Y);this.scriptsAppended=!0}};
Gs.prototype.onDataChanged=Gs.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Gs.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Gs.prototype,"scriptsAppended",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gs.prototype,"onDataChanged",null);Gs=_.Q([_.t({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Gs);
_.A(Gs,"ytd-purchase-complete-step-renderer",function(){if(DbB!==void 0)return DbB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return DbB=Y},{mode:1});var I66;var hr=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(hr,_.Z);hr.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],hr.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],hr.prototype,"darkerDarkTheme",void 0);hr=_.Q([_.t({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],hr);
_.A(hr,"ytd-ypc-transaction-error-message-renderer",function(){if(I66!==void 0)return I66;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return I66=Y},{mode:1});var a6d;var L2X;var vw=function(){var Y=_.Z.apply(this,arguments)||this;Y.handlePhoneVerificationSuccess=function(S){if(Y.isValidPhoneVerificationCompletionMessageEvent(S)){var P;((P=Y.data)==null?0:P.nextStepCommand)&&Y.ytComponentBehavior.resolveCommand(Y.data.nextStepCommand)}};
return Y};
_.r(vw,_.Z);vw.prototype.isValidPhoneVerificationCompletionMessageEvent=function(Y){if(Y.data!=="yt-phone-verification-complete")return!1;Y=_.eX(Y.origin);return Y!==null&&Y.includes("youtube.com")};
vw.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
vw.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],vw.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],vw.prototype,"data",void 0);vw=_.Q([_.r0({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],vw);
_.A(vw,"yt-feature-enablement-soft-entry-renderer",function(){if(L2X===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;a6d===void 0&&(a6d=document.createElement("template"));var u=a6d;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);L2X=Y}Y=L2X;return Y},{mode:1});var wJo;var pJ1;var F26;var sIX;var DM=function(){return _.Z.apply(this,arguments)||this};
_.r(DM,_.Z);_.Q([_.X(),_.k("design:type",Object)],DM.prototype,"data",void 0);DM=_.Q([_.r0({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],DM);
_.A(DM,"yt-benefits-item-renderer",function(){if(sIX===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;F26===void 0&&(F26=document.createElement("template"));var u=F26;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);sIX=Y}Y=sIX;return Y},{mode:2});var db5;var l6u;var Il=function(){return _.Z.apply(this,arguments)||this};
_.r(Il,_.Z);Il.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Il.prototype.computeisWithoutPadding=function(){var Y;return((Y=this.data)==null?void 0:Y.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Il.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Il.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.k("design:type",Boolean)],Il.prototype,"isWithoutPadding",void 0);Il=_.Q([_.r0({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Il);
_.A(Il,"yt-benefits-section-renderer",function(){if(l6u===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;db5===void 0&&(db5=document.createElement("template"));var u=db5;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);l6u=Y}Y=l6u;return Y},{mode:2});var al=function(){return _.Z.apply(this,arguments)||this};
_.r(al,_.Z);al.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
al.prototype.computeisUsingLargeWidth=function(){var Y;return((Y=this.data)==null?void 0:Y.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],al.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.k("design:type",Boolean)],al.prototype,"isUsingLargeWidth",void 0);al=_.Q([_.r0({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],al);
_.A(al,"yt-benefits-flow-step-renderer",function(){if(pJ1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;wJo===void 0&&(wJo=document.createElement("template"));var u=wJo;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);pJ1=Y}Y=pJ1;return Y},{mode:2});var XJj;var ZJI;var Lt=function(){return _.Z.apply(this,arguments)||this};
_.r(Lt,_.Z);Lt.prototype.checkIsUsingLargeWidth=function(){var Y;return((Y=this.data)==null?void 0:Y.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.Q([_.X(),_.k("design:type",Object)],Lt.prototype,"data",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.k("design:type",Boolean)],Lt.prototype,"isUsingLargeWidth",void 0);Lt=_.Q([_.r0({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Lt);
_.A(Lt,"yt-confirmation-flow-step-renderer",function(){if(ZJI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;XJj===void 0&&(XJj=document.createElement("template"));var u=XJj;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);ZJI=Y}Y=ZJI;return Y},{mode:2});var iJu;var od6;var we=function(){return _.Z.apply(this,arguments)||this};
_.r(we,_.Z);_.Q([_.X(),_.k("design:type",Object)],we.prototype,"data",void 0);we=_.Q([_.r0({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],we);
_.A(we,"yt-info-flow-step-renderer",function(){if(od6===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;iJu===void 0&&(iJu=document.createElement("template"));var u=iJu;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);od6=Y}Y=od6;return Y},{mode:2});var thX;var Ax_;var pt=function(){return _.Z.apply(this,arguments)||this};
_.r(pt,_.Z);_.Q([_.X(),_.k("design:type",Object)],pt.prototype,"data",void 0);pt=_.Q([_.r0({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],pt);
_.A(pt,"yt-info-list-flow-step-renderer",function(){if(Ax_===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;thX===void 0&&(thX=document.createElement("template"));var u=thX;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Ax_=Y}Y=Ax_;return Y},{mode:2});var Ub5=_.AI(function(Y){var S=Y.data;return _.R("styled-text-view-model",{class:_.Si("ytStyledTextViewModelHost",function(){return C9o(S().fontAttributes)},function(){return c$1(S().color)})},_.R(_.qw,{text:function(){return S().text},
ariaLabel:function(){var P,u,W;return(W=(P=S().accessibility)==null?void 0:(u=P.accessibilityData)==null?void 0:u.label)!=null?W:""}}))},"Ce");
Ub5.idomCompat=!0;var QI5=_.AI(function(Y){var S=function(){var W,m,J,c;return(c=(J=(W=Y.alt)==null?void 0:W.call(Y))!=null?J:(m=Y.data().accessibilityData)==null?void 0:m.label)!=null?c:""},P=function(){return Y.data().imageWidth},u=function(){return Y.data().imageHeight};
return _.R("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.R(_.gw,{cond:function(){var W=Y.data();if(W){var m,J,c;var C=((m=_.E().resolve(_.PQ(_.F5)))==null?0:m())?(J=W.imageDark)!=null?J:W.imageLight:(c=W.imageLight)!=null?c:W.imageDark}else C=void 0;return C},
then:function(W){return _.R(_.ZZ,Object.assign({},Y,{data:W,alt:S,targetWidth:P,targetHeight:u,preserveHeight:!0,preserveWidth:!0}))}}))},"De");
QI5.idomCompat=!0;var FT=_.AI(function(Y){var S=Y.data;Y=_.o_(function(){return S().slots},[]);
var P=_.o_(function(){return S().layoutProperties},{}),u=_.E().resolve(_.d8);
return _.R("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:m1_(P,u)},_.R(_.$Z,{each:Y,keyBy:"INDEX"},function(W){return _.R("div",{class:"ytContainerLayoutViewModelSlot",style:m1_(function(){return W().layoutProperties},u)},_.R(_.rv,{data:function(){return W().contents}},{containerLayoutViewModel:FT,
badgeViewModel:_.oT,buttonViewModel:_.aq,styledTextViewModel:Ub5,contentPreviewImageViewModel:function(m){return _.R(_.tB,{data:m.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(m){return _.R(QI5,{data:m.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Ee");
FT.idomCompat=!0;var k6d=_.AI(function(Y){var S=Y.data;var P=Y.stateFns;var u=function(){var x=S(),b=x.productId;return!(!x.clearGroupId&&!b)},W=function(){var x=S(),b=x.clearGroupId;
return(x=x.productId)?P().isProductSelected(x):b?P().getSelectedProductByGroupId(b)==null:!1},m=function(){var x=S(),b=x.clearGroupId;
if(x=x.productId)P().onProductSelected(x);else if(b)P().onClearGroupSelected(b)},J=function(){var x=S(),b=x.clearGroupId;
if(x=x.productId){var T;return"group:"+(((T=P().getProductById(x))==null?void 0:T.groupId)||"")}return b?"group:"+b:""},c=_.o_(function(){return S().header},[]),C=_.o_(function(){return S().body},[]);
return _.R("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.R(_.gw,{cond:function(){return c().length>0||u()},
then:function(){return _.R("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.R("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.R(_.rv,{data:c},{containerLayoutViewModel:function(x){return _.R("div",{class:"ytPdpCardSectionViewModelContentItem"},_.R(FT,{data:x.data}))},
styledTextViewModel:function(x){return _.R("div",{class:"ytPdpCardSectionViewModelContentItem"},_.R(Ub5,{data:x.data}))}})),_.R(_.gw,{cond:u,
then:function(){return _.R("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.R(_.bc,{checked:W,name:J,onChange:m}))}}))}}),_.R(_.gw,{cond:function(){return C().length>0},
then:function(){return _.R("div",null,_.R(_.rv,{data:C},{containerLayoutViewModel:function(x){return _.R("div",{class:"ytPdpCardSectionViewModelContentItem"},_.R(FT,{data:x.data}))}}))}}))},"Fe");
k6d.idomCompat=!0;var Mhu=_.AI(function(Y){var S=Y.data;var P=Y.stateFns;return _.R("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.R(_.gw,{cond:function(){return S().banner},
then:function(u){return _.R("div",{class:"ytPdpCardViewModelBanner"},_.R(_.qw,{text:u}))}}),_.R(_.rv,{data:function(){return S().sections}},{pdpCardSectionViewModel:function(u){u=u.data;
var W={};return _.R("div",{class:_.Si("ytPdpCardViewModelSectionContainer",(W.ytPdpCardViewModelShowDividers=function(){return S().showDividers},W))},_.R(k6d,{data:u,
stateFns:P}))}}))},"Ge");
Mhu.idomCompat=!0;var yxY=_.AI(function(Y){var S=Y.data;var P=Y.isOverlay;Y={};return _.R("pdp-masthead-view-model",{class:_.Si("ytPdpMastheadViewModelHost",(Y.ytPdpMastheadViewModelIsOverlay=P,Y))},_.R(_.rv,{data:function(){return S().image}},{contentPreviewImageViewModel:_.tB,
themedImageViewModel:function(u){return _.R(QI5,{data:u.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.R(_.gw,{cond:function(){return S().title},
then:function(u){return _.R("h1",{class:"ytPdpMastheadViewModelHeading"},_.R(_.qw,{text:u,isOverlay:P}))}}),_.R(_.$Z,{each:function(){var u;
return(u=S().finePrint)!=null?u:[]}},function(u){return _.R("div",{class:"ytPdpMastheadViewModelFinePrint"},_.R(_.qw,{text:u,
isOverlay:P}))}))},"He");
yxY.idomCompat=!0;var NKo=_.AI(function(Y){var S=Y.data;var P=Y.stateFns;return _.R("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.R(_.$Z,{each:function(){var u=P().getSelectedPricingOptions().map(function(m){return m.pricingOptionId}),W=P().getSelectedProductByGroupId(S().groupId);
return W?W.pricingOptions.map(function(m){return{pricingOption:m,isSelected:u.includes(m.pricingOptionId)}}):(_.F_(Error("Hj`"+S().groupId)),[])},
keyBy:"INDEX"},function(u){return _.R("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.R("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.R(_.rv,{data:function(){return u().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:FT})),_.R("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.R(_.bc,{checked:function(){return u().isSelected},
onClick:function(){P().onPricingOptionSelected(u().pricingOption.pricingOptionId);var W=u().pricingOption.onSelectPricingOption;if(W=_.vF(W)){var m;(m=_.E().resolve(_.uY))==null||m.resolveCommand(W)}}})))}))},"Ie");
NKo.idomCompat=!0;var HJ6=_.AI(function(Y){var S=Y.data;var P=Y.stateFns;return _.R("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.R(_.rv,{data:function(){var u,W;return(W=(u=P().getSelectedPricingOptions()[0])==null?void 0:u.primaryButton)!=null?W:S().emptyStateButton}},{buttonViewModel:_.aq}))},"Je");
HJ6.idomCompat=!0;var Vh_=_.AI(function(Y){var S=Y.stateFns;return _.R("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.R(_.rv,{data:function(){return S().getSelectedPricingOptions().flatMap(function(P){return P.summaryLines}).filter(function(P){return!!P})}},{containerLayoutViewModel:function(P){return _.R("div",{class:"ytPdpSummaryViewModelLineItem"},_.R(FT,{data:P.data}))}}))},"Ke");
Vh_.idomCompat=!0;var efj=_.AI(function(Y){var S=Y.data;Y={};return _.R("divider-view-model",{class:_.Si("divider-view-model-wiz",(Y["divider-view-model-wiz__inset-thin-padding"]=function(){return S().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},Y))},_.R("div",{class:_.Si("divider-view-model-wiz__base-divider",function(){return ggI(S().dividerStyle)}),
style:_.Jg({"background-color":function(){return S().backgroundColor?_.Gp(S().backgroundColor):void 0}})}))},"Le");
efj.idomCompat=!0;var OJc=_.AI(function(Y){function S(w){var F=J();_.ip(_.Dw("pdpStateEntity",F,{key:F,selectedPricingOptions:w}))}
var P=Y.data;var u=Y.internalScrolling;var W=Y.stateFnsForTesting;var m=_.o_(function(){return P().allProducts},[]),J=_.o_(function(){return P().pdpStateEntityKey},""),c=_.Jq(qyB,J),C=_.fJ(function(){_.wK(!0);
var w;return(w=W==null?void 0:W())!=null?w:f0X(c,m,S)},void 0,"POBqwe"),x=_.o_(function(){return P().body},[]),b=_.o_(function(){return P().columnBreakHints},[]),T=function(){return P().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},K=function(){return T()||P().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},G=_.fJ(function(){var w=_.yR(P().background),F;
if(w==null?0:(F=w.sources)==null?0:F.length){var U=U===void 0?!0:U;w=_.Ttu(void 0,w.sources,void 0,U,U?1E3:void 0,U?void 0:1E3)}else w=null;return w},void 0,"BkCmEd");
Y=_.Jg({"--pdp-view-model-background":function(){return G()?"url("+G()+")":void 0}});
var v={};u=_.Si("ytPdpViewModelHost",(v.ytPdpViewModelHasBackground=function(){return K()||!!G()},v.ytPdpViewModelHasDarkBackground=K,v.ytPdpViewModelHasScrim=T,v.ytPdpViewModelInternalScrolling=_.o_(u,!1),v));
var a=function(w){var F={};return _.Si("ytPdpViewModelItem",(F.ytPdpViewModelFullBleed=function(){return _.qA8(w())==="dividerViewModel"||_.qA8(w())==="sectionHeaderViewModel"},F.ytPdpViewModelNoVerticalPadding=function(){return _.qA8(w())==="sectionHeaderViewModel"},F))};
_.LE(function(){var w=P().onStartCommand;if(w&&(w=_.vF(w))){var F;(F=_.E().resolve(_.uY))==null||F.resolveCommand(w)}});
return _.R("pdp-view-model",{class:u,style:Y},_.R("div",{class:"ytPdpViewModelColumnContainer"},_.R(_.$Z,{each:function(){return $1u(x(),b())},
keyBy:"INDEX"},function(w){return _.R("div",{class:"ytPdpViewModelColumn"},_.R(_.rv,{data:w},{containerLayoutViewModel:function(F,U){F=F.data;return _.R("div",{class:a(function(){return w()[U()]})},_.R(FT,{data:F}))},
dividerViewModel:function(F,U){F=F.data;return _.R("div",{class:a(function(){return w()[U()]})},_.R(efj,{data:F}))},
pdpCardViewModel:function(F,U){F=F.data;return _.R("div",{class:a(function(){return w()[U()]})},_.R(Mhu,{data:F,
stateFns:C}))},
pdpMastheadViewModel:function(F,U){F=F.data;return _.R("div",{class:a(function(){return w()[U()]})},_.R(yxY,{data:F,
isOverlay:K}))},
pdpPricingOptionSelectorViewModel:function(F,U){F=F.data;return _.R("div",{class:a(function(){return w()[U()]})},_.R(NKo,{data:F,
stateFns:C}))},
pdpPrimaryButtonViewModel:function(F,U){F=F.data;return _.R("div",{class:a(function(){return w()[U()]})},_.R(HJ6,{data:F,
stateFns:C}))},
pdpSummaryViewModel:function(F,U){F=F.data;return _.R("div",{class:a(function(){return w()[U()]})},_.R(Vh_,{data:F,
stateFns:C}))},
sectionHeaderViewModel:function(F,U){F=F.data;return _.R("div",{class:a(function(){return w()[U()]})},_.R(_.H$,{data:F}))}}))})))},"Me");
OJc.idomCompat=!0;_.AL(OJc,"pdp-view-model",{props:{data:_.wm,stateFnsForTesting:_.tL,internalScrolling:_.tL}});var YWu=_.AI(function(Y){var S=Y.data;var P=Y.className;var u=_.Jq(_.Ps,function(){return S().flowStateEntityKey});
return _.R("ytm-premium-purchase-button-renderer",{class:_.Si("yt-premium-purchase-button-renderer",P)},_.R(_.rv,{data:function(){var W;return(W=_.g(u(),Hn))==null?void 0:W.primaryButtonOverride}},{buttonRenderer:function(W){return _.R(_.aT,{data:W.data,
className:P})},
buttonViewModel:function(W){return _.R(_.aq,{data:W.data,className:P})}}))},"Ne");
YWu.idomCompat=!0;var SWY=_.AI(function(Y){var S=Y.data;var P=function(){return r$o(S().style)},u=_.Si("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",P),W=_.Si("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",P);
return _.R("yt-flow-bottom-bar-renderer",{class:_.Si("yt-flow-bottom-bar-renderer",Y.className,P)},_.R(_.rv,{data:function(){return S().secondaryButton}},{buttonRenderer:function(m){return _.R(_.aT,{data:m.data,
className:W})},
buttonViewModel:function(m){return _.R(_.aq,{data:m.data,className:W})},
premiumPurchaseButtonRenderer:function(m){return _.R(YWu,{data:m.data,className:W})}}),_.R(_.rv,{data:function(){return S().primaryButton}},{buttonRenderer:function(m){return _.R(_.aT,{data:m.data,
className:u})},
buttonViewModel:function(m){return _.R(_.aq,{data:m.data,className:u})},
premiumPurchaseButtonRenderer:function(m){return _.R(YWu,{data:m.data,className:u})}}))},"Oe");
SWY.idomCompat=!0;_.AL(SWY,"yt-flow-bottom-bar-renderer",{props:{data:_.wm,className:_.wm}});var Pku=_.AI(function(Y){return _.R("yt-offer-summary-renderer",{class:_.Si(Y.className,"ytOfferSummaryRendererHost")},_.R("div",{class:"ytOfferSummaryRendererTextContainer"},_.R("div",{class:"ytOfferSummaryRendererEyebrowText"},_.R(_.qw,{text:function(){return Y.data().eyebrowText}})),_.R("div",{class:"ytOfferSummaryRendererTitle"},_.R(_.qw,{text:function(){return Y.data().title}})),_.R("div",{class:"ytOfferSummaryRendererSubtitle"},_.R(_.qw,{text:function(){return Y.data().subtitle}})),_.R("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.R(_.$Z,{each:function(){var S;
return(S=Y.data().featureListData)!=null?S:[]}},function(S){var P;
return _.R("div",{class:"ytOfferSummaryRendererFeatureList"},_.R(_.BX,{icon:(P=S.icon)==null?void 0:P.iconType,className:S.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.R("div",{class:"ytOfferSummaryRendererFeatureListText"},_.R(_.qw,{text:S.text})))})),_.R("div",{class:"ytOfferSummaryRendererDescription"},_.R(_.qw,{text:function(){return Y.data().description}}))))},"Pe");_.AL(_.AI(function(Y){var S={};S=_.Si("ytOfferSummaryFlowStepRendererHost",(S.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=Y.shouldDisableHeaderTopMargin,S));return _.R("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:S},_.R("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.R("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.R(_.qw,{text:function(){return Y.data().header}})),_.R("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.R(_.qw,{text:function(){return Y.data().subtitle}}))),_.R("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.R(_.rv,{data:function(){return Y.data().offerSummary}},{offerSummaryRenderer:function(P){return _.R(Pku,{data:P.data,
className:Y.flowClassName})}})))},"Qe"),"yt-offer-summary-flow-step-renderer",{props:{data:_.tL,
flowClassName:_.tL,flowStateEntityKey:_.tL,shouldDisableHeaderTopMargin:_.tL}});var u3o=_.AI(function(Y){var S=Y.data;var P=Y.className;var u=Y.flowStateEntityKey;var W=Y.selectionStepStyle;Y=_.mR(function(C){var x=S(),b=u==null?void 0:u();C.target&&(C.stopPropagation(),C=b||"",b=_.Ps(_.X2().getState(),C),x=Object.assign({},b,{premiumPurchaseFlowState:{selectedOptionId:x.optionId,primaryButtonOverride:x.primaryButtonOverride}}),_.X2().dispatch(_.qE("flowStateEntity",C,x)));return!1});
var m=function(){return(u==null?void 0:u())||""},J=_.Jq(_.Ps,m);
_.LE(function(){var C=S(),x=m(),b=J();!_.g(b,Hn)&&C.defaultSelected&&x!==""&&C.primaryButtonOverride&&GH1(C.optionId||"",x,C.primaryButtonOverride,b)});
var c={};return _.R("ytm-option-item-renderer",{"on:click":Y,class:_.Si(P,"ytm-option-item-renderer",(c["ytm-option-item-renderer--lp2-style"]=function(){return(W==null?void 0:W())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},c))},_.R("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.R("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var C=S(),x=m(),b=J();b=_.g(b,Hn);return(b?(b==null?void 0:b.selectedOptionId)||"":C.defaultSelected&&x!==""?(C==null?void 0:C.optionId)||"":"")===S().optionId},
name:("input"+_.D_(_.If)).toString()})),_.R("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.R(_.gw,{cond:function(){return S().eyebrowText},
then:function(){return _.R("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.R(_.qw,{text:function(){return S().eyebrowText}}))}}),_.R("div",{class:"ytm-option-item-renderer__option-item-title"},_.R(_.qw,{text:function(){return S().title}})),_.R("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.R(_.qw,{text:function(){return S().subtitle}})),_.R("div",{class:"ytm-option-item-renderer__option-item-description"},_.R(_.qw,{text:function(){return S().description}}))))},
"Re");var WN_=_.AI(function(Y){var S=Y.data;var P=Y.flowClassName;var u=Y.flowStateEntityKey;var W=Y.selectionStepStyle;return _.R("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.R("div",{class:"yt-option-section-renderer__option-section-header-section"},_.R("div",{class:"yt-option-section-renderer__option-section-header"},_.R(_.qw,{text:function(){return S().title}}),_.R(_.rv,{data:function(){return S().titleBadge}},{badgeViewModel:function(m){return _.R(_.oT,
{data:m.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.R(_.gw,{cond:function(){return S().subtitle},
then:function(){return _.R("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.R(_.qw,{text:function(){return S().subtitle}}))}}),_.R(_.gw,{cond:function(){return S().featureListData},
then:function(m){return _.R("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.R(_.$Z,{each:m},function(J){var c;return _.R("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.R(_.BX,{icon:(c=J.icon)==null?void 0:c.iconType,className:J.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.R("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.R(_.qw,{text:J.text})))}))}}),_.R(_.$Z,{each:function(){return S().sectionDisclaimers||[]}},function(m){return _.R("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.R(_.qw,{text:m}))})),_.R(_.rv,{data:function(){return S().optionItems}},{optionItemRenderer:function(m){return _.R("div",{class:"yt-option-section-renderer__option-item"},_.R(u3o,{data:m.data,
className:P,flowStateEntityKey:u,selectionStepStyle:W}))}}),_.R(_.gw,{cond:function(){return S().offerText},
then:function(){return _.R("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.R(_.qw,{text:function(){return S().offerText}}))}}))},"Se");
WN_.idomCompat=!0;var zyI=_.AI(function(Y){var S=Y.data;var P=Y.flowClassName;var u=Y.flowStateEntityKey;Y=Y.isDesktop;var W=function(){var x;return(x=S().flowStateEntityKey)!=null?x:u==null?void 0:u()},m=function(){return(W==null?void 0:W())||""},J=function(){return S().style},c=_.Jq(_.Ps,m);
_.LE(function(){var x=S(),b=m(),T=c();!_.g(T,Hn)&&x.noPreselect&&b!==""&&x.defaultButtonOverride&&GH1("default",b,x.defaultButtonOverride,T)});
var C={};return _.R("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Si("ytm-option-selection-flow-step-renderer",(C["ytm-option-selection-flow-step-renderer--desktop"]=Y,C["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return S().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},C))},_.R("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"},
_.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.R(_.qw,{text:function(){return S().header}})),_.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.R(_.qw,{text:function(){return S().subtitle}}))),_.R(_.rv,{data:function(){return S().optionItems||[]}},{optionItemRenderer:function(x){return _.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.R(u3o,{data:x.data,
className:P,flowStateEntityKey:W,selectionStepStyle:J}))},
optionSectionRenderer:function(x){return _.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.R(WN_,{data:x.data,flowClassName:P,flowStateEntityKey:W,selectionStepStyle:J}))}}))},"Te");
zyI.idomCompat=!0;_.AL(zyI,"yt-option-selection-flow-step-renderer",{props:{data:_.wm,flowClassName:_.wm,flowStateEntityKey:_.wm,isDesktop:_.wm}});var hqY,vgd;_.s8=_.AI(function(Y){var S=_.tI(Y,{type:1,disablePadding:!1,disablePrimaryButton:!1}),P=S.data,u=S.type;Y=S.disablePadding;var W=S.disablePrimaryButton,m=S.onClickPrimaryButton,J=function(){return P().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},c=function(){return{disabled:W(),
state:W()?"disabled":"active"}},C=function(){return P().leadingLabel||P().trailingLabel};
S={};return _.R("yt-panel-footer-view-model",{class:_.Si("yt-panel-footer-view-model-wiz",(S["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return P().shouldHideDivider},S["yt-panel-footer-view-model-wiz--disable-padding"]=Y,S))},_.R(_.gw,{cond:C,
then:function(){var x={},b={};return _.R("div",{class:_.Si("yt-panel-footer-view-model-wiz__text-row",(x["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var T=P();return!(!T.leadingLabel&&!T.trailingLabel||!T.primaryButton&&!T.secondaryButton)},x))},_.R(_.qw,{text:function(){return P().leadingLabel},
className:_.Si((b["yt-panel-footer-view-model-wiz--text-padding"]=C,b))}),_.R(_.qw,{text:function(){return P().trailingLabel}}))}}),_.R(_.gw,{cond:J,
then:function(){var x={};return _.R("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.R("div",{class:_.Si("yt-panel-footer-view-model-wiz__primary-button",(x["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return P().secondaryButton},x))},_.R(_.rv,{data:function(){return P().primaryButton}},{buttonViewModel:function(b){return _.R(_.aq,{data:b.data,
buttonOverrides:c,onClick:m})}})),_.R(_.rv,{data:function(){return P().secondaryButton}},{buttonViewModel:_.aq}))}}),_.R(_.gw,{cond:function(){return!J()},
then:function(){var x={},b={},T={};return _.R("div",{class:_.Si("yt-panel-footer-view-model-wiz__button-row",(x["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===u()},x))},_.R("div",{class:_.Si("yt-panel-footer-view-model-wiz__button-row--left-button",(b["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===u()},b["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!P().secondaryButton||0===u()},b["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===u()},b))},_.R(_.rv,{data:function(){return P().secondaryButton}},{buttonViewModel:_.aq})),_.R("div",{class:_.Si("yt-panel-footer-view-model-wiz__primary-button",(T["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===u()||1===u()},T["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===u()},T))},_.R(_.rv,{data:function(){return P().primaryButton}},{buttonViewModel:function(K){return _.R(_.aq,{data:K.data,
buttonOverrides:c,onClick:m})}})))}}))},"Ue");
_.s8.idomCompat=!0;_.mPc=_.AI(function(Y){Y=_.tI(Y,{disablePadding:!1});var S=Y.data,P=Y.disablePadding;Y=_.L8c(function(){return S().formId});
var u=Y.onSubmit,W=Y.isValid,m=Y.isSubmitting;return _.R("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.R(_.rv,{data:function(){return S().panelFooter}},{panelFooterViewModel:function(J){return _.R(_.s8,{data:J.data,
onClickPrimaryButton:function(){u()},
disablePrimaryButton:function(){return!W()||m()},
disablePadding:P})}}))},"Ve");_.AL(_.mPc,"yt-form-footer-view-model",{props:{data:_.wm,disablePadding:_.wm}});_.AL(_.AI(function(Y){return _.R("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.R("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.R(_.gw,{cond:function(){var S;return(S=Y.data())==null?void 0:S.image},
then:function(S){return _.R(_.ZZ,{data:S,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.R("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.R(_.qw,{text:function(){var S;
return(S=Y.data())==null?void 0:S.title}})),_.R("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.R(_.qw,{text:function(){var S;
return(S=Y.data())==null?void 0:S.subtitle}})),_.R("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.R(_.rv,{data:function(){var S;
return(S=Y.data())==null?void 0:S.viewTipsButton}},{buttonViewModel:_.aq}))))},"We"),"yt-contributor-zero-state-view-model",{props:{data:_.wm}});var nZY=_.AI(function(Y){var S=_.Jq(wk1,_.o_(function(){var P;return(P=Y.data())==null?void 0:P.noteFeedEntityKey},""));
return _.R("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.R(_.gw,{cond:function(){var P,u;return(P=Y.data())==null?void 0:(u=P.noteData)==null?void 0:u.isPinned},
then:function(){return _.R(_.BX,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.R(_.qw,{text:function(){var P,u;
return(P=Y.data())==null?void 0:(u=P.noteData)==null?void 0:u.headerText}}),_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.R(_.qw,{text:function(){var P,u;
return(P=Y.data())==null?void 0:(u=P.noteData)==null?void 0:u.delimiter}})),_.R(_.qw,{text:function(){var P,u;
return(P=S())==null?void 0:(u=P.contributorNote)==null?void 0:u.publishedTimeText}})),_.R(_.rv,{data:function(){var P,u,W,m=(P=Y.data())==null?void 0:P.noteData;
P=(u=S())==null?void 0:(W=u.contributorNote)==null?void 0:W.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:m.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:m.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:m.deleteDialogTitle}]},dialogMessages:[{runs:[{text:m.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:m.deleteActionText}]},command:{performCommentActionEndpoint:{action:P}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:m.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(P){return _.R(_.aq,{data:P.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.R("div",{class:"ytNoteViewModelNoteContent"},_.R(_.qw,{text:function(){var P,u;
return(P=S())==null?void 0:(u=P.contributorNote)==null?void 0:u.text}})))},"Xe");
nZY.idomCompat=!0;_.AL(nZY,"yt-note-view-model",{props:{data:_.wm}});var de=_.AI(function(Y){var S=_.tI(Y,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),P=S.label,u=S.text,W=S.placeholder,m=S.hint;Y=S.rows;var J=S.overflowStyle,c=S.outline,C=S.disabled,x=S.disableNewLines,b=S.characterLimit,T=S.validation,K=S.onInput,G=_.Ms();S=_.n(_.ji(function(){return u()}));
var v=S.next().value,a=S.next().value;S=_.n(_.qb(!1,void 0,"fXvinf"));var w=S.next().value,F=S.next().value,U=function(){F(!0)},V=function(){F(!1)};
_.LE(function(){var w1=G.value,U9=J(),nu=v();U9==="expand-vertically"&&nu&&pkY(w1);G.value.addEventListener("focusin",U);G.value.addEventListener("focusout",V)});
_.aI(function(){G.value.removeEventListener("focusin",U);G.value.removeEventListener("focusout",V)});
var M=function(){var w1;return(w1=T())==null?void 0:w1.validate(v())},zJ=function(){return b()&&!M()&&v().length>b().maxChars},O=function(){return!!M()||zJ()};
S=_.mR(function(w1){if(!w1.currentTarget)return!1;w1=w1.currentTarget;a(w1.value);J()==="expand-vertically"&&pkY(w1);K==null||K(w1.value);return!0});
var ca=_.mR(function(w1){x()&&w1.key==="Enter"&&w1.preventDefault();return!1}),hu=_.mR(function(){G.value.focus()}),ah=function(){return W()||P()},va={},yX={},la={};
return _.R("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.R("div",{class:_.Si("ytStandardsTextareaShapeTextareaContainer",(va.ytStandardsTextareaShapeTextareaContainerOutline=c,va.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=C,va.ytStandardsTextareaShapeTextareaContainerOutlineError=O,va)),"on:click":hu},_.R("label",{class:_.Si("ytStandardsTextareaShapeLabel",(yX.ytStandardsTextareaShapeLabelFocused=w,yX.ytStandardsTextareaShapeLabelDisabled=C,yX.ytStandardsTextareaShapeLabelError=
function(){return O()&&!C()},yX.ytStandardsTextareaShapeLabelHidden=function(){return!w()&&!v()&&!!ah()},yX))},P),_.R("div",{class:_.Si("ytStandardsTextareaShapePlaceholder",(la.ytStandardsTextareaShapePlaceholderVisible=function(){return!w()&&!v()},la)),
"aria-hidden":"true"},ah),_.R("textarea",{el:G,class:"ytStandardsTextareaShapeTextarea",rows:Y,disabled:C,placeholder:ah,"on:input":S,"on:keydown":ca},v)),_.R(_.gw,{cond:function(){return m()&&!O()},
then:function(){var w1={};return _.R("div",{class:_.Si("ytStandardsTextareaShapeHint",(w1.ytStandardsTextareaShapeHintDisabled=C,w1))},_.R("div",{class:"ytStandardsTextareaShapeHintHintMessage"},m))}}),_.R(_.gw,{cond:M,
then:function(){return _.R(jjo,{disabled:C},_.R("div",{class:"ytStandardsTextareaShapeErrorMessage"},M))}}),_.R(_.gw,{cond:b,
then:function(w1){return _.R(_.gw,{cond:zJ,then:function(){return _.R(jjo,{disabled:C},_.R("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return w1().errorMessage}),_.R("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return v().length+"/"+w1().maxChars}))}})}}))},"Ye");
de.idomCompat={callbacks:{onInput:!0}};var jjo=_.AI(function(Y){var S={};return _.R("div",{class:_.Si("ytStandardsTextareaShapeError",(S.ytStandardsTextareaShapeErrorDisabled=Y.disabled,S)),role:"alert"},_.R(_.BX,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),Y.children)},"Ze");_.JAd=_.AI(function(Y){var S=Y.data;return _.R("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.R(de,{text:Y.text,label:function(){var P;return(P=S().contentProperties)==null?void 0:P.labelText},
placeholder:function(){var P;return(P=S().contentProperties)==null?void 0:P.placeholderText},
hint:function(){var P;return(P=S().contentProperties)==null?void 0:P.hintText},
outline:function(){var P;return!((P=S().displayProperties)==null?0:P.hideBorder)},
overflowStyle:function(){var P;return((P=S().displayProperties)==null?0:P.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:Y.disabled,disableNewLines:function(){var P;return(P=S().displayProperties)==null?void 0:P.disableNewLines},
onInput:Y.onInput,characterLimit:Y.characterLimit,validation:Y.validation,rows:function(){var P;return(P=S().displayProperties)==null?void 0:P.rows}}))},"$e");_.Bwu=_.AI(function(Y){var S=Y.data;return _.R("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.R(de,{text:Y.text,label:function(){var P;return(P=S().contentProperties)==null?void 0:P.labelText},
placeholder:function(){var P;return(P=S().contentProperties)==null?void 0:P.placeholderText},
hint:function(){var P;return(P=S().contentProperties)==null?void 0:P.hintText},
outline:function(){var P;return!((P=S().displayProperties)==null?0:P.hideBorder)},
overflowStyle:function(){var P;return((P=S().displayProperties)==null?0:P.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var P;return(P=S().displayProperties)==null?void 0:P.disableNewLines},
onInput:Y.onInput,characterLimit:Y.characterLimit,validation:Y.validation,rows:function(){var P;return(P=S().displayProperties)==null?void 0:P.rows}}))},"af");var cA_=_.AI(function(Y){var S=_.n(_.ji(function(){var ah,va;return((ah=Y.data().structuredContextNoteFormSchema)==null?0:(va=ah.initialValues)==null?0:va.noteBody)?Y.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),P=S.next().value,u=S.next().value;
S=_.n(_.ji(function(){Y.data();return!1}));
var W=S.next().value,m=S.next().value;S=_.n(_.ji(function(){Y.data();return!1}));
var J=S.next().value,c=S.next().value;S=_.n(_.ji(function(){var ah,va;return((ah=Y.data().structuredContextNoteFormSchema)==null?0:(va=ah.initialValues)==null?0:va.timestamp)?Y.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var C=S.next().value,x=S.next().value;S=_.n(_.ji(function(){Y.data();return!1}));
var b=S.next().value,T=S.next().value;S=_.n(_.ji(function(){var ah,va;return((ah=Y.data().structuredContextNoteFormSchema)==null?0:(va=ah.initialValues)==null?0:va.sources)?[Y.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var K=S.next().value,G=S.next().value;S=_.n(_.ji(function(){Y.data();return!1}));
var v=S.next().value,a=S.next().value;S=_.n(_.ji(function(){return!1}));
var w=S.next().value,F=S.next().value;_.LE(function(){var ah;_.a0d((ah=Y.data().structuredContextNoteFormSchema)==null?void 0:ah.id,{isSubmitting:w,onSubmit:function(){F(!0);var va=tZX(P(),C(),K(),Y.data()),yX=_.E().resolve(_.uY);va&&yX&&yX.resolveCommand(va,{commandController:{onSuccess:function(){F(!1)}}})},
isValid:function(){return W()&&!J()&&!b()&&!v()}})});
var U=function(ah){if(ah!==void 0&&(u(ah),!W()&&ah.length>0&&m(!0),W())){var va=d1c(Y.data());if(va){var yX=va.minLength;va=va.maxLength;yX&&ah.length<yX?c(!0):va&&ah.length>va?c(!0):c(!1)}}},V=function(ah){if(ah!==void 0){x(ah);
if(ah.length>0){var va,yX,la,w1,U9=Xk1((va=Y.data())==null?void 0:(yX=va.structuredContextNoteFormSchema)==null?void 0:(la=yX.fieldSchemas)==null?void 0:(w1=la.timestamp)==null?void 0:w1.validationSchema);if(U9&&(va=U9.regex)&&!(new RegExp(va)).test(ah)){T(!0);return}}T(!1)}},M=function(ah){if(ah!==void 0){var va=ah.split(/[ \n]/).map(function(yX){return yX.trim()});
G(va);if(ah.length>0)for(ah=_.n(va),va=ah.next();!va.done;va=ah.next())if(!ogc(va.value)){a(!0);return}a(!1)}},zJ=function(){return{validate:function(ah){if(W()){var va=d1c(Y.data());
if(va){var yX=va.minLength;va=va.translations;if(yX&&ah.length<yX)return va==null?void 0:va.minLengthErrorMessage}}}}},O=function(){var ah=d1c(Y.data()),va=ah==null?void 0:ah.maxLength,yX;
ah=ah==null?void 0:(yX=ah.translations)==null?void 0:yX.maxLengthErrorMessage;if(va&&ah)return{maxChars:va,errorMessage:ah}},ca=function(){return{validate:function(ah){if(ah){var va,yX,la,w1,U9=Xk1((va=Y.data())==null?void 0:(yX=va.structuredContextNoteFormSchema)==null?void 0:(la=yX.fieldSchemas)==null?void 0:(w1=la.timestamp)==null?void 0:w1.validationSchema);
if(U9&&(va=U9.regex,U9=U9.translations,va&&!(new RegExp(va)).test(ah)))return U9==null?void 0:U9.regexErrorMessage}}}},hu=function(){return{validate:function(ah){if(ah){var va,yX,la,w1,U9=ixZ((va=Y.data())==null?void 0:(yX=va.structuredContextNoteFormSchema)==null?void 0:(la=yX.fieldSchemas)==null?void 0:(w1=la.sources)==null?void 0:w1.validationSchema);
if(U9&&(va=U9.translations,va==null?0:va.selectedErrorMessage))for(ah=ah.split(/[ \n]/).map(function(nu){return nu.trim()}),ah=_.n(ah),yX=ah.next();!yX.done;yX=ah.next())if(!ogc(yX.value))return ah=void 0,(ah=va)==null?void 0:ah.selectedErrorMessage}}}};
return _.R("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.R("div",{class:"ytStructuredContextNoteViewModelTextField"},_.R(_.rv,{data:function(){var ah;return(ah=Y.data())==null?void 0:ah.noteContents}},{textFormFieldViewModel:function(ah){return _.R(_.Bwu,{data:ah.data,
onInput:U,validation:zJ,characterLimit:O})},
textFieldViewModel:function(ah){return _.R(_.JAd,{data:ah.data,onInput:U,validation:zJ,characterLimit:O})}})),_.R("div",{class:"ytStructuredContextNoteViewModelTextField"},_.R(_.rv,{data:function(){var ah;
return(ah=Y.data())==null?void 0:ah.noteTimestamp}},{textFormFieldViewModel:function(ah){return _.R(_.Bwu,{data:ah.data,
onInput:V,validation:ca})},
textFieldViewModel:function(ah){return _.R(_.JAd,{data:ah.data,onInput:V,validation:ca})}})),_.R("div",{class:"ytStructuredContextNoteViewModelTextField"},_.R(_.rv,{data:function(){var ah;
return(ah=Y.data())==null?void 0:ah.noteSources}},{textFormFieldViewModel:function(ah){return _.R(_.Bwu,{data:ah.data,
onInput:M,validation:hu})},
textFieldViewModel:function(ah){return _.R(_.JAd,{data:ah.data,onInput:M,validation:hu})}})))},"bf");
cA_.idomCompat=!0;_.AL(cA_,"yt-structured-context-note-view-model",{props:{data:_.wm}});var Cko=_.AI(function(Y){var S=_.n(_.ji(function(){var m;if((m=Y.controlled)==null?0:m.call(Y))return[];var J;return(((J=Y.data())==null?void 0:J.chips)||[]).map(function(c){c=_.g(c,_.wD);if(c==null?0:c.selected)return A$I(c.chipValue)}).filter(function(c){return c!==void 0})})),P=S.next().value,u=S.next().value,W=function(m){var J=A$I(m.chipValue);
if(J!==void 0){var c;if((c=Y.controlled)==null?0:c.call(Y))return void Y.controlled().onTap(J);m=P().includes(J)?[].concat(_.cz(P().filter(function(x){return x!==J}))):[].concat(_.cz(P()),[J]);
u(m);var C;if((C=Y.uncontrolled)==null?0:C.call(Y))Y.uncontrolled().onUpdate(m)}};
return _.R("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.R(_.$Z,{each:function(){return Y.data().chips||[]}},function(m){return _.R("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.R(_.Eem,{data:function(){return _.g(m,_.wD)},
selected:function(){var J;if(J=_.g(m,_.wD)){var c=A$I(J.chipValue);if(c!==void 0){var C;J=((C=Y.controlled)==null?0:C.call(Y))?Y.controlled().selectedValues.includes(c):P().includes(c)}else J=void 0}else J=!1;return J},
callback:W}))}))},"cf");var qW_=_.AI(function(Y){var S=Y.data;var P=function(){var c;return((c=S())==null?void 0:c.flowStateKey)||""},u=_.Jq(_.Ps,P),W=function(){var c;
return(c=_.g(u(),s6c))==null?void 0:c.chips},m=function(c){if(c!==void 0){var C=W()||[];
C=C.find(function(x){return x===c})?C.filter(function(x){return x!==c}):[].concat(_.cz(C),[c]);
C=Object.assign({},u(),{feedbackFormFlowState:Object.assign({},_.g(u(),s6c),{chips:C})});_.ip(_.qE("flowStateEntity",P(),C))}},J=function(){var c;
return _.g((c=S())==null?void 0:c.inputBox,dZI)};
Y=_.KX(function(c){var C=J();C=!(C==null?0:C.maxChars)||c.length<=C.maxChars;c=Object.assign({},u(),{feedbackFormFlowState:Object.assign({},_.g(u(),s6c),{detail:c}),abuseReportFlowState:Object.assign({},_.g(u(),OA),{navigationEnabled:C})});_.ip(_.qE("flowStateEntity",P(),c))},150);
return _.R("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.R("div",{class:"ytFeedbackFormViewModelChips"},_.R(_.rv,{data:function(){var c;return(c=S())==null?void 0:c.chipSelection}},{chipSelectionFormFieldViewModel:function(c){return _.R(Cko,{data:c.data,
controlled:function(){return{selectedValues:W()||[],onTap:m}}})}})),_.R("div",{class:"ytFeedbackFormViewModelInputBox"},_.R(de,{text:function(){var c;
return(c=_.g(u(),s6c))==null?void 0:c.detail},
placeholder:function(){var c;return((c=J())==null?void 0:c.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var c=J();if(c&&c.maxChars)return{maxChars:c.maxChars,errorMessage:c.maxCharsExceededErrorMessage||""}},
onInput:Y})),_.R("div",{class:"ytFeedbackFormViewModelFooterText"},_.R(_.qw,{text:function(){return S().footerText}})))},"df");
qW_.idomCompat=!0;_.AL(qW_,"yt-feedback-form-view-model",{props:{data:_.wm}});var Ryj=_.AI(function(Y){var S=Y.data;var P=function(){return S().flowStateKey||""},u=_.Jq(i7u,P),W=function(){return _.g(u(),OA)},m=function(){if(_.f("enable_gff_accessibility_fix")){var J=!0,c;
if((c=W())==null?0:c.navigationEnabled){var C;_.ae((C=W())==null?void 0:C.navigationCommand);J=!1}c=Object.assign({},u(),{abuseReportFlowState:Object.assign({},W(),{isReportFormDirty:J})});_.ip(_.qE("flowStateEntity",P(),c))}else _.ae((J=W())==null?void 0:J.navigationCommand)};
return _.R("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.R("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.R(_.rv,{data:function(){return S().cancelButton}},{buttonViewModel:function(J){return _.R(_.aq,{data:J.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:m})}}),_.R(_.rv,{data:function(){var J;
if(S().navButton){var c=Object;var C=c.assign,x=_.g(S().navButton,_.Gz),b=((J=W())==null?0:J.navigationEnabled)||_.f("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",T,K;J=_.g((T=W())==null?void 0:T.navigationCommand,_.hL);T=(K=_.g(J,_.tp))==null?void 0:K.url;c={buttonViewModel:C.call(c,{},x,{state:b,iconName:T?"OPEN_IN_NEW":""})}}else c=void 0;return c}},{buttonViewModel:function(J){return _.R(_.aq,{data:J.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:m})}})))},"ef");
Ryj.idomCompat=!0;_.AL(Ryj,"yt-report-form-bottom-bar-view-model",{props:{data:_.wm}});var xPc=_.AI(function(Y){var S=Y.nextStep;return _.R("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.R("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.R(_.BX,{icon:function(){return S().iconName||""}})),_.R("div",null,_.R(_.qw,{text:function(){return S().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ff"),bEI=_.AI(function(Y){var S=Y.data;
var P,u=(P=_.E().resolve(_.PQ(_.F5)))==null?void 0:P(),W=_.Jq(_.Ps,function(){return S().flowStateKey||""});
return _.R("yt-report-form-confirmation-page-view-model",{class:function(){var m;return((m=_.g(W(),OA))==null?void 0:m.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.R("div",{class:function(){var m;
return((m=_.g(W(),OA))==null?void 0:m.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.R(_.ZZ,{data:function(){return u&&S().imageDark?S().imageDark:S().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.R("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.R("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return S().confirmationHeader}),_.R("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.R(_.qw,{text:function(){return S().confirmationText}})),_.R("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.R(_.qw,{text:function(){return S().lawEnforcementText}})),
_.R("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return S().whatToExpectHeader}),_.R(_.gw,{cond:function(){return S().nextSteps},
then:function(m){return _.R("div",null,_.R(_.$Z,{each:m},function(J){return _.R(xPc,{nextStep:J})}))}}),_.R(_.gw,{cond:function(){return S().legalReportText},
then:function(m){return _.R("div",null,_.R(_.qw,{text:m,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"gf");
bEI.idomCompat=!0;_.AL(bEI,"yt-report-form-confirmation-page-view-model",{props:{data:_.wm}});var TwI=_.AI(function(Y){var S=Y.data;var P=function(){var m;return((m=_.g(S().inputBox,dZI))==null?void 0:m.maxChars)||500},u=function(){return S().flowStateKey||""},W=_.Jq(_.Ps,u);
Y=_.KX(function(m){m=Object.assign({},W(),{flowFormState:{isValid:m.length<=P()},abuseReportFlowState:{userComments:m,navigationEnabled:!(m.length>P()),isReportFormDirty:!0}});_.X2().dispatch(_.Dw("flowStateEntity",u(),m))},150);
_.LE(function(){var m=Object.assign({},W(),{flowFormState:{isValid:!0}});_.X2().dispatch(_.Dw("flowStateEntity",u(),m))});
return _.R("yt-report-form-details-page-view-model",{class:function(){var m;return((m=_.g(W(),OA))==null?void 0:m.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.R("h1",{class:function(){var m;
return((m=_.g(W(),OA))==null?void 0:m.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return S().detailsPageHeader}),_.R("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.R(_.qw,{text:function(){return S().bodyText}})),_.R("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.R(de,{label:function(){var m;
return((m=_.g(S().inputBox,dZI))==null?void 0:m.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var m;return{errorMessage:((m=_.g(S().inputBox,dZI))==null?void 0:m.maxCharsExceededErrorMessage)||"",maxChars:P()}},
onInput:Y})))},"hf");
TwI.idomCompat=!0;_.AL(TwI,"yt-report-form-details-page-view-model",{props:{data:_.wm}});var KN1=_.AI(function(Y){var S=Y.data;var P=Y.selectedKey;var u=Y.onSelected;var W=Y.groupName;var m=_.R("div",{class:"ytRadioButtonItemViewModelLabel"},_.R("div",null,function(){return S().text}),_.R("div",{class:"ytRadioButtonItemViewModelSubText"},function(){return S().subtext}));
Y={};return _.R("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost",tabindex:0},_.R(_.bc,{name:W,checked:function(){return!(P==null||!P()||S().key!==(P==null?void 0:P()))},
onChange:function(J){u==null||u(J.target,S(),W==null?void 0:W())},
labelRenderable:function(){return m},
ariaLabel:function(){return S().subtext?S().text+", "+S().subtext:S().text},
className:_.Si((Y.ytRadioButtonItemViewModelSubTitle=function(){return!!S().subtext},Y))}))},"jf");_.EZB=_.AI(function(Y){var S=Y.data;var P=Y.onSelected;var u=Y.selectedKey;var W=Y.groupName;return _.R("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.R("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.R(_.rv,{data:function(){return S().radioButtons}},{radioButtonItemViewModel:function(m){var J=m.data;
return _.R(KN1,{data:J,onSelected:P,selectedKey:u,groupName:function(){return W!=null?W:J().key}})}})))},"kf");var f4c=_.AI(function(Y){var S=Y.data;var P=_.yZ(),u=function(){return S().flowStateKey||""},W=_.Jq(_.Ps,u),m=function(){return _.g(W(),OA)};
_.D6(function(){var J,c;if(((J=m())==null?0:J.isReportFormDirty)&&((c=m())==null||!c.navigationEnabled)&&_.f("enable_gff_accessibility_fix")){var C;if(((C=m())==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var x;(x=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||x.scrollIntoView()}else{var b;(b=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||b.scrollIntoView()}}});
return _.R("yt-report-form-reason-select-page-view-model",{class:function(){var J;return((J=m())==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.R("h1",{class:function(){var J;
return((J=m())==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return S().pageHeader}),_.R("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.R(_.qw,{text:function(){return S().bodyText}})),_.R("div",{class:function(){var J;
return((J=m())==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.R(_.gw,{cond:function(){var J,c;
return((J=m())==null?void 0:J.isReportFormDirty)&&!((c=m())==null?0:c.navigationEnabled)&&_.f("enable_gff_accessibility_fix")},
then:function(){return _.R("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:P},_.R(_.BX,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.R("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return S().emptyReasonSelectErrorMessage}))}}),_.R(_.EZB,{data:function(){return _.g(S().radioButtonGroup,_.UZu)},
onSelected:function(J,c){J=Object.assign({},W(),{abuseReportFlowState:Object.assign({},m(),{reasonKey:c.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:c.command})});_.ip(_.qE("flowStateEntity",u(),J))},
selectedKey:function(){var J;return(J=m())==null?void 0:J.reasonKey},
groupName:"report-form-reason-select-page"})))},"lf");
f4c.idomCompat=!0;_.AL(f4c,"yt-report-form-reason-select-page-view-model",{props:{data:_.wm}});var gZZ=_.AI(function(Y){var S=Y.data;var P,u=(P=_.E().resolve(_.PQ(_.F5)))==null?void 0:P();return _.R("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.R("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.R(_.ZZ,{data:function(){return u&&S().imageDark?S().imageDark:S().image},
alt:""})),_.R("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.R("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return S().header}),_.R(_.qw,{text:function(){return S().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"mf");
gZZ.idomCompat=!0;_.AL(gZZ,"yt-report-form-sign-in-page-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;var P=function(){var x;return(x=S().textInputPlaceholder)==null?void 0:x.content},u=function(x){x=x.target.value.trim();
var b=S().onUpdateText;b&&_.ae(b,{form:{userQuery:x}});S().userQuery=x},W=_.KX(function(x){u(x)},150),m=_.mR(function(x){W(x);
return!1}),J=_.mR(function(x){x.key==="Enter"&&(u(x),(x=S().onNextStepCommand)&&_.ae(x,{}));
return!1}),c=_.Ms(),C=function(){if(_.f("web_hide_explore_hub_until_user_navigates_back_to_home")){var x,b,T;
(T=(b=(x=c.value)==null?void 0:x.closest("ytd-flow-step-renderer"))==null?void 0:b.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||T.click()}};
return _.R("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:c},_.R("div",{class:"ytwTalkToRecsTopCornerButton"},_.R(_.rv,{data:function(){return S().topCornerButton}},{buttonViewModel:_.aq})),_.R("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.R("div",{class:"ytwTalkToRecsTitle"},_.R(_.qw,{text:function(){return S().title}})),_.R("div",{class:"ytwTalkToRecsSubtitle"},_.R(_.qw,{text:function(){return S().subtitle}})),_.R("div",{class:"ytwTalkToRecsChipsShelf"},_.R(_.rv,{data:function(){return S().answersShelf}},
{chipsShelfViewModel:function(x){return _.R(_.veL,{data:x.data,
callback:C})}})),_.R(_.gw,{cond:function(){return S().showOpenTextInput&&!_.f("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.R("div",{class:"ytwTalkToRecsUserInputBox"},_.R("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:P,value:function(){return S().userQuery},
"on:input":m,"on:keyup":J}))}})))},"nf"),"yt-talk-to-recs-view-model",{props:{data:_.wm}});var U1I={sources:[{clientResource:{imageName:"CHECK"}}]};_.$PZ=_.AI(function(Y){var S=_.Ms();Y=_.tI(Y,{error:void 0});var P=Y.data,u=Y.error,W=Y.onSelected;Y=_.n(_.ji(function(){return MZI(P())}));
var m=Y.next().value,J=Y.next().value;VZj(P,function(T){J(T);var K,G,v=kHZ((K=P().options)==null?void 0:(G=K[T])==null?void 0:G.value,P().type);W==null||W(v);S.value.focus()});
Y=_.mR(function(){if(!P().disabled){var T=P(),K=m(),G=S.value;T.options&&(T=QYX(T.options,K,T.label),_.E().resolve(_.xx).openSheet({viewModel:T},G))}});
var c=_.GsK(),C=function(){return!!u()},x=function(){return!!P().disabled},b={};
b=_.Si("ytDropdownViewModelDropdownContainer",(b.ytDropdownViewModelDropdownContainerErrorBorder=C,b.ytDropdownViewModelDropdownContainerDisabled=x,b));return _.R("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.R("div",{class:b,"on:click":Y,el:S,role:"combobox",tabindex:0,"on:keydown":c,"aria-invalid":C,"aria-disabled":x,"aria-describedby":function(){return C()?"dropdown-view-model-error":void 0}},_.R("div",{class:"ytDropdownViewModelText"},y$B(P,C,m),NhI(P,m)),_.R("div",{class:"ytDropdownViewModelChevronDown"},
_.R(_.BX,{icon:"CHEVRON_DOWN"}))),HxZ(P,u))},"of");_.AL(_.AI(function(Y){var S=Y.data;var P=function(W){var m=Ox1(S());m.videoMetadata||(m.videoMetadata={});m.videoMetadata.sponsorshipsMetadata||(m.videoMetadata.sponsorshipsMetadata={});m.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(W)},u=function(W){var m=Ox1(S());
m.scheduledRedirectMetadata||(m.scheduledRedirectMetadata={});m.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(W)};
return _.R("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.R("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.R("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.R(_.qw,{text:function(){return S().title}}),_.R(_.BX,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.R(_.qw,{text:function(){return S().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.R(_.rv,{data:function(){return S().tierChoices}},{dropdownViewModel:function(W){return _.R("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.R(_.$PZ,{data:W.data,
onSelected:P}))}}),_.R(_.rv,{data:function(){return S().startTimeChoices}},{dropdownViewModel:function(W){return _.R("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.R(_.$PZ,{data:W.data,
onSelected:u}))}}),_.R(_.qw,{text:function(){return S().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.R("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.R(_.rv,{data:function(){return S().scheduleButton}},{panelFooterViewModel:_.s8})))},"pf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;Y=Y.className===void 0?"":Y.className;var P=_.Jq(i7u,function(){return S().flowStateEntityKey||""}),u={};
u=_.Si("ytFlowBottomBarViewModelFlowBottomBarButtons",(u.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},u));
var W={},m=_.Si("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",u,(W.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},W.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},W));
W={};var J=_.Si("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",u,(W.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},W.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},W));
u={};u=_.Si("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(u.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},u.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},u.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
u));
return _.R("yt-flow-bottom-bar-view-model",{class:_.Si("ytFlowBottomBarViewModelHost",Y)},_.R(_.gw,{cond:function(){var c;return(c=S())==null?void 0:c.textSection},
then:function(c){return _.R("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.R(_.qw,{text:c}))}}),_.R("div",{class:u},_.R(_.rv,{data:function(){return S().secondaryButton}},{buttonViewModel:function(c){return _.R(_.aq,{data:c.data,
className:J})}}),_.R(_.rv,{data:function(){return S().primaryButton}},{buttonViewModel:function(c){return _.R(_.aq,{data:c.data,
className:m,buttonOverrides:function(){var C;return{disabled:!((C=P())==null||!C.primaryButtonDisabled)}}})}})))},"qf"),"yt-flow-bottom-bar-view-model",{props:{data:_.wm,
className:_.tL}});var rA1="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),l3=function(){var Y=_.Z.apply(this,arguments)||this;Y.enableScrollingFix=!0;Y.bottomBar=!1;Y.hideBottomBar=!1;Y.fitContent=!1;return Y};
_.r(l3,_.Z);_.z=l3.prototype;_.z.ready=function(){_.f("enable_pdp_icon_prefetch")&&_.Foo(_.E().resolve(_.u5),0,rA1)};
_.z.focus=function(Y){this.topBar?_.NR(this.topBar,Y):this.paperDialog.focus(Y)};
_.z.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16688_scroller&&(this.JSC$16688_scroller.dialogElement=this.paperDialog,this.JSC$16688_scroller.attached&&typeof this.JSC$16688_scroller.attached==="function"&&this.JSC$16688_scroller.attached())};
_.z.onDataChanged=function(){var Y;this.fitContent=!((Y=this.data)==null||!Y.fitContent);var S;this.bottomBar=!((S=this.data)==null||!S.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.z.onProgressChanged=function(){var Y,S,P=((S=(Y=this.data)==null?void 0:Y.progress)!=null?S:0)*100;this.progressElement.style.width=P+"%"};
_.z.isProgressHidden=function(){var Y;return!((Y=this.data)==null?0:Y.progress)};
_.z.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(Y){return _.f("enable_wiz_next_lp2_msof")&&Y&&!Y.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.y6.Object.defineProperties(l3.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var Y;return _.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.g((Y=this.data)==null?void 0:Y.content,oSY)}}});
l3.prototype.onProgressChanged=l3.prototype.onProgressChanged;l3.prototype.onDataChanged=l3.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],l3.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],l3.prototype,"enableScrollingFix",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],l3.prototype,"bottomBar",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],l3.prototype,"hideBottomBar",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],l3.prototype,"containsExploreHub",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],l3.prototype,"fitContent",void 0);_.Q([_.nc("#progress"),_.k("design:type",HTMLElement)],l3.prototype,"progressElement",void 0);
_.Q([_.nc("#scroller"),_.k("design:type",Object)],l3.prototype,"JSC$16688_scroller",void 0);_.Q([_.nc("ytd-flow-top-bar-renderer"),_.k("design:type",HTMLElement)],l3.prototype,"topBar",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],l3.prototype,"onDataChanged",null);_.Q([_.zY("data.progress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],l3.prototype,"onProgressChanged",null);
l3=_.Q([_.t({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],l3);
_.A(l3,"ytd-flow-step-renderer",function(){if(Jx1!==void 0)return Jx1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Jx1=Y},{mode:1});var GB1=function(Y){this.resolveCommand=Y;this.steps={}},hyj=function(Y,S){S=_.n(S||[]);
for(var P=S.next();!P.done;P=S.next()){P=P.value;var u=Object.values(P)[0],W=void 0;if((W=u)==null?0:W.stepId)Y.steps[u.stepId]=P}},I45=function(Y,S){var P,u,W,m,J;
return _.B(function(c){if((P=Y.state)==null||!P.currentStepId)return c.return(void 0);u=vZX(Y);if(!u)return c.return(DPI(Y));if(W=_.g(u,_.iNo)){var C;((C=W.screenLoggingData)==null?0:C.screenVeType)&&_.Ow(_.BF(),W.screenLoggingData.screenVeType);((m=W)==null?0:m.onStepStartCommand)&&Y.resolveCommand((J=W)==null?void 0:J.onStepStartCommand,{})}if(W&&S){C=W;var x,b,T,K;((x=S.flowLoggingData)==null?0:x.eventNamespace)&&((b=C.flowEventData)==null?0:b.eventType)&&((T=C.flowEventData)==null?0:T.eventMetadata)&&
((K=S.flowLoggingData)==null?0:K.flowType)&&(x=_.jV(S.flowLoggingData.eventNamespace,C.flowEventData.eventType,C.flowEventData.eventMetadata),_.JK(_.Bq(),x,S.flowLoggingData.flowType));S.steps&&!S.steps.includes(u)&&S.steps.push(u)}return c.return(u)})};
GB1.prototype.back=function(){var Y;(Y=this.state)!=null&&Y.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
GB1.prototype.handleUpdateFlowCommand=function(Y){Y.steps&&hyj(this,Y.steps);Y.entityUpdateCommand&&this.resolveCommand(Y.entityUpdateCommand,{});Y.flowContinuationCommand&&(Y=Y.flowContinuationCommand)&&(this.getFlowContinuationCommand=Y);this.awaitFlowContinuation&&(this.awaitFlowContinuation(vZX(this)),this.awaitFlowContinuation=void 0)};
GB1.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var DPI=function(Y){return _.B(function(S){return Y.getFlowContinuationCommand?S.return(new Promise(function(P){Y.awaitFlowContinuation=P;Y.getFlowContinuationCommand&&Y.resolveCommand(Y.getFlowContinuationCommand,{flow_state:Y.state})})):S.return(Promise.resolve(void 0))})},vZX=function(Y){var S;
if((S=Y.state)!=null&&S.currentStepId)return Y.steps[Y.state.currentStepId]};var XT=function(){var Y=_.Z.apply(this,arguments)||this;Y.flowState=new GB1(function(S,P){P=P===void 0?{}:P;_.zR.instance.resolveCommand(S,{form:{form:P,element:Y.hostElement}})});
Y.initialState=!0;Y.isLoading=!1;Y.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return Y};
_.r(XT,_.Z);_.z=XT.prototype;_.z.onPopupClosed=function(Y){Y&&this.hostElement!==Y.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.z.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"}}}};
_.z.focus=function(Y){var S=this;_.w0(function(){var P=_.I(S.hostElement).querySelector("ytd-flow-step-renderer");P.topBar?P.focus(Y):S.topBar&&_.NR(S.topBar,Y)},1)};
_.z.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.z.computeTopBarHidden=function(Y){var S;return!((S=_.g(Y,_.iNo))==null||!S.topBarOverride)};
_.z.dataChanged=function(){var Y=this,S,P;return _.B(function(u){if(u.nextAddress==1){((S=Y.data)==null?0:S.steps)&&hyj(Y.flowState,Y.data.steps);if((P=Y.data)==null?0:P.flowContinuationCommand){var W=Y.flowState,m=Y.data.flowContinuationCommand;m&&(W.getFlowContinuationCommand=m)}return _.q(u,I45(Y.flowState,Y.data),2)}Y.currentFlowStep=u.yieldResult;_.Yt(u)})};
_.z.flowChanged=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1){if(!Y.flow)return P.return();Y.flowState.state=Y.flow;Y.isLoading=!0;return _.q(P,I45(Y.flowState,Y.data),2)}S=P.yieldResult;if(!S||Y.flow.isLoading)return P.return();Y.currentFlowStep=S;Y.initialState=!1;Y.isLoading=!1;Y.autofocusAndRefit();_.Yt(P)})};
_.z.autofocusAndRefit=function(){var Y=this,S=_.E().resolve(_.PQ(_.Tz)),P=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),u=document.querySelector("yt-report-form-confirmation-page-view-model"),W=document.querySelector("yt-report-form-details-page-view-model"),m=document.querySelector("yt-report-form-reason-select-page-view-model"),J=document.querySelector("yt-contributor-zero-state-view-model"),
c=document.querySelector("yt-structured-context-note-view-model"),C=document.querySelector("yt-note-view-model");(!P&&S&&S.isKeyBoardInUse()||u||!P&&W||!P&&m||J||c||C)&&_.H_(this.hostElement);_.ky(this,function(){_.ms(Y.hostElement,"yt-refit")})};
_.z.handleUpdateFlowCommand=function(Y){this.data&&(Y=_.g(Y,ZN_),Y.targetId===this.data.targetId&&(Y.flowContinuationCommand&&(this.data.flowContinuationCommand=Y.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(Y),this.autofocusAndRefit()))};
_.z.handleFlowNextStepCommand=function(Y){this.data&&this.flow&&this.flow.key&&(Y=_.g(Y,lb5),Y.targetId===this.data.targetId&&(Y=Y.stepId||"",this.ytdReduxBehavior.dispatch(_.Dw("flowStateEntity",this.flow.key,{currentStepId:Y,stepIdStack:(this.flow.stepIdStack||[]).concat(Y)}))))};
_.z.handleFlowPrevStepCommand=function(Y){if(this.data&&this.flow&&this.flow.key&&(Y=_.g(Y,Xh5),Y.targetId===this.data.targetId)){var S=[].concat(_.cz(this.flow.stepIdStack||[]));S.length>1?(S.pop(),this.ytdReduxBehavior.dispatch(_.Dw("flowStateEntity",this.flow.key,{currentStepId:S[S.length-1],stepIdStack:S}))):Y.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(Y.onFirstStepCommand)}};
_.z.handleYpcCancelRecurrenceCommand=function(Y){if(this.data&&this.flow&&this.flow.key&&(Y=_.g(Y,Q65),Y.targetId===this.data.targetId&&Y.endpointCommand)){var S=_.g(this.flow,kl1);S&&_.g(Y.endpointCommand,_.e2f)&&(_.g(Y.endpointCommand,_.e2f).feedbackData=S.surveyFeedback);this.ytComponentBehavior.resolveCommand(Y.endpointCommand)}};
_.z.handlePartialUpdateFlowStateEntity=function(Y){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Dw("flowStateEntity",this.flow.key,Y,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
XT.prototype.flowChanged=XT.prototype.flowChanged;XT.prototype.dataChanged=XT.prototype.dataChanged;XT.prototype.onPopupClosed=XT.prototype.onPopupClosed;_.Q([_.p(_.Gn),_.k("design:type",Object)],XT.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],XT.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],XT.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XT.prototype,"initialState",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XT.prototype,"isLoading",void 0);_.Q([_.X(),_.k("design:type",Object)],XT.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],XT.prototype,"currentFlowStep",void 0);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],XT.prototype,"onPopupClosed",null);_.Q([_.X({selectorArgs:["data.flowStateEntityKey"],selector:i7u}),_.k("design:type",Object)],XT.prototype,"flow",void 0);_.Q([_.nc("ytd-flow-top-bar-renderer"),_.k("design:type",HTMLElement)],XT.prototype,"topBar",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],XT.prototype,"dataChanged",null);_.Q([_.cZ("flow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],XT.prototype,"flowChanged",null);XT=_.Q([_.t({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],XT);
_.a4B=_.eD()(XT,"ytd-flow-root-renderer",function(){if(jIB!==void 0)return jIB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return jIB=Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var LNu;var VA=null;_.AL(_.AI(function(Y){return _.R("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.R("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.R(_.qw,{text:function(){return Y.data().text}}),_.R("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"rf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.wm}});var wRX=_.AI(function(Y){var S=Y.playerControlsProps;var P=Y.isShortsPage;return _.R("yt-bigboard",null,_.R(_.gw,{cond:function(){return S().isDragging},
then:function(){return _.R("div",{class:"ytBigboardStoryboardHost"},_.R(_.hL6,{progressBarProps:S,isShortsPage:P}))}}))},"sf");
wRX.idomCompat=!0;_.ZM={ACCOUNT_LABEL:el("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:el("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:el("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:el("AD_BADGE_HINT"),AD_BADGE_TEXT:el("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:el("ALL_CHANNELS_LABEL"),AMBIENT_MODE:el("AMBIENT_MODE"),AMBIENT_MODE_OFF:el("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:el("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:el("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:el("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:el("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:el("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:el("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:el("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:el("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:el("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:el("AUTOPLAY_UP_NEXT_IN"),BACK:el("BACK"),CANCEL:el("CANCEL"),CHANNEL_SWITCHER_LABEL:el("CHANNEL_SWITCHER_LABEL"),CLOSE:el("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:el("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:el("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:el("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:el("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:el("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:el("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:el("COMMENT_MODAL_CONTENT"),CONFIRM_OK:el("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:el("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:el("COPIED_TO_CLIPBOARD"),COPY:el("COPY"),COPY_DEBUG_INFO:el("COPY_DEBUG_INFO"),COPY_EMBED_CODE:el("COPY_EMBED_CODE"),COPY_LINK_LABEL:el("COPY_LINK_LABEL"),
COPY_VIDEO_URL:el("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:el("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:el("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:el("DELETE_FROM_DOWNLOADS"),DIALOG:el("DIALOG"),DONE:el("DONE"),DOWNLOAD:el("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:el("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:el("FLAG_CONFIRM"),FLAG_CONTENT:el("FLAG_CONTENT"),FLAG_LABEL:el("FLAG_LABEL"),FLAG_TITLE:el("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:el("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:el("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:el("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:el("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:el("HIDE_SEARCH_FILTERS_LABEL"),HOME:el("HOME","Home"),INVALID_RESPONSE_RECEIVED:el("INVALID_RESPONSE_RECEIVED"),LIBRARY:el("LIBRARY","Library"),LISTENING:el("LISTENING"),LOADING:el("LOADING"),LONG_PRESS_MIC_TO_SPEAK:el("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:el("LOOP"),MENU_DESKTOP:el("MENU_DESKTOP"),MENU_EXIT:el("MENU_EXIT"),
MENU_FEEDBACK:el("MENU_FEEDBACK"),MENU_HELP:el("MENU_HELP"),MENU_IMPRESSUM:el("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:el("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:el("MENU_SETTINGS"),MENU_SIGN_IN:el("MENU_SIGN_IN"),MENU_TITLE:el("MENU_TITLE"),MENU_YOUR_DATA:el("MENU_YOUR_DATA"),MORE_INFO:el("MORE_INFO"),MORE_OPTIONS:el("MORE_OPTIONS"),MUTE_VOLUME:el("MUTE_VOLUME"),NEW_PLAYLIST:el("NEW_PLAYLIST"),NEXT_VIDEO:el("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:el("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:el("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:el("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:el("NOT_FOUND_TITLE"),NO_DOWNLOADS:el("NO_DOWNLOADS"),NO_MIC_INPUT:el("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:el("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:el("OOPS_MESSAGE"),OPEN_APP:el("OPEN_APP"),OPEN_YOUTUBE:el("OPEN_YOUTUBE"),PAUSE:el("PAUSE"),PLAY:el("PLAY"),PLAYER_CAPTION:el("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:el("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:el("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:el("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:el("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:el("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:el("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:el("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:el("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:el("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:el("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:el("PLAYER_MINIMIZE"),PLAYER_NEXT:el("PLAYER_NEXT"),PLAYER_PAUSE:el("PLAYER_PAUSE"),PLAYER_PLAY:el("PLAYER_PLAY"),
PLAYER_PREVIOUS:el("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:el("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:el("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:el("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:el("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:el("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:el("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:el("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:el("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:el("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:el("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:el("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:el("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:el("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:el("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:el("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:el("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:el("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:el("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:el("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:el("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:el("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:el("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:el("PLAY_ALL"),PLEASE_FIX_ERRORS:el("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:el("PREVIOUS_VIDEO"),PRIVACY_POLICY:el("PRIVACY_POLICY"),RELOAD:el("RELOAD"),REQUIRED_LABEL:el("REQUIRED_LABEL"),SAVE_PLAYLIST:el("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:el("SCRUB_SLIDE_USER_EDU"),SEARCH:el("SEARCH","Search"),SEARCH_APPEND_LABEL:el("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:el("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:el("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:el("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:el("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:el("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:el("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:el("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:el("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:el("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:el("SEEK_SLIDER"),SETTINGS_LABEL:el("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:el("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:el("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:el("SHOW_LESS"),SHOW_MORE:el("SHOW_MORE"),SHOW_PLAYER_CONTROLS:el("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:el("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:el("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:el("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:el("SIGN_IN_ON_WEB"),STABLE_VOLUME:el("STABLE_VOLUME"),
STABLE_VOLUME_OFF:el("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:el("STABLE_VOLUME_ON"),STATS_FOR_NERDS:el("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:el("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:el("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:el("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:el("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:el("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:el("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:el("TIMESTAMP_SECONDS"),TOGGLE_OFF:el("TOGGLE_OFF"),
TOGGLE_ON:el("TOGGLE_ON"),TRENDING:el("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:el("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:el("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:el("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:el("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:el("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:el("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:el("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:el("VIDEO_LINK_LABEL")};var pR1=_.AI(function(Y){var S=Y.playerApi;Y=_.Ms(function(W){k0(W,36843)});
var P=el("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),u=_.mR(function(){Mf(36843);S&&S().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.R("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.R("button",{el:Y,class:"ytPlayerControlsJumpForwardButtonButton",title:P,"aria-label":P,"on:click":u},_.R("span",null,_.R(_.BX,{icon:"FAST_FORWARD"}))))},"tf");var FNo=_.AI(function(Y){var S=Y.appApi;Y=_.Ms(function(W){k0(W,62946)});
var P=el("OPEN_IN_MINIPLAYER"),u=_.mR(function(){Mf(62946);var W,m;(m=(W=S()).openInMiniplayer)==null||m.call(W);return!1});
return _.R("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.R("button",{el:Y,class:"ytMiniplayerButtonButton",title:P,"aria-label":P,"on:click":u},_.R(_.BX,{icon:"PICTURE_IN_PICTURE",active:!1})))},"uf");var sj5=_.AI(function(Y){var S=Y.playerApi;Y=_.Ms(function(J){k0(J,142812)});
var P=_.n(_.qb(!1,void 0,"I3VCyb")),u=P.next().value,W=P.next().value;P=function(){return el("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(u()?1:2)})};
var m=_.mR(function(){Mf(142812);if(S){var J=S(),c=u();J.setPlaybackRate(c?1:2);W(!u())}return!1});
return _.R("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.R("button",{el:Y,class:"ytPlaybackSpeedButtonButton",title:P,"aria-label":P,"on:click":m},_.R("span",null,_.R(_.BX,{icon:function(){return u()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"vf");var dPo=_.AI(function(Y){var S=Y.title;var P=Y.ariaLabel;var u=Y.icon;var W=Y.command;var m=Y.veType;Y=_.Ms(function(c){m&&k0(c,m())});
var J=_.mR(function(){m&&Mf(m());W&&_.E().resolve(_.uY).resolveCommand(W())});
return _.R("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.R("button",{el:Y,class:"ytdThumbnailOverlayButtonButton",title:S,"aria-label":P,"on:click":J},_.R(_.BX,{icon:u})))},"wf");var l4B=["en-CA","en","es-MX","fr-CA"];var XR5=_.AI(function(Y){var S=_.tI(Y,{isOverlay:!1}),P=S.captionIconType,u=S.onClick;Y=S.ariaLabel;var W=S.ariaPressed,m=S.isOverlay;S=_.Ms(function(C){k0(C,127299)});
var J=_.mR(function(C){Mf(127299);u==null||u(C);return!1}),c={};
return _.R("ytm-closed-captioning-button",{class:_.Si("ytmClosedCaptioningButtonHost",(c.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return P()===-1&&m()},c.ytmClosedCaptioningButtonIconDisabled=function(){return P()===-1&&!m()},c))},_.R("button",{el:S,
class:"ytmClosedCaptioningButtonButton",title:Y,"aria-label":Y,"aria-pressed":W,"on:click":J},_.R(_.BX,{icon:function(){var C="";var x=_.$o().get("hl");x=!x||l4B.includes(x)?"CLOSED_CAPTION":"SUBTITLES";var b=P();switch(b){case -1:case 0:C=x;break;case 1:C=x+"_FILLED";break;default:_.O6(b)}return C}})))},"xf");
XR5.idomCompat={callbacks:{onClick:!0}};var QA="";var ZEI=_.AI(function(Y){var S=Y.playerControlsProps,P=Y.onClickFn;Y=_.fJ(function(){var m=S(),J=-1;m.captionsAvailable&&(J=m.captionsEnabled?1:0);return J},void 0,"WecR8e");
var u=_.fJ(function(){var m=S();return m.captionsAvailable?_.Td(m.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Td("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),W=_.fJ(function(){var m=S();
m=m.captionsAvailable?m.captionsEnabled:void 0;return m},void 0,"Q17ly");
return _.R("yt-closed-captions-toggle-button",null,_.R(XR5,{captionIconType:Y,ariaLabel:u,ariaPressed:W,onClick:function(m){var J=S();if(J.captionsAvailable){var c=J.playerApi;if(c){var C=J.playerApi;if(C){var x=QA;if(x){C=C.getOption("captions","track");var b;QA=(b=C?C.displayName:null)!=null?b:x}else C.getOptions("captions")?(x=As_(C),QA=x.length?(b=Ugc(x))?b.displayName:x[0].displayName:""):QA=""}QD5(c);_.f("mweb_disable_set_state_captions_killswitch")&&J.setState({captionsEnabled:!J.captionsEnabled})}}var T,
K;(K=(T=J.appApi).showCaptionsToggleToast)==null||K.call(T,J);P==null||P(m)},
isOverlay:!0}))},"yf");var iEu=_.AI(function(Y){var S=Y.data;return _.R("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.R(_.ME,{data:function(){return{type:16,text:_.$3a(S().label)}}}))},"zf");var oZY=_.AI(function(Y){var S=_.Si("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return Y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return Y.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return Y.size()==="small"?Y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
Y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.R("animated-seek-arrows",{class:_.Si("ytPlayerControlsAnimatedSeekArrowsHost")},_.R("span",{class:S}),_.R("span",{class:S}),_.R("span",{class:S}))},"Af");
oZY.idomCompat=!0;var tX_=_.AI(function(){var Y=_.Td("PLAYER_SECONDS",{seconds_placeholder:"30"}),S=_.n(_.qb(!1,void 0,"Yj8msb")),P=S.next().value,u=S.next().value,W=_.n(_.qb(!1,void 0,"r9Z50e"));S=W.next().value;var m=W.next().value;W={};var J=_.Si("jumpForwardOverlayOverlay",(W.jumpForwardOverlayOverlayHidden=S,W));_.LE(function(){var c=null,C=null,x=function(){c!==null&&_.vs().cancelJob(c);C!==null&&_.vs().cancelJob(C);m(!0);u(!0);_.yz(_.vs(),function(){m(!1)});
c=_.yz(_.vs(),function(){m(!0);C=_.yz(_.vs(),function(){u(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",x);_.aI(function(){window.removeEventListener("jump-forward-clicked",x)})});
return _.R("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.R(_.gw,{cond:P,then:function(){return _.R("div",{class:J},_.R(oZY,{direction:1,size:"large"}),_.R("div",null,Y))}}))},"Bf");var CV6=_.ZM.MUTE_VOLUME,cF6=_.ZM.UNMUTE_VOLUME,AA5=_.AI(function(Y){var S=Y.muteIconType;var P=Y.onClick;var u=Y.useOutlineIcon;Y=_.Ms(function(J){k0(J,28662)});
var W=function(){return q_c(S(),u==null?void 0:u()).ariaLabel},m=_.mR(function(J){Mf(28662);
P==null||P(J);return!1});
return _.R("ytm-mute-button",{class:"ytmMuteButtonHost"},_.R("button",{el:Y,class:"ytmMuteButtonButton",title:W,"aria-label":W,"on:click":m},_.R("span",null,_.R(_.BX,{icon:function(){return q_c(S(),u==null?void 0:u()).iconName}}))))},"Cf");var UP6=_.AI(function(Y){var S=Y.volumeProps;var P=Y.onClickFn;var u=Y.useOutlineIcon;return _.R("yt-mute-toggle-button",null,_.R(AA5,{muteIconType:function(){var W=S(),m=!_.f("mweb_treat_zero_volume_as_muted_killswitch")&&W.volume===0;return W.volumeMuted||m?0:1},
onClick:function(W){var m=S().playerApi;m&&(m.isMuted()?m.unMute():m.mute(!1));P==null||P(W)},
useOutlineIcon:function(){return!(u==null||!u())}}))},"Df");
UP6.idomCompat=!0;var Qj6=_.AI(function(Y){var S=Y.data;var P=_.Ms();Y=_.mR(function(){P.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.R("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:P,"on:animationend":Y},_.R(_.CR,{command:function(){return S().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.R(_.gw,{cond:function(){var u;return(u=S().icon)==null?void 0:u.iconType},
then:function(){return _.R("span",null,_.R(_.BX,{icon:function(){var u;return(u=S().icon)==null?void 0:u.iconType}}))}}),_.R("div",{class:"ytmPaidContentOverlayText"},_.R(_.qw,{text:function(){return S().text}})),_.R(_.gw,{cond:function(){return S().navigationEndpoint},
then:function(){return _.R(_.BX,{icon:"CHEVRON_RIGHT"})}})))},"Ef");
Qj6.idomCompat=!0;var RJu=[].concat(_.cz([{register:function(Y){var S=Gl1(Y),P;(P=Y().playerApi)==null||P.addEventListener("onVolumeChange",S);return function(){}}},
{register:function(Y){var S=hJ1(Y);Y=Y().playerApi;Y==null||Y.addEventListener("captionschanged",S);Y==null||Y.addEventListener("captionssettingschanged",S);Y==null||Y.addEventListener("onCaptionsTrackListChanged",S);return function(){}}},
{register:function(Y){if(!_.f("mweb_screenreader_accessible_player"))return function(){};
var S=vS1(Y),P=document.querySelector("video");P==null||P.addEventListener("touchend",S);return function(){P==null||P.removeEventListener("touchend",S)}}},
{register:function(Y){if(!_.f("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var S=vS1(Y),P=document.querySelector("video");P==null||P.addEventListener("focus",S);return function(){P==null||P.removeEventListener("focus",S)}}}]),[{register:function(Y){var S=fbd(Y),P;
(P=Y().playerApi)==null||P.addEventListener("onStateChange",S);return function(){}}},
{register:function(Y){var S=gSd(Y),P;(P=Y().playerApi)==null||P.addEventListener("onPlaybackRateChange",S);return function(){}}},
{register:function(Y){var S=$ZX(Y),P;(P=Y().playerApi)==null||P.addEventListener("onVideoDataChange",S);return function(){}}},
{register:function(Y){var S=rF1(Y),P,u;(P=Y())==null||(u=P.playerApi)==null||u.addEventListener("onVideoProgress",S);return function(){}}}]);var kBY=_.AI(function(Y){var S=Y.data;var P=function(){return _.Td("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+S().playbackRate})};
return _.R(_.gw,{cond:function(){return S().playbackRate&&S().playbackRate!==1},
then:function(){return _.R("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.R("div",{class:"ytPlaybackRateOverlayOverlay"},_.R(oZY,{direction:1,size:"small"}),_.R("div",{class:"ytPlaybackRateOverlayLabel"},P)))}})},"Ff");var MX5=_.AI(function(Y){var S=Y.data;return _.R("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.R(_.gw,{cond:function(){var P,u=(P=S())==null?void 0:P.playerResponse,W;return u==null?void 0:(W=u.paidContentOverlay)==null?void 0:W.paidContentOverlayRenderer},
then:function(P){return _.R(Qj6,{data:P})}}))},"Hf"),yAI=_.AI(function(Y){var S=Y.props;
var P=Y.data;var u=Y.options;var W=function(){var x,b,T,K;return(x=P())==null?void 0:(b=x.playerResponse)==null?void 0:(T=b.playerConfig)==null?void 0:(K=T.inlinePlaybackConfig)==null?void 0:K.showAudioControls},m=function(){var x,b;
if(W()&&((x=u())==null?void 0:(b=x.additionalButton)==null?void 0:b.button)!==void 0){var T,K,G;x=(T=P())==null?void 0:(K=T.playerApi)==null?void 0:(G=K.getSize())==null?void 0:G.height;if(!(x===void 0||x<184)){var v,a;return(v=u())==null?void 0:(a=v.additionalButton)==null?void 0:a.button}}},J=function(){var x,b;
return(x=u())==null?void 0:(b=x.additionalButton)==null?void 0:b.thumbnailOverlayButtonRenderers},c=function(){var x,b;
return(x=u())==null?void 0:(b=x.additionalButton)==null?void 0:b.thumbnailOverlayButtonViewModels},C=function(){var x=[_.R(UP6,{volumeProps:S}),
_.R(ZEI,{playerControlsProps:S})];m()===1&&x.push(_.R(pR1,{playerApi:function(){return S().playerApi}}));
m()===2&&x.push(_.R(FNo,{appApi:function(){return S().appApi}}));
m()===3&&x.push(_.R(sj5,{playerApi:function(){return S().playerApi}}));
var b=J();if(m()===4&&b){b=_.n(b);for(var T=b.next(),K={};!T.done;K={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$53:void 0,command$jscomp$566:void 0},T=b.next()){T=T.value;K.tooltip$jscomp$2=T.tooltip;var G=void 0,v=void 0;K.ariaLabel$jscomp$20=((G=T.accessibility)==null?void 0:(v=G.accessibilityData)==null?void 0:v.label)||K.tooltip$jscomp$2;G=void 0;K.icon$jscomp$53=(G=T.icon)==null?void 0:G.iconType;K.command$jscomp$566=T.command;K.tooltip$jscomp$2&&K.ariaLabel$jscomp$20&&K.icon$jscomp$53&&
x.push(_.R(dPo,{title:function(a){return function(){return a.tooltip$jscomp$2}}(K),
ariaLabel:function(a){return function(){return a.ariaLabel$jscomp$20}}(K),
icon:function(a){return function(){return a.icon$jscomp$53}}(K),
command:function(a){return function(){return a.command$jscomp$566}}(K)}))}}b=c();
if(m()===4&&b)for(b=_.n(b),T=b.next(),K={};!T.done;K={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$54:void 0,command$jscomp$567:void 0},T=b.next())T=T.value,K.tooltip$jscomp$3=T.title,K.ariaLabel$jscomp$21=T.accessibilityText||K.tooltip$jscomp$3,K.icon$jscomp$54=T.iconName,K.command$jscomp$567=_.vF(T.onTap),K.tooltip$jscomp$3&&K.ariaLabel$jscomp$21&&K.icon$jscomp$54&&x.push(_.R(dPo,{title:function(a){return function(){return a.tooltip$jscomp$3}}(K),
ariaLabel:function(a){return function(){return a.ariaLabel$jscomp$21}}(K),
icon:function(a){return function(){return a.icon$jscomp$54}}(K),
command:function(a){return function(){return a.command$jscomp$567}}(K)}));
return x};
return _.R(_.gw,{cond:W,then:function(){return _.R("div",{class:"ytInlinePlayerControlsTopRightControls"},_.R(_.$Z,{each:C},function(x){return _.R("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.R("div",{class:"ytInlinePlayerControlsButtonIcon"},x))}))}})},"If"),VXc=_.AI(function(Y){var S=Y.props;
var P=Y.data;var u=Y.options;Y={};Y=_.Si("ytInlinePlayerControlsBottomRightControls",(Y.ytInlinePlayerControlsBottomRightControlsHidden=function(){var W;return Ib1(P(),u())&&((W=u())==null?void 0:W.insetProgressBar)&&(S().isHovering||S().isDragging)},Y));
return _.R("div",{class:Y},_.R(NwB,{data:P}),_.R(_.gw,{cond:function(){var W;return!((W=u())==null?0:W.hideTimeDisplay)},
then:function(){return _.R(HEB,{props:S})}}))},"Jf"),NwB=_.AI(function(Y){var S=Y.data;
return _.R(_.rv,{data:function(){var P;return B71((P=S())==null?void 0:P.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:iEu})},"Kf"),HEB=_.AI(function(Y){var S=Y.props;
return _.R(_.gw,{cond:function(){return S().isLive},
then:function(){return _.R(eyB,null)},
else:function(){return _.R(OEZ,{props:S})}})},"Lf"),OEZ=_.AI(function(Y){var S=Y.props;
return _.R("div",{class:_.Si("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.ZM.PLAYER_TIME_ELAPSED+" "+_.zm1(S().playedTime)}},_.R(_.ME,{data:function(){return{type:16,
text:_.zm1(S().videoDuration-S().playedTime)}}}))},"Mf"),eyB=_.AI(function(){return _.R("div",{class:_.Si("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.R(_.ME,{data:{type:17,
text:_.ZM.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Nf"),YhI=_.AI(function(Y){var S=Y.props;
var P=Y.data;var u=Y.options;return _.R(_.wdI,{progressBarProps:S,config:function(){var W,m=_.g((W=P())==null?void 0:W.multiMarkersPlayerBar,_.r5f),J;W=((J=u())==null?0:J.insetProgressBar)?2:1;var c;J=(c=u())==null?void 0:c.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:W,chapterData:m,isInlinePlayback:!0,doSeekOnClick:J,playheadDotBehavior:J?1:0}}})},"Of");_.AL(_.AI(function(Y){var S=Y.data;var P=Y.appApi;var u=Y.options;var W=ESB(S,DZu(P));Y={};P={};return _.R("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.R("div",{class:_.Si("ytInlinePlayerControlsDarkenedOverlay",(Y.ytInlinePlayerControlsDarkenedOverlayShow=function(){return W().isHovering},Y))}),_.R(tX_,null),_.R(kBY,{data:W}),_.R(MX5,{data:S}),_.R(wRX,{playerControlsProps:W,
isShortsPage:!1}),_.R("div",{class:_.Si((P.ytInlinePlayerControlsControlsHidden=function(){return W().isDragging},P))},_.R(yAI,{props:W,
data:S,options:u}),_.R(VXc,{props:W,data:S,options:u})),_.R(_.gw,{cond:function(){return Ib1(S(),u())},
then:function(){return _.R(YhI,{props:W,data:S,options:u})}}))},"Gf"),"yt-inline-player-controls",{props:{data:_.wm,
appApi:_.tL,options:_.wm}});var i3=function(){var Y=_.Z.apply(this,arguments)||this;Y.opts=null;Y.playerControlsData=null;Y.playerControlsAppApi={openInMiniplayer:function(){Y.openInMiniplayer()}};
Y.playerControlsOptions={};Y.noAnimation=!1;Y.playbackIntentTriggered=!1;Y.positionData=null;Y.hidden=!0;Y.active=!1;Y.playing=!1;Y.videoPreviewDataIndex=0;Y.JSC$16743_playerPromise=null;Y.player=null;Y.enableAudioControls=!1;Y.hasBeenUnmuted=!1;Y.captionsHaveBeenTurnedOff=!1;Y.JSC$16743_playerEvents=new Map;Y.videoPreviewFetchRequest=null;Y.scheduledPreviewEndJobId=null;Y.JSC$16743_preventProgressSaveTimer=null;Y.watchEndpointStartTimeUpdaterInterval=null;Y.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};Y.windowOnBlurFn=function(){Y.deactivate()};
return Y};
_.r(i3,_.Z);_.z=i3.prototype;
_.z.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.f("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"}}}};
_.z.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16743_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16743_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16743_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16743_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.up(this,this.onPageTypeChange));this.pagePath=location.pathname};
_.z.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn)};
_.z.onPageTypeChange=function(){this.deactivate()};
_.z.onWindowResized=function(){this.deactivate()};
_.z.onCaptionsChanged=function(Y){Y=!!Y.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!Y);this.setCaptionSize()};
_.z.setCaptionSize=function(){var Y;if(this.active&&!this.captionsHaveBeenTurnedOff&&((Y=this.player)==null?0:Y.getCaptionWindowContainerId())){var S;(S=this.player)==null||S.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.z.currentPageAllowed=function(){return!this.isWatchPage};
_.z.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var Y=this.positionData,S=Y.initialTopPosition,P=Y.initialHorizontalPosition;_.PZ(this.hostElement,{"--ytd-video-preview-translate-left":Y.finalHorizontalPosition-P+"px","--ytd-video-preview-translate-top":Y.finalTopPosition-S+"px","--ytd-video-preview-original-top-position":S+"px","--ytd-video-preview-original-horizontal-position":P+"px",
"--ytd-video-preview-initial-scale":"scale("+Y.initialScale+")","--ytd-video-preview-width":Y.videoPreviewWidth+"px","--ytd-video-preview-height":Y.videoPreviewHeight+"px"});return!0};
_.z.handleOpenVideoPreviewAction=function(Y){var S=this,P;return _.B(function(u){if(!S.currentPageAllowed())return u.return(0);S.opts=Y;return(P=S.alignVideoPreviewForAnimation(Y.thumbnail))?u.return(S.activate()):u.return(0)})};
_.z.onMouseLeave=function(Y){this.shouldDeactivateOnMouseLeave(Y)&&this.deactivate()};
_.z.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.wc.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.z.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.z.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",i3.JSC$16742_DEFAULT_CLICK_LOCATION_BEHAVIOR,i3.JSC$16742_CLICK_LOCATION_ID_MAP)};
_.z.shouldDeactivateOnMouseLeave=function(Y){Y=Y.relatedTarget;if(!Y)return!0;var S;return(S=this.opts)!=null&&S.mediaRenderer?!_.Hq(this.opts.mediaRenderer).contains(Y):!0};
_.z.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.z.onPlaybackStart=function(){var Y=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$16743_preventProgressSaveTimer=
_.yz(_.wc,function(){Y.resetPreventProgressSaveTimer()},1E4);
var S;if((S=this.opts)==null?0:S.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.yz(_.wc,function(){Y.hasMultipleVideoPreviews()?Y.startPlaybackForNextVideo():Y.deactivate()},this.opts.videoPreviewDurationMs);
var P;this.player.setGlobalCrop(((P=this.opts)==null?0:P.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.z.getRoundedCornersSize=function(){var Y;if((Y=this.opts)==null?0:Y.roundedCornersSize){var S;return(S=this.opts)==null?void 0:S.roundedCornersSize}var P;if((P=this.opts)==null?0:P.enableRounding){var u;if(((u=this.opts)==null?void 0:u.thumbnailSize)==="small")return 1;var W;if(((W=this.opts)==null?void 0:W.thumbnailSize)==="medium")return 2;var m;if(((m=this.opts)==null?void 0:m.thumbnailSize)==="large")return 3}return _.f("web_imp_inset_progress_bar")?3:0};
_.z.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.z.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.z.onMediaContainerClick=function(Y){this.isShortcutClick(Y)||(this.navigateToWatch(Y),Y.preventDefault(),Y.stopPropagation())};
_.z.activate=function(){var Y=this,S,P,u,W,m,J,c,C,x;return _.B(function(b){switch(b.nextAddress){case 1:if(!Y.currentPageAllowed())return b.return(0);P=(S=Y.videoPreviewData)==null?void 0:S.inlinePlaybackEndpoint;u=_.pR.instance;if(!P||!u)return b.return(0);Y.playbackIntentTriggered=!0;((W=Y.opts)==null?0:W.mediaRenderer)&&((m=Y.opts)==null||!m.isAutoplay)&&JF6(Y.opts.mediaRenderer,function(){Y.deactivate()});
_.ky(Y,function(){Y.revealPreviewUi()});
J={};_.f("enable_unknown_lact_fix_on_html5")&&(_.E().resolve(_.En),J.lact=_.uE());Y.videoPreviewFetchRequest=uIY(u,Y.getInlinePlaybackRequestData(Y.videoPreviewData),J);_.ND(b,2);return _.q(b,Y.videoPreviewFetchRequest,4);case 4:c=b.yieldResult;if(((C=c)==null?void 0:(x=C.playabilityStatus)==null?void 0:x.status)==="OK")return b.return(Y.handlePlayerResponse(c));throw Error("Jj");case 2:_.O4(b),Y.deactivate();case 3:return b.return(1)}})};
_.z.getInlinePlaybackRequestData=function(Y){var S,P=_.f("web_imp_player_mute_params")?((S=this.opts)==null?void 0:S.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:Y.inlinePlaybackEndpoint,startPlaybackInMutedState:P}};
_.z.handlePlayerResponse=function(Y){var S=this,P,u,W,m,J,c,C,x,b,T;return _.B(function(K){if(K.nextAddress==1){P=S.getInlinePlaybackVideoId();if(!(((u=Y)==null?0:(W=u.videoDetails)==null?0:W.videoId)&&S.currentPageAllowed()&&S.playbackIntentTriggered&&S.opts&&P))return S.deactivate(),K.return(0);if(Y.videoDetails.videoId!==P)return K.return(0);S.enableAudioControls=!!((m=Y.playerConfig)==null?0:(J=m.inlinePlaybackConfig)==null?0:J.showAudioControls);Y.trackingParams=S.getInlinePlaybackTrackingParams();
if(!S.inlinePlayer)return K.return(0);c={};if(x=_.g((C=S.videoPreviewData)==null?void 0:C.inlinePlaybackEndpoint,_.yx))c.watch_endpoint=x;if(S.videoPreviewData){var G,v=(G=_.g(S.videoPreviewData.inlinePlaybackEndpoint,_.yx))==null?void 0:G.startTimeSeconds;v!==void 0&&(Y.playerConfig||(Y.playerConfig={}),Y.playerConfig.playbackStartConfig||(Y.playerConfig.playbackStartConfig={}),Y.playerConfig.playbackStartConfig.startPosition||(Y.playerConfig.playbackStartConfig.startPosition={}),Y.playerConfig.playbackStartConfig.startSeconds=
v,Y.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(v*1E3))}S.inlinePlayer.loadVideoWithPlayerResponse(Y,c);if(S.JSC$16743_playerPromise)return K.jumpTo(2);S.JSC$16743_playerPromise=S.inlinePlayer.getPlayerPromise();return _.q(K,S.JSC$16743_playerPromise,3)}K.nextAddress!=2&&(b=K.yieldResult,b.setInlinePreview(!0),b.setSizeStyle(!1,!0),S.ytPlayerListenerBehavior.listenToPlayerEvents(b,S.JSC$16743_playerEvents),S.player=b,_.ms(S.hostElement,"player-api-ready"));((T=S.opts)==
null?0:T.showPlayerControls)&&S.videoPreviewData&&S.player&&(S.playerControlsData={playerResponse:Y,isInlinePlayback:!0,thumbnailOverlays:S.videoPreviewData.thumbnailOverlays,playerApi:S.player},S.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!S.unroundCornersForPlayback,additionalButton:S.getAdditionalButtonType(S.videoPreviewData.thumbnailOverlays)});return K.return(2)})};
_.z.revealPreviewUi=function(){var Y=this;this.playbackIntentTriggered&&_.Ea8(this,function(){Y.hasThumbnailPositionChangedSinceTriggered()||(Y.updateActiveState(!0),Y.noAnimation=!1)})};
_.z.hasThumbnailPositionChangedSinceTriggered=function(){var Y=this.positionData,S=this.getThumbnailPositionData();return(Y==null?void 0:Y.initialTopPosition)!==(S==null?void 0:S.initialTopPosition)||(Y==null?void 0:Y.initialHorizontalPosition)!==(S==null?void 0:S.initialHorizontalPosition)};
_.z.getThumbnailPositionData=function(){var Y,S;if((S=this.opts)==null||!S.thumbnail)return null;S=this.opts.thumbnail;var P=((Y=this.opts)==null?0:Y.cropPlayerToFillThumbnailHorizontally)?!1:!0;var u=S.getBoundingClientRect();Y=u.width;S=u.height;var W=u.top+window.scrollY;u=u.left+window.scrollX;var m=P?Math.ceil(Y):Y;P=P?Math.ceil(S):S;var J=Y/m;Y={initialScale:J,initialTopPosition:W-12*J,finalTopPosition:W-12-(P-S)/2,initialHorizontalPosition:u-(12+(m-Y)/2),finalHorizontalPosition:u-12-(m-Y)/
2,videoPreviewWidth:m,videoPreviewHeight:P};return Y};
_.z.updateActiveState=function(Y){this.active=Y;this.ytdReduxBehavior.dispatch(_.WT({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:Y}))};
_.z.stopPlayer=function(Y){Y=Y.resetWatchEndpointStartTime===void 0?!1:Y.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(Y)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.wc.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.z.deactivate=function(Y){Y=Y===void 0?{}:Y;Y=Y.resetWatchEndpointStartTime===void 0?!1:Y.resetWatchEndpointStartTime;VA&&(VA.disconnect(),VA=null);this.stopPlayer({resetWatchEndpointStartTime:Y});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.z.isValidThumbnailOverlayButton=function(Y,S){Y=Y.thumbnailOverlayButtonRenderer;var P;return!!Y&&!!Y.tooltip&&!((P=Y.icon)==null||!P.iconType)&&S.includes(Y.icon.iconType)};
_.z.isValidThumbnailOverlayButtonViewModel=function(Y,S){var P;Y=_.g((P=Y.thumbnailOverlayButtonViewModel)==null?void 0:P.overlayButton,_.Gz);return!!Y&&!!Y.title&&!!Y.iconName&&S.includes(Y.iconName)};
_.z.getAdditionalButtonType=function(Y){var S=this;if(_.f("web_imp_fastforward_button"))return{button:1};if(_.f("web_imp_miniplayer_button"))return{button:2};if(_.f("web_imp_playback_speed_button"))return{button:3};var P=["AUTO_AWESOME"],u=(Y||[]).filter(function(m){return S.isValidThumbnailOverlayButton(m,P)}).map(function(m){return m.thumbnailOverlayButtonRenderer});
if(u.length)return{button:4,thumbnailOverlayButtonRenderers:u};var W=["AUTO_AWESOME"];Y=(Y||[]).filter(function(m){return S.isValidThumbnailOverlayButtonViewModel(m,W)}).map(function(m){return _.g(m.thumbnailOverlayButtonViewModel.overlayButton,_.Gz)});
if(Y.length)return{button:4,thumbnailOverlayButtonViewModels:Y}};
_.z.allowCaptions=function(){var Y;return!((Y=this.opts)==null?0:Y.forceCaptionsOff)};
_.z.allowUnmuting=function(){var Y;return this.enableAudioControls&&!((Y=this.opts)==null?0:Y.forceMutedVolume)};
_.z.beginStartTimeUpdater=function(){var Y=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.BQ(function(){Y.updateWatchEndpointStartTime()},1E3)};
_.z.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.z.resetPreventProgressSaveTimer=function(){this.JSC$16743_preventProgressSaveTimer!==null&&(_.wc.cancelJob(this.JSC$16743_preventProgressSaveTimer),this.JSC$16743_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.z.updateWatchEndpointStartTime=function(Y){var S=this.videoPreviewData;if(this.player&&S!=null&&S.inlinePlaybackEndpoint&&!this.JSC$16743_preventProgressSaveTimer){Y=Y?0:Math.floor(this.player.getCurrentTime());var P=_.g(S.navigationEndpoint,_.yx);P&&(P.startTimeSeconds=Y);if(S=_.g(S.inlinePlaybackEndpoint,_.yx))S.startTimeSeconds=Y}};
_.z.isShortcutClick=function(Y){return!!Y&&(Y.ctrlKey||Y.shiftKey||Y.metaKey)};
_.z.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.z.openInMiniplayer=function(){var Y=this,S,P;return _.B(function(u){if(u.nextAddress==1){P=(S=Y.videoPreviewData)==null?void 0:S.navigationEndpoint;if(!P)return u.return();_.nd().lockupActivation=!0;return _.q(u,_.bT6(_.E().resolve(_.l1),P),2)}_.nd().userActivation=!0;_.Yt(u)})};
_.z.navigateToWatch=function(Y){var S,P=(S=this.videoPreviewData)==null?void 0:S.navigationEndpoint;if(P){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(P,Y,!0);else{if(_.f("web_thumbnail_to_watch_transition")){var u,W;(u=this.opts)==null||(W=u.onNavigateToWatchCallback)==null||W.call(u)}_.ms(this.hostElement,"yt-navigate",{endpoint:P})}this.deactivate()}};
_.z.getInlinePlaybackVideoId=function(){var Y,S;return(S=_.g((Y=this.videoPreviewData)==null?void 0:Y.inlinePlaybackEndpoint,_.yx))==null?void 0:S.videoId};
_.z.getInlinePlaybackTrackingParams=function(){var Y,S;return(Y=this.videoPreviewData)==null?void 0:(S=Y.inlinePlaybackEndpoint)==null?void 0:S.clickTrackingParams};
_.z.hasMultipleVideoPreviews=function(){var Y;return!!(((Y=this.opts)==null?0:Y.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.z.startPlaybackForNextVideo=function(){var Y;(Y=this.opts)!=null&&Y.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.y6.Object.defineProperties(i3.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.opts)==null?0:Y.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.opts)==null||!Y.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var Y;if(Array.isArray((Y=this.opts)==null?void 0:Y.videoPreviewData)){var S;return(S=this.opts)==null?void 0:S.videoPreviewData[this.videoPreviewDataIndex]}var P;return(P=this.opts)==null?void 0:P.videoPreviewData}}});
i3.prototype.onIsAdsVideoChange=i3.prototype.onIsAdsVideoChange;i3.prototype.onInlinePreviewIsEnabledChange=i3.prototype.onInlinePreviewIsEnabledChange;i3.prototype.optsChanged=i3.prototype.optsChanged;i3.prototype.onMouseLeave=i3.prototype.onMouseLeave;i3.JSC$16742_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);i3.JSC$16742_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],i3.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],i3.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],i3.prototype,"componentBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],i3.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.Uv.YtSparklesClickLocationBehavior),_.k("design:type",Object)],i3.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],i3.prototype,"opts",void 0);_.Q([_.X(),_.k("design:type",Object)],i3.prototype,"playerControlsData",void 0);
_.Q([_.X(),_.k("design:type",Object)],i3.prototype,"playerControlsAppApi",void 0);_.Q([_.X(),_.k("design:type",Object)],i3.prototype,"playerControlsOptions",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],i3.prototype,"noAnimation",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],i3.prototype,"hidden",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],i3.prototype,"active",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],i3.prototype,"playing",void 0);_.Q([_.X({selector:_.JfJ}),_.k("design:type",Boolean)],i3.prototype,"inlinePreviewIsEnabled",void 0);_.Q([_.X(),_.k("design:type",String)],i3.prototype,"pagePath",void 0);_.Q([_.X({selector:_.Fp}),_.k("design:type",Boolean)],i3.prototype,"isWatchPage",void 0);_.Q([_.d("videoPreviewData"),_.k("design:type",Object),_.k("design:paramtypes",[])],i3.prototype,"thumbnailData",null);
_.Q([_.d("opts","active"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],i3.prototype,"hidePlayerControls",null);_.Q([_.d("opts"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],i3.prototype,"isAdsVideo",null);_.Q([_.d("opts"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],i3.prototype,"roundedCornersSmall",null);
_.Q([_.d("opts"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],i3.prototype,"roundedCornersMedium",null);_.Q([_.d("opts"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],i3.prototype,"roundedCornersLarge",null);_.Q([_.d("opts"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],i3.prototype,"unroundCornersForPlayback",null);
_.Q([_.d("opts","videoPreviewDataIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],i3.prototype,"videoPreviewData",null);_.Q([_.X(),_.k("design:type",Object)],i3.prototype,"videoPreviewDataIndex",void 0);_.Q([_.nc("#inline-player"),_.k("design:type",Object)],i3.prototype,"inlinePlayer",void 0);_.Q([_.WZ("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[MouseEvent]),_.k("design:returntype")],i3.prototype,"onMouseLeave",null);
_.Q([_.cZ("opts"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],i3.prototype,"optsChanged",null);_.Q([_.cZ("inlinePreviewIsEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],i3.prototype,"onInlinePreviewIsEnabledChange",null);_.Q([_.zY("isAdsVideo"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],i3.prototype,"onIsAdsVideoChange",null);
i3=_.Q([_.t({is:"ytd-video-preview",disableElementRegistration:!0})],i3);
_.A(i3,"ytd-video-preview",function(){if(LNu!==void 0)return LNu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return LNu=Y},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Ya_;var SaX;/*

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
*/
_.Kc({_template:function(){if(SaX!==void 0)return SaX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Ya_===void 0&&(Ya_=document.createElement("template"));var u=Ya_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return SaX=Y},
is:"tp-yt-paper-checkbox",behaviors:[_.Sst],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.ky(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var Y=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),S="px",P=Y.match(/[A-Za-z]+$/);P!==null&&(S=P[0]);Y=parseFloat(Y);P=8/3*Y;S==="px"&&(P=Math.floor(P),P%2!==Y%2&&P++);this.updateStyles({"--paper-checkbox-ink-size":P+
S})}})},
_computeCheckboxClass:function(Y,S){var P="";Y&&(P+="checked ");S&&(P+="invalid");return P},
_computeCheckmarkClass:function(Y){return Y?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.O2u._createRipple.call(this)}});var P01=new _.N("radioButtonSurveyOptionRenderer"),uOc=new _.N("checkboxSurveyOptionRenderer");var WcZ;var zAc;var mgY=0,ag=function(){var Y=_.Z.call(this)||this;Y.selected=!1;Y.isOverlay=!1;Y.inputId="toggle-option-"+mgY;mgY++;return Y};
_.r(ag,_.Z);ag.prototype.onTap=function(){_.ms(this.hostElement,"ytd-toggle-option-clicked")};
_.Q([_.X(),_.k("design:type",String)],ag.prototype,"label",void 0);_.Q([_.X(),_.k("design:type",String)],ag.prototype,"inputId",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],ag.prototype,"selected",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],ag.prototype,"isOverlay",void 0);ag=_.Q([_.t({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.k("design:paramtypes",[])],ag);
_.A(ag,"ytd-toggle-option-renderer",function(){if(zAc!==void 0)return zAc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return zAc=Y},{mode:1});var Le=function(){var Y=_.Z.apply(this,arguments)||this;Y.isToggleOption=!1;Y.isOverlay=!1;return Y};
_.r(Le,_.Z);Le.prototype.onTap=function(Y){Y.preventDefault();this.data&&(Y=!this.data.checked,this.set("data.checked",Y),_.ms(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:Y,value:this.data.value}))};
_.y6.Object.defineProperties(Le.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
Le.prototype.onTap=Le.prototype.onTap;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Le.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Le.prototype,"isToggleOption",void 0);_.Q([_.X(),_.k("design:type",Object)],Le.prototype,"isOverlay",void 0);_.Q([_.d("data.responseText"),_.k("design:type",String),_.k("design:paramtypes",[])],Le.prototype,"label",null);
_.Q([_.WZ("ytd-toggle-option-clicked"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Le.prototype,"onTap",null);Le=_.Q([_.t({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Le);
_.A(Le,"ytd-checkbox-survey-option-renderer",function(){if(WcZ!==void 0)return WcZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return WcZ=Y},{mode:1});var ntc;var jDc;var wW=function(){var Y=_.Z.apply(this,arguments)||this;Y.checked=!1;Y.isToggleOption=!1;return Y};
_.r(wW,_.Z);wW.prototype.onTap=function(){this.data&&(this.checked?_.nb(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.nb(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
wW.prototype.onTap=wW.prototype.onTap;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],wW.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],wW.prototype,"checked",void 0);_.Q([_.X(),_.k("design:type",Object)],wW.prototype,"isToggleOption",void 0);_.Q([_.WZ("ytd-toggle-option-clicked"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],wW.prototype,"onTap",null);
wW=_.Q([_.t({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],wW);
_.A(wW,"ytd-radio-button-survey-option-renderer",function(){if(jDc!==void 0)return jDc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return jDc=Y},{mode:1});var pe=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableAnimation=!1;Y.isToggleOption=!0;Y.followUpSurveyCommand=null;Y.selectedRatingEndpoint=null;Y.isSlimlineSurveyFollowUp=!1;Y.isShortsStyle=!1;Y.styleOverrideAttribute=!0;Y.isDarkMode=!1;Y.isSubmitted=!1;Y.roundedContainer=!0;Y.improveShortsResponseRate=_.f("web_improve_shorts_response_rate");Y.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(pe,_.Z);_.z=pe.prototype;
_.z.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"}}}}};
_.z.attached=function(){var Y=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(P){var u;if((u=P[0])!=null&&u.isIntersecting){_.jC().reportShown(Y.hostElement);var W;(W=Y.intersectionObserver)==null||W.unobserve(Y.hostElement)}},{rootMargin:"0px",
threshold:.6});var S;(S=this.intersectionObserver)==null||S.observe(this.hostElement)};
_.z.onDarkModeToggledAction=function(Y){this.isDarkMode=Y};
_.z.dataChanged=function(){var Y;if(((Y=this.data)==null?void 0:Y.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var S;((S=this.data)==null?void 0:S.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var P,u,W,m;this.darkColorPalette=(P=this.data)==null?void 0:(u=P.inlineContent)==null?void 0:(W=u.compactVideoRenderer)==null?void 0:(m=W.thumbnail)==null?
void 0:m.darkColorPalette;var J,c,C,x;this.lightColorPalette=(J=this.data)==null?void 0:(c=J.inlineContent)==null?void 0:(C=c.compactVideoRenderer)==null?void 0:(x=C.thumbnail)==null?void 0:x.lightColorPalette;var b,T;if(((b=this.data)==null?0:(T=b.inlineContent)==null?0:T.compactVideoRenderer)&&this.isShortsStyle){var K,G,v,a;Y=_.Qz((K=this.data)==null?void 0:(G=K.inlineContent)==null?void 0:(v=G.compactVideoRenderer)==null?void 0:(a=v.thumbnail)==null?void 0:a.thumbnails);_.PZ(this.hostElement,
{"--yt-background-url":"url("+Y+")"})}};
_.z.handleRequestCompletion=function(){this.hostElement.hidden&&_.ms(this.hostElement,"yt-dismissible-item-dismissed")};
_.z.onPopupClosed=function(Y){var S;((S=Y.detail)==null?void 0:S.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.nb(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.z.handleInlineSurveyRatingSelect=function(Y,S){var P=this;this.selectedRatingEndpoint=Y;this.followUpSurveyCommand=S;this.expanded=!!Y;this.getOptionRenderers().forEach(function(u,W){P.notifyPath("followUpSurveyCommand.followUpOptions."+W+".checkboxSurveyOptionRenderer.checked");P.set("followUpSurveyCommand.followUpOptions."+W+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),Y=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.nb(this.hostElement,"yt-reel-non-video-content-dismissal-command",[Y]))};
_.z.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.nb(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var Y,S=(Y=this.data)==null?void 0:Y.dismissalEndpoint;S&&this.ytComponentBehavior.resolveCommand(S)}};
_.z.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.nb(this.hostElement,"yt-close-popup-action"))};
_.z.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var Y=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{Y=this.getOptionRenderers().filter(function(u){return u.checked});
if(Y.length===0)return;Y=Y.map(function(u){return u.responseEndpoint})}var S=[];
Y.forEach(function(u,W){W!==0&&(u=_.g(u,_.La))&&u.feedbackToken&&S.push(u.feedbackToken)});
if(Y=Y[0]){var P={};S.length>0&&(P.extra_feedback_tokens=S);this.ytComponentBehavior.resolveCommand(Y,{form:P})}}};
_.z.getOptionRenderers=function(){var Y=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(S){Y.isSingleSelect=!!_.g(S,P01);return Y.isSingleSelect?_.g(S,P01):_.g(S,uOc)}):[]};
_.z.handleInlineSurveyOptionSelect=function(Y){Y=this.optionSelector.indexOf(Y);Y!==-1&&this.optionSelector.selectIndex(Y)};
_.z.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.z.maybeGetBackgroundColor=function(Y){return this.isDarkMode?Y.section2Color:Y.section3Color};
_.z.colorPaletteChanged=function(){var Y=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;Y=Y&&this.maybeGetBackgroundColor(Y);this.dismissibleEl.style.backgroundColor=!Y||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Gp(Y)};
_.y6.Object.defineProperties(pe.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
pe.prototype.colorPaletteChanged=pe.prototype.colorPaletteChanged;pe.prototype.onPopupClosed=pe.prototype.onPopupClosed;pe.prototype.handleRequestCompletion=pe.prototype.handleRequestCompletion;pe.prototype.dataChanged=pe.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],pe.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],pe.prototype,"actionHandlerBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],pe.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],pe.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.nc("#follow-up-survey-options"),_.k("design:type",Object)],pe.prototype,"optionSelector",void 0);_.Q([_.X(),_.k("design:type",Object)],pe.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],pe.prototype,"disableAnimation",void 0);_.Q([_.X(),_.k("design:type",Object)],pe.prototype,"isToggleOption",void 0);_.Q([_.X(),_.k("design:type",Object)],pe.prototype,"followUpSurveyCommand",void 0);_.Q([_.X(),_.k("design:type",Object)],pe.prototype,"selectedRatingEndpoint",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],pe.prototype,"expanded",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],pe.prototype,"isSlimlineSurveyFollowUp",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],pe.prototype,"isShortsStyle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],pe.prototype,"styleOverrideAttribute",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pe.prototype,"isSingleSelect",void 0);_.Q([_.X(),_.k("design:type",Object)],pe.prototype,"isDarkMode",void 0);
_.Q([_.X(),_.k("design:type",Object)],pe.prototype,"lightColorPalette",void 0);_.Q([_.X(),_.k("design:type",Object)],pe.prototype,"darkColorPalette",void 0);_.Q([_.d("selectedRatingEndpoint","isShortsStyle"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],pe.prototype,"isOptionSelected",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],pe.prototype,"roundedContainer",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],pe.prototype,"improveShortsResponseRate",void 0);_.Q([_.nc("#dismissible"),_.k("design:type",HTMLElement)],pe.prototype,"dismissibleEl",void 0);_.Q([_.nc("#dismiss-button yt-icon-button"),_.k("design:type",HTMLElement)],pe.prototype,"dismissButtonEl",void 0);_.Q([_.nc("#inline-survey-header yt-icon-button"),_.k("design:type",HTMLElement)],pe.prototype,"inlineHeaderDismissButtonEl",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pe.prototype,"dataChanged",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pe.prototype,"handleRequestCompletion",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pe.prototype,"onPopupClosed",null);
_.Q([_.zY("darkColorPalette","lightColorPalette","isDarkMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pe.prototype,"colorPaletteChanged",null);pe=_.Q([_.t({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],pe);
_.A(pe,"ytd-inline-survey-renderer",function(){if(ntc!==void 0)return ntc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ntc=Y},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Vz5,egI,On1;Vz5=function(Y){return _.f("kevlar_watch_cinematics_invisible")||Y.fullscreen&&_.f("kevlar_watch_cinematics_invisible_in_fullscreen")||Y.theater&&!Y.fullscreen&&_.f("kevlar_watch_cinematics_invisible_in_theater")};
egI=function(){var Y=document.createElement("canvas"),S=Y.getContext("2d");if(!S)throw Error("Yl");_.Xs(Y,{position:"absolute",width:"100%",height:"100%"});return{element:Y,context:S}};
On1=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.f("kevlar_watch_cinematics_css_blur")};
_.Y56=function(Y,S,P){return Math.abs(Y-S)<=(P||1E-6)};
_.S5c=function(Y,S){return Y==S?!0:Y&&S?Y.width==S.width&&Y.height==S.height:!1};_.PhB=new _.N("notificationActionRenderer");var uHX=function(Y){var S=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.nV;this.element.addEventListener("load",function(){S.loaded=!0;S.resolver.resolve(S.element)});
this.element.addEventListener("error",function(){S.failed=!0});
this.element.src=Y};var Wf5=function(Y,S){this.image=Y;this.frame=S};
Wf5.prototype.drawToCanvas=function(Y,S){var P=this.frame.width/this.frame.columns,u=this.frame.height/this.frame.rows,W=S.offsetX,m=S.offsetY;Vz5(S)?(Y.fillStyle=S.fullscreen?"#000":"#0f0f0f",Y.fillRect(W,m,(S==null?void 0:S.width)||P,(S==null?void 0:S.height)||u)):Y.drawImage(this.image,this.frame.column*P,this.frame.row*u,P,u,W,m,(S==null?void 0:S.width)||P,(S==null?void 0:S.height)||u)};
var zVI=function(Y){this.color=Y};
zVI.prototype.drawToCanvas=function(Y,S){var P=S.offsetX,u=S.offsetY,W=S.width,m=S.height;Y.fillStyle=Vz5(S)?S.fullscreen?"#000":"#0f0f0f":this.color;Y.fillRect(P,u,W,m)};var OY=function(Y,S){_.QC.call(this);this.playerApi=S;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.SZ(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();mto(this,Y);_.nVZ(this);this.update()},BN1;
_.r(OY,_.QC);OY.prototype.addEventListeners=function(){var Y=this,S=function(){Y.update()},P=function(W){Y.paused||(W.type==="newdata"&&(Y.mosaics.clear(),jnZ(Y),Y7(Y)),_.nVZ(Y),Y.update())},u=function(){Y.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",S);this.playerApi.addEventListener("onVideoDataChange",P);this.playerApi.addEventListener("onStateChange",u);this.addOnDisposeCallback(function(){Y.playerApi.removeEventListener("onVideoProgress",S);Y.playerApi.removeEventListener("onVideoDataChange",P);Y.playerApi.removeEventListener("onStateChange",u)})};
var mto=function(Y,S){Y.cinematicContainerRenderer!==S&&(Y.cinematicContainerRenderer=S,jnZ(Y),Y7(Y),Y.colorStoreUpdateJobId=_.wc.addLowPriorityJob(function(){var P;if((P=Y.cinematicContainerRenderer.colorStore)!=null&&P.sampledColors){P=Infinity;for(var u=_.n(Y.cinematicContainerRenderer.colorStore.sampledColors),W=u.next();!W.done;W=u.next()){W=W.value;var m=Number(W.key);m!==0&&m<P&&(P=m);m=_.hK(W.value);Y.colorStore.set(W.key,m)}Y.colorStoreTimeInterval=P}}))},jnZ=function(Y){Y.colorStoreUpdateJobId&&
(_.wc.cancelJob(Y.colorStoreUpdateJobId),Y.colorStoreUpdateJobId=void 0);
Y.colorStore.clear();Y.currentStoryboardColor=void 0},JGo=function(Y,S){var P;
return(P=Y.getStoryboardFrame(S))==null?void 0:P.url};
OY.prototype.onPlayerStateChange=function(){this.update()};
OY.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.nVZ=function(Y){var S=Y.getStoryboardFrame(0);S&&(S=new _.SZ(S.width/S.columns,S.height/S.rows),_.S5c(Y.currentStoryboardSize,S)||(Y.currentStoryboardSize=S,Y.publish("STORYBOARD_SIZE_CHANGED",Y.currentStoryboardSize)))};
BN1=function(Y,S){Y.currentStoryboardIndex=S;Y.pendingStoryboardIndex=NaN;S=Y.getStoryboardFrame(Y.currentStoryboardIndex);Y.currentStoryboard=new Wf5(Y.mosaics.get(S.url).element,S);Y.publish("STORYBOARD_CHANGED",Y.currentStoryboard);Y.lastUpdateTime=(0,_.Oh)()};
OY.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Y7=function(Y){Y.currentStoryboardIndex=NaN;Y.pendingStoryboardIndex=NaN;Y.currentStoryboard&&(Y.currentStoryboard=void 0,Y.publish("STORYBOARD_CHANGED",void 0));Y.lastUpdateTime=NaN};
OY.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Y7(this);else{var Y=this.playerApi.getPlayerState(1);if(Y===-1||Y===5||Y===0)Y7(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Oh)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(Y=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){Y=""+Math.round(Y*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var S=this.colorStore.get(Y);S?S!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=S,this.currentStoryboard=new zVI(S),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Oh)()):(_.sf(new _.$2("Could not find color for timestamp: "+Y,this.cinematicContainerRenderer)),Y7(this))}else Y7(this);else cGX(this,Y)}};
var cGX=function(Y,S){var P=Y.getStoryboardFrameIndex(S);if(P!==Y.currentStoryboardIndex&&P!==Y.pendingStoryboardIndex){S=JGo(Y,P);var u=Y.mosaics.get(S);u?u.loaded&&BN1(Y,P):(Y.pendingStoryboardIndex=P,P=new uHX(S),Y.mosaics.set(S,P),P.resolver.promise.then(function(){if(!Y.isDisposed()&&!Y.paused&&!isNaN(Y.pendingStoryboardIndex)){var W=JGo(Y,Y.pendingStoryboardIndex);if(W){var m;(m=Y.mosaics.get(W))!=null&&m.loaded&&BN1(Y,Y.pendingStoryboardIndex)}else Y7(Y)}}))}};
OY.prototype.getStoryboardFrameIndex=function(Y){var S=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(Y,S)};
OY.prototype.getStoryboardFrame=function(Y){var S=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,P,u;return((u=(P=this.playerApi).getStoryboardFrame)==null?void 0:u.call(P,Y,S))||null};
OY.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var P5=function(Y,S,P,u){u=u===void 0?!1:u;_.R6.call(this);this.cinematicContainerRenderer=S;this.playerApi=P;this.theater=this.fullscreen=!1;var W;this.ambientLightThemeEnabled=!u&&!!(S==null?0:(W=S.config)==null?0:W.enableInLightTheme);this.ambientFullscreenEnabled=u&&_.f("web_cinematic_fullscreen");this.container=document.createElement("div");Y.appendChild(this.container);var m;if(_.f("web_cinematic_theater_mode")||_.f("web_cinematic_fullscreen")||(S==null?0:(m=S.config)==null?0:m.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);ChI(this);Y=this.ambientV2Container||this.container;this.backCanvas=egI();this.frontCanvas=egI();Y.appendChild(this.backCanvas.element);Y.appendChild(this.frontCanvas.element);this.storyboardManager=new OY(S,this.playerApi);_.Ph(this,this.storyboardManager);this.addEventListeners();q5I(this)?RV5(this,100+S8(this)*3*2,100+S8(this)*3*2):xtX(this);bHj(this,this.storyboardManager.currentStoryboard)};
_.r(P5,_.R6);var ChI=function(Y){Y.ambientV2Container?TNu(Y):(_.Xs(Y.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+KfX(Y)+", "+EV1(Y)+")"}),On1()&&_.Xs(Y.container,"filter","blur("+_.z_("cinematic_watch_css_filter_blur_strength",40)+"px)"))},TNu=function(Y){if(Y.ambientV2Container){var S=Y.playerApi.getVideoAspectRatio();
_.Xs(Y.container,{"aspect-ratio":""+S,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Xs(Y.ambientV2Container,{"aspect-ratio":""+S,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+KfX(Y)+", "+EV1(Y)+")"});On1()&&_.Xs(Y.ambientV2Container,"filter","blur("+_.z_("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
P5.prototype.setFullscreen=function(Y,S){this.fullscreen=Y;this.theater=!!S;ChI(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),Y=this.storyboardManager.currentStoryboard,fnB(this),Y&&gVY(this,Y)};
P5.prototype.addEventListeners=function(){var Y=this,S=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(W){bHj(Y,W)}),P=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){xtX(Y)});
this.addOnDisposeCallback(function(){Y.storyboardManager.unsubscribeByKey(S);Y.storyboardManager.unsubscribeByKey(P)});
if(this.ambientV2Container){var u=function(){TNu(Y)};
this.playerApi.addEventListener("onVideoDataChange",u);this.addOnDisposeCallback(function(){Y.playerApi.removeEventListener("onVideoDataChange",u)})}};
var xtX=function(Y){if(!q5I(Y)){var S=Y.storyboardManager.currentStoryboardSize;isNaN(S.width)||isNaN(S.height)||RV5(Y,Number(S.width)+S8(Y)*3*2,Number(S.height)+S8(Y)*3*2)}},RV5=function(Y,S,P){Y.backCanvas.element.width=S;
Y.backCanvas.element.height=P;Y.frontCanvas.element.width=S;Y.frontCanvas.element.height=P},q5I=function(Y){return Y.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},bHj=function(Y,S){var P=Y.frontCanvas.element.getAnimations()[0];
P?(P.pause(),Y.backCanvas.context.globalAlpha=Number(getComputedStyle(Y.frontCanvas.element).opacity),Y.frontCanvas.element.style.opacity="0",P.finish()):Y.backCanvas.context.globalAlpha=1;Y.backCanvas.context.drawImage(Y.frontCanvas.element,0,0,Y.backCanvas.element.width,Y.backCanvas.element.height);fnB(Y);S&&gVY(Y,S);S=S?Y.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.z_("cinematic_watch_fade_out_duration",500);P=_.z_("cinematic_watch_transition_frame_rate")/1E3;var u=
{};P&&(u={easing:"steps("+Math.round(S*P)+")"});Y.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:S,iterations:1},u));Y.frontCanvas.element.style.opacity="1"},fnB=function(Y){var S=Y.ambientLightThemeEnabled,P=Y.ambientLightThemeEnabled||Y.ambientFullscreenEnabled&&!_.f("web_cinematic_fullscreen_v2");
Y.frontCanvas.context.fillStyle=Y.theater&&S||Y.fullscreen&&P?"#000":"#0f0f0f";On1()||(Y.frontCanvas.context.filter="blur(0)");Y.frontCanvas.context.fillRect(0,0,Y.frontCanvas.element.width,Y.frontCanvas.element.height)},gVY=function(Y,S){On1()||(Y.frontCanvas.context.filter="blur("+S8(Y)+"px)");
Y.frontCanvas.context.globalAlpha=_.z_("cinematic_watch_effect_opacity",.4);var P={offsetX:S8(Y)*3,offsetY:S8(Y)*3,theater:Y.theater,fullscreen:Y.fullscreen};q5I(Y)&&(P.width=100,P.height=100);S.drawToCanvas(Y.frontCanvas.context,P);Y.frontCanvas.context.globalAlpha=1},S8=function(Y){var S;
return(S=Y.cinematicContainerRenderer.config.blurStrength)!=null?S:5},KfX=function(Y){var S,P;
if((Y.fullscreen||Y.theater)&&((S=Y.cinematicContainerRenderer.config)==null?0:(P=S.watchFullscreenConfig)==null?0:P.colorSourceWidthMultiplier))return Y.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var u;return(u=Y.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?u:Y.cinematicContainerRenderer.config.colorSourceSizeMultiplier},EV1=function(Y){var S,P;
if((Y.fullscreen||Y.theater)&&((S=Y.cinematicContainerRenderer.config)==null?0:(P=S.watchFullscreenConfig)==null?0:P.colorSourceHeightMultiplier))return Y.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var u;return(u=Y.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?u:Y.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
P5.prototype.disposeInternal=function(){_.R6.prototype.disposeInternal.call(this);this.container.remove()};
P5.prototype.clear=function(){bHj(this)};
P5.prototype.pause=function(){this.storyboardManager.pause()};var $tX;$tX=_.T2(function(){var Y,S,P=!((S=(Y=document.createElement("canvas")).getContext)==null||!S.call(Y,"2d")),u;Y=!((u=CSS)==null||!u.supports("filter: blur(0)"));u=!!Element.prototype.animate&&!!Element.prototype.getAnimations;S=_.f("web_cinematic_fullscreen")||_.f("web_cinematic_theater_mode")||_.f("web_cinematic_light_theme")||!1;var W;return P&&Y&&u&&(!S||!((W=CSS)==null||!W.supports("aspect-ratio: 1 / 1")))});
_.u_=function(Y,S){_.QC.call(this);this.container=Y;this.playerApi=S;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=rGc(this);this.update()};
_.r(_.u_,_.QC);_.GQ1=function(Y){var S=document.documentElement.hasAttribute("dark");Y.isDarkModeEnabled=S;Y.update()};
_.hVu=function(Y,S){Y.settingEnabled=S;Y.update()};
_.u_.prototype.setFullscreen=function(Y,S){this.fullscreen=Y;this.theater=!!S;this.update()};
_.vVc=function(Y,S){Y.cinematicContainerRenderer=S;Y.cinematicContainerRenderer&&(Y.cinematicsVe=_.TI(Y.isShorts()?227858:159022),_.Ym(_.BF(),Y.cinematicsVe),Y.loggingClientData={watchCinematicContainerData:{presentationStyle:Y.cinematicContainerRenderer.presentationStyle}});Y.update()};
_.u_.prototype.isShorts=function(){var Y,S;return((Y=this.cinematicContainerRenderer)==null?void 0:(S=Y.config)==null?void 0:S.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.u_.prototype.isAllowed=function(){var Y;if(Y=$tX()){var S,P,u;Y=((P=this.cinematicContainerRenderer)==null?void 0:P.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((u=this.cinematicContainerRenderer)==null||!u.colorStore)||((S=this.cinematicContainerRenderer)==null?void 0:S.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(Y)if(_.f("web_cinematics_pausing")){var W,m;Y=this.isDarkModeEnabled||!!((W=this.cinematicContainerRenderer)==
null?0:(m=W.config)==null?0:m.enableInLightTheme)}else{var J,c;W=!!((J=this.cinematicContainerRenderer)==null?0:(c=J.config)==null?0:c.enableInLightTheme)&&(_.X3("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);Y=this.isDarkModeEnabled||W}if(J=Y){var C,x;J=!((x=(C=this.prefersReducedMotionQuery)==null?void 0:C.matches)!=null&&x)}return J};
_.u_.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var rGc=function(Y){if(!_.f("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var S=window.matchMedia("(prefers-reduced-motion: reduce)"),P=function(){Y.update()};
S.addListener(P);Y.addOnDisposeCallback(function(){S.removeListener(P)});
return S}};
_.u_.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var Y=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new P5(this.container,Y,this.playerApi,this.isDarkModeEnabled),_.Ph(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var S=this.currentCinematicEffect;S.cinematicContainerRenderer!==
Y&&(S.cinematicContainerRenderer=Y,mto(S.storyboardManager,Y),ChI(S));Y=_.$o();_.rP(0,194,!0);Y.save();Y=_.pM();this.cinematicsVe&&Y&&_.UV(Y,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(Y=_.pM(),this.cinematicsVe&&Y&&_.QP(Y,[this.cinematicsVe],!1,this.loggingClientData),_.oY(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.y6.Object.defineProperties(_.u_.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var vuX;var Dmu;_.Kc({_template:function(){if(Dmu!==void 0)return Dmu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=
Y.content,P=S.insertBefore;vuX===void 0&&(vuX=document.createElement("template"));var u=vuX;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return Dmu=Y},
is:"tp-yt-iron-pages",behaviors:[_.G8,_.sX],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var qA1;_.RYd=function(){if(_.f("kevlar_home_skeleton")&&!qA1){var Y=document.querySelector("#home-page-skeleton");Y&&(_.Fk("hgcr"),_.jL(Y),qA1=!0)}};
qA1=!1;_.TA=new _.N("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var r36=function(Y){return _.UVh(_.AOh(Y&16777215))<.5},GFu=function(Y,S,P){var u=P.minimumRowsOfVideosBetweenSections===void 0?1:P.minimumRowsOfVideosBetweenSections;
return Y<(P.minimumRowsOfVideosAtStart===void 0?2:P.minimumRowsOfVideosAtStart)||S!==null&&Y-S<=u?!1:!0},hZZ=function(Y,S){var P=0,u=0;
Y=_.n(Y);for(var W=Y.next();!W.done;W=Y.next()){var m=W.value;if(m.richItemRenderer)m.richItemRenderer.rowIndex=u,m.richItemRenderer.colIndex=P++,P===S&&(P=0,u++);else if(m.richGroupRenderer&&m.richGroupRenderer.numColumns!==void 0)m.richGroupRenderer.rowIndex=u,m.richGroupRenderer.colIndex=P,P+=m.richGroupRenderer.numColumns,P===S&&(P=0,u++);else if(m.richSectionRenderer){var J=W=void 0;if(m=_.g((W=m)==null?void 0:(J=W.richSectionRenderer)==null?void 0:J.content,_.WJh))m.rowIndex=u++}}},v86=function(Y,
S){var P=S.contentElement;
S=S.rendererToTagNameMap;if(P&&S&&S.size!==0){for(var u=new Map,W=_.n(P.children),m=W.next();!m.done;m=W.next()){m=m.value;var J=m.tagName.toLowerCase(),c=u.get(J);c||(c=[],u.set(J,c));c.push(m)}if(u.size!==0)for(W=Math.min(Y.length,P.children.length),m=new Map,J=0;J<W;J++){c=Object.keys(Y[J])[0];c=S.get(c);if(!c)break;var C=m.get(c);C===void 0&&(C=0,m.set(c,C));var x=u.get(c);if(!x||C>=x.length)break;m.set(c,C+1);c=x[C];C=P.children[J];C!==c&&(_.V0K=!0,_.epa.set(c,!0),P.insertBefore(c,C),_.epa.delete(c),
_.V0K=!1)}}},DXc=function(Y,S,P,u,W,m,J){u=u===void 0?{}:u;
if(!Y||!Y.length)return[];Y=Y.slice();var c=[],C=[];W=null;for(var x=0,b=function(F){C.sort(function(M,zJ){return zJ.skippedOnRow-M.skippedOnRow});
for(var U,V=(U=C.shift())==null?void 0:U.content;V;)!V.richSectionRenderer&&F||c.push(V),U=void 0,V=(U=C.shift())==null?void 0:U.content},T=[];Y.length>0||C.length>0;){for(var K=[],G=S;G>0;){var v=void 0,a=void 0,w=(a=C[0]&&C[0].skippedOnRow<x?(v=C.shift())==null?void 0:v.content:void 0)!=null?a:Y.shift();
if(!w)break;if(w.richItemRenderer)v=w.richItemRenderer.targetId,a=void 0,v&&((a=J)==null?0:a.has(v))&&T.push(J.get(v)),K.push(w),G--;else if(w.richGroupRenderer&&w.richGroupRenderer.numColumns!==void 0)w.richGroupRenderer.numColumns<=G?(K.push(w),G-=w.richGroupRenderer.numColumns):G===S&&w.richGroupRenderer.numColumns>S?(K.push({richGroupRenderer:Object.assign({},w.richGroupRenderer,{numColumns:S})}),G=0):C.push({content:w,skippedOnRow:x});else if(w.richSectionRenderer)if(GFu(x,W,u)&&G===S){c.push(w);
W=x;x++;continue}else C.push({content:w,skippedOnRow:x});else if(w.continuationItemRenderer){b(!0);c.push(w);G=0;break}if(G===0)c.push.apply(c,_.cz(K));else if(!P&&Y.length===0){b(!1);c.push.apply(c,_.cz(K));G=0;break}}x++;T=_.n(T);for(K=T.next();!K.done;K=T.next())c.push(K.value),x++;T=[]}hZZ(c,S);m&&v86(c,m);return c},aao=function(Y){var S=Y.data;
var P=Y.uniqueId;Y=Y.overrides;var u,W=((u=S.timedAnimationData)==null?void 0:u.animationTiming)||[];return _.R("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.R(_.lzJ,{settings:{uniqueId:P,timings:W,experimentEnabled:W.length>0,enabled:W.length>0}},Iac(S.buttonRenderer,{buttonRenderer:{buttonOverrides:Y}})))},Lj_=function(Y){return Y.talkToRecs},FjB=function(Y,S){if(S){var P=_.Na().getState().entities.flowStateEntity,u=woZ(Y),W=[S];
u&&u!==S&&W.push(u);var m=!0,J;if(P&&Y.flowStateEntityKey&&((J=P[Y.flowStateEntityKey])==null?void 0:J.primaryButtonDisabled)!==void 0){var c;m=!((c=P[Y.flowStateEntityKey])==null||!c.primaryButtonDisabled)}poI(Y,u!=null?u:S,W,m)}},dXX=function(Y){return _.J5(_.Na(),function(S){return S.entities.flowStateEntity},function(S,P){if(Y.flowStateEntityKey){var u,W=S==null?void 0:(u=S[Y.flowStateEntityKey])==null?void 0:u.currentStepId,m;
P=P==null?void 0:(m=P[Y.flowStateEntityKey])==null?void 0:m.currentStepId;m=_.Na().getState().talkToRecs;if(W&&W!==P){var J;S=(S==null?void 0:(J=S[Y.flowStateEntityKey])==null?void 0:J.stepIdStack)||Object.keys(m.stepStates);J=!sGj(m==null?void 0:m.stepStates[W]);poI(Y,W,S,J)}}})},la5=function(Y){return _.J5(_.Na(),Lj_,function(S){var P=woZ(Y);
if(P){var u=Object.keys(S.stepStates);S=!sGj(S==null?void 0:S.stepStates[P]);poI(Y,P,u,S)}})},sGj=function(Y){var S=Object.keys((Y==null?void 0:Y.selectionStates)||{}).reduce(function(m,J){return m||(Y==null?void 0:Y.selectionStates[J].isSelected)},!1),P,u,W=!!(Y==null?0:(P=Y.userQuery)==null?0:(u=P.userQuery)==null?0:u.trim());
return S||W},woZ=function(Y){if(Y.flowStateEntityKey){var S,P,u=(S=_.Na().getState().entities.flowStateEntity)==null?void 0:(P=S[Y.flowStateEntityKey])==null?void 0:P.currentStepId;
if(u)return u}},poI=function(Y,S,P,u){_.Na().dispatch(_.qE("flowStateEntity",Y.flowStateEntityKey,{currentStepId:S,
stepIdStack:P,key:Y.flowStateEntityKey,primaryButtonDisabled:u}))},Xo1;var ZgX;_.Kc({_template:function(){if(ZgX!==void 0)return ZgX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
var S=Y.content,P=S.insertBefore;Xo1===void 0&&(Xo1=document.createElement("template"));var u=Xo1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return ZgX=Y},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var ig1=new _.N("talkToRecsFlowRenderer");var o8o=new _.N("flowRootRenderer");var tEo=new _.N("chipsShelfViewModel");_.A3B=new _.N("engagementPanelSectionListRenderer");var UX6=function(){this.horizontal=!1},QG6=function(Y,S){Y.horizontal=S};
UX6.prototype.position=function(Y,S,P,u){u=u===void 0?1:u;Y=this.delta(Y)*u+S;u=Math.max(S,P);return Y>=Math.min(S,P)&&Y<=u?Y:P};
UX6.prototype.axis=function(Y){Y=this.direction(Y);return Y==="up"||Y==="down"?"Y":"X"};var PP=function(Y,S,P){S=S===void 0?_.So():S;this.target=Y;this.manager=S;this.touchAction=P;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
PP.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(_.cz(this.events)));for(var Y=_.n(this.events),S=Y.next();!S.done;S=Y.next())this.listen(S.value)}};
PP.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.cz(this.events)));for(var Y=_.n(this.events),S=Y.next();!S.done;S=Y.next())this.unlisten(S.value)}};
PP.prototype.listen=function(Y){this.eventMap[Y]&&this.target.addEventListener(Y,this.eventMap[Y])};
PP.prototype.unlisten=function(Y){this.eventMap[Y]&&this.target.removeEventListener(Y,this.eventMap[Y])};var uZ=function(){UX6.apply(this,arguments)};
_.r(uZ,UX6);uZ.prototype.direction=function(Y){var S=Y.detail;Y=S.deltaY;S=S.deltaX;return Y&&!this.horizontal?Y>0?"down":"up":S&&this.horizontal?S>0?"right":"left":"none"};
uZ.prototype.distance=function(Y){return Math.abs(this.delta(Y))};
uZ.prototype.delta=function(Y){var S=this.direction(Y),P=Y.detail;Y=P.deltaX;P=P.deltaY;return S==="up"||S==="down"?P||0:Y||0};
uZ.prototype.velocity=function(Y){var S=this.direction(Y),P=Y.detail;Y=P.velocityX;P=P.velocityY;return Math.abs(S==="up"||S==="down"?P||0:Y||0)};_.WP=function(Y,S,P,u,W,m){W=W===void 0?new uZ:W;m=m===void 0?_.So():m;PP.call(this,S,m,u);var J=this;this.element=Y;this.target=S;this.config=P;this.input=W;this.manager=m;this.events=["panstart","panmove","panend"];this.onPanStart=function(){J.config.draggingClass&&J.element.classList.add(J.config.draggingClass);J.config.startAction&&J.config.startAction()};
this.onPanMove=function(c){var C=kFd(J,c);if(C){J.move(c,C);C.fade&&J.fade(c,C);var x=J.input.direction(c);C.moveAction&&C.moveAction(MEd(J,c,C),x)}};
this.onPanEnd=function(c){var C,x,b,T,K,G;return _.B(function(v){if(v.nextAddress==1){J.animationRequestId&&cancelAnimationFrame(J.animationRequestId);J.animationRequestId=void 0;C=kFd(J,c);if(!C)return v.return();x=C;b=x.triggerAction;T=x.fade;K=x.disableFinish;G=x.translateBack;var a=J.input.velocity(c),w=J.input.distance(c),F=J.threshold(C);return a>.3&&w>10||w>F?K?v.jumpTo(6):T?_.q(v,y3Z(J,c),6):_.q(v,Nj1(J,c,C),6):G?_.q(v,J.translateBack(c),3):v.jumpTo(3)}v.nextAddress!=3&&b&&b();J.config.draggingClass&&
J.element.classList.remove(J.config.draggingClass);J.reset();_.Yt(v)})};
Y=Object.keys(P.triggers);this.directions=new Set(Y);QG6(this.input,this.directions.has("right")||this.directions.has("left"))};
_.r(_.WP,PP);_.WP.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var kFd=function(Y,S){S=Y.input.direction(S);return Y.config.triggers[S]};
_.WP.prototype.move=function(Y,S){var P=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var u=P.input.axis(Y),W=P.input.position(Y,P.config.startPosition,S.endPosition,S.moveRatio||1);P.element.style.transform="translate"+u+"("+W+"px)";P.animationRequestId=void 0}))};
var MEd=function(Y,S,P){var u=P.moveRatio||1;P=Math.abs(Y.config.startPosition-P.endPosition);return Math.min(Y.input.distance(S)*u,P)/P};
_.WP.prototype.fade=function(Y,S){var P=S.endOpacity;Y=MEd(this,Y,S);Y>0&&(this.element.style.opacity=""+(((P||0)-1)*Y+1))};
_.WP.prototype.threshold=function(Y){return Y.threshold?Y.threshold:Math.abs(Y.endPosition-this.config.startPosition)/3};
var Nj1=function(Y,S,P){var u,W,m,J,c,C,x;return _.B(function(b){if(b.nextAddress==1)return u=Y.input.delta(S)+Y.config.startPosition,W=Y.input.axis(S),m=P,J=m.endPosition,c=m.transitionEndPosition,x=(C=c)!=null?C:J,_.q(b,Y.element.animate([{transform:"translate"+W+"("+u+"px)"},{transform:"translate"+W+"("+x+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);Y.element.style.transform="translate"+W+"("+x+"px)";_.Yt(b)})};
_.WP.prototype.translateBack=function(Y){var S=this,P,u;return _.B(function(W){if(W.nextAddress==1){if(!S.element.style.transform)return W.return();P=S.input.axis(Y);u=S.config.startPosition;return _.q(W,S.element.animate([{transform:S.element.style.transform},{transform:"translate"+P+"("+u+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}S.element.style.transform="translate"+P+"("+u+"px)";_.Yt(W)})};
var y3Z=function(Y,S){var P,u,W,m;return _.B(function(J){if(J.nextAddress==1)return P=Y.input.delta(S)+Y.config.startPosition,u=Y.input.axis(S),W=P+70,m=Y.element.style.opacity===""?1:Y.element.style.opacity,_.q(J,Y.element.animate([{transform:"translate"+u+"("+P+"px)",opacity:m},{transform:"translate"+u+"("+W+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);Y.element.style.transform="translate"+u+"("+W+"px)";Y.element.style.opacity="0";_.Yt(J)})};var zA=function(){var Y=_.JI.apply(this,arguments)||this;Y._noAccessors=!0;Y.scrollRate=3;Y.autoScrollAnimationStart=0;Y.autoScrollPaused=!1;Y.autoScrollRafId=0;return Y};
_.r(zA,_.JI);_.z=zA.prototype;_.z.created=function(){var Y=this;this.boundAutoScrollHandler=function(S){Y.autoScroll(S)}};
_.z.detached=function(){this.hostElement.removeEventListener("mouseout",_.up(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.up(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.up(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.z.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.up(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.up(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.up(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.up(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.up(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.up(this,this.endAutoScroll)),this.endAutoScroll())};
_.z.autoScroll=function(Y){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=Y);var S;if(S=!this.autoScrollPaused&&this.scrollTarget)S=this.scrollTarget,S=S.scrollHeight-S.scrollTop!==S.clientHeight;S&&(S=1E3/this.scrollRate,Y-=this.autoScrollAnimationStart,Y>S&&(this.scrollTarget.scrollTop+=Math.ceil(Y/S),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.z.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.z.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
zA.prototype.autoScrollEnabledChanged=zA.prototype.autoScrollEnabledChanged;_.Q([_.X(),_.k("design:type",Object)],zA.prototype,"scrollRate",void 0);_.Q([_.X(),_.k("design:type",Object)],zA.prototype,"scrollTarget",void 0);_.Q([_.X(),_.k("design:type",Boolean)],zA.prototype,"autoScrollEnabled",void 0);_.Q([_.zY("autoScrollEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zA.prototype,"autoScrollEnabledChanged",null);zA=_.Q([_.BZ()],zA);_.Hg6=[zA.prototype];var VEc;_.AL(_.xw,"yt-avatar-stack-view-model",{props:{className:_.wm,data:_.wm,isOverlay:_.wm,useMediumText:_.wm,decorations:_.wm,hideAvatar:_.wm}});var Iac=_.EP({buttonRenderer:_.aT});_.Sr(aao);_.Vz(aao,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var mg=function(){var Y=_.Z.apply(this,arguments)||this;Y.hideJoinButtonBeforeSubscribed=_.f("hide_join_button_before_subscribed");Y.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return Y};
_.r(mg,_.Z);_.z=mg.prototype;
_.z.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"}}}};
_.z.updateJoinButtonOverrides=function(){var Y,S;(Y=_.I(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(S=Y.polymerController)==null||S.set("overrides",this.joinButtonOverrides);if(Y=_.I(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))Y.overrides=this.joinButtonOverrides};
_.z.handleButtonRefreshAction=function(Y){if(Y=_.g(Y,_.Ge_))this.set("data.membershipButton",Y.membershipButton),this.notifyPath("data.membershipButton")};
_.z.onYtServiceRequestError=function(Y){_.hQ(this.hostElement,Y.detail.error.message)};
_.z.handleUnsubscribeAction=function(){var Y,S,P;((Y=this.data)==null?void 0:(S=Y.membershipButton)==null?void 0:(P=S.buttonRenderer)==null?void 0:P.style)==="STYLE_PRIMARY"&&_.I(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.y6.Object.defineProperties(mg.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.subscriptionStateEntity)==null||!Y.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var Y,S=(Y=this.data)==null?void 0:Y.membershipButton,P;Y=(S==null?void 0:S.buttonRenderer)||_.g(S==null?void 0:(P=S.timedAnimationButtonRenderer)==null?void 0:P.buttonRenderer,_.I8);return(Y==null?void 0:Y.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(Y==null?void 0:Y.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(Y==null?void 0:Y.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
mg.prototype.onYtServiceRequestError=mg.prototype.onYtServiceRequestError;mg.prototype.updateJoinButtonOverrides=mg.prototype.updateJoinButtonOverrides;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],mg.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],mg.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.Gn),_.k("design:type",Object)],mg.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],mg.prototype,"data",void 0);_.Q([_.d("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],mg.prototype,"hideJoin",null);_.Q([_.X(),_.k("design:type",String)],mg.prototype,"subscribeKey",void 0);_.Q([_.X({selectorArgs:["subscribeKey"],selector:_.YI}),_.k("design:type",Object)],mg.prototype,"subscriptionStateEntity",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],mg.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.Q([_.d("subscriptionStateEntity"),_.X({reflectToAttribute:!0}),_.k("design:type",Object),_.k("design:paramtypes",[])],mg.prototype,"subscribed",null);_.Q([_.d("subscribed","data.membershipButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],mg.prototype,"joinButtonOverrides",null);
_.Q([_.zY("joinButtonOverrides"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mg.prototype,"updateJoinButtonOverrides",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],mg.prototype,"onYtServiceRequestError",null);mg=_.Q([_.t({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],mg);
_.A(mg,"ytd-video-owner-renderer",function(){if(VEc!==void 0)return VEc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return VEc=Y},{mode:1});var eZ1;var nv=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonUpdate=_.f("web_button_rework");Y.dismissButtonOverrides=_.f("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;Y.forceDarkTheme=!1;Y.forceLightTheme=!1;Y.dynamicTextHeight=94;Y.hasOverflowButton=!1;Y.isInfeedModernization=!1;return Y};
_.r(nv,_.Z);_.z=nv.prototype;_.z.computeUrlImg=function(Y){if(Y)return _.Qz(Y.thumbnails)};
_.z.getLogoHeight=function(Y){return this.logoWithPadding(Y)?"31":"24"};
_.z.getLogoClassName=function(Y){return this.logoWithPadding(Y)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.z.logoWithPadding=function(Y){var S,P;return(Y=(S=Y.thumbnails)==null?void 0:(P=S[0])==null?void 0:P.height)&&Y%31===0?!0:!1};
_.z.sendImpressionEndpoints=function(Y){Y.impressionEndpoints&&_.Bu(this.hostElement,Y.impressionEndpoints)};
_.z.observeBasicPalette=function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.colorData)==null?void 0:S.basicColorPaletteData;P?_.fR(this.hostElement,P):_.fR(this.hostElement,{})};
_.z.observeDataChanged=function(){var Y;this.dynamicTextHeight=((Y=this.data)==null?0:Y.supplementalText)?74:94;var S;this.hasSupplementalText=!((S=this.data)==null||!S.supplementalText);if(_.f("web_button_rework")){var P,u,W,m;Y=(P=this.data)==null?void 0:(u=P.actionButton)==null?void 0:(W=u.buttonRenderer)==null?void 0:(m=W.colorData)==null?void 0:m.basicColorPaletteData;var J,c,C;if(!((J=this.data)==null?0:(c=J.actionButton)==null?0:(C=c.buttonRenderer)==null?0:C.style)&&Y){this.computeIsInfeedModernization(this.data)||
(Y.borderColor=Y.foregroundTitleColor);var x,b;this.set("data.actionButton.buttonRenderer",_.RY.unsafeClone((x=this.data)==null?void 0:(b=x.actionButton)==null?void 0:b.buttonRenderer))}}};
_.z.observeDataForCounterfactual=function(){if(_.f("kevlar_banner_cf_extra_logging")){var Y;((Y=this.data)==null?0:Y.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.z.computeSupplementalStyle=function(){var Y;if((Y=this.data)!=null&&Y.supplementalText){var S,P,u;if((S=this.data)==null?0:(P=S.colorData)==null?0:(u=P.basicColorPaletteData)==null?0:u.foregroundActivatedColor)return Y=_.Gp(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+Y+"; --yt-endpoint-hover-color:"+Y+"; --yt-endpoint-visited-color:"+Y+"; --yt-formatted-string-bold-font-weight:700;"}};
_.z.computeForcedDarkTheme=function(){var Y,S,P,u=(Y=this.data)==null?void 0:(S=Y.actionButton)==null?void 0:(P=S.buttonRenderer)==null?void 0:P.style,W,m,J;Y=r36(((W=this.data)==null?void 0:(m=W.colorData)==null?void 0:(J=m.basicColorPaletteData)==null?void 0:J.backgroundColor)||0);return u&&Y};
_.z.computeForcedLightTheme=function(){var Y,S,P,u=(Y=this.data)==null?void 0:(S=Y.actionButton)==null?void 0:(P=S.buttonRenderer)==null?void 0:P.style,W,m,J;Y=!r36(((W=this.data)==null?void 0:(m=W.colorData)==null?void 0:(J=m.basicColorPaletteData)==null?void 0:J.backgroundColor)||0);return u&&Y};
_.z.computeHasOverflowButton=function(Y){return!!Y.overflowButton};
_.z.computeHasTitle=function(Y){return!!Y.title};
_.z.computeTitleMaxFontSize=function(Y){return this.computeHasOverflowButton(Y)?28:64};
_.z.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.z.computeIsInfeedModernization=function(){var Y,S,P,u,W=(Y=this.data)==null?void 0:(S=Y.actionButton)==null?void 0:(P=S.buttonRenderer)==null?void 0:(u=P.colorData)==null?void 0:u.basicColorPaletteData;return(W==null?void 0:W.backgroundColor)===452984831||(W==null?void 0:W.backgroundColor)===218103808};
nv.prototype.observeDataForCounterfactual=nv.prototype.observeDataForCounterfactual;nv.prototype.observeDataChanged=nv.prototype.observeDataChanged;nv.prototype.observeBasicPalette=nv.prototype.observeBasicPalette;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],nv.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],nv.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],nv.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],nv.prototype,"buttonUpdate",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],nv.prototype,"hasSupplementalText",void 0);_.Q([_.X(),_.k("design:type",Object)],nv.prototype,"dismissButtonOverrides",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.k("design:type",Boolean)],nv.prototype,"hasTitle",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.k("design:type",Object)],nv.prototype,"forceDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.k("design:type",Object)],nv.prototype,"forceLightTheme",void 0);_.Q([_.X(),_.k("design:type",Object)],nv.prototype,"dynamicTextHeight",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.k("design:type",Object)],nv.prototype,"hasOverflowButton",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.k("design:type",Object)],nv.prototype,"isInfeedModernization",void 0);_.Q([_.zY("data.colorData.basicColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nv.prototype,"observeBasicPalette",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nv.prototype,"observeDataChanged",null);_.Q([_.zY("data.isVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nv.prototype,"observeDataForCounterfactual",null);nv=_.Q([_.t({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],nv);
_.A(nv,"ytd-banner-promo-renderer",function(){if(eZ1!==void 0)return eZ1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return eZ1=Y},{mode:1});var Ogc;var YAI;var SAI;var jP=function(){return _.Z.apply(this,arguments)||this};
_.r(jP,_.Z);_.Q([_.X(),_.k("design:type",Object)],jP.prototype,"data",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);jP=_.Q([_.t({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],jP);
_.A(jP,"ytd-hashtag-grid-tile-renderer",function(){if(SAI!==void 0)return SAI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return SAI=Y},{mode:1});var JZ=function(){return _.Z.apply(this,arguments)||this};
_.r(JZ,_.Z);JZ.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
JZ.prototype.updateRichGridTrendingHashtagsVisibility=function(){var Y,S;if(((Y=this.data)==null||!Y.isExpanded)&&(S=this.data)!=null&&S.tiles){Y=this.data.tiles.length;S=Y>this.richGridItemsPerRow?this.richGridItemsPerRow+1:Y;var P=Math.ceil(Y/S);this.fullyVisibleRows=Y%S===1&&P===2?1:Math.min(P,2);this.isShowMoreVisible=this.fullyVisibleRows<P}};
JZ.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
JZ.prototype.updateRichGridTrendingHashtagsVisibility=JZ.prototype.updateRichGridTrendingHashtagsVisibility;_.Q([_.X(),_.k("design:type",Object)],JZ.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Number)],JZ.prototype,"fullyVisibleRows",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],JZ.prototype,"isShowMoreVisible",void 0);_.Q([_.X({selector:_.wT,value:0}),_.k("design:type",Number)],JZ.prototype,"richGridItemsPerRow",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],JZ.prototype,"ytdReduxBehavior",void 0);_.Q([_.zY("data","richGridItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JZ.prototype,"updateRichGridTrendingHashtagsVisibility",null);
JZ=_.Q([_.t({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],JZ);
_.A(JZ,"ytd-hashtag-grid-shelf-renderer",function(){if(YAI!==void 0)return YAI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return YAI=Y},{mode:1});var P5o;var uS1;var BP=function(){var Y=_.Z.apply(this,arguments)||this;Y.visibleVideos=[];Y.hiddenVideos=[];Y.modern=_.f("web_modern_buttons");Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(BP,_.Z);_.z=BP.prototype;_.z.attached=function(){var Y=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",Y);this.onDarkModeToggledAction(Y)};
_.z.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"}}}};
_.z.dataChanged=function(){var Y=this;this.requestElementsPerRow();var S,P;this.currentColorPalette=this.isDarkTheme?(S=this.data)==null?void 0:S.darkColorData:(P=this.data)==null?void 0:P.lightColorData;var u;if((u=this.currentColorPalette)==null?0:u.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.ky(this,function(){Y.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.z.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.z.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.z.computeIsFirstFeedItem=function(Y){return Y};
_.z.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&this.set("isDarkTheme",Y);this.data&&(this.currentColorPalette=Y?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.z.getCurrentLogo=function(Y,S){if(Y)return S?Y.darkLogoImage:Y.lightLogoImage};
_.z.computeTitleStyle=function(Y){var S;if((S=this.data)!=null&&S.title&&Y&&Y.textPrimary!==void 0)return"color:"+_.Gp(Y.textPrimary)+";"};
_.z.computeSubtitleStyle=function(Y){var S;if((S=this.data)!=null&&S.subtitle&&Y&&Y.textSecondary!==void 0)return"color:"+_.Gp(Y.textSecondary)+";"};
_.z.computeDismissIconStyle=function(Y){if(this.data&&this.data.dismissButton&&Y&&Y.textPrimary!==void 0)return"--yt-button-color:"+_.Gp(Y.textPrimary)+";"};
_.z.computeOverflowButtonStyle=function(Y){if(this.data&&this.data.overflowButton&&Y&&Y.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Gp(Y.textPrimary)+";--yt-spec-icon-active-other:"+_.Gp(Y.textPrimary)+";"};
_.z.computeBackgroundStyle=function(Y){if(Y&&this.data){var S="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var P=_.Qz((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);P&&(S+='background-image:url("'+P+'");')}Y.backgroundColor!==void 0&&(S+="background-color:"+_.hK(Y.backgroundColor)+";");return S}};
_.z.computeButton=function(){var Y,S=Object.assign({},_.g((Y=this.data)==null?void 0:Y.showMoreButton,_.I8));if(this.modern&&S){S.style="STYLE_MONO_OUTLINE";var P;if(Y=(P=this.currentColorPalette)==null?void 0:P.textPrimary)S.colorData={basicColorPaletteData:{foregroundTitleColor:Y,borderColor:Y}}}return S};
_.z.shouldShowBottomButton=function(Y,S){return!(Y==null?0:Y.header)&&!(Y==null||!Y.primaryButton)&&S<3};
_.z.checkExpanded=function(Y){this.isExpanded=Y&&Y.content?this.hiddenVideos.length===0:!0};
_.z.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.z.getLogoHeight=function(Y){return this.logoWithPadding(Y)?"26":"20"};
_.z.getLogoImageId=function(Y){return this.logoWithPadding(Y)?"logo-image-with-padding":"logo-image"};
_.z.computeHasSectionHeader=function(Y){return!!Y.header};
_.z.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var Y;if((Y=this.data.primaryButton)==null?0:Y.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var S;((S=this.data.dismissButton)==null?0:S.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var P,u;((P=this.data)==null?0:(u=P.primaryButton)==null?0:u.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.z.setVisibleVideos=function(Y){if(this.data&&this.data.content)if(this.data.content.length){var S=this.data.content.length;this.data.header?Y?(this.visibleVideos=this.data.content.slice(0,Math.min(S,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(S,this.slimItemsPerRow),S)):(this.visibleVideos=this.data.content.slice(0,Math.min(S,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(S,this.elementsPerRow),S)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(S,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(S,this.elementsPerRow),S)):(this.visibleVideos=this.data.content.slice(0,Math.min(S,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(S,this.elementsPerRow-1),S))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.z.setHasMovieRenderer=function(){var Y;if((Y=this.data)!=null&&Y.content){var S;this.hasMovieRenderer=!!_.g((S=this.data)==null?void 0:S.content[0],_.wHs)}else this.hasMovieRenderer=!1};
_.z.requestElementsPerRow=function(){_.ms(this.hostElement,"yt-request-elements-per-row")};
_.z.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var Y=_.n(this.hiddenMediaRenderers),S=Y.next();!S.done;S=Y.next())S.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(Y=_.I(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&Y.focus()}};
_.z.updateTitleSpec=function(){var Y;(Y=this.data)!=null&&Y.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.z.logoWithPadding=function(Y){var S,P,u;return(Y=(S=this.getCurrentLogo(Y,this.isDarkTheme))==null?void 0:(P=S.thumbnails)==null?void 0:(u=P[0])==null?void 0:u.height)&&Y%31===0?!0:!1};
_.z.onUpdateElementsPerRowAction=function(Y,S,P){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y);P&&this.slimItemsPerRow!==P&&(this.slimItemsPerRow=P)};
BP.prototype.slimItemsPerRowChanged=BP.prototype.slimItemsPerRowChanged;BP.prototype.elementsPerRowChanged=BP.prototype.elementsPerRowChanged;BP.prototype.dataChanged=BP.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],BP.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],BP.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],BP.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],BP.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],BP.prototype,"currentColorPalette",void 0);_.Q([_.X(),_.k("design:type",Array)],BP.prototype,"visibleVideos",void 0);_.Q([_.X(),_.k("design:type",Array)],BP.prototype,"hiddenVideos",void 0);
_.Q([_.X(),_.k("design:type",Object)],BP.prototype,"primaryButton",void 0);_.Q([_.X({reflectToAttribute:!0,value:3}),_.k("design:type",Number)],BP.prototype,"elementsPerRow",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],BP.prototype,"isDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],BP.prototype,"isExpanded",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],BP.prototype,"largeTitle",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],BP.prototype,"hasMovieRenderer",void 0);_.Q([_.X(),_.k("design:type",Number)],BP.prototype,"slimItemsPerRow",void 0);_.Q([_.X(),_.k("design:type",Boolean)],BP.prototype,"showLightVideoMetadata",void 0);_.Q([_.X(),_.k("design:type",Boolean)],BP.prototype,"showDarkVideoMetadata",void 0);_.Q([_.X(),_.k("design:type",Number)],BP.prototype,"videoMetadataColor",void 0);
_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Boolean)],BP.prototype,"miniMode",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.k("design:type",Boolean)],BP.prototype,"isFirstFeedItem",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.k("design:type",Boolean)],BP.prototype,"hasSectionHeader",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],BP.prototype,"roundedContainer",void 0);_.Q([_.jD("#visible-video-container ytd-rich-grid-media"),_.k("design:type",Array)],BP.prototype,"visibleMediaRenderers",void 0);_.Q([_.jD("#hidden-video-container ytd-rich-grid-media"),_.k("design:type",Array)],BP.prototype,"hiddenMediaRenderers",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],BP.prototype,"modern",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BP.prototype,"dataChanged",null);_.Q([_.zY("elementsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BP.prototype,"elementsPerRowChanged",null);_.Q([_.zY("slimItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BP.prototype,"slimItemsPerRowChanged",null);
BP=_.Q([_.t({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],BP);
_.A(BP,"ytd-brand-video-shelf-renderer",function(){if(uS1!==void 0)return uS1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return uS1=Y},{mode:1});var Wk1;var cP=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(cP,_.Z);_.z=cP.prototype;_.z.attached=function(){var Y=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",Y);this.onDarkModeToggledAction(Y)};
_.z.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.z.dataChanged=function(){this.requestElementsPerRow();var Y,S;this.currentColorPalette=this.isDarkTheme?(Y=this.data)==null?void 0:Y.darkColorData:(S=this.data)==null?void 0:S.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.z.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.z.computeIsFirstFeedItem=function(Y){return Y};
_.z.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&this.set("isDarkTheme",Y);this.data&&(this.currentColorPalette=Y?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(Y),this.updateButtonPalette())};
_.z.shouldShowThumbnailInMetadata=function(Y){return Y<=1};
_.z.getCurrentLogo=function(Y,S){if(Y)return S?Y.darkLogoImage:Y.lightLogoImage};
_.z.computeVideoMetadataColor=function(){if(this.data){var Y;if((Y=this.currentColorPalette)==null?0:Y.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.z.computeTitleStyle=function(Y){var S;if((S=this.data)!=null&&S.title&&Y&&Y.textPrimary!==void 0)return"color:"+_.Gp(Y.textPrimary)+";"};
_.z.computeSubtitleStyle=function(Y){var S;if((S=this.data)!=null&&S.subtitle&&Y&&Y.textSecondary!==void 0)return"color:"+_.Gp(Y.textSecondary)+";"};
_.z.computeDismissIconStyle=function(Y){if(this.data&&this.data.dismissButton){var S;if(Y==null?0:(S=Y.dismissButtonColorData)==null?0:S.foregroundTitleColor)return"--yt-button-color:"+_.Gp(Y.dismissButtonColorData.foregroundTitleColor)+";";var P,u,W,m;if((P=this.data.dismissButton)==null?0:(u=P.buttonRenderer)==null?0:(W=u.colorData)==null?0:(m=W.basicColorPaletteData)==null?0:m.foregroundTitleColor)return"--yt-button-color:"+_.Gp(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.z.computeOverflowButtonStyle=function(Y){var S;if(this.data&&this.data.overflowButton&&(Y==null?0:(S=Y.dismissButtonColorData)==null?0:S.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.Gp(Y.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.Gp(Y.dismissButtonColorData.foregroundTitleColor)+";"};
_.z.computeBackgroundStyle=function(Y){if(Y&&this.data){var S="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var P=_.Qz((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);P&&(S+='background-image:url("'+P+'");')}Y.backgroundColor!==void 0&&(S+="background-color:"+_.hK(Y.backgroundColor)+";");return S}};
_.z.computeHasOverflowButton=function(Y){return!!Y.overflowButton};
_.z.getLogoHeight=function(Y){return this.logoWithPadding(Y)?"26":"20"};
_.z.getLogoImageId=function(Y){return this.logoWithPadding(Y)?"logo-image-with-padding":"logo-image"};
_.z.updateButtonPalette=function(){if(this.data){var Y;if((Y=this.data.primaryButton)==null?0:Y.buttonRenderer){var S;if((S=this.currentColorPalette)==null?0:S.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var P;if((P=this.currentColorPalette)==null?0:P.primaryButtonStyleType)this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}var u;if((u=this.data.dismissButton)==null?0:u.buttonRenderer){var W;if((W=this.currentColorPalette)==null?0:W.dismissButtonColorData)this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData}}}};
_.z.requestElementsPerRow=function(){_.ms(this.hostElement,"yt-request-elements-per-row")};
_.z.updateTitleSpec=function(){var Y;(Y=this.data)!=null&&Y.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.z.logoWithPadding=function(Y){var S,P,u;return(Y=(S=this.getCurrentLogo(Y,this.isDarkTheme))==null?void 0:(P=S.thumbnails)==null?void 0:(u=P[0])==null?void 0:u.height)&&Y%31===0?!0:!1};
_.z.onUpdateElementsPerRowAction=function(Y){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y)};
cP.prototype.elementsPerRowChanged=cP.prototype.elementsPerRowChanged;cP.prototype.dataChanged=cP.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],cP.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],cP.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],cP.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],cP.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],cP.prototype,"currentColorPalette",void 0);_.Q([_.X(),_.k("design:type",Object)],cP.prototype,"primaryButton",void 0);
_.Q([_.X({reflectToAttribute:!0,value:3}),_.k("design:type",Number)],cP.prototype,"elementsPerRow",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],cP.prototype,"isDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],cP.prototype,"titleSize",void 0);_.Q([_.X(),_.k("design:type",Number)],cP.prototype,"videoMetadataColor",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Boolean)],cP.prototype,"miniMode",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.k("design:type",Boolean)],cP.prototype,"isFirstFeedItem",void 0);_.Q([_.X({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],cP.prototype,"roundedContainer",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.k("design:type",Boolean)],cP.prototype,"hasOverflowButton",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cP.prototype,"dataChanged",null);_.Q([_.zY("elementsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cP.prototype,"elementsPerRowChanged",null);cP=_.Q([_.t({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],cP);
_.A(cP,"ytd-brand-video-singleton-renderer",function(){if(Wk1!==void 0)return Wk1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="header-container" hidden="[[data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Wk1=Y},{mode:_.OX("kevlar_poly_si_batch_j070")?1:2});var zYj;var mf5=_.AI(function(Y){var S=Y.data;return _.R(_.ZZ,{data:function(){return S().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(S().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var P=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":P=88;break a;default:P=88}return P},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return S().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Kh"),jgY=_.AI(function(Y){var S=Y.metadataRow;
var P=Y.delimiter;return _.R(_.$Z,{each:function(){return S().textParts||[]},
keyBy:"INDEX"},function(u,W){return _.R(_.SX,null,_.R(_.qw,{text:u,noWrap:!0,userInput:!0}),_.R(n0o,{delimiter:P,max:function(){return S().textParts.length},
index:W}))})},"Lh"),n0o=_.AI(function(Y){var S=Y.delimiter;
var P=Y.max;var u=Y.index;return _.R(_.gw,{cond:function(){return(S==null?void 0:S())&&P()-1>u()},
then:function(){return _.R("span",null,S)}})},"Mh"),JQI=_.AI(function(Y){var S=Y.data;
Y={};return _.R("yt-profile-page-header-information-view-model",{class:_.Si("profile-page-header-information-view-model-wiz",(Y["profile-page-header-information-view-model-wiz--mobile"]=!1,Y))},_.R(_.gw,{cond:function(){return S().onTap},
then:function(){return _.R(_.CR,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.vF(S().onTap)}},_.R(_.rv,{data:function(){return S().thumbnail}},{profilePageHeaderThumbnailViewModel:mf5}))},
else:function(){return _.R("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.R(_.rv,{data:function(){return S().thumbnail}},{profilePageHeaderThumbnailViewModel:mf5}))}}),_.R("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.R(_.gw,{cond:function(){return S().onTap},
then:function(){return _.R(_.rv,{data:function(){return S().title}},{profilePageHeaderTitleViewModel:function(P){var u=P.data;
return _.R(_.CR,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.vF(u().onTap)}},_.R(_.qw,{text:function(){return u().title}}))}})},
else:function(){return _.R(_.rv,{data:function(){return S().title}},{profilePageHeaderTitleViewModel:function(P){var u=P.data;
return _.R(_.qw,{text:function(){return u().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.R(_.rv,{data:function(){return S().metadata}},{profilePageHeaderMetadataViewModel:function(P){var u=P.data;
return _.R(_.gw,{cond:function(){return u().metadataRows},
then:function(W){return _.R("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.R(_.$Z,{each:W,keyBy:"INDEX"},function(m,J){return _.R(_.SX,null,_.R(jgY,{metadataRow:m,delimiter:" \u2022 "}),_.R(n0o,{delimiter:" \u2022 ",max:function(){return W().length},
index:J}))}))}})}})))},"Nh");
JQI.idomCompat=!0;_.AL(JQI,"yt-profile-page-header-information-view-model",{props:{data:_.wm}});var Cv=function(){return _.Z.apply(this,arguments)||this};
_.r(Cv,_.Z);Cv.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Cv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Cv.prototype,"data",void 0);Cv=_.Q([_.t({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Cv);
_.A(Cv,"ytd-effect-pivot-header-view-model",function(){if(zYj!==void 0)return zYj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return zYj=
Y},{mode:1});var BWB;var ql=function(){return _.Z.apply(this,arguments)||this};
_.r(ql,_.Z);ql.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ql.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ql.prototype,"data",void 0);ql=_.Q([_.t({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],ql);
_.A(ql,"ytd-source-pivot-header-renderer",function(){if(BWB!==void 0)return BWB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return BWB=Y},{mode:1});_.AL(_.AI(function(Y){var S=function(){return _.g(Y.data().flowRoot,o8o)};
_.LE(function(){var P=S(),u=function(){},W=function(){};
if(P){var m,J,c=(J=_.g((m=P.steps)==null?void 0:m[0],_.iNo))==null?void 0:J.stepId;FjB(P,c||"");u=dXX(P);W=la5(P)}_.aI(function(){u();u=function(){};
W();W=function(){}})});
return _.R("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.R(_.ou_,{contentId:function(){return Y.data().contentId}},function(){return _.R("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.R(_.gw,{cond:S,
then:function(P){return _.R(_.a4B,{data:P})}}))}))},"Oh"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.wm}});_.AL(_.AI(function(){return _.R("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.R("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.R("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.R(_.Bkd,null)),_.R(_.wVt,{data:{rows:1},isExploreHub:!0}))},"Ph"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.AL(_.AI(function(Y){var S=Y.data;var P=Y.standardUnitMinWidth;Y=_.Ms();var u=_.n((0,_.dts)(S)),W=u.next().value,m=u.next().value,J=function(){var C,x=(C=W())==null?void 0:C.contents;return x==null||x.length===0},c=function(){m(Object.assign({},W(),{contents:[]}))};
_.Yy(Y,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var C=_.g(S().chipsShelf,tEo);if(C!=null&&C!=null&&C.autoselectChipOnVisible){var x,b,T=_.g(C==null?void 0:(x=C.contents)==null?void 0:x[(b=C.autoselectedChipIndex)!=null?b:0],_.wD);T&&T.tapCommand&&_.ae(T.tapCommand)}}});
return _.R("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:Y},_.R(_.ou_,{contentId:function(){return S().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.R("div",null,_.R("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.R(_.rv,{data:function(){return S().header}},{sectionHeaderViewModel:function(C){return _.R(_.H$,{data:C.data,
disableHorizontalPadding:!0})}})),_.R("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.R(_.rv,{data:function(){return S().chipsShelf}},{chipsShelfViewModel:function(C){return _.R(_.veL,{data:C.data,
callback:c,enableSingleChipSelection:!0})}})),_.R("div",null,_.R(_.gw,{cond:J,
then:function(){return _.R("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.R(_.wVt,{data:{rows:1},isExploreHub:!0}))}}),_.R(_.rv,{data:function(){var C;
return(C=W())==null?void 0:C.contents}},{richShelfRenderer:function(C){return _.R(_.sVt,{data:C.data,
isInnerShelf:!0,standardUnitMinWidth:P})}})))}))},"Qh"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.wm,
standardUnitMinWidth:_.wm}});var Rt=function(){return _.Z.apply(this,arguments)||this};
_.r(Rt,_.Z);
Rt.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",
params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
Rt.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.Q([_.p(_.Gn),_.k("design:type",Object)],Rt.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Rt.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.I3),_.k("design:type",Object)],Rt.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Rt.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Number)],Rt.prototype,"standardUnitMinWidth",void 0);Rt=_.Q([_.t({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Rt);
_.A(Rt,"ytd-rich-section-renderer",function(){if(P5o!==void 0)return P5o;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return P5o=Y},{mode:_.OX("kevlar_poly_si_batch_j029")?
1:2});_.AL(_.un_,"yt-profile-identity-info-view-model",{props:{data:_.wm,hideDivider:_.wm}});_.AL(_.x5d,"yt-page-header-view-model",{props:{data:_.wm,noPadding:_.wm,enableBanner:_.wm,cinematicContainerTopbarOffset:_.wm,allowCinematicContainerOverflow:_.wm,displayAsSidebar:_.wm,displayAsPanel:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;var P=function(){var W;return(W=S().numColumns)!=null?W:2},u=function(){return P()>1?3:2};
Y={};return _.R("ytd-rich-grid-group",{class:_.Si("ytdRichGridGroupHost",(Y.ytdRichGridGroupHostFirstColumn=function(){return S().colIndex===0},Y)),
style:_.Jg({"--ytd-rich-grid-group-num-columns":P,"--ytd-rich-grid-items-per-group":u})},_.R("div",{class:"ytdRichGridGroupContents"},_.R(_.rv,{data:function(){var W;return(W=S().contents)==null?void 0:W.slice(0,u())}},{richItemRenderer:function(W){return _.R(_.pcd,{data:W.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Rh"),"ytd-rich-grid-group",{props:{data:_.wm}});var xD=function(){var Y=_.Z.apply(this,arguments)||this;Y.resizeOnObserverInit=!1;Y.isInlinePreviewDisabled=_.f("web_disable_inline_preview");Y.disableStickyFilterBar=!1;Y.transparentBackgroundChipsBar=!1;Y.hideChipsBar=!1;Y.isWatchDefaultLayout=!0;Y.continuationShowButton=!1;Y.rowReducedHorizontalMargin=!1;Y.useCompactList=!1;Y.manualDownloadsPresent=!1;Y.smartDownloadsPresent=!1;Y.shouldRenderDownloadsBanner=!1;Y.hasOptedIntoSmartDownloads=!1;Y.elementsPerRow=4;Y.typographyBump=!1;Y.showGnomeContents=
!1;Y.showExploreHubContents=!1;Y.slimItemsPerRow=1;Y.pageLoadingFromNavigation=!1;Y.loggingRefactor=_.f("kevlar_rich_grid_logging_fix");Y.resizeObserver=null;Y.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};Y.rendererToTagNameMap=
new Map(Object.entries(Y.contentMapping()).map(function(S){var P=_.n(S);S=P.next().value;P=P.next().value;return[S,P.component]}));
Y.insertedContent=new Map;return Y};
_.r(xD,_.Z);_.z=xD.prototype;_.z.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var Y=_.n(_.I(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),S=Y.next();!S.done;S=Y.next())S.value.useCompactList=this.useCompactList};
_.z.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var Y=_.n(_.I(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),S=Y.next();!S.done;S=Y.next())S=S.value,S.sizing=this.sizing,S.typographyBump=this.typographyBump};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.z.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]"},
params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.z.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}}};
_.z.attached=function(){document.addEventListener("yt-page-type-changed",_.up(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.NE(this.resizeObserved,_.z_("rich_grid_resize_delay_ms",50),this)};
_.z.detached=function(){var Y;(Y=this.resizeObserver)==null||Y.disconnect();document.removeEventListener("yt-page-type-changed",_.up(this,this.onPageChange))};
_.z.insertRichSection=function(Y){var S=Y.richItemTargetId;Y=Y.richSectionRendererToInsert;S&&Y&&(this.insertedContent.set(S,Y),this.reflowContent())};
_.z.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.z.computeIsInlinePreviewEnabled=function(Y,S,P){return _.f("web_disable_inline_preview")?!1:!P&&_.ab5({miniplayerIsActive:Y,miniplayerPlaybackState:S})};
_.z.computeSizing=function(){var Y=_.On8(this.data);if(Y||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return Y?this.useCompactList?"COMPACT":Y:this.miniMode?"COMPACT":_.f("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.z.updateItemMinAndMaxWidth=function(){var Y=_.z_("rich_grid_max_item_width",500);Y>0&&_.PZ(this.hostElement,{"--ytd-rich-grid-item-max-width":Y+"px"});var S;Y=this.getRichItemMinWidth((S=this.hostElement)==null?void 0:S.clientWidth);Y>0&&_.PZ(this.hostElement,{"--ytd-rich-grid-item-min-width":Y+"px"})};
_.z.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.z.resizeObserved=function(){_.jR(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.z.navigateBackToHome=function(){_.f("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var Y=_.E().resolve(_.Ag).isOnWatch(),S,P=((S=_.eeh(location.pathname))==null?void 0:S.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(P)||Y)&&this.gnomeContents&&_.f("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);Y&&this.exploreHubContents&&_.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Na().dispatch(_.WT({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.z.onPageChange=function(){var Y=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.f("disable_chip_select_on_nav")||_.jR(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.wc.addJob(function(){Y.pageLoadingFromNavigation=!1;_.f("disable_chip_select_on_nav")&&_.f("h5_reset_cache_and_filter_before_update_masthead")&&Y.resetCacheAndIsFilteredFeed();Y.setMasthead();Y.maybeSetBigYoodle();Y.forceRefreshAndLog();Y.terminateVideoPreview();_.f("web_hide_gnome_until_user_navigates_back_to_home")&&
(Y.dataChanged(),_.ky(Y,function(){if(Y.showGnomeContents){var S=Array.from(_.I(Y.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(u){u=_.I(u).querySelector("ytd-rich-shelf-renderer");return!!u&&u.isGnomeShelf()});
if(S){S=S.offsetTop-Y.contentsElement.offsetTop;var P=_.E().resolve(_.Ag).getCurrentPage();P&&P.getPageScrollingElement().scrollTo({top:S,behavior:"smooth"})}}}));
_.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&(Y.dataChanged(),_.ky(Y,function(){if(Y.showExploreHubContents&&!_.f("web_explore_hub_no_scroll")){var S=Array.from(_.I(Y.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(u){return!!u.querySelector("ytd-talk-to-recs-flow-renderer")});
if(S){S=S.offsetTop-Y.contentsElement.offsetTop;var P=_.E().resolve(_.Ag).getCurrentPage();P&&P.getPageScrollingElement().scrollTo({top:S,behavior:"smooth"})}}}))},8)):((_.f("web_hide_gnome_until_user_navigates_back_to_home")||_.f("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.z.dataChanged=function(){var Y=this,S=_.z_("web_rich_grid_row_margin",0);S>0&&_.PZ(this.hostElement,{"--ytd-rich-grid-row-margin":S+"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(),_.ky(this,function(){Y.updateRichItemGridPositions();Y.contentsElement&&_.PZ(Y.hostElement,{"--ytd-rich-grid-content-offset-top":Y.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.z.initResizeObserver=function(){var Y=this;if(window.ResizeObserver){var S;(S=this.resizeObserver)==null||S.disconnect();var P=!1;this.resizeObserver=new ResizeObserver(function(){if(P){var u;(u=Y.resizeObserver)==null||u.disconnect();var W;(W=Y.throttledOnResize)==null||W.fire();requestAnimationFrame(function(){var J;(J=Y.throttledOnResize)==null||J.fire();Y.initResizeObserver()})}else if(P=!0,Y.resizeOnObserverInit){var m;
(m=Y.throttledOnResize)==null||m.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.z.contentLengthChanged=function(){if(_.f("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.jR(this.hostElement,"ytd-rich-item-index-update-action")};
_.z.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(_.WT({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.WT({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.z.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.z.onRichShelfRendererCollapse=function(Y){if(this.shownItems){var S=Y.detail;Y=this.shownItems.findIndex(function(u){var W,m;return((m=_.g(u==null?void 0:(W=u.richSectionRenderer)==null?void 0:W.content,_.WJh))==null?void 0:m.trackingParams)===S});
var P=Y+1;Y<0||P>=this.contentsElement.children.length||!this.shownItems[P].richItemRenderer||this.contentsElement.children[P].scrollIntoView({behavior:"smooth",block:"start"})}};
_.z.onSoftReloadPage=function(){this.scrollUpToTop()};
_.z.handleRerenderDownloadsData=function(){_.f("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.z.handlePlaylistRemoveVideosAction=function(Y){var S;if(((S=_.g(Y,_.G2s))==null?0:S.setVideoIds)&&this.data&&this.data.contents){Y=_.g(Y,_.G2s).setVideoIds;for(S=this.data.contents.length-1;S>=0;){var P=_.g(this.data.contents[S],_.$p);(P=P&&_.g(P.content,_.DP))&&P.setVideoId&&Y.includes(P.setVideoId)&&this.splice("data.contents",S,1);S--}this.updateIndices()}};
_.z.updateIndices=function(){if(this.data&&this.data.contents)for(var Y=0;Y<this.data.contents.length;Y++)this.set("data.contents."+Y+".richItemRenderer.index",_.kW(String(Y+1)))};
_.z.hasTopRowInlinePlayableVideoWithEndorsement=function(Y){var S;return!((S=Y.slice(0,this.getItemsPerRow()))==null||!S.some(function(P){var u;P=_.g(P==null?void 0:(u=P.richItemRenderer)==null?void 0:u.content,_.qmJ);var W;return(P==null?void 0:P.inlinePlaybackEndpoint)&&(P==null?void 0:(W=P.thumbnailOverlays)==null?void 0:W.some(function(m){return m.thumbnailOverlayEndorsementRenderer}))}))};
_.z.refreshGridLayoutNew=function(Y,S,P,u){var W=u.postsPerRow;var m=u.slimItemsPerRow;var J=u.gameCardsPerRow;u=u.miniGameCardsPerRow;var c;if((c=this.data)==null||!c.contents||!this.containerWidth)return!1;var C;if((C=this.data.responsiveContainerConfiguration)==null?0:C.responsiveSize){var x=_.yo8(this.data.responsiveContainerConfiguration,this.containerWidth),b;c=_.kI(Object.assign({},x,{standardUnitMinWidth:(b=this.data)==null?void 0:b.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&x.isCompactList)}else c=_.kI({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(x=this.data)==null?void 0:x.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=c.typographyBump;b=!1;if(Y||this.elementsPerRow!==c.numItems||this.postsPerRow!==W||this.slimItemsPerRow!==m||this.gameCardsPerRow!==
J||this.miniGameCardsPerRow!==u||this.gutter!==c.gutter)b=this.elementsPerRow!==c.numItems,this.elementsPerRow=c.numItems,this.postsPerRow=W,this.slimItemsPerRow=m,this.gameCardsPerRow=J,this.miniGameCardsPerRow=u,this.gutter=c.gutter,this.itemWidth=c.itemWidth,this.reflowContent(S),_.PZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":c.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(P);this.ytdReduxBehavior.dispatch(_.WT({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:c.maxContainerWidth}));return b};
_.z.refreshGridLayout=function(Y,S){var P,u=(P=this.hostElement)==null?void 0:P.clientWidth;this.containerWidth=this.adjustRichGridWidth(u,!0);var W;if((W=this.data)==null||!W.contents||!this.containerWidth)return Y&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.f("rg_pending_reflow_ks")&&(Y=!0,this.pendingForceReflow=!1);P=this.getRichItemMinWidth(u);var m=this.isShortsPanel?146:194,J=this.getMiniGameCardMinWidth(),c=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
u=P=this.calcElementsPerRow(P,c);(W=P<=3&&this.miniModeAllowed())&&(P=this.calcElementsPerRow(240,4));var C=this.calcMaxSlimElementsPerRow(P,c,this.isDefaultGrid);c=this.calcElementsPerRow(m,C);var x=this.calcElementsPerRow(this.isCompactGrid?m:154,C);m=this.calcElementsPerRow(this.isCompactGrid?m:J,C);J=!1;if(this.sizing)return this.refreshGridLayoutNew(Y,S,W,{postsPerRow:u,slimItemsPerRow:c,gameCardsPerRow:x,miniGameCardsPerRow:m});if(Y||this.elementsPerRow!==P||this.postsPerRow!==u||this.slimItemsPerRow!==
c||this.gameCardsPerRow!==x||this.miniGameCardsPerRow!==m)J=this.elementsPerRow!==P,this.elementsPerRow=P,this.postsPerRow=u,this.slimItemsPerRow=c,this.gameCardsPerRow=x,this.miniGameCardsPerRow=m,this.reflowContent(S),this.updateElementsPerRow(),_.PZ(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)&&_.PZ(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(W);_.jR(this.hostElement,"yt-rich-grid-layout-refreshed");return J};
_.z.getRichItemMinWidth=function(Y){var S=_.z_("rich_grid_min_item_width",310);if(!_.f("kevlar_disable_min_width_override")){var P,u;S=(u=(P=this.data)==null?void 0:P.minItemWidth)!=null?u:S}return S+_.kb8(Y)};
_.z.calcMaxSlimElementsPerRow=function(Y,S,P){return(P===void 0?0:P)?Y===1?2:Y%2===0?_.f("web_shorts_2_by_3_reduce_items_per_row")&&Y>=4?Y/2*3-1:Y/2*3:_.f("web_shorts_2_by_3_reduce_items_per_row")&&Y>=3?Y+1:Y+2:S*2};
_.z.adjustRichGridWidth=function(Y,S){var P=_.f("disable_rich_grid_guide_compensation");if(!this.isWatch&&!P){P=_.E().resolve(_.PQ(_.a5));var u=P==null?void 0:P.guideElement;if(!(!P||P.getData()||u!=null&&u.opened||P.getMiniGuideVisible()))if(P.canFitPersistentGuide(Y)&&P.getGuideExpandsAutomatically()){var W,m,J=Number((W=window.getComputedStyle(this.hostElement))==null?void 0:(m=W.getPropertyValue("--app-drawer-width"))==null?void 0:m.replace("px",""));Y-=J||0}else if(P.canFitMiniGuide(Y)){var c;
W=Number((J=window.getComputedStyle(this.hostElement))==null?void 0:(c=J.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:c.replace("px",""));Y-=W||0}}Y>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(Y-=S?32:48));return Y};
_.z.calcElementsPerRow=function(Y,S){var P=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),u=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((P+u)/(Y+u))||1,S)};
_.z.reflowContent=function(Y){var S=this;if(!this.isReflowing){this.isReflowing=!0;var P,u,W=!!((P=this.data)==null?0:(u=P.contents)==null?0:u.some(function(G){return _.g(G,_.Ws)}));
P=this.getItemsPerRow();var m;u=(m=this.data)==null?void 0:m.reflowOptions;Y&&(_.Fk("rgr_s"),_.ky(this,function(){_.Fk("rgr_nrf")}));
Y={};(m=_.I(this.hostElement).querySelector("#contents"))&&(Y={contentElement:m,rendererToTagNameMap:this.rendererToTagNameMap});m=(m=this.data.contents)?m.slice():[];var J=(_.f("web_hide_gnome_behind_feed_filter_chip")||_.f("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,c=_.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,C=-1,x=-1;if(this.isHomePage&&c){for(c=0;c<m.length;c++){var b=void 0,T=void 0;_.g((b=m[c])==null?void 0:
(T=b.richSectionRenderer)==null?void 0:T.content,ig1)&&(x=c)}x>-1&&(this.exploreHubContents=m.splice(x,1))}if(this.isHomePage&&J){for(x=0;x<m.length;x++)T=b=void 0,(c=_.g((b=m[x])==null?void 0:(T=b.richSectionRenderer)==null?void 0:T.content,_.WJh))&&J&&(T=b=void 0,c=_.g((b=c)==null?void 0:(T=b.contents)==null?void 0:T[0],_.$p),b=void 0,_.g((b=c)==null?void 0:b.content,_.zO6)&&(C=x));C>-1&&(this.gnomeContents=m.splice(C,1))}var K=DXc(m,P,W,u,this.getRichGridStyle(),Y,this.insertedContent);W=function(){S.shownItems=
K;S.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(K),_.ky(this,W)):W()}};
_.z.getFirstRowItems=function(Y){for(var S=[],P=0;P<Y.length;P++){var u=void 0,W=void 0,m=void 0,J=void 0,c=void 0,C=void 0;if(((u=Y[P])==null?void 0:(W=u.richItemRenderer)==null?void 0:W.rowIndex)===0||((m=Y[P])==null?void 0:(J=m.richGroupRenderer)==null?void 0:J.rowIndex)===0||((c=Y[P])==null?void 0:(C=c.richSectionRenderer)==null?void 0:C.rowIndex)===0)S.push(Y[P]);else break}return S};
_.z.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.z.handleChipCloudChipSelectAction=function(Y,S){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.f("web_hide_gnome_behind_feed_filter_chip")&&(S?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.z.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.f("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.z.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.f("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.z.terminateVideoPreview=function(){_.jR(this.hostElement,"yt-terminate-video-preview-action")};
_.z.updateRichItemGridPositions=function(){var Y={gridData:{gridColumnCount:this.elementsPerRow}},S;if((S=this.data)==null?0:S.trackingParams)this.loggingRefactor?_.BF().stateChanged(this.data.trackingParams,Y):(S=_.pM())&&_.yP(S,_.Re(this.data.trackingParams),Y);_.jR(this.hostElement,"ytd-rich-item-index-update-action")};
_.z.miniModeAllowed=function(){return _.f("disable_channels_mini_mode")?!1:this.isChannelPage};
_.z.getMiniGameCardMinWidth=function(){return 154};
_.z.updateMiniMode=function(Y){this.miniMode=this.miniModeAllowed()&&Y;this.ytdReduxBehavior.dispatch(_.WT({type:"SET_RICH_GRID_MINI_MODE",payload:Y}))};
_.z.isCurrentPage=function(){return location.pathname===this.pagePath};
_.z.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var Y=_.E().resolve(_.Ag).getCurrentPage();Y&&Y.setScrollTop(0)}};
_.z.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.z.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.z.maybeSetBigYoodle=function(){var Y,S=(Y=this.data)==null?void 0:Y.bigYoodle;this.bigYoodleData!==S&&(this.bigYoodleData=S)};
_.z.setMasthead=function(){var Y;((Y=this.data)==null?0:Y.masthead)?this.mastheadData=this.data.masthead:_.f("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.z.getRichGridStyle=function(){var Y,S;return(S=(Y=this.data)==null?void 0:Y.style)!=null?S:"RICH_GRID_STYLE_UNKNOWN"};
_.z.onIsShortsGridChange=function(){var Y=this.ytdReduxBehavior,S=Y.dispatch,P=this.getRichGridStyle();S.call(Y,_.WT({type:"SET_RICH_GRID_STYLE",payload:P}))};
_.y6.Object.defineProperties(xD.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var Y=_.E().resolve(_.Ag).getCurrentPage(),S,P,u;return(((S=this.data)==null?void 0:S.targetId)==="browse-feedFEsfv_audio_pivot"||_.f("web_enable_channel_pivot_panel")&&((P=this.data)==null?void 0:P.targetId)==="browse-feedFEsfv_channel_pivot"||_.f("web_enable_effect_pivot_panel")&&((u=this.data)==null?void 0:u.targetId)==="browse-feedFEsfv_effect_pivot")&&(Y==null?void 0:Y.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.f("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null?0:Y.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=_.E().resolve(_.Ag).getCurrentPage())==null?void 0:Y.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=_.E().resolve(_.Ag).getCurrentPage())==null?void 0:Y.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var Y;return this.hideChipsBar||(((Y=this.data)==null?void 0:Y.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.f("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.targetId)||"")==="watch-next-feed"&&!_.f("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((Y=this.data)==null?0:Y.enableContentSpecificAspectRatio)||((S=this.data)==null?0:(P=S.responsiveContainerConfiguration)==null?0:P.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.z_("web_continuation_handler_margin",0):0}}});
xD.prototype.onIsShortsGridChange=xD.prototype.onIsShortsGridChange;xD.prototype.onReloadContinuationFinish=xD.prototype.onReloadContinuationFinish;xD.prototype.reflowContent=xD.prototype.reflowContent;xD.prototype.handleRerenderDownloadsData=xD.prototype.handleRerenderDownloadsData;xD.prototype.onRichShelfRendererCollapse=xD.prototype.onRichShelfRendererCollapse;xD.prototype.onRequestElementsPerRow=xD.prototype.onRequestElementsPerRow;xD.prototype.contentLengthChanged=xD.prototype.contentLengthChanged;
xD.prototype.dataChanged=xD.prototype.dataChanged;xD.prototype.onSizingChange=xD.prototype.onSizingChange;xD.prototype.onUseCompactListChange=xD.prototype.onUseCompactListChange;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.G8),_.k("design:type",Object)],xD.prototype,"ironResizableBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],xD.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.I3),_.k("design:type",Object)],xD.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],xD.prototype,"componentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],xD.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],xD.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Boolean)],xD.prototype,"miniMode",void 0);_.Q([_.X({value:[]}),_.k("design:type",Array)],xD.prototype,"shownItems",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],xD.prototype,"isReflowing",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],xD.prototype,"isFilteredFeed",void 0);_.Q([_.X({selector:_.zSY}),_.k("design:type",Boolean)],xD.prototype,"guideIsExpanded",void 0);
_.Q([_.X({selectorArgs:["entitySelectorType"],selector:function(Y,S){if(_.f("kevlar_modern_downloads_page")&&S&&S!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(S){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var P=Y.entities;S=_.vT(P);var u=_.DS(P),W=_.rfa(Y),m=_.$$Y(Y);Y=_.GNE(Y);var J=_.VBX(P),c=_.gT(S);P=_.IR(P);return _.okY(S,u,J,W,m,c,P,Y);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return S=_.vT(Y.entities),_.Ao8(S);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return S=
_.MB9(Y.entities),_.U38(S);default:_.sf(new _.$2("Error: entitySelectorType defined but not matched in selector.",Y,S))}}}),
_.k("design:type",Object)],xD.prototype,"entityDrivenRichGridData",void 0);_.Q([_.X(),_.k("design:type",Object)],xD.prototype,"resizeOnObserverInit",void 0);_.Q([_.X(),_.k("design:type",Object)],xD.prototype,"bigYoodleData",void 0);_.Q([_.X(),_.k("design:type",Object)],xD.prototype,"mastheadData",void 0);_.Q([_.X(),_.k("design:type",Boolean)],xD.prototype,"isInlinePreviewDisabled",void 0);_.Q([_.X(),_.k("design:type",Object)],xD.prototype,"disableStickyFilterBar",void 0);
_.Q([_.X(),_.k("design:type",Object)],xD.prototype,"transparentBackgroundChipsBar",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xD.prototype,"hideChipsBar",void 0);_.Q([_.X(),_.k("design:type",Object)],xD.prototype,"isWatchDefaultLayout",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xD.prototype,"continuationShowButton",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xD.prototype,"rowReducedHorizontalMargin",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xD.prototype,"useCompactList",void 0);_.Q([_.X({selector:function(Y){return _.DS(Y.entities).length>0}}),
_.k("design:type",Object)],xD.prototype,"manualDownloadsPresent",void 0);_.Q([_.X({selector:function(Y){return _.vT(Y.entities).length>0}}),
_.k("design:type",Object)],xD.prototype,"smartDownloadsPresent",void 0);_.Q([_.X({selector:_.$$Y}),_.k("design:type",Object)],xD.prototype,"shouldRenderDownloadsBanner",void 0);_.Q([_.X({selector:_.rfa}),_.k("design:type",Object)],xD.prototype,"hasOptedIntoSmartDownloads",void 0);_.Q([_.zY("useCompactList"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xD.prototype,"onUseCompactListChange",null);
_.Q([_.zY("sizing","typographyBump"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xD.prototype,"onSizingChange",null);_.Q([_.X({selector:_.BDX}),_.k("design:type",Number)],xD.prototype,"miniplayerPlaybackState",void 0);_.Q([_.X({selector:_.pA}),_.k("design:type",Boolean)],xD.prototype,"miniplayerIsActive",void 0);
_.Q([_.X({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.k("design:type",Boolean)],xD.prototype,"isInlinePreviewEnabled",void 0);_.Q([_.X({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.k("design:type",String)],xD.prototype,"sizing",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xD.prototype,"elementsPerRow",void 0);
_.Q([_.X(),_.k("design:type",Object)],xD.prototype,"typographyBump",void 0);_.Q([_.X(),_.k("design:type",Number)],xD.prototype,"itemWidth",void 0);_.Q([_.nc("#header"),_.k("design:type",HTMLElement)],xD.prototype,"headerElement",void 0);_.Q([_.nc("#contents"),_.k("design:type",HTMLElement)],xD.prototype,"contentsElement",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xD.prototype,"dataChanged",null);
_.Q([_.cZ("data.contents.length"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xD.prototype,"contentLengthChanged",null);_.Q([_.WZ("yt-request-elements-per-row"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xD.prototype,"onRequestElementsPerRow",null);
_.Q([_.WZ("yt-rich-shelf-renderer-collapse"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],xD.prototype,"onRichShelfRendererCollapse",null);_.Q([_.cZ("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xD.prototype,"handleRerenderDownloadsData",null);
_.Q([_.d("data"),_.k("design:type",String),_.k("design:paramtypes",[])],xD.prototype,"entitySelectorType",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"isSub",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"isWatch",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"isShortsPanel",null);_.Q([_.X({reflectToAttribute:!0}),_.d("isWatch"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"reducedTopMargin",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data","isWatch","isWatchDefaultLayout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"noTopMargin",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("isInlinePreviewEnabled","shownItems"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"topRowEndorsement",null);_.Q([_.d("data.header"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"hideHeader",null);_.Q([_.WZ("yt-rich-grid-reflow"),_.k("design:type",Function),_.k("design:paramtypes",[Boolean]),_.k("design:returntype")],xD.prototype,"reflowContent",null);
_.Q([_.WZ("yt-reload-continuation-finish"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xD.prototype,"onReloadContinuationFinish",null);_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"isSlimGrid",null);_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"isShortsGrid",null);
_.Q([_.d("data","isSlimGrid","isShortsGrid"),_.X(),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"noRichItemGutterMargins",null);_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"isShortsGridSlim",null);_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"isCompactGrid",null);
_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"isDefaultGrid",null);_.Q([_.d("data.targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"hideChipsBarOnHome",null);_.Q([_.d("data.targetId"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"hideChipsBarOnWatch",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xD.prototype,"onIsShortsGridChange",null);_.Q([_.d("data.enableContentSpecificAspectRatio"),_.X(),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xD.prototype,"force16By9ThumbnailAspectRatio",null);_.Q([_.d("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],xD.prototype,"continuationTriggerOffset",null);xD=_.Q([_.t({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],xD);
_.A(xD,"ytd-rich-grid-renderer",function(){if(Ogc!==void 0)return Ogc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Ogc=Y},{mode:2});var cQY;var C5Z;var bZ=function(){return _.Z.apply(this,arguments)||this};
_.r(bZ,_.Z);_.Q([_.X(),_.k("design:type",Object)],bZ.prototype,"data",void 0);bZ=_.Q([_.r0({is:"yt-alert-renderer",disableElementRegistration:!0})],bZ);
_.A(bZ,"yt-alert-renderer",function(){if(C5Z===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;cQY===void 0&&(cQY=document.createElement("template"));var u=cQY;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);C5Z=Y}Y=C5Z;return Y},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.cc6=_.AI(function(Y){var S=_.uL(),P=_.E().resolve(_.d8);_.Ij(function(){requestAnimationFrame(function(){var W;(W=S.lottieEl)==null||W.addEventListener("DOMLoaded",function(){var m;(m=Y.onLottieLoaded)==null||m.call(Y)})})});
var u={};return _.R("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var W;return((W=Y.data)==null?void 0:W.call(Y).targetId)||""}},_.R(_.PX,{className:_.Si((u.ytChatLoadingViewModelRtl=P==="rtl",u)),
animationName:"YOUCHAT_LOADER",data:function(){var W;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((W=Y.data)==null?void 0:W.call(Y).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:S}))},"Qf");
}catch(e){_._DumpException(e)}
try{
_.oUB=function(Y,S){var P,u;S=S===void 0?{}:S;var W,m,J,c,C,x,b,T,K,G,v,a;return _.B(function(w){switch(w.nextAddress){case 1:W=S;m=W.shouldWrap===void 0?!0:W.shouldWrap;J=W.skipTransitionTimeoutMs===void 0?300:W.skipTransitionTimeoutMs;c=W.beforeTransition;C=W.afterTransition;if(!m||!document.startViewTransition||document.visibilityState==="hidden")return w.return(Y());P=window.innerWidth;u=window.innerHeight;x=!1;(b=c)==null||b();_.ND(w,2);T=document.startViewTransition(Y);K=setTimeout(function(){T.skipTransition();
x=!0},J);
return _.q(w,T.ready,4);case 4:return clearTimeout(K),_.q(w,T.finished,5);case 5:clearTimeout(K);(G=C)==null||G();_.tc(w,0);break;case 2:v=_.O4(w),(a=C)==null||a(),v&&!x&&document.visibilityState!=="hidden"&&P===window.innerWidth&&u===window.innerHeight&&_.p_(v),_.Yt(w)}})};
_.fe=function(Y){return Y.watch.isTheaterMode};
_.t2Y=function(Y){var S=_.nN("DIV");Y&&(S.className=Y);S.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";Y=_.nN("DIV");_.eXt(Y,"200px","200px");S.appendChild(Y);document.body.appendChild(S);Y=S.offsetWidth-S.clientWidth;_.jL(S);return Y};
_.gW=function(){for(var Y=Array(36),S=0,P,u=0;u<36;u++)u==8||u==13||u==18||u==23?Y[u]="-":u==14?Y[u]="4":(S<=2&&(S=33554432+Math.random()*16777216|0),P=S&15,S>>=4,Y[u]=_.gsh[u==19?P&3|8:P]);return Y.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Aw_=_.Q0(['<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>']),
UDc=_.J6d(Aw_);UDc.setAttribute("style","display: none;");document.head.appendChild(UDc.content);_.$0=_.bEf(_.t2Y);var Q91;var kT1;var rW=function(){var Y=_.Z.apply(this,arguments)||this;Y.icon=null;return Y};
_.r(rW,_.Z);rW.prototype.dismiss=function(){_.ms(this.hostElement,"yt-live-chat-error-message-dismiss")};
rW.prototype.computeIcon=function(Y){return Y&&Y.iconType?"yt-icons:"+Y.iconType.toLowerCase():"yt-icons:close"};
_.Q([_.X(),_.k("design:type",Object)],rW.prototype,"data",void 0);_.Q([_.X({computed:"computeIcon(data.icon)"}),_.k("design:type",Object)],rW.prototype,"icon",void 0);rW=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],rW);
_.A(rW,"yt-live-chat-error-message-renderer",function(){if(kT1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Q91===void 0&&(Q91=document.createElement("template"));var u=Q91;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);kT1=Y}Y=kT1;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var Kdc,Erj,fE5,gru,$O6,rJ,IEX,aEd,Ldo,v5,wNc,pN1,Dc,Fd6,swI,dOB,lE1,XNj,ZF1,iF_,orZ,twX,AUc,UOj,QwI,kuo,MwY,yU1,N_Y,HF6,VwX,eHY,OFu,YcI,Sc1,Pb_,u81,IZ,W7_,zbZ,m3d,JoI,BRI,co6,Cb1,qc_,Rbo,nkZ,jvX,bW6,TR1,K7I,Ek1,fru,x31,roZ;Kdc=function(Y,S,P){S=S===void 0?5:S;if(S!==0){var u=typeof Y==="function"?Y():document.querySelector(Y);u?(P==null?0:P.enableSmartFocus)?_.VhK(u):u.focus():setTimeout(function(){Kdc(Y,S-1,P)},500)}};
Erj=function(Y,S){return _.BT(Y.entities,"timedMarkersListSyncEntity",S)};
fE5=function(Y,S){return _.BT(Y.entities,"liveReactionsDataEntity",S)};
gru=function(Y,S){Y=_.BT(Y.entities,"booleanEntity",S);return!(!Y||!Y.value)};
$O6=function(Y,S){var P=_.pM();P&&Y&&_.t6(P,_.Re(Y),S)};
_.rUo=function(){_.f("web_watch_log_theater_mode")&&_.C31("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.Gu6=function(Y,S,P){if(!Y.includes("START_TIME_PLACEHOLDER")||!Y.includes("END_TIME_PLACEHOLDER"))return Y;var u=new Date(0),W=new Date(0);u.setUTCMilliseconds(S);W.setUTCMilliseconds(P);return Y.replace("START_TIME_PLACEHOLDER",_.tE(u,7)).replace("END_TIME_PLACEHOLDER",_.tE(W,7))};
rJ=function(Y){return Y.watch.isWatchActive};
_.G7=function(Y){return Y!=null&&Y.watch?Y.watch.isWatchFullscreen:!1};
_.hH5=function(Y){return Y.watch.watchWindowSize};
_.vr5=function(Y){return _.fe(Y)||_.G7(Y)||_.TeJ(Y)};
_.DOI=function(Y){return!_.vr5(Y)};
_.hb=function(Y){return Y.watch.watchScrollTop};
IEX=function(Y){return Y.watch.isLiveChatCollapsed};
aEd=function(Y){return Y.watch.openEngagementPanels};
Ldo=function(Y){switch(Y){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
v5=function(Y,S,P){var u=_.vF(P);Y&&S&&u&&Y.getPlayerPromise().then(function(W){_.hG9(u)&&_.w6();(new _.JM(W)).executeCommand(u,S);_.f("continue_playback_on_desktop_companion_click")||W.pauseVideo()})};
wNc=function(Y){var S=_.Q5(),P;if(P=_.tA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var u;P=(u=P())==null?void 0:u.layoutId}else P=null;v5(S,P,Y)};
pN1=function(Y){var S=_.Q5(),P;if(P=_.tA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var u;P=(u=P())==null?void 0:u.layoutId}else P=null;v5(S,P,Y)};
Dc=function(Y,S){var P=Y<0?"-":"";Y=Math.abs(Y);var u=Math.floor(Y/3600),W=Math.floor(Y)%3600,m=Math.floor(W/60);W=Math.floor(W)%60;var J="";(S===void 0?0:S)&&(J="."+Math.round((Y-Math.floor(Y))*10));return u>0?P+u+":"+(m<10?"0"+m:""+m)+":"+(W<10?"0"+W:""+W)+J:P+m+":"+(W<10?"0"+W:""+W)+J};
Fd6=function(Y){var S=Y.match(/[^0-9:\.]/g);if(S&&S.length>0)return null;Y=Y.split(":");if(Y.length===0||Y.length>3)return null;S=1;for(var P=0;Y.length>0;){var u=Y.pop();if(u===void 0)break;var W=Number(u);if(u===""||isNaN(W))return null;P+=W*S;S*=60}return P};
swI=function(Y,S,P,u){Y=Math.max(P,Y);S=Math.min(S,u-P);Y+S>u?(P=u,Y=P-S):P=Y+S;return{start:Y,end:P}};
dOB=function(Y,S,P,u,W,m){Y<P?Y=P:Y+W>u&&(Y=u-W);S>u&&(S=u);S=Math.min(Y+m,Math.max(Y+W,S));return{start:Y,end:S}};
lE1=function(Y,S,P,u,W,m){S>u?S=u:S-W<P&&(S=P+W);Y<P&&(Y=P);Y=Math.min(S-W,Math.max(S-m,Y));return{start:Y,end:S}};
XNj=function(Y){return _.f("web_transcript_cue_id_killswitch")?String(Y):"ytd-transcript-renderer_"+Y};
ZF1=function(Y){return _.f("web_transcript_cue_id_killswitch")?!0:Y.startsWith("ytd-transcript-renderer")};
iF_=function(Y){var S=_.Q5(),P;if(P=_.tA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var u;P=(u=P())==null?void 0:u.layoutId}else P=null;v5(S,P,Y)};
orZ=function(Y,S){return _.BT(Y.entities,"youchatPendingResponseEntity",S)};
twX=function(Y){return function(S){_.ip(_.qE("youchatPendingResponseEntity",Y,{entityKey:Y,isPendingResponse:S}))}};
AUc=function(Y,S){return _.BT(Y.entities,"booleanEntity",S)};
UOj=function(){return function(Y){_.ip(_.qE("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:Y}))}};
QwI=function(Y){Y==null||Y.addEventListener("DOMLoaded",function(){Y.goToAndPlay(Y.totalFrames-48,!0)})};
kuo=function(Y){Y.style.height="auto";Y.style.height=Math.min(Y.scrollHeight||20,80)+"px"};
MwY=function(Y,S){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:S}}],insertByPositionInSection:{sectionTargetId:Y,position:"INSERTION_POSITION_LAST"}}}]}}}};
yU1=function(Y){var S=_.Q5(),P;P=(P=_.tA("yt.www.ads.eventcache.getLastCompanionData"))?(P=P())&&P.layoutId:null;v5(S,P,Y)};
N_Y=function(Y){var S=_.Q5(),P;P=(P=_.tA("yt.www.ads.eventcache.getLastCompanionData"))?(P=P())&&P.layoutId:null;v5(S,P,Y)};
HF6=function(Y,S){S=S===void 0?!1:S;if(Y.simpleText)Y=[{text:Y.simpleText}];else{var P;Y=((P=Y.runs)!=null?P:[]).map(function(u){return Object.assign({},u)})}if(S)for(S=_.n(Y),P=S.next();!P.done;P=S.next())P.value.bold=!0;
return Y};
VwX=function(Y){var S=Y.startEndTimeTemplate,P=Y.startTimeUtcMillis;Y=Y.endTimeUtcMillis;if(S&&P&&Y)return _.kW(_.Gu6(_.Ma(S),Number(P),Number(Y)))};
eHY=function(Y,S){var P,u,W=Y==null?void 0:(P=Y.viewCount)==null?void 0:(u=P.videoViewCountRenderer)==null?void 0:u.shortViewCount;if(!S&&W)return W;var m,J;return Y==null?void 0:(m=Y.viewCount)==null?void 0:(J=m.videoViewCountRenderer)==null?void 0:J.viewCount};
OFu=function(Y,S){var P=Y==null?void 0:Y.relativeDateText;return!S&&P?[P,!0]:[Y==null?void 0:Y.dateText,!1]};
YcI=function(Y,S,P,u,W){u=u===void 0?!0:u;W=W===void 0?"":W;var m=eHY(Y,S),J=_.n(OFu(Y,S)),c=J.next().value;J=J.next().value;S=S?Y==null?void 0:Y.sponsorsOnlyFirstTimeLongText:Y==null?void 0:Y.sponsorsOnlyFirstTimeShortText;var C=[];P&&m&&C.push(m);!P&&J||!c||C.push(c);Y=[].concat(_.cz(C),[S,Y==null?void 0:Y.stationName,Y==null?void 0:Y.rating,Y?VwX(Y):void 0,Y==null?void 0:Y.upNextProgramText,Y==null?void 0:Y.superTitleLink]).filter(function(x){return!!x});
P={runs:[]};for(m=0;m<Y.length;m++)P.runs.push.apply(P.runs,_.cz(HF6(Y[m],u))),m<Y.length-1&&P.runs.push({text:" "+W+" ",bold:u});return P};
Sc1=function(Y){if(Y)return{runs:[{text:Y,bold:!0}]}};
Pb_=function(Y){var S,P,u,W;if(Y=Y==null?void 0:(S=Y.contents)==null?void 0:(P=S.twoColumnWatchNextResults)==null?void 0:(u=P.results)==null?void 0:(W=u.results)==null?void 0:W.contents){var m,J;return(J=(m=Y.find(function(c){return!!c.videoPrimaryInfoRenderer}))==null?void 0:m.videoPrimaryInfoRenderer)==null?void 0:J.updatedMetadataEndpoint}};
u81=function(Y,S){var P;return(P=Y.sourceConfigs)==null?void 0:P.find(function(u){return u.videoId===S})};
IZ=function(Y){return Y==="End of video"||Y==="End of playlist"};
W7_=function(Y){var S,P,u,W;return(S=Y.getWatchNextResponse())==null?void 0:(P=S.contents)==null?void 0:(u=P.twoColumnWatchNextResults)==null?void 0:(W=u.playlist)==null?void 0:W.playlist};
zbZ=function(Y){var S,P,u,W,m,J;return(S=W7_(Y))==null?void 0:(P=S.playlistButtons)==null?void 0:(u=P.menuRenderer)==null?void 0:(W=u.topLevelButtons)==null?void 0:(m=W[0])==null?void 0:(J=m.playlistLoopButtonRenderer)==null?void 0:J.playlistLoopStateEntityKey};
m3d=function(Y){var S=_.E().resolve(_.D3),P;return(S=(P=_.g(S.getAutoplayEndpoint(),_.yx))==null?void 0:P.playlistId)&&S===Y};
JoI=function(Y,S,P,u,W){function m(){_.wc.cancelJob(aZ);var J=nkZ(S,P/Y.getPlaybackRate()),c=J.hours,C=J.minutes;J=(J.seconds*1E3||6E4)/Y.getPlaybackRate();Y.setVideoTimeLeft(jvX(c,C));u&&Y.getPlayerState()!==0&&Y.setSleepTimerTimeLeft(jvX(c,C,!0));(c>0||C>0)&&!W&&(aZ=_.bL(_.wc,m,J))}
_.wc.cancelJob(aZ);aZ=_.bL(_.wc,m)};
BRI=function(Y,S,P){function u(){_.wc.cancelJob(LO);var W=nkZ(S,P),m=W.hours;W=W.minutes;var J=6E4/Y.getPlaybackRate();if(m>0||W>0)Y.setSleepTimerTimeLeft(jvX(m,W,!0)),LO=_.bL(_.wc,u,J)}
_.wc.cancelJob(LO);LO=_.bL(_.wc,u)};
co6=function(Y,S){var P=Y.getVolume()/(S/500),u=function(W){_.wc.cancelJob(wJ);var m=Math.floor(W-P);Y.setVolume(m,!1);m>0&&(wJ=_.bL(_.wc,function(){u(m)},500))};
_.wc.cancelJob(wJ);wJ=_.bL(_.wc,function(){u(Y.getVolume())})};
Cb1=function(Y,S){_.wc.cancelJob(wJ);S&&Y.syncVolume()};
qc_=function(){var Y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Td("SLEEP_TIMER_DISRUPTED")}}}}};_.E().resolve(_.uY).resolveCommand(Y)};
Rbo=function(Y){return(Y.getDuration()-Y.getProgressState().current)*1E3};
nkZ=function(Y,S){Y=Y+S-(0,_.Oh)();if(Y<=0)return{hours:0,minutes:0,seconds:0};var P=new x31(0,0,0,0,0,0,Y);Y=P.getHours();S=P.getMinutes();P=P.getSeconds();P!==0&&S++;S!==0&&S%60===0&&(Y++,S=0);return{hours:Y,minutes:S,seconds:P}};
jvX=function(Y,S,P){return Y>0&&S>0?P?_.Td("TIME_LEFT_HOURS_MINUTES",{hours:Y.toString(),minutes:S.toString()}):_.Td("TIME_HOURS_MINUTES",{hours:Y.toString(),minutes:S.toString()}):Y>0?P?_.fb("TIME_LEFT_HOURS",Y):_.fb("TIME_HOURS",Y):P?_.Td("TIME_LEFT_MINUTES",{minutes:S.toString()}):_.Td("TIME_MINUTES",{minutes:S.toString()})};
bW6=function(Y,S){if(Y.timelyActions)return Y.timelyActions.find(function(P){var u;return((u=_.g(P,pO))==null?void 0:u.cueRangeId)===S})};
TR1=function(Y){var S=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.WO(Y);Y.keyMap_.forEach(function(P,u){_.Au(S,u)||this.remove(u)},Y)};
K7I=function(Y,S){Y.reloadContinuationItemsCommandMatcher=S};
_.Fu=function(Y,S){Y.insertBefore(S,Y.childNodes[0]||null)};
Ek1=function(Y){if(Y>=48&&Y<=57||Y>=96&&Y<=106||Y>=65&&Y<=90||_.Jv&&Y==0)return!0;switch(Y){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.j5;default:return!1}};
fru=function(Y){if(Y.altKey&&!Y.ctrlKey||Y.metaKey||Y.keyCode>=112&&Y.keyCode<=123)return!1;if(Ek1(Y.keyCode))return!0;switch(Y.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.j5;default:return Y.keyCode<166||Y.keyCode>183}};
x31=function(Y,S,P,u,W,m,J){this.date=typeof Y==="number"?new Date(Y,S||0,P||1,u||0,W||0,m||0,J||0):new Date(Y&&Y.getTime?Y.getTime():_.S5())};
_.PW(x31,_.Tf);_.z=x31.prototype;_.z.getHours=function(){return this.date.getHours()};
_.z.getMinutes=function(){return this.date.getMinutes()};
_.z.getSeconds=function(){return this.date.getSeconds()};
_.z.getMilliseconds=function(){return this.date.getMilliseconds()};
_.z.getUTCDay=function(){return this.date.getUTCDay()};
_.z.getUTCHours=function(){return this.date.getUTCHours()};
_.z.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.z.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.z.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.z.setHours=function(Y){this.date.setHours(Y)};
_.z.setMinutes=function(Y){this.date.setMinutes(Y)};
_.z.setSeconds=function(Y){this.date.setSeconds(Y)};
_.z.setMilliseconds=function(Y){this.date.setMilliseconds(Y)};
_.z.setUTCHours=function(Y){this.date.setUTCHours(Y)};
_.z.setUTCMinutes=function(Y){this.date.setUTCMinutes(Y)};
_.z.setUTCSeconds=function(Y){this.date.setUTCSeconds(Y)};
_.z.setUTCMilliseconds=function(Y){this.date.setUTCMilliseconds(Y)};
_.z.add=function(Y){_.Tf.prototype.add.call(this,Y);Y.hours&&this.setUTCHours(this.date.getUTCHours()+Y.hours);Y.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+Y.minutes);Y.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+Y.seconds)};
_.z.JSC$9100_toIsoString=function(Y){var S=_.Tf.prototype.JSC$9100_toIsoString.call(this,Y);return Y?S+"T"+_.Sm(this.getHours(),2)+":"+_.Sm(this.getMinutes(),2)+":"+_.Sm(this.getSeconds(),2):S+"T"+_.Sm(this.getHours(),2)+_.Sm(this.getMinutes(),2)+_.Sm(this.getSeconds(),2)};
_.z.equals=function(Y){return this.getTime()==Y.getTime()};
_.z.toString=function(){return this.JSC$9100_toIsoString()};
_.z.clone=function(){var Y=new x31(this.date);Y.firstDayOfWeek_=this.firstDayOfWeek_;Y.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return Y};
_.gkX=function(Y){return _.WT({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:Y}})};
_.$3o=function(Y){return _.WT({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:Y}})};
roZ=new _.N("imageTileRenderer");var GmB=new _.N("adGridCardCollectionViewModel");var hbB=new _.N("carouselTitleViewModel");var vkd=new _.N("ctaCarouselItemViewModel");var D3I=new _.N("textFieldViewModel");_.Ir1=new _.N("engagementPanelHeaderShowNavigationButtonCommand");var aro=new _.N("hideEngagementPanelScrimAction");var L7j=new _.N("setActivePanelItemAction");var wlX=new _.N("showEngagementPanelScrimAction");var plI=new _.N("updateEngagementPanelAction");var F7I=new _.N("updateSearchInVideoResultsAction");var svc=new _.N("transcriptCueGroupRenderer");var d3B=new _.N("transcriptCueRenderer");var lrc=new _.N("transcriptFooterRenderer");var Xld=new _.N("engagementPanelAdSubtitleRenderer");var ZW5=new _.N("videoDescriptionFantasySectionViewModel");var iW5=new _.N("deleteClipEngagementPanelCommand");var okc=new _.N("loopCommand");var ttd=new _.N("changeCreatorEndscreenVisibilityCommand");var Ao1=new _.N("liveChatCallForQuestionsRenderer");var U31=new _.N("updateTimedMarkersSyncObserverCommand");var pO=new _.N("timelyActionViewModel");var Qvj=new _.N("timelyActionsOverlayViewModel");var kmB=new _.N("repeatChapterCommand");var MtI=new _.N("watchPlayerOverflowMenuCommand");var yo1=new _.N("compositeVideoOverlayRenderer");var NRI=new _.N("sortFilterSubMenuRenderer");var HW1=new _.N("horizontalShelfViewModel");var VtI=new _.N("switchListItemViewModel");var ebZ=new _.N("inputComposerViewModel");var OW1=new _.N("transcriptEditSegmentCommand");var YzI=new _.N("transcriptUpdateSegmentTextCommand");var SzX=new _.N("transcriptSearchBoxRenderer");var Px5=new _.N("transcriptSegmentListRenderer");var ulu=new _.N("transcriptSegmentRenderer");_.WKd=new _.N("updateDateTextAction");var z11=new _.N("updateTitleAction");var mWB=new _.N("updateViewershipAction");var n3c=new _.N("carouselLockupRenderer");var jXu=new _.N("expandableVideoDescriptionBodyRenderer");var J16=new _.N("videoDescriptionYouchatSectionViewModel");var BOZ=new _.N("conversationResourceViewModel");_.sN=_.z_("kevlar_watch_page_horizontal_margin",24);_.c1u=_.z_("kevlar_watch_page_columns_top_padding",24);_.CxX=_.z_("web_screen_width_midpoint",1500);_.qzY=_.z_("web_watch_sidebar_width_offset_per_100",10);_.R16=426+_.sN*2;_.dJ=_.z_("kevlar_watch_two_column_width_threshold",1E3);_.l_=_.sN*2;_.Xu=_.z_("kevlar_watch_secondary_width",402);_.xWI=_.z_("kevlar_watch_secondary_max_width",600);_.bL5=_.z_("kevlar_watch_max_player_width",1280);_.TOd=_.z_("kevlar_watch_flexy_metadata_height",136);
_.KK1=_.l_+310+_.sN;_.E31=_.l_+360+_.sN;var fy_={PAUSE_CHAT:18};var g3_;var $WI;var Zc=function(){return _.Z.apply(this,arguments)||this};
_.r(Zc,_.Z);Zc.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Zc.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var Y=_.g(this.data.button,_.Gz);Y&&(Y.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.y6.Object.defineProperties(Zc,{template:{configurable:!0,enumerable:!0,get:function(){if($WI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;g3_===void 0&&(g3_=document.createElement("template"));var u=g3_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);$WI=Y}Y=$WI;return Y}}});
_.Q([_.p(_.gm),_.k("design:type",Object)],Zc.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X({selectorArgs:["data.enabledEntityKey"],selector:gru,observer:"onEnabledChange"}),_.k("design:type",Boolean)],Zc.prototype,"enabled",void 0);_.Q([_.X(),_.k("design:type",Object)],Zc.prototype,"data",void 0);Zc=_.Q([_.r0({is:"yt-disableable-button-view-model",noInjection:!0})],Zc);var r1Z;var GiX;var h1o=["transVert01","transVert02","transVert03"],v3j="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),i_=function(){var Y=_.Z.apply(this,arguments)||this;Y.emojiManager=_.GV;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};Y.reactionBuckets=[];Y.noEmojiIdentifier="NO_EMOJI";return Y};
_.r(i_,_.Z);_.z=i_.prototype;_.z.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.z.desktopFountainEmojiSizePxChanged=function(){_.PZ(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.z.createUserReactionAnimation=function(Y){this.createEmojiAnimation(Y,!0)};
_.z.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var Y;((Y=this.data)==null?0:Y.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.qE("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.cz(this.emojiContainer.children)).forEach(function(S){S.remove()})};
_.z.detached=function(){this.cleanupFountain()};
_.z.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var Y;this.reactionBuckets=_.RY.unsafeClone((Y=this.emojiFountainData)==null?void 0:Y.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.z.processEmojiBucket=function(Y){var S=this;if(this.reactionBuckets&&!(Y>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var P=this.reactionBuckets[Y];this.generateEmojiAnimations(P);if(Y<this.reactionBuckets.length-1){var u;if(P==null?0:(u=P.duration)==null?0:u.seconds)this.emojiBucketTimerId=setTimeout(function(){S.processEmojiBucket(Y+1)},Number(P.duration.seconds)*1E3)}}};
_.z.generateEmojiAnimations=function(Y){var S=this,P=this.getRandomEmojiIdFromBucketWithOverride(Y);if(P&&P!==this.noEmojiIdentifier){var u=0;Y.targetEps?(u=this.linearInterpolateBounded(1,20,100,12,Y.emojiSizeIndex||0),this.createEmojiAnimation(P,!1,Y.emojiAnimationMs,u),u=this.getEmojiDelayMsFromTargetEps(Y.targetEps)):(this.createEmojiAnimation(P),u=this.getEmojiDelayMsFromDistribution(Y.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){S.generateEmojiAnimations(Y)},u)}};
_.z.getRandomEmojiIdFromBucketWithOverride=function(Y){if(!(Y&&Y.reactionsData&&Y.reactionsData.length&&Y.totalReactions))return this.noEmojiIdentifier;for(var S=Y.totalReactions,P=1,u=_.n(Y.reactionsData),W=u.next();!W.done;W=u.next())W=W.value,(W.reactionWeightOverride||W.reactionWeightOverride===0)&&W.reactionCount&&(S-=W.reactionCount,P-=W.reactionWeightOverride);u=!0;P<0&&(u=!1,S=Y.totalReactions,P=1);if(u&&P>0&&S===0)if(P===1){W=0;for(var m=_.n(Y.reactionsData),J=m.next();!J.done;J=m.next())J=
J.value,J.reactionCount&&J.reactionCount>0&&W++;W=1/W;m=_.n(Y.reactionsData);for(J=m.next();!J.done;J=m.next())J.value.reactionWeightOverride=W}else for(W=1/(1-P),m=_.n(Y.reactionsData),J=m.next();!J.done;J=m.next())J=J.value,J.reactionWeightOverride&&(J.reactionWeightOverride*=W);W=Math.random();m=0;J=_.n(Y.reactionsData);for(var c=J.next();!c.done;c=J.next())if(c=c.value,c.reactionCount&&(m=(c.reactionWeightOverride||c.reactionWeightOverride===0)&&u?m+c.reactionWeightOverride:m+P*c.reactionCount/
S,m>W&&(c.reactionCount--,Y.totalReactions--,c=this.reactionItemToEmojiString(c),c!==this.noEmojiIdentifier)))return c;return this.noEmojiIdentifier};
_.z.reactionItemToEmojiString=function(Y){if(Y.unicodeEmojiId)return Y.unicodeEmojiId;if(Y.emoteId)return Y.emoteId;if(Y.videoReactionType)switch(Y.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.z.createEmojiAnimation=function(Y,S,P,u){S=S===void 0?!1:S;this.lastEmojiRequestedForTesting=Y;var W=Y.startsWith("yt-icons:"),m=_.$O(this.emojiManager,Y);if(m||W){var J=document.createElement("emoji");J.classList.add("yt-emoji-fountain-view-model");J.classList.add(h1o[Math.floor(Math.random()*h1o.length)]);var c=document.createElement("div");c.classList.add("yt-emoji-fountain-view-model");c.classList.add("horizontal-container");c.classList.add(v3j[Math.floor(Math.random()*v3j.length)]);S?(P=document.createElement("div"),
P.classList.add("user-reaction-bubble"),P.classList.add("yt-emoji-fountain-view-model"),c.appendChild(P)):(P&&(J.style.animationDuration=P+"ms",c.style.animationDuration=P+"ms"),u&&(J.style.width=u+"px",J.style.height=u+"px"));W?(W=document.createElement("yt-icon"),W.polymerController.icon=Y,u&&(W.style.width=u+"px",W.style.height=u+"px"),Y=W):Y=this.emojiManager.createEmoji(m,!1);Y.classList.add("yt-emoji-fountain-view-model");c.appendChild(Y);J.appendChild(c);this.emojiContainer.appendChild(J);
J.addEventListener("animationend",function(){J.remove()});
var C,x;if((C=this.data)==null?0:(x=C.loggingDirectives)==null?0:x.trackingParams)S=S?_.TI(183501):_.TI(183500),$O6(this.data.loggingDirectives.trackingParams,S),_.sU$(S);setTimeout(function(){J&&J.remove()},2E3)}};
_.z.getEmojiDelayMsFromDistribution=function(Y){return Math.random()*(Y||1)*1E3};
_.z.getEmojiDelayMsFromTargetEps=function(Y){return Math.random()*2*(1/Y)*1E3};
_.z.linearInterpolateBounded=function(Y,S,P,u,W){W=Math.min(Math.max(W,Y),P);return(S*(P-W)+u*(W-Y))/(P-Y)};
i_.prototype.onEmojiFountainDataEntityUpdate=i_.prototype.onEmojiFountainDataEntityUpdate;i_.prototype.desktopFountainEmojiSizePxChanged=i_.prototype.desktopFountainEmojiSizePxChanged;i_.prototype.isActiveChanged=i_.prototype.isActiveChanged;_.Q([_.X(),_.k("design:type",_.gC)],i_.prototype,"emojiManager",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.gm),_.k("design:type",Object)],i_.prototype,"ytLiveChatReduxBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],i_.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],i_.prototype,"data",void 0);_.Q([_.X({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"emojiFountainDataEntity",S)}}),
_.k("design:type",Object)],i_.prototype,"emojiFountainData",void 0);_.Q([_.X(),_.k("design:type",Boolean)],i_.prototype,"isActive",void 0);_.Q([_.zY("isActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],i_.prototype,"isActiveChanged",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],i_.prototype,"isDarkTheme",void 0);_.Q([_.X(),_.k("design:type",String)],i_.prototype,"lastEmojiRequestedForTesting",void 0);
_.Q([_.X({value:function(){return _.z_("desktop_fountain_emoji_size_px",20)}}),
_.k("design:type",Number)],i_.prototype,"desktopFountainEmojiSizePx",void 0);_.Q([_.zY("desktopFountainEmojiSizePx"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],i_.prototype,"desktopFountainEmojiSizePxChanged",null);_.Q([_.nc("#emoji-container"),_.k("design:type",HTMLElement)],i_.prototype,"emojiContainer",void 0);
_.Q([_.zY("emojiFountainData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],i_.prototype,"onEmojiFountainDataEntityUpdate",null);i_=_.Q([_.r0({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],i_);
_.A(i_,"yt-emoji-fountain-view-model",function(){if(GiX===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;r1Z===void 0&&(r1Z=document.createElement("template"));var u=r1Z;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);GiX=Y}Y=GiX;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var DW1;var Iyd;var oZ=function(){return _.Z.apply(this,arguments)||this};
_.r(oZ,_.Z);oZ.prototype.onChoiceChanged=function(){this.data&&_.PZ(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
oZ.prototype.onChoiceChanged=oZ.prototype.onChoiceChanged;_.Q([_.X(),_.k("design:type",Object)],oZ.prototype,"data",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oZ.prototype,"onChoiceChanged",null);oZ=_.Q([_.t({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],oZ);
_.A(oZ,"yt-live-chat-banner-poll-choice",function(){if(Iyd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;DW1===void 0&&(DW1=document.createElement("template"));var u=DW1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Iyd=Y}Y=Iyd;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var ay6;var LK_;var tb=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("web_button_rework_with_live");Y.small=!1;return Y};
_.r(tb,_.Z);tb.prototype.computeIsSmall=function(){var Y;return((Y=this.buttonOverrides)==null?void 0:Y.size)==="S"};
tb.prototype.computeId=function(){return this.data&&this.data.targetId};
_.Q([_.p(_.$A.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],tb.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Q([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.k("design:type",String)],tb.prototype,"id",void 0);_.Q([_.X(),_.k("design:type",Object)],tb.prototype,"buttonOverrides",void 0);_.Q([_.X(),_.k("design:type",Object)],tb.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],tb.prototype,"modern",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.k("design:type",Object)],tb.prototype,"small",void 0);tb=_.Q([_.t({disableElementRegistration:!0,is:"yt-live-chat-button"})],tb);
_.A(tb,"yt-live-chat-button",function(){if(LK_===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;ay6===void 0&&(ay6=document.createElement("template"));var u=ay6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);LK_=Y}Y=LK_;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var w7Z;var p7c;var Ab=function(){var Y=_.Z.apply(this,arguments)||this;Y.inCollapsedBanner=!1;Y.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};Y.questionButtonOverrides={style:"mono",type:"filled"};return Y};
_.r(Ab,_.Z);_.z=Ab.prototype;_.z.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]]"}}}}}};
_.z.onContextMenuButtonClick=function(Y){this.ytLiveChatItemBehavior.showContextMenu(Y)};
_.z.onYtRendererstamperFinished=function(){this.menuButton=_.I(this.hostElement).querySelector("#menu-button")};
_.z.dataChanged=function(){var Y,S;if((S=_.g((Y=this.data)==null?void 0:Y.overflowMenuButton,_.I8))==null?0:S.command)this.data.contextMenuEndpoint=_.g(this.data.overflowMenuButton,_.I8).command};
_.z.onButtonClick=function(){var Y,S=_.g((Y=this.data)==null?void 0:Y.askQuestionButton,_.I8);if(S){if(S.trackingParams&&(Y=_.Re(S.trackingParams))){var P=_.pM();P&&_.ko(P,Y)}_.ms(this.hostElement,"innertube-command",S.command)}};
Ab.prototype.onYtRendererstamperFinished=Ab.prototype.onYtRendererstamperFinished;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.gm),_.k("design:type",Object)],Ab.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],Ab.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.X({observer:"dataChanged"}),_.k("design:type",Object)],Ab.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Ab.prototype,"inCollapsedBanner",void 0);_.Q([_.X(),_.k("design:type",Object)],Ab.prototype,"buttonOverrides",void 0);_.Q([_.X(),_.k("design:type",Object)],Ab.prototype,"questionButtonOverrides",void 0);_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ab.prototype,"onYtRendererstamperFinished",null);
Ab=_.Q([_.t({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Ab);
_.A(Ab,"yt-live-chat-call-for-questions-renderer",function(){if(p7c===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;w7Z===void 0&&(w7Z=document.createElement("template"));var u=w7Z;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);p7c=Y}Y=p7c;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var FKu={};FKu.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var Y=this;window.requestAnimationFrame(function(){Y.restoreFocusNode_||(Y.restoreFocusNode_=document.activeElement);var S=_.FA6(Y.hostElement);S.length&&S[S.length-1].focus()})},
isAttachedChanged_:function(Y,S){Y?this.focusChild_():S&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(Y){this.hidden||_.iM(Y).indexOf(this.hostElement)!==-1||(Y.stopPropagation(),this.focusChild_())}};var sXd;var dWX;var UN=function(){return _.Z.apply(this,arguments)||this};
_.r(UN,_.Z);UN.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
UN.prototype.onClick=function(Y){Y.target!==this.confirmButton&&Y.target!==this.cancelButton&&(this.hidden=!0)};
_.Q([_.nc("#confirm_button"),_.k("design:type",Object)],UN.prototype,"confirmButton",void 0);_.Q([_.nc("#cancel_button"),_.k("design:type",Object)],UN.prototype,"cancelButton",void 0);_.Q([_.X(),_.k("design:type",lyc)],UN.prototype,"data",void 0);_.Q([_.X({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],UN.prototype,"hidden",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(FKu.YtLiveChatDialogBehavior),_.k("design:type",Object)],UN.prototype,"ytLiveChatDialogBehavior",void 0);UN=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],UN);
var lyc=_.A(UN,"yt-live-chat-dialog-renderer",function(){if(dWX===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;sXd===void 0&&(sXd=document.createElement("template"));var u=sXd;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);dWX=Y}Y=dWX;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var X75;var ZLZ,iLo=function(){if(ZLZ!==void 0)return ZLZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;X75===void 0&&(X75=document.createElement("template"));var u=X75;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return ZLZ=Y};var o31;var tWd;var Qa=function(){var Y=_.Z.apply(this,arguments)||this;Y.tooltip=null;Y.data=null;Y.id="";Y.active=!1;Y.icon="";Y.disabled=!1;Y.showTooltip=!1;Y.useToggledActiveState=!0;Y.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return Y};
_.r(Qa,_.Z);_.z=Qa.prototype;
_.z.dataChanged=function(){var Y;((Y=this.data)==null?0:Y.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.OR)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var S;if((S=this.data)==null?0:S.disabled)this.disabled=!0};
_.z.computeId=function(Y){return Y};
_.z.computeIcon=function(Y,S){if(!Y)return"";if(this.useToggledActiveState)return"yt-icons:"+Y.toLowerCase();var P,u;return S&&((P=this.data)==null?0:(u=P.toggledIcon)==null?0:u.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+Y.toLowerCase()};
_.z.logPDGEntryPoint=function(){_.yD8(_.jV("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")};
_.z.immediatelyShowTooltip=function(){var Y=_.I(this.hostElement).querySelector("#tooltip");Y.animationDelay=0;Y.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};Y.show()};
_.z.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.z.onClick=function(Y){var S;((S=this.data)==null?0:S.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),Y.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.ms(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.z.computeShowTooltip=function(Y,S){return!!(Y&&Y.tooltip&&S)};
_.z.maybeUpdateTooltipText=function(){var Y=this,S;if((S=this.data)==null?0:S.tooltip){var P=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.OR)(Y.tooltip).textContent=P},250)}};
_.z.handleLiveChatActions=function(Y){var S=this;Y.length&&(this.id!=="creator"&&this.id!=="product-picker"||Y.forEach(function(P){(P=S.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",P))&&P.durationSec===P.fullDurationSec&&S.startBubble(S.colorFromDecimal(P.startBackgroundColor))}))};
_.z.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.z.startBubble=function(Y){_.PZ(this.hostElement,{"--yt-live-chat-monetization-button-glow":Y});this.hostElement.setAttribute("bubble","")};
_.z.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.z.colorFromDecimal=function(Y){typeof Y==="string"&&(Y=Number(Y));return"rgba("+[Y>>16&255,Y>>8&255,Y&255,(Y>>24&255)/255].join()+")"};
Qa.prototype.onAnimationEnd=Qa.prototype.onAnimationEnd;Qa.prototype.disabledChanged=Qa.prototype.disabledChanged;Qa.prototype.dataChanged=Qa.prototype.dataChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Qa.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.$A.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],Qa.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Qa.prototype,"data",void 0);_.Q([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.k("design:type",Object)],Qa.prototype,"id",void 0);_.Q([_.X({notify:!0,reflectToAttribute:!0}),_.k("design:type",Object)],Qa.prototype,"active",void 0);
_.Q([_.X({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.k("design:type",Object)],Qa.prototype,"icon",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Qa.prototype,"disabled",void 0);_.Q([_.X({computed:"computeShowTooltip(data, disabled)"}),_.k("design:type",Object)],Qa.prototype,"showTooltip",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Qa.prototype,"useToggledActiveState",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qa.prototype,"dataChanged",null);_.Q([_.zY("disabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qa.prototype,"disabledChanged",null);_.Q([_.WZ("animationend"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Qa.prototype,"onAnimationEnd",null);
Qa=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Qa);
_.A(Qa,"yt-live-chat-icon-toggle-button-renderer",function(){if(tWd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;o31===void 0&&(o31=document.createElement("template"));var u=o31;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);tWd=Y}Y=tWd;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var A1I;var UWY;var k7=function(){return _.Z.apply(this,arguments)||this};
_.r(k7,_.Z);k7.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Q([_.X(),_.k("design:type",Object)],k7.prototype,"data",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],k7.prototype,"ytRendererstamperBehavior",void 0);k7=_.Q([_.t({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],k7);
_.A(k7,"yt-live-chat-message-input-prompt-header-renderer",function(){if(UWY===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;A1I===void 0&&(A1I=document.createElement("template"));var u=A1I;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);UWY=Y}Y=UWY;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var QX5;var kid;var MWd;var y1Y;var NOc;var HLd;var M_=function(){return _.Z.apply(this,arguments)||this};
_.r(M_,_.Z);_.Q([_.X(),_.k("design:type",Object)],M_.prototype,"data",void 0);M_=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],M_);
_.A(M_,"yt-live-chat-message-subtext-renderer",function(){if(HLd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;NOc===void 0&&(NOc=document.createElement("template"));var u=NOc;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);HLd=Y}Y=HLd;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var ya=function(){var Y=_.Z.apply(this,arguments)||this;Y.subtextOnBottom=!1;Y.buttonOverrides={style:"mono",type:"tonal"};return Y};
_.r(ya,_.Z);ya.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ya.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ya.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ya.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],ya.prototype,"subtextOnBottom",void 0);_.Q([_.X(),_.k("design:type",Object)],ya.prototype,"buttonOverrides",void 0);
ya=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],ya);
_.A(ya,"yt-live-chat-message-renderer",function(){if(y1Y===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;MWd===void 0&&(MWd=document.createElement("template"));var u=MWd;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);y1Y=Y}Y=y1Y;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var VWo;var e1u;var N_=function(){var Y=_.Z.apply(this,arguments)||this;Y.isRemovable=!1;Y.hasPrefilledText=!1;Y.isInputDirty=!1;Y.overCharacterLimit=!1;Y.underCharacterLimit=!1;Y.showErrorMessage=!1;return Y};
_.r(N_,_.Z);_.z=N_.prototype;_.z.computeId=function(){return this.data.id};
_.z.computeInputData=function(){return this.data.inputData};
_.z.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.z.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.z.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.z.getLiveChatRichMessageInput=function(){return _.I(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.z.clearInput=function(){_.I(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.z.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.z.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.z.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.z.handleTextInputCharCountChanged=function(Y){Y=Y.detail&&Y.detail.characterCount;Y!==void 0&&(this.characterCount=Y,Y!==0&&(this.isInputDirty=!0))};
_.z.onInputFocusOut=function(){this.isInputDirty=!0};
_.z.onClickCloseButton=function(){_.ms(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
N_.prototype.handleTextInputCharCountChanged=N_.prototype.handleTextInputCharCountChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],N_.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],N_.prototype,"data",void 0);_.Q([_.X({computed:"computeId(data.id)"}),_.k("design:type",String)],N_.prototype,"id",void 0);_.Q([_.X({computed:"computeInputData(data.inputData)"}),_.k("design:type",Object)],N_.prototype,"inputData",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.k("design:type",Object)],N_.prototype,"isRemovable",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.k("design:type",Object)],N_.prototype,"hasPrefilledText",void 0);_.Q([_.X({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.k("design:type",Number)],N_.prototype,"charactersRemaining",void 0);
_.Q([_.X(),_.k("design:type",Number)],N_.prototype,"characterCount",void 0);_.Q([_.X(),_.k("design:type",Object)],N_.prototype,"isInputDirty",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.k("design:type",Object)],N_.prototype,"overCharacterLimit",void 0);_.Q([_.X({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.k("design:type",Object)],N_.prototype,"underCharacterLimit",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.k("design:type",Object)],N_.prototype,"showErrorMessage",void 0);_.Q([_.WZ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],N_.prototype,"handleTextInputCharCountChanged",null);
N_=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],N_);
_.A(N_,"yt-live-chat-poll-editor-input",function(){if(e1u===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;VWo===void 0&&(VWo=document.createElement("template"));var u=VWo;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);e1u=Y}Y=e1u;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var OL1;var YZI;var SZd={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},H5=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("web_button_rework_with_live");Y.closeButtonOverrides={iconPosition:"icon-only"};Y.startButtonOverrides={style:"mono",type:"filled"};Y.addOptionButtonOverrides={style:"mono",type:"text"};return Y};
_.r(H5,_.Z);_.z=H5.prototype;
_.z.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"}}}}};
_.z.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var Y;_.g((Y=this.data)==null?void 0:Y.startButton,_.I8)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.z.computeId=function(){return this.data&&this.data.id||""};
_.z.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.z.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.z.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.z.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.z.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var Y=0;Y<this.pollEditorInfoWithDefaults.minPollOptions;Y++)this.addPollOptionData()};
_.z.getIsValidPoll=function(){var Y=this;if(!this.pollEditorInfoWithDefaults)return!1;var S=this.pollEditorInfoWithDefaults,P=S.minPollOptionChars,u=S.maxPollOptionChars,W=S.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>S.maxPollQuestionChars)return!1;S=_.I(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(S).every(function(m,J){m=m.characterCount;!m&&W[J]&&(m=Y.ytRendererBehavior.getSimpleString(W[J]).length);return m!==void 0&&m>=P&&m<=u})};
_.z.isValidPollChanged=function(){var Y;_.g((Y=this.data)==null?void 0:Y.startButton,_.I8)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.z.addPollOptionData=function(){var Y=this.pollEditorInfoWithDefaults,S=Y.maxPollOptionChars,P=Y.optionPlaceholderText,u=Y.customOptionPlaceholderText,W=Y.pollOptionData;this.currentNumPollOptions>=Y.maxPollOptions||(Y={liveChatPollOptionInput:{inputData:{placeholder:u[this.currentNumPollOptions]||P,maxCharacterLimit:S},maxCharacterLimit:S,minCharacterLimit:Y.minPollOptionChars,hasPrefilledText:!!u[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=Y.minPollOptions}},W.charCountErrorText&&
(Y.liveChatPollOptionInput.charCountErrorText=W.charCountErrorText),W.charsRemainingAltLabel&&(Y.liveChatPollOptionInput.charsRemainingAltLabel=W.charsRemainingAltLabel),W.removeOptionAltText&&(Y.liveChatPollOptionInput.removeOptionAltText=W.removeOptionAltText),this.push("pollOptionsData",Y),W=Array.from(_.I(_.I(this.hostElement).querySelector("#poll-options")).children),W.forEach(function(m,J){m.polymerController.set("data.id",J)}),_.I(W[W.length-1]).querySelector("#input").focus())};
_.z.getPollOptionInputValues=function(){var Y=this,S=[],P=_.I(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),u=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(P).forEach(function(W,m){var J=null;W=W.getLiveChatRichMessageInput();var c;(W==null?0:(c=W.textSegments)==null?0:c.length)?J=_.aF(W):u[m]&&(J=Y.formattedStringToLiveChatRichMessageInput(u[m]));S.push(J)});
return S};
_.z.requestCreateAndStartPoll=function(Y){var S=this.getPollOptionInputValues();if(!S.some(function(u){return!u})){S={optionText:S};
var P=_.I(_.I(this.hostElement).querySelector("#poll-question")).firstChild;P&&P.liveChatRichMessageInput&&(S.questionText=_.aF(P.liveChatRichMessageInput));_.Bu(this.hostElement,[Y,S])}};
_.z.selectedChanged=function(){if(this.selected){var Y=_.I(_.I(this.hostElement).querySelector("#start-button")).firstElementChild;if(Y){var S;(S=_.I(Y).querySelector("#button")||_.Hq(Y).querySelector("button"))==null||S.focus()}}};
_.z.handleTextInputChanged=function(Y){var S;((S=Y.target)==null?void 0:S.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=Y.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.z.handleStartButtonAction=function(Y){Y.detail.actionName==="yt-service-request"&&(Y.stopPropagation(),(Y=Y.detail.args[1])&&this.requestCreateAndStartPoll(Y))};
_.z.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.z.handleServiceRequestCompleted=function(Y){this.createPollRequestInFlight=!1;(Y=Y.detail&&Y.detail.data)&&Y.success&&(_.ms(this.hostElement,"picker-cancelled"),_.nb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.z.onCloseClick=function(){_.ms(this.hostElement,"picker-cancelled");_.nb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.z.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.z.handlePollEditorInputClosed=function(Y){var S=this.pollOptionsData.findIndex(function(P){return P.liveChatPollOptionInput.id===Y.detail.id});
this.splice("pollOptionsData",S,1);this.isValidPoll=this.getIsValidPoll()};
_.z.onPickerCancelled=function(){this.reset()};
_.z.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var Y=_.I(_.I(this.hostElement).querySelector("#poll-question")).firstChild;Y&&Y.setLiveChatRichMessageInput(null);if(Y=_.I(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){Y=_.n(Array.from(Y));for(var S=Y.next();!S.done;S=Y.next())S.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.z.formattedStringToLiveChatRichMessageInput=function(Y){return Y.simpleText?{text_segments:[Y.simpleText]}:{text_segments:Y.runs}};
_.y6.Object.defineProperties(H5.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(SZd,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
H5.prototype.onPickerCancelled=H5.prototype.onPickerCancelled;H5.prototype.handlePollEditorInputClosed=H5.prototype.handlePollEditorInputClosed;H5.prototype.handleServiceRequestCompleted=H5.prototype.handleServiceRequestCompleted;H5.prototype.handleServiceRequestSent=H5.prototype.handleServiceRequestSent;H5.prototype.handleTextInputChanged=H5.prototype.handleTextInputChanged;H5.prototype.selectedChanged=H5.prototype.selectedChanged;H5.prototype.isValidPollChanged=H5.prototype.isValidPollChanged;
H5.prototype.shouldInitializePollChanged=H5.prototype.shouldInitializePollChanged;H5.prototype.dataChanged=H5.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],H5.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],H5.prototype,"modern",void 0);
_.Q([_.X(),_.k("design:type",Object)],H5.prototype,"closeButtonOverrides",void 0);_.Q([_.X(),_.k("design:type",Object)],H5.prototype,"startButtonOverrides",void 0);_.Q([_.X(),_.k("design:type",Object)],H5.prototype,"addOptionButtonOverrides",void 0);_.Q([_.X({computed:"computeId(data.id)",reflectToAttribute:!0}),_.k("design:type",String)],H5.prototype,"id",void 0);_.Q([_.X({value:function(){return[]}}),
_.k("design:type",Array)],H5.prototype,"pollOptionsData",void 0);_.Q([_.d("pollEditorInfoWithDefaults"),_.k("design:type",Object),_.k("design:paramtypes",[])],H5.prototype,"pollQuestionData",null);_.Q([_.X({value:0}),_.k("design:type",Number)],H5.prototype,"pollQuestionCharacterCount",void 0);_.Q([_.d("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.k("design:type",Object),_.k("design:paramtypes",[])],H5.prototype,"pollQuestionCharactersRemaining",null);
_.Q([_.X({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.k("design:type",Boolean)],H5.prototype,"overQuestionCharacterLimit",void 0);_.Q([_.d("data.pollEditorInfo"),_.k("design:type",Object),_.k("design:paramtypes",[])],H5.prototype,"pollEditorInfoWithDefaults",null);_.Q([_.X({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.k("design:type",Number)],H5.prototype,"currentNumPollOptions",void 0);
_.Q([_.X({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.k("design:type",Boolean)],H5.prototype,"hasMaxNumPollOptions",void 0);_.Q([_.d("pollEditorInfoWithDefaults","pollOptionsData"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],H5.prototype,"shouldInitializePoll",null);_.Q([_.X(),_.k("design:type",Object)],H5.prototype,"isValidPoll",void 0);
_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],H5.prototype,"createPollRequestInFlight",void 0);_.Q([_.X(),_.k("design:type",Object)],H5.prototype,"selected",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.k("design:type",Boolean)],H5.prototype,"showQuestionErrorMessage",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H5.prototype,"dataChanged",null);_.Q([_.zY("shouldInitializePoll"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H5.prototype,"shouldInitializePollChanged",null);_.Q([_.zY("isValidPoll"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H5.prototype,"isValidPollChanged",null);
_.Q([_.zY("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H5.prototype,"selectedChanged",null);_.Q([_.WZ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],H5.prototype,"handleTextInputChanged",null);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H5.prototype,"handleServiceRequestSent",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],H5.prototype,"handleServiceRequestCompleted",null);
_.Q([_.WZ("yt-live-chat-poll-editor-input-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],H5.prototype,"handlePollEditorInputClosed",null);_.Q([_.WZ("picker-cancelled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H5.prototype,"onPickerCancelled",null);H5=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],H5);
_.A(H5,"yt-live-chat-poll-editor-panel-renderer",function(){if(YZI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;OL1===void 0&&(OL1=document.createElement("template"));var u=OL1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);YZI=Y}Y=YZI;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var PqY;var uX1;var Va=function(){return _.Z.apply(this,arguments)||this};
_.r(Va,_.Z);Va.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Va.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.y6.Object.defineProperties(Va.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(Y=this.data)==null?void 0:(S=Y.title)==null?void 0:S.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var Y;return _.vF((Y=this.data)==null?void 0:Y.onTapCommand)}}});
_.Q([_.p(_.eo.YtEndpointBehavior),_.k("design:type",Object)],Va.prototype,"ytEndpointBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Va.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Va.prototype,"itemId",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Va.prototype,"hasPromotion",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Va.prototype,"innertubeCommand",null);Va=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Va);
_.A(Va,"yt-live-chat-product-picker-panel-item-view-model",function(){if(uX1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;PqY===void 0&&(PqY=document.createElement("template"));var u=PqY;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);uX1=Y}Y=uX1;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var WvZ;var zsI;var e8=function(){var Y=_.Z.apply(this,arguments)||this;Y.id="product-picker";Y.selected=!1;Y.closeButtonId="close-button";Y.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return Y};
_.r(e8,_.Z);_.z=e8.prototype;_.z.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.z.observeSelected=function(){this.selected&&this.hostElement.focus();var Y=_.I(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");Y.length&&Y[0].focus()};
_.z.onCloseBuyFlow=function(){_.ms(this.hostElement,"picker-cancelled")};
_.z.onCloseClick=function(){_.ms(this.hostElement,"picker-cancelled");var Y;((Y=this.data)==null?0:Y.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.g(this.data.closeButton,_.Gz))};
_.z.onCloseEngageWithAudienceEditorPanels=function(){_.ms(this.hostElement,"picker-cancelled")};
e8.prototype.observeSelected=e8.prototype.observeSelected;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],e8.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],e8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],e8.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],e8.prototype,"id",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],e8.prototype,"selected",void 0);_.Q([_.X(),_.k("design:type",Object)],e8.prototype,"closeButtonId",void 0);_.Q([_.zY("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e8.prototype,"observeSelected",null);
e8=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],e8);
_.A(e8,"yt-live-chat-product-picker-panel-view-model",function(){if(zsI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;WvZ===void 0&&(WvZ=document.createElement("template"));var u=WvZ;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);zsI=Y}Y=zsI;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var m0X;var nHo;var ON=function(){var Y=_.Z.apply(this,arguments)||this;Y.iconId="";Y.icon="";Y.disabled=!1;Y.systemIcons=_.f("kevlar_system_icons");return Y};
_.r(ON,_.Z);_.z=ON.prototype;_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.z.computeIconId=function(Y){return Y&&Y.icon&&Y.icon.iconType?Y.icon.iconType.toLowerCase():""};
_.z.computeIcon=function(Y){return Y&&Y.icon&&Y.icon.iconType?(Y=Y.icon.iconType.toLowerCase(),(Y.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+Y):""};
_.z.computeDisabled=function(Y){return!!Y};
_.z.computeCommand=function(Y,S){return S?void 0:Y};
_.z.computeTooltip=function(Y,S){return S&&Y?Y:""};
_.z.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Q([_.p(_.eo.YtEndpointBehavior),_.k("design:type",Object)],ON.prototype,"ytEndpointBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ON.prototype,"data",void 0);_.Q([_.X({computed:"computeIconId(data)",reflectToAttribute:!0}),_.k("design:type",Object)],ON.prototype,"iconId",void 0);
_.Q([_.X({computed:"computeIcon(data)",reflectToAttribute:!0}),_.k("design:type",Object)],ON.prototype,"icon",void 0);_.Q([_.X({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.k("design:type",Object)],ON.prototype,"disabled",void 0);_.Q([_.X({computed:"computeCommand(data.command, disabled)"}),_.k("design:type",Object)],ON.prototype,"command",void 0);_.Q([_.X({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.k("design:type",String)],ON.prototype,"tooltip",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],ON.prototype,"systemIcons",void 0);ON=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],ON);
_.A(ON,"yt-live-chat-product-button-renderer",function(){if(nHo===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;m0X===void 0&&(m0X=document.createElement("template"));var u=m0X;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);nHo=Y}Y=nHo;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var jVI;var JeI;var Y6=function(){var Y=_.Z.apply(this,arguments)||this;Y.selected=!1;Y.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return Y};
_.r(Y6,_.Z);_.z=Y6.prototype;_.z.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"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.z.computeId=function(Y){return Y.id||""};
_.z.onCloseClick=function(){_.ms(this.hostElement,"picker-cancelled")};
_.z.observeSelected=function(){this.selected&&this.hostElement.focus();var Y=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");Y.length&&Y[0].focus()};
_.z.onCloseBuyFlow=function(){_.ms(this.hostElement,"picker-cancelled")};
_.z.onCloseEngageWithAudienceEditorPanels=function(){_.ms(this.hostElement,"picker-cancelled")};
Y6.prototype.observeSelected=Y6.prototype.observeSelected;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Y6.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Y6.prototype,"data",void 0);
_.Q([_.X({computed:"computeId(data)",reflectToAttribute:!0}),_.k("design:type",String)],Y6.prototype,"id",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Y6.prototype,"selected",void 0);_.Q([_.zY("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Y6.prototype,"observeSelected",null);Y6=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],Y6);
_.A(Y6,"yt-live-chat-product-picker-renderer",function(){if(JeI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;jVI===void 0&&(jVI=document.createElement("template"));var u=jVI;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);JeI=Y}Y=JeI;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var BM6;var ce1;var CqY;var qZ1;var Sg=function(){return _.Z.apply(this,arguments)||this};
_.r(Sg,_.Z);Sg.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()};
Sg.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Sg.prototype.created=function(){this.ids={background:_.gW(),maskOne:_.gW(),maskTwo:_.gW(),gradient:_.gW(),largeBackground:_.gW(),largeGradientOne:_.gW(),largeGradientTwo:_.gW(),largeGradientPath:_.gW()}};
Sg.prototype.maybeLoadAnimationBackground=Sg.prototype.maybeLoadAnimationBackground;_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Sg.prototype,"useLargeBackground",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Sg.prototype,"useAnimationBackground",void 0);_.Q([_.X({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.k("design:type",Boolean)],Sg.prototype,"useRegularBackground",void 0);
_.Q([_.X(),_.k("design:type",Object)],Sg.prototype,"ids",void 0);_.Q([_.X(),_.k("design:type",Object)],Sg.prototype,"lottieAnimation",void 0);_.Q([_.nc("#animation-background"),_.k("design:type",HTMLDivElement)],Sg.prototype,"animationBackground",void 0);_.Q([_.zY("useAnimationBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sg.prototype,"maybeLoadAnimationBackground",null);
Sg=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Sg);
_.A(Sg,"yt-live-interactivity-component-background",function(){if(qZ1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;CqY===void 0&&(CqY=document.createElement("template"));var u=CqY;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);qZ1=Y}Y=qZ1;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var PA=function(){var Y=_.Z.apply(this,arguments)||this;Y.characterCount=0;Y.showInputErrorMessage=!1;Y.startQnaRequestInFlight=!1;Y.modern=_.f("web_button_rework_with_live");Y.buttonOverrides={style:"mono",type:"filled"};Y.closeButtonOverrides={iconPosition:"icon-only"};Y.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return Y};
_.r(PA,_.Z);_.z=PA.prototype;
_.z.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]]"}}}}}};
_.z.onCharacterCountChanged=function(Y){var S,P,u,W,m=(P=_.g(this==null?void 0:(S=this.data)==null?void 0:S.creatorCallForQuestions,Ao1))==null?void 0:(u=P.inputField)==null?void 0:(W=u.liveChatTextInputFieldRenderer)==null?void 0:W.maxCharacterLimit,J,c;m!=null&&(Y==null?void 0:(J=Y.detail)==null?void 0:J.characterCount)!=null&&_.g(this==null?void 0:(c=this.data)==null?void 0:c.startButton,_.I8)&&(S=Y.detail.characterCount>m,this.set("data.startButton.buttonRenderer.isDisabled",Y.detail.characterCount===
0||S),this.showInputErrorMessage=S)};
_.z.onCloseClick=function(){_.ms(this.hostElement,"picker-cancelled");_.nb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.z.onPickerCancelled=function(){var Y=_.I(this.hostElement).querySelector("#qna-creator-text-input-field");Y&&Y.setLiveChatRichMessageInput(null)};
_.z.handleOpenQnaStartPanel=function(){var Y=_.I(this.hostElement).querySelector("#qna-creator-text-input-field");Y&&Y.focus()};
_.z.handleStartButtonAction=function(Y){var S=this;if(Y.detail.actionName==="yt-service-request"&&(Y.stopPropagation(),Y=Y.detail.args[1])){var P=_.I(this.hostElement).querySelector("#qna-creator-text-input-field"),u;(P==null?0:(u=P.liveChatRichMessageInput)==null?0:u.textSegments)&&P.liveChatRichMessageInput.textSegments.length!==0&&(u={rich_message:_.aF(P.liveChatRichMessageInput)},_.Bu(this.hostElement,[Y,u]).then(function(){_.ms(S.hostElement,"picker-cancelled")}))}};
_.z.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.z.handleServiceRequestCompleted=function(Y){var S;Y=Y==null?void 0:(S=Y.detail)==null?void 0:S.data;(Y==null?0:Y.actions)&&Y.actions.length>0?this.startQnaRequestInFlight=!1:_.nb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.z.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
PA.prototype.handleServiceRequestError=PA.prototype.handleServiceRequestError;PA.prototype.handleServiceRequestCompleted=PA.prototype.handleServiceRequestCompleted;PA.prototype.handleServiceRequestSent=PA.prototype.handleServiceRequestSent;PA.prototype.onPickerCancelled=PA.prototype.onPickerCancelled;PA.prototype.onCharacterCountChanged=PA.prototype.onCharacterCountChanged;_.Q([_.X(),_.k("design:type",Object)],PA.prototype,"characterCount",void 0);
_.Q([_.X(),_.k("design:type",Object)],PA.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],PA.prototype,"showInputErrorMessage",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],PA.prototype,"startQnaRequestInFlight",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],PA.prototype,"modern",void 0);_.Q([_.X(),_.k("design:type",Object)],PA.prototype,"buttonOverrides",void 0);
_.Q([_.X(),_.k("design:type",Object)],PA.prototype,"closeButtonOverrides",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.gm),_.k("design:type",Object)],PA.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.p(_.hO.YtLiveChatItemBehavior),_.k("design:type",_.v0)],PA.prototype,"ytLiveChatItemBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],PA.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.WZ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],PA.prototype,"onCharacterCountChanged",null);_.Q([_.WZ("picker-cancelled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PA.prototype,"onPickerCancelled",null);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PA.prototype,"handleServiceRequestSent",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],PA.prototype,"handleServiceRequestCompleted",null);
_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],PA.prototype,"handleServiceRequestError",null);PA=_.Q([_.t({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],PA);
_.A(PA,"yt-live-chat-qna-start-panel-renderer",function(){if(ce1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;BM6===void 0&&(BM6=document.createElement("template"));var u=BM6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);ce1=Y}Y=ce1;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Rso;var x0u;var um=function(){return _.Z.apply(this,arguments)||this};
_.r(um,_.Z);um.prototype.dismiss=function(){_.ms(this.hostElement,"yt-live-chat-error-message-dismiss")};
um.prototype.edit=function(){_.ms(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.Q([_.X(),_.k("design:type",Object)],um.prototype,"data",void 0);um=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],um);
_.A(um,"yt-live-chat-text-actions-error-message-renderer",function(){if(x0u===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Rso===void 0&&(Rso=document.createElement("template"));var u=Rso;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);x0u=Y}Y=x0u;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var b41;var TMu;var Kvo;var EHY;var WA=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.newnessDotEligible=!1;return Y};
_.r(WA,_.Z);WA.prototype.sendReaction=function(){var Y,S,P=((Y=this.data)==null?void 0:Y.emojiId)||((S=this.data)==null?void 0:S.emoteId),u;P&&((u=this.data)==null?0:u.shouldTriggerAnimation)&&_.nb(this.hostElement,"yt-create-user-reaction-animation",[P]);var W;(Y=_.vF((W=this.data)==null?void 0:W.onTap))&&_.m4(Y,this.hostElement);this.showNewnessDot&&_.nb(this.hostElement,"yt-hide-newness-dot")};
WA.prototype.onClick=function(Y){(!Y||Y.clientX||Y.clientY)&&this.sendReaction()};
WA.prototype.onKeyDown=function(Y){Y.key!=="Enter"&&Y.key!==" "||Y.repeat||this.sendReaction()};
_.y6.Object.defineProperties(WA.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!!(((Y=this.data)==null?0:Y.emojiId)||((S=this.data)==null?0:S.emoteId))}}});
_.Q([_.X(),_.k("design:type",Object)],WA.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],WA.prototype,"isDarkTheme",void 0);_.Q([_.X(),_.k("design:type",Object)],WA.prototype,"newnessDotEligible",void 0);_.Q([_.d("data.maybeShowNewnessDot"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],WA.prototype,"showNewnessDot",null);_.Q([_.d("data.emojiId","data.emoteId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],WA.prototype,"useYtImage",null);
WA=_.Q([_.r0({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],WA);
_.A(WA,"yt-reaction-control-panel-button-view-model",function(){if(EHY===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Kvo===void 0&&(Kvo=document.createElement("template"));var u=Kvo;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);EHY=Y}Y=EHY;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var fU1;var gH1;var zk=function(){var Y=_.Z.apply(this,arguments)||this;Y.reactionControlPanelExpanded=!1;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.newnessDotEligible=!1;return Y};
_.r(zk,_.Z);_.z=zk.prototype;_.z.expandedButtonsChanged=function(){var Y,S;_.PZ(this.hostElement,{"--expanded-buttons-height":((S=(Y=this.expandedButtonsData)==null?void 0:Y.length)!=null?S:0)*36+"px"})};
_.z.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}}};
_.z.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.z.onMouseLeave=function(){var Y=this;this.collapseTimer=setTimeout(function(){Y.reactionControlPanelExpanded=!1},500)};
_.z.onFocusIn=function(){this.onMouseEnter()};
_.z.onFocusOut=function(){this.onMouseLeave()};
_.z.onCollapsedButtonFocusIn=function(){var Y=this;setTimeout(function(){var S;(S=Y.expandedButtons.querySelector("button"))==null||S.focus()},100)};
_.z.onCollapsedButtonFocusOut=function(Y){Y.stopPropagation()};
_.y6.Object.defineProperties(zk.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var Y,S;return _.RY.unsafeClone((Y=this.liveReactionsData)==null?void 0:Y.emojiButtonData)||((S=this.data)==null?void 0:S.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var Y;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((Y=this.data)==null||!Y.maybeShowNewnessDot)}}});
zk.prototype.expandedButtonsChanged=zk.prototype.expandedButtonsChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],zk.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.gm),_.k("design:type",Object)],zk.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],zk.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],zk.prototype,"reactionControlPanelExpanded",void 0);_.Q([_.X({selectorArgs:["data.liveReactionsDataEntityKey"],selector:fE5}),_.k("design:type",Object)],zk.prototype,"liveReactionsData",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],zk.prototype,"isDarkTheme",void 0);_.Q([_.X(),_.k("design:type",Object)],zk.prototype,"newnessDotEligible",void 0);
_.Q([_.d("liveReactionsData","data.expandedButtons"),_.k("design:type",Object),_.k("design:paramtypes",[])],zk.prototype,"expandedButtonsData",null);_.Q([_.d("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.X({reflectToAttribute:!0}),_.k("design:type",Object),_.k("design:paramtypes",[])],zk.prototype,"showNewnessDot",null);_.Q([_.nc("#expanded-buttons"),_.k("design:type",HTMLElement)],zk.prototype,"expandedButtons",void 0);
_.Q([_.zY("expandedButtonsData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zk.prototype,"expandedButtonsChanged",null);zk=_.Q([_.r0({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],zk);
_.A(zk,"yt-reaction-control-panel-view-model",function(){if(gH1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;fU1===void 0&&(fU1=document.createElement("template"));var u=fU1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);gH1=Y}Y=gH1;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var mS=new _.lX("yt-live-chat"),$01=Date.parse("2024-7-24"),nq=function(){var Y=_.Z.apply(this,arguments)||this;Y.emojiManager=_.GV;Y.newnessDotEligible=!1;Y.newnessDotImpressionCounted=!1;Y.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return Y};
_.r(nq,_.Z);_.z=nq.prototype;_.z.emojiCustomizationEnabledChanged=function(){var Y;((Y=this.data)==null?0:Y.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((Y=mS.getCreationTime("emoji-customization-count"))&&Y<$01&&mS.set("emoji-customization-count","0"),Y=Number(mS.get("emoji-customization-count"))||0,Y<3&&(this.newnessDotEligible=!0,mS.set("emoji-customization-count",(Y+1).toString())),this.newnessDotImpressionCounted=!0)};
_.z.hideNewnessDot=function(){this.newnessDotEligible=!1;mS.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.z.handleReactionsMute=function(Y){var S=_.pM(),P=_.TI(206221),u={checkboxData:{state:Y?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};S&&_.ko(S,P,u);this.reactionsMuted=Y};
_.z.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.z.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}}};
_.y6.Object.defineProperties(nq.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var Y;return(!((Y=this.liveReactionsData)==null||!Y.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
nq.prototype.liveReactionsSettingChanged=nq.prototype.liveReactionsSettingChanged;nq.prototype.emojiCustomizationEnabledChanged=nq.prototype.emojiCustomizationEnabledChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.gm),_.k("design:type",Object)],nq.prototype,"ytLiveChatReduxBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],nq.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],nq.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",_.gC)],nq.prototype,"emojiManager",void 0);_.Q([_.X(),_.k("design:type",Object)],nq.prototype,"newnessDotEligible",void 0);_.Q([_.X(),_.k("design:type",Object)],nq.prototype,"newnessDotImpressionCounted",void 0);
_.Q([_.X({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:gru}),_.k("design:type",Boolean)],nq.prototype,"liveReactionsSetting",void 0);_.Q([_.X({selectorArgs:["data.liveReactionsDataEntityKey"],selector:fE5}),_.k("design:type",Object)],nq.prototype,"liveReactionsData",void 0);_.Q([_.X({value:function(){var Y=_.f("enable_lwe_web_mute"),S=mS.get("allow-reactions");return S===void 0?!1:!S&&Y}}),
_.k("design:type",Boolean)],nq.prototype,"reactionsMuted",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nq.prototype,"liveReactionsEnabled",null);_.Q([_.zY("data.emojiCustomizationEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nq.prototype,"emojiCustomizationEnabledChanged",null);
_.Q([_.zY("liveReactionsEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nq.prototype,"liveReactionsSettingChanged",null);nq=_.Q([_.r0({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],nq);
_.A(nq,"yt-reaction-control-panel-overlay-view-model",function(){if(TMu===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;b41===void 0&&(b41=document.createElement("template"));var u=b41;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);TMu=Y}Y=TMu;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var re5={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(Y){var S=this.$.pickers.selected;if(S){_.I(this.hostElement).removeAttribute(S+"-open");var P="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(P="#picker-buttons",S==="emoji"&&_.I(this.hostElement).querySelector("#emoji-picker-button")&&(P="#emoji-picker-button"));if(P=_.I(this.hostElement).querySelector(P).querySelector("#"+S))P.active=!1}P=Y;S==Y&&(P=null);S!=Y&&
_.I(this.hostElement).setAttribute(Y+"-open","");this.$.pickers.selected=P;_.nb(this.hostElement,"yt-live-chat-picker-changed",[P])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var jg=function(){var Y=_.Z.apply(this,arguments)||this;Y.numSentMessages=0;Y.timeoutDurationMs=0;Y.timeoutMs=0;Y.lastTimeoutTimeMs=0;Y.pendingMessageId="";Y.hasFiredInitialFocusActions=!1;Y.isBeforeFocusEnabled=!0;Y.id="";Y.characterCount=0;Y.maxCharacterLimit=0;Y.remainingCharacterCount=0;Y.inputExpanded=!1;Y.buttonOverrides={iconPosition:"icon-only"};Y.inReplyPanel=!1;Y.countdownRatio=0;Y.isTooltipVisible=!1;Y.tooltipTimeout=1E4;Y.systemIcons=_.f("kevlar_system_icons");Y.tallerEmojiPicker=_.f("live_chat_taller_emoji_picker");
Y.blockSendMessageWithCountdown=!_.f("live_chat_enable_send_button_in_slow_mode");Y.sendReplyMessageInFlight=!1;Y.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};Y.onResize=function(){Y.maybeToggleCharacterCount()};
return Y};
_.r(jg,_.Z);_.z=jg.prototype;
_.z.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"}}}};
_.z.attached=function(){window.addEventListener("resize",this.onResize)};
_.z.detached=function(){window.removeEventListener("resize",this.onResize)};
_.z.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.z.sendMessage=function(){var Y=this,S,P,u,W;return _.B(function(m){if(Y.sendDisabled)return m.return();Y.isTooltipVisible&&_.nb(Y.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(Y.data.sendButton&&Y.data.sendButton.buttonRenderer){Y.input.completeEmojis();S=Y.data.sendButton.buttonRenderer.serviceEndpoint;if(!S)return m.return();u=((P=_.g(S,_.IHm))==null?void 0:P.clientIdPrefix)||"";W={client_message_id:u+String(Y.numSentMessages++),rich_message:_.aF(Y.input.liveChatRichMessageInput)};
Y.pendingMessageId=W.client_message_id;Y.inReplyPanel&&(Y.sendReplyMessageInFlight=!0);_.Bu(Y.hostElement,[S,W]);Y.input.setLiveChatRichMessageInput(null)}_.Yt(m)})};
_.z.handleSendButtonAction=function(Y){Y.detail.actionName==="yt-service-request"&&(Y.stopPropagation(),this.sendMessage())};
_.z.onSendCompleted=function(Y,S){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(Y=this.get("timeoutDurationUsec",S.data))&&this.handleTimeout(Number(Y)/1E3);this.errorMessage=this.get("errorMessage",S.data);this.pendingMessageId=""};
_.z.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.nb(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.z.handlePickerButtonToggle=function(Y){Y=Y.detail.targetId;this.ytPickerBehavior.togglePicker_(Y);if(Y==="emoji")this.input.focus();else if(Y==="qna-start-panel"){var S,P;(S=_.I(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(P=S.querySelector("#qna-creator-text-input-field"))==null||P.focus()}};
_.z.onComponentReplaced=function(Y){var S,P;Y.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((S=Y.replacement.liveChatMessageInputRenderer)==null?0:(P=S.headerRenderer)==null?0:P.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.z.onEmojiSelect=function(Y){this.input.focus();this.input.insertEmoji(Y.detail)};
_.z.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.z.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.nb(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.nb(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.z.onOpenPopupAction=function(Y,S){var P=this;S===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.nb(P.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.z.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.z.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.z.focusChanged=function(){this.maybeToggleCharacterCount()};
_.z.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var Y=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",Y>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.z.computeId=function(){return this.data&&this.data.targetId||""};
_.z.computeSendDisabled=function(Y,S,P,u){Y=!!(this.blockSendMessageWithCountdown&&P||!Y||S&&Y>S||u);(S=_.I(this.hostElement).querySelector("#send-button"))&&S.children.length&&(S.children[0].disabled=Y);return Y};
_.z.handleTimeout=function(Y){this.timeoutDurationMs=this.timeoutMs=Y;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.z.updateTimeout=function(Y){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(Y-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=Y,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.z.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.z.onErrorMessageEdit=function(Y){this.input.setLiveChatRichMessageInput(Y.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.z.errorMessageChanged=function(){var Y=this;_.w0(function(){_.nb(Y.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.z.computeAuthorNameColor=function(Y){var S;if(_.f("live_chat_author_name_color_usernames")&&(Y==null?0:(S=Y.authorName)==null?0:S.simpleText))return _.T4Y(_.KOa(Y.authorName.simpleText));if(_.f("live_chat_seed_color_usernames")&&(Y==null?0:Y.authorSeedColorArgb))return _.T4Y(_.SC(Y.authorSeedColorArgb));if(_.f("live_chat_colored_usernames"))return"#cc0000";var P;return _.f("live_chat_simple_color_usernames")&&(Y==null?0:(P=Y.authorName)==null?0:P.simpleText)&&(Y==null?0:Y.authorUsernameColorLight)&&
(Y==null?0:Y.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.SC(Y.authorUsernameColorDark):_.SC(Y.authorUsernameColorLight):""};
_.z.onIsTooltipVisibleChanged=function(){var Y=_.I(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){Y.hidden=!1;Y.setAttribute("role","alert")},0):(Y.hidden=!0,Y.removeAttribute("role"))};
_.z.onFocusedChanged=function(Y){this.inputFocused=Y.detail.value};
_.y6.Object.defineProperties(jg.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:(S=Y.pickers)==null?void 0:S.find(function(P){return P.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return Y?this.ytRendererBehavior.getSimpleString(Y):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
jg.prototype.onIsTooltipVisibleChanged=jg.prototype.onIsTooltipVisibleChanged;jg.prototype.errorMessageChanged=jg.prototype.errorMessageChanged;jg.prototype.onErrorMessageEdit=jg.prototype.onErrorMessageEdit;jg.prototype.onErrorMessageDismiss=jg.prototype.onErrorMessageDismiss;jg.prototype.focusChanged=jg.prototype.focusChanged;jg.prototype.characterCountChanged=jg.prototype.characterCountChanged;jg.prototype.onEmojiSelect=jg.prototype.onEmojiSelect;jg.prototype.handlePickerButtonToggle=jg.prototype.handlePickerButtonToggle;
jg.prototype.onSendError=jg.prototype.onSendError;jg.prototype.onSendCompleted=jg.prototype.onSendCompleted;jg.prototype.sendMessage=jg.prototype.sendMessage;jg.prototype.dataChanged=jg.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],jg.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(re5.YtPickerBehavior),_.k("design:type",Object)],jg.prototype,"ytPickerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],jg.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.$A.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],jg.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"hasFiredInitialFocusActions",void 0);
_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"isBeforeFocusEnabled",void 0);_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"data",void 0);_.Q([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.k("design:type",Object)],jg.prototype,"id",void 0);_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"characterCount",void 0);_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"maxCharacterLimit",void 0);
_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"remainingCharacterCount",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],jg.prototype,"inputExpanded",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],jg.prototype,"inputFocused",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],jg.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.Q([_.X(),_.k("design:type",_.a1)],jg.prototype,"participantsManager",void 0);
_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"buttonOverrides",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],jg.prototype,"inReplyPanel",void 0);_.Q([_.d("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],jg.prototype,"sendDisabled",null);_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"countdownRatio",void 0);
_.Q([_.d("countdownRatio"),_.k("design:type",Number),_.k("design:paramtypes",[])],jg.prototype,"countdownStrokeDashOffset",null);_.Q([_.d("countdownRatio"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],jg.prototype,"countdownActive",null);_.Q([_.d("data.interactionMessage"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],jg.prototype,"hasInteractionMessage",null);
_.Q([_.d("data.emojiPickerButton"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],jg.prototype,"hasEmojiPickerButton",null);_.Q([_.d("data, characterCount"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],jg.prototype,"showAvatar",null);_.Q([_.d("data.pickers"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],jg.prototype,"hasProductPickerPanelViewModel",null);
_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"errorMessage",void 0);_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"genericErrorMessage",void 0);_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"isTooltipVisible",void 0);_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"tooltipTimeout",void 0);_.Q([_.d("data.onInitialFocusCommand"),_.k("design:type",String),_.k("design:paramtypes",[])],jg.prototype,"tooltipMessage",null);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],jg.prototype,"systemIcons",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],jg.prototype,"tallerEmojiPicker",void 0);_.Q([_.d("data"),_.k("design:type",String),_.k("design:paramtypes",[])],jg.prototype,"authorNameColor",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],jg.prototype,"blockSendMessageWithCountdown",void 0);_.Q([_.X(),_.k("design:type",Object)],jg.prototype,"sendReplyMessageInFlight",void 0);
_.Q([_.nc("#input"),_.k("design:type",_.X8_)],jg.prototype,"input",void 0);_.Q([_.nc("#count"),_.k("design:type",HTMLElement)],jg.prototype,"count",void 0);_.Q([_.nc("#input-container"),_.k("design:type",HTMLElement)],jg.prototype,"inputContainer",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jg.prototype,"dataChanged",null);
_.Q([_.WZ("yt-live-chat-send-message"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],jg.prototype,"sendMessage",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[Event,_.ZK]),_.k("design:returntype")],jg.prototype,"onSendCompleted",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jg.prototype,"onSendError",null);
_.Q([_.WZ("yt-live-chat-icon-toggle-button-renderer-toggle"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],jg.prototype,"handlePickerButtonToggle",null);_.Q([_.WZ("yt-emoji-select"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],jg.prototype,"onEmojiSelect",null);
_.Q([_.zY("characterCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jg.prototype,"characterCountChanged",null);_.Q([_.zY("inputFocused"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jg.prototype,"focusChanged",null);_.Q([_.WZ("yt-live-chat-error-message-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jg.prototype,"onErrorMessageDismiss",null);
_.Q([_.WZ("yt-live-chat-error-message-edit"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],jg.prototype,"onErrorMessageEdit",null);_.Q([_.zY("errorMessage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jg.prototype,"errorMessageChanged",null);_.Q([_.zY("isTooltipVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jg.prototype,"onIsTooltipVisibleChanged",null);
jg=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],jg);
_.A(jg,"yt-live-chat-message-input-renderer",function(){if(kid===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;QX5===void 0&&(QX5=document.createElement("template"));var u=QX5;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);kid=Y}Y=kid;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Gv_;var hsd;var JT=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.f("kevlar_system_icons");Y.firedOnClickCommand=!1;Y.inReplyPanel=!1;return Y};
_.r(JT,_.Z);
JT.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"}}}};
JT.prototype.onButtonToggle=function(Y){Y.target.disabled||this.ytPickerBehavior.togglePicker_(Y.detail.targetId)};
JT.prototype.onClick=function(){var Y=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.nb(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return Y.firedOnClickCommand=!1},5E3))};
_.y6.Object.defineProperties(JT.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:(S=Y.panels)==null?void 0:S.find(function(P){return P.liveChatProductPickerPanelViewModel}))!==void 0}}});
JT.prototype.onButtonToggle=JT.prototype.onButtonToggle;_.Q([_.p(re5.YtPickerBehavior),_.k("design:type",Object)],JT.prototype,"ytPickerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],JT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],JT.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],JT.prototype,"systemIcons",void 0);_.Q([_.X({reflectToAttribute:!1}),_.k("design:type",Object)],JT.prototype,"firedOnClickCommand",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],JT.prototype,"inReplyPanel",void 0);_.Q([_.d("data.pickers"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],JT.prototype,"hasProductPickerPanelViewModel",null);
_.Q([_.WZ("yt-live-chat-icon-toggle-button-renderer-toggle"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],JT.prototype,"onButtonToggle",null);JT=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],JT);
_.A(JT,"yt-live-chat-restricted-participation-renderer",function(){if(hsd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Gv_===void 0&&(Gv_=document.createElement("template"));var u=Gv_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);hsd=Y}Y=hsd;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var BA=function(){var Y=_.Z.apply(this,arguments)||this;Y.genericErrorMessage=_.kW("Error, try again.");Y.inReplyPanel=!1;Y.hideBorder=!1;return Y};
_.r(BA,_.Z);BA.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}}}}}};
_.y6.Object.defineProperties(BA,{template:{configurable:!0,enumerable:!0,get:function(){return iLo()}}});
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],BA.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],BA.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],BA.prototype,"genericErrorMessage",void 0);_.Q([_.X(),_.k("design:type",Object)],BA.prototype,"inReplyPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],BA.prototype,"hideBorder",void 0);
BA=_.Q([_.r0({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],BA);_.A(BA,"yt-live-chat-engagement-panel-input-renderer",function(){return iLo()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var vH1,D0Z;vH1=_.TI(115994);D0Z=_.TI(115993);_.cA=function(Y,S,P){var u=this;var W=P.dragDownAction;this.layer=0;this.JSC$19746_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return u.dragDownAction()}}}};
this.JSC$19746_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return u.dragDownAction()}}}};
this.fullscreen=!1;var m=_.BF();_.Sa(m,vH1,this.layer);_.Sa(m,D0Z,this.layer);this.dragDownAction=function(){W();_.wL(m,{visualElement:u.fullscreen?vH1:D0Z})};
this.gesture=new _.WP(Y,S,this.JSC$19746_watchConfig,"pandown");this.attach()};
_.cA.prototype.attach=function(){this.gesture.attach()};
_.cA.prototype.detach=function(){this.gesture.detach()};
_.cA.prototype.update=function(Y){this.fullscreen=Y;this.gesture.config=Y?this.JSC$19746_watchFullScreenConfig:this.JSC$19746_watchConfig};var IUd={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(Y){if(Y&&Y.length==1&&Array.isArray(Y[0].loggingUrls)){Y=_.RY.unsafeClone(Y[0]);var S=this.macros||{},P=this.getAdModuleClient_();if(!P)return _.Cb();Y.loggingUrls.forEach(function(u){if(u.baseUrl){var W=u.baseUrl;var m=S;m=m===void 0?{}:m;W=P.getOptions().includes("replaceUrlMacros")?_.Chs(P,"replaceUrlMacros",{url:W,additionalMapping:m}):W;u.baseUrl=W}},this);
Y=[Y]}return _.Bu(this.hostElement,Y)},
getAdModuleClient_:function(){var Y=_.Q5(this);return Y?(Y=Y.getPlayer())?new _.JM(Y):null:null}}]};var aUX;var Cq=function(){var Y=_.Z.apply(this,arguments)||this;Y.isCollapsed=!1;Y.modernPanels=_.f("kevlar_watch_modern_panels");Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return Y};
_.r(Cq,_.Z);_.z=Cq.prototype;_.z.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.z.onDonateTap=function(){var Y=this.get("data.donateButton.buttonRenderer.command");if(Y){var S=_.pM(),P=this.get("data.donateButton.buttonRenderer.trackingParams");S&&P&&_.ko(S,_.Re(P));this.ytOpenPopupBehavior.openPopup(Y)}};
_.z.onShowMore=function(){this.isCollapsed=!1;var Y=_.pM(),S=this.get("data.expandButton.buttonRenderer.trackingParams");Y&&S&&_.ko(Y,_.Re(S))};
_.z.onShowLess=function(){this.isCollapsed=!0};
_.z.dataChanged=function(){_.PZ(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.z.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.z.handleUpdate=function(Y){if(Y=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",Y))this.set("data.startLabel",Y.startLabel),this.set("data.endLabel",Y.endLabel),this.set("data.progress",Y.progress),this.set("data.amountRaisedLabel",Y.amountRaisedLabel),this.dataChanged()};
_.z.handleOpenPopupAction=function(Y){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",Y)&&_.nb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.z.computeHeaderBackgroundUrl=function(Y,S){if(Y)return S?Y.headerBackgroundDarkUrl:Y.headerBackgroundUrl};
_.z.isProgressBarVisible=function(Y){return!(!Y||Y.progress===void 0)};
_.z.headerBackgroundClass=function(){return _.X3("HTML_DIR")==="rtl"?"flip":""};
Cq.prototype.dataChanged=Cq.prototype.dataChanged;_.Q([_.p(_.Vt.YtOpenPopupBehavior),_.k("design:type",Object)],Cq.prototype,"ytOpenPopupBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Cq.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],Cq.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Cq.prototype,"isCollapsed",void 0);_.Q([_.X({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.k("design:type",String)],Cq.prototype,"headerBackgroundUrl",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Cq.prototype,"isDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Cq.prototype,"modernPanels",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Cq.prototype,"dataChanged",null);Cq=_.Q([_.t({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Cq);
_.A(Cq,"ytd-donation-shelf-renderer",function(){if(aUX!==void 0)return aUX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return aUX=Y},{mode:1});var LvX;var qB=function(){return _.Z.apply(this,arguments)||this};
_.r(qB,_.Z);_.Q([_.X(),_.k("design:type",Object)],qB.prototype,"data",void 0);qB=_.Q([_.t({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],qB);
_.A(qB,"ytd-donation-unavailable-renderer",function(){if(LvX!==void 0)return LvX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return LvX=Y},{mode:1});var wcu;var Rp=function(){return _.Z.apply(this,arguments)||this};
_.r(Rp,_.Z);Rp.prototype.computeIconType=function(Y){return Y?"yt-icons:"+Y.toLowerCase():null};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Rp.prototype,"data",void 0);Rp=_.Q([_.t({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Rp);
_.A(Rp,"ytd-limited-state-message-renderer",function(){if(wcu!==void 0)return wcu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return wcu=Y},{mode:1});var pcZ;var x6=function(){return _.Z.apply(this,arguments)||this};
_.r(x6,_.Z);x6.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
x6.prototype.onTap=function(Y){var S=this.data&&this.data.endpoint;S&&!_.iN(_.iM(Y),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.ms(this.hostElement,"yt-navigate",{endpoint:S})};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],x6.prototype,"data",void 0);x6=_.Q([_.t({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],x6);
_.A(x6,"ytd-autotagging-metadata-renderer",function(){if(pcZ!==void 0)return pcZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return pcZ=Y},{mode:1});var Fvo;var bm=function(){return _.Z.apply(this,arguments)||this};
_.r(bm,_.Z);bm.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],bm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],bm.prototype,"data",void 0);bm=_.Q([_.t({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],bm);
_.A(bm,"ytd-autotagging-metadata-row-renderer",function(){if(Fvo!==void 0)return Fvo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Fvo=Y},{mode:1});var sV6;var d01;var Tk=function(){var Y=_.Z.apply(this,arguments)||this;Y.engagementPanelContent=!1;return Y};
_.r(Tk,_.Z);Tk.prototype.computeHasDividerLine=function(Y,S){return Y&&!S};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Tk.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.k("design:type",Boolean)],Tk.prototype,"hasDividerLine",void 0);_.Q([_.X(),_.k("design:type",Object)],Tk.prototype,"engagementPanelContent",void 0);
Tk=_.Q([_.t({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Tk);
_.A(Tk,"ytd-metadata-row-header-renderer",function(){if(d01!==void 0)return d01;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return d01=Y},{mode:1});var lUZ;var Kq=function(){return _.Z.apply(this,arguments)||this};
_.r(Kq,_.Z);Kq.prototype.computeHasDividerLine=function(Y){return Y};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Kq.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.k("design:type",Boolean)],Kq.prototype,"hasDividerLine",void 0);Kq=_.Q([_.t({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Kq);
_.A(Kq,"ytd-metadata-row-renderer",function(){if(lUZ!==void 0)return lUZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return lUZ=Y},{mode:1});var XcX;var El=function(){return _.Z.apply(this,arguments)||this};
_.r(El,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],El.prototype,"data",void 0);El=_.Q([_.t({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],El);
_.A(El,"ytd-metadata-with-image-row-renderer",function(){if(XcX!==void 0)return XcX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return XcX=Y},{mode:1});var Z4o;var fq=function(){var Y=_.Z.apply(this,arguments)||this;Y.rounded=!0;Y.fixie=!1;Y.fullWidth=!1;return Y};
_.r(fq,_.Z);_.z=fq.prototype;_.z.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.onDataChanged=function(){var Y=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(S){Y.onEndpointLinkKeyPress(S)}))};
_.z.onEndpointLinkKeyPress=function(Y){Y.target===this.endpointLink&&Y.keyCode===13&&_.ms(this.hostElement,"click")};
_.z.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var Y;if((Y=this.data)==null?0:Y.endpoint)_.cu(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.z.onYtNavigate=function(Y){this.endpointHref||(Y.stopPropagation(),Y.preventDefault())};
_.z.onInformationButtonContainerClick=function(Y){Y.target.id!=="information-button-container"&&(Y.stopPropagation(),Y.preventDefault())};
_.z.computeStyle=function(Y){return Y};
_.z.computeIsThumbnailStyle=function(Y){return Y==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.z.computeThumbnailWidth=function(Y){switch(Y){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.z.computeThumbnailObjectFit=function(Y){switch(Y){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.y6.Object.defineProperties(fq.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
fq.prototype.onYtNavigate=fq.prototype.onYtNavigate;fq.prototype.onClick=fq.prototype.onClick;fq.prototype.onDataChanged=fq.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],fq.prototype,"componentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],fq.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],fq.prototype,"componentStyle",void 0);_.Q([_.X({computed:"computeIsThumbnailStyle(data.style)"}),_.k("design:type",Boolean)],fq.prototype,"isThumbnailStyle",void 0);_.Q([_.X({computed:"computeThumbnailObjectFit(data.style)"}),_.k("design:type",String)],fq.prototype,"thumbnailObjectFit",void 0);
_.Q([_.X({computed:"computeThumbnailWidth(data.style)"}),_.k("design:type",Number)],fq.prototype,"thumbnailWidth",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fq.prototype,"rounded",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fq.prototype,"fixie",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fq.prototype,"fullWidth",void 0);_.Q([_.nc("#endpoint-link"),_.k("design:type",HTMLAnchorElement)],fq.prototype,"endpointLink",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fq.prototype,"onDataChanged",null);_.Q([_.d("data.endpoint"),_.k("design:type",Object),_.k("design:paramtypes",[])],fq.prototype,"endpointHref",null);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],fq.prototype,"onClick",null);
_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],fq.prototype,"onYtNavigate",null);fq=_.Q([_.t({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],fq);
_.A(fq,"ytd-rich-metadata-renderer",function(){if(Z4o!==void 0)return Z4o;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Z4o=Y},{mode:_.OX("kevlar_poly_si_batch_j075")?1:2});var i4_;var g9=function(){var Y=_.Z.apply(this,arguments)||this;Y.fixie=!1;Y.fullWidth=!1;return Y};
_.r(g9,_.Z);g9.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
g9.prototype.computeHasDividerLine=function(Y){return Y};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],g9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],g9.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.k("design:type",Boolean)],g9.prototype,"hasDividerLine",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],g9.prototype,"fixie",void 0);_.Q([_.X(),_.k("design:type",Object)],g9.prototype,"fullWidth",void 0);
g9=_.Q([_.t({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],g9);
_.A(g9,"ytd-rich-metadata-row-renderer",function(){if(i4_!==void 0)return i4_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return i4_=Y},{mode:1});var $6=function(){var Y=_.Z.apply(this,arguments)||this;Y.engagementPanelContent=!1;Y.fixie=!1;Y.fullWidth=!1;return Y};
_.r($6,_.Z);
$6.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"}}}};
$6.prototype.computeCollapsibleItems=function(Y,S,P){return Y===void 0||S===void 0||P===void 0||P?[]:Y.slice(S)};
$6.prototype.computeAlwaysShownItems=function(Y,S){return Y&&Y.length?Y.slice(0,S):[]};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$6.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],$6.prototype,"collapsed",void 0);
_.Q([_.X({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.k("design:type",Array)],$6.prototype,"alwaysShownItems",void 0);_.Q([_.X({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.k("design:type",Array)],$6.prototype,"collapsibleItems",void 0);_.Q([_.X(),_.k("design:type",Object)],$6.prototype,"engagementPanelContent",void 0);_.Q([_.X(),_.k("design:type",Object)],$6.prototype,"fixie",void 0);
_.Q([_.X(),_.k("design:type",Object)],$6.prototype,"fullWidth",void 0);$6=_.Q([_.t({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],$6);
_.A($6,"ytd-metadata-row-container-renderer",function(){if(sV6!==void 0)return sV6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return sV6=Y},{mode:1});var oH6;var r9=function(){var Y=_.Z.apply(this,arguments)||this;Y.currentPageUrl="";Y.baseUrl="";Y.isHiddenByUser=null;Y.hidden=!1;Y.showAboveScrim=!1;Y.watchNextGrid=_.f("kevlar_watch_grid");Y.modernButtons=_.f("web_modern_buttons");Y.roundedContainer=!0;Y.noBorder=!1;Y.roundBackground=!_.f("live_chat_round_background_killswitch");Y.overflowHideChat=_.f("live_chat_overflow_hide_chat");Y.forceDarkTheme=!1;Y.theaterWatchWhile=!1;Y.isListeningForPlayerProgress=!1;Y.JSC$19782_playerEvents=new Map;Y.isFrameReady=
!1;Y.player=null;Y.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return Y};
_.r(r9,_.Z);_.z=r9.prototype;_.z.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.jR(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.z.created=function(){var Y=this;this.handleIframeEventListener=function(S){Y.handleIframeEvent(S)};
this.handleKeyboardEventListener=function(S){Y.handleKeyboardEvent(S)};
this.JSC$19782_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19782_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19782_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19782_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19782_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.z.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()};
_.z.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};
_.z.computeBaseUrl=function(Y){var S="/live_chat";this.isChatReplay()&&(S="/live_chat_replay");return _.Ox(_.ej(_.VK(_.d7(Y),S),null),"").toString()};
_.z.dataChanged=function(){_.f("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.z.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var Y=this.url;if(this.isChatReplay()&&this.player){var S=Math.floor(this.player.getProgressState().current*1E3);Y=_.XI(_.d7(Y),"playerOffsetMs",S.toString()).toString()}S=this.chatframe;try{var P=Y==="about:blank"?_.L$_:_.Bx(Y),u=S.contentDocument.location,W=_.R9(P);W!==void 0&&u.replace(W)}catch(m){S.src=Y}}};
_.z.collapsedChanged=function(){_.ms(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.z.handleIframeEvent=function(Y){if(Y&&this.baseUrl.startsWith(Y.origin)&&Y.source===this.chatframe.contentWindow&&_.SS(Y.data))if(Y.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(Y);else if(Y.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(Y.data["yt-show-feedback-dialog"]){var S=_.E().resolve(_.PQ(_.d_U));if(S){var P=Y.ports,u;P&&P.length&&(u=function(){P[0].postMessage({})});
Y=Y.data["yt-show-feedback-dialog"];S.showFeedbackDialog(Y.customProductData,Y.feedbackContent,u,Y.bucket)}}else if(Y.data["yt-show-survey"])_.ms(this.hostElement,"yt-show-survey",Y.data["yt-show-survey"]);else if(Y.data["yt-purchase-membership"])_.E().resolve(_.uY).resolveCommand(Y.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(Y.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(Y.data["yt-tunnel-out-live-service-request"]);else if(Y.data["yt-user-activity"])_.PK();
else if(Y.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(Y.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(Y.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(Y.data["yt-open-popup"]);else if(Y.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(Y.data["yt-log-flow-logging-event-command"]);else if(Y.data["yt-hide-live-chat"])this.onShowHideChat();else Y.data["yt-report-moderation-state-log"]&&
this.player&&(S={cpn:this.player.getVideoData().cpn},_.L_("liveChatBeingModerated",S))};
_.z.attachLiveChatResponseVeTrackingParams=function(Y){Y=_.Re(Y);var S=_.pM(),P=_.tA("liveChatRenderer.trackingParams",this.data);S&&P&&_.t6(S,_.Re(P),Y)};
_.z.handleBuyflowMessages=function(Y){var S=Y.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,P=Y.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,u=Y.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.wiY(_.zU(_.ZV),S.replace(/-/g,"+").replace(/_/g,"/"),function(W){Y.ports[0].postMessage({success:!0,buyFlowResponse:W})},void 0,function(W){Y.ports[0].postMessage({success:!1,
error:W&&W.message||"Buyflow rejected without error."})},_.$o().get("hl"),void 0,function(){Y.ports[0].postMessage({closed:!0})},P,u)};
_.z.setupPlayerProgressRelay=function(){var Y=this;if(!this.isListeningForPlayerProgress){var S=_.ks();S!=null&&S.getPlayerPromise&&(S.getPlayerPromise().then(function(P){Y.playerApiReady(P)}),this.isListeningForPlayerProgress=!0)}};
_.z.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.z.playerApiReady=function(Y){this.setPlayer(Y)};
_.z.playerProgressHandler=function(){if(this.player){var Y=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":Y.current})}};
_.z.playerAdStartHandler=function(Y){this.postToContentWindow({"yt-player-ad-start":Y})};
_.z.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.z.playerStateChangeHandler=function(Y){this.postToContentWindow({"yt-player-state-change":Y})};
_.z.setPlayer=function(Y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19782_playerEvents);Y&&(this.player=Y,this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$19782_playerEvents),_.ms(this.hostElement,"player-api-ready"))};
_.z.liveChatPageUrl=function(Y,S,P,u){return!P||S?"about:blank":P.liveChatRenderer?(S=_.d7(this.currentPageUrl).JSC$7905_queryData_,TR1(S),Y=_.d7(Y),S.add("continuation",P.liveChatRenderer.continuations[0].reloadContinuationData.continuation),P=_.w2()==="USER_INTERFACE_THEME_DARK",(u||P)&&S.add("dark_theme","true"),_.ej(Y,S),u=_.d7(Y.toString()),P=u.JSC$7905_queryData_,"SESSION_INDEX"in _.dw&&(P.add("authuser",_.X3("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.dw&&P.add("pageId",_.X3("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.dw&&P.add("sdc",_.X3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),u.toString()):""};
_.z.isCollapsed=function(Y,S){return S!==null?S:this.isChatReplay()||Y&&Y.conversationBarRenderer&&Y.conversationBarRenderer.availabilityMessage?!0:Y?Y.liveChatRenderer?Y.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.f("live_chat_hide_premiere_replay_message")||Y.conversationBarRenderer&&Y.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.z.isHidden=function(Y,S,P){var u=S&&S.conversationBarRenderer&&S.conversationBarRenderer.availabilityMessage,W=S&&S.liveChatRenderer&&S.liveChatRenderer.showHideButton,m=S&&S.liveChatRenderer&&S.liveChatRenderer.showButton;return P&&Y&&!u&&!m||!P&&Y&&!u&&!W?!0:S&&S.liveChatRenderer&&S.liveChatRenderer.initialDisplayState?S.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.z.computeButtonOverride=function(Y,S){if(Y&&S)return{type:"outline"}};
_.z.setCollapsedState=function(Y){_.g(Y,_.ROs)&&(this.isHiddenByUser=!!_.g(Y,_.ROs).collapsed,!this.isHiddenByUser&&_.f("enable_teaser_framework_web_client")&&_.nb(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.z.forwardReduxActionToIframe=function(Y){this.postToContentWindow({"yt-live-chat-forward-redux-action":Y})};
_.z.onLoopRangeChange=function(Y){this.showAboveScrim=!(Y==null||!Y.postId)};
_.z.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.z.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.z.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.z.sendDarkThemePostMessage=function(Y){this.postToContentWindow({"yt-live-chat-set-dark-theme":Y})};
_.z.onLiveChatBuyFlowCallback=function(Y){this.postToContentWindow({"yt-live-chat-buy-flow-callback":Y})};
_.z.handleKeyboardEvent=function(Y){(0,_.RY.containsValue)(fy_,Y.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:Y.type,keyCode:Y.keyCode}})};
_.z.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.z.postToContentWindow=function(Y){if(this.isFrameReady)try{var S=window.location.protocol+"//"+window.location.host,P;(P=this.chatframe)!=null&&P.contentWindow?this.chatframe.contentWindow.postMessage(Y,S):_.sf(new _.$2("Tried posting a message to an iframe with no content window",Y))}catch(u){_.p_(u)}};
_.z.shouldHideChatFrame=function(Y){return Y&&_.f("hide_live_chat_button_when_collapsed")};
_.y6.Object.defineProperties(r9.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.f("live_chat_overflow_hide_chat")||_.f("web_watch_chat_hide_button_killswitch"))return _.f("live_chat_overflow_hide_chat");var Y,S,P,u;return!!((Y=this.data)==null?0:(S=Y.liveChatRenderer)==null?0:(P=S.header)==null?0:(u=P.liveChatHeaderRenderer)==null?0:u.collapseButton)}}});
r9.prototype.collapsedChanged=r9.prototype.collapsedChanged;r9.prototype.urlChanged=r9.prototype.urlChanged;r9.prototype.dataChanged=r9.prototype.dataChanged;r9.prototype.onShowHideChat=r9.prototype.onShowHideChat;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],r9.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],r9.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],r9.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],r9.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.p(_.Vt.YtOpenPopupBehavior),_.k("design:type",Object)],r9.prototype,"ytOpenPopupBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],r9.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],r9.prototype,"currentPageUrl",void 0);
_.Q([_.X({computed:"computeBaseUrl(currentPageUrl,data)"}),_.k("design:type",Object)],r9.prototype,"baseUrl",void 0);_.Q([_.X({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.k("design:type",String)],r9.prototype,"url",void 0);_.Q([_.X(),_.k("design:type",Object)],r9.prototype,"isHiddenByUser",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.k("design:type",Object)],r9.prototype,"hidden",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.k("design:type",Boolean)],r9.prototype,"collapsed",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.k("design:type",Boolean)],r9.prototype,"hideChatFrame",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],r9.prototype,"showAboveScrim",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],r9.prototype,"watchNextGrid",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],r9.prototype,"modernButtons",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],r9.prototype,"roundedContainer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],r9.prototype,"noBorder",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],r9.prototype,"roundBackground",void 0);
_.Q([_.X({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.k("design:type",Object)],r9.prototype,"toggleButtonOverride",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],r9.prototype,"overflowHideChat",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],r9.prototype,"forceDarkTheme",void 0);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],r9.prototype,"enableShowWithoutHideChatButton",null);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],r9.prototype,"theaterWatchWhile",void 0);_.Q([_.nc("#chatframe"),_.k("design:type",HTMLIFrameElement)],r9.prototype,"chatframe",void 0);_.Q([_.WZ("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],r9.prototype,"onShowHideChat",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],r9.prototype,"dataChanged",null);
_.Q([_.zY("url"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],r9.prototype,"urlChanged",null);_.Q([_.zY("collapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],r9.prototype,"collapsedChanged",null);r9=_.Q([_.t({is:"ytd-live-chat-frame",disableElementRegistration:!0})],r9);
_.A(r9,"ytd-live-chat-frame",function(){if(oH6!==void 0)return oH6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return oH6=Y},{mode:1});var tyc;var Gk=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("web_modern_buttons");Y.buttonOverrides={style:"call-to-action",type:"filled"};return Y};
_.r(Gk,_.Z);Gk.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=_.Gp(this.data.backgroundColor)))};
Gk.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var Y=this.getFormattedStringLoggingDirectives(this.data.headline);Y&&this.rendererBehavior.logExplicitClick(Y)}};
Gk.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var Y=this.getFormattedStringLoggingDirectives(this.data.description);Y&&this.rendererBehavior.logExplicitClick(Y)}};
Gk.prototype.getFormattedStringLoggingDirectives=function(Y){return Y&&Y.runs&&Y.runs.length>0&&Y.runs[0]&&Y.runs[0].loggingDirectives?Y.runs[0].loggingDirectives:null};
Gk.prototype.dataChanged=Gk.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Gk.prototype,"rendererBehavior",void 0);_.Q([_.p(IUd.YtMacroReplacementBehavior),_.k("design:type",Object)],Gk.prototype,"macroReplacementBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Gk.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Gk.prototype,"navigationEndpoint",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Gk.prototype,"enableColors",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Gk.prototype,"modern",void 0);_.Q([_.X(),_.k("design:type",Object)],Gk.prototype,"buttonOverrides",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gk.prototype,"dataChanged",null);Gk=_.Q([_.t({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Gk);
_.A(Gk,"ytd-action-basic-immersive-content-renderer",function(){if(tyc!==void 0)return tyc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return tyc=Y},{mode:1});var Ae1;var U06;var hT=function(){return _.Z.apply(this,arguments)||this};
_.r(hT,_.Z);hT.prototype.dataChanged=function(){var Y;((Y=this.data)==null?void 0:Y.backgroundColor)!==void 0&&_.PZ(this.hostElement,{"--bgu-color":_.Gp(this.data.backgroundColor)})};
hT.prototype.onImageTileClick=function(){var Y;((Y=this.data)==null?0:Y.navigationEndpoint)&&_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var S;((S=this.data)==null?0:S.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.y6.Object.defineProperties(hT.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var Y;if(((Y=this.data)==null?void 0:Y.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;if(((Y=this.data)==null?void 0:(S=Y.detailsLine)==null?void 0:S.texts)!=null&&((P=this.data)==null?void 0:P.detailsLine.texts.length)>0){var u;return(u=this.data)==null?void 0:u.detailsLine.texts.map(function(W){return W.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;if(((Y=this.data)==null?void 0:(S=Y.optionalDetailsLine)==null?void 0:S.texts)!=null&&((P=this.data)==null?void 0:P.optionalDetailsLine.texts.length)>0){var u;return(u=this.data)==null?void 0:u.optionalDetailsLine.texts.map(function(W){return W.text}).join("")}return null}}});
hT.prototype.dataChanged=hT.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],hT.prototype,"rendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],hT.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],hT.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data.backgroundColor"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],hT.prototype,"hasBackgroundColor",null);
_.Q([_.d("data.objectFit"),_.k("design:type",Object),_.k("design:paramtypes",[])],hT.prototype,"getObjectFit",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.tileRenderingStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],hT.prototype,"hasTileMetadata",null);_.Q([_.d("data.detailsLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],hT.prototype,"getSecondaryDetails",null);
_.Q([_.d("data.optionalDetailsLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],hT.prototype,"getOptionalDetails",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hT.prototype,"dataChanged",null);hT=_.Q([_.t({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],hT);
_.A(hT,"ytd-image-tile-renderer",function(){if(U06!==void 0)return U06;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return U06=Y},{mode:1});var QVY;var vA=function(){return _.Z.apply(this,arguments)||this};
_.r(vA,_.Z);vA.prototype.getOpenLinkIcon=function(){return _.f("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
vA.prototype.onSitelinkTap=function(){_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.f("kevlar_command_handler_migration_killswitch"))_.cu(this.hostElement,this.data.clickCommands,this.hostElement);else for(var Y=_.n(this.data.clickCommands),S=Y.next();!S.done;S=Y.next())this.ytComponentBehavior.resolveCommand(S.value)};
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],vA.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],vA.prototype,"rendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],vA.prototype,"data",void 0);vA=_.Q([_.t({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],vA);
_.A(vA,"ytd-sitelink-renderer",function(){if(QVY!==void 0)return QVY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return QVY=Y},{mode:1});var DO=function(){var Y=_.Z.apply(this,arguments)||this;Y.paddingFix=_.f("enable_ads_web_ep_buenos_aires_and_padding_fix");return Y};
_.r(DO,_.Z);DO.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"}}}};
DO.prototype.dataChanged=function(){var Y=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(S){S.clickTrackingParams&&delete S.clickTrackingParams;Y.ytMacroReplacementBehavior.sendServiceRequestAction([S])})};
DO.prototype.shouldHideFooter=function(Y){return!(Y&&_.f("use_ads_engagement_panel_desktop_footer_cta"))};
_.y6.Object.defineProperties(DO.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:Y.imageTileRenderers)===void 0||((S=this.data)==null?void 0:S.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(P){var u;return(u=_.g(P,roZ))==null?void 0:u.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:Y.imageTileRenderers)===void 0||((S=this.data)==null?void 0:S.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(P){var u;return((u=_.g(P,roZ))==null?void 0:u.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
DO.prototype.dataChanged=DO.prototype.dataChanged;_.Q([_.p(IUd.YtMacroReplacementBehavior),_.k("design:type",Object)],DO.prototype,"ytMacroReplacementBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],DO.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],DO.prototype,"paddingFix",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data.imageTileRenderers"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],DO.prototype,"removeBorderFromImageTiles",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.imageTileRenderers"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],DO.prototype,"useFooteredMetadataRenderingStyle",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],DO.prototype,"dataChanged",null);DO=_.Q([_.t({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],DO);
_.A(DO,"ytd-action-engagement-panel-content-renderer",function(){if(Ae1!==void 0)return Ae1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ae1=Y},{mode:1});var kvX;var Myo=_.AI(function(Y){var S=Y.data;var P=Y.customCommandResolver;Y=_.Ms();_.QR(Y,function(){return S().interaction},P);
_.Yy(Y,{visibilityCallback:function(u){var W,m=(W=S().interaction)==null?void 0:W.onFirstVisible;u&&m&&_.ae(m)},
showOption:_.Xa});return _.R("ad-grid-card-image-full-metadata-view-model",{class:function(){var u;return((u=S().interaction)==null?0:u.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:Y,"aria-label":function(){var u,W;return(u=S().interaction)==null?void 0:(W=u.accessibility)==null?void 0:W.label}},_.R("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.R(_.rv,{data:function(){return S().adImage}},{adImageViewModel:function(u){return _.R(_.Yl,{data:u.data,
customCommandResolver:P})}})),_.R("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.R(_.gw,{cond:function(){return S().headline},
then:function(u){return _.R(_.qw,{text:u,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.R(_.gw,{cond:function(){return S().detailsLine},
then:function(u){return _.R("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.R(_.rv,{data:u},{adDetailsLineViewModel:function(W){return _.R(_.QT,{data:W.data,customCommandResolver:P,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.R(_.gw,{cond:function(){return S().secondaryDetailsLine},
then:function(u){return _.R("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.R(_.rv,{data:u},{adDetailsLineViewModel:function(W){return _.R(_.QT,{data:W.data,customCommandResolver:P,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Xh");var yej=_.AI(function(Y){var S=Y.data;var P=Y.customCommandResolver;Y=_.Ms();_.QR(Y,function(){return S().interaction},P);
_.Yy(Y,{visibilityCallback:function(u){var W,m=(W=S().interaction)==null?void 0:W.onFirstVisible;u&&m&&_.ae(m)},
showOption:_.Xa});return _.R("ad-grid-card-image-view-model",{class:function(){var u;return((u=S().interaction)==null?0:u.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:Y,"aria-label":function(){var u,W;return(u=S().interaction)==null?void 0:(W=u.accessibility)==null?void 0:W.label}},_.R(_.rv,{data:function(){return S().adImage}},{adImageViewModel:function(u){return _.R(_.Yl,{data:u.data,
customCommandResolver:P})}}),_.R("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.R(_.rv,{data:function(){return S().adCardBadge}},{adCardBadgeViewModel:_.hHh})))},"Yh");var NM_=_.AI(function(Y){var S=Y.data;var P=Y.customCommandResolver;Y=_.Ms();_.QR(Y,function(){return S().interaction},P);
_.Yy(Y,{visibilityCallback:function(u){var W,m=(W=S().interaction)==null?void 0:W.onFirstVisible;u&&m&&_.ae(m)},
showOption:_.Xa});return _.R("ad-grid-card-text-view-model",{class:function(){var u;return((u=S().interaction)==null?0:u.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:Y,"aria-label":function(){var u,W;return(u=S().interaction)==null?void 0:(W=u.accessibility)==null?void 0:W.label}},_.R("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.R(_.gw,{cond:function(){return S().title},
then:function(u){return _.R(_.qw,{text:u,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.R("div",{class:function(){return _.f("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.R(_.$Z,{each:function(){var u;
return((u=S())==null?void 0:u.descriptions)||[]},
keyBy:"INDEX"},function(u){return _.R(_.qw,{text:u,className:function(){return _.f("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.R("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.R(_.rv,{data:function(){return S().moreInfoButton}},{adButtonViewModel:function(u){return _.R(_.i7,{data:u.data,
customCommandResolver:P})}})))},"Zh");var H41=_.AI(function(Y){var S=Y.data;var P=Y.customCommandResolver;var u=Y.adGridCardCollectionStyle;Y=_.Ms();_.Yy(Y,{visibilityCallback:function(W){var m,J=(m=S().interaction)==null?void 0:m.onFirstVisible;W&&J&&_.ae(J)},
showOption:_.Xa});return _.R("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:Y,style:function(){return"grid-template-columns: repeat("+Ldo(u?u():S().style)+", minmax(0, 1fr));"}},_.R(_.rv,{data:function(){var W;
return(W=S())==null?void 0:W.gridCards}},{adGridCardImageViewModel:function(W){return _.R(yej,{data:W.data,
customCommandResolver:P})},
adGridCardImageFullMetadataViewModel:function(W){return _.R(Myo,{data:W.data,customCommandResolver:P})},
adGridCardTextViewModel:function(W){return _.R(NM_,{data:W.data,customCommandResolver:P})}}))},"$h");_.AL(_.AI(function(Y){var S=Y.data;Y=_.Ms();_.QR(Y,function(){return S().interaction},wNc);
_.Yy(Y,{visibilityCallback:function(P){var u,W=(u=S().interaction)==null?void 0:u.onFirstVisible;P&&W&&_.ae(W)},
showOption:_.Xa});return _.R("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:Y},_.R("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.R(_.gw,{cond:_.jVf("(min-width: "+((0,_.$0)()+_.dJ)+"px)"),then:function(){return _.R(_.rv,{data:function(){return S().adGridCardCollection}},{adGridCardCollectionViewModel:function(P){return _.R(H41,{data:P.data,
customCommandResolver:wNc})}})},
else:function(){return _.R(_.rv,{data:function(){return S().adGridCardCollection}},{adGridCardCollectionViewModel:function(P){return _.R(H41,{data:P.data,
customCommandResolver:wNc,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.R("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.R(_.rv,{data:function(){return S().adButton}},{adButtonViewModel:function(P){return _.R(_.i7,{data:P.data,
customCommandResolver:wNc})}})))},"ai"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;Y=_.Ms();_.QR(Y,function(){return S().interaction},pN1);
_.Yy(Y,{visibilityCallback:function(P){var u,W=(u=S().interaction)==null?void 0:u.onFirstVisible;P&&W&&_.ae(W)},
showOption:_.Xa});return _.R("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:Y},_.R("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.R(_.rv,{data:function(){if(_.jVf("(min-width: "+((0,_.$0)()+_.dJ)+"px)")())var P=S().adGridCardCollection;else{P=Object.assign({},_.g(S().adGridCardCollection,GmB));var u;P.gridCards!==void 0&&((u=P.gridCards)==null?void 0:u.length)>1?P.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":P.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";P={adGridCardCollectionViewModel:P}}return P}},{adGridCardCollectionViewModel:function(P){return _.R(H41,{data:P.data,
customCommandResolver:pN1})}})),_.R("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.R(_.rv,{data:function(){return S().adButton}},{adButtonViewModel:function(P){return _.R(_.i7,{data:P.data,
customCommandResolver:pN1})}})))},"bi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.wm}});var Ip=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return Y};
_.r(Ip,_.Z);_.z=Ip.prototype;_.z.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"}}}};
_.z.attached=function(){this.getDataFromPlayerAndRender()};
_.z.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.z.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.z.getDataFromPlayerAndRender=function(){var Y=this,S=_.Q5(this.hostElement);S&&S.getPlayerPromise().then(function(P){Y.getCachedDataAndListen(P)})};
_.z.getCachedDataAndListen=function(Y){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(Y,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(Y,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=Y)};
_.z.resolveCachedActions=function(){var Y=_.tA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(Y=Y&&Y())&&!_.RY.isEmpty(Y)&&this.sendUpdateEngagementPanelAction(Y);(Y=(Y=_.tA("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&Y())&&!_.RY.isEmpty(Y)&&this.sendChangeEngagementPanelVisibilityAction(Y);(Y=(Y=_.tA("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&Y())&&!_.RY.isEmpty(Y)&&this.sendScrollToEngagementPanelCommand(Y)};
_.z.sendUpdateEngagementPanelAction=function(Y){var S;_.nb(this.hostElement,"yt-update-engagement-panel-action",[(S=_.RY.get(Y,"action"))!=null?S:Y])};
_.z.sendChangeEngagementPanelVisibilityAction=function(Y){_.nb(this.hostElement,"yt-change-engagement-panel-visibility-action",[Y])};
_.z.sendScrollToEngagementPanelCommand=function(Y){_.nb(this.hostElement,"yt-scroll-to-engagement-panel-command",[Y])};
_.z.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.f("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.sf(Error("hm"))};
Ip.prototype.dataChanged=Ip.prototype.dataChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Ip.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Ip.prototype,"componentBehavior",void 0);_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],Ip.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ip.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Ip.prototype,"player",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ip.prototype,"dataChanged",null);Ip=_.Q([_.t({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Ip);
_.A(Ip,"ytd-ads-engagement-panel-content-renderer",function(){if(kvX!==void 0)return kvX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
return kvX=Y},{mode:1});var Vy_;var ap=function(){var Y=_.Z.apply(this,arguments)||this;Y.player=null;Y.JSC$19819_playerEvents=new Map;Y.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return Y};
_.r(ap,_.Z);_.z=ap.prototype;_.z.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]]"}}}}}};
_.z.created=function(){this.player=null;this.JSC$19819_playerEvents=new Map;this.JSC$19819_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19819_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19819_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19819_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.z.attached=function(){var Y=this,S=_.Q5();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));S&&S.getPlayerPromise().then(function(P){Y.setPlayer(P);Y.set("isPageLoad",!1)})};
_.z.setPlayer=function(Y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19819_playerEvents);this.set("player",Y);Y&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$19819_playerEvents),Y.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.z.onLoopRangeChange=function(Y){var S=_.E().resolve(_.PQ(_.Ag));if((!S||S.isOnWatch())&&this.hostElement.clientHeight){var P;!Y&&((P=this.data)==null?0:P.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.z.onVideoProgress=function(Y){var S,P,u=((S=this.player)==null?void 0:(P=S.getPresentingPlayerType)==null?void 0:P.call(S))===2;this.isAdPlaying!==u&&this.set("isAdPlaying",u);var W;if(!u&&(W=this.player)!=null&&W.getLoopRange()){P=this.player.getLoopRange();S=P.startTimeMs;P=P.endTimeMs;u=this.player.getProgressState(1).seekableStart;var m;S<u*1E3&&((m=this.data)==null?0:m.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
Y=P<Y*1E3;var J;((J=this.player)==null?0:J.getLoopRange())&&Y&&this.player.seekTo(S/1E3)}};
_.z.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.z.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.z.onYtDeleteClipEngagementPanelCommand=function(Y){_.g(Y,iW5).command&&this.ytComponentBehavior.resolveCommand(_.g(Y,iW5).command)};
_.y6.Object.defineProperties(ap.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.voteCount)||_.kW("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],ap.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],ap.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],ap.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ap.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],ap.prototype,"isAdPlaying",void 0);_.Q([_.X({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],ap.prototype,"isPageLoad",void 0);_.Q([_.X({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],ap.prototype,"isDarkTheme",void 0);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ap.prototype,"voteCount",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ap.prototype,"channelEndpoint",null);_.Q([_.d("channelEndpoint"),_.k("design:type",Object),_.k("design:paramtypes",[])],ap.prototype,"channelHref",null);ap=_.Q([_.t({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],ap);
_.A(ap,"ytd-clip-attribution-renderer",function(){if(Vy_!==void 0)return Vy_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Vy_=Y},{mode:1});var esB;var Lq=function(){var Y=_.Z.apply(this,arguments)||this;Y.player=null;Y.JSC$19824_playerEvents=new Map;return Y};
_.r(Lq,_.Z);_.z=Lq.prototype;_.z.created=function(){this.player=null;this.JSC$19824_playerEvents=new Map;this.JSC$19824_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19824_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19824_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.z.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.z.attached=function(){var Y=this,S=_.Q5();S&&S.getPlayerPromise().then(function(P){Y.setPlayer(P);Y.set("isPageLoad",!1)})};
_.z.setPlayer=function(Y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19824_playerEvents);this.set("player",Y);if(Y){this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$19824_playerEvents);var S;(Y==null?void 0:(S=Y.getPresentingPlayerType)==null?void 0:S.call(Y))===2&&this.playerAdStartHandler()}};
_.z.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.z.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.z.onVideoProgress=function(){var Y,S,P=((Y=this.player)==null?void 0:(S=Y.getPresentingPlayerType)==null?void 0:S.call(Y))===2;this.isAdPlaying!==P&&this.set("isAdPlaying",P)};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Lq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],Lq.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Lq.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Lq.prototype,"isAdPlaying",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],Lq.prototype,"isPageLoad",void 0);Lq=_.Q([_.t({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Lq);
_.A(Lq,"ytd-clip-section-footer-renderer",function(){if(esB!==void 0)return esB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return esB=Y},{mode:1});var O4u;var YS1;var w9=function(){return _.Z.apply(this,arguments)||this};
_.r(w9,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],w9.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],w9.prototype,"data",void 0);w9=_.Q([_.t({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],w9);
_.A(w9,"ytd-clip-ad-state-renderer",function(){if(YS1!==void 0)return YS1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return YS1=Y},{mode:1});var SSY;var pq=function(){var Y=_.Z.apply(this,arguments)||this;Y.value="";Y.valid=!1;Y.userChangedValue=!1;Y.disabled=!1;Y.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return Y};
_.r(pq,_.Z);_.z=pq.prototype;_.z.detached=function(){this.userChangedValue=!1};
_.z.handleKeyDown=function(Y){if(_.j5)var S=13;else _.U_a&&_.Jv?S=13:S=13;Y.keyCode===S&&Y.preventDefault()};
_.z.handleInput=function(){var Y=_.I(this.hostElement).querySelector("#title");if(Y){var S=(Y.value||"").replace(/\r|\n/g," ");this.set("value",S);Y.value=S;this.valid=Y.validate();this.userChangedValue=!0}};
_.z.handleBlur=function(){this.valid=_.I(this.hostElement).querySelector("#title").validate()};
_.z.onValueChanged=function(){_.ms(this.hostElement,"title-changed",{title:this.value})};
_.z.onValidChanged=function(){_.ms(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.z.setInput=function(Y,S){var P=_.I(this.hostElement).querySelector("#title");P&&(P.value=Y,this.handleInput(),S&&(P.invalid=!1,this.valid=!0))};
_.z.onClipCreationDisable=function(){this.set("disabled",!0)};
_.z.onClipCreationEnable=function(){this.set("disabled",!1)};
_.z.onClipCreationVisibilityChange=function(Y){var S=this;Y.visible?requestAnimationFrame(function(){var P;((P=_.I(S.hostElement).querySelector("#title"))==null?void 0:P.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
pq.prototype.onValidChanged=pq.prototype.onValidChanged;pq.prototype.onValueChanged=pq.prototype.onValueChanged;pq.prototype.handleBlur=pq.prototype.handleBlur;pq.prototype.handleInput=pq.prototype.handleInput;pq.prototype.handleKeyDown=pq.prototype.handleKeyDown;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],pq.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],pq.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],pq.prototype,"value",void 0);_.Q([_.X(),_.k("design:type",Object)],pq.prototype,"valid",void 0);_.Q([_.X(),_.k("design:type",Object)],pq.prototype,"userChangedValue",void 0);_.Q([_.X(),_.k("design:type",Object)],pq.prototype,"disabled",void 0);_.Q([_.WZ("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],pq.prototype,"handleKeyDown",null);
_.Q([_.WZ("input"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pq.prototype,"handleInput",null);_.Q([_.WZ("blur"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pq.prototype,"handleBlur",null);_.Q([_.zY("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pq.prototype,"onValueChanged",null);
_.Q([_.zY("valid"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pq.prototype,"onValidChanged",null);pq=_.Q([_.t({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],pq);
_.A(pq,"ytd-clip-creation-text-input-renderer",function(){if(SSY!==void 0)return SSY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return SSY=Y},{mode:1});var P8d;var ugX;var WBB;var zQ5;var m6d;var Ff=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};Y.pendingStoryboardImages_={};Y.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];Y.tickLabelInterval=30;Y.mediumTickInterval=5;Y.largeTickInterval=15;Y.aboveRulerHeight=32;Y.rulerHeight=50;Y.smallTickHeight=4;Y.mediumTickHeight=8;Y.largeTickHeight=16;Y.mediaListeners_=
{};return Y};
_.r(Ff,_.Z);_.z=Ff.prototype;_.z.attached=function(){var Y=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(S){S=_.n(["screen and (min-resolution: "+S+")","screen and (max-resolution: "+S+")"]);for(var P=S.next();!P.done;P=S.next()){P=P.value;var u=window.matchMedia(P);u&&(Y.mediaListeners_[P]=Y.updatePixelRatio_.bind(Y),u.addEventListener?u.addEventListener("change",Y.mediaListeners_[P]):u.addListener?u.addListener(Y.mediaListeners_[P]):delete Y.mediaListeners_[P])}})};
_.z.detached=function(){this.setPlayer(null);for(var Y=_.n(Object.keys(this.mediaListeners_)),S=Y.next();!S.done;S=Y.next()){var P=S.value;S=this.mediaListeners_[P];(P=window.matchMedia(P))&&(P.removeEventListener?P.removeEventListener("change",S):P.removeListener&&P.removeListener(S))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.z.onVisibilityChangedAction_=function(Y){var S=this;Y.visible&&!this.player_&&(Y=_.Q5())&&Y.getPlayerPromise().then(function(P){S.setPlayer(P)})};
_.z.setPlayer=function(Y){Y&&this.set("player_",Y)};
_.z.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.z.setUpCanvas_=function(){var Y=this.rulerWidth,S=this.devicePixelRatio_,P=this.visible;this.set("canvasReady_",!1);if(P&&S!==0){P=this.aboveRulerHeight+this.rulerHeight;var u=_.I(this.hostElement).querySelector("#ticks");u.width=Y*S;u.height=P*S;u.style.width=Y+"px";u.style.height=P+"px";u.getContext("2d").scale(S,S);this.set("canvasReady_",!0)}};
_.z.drawRuler_=function(Y,S,P,u,W,m,J,c,C,x,b,T){Y&&P&&S&&(Y=_.I(this.hostElement).querySelector("#ticks"),S=Y.getContext("2d"),S.clearRect(0,0,Y.width,Y.height),S.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),S.lineWidth=2,S.beginPath(),S.moveTo(0,this.aboveRulerHeight),S.lineTo(Y.width,this.aboveRulerHeight),S.moveTo(0,Y.height),S.lineTo(Y.width,Y.height),S.stroke(),this.drawRulerTicks_(Y,m,W,u),this.drawStoryboardImages_(Y,P,m,W,u),S.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
S.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(J-m,u,!1),this.rulerHeight),P=this.timeToPixels_(c-m,u,!1),S.fillRect(P,this.aboveRulerHeight,Y.width-P,this.rulerHeight),this.drawSpeedLines_(Y,m,T))};
_.z.drawRulerTicks_=function(Y,S,P,u){var W=Y.getContext("2d");W.save();W.lineWidth=1;for(var m=Math.floor(Math.max(0,S-this.tickLabelInterval));m<S+P;m++){W.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var J=(m-S)*u;W.beginPath();W.moveTo(J,Y.height);var c=this.smallTickHeight;m%this.largeTickInterval===0?c=this.largeTickHeight:m%this.mediumTickInterval===0&&(c=this.mediumTickHeight);W.lineTo(J,Y.height-c);W.stroke();m%this.tickLabelInterval===0&&(W.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),W.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),W.fillText(Dc(m),J+4,12),W.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),W.moveTo(J,0),W.lineTo(J,this.aboveRulerHeight),W.stroke())}W.restore()};
_.z.percentToHex_=function(Y){Y=Math.round(Y*255).toString(16);Y.length<2&&(Y="0"+Y);return Y};
_.z.drawSpeedLines_=function(Y,S,P){var u=Y.getContext("2d");u.save();var W=Math.min(25,Math.abs(P)-15)/25,m=Y.width*.3*W,J=Y.width*-.3,c=Y.width*1.3,C=this.aboveRulerHeight;Y=Y.height;var x=Math.round(4*W),b=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");b.length<7&&(b="#"+b.substring(1,4).repeat(2));var T=this.percentToHex_(.5+W/2);T=b+T;b+="00";if(W>0)for(W=0;W<x;W++){var K=J+Math.random()*(c-J),G=C+Math.random()*(Y-C),v=m+S%m,a=u.createLinearGradient(K,G,K+v,G);
P<0?(a.addColorStop(0,T),a.addColorStop(.4,T),a.addColorStop(.9,b)):(a.addColorStop(.1,b),a.addColorStop(.6,T),a.addColorStop(1,T));u.strokeStyle=a;u.lineWidth=1;u.beginPath();u.moveTo(K,G);u.lineTo(K+v,G);u.stroke()}u.restore()};
_.z.getStoryboardForTime_=function(Y,S,P){P===void 0&&(P=S.getNumberOfStoryboardLevels()-1);Y=S.getStoryboardFrameIndex(Y,P);return S.getStoryboardFrame(Y,P)};
_.z.drawStoryboardImages_=function(Y,S,P,u,W){if(!this.disabled){Y=Y.getContext("2d");var m=this.getStoryboardForTime_(0,S);if(m){var J=m.width/m.columns;m=m.height/m.rows;var c=J/m,C=this.rulerHeight*c;C=this.tickLabelInterval*(c<this.tickLabelInterval*W/this.rulerHeight?1/Math.floor(this.tickLabelInterval*W/C):Math.round(C/(this.tickLabelInterval*W)));var x=C*W,b=this.rulerHeight,T=x/this.rulerHeight,K=Math.floor(Math.max(0,P-C));for(K-=K%C;K<P+u;K+=C){var G=this.getStoryboardForTime_(K,S),v=this.getPreloadedStoryboard_(G.url);
if(v){var a=(K-P)*W,w=this.aboveRulerHeight,F=G.column*J,U=G.row*m;if(c<T){var V=b/(x/c);G=J;V*=m;U+=(m-V)/2}else G=x/(b*c)*J,V=m,F+=(J-G)/2;Y.drawImage(v,F,U,G,V,a,w,x,b)}else this.fetchStoryboardImage_(G)}}}};
_.z.getPreloadedStoryboard_=function(Y){return this.storyboardImages_.find(function(S){if(S.src==Y)return!0;var P=S.src.indexOf(Y);return P!=-1&&P==S.src.length-Y.length})};
_.z.fetchStoryboardImage_=function(Y){var S=this,P=this.getPreloadedStoryboard_(Y.url),u=this.pendingStoryboardImages_[Y.url];P||u!==void 0||(P=new Promise(function(W){var m=new Image(Y.width,Y.height);m.src=Y.url;m.onload=function(){W(m)};
m.onerror=function(){W(null)}}),this.pendingStoryboardImages_[Y.url]=P,P.then(function(W){W&&S.push("storyboardImages_",W);
return W}).finally(function(){delete S.pendingStoryboardImages_[Y.url]}))};
_.z.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.z.timeToPixels_=function(Y,S,P){Y*=S;return P===void 0||P?Y+"px":Y};
_.z.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Ff.prototype.drawRuler_=Ff.prototype.drawRuler_;Ff.prototype.setUpCanvas_=Ff.prototype.setUpCanvas_;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Ff.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ff.prototype,"ytRendererBehavior",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],Ff.prototype,"start",void 0);_.Q([_.X({value:30}),_.k("design:type",Number)],Ff.prototype,"end",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Ff.prototype,"visible",void 0);_.Q([_.X(),_.k("design:type",Object)],Ff.prototype,"player_",void 0);_.Q([_.X(),_.k("design:type",Number)],Ff.prototype,"tickSpacing",void 0);_.Q([_.X(),_.k("design:type",Number)],Ff.prototype,"windowSizeSec",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],Ff.prototype,"rulerWidth",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],Ff.prototype,"rulerShift",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Ff.prototype,"canvasReady_",void 0);_.Q([_.X({value:function(){return[]}}),
_.k("design:type",Array)],Ff.prototype,"storyboardImages_",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Ff.prototype,"disabled",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],Ff.prototype,"forceRender_",void 0);_.Q([_.X({value:1}),_.k("design:type",Number)],Ff.prototype,"devicePixelRatio_",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],Ff.prototype,"windowSpeed",void 0);
_.Q([_.zY("visible","devicePixelRatio_","rulerWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ff.prototype,"setUpCanvas_",null);
_.Q([_.zY("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.k("design:type",Function),_.k("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.k("design:returntype")],Ff.prototype,"drawRuler_",null);Ff=_.Q([_.r0({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Ff);
_.A(Ff,"yt-clip-creation-scrubber-canvas",function(){if(m6d===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);m6d=Y}Y=m6d;return Y},
{mode:2});var nz1;var jCY;var sl=function(){var Y=_.Z.apply(this,arguments)||this;Y.start=0;Y.end=30;Y.visible=!1;Y.draggingLeft_=!1;Y.draggingRight_=!1;Y.draggingRuler_=!1;Y.draggingWindow_=!1;Y.seekableStart=0;Y.seekableEnd=0;Y.rulerWidth_=0;Y.rulerShift_=0;Y.windowSlideSpeed=0;Y.disabled=!1;Y.initialized=!1;Y.durationAccessibilityLabel="";Y.activeLoopRange_=!1;Y.rulerDragMouseStart_=0;Y.rulerDragRulerStart_=0;Y.rulerDragStartTime_=0;Y.rulerDragEndTime_=0;Y.dragMouseLastX_=0;Y.scrollInterval_=null;Y.scrubberVe_=null;Y.boundHandlers_=
{};Y.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return Y};
_.r(sl,_.Z);_.z=sl.prototype;
_.z.created=function(){var Y=this;this.JSC$19837_playerEvents=new Map;this.JSC$19837_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19837_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19837_playerEvents.set("onStateChange",this.onStateChange_);var S={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(S).forEach(function(P){Y.boundHandlers_[P]=S[P].bind(Y)})};
_.z.attached=function(){this.activeLoopRange_=!1;_.I(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.I(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.TI(156731)};
_.z.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.I(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.I(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.z.onVisibilityChangedAction_=function(Y){var S=this;Y.visible&&!this.player_&&(Y=_.Q5())&&Y.getPlayerPromise().then(function(P){S.setPlayer(P)})};
_.z.setPlayer=function(Y){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19837_playerEvents);Y&&(this.set("player_",Y),this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$19837_playerEvents))};
_.z.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.z.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.z.beginHandleDrag_=function(Y){this.disabled||(Y.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=Y.clientX,Y.target===_.I(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():Y.target===_.I(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.z.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.z.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.z.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.z.beginRulerDrag_=function(Y){this.disabled||(Y.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=Y.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.z.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.z.beginWindowScroll_=function(){var Y=this;this.scrollInterval_=setInterval(function(){var S=Y.windowSlideSpeed;if(S=_.Y56(Y.start,Y.boundedRulerStartLimit_())?S-.1:_.Y56(Y.end,Y.boundedRulerEndLimit_())?S+.1:0){var P=Y.capRulerOffset_(Y.rulerShift_+S);P==Y.rulerShift_?S=0:(Y.set("rulerShift_",P),_.ms(Y.hostElement,"set-fixed-length-range",{start:Y.start+S,duration:Y.end-Y.start}))}Y.set("windowSlideSpeed",S)},33)};
_.z.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.z.endDrag_=function(){this.logClick();var Y=void 0;this.draggingRight_?Y=this.end-1:this.draggingLeft_&&(Y=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,Y);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.z.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.z.updateRulerSize_=function(){this.set("rulerWidth_",_.I(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.z.handleMouseDrag_=function(Y){Y.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(Y):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(Y):this.draggingWindow_&&this.handleWindowDrag_(Y))};
_.z.handleRulerDrag_=function(Y){Y=this.pixelsToTime_(Y.clientX-this.rulerDragMouseStart_);Y=this.capRulerOffset_(this.rulerDragRulerStart_-Y);this.set("rulerShift_",Y);var S=this.rulerDragStartTime_-(this.rulerDragRulerStart_-Y);_.ms(this.hostElement,"set-fixed-length-range",{start:S,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-Y)-S})};
_.z.handleWindowDrag_=function(Y){var S=Y.clientX-this.dragMouseLastX_;this.dragMouseLastX_=Y.clientX;Y=this.pixelsToTime_(S);_.ms(this.hostElement,"set-fixed-length-range",{start:this.start+Y,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.z.capRulerOffset_=function(Y){var S=this.seekableStart-this.pixelsToTime_(16),P=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(S,Y),P)};
_.z.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.z.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.z.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.z.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.z.handleWindowHandleDrag_=function(Y){var S=Y.clientX-this.dragMouseLastX_;this.dragMouseLastX_=Y.clientX;Y=this.pixelsToTime_(S);if(this.draggingLeft_){var P=this.start+Y;var u=this.end}else this.draggingRight_&&(P=this.start,u=this.end+Y);_.ms(this.hostElement,"set-range",{start:P,end:u,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.z.onVideoProgress_=function(Y){this.disabled||(Y=this.timeToPixels_(Y-this.rulerShift_,this.tickSpacing_),_.I(this.hostElement).querySelector("#playhead").style.transform="translateX("+Y+")")};
_.z.onClipCreationDisable_=function(){this.endDrag_()};
_.z.timeToPixels_=function(Y,S,P){Y*=S;return P===void 0||P?Y+"px":Y};
_.z.pixelsToTime_=function(Y){return Y/this.tickSpacing_};
_.z.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.z.centerRuler_=function(Y,S,P){this.set("rulerShift_",this.capRulerOffset_(Y+(S-Y)/2-P/2))};
_.z.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.z.updateLoopRange_=function(Y,S,P,u,W,m,J){Y&&(S&&u&&!P?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(Y.pauseVideo(),Y.seekTo(W,!1,void 0,void 0,50)):this.draggingRight_?(Y.pauseVideo(),Y.seekTo(m-.1,!1,void 0,void 0,50)):(J!==void 0?Y.seekTo(J,!0,void 0,void 0,50):(S=Y.getCurrentTime(),S<W||S>m?Y.seekTo(W,!0,void 0,void 0,50):Y.seekTo(S,!0,void 0,void 0,50)),Y.playVideo()),Y.setLoopRange({startTimeMs:W*1E3,endTimeMs:m*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(Y.getCurrentTime())):
this.activeLoopRange_&&(Y.setLoopRange(null),this.activeLoopRange_=!1))};
_.z.updateHandles_=function(){_.I(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.I(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.z.updateRuler_=function(){var Y=this.end,S=this.start,P=this.draggableStartLimit_(),u=this.draggableEndLimit_();(S<P-.001||Y>u+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.z.computeDurationLabel_=function(Y,S){return Y?Y.replace("$clip_length",parseFloat(S).toFixed(1)):""};
_.z.computeDuration_=function(Y,S){return this.isValidTime_(Y)&&this.isValidTime_(S)&&Y<S?S-Y:0};
_.z.isValidTime_=function(Y){return isNaN(parseFloat(Y))||Y<0?!1:this.player_?Y>=this.seekableStart&&Y<=this.seekableEnd:!0};
_.z.computeWindowSizeSec_=function(Y,S,P){return Math.min((Y||12E4)/1E3,P-S)};
_.z.computeTickSpacing_=function(Y,S){return S?S/Y:1};
_.z.onDragStateChanged_=function(){_.ms(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.z.centerRangeOnTime_=function(Y){var S=this.duration;Y=swI(Y-S/2,S,this.seekableStart,this.seekableEnd);_.ms(this.hostElement,"set-fixed-length-range",{start:Y.start,duration:Y.end-Y.start})};
_.z.nearlyLessThan_=function(Y,S,P){return Y+(P===void 0?1E-6:P)<S};
_.z.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var Y=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(Y,this.start)||this.nearlyLessThan_(this.end,Y))&&this.centerRangeOnTime_(Y)}};
_.z.onStateChange_=function(Y){this.visible&&!this.disabled&&Y==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.z.computeDragState_=function(Y,S,P,u){return Y?"left":S?"right":P?"ruler":u?"window":"none"};
_.z.logClick=function(){var Y=_.pM(),S=_.wf();Y&&S&&this.scrubberVe_&&(_.f("combine_ve_grafts")?_.Ym(_.BF(),this.scrubberVe_,S):_.t6(Y,S,this.scrubberVe_),_.ko(Y,this.scrubberVe_))};
sl.prototype.onDragStateChanged_=sl.prototype.onDragStateChanged_;sl.prototype.updateRuler_=sl.prototype.updateRuler_;sl.prototype.updateHandles_=sl.prototype.updateHandles_;sl.prototype.onUpdateLoopRange=sl.prototype.onUpdateLoopRange;sl.prototype.onInitializedChanged_=sl.prototype.onInitializedChanged_;sl.prototype.onVisibleChanged_=sl.prototype.onVisibleChanged_;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],sl.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",Object)],sl.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"start",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"end",void 0);_.Q([_.X({computed:"computeDuration_(start, end)"}),_.k("design:type",Number)],sl.prototype,"duration",void 0);
_.Q([_.X(),_.k("design:type",String)],sl.prototype,"lengthTemplate",void 0);_.Q([_.X({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.k("design:type",String)],sl.prototype,"durationLabel",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"visible",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"player_",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"draggingLeft_",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"draggingRight_",void 0);
_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"draggingRuler_",void 0);_.Q([_.X({value:!1}),_.k("design:type",Object)],sl.prototype,"draggingWindow_",void 0);_.Q([_.X({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.k("design:type",Number)],sl.prototype,"tickSpacing_",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"seekableStart",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"seekableEnd",void 0);
_.Q([_.X(),_.k("design:type",Number)],sl.prototype,"windowSizeMs",void 0);_.Q([_.X({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.k("design:type",Number)],sl.prototype,"windowSizeSec_",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"rulerWidth_",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"rulerShift_",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"windowSlideSpeed",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],sl.prototype,"disabled",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"initialized",void 0);_.Q([_.X(),_.k("design:type",Object)],sl.prototype,"durationAccessibilityLabel",void 0);_.Q([_.X({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.k("design:type",String)],sl.prototype,"dragState",void 0);
_.Q([_.zY("visible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sl.prototype,"onVisibleChanged_",null);_.Q([_.zY("initialized"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sl.prototype,"onInitializedChanged_",null);_.Q([_.zY("player_","visible","disabled","initialized","start","end"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sl.prototype,"onUpdateLoopRange",null);
_.Q([_.zY("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sl.prototype,"updateHandles_",null);_.Q([_.zY("start","end"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sl.prototype,"updateRuler_",null);
_.Q([_.zY("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sl.prototype,"onDragStateChanged_",null);sl=_.Q([_.r0({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],sl);
_.A(sl,"yt-clip-creation-scrubber-view",function(){if(jCY===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;nz1===void 0&&(nz1=document.createElement("template"));var u=nz1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);jCY=Y}Y=jCY;return Y},{mode:2});var d9=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};Y.startHighlightTimeout=0;Y.endHighlightTimeout=0;return Y};
_.r(d9,_.Z);_.z=d9.prototype;_.z.attached=function(){var Y=this;this.startInput.addEventListener("input",function(S){return Y.handleStartInput_(S)});
this.endInput.addEventListener("input",function(S){return Y.handleEndInput_(S)});
this.startInput.addEventListener("focusout",function(S){return Y.handleStartBlur_(S)});
this.endInput.addEventListener("focusout",function(S){return Y.handleEndBlur_(S)})};
_.z.setPlayer=function(Y){this.set("player_",Y)};
_.z.onSetFixedLengthRange_=function(Y){var S=Y.detail;Y=S.start;var P=S.duration,u=S.startLimit;S=S.endLimit;u||(u=this.seekableStart_);S||(S=this.seekableEnd_);Y=swI(Y,P,u,S);this.start=Y.start;this.end=Y.end};
_.z.onSetRange_=function(Y){var S=Y.detail;Y=S.start;var P=S.end,u=S.startLimit;S=S.endLimit;u||(u=this.seekableStart_);S||(S=this.seekableEnd_);if(Y=dOB(Y,P,u,S,this.minLengthSec,this.maxLengthSec))this.start=Y.start,this.end=Y.end};
_.z.updateInputs_=function(){var Y=this.end,S=this.start;this.startInput.focused||(this.startInput.value=Dc(S,!0));this.endInput.focused||(this.endInput.value=Dc(Y,!0))};
_.z.handleStartInput_=function(Y){Y=Fd6(Y.target.value);if(Y===null)this.set("startValid",!1);else{var S=this.end,P=dOB(Y,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);P?(this.set("endWillUpdate",P.end!==S),this.set("startValid",P.start===Y)):this.set("startValid",!1)}};
_.z.handleEndInput_=function(Y){Y=Fd6(Y.target.value);if(Y===null)this.set("endValid",!1);else{var S=this.start,P=lE1(this.start,Y,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);P?(this.set("startWillUpdate",P.start!==S),this.set("endValid",P.end===Y)):this.set("endValid",!1)}};
_.z.handleStartBlur_=function(Y){Y=Fd6(Y.target.value);Y===null?this.startInput.value=Dc(this.start,!0):this.forceUpdateInputs_(dOB(Y,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.z.handleEndBlur_=function(Y){Y=Fd6(Y.target.value);Y===null?this.endInput.value=Dc(this.end,!0):this.forceUpdateInputs_(lE1(this.start,Y,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.z.forceUpdateInputs_=function(Y){Y&&(this.start=Y.start,this.end=Y.end);this.startInput.value=Dc(this.start,!0);this.endInput.value=Dc(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.z.initializeClipRange_=function(){var Y=this.seekableEnd_,S=this.seekableStart_,P=this.visible_,u=this.player_;if(!u||!P||S===null||!Y)this.set("initialized",!1);else if(!this.initialized){var W=u.getCurrentTime(),m=this.getDefaultLengthSec_();P=u.getVideoData();var J=u.getPlayerState()==1,c=P.isLive;m=Math.min(m,Y-S);W=Math.max(0,W);Y=c?lE1(W-m,W,S,Y,this.minLengthSec,this.maxLengthSec):J?swI(W-m/2,m,S,Y):swI(W,m,S,Y);this.start=Y.start;this.end=Y.end;this.set("initialized",!0);P.isLive&&u.seekTo(Y.start);
this.startInput.value=Dc(this.start,!0);this.endInput.value=Dc(this.end,!0)}};
_.z.onStartChanged_=function(){var Y=this;_.ms(this.hostElement,"start-changed",{start:this.start});var S;isNaN((S=this.oldStart)!=null?S:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){Y.set("highlightStart",!1);Y.startHighlightTimeout=0;Y.oldStart=Y.start},3E3))};
_.z.onEndChanged_=function(){var Y=this;_.ms(this.hostElement,"end-changed",{end:this.end});var S;isNaN((S=this.oldEnd)!=null?S:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){Y.set("highlightEnd",!1);Y.endHighlightTimeout=0;Y.oldEnd=Y.end},3E3))};
_.z.onVisibilityChangedAction_=function(Y){var S=this;this.set("visible_",Y.visible);this.visible_&&!this.player_&&(Y=_.Q5())&&Y.getPlayerPromise().then(function(P){S.setPlayer(P)})};
_.z.computeMinLengthSec_=function(Y){return Y/1E3||5};
_.z.computeMaxLengthSec_=function(Y){return Y/1E3||60};
_.z.computeDefaultLengthSec_=function(Y){return Y/1E3};
_.z.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.z.computeSeekableStart_=function(Y,S){return Y&&S?Y.getProgressState(1).seekableStart:0};
_.z.computeSeekableEnd_=function(Y,S){return Y&&S?Y.getProgressState(1).seekableEnd:0};
_.z.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.z.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.z.onDragState_=function(Y){this.set("highlightStart",Y.detail.startChanging);this.set("highlightEnd",Y.detail.endChanging)};
d9.prototype.onDragState_=d9.prototype.onDragState_;d9.prototype.onEndChanged_=d9.prototype.onEndChanged_;d9.prototype.onStartChanged_=d9.prototype.onStartChanged_;d9.prototype.initializeClipRange_=d9.prototype.initializeClipRange_;d9.prototype.updateInputs_=d9.prototype.updateInputs_;d9.prototype.onSetRange_=d9.prototype.onSetRange_;d9.prototype.onSetFixedLengthRange_=d9.prototype.onSetFixedLengthRange_;
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],d9.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],d9.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],d9.prototype,"data",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],d9.prototype,"start",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],d9.prototype,"startValid",void 0);
_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],d9.prototype,"startWillUpdate",void 0);_.Q([_.X({value:30}),_.k("design:type",Number)],d9.prototype,"end",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],d9.prototype,"endValid",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],d9.prototype,"endWillUpdate",void 0);_.Q([_.X({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.k("design:type",Number)],d9.prototype,"minLengthSec",void 0);
_.Q([_.X({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.k("design:type",Number)],d9.prototype,"maxLengthSec",void 0);_.Q([_.X({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.k("design:type",Number)],d9.prototype,"defaultLengthSec",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],d9.prototype,"visible_",void 0);_.Q([_.X(),_.k("design:type",Object)],d9.prototype,"player_",void 0);
_.Q([_.X({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.k("design:type",Number)],d9.prototype,"seekableStart_",void 0);_.Q([_.X({computed:"computeSeekableEnd_(player_, visible_)"}),_.k("design:type",Number)],d9.prototype,"seekableEnd_",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],d9.prototype,"initialized",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],d9.prototype,"disabled",void 0);
_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],d9.prototype,"highlightStart",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],d9.prototype,"highlightEnd",void 0);_.Q([_.nc("#start"),_.k("design:type",HTMLInputElement)],d9.prototype,"startInput",void 0);_.Q([_.nc("#end"),_.k("design:type",HTMLInputElement)],d9.prototype,"endInput",void 0);
_.Q([_.WZ("set-fixed-length-range"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],d9.prototype,"onSetFixedLengthRange_",null);_.Q([_.WZ("set-range"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],d9.prototype,"onSetRange_",null);_.Q([_.zY("start","end"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],d9.prototype,"updateInputs_",null);
_.Q([_.zY("player_","visible_","seekableStart_","seekableEnd_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],d9.prototype,"initializeClipRange_",null);_.Q([_.zY("start"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],d9.prototype,"onStartChanged_",null);_.Q([_.zY("end"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],d9.prototype,"onEndChanged_",null);
_.Q([_.WZ("clips-drag-state"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],d9.prototype,"onDragState_",null);d9=_.Q([_.r0({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],d9);
_.A(d9,"yt-clip-creation-scrubber-renderer",function(){if(zQ5===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;WBB===void 0&&(WBB=document.createElement("template"));var u=WBB;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);zQ5=Y}Y=zQ5;return Y},{mode:2});var lm=function(){var Y=_.Z.apply(this,arguments)||this;Y.player_=null;Y.JSC$19851_playerEvents=new Map;Y.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return Y};
_.r(lm,_.Z);_.z=lm.prototype;_.z.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"}}}};
_.z.created=function(){this.JSC$19851_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19851_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19851_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19851_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.z.detached=function(){this.setPlayer(null)};
_.z.onVisibilityChangedAction_=function(Y){var S=this,P;if((P=this.data)==null?0:P.externalVideoId){var u;this.videoId=(u=this.data)==null?void 0:u.externalVideoId}this.getPlayer().then(function(W){if(Y.visible)S.returnTime=W.getCurrentTime(),S.isAtLiveHead=W.getProgressState().isAtLiveHead;else{var m=S.returnTime;S.isAtLiveHead&&(m=Number.POSITIVE_INFINITY);W.seekTo(m,void 0,void 0,void 0,51)}})};
_.z.getPlayer=function(){var Y=this;if(!this.player_){var S=_.Q5();if(S)return S.getPlayerPromise().then(function(P){Y.setPlayer(P);return P})}return Promise.resolve(this.player_)};
_.z.setPlayer=function(Y){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19851_playerEvents);if(Y){this.player_=Y;var S;((S=this.data)==null?0:S.externalVideoId)||this.set("videoId",Y.getVideoData().video_id||"");var P;(Y==null?void 0:(P=Y.getPresentingPlayerType)==null?void 0:P.call(Y))===2&&(this.set("isAdPlaying",!0),_.nb(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$19851_playerEvents)}};
_.z.ready=function(){_.I(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.z.onTitleChanged_=function(Y){this.set("titleValue",Y.detail.title)};
_.z.onStartChanged_=function(Y){this.set("start",Y.detail.start)};
_.z.onEndChanged_=function(Y){this.set("end",Y.detail.end)};
_.z.onTitleValidChanged_=function(Y){this.set("titleValid",Y.detail.valid)};
_.z.onStartValidChanged_=function(Y){this.set("startValid",Y.detail.valid)};
_.z.onEndValidChanged_=function(Y){this.set("endValid",Y.detail.valid)};
_.z.onVideoDataChange_=function(){var Y;if((Y=this.data)==null||!Y.externalVideoId){var S;this.set("videoId",((S=this.player_)==null?void 0:S.getVideoData().video_id)||"")}};
_.z.computeFormValid_=function(Y,S,P,u){return!!(Y&&S&&P&&u)};
_.z.computeCancelButton_=function(Y,S,P){return Y&&_.g(Y,_.I8)?{buttonRenderer:Object.assign({},_.g(Y,_.I8),{isDisabled:S||P})}:null};
_.z.computeSubmitButton_=function(Y,S,P){return Y&&_.g(Y,_.I8)?{buttonRenderer:Object.assign({},_.g(Y,_.I8),{command:void 0,isDisabled:!this.formValid||S||P})}:null};
_.z.computeSubmitCommand_=function(Y){return Y||null};
_.z.onSubmit_=function(Y){var S=this;Y.stopPropagation();Y.preventDefault();this.submitCommand_&&(Y={},Y.comment_text=this.titleValue,Y.clip_external_video_id=this.videoId,Y.clip_offset_ms=parseInt(this.start*1E3,10),Y.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.Bu(this.hostElement,[this.submitCommand_,Y]).then(function(){S.set("isLoading_",!1)},function(){S.set("isLoading_",!1)}))};
_.z.playerAdStartHandler_=function(){_.nb(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.z.playerAdEndHandler_=function(){_.nb(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.z.onVideoProgress_=function(){var Y=this;this.getPlayer().then(function(S){var P,u=(S==null?void 0:(P=S.getPresentingPlayerType)==null?void 0:P.call(S))===2;Y.isAdPlaying!==u&&(u?Y.playerAdStartHandler_():Y.playerAdEndHandler_())})};
lm.prototype.onEndValidChanged_=lm.prototype.onEndValidChanged_;lm.prototype.onStartValidChanged_=lm.prototype.onStartValidChanged_;lm.prototype.onTitleValidChanged_=lm.prototype.onTitleValidChanged_;lm.prototype.onEndChanged_=lm.prototype.onEndChanged_;lm.prototype.onStartChanged_=lm.prototype.onStartChanged_;lm.prototype.onTitleChanged_=lm.prototype.onTitleChanged_;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],lm.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",Object)],lm.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],lm.prototype,"data",void 0);_.Q([_.X({value:""}),_.k("design:type",String)],lm.prototype,"titleValue",void 0);
_.Q([_.X({value:!1}),_.k("design:type",Boolean)],lm.prototype,"titleValid",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],lm.prototype,"start",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],lm.prototype,"startValid",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],lm.prototype,"end",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],lm.prototype,"endValid",void 0);_.Q([_.X({value:""}),_.k("design:type",String)],lm.prototype,"videoId",void 0);
_.Q([_.X({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.k("design:type",Boolean)],lm.prototype,"formValid",void 0);_.Q([_.X({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.k("design:type",Object)],lm.prototype,"submitButton_",void 0);_.Q([_.X({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.k("design:type",Object)],lm.prototype,"submitCommand_",void 0);
_.Q([_.X({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.k("design:type",Object)],lm.prototype,"cancelButton_",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],lm.prototype,"isLoading_",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],lm.prototype,"isAdPlaying",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],lm.prototype,"returnTime",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],lm.prototype,"isAtLiveHead",void 0);
_.Q([_.WZ("title-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],lm.prototype,"onTitleChanged_",null);_.Q([_.WZ("start-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],lm.prototype,"onStartChanged_",null);_.Q([_.WZ("end-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],lm.prototype,"onEndChanged_",null);
_.Q([_.WZ("title-valid-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],lm.prototype,"onTitleValidChanged_",null);_.Q([_.WZ("start-valid-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],lm.prototype,"onStartValidChanged_",null);_.Q([_.WZ("end-valid-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],lm.prototype,"onEndValidChanged_",null);
lm=_.Q([_.r0({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],lm);
_.A(lm,"yt-clip-creation-renderer",function(){if(ugX===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;P8d===void 0&&(P8d=document.createElement("template"));var u=P8d;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);ugX=Y}Y=ugX;return Y},{mode:2});var Xf=function(){return _.Z.apply(this,arguments)||this};
_.r(Xf,_.Z);Xf.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"}}}};
Xf.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(Y){return Y.hasOwnProperty("clipCreationRenderer")})&&_.nb(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Xf.prototype.onPanelContentVisibleChanged=Xf.prototype.onPanelContentVisibleChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Xf.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.vU.YtVisibilityBehavior),_.k("design:type",Object)],Xf.prototype,"ytVisibilityBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Xf.prototype,"ytdReduxBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],Xf.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Xf.prototype,"panelContentVisible",void 0);_.Q([_.zY("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xf.prototype,"onPanelContentVisibleChanged",null);Xf=_.Q([_.t({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Xf);
_.A(Xf,"ytd-clip-section-renderer",function(){if(O4u!==void 0)return O4u;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return O4u=Y},{mode:1});var JSZ;var ZO=function(){return _.Z.apply(this,arguments)||this};
_.r(ZO,_.Z);_.z=ZO.prototype;
_.z.onKeyDown=function(Y){if(this.snippetElements.length!==0&&(Y=Y.keyCode,Y===38||Y===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);Y===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.wx(this.highlightedIndex,-1,this.snippetElements.length);Y=this.snippetElements.length;var S=this.highlightedIndex%Y;this.highlightedIndex=S*Y<0?S+Y:S;Y=this.snippetElements[this.highlightedIndex];this.highlightSnippet(Y);this.ensureVisible(Y)}};
_.z.onKeyUp=function(Y){var S=this;fru(Y)&&(Y.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.wc.cancelJob(this.inputTimerId),this.inputTimerId=_.wc.addLowPriorityJob(function(){S.typedValue&&(S.fetchSnippets(S.typedValue),S.logInputGesture(S.data))},1E3))};
_.z.onClick=function(Y){(Y=_.k1m(Y.target,null,"snippet-item"))&&this.selectSnippet(Y)};
_.z.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.z.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.z.ready=function(){var Y=this;this.inputElement.addEventListener("focus",function(){Y.snippetsWrapper.style.removeProperty("display")})};
_.z.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.z.getSourceTimelines=function(){if(!this.data)return[];var Y=[];if(this.data.searchInVideoSources)for(var S=_.n(this.data.searchInVideoSources),P=S.next();!P.done;P=S.next())P=P.value,P==="SEARCH_IN_VIDEO_SOURCE_ASR"?Y.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):P==="SEARCH_IN_VIDEO_SOURCE_OCR"&&Y.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return Y};
_.z.fetchSnippets=function(Y){var S=_.nb(this.hostElement,"yt-get-current-video-id-action")[0],P=this.getSourceTimelines();Y={getSearchInVideoCommand:{externalVideoId:S,query:Y!=null?Y:"",sourceTimelines:P},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}})};
_.z.filterSnippets=function(Y,S){var P=this;if(S){this.filteredSnippets=(0,_.RY.unsafeClone)(Y);var u=RegExp(_.vnh(S),"i");this.filteredSnippets=this.filteredSnippets.filter(function(J){return u.test(P.ytRendererBehavior.getSimpleString(J.snippet))});
Y=_.n(this.filteredSnippets);for(var W=Y.next();!W.done;W=Y.next()){W=W.value;var m=this.ytRendererBehavior.getSimpleString(W.snippet);W.snippet={runs:[{text:m.substring(0,m.toLowerCase().indexOf(S))},{text:m.substring(m.toLowerCase().indexOf(S),m.toLowerCase().indexOf(S)+S.length),bold:!0},{text:m.substring(m.toLowerCase().indexOf(S)+S.length,m.length)}]}}}else this.filteredSnippets=Y};
_.z.onUpdateSearchInVideoResults=function(Y){if(!(this.snippets.length>0)){var S,P,u;if((u=(S=_.g(Y,F7I))==null?void 0:(P=S.results)==null?void 0:P.length)!=null&&u){var W;this.filteredSnippets=this.snippets=((W=_.g(Y,F7I))==null?void 0:W.results).map(function(m){var J,c,C;return{startMs:m==null?void 0:(J=m.searchInVideoResultRenderer)==null?void 0:J.startMs,startTimeText:m==null?void 0:(c=m.searchInVideoResultRenderer)==null?void 0:c.startTimeText,snippet:m==null?void 0:(C=m.searchInVideoResultRenderer)==
null?void 0:C.snippet}})}}};
_.z.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};
_.z.highlightSnippet=function(Y){Y.classList.add("highlighted")};
_.z.removeSnippetHighlight=function(Y){Y.classList.remove("highlighted")};
_.z.selectSnippet=function(Y){this.typedValue=String(Y.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(Y);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.z.ensureVisible=function(Y){var S=this.snippetsWrapper.scrollTop,P=S+this.snippetsWrapper.clientHeight,u=Y.offsetTop-this.snippetsWrapper.offsetTop;Y=u+Y.clientHeight;u<S?this.snippetsWrapper.scrollTop-=S-u:Y>P&&(this.snippetsWrapper.scrollTop+=Y-P)};
_.z.seekPlayer=function(Y){var S,P;return _.B(function(u){if(u.nextAddress==1){if(!Y)return u.jumpTo(0);S=Number(Y.dataset.startOffset);return _.q(u,_.ks().getPlayerPromise(),3)}P=u.yieldResult;P.seekTo(S/1E3,!0);P.wakeUpControls();_.Yt(u)})};
_.z.logInputGesture=function(Y){var S=_.pM();S&&(Y==null?0:Y.trackingParams)&&_.MT(S,_.Re(Y.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.z.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("typed-value-changed",this.typedValue))};
_.z.updateTypedValueFromBinding=function(Y){this.typedValue=Y.currentTarget.value};
ZO.prototype.typedValueChangedForBinding=ZO.prototype.typedValueChangedForBinding;ZO.prototype.dataChanged=ZO.prototype.dataChanged;ZO.prototype.panelContentVisibleChanged=ZO.prototype.panelContentVisibleChanged;ZO.prototype.onClick=ZO.prototype.onClick;ZO.prototype.onKeyUp=ZO.prototype.onKeyUp;ZO.prototype.onKeyDown=ZO.prototype.onKeyDown;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],ZO.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ZO.prototype,"data",void 0);_.Q([_.X({value:[]}),_.k("design:type",Array)],ZO.prototype,"snippets",void 0);_.Q([_.X({value:[]}),_.k("design:type",Array)],ZO.prototype,"filteredSnippets",void 0);_.Q([_.X({value:[]}),_.k("design:type",Array)],ZO.prototype,"snippetElements",void 0);
_.Q([_.nc("#siv-input"),_.k("design:type",HTMLElement)],ZO.prototype,"inputElement",void 0);_.Q([_.nc("#siv-snippets-wrapper"),_.k("design:type",HTMLElement)],ZO.prototype,"snippetsWrapper",void 0);_.Q([_.X(),_.k("design:type",String)],ZO.prototype,"typedValue",void 0);_.Q([_.X({value:-1}),_.k("design:type",Number)],ZO.prototype,"highlightedIndex",void 0);_.Q([_.WZ("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[_.q4]),_.k("design:returntype")],ZO.prototype,"onKeyDown",null);
_.Q([_.WZ("keyup"),_.k("design:type",Function),_.k("design:paramtypes",[_.q4]),_.k("design:returntype")],ZO.prototype,"onKeyUp",null);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],ZO.prototype,"onClick",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],ZO.prototype,"panelContentVisible",void 0);
_.Q([_.zY("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZO.prototype,"panelContentVisibleChanged",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZO.prototype,"dataChanged",null);_.Q([_.zY("typedValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZO.prototype,"typedValueChangedForBinding",null);
ZO=_.Q([_.t({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],ZO);
_.A(ZO,"ytd-search-in-video-renderer",function(){if(JSZ!==void 0)return JSZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return JSZ=Y},{mode:1});var BiZ;var im=function(){return _.Z.apply(this,arguments)||this};
_.r(im,_.Z);im.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
im.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]]"}}}}}};
im.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var Y,S,P,u,W=(S=_.g((Y=this.data)==null?void 0:Y.onClickCommand,_.$if))==null?void 0:(P=S.item)==null?void 0:(u=P.notificationTextRenderer)==null?void 0:u.successResponseText;W&&_.eVK(this.hostElement,W)}};
_.y6.Object.defineProperties(im.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u;return this.isProductPlaceholder&&((Y=this.data)==null?void 0:(S=Y.hiddenProductOptions)==null?void 0:S.showDropCountdown)&&!!((P=this.data)==null?0:(u=P.hiddenProductOptions)==null?0:u.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var Y;return!this.isProductPlaceholder&&!((Y=this.data)==null?0:Y.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!((Y=this.data)==null?0:Y.priceReplacementText)&&!((S=this.data)==null||!S.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],im.prototype,"componentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],im.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],im.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("isProductPlaceholder"),_.k("design:type",Object),_.k("design:paramtypes",[])],im.prototype,"useCenterLayoutContainer",null);_.Q([_.X({computed:"computeButtonOverride(data)"}),_.k("design:type",Object)],im.prototype,"buttonOverride",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],im.prototype,"isProductPlaceholder",null);
_.Q([_.d("isProductPlaceholder"),_.k("design:type",Object),_.k("design:paramtypes",[])],im.prototype,"showDropCountdown",null);_.Q([_.d("isProductPlaceholder","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],im.prototype,"showBrandName",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],im.prototype,"showPriceReplacementText",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],im.prototype,"showPrice",null);
_.Q([_.d("isProductPlaceholder"),_.k("design:type",Object),_.k("design:paramtypes",[])],im.prototype,"showMetadata",null);im=_.Q([_.t({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],im);
_.A(im,"ytd-product-list-item-renderer",function(){if(BiZ!==void 0)return BiZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return BiZ=Y},{mode:1});var cSc;var op=function(){return _.Z.apply(this,arguments)||this};
_.r(op,_.Z);op.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
op.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
op.prototype.panelContentVisibleChanged=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return Y.playerApi?P.jumpTo(2):_.q(P,_.ks().getPlayerPromise(),3);P.nextAddress!=2&&(Y.playerApi=P.yieldResult);(S=Y.playerApi)==null||S.productsInVideoVisibilityUpdated(!!Y.panelContentVisible);_.Yt(P)})};
op.prototype.panelContentVisibleChanged=op.prototype.panelContentVisibleChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],op.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],op.prototype,"panelContentVisible",void 0);_.Q([_.X(),_.k("design:type",Object)],op.prototype,"data",void 0);
_.Q([_.zY("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],op.prototype,"panelContentVisibleChanged",null);op=_.Q([_.t({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],op);
_.A(op,"ytd-product-list-renderer",function(){if(cSc!==void 0)return cSc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return cSc=Y},{mode:1});var C81;var tT=function(){var Y=_.Z.apply(this,arguments)||this;Y.hideTimestamps=!!_.u4("hide-transcript-timestamps");Y.currentCueIndex=-1;Y.flatCues=[];Y.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};Y.TEST_ONLY={getFlatCues:function(){return Y.flatCues}};
return Y};
_.r(tT,_.Z);_.z=tT.prototype;_.z.hideTimestampsChanged=function(){_.PU("hide-transcript-timestamps",this.hideTimestamps)};
_.z.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.z.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.z.dataChanged=function(){var Y;if((Y=this.data)!=null&&Y.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;Y=_.n(this.data.cueGroups);for(var S=Y.next();!S.done;S=Y.next()){S=_.n(_.g(S.value,svc).cues);for(var P=S.next();!P.done;P=S.next())this.flatCues.push(Number(_.g(P.value,d3B).startOffsetMs))}}};
_.z.onYtPlayerTimeChanged=function(Y){if(!(Y<0)){for(var S=this.currentCueIndex,P=S;;){var u=P>=0?this.flatCues[P]/1E3:-1;if(Y+.5<u)--P;else if(u=P+1<this.flatCues.length?this.flatCues[P+1]/1E3:Infinity,Y+.5>u)P+=1;else break}P!==S&&(S>=0&&((Y=this.getCueElement(S))&&Y.classList.remove("active"),(S=this.getCueGroupElement(S))&&S.classList.remove("active")),(S=this.getCueElement(P))&&S.classList.add("active"),(S=this.getCueGroupElement(P))&&S.classList.add("active"),this.currentCueIndex=P,this.isHovered||
this.scrollElementToTop(P))}};
_.z.scrollElementToTop=function(Y){Y=this.getCueElement(Y>=3?Y-3:0);this.hostElement.scrollTop=Math.min(Y.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.z.getCueElement=function(Y){return _.I(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[Y]+'"]')};
_.z.getCueGroupElement=function(Y){return(Y=this.getCueElement(Y))&&Y.parentElement?Y.parentElement.parentElement:null};
_.z.onTap=function(Y){var S=_.oK(Y);Y.target.classList.contains("cue")&&this.seekCueElement(S)};
_.z.onKeyPress=function(Y){Y.keyCode==13&&(Y=_.k1m(Y.target,null,"cue"))&&this.seekCueElement(Y)};
_.z.seekCueElement=function(Y){Y=Number(Y.getAttribute("start-offset"));_.nb(this.hostElement,"yt-transcript-player-seek",[Y/1E3])};
_.z.onMouseEnter=function(){this.isHovered=!0};
_.z.onMouseLeave=function(){this.isHovered=!1};
tT.prototype.onMouseLeave=tT.prototype.onMouseLeave;tT.prototype.onMouseEnter=tT.prototype.onMouseEnter;tT.prototype.onKeyPress=tT.prototype.onKeyPress;tT.prototype.onTap=tT.prototype.onTap;tT.prototype.dataChanged=tT.prototype.dataChanged;tT.prototype.hideTimestampsChanged=tT.prototype.hideTimestampsChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],tT.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],tT.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],tT.prototype,"hideTimestamps",void 0);_.Q([_.X(),_.k("design:type",Boolean)],tT.prototype,"isHovered",void 0);_.Q([_.zY("hideTimestamps"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tT.prototype,"hideTimestampsChanged",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tT.prototype,"dataChanged",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],tT.prototype,"onTap",null);_.Q([_.WZ("keypress"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],tT.prototype,"onKeyPress",null);
_.Q([_.WZ("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tT.prototype,"onMouseEnter",null);_.Q([_.WZ("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tT.prototype,"onMouseLeave",null);tT=_.Q([_.t({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],tT);
_.A(tT,"ytd-transcript-body-renderer",function(){if(C81!==void 0)return C81;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return C81=Y},{mode:1});var qSd;var AT=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerPanels=_.f("web_watch_darker_panels");return Y};
_.r(AT,_.Z);AT.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],AT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],AT.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],AT.prototype,"darkerPanels",void 0);AT=_.Q([_.t({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],AT);
_.A(AT,"ytd-transcript-footer-renderer",function(){if(qSd!==void 0)return qSd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return qSd=Y},{mode:1});var RQ_;var x6d;var Ul=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.f("kevlar_system_icons");Y.showClearButton=!1;return Y};
_.r(Ul,_.Z);_.z=Ul.prototype;_.z.handleInput=function(Y){var S=this;Y.target.value.length?_.pc(this,"ytdTranscriptSearchBoxSearch",function(){S.emitSearchEvent(Y)},500):(_.rMf(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=Y.target.value.length>0};
_.z.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.z.handleClick=function(){var Y,S=(Y=this.data)==null?void 0:Y.trackingParams;S&&_.uA(_.BF(),S)};
_.z.handleClear=function(){_.rMf(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var Y,S,P=(S=_.g((Y=this.data)==null?void 0:Y.clearButton,_.I8))==null?void 0:S.trackingParams;P&&_.uA(_.BF(),P);this.clear()};
_.z.emitSearchEvent=function(Y){_.ms(this.hostElement,"yt-transcript-search-box-search",{query:Y.target.value});var S,P;(Y=(P=_.g((S=this.data)==null?void 0:S.searchButton,_.I8))==null?void 0:P.trackingParams)&&_.uA(_.BF(),Y)};
_.z.emitClearEvent=function(){_.ms(this.hostElement,"yt-transcript-search-box-clear")};
_.y6.Object.defineProperties(Ul.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.I(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ul.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Ul.prototype,"systemIcons",void 0);Ul=_.Q([_.t({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Ul);
_.A(Ul,"ytd-transcript-search-box-renderer",function(){if(x6d!==void 0)return x6d;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return x6d=Y},{mode:1});var bTd;var Tic;var QY=function(){return _.Z.apply(this,arguments)||this};
_.r(QY,_.Z);QY.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var Y,S;this.sectionHeaderAriaLabel=(Y=this.data)==null?void 0:(S=Y.accessibility)==null?void 0:S.accessibilityData.label}};
QY.prototype.fireSelectedEvent=function(Y){_.ms(this.hostElement,"ytd-transcript-section-header",{startMs:Y})};
QY.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
QY.prototype.handleKeyPress=function(Y){this.data&&Y.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.y6.Object.defineProperties(QY.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(S=(Y=this.data)==null?void 0:Y.enableTappableTranscriptHeader)!=null?S:!1}}});
QY.prototype.dataChanged=QY.prototype.dataChanged;_.Q([_.X(),_.k("design:type",Object)],QY.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],QY.prototype,"sectionHeaderAriaLabel",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],QY.prototype,"enableTappableTranscriptHeader",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QY.prototype,"dataChanged",null);
QY=_.Q([_.t({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],QY);
_.A(QY,"ytd-transcript-section-header-renderer",function(){if(Tic!==void 0)return Tic;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Tic=Y},{mode:1});var KBX;var Ezj;var k6=function(){var Y=_.Z.apply(this,arguments)||this;Y.isEditMode=!1;Y.touchCaptionsEnabled=!1;Y.deleteCaptionCorrectionPopupCommand=null;Y.voteCaptionCorrectionPopupCommand=null;Y.roundedContainer=!0;Y.mouseOver=!1;Y.textChanged=!1;Y.messages={suggest_correction:_.Td("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Td("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Td("submit_correction",void 0,"Submit for review"),cancel_correction:_.Td("cancel_correction",
void 0,"Cancel"),replay_segment:_.Td("replay_segment",void 0,"Re-play segment"),delete_correction:_.Td("delete_correction",void 0,"Delete correction")};Y.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return Y};
_.r(k6,_.Z);_.z=k6.prototype;_.z.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)};
_.z.handleDelete=function(Y){if(this.deleteCaptionCorrectionPopupCommand){var S=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);S&&this.ytdOpenPopupBehavior.openPopup(S);Y.stopPropagation()}};
_.z.handleSubmit=function(Y){if(this.data&&this.data.submitCaptionCorrectionCommand&&(Y.stopPropagation(),this.textChanged)){var S;Y=(S=_.g(this.data.submitCaptionCorrectionCommand,_.xnJ))==null?void 0:S.params;S=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:Y,correctionText:String(this.ironTextAreaElement.value),originalText:_.Ma(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(S);this.isEditMode=!1}};
_.z.handleUpdateSegmentText=function(Y){(Y=_.g(Y,YzI))&&Y.targetId&&this.data&&Y.targetId===this.data.targetId&&(Y.userCorrection&&(this.editedText=Y.userCorrection),Y.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Ma(this.data.snippet)),Y.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=Y.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=Y.voteCaptionCorrectionPopupCommand?
Y.voteCaptionCorrectionPopupCommand:null,Y.accessibility&&(this.segmentAriaLabel=Y.accessibility.accessibilityData.label))};
_.z.handleCancel=function(Y){this.isEditMode=!1;Y.stopPropagation();this.logClientVe(159409)};
_.z.handleEditSegmentCommand=function(Y){(Y=_.g(Y,OW1))&&Y.targetId&&this.data&&Y.targetId===this.data.targetId&&this.handleEdit()};
_.z.handleEditButtonClick=function(Y){this.data&&(this.handleEdit(),Y.stopPropagation())};
_.z.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var Y;(Y=this.ironTextAreaElement.textarea)==null||Y.focus();this.logClientVe(159407)}};
_.z.handleMouseEnter=function(){this.mouseOver=!0};
_.z.handleMouseLeave=function(){this.mouseOver=!1};
_.z.handleReplay=function(Y){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),Y.stopPropagation(),this.logClientVe(159408))};
_.z.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()))};
_.z.handleKeypress=function(Y){this.data&&(this.isEditMode?Y.stopPropagation():this.isEnterPress(Y)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(Y)&&this.logClientVe(138758))};
_.z.handleTextboxClick=function(Y){Y.stopPropagation()};
_.z.handleTextboxKeydown=function(Y){this.isControlEnterPress(Y)?this.handleSubmit(Y):Y.key==="Escape"&&this.handleCancel(Y)};
_.z.handleTextboxKeyup=function(){this.textChanged=_.Ma(this.latestText)!==String(this.ironTextAreaElement.value)};
_.z.fireSelectedEvent=function(Y){_.ms(this.hostElement,"yt-transcript-segment-selected",{startMs:Y})};
_.z.fireReplayEvent=function(Y,S){_.ms(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(Y-100,0),endMs:S})};
_.z.fireEditEvent=function(Y,S){_.ms(this.hostElement,"yt-transcript-segment-edit",{startMs:Y,endMs:S})};
_.z.isEnterPress=function(Y){return Y.key==="Enter"||Y.code==="Enter"||Y.code==="NumpadEnter"||Y.keyCode===13?!0:!1};
_.z.isControlEnterPress=function(Y){var S=Y.key==="Enter"||Y.code==="Enter"||Y.code==="NumpadEnter"||Y.keyCode===13;return(Y.ctrlKey||Y.metaKey)&&S};
_.z.isCopyPress=function(Y){var S=Y.ctrlKey;return Y.key==="c"&&S};
_.z.logClick=function(){var Y,S=(Y=this.data)==null?void 0:Y.trackingParams;S&&_.uA(_.BF(),S)};
_.z.logClientVe=function(Y){_.Pp(_.BF(),_.TI(Y))};
_.y6.Object.defineProperties(k6.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}}});
k6.prototype.handleMouseLeave=k6.prototype.handleMouseLeave;k6.prototype.handleMouseEnter=k6.prototype.handleMouseEnter;k6.prototype.dataChanged=k6.prototype.dataChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],k6.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],k6.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],k6.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],k6.prototype,"isEditMode",void 0);_.Q([_.X(),_.k("design:type",Object)],k6.prototype,"touchCaptionsEnabled",void 0);_.Q([_.X(),_.k("design:type",Object)],k6.prototype,"editedText",void 0);_.Q([_.X(),_.k("design:type",Object)],k6.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.Q([_.X(),_.k("design:type",Object)],k6.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.Q([_.X(),_.k("design:type",String)],k6.prototype,"segmentAriaLabel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],k6.prototype,"roundedContainer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],k6.prototype,"mouseOver",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],k6.prototype,"textChanged",void 0);_.Q([_.X(),_.k("design:type",Object)],k6.prototype,"messages",void 0);
_.Q([_.nc("#suggestion"),_.k("design:type",Object)],k6.prototype,"ironTextAreaElement",void 0);_.Q([_.d("data","editedText"),_.k("design:type",Object),_.k("design:paramtypes",[])],k6.prototype,"latestText",null);_.Q([_.d("touchCaptionsEnabled","isEditMode"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],k6.prototype,"enableEditButton",null);
_.Q([_.d("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],k6.prototype,"enableUndoButton",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],k6.prototype,"dataChanged",null);_.Q([_.WZ("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],k6.prototype,"handleMouseEnter",null);
_.Q([_.WZ("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],k6.prototype,"handleMouseLeave",null);k6=_.Q([_.t({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],k6);
_.A(k6,"ytd-transcript-segment-renderer",function(){if(Ezj!==void 0)return Ezj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ezj=Y},{mode:1});var MB=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};Y.isError=!1;Y.darkerPanels=_.f("web_watch_darker_panels");Y.segmentOffsets=[];Y.segmentIndex=-1;return Y};
_.r(MB,_.Z);_.z=MB.prototype;_.z.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"}}}}};
_.z.segmentsChanged=function(){this.updateOffsets()};
_.z.onYtPlayerTimeChanged=function(Y){for(var S=this.segmentIndex,P=S;;){if(P>=0){var u=this.segmentOffsets[P].start;var W=this.segmentOffsets[P].isAutoScrollable}else u=-1,W=!0;var m=Y+.5;if(!W){u=P+1<this.segmentOffsets.length?this.segmentOffsets[P+1].start:Infinity;if(m>=u){P+=1;continue}P=-1;break}if(m<u)u=P-1>=0&&this.segmentOffsets[P-1].isAutoScrollable,W=P===0||u?1:2,P-=W;else if(W=P+1<this.segmentOffsets.length&&this.segmentOffsets[P+1].isAutoScrollable?1:2,u=P+W<this.segmentOffsets.length?
this.segmentOffsets[P+W].start:Infinity,m>u)P+=W;else{if(P<0)break;P<this.segmentOffsets.length&&m>this.segmentOffsets[P].end&&(P=-1);break}}if(S!==P){if(S>=0){var J;(J=this.getSegmentElement(S))==null||J.classList.remove("active")}this.segmentIndex=P;if(!(P<0)){var c;(c=this.getSegmentElement(P))==null||c.classList.add("active");this.isHovered||this.scrollElementToTop(P)}}};
_.z.handleSegmentEdit=function(Y){Y.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=Y.target,_.nb(this.hostElement,"yt-transcript-player-edit",[Y.detail.startMs/1E3,Y.detail.endMs/1E3]))};
_.z.handleSegmentSelected=function(Y){_.nb(this.hostElement,"yt-transcript-player-seek",[Y.detail.startMs/1E3])};
_.z.handleSegmentReplay=function(Y){_.nb(this.hostElement,"yt-transcript-player-replay",[Y.detail.startMs/1E3,Y.detail.endMs/1E3])};
_.z.handleSectionHeaderSelected=function(Y){_.nb(this.hostElement,"yt-transcript-player-seek",[Y.detail.startMs/1E3])};
_.z.onMouseEnter=function(){this.isHovered=!0};
_.z.onMouseLeave=function(){this.isHovered=!1};
_.z.onRetryButtonClick=function(){_.ms(this.hostElement,"transcript-retry-button-click")};
_.z.getSegmentElement=function(Y){return _.I(this.hostElement).querySelector(":nth-child("+(Y+1)+")")};
_.z.scrollElementToTop=function(Y){Y=this.getSegmentElement(Y>=2?Y-2:0);this.hostElement.scrollTop=Math.min(Y.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.z.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(Y){var S,P=(S=Y.transcriptSegmentRenderer)!=null?S:Y.transcriptSectionHeaderRenderer;return{start:Number(P.startMs)/1E3,end:Number(P.endMs)/1E3,isAutoScrollable:Y.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.z.clearHighlightedSegments=function(){var Y=_.I(this.hostElement);Y=_.n(Y.querySelectorAll("ytd-transcript-segment-renderer"));for(var S=Y.next();!S.done;S=Y.next())S.value.classList.remove("active")};
_.y6.Object.defineProperties(MB.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:Y.searchResultSegments)||((S=this.data)==null?void 0:S.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
MB.prototype.onMouseLeave=MB.prototype.onMouseLeave;MB.prototype.onMouseEnter=MB.prototype.onMouseEnter;MB.prototype.handleSectionHeaderSelected=MB.prototype.handleSectionHeaderSelected;MB.prototype.handleSegmentReplay=MB.prototype.handleSegmentReplay;MB.prototype.handleSegmentSelected=MB.prototype.handleSegmentSelected;MB.prototype.handleSegmentEdit=MB.prototype.handleSegmentEdit;MB.prototype.segmentsChanged=MB.prototype.segmentsChanged;
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],MB.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],MB.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],MB.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],MB.prototype,"isError",void 0);
_.Q([_.X(),_.k("design:type",Object)],MB.prototype,"noResultLabel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],MB.prototype,"darkerPanels",void 0);_.Q([_.d("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],MB.prototype,"segments",null);_.Q([_.d("segments","noResultLabel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],MB.prototype,"displayNoResults",null);
_.Q([_.zY("segments"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MB.prototype,"segmentsChanged",null);_.Q([_.WZ("yt-transcript-segment-edit"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],MB.prototype,"handleSegmentEdit",null);_.Q([_.WZ("yt-transcript-segment-selected"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],MB.prototype,"handleSegmentSelected",null);
_.Q([_.WZ("yt-transcript-segment-replay"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],MB.prototype,"handleSegmentReplay",null);_.Q([_.WZ("ytd-transcript-section-header"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],MB.prototype,"handleSectionHeaderSelected",null);_.Q([_.WZ("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MB.prototype,"onMouseEnter",null);
_.Q([_.WZ("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MB.prototype,"onMouseLeave",null);MB=_.Q([_.t({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],MB);
_.A(MB,"ytd-transcript-segment-list-renderer",function(){if(KBX!==void 0)return KBX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return KBX=Y},{mode:1});var yY=function(){var Y=_.Z.apply(this,arguments)||this;Y.hideTimestamps=!!_.u4("hide-transcript-timestamps");Y.isLoadingTranscripts=!1;Y.darkerPanels=_.f("web_watch_darker_panels");Y.isError=!1;Y.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return Y};
_.r(yY,_.Z);_.z=yY.prototype;_.z.headerChanged=function(){var Y,S;this.baseGetTranscriptsCommand=(S=_.g((Y=this.data)==null?void 0:Y.header,SzX))==null?void 0:S.onTextChangeCommand};
_.z.bodyChanged=function(){var Y=this.getBodyRenderer();Y&&(Y.initialSegments&&(this.initialTranscriptsRenderer=Y),Y.noResultLabel&&(this.noResultLabel=Y.noResultLabel),Y.retryLabel&&(this.retryLabel=Y.retryLabel))};
_.z.detached=function(){this.clearSearchBoxText()};
_.z.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.z.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"}}}};
_.z.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.z.fireSearch=function(Y){var S=this;if(Y){var P=Y.detail.query;if(this.baseGetTranscriptsCommand){var u;Y=(u=_.g(this.baseGetTranscriptsCommand,_.cyt))==null?void 0:u.params;var W;u=_.g((W=this.data)==null?void 0:W.footer,lrc);var m;if((W=(m=_.g(u==null?void 0:u.languageMenu,NRI))==null?void 0:m.subMenuItems)&&W.length>0&&(m=W.find(function(C){return C.selected}))){var J,c;
Y=(J=m.continuation)==null?void 0:(c=J.reloadContinuationData)==null?void 0:c.continuation}J=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:Y,searchQuery:P}});this.ytComponentBehavior.resolveCommand(J,{commandController:{onServerError:function(){S.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});K7I(this.ytContinuationHandlerBehavior,function(){return P===S.getCurrentSearchBoxText()})}}};
_.z.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.z.onRetryButtonClick=function(){this.isError=!1;var Y={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:Y}))};
_.z.hideTimestampsChanged=function(){_.PU("hide-transcript-timestamps",this.hideTimestamps)};
_.z.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.z.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.z.handleSignalActionCopyTranscript=function(){var Y=this,S=this.getBodyRenderer();S&&(S=((S==null?void 0:S.searchResultSegments)||(S==null?void 0:S.initialSegments)||[]).map(function(P){return _.g(P,ulu)}).filter(function(P){return!!P}).map(function(P){return{snippet:P.snippet||{runs:[{text:""}]},
startTimeText:P.startTimeText||{simpleText:""}}}).map(function(P){var u=(P.snippet.runs||[]).reduce(function(W,m){return W+m.text},"");
return Y.hideTimestamps?u:P.startTimeText.simpleText+" "+u}).join("\n"),this.copyToClipboard(S))};
_.z.copyToClipboard=function(Y){navigator.clipboard&&navigator.clipboard.writeText(Y)};
_.z.getCurrentSearchBoxText=function(){var Y;return(Y=this.searchBox)==null?void 0:Y.value};
_.z.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.z.getBodyRenderer=function(){var Y;return _.g((Y=this.data)==null?void 0:Y.body,Px5)};
_.z.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.y6.Object.defineProperties(yY.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.I(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
yY.prototype.hideTimestampsChanged=yY.prototype.hideTimestampsChanged;yY.prototype.searchCleared=yY.prototype.searchCleared;yY.prototype.fireSearch=yY.prototype.fireSearch;yY.prototype.onReloadContinuationFinish=yY.prototype.onReloadContinuationFinish;yY.prototype.bodyChanged=yY.prototype.bodyChanged;yY.prototype.headerChanged=yY.prototype.headerChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],yY.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],yY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.I3),_.k("design:type",Object)],yY.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],yY.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],yY.prototype,"hideTimestamps",void 0);
_.Q([_.X(),_.k("design:type",Object)],yY.prototype,"isLoadingTranscripts",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],yY.prototype,"darkerPanels",void 0);_.Q([_.X(),_.k("design:type",Object)],yY.prototype,"isError",void 0);_.Q([_.zY("data.header"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yY.prototype,"headerChanged",null);
_.Q([_.cZ("data.body"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yY.prototype,"bodyChanged",null);_.Q([_.WZ("yt-reload-continuation-finish"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yY.prototype,"onReloadContinuationFinish",null);_.Q([_.WZ("yt-transcript-search-box-search"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],yY.prototype,"fireSearch",null);
_.Q([_.WZ("yt-transcript-search-box-clear"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yY.prototype,"searchCleared",null);_.Q([_.zY("hideTimestamps"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yY.prototype,"hideTimestampsChanged",null);yY=_.Q([_.t({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],yY);
_.A(yY,"ytd-transcript-search-panel-renderer",function(){if(bTd!==void 0)return bTd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return bTd=Y},{mode:1});var NB=function(){var Y=_.Z.apply(this,arguments)||this;Y.player=null;Y.playerPollJobId=0;return Y};
_.r(NB,_.Z);_.z=NB.prototype;_.z.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.z.onLoadReloadContinuation=function(Y){_.f("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:Y.target.data.continuation}}):(Y={clickTrackingParams:Y.target.data.clickTrackingParams,getTranscriptEndpoint:{params:Y.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}}))};
_.z.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"}}}};
_.z.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.z.attached=function(){this.updatePlayerListening()};
_.z.detached=function(){this.updatePlayerListening()};
_.z.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.z.startPlayerListening=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return(S=_.Q5())?_.q(P,S.getPlayerPromise(),2):P.return();Y.player=P.yieldResult;Y.playerPollJobId=_.wc.addLowPriorityJob(function(){Y.getPlayerVideoProgress()},1E3);
Y.player.addEventListener("onCueRangeEnter",function(u){Y.onCueRangeEnter(u)});
Y.player.addEventListener("onCueRangeExit",function(u){Y.onCueRangeExit(u)});
Y.player.addEventListener("onStateChange",function(u){Y.onPlayerStateChange(u)});
Y.player.addEventListener("SEEK_TO",function(u){Y.onPlayerSeek(u)});
_.Yt(P)})};
_.z.getPlayerVideoProgress=function(){var Y=this;_.wc.cancelJob(this.playerPollJobId);if(this.player){var S=this.player.getCurrentTime();_.nb(this.hostElement,"yt-player-time-changed",[S])}this.playerPollJobId=_.wc.addLowPriorityJob(function(){Y.getPlayerVideoProgress()},1E3)};
_.z.stopPlayerListening=function(){this.player=null;_.wc.cancelJob(this.playerPollJobId)};
_.z.onPlayerStateChange=function(Y){Y===2&&this.removePendingCue()};
_.z.onPlayerSeek=function(Y){var S;if(S=this.pendingReplayCueId)S=this.pendingReplayCueId,S=Y===(_.f("web_transcript_cue_id_killswitch")?Number(S):Number(S.split("_")[1]));S||this.removePendingCue()};
_.z.onCueRangeEnter=function(Y){ZF1(Y)&&(this.pendingReplayCueId=Y)};
_.z.onCueRangeExit=function(Y){ZF1(Y)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.z.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.z.onYtTranscriptPlayerSeek=function(Y){this.player&&this.player.seekTo(Y,!0)};
_.z.onYtTranscriptPlayerReplay=function(Y,S){this.player&&(this.player.addCueRange(XNj(Y),Y,S),this.player.seekTo(Y,!0),this.player.playVideo())};
_.z.onYtTranscriptPlayerEdit=function(Y,S){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(XNj(Y),Y,S),this.player.seekTo(Y,!0))};
NB.prototype.onLoadReloadContinuation=NB.prototype.onLoadReloadContinuation;NB.prototype.panelContentVisibleChanged=NB.prototype.panelContentVisibleChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],NB.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],NB.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],NB.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],NB.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],NB.prototype,"panelContentVisible",void 0);_.Q([_.zY("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NB.prototype,"panelContentVisibleChanged",null);
_.Q([_.WZ("yt-load-reload-continuation"),_.k("design:type",Function),_.k("design:paramtypes",[Object]),_.k("design:returntype")],NB.prototype,"onLoadReloadContinuation",null);NB=_.Q([_.t({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],NB);
_.A(NB,"ytd-transcript-renderer",function(){if(RQ_!==void 0)return RQ_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return RQ_=Y},{mode:1});var fh6;var gzX;var HA=function(){return _.Z.apply(this,arguments)||this};
_.r(HA,_.Z);HA.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.cu(this.hostElement,[this.data.clickCommand],this.hostElement))};
HA.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.$0)()+_.dJ)+"px)"};
HA.prototype.updateShouldHideFromBinding=function(Y){this.shouldHide=Y.detail.value};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],HA.prototype,"rendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],HA.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],HA.prototype,"shouldHide",void 0);HA=_.Q([_.t({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],HA);
_.A(HA,"ytd-ad-engagement-panel-banner-renderer",function(){if(gzX!==void 0)return gzX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return gzX=Y},{mode:_.OX("kevlar_poly_si_batch_j070")?1:2});var $6Y;var VY=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernPanels=_.f("kevlar_watch_modern_panels");Y.buttonUpdate=_.f("web_modern_buttons");Y.adsSemanticText=_.f("enable_ads_web_ep_buenos_aires_and_padding_fix");return Y};
_.r(VY,_.Z);VY.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.Q([_.X(),_.k("design:type",Object)],VY.prototype,"data",void 0);_.Q([_.X({computed:"computeHideDefaultAdBadge(data)"}),_.k("design:type",Boolean)],VY.prototype,"hideDefaultAdBadge",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],VY.prototype,"modernPanels",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],VY.prototype,"buttonUpdate",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],VY.prototype,"adsSemanticText",void 0);
VY=_.Q([_.t({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],VY);
_.A(VY,"ytd-engagement-panel-ad-subtitle-renderer",function(){if($6Y!==void 0)return $6Y;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return $6Y=Y},{mode:1});var rSY;var eg=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerPanels=_.f("web_watch_darker_panels");Y.enableSqueezebackPanels=_.f("web_shorts_enable_squeezeback_panels");Y.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");Y.modernPanels=_.f("kevlar_watch_modern_panels");Y.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return Y};
_.r(eg,_.Z);_.z=eg.prototype;_.z.computeAdsInfoButton=function(){if(_.f("web_modern_buttons")){var Y,S;return(S=_.g((Y=this.data)==null?void 0:Y.subtitleComplex,Xld))==null?void 0:S.adInfoRenderer}};
_.z.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}}}}}};
_.z.collapsedChanged=function(){var Y;(Y=this.data)!=null&&Y.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.f("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.z.focus=function(Y){this.titleElement&&_.NR(this.titleElement,Y)};
_.z.computeTitleAriaLabel=function(Y){var S=[];if(Y.title){var P,u;S.push(this.ytRendererBehavior.getSimpleString(Y.title)||((P=Y.title.accessibility)==null?void 0:(u=P.accessibilityData)==null?void 0:u.label))}Y.contextualInfo&&S.push(this.ytRendererBehavior.getSimpleString(Y.contextualInfo));return S.join(" ")};
_.z.onHeaderClick=function(Y){this.shouldTriggerHeaderClick(Y)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.cu(this.hostElement,[this.data.onClickCommand],this.hostElement)):(Y=this.getVisibilityToggleButton())&&Y.click())};
_.z.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var Y=_.g(this.data.visibilityButton,_.I8)||_.g(this.data.visibilityButton,_.a8);Y&&this.ytRendererBehavior.logExplicitClick(Y)}};
_.z.getVisibilityToggleButton=function(){var Y=_.I(this.hostElement).querySelector("#visibility-button").firstElementChild;return(Y==null?void 0:Y.is)==="ytd-toggle-button-renderer"?Y:null};
_.z.shouldTriggerHeaderClick=function(Y){return!_.iN(_.iM(Y),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.z.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(Y){Y=_.g(Y,_.Ir1);this.targetId&&(Y==null?void 0:Y.targetId)===this.targetId&&(Y=Y.navigationButton)&&this.set("data.navigationButton",Y)};
_.y6.Object.defineProperties(eg.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var Y;return!!(((Y=this.entity)==null?0:Y.isActionButtonHidden)||this.hideActionButton)}}});
eg.prototype.collapsedChanged=eg.prototype.collapsedChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],eg.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],eg.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],eg.prototype,"ytdReduxBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],eg.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],eg.prototype,"targetId",void 0);_.Q([_.X(),_.k("design:type",Boolean)],eg.prototype,"collapsed",void 0);_.Q([_.X(),_.k("design:type",Boolean)],eg.prototype,"hideActionButton",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],eg.prototype,"shortsPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],eg.prototype,"liveChatEngagementPanel",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eg.prototype,"darkerPanels",void 0);_.Q([_.nc("#title"),_.k("design:type",HTMLElement)],eg.prototype,"titleElement",void 0);_.Q([_.X({computed:"computeAdsInfoButton(data)"}),_.k("design:type",Object)],eg.prototype,"adsInfoButton",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eg.prototype,"enableSqueezebackPanels",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eg.prototype,"enableAnchoredPanel",void 0);_.Q([_.X({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"engagementPanelTitleHeaderEntity",S)}}),
_.k("design:type",Object)],eg.prototype,"entity",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eg.prototype,"modernPanels",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],eg.prototype,"adsSemanticText",null);_.Q([_.cZ("collapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eg.prototype,"collapsedChanged",null);
_.Q([_.d("entity","hideActionButton"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],eg.prototype,"isActionButtonHidden",null);eg=_.Q([_.t({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],eg);
_.A(eg,"ytd-engagement-panel-title-header-renderer",function(){if(rSY!==void 0)return rSY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return rSY=Y},{mode:1});var GD1;var Ol=function(){return _.Z.apply(this,arguments)||this};
_.r(Ol,_.Z);Ol.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Ol.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ol.prototype,"data",void 0);Ol=_.Q([_.t({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Ol);
_.A(Ol,"ytd-macro-markers-info-item-renderer",function(){if(GD1!==void 0)return GD1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return GD1=Y},{mode:1});var hQo;var Ih5=function(Y,S,P,u,W,m){_.R6.call(this);var J=this;this.JSC$19953_containerElement=Y;this.hostElement=S;this.supportedSyncItems=P;this.syncEntityKey=u;this.options=W;this.renderLazyListItems=m;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;vzo(this);D6o(this);this.JSC$19953_scrollAnimation=new _.GK(function(c){Y.scrollTop=c});
_.Ph(this,this.JSC$19953_scrollAnimation);this.addOnDisposeCallback(function(){J.exitBrowsingMode(!1);J.activeItem&&J.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.r(Ih5,_.R6);var vzo=function(Y){var S=_.J5(_.E().resolve(_.Ee),function(P){return P.entities.markersEngagementPanelSyncEntity||{}},function(P,u){var W;
P[Y.syncEntityKey]!==u[Y.syncEntityKey]&&((W=P[Y.syncEntityKey])==null?void 0:W.activeItemIndex)!==void 0&&Y.updatePanelActiveItem(P[Y.syncEntityKey].activeItemIndex)});
Y.unsubscribeFromTimedMarkersListSyncEntity=S;Y.addOnDisposeCallback(S);ahc(Y)},ahc=function(Y){var S=_.E().resolve(_.Ee);
S=_.DjY(S.getState(),Y.syncEntityKey);(S==null?void 0:S.activeItemIndex)!==void 0&&(S=Y.getItemByIndex(S.activeItemIndex))&&Y.setActiveItem(S)},D6o=function(Y){var S=new _.NE(Y.onScroll,50,Y);
_.Ph(Y,S);var P=function(){S.fire()};
Y.JSC$19953_containerElement.addEventListener("scroll",P);Y.addOnDisposeCallback(function(){Y.JSC$19953_containerElement.removeEventListener("scroll",P)})};
_.z=Ih5.prototype;
_.z.updatePanelActiveItem=function(Y){var S=this.getItemByIndex(Y);if(S){if(this.setActiveItem(S),this.contentVisible)if(this.browsingMode){var P;((P=this.options)==null?void 0:P.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Y=LB_(this),S.offsetTop<this.JSC$19953_containerElement.clientHeight+this.JSC$19953_containerElement.scrollTop&&Y&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));wII(this)}else this.scrollToItem(S)}else _.sf(new _.$2("Could not find "+this.supportedSyncItems+
" sync child to set active.",Y,this.JSC$19953_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.z.getItemByIndex=function(Y){var S;(S=this.renderLazyListItems)==null||S.call(this,Y);S=this.JSC$19953_containerElement.querySelectorAll(this.supportedSyncItems);if(S.length>Y)return S[Y]};
_.z.setActiveItem=function(Y){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));Y.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=Y};
_.z.scrollToItem=function(Y){Y=this.getScrollPositionForItem(Y);this.JSC$19953_containerElement.scrollTop!==Y&&this.JSC$19953_scrollAnimation.start(this.JSC$19953_containerElement.scrollTop,Y,300)};
_.z.getScrollPositionForItem=function(Y){if(this.JSC$19953_containerElement.querySelectorAll(this.supportedSyncItems)[0]===Y)return 0;var S,P=((S=this.options)==null?0:S.percentOffset)?this.JSC$19953_containerElement.clientHeight*this.options.percentOffset:0;Y=_.gh(Y).y+this.JSC$19953_containerElement.scrollTop-(_.gh(this.JSC$19953_containerElement).y+P);return Math.max(0,Math.min(Y,this.JSC$19953_containerElement.scrollHeight-this.JSC$19953_containerElement.offsetHeight))};
_.z.onScroll=function(){this.activeItemBelowSyncPosition=LB_(this);if(this.activeItem&&!this.JSC$19953_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19953_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var Y;switch((Y=this.options)==null?void 0:Y.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!pIc(this));wII(this);break;default:this.enterBrowsingMode(!0)}}};
_.z.enterBrowsingMode=function(Y){var S=this,P,u;return _.B(function(W){if(W.nextAddress==1){if(S.browsingMode)return W.return();S.browsingMode=!0;Y&&S.hostElement.classList.add("browsing-mode");S.playerExitBrowsingModeListener=function(){S.exitBrowsingMode(!1)};
return _.q(W,_.SF(),2)}P=W.yieldResult;(u=P)==null||u.addEventListener("SEEK_TO",S.playerExitBrowsingModeListener);_.Yt(W)})};
_.z.exitBrowsingMode=function(Y){Y=Y===void 0?!0:Y;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),Y&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.z.removePlayerSeekListener=function(){var Y=this,S,P;return _.B(function(u){if(u.nextAddress==1)return Y.playerExitBrowsingModeListener?_.q(u,_.SF(),3):u.jumpTo(0);S=u.yieldResult;(P=S)==null||P.removeEventListener("SEEK_TO",Y.playerExitBrowsingModeListener);Y.playerExitBrowsingModeListener=void 0;_.Yt(u)})};
var wII=function(Y){var S;((S=Y.options)==null?void 0:S.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(pIc(Y)?Y.hostElement.classList.remove("browsing-mode"):Y.activeItem&&Y.hostElement.classList.add("browsing-mode"))},LB_=function(Y){if(!Y.activeItem)return!1;
var S,P=((S=Y.options)==null?0:S.percentOffset)?Y.JSC$19953_containerElement.clientHeight*Y.options.percentOffset:0;return Y.activeItem.offsetTop>=Y.JSC$19953_containerElement.scrollTop+P},pIc=function(Y){if(!Y.activeItem)return!1;
var S=Y.activeItem.offsetTop+14<=Y.JSC$19953_containerElement.scrollTop+Y.JSC$19953_containerElement.clientHeight;return Y.activeItem.offsetTop+Y.activeItem.clientHeight-14>=Y.JSC$19953_containerElement.scrollTop&&S};
Ih5.prototype.panelContentVisibleChanged=function(Y){(this.contentVisible=Y)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var FB_=function(Y,S){Y.syncEntityKey=S;var P;(P=Y.unsubscribeFromTimedMarkersListSyncEntity)==null||P.call(Y);vzo(Y)},sCY=function(Y,S){Y.options=S};var Yv=function(){var Y=_.Z.apply(this,arguments)||this;Y.browsingMode=!1;Y.modern=_.f("web_button_rework");Y.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return Y};
_.r(Yv,_.Z);_.z=Yv.prototype;_.z.activeItemChanged=function(){if(!_.f("synced_panel_scrolling_controller")){var Y;((Y=this.syncEntity)==null?void 0:Y.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.z.created=function(){var Y=this;_.f("synced_panel_scrolling_controller")||(this.JSC$19957_scrollAnimation=new _.GK(function(S){Y.contents.scrollTop=S}),this.boundExitBrowsingMode=function(){Y.exitBrowsingMode(!1)})};
_.z.detached=function(){if(_.f("synced_panel_scrolling_controller")){var Y;(Y=this.scrollController)==null||Y.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.z.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"}}}};
_.z.dataChanged=function(){var Y=this;_.f("synced_panel_scrolling_controller")?_.ky(this,function(){if(Y.scrollController){var S;(S=Y.scrollController)==null||S.exitBrowsingMode(!1);var P,u,W;(u=Y.scrollController)==null||FB_(u,(W=(P=Y.data)==null?void 0:P.syncModelEntityKey)!=null?W:"default-macro-markers-list-renderer-entity-key");var m,J,c;(c=Y.scrollController)==null||sCY(c,{percentOffset:(m=Y.data)==null?void 0:m.selectedItemAlignmentPercentOffset,floatingPillType:(J=Y.data)==null?void 0:J.floatingPillType})}else{var C,
x,b,T;Y.scrollController=new Ih5(Y.contents,Y.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(T=(C=Y.data)==null?void 0:C.syncModelEntityKey)!=null?T:"default-macro-markers-list-renderer-entity-key",{percentOffset:(x=Y.data)==null?void 0:x.selectedItemAlignmentPercentOffset,floatingPillType:(b=Y.data)==null?void 0:b.floatingPillType},function(K){Y.renderLazyListItems(K)})}Y.scrollController.panelContentVisibleChanged(!!Y.panelContentVisible)}):this.exitBrowsingMode()};
_.z.computeButtonShape=function(){var Y=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){Y.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.z.computeSyncEnabled=function(Y){return!(Y==null||!Y.syncButtonLabel)};
_.z.renderLazyListItems=function(Y){for(var S=this.contents.children,P=0,u=0;u<S.length;u++){var W=void 0;(W=S[u].ytLazyListBehavior)==null||W.fillRemainingListItems();var m=void 0,J=void 0;W=_.g((m=this.data)==null?void 0:(J=m.contents)==null?void 0:J[u],_.R5X);J=m=void 0;if((m=W)==null?0:(J=m.contents)==null?0:J.length)P+=W.contents.length;if(P>=Y)break}};
_.z.getItemByIndex=function(Y){this.renderLazyListItems(Y);var S=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(S.length>Y)return S[Y]};
_.z.setActiveItem=function(Y){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);Y.active!==void 0&&(Y.active=!0);this.currentActiveItem=Y};
_.z.handleSetActivePanelItemAction=function(Y){if((Y=_.g(Y,L7j))&&this.panelTargetId===Y.panelTargetId){Y=Y.itemIndex;if(_.f("synced_panel_scrolling_controller")){var S,P;var u=(P=(S=this.data)==null?void 0:S.syncModelEntityKey)!=null?P:"default-macro-markers-list-renderer-entity-key"}else{var W;u=(W=this.data)==null?void 0:W.syncModelEntityKey}if(u){var m;((m=this.syncEntity)==null?void 0:m.activeItemIndex)!==Y&&this.ytdReduxBehavior.dispatch(_.qE("markersEngagementPanelSyncEntity",u,{key:u,activeItemIndex:Y}))}else this.updatePanelActiveItem(Y)}};
_.z.updatePanelActiveItem=function(Y){var S=this.getItemByIndex(Y);S?(this.setActiveItem(S),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(S)):_.sf(new _.$2("Could not find ytd-macro-markers-list-renderer sync child to set active.",Y,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.z.scrollToItem=function(Y){Y=this.getScrollPositionForItem(Y);this.contents.scrollTop!==Y&&this.JSC$19957_scrollAnimation.start(this.contents.scrollTop,Y,300)};
_.z.getScrollPositionForItem=function(Y){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===Y)return 0;Y=_.gh(Y).y+this.contents.scrollTop-_.gh(this.contents).y-this.getStickyHeaderHeight(Y);return Math.min(Y,this.contents.scrollHeight-this.contents.offsetHeight)};
_.z.getStickyHeaderHeight=function(Y){if(Y.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var S,P,u;return(u=(S=Y.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(P=S.header)==null?void 0:P.offsetHeight)!=null?u:0}return 0};
_.z.onScroll=function(){_.f("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$19957_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.z.enterBrowsingMode=function(){var Y=this;return _.B(function(S){if(S.nextAddress==1){if(Y.browsingMode)return S.return();Y.browsingMode=!0;return _.q(S,_.ks().getPlayerPromise(),2)}Y.player=S.yieldResult;Y.player.addEventListener("SEEK_TO",Y.boundExitBrowsingMode);_.Yt(S)})};
_.z.exitBrowsingMode=function(Y){this.browsingMode&&(this.browsingMode=!1,(Y===void 0||Y)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.z.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.z.onSyncClick=function(){if(_.f("synced_panel_scrolling_controller")){var Y;(Y=this.scrollController)==null||Y.exitBrowsingMode()}else this.exitBrowsingMode()};
_.z.panelContentVisibleChanged=function(){if(_.f("synced_panel_scrolling_controller")){var Y;(Y=this.scrollController)==null||Y.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Yv.prototype.panelContentVisibleChanged=Yv.prototype.panelContentVisibleChanged;Yv.prototype.dataChanged=Yv.prototype.dataChanged;Yv.prototype.activeItemChanged=Yv.prototype.activeItemChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Yv.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Yv.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Yv.prototype,"data",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Yv.prototype,"useCustomColors",void 0);_.Q([_.X({computed:"computeSyncEnabled(data)"}),_.k("design:type",Boolean)],Yv.prototype,"syncEnabled",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],Yv.prototype,"panelTargetId",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Yv.prototype,"panelContentVisible",void 0);_.Q([_.nc("#contents"),_.k("design:type",HTMLElement)],Yv.prototype,"contents",void 0);_.Q([_.nc("#sync-container"),_.k("design:type",HTMLElement)],Yv.prototype,"syncContainer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yv.prototype,"browsingMode",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Yv.prototype,"modern",void 0);_.Q([_.X({selectorArgs:["data.syncModelEntityKey"],selector:_.DjY}),_.k("design:type",Object)],Yv.prototype,"syncEntity",void 0);_.Q([_.zY("syncEntity.activeItemIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yv.prototype,"activeItemChanged",null);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yv.prototype,"dataChanged",null);_.Q([_.zY("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yv.prototype,"panelContentVisibleChanged",null);Yv=_.Q([_.t({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Yv);
_.A(Yv,"ytd-macro-markers-list-renderer",function(){if(hQo!==void 0)return hQo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return hQo=Y},{mode:1});var d6Z;var SO=function(){return _.Z.apply(this,arguments)||this};
_.r(SO,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],SO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],SO.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],SO.prototype,"data",void 0);SO=_.Q([_.t({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],SO);
_.A(SO,"ytd-error-corrections-section-item-renderer",function(){if(d6Z!==void 0)return d6Z;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return d6Z=Y},{mode:1});var lhZ;var PE=function(){return _.Z.apply(this,arguments)||this};
_.r(PE,_.Z);PE.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],PE.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],PE.prototype,"data",void 0);PE=_.Q([_.t({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],PE);
_.A(PE,"ytd-error-corrections-section-renderer",function(){if(lhZ!==void 0)return lhZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return lhZ=Y},{mode:1});var XI6;var u$=function(){return _.Z.apply(this,arguments)||this};
_.r(u$,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],u$.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],u$.prototype,"data",void 0);u$=_.Q([_.t({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],u$);
_.A(u$,"ytd-topic-link-renderer",function(){if(XI6!==void 0)return XI6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return XI6=Y},{mode:1});var ZT_;var WE=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("kevlar_modern_sd_v2");Y.modernLockupV2=_.f("modernize_structured_description_playlist_lockups_v2");Y.modernTypography=_.f("web_modern_typography");return Y};
_.r(WE,_.Z);WE.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],WE.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],WE.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],WE.prototype,"modern",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],WE.prototype,"modernLockupV2",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],WE.prototype,"modernTypography",void 0);WE=_.Q([_.t({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],WE);
_.A(WE,"ytd-video-description-course-section-renderer",function(){if(ZT_!==void 0)return ZT_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ZT_=Y},{mode:1});var iTo;var zW=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("kevlar_modern_sd_v2");Y.modernTypography=_.f("web_modern_typography");return Y};
_.r(zW,_.Z);zW.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],zW.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],zW.prototype,"modern",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],zW.prototype,"modernTypography",void 0);
zW=_.Q([_.t({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],zW);
_.A(zW,"ytd-video-description-files-section-renderer",function(){if(iTo!==void 0)return iTo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return iTo=Y},{mode:1});var ozX;var mY=function(){return _.Z.apply(this,arguments)||this};
_.r(mY,_.Z);mY.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],mY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],mY.prototype,"data",void 0);mY=_.Q([_.t({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],mY);
_.A(mY,"ytd-video-description-gaming-section-renderer",function(){if(ozX!==void 0)return ozX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return ozX=Y},{mode:1});var tnZ;var n9=function(){var Y=_.Z.apply(this,arguments)||this;Y.isExpanded=!1;return Y};
_.r(n9,_.Z);n9.prototype.computeHasDefaultMetadataEndpoint=function(Y){var S;Y=Y==null?void 0:(S=Y.defaultMetadata)==null?void 0:S.runs;return!(!Y||Y.length!==1||!Y[0].navigationEndpoint)};
n9.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.y6.Object.defineProperties(n9.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],n9.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],n9.prototype,"isExpanded",void 0);_.Q([_.X({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],n9.prototype,"hasDefaultMetadataEndpoint",void 0);
_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],n9.prototype,"isExpandable",null);_.Q([_.d("data","isExpandable","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],n9.prototype,"showExpandedMetadata",null);n9=_.Q([_.t({is:"ytd-info-row-renderer",disableElementRegistration:!0})],n9);
_.A(n9,"ytd-info-row-renderer",function(){if(tnZ!==void 0)return tnZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return tnZ=Y},{mode:1});var ASo;var jO=function(){var Y=_.Z.apply(this,arguments)||this;Y.currentIndex=0;Y.supportComponentResize=!0;Y.modern=_.f("kevlar_modern_sd_v2");Y.JSC$19983_lastScrollContainerWidth=NaN;return Y};
_.r(jO,_.Z);_.z=jO.prototype;
_.z.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"}}}};
_.z.getItemsPath=function(){return"videoLockups"};
_.z.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.z.onIronResize=function(){this.updateVideoLockupStyles()};
_.z.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.z.updateVideoLockupStyles=function(){var Y;this.JSC$19983_scrollContainer!==void 0&&(Y=this.videoLockups)!=null&&Y.length&&(Y=this.JSC$19983_scrollContainer.clientWidth,Y!==this.JSC$19983_lastScrollContainerWidth&&(this.JSC$19983_lastScrollContainerWidth=Y,_.PZ(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(Y*.8,415)+"px"}),_.ms(this.hostElement,"iron-resize")))};
_.y6.Object.defineProperties(jO.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var Y=[],S;if((S=this.data)==null||!S.carouselLockups)return Y;S=_.n(this.data.carouselLockups);for(var P=S.next();!P.done;P=S.next()){P=P.value;var u=void 0;((u=_.g(P,n3c))==null?0:u.videoLockup)&&Y.push(_.g(P,n3c).videoLockup)}return Y}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.videoLockups)==null||!Y.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var Y=[],S;if((S=this.data)==null||!S.carouselLockups)return Y;var P;return(P=_.g(this.data.carouselLockups[this.scrollCount],n3c))==null?void 0:P.infoRows}}});
jO.prototype.dataChanged=jO.prototype.dataChanged;jO.prototype.onIronResize=jO.prototype.onIronResize;jO.prototype.hiddenChanged=jO.prototype.hiddenChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],jO.prototype,"componentBehavior",void 0);_.Q([_.p(_.kR.YtdHorizontalListBehavior),_.k("design:type",Object)],jO.prototype,"ytdHorizontalListBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],jO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],jO.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],jO.prototype,"inlineStructuredDescription",void 0);_.Q([_.X({value:2}),_.k("design:type",Number)],jO.prototype,"initialCount",void 0);_.Q([_.X(),_.k("design:type",Object)],jO.prototype,"currentIndex",void 0);
_.Q([_.X(),_.k("design:type",Number)],jO.prototype,"scrollCount",void 0);_.Q([_.X(),_.k("design:type",Object)],jO.prototype,"supportComponentResize",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],jO.prototype,"contentHidden",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],jO.prototype,"modern",void 0);_.Q([_.nc("#scroll-container"),_.k("design:type",HTMLDivElement)],jO.prototype,"JSC$19983_scrollContainer",void 0);
_.Q([_.zY("contentHidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jO.prototype,"hiddenChanged",null);_.Q([_.d("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],jO.prototype,"videoLockups",null);_.Q([_.d("videoLockups"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],jO.prototype,"hasVideoLockups",null);
_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jO.prototype,"onIronResize",null);_.Q([_.d("data","scrollCount"),_.k("design:type",Object),_.k("design:paramtypes",[])],jO.prototype,"infoRows",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jO.prototype,"dataChanged",null);jO=_.Q([_.t({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],jO);
_.A(jO,"ytd-video-description-music-section-renderer",function(){if(ASo!==void 0)return ASo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return ASo=Y},{mode:_.OX("kevlar_poly_si_batch_j081")?1:2});var U6u;var JH=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("kevlar_modern_sd_v2");Y.modernTypography=_.f("web_modern_typography");return Y};
_.r(JH,_.Z);JH.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],JH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.Q([_.X({}),_.k("design:type",Object)],JH.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],JH.prototype,"modern",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],JH.prototype,"modernTypography",void 0);
JH=_.Q([_.t({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],JH);
_.A(JH,"ytd-video-description-transcript-section-renderer",function(){if(U6u!==void 0)return U6u;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return U6u=Y},{mode:1});var QCI;_.AL(_.AI(function(Y){var S=_.Jq(_.OeU,function(){return Y.data().firstProviderLinkStatusEntityKey}),P=_.Jq(_.OeU,function(){return Y.data().secondProviderLinkStatusEntityKey}),u=function(){var W,m;
return((W=S())==null?void 0:W.linked)||((m=P())==null?void 0:m.linked)};
return _.R("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.R(_.qw,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return Y.data().sectionTitle}}),_.R(_.qw,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return u()?Y.data().connectedMessage:Y.data().notConnectedMessage}}),_.R(_.gw,{cond:u,
then:function(){return _.R(_.rv,{data:function(){return Y.data().connectedButton}},{buttonViewModel:function(W){return _.R(_.aq,{data:W.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.R(_.gw,{cond:function(){return!u()},
then:function(){return _.R(_.rv,{data:function(){return Y.data().notConnectedButton}},{buttonViewModel:function(W){return _.R(_.aq,{data:W.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"ci"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;return _.R("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.R("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.R(_.qw,{text:function(){return S().sectionTitle}})),_.R("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.R(_.qw,{text:function(){return S().bodyHeader}})),_.R("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.R(_.qw,{text:function(){return S().bodyText}})),_.R(_.gw,
{cond:function(){return S().attributionText},
then:function(){return _.R("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.R(_.qw,{text:function(){return S().attributionText}}))}}))},"di"),"how-this-was-made-section-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){return _.R("yt-video-description-youchat-section-view-model",{class:_.Si("ytVideoDescriptionYouchatSectionViewModelHost")},_.R("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.R(_.qw,{text:function(){return Y.data().sectionTitle}})),_.R("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.R(_.qw,{text:function(){return Y.data().subHeaderText}})),_.R("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.R(_.aq,{data:function(){return _.g(Y.data().primaryButton,
_.Gz)}})))},"ei"),"yt-video-description-youchat-section-view-model",{props:{data:_.wm}});var BE=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("kevlar_modern_sd_v2");Y.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return Y};
_.r(BE,_.Z);_.z=BE.prototype;
_.z.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}}}}}};
_.z.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.z.dataChanged=function(){var Y,S;this.hasDescriptionOnly=!(((Y=this.data)==null?void 0:(S=Y.items)==null?void 0:S.length)!==1||!_.g(this.data.items[0],jXu))};
_.z.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.z.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.z.autoFocusDescription=function(){var Y;((Y=_.E().resolve(_.PQ(_.Tz)))==null?0:Y.isKeyBoardInUse())&&this.description&&_.H_(this.description)};
_.z.resize=function(){if(_.f("kevlar_disable_sd_resize"))this.JSC$19991_cardList&&_.ms(this.JSC$19991_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.ms(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.ms(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.z.scrollToSection=function(Y){if(Y=this.getSectionElement(Y))_.nb(this.hostElement,"yt-scroll-to-watch-element",[Y]),Y.focus()};
_.z.getSectionElement=function(Y){switch(Y){case "infocards-item-section":var S;return(S=this.infocardsSection)!=null?S:null;case "transcript-item-section":var P;return(P=this.transcriptSection)!=null?P:null;case "how-this-was-made-section-item-section":var u;return(u=this.howThisWasMadeSection)!=null?u:null;case "files-item-section":var W;return(W=this.filesSection)!=null?W:null;default:return null}};
_.z.handleSetActiveItemAction=function(Y){var S=_.g(Y,L7j),P=S&&(S==null?void 0:S.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$19991_cardList;if(S&&P){Y=this.currentActiveChapter;var u=this.currentActiveProblem;S=P==null?void 0:P.getItemByIndex(S.itemIndex);var W=P=!0;S&&(S.active=!0,S.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(P=Y!==S,W=!1,this.currentActiveChapter=S):(S==null?void 0:S.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(P=!1,W=u!==S,this.currentActiveProblem=S));Y&&P&&(Y.active=!1);u&&W&&(u.active=!1)}};
_.y6.Object.defineProperties(BE.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.f("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
BE.prototype.onYtExpanderMoreTapped=BE.prototype.onYtExpanderMoreTapped;BE.prototype.onHiddenChanged=BE.prototype.onHiddenChanged;BE.prototype.dataChanged=BE.prototype.dataChanged;BE.prototype.panelContentVisibleChanged=BE.prototype.panelContentVisibleChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],BE.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],BE.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.G8),_.k("design:type",Object)],BE.prototype,"ironResizableBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],BE.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],BE.prototype,"panelContentVisible",void 0);_.Q([_.X(),_.k("design:type",Boolean)],BE.prototype,"hasDescriptionOnly",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],BE.prototype,"inlineStructuredDescription",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],BE.prototype,"hidden",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],BE.prototype,"shortsPanel",void 0);_.Q([_.X(),_.k("design:type",Object)],BE.prototype,"videoSummary",void 0);_.Q([_.X(),_.k("design:type",Object)],BE.prototype,"merchShelf",void 0);
_.Q([_.d("videoSummary"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BE.prototype,"showVideoSummary",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],BE.prototype,"modern",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],BE.prototype,"engagementPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],BE.prototype,"watchWhileSdp",void 0);
_.Q([_.nc("ytd-expandable-video-description-body-renderer"),_.k("design:type",Object)],BE.prototype,"description",void 0);_.Q([_.nc("ytd-horizontal-card-list-renderer"),_.k("design:type",Object)],BE.prototype,"JSC$19991_cardList",void 0);_.Q([_.nc("ytd-horizontal-card-list-renderer[center-items]"),_.k("design:type",Object)],BE.prototype,"problemWalkthroughCardList",void 0);_.Q([_.nc("ytd-shelf-renderer"),_.k("design:type",Object)],BE.prototype,"shelfSection",void 0);
_.Q([_.nc("ytd-video-description-music-section-renderer"),_.k("design:type",Object)],BE.prototype,"musicMetadataSection",void 0);_.Q([_.nc("ytd-video-description-infocards-section-renderer"),_.k("design:type",Object)],BE.prototype,"infocardsSection",void 0);_.Q([_.nc("ytd-video-description-transcript-section-renderer"),_.k("design:type",Object)],BE.prototype,"transcriptSection",void 0);
_.Q([_.nc("how-this-was-made-section-view-model"),_.k("design:type",Object)],BE.prototype,"howThisWasMadeSection",void 0);_.Q([_.nc("ytd-video-description-files-section-renderer"),_.k("design:type",Object)],BE.prototype,"filesSection",void 0);_.Q([_.zY("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BE.prototype,"panelContentVisibleChanged",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BE.prototype,"dataChanged",null);_.Q([_.zY("hidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BE.prototype,"onHiddenChanged",null);_.Q([_.WZ("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BE.prototype,"onYtExpanderMoreTapped",null);
BE=_.Q([_.t({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],BE);
_.A(BE,"ytd-structured-description-content-renderer",function(){if(QCI!==void 0)return QCI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return QCI=Y},{mode:2});var kDI;var MnY;var cE=function(){return _.Z.apply(this,arguments)||this};
_.r(cE,_.Z);cE.prototype.computeAriaLabel=function(Y){var S,P;return(Y==null?void 0:(S=Y.accessibility)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label)||_.Td("LOADING",void 0,"Loading")};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],cE.prototype,"data",void 0);_.Q([_.X({computed:"computeAriaLabel(data)"}),_.k("design:type",String)],cE.prototype,"ariaLabel",void 0);cE=_.Q([_.r0({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],cE);
_.A(cE,"yt-content-loading-renderer",function(){if(MnY===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;kDI===void 0&&(kDI=document.createElement("template"));var u=kDI;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);MnY=Y}Y=MnY;return Y},{mode:_.OX("kevlar_poly_si_batch_j043")?1:2});var ySY=_.AI(function(Y){var S=Y.data;Y=_.Ms();_.Zw(Y,function(){return S().rendererContext});
var P=function(){var u;return _.lL((u=S())==null?void 0:u.rendererContext)};
return _.R("content-list-item-view-model",{el:Y,class:"ytContentListItemViewModelHost",role:function(){return P()?"listitem":void 0},
tabindex:function(){return P()?0:void 0}},_.R("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.R("div",{class:"ytContentListItemViewModelImageContainer"},_.R(_.gw,{cond:function(){return S().image},
then:function(u){return _.R(_.ZZ,{data:u,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.R(_.rv,{data:function(){var u;
return(u=S())==null?void 0:u.avatar}},{avatarViewModel:_.qr})),_.R("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.R("div",{class:"ytContentListItemViewModelTitle"},_.R(_.qw,{text:function(){return S().title}})),_.R("div",{class:"ytContentListItemViewModelMetadata"},_.R(_.rv,{data:function(){return S().metadata}},{contentMetadataViewModel:function(u){return _.R(_.dmi,{data:u.data,
layout:1})}})))),_.R("div",{class:"ytContentListItemViewModelActionButton"},_.R(_.rv,{data:function(){var u;
return(u=S())==null?void 0:u.actionButton}},{buttonViewModel:_.aq,
toggleButtonViewModel:_.vL})))},"fi");_.AL(_.AI(function(Y){var S=_.n(_.qb(!1,void 0,"WbYeXc")),P=S.next().value,u=S.next().value;S=_.n(_.qb(!1,void 0,"msXkzc"));var W=S.next().value,m=S.next().value;_.LE(function(){var C=_.g(Y.data().collaboratePlaylistCollaborationSetting,VtI);C&&u(C.switchedOnByDefault);var x=_.g(Y.data().allowNewCollaboratorsPlaylistCollaborationSetting,VtI);x&&m(x.switchedOnByDefault);if(!C&&!x||!C&&Y.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")u(!0),m(!0)});
var J=function(C){u(C);m(C);var x=Y.data().playlistCollaborationEntityKey||"";var b=_.X2().getState();(b=_.BT(b.entities,"playlistCollaborationEntity",x))&&(b==null?void 0:b.isCollaborative)===C||_.X2().dispatch(_.qE("playlistCollaborationEntity",x,Object.assign({},b,{isCollaborative:C})))},c=function(C){m(C)};
return _.R("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.R("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.R(_.rv,{data:function(){return Y.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(C){return _.R(_.KB,{data:C.data,
onSwitch:J})}})),_.R(_.gw,{cond:P,
then:function(){return _.R("div",null,_.R("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.R(_.rv,{data:function(){return Y.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(C){return _.R(_.KB,{data:C.data,
onSwitch:c,overrideDisabled:!1})}})),_.R(_.gw,{cond:W,
then:function(){return _.R("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.R(_.rv,{data:function(){return Y.data().copyLinkButton}},{buttonViewModel:_.aq}))}}),_.R("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.R(_.rv,{data:function(){return Y.data().playlistCollaborators}},{contentListItemViewModel:ySY})))}}))},"gi"),"playlist-collaboration-view-model",{props:{data:_.wm}});var Ni5=_.AI(function(Y){var S=Y.data;var P=Y.customCommandResolver;return _.R(_.SX,null,_.R("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.R(_.rv,{data:function(){return S().adAvatar}},{adAvatarViewModel:function(u){return _.R(_.tzu,{data:u.data,
customCommandResolver:P})}})),_.R("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.R(_.gw,{cond:function(){return S().headline},
then:function(u){return _.R(_.qw,{text:u,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.R("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.R(_.rv,{data:function(){return S().adBadge}},{adBadgeViewModel:function(u){return _.R(_.UJ,{data:u.data,
hasDot:function(){return S().primaryDetailsLine!==void 0},
customCommandResolver:P,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.R(_.rv,{data:function(){return S().primaryDetailsLine}},{adDetailsLineViewModel:function(u){return _.R(_.QT,{data:u.data,
customCommandResolver:P,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"hi"),HT6=_.AI(function(Y){var S=Y.data;
var P=Y.customCommandResolver;Y=_.Ms();_.QR(Y,function(){return S().interaction},P);
_.Yy(Y,{visibilityCallback:function(u){var W,m=(W=S().interaction)==null?void 0:W.onFirstVisible;u&&m&&_.ae(m)},
showOption:_.Xa});return _.R("ad-avatar-lockup-view-model",{class:function(){var u;return((u=S().interaction)==null?0:u.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:Y,"aria-label":function(){var u,W;return(u=S().interaction)==null?void 0:(W=u.accessibility)==null?void 0:W.label}},_.R(_.hA,null,_.R(_.rw,{when:function(){return S().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.R(Ni5,{data:S,
customCommandResolver:P})}),_.R(_.GB,null,function(){return null})))},"ii");_.AL(_.AI(function(Y){var S=Y.data;var P=Y.panelContentVisibility;Y=_.Ms();_.QR(Y,function(){return S().interaction},iF_);
_.Yy(Y,{visibilityCallback:function(W){var m,J=(m=S().interaction)==null?void 0:m.onFirstVisible;W&&J&&_.ae(J)},
showOption:_.Xa});_.II(function(){var W,m;if(m=_.tA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var J;m=(J=m())==null?void 0:J.onLayoutVisibleCallback}else m=null;(W=m)==null||W()});
var u=function(){return P()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.R("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:Y},_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.R(_.gw,{cond:_.jVf("(min-width: "+((0,_.$0)()+_.dJ)+"px) or (max-width: 600px)"),then:function(){return _.R(_.rv,{data:function(){return S().adImage}},{adImageViewModel:function(W){return _.R(_.Yl,{data:W.data,
targetHeight:80,customCommandResolver:iF_})}})}})),_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.R(_.rv,{data:function(){return S().adAvatarLockup}},{adAvatarLockupViewModel:function(W){return _.R(HT6,{data:W.data,
customCommandResolver:iF_})}})),_.R(_.gw,{cond:u,
then:function(){return _.R(_.rv,{data:function(){return S().adButton}},{adButtonViewModel:function(W){return _.R(_.i7,{data:W.data,
customCommandResolver:iF_})}})},
else:function(){return _.R(_.rv,{data:function(){return S().menu}},{buttonViewModel:_.aq})}}),_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.R(_.rv,{data:function(){var W=_.g(S().toggleButton,_.hq);
return{toggleButtonViewModel:Object.assign({},W,{isTogglingDisabled:!0,isToggled:u()})}}},{toggleButtonViewModel:_.vL})))))},"ji"),"panel-ad-header-image-lockup-view-model",{props:{data:_.wm,
panelContentVisibility:_.wm}});var VnI=_.AI(function(Y){var S=Y.thumbsUp;Y=Y.thumbsDown;var P=_.n(_.qb(!1,void 0,"OxPsH")),u=P.next().value,W=P.next().value;P=_.n(_.qb(!1,void 0,"V5vWne"));var m=P.next().value,J=P.next().value;return _.R("div",{class:"ytwThumbsUpDownThumbs"},_.R(_.vL,{data:S,onToggle:function(c){W(c);m()&&J(!1)},
buttonShapeOverrides:function(){return{toggled:u()}}}),_.R(_.vL,{data:Y,
onToggle:function(c){J(c);u()&&W(!1)},
buttonShapeOverrides:function(){return{toggled:m()}}}))},"ki");
VnI.idomCompat=!0;var OT1=_.AI(function(Y){var S=function(){return Y.data().pendingStateEntityKey||""},P=_.Jq(orZ,S),u=function(){var W;
if(!(W=Y.disabled())){var m;W=!((m=P())==null||!m.isPendingResponse)}return W};
return _.R("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.R(_.$Z,{each:function(){return Y.data().chipData||[]},
keyBy:"REFERENCE"},function(W){return _.R(eQB,{data:W,disabled:u,pendingStateKey:S,onError:Y.onError})}))},"li"),eQB=_.AI(function(Y){var S=_.Ms(),P=_.n(_.qb(!0,void 0,"HBREAe")),u=P.next().value,W=P.next().value,m=function(){return Y.data().text.content},J=_.mR(function(c){var C,x,b,T,K,G,v,a;
return _.B(function(w){switch(w.nextAddress){case 1:c.stopPropagation();if(Y.disabled())return w.return();x=String(Math.floor(((C=_.PL())==null?void 0:C.getCurrentTime())||0)*1E3);b="youchat-"+Date.now();T=function(){_.DZ(Y.data().onClick||{});var F={continuationCommand:{token:Y.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},U={inputComposerFormData:{clientMessageId:b,playerOffsetMs:x}};return new Promise(function(V,M){_.DZ(F,{form:{formData:U},commandController:{onSuccess:function(zJ,
O){V(O)},
onServerError:function(zJ,O){M(O.error)}}})})};
K=twX(Y.pendingStateKey());K(!0);Kdc("#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");W(!1);_.ND(w,2);return _.q(w,T(),4);case 4:_.tc(w,3);break;case 2:G=_.O4(w),(a=(v=Y).onError)==null||a.call(v,G);case 3:K(!1),_.Yt(w)}})});
return _.R(_.gw,{cond:u,then:function(){return _.R("div",{class:"ytwYouChatChipsDataChipWrapper"},_.R("button",{el:S,class:"ytwYouChatChipsDataChip","data-disabled":Y.disabled,"on:click":J,tabindex:0},m))}})},"mi");var YBI=_.AI(function(Y){var S=Y.data;return _.R("yt-conversation-resource-view-model",{class:_.Si("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.R(_.gw,{cond:function(){var P;return(P=S().conversationResourceData)==null?void 0:P.learningGuideData},
then:function(P){return _.R(_.$Z,{each:function(){return P().sectionData||[]}},function(u){return _.R("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.R(_.qw,{text:function(){return u.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.R("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.R(_.qw,{text:function(){return u.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.R(_.qw,{text:function(){return u.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"ni");
YBI.idomCompat=!0;var SBc=_.AI(function(Y){var S=function(){var F;return(F=Y.data().text)==null?void 0:F.content},P=function(){var F,U;
return(F=Y.data().webData)==null?void 0:(U=F.textResult)==null?void 0:U.content},u=_.E().resolve(_.d8),W=_.uL(),m=function(){return Y.data().chatResponseStyle},J=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:Y.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},c=function(){var F;
return Y.data().webData||((F=Y.data().text)==null?void 0:F.content)||Y.data().videoResultsData||Y.data().conversationResourceViewModel},C=function(){var F;
return(F=Y.data().videoResultsData)==null?void 0:F.videoShelf},x=function(){var F;
return _.g(((F=Y.data().videoResultsData)==null?void 0:F.videoShelf)||{},HW1)},b=function(){var F;
return(F=Y.data().webData)==null?void 0:F.sourcesShelf},T=function(){var F;
return _.g(((F=Y.data().webData)==null?void 0:F.sourcesShelf)||{},HW1)},K=function(){return _.g(Y.data().conversationResourceViewModel||{},BOZ)},G=function(){return m()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||m()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:Y.data().thumbsDownViewModel&&Y.data().thumbsUpViewModel},v=function(){return _.g(Y.data().thumbsUpViewModel,_.hq)},a=function(){return _.g(Y.data().thumbsDownViewModel,_.hq)};
_.Ij(function(){requestAnimationFrame(function(){var F;(F=Y.shouldAnimateIcon)!=null&&F.call(Y)&&QwI(W.lottieEl)})});
var w={};return _.R("you-chat-item-view-model",{class:_.Si("ytwYouChatItemViewModelYouChatItemViewModel",(w.ytwYouChatItemViewModelHostNoPadding=function(){return!1},w)),
"data-target-id":function(){return Y.data().id||""}},_.R(_.gw,{cond:c,
then:function(){var F={};return _.R("div",{"aria-hidden":"true"},_.R(_.PX,{className:_.Si("ytwYouChatItemViewModelIcon",(F.ytwYouChatItemViewModelRtl=u==="rtl",F.ytwYouChatItemViewModelHidden=function(){return!(Y.data().hideIcon||m()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||m()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:c())},F)),
animationName:"YOUCHAT_ICON",data:J,animationRef:W}))}}),_.R(_.gw,{cond:c,
then:function(){var F={};return _.R("div",{class:_.Si("ytwYouChatItemViewModelHost",(F.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return m()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},F.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return m()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},F.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return m()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},F)),
role:"alert"},_.R(_.gw,{cond:S,then:function(U){return _.R(_.$i,{text:U})}}),_.R(_.gw,{cond:P,
then:function(U){return _.R(_.$i,{text:U})}}),_.R(_.gw,{cond:C,
then:function(){return _.R("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.R(_.fB,{data:x,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.R(_.gw,{cond:b,
then:function(){return _.R("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.R(_.fB,{data:T,hasPeek:!0,disableArrows:!1}))}}),_.R(_.gw,{cond:K,
then:function(){return _.R(YBI,{data:K})}}),_.R(_.gw,{cond:G,
then:function(){return _.R(VnI,{thumbsUp:v,thumbsDown:a})}}))}}),_.R(_.gw,{cond:function(){return Y.data().chipsData},
then:function(F){return _.R(OT1,{data:F,disabled:Y.pending,onError:Y.onError})}}))},"oi");
SBc.idomCompat={callbacks:{onError:!0,onSend:!0}};var PeX=_.AI(function(Y){var S=function(){return Y.data().choiceSelectedText};
return _.R("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.R(_.gw,{cond:S,then:function(){return _.R("div",{class:"ytYouChatUserTurnChoiceSelected"},_.R(_.qw,{text:S}))}}),_.R("div",{class:"ytYouChatUserTurnUserMessage"},function(){return Y.data().text}))},"pi");var uG1=_.AI(function(Y){var S=_.n((0,_.ZH3)(Y.data)).next().value;return _.R("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return Y.data().targetId||""}},_.R(_.rv,{data:function(){return S().contents}},{chatLoadingViewModel:_.cc6,
youChatItemViewModel:function(P){return _.R(SBc,{data:P.data,pending:!1})},
chatUserTurnViewModel:function(P){return _.R(PeX,{data:P.data})},
accordionViewModel:function(P){return _.R(_.e5s,{data:P.data})},
learningJourneyLoaderViewModel:function(P){return _.R(_.yCi,{data:P.data})}}))},"qi");_.AL(_.AI(function(Y){var S=_.n((0,_.ZH3)(Y.data)).next().value;return _.R("yt-section-list-renderer",{class:_.Si("ytSectionListRendererHost",Y.className),"data-target-id":function(){return Y.data().targetId||""}},_.R(_.rv,{data:function(){return S().contents}},{itemSectionRenderer:uG1}))},"ri"),"yt-section-list-renderer",{props:{data:_.wm,
className:_.tL}});_.AL(_.AI(function(Y){var S=function(){return _.g(Y.data().inputComposerViewModel,ebZ)},P=function(){var w;
return((w=S())==null?void 0:w.youchatPendingResponseEntityKey)||""},u=_.Jq(orZ,P),W=function(){var w;
return!((w=u())==null||!w.isPendingResponse)},m=_.n(_.qb(!0,void 0,"DR0q1d")),J=m.next().value,c=m.next().value,C=function(){return S().sectionTargetId||"youchat_messages_section"};
m=_.yZ();var x=_.Ms(),b=_.Jq(AUc,"chat_input_view_model_state"),T=UOj(),K=function(){var w;return!((w=b())==null||!w.value)};
_.LE(function(){var w;!K()&&((w=S())==null?0:w.welcomeFeatureContinuation)&&(w={continuationCommand:{token:S().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.DZ(w),T(!0));var F=C(),U;(U=_.E().resolve(_.PQ(_.OG)))==null||U.addEventListener("yt-navigate-start",function(){_.f2.remove(F);T(!1)},{once:!0})});
var G=_.mR(function(w){var F=W()||!1;kuo(x.value);F||w.key!=="Enter"||w.shiftKey||(w.preventDefault(),a());return!1}),v=_.mR(function(){c(x.value.value.length===0);
return!1}),a=function(){var w,F,U,V,M,zJ,O,ca,hu;
return _.B(function(ah){w=x.value.value;x.value.value="";kuo(x.value);F=MwY(C(),w);_.DZ(F);U=twX(P());_.ae(((V=S())==null?void 0:V.onSubmitCommand)||{});U(!0);zJ=String(Math.floor(((M=_.PL())==null?void 0:M.getCurrentTime())||0)*1E3);ca={continuationCommand:{token:(O=S())==null?void 0:O.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};hu={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:w,playerOffsetMs:zJ}};_.DZ(ca,{form:{formData:hu},commandController:{onSuccess:function(){U(!1)},
onServerError:function(){var va=C();_.DZ({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:va}}]}}});U(!1)}}});
_.Yt(ah)})};
return _.R("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:m},_.R("div",{class:"chatInputViewModelChatInputWrapper"},_.R("form",{class:"chatInputViewModelChatInputForm"},_.R("textarea",{class:"chatInputViewModelChatInput",el:x,"on:keydown":G,"on:keyup":v,placeholder:function(){var w,F;var U=_.g((F=S())==null?void 0:F.inputFormField,D3I);return U==null?void 0:(w=U.contentProperties)==null?void 0:w.placeholderText},
rows:1}),_.R(_.aq,{data:function(){return _.g(Y.data().sendButton,_.Gz)},
onClick:function(w){w.preventDefault();a();c(x.value.value.length===0)},
buttonOverrides:function(){return{disabled:J()||W()}}})),_.R(_.qw,{className:"chatInputViewModelChatDisclaimer",
text:function(){var w;return(w=_.g(Y.data().disclaimer,_.cn_))==null?void 0:w.text}})))},"si"),"yt-chat-input-view-model",{props:{data:_.wm}});var WxY=["engagement-panel-clip-create","engagement-panel-clip-view"],z5c=0,C9=function(){var Y=_.Z.apply(this,arguments)||this;var S;Y.headerData=(S=Y.data)==null?void 0:S.header;Y.darkerPanels=_.f("web_watch_darker_panels");Y.matchContentTheme=_.f("web_watch_panel_content_match_theme");Y.disableAutoFill=!1;Y.isFullscreen=!1;Y.modernPanels=_.f("kevlar_watch_modern_panels");Y.liveChatReplyPanel=!1;Y.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");Y.disableBackdropFilter=_.f("web_disable_backdrop_filter");
Y.trackEngagementPanelVisibility=_.f("web_watch_track_engagement_panel_visibility");Y.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};return Y};
_.r(C9,_.Z);_.z=C9.prototype;
_.z.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(Y){Y=
Y==null?void 0:Y.contents;if(!Y||Y.length<1)return"ytd-section-list-renderer";var S,P;Y=(S=Y[0])==null?void 0:(P=S.itemSectionRenderer)==null?void 0:P.contents;if(!Y||Y.length<1)return"ytd-section-list-renderer";var u;return((u=Y[0])==null?0:u.youChatItemViewModel)?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.z.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var Y;if((Y=this.hostElement.parentElement)==null?0:Y.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.z.detached=function(){this.updateTheaterDisablement()};
_.z.showPanel=function(){var Y=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.wc.addJob(function(){Y.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.z.maybeScrollToItemSection=function(Y){var S=this,P,u=Y==null?void 0:(P=Y.sectionListEngagementPanelExtras)==null?void 0:P.scrollToItemSectionIdentifier;u&&_.wc.addJob(function(){var W;(W=S.sectionListRendererElement)==null||W.scrollToItemSection(u)},8)};
_.z.hidePanel=function(){var Y=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.wc.addJob(function(){Y.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.z.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.z.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.z.updatePanel=function(Y,S,P,u){var W=this;if((Y=Y==null?void 0:Y.engagementPanelSectionListRenderer)||u){if(Y){u=Y.header;var m=Y.content,J=Y.footer;(Y=Y.targetId)&&this.set("data.targetId",Y);u&&this.set("data.header",u);m&&this.set("data.content",m);J&&this.set("data.footer",J)}else u&&(Y=u.content,m=u.secondaryHeaderContent,(u=u.targetId)&&this.set("data.targetId",u),Y&&this.set("data.content",Y),m&&(this.secondaryHeaderData=m));this.updateChildVisibilityProperties();if(S){var c;_.f("kevlar_update_panel_focus_scroll_killswitch")||
(c={preventScroll:!0});this.focus(c)}_.ky(this,function(){_.ms(W.hostElement,"yt-refit");W.maybeScrollToItemSection(P)})}};
_.z.computeHeaderData=function(){var Y,S=(0,_.RY.unsafeClone)((Y=this.data)==null?void 0:Y.header);if(S){Y=new _.N(Object.keys(S)[0]);var P=_.g(S,Y),u=_.g(this.secondaryHeaderData,Y);u&&_.g8(S,Y,Object.assign({},u,P))}return S};
_.z.getReloadContinuation=function(){var Y,S,P,u=_.n(((Y=this.data)==null?void 0:(S=Y.content)==null?void 0:(P=S.sectionListRenderer)==null?void 0:P.continuations)||[]);for(Y=u.next();!Y.done;Y=u.next())if(Y=Y.value,Y.reloadContinuationData)return Y.reloadContinuationData.continuation};
_.z.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var Y;((Y=this.data)==null?0:Y.targetId)&&(Y=this.contentElement.firstElementChild)&&Y.setAttribute("panel-target-id",this.data.targetId)};
_.z.forwardPopupClosedToFlowRootRenderer=function(){var Y=_.I(this.hostElement).querySelector("ytd-flow-root-renderer");if(Y)Y.onPopupClosed()};
_.z.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));if(_.f("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"){var Y;this.visibility=(Y=this.data)==null?void 0:Y.visibility;var S;this.trackEngagementPanelVisibility&&((S=this.data)==null?void 0:S.visibility)===
"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var P,u,W,m;this.contentEmpty=!!(((P=this.data)==null?0:(u=P.content)==null?0:u.structuredDescriptionContentRenderer)&&Object.keys((W=this.data)==null?void 0:(m=W.content)==null?void 0:m.structuredDescriptionContentRenderer).length===0);(Y=_.E().resolve(_.Rr))&&Y.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",
this.visibility=this.data.visibility};
_.z.isFullscreenChanged=function(){this.isFullscreen&&_.f("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.z.focus=function(Y){if(this.header)this.header.focus(Y);else{var S;(S=_.I(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||S.focus(Y)}};
_.z.visibilityChanged=function(){if(!_.f("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var Y=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",P=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",u=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W=u||!this.lastVisibility,m,J,c=(m=this.data)==null?void 0:(J=m.identifier)==null?void 0:J.tag,
C;if(((C=this.data)==null?0:C.onShowCommands)&&Y&&W)_.cu(this.hostElement,this.data.onShowCommands,this.hostElement),c&&_.Na().dispatch(_.WT({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:c}}));else{var x;((x=this.data)==null?0:x.onHideCommands)&&S&&P&&(_.cu(this.hostElement,this.data.onHideCommands,this.hostElement),c&&_.Na().dispatch(_.WT({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:c}})))}Y&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*z5c++));_.f("kevlar_watch_focus_on_engagement_panels")&&
Y&&u&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.z.notifyVisibilityChanged=function(Y){var S;_.jR(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,Y,(S=this.data)==null?void 0:S.targetId])};
_.z.updateTheaterDisablement=function(){if(!_.f("kevlar_watch_theater_disablement_killswitch")){var Y=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&WxY.includes(Y)&&!_.f("watch_next_grid_ignore_disallowed_panels")){var S=_.fe(_.Na().getState()),P=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";Y!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():P?(this.originalTheaterState===void 0&&(this.originalTheaterState=S,this.theaterDisablementPanelIdentifier=
Y),S&&_.nb(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.z.clearTheaterDisablement=function(){_.nb(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.z.updateChildVisibilityProperties=function(){this.hostElement||_.f("kevlar_panel_property_init_killswitch")||this._enableProperties();var Y=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=Y);var S,P=(S=this.headerElement)==null?void 0:S.firstElementChild;if(P&&!this.adHeaderImageLockupViewModel){S=Y==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";P.collapsed=S;P=_.I(P).querySelector("#visibility-button");if(!P)return;(P=P.firstElementChild)&&
P.polymerController.is==="ytd-toggle-button-renderer"&&P.polymerController.data.isToggled!==S&&P.polymerController.set("data.isToggled",S)}var u;if(S=(u=this.contentElement)==null?void 0:u.firstElementChild)if(Y&&Y!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")S.removeAttribute("panel-content-visible");else{S.setAttribute("panel-content-visible","");var W;(W=S.markDirty)==null||W.call(S)}};
_.z.onYtChangeEngagementPanelVisibilityAction=function(Y){var S=this,P,u=(P=this.data)==null?void 0:P.targetId,W,m,J;P=((W=this.data)==null?void 0:(m=W.identifier)==null?void 0:m.tag)||((J=this.data)==null?void 0:J.panelIdentifier);var c=_.g(Y,_.gQ6),C;Y=u&&(c==null?void 0:c.targetId)===u||P&&(c==null?void 0:(C=c.panelIdentifier)==null?void 0:C.tag)===P;this.dialog&&Y&&(c==null?void 0:c.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(u==="engagement-panel-comments-section"?_.nb(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.nb(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",P]));u=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";C=this.isFullscreen&&_.f("kevlar_single_panel_fullscreen");u=!Y&&(c==null?void 0:c.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!u&&C;_.f("kevlar_use_engagement_panel_management_component")||(Y?(u=c.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!u?_.wc.addJob(function(){S.visibility=c.visibility},2,this.hideDelayMs):this.visibility=c.visibility,c.visibility&&this.notifyVisibilityChanged(c.visibility)):u&&this.hidePanel())};
_.z.onYtScrollToEngagementPanelCommand=function(Y){var S,P=(S=this.data)==null?void 0:S.targetId,u,W,m;S=((u=this.data)==null?void 0:(W=u.identifier)==null?void 0:W.tag)||((m=this.data)==null?void 0:m.panelIdentifier);Y=_.g(Y,_.p9f);var J;(P&&(Y==null?void 0:Y.targetId)===P||S&&(Y==null?void 0:(J=Y.panelIdentifier)==null?void 0:J.tag)===S)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.nb(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.z.attachVEs=function(Y){var S,P;(Y==null?0:(S=Y.content)==null?0:(P=S.productListRenderer)==null?0:P.trackingParams)&&_.BF().graftServerVe(Y.content.productListRenderer.trackingParams);var u,W;(Y==null?0:(u=Y.content)==null?0:(W=u.transcriptRenderer)==null?0:W.trackingParams)&&_.BF().graftServerVe(Y.content.transcriptRenderer.trackingParams)};
_.z.onYtUpdateEngagementPanelAction=function(Y){var S,P=(S=this.data)==null?void 0:S.targetId;Y=_.g(Y,plI);P&&(Y==null?void 0:Y.targetId)===P&&(this.updatePanel({engagementPanelSectionListRenderer:{header:Y==null?void 0:Y.header,content:Y==null?void 0:Y.content}},!1),this.attachVEs(Y))};
_.z.onYtShowEngagementPanelScrimAction=function(Y){var S,P=(S=this.data)==null?void 0:S.targetId;Y=_.g(Y,wlX);P&&(Y==null?void 0:Y.engagementPanelTargetId)===P&&(this.scrimmed=!0)};
_.z.onYtHideEngagementPanelScrimAction=function(Y){var S,P=(S=this.data)==null?void 0:S.targetId;Y=_.g(Y,aro);P&&(Y==null?void 0:Y.engagementPanelTargetId)===P&&(this.scrimmed=!1)};
_.z.getIdentifier=function(){var Y,S,P;return((Y=this.data)==null?void 0:Y.panelIdentifier)||((S=this.data)==null?void 0:(P=S.identifier)==null?void 0:P.tag)};
_.z.getSurface=function(){var Y,S;return(Y=this.data)==null?void 0:(S=Y.identifier)==null?void 0:S.surface};
_.y6.Object.defineProperties(C9.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var Y=this.getIdentifier();return Y==="engagement-panel-youchat"||Y==="PAyouchat"}}});
C9.prototype.visibilityChanged=C9.prototype.visibilityChanged;C9.prototype.isFullscreenChanged=C9.prototype.isFullscreenChanged;C9.prototype.dataChanged=C9.prototype.dataChanged;C9.prototype.forwardPopupClosedToFlowRootRenderer=C9.prototype.forwardPopupClosedToFlowRootRenderer;C9.prototype.onYtRendererstamperFinished=C9.prototype.onYtRendererstamperFinished;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],C9.prototype,"actionHandlerBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],C9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],C9.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],C9.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],C9.prototype,"data",void 0);
_.Q([_.X({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.k("design:type",Object)],C9.prototype,"headerData",void 0);_.Q([_.X(),_.k("design:type",Object)],C9.prototype,"secondaryHeaderData",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],C9.prototype,"visibility",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],C9.prototype,"contentEmpty",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],C9.prototype,"scrimmed",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],C9.prototype,"dialog",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],C9.prototype,"dropdown",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],C9.prototype,"darkerPanels",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],C9.prototype,"matchContentTheme",void 0);_.Q([_.X(),_.k("design:type",Object)],C9.prototype,"disableAutoFill",void 0);
_.Q([_.X({reflectToAttribute:!0,value:_.f("optimal_reading_width_comments_ep")}),_.k("design:type",Boolean)],C9.prototype,"optimalReadingWidthComments",void 0);_.Q([_.X(),_.k("design:type",Number)],C9.prototype,"hideDelayMs",void 0);_.Q([_.X({selector:_.G7,reflectToAttribute:!0}),_.k("design:type",Object)],C9.prototype,"isFullscreen",void 0);_.Q([_.X(),_.k("design:type",Number)],C9.prototype,"showDelayMs",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.targetId"),_.k("design:type",Object),_.k("design:paramtypes",[])],C9.prototype,"targetId",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],C9.prototype,"webSize",null);_.Q([_.X(),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],C9.prototype,"hideFooterBorder",null);_.Q([_.X(),_.k("design:type",Object)],C9.prototype,"isWatch",void 0);
_.Q([_.X(),_.k("design:type",Object)],C9.prototype,"originalTheaterState",void 0);_.Q([_.X(),_.k("design:type",Object)],C9.prototype,"theaterDisablementPanelIdentifier",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],C9.prototype,"modernPanels",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],C9.prototype,"isWatchWhilePanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],C9.prototype,"shortsPanel",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],C9.prototype,"liveChatEngagementPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],C9.prototype,"liveChatReplyPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],C9.prototype,"enableAnchoredPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],C9.prototype,"disableBackdropFilter",void 0);
_.Q([_.X(),_.k("design:type",Object)],C9.prototype,"trackEngagementPanelVisibility",void 0);_.Q([_.nc("#header"),_.k("design:type",HTMLElement)],C9.prototype,"headerElement",void 0);_.Q([_.nc("#header > *"),_.k("design:type",HTMLElement)],C9.prototype,"header",void 0);_.Q([_.nc("ytd-section-list-renderer"),_.k("design:type",Object)],C9.prototype,"sectionListRendererElement",void 0);
_.Q([_.nc("panel-ad-header-image-lockup-view-model"),_.k("design:type",HTMLElement)],C9.prototype,"adHeaderImageLockupViewModel",void 0);_.Q([_.nc("#content"),_.k("design:type",HTMLElement)],C9.prototype,"contentElement",void 0);_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C9.prototype,"onYtRendererstamperFinished",null);
_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C9.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C9.prototype,"dataChanged",null);_.Q([_.zY("isFullscreen"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C9.prototype,"isFullscreenChanged",null);
_.Q([_.zY("visibility"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C9.prototype,"visibilityChanged",null);C9=_.Q([_.t({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],C9);
_.A(C9,"ytd-engagement-panel-section-list-renderer",function(){if(fh6!==void 0)return fh6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return fh6=Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var me_;var qo=function(){var Y=_.Z.apply(this,arguments)||this;Y.lastRenderedPanelIds=new Set;Y.visiblePanels=[];Y.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return Y};
_.r(qo,_.Z);_.z=qo.prototype;_.z.dataChanged=function(){if(this.data){for(var Y=[],S=_.n(this.data),P=S.next();!P.done;P=S.next()){P=P.value;var u=void 0,W=void 0,m=(u=P)==null?void 0:(W=u.engagementPanelSectionListRenderer)==null?void 0:W.visibility;W=u=void 0;((u=P)==null?0:(W=u.engagementPanelSectionListRenderer)==null?0:W.targetId)&&m!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Y.push(P)}this.visiblePanels=Y}else this.visiblePanels=[]};
_.z.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}}};
_.z.withoutVisiblePanelById=function(Y){return this.visiblePanels.filter(function(S){var P;return((P=S.engagementPanelSectionListRenderer)==null?void 0:P.targetId)!==Y})};
_.z.onYtChangeEngagementPanelVisibilityAction=function(Y){var S=this,P=_.g(Y,_.gQ6);if(this.data&&(P==null?0:P.targetId)&&(P==null?0:P.visibility)){var u,W=(u=this.data.find(function(J){var c;return((c=J.engagementPanelSectionListRenderer)==null?void 0:c.targetId)===P.targetId}))==null?void 0:u.engagementPanelSectionListRenderer;
if(W){var m=this.withoutVisiblePanelById(P.targetId);P.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(Y=this.data.find(function(J){var c;return((c=J.engagementPanelSectionListRenderer)==null?void 0:c.targetId)===P.targetId}))&&(m=[Y].concat(_.cz(m)));
this.hideDelayMs&&P.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&m.length===0?_.wc.addJob(function(){W.visibility=P.visibility;S.visiblePanels=m},10,this.hideDelayMs):(W.visibility=P.visibility,this.visiblePanels=m);
_.jR(this.hostElement,"yt-engagement-panels-visible-changed",[m])}}};
_.z.onRendererstamperFinished=function(){var Y=new Set(this.visiblePanels.map(function(S){var P;return(P=S.engagementPanelSectionListRenderer)==null?void 0:P.targetId}));
this.handlePanelVisibilityChange(Y,this.lastRenderedPanelIds);this.lastRenderedPanelIds=Y};
_.z.handlePanelVisibilityChange=function(Y,S){Y=Y===void 0?new Set:Y;S=S===void 0?new Set:S;if(this.data)for(var P=_.n(this.data),u=P.next();!u.done;u=P.next()){u=u.value;var W=void 0,m=void 0,J=(W=u)==null?void 0:(m=W.engagementPanelSectionListRenderer)==null?void 0:m.targetId;if(J&&(W=S.has(J),m=Y.has(J),J=void 0,!W&&m?(m=W=void 0,J=(W=u)==null?void 0:(m=W.engagementPanelSectionListRenderer)==null?void 0:m.onShowCommands):W&&!m&&(m=W=void 0,J=(W=u)==null?void 0:(m=W.engagementPanelSectionListRenderer)==
null?void 0:m.onHideCommands),J))for(u=_.n(J),J=u.next();!J.done;J=u.next())this.ytComponentBehavior.resolveCommand(J.value)}};
qo.prototype.onRendererstamperFinished=qo.prototype.onRendererstamperFinished;qo.prototype.dataChanged=qo.prototype.dataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],qo.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],qo.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],qo.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],qo.prototype,"lastRenderedPanelIds",void 0);_.Q([_.X(),_.k("design:type",Number)],qo.prototype,"hideDelayMs",void 0);_.Q([_.X(),_.k("design:type",Array)],qo.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Array)],qo.prototype,"visiblePanels",void 0);_.Q([_.X(),_.k("design:type",Boolean)],qo.prototype,"isWatchWhilePanel",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qo.prototype,"dataChanged",null);_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qo.prototype,"onRendererstamperFinished",null);qo=_.Q([_.t({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],qo);
_.A(qo,"ytd-watch-engagement-panels",function(){if(me_!==void 0)return me_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return me_=Y},{mode:1});var ne5;var R2=function(){return _.Z.apply(this,arguments)||this};
_.r(R2,_.Z);R2.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.a9(_.I(this.hostElement).querySelector("#text"),_.eUS(_.Sdd,this.data.companionLegalText))};
R2.prototype.computeAutoScrollEnabled=function(Y,S){return Y&&!S};
R2.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
R2.prototype.onToggleTap=function(){this.expanded=!this.expanded};
R2.prototype.expandedChanged=R2.prototype.expandedChanged;R2.prototype.dataChanged=R2.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Hg6),_.k("design:type",Object)],R2.prototype,"ytdAutoScrollBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],R2.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],R2.prototype,"expanded",void 0);
_.Q([_.X({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.k("design:type",Boolean)],R2.prototype,"autoScrollEnabled",void 0);_.Q([_.X(),_.k("design:type",String)],R2.prototype,"expanderIcon",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R2.prototype,"dataChanged",null);
_.Q([_.zY("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R2.prototype,"expandedChanged",null);R2=_.Q([_.t({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],R2);
_.A(R2,"ytd-companion-legal-text-renderer",function(){if(ne5!==void 0)return ne5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ne5=Y},{mode:1});var jHj;var xv=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonUpdate=_.f("web_modern_buttons");Y.kevlarWatchGrid=_.f("kevlar_watch_grid");Y.centerAlignDescription=_.f("action_companion_center_align_description");Y.truncateDomain=_.f("action_companion_truncate_domain");return Y};
_.r(xv,_.Z);_.z=xv.prototype;_.z.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.z.getOnLayoutVisibleCallback=function(){var Y=_.tA("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.onLayoutVisibleCallback:null};
_.z.getLayoutId=function(){var Y=_.tA("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.layoutId:null};
_.z.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",xv.JSC$20053_DEFAULT_AD_BADGE_RENDERER);var Y=this.getOnLayoutVisibleCallback();Y&&Y()}};
_.z.getButtonRenderer=function(Y){return Y.actionButton&&_.g(Y.actionButton,_.I8)?(delete _.g(Y.actionButton,_.I8).navigationEndpoint,_.g(Y.actionButton,_.I8)):{}};
_.z.onClick=function(Y){var S=this;if((!_.f("web_modern_buttons")||!_.iN(_.iM(Y),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){Y=_.Q5();var P=this.getLayoutId();Y&&P&&_.f("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?Y.getPlayerPromise().then(function(u){(new _.JM(u)).executeCommand(S.data.navigationEndpoint,P)}):_.f("kevlar_companion_resolve_command_killswitch")?_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.nb(this.hostElement,"yt-companion-ad-clicked",["action-companion",P])}};
_.y6.Object.defineProperties(xv.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((Y=this.data)==null?0:(S=Y.detailsLine)==null?0:(P=S.adRating)==null?0:P.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u;return((Y=this.data)==null?0:(S=Y.detailsLine)==null?0:(P=S.adRating)==null?0:(u=P.ratingIcon)==null?0:u.iconType)?_.u2(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u;return((Y=this.data)==null?0:(S=Y.detailsLine)==null?0:(P=S.texts)==null?0:(u=P[0])==null?0:u.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?0:(S=Y.description)==null?0:S.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var Y=_.tA("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var Y=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return Y?Y.indexOf("/default_banner")!==-1:!0}}});
xv.prototype.onClick=xv.prototype.onClick;xv.prototype.dataChanged=xv.prototype.dataChanged;xv.JSC$20053_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Td("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],xv.prototype,"rendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],xv.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xv.prototype,"buttonUpdate",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xv.prototype,"kevlarWatchGrid",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xv.prototype,"centerAlignDescription",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xv.prototype,"truncateDomain",void 0);
_.Q([_.X({computed:"computeButtonOverride(buttonUpdate)"}),_.k("design:type",Object)],xv.prototype,"buttonOverride",void 0);_.Q([_.d("data.detailsLine.adRating.ratingText"),_.k("design:type",Object),_.k("design:paramtypes",[])],xv.prototype,"getRating",null);_.Q([_.d("getRating"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xv.prototype,"computeRatingHidden",null);
_.Q([_.d("data.detailsLine.adRating.ratingIcon.iconType"),_.k("design:type",Object),_.k("design:paramtypes",[])],xv.prototype,"iconType",null);_.Q([_.d("data.detailsLine.texts.0.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],xv.prototype,"getDetailsLine",null);_.Q([_.d("getDetailsLine"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xv.prototype,"computeDetailsLineHidden",null);
_.Q([_.d("data.description.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],xv.prototype,"getDescriptionText",null);_.Q([_.d("getDescriptionText"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xv.prototype,"computeDescriptionTextHidden",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],xv.prototype,"interactionLoggingClientData",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xv.prototype,"hideBanner",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xv.prototype,"dataChanged",null);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],xv.prototype,"onClick",null);xv=_.Q([_.t({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],xv);
_.A(xv,"ytd-action-companion-ad-renderer",function(){if(jHj!==void 0)return jHj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return jHj=Y},{mode:_.OX("kevlar_poly_si_batch_j067")?1:2});var JCY;var BA_;var b$=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonUpdate=_.f("web_modern_buttons");Y.hideLegacyBanner=_.f("enable_dsa_one_click_ata_translators_infeed_elements");Y.adInfoButtonStyle="mono";Y.adInfoButtonType="text";Y.noDotAdBadge=!0;return Y};
_.r(b$,_.Z);_.z=b$.prototype;_.z.getOnLayoutVisibleCallback=function(){var Y=_.tA("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.onLayoutVisibleCallback:null};
_.z.getLayoutId=function(){var Y=_.tA("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.layoutId:null};
_.z.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var Y=this.data.image.thumbnail.thumbnails[0];this.imageSrc=Y.url?_.Bx(Y.url):void 0;this.imageWidth=Y.width||0;this.imageHeight=Y.height||0}this.data.clickthroughEndpoint&&_.g(this.data.clickthroughEndpoint,_.tp)&&(Y=_.g(this.data.clickthroughEndpoint,_.tp).url,_.f("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
Y||"":Y?(Y=_.Bx(Y),this.clickThroughUrl=_.mp(Y)):this.clickThroughUrl=void 0);(Y=this.getOnLayoutVisibleCallback())&&Y()}};
_.z.onClick=function(Y){_.iN(_.iM(Y),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(Y)};
_.z.handleClick=function(){var Y=this;this.data&&this.data.clickthroughEndpoint&&(_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(S){Y.macroReplacementBehavior.sendServiceRequestAction([S])}),_.nb(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.z.onLoad=function(){_.jR(this.hostElement,"yt-refit-popups-action")};
_.y6.Object.defineProperties(b$.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var Y=_.tA("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var Y=_.tA("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.interactionLoggingClientData:null}}});
b$.prototype.onLoad=b$.prototype.onLoad;b$.prototype.onClick=b$.prototype.onClick;b$.prototype.dataChanged=b$.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],b$.prototype,"rendererBehavior",void 0);_.Q([_.p(IUd.YtMacroReplacementBehavior),_.k("design:type",Object)],b$.prototype,"macroReplacementBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],b$.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],b$.prototype,"buttonUpdate",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],b$.prototype,"hideLegacyBanner",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],b$.prototype,"adInfoButtonStyle",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],b$.prototype,"adInfoButtonType",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],b$.prototype,"macros",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],b$.prototype,"interactionLoggingClientData",null);_.Q([_.X(),_.k("design:type",String)],b$.prototype,"clickThroughUrl",void 0);_.Q([_.X(),_.k("design:type",_.uB)],b$.prototype,"imageSrc",void 0);_.Q([_.X(),_.k("design:type",Number)],b$.prototype,"imageWidth",void 0);_.Q([_.X(),_.k("design:type",Number)],b$.prototype,"imageHeight",void 0);_.Q([_.X(),_.k("design:type",Object)],b$.prototype,"noDotAdBadge",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b$.prototype,"dataChanged",null);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],b$.prototype,"onClick",null);_.Q([_.WZ("load"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b$.prototype,"onLoad",null);b$=_.Q([_.t({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],b$);
_.A(b$,"ytd-image-companion-renderer",function(){if(BA_!==void 0)return BA_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return BA_=Y},{mode:_.OX("kevlar_poly_si_batch_j067")?1:2});var cC5;var TW=function(){return _.Z.apply(this,arguments)||this};
_.r(TW,_.Z);_.z=TW.prototype;_.z.dataChanged=function(){this.set("data.adBadge",TW.JSC$20062_DEFAULT_AD_BADGE_RENDERER);if(this.data){var Y=this.getOnLayoutVisibleCallback();Y&&Y()}};
_.z.getOnLayoutVisibleCallback=function(){var Y=_.tA("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.onLayoutVisibleCallback:null};
_.z.getLayoutId=function(){var Y=_.tA("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.layoutId:null};
_.z.onCompanionClicked=function(Y){this.data&&(Y.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.nb(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.z.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var Y=_.Q5(),S=this.getLayoutId(),P=this.data.clickToAdvSiteEndpoint;Y&&S&&_.f("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?Y.getPlayerPromise().then(function(u){(new _.JM(u)).executeCommand(P,S)}):_.ms(this.hostElement,"yt-navigate",{endpoint:P})}};
_.z.sendTrackingPings=function(Y){if(Y&&Y.length!==0&&Y[0].loggingUrls&&(Y=Y[0].loggingUrls.map(this.getBaseUrl)))for(var S=0;S<Y.length;S++)_.UQ(Y[S])};
_.z.getBaseUrl=function(Y){return Y.baseUrl||""};
_.y6.Object.defineProperties(TW.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var Y=_.tA("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.interactionLoggingClientData:null}}});
TW.prototype.onCompanionClicked=TW.prototype.onCompanionClicked;TW.prototype.dataChanged=TW.prototype.dataChanged;TW.JSC$20062_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Td("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],TW.prototype,"data",void 0);_.Q([_.nc("#title"),_.k("design:type",HTMLElement)],TW.prototype,"shopTitle",void 0);
_.Q([_.cZ("data.impressionEndpoints"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],TW.prototype,"dataChanged",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],TW.prototype,"interactionLoggingClientData",null);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],TW.prototype,"onCompanionClicked",null);
TW=_.Q([_.t({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],TW);
_.A(TW,"ytd-shopping-companion-renderer",function(){if(cC5!==void 0)return cC5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return cC5=Y},{mode:1});_.AL(_.AI(function(Y){var S=Y.data;var P=_.Ms();_.QR(P,function(){return S().interaction},yU1);
_.Yy(P,{visibilityCallback:function(u){var W,m=(W=S().interaction)==null?void 0:W.onFirstVisible;u&&m&&_.ae(m)},
showOption:_.Xa});_.II(function(){var u,W;W=(W=_.tA("yt.www.ads.eventcache.getLastCompanionData"))?(W=W())&&W.onLayoutVisibleCallback:null;(u=W)==null||u()});
Y=_.mR(function(){_.jR(P.value,"yt-refit-popups-action")});
return _.R("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":Y,el:P,"aria-label":function(){var u,W;return(u=S().interaction)==null?void 0:(W=u.accessibility)==null?void 0:W.label}},_.R("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.R(_.rv,{data:function(){return S().adImage}},{adImageViewModel:function(u){return _.R(_.Yl,{data:u.data,
targetHeight:80,customCommandResolver:yU1})}})),_.R("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.R("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.R(_.rv,{data:function(){return S().adBadge}},{adBadgeViewModel:function(u){return _.R(_.UJ,{data:u.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.R("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.R(_.rv,{data:function(){return S().menu}},{buttonViewModel:_.aq}))))},"ti"),"banner-image-layout-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;Y=_.Ms();_.QR(Y,function(){return S().interaction},N_Y);
_.Yy(Y,{visibilityCallback:function(P){var u,W=(u=S().interaction)==null?void 0:u.onFirstVisible;P&&W&&_.ae(W)},
showOption:_.Xa});_.II(function(){var P,u;u=(u=_.tA("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.onLayoutVisibleCallback:null;(P=u)==null||P()});
return _.R("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:Y},_.R("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.R(_.rv,{data:function(){return S().adImage}},{adImageViewModel:function(P){return _.R(_.Yl,{data:P.data,
targetHeight:80,customCommandResolver:N_Y})}})),_.R("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.R("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.R(_.rv,{data:function(){return S().adAvatarLockup}},{adAvatarLockupViewModel:function(P){return _.R(HT6,{data:P.data,
customCommandResolver:N_Y})}})),_.R(_.rv,{data:function(){return S().adButton}},{adButtonViewModel:function(P){return _.R(_.i7,{data:P.data,
customCommandResolver:N_Y})}}),_.R("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.R(_.rv,{data:function(){return S().menu}},{buttonViewModel:_.aq}))))},"ui"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.wm}});var Ce_={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"},K9=function(){var Y=_.Z.apply(this,arguments)||this;Y.updateCompanionDataJobId=0;Y.contentVideoId=null;Y.player=null;Y.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return Y};
_.r(K9,_.Z);_.z=K9.prototype;_.z.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:Ce_}}};
_.z.attached=function(){var Y=this,S=_.Q5();S&&S.getPlayerPromise().then(function(P){Y.getCachedDataAndListen(P)})};
_.z.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.z.updateRendererStamper=function(){var Y={};if(this.data)for(var S in Ce_)if(this.data[S]){Y[S]=this.data[S];break}if(this.oneofRenderer!=void 0||Object.keys(Y).length)this.oneofRenderer=Y};
_.z.getCachedDataAndListen=function(Y){var S=this.retrieveCachedCompanionData();S&&Object.keys(S).length&&this.receiveCompanionData(S);this.ytPlayerListenerBehavior.listenToPlayerEvent(Y,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=Y};
_.z.retrieveCachedCompanionData=function(){return _.Pa.yt&&_.Pa.yt.www&&_.Pa.yt.www.ads&&_.Pa.yt.www.ads.eventcache&&_.Pa.yt.www.ads.eventcache.getLastCompanionData?_.Pa.yt.www.ads.eventcache.getLastCompanionData():null};
_.z.receiveCompanionData=function(Y){Y&&Object.keys(Y).length?(this.contentVideoId=Y.contentVideoId,this.setCompanionData(Y)):this.setCompanionData(Y)};
_.z.setCompanionData=function(Y){this.cancelPendingCompanionAdJobs();if(Y){this.updateCompanionDataJobId=0;for(var S in Ce_)Ce_.hasOwnProperty(S)&&(this.data[S]=void 0);Y.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",Y.shoppingCompanionCarouselRenderer):Y.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",Y.imageCompanionAdRenderer):Y.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",Y.actionCompanionAdRenderer),_.jR(this.hostElement,
"yt-hide-unlimited-offer-module"),_.jR(this.hostElement,"yt-hide-tvfilm-offer-module")):Y.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",Y.bannerImageLayoutViewModel):Y.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",Y.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.z.dataChanged=function(){var Y=this,S=_.Q5();S?S.getPlayerPromise().then(function(P){Y.contentVideoId&&P.getVideoUrl().includes("v="+Y.contentVideoId)||(Y.cancelPendingCompanionAdJobs(),Y.updateRendererStamper())}):_.AA(Error("im"))};
_.z.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.wc.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.z.handleCompanionAdClicked=function(Y,S){this.player.onAdUxClicked(Y,S);this.player.pauseVideo()};
K9.prototype.dataChanged=K9.prototype.dataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],K9.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],K9.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],K9.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],K9.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],K9.prototype,"oneofRenderer",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],K9.prototype,"dataChanged",null);K9=_.Q([_.t({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],K9);
_.A(K9,"ytd-companion-slot-renderer",function(){if(JCY!==void 0)return JCY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return JCY=Y},{mode:_.OX("kevlar_poly_si_batch_j067")?
1:2});var qBj;var E0=function(){return _.Z.apply(this,arguments)||this};
_.r(E0,_.Z);E0.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
E0.prototype.dataChanged=E0.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],E0.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],E0.prototype,"companionSlotData",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],E0.prototype,"dataChanged",null);
E0=_.Q([_.t({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],E0);
_.A(E0,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(qBj!==void 0)return qBj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return qBj=Y},{mode:1});var R5B;var f9=function(){var Y=_.Z.apply(this,arguments)||this;Y.skinnyMode=!1;Y.COMPACT_EVENT_COUNT=4;Y.onShelfToggleButtonTap=function(){Y.logTap(Y.data);Y.showingMore=!Y.showingMore};
Y.onShelfToggleButtonFocus=function(){Y.showingMore||(Y.logTap(Y.data),Y.showingMore=!0,_.ky(Y,function(){var S=Y.COMPACT_EVENT_COUNT-1,P;(P=_.I(Y.hostElement).querySelector("#event-"+S))==null||P.focus()}))};
return Y};
_.r(f9,_.Z);_.z=f9.prototype;_.z.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.z.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.z.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.up(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.up(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.up(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.up(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.up(this.infoTooltip,this.infoTooltip.hide))};
_.z.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.up(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.up(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.up(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.up(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.up(this.infoTooltip,this.infoTooltip.hide))};
_.z.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)};
_.z.onShowingMoreChanged=function(){var Y;this.showingMoreChanged((Y=this.showingMore)!=null?Y:!1)};
_.z.showingMoreChanged=function(Y){var S=this.get("data.events")||[];this.set("restEvents",S.slice(1,Y?S.length:this.COMPACT_EVENT_COUNT).map(function(P){return P.ticketEventRenderer}));
S.slice(0,Y?S.length:this.COMPACT_EVENT_COUNT).forEach(function(P){var u=_.pM();P=P.ticketEventRenderer.trackingParams;_.wf()&&u&&P&&(P=_.Re(P),u&&_.A6(u,P))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.z.computeAriaLabel=function(Y){return Y.subtitle1+", "+Y.subtitle2};
_.z.logTap=function(Y){_.wf()&&this.ytRendererBehavior.logExplicitClick(Y)};
_.z.isKeyboardAction=function(Y){return this.get("detail.x",Y)===0&&this.get("detail.y",Y)===0};
_.z.onFirstEventTap=function(Y){Y.target&&this.handleTap(Y.target,this.firstEvent,this.isKeyboardAction(Y))};
_.z.onTicketLinkTap=function(Y){Y.target&&this.handleTap(Y.target,Y.model.item,this.isKeyboardAction(Y))};
_.z.handleTap=function(Y,S,P){if(S.buttonCommand)if(S.hasMultipleOffers)Object.assign(_.g(S.buttonCommand,_.fP),{properties:{source:P?"keyboard":"tap"}}),this.logTap(S),this.popupPositionTarget=Y,_.cu(this.hostElement,[S.buttonCommand],this.hostElement);else{var u;if((u=_.g(S.buttonCommand,_.tp))==null?0:u.url)this.logTap(S),_.$U(window,_.g(S.buttonCommand,_.tp).url)}};
f9.prototype.onShowingMoreChanged=f9.prototype.onShowingMoreChanged;f9.prototype.dataChanged=f9.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],f9.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],f9.prototype,"firstEvent",void 0);_.Q([_.X(),_.k("design:type",Object)],f9.prototype,"restEvents",void 0);_.Q([_.X(),_.k("design:type",String)],f9.prototype,"imageUrl",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],f9.prototype,"showingMore",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],f9.prototype,"canShowMore",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],f9.prototype,"skinnyMode",void 0);_.Q([_.X(),_.k("design:type",HTMLElement)],f9.prototype,"popupPositionTarget",void 0);_.Q([_.nc("#banner-info-tooltip"),_.k("design:type",Object)],f9.prototype,"infoTooltip",void 0);
_.Q([_.nc("#info-container"),_.k("design:type",HTMLElement)],f9.prototype,"infoContainer",void 0);_.Q([_.nc("#shelf-toggler"),_.k("design:type",HTMLElement)],f9.prototype,"shelfToggleButton",void 0);_.Q([_.nc("#separator"),_.k("design:type",HTMLDivElement)],f9.prototype,"separator",void 0);_.Q([_.X(),_.k("design:type",String)],f9.prototype,"shelfTogglerLabelText",void 0);_.Q([_.X(),_.k("design:type",String)],f9.prototype,"shelfTogglerIcon",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f9.prototype,"dataChanged",null);_.Q([_.cZ("showingMore"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f9.prototype,"onShowingMoreChanged",null);f9=_.Q([_.t({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],f9);
_.A(f9,"ytd-ticket-shelf-renderer",function(){if(R5B!==void 0)return R5B;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return R5B=Y},{mode:1});var xeZ;var bI_;var gl=function(){return _.Z.apply(this,arguments)||this};
_.r(gl,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],gl.prototype,"data",void 0);gl=_.Q([_.t({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],gl);
_.A(gl,"ytd-comments-entry-point-message-renderer",function(){if(bI_!==void 0)return bI_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return bI_=Y},{mode:1});var TAI;var $v=function(){return _.Z.apply(this,arguments)||this};
_.r($v,_.Z);_.y6.Object.defineProperties($v.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.teaserAvatar)}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$v.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$v.prototype,"hasAvatar",null);$v=_.Q([_.t({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],$v);
_.A($v,"ytd-comments-entry-point-teaser-renderer",function(){if(TAI!==void 0)return TAI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return TAI=Y},{mode:1});var Kx_;var rl=function(){return _.Z.apply(this,arguments)||this};
_.r(rl,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],rl.prototype,"data",void 0);rl=_.Q([_.t({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],rl);
_.A(rl,"ytd-comments-simplebox-renderer",function(){if(Kx_!==void 0)return Kx_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Kx_=Y},{mode:1});var GW=function(){var Y=_.Z.apply(this,arguments)||this;Y.fullHeight=!_.f("comment_teaser_full_height_kill_switch")&&_.f("kevlar_watch_grid");return Y};
_.r(GW,_.Z);GW.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"}}}};
GW.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
GW.prototype.onTap=function(){var Y=this.tapCommand;Y&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(Y))};
GW.prototype.onKeyUp=function(Y){if(Y.keyCode===13)this.onTap()};
_.y6.Object.defineProperties(GW.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null?0:Y.onTap)return this.data.onTap;var S,P;if(((S=this.data)==null?0:S.teaserContent)||((P=this.data)==null?0:P.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)!=null&&Y.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
GW.prototype.onKeyUp=GW.prototype.onKeyUp;GW.prototype.onTap=GW.prototype.onTap;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],GW.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],GW.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],GW.prototype,"fullHeight",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"tapCommand",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"simpleboxPlaceholder",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GW.prototype,"hasSimpleboxPlaceholder",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"simpleboxAvatar",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"teaserContent",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GW.prototype,"hasTeaserContent",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"teaserAvatar",null);
_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GW.prototype,"hasTeaserAvatar",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"messageText",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"contentRenderer",null);_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GW.prototype,"hasContents",null);
_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GW.prototype,"hasContentRenderer",null);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GW.prototype,"onTap",null);_.Q([_.WZ("keypress"),_.k("design:type",Function),_.k("design:paramtypes",[_.q4]),_.k("design:returntype")],GW.prototype,"onKeyUp",null);GW=_.Q([_.t({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],GW);
_.A(GW,"ytd-comments-entry-point-header-renderer",function(){if(xeZ!==void 0)return xeZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return xeZ=Y},{mode:1});var Eej;_.Vz(_.zI,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var fJ_=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),geY={numberText:"",heightPx:2*fJ_,shouldAnimate:!1},hH=function(){var Y=_.Z.apply(this,arguments)||this;Y.usingAnimatedComponents=!0;Y.wasDetailed=!1;Y.JSC$20099_browserSupportsAnimation=_.f("web_supports_animations_api");Y.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};Y.detailed=!1;Y.shouldAnimate=!1;Y.viewCountProps=geY;Y.dateTextProps=
geY;Y.metadataBadgesInDescription=_.f("web_metadata_badges_in_description");return Y};
_.r(hH,_.Z);_.z=hH.prototype;_.z.resetAnimationState=function(){this.shouldAnimate=!1};
_.z.updateDynamicMetadata=function(){if(this.JSC$20099_browserSupportsAnimation){if(!this.detailed){var Y,S,P,u;var W=(Y=this.videoPrimaryInfoRenderer)==null?void 0:(S=Y.viewCount)==null?void 0:(P=S.videoViewCountRenderer)==null?void 0:(u=P.extraShortViewCount)==null?void 0:u.simpleText;var m,J,c,C;var x=(m=this.videoPrimaryInfoRenderer)==null?void 0:(J=m.viewCount)==null?void 0:(c=J.videoViewCountRenderer)==null?void 0:(C=c.shortViewCount)==null?void 0:C.simpleText}if(!x){var b,T,K,G;W=(b=this.videoPrimaryInfoRenderer)==
null?void 0:(T=b.viewCount)==null?void 0:(K=T.videoViewCountRenderer)==null?void 0:(G=K.unlabeledViewCountValue)==null?void 0:G.simpleText;var v,a,w,F;x=(v=this.videoPrimaryInfoRenderer)==null?void 0:(a=v.viewCount)==null?void 0:(w=a.videoViewCountRenderer)==null?void 0:(F=w.viewCount)==null?void 0:F.simpleText}var U,V,M;Y=Number((U=this.videoPrimaryInfoRenderer)==null?void 0:(V=U.viewCount)==null?void 0:(M=V.videoViewCountRenderer)==null?void 0:M.originalViewCount);var zJ,O;U=(zJ=this.videoPrimaryInfoRenderer)==
null?void 0:(O=zJ.relativeDateText)==null?void 0:O.simpleText;var ca;zJ=!((ca=this.videoPrimaryInfoRenderer)==null||!ca.relativeDateText);if(W&&x&&Y&&(U||!zJ)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;ca=x.split(new RegExp("("+W+")"));W=Sc1(ca[0]);var hu;x={numberText:(hu=ca[1])!=null?hu:"",numberValue:Y,heightPx:2*fJ_,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var ah;hu=((ah=ca[2])!=null?ah:"")+"  ";this.setViewCount(x,W,Sc1(hu));
if(!this.detailed&&zJ){W=U.split(/(\d+)/);ah=Sc1(W[0]);var va;hu={numberText:(va=W[1])!=null?va:"",heightPx:2*fJ_,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var yX;va=((yX=W[2])!=null?yX:"")+"  ";this.setDateText(hu,ah,Sc1(va))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.z.setViewCount=function(Y,S,P){_.Ma(S)!==_.Ma(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=S);this.viewCountProps.numberText!==(Y==null?void 0:Y.numberText)&&(this.viewCountProps=Y||geY);_.Ma(P)!==_.Ma(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=P)};
_.z.setDateText=function(Y,S,P){_.Ma(S)!==_.Ma(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=S);this.dateTextProps.numberText!==(Y==null?void 0:Y.numberText)&&(this.dateTextProps=Y||geY);_.Ma(P)!==_.Ma(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=P)};
_.z.onYtUpdateViewershipAction=function(Y){this.videoPrimaryInfoRenderer&&(_.g(Y,mWB).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.g(Y,mWB).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.g(Y,mWB).viewCount)))};
_.z.onYtUpdateDateTextAction=function(Y){if(this.videoPrimaryInfoRenderer){Y=_.g(Y,_.WKd).dateText;this.shouldAnimate=!0;var S;((S=this.videoPrimaryInfoRenderer)==null?0:S.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",Y):this.set("videoPrimaryInfoRenderer.dateText",Y)}};
_.y6.Object.defineProperties(hH.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return YcI(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Ma(YcI(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Ma(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Ma(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Ma(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Ma(this.dateTextPostNumberText)].join("")}}});
hH.prototype.updateDynamicMetadata=hH.prototype.updateDynamicMetadata;hH.prototype.resetAnimationState=hH.prototype.resetAnimationState;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],hH.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],hH.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],hH.prototype,"videoPrimaryInfoRenderer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],hH.prototype,"detailed",void 0);_.Q([_.X(),_.k("design:type",Object)],hH.prototype,"shouldAnimate",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],hH.prototype,"viewCountPreNumberText",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],hH.prototype,"viewCountProps",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],hH.prototype,"viewCountPostNumberText",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],hH.prototype,"dateTextPreNumberText",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],hH.prototype,"dateTextProps",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],hH.prototype,"dateTextPostNumberText",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],hH.prototype,"metadataBadgesInDescription",void 0);_.Q([_.d("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.k("design:type",Object),_.k("design:paramtypes",[])],hH.prototype,"infoText",null);
_.Q([_.d("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.k("design:type",String),_.k("design:paramtypes",[])],hH.prototype,"descriptionInfoTooltipText",null);_.Q([_.d("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.k("design:type",String),_.k("design:paramtypes",[])],hH.prototype,"animatedViewCountAccessibilityLabel",null);
_.Q([_.d("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.k("design:type",String),_.k("design:paramtypes",[])],hH.prototype,"animatedDateTextAccessibilityLabel",null);_.Q([_.zY("videoPrimaryInfoRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hH.prototype,"resetAnimationState",null);
_.Q([_.zY("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hH.prototype,"updateDynamicMetadata",null);hH=_.Q([_.t({disableElementRegistration:!0,is:"ytd-watch-info-text"})],hH);
_.A(hH,"ytd-watch-info-text",function(){if(Eej!==void 0)return Eej;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Eej=Y},{mode:1});var $e_;var rC5=_.AI(function(Y){var S=Y.data;var P=Y.setTapCommand;_.D6(function(){var u=_.vF(S().onTap);P(u)});
return _.R("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.R(_.rv,{data:function(){return S().avatar}},{avatarViewModel:_.qr}),_.R("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.R("span",null,function(){return S().simpleboxText})))},"vi");var G0B=_.AI(function(Y){return _.R("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.R(_.gw,{cond:function(){return _.g(Y.data().avatar,_.Aq)},
then:function(S){return _.R(_.qr,{data:S,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.R("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.R(_.qw,{text:function(){return Y.data().teaserText}})))},"wi");var h5B=_.AI(function(Y){var S=Y.data;var P=Y.setTapCommand;_.D6(function(){var u=_.vF(S().onTap);P(u)});
return _.R("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.R(_.rv,{data:function(){return S().teasers}},{commentsEntryPointTeaserViewModel:G0B}))},"xi");var veI=_.AI(function(Y){var S=Y.data;var P=Y.setTapCommand;_.D6(function(){var u=_.vF(S().onTap);P(u)});
return _.R("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.R(_.qw,{text:function(){return S().messageText}}))},"yi");var De1=_.AI(function(Y){var S=Y.data;var P=Y.setTapCommand;var u=Y.isDisabled;_.D6(function(){var W=(u==null?0:u())?void 0:_.vF(S().onTap);P(W)});
return _.R("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.R(_.BX,{icon:function(){return S().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.R(_.gw,{cond:function(){return S().image},
then:function(W){return _.R(_.ZZ,{data:W,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.R(_.qw,{text:function(){return S().text},
className:function(){return S().image||S().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.R(_.rv,{data:function(){return S().button}},{buttonViewModel:function(W){return _.R(_.aq,{data:W.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:u==null?void 0:u()}}})}}))},"zi");var IJ_=_.AI(function(Y){var S=Y.data;var P=Y.itemIndex;var u=Y.selectedIndex;var W=Y.indexUpdatedCallback;var m=Y.observer;Y=Y.title;var J=_.Ms(),c=function(T){P()===u()&&W(T)},C=_.GI(IEX),x=_.GI(aEd),b=function(){var T,K,G;
return((T=S())==null?void 0:T.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!C()||((K=S())==null?void 0:K.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&x().includes("PAposts_by_host")||((G=S())==null?void 0:G.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&x().includes("PAyouchat")};
_.LE(function(){m&&m().observe(J.value)});
return _.R("yt-carousel-item-view-model",{el:J,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":Y},_.R(_.rv,{data:function(){var T,K;return(K=(T=_.g(S().carouselItem,vkd))==null?void 0:T.textCarousel)!=null?K:S().carouselItem}},{textCarouselItemViewModel:function(T){return _.R(De1,{data:T.data,
setTapCommand:c,isDisabled:b})},
commentTeaserCarouselItemViewModel:function(T){return _.R(h5B,{data:T.data,setTapCommand:c})},
commentInputBoxCarouselItemViewModel:function(T){return _.R(rC5,{data:T.data,setTapCommand:c})},
commentsEntryPointMessageViewModel:function(T){return _.R(veI,{data:T.data,setTapCommand:c})}}))},"Ai");var aJd=_.AI(function(Y){var S=Y.numDots;var P=Y.activeIndex;return _.R("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.R(_.$Z,{each:function(){return Array.from({length:S()})},
keyBy:"INDEX"},function(u,W){return _.R("div",{class:function(){var m={};return _.uN("ytCarouselDotsShapeDot",(m.ytCarouselDotsShapeDotActive=W===P(),m))}})}))},"Bi");var LxI=_.AI(function(Y){var S=Y.data;var P=Y.handleCarouselNavigation;var u=Y.numItems;var W=Y.selectedIndex;var m=function(){return{disabled:W()===0}},J=function(){return{disabled:W()===u()-1}};
return _.R("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.R("div",null,_.R("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return S().title}),_.R(_.gw,{cond:function(){return S().subtitle},
then:function(c){return _.R("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return S().subtitleAccessibilityText}},c)}})),_.R(_.gw,{cond:function(){return u()>1},
then:function(){return _.R("div",{class:"ytCarouselTitleViewModelNavigation"},_.R(aJd,{numDots:u,activeIndex:W}),_.R(_.gw,{cond:function(){return S().previousButton},
then:function(c){return _.R(_.rv,{data:c},{buttonViewModel:function(C){return _.R(_.aq,{data:C.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return P(-1)},
buttonOverrides:m})}})}}),_.R(_.gw,{cond:function(){return S().nextButton},
then:function(c){return _.R(_.rv,{data:c},{buttonViewModel:function(C){return _.R(_.aq,{data:C.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return P(1)},
buttonOverrides:J})}})}}))}}))},"Ci");_.AL(_.AI(function(Y){var S=Y.data;var P=_.Ms(),u=_.Ms(),W=_.X3("HTML_DIR")==="rtl",m=!1,J=0,c=0;Y=_.n(_.qb(0,void 0,"m0dtIf"));var C=Y.next().value,x=Y.next().value;Y=_.n(_.qb(0,void 0,"fL6I6"));var b=Y.next().value,T=Y.next().value;Y=_.n(_.qb(!1,void 0,"ZPrwNb"));var K=Y.next().value,G=Y.next().value,v=function(){var ca,hu,ah;return(ah=(ca=S())==null?void 0:(hu=ca.carouselTitles)==null?void 0:hu.length)!=null?ah:0},a=function(){u.value&&u.value.scrollLeft!==J&&x((W?u.value.scrollLeft<J:u.value.scrollLeft>
J)?Math.min(C()+1,v()-1):Math.max(C()-1,0))},w;
window.IntersectionObserver&&(w=new IntersectionObserver(function(ca){ca=_.n(ca);for(var hu=ca.next();!hu.done;hu=ca.next())if(hu.value.isIntersecting){if(m){m=!1;break}a()}else x(c)},{threshold:.2}));
_.D6(function(){if(u.value){var ca=(W?-1:1)*(b()/v()+12)*(K()&&w?c:C());typeof u.value.scrollTo==="function"?u.value.scrollTo({left:ca,behavior:"smooth"}):u.value.scrollLeft=ca;J=ca;c=K()&&w?c:C()}});
var F,U=function(ca){F=ca};
_.LE(function(){var ca=function(){var ah=u.value.offsetWidth*v(),va=24*(v()-1);T(ah+va)};
ca();if(window.ResizeObserver){var hu=new ResizeObserver(ca);hu.observe(u.value);_.aI(function(){hu.disconnect();w&&w.disconnect()})}});
Y=_.mR(function(ca){if(_.hRX(_.sP(ca),P.value,["BUTTON".toString()])||!F)return!1;_.E().resolve(_.uY).resolveCommand(F,{forceClickLogging:!0});return!1});
var V=function(ca){ca=C()+ca;ca>=0&&ca<v()&&(m=!0,x(ca))},M=_.mR(function(){G(!0);
return!1}),zJ=_.mR(function(){w||a();
G(!1);return!1}),O={};
return _.R("yt-video-metadata-carousel-view-model",{class:_.Si("ytVideoMetadataCarouselViewModelHost",(O.ytVideoMetadataCarouselViewModelShortMode=_.f("mweb_video_metadata_carousel_short_mode"),O)),el:P,"on:click":Y,"on:touchstart":M,"on:touchend":zJ,hidden:function(){var ca,hu;return!((ca=S())==null?0:(hu=ca.carouselItems)==null?0:hu.length)}},_.R("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.R(_.gw,{cond:function(){return S().carouselTitles},
then:function(ca){return _.R(_.rv,{data:function(){return ca()[K()&&w?c:C()]}},{carouselTitleViewModel:function(hu){return _.R(LxI,{data:hu.data,
handleCarouselNavigation:V,numItems:v,selectedIndex:C})}})}})),_.R("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:u},_.R("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+b()+"px;"}},_.R(_.gw,{cond:function(){return S().carouselItems},
then:function(ca){return _.R(_.$Z,{each:ca},function(hu,ah){return _.R(_.rv,{data:function(){return hu}},{carouselItemViewModel:function(va){return _.R(IJ_,{data:va.data,
itemIndex:ah,selectedIndex:C,indexUpdatedCallback:U,observer:w,title:function(){a:{var yX=ah();var la,w1=(la=S())==null?void 0:la.carouselTitles;if(w1&&(yX=w1[yX])){var U9;yX=(U9=_.g(yX,hbB))==null?void 0:U9.title;break a}yX=void 0}return yX}})}})})}}))))},"Di"),"yt-video-metadata-carousel-view-model",{props:{data:_.wm}});var wic=_.f("web_action_buttons_update_owner_width")?32:12,vE=function(){var Y=_.Z.apply(this,arguments)||this;Y.metadataBadgesInDescription=_.f("web_metadata_badges_in_description");Y.descriptionCollapsed=!0;Y.useFadedScrimDescription=_.f("kevlar_enable_faded_scrim_on_description");Y.skinnyMode=!1;Y.playlist=!1;Y.isDark=document.documentElement.hasAttribute("dark");Y.disableVideoOwnerOnTap=_.f("swatchie_video_owner_on_tap_ks");Y.swatcherooDelayLoad=_.f("swatcheroo_enable_ghost_cards");Y.primaryMenuWidth=
0;Y.videoId="";Y.titleHeadlineXs=_.f("web_watch_typography_title_headline_xs");Y.titleHeadlineS=_.f("web_watch_typography_title_headline_s");Y.titleHeadlineM=_.f("web_watch_typography_title_headline_m");Y.titleHashtagBlackLinkified=_.f("web_title_hashtag_black_linkified");Y.titleHashtagGreyLinkified=_.f("web_title_hashtag_grey_linkified");Y.actionButtonsUpdateOwnerWidth=_.f("web_action_buttons_update_owner_width");Y.shouldForceIconOnly=!1;Y.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};return Y};
_.r(vE,_.Z);_.z=vE.prototype;_.z.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.z.updateOwnerAndDescriptionPosition=function(){_.f("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.Fu(this.bottomRowElement,this.ownerElement)):(_.Fu(this.bottomRowElement,this.descriptionElement),_.Fu(this.topRowElement,this.ownerElement)))};
_.z.titleOnTap=function(Y){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.iN(_.iM(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var S;((S=window.getSelection())==null?0:S.toString().length)||this.handleExpandDescriptionCommands()}};
_.z.videoOwnerOnTap=function(Y){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.iN(_.iM(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.z.detached=function(){var Y=this,S;return _.B(function(P){(S=Y.resizeObserver)==null||S.disconnect();_.Yt(P)})};
_.z.maybeAttachResizeObserver=function(){var Y=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.NE(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){Y.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.z.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var Y=this.hostElement.clientWidth,S=Math.max(this.largerItemWrap?400:350,Y/2-wic);if(_.f("web_action_buttons_update_owner_width")){var P;S=(((P=document.getElementById("owner"))==null?void 0:P.clientWidth)||0)+wic}this.actionsOnSeparateLine=this.primaryMenuWidth>Y-S?!0:!1}};
_.z.stripAttributedDescription=function(Y){return{content:Y.content.replace(/[\r\n]{2,}/g,"\n")}};
_.z.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.f("web_modern_buttons"),forceIconButton:!_.f("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:_.f("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"}}}};
_.z.videoPrimaryInfoRendererChanged=function(){var Y;if((Y=this.videoPrimaryInfoRenderer)==null?0:Y.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.z.videoSecondaryInfoRendererChanged=function(){var Y,S;(S=(Y=this.descriptionInlineExpander).collapse)==null||S.call(Y);this.descriptionExpandClientVe=_.TI(110509);this.descriptionCollapseClientVe=_.TI(110510);Y=_.pM();S=_.wf();Y&&S&&(_.f("combine_ve_grafts")?(_.Ym(_.BF(),this.descriptionExpandClientVe,S),_.Ym(_.BF(),this.descriptionCollapseClientVe,S)):_.Ar(Y,S,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.z.structuredDescriptionContentRendererChanged=function(){_.f("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.z.updateTopLevelIconsOnly=function(){var Y=this;_.f("top_level_update_killswitch")||this.menu&&_.wc.addLowPriorityJob(function(){Y.menu.topLevelIconsOnly=Y.skinnyMode},_.z_("swathceroo_delay_flexible_menu_update",100))};
_.z.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.f("web_action_buttons_minimize_subscribe")};
_.z.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.z.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.z.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.z.onYtTextInlineExpanderExpandedChanged=function(){if(!_.f("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var Y,S;(S=(Y=this.structuredDescriptionContentRendererElement).resize)==null||S.call(Y)}};
_.z.onRenderStamperFinished=function(Y){(Y==null?void 0:Y.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.z.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.z.onYtExpanderLessTapped=function(){var Y,S=(Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.showLessCommand;S&&this.ytComponentBehavior.resolveCommand(S)};
_.z.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.z.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.z.onDescriptionClick=function(Y){if(!_.iN(_.iM(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var S;((S=window.getSelection())==null?0:S.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.f("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.z.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.z.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.z.logCollapseClick=function(){var Y=_.pM();Y&&this.descriptionCollapseClientVe&&_.ko(Y,this.descriptionCollapseClientVe)};
_.z.logExpandClick=function(){var Y=_.pM();Y&&this.descriptionExpandClientVe&&_.ko(Y,this.descriptionExpandClientVe)};
_.z.collapseDescription=function(){this.descriptionCollapsed=!0};
_.z.scrollToTopOfContainer=function(){_.nb(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.z.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.z.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.z.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.z.resize=function(){if(this.descriptionInlineExpander){var Y,S;(S=(Y=this.descriptionInlineExpander).resize)==null||S.call(Y)}else _.sf(new _.$2("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var P;(P=this.menu)==null||P.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.f("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.z.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var Y,S,P,u,W=_.f("web_action_buttons_update_owner_width")?(P=(Y=_.I(this.menu).querySelector("#button-shape"))==null?void 0:Y.clientWidth)!=null?P:0:(u=(S=_.I(this.menu).querySelector("#button"))==null?void 0:S.clientWidth)!=null?u:0,m,J;Y=((J=(m=_.I(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:m.clientWidth)!=null?J:0)+8+W;var c,C;W=(C=(c=_.I(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:c.children.length)!=null?C:2;Y<=8*W||(this.primaryMenuWidth=Y)}};
_.z.onYtUpdateTitleAction=function(Y){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.g(Y,z11).title)};
_.z.onYtUpdateDescriptionAction=function(Y){if(Y=_.g(Y,_.f36)){var S,P=!((S=this.videoSecondaryInfoRenderer)==null||!S.attributedDescription);Y.isEmpty||!Y.description&&!Y.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):Y.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",Y.attributedDescription):Y.description&&(P?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.$J(Y.description)):this.set("videoSecondaryInfoRenderer.description",Y.description))}};
_.z.onYtDarkModeToggledAction=function(Y){this.isDark=Y};
_.z.registerPanel=function(){if(!_.f("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var Y=_.E().resolve(_.Rr);Y&&Y.registerPanel("engagement-panel-structured-description",this)}};
_.z.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.z.showPanel=function(Y){this.expandDescription();var S=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;S.resize();var P,u=Y==null?void 0:(P=Y.sectionListEngagementPanelExtras)==null?void 0:P.scrollToItemSectionIdentifier;u?_.wc.addJob(function(){S==null||S.scrollToSection(u)},8):this.scrollToTopOfContainer()};
_.z.isVisible=function(){return!this.descriptionCollapsed};
_.z.getReloadContinuation=function(){};
_.z.hidePanel=function(){};
_.z.updatePanel=function(){};
_.y6.Object.defineProperties(vE.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.structuredDescriptionContentRenderer)!=null&&Y.items){var S;Y=_.n((S=this.structuredDescriptionContentRenderer)==null?void 0:S.items);for(S=Y.next();!S.done;S=Y.next())if(S=_.g(S.value,_.aT_))return S}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.videoPrimaryInfoRenderer)==null?0:Y.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return!!((Y=this.videoSecondaryInfoRenderer)==null?0:(S=Y.owner)==null?0:(P=S.videoOwnerRenderer)==null?0:P.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.f("swatchie_sd_new_line_strip_ks")){var Y,S;if((Y=this.videoSecondaryInfoRenderer)==null?0:(S=Y.attributedDescription)==null?0:S.content){var P,u;return(u=this.stripAttributedDescription((P=this.videoSecondaryInfoRenderer)==null?void 0:P.attributedDescription))!=null?u:{runs:[]}}}var W,m,J,c;return(c=(J=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.description)!=null?J:(m=this.videoSecondaryInfoRenderer)==null?
void 0:m.attributedDescription)!=null?c:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(S=(Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.headerRuns)!=null?S:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.commentsEntryPointHeaderRenderer)==null||!Y.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.videoMetadataCarousel)==null||!Y.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.z_("swatchie_desc_lines",3):this.hasTeaserCarousel?_.z_("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=Object.assign({},(Y=this.videoSecondaryInfoRenderer)==null?void 0:(S=Y.metadataRowContainer)==null?void 0:S.metadataRowContainerRenderer);if(P&&P.rows&&P.collapsedItemCount!==void 0&&!(P.rows.length<=P.collapsedItemCount))return P.rows=P.rows.slice(P.collapsedItemCount),P.collapsedItemCount=0,P}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var Y,S,P=Object.assign({},(Y=this.videoSecondaryInfoRenderer)==null?void 0:(S=Y.metadataRowContainer)==null?void 0:S.metadataRowContainerRenderer);if(P&&P.rows&&P.collapsedItemCount!==void 0)return P.rows=P.rows.slice(0,P.collapsedItemCount),P.collapsedItemCount=P.rows.length,P}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!!((Y=this.structuredDescriptionContentRenderer)==null?0:(S=Y.items)==null?0:S.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var Y;return(Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((Y=this.videoSecondaryInfoRenderer)==null?0:(S=Y.owner)==null?0:(P=S.videoOwnerRenderer)==null?0:P.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u;return!!((Y=this.videoPrimaryInfoRenderer)==null?0:(S=Y.videoActions)==null?0:(P=S.menuRenderer)==null?0:(u=P.flexibleItems)==null?0:u.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.sD(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.sD(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var Y=this;if(_.f("web_title_hashtag_grey_delinkified")){var S,P=_.RY.unsafeClone((S=this.videoPrimaryInfoRenderer)==null?void 0:S.title);(S=P==null?void 0:P.runs)&&S.forEach(function(u){if(u==null?0:u.navigationEndpoint)u.textColor=4284506208,Y.isDark&&(u.textColor=4289374890)});
return P}return(P=this.videoPrimaryInfoRenderer)==null?void 0:P.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.f("web_title_hashtag_black_delinkified")||_.f("web_title_hashtag_grey_delinkified")}}});
vE.prototype.resetDescriptionState=vE.prototype.resetDescriptionState;vE.prototype.registerPanel=vE.prototype.registerPanel;vE.prototype.onYtExpanderLessTapped=vE.prototype.onYtExpanderLessTapped;vE.prototype.onYtExpanderMoreTapped=vE.prototype.onYtExpanderMoreTapped;vE.prototype.onRenderStamperFinished=vE.prototype.onRenderStamperFinished;vE.prototype.onYtTextInlineExpanderExpandedChanged=vE.prototype.onYtTextInlineExpanderExpandedChanged;vE.prototype.onYtTextInlineExpanderCollapseClicked=vE.prototype.onYtTextInlineExpanderCollapseClicked;
vE.prototype.onYtTextInlineExpanderExpandClicked=vE.prototype.onYtTextInlineExpanderExpandClicked;vE.prototype.moveActionsElement=vE.prototype.moveActionsElement;vE.prototype.updateShouldForceIconOnly=vE.prototype.updateShouldForceIconOnly;vE.prototype.updateTopLevelIconsOnly=vE.prototype.updateTopLevelIconsOnly;vE.prototype.structuredDescriptionContentRendererChanged=vE.prototype.structuredDescriptionContentRendererChanged;vE.prototype.videoSecondaryInfoRendererChanged=vE.prototype.videoSecondaryInfoRendererChanged;
vE.prototype.videoPrimaryInfoRendererChanged=vE.prototype.videoPrimaryInfoRendererChanged;vE.prototype.maybeUpdateActionsOnSeparateLine=vE.prototype.maybeUpdateActionsOnSeparateLine;vE.prototype.updateOwnerAndDescriptionPosition=vE.prototype.updateOwnerAndDescriptionPosition;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],vE.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],vE.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.nc("#above-the-fold"),_.k("design:type",HTMLElement)],vE.prototype,"aboveTheFoldContainer",void 0);_.Q([_.nc("#menu ytd-menu-renderer"),_.k("design:type",Object)],vE.prototype,"menu",void 0);
_.Q([_.nc("#description-inline-expander"),_.k("design:type",Object)],vE.prototype,"descriptionInlineExpander",void 0);_.Q([_.nc("#faded-structured-description"),_.k("design:type",Object)],vE.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.Q([_.nc("#structured-description"),_.k("design:type",Object)],vE.prototype,"structuredDescriptionContentRendererElement",void 0);_.Q([_.nc("#title"),_.k("design:type",HTMLElement)],vE.prototype,"titleElement",void 0);
_.Q([_.nc("#description"),_.k("design:type",HTMLElement)],vE.prototype,"descriptionElement",void 0);_.Q([_.nc("#description-interaction"),_.k("design:type",Object)],vE.prototype,"descriptionInteraction",void 0);_.Q([_.nc("#owner"),_.k("design:type",HTMLElement)],vE.prototype,"ownerElement",void 0);_.Q([_.nc("#top-row"),_.k("design:type",HTMLElement)],vE.prototype,"topRowElement",void 0);_.Q([_.nc("#bottom-row"),_.k("design:type",HTMLElement)],vE.prototype,"bottomRowElement",void 0);
_.Q([_.nc("#actions"),_.k("design:type",HTMLElement)],vE.prototype,"actionsElement",void 0);_.Q([_.nc("#bottom-actions"),_.k("design:type",HTMLElement)],vE.prototype,"bottomActionsElement",void 0);_.Q([_.nc("#ytd-watch-info-text"),_.k("design:type",Object)],vE.prototype,"watchInfoTextElement",void 0);_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"videoPrimaryInfoRenderer",void 0);
_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"videoSecondaryInfoRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"commentsEntryPointHeaderRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"videoMetadataCarousel",void 0);_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"structuredDescriptionContentRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"videoSummary",void 0);
_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"merchShelf",void 0);_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"infoPanelBelowMetadata",void 0);_.Q([_.d("structuredDescriptionContentRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"productShelf",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],vE.prototype,"metadataBadgesInDescription",void 0);
_.Q([_.d("videoPrimaryInfoRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"shouldHideBadges",null);_.Q([_.d("productShelf","descriptionCollapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vE.prototype,"shouldShowProductShelf",null);_.Q([_.X(),_.k("design:type",Boolean)],vE.prototype,"isWatchFlexy",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],vE.prototype,"descriptionCollapsed",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],vE.prototype,"useFadedScrimDescription",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],vE.prototype,"skinnyMode",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("videoSecondaryInfoRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"largerItemWrap",null);_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"playlist",void 0);_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"clarifyBox",void 0);
_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"playerAds",void 0);_.Q([_.X(),_.k("design:type",Boolean)],vE.prototype,"isDark",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],vE.prototype,"actionsOnSeparateLine",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],vE.prototype,"disableVideoOwnerOnTap",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],vE.prototype,"swatcherooDelayLoad",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],vE.prototype,"suppressTopLevelMetadataRows",void 0);_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"primaryMenuWidth",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],vE.prototype,"videoId",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],vE.prototype,"titleHeadlineXs",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],vE.prototype,"titleHeadlineS",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],vE.prototype,"titleHeadlineM",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],vE.prototype,"titleHashtagBlackLinkified",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],vE.prototype,"titleHashtagGreyLinkified",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],vE.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.Q([_.X(),_.k("design:type",Object)],vE.prototype,"shouldForceIconOnly",void 0);_.Q([_.cZ("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"updateOwnerAndDescriptionPosition",null);_.Q([_.cZ("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.Q([_.d("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"descriptionText",null);_.Q([_.d("videoSecondaryInfoRenderer.headerRuns"),_.k("design:type",Array),_.k("design:paramtypes",[])],vE.prototype,"headerRuns",null);_.Q([_.X({value:!1}),_.d("commentsEntryPointHeaderRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"hasTeaser",null);
_.Q([_.X({value:!1,reflectToAttribute:!0}),_.d("videoMetadataCarousel"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"hasTeaserCarousel",null);_.Q([_.X({value:3}),_.d("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"descriptionMaxLines",null);_.Q([_.d("videoSecondaryInfoRenderer.metadataRowContainer"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"collapsibleMetadataRows",null);
_.Q([_.d("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"alwaysVisibleMetadataRows",null);_.Q([_.d("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vE.prototype,"hasInlineStructuredDescription",null);
_.Q([_.d("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vE.prototype,"showInlineStructuredDescription",null);_.Q([_.d("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"descriptionExpandCommand",null);
_.Q([_.d("videoSecondaryInfoRenderer.owner"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"videoOwnerCommand",null);_.Q([_.X({reflectToAttribute:!0}),_.d("videoPrimaryInfoRenderer.videoActions"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vE.prototype,"flexMenuEnabled",null);_.Q([_.d("descriptionText","useFadedScrimDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vE.prototype,"showAttributedStringDescription",null);
_.Q([_.d("descriptionText","useFadedScrimDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vE.prototype,"showFormattedStringDescription",null);_.Q([_.d("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vE.prototype,"showFadedStructuredDescription",null);
_.Q([_.cZ("videoPrimaryInfoRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"videoPrimaryInfoRendererChanged",null);_.Q([_.d("videoPrimaryInfoRenderer.title"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"videoTitle",null);_.Q([_.d("videoPrimaryInfoRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],vE.prototype,"noEndpoints",null);
_.Q([_.cZ("videoSecondaryInfoRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"videoSecondaryInfoRendererChanged",null);_.Q([_.zY("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"structuredDescriptionContentRendererChanged",null);
_.Q([_.zY("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"updateTopLevelIconsOnly",null);_.Q([_.zY("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"updateShouldForceIconOnly",null);_.Q([_.zY("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"moveActionsElement",null);
_.Q([_.WZ("yt-text-inline-expander-expand-clicked"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"onYtTextInlineExpanderExpandClicked",null);_.Q([_.WZ("yt-text-inline-expander-collapse-clicked"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.Q([_.WZ("yt-text-inline-expander-expanded-changed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],vE.prototype,"onRenderStamperFinished",null);
_.Q([_.WZ("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"onYtExpanderMoreTapped",null);_.Q([_.WZ("yt-expander-less-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"onYtExpanderLessTapped",null);
_.Q([_.zY("videoPrimaryInfoRenderer","hasInlineStructuredDescription"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"registerPanel",null);_.Q([_.zY("videoSecondaryInfoRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vE.prototype,"resetDescriptionState",null);vE=_.Q([_.t({disableElementRegistration:!0,is:"ytd-watch-metadata"})],vE);
_.A(vE,"ytd-watch-metadata",function(){if($e_!==void 0)return $e_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return $e_=Y},{mode:2});var iI1=function(Y){_.R6.call(this);this.JSC$20122_watchApi=Y;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;pi6(this);FxI(this);sHY(this);deo(this);lJc(this);Xij(this);ZI6(this)};
_.r(iI1,_.R6);var sHY=function(Y){var S=function(){_.f("kevlar_is_pupi_enabled")||DL(Y)};
Y.JSC$20122_watchApi.getRoot().addEventListener("yt-player-updated",S);Y.addOnDisposeCallback(function(){Y.JSC$20122_watchApi.getRoot().removeEventListener("yt-player-updated",S)})},lJc=function(Y){if(_.f("kevlar_endscreen_auto_theater_mode")){var S=_.J5(_.Na(),rJ,function(){oe1(Y)});
Y.addOnDisposeCallback(S)}},pi6=function(Y){var S,P,u,W,m;
_.B(function(J){if(J.nextAddress==1)return _.q(J,Y.JSC$20122_watchApi.playerApi,2);S=J.yieldResult;P=function(c){c=!!c;I2(Y)&&(c=c?2:1,_.Af.getInstance().setState(c,!0,!1))};
u=function(c){c&&_.DOI(_.Na().getState())&&(_.nb(Y.JSC$20122_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),Y.temporaryTheaterMode=!0)};
W=function(c){_.f("kevlar_player_update_autonav_on_new_data")&&c.type==="newdata"&&(_.f("kevlar_is_pupi_enabled")||DL(Y))};
m=function(c){Y.onPlayerStateChange(c)};
_.f("kevlar_endscreen_auto_theater_mode")&&S.addEventListener("onAutonavCancelled",u);S.addEventListener("onAutonavChangeRequest",P);S.addEventListener("onVideoDataChange",W);S.addEventListener("onStateChange",m);Y.addOnDisposeCallback(function(){S.removeEventListener("onAutonavChangeRequest",P);S.removeEventListener("onVideoDataChange",W);S.removeEventListener("onStateChange",m);_.f("kevlar_endscreen_auto_theater_mode")&&S.removeEventListener("onAutonavCancelled",u)});
_.Yt(J)})},FxI=function(Y){Y.JSC$20122_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){Y.autonavCancelledBySignal=!0;
_.f("kevlar_is_pupi_enabled")||DL(Y)});
Y.JSC$20122_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(S,P,u){P&&DL(Y,u)});
Y.JSC$20122_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){I2(Y)&&_.Af.getInstance().setState(2,!0,!0)});
Y.JSC$20122_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){I2(Y)&&_.Af.getInstance().setState(1,!0,!0)});
Y.addOnDisposeCallback(function(){a2(Y.JSC$20122_watchApi,"yt-signal-action-cancel-autonav");a2(Y.JSC$20122_watchApi,"yt-autonav-state-changed-action");a2(Y.JSC$20122_watchApi,"yt-enable-autoplay-command");a2(Y.JSC$20122_watchApi,"yt-disable-autoplay-command")})},deo=function(Y){var S=Y.JSC$20122_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ZI6(Y)}),P=Y.JSC$20122_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Xij(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$20122_watchApi.unsubscribeByKey(S);Y.JSC$20122_watchApi.unsubscribeByKey(P)})},ZI6=function(Y){Y.autonavCancelledBySignal=!1;
_.f("kevlar_is_pupi_enabled")||DL(Y)},Xij=function(Y){var S=Y.JSC$20122_watchApi.getWatchNextResponse(),P,u;
var W=(S=(u=_.g(S==null?void 0:(W=S.playerOverlays)==null?void 0:(P=W.playerOverlayRenderer)==null?void 0:P.autonavToggle,_.$n3))==null?void 0:u.enabled)?2:1;_.f("kevlar_is_pupi_enabled")?_.Af.getInstance().setState(W,!1,!1):DL(Y);_.f("web_persist_server_autonav_state_on_client")&&typeof S==="boolean"&&_.BU1(W===2)},I2=function(Y){if(Y.autonavCancelledBySignal)return!1;
var S,P,u,W;return!!((S=Y.JSC$20122_watchApi.getWatchNextResponse())==null?0:(P=S.contents)==null?0:(u=P.twoColumnWatchNextResults)==null?0:(W=u.autoplay)==null?0:W.autoplay)};
iI1.prototype.onPlayerStateChange=function(Y){if(Y===0){Y=!_.Af.getInstance().isAutoplaySetExplicitly();var S=this.JSC$20122_watchApi.getWatchNextResponse(),P,u,W,m;S=_.g(S==null?void 0:(P=S.contents)==null?void 0:(u=P.twoColumnWatchNextResults)==null?void 0:(W=u.autoplay)==null?void 0:(m=W.autoplay)==null?void 0:m.autoplayExplicitChoiceDialogRenderer,_.Prm);I2(this)&&Y&&S&&_.zR.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:S},popupType:"DIALOG"}})}else oe1(this)};
var oe1=function(Y){Y.temporaryTheaterMode&&(Y.temporaryTheaterMode=!1,_.nb(Y.JSC$20122_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},DL=function(Y,S){S=S===void 0?!1:S;
var P;_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20122_watchApi.playerApi,2);P=u.yieldResult;I2(Y)?P.setAutonavState(_.Af.getInstance().getState(),S):P.setAutonavState(1,S);_.Yt(u)})};var tUY={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL"};var UeB=function(Y){_.R6.call(this);var S=this;this.JSC$20127_watchApi=Y;var P=this.JSC$20127_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){AC_(S)});
this.addOnDisposeCallback(function(){S.JSC$20127_watchApi.unsubscribeByKey(P)});
AC_(this)};
_.r(UeB,_.R6);var AC_=function(Y){var S=Y.JSC$20127_watchApi.getPlayerResponse(),P=Y.JSC$20127_watchApi.getWatchNextResponse();if(!_.LPa(S==null?void 0:S.playabilityStatus,P==null?void 0:P.playerOverlays)){var u;var W=S==null?void 0:(u=S.playabilityStatus)==null?void 0:u.errorScreen}Y.JSC$20127_watchApi.provideRenderingData("ERROR_SCREEN",W)};var QHY=_.AI(function(Y){var S=Y.data;return _.R("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.R("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.R(_.qw,{text:function(){return S().title}})),_.R("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.R(_.rv,{data:function(){return S().channelAvatar}},{avatarViewModel:_.qr}),_.R(_.qw,{text:function(){return S().subtitle}})))},"Ei");var k0B=_.AI(function(Y){return _.R("yt-player-quick-action-buttons",{class:_.Si("ytPlayerQuickActionButtonsHost")},_.R(_.$Z,{each:Y.data},function(S){return _.R(_.rv,{data:function(){return S}},{buttonViewModel:_.aq,
likeButtonViewModel:function(P){return _.R(_.P5f,{data:P.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.SAs})}))},"Fi");var yCY=function(Y){_.R6.call(this);var S=this;this.JSC$20130_watchApi=Y;Y=_.n(_.qb({},void 0,"ufFdVc"));this.quickActionsViewModel=Y.next().value;this.setQuickActionsViewModel=Y.next().value;Y=_.n(_.qb({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=Y.next().value;this.setPlayerOverlayVideoDetailsRenderer=Y.next().value;var P=this.JSC$20130_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){MUI(S)});
this.addOnDisposeCallback(function(){S.JSC$20130_watchApi.unsubscribeByKey(P)});
MUI(this)};
_.r(yCY,_.R6);
var MUI=function(Y){var S,P,u,W,m,J,c,C,x,b,T,K,G,v;_.B(function(a){if(a.nextAddress==1)return _.q(a,Y.JSC$20130_watchApi.playerApi,2);S=a.yieldResult;P=Y.JSC$20130_watchApi.getWatchNextResponse();m=(u=P)==null?void 0:(W=u.playerOverlays)==null?void 0:W.playerOverlayRenderer;c=_.g((J=m)==null?void 0:J.fullscreenQuickActionsBar,_.loJ);(x=(C=Y).setQuickActionsViewModel)==null||x.call(C,c||{});c&&NAc(Y,S);K=(b=m)==null?void 0:(T=b.videoDetails)==null?void 0:T.playerOverlayVideoDetailsRenderer;(v=(G=
Y).setPlayerOverlayVideoDetailsRenderer)==null||v.call(G,K||{});K&&HI5(Y,S);_.Yt(a)})},NAc=function(Y,S){if(!Y.quickActionButtonsContainer){Y.quickActionButtonsContainer=document.createElement("div");
S.setFullscreenQuickActions(Y.quickActionButtonsContainer);var P=function(){return Y.quickActionsViewModel().quickActionButtons||[]},u=_.D4(Y.quickActionButtonsContainer,function(){return _.R(k0B,{data:P})});
Y.addOnDisposeCallback(function(){S.setFullscreenQuickActions(void 0);u()})}},HI5=function(Y,S){if(!Y.playerOverlayVideoDetailsRendererContainer){Y.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
S.setPlayerOverlayVideoDetailsRenderer(Y.playerOverlayVideoDetailsRendererContainer);var P=_.D4(Y.playerOverlayVideoDetailsRendererContainer,function(){return _.R(QHY,{data:Y.playerOverlayVideoDetailsRenderer})});
Y.addOnDisposeCallback(function(){S.setPlayerOverlayVideoDetailsRenderer(void 0);P()})}};var L9=function(Y){_.R6.call(this);var S=this;this.JSC$20135_watchApi=Y;this.JSC$20135_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;Y=_.J5(_.Na(),_.G7,function(P){VU5(S,P)});
this.addOnDisposeCallback(Y);Y=_.J5(_.Na(),_.hb,function(P){S.onWatchScroll(P)});
this.addOnDisposeCallback(Y);_.f("kevlar_watch_while_v2")&&(Y=_.J5(_.Na(),_.pA,function(P){e5u(S,P)}),this.addOnDisposeCallback(Y));
OIB(this);YHI(this);SHI();this.onWatchScroll(_.hb(_.Na().getState()));_.Z4("START_IN_FULL_WINDOW_MODE")&&this.JSC$20135_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.r(L9,_.R6);var OIB=function(Y){Y.JSC$20135_watchApi.registerActionHandler("yt-fullscreen-change-action",function(S){var P=rJ(_.Na().getState());S&&!P||_.Na().dispatch(_.WT({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!S}}))});
Y.addOnDisposeCallback(function(){a2(Y.JSC$20135_watchApi,"yt-fullscreen-change-action")})},YHI=function(Y){var S,P;
_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20135_watchApi.playerApi,2);S=u.yieldResult;P=function(){Y.onFullerscreenEduClicked()};
S.addEventListener("onFullerscreenEduClicked",P);Y.addOnDisposeCallback(function(){S.removeEventListener("onFullerscreenEduClicked",P)});
_.Yt(u)})},VU5=function(Y,S){var P;
_.B(function(u){if(u.nextAddress==1)return Y.isFullscreen=!!_.SR(),_.q(u,Y.JSC$20135_watchApi.playerApi,2);P=u.yieldResult;Y.JSC$20135_miniplayerActive||P.setFauxFullscreen(Y.isFullscreen);if(S&&(Y.JSC$20135_watchApi.focusOnPlayer(),!Y.fullerscreenEduButtonShownThisPlayback)){Y.fullerscreenEduButtonShownThisPlayback=!0;var W=_.u4("yt-fullerscreen-edu-button-shown-count")||0;_.PU("yt-fullerscreen-edu-button-shown-count",W+1,31536E3);Y.updateFullerscreenEduButtonSubtleModeState()}_.Yt(u)})},e5u=function(Y,
S){var P;
_.B(function(u){if(u.nextAddress==1)return Y.JSC$20135_miniplayerActive=S,_.q(u,Y.JSC$20135_watchApi.playerApi,2);P=u.yieldResult;P.setFauxFullscreen(!Y.JSC$20135_miniplayerActive&&Y.isFullscreen);_.Yt(u)})};
L9.prototype.onWatchScroll=function(Y){var S=this,P,u;return _.B(function(W){if(W.nextAddress==1)return _.f("external_fullscreen_with_edu")?_.q(W,S.JSC$20135_watchApi.playerApi,2):W.return();P=W.yieldResult;u=Y<=0;S.shouldShowFullerscreenEdu!==u&&(S.shouldShowFullerscreenEdu=u,P.updateFullerscreenEduButtonVisibility(!S.shouldShowFullerscreenEdu));_.Yt(W)})};
L9.prototype.onFullerscreenEduClicked=function(){this.JSC$20135_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var Y=_.u4("yt-fullerscreen-edu-button-click-count")||0;_.PU("yt-fullerscreen-edu-button-click-count",Y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
L9.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var Y=this,S,P,u,W,m,J;return _.B(function(c){if(c.nextAddress==1)return S=_.u4("yt-fullerscreen-edu-button-click-count")||0,P=_.u4("yt-fullerscreen-edu-button-shown-count")||0,u=_.z_("external_fullscreen_button_click_threshold"),W=_.z_("external_fullscreen_button_shown_threshold"),m=S>=u||P>=W,_.q(c,Y.JSC$20135_watchApi.playerApi,2);J=c.yieldResult;J.updateFullerscreenEduButtonSubtleModeState(m);_.Yt(c)})};
L9.prototype.disposeInternal=function(){_.R6.prototype.disposeInternal.call(this);var Y=_.SR();_.f("kevlar_exit_fullscreen_leaving_watch")&&Y&&_.Pu(Y)};
var SHI=function(){if(_.f("web_watch_add_viewport_meta_tag")){var Y=document.querySelector("meta[name=viewport]"),S=document.head;S&&!Y&&(Y=document.createElement("meta"),Y.name="viewport",Y.content="width=device-width, initial-scale=1.0, viewport-fit=cover",S.appendChild(Y))}};var uA1=function(Y){_.R6.call(this);var S=this;this.JSC$20139_watchApi=Y;this.jobId=0;this.pendingRequestId=void 0;var P=this.JSC$20139_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Puu(S)});
this.addOnDisposeCallback(function(){S.JSC$20139_watchApi.unsubscribeByKey(P)});
Puu(this)};
_.r(uA1,_.R6);var WPu=function(Y){_.wc.cancelJob(Y.jobId);Y.pendingRequestId=void 0},Puu=function(Y){WPu(Y);
var S=Pb_(Y.JSC$20139_watchApi.getWatchNextResponse());if(S){var P=250,u,W=(u=_.g(S,_.ZPJ))==null?void 0:u.initialDelayMs;_.f("web_watch_updated_metadata_server_initial_delay")&&W&&(P=W);Y.jobId=_.wc.addLowPriorityJob(function(){return Y.fetchUpdatedMetadata(S)},P)}};
uA1.prototype.fetchUpdatedMetadata=function(Y,S){var P=this,u,W,m,J,c,C,x,b,T,K,G,v,a,w,F;return _.B(function(U){switch(U.nextAddress){case 1:S&&(u={continuation:S});if(!_.f("web_get_updated_metadata_fantasy_panel_continuation_params")){U.jumpTo(2);break}W=_.E().resolve(_.Rr);m="PAsports_fantasy";return _.q(U,W.isVisible(m,!0),3);case 3:U.yieldResult&&(x=(c=(J=W).getUpdatePanelContinuationData)==null?void 0:(C=c.call(J,m))==null?void 0:C.updatePanelContinuationRequest)&&(u||(u={}),u.clientParams=
{panelContinuationParams:{panelContinuation:x}});case 2:b=_.E().resolve(_.fV);if(!b)return _.p_(Error("jm")),U.return();T={};P.pendingRequestId=T;return _.q(U,_.sn(b,Y,u),4);case 4:K=U.yieldResult;if(T!==P.pendingRequestId)return U.return();a=(G=K)==null?void 0:(v=G.continuation)==null?void 0:v.timedContinuationData;((w=a)==null?0:w.continuation)&&((F=a)==null?0:F.timeoutMs)&&(P.jobId=_.wc.addLowPriorityJob(function(){return P.fetchUpdatedMetadata(Y,a.continuation)},a.timeoutMs));
_.Yt(U)}})};
uA1.prototype.disposeInternal=function(){_.R6.prototype.disposeInternal.call(this);WPu(this)};var zrY=_.AI(function(Y){var S=_.mR(function(){var u=Y.data().videoId;if(Y.active())u=_.YW(u),_.E().resolve(_.uY).resolveCommand(u);else{var W=Y.playerApi(),m=W.getAvailableAudioTracks(),J,c,C=(J=Y.sourceVideoConfig().audioTracks)==null?void 0:(c=J.find(function(x){return x.isDefaultForSource}))==null?void 0:c.id;
if(m=m.find(function(x){return x.getLanguageInfo().getId()===C}))W.setAudioTrack(m,!0),W.setCompositeParam({activeVideoId:u}),Y.setActiveSourceId(u)}}),P={};
return _.R("ytw-composite-source-video-overlay",{class:_.Si("ytwCompositeSourceVideoOverlayHost",(P.ytwCompositeSourceVideoOverlayActive=Y.active,P.ytwCompositeSourceVideoOverlayInteracting=Y.interacting,P)),style:_.Jg({left:function(){var u;return((u=Y.data().topLeftCornerX)!=null?u:0)*100+"%"},
top:function(){var u;return((u=Y.data().topLeftCornerY)!=null?u:0)*100+"%"},
width:function(){var u;return((u=Y.data().width)!=null?u:0)*100+"%"},
height:function(){var u;return((u=Y.data().height)!=null?u:0)*100+"%"}}),
"on:click":S},_.R("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Gi");var m5B=_.AI(function(Y){var S=_.n(_.ji(function(){var c,C=(c=Y.data().sources)==null?void 0:c.find(function(x){return x.isActive});
if(C)return C.videoId})),P=S.next().value,u=S.next().value;
S=_.n(_.qb(!1,void 0,"WI4BUb"));var W=S.next().value,m=S.next().value;S=_.mR(function(){m(!0)});
var J=_.mR(function(){m(!1)});
return _.R("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":S,"on:mouseout":J},_.R(_.gw,{cond:function(){return Y.data().sources},
then:function(c){return _.R(_.$Z,{each:c},function(C){return _.R(zrY,{data:C,active:function(){return C.videoId===P()},
setActiveSourceId:u,interacting:W,playerApi:Y.playerApi,sourceVideoConfig:function(){return u81(Y.compositeVideoConfig(),C.videoId)}})})}}))},"Hi");var JtB=function(Y){_.R6.call(this);this.JSC$20155_watchApi=Y;Y=_.n(_.qb({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=Y.next().value;this.setCompositeVideoOverlayRenderer=Y.next().value;Y=_.n(_.qb({},void 0,"U5hcq"));this.compositeVideoConfig=Y.next().value;this.setCompositeVideoConfig=Y.next().value;nLj(this);jbc(this)};
_.r(JtB,_.R6);var nLj=function(Y){var S=Y.JSC$20155_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){jbc(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$20155_watchApi.unsubscribeByKey(S)})},BqZ=function(Y){var S;
return _.B(function(P){if(P.nextAddress==1)return _.q(P,Y.JSC$20155_watchApi.playerApi,2);S=P.yieldResult;S.setCompositeVideoOverlayRendererComponent(Y.container);_.Yt(P)})},ct6=function(Y){var S;
return _.B(function(P){if(P.nextAddress==1)return _.q(P,Y.JSC$20155_watchApi.playerApi,2);S=P.yieldResult;S.setCompositeVideoOverlayRendererComponent(void 0);_.Yt(P)})},Cud=function(Y){var S,P;
return _.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20155_watchApi.playerApi,2);S=u.yieldResult;Y.container=document.createElement("div");P=_.D4(Y.container,function(){return _.R(m5B,{data:Y.compositeVideoOverlayRenderer,compositeVideoConfig:Y.compositeVideoConfig,playerApi:S})});
Y.addOnDisposeCallback(P);_.Yt(u)})},jbc=function(Y){var S,P,u,W,m,J,c,C;
_.B(function(x){return x.nextAddress==1?(S=Y.JSC$20155_watchApi.getPlayerResponse(),m=_.g((P=S)==null?void 0:(u=P.overlay)==null?void 0:(W=u.playerControlsOverlayRenderer)==null?void 0:W.compositeVideoOverlay,yo1),C=(J=S)==null?void 0:(c=J.playerConfig)==null?void 0:c.compositeVideoConfig,m&&Y.setCompositeVideoOverlayRenderer(m),C&&Y.setCompositeVideoConfig(C),m&&C?Y.container?x.jumpTo(6):_.q(x,Cud(Y),6):qHI(Y)?_.q(x,ct6(Y),0):x.jumpTo(0)):qHI(Y)?x.jumpTo(0):_.q(x,BqZ(Y),0)})},qHI=function(Y){var S;
return!((S=Y.container)==null||!S.parentElement)};
JtB.prototype.disposeInternal=function(){qHI(this)&&ct6(this);_.R6.prototype.disposeInternal.call(this)};var KPd=function(Y){_.R6.call(this);var S=this;this.JSC$20161_watchApi=Y;var P=this.JSC$20161_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var u=S.JSC$20161_watchApi.getPlayerResponse();if(u){var W,m;if(u=_.g((W=u.endscreen)==null?void 0:(m=W.endscreenRenderer)==null?void 0:m.hideButton,_.hq)){var J;(J=S.setEndscreenHideButton)==null||J.call(S,u);Rrj(S)}}});
this.addOnDisposeCallback(function(){S.JSC$20161_watchApi.unsubscribeByKey(P)});
Y=_.n(_.qb({},void 0,"PPHRb"));this.endscreenHideButton=Y.next().value;this.setEndscreenHideButton=Y.next().value;x5Z(this);by6(this);Tq6(this)};
_.r(KPd,_.R6);var Rrj=function(Y){var S,P;_.B(function(u){if(u.nextAddress==1)return Y.creatorEndscreenHideButtonContainer?u.return():_.q(u,Y.JSC$20161_watchApi.playerApi,2);S=u.yieldResult;Y.creatorEndscreenHideButtonContainer=document.createElement("div");_.Zb(Y.creatorEndscreenHideButtonContainer,!1);S.setCreatorEndscreenHideButton(Y.creatorEndscreenHideButtonContainer);P=_.D4(Y.creatorEndscreenHideButtonContainer,function(){return _.R(_.vL,{data:Y.endscreenHideButton,useOutlinedIcon:!0})});
Y.addOnDisposeCallback(function(){P();S.setCreatorEndscreenHideButton(void 0)});
_.Yt(u)})},x5Z=function(Y){var S,P;
_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20161_watchApi.playerApi,2);S=u.yieldResult;P=function(){Y.creatorEndscreenHideButtonContainer&&_.Zb(Y.creatorEndscreenHideButtonContainer,!0)};
S.addEventListener("endscreenelementshown",P);Y.addOnDisposeCallback(function(){S.removeEventListener("endscreenelementshown",P)});
_.Yt(u)})},by6=function(Y){var S=function(){Y.creatorEndscreenHideButtonContainer&&_.Zb(Y.creatorEndscreenHideButtonContainer,!1)},P=Y.JSC$20161_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",S),u=Y.JSC$20161_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",S);
Y.addOnDisposeCallback(function(){Y.JSC$20161_watchApi.unsubscribeByKey(P);Y.JSC$20161_watchApi.unsubscribeByKey(u)})},Tq6=function(Y){Y.JSC$20161_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(S){var P=_.g(S,ttd);
Y.JSC$20161_watchApi.playerApi.then(function(u){u==null||u.setCreatorEndscreenVisibility(!!P.hide)})});
Y.addOnDisposeCallback(function(){a2(Y.JSC$20161_watchApi,"yt-change-creator-endscreen-visibility-command")})};var fuc=function(Y){_.R6.call(this);this.JSC$20167_watchApi=Y;ELY(this)};
_.r(fuc,_.R6);var ELY=function(Y){var S,P;_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20167_watchApi.playerApi,2);S=u.yieldResult;P=function(W){_.Na().dispatch(_.WT({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:W}}))};
S.addEventListener("onRetroModeChanged",P);Y.addOnDisposeCallback(function(){S.removeEventListener("onRetroModeChanged",P)});
_.Yt(u)})};var LO=0,aZ=0,wJ=0;var gL6=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),wl=function(Y){_.R6.call(this);this.JSC$20180_watchApi=Y;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;$5Z(this)};
_.r(wl,_.R6);
var $5Z=function(Y){var S,P,u;_.B(function(W){if(W.nextAddress==1)return _.q(W,Y.JSC$20180_watchApi.playerApi,2);S=W.yieldResult;if(Y.isDisposed())return W.return();Y.sessionStorage=_.Qs5("yt-sleep-timer");Y.sessionStorage||_.sf(new _.$2("SessionStorage for Sleep Timer is undefined."));((P=Y.sessionStorage)==null?void 0:P.get("yt-sleep-timer"))==="true"&&(qc_(),(u=Y.sessionStorage)==null||u.remove("yt-sleep-timer"),S.syncVolume());rt_(Y,S);GgX(Y,S);hrc(Y,S);_.Yt(W)})},rt_=function(Y,S){var P=function(x){Y.onSleepTimerSettingsChanged(x,
S)},u=function(x){Y.onPlayerStateChange(x,S)},W=function(){Y.onLoopChange(S)},m=function(){Y.onCloseMiniplayer(S)},J=function(){JoI(S,(0,_.Oh)(),Rbo(S),Y.selectedOption==="End of video",S.getPlayerState()!==1)},c=function(){Y.onSeekComplete(S)},C=function(){_.wc.cancelJob(aZ);
var x=S.getCurrentTime()>=S.getDuration(),b=Y.selectedOption==="End of video"||Y.selectedOption==="End of playlist"&&!m3d(Y.playlistId);x&&b&&vL5(Y,S)};
S.addEventListener("onSleepTimerSettingsChanged",P);S.addEventListener("onLoopChange",W);S.addEventListener("onLoopRangeChange",W);S.addEventListener("onStateChange",u);S.addEventListener("onCloseMiniplayer",m);S.addEventListener("onSleepTimerFeatureAvailable",J);S.addEventListener("SEEK_COMPLETE",c);S.addEventListener("onAdStart",C);Y.addOnDisposeCallback(function(){S.removeEventListener("onSleepTimerSettingsChanged",P);S.removeEventListener("onLoopChange",W);S.removeEventListener("onLoopRangeChange",
W);S.removeEventListener("onStateChange",u);S.removeEventListener("onCloseMiniplayer",m);S.removeEventListener("onSleepTimerFeatureAvailable",J);S.removeEventListener("SEEK_COMPLETE",c);S.removeEventListener("onAdStart",C)})},GgX=function(Y,S){var P=Y.JSC$20180_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var u=S.getVideoData().video_id,W,m=(W=W7_(Y.JSC$20180_watchApi))==null?void 0:W.playlistId;
Y.pauseAutonavPlayback&&(S.pauseVideo(),S.syncVolume(),Y.pauseAutonavPlayback=!1);if(Y.selectedOption==="End of video"&&u!==Y.videoId)p9(Y,S);else{if(Y.selectedOption==="End of playlist"){W=m3d(Y.playlistId);if(m!==Y.playlistId){p9(Y,S);break a}W?W&&D5_(Y,S):Iuu(Y,S)}Y.videoId=u;Y.playlistId=m}}});
Y.addOnDisposeCallback(function(){Y.JSC$20180_watchApi.unsubscribeByKey(P)})},hrc=function(Y,S){var P=_.E().resolve(_.Ee),u=_.J5(P,_.npY,function(m){m&&Y.selectedOption!=="Off"&&p9(Y,S)}),W=_.J5(P,rJ,function(m){var J,c;
return _.B(function(C){if(C.nextAddress==1)return _.q(C,_.nd().navigationFinishPromise,2);J=!_.l7d();c=_.E().resolve(_.l1).isMiniplayerActive();m||!IZ(Y.selectedOption)||c||J||p9(Y,S);_.Yt(C)})});
P=_.J5(P,function(m){return m.entities.playlistLoopStateEntity||{}},function(m){m=m===void 0?{}:m;
var J=zbZ(Y.JSC$20180_watchApi);if(J){var c;((c=m[J])==null?void 0:c.state)==="PLAYLIST_LOOP_STATE_ALL"&&IZ(Y.selectedOption)&&p9(Y,S)}});
Y.addOnDisposeCallback(u);Y.addOnDisposeCallback(P);Y.addOnDisposeCallback(W)};
wl.prototype.onSleepTimerSettingsChanged=function(Y,S){switch(Y){case "Off":this.selectedOption!=="Off"&&p9(this,S);break;case "End of video":case "End of playlist":au_(this,Y,S);break;default:au_(this,Y,S,gL6.get(Y))}};
wl.prototype.onLoopChange=function(Y){(Y.getLoopVideo()||Y.getLoopRange())&&IZ(this.selectedOption)&&p9(this,Y)};
wl.prototype.onCloseMiniplayer=function(Y){IZ(this.selectedOption)&&p9(this,Y)};
var au_=function(Y,S,P,u){LP6(Y,P);Y.selectedOption=S;Y.videoId=P.getVideoData().video_id;Y.playlistId="";var W;(W=Y.sessionStorage)==null||W.set("yt-sleep-timer","true");Y.adjustmentsCount++;JoI(P,(0,_.Oh)(),Rbo(P),Y.selectedOption==="End of video");if(Y.selectedOption==="End of video")Iuu(Y,P),w2c(Y,P);else if(Y.selectedOption==="End of playlist"){w2c(Y,P);var m,J;Y.playlistId=(J=(m=W7_(Y.JSC$20180_watchApi))==null?void 0:m.playlistId)!=null?J:"";m3d(Y.playlistId)||Iuu(Y,P)}else u&&(Y.presetFadeSchedulerId=
_.bL(_.wc,function(){co6(P,15E3)},u-15E3),Y.presetPauseSchedulerId=_.bL(_.wc,function(){vL5(Y,P)},u),BRI(P,(0,_.Oh)(),u))},vL5=function(Y,S){if(rJ(_.E().resolve(_.Ee).getState())){var P={dismissDialogEndpoint:{}};
var u={commandExecutorCommand:{commands:[P,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};P={buttonViewModel:{title:_.Td("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:P}}};u={buttonViewModel:{title:_.Td("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:u}}};var W={dialogHeaderViewModel:{headline:{content:_.Td("SLEEP_TIMER_ENDED_TITLE")}}},
m={basicContentViewModel:{paragraphs:[{text:{content:_.Td("SLEEP_TIMER_ENDED_TEXT")}}]}};P={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:W,content:m,footer:{panelFooterViewModel:{primaryButton:P,secondaryButton:u,shouldHideDivider:!0}}}}}}};_.E().resolve(_.uY).resolveCommand(P,{form:{element:Y}})}else qc_();p2B(Y,!1);FP6(Y,S);S.pauseVideo();_.Af.getInstance().getState()===2&&S.getPlayerState()===5&&(Y.pauseAutonavPlayback=!0)},p9=function(Y,S){p2B(Y,!0);
FP6(Y,S);qc_()},FP6=function(Y,S){LP6(Y,S);
Y.selectedOption="Off";Y.videoId="";Y.playlistId="";Y.adjustmentsCount=0;var P;(P=Y.sessionStorage)==null||P.remove("yt-sleep-timer");_.wc.cancelJob(LO);S.resetSleepTimerMenuSettings()},p2B=function(Y,S){S={timer_length_adjustment_times_during_session:Y.adjustmentsCount-1,
is_session_cancelled:S};switch(Y.selectedOption){case "Off":S.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":S.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":S.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:S.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",S.option_duration_in_minutes=gL6.get(Y.selectedOption)/6E4}_.L_("sleepTimerSessionFinishEvent",S)};
wl.prototype.onPlayerStateChange=function(Y,S){Y===1?JoI(S,(0,_.Oh)(),Rbo(S),this.selectedOption==="End of video"):Y===0?(_.wc.cancelJob(aZ),S.setVideoTimeLeft(jvX(0,0))):Y===2&&_.wc.cancelJob(aZ);this.selectedOption==="End of video"?Y===0?vL5(this,S):Y===2&&Cb1(S):this.selectedOption!=="End of playlist"||m3d(this.playlistId)||(Y===0?vL5(this,S):Y===2&&Cb1(S))};
wl.prototype.onSeekComplete=function(Y){Y.getPlayerState()===2&&JoI(Y,(0,_.Oh)(),Rbo(Y),this.selectedOption==="End of video",!0)};
wl.prototype.onCueRangeEnter=function(Y,S){Y==="sleep-timer-fade-audio"&&co6(S,(S.getDuration()-S.getProgressState().current)*1E3)};
wl.prototype.onCueRangeExit=function(Y,S){Y==="sleep-timer-fade-audio"&&S.getPlayerState()!==0&&Cb1(S,!0)};
var Iuu=function(Y,S){S.addCueRange("sleep-timer-fade-audio",S.getDuration()-15,S.getDuration());S.addEventListener("onCueRangeEnter",function(P){Y.onCueRangeEnter(P,S)});
S.addEventListener("onCueRangeExit",function(P){Y.onCueRangeExit(P,S)})},D5_=function(Y,S){S.removeCueRange("sleep-timer-fade-audio");
S.removeEventListener("onCueRangeEnter",function(P){Y.onCueRangeEnter(P,S)});
S.removeEventListener("onCueRangeExit",function(P){Y.onCueRangeExit(P,S)})},LP6=function(Y,S){IZ(Y.selectedOption)?D5_(Y,S):(_.wc.cancelJob(Y.presetPauseSchedulerId),_.wc.cancelJob(Y.presetFadeSchedulerId),Y.presetPauseSchedulerId=0,Y.presetFadeSchedulerId=0);
Cb1(S,!0)},w2c=function(Y,S){S.setLoop(!1);
S.setLoopVideo(!1);S.setLoopRange(null);(Y=zbZ(Y.JSC$20180_watchApi))&&_.E().resolve(_.Ee).dispatch(_.qE("playlistLoopStateEntity",Y,{key:Y,state:"PLAYLIST_LOOP_STATE_NONE"}))};var X2Z=function(Y){_.R6.call(this);this.JSC$20183_watchApi=Y;sbZ(this);d5d(this);luI(this);Y=Y.getRoot();if(Y.is==="ytd-watch-flexy"||Y.is==="ytd-watch-grid")Y.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.rUo();_.f("web_watch_log_theater_mode_cookie_state")&&_.T_.get("wide","0")==="1"&&_.C31("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.r(X2Z,_.R6);var sbZ=function(Y){var S,P;_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20183_watchApi.playerApi,2);S=u.yieldResult;P=function(W){Zy5(Y,!!W)};
S.addEventListener("SIZE_CLICKED",P);Y.addOnDisposeCallback(function(){S.removeEventListener("SIZE_CLICKED",P)});
_.Yt(u)})},d5d=function(Y){Y.JSC$20183_watchApi.registerActionHandler("yt-toggle-theater-mode",function(S,P){Zy5(Y,S,P===void 0?!0:P)});
Y.addOnDisposeCallback(function(){a2(Y.JSC$20183_watchApi,"yt-toggle-theater-mode")})};
X2Z.prototype.getState=function(){return _.fe(_.Na().getState())};
var Zy5=function(Y,S,P){P=P===void 0?!0:P;var u,W,m,J=_.f("enable_player_resize_transition")&&!!Y.JSC$20183_watchApi.getWatchNextResponse()&&!((u=Y.JSC$20183_watchApi.getWatchNextResponse())==null?0:(W=u.contents)==null?0:(m=W.twoColumnWatchNextResults)==null?0:m.conversationBar);_.oUB(function(){_.Na().dispatch(_.WT({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:S}}));_.f("theater_mode_scroll_to_top_killswitch")||Y.JSC$20183_watchApi.scrollWatchTo(0,!1);_.SR()&&_.f("external_fullscreen")&&_.Pu(document.documentElement);
luI(Y);P&&_.Kz("wide",S?"1":"0",-1);_.nb(Y.JSC$20183_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);Y.JSC$20183_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:S});S&&_.rUo()},{shouldWrap:J})},luI=function(Y){var S;
_.B(function(P){if(P.nextAddress==1)return _.q(P,Y.JSC$20183_watchApi.playerApi,2);S=P.yieldResult;S.setSizeStyle(!0,Y.getState());_.Yt(P)})};var tAu=function(Y){_.R6.call(this);var S=this;this.playerApi=Y;this.timeToPanelSyncKeyMap={};var P;if(Y==null?0:(P=Y.isReady)==null?0:P.call(Y)){P=_.J5(_.E().resolve(_.Ee),function(W){return W.entities.timedMarkersListSyncEntity||{}},function(W,m){W=W===void 0?{}:W;
m=m===void 0?{}:m;for(var J=_.n(Object.keys(m)),c=J.next();!c.done;c=J.next())c=c.value,W[c]!==m[c]&&iyI(S,m[c]);m=_.n(Object.keys(W));for(J=m.next();!J.done;J=m.next())J=J.value,c=W[J],S.timeToPanelSyncKeyMap[J]&&oLu(S,c)});
this.addOnDisposeCallback(P);var u=function(W){S.onCueRangeEnter(W)};
Y.addEventListener("onCueRangeEnter",u);this.addOnDisposeCallback(function(){var W;(W=Y.removeEventListener)==null||W.call(Y,"onCueRangeEnter",u)})}};
_.r(tAu,_.R6);
var oLu=function(Y,S){var P,u;if((P=Y.playerApi)==null?0:(u=P.isReady)==null?0:u.call(P)){var W;if((P=S==null?void 0:(W=S.timedListData)==null?void 0:W.sections)&&S!=null&&S.key)for(W=_.n(P),P=W.next();!P.done;P=W.next())if(P=P.value,P.timedSyncDataList&&P.sectionId)for(u=0;u<P.timedSyncDataList.length;u++){var m=P.timedSyncDataList[u];m.syncItemId&&Y.playerApi.addCueRange(P.sectionId+"_"+S.key+"_"+m.syncItemId,Number(m.videoTimeMs)/1E3,u===P.timedSyncDataList.length-1?0x8000000000000:Number(P.timedSyncDataList[u+
1].videoTimeMs)/1E3)}}},iyI=function(Y,S){var P,u;
if((P=Y.playerApi)==null?0:(u=P.isReady)==null?0:u.call(P)){var W;if((P=S==null?void 0:(W=S.timedListData)==null?void 0:W.sections)&&S!=null&&S.key)for(W=_.n(P),P=W.next();!P.done;P=W.next())if(P=P.value,P.timedSyncDataList&&P.sectionId){u=_.n(P.timedSyncDataList);for(var m=u.next();!m.done;m=u.next())m=m.value,m.syncItemId&&Y.playerApi.removeCueRange(P.sectionId+"_"+S.key+"_"+m.syncItemId)}}};
tAu.prototype.onCueRangeEnter=function(Y){for(var S=_.n(Object.keys(this.timeToPanelSyncKeyMap)),P=S.next();!P.done;P=S.next()){P=P.value;var u=_.n(Y.split("_"+P+"_")),W=u.next().value;u=u.next().value;if(W&&u){Y=_.E().resolve(_.Ee);S=this.timeToPanelSyncKeyMap[P];var m=_.DjY(Y.getState(),S);P=AtX(P,W,u);if(P===-1)break;P={activeSyncId:u,activeItemIndex:P,activeSectionInfo:{sectionIdentifier:W}};m?Y.dispatch(_.Dw("markersEngagementPanelSyncEntity",S,P)):Y.dispatch(_.qE("markersEngagementPanelSyncEntity",
S,Object.assign({},{key:S},P)));break}}};
var AtX=function(Y,S,P){var u=_.E().resolve(_.Ee),W,m;Y=(W=Erj(u.getState(),Y))==null?void 0:(m=W.timedListData)==null?void 0:m.sections;if(!Y)return-1;W=0;m=_.n(Y);for(Y=m.next();!Y.done;Y=m.next()){Y=Y.value;u=Y.timedSyncDataList||[];if(Y.sectionId===S)return S=u.findIndex(function(J){return J.syncItemId===P}),S===-1?S:W+S;
W+=u.length}return-1};var kg1=function(Y){_.R6.call(this);var S=this;this.JSC$20195_watchApi=Y;this.unresolvedCommands=[];this.JSC$20195_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(P){U56(S,P)});
this.addOnDisposeCallback(function(){a2(S.JSC$20195_watchApi,"yt-update-timed-markers-sync-observer-command")});
Qbd(this)};
_.r(kg1,_.R6);var Qbd=function(Y){var S;_.B(function(P){if(P.nextAddress==1)return _.q(P,Y.JSC$20195_watchApi.playerApi,2);S=P.yieldResult;if(Y.isDisposed())return P.return();Y.timedSyncObserver=new tAu(S);Y.unresolvedCommands.length&&(Y.unresolvedCommands.forEach(function(u){return U56(Y,u)}),Y.unresolvedCommands=[]);
_.Ph(Y,Y.timedSyncObserver);_.Yt(P)})},U56=function(Y,S){if(Y.timedSyncObserver){var P=_.g(S,U31);
if(P&&P.timedSyncEntityKey&&P.panelSyncEntityKey){Y=Y.timedSyncObserver;S=P.timedSyncEntityKey;var u=P.panelSyncEntityKey;P=!!P.isEnabled;P=P===void 0?!0:P;var W=_.E().resolve(_.Ee);W=Erj(W.getState(),S);P?Y.timeToPanelSyncKeyMap[S]||(Y.timeToPanelSyncKeyMap[S]=u,oLu(Y,W)):(delete Y.timeToPanelSyncKeyMap[S],iyI(Y,W))}}else Y.unresolvedCommands.push(S)};var MAX=_.AI(function(Y){var S=Y.data,P=Y.maybeLogSmartSkipClientData,u=_.Ms();_.Zw(u,function(){return S().rendererContext},{onTap:function(b,T){T({disableClickTracking:!0})}});
var W=null,m=null,J=_.f("web_enable_auto_focus_for_timely_action_button"),c=function(){W=document.activeElement},C=function(){S().smartSkipMetadata&&(W=document.activeElement,Kdc(function(){return m}))},x=function(b){if(S().smartSkipMetadata&&(!b||b.key!=="Enter")){W&&W.isConnected&&(Kdc(function(){return W}),W=null);
var T;(T=m)==null||T.blur()}};
Y=_.mR(function(){P==null||P(!0,S());return!1});
_.Yy(u,{visibilityCallback:function(b){if(J)b?m&&S().smartSkipMetadata&&(C(),document.addEventListener("focusin",c)):(document.removeEventListener("focusin",c),x());else if(b&&_.f("web_ephemeral_actions")){b=_.dv(S().rendererContext);var T=Number(S().maxVisibleDurationMilliseconds),K,G=(K=_.g(S().rendererContext,_.iL))==null?void 0:K.label;b&&T&&G&&(K={label:G,command:b,durationMs:T},_.E().resolve(_.zG).enqueue(K))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.Ij(function(){if(J){var b;if((m=(b=u.value)==null?void 0:b.querySelector("button"))&&S().smartSkipMetadata){var T;(T=u.value)==null||T.addEventListener("keydown",x)}}});
_.aI(function(){J&&(m&&S().smartSkipMetadata&&m.removeEventListener("keydown",x),document.removeEventListener("focusin",c),x())});
return _.R("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:u,"on:click":Y},_.R(_.rv,{data:function(){return S().content}},{buttonViewModel:_.aq}))},"Ii");var ytY=_.AI(function(Y){var S=Y.data,P=Y.playerApi,u=_.E().resolve(_.e86);Y=_.n(_.ji(function(){S()}));
var W=Y.next().value,m=Y.next().value,J=function(){return bW6(S(),W())},c=function(x,b){var T,K,G=(T=_.g(b==null?void 0:b.rendererContext,_.lkY))==null?void 0:(K=T.loggingDirectives)==null?void 0:K.trackingParams;
if((b=b==null?void 0:b.smartSkipMetadata)&&b.loggingData&&(K=b.loggingData,b=K.algorithmId,T=K.startMilliseconds,K=K.endMilliseconds,b&&T!==void 0&&K!==void 0)){var v,a;x={smartSkipData:Object.assign({},{versionName:b,startMediaTimeMs:T,endMediaTimeMs:K},x&&{userInteractionMediaTimeMs:(Math.floor(((v=_.Q5())==null?void 0:(a=v.getPlayer())==null?void 0:a.getCurrentTime())||0)*1E3).toString()})};v=_.pM();var w;G&&(w=_.Re(G));v&&w&&_.yP(v,w,x)}},C=function(x,b){var T=bW6(S(),x);
if(T){var K=_.g(T,pO),G;if(G=b)G=P(),T=_.g(T,pO),G=T!=null&&T.smartSkipMetadata?!(G==null?0:G.isSameMarkerTypeVisible((T==null?void 0:T.smartSkipMetadata.markerKey)||"")):!0;if(G){var v,a;(K==null?0:(v=K.smartSkipMetadata)==null?0:(a=v.loggingData)==null?0:a.isCounterfactual)||(c(!1,K),m(x))}else b||W()!==x||m(void 0)}};
_.D6(function(){var x=S().timelyActions;if(x){x=_.n(x);for(var b=x.next();!b.done;b=x.next()){b=_.g(b.value,pO);var T=void 0;(T=b)!=null&&T.cueRangeId&&u.timelyActionsMap.set(b.cueRangeId,C)}_.aI(function(){u.timelyActionsMap.clear()})}});
return _.R("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.R(_.rv,{data:J},{timelyActionViewModel:function(x){return _.R(MAX,{data:x.data,maybeLogSmartSkipClientData:function(){c(!0,_.g(J(),pO))}})}}))},"Ji");var Hy_=function(Y){_.R6.call(this);this.JSC$20207_watchApi=Y;Y=_.n(_.qb({},void 0,"pLDp2"));this.timelyActionsOverlay=Y.next().value;this.setTimelyActionsOverlay=Y.next().value;Nqu(this)};
_.r(Hy_,_.R6);var Nqu=function(Y){var S,P,u,W;_.B(function(m){if(m.nextAddress==1)return VA5(Y),erI(Y),Y.timelyActionsContainer=document.createElement("div"),_.q(m,Y.JSC$20207_watchApi.playerApi,2);S=m.yieldResult;(u=(P=S).insertTimelyActionUi)==null||u.call(P,Y.timelyActionsContainer);W=_.D4(Y.timelyActionsContainer,function(){return _.R(ytY,{data:Y.timelyActionsOverlay,playerApi:S})});
Y.addOnDisposeCallback(W);_.Yt(m)})},erI=function(Y){var S=Y.JSC$20207_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){VA5(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$20207_watchApi.unsubscribeByKey(S)})},VA5=function(Y){var S=Y.JSC$20207_watchApi.getWatchNextResponse();
if(S){var P,u;if(S=_.g((P=S.playerOverlays)==null?void 0:(u=P.playerOverlayRenderer)==null?void 0:u.timelyActionsOverlayViewModel,Qvj)){var W;(W=Y.setTimelyActionsOverlay)==null||W.call(Y,S)}}};var Y1_=function(Y){_.R6.call(this);this.JSC$20211_watchApi=Y;Oy6(this)};
_.r(Y1_,_.R6);var Oy6=function(Y){var S,P;_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20211_watchApi.playerApi,2);S=u.yieldResult;P=function(W){_.zR.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.g(W,_.PhB)},popupType:"TOAST"}})};
S.addEventListener("onYtShowToast",P);Y.addOnDisposeCallback(function(){S.removeEventListener("onYtShowToast",P)});
_.Yt(u)})};var S1X=!1,zFj=function(Y){_.R6.call(this);this.JSC$20214_watchApi=Y;this.fullscreen=this.theater=!1;PZY(this);uxu(this);Wgc(this)};
_.r(zFj,_.R6);var Wgc=function(Y){var S,P,u;_.B(function(W){if(W.nextAddress==1)return _.q(W,Y.JSC$20214_watchApi.playerApi,2);S=W.yieldResult;if(Y.isDisposed())return W.return();P=Y.JSC$20214_watchApi.getElement("CINEMATICS");if(!P)return W.return();Y.JSC$20214_cinematicController=new _.u_(P,S);_.Ph(Y,Y.JSC$20214_cinematicController);_.GQ1(Y.JSC$20214_cinematicController);mlI(Y,_.j1u());u=Y.JSC$20214_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(m){nDB(Y,m)});
Y.addOnDisposeCallback(function(){Y.JSC$20214_watchApi.unsubscribeByKey(u)});
jtI(Y);nDB(Y,Y.JSC$20214_cinematicController.isAllowed());JZZ(Y,Y.fullscreen,Y.theater);Bnc(Y);_.Yt(W)})},PZY=function(Y){var S=Y.JSC$20214_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jtI(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$20214_watchApi.unsubscribeByKey(S)})},uxu=function(Y){var S,P;
_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20214_watchApi.playerApi,2);S=u.yieldResult;P=function(W){mlI(Y,W)};
S.addEventListener("cinematicSettingsToggleChange",P);Y.addOnDisposeCallback(function(){S.removeEventListener("cinematicSettingsToggleChange",P)});
_.Yt(u)})},jtI=function(Y){var S=Y.JSC$20214_watchApi.getWatchNextResponse(),P;
S=_.g(S==null?void 0:(P=S.pageVisualEffects)==null?void 0:P[0],_.TA);var u;(u=Y.JSC$20214_cinematicController)==null||_.vVc(u,S)},mlI=function(Y,S){var P;
(P=Y.JSC$20214_cinematicController)==null||_.hVu(P,S);cZ5(Y)},nDB=function(Y,S){var P;
_.B(function(u){if(u.nextAddress==1)return _.f("kevlar_watch_cinematics_invisible")&&(S=!1),_.q(u,Y.JSC$20214_watchApi.playerApi,2);P=u.yieldResult;P.updateCinematicSettings(S);cZ5(Y);_.Yt(u)})},Bnc=function(Y){var S=_.$o();
if(_.f("kevlar_measure_ambient_mode_idle")&&!S.getFlag(192)&&!S1X){S1X=!0;var P=_.hp(_.wc,function(){_.E().resolve(_.Am1).start(1E4)},5E3);
Y.addOnDisposeCallback(function(){_.wc.cancelJob(P);_.E().resolve(_.Am1).stop()})}},JZZ=function(Y,S,P){Y.fullscreen=S;
Y.theater=P;var u;(u=Y.JSC$20214_cinematicController)==null||u.setFullscreen(Y.fullscreen,Y.theater);if(_.f("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(Y.theater||Y.fullscreen){var W;(W=Y.JSC$20214_cinematicController)!=null&&(W=W.currentCinematicEffect)!=null&&(W=W.storyboardManager,W.paused=!1,_.nVZ(W),W.update())}else(Y=Y.JSC$20214_cinematicController)==null||(W=Y.currentCinematicEffect)!=null&&W.pause()},cZ5=function(Y){if(_.f("web_cinematic_theater_mode")||_.f("web_cinematic_fullscreen")){var S;
Y.JSC$20214_watchApi.getRoot().toggleCinematicsActive(!((S=Y.JSC$20214_cinematicController)==null||!S.isEnabled()))}};var xlX=function(Y){_.R6.call(this);var S=this;this.JSC$20217_watchApi=Y;this.commentsReady=!1;this.setCommentsJobId=0;Y=_.J5(_.Na(),_.hb,function(){CZY(S)});
this.addOnDisposeCallback(Y);var P=this.JSC$20217_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){q1_(S)}),u=this.JSC$20217_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){q1_(S)});
this.addOnDisposeCallback(function(){S.JSC$20217_watchApi.unsubscribeByKey(P);S.JSC$20217_watchApi.unsubscribeByKey(u)});
var W=function(){_.f("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&RFX(S,"false")};
this.JSC$20217_watchApi.getRoot().addEventListener("yt-page-data-will-update",W);this.addOnDisposeCallback(function(){S.JSC$20217_watchApi.getRoot().removeEventListener("yt-page-data-will-update",W)});
q1_(this)};
_.r(xlX,_.R6);var q1_=function(Y){Y.commentsReady=!1;_.wc.cancelJob(Y.setCommentsJobId);Y.setCommentsJobId=_.hp(_.wc,function(){CZY(Y)},1E3)},CZY=function(Y){if(!Y.commentsReady){_.Fk("cmi");
_.wc.cancelJob(Y.setCommentsJobId);var S,P,u,W,m=(S=Y.JSC$20217_watchApi.getWatchNextResponse())==null?void 0:(P=S.contents)==null?void 0:(u=P.twoColumnWatchNextResults)==null?void 0:(W=u.results)==null?void 0:W.results.contents;S=void 0;if(m&&m.length)for(m=_.n(m),P=m.next();!P.done;P=m.next())if(P=P.value,W=u=void 0,((u=P)==null?void 0:(W=u.itemSectionRenderer)==null?void 0:W.sectionIdentifier)==="comment-item-section"){_.f("web_watch_provide_undefined_comments")?S=P.itemSectionRenderer:Y.JSC$20217_watchApi.provideRenderingData("COMMENTS",
P.itemSectionRenderer);RFX(Y,"true");break}_.f("web_watch_provide_undefined_comments")&&Y.JSC$20217_watchApi.provideRenderingData("COMMENTS",S);Y.commentsReady=!0;Y.JSC$20217_watchApi.dispatchEvent("yt-watch-comments-ready")}},RFX=function(Y,S){var P;
(P=Y.JSC$20217_watchApi.getElement("COMMENTS"))==null||P.setAttribute("canScheduleJobs",S)};var fvj;_.bvB=["engagement-panel-ads"];
fvj=function(Y){_.R6.call(this);var S=this;this.JSC$20220_watchApi=Y;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.f("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.f("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.f("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.z_("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)TnI(this);
else{var P=this.JSC$20220_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){F9(S);s0(S)}),u=this.JSC$20220_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){dl(S);
s0(S)});
this.JSC$20220_watchApi.getRoot().is==="ytd-watch-grid"&&_.f("swatcheroo_pbs_load_grid")&&(Kgo(this),EDB(this));this.addOnDisposeCallback(function(){S.JSC$20220_watchApi.unsubscribeByKey(P);S.JSC$20220_watchApi.unsubscribeByKey(u);_.wc.cancelJob(S.provideRichGridJobId)});
F9(this);dl(this)}};
_.r(fvj,_.R6);var TnI=function(Y){var S=Y.JSC$20220_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Y.providePlayerJobId=_.$I(_.wc,function(){F9(Y);s0(Y)},Y.provideAllDataDelayMs)}),P=Y.JSC$20220_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Y.provideWatchNextJobId=_.$I(_.wc,function(){dl(Y);
s0(Y)},Y.provideAllDataDelayMs)}),u=Y.JSC$20220_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){Y.provideWatchNextJobId=_.$I(_.wc,function(){dl(Y);
s0(Y)},Y.provideAllDataDelayMs)});
Y.JSC$20220_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.hp(_.wc,function(){F9(Y);dl(Y);s0(Y)},100)});
gDo(Y.JSC$20220_watchApi,function(){_.wc.cancelJob(Y.provideWatchNextJobId);_.wc.cancelJob(Y.providePlayerJobId)});
Y.addOnDisposeCallback(function(){a2(Y.JSC$20220_watchApi,"yt-pending-navigation-cancelled");Y.JSC$20220_watchApi.unsubscribeByKey(S);Y.JSC$20220_watchApi.unsubscribeByKey(P);Y.JSC$20220_watchApi.unsubscribeByKey(u);_.wc.cancelJob(Y.providePlayerJobId);_.wc.cancelJob(Y.provideWatchNextJobId)});
F9(Y);dl(Y)},F9=function(Y){var S=Y.JSC$20220_watchApi.getPlayerResponse(),P,u,W=(u=S==null?void 0:(P=S.playabilityStatus)==null?void 0:P.messageRenderers)!=null?u:[],m,J;
S=(J=S==null?void 0:(m=S.playabilityStatus)==null?void 0:m.messages)!=null?J:[];m=_.n(S);for(J=m.next();!J.done;J=m.next())W.push({alertRenderer:{text:_.kW(J.value),type:"WARNING"}});Y.JSC$20220_watchApi.provideRenderingData("ALERTS",W)},dl=function(Y){var S=[],P,u,W,m=Y.JSC$20220_watchApi.getWatchNextResponse(),J,c,C,x,b=m==null?void 0:(J=m.contents)==null?void 0:(c=J.twoColumnWatchNextResults)==null?void 0:(C=c.results)==null?void 0:(x=C.results)==null?void 0:x.contents;
if(b)for(J=_.n(b),c=J.next();!c.done;c=J.next())if(c=c.value,c.videoPrimaryInfoRenderer)var T=c;else if(c.videoSecondaryInfoRenderer){var K=c;x=C=void 0;c=Object.assign({},(C=c.videoSecondaryInfoRenderer)==null?void 0:(x=C.metadataRowContainer)==null?void 0:x.metadataRowContainerRenderer);if(c.rows&&c.collapsedItemCount!==void 0){c.rows=c.rows.slice(0,c.collapsedItemCount).filter(function(Zf){return!!Zf.richMetadataRowRenderer});
c.collapsedItemCount=c.rows.length;var G={metadataRowContainerRenderer:c}}}else if(c.merchandiseShelfRenderer)var v=c;else if(c.ticketShelfRenderer)var a=c;else if(c.expandableMetadataRenderer)var w=c;else if(c.itemSectionRenderer)if(C=c.itemSectionRenderer.contents,x=void 0,Y.directlyProvideComments&&((x=c.itemSectionRenderer)==null?void 0:x.sectionIdentifier)==="comment-item-section")_.Fk("cmi"),Y.JSC$20220_watchApi.provideRenderingData("COMMENTS",c.itemSectionRenderer);else if(C)for(c=_.n(C),C=
c.next();!C.done;C=c.next())if(C=C.value,C.commentsEntryPointHeaderRenderer)var F=C;else if(C.clarificationRenderer||C.infoPanelContainerRenderer||C.infoPanelContentRenderer||C.emergencyOneboxRenderer){S.push(C);var U=U||!!K}else C.limitedStateMessageRenderer?u=C:C.videoMetadataCarouselViewModel&&(W=C);if(_.f("web_watch_merch_in_sd_when_ticket_shelf_present")&&v&&a){var V=v;v=void 0}if(Y.provideWatchNextSecondaryResults){var M,zJ,O;Y.JSC$20220_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
m==null?void 0:(M=m.contents)==null?void 0:(zJ=M.twoColumnWatchNextResults)==null?void 0:(O=zJ.secondaryResults)==null?void 0:O.secondaryResults)}if(Y.JSC$20220_watchApi.getRoot().is==="ytd-watch-grid"&&!_.f("swa_prov_panels_ks")&&(m==null?0:m.engagementPanels)){var ca=m.engagementPanels.filter(function(Zf){var Cu,hm;return _.bvB.includes((hm=Zf==null?void 0:(Cu=Zf.engagementPanelSectionListRenderer)==null?void 0:Cu.targetId)!=null?hm:"")});
var hu=m.engagementPanels.filter(function(Zf){var Cu,hm;return!_.bvB.includes((hm=Zf==null?void 0:(Cu=Zf.engagementPanelSectionListRenderer)==null?void 0:Cu.targetId)!=null?hm:"")})}if(Y.JSC$20220_watchApi.getRoot().is==="ytd-watch-grid"){var ah,va;
Y.JSC$20220_watchApi.provideRenderingData("LIVE_CHAT",m==null?void 0:(ah=m.contents)==null?void 0:(va=ah.twoColumnWatchNextResults)==null?void 0:va.conversationBar)}var yX,la,w1,U9;(M=m==null?void 0:(yX=m.contents)==null?void 0:(la=yX.twoColumnWatchNextResults)==null?void 0:(w1=la.secondaryResults)==null?void 0:(U9=w1.secondaryResults)==null?void 0:U9.offerModule)&&(M.donationShelfRenderer||M.donationUnavailableRenderer)&&Y.JSC$20220_watchApi.getRoot().is!=="ytd-watch-grid"&&(P=M);yX=Y.JSC$20220_watchApi.getPlayerResponse();
if(!yX||!_.LPa(yX.playabilityStatus,m==null?void 0:m.playerOverlays)){var nu;if(m==null?0:(nu=m.contents)==null?0:nu.singleColumnWatchNextResults){var Yc,tu;var $_=m==null?void 0:(Yc=m.contents.singleColumnWatchNextResults.results)==null?void 0:(tu=Yc.results)==null?void 0:tu.contents}else{var fu,G3,wd,Wd;nu=!!(b==null?0:(fu=b[0])==null?0:(G3=fu.itemSectionRenderer)==null?0:(wd=G3.contents)==null?0:(Wd=wd[0])==null?0:Wd.backgroundPromoRenderer);var kE,n8;fu=!!(m==null?0:(kE=m.contents)==null?0:(n8=
kE.twoColumnWatchNextResults)==null?0:n8.secondaryResults);nu&&!fu&&($_=b)}}b=S[0];kE=S[1];U&&S.length===1&&(kE=b,b=void 0);Y.JSC$20220_watchApi.provideRenderingData("PRIMARY_INFO",T);Y.JSC$20220_watchApi.provideRenderingData("SECONDARY_INFO",K);Y.JSC$20220_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",F);Y.JSC$20220_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",W);Y.JSC$20220_watchApi.provideRenderingData("CLARIFICATION",b);Y.JSC$20220_watchApi.provideRenderingData("RICH_METADATA",
G);Y.JSC$20220_watchApi.getRoot().is!=="ytd-watch-grid"||_.f("swa_prov_panels_ks")||_.f("web_watch_inject_placeholder_panels")||(Y.JSC$20220_watchApi.provideRenderingData("ENGAGEMENT_PANELS",hu),Y.JSC$20220_watchApi.provideRenderingData("INLINE_ENGAGEMENT_PANELS",ca));Y.JSC$20220_watchApi.provideRenderingData("MERCH_SHELF",v);_.f("web_watch_merch_in_sd_when_ticket_shelf_present")&&Y.JSC$20220_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",V);Y.JSC$20220_watchApi.provideRenderingData("TICKET_SHELF",
a);Y.JSC$20220_watchApi.provideRenderingData("LIMITED_STATE",u);Y.JSC$20220_watchApi.getRoot().is!=="ytd-watch-grid"&&Y.JSC$20220_watchApi.provideRenderingData("DONATION_SHELF",P);Y.JSC$20220_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",$_);Y.JSC$20220_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",kE);Y.JSC$20220_watchApi.provideRenderingData("EXPANDABLE_METADATA",w);if(Y.swatcherooProvideAllDataOnScheduledJob){var P6,ML,zc,Ku,uo,qL;T=m==null?void 0:(P6=m.contents)==null?void 0:
(ML=P6.twoColumnWatchNextResults)==null?void 0:(zc=ML.secondaryResults)==null?void 0:(Ku=zc.secondaryResults)==null?void 0:(uo=Ku.results)==null?void 0:(qL=uo[0])==null?void 0:qL.richGridRenderer;Y.JSC$20220_watchApi.provideRenderingData("RICH_GRID_RENDERER",T)}};
fvj.prototype.hasCompanionAds=function(Y){var S,P;return(P=Y==null?void 0:(S=Y.adPlacements)==null?void 0:S.some(function(u){var W,m,J,c;return(u==null?void 0:(W=u.adPlacementRenderer)==null?void 0:(m=W.renderer)==null?void 0:m.actionCompanionAdRenderer)||(u==null?void 0:(J=u.adPlacementRenderer)==null?void 0:(c=J.renderer)==null?void 0:c.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?P:!1};
var s0=function(Y){if(!_.f("swaterdoo_ps_wn_handle_ks")){Y.swatcherooProvideAllDataOnScheduledJob||EDB(Y,3E3);var S=Y.JSC$20220_watchApi.getPlayerResponse(),P,u,W,m,J,c=(P=Y.JSC$20220_watchApi.getWatchNextResponse())==null?void 0:(u=P.contents)==null?void 0:(W=u.twoColumnWatchNextResults)==null?void 0:(m=W.secondaryResults)==null?void 0:(J=m.secondaryResults)==null?void 0:J.offerModule;S=Y.hasCompanionAds(S);var C,x;P=(c==null?void 0:(C=c.tvfilmOfferModuleRenderer)==null?void 0:C.clientShouldSuppressIfCompanionAdDisplayed)||
(c==null?void 0:(x=c.unlimitedOfferModuleRenderer)==null?void 0:x.suppressIfCompanionAds);C=S&&P;Y.JSC$20220_watchApi.getRoot().is==="ytd-watch-grid"&&Y.JSC$20220_watchApi.provideRenderingData("OFFER_MODULE",C?void 0:c)}},EDB=function(Y,S){_.f("swatcheroo_pbs_load_grid")&&(Y.provideRichGridJobId&&_.wc.cancelJob(Y.provideRichGridJobId),Y.provideRichGridJobId=_.$I(_.wc,function(){Y.provideRichGridJobId=0;
var P,u,W,m,J,c,C,x=(P=Y.JSC$20220_watchApi.getWatchNextResponse())==null?void 0:(u=P.contents)==null?void 0:(W=u.twoColumnWatchNextResults)==null?void 0:(m=W.secondaryResults)==null?void 0:(J=m.secondaryResults)==null?void 0:(c=J.results)==null?void 0:(C=c[0])==null?void 0:C.richGridRenderer;x&&Y.JSC$20220_watchApi.provideRenderingData("RICH_GRID_RENDERER",x)},S))},Kgo=function(Y){var S,P;
_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20220_watchApi.playerApi,2);S=u.yieldResult;P=function(){Y.onPlaybackStart()};
S.addEventListener("onPlaybackStartExternal",P);Y.addOnDisposeCallback(function(){S.removeEventListener("onPlaybackStartExternal",P)});
_.Yt(u)})};
fvj.prototype.onPlaybackStart=function(){EDB(this)};var rZY=function(Y){_.R6.call(this);var S=this;this.JSC$20230_watchApi=Y;Y.playerApi.then(function(P){S.player=P});
this.gestures=new _.cA(this.JSC$20230_watchApi.getRoot(),Y.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(rJ(_.Na().getState())&&_.hb(_.Na().getState())<=0)if(_.G7(_.Na().getState())){var P;(P=S.player)==null||P.toggleFullscreen()}else _.nb(S.JSC$20230_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
$lB(this)};
_.r(rZY,_.R6);var $lB=function(Y){var S=_.J5(_.Na(),_.G7,function(P){Y.gestures&&Y.gestures.update(P)});
Y.addOnDisposeCallback(S);S=_.J5(_.Na(),_.hb,function(P){Y.gestures&&(P>0?Y.gestures.detach():Y.gestures.attach())});
Y.addOnDisposeCallback(S)};var hFB=function(Y){_.R6.call(this);var S=this;this.JSC$20233_watchApi=Y;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
Y=_.J5(_.Na(),rJ,function(P){S.onActiveChanged(P)});
this.addOnDisposeCallback(Y);GA5(this);this.onActiveChanged(rJ(_.Na().getState()))};
_.r(hFB,_.R6);var vDI=function(Y){if(_.f("swatcheroo_page_dispose_all_watch_data"))Y.pageDisposalDataTypes=Object.values(tUY).filter(function(P){return P!=="PLAYLIST"});
else if(_.f("swatcheroo_page_dispose_rich_grid")){var S;(S=Y.pageDisposalDataTypes)==null||S.push("RICH_GRID_RENDERER")}},GA5=function(Y){_.f("swatcheroo_enable_ghost_cards")&&(vDI(Y),Y.JSC$20233_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.wc.cancelJob(Y.clearDataJobId);
Y.clearDataJobId=0}),Y.runPageDisposeJob=function(){var S=_.E().resolve(_.Ag).getDestinationPageType()==="watch";
Y.clearDataJobId=_.$I(_.wc,Y.runClearDataJob,S?0:_.z_("web_watch_delay_page_dispose_ms",1E4))},Y.runClearDataJob=function(){Dl_(Y)},Y.runOnYtNavigateAwayFinish=function(){Y.clearDataJobId&&(_.wc.cancelJob(Y.clearDataJobId),Y.clearDataJobId=0,Dl_(Y))},document.addEventListener("yt-navigate-finish",Y.runOnYtNavigateAwayFinish),gDo(Y.JSC$20233_watchApi,Y.runPageDisposeJob),Y.addOnDisposeCallback(function(){var S=Y.JSC$20233_watchApi;
S.rootElement.pageDisposeJobs&&_.MU(S.rootElement.pageDisposeJobs,Y.runPageDisposeJob);a2(Y.JSC$20233_watchApi,"yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",Y.runOnYtNavigateAwayFinish)}))},Dl_=function(Y){Y.pageDisposalDataTypes.forEach(function(S){Y.JSC$20233_watchApi.provideRenderingData(S,void 0)});
Y.clearDataJobId=0};
hFB.prototype.onActiveChanged=function(Y){Y&&((Y=document.querySelector("#watch-page-skeleton"))&&_.jL(Y),IvY(this),document.body.removeAttribute("no-y-overflow"),_.Z4("IS_SHELL_LOAD")&&_.RYd())};
var IvY=function(Y){_.B(function(S){if(S.nextAddress==1)return _.q(S,Y.JSC$20233_watchApi.playerApi,2);_.NF();_.Yt(S)})};var av6=_.f("kevlar_watch_while_counterfactual")?0:.25,Fg1=function(Y){_.R6.call(this);this.JSC$20236_watchApi=Y;this.JSC$20236_watchWhileEnabled=_.f("kevlar_watch_while_v2");this.pipEnabled=_.f("web_enable_pip_on_miniplayer");Lgd(this);wPI(this);pPB(this)};
_.r(Fg1,_.R6);var Lgd=function(Y){Y.JSC$20236_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){sto(Y)});
Y.addOnDisposeCallback(function(){a2(Y.JSC$20236_watchApi,"yt-activate-miniplayer-from-watch-action")})},wPI=function(Y){var S,P;
_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20236_watchApi.playerApi,2);S=u.yieldResult;P=function(){sto(Y)};
S.addEventListener("onCollapseMiniplayer",P);Y.addOnDisposeCallback(function(){S.removeEventListener("onCollapseMiniplayer",P)});
_.Yt(u)})},pPB=function(Y){var S=Y.JSC$20236_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&S&&Y.JSC$20236_watchWhileEnabled&&(Y.playerIntersectionObserver=new IntersectionObserver(function(P){Y.handleIntersect(P)},{threshold:[av6]}),Y.playerIntersectionObserver.observe(S),Y.addOnDisposeCallback(function(){var P;
(P=Y.playerIntersectionObserver)==null||P.disconnect()}))},sto=function(Y){var S,P,u;
_.B(function(W){if(W.nextAddress==1){S=_.E().resolve(_.Ag);P=S.data;u=_.DlK(P.response,P.playerResponse);_.nd().miniplayerButtonActivation=!0;if(Y.pipEnabled)return _.nd().watchPipActivation=!0,W.jumpTo(2);_.E().resolve(_.l1).collapse();return _.q(W,_.nd().navigationFinishPromise,2)}if(W.nextAddress!=4)return _.nd().currentEndpoint=u.watchEndpoint||null,_.q(W,_.E().resolve(_.l1).activate(Y.JSC$20236_watchApi.getElement("PLAYER"),u,P),4);_.nd().userActivation=!0;_.Yt(W)})};
Fg1.prototype.handleIntersect=function(Y){dl6(this,Y[Y.length-1])};
var dl6=function(Y,S){Y.watchWhileJobId&&_.wc.cancelJob(Y.watchWhileJobId);Y.watchWhileJobId=_.wc.addLowPriorityJob(function(){var P,u;return _.B(function(W){if(W.nextAddress==1)return Y.watchWhileJobId=void 0,P=_.E().resolve(_.l1),S.intersectionRatio>av6?P.isMiniplayerActive()?_.q(W,P.deactivate(),0):W.jumpTo(0):(u=!P.isMiniplayerActive())?_.q(W,lvd(Y),5):W.jumpTo(4);W.nextAddress!=4&&(u=W.yieldResult);if(!u)return W.jumpTo(0);_.nd().watchWhileActivation=!0;return _.q(W,XPj(Y),0)})},100)},lvd=function(Y){return _.B(function(S){return S.nextAddress==
1?_.f("kevlar_watch_while_paused")?S.return(!0):_.q(S,Y.isPlayerPlaying(),2):S.return(S.yieldResult)})};
Fg1.prototype.isPlayerPlaying=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,Y.JSC$20236_watchApi.playerApi,2);S=P.yieldResult;return P.return(S.getPlayerStateObject().isPlaying)})};
var XPj=function(Y){var S,P;return _.B(function(u){S=_.E().resolve(_.Ag).data;P=_.DlK(S.response,S.playerResponse);_.nd().currentEndpoint=P.watchEndpoint||null;return _.q(u,_.E().resolve(_.l1).activate(Y.JSC$20236_watchApi.getElement("PLAYER"),P,S),0)})};var oD1=function(Y){_.R6.call(this);this.JSC$20240_watchApi=Y;ZvY(this);ivI(this)};
_.r(oD1,_.R6);var ivI=function(Y){var S,P;_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20240_watchApi.playerApi,2);S=u.yieldResult;P=function(W){var m;W.sessionData&&W.sessionData.itct&&(m=W.sessionData.itct);var J=W.watchEndpoint;if(J&&W.sessionData&&W.sessionData.autonav)J=_.oKU(J,m);else{var c;J=_.YW(W.videoId,(c=W.listId)!=null?c:void 0,m)}m={endpoint:J};W.sessionData&&(m.tempData=W.sessionData);Y.JSC$20240_watchApi.dispatchEvent("yt-navigate",m)};
S.addEventListener("onPlayVideo",P);Y.addOnDisposeCallback(function(){S.removeEventListener("onPlayVideo",P)});
_.Yt(u)})},ZvY=function(Y){var S=function(P){Y.onYtNavigate(P)};
Y.JSC$20240_watchApi.getRoot().addEventListener("yt-navigate",S);Y.addOnDisposeCallback(function(){Y.JSC$20240_watchApi.getRoot().removeEventListener("yt-navigate",S)})};
oD1.prototype.onYtNavigate=function(Y){var S=this,P,u,W,m,J,c,C,x,b;return _.B(function(T){if(T.nextAddress==1){if(!((P=Y.detail)==null?0:(u=P.endpoint)==null?0:u.watchEndpoint))return T.return();W=Y.detail.endpoint.watchEndpoint;m=S.JSC$20240_watchApi.getWatchNextResponse();c=_.g((J=m)==null?void 0:J.currentVideoEndpoint,_.yx);if(!c)return T.return();if(W.videoId!==c.videoId||W.playlistId&&W.playlistId!==c.playlistId||typeof W.startTimeSeconds!=="number")return T.jumpTo(0);Y.stopPropagation();(C=
_.f("kevlar_watch_while_v2")&&!_.f("kevlar_watch_while_counterfactual"))&&_.E().resolve(_.l1).isMiniplayerActive()||S.JSC$20240_watchApi.scrollWatchTo(0,!0);return _.q(T,S.JSC$20240_watchApi.playerApi,3)}x=T.yieldResult;b=W.startTimeSeconds;x.seekTo(b,void 0,void 0,void 0,84);x.wakeUpControls();b<x.getDuration()&&x.playVideo();_.Yt(T)})};var kAZ=function(Y){_.R6.call(this);var S=this;this.JSC$20243_watchApi=Y;Y=_.J5(_.Na(),_.TeJ,function(){tP_(S)});
this.addOnDisposeCallback(Y);Y=_.J5(_.Na(),_.hH5,function(){tP_(S)});
this.addOnDisposeCallback(Y);AZ6(this);Ulu(this);Qt1()};
_.r(kAZ,_.R6);var AZ6=function(Y){var S=function(u){_.Na().dispatch(_.$3o(u.matches))},P=window.matchMedia("(max-width: "+(999+_.$0())+"px)");
P.addListener(S);Y.addOnDisposeCallback(function(){P.removeListener(S)});
S(P)},Ulu=function(Y){Y.JSC$20243_watchApi.registerActionHandler("yt-window-resized",function(){Qt1()});
Y.addOnDisposeCallback(function(){a2(Y.JSC$20243_watchApi,"yt-window-resized")})},Qt1=function(){var Y=_.x9();
_.Na().dispatch(_.WT({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:Y.width,height:Y.height}}}))},tP_=function(Y){var S;
_.B(function(P){if(P.nextAddress==1)return _.q(P,Y.JSC$20243_watchApi.playerApi,2);S=P.yieldResult;S.setSize(NaN,NaN);_.Yt(P)})};var yZY=function(Y){_.R6.call(this);var S=this;this.JSC$20247_watchApi=Y;var P=this.JSC$20247_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){MPd(S)});
this.addOnDisposeCallback(function(){S.JSC$20247_watchApi.unsubscribeByKey(P)});
MPd(this)};
_.r(yZY,_.R6);var MPd=function(Y){var S=Y.JSC$20247_watchApi.getWatchNextResponse();if(S){var P,u=[].concat(_.cz((P=S==null?void 0:S.engagementPanels)!=null?P:[]));u.unshift.apply(u,_.cz(Nnj(S)));Y.JSC$20247_watchApi.provideRenderingData("ENGAGEMENT_PANELS",u)}},HvI=function(Y){var S;
if(_.f("enable_yoututor_for_learning_journeys")&&((S=_.FI(window.location.href,"list"))==null?0:S.startsWith("LJ")))return!0;var P,u,W;S=(P=Y.engagementPanels)==null?void 0:(u=P.find(function(G){var v;return((v=G.engagementPanelSectionListRenderer)==null?void 0:v.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(W=u.engagementPanelSectionListRenderer.content)==null?void 0:W.structuredDescriptionContentRenderer;
var m;if(_.g(S==null?void 0:(m=S.items)==null?void 0:m.find(function(G){return!!_.g(G,J16)}),J16))return!0;
var J,c,C,x;if(Y=(((J=Y.contents)==null?void 0:(c=J.twoColumnWatchNextResults)==null?void 0:(C=c.results)==null?void 0:(x=C.results)==null?void 0:x.contents)||[]).find(function(G){return G.videoPrimaryInfoRenderer})){var b,T,K;
return(((b=Y.videoPrimaryInfoRenderer)==null?void 0:(T=b.videoActions)==null?void 0:(K=T.menuRenderer)==null?void 0:K.flexibleItems)||[]).some(function(G){G=_.g(G,_.Wlu);if(!G)return!1;var v,a;G=(v=G.topLevelButton)==null?void 0:(a=v.buttonViewModel)==null?void 0:a.onTap;if(!G)return!1;v=_.vF(G);if(!v)return!1;var w;return((w=_.g(v,_.aB))==null?void 0:w.panelIdentifier)==="PAyouchat"})}return!1},Nnj=function(Y){var S=[];
if(!_.f("web_watch_inject_placeholder_fantasy_panel_killswitch")){var P,u,W,m=(P=Y.engagementPanels)==null?void 0:(u=P.find(function(c){var C;return((C=c.engagementPanelSectionListRenderer)==null?void 0:C.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(W=u.engagementPanelSectionListRenderer.content)==null?void 0:W.structuredDescriptionContentRenderer,J;
_.g(m==null?void 0:(J=m.items)==null?void 0:J.find(function(c){return!!_.g(c,ZW5)}),ZW5)&&(P=_.TAf("PAsports_fantasy"),P.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S.push(P))}HvI(Y)&&(Y=_.TAf("PAyouchat"),Y.engagementPanelSectionListRenderer.targetId="PAyouchat",Y.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S.push(Y));
return S};var eF_=function(Y){_.R6.call(this);this.JSC$20250_watchApi=Y;VP_(this)};
_.r(eF_,_.R6);var VP_=function(Y){Y.JSC$20250_watchApi.registerActionHandler("yt-loop-command",function(S){OvB(Y,S)});
Y.JSC$20250_watchApi.registerActionHandler("yt-repeat-chapter-command",function(S){YYZ(Y,S)});
Y.addOnDisposeCallback(function(){a2(Y.JSC$20250_watchApi,"yt-loop-command");a2(Y.JSC$20250_watchApi,"yt-repeat-chapter-command")})},OvB=function(Y,S){var P;
_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20250_watchApi.playerApi,2);P=u.yieldResult;_.g(S,okc).loop?(P.setLoopRange({startTimeMs:Number(_.g(S,okc).startTimeMs),endTimeMs:Number(_.g(S,okc).endTimeMs),postId:_.g(S,okc).postId,type:"clips"}),P.playVideo()):P.setLoopRange(null);_.Yt(u)})},YYZ=function(Y,S){var P,u;
_.B(function(W){if(W.nextAddress==1)return _.q(W,Y.JSC$20250_watchApi.playerApi,2);P=W.yieldResult;u=_.g(S,kmB).repeat;u==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(P.setLoopRange({startTimeMs:Number(_.g(S,kmB).startTimeMs),endTimeMs:Number(_.g(S,kmB).endTimeMs),type:"repeatChapter"}),P.playVideo()):u==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&P.setLoopRange(null);_.Yt(W)})};var PDI=function(Y){_.R6.call(this);this.JSC$20255_watchApi=Y;SYd(this)};
_.r(PDI,_.R6);var SYd=function(Y){Y.JSC$20255_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(S){ud6(Y,S)});
Y.addOnDisposeCallback(function(){a2(Y.JSC$20255_watchApi,"yt-watch-player-overflow-menu-command")})},ud6=function(Y,S){var P,u,W,m,J,c,C,x,b,T,K;
_.B(function(G){if(G.nextAddress==1)return _.q(G,Y.JSC$20255_watchApi.playerApi,2);P=G.yieldResult;if(m=(W=(u=_.g(S,MtI))==null?void 0:u.highlightedMenuItemKey)!=null?W:"")(c=(J=P).highlightSettingsMenuItem)==null||c.call(J,m);if(b=(x=(C=_.g(S,MtI))==null?void 0:C.openMenuItemKey)!=null?x:"")(K=(T=P).openSettingsMenuItem)==null||K.call(T,b);_.Yt(G)})};var W61=_.JE("/youtube/app/watch/player_state","playerStateEntity");var mxB=function(Y){_.R6.call(this);this.JSC$20258_watchApi=Y;zmZ(this)};
_.r(mxB,_.R6);var n$X=function(Y){switch(Y){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},zmZ=function(Y){var S,P;
_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20258_watchApi.playerApi,2);S=u.yieldResult;P=function(W){Y.onPlayerStateChange(W)};
S.addEventListener("onStateChange",P);Y.addOnDisposeCallback(function(){S.removeEventListener("onStateChange",P)});
_.Yt(u)})};
mxB.prototype.onPlayerStateChange=function(Y){var S=this,P,u;return _.B(function(W){if(W.nextAddress==1)return _.q(W,S.JSC$20258_watchApi.playerApi,2);P=W.yieldResult;u=P.getVideoData().video_id;_.X2().dispatch(_.qE("playerStateEntity",W61,{key:W61,playerState:n$X(Y),videoId:u}));_.Yt(W)})};var jaI=function(Y){_.R6.call(this);var S=this;this.JSC$20262_watchApi=Y;Y=_.Na();var P=_.J5(Y,rJ,function(u){S.onActiveChanged(u)});
this.addOnDisposeCallback(P);_.E().resolve(_.D3).setPlayer(this.JSC$20262_watchApi.getElement("PLAYER"));this.onActiveChanged(rJ(Y.getState()))};
_.r(jaI,_.R6);jaI.prototype.onActiveChanged=function(Y){var S=this,P=_.E().resolve(_.D3),u=function(){J0u(S)};
Y?(Y=this.JSC$20262_watchApi.getElement("PLAYLIST_PANEL"))?(P.setPlaylistComponent(Y),P.addEventListener("yt-playlist-data-updated",u),this.addOnDisposeCallback(function(){P.removeEventListener("yt-playlist-data-updated",u)}),J0u(this)):_.AA(Error("km")):(P.removeEventListener("yt-playlist-data-updated",u),P.cancelVideoSkip())};
var J0u=function(Y){var S=_.E().resolve(_.D3);Y.JSC$20262_watchApi.provideRenderingData("PLAYLIST",S.getPlaylistData())};var l$=function(Y){_.R6.call(this);var S=this;this.JSC$20265_watchApi=Y;this.onPageScroll=function(){S.scrollThrottle.fire();S.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.NE(this.onThrottledScroll,200,this);_.Ph(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.NE(this.onMastheadThrottledScroll,50,this);_.Ph(this,this.mastheadScrollThrottle);this.animation=new _.GK(function(P){S.JSC$20265_watchApi.getRoot().setScrollTop(P)});
Y=_.J5(_.Na(),_.G7,function(){Bo1(S)});
this.addOnDisposeCallback(Y);c01(this);CDZ(this);this.onThrottledScroll()};
_.r(l$,_.R6);
var Bo1=function(Y){var S=Y.JSC$20265_watchApi.getRoot();!Y.pageScrollElement&&S.pageScrollElement?(Y.pageScrollElement=S.pageScrollElement,S.pageScrollElement.addEventListener("scroll",Y.onPageScroll),Y.addOnDisposeCallback(function(){Y.pageScrollElement&&Y.pageScrollElement.removeEventListener("scroll",Y.onPageScroll)})):Y.pageScrollElement&&!S.pageScrollElement&&(Y.pageScrollElement.removeEventListener("scroll",Y.onPageScroll),Y.pageScrollElement=void 0)},c01=function(Y){window.addEventListener("scroll",Y.onPageScroll);
Y.addOnDisposeCallback(function(){window.removeEventListener("scroll",Y.onPageScroll)})},CDZ=function(Y){Y.JSC$20265_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(S){a:{var P;
if(P=Y.JSC$20265_watchApi.getRoot().contains(S)&&!Y.animation.isAnimating()){P=S.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var u,W,m=(S==null?void 0:(u=S.parentElement)==null?void 0:(W=u.parentElement)==null?void 0:W.id)==="fixed-secondary";P=!(P&&m)}if(P){if(_.f("kevlar_watch_scroll_manager_absolute_offset_killswitch"))u=S.offsetTop;else for(u=0,W=S;W!==null;)u+=W.offsetTop,u-=W.scrollTop,W=W.offsetParent;W=u;u=W-24;S=W+S.offsetHeight+24;W=Y.JSC$20265_watchApi.getRoot().getPageScrollingElement();
P=Y.JSC$20265_watchApi.getRoot().getScrollTop();m=P+W.clientHeight-56;if(u<P+56)S=u-56;else if(S>m)S-=W.clientHeight;else break a;Y.scrollWatchTo(Math.max(0,S),!0)}}});
Y.addOnDisposeCallback(function(){a2(Y.JSC$20265_watchApi,"yt-scroll-to-watch-element")})};
l$.prototype.onThrottledScroll=function(){var Y=_.Na(),S=Y.dispatch,P=this.JSC$20265_watchApi.getRoot().getScrollTop();S.call(Y,_.WT({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:P}}))};
l$.prototype.onMastheadThrottledScroll=function(){this.JSC$20265_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20265_watchApi.getRoot().getScrollTop())};
l$.prototype.scrollWatchTo=function(Y,S){(S===void 0?0:S)?this.animation.start(this.JSC$20265_watchApi.getRoot().getScrollTop(),Math.max(0,Y),500):this.JSC$20265_watchApi.getRoot().setScrollTop(Y)};var xxB=function(Y){_.R6.call(this);var S=this;this.JSC$20268_watchApi=Y;var P=this.JSC$20268_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){qY5(S)}),u=this.JSC$20268_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){RmB(S)});
this.addOnDisposeCallback(function(){S.JSC$20268_watchApi.unsubscribeByKey(P);S.JSC$20268_watchApi.unsubscribeByKey(u)});
qY5(this);RmB(this)};
_.r(xxB,_.R6);
var qY5=function(Y){var S,P,u,W=(u=(S=Y.JSC$20268_watchApi.getPlayerResponse())==null?void 0:(P=S.videoDetails)==null?void 0:P.title)!=null?u:"";Y.JSC$20268_watchApi.dispatchEvent("yt-update-title",W)},RmB=function(Y){var S,P,u,W,m,J,c,C=(c=((J=(S=Y.JSC$20268_watchApi.getWatchNextResponse())==null?void 0:(P=S.contents)==null?void 0:(u=P.twoColumnWatchNextResults)==null?void 0:(W=u.results)==null?void 0:(m=W.results)==null?void 0:m.contents)!=null?J:[]).find(function(x){return!!x.videoPrimaryInfoRenderer}))==null?
void 0:c.videoPrimaryInfoRenderer;
(S=_.Ma(C==null?void 0:C.title))&&Y.JSC$20268_watchApi.dispatchEvent("yt-update-title",S)};var Toj=function(Y){_.R6.call(this);this.JSC$20271_watchApi=Y;bYZ(this)};
_.r(Toj,_.R6);var bYZ=function(Y){var S,P;_.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$20271_watchApi.playerApi,2);S=u.yieldResult;P=function(){Y.onYpcContentRequest()};
S.addEventListener("onYpcContentRequest",P);Y.addOnDisposeCallback(function(){S.removeEventListener("onYpcContentRequest",P)});
_.Yt(u)})};
Toj.prototype.onYpcContentRequest=function(){var Y,S,P,u,W,m=(Y=this.JSC$20271_watchApi.getWatchNextResponse())==null?void 0:(S=Y.contents)==null?void 0:(P=S.twoColumnWatchNextResults)==null?void 0:(u=P.secondaryResults)==null?void 0:(W=u.secondaryResults)==null?void 0:W.offerModule,J,c,C,x;Y=(x=(C=(c=(J=m==null?void 0:m.episodeOfferModuleRenderer)!=null?J:m==null?void 0:m.movieOfferModuleRenderer)!=null?c:m==null?void 0:m.unlimitedOfferModuleRenderer)!=null?C:m==null?void 0:m.liveOfferModuleRenderer)!=
null?x:m==null?void 0:m.tvfilmOfferModuleRenderer;var b,T,K;m=(K=m==null?void 0:(b=m.tvfilmOfferModuleRenderer)==null?void 0:(T=b.actionButtons)==null?void 0:T.length)!=null?K:0;T=Math.max(m-1,0);var G,v,a;b=(a=Y==null?void 0:(G=Y.offerButton)==null?void 0:G.buttonRenderer)!=null?a:Y==null?void 0:(v=Y.actionButtons)==null?void 0:v[T].buttonRenderer;var w,F;(G=(F=(w=b==null?void 0:b.navigationEndpoint)!=null?w:b==null?void 0:b.serviceEndpoint)!=null?F:b==null?void 0:b.command)&&_.zR.instance.resolveCommand(G)};_.X9=function(Y){_.QC.call(this);var S=this;this.rootElement=Y;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return S.activeModules}};
K6Y(this);Y=_.J5(_.Na(),rJ,function(P){S.initOrDisposeActiveModules(P)});
this.addOnDisposeCallback(Y);this.initOrDisposeActiveModules(rJ(_.Na().getState()));this.onAttached()};
_.r(_.X9,_.QC);_.X9.prototype.getRoot=function(){return this.rootElement};
_.X9.prototype.getElement=function(Y){return this.rootElement.getElement(Y)};
_.ZL=function(Y,S){Y.playerResponse=S;Y.publish("PLAYER_RESPONSE_UPDATED",S)};
_.X9.prototype.getPlayerResponse=function(){return this.playerResponse};
_.i$=function(Y,S){Y.watchNextResponse===S?Y.publish("WATCH_NEXT_RESPONSE_RELOADED"):(Y.watchNextResponse=S,Y.publish("WATCH_NEXT_RESPONSE_UPDATED",S))};
_.X9.prototype.getWatchNextResponse=function(){return this.watchNextResponse};
_.X9.prototype.registerActionHandler=function(Y,S){var P=this;if(_.f("web_watch_controller_reg_multiple_handlers_killswitch")){var u={};_.Uf(_.Ap.getInstance(),(u[Y]=S,u),this.getRoot())}else this.actionHandlers.has(Y)||(this.actionHandlers.set(Y,[]),u={},_.Uf(_.Ap.getInstance(),(u[Y]=function(){var W=_.Ch.apply(0,arguments);return(P.actionHandlers.get(Y)||[]).map(function(m){return m.apply(null,_.cz(W))})},u),this.getRoot())),this.actionHandlers.get(Y).push(S)};
var a2=function(Y,S){if(_.f("web_watch_controller_reg_multiple_handlers_killswitch")){var P={};_.QZ(_.Ap.getInstance(),(P[S]=!0,P),Y.getRoot())}else(P=Y.actionHandlers.get(S))?(P.pop(),P.length===0&&(P={},_.QZ(_.Ap.getInstance(),(P[S]=!0,P),Y.getRoot()),Y.actionHandlers.delete(S))):_.sf(new _.$2("Attempted to unregister an action handler which is not registered.",S))},gDo=function(Y,S){Y.rootElement.pageDisposeJobs||(Y.rootElement.pageDisposeJobs=[]);
_.K$X(Y.rootElement.pageDisposeJobs,S)};
_.X9.prototype.dispatchEvent=function(Y,S){_.ms(this.rootElement,Y,S)};
_.X9.prototype.provideRenderingData=function(Y,S){this.rootElement.provideRenderingData(Y,S)};
_.X9.prototype.scrollWatchTo=function(Y,S){var P;(P=this.watchScrollManager)==null||P.scrollWatchTo(Y,S)};
_.X9.prototype.focusOnPlayer=function(){var Y=this.getElement("PLAYER");_.ky(Y,function(){if(Y&&Y.firstElementChild){var S=Y.querySelector(".html5-video-player");S&&(_.bKt(_.E().resolve(_.En)),S.focus())}else _.sf(Error("lm"))})};
_.E$X=function(Y){var S=!!Y.rootElement.theater,P=!!Y.rootElement.fullscreen,u;(u=Y.watchCinematicManager)==null||JZZ(u,P,S)};
_.X9.prototype.onAttached=function(){var Y=_.f("external_fullscreen");_.f("use_unified_flag_accessor")&&(Y=_.E().resolve(_.hUI).retriever.getFlag(_.zJ3));(Y||_.Z4("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var fmo=function(Y){return Y.getRoot().is==="ytd-watch-flexy"||Y.getRoot().is==="ytd-watch-grid"},o2=function(Y){return Y.getRoot().is==="ytd-watch-fixie"},K6Y=function(Y){if(o2(Y)||fmo(Y)&&_.f("kevlar_watch_flexy_theater_manager")){var S=new X2Z(Y);
_.Ph(Y,S)}S=new hFB(Y);_.Ph(Y,S);S=new L9(Y);_.Ph(Y,S);S=new fvj(Y);_.Ph(Y,S);S=new mxB(Y);_.Ph(Y,S);S=new wl(Y);_.Ph(Y,S);if(o2(Y)||fmo(Y)&&_.f("kevlar_watch_flexy_playlist_manager"))S=new jaI(Y),_.Ph(Y,S)};
_.X9.prototype.initOrDisposeActiveModules=function(Y){Y?(this.watchScrollManager=new l$(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new oD1(this)),this.activeModules.push(new iI1(this)),o2(this)&&this.activeModules.push(new kAZ(this)),this.activeModules.push(new xxB(this)),this.activeModules.push(new Fg1(this)),(o2(this)||_.f("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new UeB(this)),this.activeModules.push(new eF_(this)),(o2(this)||
_.f("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new Toj(this)),(o2(this)||_.f("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new Y1_(this)),_.f("kevlar_watch_cinematics")&&(this.watchCinematicManager=new zFj(this),this.activeModules.push(this.watchCinematicManager),_.E$X(this)),_.f("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new PDI(this)),_.f("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new rZY(this)),Y=_.f("swatcheroo_directly_provide_comments")&&
this.getRoot().is==="ytd-watch-grid",_.f("kevlar_watch_flexy_comments_manager")&&!Y&&this.activeModules.push(new xlX(this)),_.f("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new uA1(this)),this.activeModules.push(new kg1(this)),_.f("web_watch_inject_placeholder_panels")&&this.activeModules.push(new yZY(this)),_.f("web_enable_timely_actions")&&this.activeModules.push(new Hy_(this)),_.f("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new KPd(this)),_.f("web_watch_enable_multiview_manager")&&
this.activeModules.push(new JtB(this)),_.f("web_fullscreen_video_action_bar")&&this.activeModules.push(new yCY(this)),_.f("web_player_rtr_ctrls")&&this.activeModules.push(new fuc(this))):(_.t$(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.X9.prototype.disposeInternal=function(){_.QC.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.y6.Object.defineProperties(_.X9.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var Sh_;Sh_=function(Y){switch(Y){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.O6(Y,"unknown result type")}};
_.PY_=function(Y,S,P){S=_.kSX[S];P={detected:Y===0,source:S.frb,detectionResult:Sh_(Y),contentCpn:P};_.L_("biscottiBasedDetection",P);_.vwU.increment(S.frb,Y);S.mUx!==void 0&&_.lk("CATSTAT",_.UC8(Y,S))};
_.ol=function(Y,S){var P={};P.key=Y;P.value=S;return _.EOE().then(function(u){return new Promise(function(W,m){try{var J=u.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(P);J.onsuccess=function(){W()};
J.onerror=function(){m()}}catch(c){m(c)}})})};
_.WGj=function(){var Y=_.z_("user_engagement_experiments_rate_limit_ms"),S=uVZ.get("last-user-engagement-exp-trigger-timestamp");return!S||(0,_.Oh)()>=S+Y?(uVZ.set("last-user-engagement-exp-trigger-timestamp",(0,_.Oh)()),!0):!1};
_.tr=function(Y,S,P,u,W){S=S===void 0?null:S;P=P===void 0?null:P;u=u===void 0?null:u;W=W===void 0?null:W;Y={youThereEventType:Y};P&&(Y.lactThresholdMs=P.lactThresholdMs,Y.mediaPosSec=P.promptDelaySec,Y.lactServerRequestMs=P.lactServerRequestMs,Y.triggerReason=P.triggerReason);W!=null&&(Y.renderingMediaPosSec=Math.round(W));S||(S=_.pM());S&&(Y.clientScreenNonce=S);u&&(Y.clientPlaybackNonce=u);_.L_("youThere",Y)};var uVZ=new _.lX("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.XzY=function(Y){return _.WT({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:Y})};
}catch(e){_._DumpException(e)}
try{
var ImI,pGI,F6Y,saj,v$Y,hm5,lm_;_.$xY=function(){var Y=window.location.hash;Y.charAt(0)==="#"&&(Y=Y.charAt(1)==="!"?Y.substring(2):Y.substring(1));return _.kZ(Y)};
_.r0c=function(Y){var S;_.B(function(P){S=["b.f_","j.s_","r.s_","e.h_"];_.f("ab_det_sc_inj")&&S.push("s.i_");_.f("ab_deg_unex_thr")||S.push("a.o_");_.f("ks_get_o_pp")||S.push("g.o_");_.f("ks_det_gpbl")||S.push("p.i_");S.push("f.i_");S.push("a.b_");S.push("p.m_");_.f("ab_det_el_h_v2")&&S.push("n.h_");S.push("o.p_");_.f("ab_det_apm")&&S.push("o.a_");S.forEach(function(u){var W;return _.B(function(m){if(m.nextAddress==1)return _.q(m,_.$rU[u](),2);W=m.yieldResult;Y(W,u);_.Yt(m)})});
_.Yt(P)})};
_.GoX=function(Y,S){Y={videoId:Y};S&&(Y.playlistId=S);return Y};
_.Dx5=function(){if(_.tjK()){var Y=_.X3("PLAYER_VARS",{});if(_.RY.get(Y,"privembed",!1)!="1"&&!_.QiY(Y)){var S=function(){hm5=!0;"google_ad_status"in window?_.lk("DCLKSTAT",1):_.lk("DCLKSTAT",2)};
try{_.Xv("//static.doubleclick.net/instream/ad_status.js",S)}catch(P){}v$Y.push(_.wc.addLowPriorityJob(function(){if(!(hm5||"google_ad_status"in window)){try{_.LJh("//static.doubleclick.net/instream/ad_status.js",S)}catch(P){}hm5=!0;_.lk("DCLKSTAT",3)}},5E3))}}};
ImI=function(Y){return _.f("web_watch_adjust_sidebar_width")?_.Xu+((Y===void 0?1500:Y)-_.CxX)/100*_.qzY:_.Xu};
_.amZ=function(Y,S){Y=Y.width-_.t2Y();var P=ImI(Y);return Math.max(P,Math.min(_.xWI,P+(Y-(_.l_+ImI(Y)+_.sN+2*_.sN+S))))};
_.AH=function(Y,S,P){P=P===void 0?!1:P;var u=Math.max(Y.width,_.R16);if(_.f("kevlar_watch_feed_big_thumbs")&&Y.width>=1550-_.$0()&&Y.height>=800)u-=_.E31;else if(Y.width>=_.dJ){var W=_.l_+ImI(Y.width)+_.sN;_.f("kevlar_watch_feed_big_thumbs")&&(W=_.KK1);u-=W}else u-=_.l_;u=Math.min(u,_.bL5);W=240;P&&(W=380);S<.5624||(!_.f("kevlar_watch_flexy_disable_small_window_sizing")&&(Y.height<630&&Y.width>=657||Y.height>=630&&Y.width>=_.dJ&&Y.width<1327)?W=360:!_.f("kevlar_watch_flexy_disable_large_window_sizing")&&
Y.height>=630&&Y.width>=1327&&(W=480));var m=Math.min(u*S,Y.height-(56+_.c1u+_.TOd));m=Math.max(m,W);S<1?u=m/S:Y.width>=_.dJ&&(u=_.AH(Y,.5625,P).width);return new _.SZ(Math.round(u),Math.round(m))};
_.L6X=function(Y){var S=0;Y.indexOf("h")!=-1&&(Y=Y.split("h"),S=Y[0]*60*60,Y=Y[1]);Y.indexOf("m")!=-1&&(Y=Y.split("m"),S=Y[0]*60+S,Y=Y[1]);Y.indexOf("s")!=-1?(Y=Y.split("s"),S=Y[0]*1+S):S=Y*1+S;return S};
_.wGI=function(){_.z_("service_worker_push_logged_out_prompt_watches")!=-1&&_.UA("WatchCount").then(function(Y){Y>=100||_.ol("WatchCount",Y+1)})};
pGI=function(Y){var S=Y.externalVideoId||"";return S?(_.f("webfe_watch_shorts_canonical_url_fix")||_.X3("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&Y.isShortsEligible?"https://www.youtube.com/shorts/"+S:"https://www.youtube.com/watch?v="+S:""};
F6Y=function(Y){var S=[];Y.viewCount&&S.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:Y.viewCount});Y.likeCount&&S.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:Y.likeCount});return S};
saj=function(Y){var S,P,u={"@context":"https://schema.org","@type":"VideoObject",description:_.Ma(Y.description),duration:"PT"+(Y.lengthSeconds||"0")+"S",embedUrl:Y.embed?Y.embed.iframeUrl:"",name:_.Ma(Y.title),thumbnailUrl:((S=Y.thumbnail)==null?void 0:(P=S.thumbnails)==null?void 0:P.map(function(b){return b&&b.url||""}))||[],
uploadDate:Y.publishDate};_.f("mweb_video_schema_id_killswitch")||(u["@id"]=pGI(Y));S=F6Y(Y);S.length&&(u.interactionStatistic=S);Y.category&&(u.genre=Y.category);Y.ownerChannelName&&(u.author=Y.ownerChannelName);Y.liveBroadcastDetails&&(u.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:Y.liveBroadcastDetails.startTimestamp,endDate:Y.liveBroadcastDetails.endTimestamp}]);if(Y.learningResource){Y=Y.learningResource;u["@type"]=["VideoObject","LearningResource"];var W;if((W=Y.learningResourceType)==
null?0:W.length)u.learningResourceType=Y.learningResourceType[0];var m;if((m=Y.educationalAlignment)==null?0:m.length)u.educationalAlignment={"@type":"AlignmentObject",targetName:Y.educationalAlignment[0]};var J;if((J=Y.educationalLevel)==null?0:J.length){W=Y.educationalLevel[0];var c;if((c=Y.educationalLevelCountry)==null?0:c.length)W+=" ("+Y.educationalLevelCountry+")";u.educationalLevel=W}var C,x;if(((C=Y.learningResourceType)==null?0:C.length)&&Y.learningResourceType[0]==="Problem walkthrough"&&
((x=Y.problemDescriptions)==null?0:x.length))for(u.hasPart=[],c=_.n(Y.problemDescriptions),C=c.next();!C.done;C=c.next())W=C.value,C=W.problemDescriptionText,x=W.startOffset,W=W.url,C&&x!==void 0&&W&&u.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:C,text:C,startOffset:x,url:W})}return u};
_.dxI=function(Y){return _.WT({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:Y}})};
v$Y=[];hm5=!1;lm_=new _.N("updateSentimentBarStateCommand");_.XG_=new _.N("showSurveyCommand");_.U0=new _.N("changeMarkersVisibilityCommand");var iY6,o$_,Qao,UxB,A0B,Qq;_.ZYu=function(Y,S){this.playerProvider_=Y;this.actionSenderElement_=S;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.ZYu.prototype.reset=function(){iY6(this);this.isUserPredictedAbsent_=!1};
iY6=function(Y,S){!Y.youThereData_||Y.showWarningJob_||S!==void 0&&S||(_.tr("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.pM(),Y.youThereData_,Y.clientPlaybackNonce_),_.w6());_.wc.cancelJob(Y.showWarningJob_);Y.showWarningJob_=0;_.wc.cancelJob(Y.showBlockingWarningJob_);Y.showBlockingWarningJob_=0;_.wc.cancelJob(Y.pausePlaybackJob_);Y.pausePlaybackJob_=0;Y.youThereData_=null;Y.clientPlaybackNonce_=void 0;Y.inYouThereFlow_=!1};
_.t9Y=function(Y,S){var P,u,W;_.B(function(m){if(m.nextAddress==1)return Y.reset(),_.q(m,Y.playerProvider_().getPlayerPromise(),2);P=m.yieldResult;Y.clientPlaybackNonce_=P.getVideoData().cpn;Y.youThereData_=S.configData.youThereData;if(!Y.youThereData_)return m.return();if(Y.youThereData_.triggerReason&&Y.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.WGj())return _.tr("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.pM(),Y.youThereData_,Y.clientPlaybackNonce_),m.return();u=Y.youThereData_.promptDelaySec;
W=P.getCurrentTime();Y.showWarningJob_=_.wc.addLowPriorityJob(function(){return _.B(function(J){Y.showWarningJob_=0;return _.q(J,o$_(Y),0)})},Math.max(u-W,0)*1E3);
_.Yt(m)})};
o$_=function(Y){var S,P,u,W,m,J;return _.B(function(c){if(c.nextAddress==1)return _.q(c,Y.playerProvider_().getPlayerPromise(),2);if(c.nextAddress!=3)return S=c.yieldResult,P=S.getCurrentTime(),_.q(c,A0B(Y),3);u=c.yieldResult;if(!u||!Y.youThereData_)return c.return();if(_.f("check_user_lact_at_prompt_shown_time_on_web")&&(W=parseInt(Y.youThereData_.lactThresholdMs,10),_.uE()<W))return _.tr("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.pM(),Y.youThereData_,Y.clientPlaybackNonce_),c.return();if(Y.youThereData_.playbackPauseDelayMs<=
0)return UxB(Y),c.return();!_.f("external_fullscreen")&&(m=_.SR())&&(Y.ignoreFullscreenExitUserActivity_=!0,_.wc.addLowPriorityJob(function(){Y.ignoreFullscreenExitUserActivity_=!1},2E3),_.Pu(m));
Y.youThereData_.showToastWarningPrompt&&(Qq(Y,Y.youThereData_.showWarningActions),Y.inYouThereFlow_=!0,_.tr("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.pM(),Y.youThereData_,Y.clientPlaybackNonce_,P),_.tr("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.pM(),Y.youThereData_,Y.clientPlaybackNonce_,P));J=0;Y.youThereData_.blockingPromptDelayMs&&(J=Y.youThereData_.blockingPromptDelayMs);Y.showBlockingWarningJob_=_.wc.addLowPriorityJob(function(){return _.B(function(C){Y.showBlockingWarningJob_=0;return _.q(C,
Qao(Y),0)})},J);
_.Yt(c)})};
Qao=function(Y){var S,P,u;return _.B(function(W){if(W.nextAddress==1)return _.q(W,A0B(Y),2);S=W.yieldResult;if(!Y.youThereData_)return W.return();S&&(Y.youThereData_.showBlockingWarningAction&&(_.tr("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.pM(),Y.youThereData_,Y.clientPlaybackNonce_),(P=_.g(Y.youThereData_.showBlockingWarningAction,_.qT))?Qq(Y,P.commands):Qq(Y,[Y.youThereData_.showBlockingWarningAction]),Y.inYouThereFlow_=!0),u=Y.youThereData_.playbackPauseDelayMs,Y.pausePlaybackJob_=
_.wc.addLowPriorityJob(function(){return _.B(function(m){Y.pausePlaybackJob_=0;return _.q(m,UxB(Y),0)})},u));
_.Yt(W)})};
UxB=function(Y){var S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,A0B(Y),2);S=P.yieldResult;if(!Y.youThereData_)return P.return();S&&(_.tr("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.pM(),Y.youThereData_,Y.clientPlaybackNonce_),Qq(Y,Y.youThereData_.showPausedActions),Y.inYouThereFlow_=!0);_.Yt(P)})};
_.ZYu.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var Y=_.g(this.youThereData_.userActiveDuringFlowAction,_.qT);Y?Qq(this,Y.commands):Qq(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.tr("YOU_THERE_EVENT_TYPE_LACT_RESET",_.pM(),this.youThereData_,this.clientPlaybackNonce_),_.w6());iY6(this,!0)}_.koZ(this,!1)};
_.M91=function(Y){_.tr("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.pM(),Y.youThereData_,Y.clientPlaybackNonce_)};
A0B=function(Y){var S,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,Y.playerProvider_().getPlayerPromise(),2);S=u.yieldResult;P=S.getPlayerState();return u.return(P==-1||P==1||P==3)})};
_.koZ=function(Y,S){var P;_.B(function(u){if(u.nextAddress==1){if(Y.isUserPredictedAbsent_==S)return u.jumpTo(0);Y.isUserPredictedAbsent_=S;return _.q(u,Y.playerProvider_().getPlayerPromise(),3)}P=u.yieldResult;P.setUserEngagement(S);S&&_.tr("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.pM(),Y.youThereData_,Y.clientPlaybackNonce_);_.Yt(u)})};
Qq=function(Y,S){if(_.f("handle_service_request_actions")||_.f("kevlar_youthere_service_endpoint_actions_killswitch"))_.cu(Y.actionSenderElement_,S,Y.actionSenderElement_);else{S=_.n(S);for(var P=S.next();!P.done;P=S.next())P=P.value,P.commandMetadata&&P.commandMetadata.webCommandMetadata&&P.commandMetadata.webCommandMetadata.sendPost?_.Bu(Y.actionSenderElement_,[P]):_.cu(Y.actionSenderElement_,[P],Y.actionSenderElement_)}};var y0Y;var Nou;var kv=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.f("kevlar_system_icons");Y.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return Y};
_.r(kv,_.Z);kv.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var Y=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(Y=this.data.percentIfLiked||0,this.activated=!0):(Y=this.data.percentIfIndifferent||0,this.activated=!1);_.I(this.hostElement).querySelector("#like-bar").style.width=Y+"%"}};
kv.prototype.handleUpdateSentimentBarStateCommand=function(Y){this.data&&this.set("data.likeStatus",_.g(Y,lm_).likeStatus)};
kv.prototype.observeLikeStatus=kv.prototype.observeLikeStatus;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],kv.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],kv.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],kv.prototype,"activated",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],kv.prototype,"systemIcons",void 0);_.Q([_.zY("data.likeStatus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kv.prototype,"observeLikeStatus",null);kv=_.Q([_.t({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],kv);
_.A(kv,"ytd-sentiment-bar-renderer",function(){if(Nou!==void 0)return Nou;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Nou=Y},{mode:1});var HYo;var Mo=function(){var Y=_.Z.apply(this,arguments)||this;Y.small=!0;return Y};
_.r(Mo,_.Z);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Mo.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Mo.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Mo.prototype,"small",void 0);Mo=_.Q([_.t({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Mo);
_.A(Mo,"ytd-video-view-count-renderer",function(){if(HYo!==void 0)return HYo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return HYo=Y},{mode:_.OX("kevlar_poly_si_batch_j080")?1:2});var yq=function(){var Y=_.Z.apply(this,arguments)||this;Y.infoFormattedStrings=[];Y.wrapVideoActions=_.f("kevar_watch_wrap_video_actions");Y.hideSentimentBar=_.f("kevlar_watch_hide_sentiment_bar");Y.actionMap={};return Y};
_.r(yq,_.Z);_.z=yq.prototype;_.z.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.f("web_modern_buttons"),forceIconButton:!_.f("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.z.dataChanged=function(){_.f("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.z.computeInfoFormattedStrings=function(Y){if(!Y)return[];var S=[];Y.dateText&&S.push(Y.dateText);Y.stationName&&S.push(Y.stationName);Y.rating&&S.push(Y.rating);Y.startEndTimeTemplate&&Y.startTimeUtcMillis&&Y.endTimeUtcMillis&&S.push(_.kW(_.Gu6(_.Ma(Y.startEndTimeTemplate),Number(Y.startTimeUtcMillis),Number(Y.endTimeUtcMillis))));Y.upNextProgramText&&S.push(Y.upNextProgramText);return S};
_.z.scheduleInitialUpdatedMetadataRequest=function(){var Y,S=(Y=this.data)==null?void 0:Y.updatedMetadataEndpoint;if(S){var P;Y=Number((P=_.g(S,_.ZPJ))==null?void 0:P.initialDelayMs);P=isNaN(Y)?250:Y;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),P)}};
_.z.setSentimentBarWidth=function(){var Y=this;_.ky(this,function(){var S=_.I(Y.hostElement).querySelector("ytd-menu-renderer");if(S){S=S.topLevelButtons;for(var P=0,u=0;u<S.length;u++){var W=S[u],m=Y.get("toggleButtonSupportedData.toggleButtonIdData.id",W.data);if(m==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||m==="TOGGLE_BUTTON_ID_TYPE_LIKE")P+=W.clientWidth+8;else break}P&&(Y.sentiment.style.width=P-8+" px")}})};
_.z.fetchUpdatedMetadata=function(Y){var S;Y&&(S={continuation:Y});var P;(Y=(P=this.data)==null?void 0:P.updatedMetadataEndpoint)&&_.E().resolve(_.uY).resolveCommand(Y,{form:Object.assign({},S,{element:this.hostElement})})};
_.z.onYtServiceRequestSent=function(Y,S){S.endpoint&&_.g(S.endpoint,_.ka)&&(this.hasUpdateSentimentBarStateCommands()&&!_.f("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.g(S.endpoint,_.ka).status),this.setSentimentBarWidth())};
_.z.hasUpdateSentimentBarStateCommands=function(){var Y,S,P,u,W=(u=(Y=this.data)==null?void 0:(S=Y.videoActions)==null?void 0:(P=S.menuRenderer)==null?void 0:P.topLevelButtons)!=null?u:[];Y=_.n(W);for(S=Y.next();!S.done;S=Y.next()){S=S.value;W=u=P=void 0;var m=(P=S.toggleButtonRenderer)==null?void 0:(u=P.toggleButtonSupportedData)==null?void 0:(W=u.toggleButtonIdData)==null?void 0:W.id;if(m==="TOGGLE_BUTTON_ID_TYPE_LIKE"||m==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){u=P=void 0;S=(u=_.g((P=S.toggleButtonRenderer)==
null?void 0:P.defaultServiceEndpoint,_.qT))==null?void 0:u.commands;if(!S)break;S=_.n(S);for(P=S.next();!P.done;P=S.next())if(_.g(P.value,lm_))return!0}}return!1};
_.z.onYtServiceRequestCompleted=function(Y,S){var P;(Y=(P=S.data)==null?void 0:P.loggingDirectives)&&_.HeK(_.BF(),Y);this.get("continuation.timedContinuationData",S.data)&&this.data&&this.data.updatedMetadataEndpoint&&(S=S.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,S.continuation),S.timeoutMs))};
_.z.computeHasDateText=function(Y){return!!Y&&!!Y.dateText};
_.y6.Object.defineProperties(yq.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u;return!((u=(Y=this.data)==null?void 0:(S=Y.videoActions)==null?void 0:(P=S.menuRenderer)==null?void 0:P.flexibleItems)==null||!u.length)}}});
yq.prototype.onYtServiceRequestCompleted=yq.prototype.onYtServiceRequestCompleted;yq.prototype.onYtServiceRequestSent=yq.prototype.onYtServiceRequestSent;yq.prototype.dataChanged=yq.prototype.dataChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],yq.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.l4.YtTaskEmitterBehavior),_.k("design:type",Object)],yq.prototype,"ytTaskEmitterBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],yq.prototype,"data",void 0);_.Q([_.X({computed:"computeInfoFormattedStrings(data)"}),_.k("design:type",Array)],yq.prototype,"infoFormattedStrings",void 0);
_.Q([_.X({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],yq.prototype,"hasDateText",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],yq.prototype,"wrapVideoActions",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],yq.prototype,"hideSentimentBar",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yq.prototype,"flexMenuEnabled",null);
_.Q([_.nc("#sentiment"),_.k("design:type",Object)],yq.prototype,"sentiment",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yq.prototype,"dataChanged",null);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],yq.prototype,"onYtServiceRequestSent",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],yq.prototype,"onYtServiceRequestCompleted",null);
_.A(yq,"ytd-video-primary-info-renderer",function(){if(y0Y===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);y0Y=Y}Y=y0Y;return Y},{mode:1});var V9j;var No=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return Y};
_.r(No,_.Z);_.z=No.prototype;_.z.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"}}}};
_.z.dataChanged=function(){var Y;this.descriptionToggled=!((Y=this.data)==null||!Y.defaultExpanded);var S;this.collapsed=this.descriptionAlwaysCollapsed||!((S=this.data)==null?0:S.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.TI(110509);this.showLessClientVe=_.TI(110510);Y=_.pM();S=_.wf();Y&&S&&_.Ar(Y,S,[this.showMoreClientVe,this.showLessClientVe])};
_.z.onYtExpanderMoreTapped=function(){var Y,S=(Y=this.data)==null?void 0:Y.showMoreCommand;S&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(S);(Y=_.pM())&&this.showMoreClientVe&&_.ko(Y,this.showMoreClientVe)};
_.z.onYtExpanderLessTapped=function(){var Y=_.pM();Y&&this.showLessClientVe&&_.ko(Y,this.showLessClientVe);var S;(Y=(S=this.data)==null?void 0:S.showLessCommand)&&this.componentBehavior.resolveCommand(Y)};
_.z.handleUpdateDateTextAction=function(Y){this.data&&this.data.dateText&&this.set("data.dateText",_.g(Y,_.WKd).dateText)};
_.z.handleUpdateDescriptionAction=function(Y){if(Y=_.g(Y,_.f36))Y.isEmpty||!Y.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.$J(Y.description)):this.set("data.description",Y.description)};
_.z.onYtChangeEngagementPanelVisibilityAction=function(Y){if(_.f("web_structured_description_show_more")||_.f("web_engagement_panel_open_description")){var S,P=(S=_.g(Y,_.gQ6))==null?void 0:S.targetId,u;Y=((u=_.g(Y,_.gQ6))==null?void 0:u.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";P==="engagement-panel-structured-description"&&Y&&(this.descriptionToggled=!0)}};
_.z.updateCollapsedFromBinding=function(Y){this.collapsed=Y.detail.value};
_.z.updateDescriptionToggledFromBinding=function(Y){this.descriptionToggled=Y.detail.value};
_.z.updateCanCollapseFromBinding=function(Y){this.canCollapse=Y.detail.value};
_.y6.Object.defineProperties(No.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.metadataRowContainer)==null?void 0:S.metadataRowContainerRenderer;return!!P&&!!P.rows&&P.rows.length>P.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
No.prototype.onYtExpanderLessTapped=No.prototype.onYtExpanderLessTapped;No.prototype.onYtExpanderMoreTapped=No.prototype.onYtExpanderMoreTapped;No.prototype.dataChanged=No.prototype.dataChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],No.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],No.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],No.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],No.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],No.prototype,"collapsed",void 0);_.Q([_.X(),_.k("design:type",Boolean)],No.prototype,"descriptionToggled",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],No.prototype,"canCollapse",void 0);_.Q([_.X(),_.k("design:type",Object)],No.prototype,"subscribeButtonData",void 0);_.Q([_.X(),_.k("design:type",Number)],No.prototype,"descriptionCollapsedHeight",void 0);_.Q([_.X(),_.k("design:type",Object)],No.prototype,"structuredDescriptionContentRenderer",void 0);_.Q([_.X({value:function(){return _.f("web_watch_description_always_collapsed")}}),
_.k("design:type",Boolean)],No.prototype,"descriptionAlwaysCollapsed",void 0);_.Q([_.nc("#description"),_.k("design:type",HTMLDivElement)],No.prototype,"description",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],No.prototype,"dataChanged",null);_.Q([_.WZ("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],No.prototype,"onYtExpanderMoreTapped",null);
_.Q([_.WZ("yt-expander-less-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],No.prototype,"onYtExpanderLessTapped",null);_.Q([_.d("data.metadataRowContainer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],No.prototype,"metadataCollapsible",null);_.Q([_.d("data","structuredDescriptionContentRenderer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],No.prototype,"hasInlineStructuredDescription",null);
_.Q([_.d("data.attributedDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],No.prototype,"hasAttributedDescription",null);_.Q([_.d("hasInlineStructuredDescription","collapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],No.prototype,"loadStructuredDescription",null);_.Q([_.d("data","structuredDescriptionContentRenderer","collapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],No.prototype,"showInlineStructuredDescription",null);
_.Q([_.d("data","hasInlineStructuredDescription","metadataCollapsible"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],No.prototype,"descriptionAlwaysCollapsible",null);
_.A(No,"ytd-video-secondary-info-renderer",function(){if(V9j===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);V9j=Y}Y=V9j;return Y},{mode:2});var em5;var HE=function(){return _.Z.apply(this,arguments)||this};
_.r(HE,_.Z);HE.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:_.f("web_modern_buttons"),forceIconButton:!_.f("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
HE.prototype.activate=function(Y){Y.appendTo(this.player);Y.getPlayerPromise().then(function(S){S.setMinimized(!0)});
this.active=!0};
HE.prototype.deactivate=function(){var Y=this.player.firstElementChild;Y.getPlayerPromise().then(function(S){S.setMinimized(!1)});
this.active=!1;return Y};
HE.prototype.onScrollUpTap=function(){var Y=_.E().resolve(_.Ag).getCurrentPage();Y&&Y.setScrollTop(0)};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],HE.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],HE.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],HE.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],HE.prototype,"active",void 0);
_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.k("design:type",Boolean)],HE.prototype,"darkLaunch",void 0);_.Q([_.nc("#player"),_.k("design:type",HTMLDivElement)],HE.prototype,"player",void 0);HE=_.Q([_.t({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],HE);
_.A(HE,"ytd-miniplayer-bar-renderer",function(){if(em5!==void 0)return em5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return em5=Y},{mode:1});_.AL(_.AI(function(Y){var S=_.Ms();_.D6(function(){var P;if(P=JSON)P=saj(Y.data()),P=_.hw(JSON.stringify(P).replace(/</g,"\\u003C"));var u=Y.data(),W=_.Ma(u.title).trim().length===0,m=!u.publishDate||u.publishDate.trim().length===0,J,c,C,x,b=!((J=u.thumbnail)==null?0:(c=J.thumbnails)==null?0:c.length)||!((C=u.thumbnail)==null?0:C.thumbnails[0].url)||((x=u.thumbnail)==null?void 0:x.thumbnails[0].url.trim().length)===0;S.value&&P&&!(W||m||b)&&_.Di(S.value,P)});
return _.R("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.R("script",{el:S,type:"application/ld+json"}))},"Ki"),"player-microformat-renderer",{props:{data:_.tL}});
}catch(e){_._DumpException(e)}
try{
var beZ,E1,TWc,Kkj,fzu,g0Y,E0Y,$fj;beZ=function(){var Y=_.Gd();Y.info||(Y.info={});return Y.info};
E1=function(Y){return Math.round(_.vu()+Y)};
TWc=function(){var Y;if(_.f("csi_use_performance_navigation_timing")||_.f("csi_use_performance_navigation_timing_tvhtml5")){var S,P,u,W=_.h6==null?void 0:(Y=_.h6.getEntriesByType)==null?void 0:(S=Y.call(_.h6,"navigation"))==null?void 0:(P=S[0])==null?void 0:(u=P.toJSON)==null?void 0:u.call(P);W?(W.requestStart=E1(W.requestStart),W.responseEnd=E1(W.responseEnd),W.redirectStart=E1(W.redirectStart),W.redirectEnd=E1(W.redirectEnd),W.domainLookupEnd=E1(W.domainLookupEnd),W.connectStart=E1(W.connectStart),
W.connectEnd=E1(W.connectEnd),W.responseStart=E1(W.responseStart),W.secureConnectionStart=E1(W.secureConnectionStart),W.domainLookupStart=E1(W.domainLookupStart),W.isPerformanceNavigationTiming=!0,Y=W):Y=_.h6.timing}else Y=_.f("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.h6.timing)):_.h6.timing;return Y};
Kkj=function(){if(_.h6.getEntriesByType){var Y=_.h6.getEntriesByType("paint");if(Y=_.d1(Y,function(P){return P.name==="first-paint"}))return E1(Y.startTime)}var S;
_.f("csi_use_performance_navigation_timing")||_.f("csi_use_performance_navigation_timing_tvhtml5")?S=_.h6.getEntriesByType("first-paint")[0].startTime:S=_.h6.timing.msFirstPaint;return S?Math.max(0,S):0};
fzu=function(){var Y=window.location.protocol,S=_.h6.getEntriesByType("resource");S=_.ze(S,function(P){return P.name.indexOf(Y+"//fonts.gstatic.com/s/")===0});
(S=E0Y(S,function(P,u){return u.duration>P.duration?u:P}))&&S.startTime>0&&S.responseEnd>0&&(_.D9("wffs",E1(S.startTime)),_.D9("wffe",E1(S.responseEnd)))};
g0Y=function(Y,S){Y=document.querySelector(Y);if(!Y)return!1;var P="",u=Y.nodeName;u==="SCRIPT"?(P=Y.src,P||(P=Y.getAttribute("data-timing-href"))&&(P=window.location.protocol+P)):u==="LINK"&&(P=Y.href);_.rE(document)&&Y.setAttribute("nonce",_.rE(document));return P?(Y=_.h6.getEntriesByName(P))&&Y[0]&&(Y=Y[0],P=_.vu(),_.D9("rsf_"+S,P+Math.round(Y.fetchStart)),_.D9("rse_"+S,P+Math.round(Y.responseEnd)),Y.transferSize!==void 0&&Y.transferSize===0)?!0:!1:!1};
_.fv=function(Y,S){_.oj(function(){_.gqa("").info.actionType=Y;S&&_.lk("TIMING_AFT_KEYS",S);_.lk("TIMING_ACTION",Y);var P=_.XOJ(_.X3("TIMING_INFO",{}));Object.keys(P).length>0&&_.IA(P);P={isNavigation:!0,actionType:_.G99(_.X3("TIMING_ACTION"))};var u=_.X3("PREVIOUS_ACTION");u&&(P.previousAction=_.G99(u));if(u=_.X3("CLIENT_PROTOCOL"))P.httpProtocol=u;if(u=_.X3("CLIENT_TRANSPORT"))P.transportProtocol=u;(u=_.pM())&&u!=="UNDEFINED_CSN"&&(P.clientScreenNonce=u);u=_.lHE();if(u===1||u===-1)P.isVisible=!0;
u=_.ROf().loadType==="cold";var W=beZ();u||(u=W.yt_lt==="cold");if(u){P.loadType="cold";u=beZ();W=TWc();var m=_.vu(),J=_.X3("CSI_START_TIMESTAMP_MILLIS",0);J>0&&!_.f("embeds_web_enable_csi_start_override_killswitch")&&(m=J);m&&(_.D9("srt",W.responseStart),u.prerender!==1&&_.aHK(m));u=Kkj();u>0&&_.D9("fpt",u);u=TWc();u.isPerformanceNavigationTiming&&_.IA({performanceNavigationTiming:!0},void 0);_.D9("nreqs",u.requestStart,void 0);_.D9("nress",u.responseStart,void 0);_.D9("nrese",u.responseEnd,void 0);
u.redirectEnd-u.redirectStart>0&&(_.D9("nrs",u.redirectStart,void 0),_.D9("nre",u.redirectEnd,void 0));u.domainLookupEnd-u.domainLookupStart>0&&(_.D9("ndnss",u.domainLookupStart,void 0),_.D9("ndnse",u.domainLookupEnd,void 0));u.connectEnd-u.connectStart>0&&(_.D9("ntcps",u.connectStart,void 0),_.D9("ntcpe",u.connectEnd,void 0));u.secureConnectionStart>=_.vu()&&u.connectEnd-u.secureConnectionStart>0&&(_.D9("nstcps",u.secureConnectionStart,void 0),_.D9("ntcpe",u.connectEnd,void 0));_.h6&&"getEntriesByType"in
_.h6&&fzu();u=[];if(document.querySelector&&_.h6&&_.h6.getEntriesByName)for(var c in $fj)$fj.hasOwnProperty(c)&&(W=$fj[c],g0Y(c,W)&&u.push(W));if(u.length>0)for(P.resourceInfo=[],c=_.n(u),u=c.next();!u.done;u=c.next())P.resourceInfo.push({resourceCache:u.value})}_.IA(P);P=_.bQU();P.preLoggedGelInfos||(P.preLoggedGelInfos=[]);c=P.preLoggedGelInfos;P=_.TUK();u=void 0;for(W=0;W<c.length;W++)if(m=c[W],m.loadType){u=m.loadType;break}if(_.ROf().loadType==="cold"&&(P.loadType==="cold"||u==="cold")){u=_.xdE();
W=_.bQU();W=W.gelTicks?W.gelTicks:W.gelTicks={};for(var C in u)if(!(C in W))if(typeof u[C]==="number")_.D9(C,_.aA(C));else if(_.f("log_repeated_ytcsi_ticks"))for(m=_.n(u[C]),J=m.next();!J.done;J=m.next())J=J.value,_.D9(C.slice(1),J);C={};u=!1;c=_.n(c);for(W=c.next();!W.done;W=c.next())u=W.value,_.cya(P,u),_.cya(C,u),u=!0;u&&_.IA(C)}_.iQY(!0);C=_.X3("TIMING_ACTION");_.tA("ytglobal.timingready_")&&C&&_.HQ9()&&_.ZQ8()&&_.s71()})()};
E0Y=function(Y,S){return Array.prototype.reduce.call(Y,S,{duration:0})};
$fj={'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 rQ_={};rQ_.YtVisibilityRootBehavior=[_.b0f.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.oY(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.X3("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var Y=_.X3("INNERTUBE_CLIENT_NAME")!=="WEB";_.f("kevlar_use_vimio_behavior")&&Y&&_.f7f()}}];_.gn={};_.gn.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(Y){Y.detail.contextProvider=this;Y.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
rQ_.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.dL();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(Y){var S=this;this.pageCount+=1;_.f("kevlar_use_vimio_behavior")&&(_.X3("INNERTUBE_CLIENT_NAME")==="WEB"?_.wc.addJob(function(){S.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(Y)},
loadPage_:function(Y){this.data=Y},
ytPageBehaviorActiveObserver_:function(Y){var S=this;_.f("kevlar_use_vimio_behavior")&&(Y?_.X3("INNERTUBE_CLIENT_NAME")==="WEB"?_.wc.addJob(function(){S.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(Y){if(!this.setScrollTopJobId_){var S=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){S.setScrollTopJobId_=0;var P=_.E().resolve(_.PQ(_.En));P&&_.bKt(P);this.getPageScrollingElement().scrollTop=Y}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Dl(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var xf5;var Kv=function(){var Y=_.Z.apply(this,arguments)||this;Y.playerListenerConfig=null;Y.actionMap={"yt-show-watch-page-survey":"openSurvey"};return Y};
_.r(Kv,_.Z);_.z=Kv.prototype;_.z.dataChanged=function(){var Y=this,S=_.Q5();S&&S.getPlayerPromise().then(function(u){Y.maybeRemovePlayerListeners(u)});
var P=this.data&&this.data.survey;P&&((P=(P=P.singleOptionSurveyRenderer||P.checkboxSurveyRenderer||P.multiStageSurveyRenderer)&&P.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(S,P):this.openSurvey())};
_.z.triggerWatchPageSurvey=function(Y,S){var P=this,u,W,m,J,c,C,x,b,T;return _.B(function(K){if(K.nextAddress==1)return Y?_.q(K,Y.getPlayerPromise(),2):K.return();P.player=K.yieldResult;if(!P.player)return K.return();u={};W=_.n(S);for(m=W.next();!m.done;m=W.next())J=m.value,c=_.n(P.createEventListenerPair(J)),C=c.next().value,x=c.next().value,b=C,T=x,b&&T&&(u[b]=T,P.ytPlayerListenerBehavior.listenToPlayerEvent(P.player,b,T));P.playerListenerConfig=u;_.Yt(K)})};
_.z.createEventListenerPair=function(Y){var S=Y.playbackEventTrigger;return S?this.handlePlaybackTrigger(S):(Y=Y.watchTimeTrigger)?this.handleWatchTimeTrigger(Y):[void 0,void 0]};
_.z.handleWatchTimeTrigger=function(Y){var S=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var P=Y.videoWatchFraction,u=Y.watchTimeSec;return u&&P?["onVideoProgress",function(){S.player&&S.isWatchTimeConditionMet(S.player,P,u)&&S.showSurvey()}]:[void 0,
void 0]};
_.z.isWatchTimeConditionMet=function(Y,S,P){var u=Y.getProgressState(),W=u.current-this.lastKnownPlaybackPosition;W<5&&(this.accumulatedMediaTime+=W);this.lastKnownPlaybackPosition=u.current;u=Math.round(this.accumulatedMediaTime/u.duration*1E3)/1E3;return Y.getPresentingPlayerType&&Y.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>P||u>S)};
_.z.handlePlaybackTrigger=function(Y){var S=this;Y=Y.playbackEvent;if(Y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var P="onStateChange";var u=function(W){W===0&&S.showSurvey()}}else Y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(P="onVideoProgress",u=function(W){S.player&&S.player.getPresentingPlayerType&&S.player.getPresentingPlayerType()===1&&W&&S.showSurvey()}):Y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(P="onAdEnd",u=this.showSurvey);
return[P,u]};
_.z.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.z.openSurvey=function(){var Y=this,S=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.XzY(!!S));_.wc.addJob(function(){Y.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:S}})},0,0)};
_.z.maybeRemovePlayerListeners=function(Y){if(this.playerListenerConfig){for(var S=_.n(Object.keys(this.playerListenerConfig)),P=S.next();!P.done;P=S.next())P=P.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(Y,P,this.playerListenerConfig[P]);this.playerListenerConfig=null}};
Kv.prototype.dataChanged=Kv.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],Kv.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],Kv.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Kv.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(_.Gn),_.k("design:type",Object)],Kv.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Kv.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Kv.prototype,"playerListenerConfig",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],Kv.prototype,"lastKnownPlaybackPosition",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],Kv.prototype,"accumulatedMediaTime",void 0);_.Q([_.X(),_.k("design:type",Object)],Kv.prototype,"player",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kv.prototype,"dataChanged",null);Kv=_.Q([_.t({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Kv);
_.A(Kv,"ytd-survey-trigger-renderer",function(){if(xf5!==void 0)return xf5;var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return xf5=Y},{mode:1});
}catch(e){_._DumpException(e)}
try{
var mO1=new _.N("promotedSparklesWebRenderer");var nru=new _.N("relatedChipCommand");var jwB;var JUX;var RZ=function(){return _.Z.apply(this,arguments)||this};
_.r(RZ,_.Z);RZ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],RZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],RZ.prototype,"data",void 0);RZ=_.Q([_.t({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],RZ);
_.A(RZ,"ytd-compact-tvfilm-entry-point-renderer",function(){if(JUX!==void 0)return JUX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return JUX=Y},{mode:1});var B_u;var cU1;var CQu;var x7=function(){return _.Z.apply(this,arguments)||this};
_.r(x7,_.Z);x7.prototype.ready=function(){this.initializeDefs()};
x7.prototype.initializeDefs=function(){var Y=this.meta.byKey("yt-icons"),S=_.I(Y).querySelector("#star"),P=_.I(Y).querySelector("#star_half");Y=_.I(Y).querySelector("#star_border");S&&this.defs.appendChild(S.cloneNode(!0));P&&this.defs.appendChild(P.cloneNode(!0));Y&&this.defs.appendChild(Y.cloneNode(!0))};
x7.prototype.percentChanged=function(){for(var Y=this.rating;Y.firstChild;)Y.removeChild(Y.firstChild);var S=Math.round(this.percent/10);Y=Math.floor(S/2);S%=2;var P=5-Y-S;this.appendStars("star",Y,0);this.appendStars("star_half",S,Y);this.appendStars("star_border",P,Y+S)};
x7.prototype.appendStars=function(Y,S,P){for(var u=0;u<S;u++){var W=(18+this.spacing)*(u+P),m=document.createElementNS("http://www.w3.org/2000/svg","use");_.Z7_(m,"#"+Y);m.setAttribute("x",""+W);m.setAttribute("y","0");this.rating.appendChild(m)}};
x7.prototype.percentChanged=x7.prototype.percentChanged;_.Q([_.nc("#defs"),_.k("design:type",HTMLElement)],x7.prototype,"defs",void 0);_.Q([_.nc("#rating"),_.k("design:type",HTMLElement)],x7.prototype,"rating",void 0);_.Q([_.X(),_.k("design:type",Number)],x7.prototype,"percent",void 0);_.Q([_.X({value:6}),_.k("design:type",Number)],x7.prototype,"spacing",void 0);_.Q([_.X({value:_.bv.create("iron-meta",{type:"iconset"})}),_.k("design:type",_.fD)],x7.prototype,"meta",void 0);
_.Q([_.zY("percent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x7.prototype,"percentChanged",null);x7=_.Q([_.t({disableElementRegistration:!0,is:"ytd-ratings"})],x7);
_.A(x7,"ytd-ratings",function(){if(CQu!==void 0)return CQu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return CQu=Y},{mode:1});var b_=function(){return _.Z.apply(this,arguments)||this};
_.r(b_,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],b_.prototype,"data",void 0);b_=_.Q([_.t({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],b_);
_.A(b_,"ytd-offer-review-renderer",function(){if(cU1!==void 0)return cU1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return cU1=Y},{mode:1});var T7=function(){var Y=_.Z.apply(this,arguments)||this;Y.badges=[{textBadge:{label:_.kW("CC")}}];return Y};
_.r(T7,_.Z);_.z=T7.prototype;_.z.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.z.dataChanged=function(){var Y=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(Y&&Y.commandMetadata&&_.g(Y.commandMetadata,_.gD)&&_.g(Y.commandMetadata,_.gD).fireAutomatically)_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}});else{var S;Y&&((S=_.g(Y,_.gD))==null?0:S.fireAutomatically)&&_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}})}};
_.z.isEmptyContent=function(Y){return this.isStorefrontEntryPointEmpty(Y)&&this.shouldHideOfferModule(Y)};
_.z.isStorefrontEntryPointEmpty=function(Y){return!Y||!Y.storefrontEntryPoint};
_.z.shouldHideOfferModule=function(Y){return!!Y.hideVideoDetails};
_.z.isOfferModuleNavigationInactive=function(Y){return!Y.navigationEndpoint&&!Y.serviceEndpoint};
_.z.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.E().resolve(_.uY).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
T7.prototype.dataChanged=T7.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],T7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],T7.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.k("design:type",Boolean)],T7.prototype,"hidden",void 0);
_.Q([_.X(),_.k("design:type",Object)],T7.prototype,"badges",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T7.prototype,"dataChanged",null);T7=_.Q([_.t({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],T7);
_.A(T7,"ytd-movie-offer-module-renderer",function(){if(B_u!==void 0)return B_u;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return B_u=Y},{mode:1});var q36;var KO=function(){return _.Z.apply(this,arguments)||this};
_.r(KO,_.Z);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],KO.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],KO.prototype,"data",void 0);KO=_.Q([_.t({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],KO);
_.A(KO,"ytd-media-masthead-renderer",function(){if(q36!==void 0)return q36;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return q36=Y},{mode:1});var RHj;_.AL(_.JtJ,"course-metadata-view-model",{props:{data:_.tL,isOverlay:_.tL}});var EN=function(){var Y=_.Z.apply(this,arguments)||this;Y.isMetadataVisible=!1;Y.modernPanels=_.f("kevlar_watch_modern_panels");Y.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return Y};
_.r(EN,_.Z);_.z=EN.prototype;
_.z.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"}}}}};
_.z.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.z.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.z.expanderChanged=function(){var Y;if((Y=this.data)==null?0:Y.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.z.isExpandButtonToggled=function(){var Y,S;return(S=_.g((Y=this.data)==null?void 0:Y.expandMetadataButton,_.hq))==null?void 0:S.isToggled};
_.z.onVisibilityButtonClick=function(){var Y;if((Y=this.data)==null?0:Y.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.z.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
EN.prototype.expanderChanged=EN.prototype.expanderChanged;EN.prototype.dataChanged=EN.prototype.dataChanged;EN.prototype.descriptionChanged=EN.prototype.descriptionChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],EN.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p([_.tD.YtActionHandlerBehavior]),_.k("design:type",Object)],EN.prototype,"actionHandlerBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],EN.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],EN.prototype,"isMetadataVisible",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],EN.prototype,"modernPanels",void 0);_.Q([_.nc("#expander"),_.k("design:type",Object)],EN.prototype,"expander",void 0);_.Q([_.zY("data.description"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EN.prototype,"descriptionChanged",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EN.prototype,"dataChanged",null);_.Q([_.zY("isMetadataVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EN.prototype,"expanderChanged",null);EN=_.Q([_.t({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],EN);
_.A(EN,"ytd-tvfilm-offer-module-renderer",function(){if(RHj!==void 0)return RHj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return RHj=Y},{mode:2});var xOj;var fO=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return Y};
_.r(fO,_.Z);fO.prototype.dataChanged=function(){this.hostElement.hidden=!1};
fO.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
fO.prototype.onThumbnailTap=function(Y){this.data&&this.data.serviceEndpoint&&(_.E().resolve(_.uY).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),Y.stopPropagation())};
fO.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
fO.prototype.dataChanged=fO.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],fO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],fO.prototype,"rendererBehaviors",void 0);_.Q([_.p([_.tD.YtActionHandlerBehavior]),_.k("design:type",Object)],fO.prototype,"actionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],fO.prototype,"data",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fO.prototype,"dataChanged",null);fO=_.Q([_.t({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],fO);
_.A(fO,"ytd-unlimited-offer-module-renderer",function(){if(xOj!==void 0)return xOj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return xOj=Y},{mode:1});var bFB;var T_u;var gJ=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return Y};
_.r(gJ,_.Z);gJ.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
gJ.prototype.handleRelatedChipCommand=function(Y){Y=_.g(Y,nru);var S=Y.contents;S?_.jR(this.hostElement,"yt-item-section-replace-action",[S,Y.targetSectionIdentifier]):_.jR(this.hostElement,"yt-item-section-continuation-action",[Y.continuationData,Y.targetSectionIdentifier])};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],gJ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],gJ.prototype,"actionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],gJ.prototype,"data",void 0);gJ=_.Q([_.r0({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],gJ);
_.A(gJ,"yt-related-chip-cloud-renderer",function(){if(T_u===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;bFB===void 0&&(bFB=document.createElement("template"));var u=bFB;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);T_u=Y}Y=T_u;return Y},{mode:2});var $7=function(){var Y=_.Z.apply(this,arguments)||this;Y.isTwoColumns=!0;Y.hideOfferModules=!1;Y.watchFeedBigThumbs=_.f("kevlar_watch_feed_big_thumbs");Y.watchNextGridHideChips=_.f("kevlar_watch_grid_hide_chips");Y.eligibleToSwitchToGrid=_.f("web_watch_eligible_to_switch_to_grid");Y.disableShortsShelfHeightOverride=_.f("web_shorts_wn_shelf_ratio_tuning");Y.isWatchNextGrid=!1;Y.reuseComponents=!_.f("kevlar_watch_grid");Y.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return Y};
_.r($7,_.Z);_.z=$7.prototype;
_.z.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:!_.f("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}}};
_.z.getItemsPath=function(){return"data.results"};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.z.created=function(){this.ytLazyListBehavior.initialCount=1};
_.z.ready=function(){_.PZ(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%"})};
_.z.resultsChanged=function(){if(this.data&&this.data.results){for(var Y=this.data.results,S=null,P=null,u=0;u<Y.length;u++)Y[u].relatedChipCloudRenderer?S=Y[u].relatedChipCloudRenderer:Y[u].itemSectionRenderer&&(P=Y[u].itemSectionRenderer);if(S&&P)for(this.set("data.continuations",[]),Y=_.g(S.content,_.n1t).chips,S=0;S<Y.length;S++)if(u=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",Y[S]),u.loadCached||!u.contents){u.contents=P.contents;break}}};
_.z.dataChanged=function(){var Y=this,S;if((S=this.data)!=null&&S.results&&this.hasAllowedInstreamAd(this.playerData)){if(S=this.data.results.filter(function(c){return!!c.promotedSparklesWebRenderer})){for(var P=0;P<S.length;P++){var u=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",S[P]);
if(u)for(var W=0;W<u.length;W++)u[W]&&u[W].baseUrl&&_.UQ(u[W].baseUrl)}this.set("data.results",this.data.results.filter(function(c){return!c.promotedSparklesWebRenderer}))}if(S=this.data.results.filter(function(c){return!!Y.getSparklesAd(c)})){S=_.n(S);
for(W=S.next();!W.done;W=S.next())if(u=P=void 0,W=(P=this.getSparklesAd(W.value))==null?void 0:(u=P.errorCommand)==null?void 0:u.loggingUrls)for(P=_.n(W),u=P.next();!u.done;u=P.next())(u=u.value)&&u.baseUrl&&_.UQ(u.baseUrl);var m,J;this.set("data.results",(m=this.data)==null?void 0:(J=m.results)==null?void 0:J.filter(function(c){return!c.adSlotRenderer}))}}};
_.z.getSparklesAd=function(Y){var S,P;Y=_.g((S=Y.adSlotRenderer)==null?void 0:(P=S.fulfillmentContent)==null?void 0:P.fulfilledLayout,_.apf);return _.g(Y==null?void 0:Y.renderingContent,mO1)};
_.z.hasAllowedInstreamAd=function(Y){Y=this.get("adPlacements",Y)||[];for(var S=0;S<Y.length;S++){var P=this.get("adPlacementRenderer.config.adPlacementConfig",Y[S]);if(P&&P.suppressDisplayAd)return!0}return!1};
_.z.computeHideUnlimitedOfferModule=function(Y,S){return Y&&Y.offerModule&&S&&Y.offerModule.unlimitedOfferModuleRenderer&&Y.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(S)?!0:!1};
_.z.hideUnlimitedOfferModuleChanged=function(){var Y=_.I(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");Y&&(Y.hidden=this.hideUnlimitedOfferModule)};
_.z.updateLockupContainerTypes=function(Y){if(this.eligibleToSwitchToGrid){var S;(S=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||S.forEach(function(P){P.containerType=Y})}};
_.z.computeHideTvfilmOfferModule=function(Y,S){var P,u;return!!((Y==null?0:(P=Y.offerModule)==null?0:(u=P.tvfilmOfferModuleRenderer)==null?0:u.clientShouldSuppressIfCompanionAdDisplayed)&&S&&this.hasCompanionAds(S))};
_.z.hideTvfilmOfferModuleChanged=function(){var Y=_.I(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");Y&&(Y.hidden=this.hideTvfilmOfferModule)};
_.z.hasCompanionAds=function(Y){Y=this.get("adPlacements",Y)||[];for(var S=0;S<Y.length;S++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",Y[S]))return!0;var P=void 0,u=void 0,W=void 0;if(!_.f("web_watch_top_banner_companion_check_killswitch")&&((P=Y[S])==null?0:(u=P.adPlacementRenderer)==null?0:(W=u.renderer)==null?0:W.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.z.hasSuppressedResults=function(Y){return Y==null?!0:Y.filter(function(S){return!S.continuationItemRenderer&&!S.compactPromotedVideoRenderer&&!S.promotedSparklesWebRenderer}).length===0};
_.z.computeShowButton=function(Y,S){return this.isWatchNextGrid?Y:Y||this.hasSuppressedResults(S)};
_.z.showButtonChanged=function(){if(this.isWatchNextGrid){var Y=_.I(this.hostElement).querySelector("ytd-rich-grid-renderer");Y&&this.showButton!==null&&(Y.continuationShowButton=this.showButton)}else{Y=_.I(this.hostElement).querySelector("yt-next-continuation");var S=_.I(this.hostElement).querySelector("ytd-continuation-item-renderer"),P=_.I(this.hostElement).querySelector("ytd-item-section-renderer");Y&&(Y.showButton=this.showButton);S&&(S.showButton=this.showButton);P&&(P.continuationShowButton=
this.showButton)}};
_.z.continuationTap=function(Y){var S;if(((S=this.data)==null?void 0:S.continuations)!=null&&Y.target.tagName==="TP-YT-PAPER-BUTTON")for(Y=this.data.continuations,S=0;S<Y.length;S++)Y[S].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(Y[S].nextContinuationData||{})};
_.z.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("shown-items-changed",this.shownItems))};
_.y6.Object.defineProperties($7.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.shownItems)==null||!Y.some(function(S){return!!S.lockupViewModel}))}}});
$7.prototype.shownItemsChangedForBinding=$7.prototype.shownItemsChangedForBinding;$7.prototype.showButtonChanged=$7.prototype.showButtonChanged;$7.prototype.hideTvfilmOfferModuleChanged=$7.prototype.hideTvfilmOfferModuleChanged;$7.prototype.updateLockupContainerTypes=$7.prototype.updateLockupContainerTypes;$7.prototype.hideUnlimitedOfferModuleChanged=$7.prototype.hideUnlimitedOfferModuleChanged;$7.prototype.dataChanged=$7.prototype.dataChanged;$7.prototype.resultsChanged=$7.prototype.resultsChanged;
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.QG.YtLazyListBehavior),_.k("design:type",Object)],$7.prototype,"ytLazyListBehavior",void 0);_.Q([_.p(_.a3.YtNextContinuationBehavior),_.k("design:type",Object)],$7.prototype,"ytNextContinuationBehavior",void 0);
_.Q([_.p(_.I3),_.k("design:type",Object)],$7.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],$7.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$7.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],$7.prototype,"playerData",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],$7.prototype,"autoFill",void 0);_.Q([_.X({value:60}),_.k("design:type",Number)],$7.prototype,"targetFramerate",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"isTwoColumns",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"hideOfferModules",void 0);_.Q([_.X(),_.k("design:type",Object)],$7.prototype,"shownItems",void 0);_.Q([_.X({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.k("design:type",Boolean)],$7.prototype,"hideUnlimitedOfferModule",void 0);
_.Q([_.X({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.k("design:type",Boolean)],$7.prototype,"hideTvfilmOfferModule",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"watchFeedBigThumbs",void 0);_.Q([_.X(),_.k("design:type",Object)],$7.prototype,"watchNextGridHideChips",void 0);_.Q([_.X(),_.k("design:type",Object)],$7.prototype,"eligibleToSwitchToGrid",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"disableShortsShelfHeightOverride",void 0);_.Q([_.X({selector:_.wv}),_.k("design:type",Object)],$7.prototype,"isGridViewEnabled",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],$7.prototype,"showMoreButton",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"isWatchNextGrid",void 0);
_.Q([_.X({computed:"computeShowButton(showMoreButton, data.results)"}),_.k("design:type",Boolean)],$7.prototype,"showButton",void 0);_.Q([_.cZ("data.results.*"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$7.prototype,"resultsChanged",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$7.prototype,"dataChanged",null);
_.Q([_.zY("hideUnlimitedOfferModule"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$7.prototype,"hideUnlimitedOfferModuleChanged",null);_.Q([_.d("isGridViewEnabled","containsLockupViewModel","data"),_.X({reflectToAttribute:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],$7.prototype,"lockupContainerType",null);
_.Q([_.zY("lockupContainerType","data"),_.k("design:type",Function),_.k("design:paramtypes",[Number]),_.k("design:returntype")],$7.prototype,"updateLockupContainerTypes",null);_.Q([_.zY("hideTvfilmOfferModule"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$7.prototype,"hideTvfilmOfferModuleChanged",null);_.Q([_.zY("showButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$7.prototype,"showButtonChanged",null);
_.Q([_.zY("shownItems"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$7.prototype,"shownItemsChangedForBinding",null);_.Q([_.d("shownItems"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$7.prototype,"containsLockupViewModel",null);
_.A($7,"ytd-watch-next-secondary-results-renderer",function(){if(jwB===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);jwB=Y}Y=jwB;return Y},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.OYB={};
_.OYB.YtdWatchBehavior=[_.e.YtRendererBehavior,_.da.YtPlayerListenerBehavior,_.om.YtRendererstamperBehavior,_.tD.YtActionHandlerBehavior,_.gn.YtPageBehavior,_.eo.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 _.Z4("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.f("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 _.Z4("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.f("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded, fullscreen)"},richItemMinWidth:{type:Number,value:function(){return _.z_("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.z_("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!_.f("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.f("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 _.f("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.f("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.f("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.f("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.f("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.f("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var Y={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",
mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.vn(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.vn(["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"||_.f("swa_prov_panels_ks")?_.f("web_watch_inject_placeholder_panels")?Y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.f("kevlar_use_engagement_panel_management_component")||
(Y["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):(Y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},Y.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});
return Y},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var Y=this;this.watchController=void 0;this.pageDisposeJobs=[function(){Y.showMetadataPlaceholder_()},
function(){_.f("web_watch_dont_clear_comments")||Y.clearComments_()},
function(){Y.clearPlayerAds_()},
function(){Y.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.f("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.f("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.ZYu(function(){return _.Un(Y)},this.hostElement);
this.pageDisposeJobs.push(function(){Y.youThereManager_.reset()});
_.f("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){Y.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.PY;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;_.f("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.f("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));_.f("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.up(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(Y){Y&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:Y}),Y.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(Y){_.f("kevlar_watch_flexy_theater_manager")&&(this.theater=Y,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(Y){!_.f("kevlar_watch_while_v2")&&!_.f("web_watch_pip")||Y||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(Y){this.active!==void 0&&(this.fullscreen=Y,_.f("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(Y){this.active!==void 0&&(_.ms(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.f("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(Y>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(Y){this.initCsi_();this.updatePageData_(Y)},
updatePageData_:function(Y){var S=this;if(Y)if(this.data===Y){this.onPageLoadWithSameData_();var P;(P=this.watchController)==null||_.i$(P,this.data)}else this.data=Y;this.playlist&&_.wP({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Fk("nw");this.loading=!1;_.hp(_.wc,function(){S.initDclkstatus_();var u,W=((u=S.player)==null?void 0:u.getVideoData().cpn)||"";_.r0c(function(m,J){_.PY_(m,J,W)})})},
onPageLoadWithSameData_:function(){_.f("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var Y=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!Y);this.set("loadingData.playlistLoading",Y&&Y!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),Y=this.watchNextSkeletonEl_.firstElementChild;Y;)Y.classList.remove("hidden"),Y=Y.nextElementSibling;if(_.f("kevlar_watch_frame0_loading_state")){var S,P,u;Y=(S=this.loadingData)==null?void 0:(P=S.endpoint)==null?void 0:(u=P.watchEndpoint)==null?void 0:u.videoId;var W;Y&&(W="https://i.ytimg.com/vi/"+Y+"/frame0.jpg");_.I(this.hostElement).querySelector("#player").style.backgroundImage=W?"url("+W+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var Y=_.I(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&Y&&(Y.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var S,P;(P=(S=this.watchMetadata).updateSentimentBarWidth)==
null||P.call(S);var u,W;(W=(u=this.watchMetadata).resize)==null||W.call(u)}_.f("kevlar_watch_frame0_loading_state")&&(_.I(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(Y){var S=_.I(this.hostElement).querySelector(Y);S?_.uj(S,!1):_.sf(new _.$2("Overscroll monitor not found for component: ",Y))},
removeSplitScrollMouseTrap:function(Y){var S=_.I(this.hostElement).querySelector(Y);S?_.zd(S):_.sf(new _.$2("Disposal component for  overscroll monitoring not found: ",Y))},
onLoadingChanged_:function(Y){Y?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(Y){var S=this;Y?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.wc.addLowPriorityJob(function(){S.onWindowResized_(_.x9(!0))})},
updateTheaterModeState_:function(Y){if(!_.f("kevlar_watch_flexy_theater_manager")){Y=Y||this.fullWindowMode_;if(this.theater!==void 0||Y)this.theater=Y;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();Y&&_.rUo()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var Y=this.theater;_.f("external_fullscreen")&&this.fullscreen&&(Y=!0);Y=Y?_.I(this.hostElement).querySelector("#player-full-bleed-container"):_.I(this.hostElement).querySelector("#player-container-inner");var S=this.getPlayerContainer(),P=_.f("kevlar_watch_while_v2")||_.f("web_watch_pip");S.parentElement!==Y&&(P&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Un(this).appendTo(Y,S),Y.appendChild(_.I(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var Y=this;return _.B(function(S){if(S.nextAddress==1)return _.q(S,_.E().resolve(_.l1).deactivate(),2);Y.updatePlayerLocation();_.Yt(S)})},
updateCinematicsLocation:function(){var Y=this.getElement("CINEMATICS");if(Y){var S=this.getCinematicsLocationContainer();Y.parentElement!==S&&S.appendChild(Y);var P;(P=this.watchController)==null||_.E$X(P)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.I(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.I(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(Y,S){var P=document.documentElement.hasAttribute("dark"),u=P&&_.f("web_cinematic_theater_mode"),W=P&&_.f("web_cinematic_fullscreen");P=!P&&this.cinematicLightTheme;return Y&&u||S&&W||(S||Y)&&P},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var Y=this,S;(S=this.watchController)==null||_.i$(S,this.data);_.f("kevlar_watch_flexy_comments_manager")||this.initComments_();_.f("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.E().resolve(_.D3).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,_.f("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.wc.addLowPriorityJob(function(){_.jR(Y.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.f("web_watch_start_chat_in_theater_mode")){var P,u,W;if((P=this.data)==null?0:(u=P.contents)==null?0:(W=u.twoColumnWatchNextResults)==null?0:W.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var m,J;((m=this.data)==null?0:(J=m.contents)==null?0:J.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(Y){var S;(S=this.watchController)==null||_.ZL(S,this.playerData);Y&&Y.playabilityStatus&&(S=this.isVideoPlayable_(Y.playabilityStatus,this.getPlayerOverlays_(this.data)),Y=this.isLiveStreamOffline_(Y.playabilityStatus),S&&!Y||_.ky(this,function(){_.Fk("pbu")}));
this.setPlayerAds_();_.jR(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(Y,S){if((_.f("kevlar_watch_while_v2")||_.f("web_watch_pip"))&&this.playerData&&S)return this.playerData.videoDetails},
watchPageActiveChanged_:function(Y){_.Na().dispatch(_.gkX(this.active));Y?this.activate_():this.deactivate_()},
attached:function(){var Y=this;this.watchController=new _.X9(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.ZL(this.watchController,this.playerData);this.data&&_.i$(this.watchController,this.data);_.f("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var S=_.Un(this);_.f("kevlar_disable_prepare_player")||S.preparePlayer();
_.f("kevlar_watch_flexy_playlist_manager")||_.E().resolve(_.D3).setPlayer(S);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();S={"--ytd-watch-flexy-scrollbar-width":_.$0()+"px"};this.is==="ytd-watch-grid"&&(S["--ytd-watch-flexy-sidebar-width"]=_.Xu+"px",S["--ytd-watch-grid-horizontal-page-margins"]=_.sN+"px",S["--ytd-watch-grid-columns-top-margins"]=_.c1u+"px",S["--ytd-watch-grid-min-player-height-medium"]="360px");!_.z_("kv_pl_mx_sz_ks")&&_.z_("kevlar_watch_max_player_width")&&
(S["--ytd-watch-flexy-max-player-width-wide-screen"]=_.bL5+"px");_.z_("kevlar_watch_flexy_metadata_height")&&(S["--ytd-watch-flexy-space-below-player"]=_.TOd+"px");this.safeUpdateStyles(S);_.f("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.cA(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return Y.onPlayerTouchPanDown_()}}));
_.f("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.I(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var Y=_.$0(),S=_.dJ+Y,P=S;this.fixedPanels&&(S+=_.Xu);var u=657+Y;Y=1327+Y;_.I(this.hostElement).querySelector("#two-column-query").query="(min-width: "+S+"px)";_.I(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(u+"px), (min-height: 630px) and (min-width: ")+(S+"px) and (max-width: ")+(Y+"px)");_.I(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(Y+"px)");_.I(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+P+"px)"},
calculateCurrentPlayerSize_:function(){var Y=_.I(this.hostElement).querySelector("#miniplayer-bar").firstChild;return Y&&Y.active||this.theater||_.f("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.SZ(NaN,NaN):_.AH(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.AH(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.oY(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var Y=this;this.onWindowResized_(_.x9());_.f("browse_skeleton_removal_on_watch_killswitch")||_.Z4("IS_SHELL_LOAD")&&_.RYd();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var S=_.Un(this);S.addEventListener("yt-player-updated",_.up(this,this.onPlayerUpdated_));S.getPlayerPromise().then(function(P){Y.playerApiReady_(P)});
_.f("kevlar_watch_flexy_playlist_manager")||(S=_.E().resolve(_.D3),_.f("kevlar_watch_observe_playlist_navigations_killswitch")&&S.addEventListener("yt-navigate",_.up(this,this.onYtNavigate_)),S.setPlaylistComponent(_.I(this.hostElement).querySelector("#playlist")),S.addEventListener("yt-playlist-data-updated",_.up(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.wc.addLowPriorityJob(function(){_.ms(Y.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Un(this).removeEventListener("yt-player-updated",_.up(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.f("kevlar_watch_flexy_playlist_manager")){var Y=_.E().resolve(_.D3);_.f("kevlar_watch_observe_playlist_navigations_killswitch")&&Y.removeEventListener("yt-navigate",_.up(this,this.onYtNavigate_));
Y.cancelVideoSkip();Y.removeEventListener("yt-playlist-data-updated",_.up(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.ms(this.hostElement,"yt-autonav-pause-player",!1);Y=_.SR();_.f("kevlar_exit_fullscreen_leaving_watch")&&Y&&_.Pu(Y)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(Y){this.player&&this.player.updateVideoData({rvs:Y.rvs})},
getPageContents:function(Y){return Y&&Y.contents&&Y.contents.twoColumnWatchNextResults&&Y.contents.twoColumnWatchNextResults.results&&Y.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(Y){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Y)},
onRetrieveLocation_:function(Y,S){S.hasComments?S.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):S.locationRetrieved("/related_ajax",void 0);Y.stopPropagation()},
onSubscriptionChanged_:function(Y,S){this.player&&(S?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.fv("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.I(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.I(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(Y){this.player=Y;this.setPlayerState(Y.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.f("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.f("kevlar_unified_player")||_.f("kevlar_player_new_bootstrap_adoption"))&&_.NF()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(Y,S){S=S===void 0?!0:S;_.SR()&&_.f("external_fullscreen")&&_.Pu(document.documentElement);this.theaterRequested_=Y;S&&_.Kz("wide",Y?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.nb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.ms(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(Y){_.d6(Y,typeof this.player),this.player&&_.d6(Y,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var Y;((Y=this.player)==null?0:Y.isFullscreen())?this.player.toggleFullscreen():_.nb(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(Y,S){return this.loading?S:!!Object.keys(Y).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(Y){if(Y){Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())S=S.value,S.youThereRenderer&&_.t9Y(this.youThereManager_,S.youThereRenderer)}},
setPlaylistData_:function(Y){return Y||{}},
userEngagementConfigDataChanged_:function(Y){if(Y)if(Y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var S=this.youThereManager_;_.uE()<Y.lowEngagementThresholdMs||_.koZ(S,!0)}else Y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.nb(this.hostElement,"yt-autonav-pause-user-engagement",[Y])},
isPlayerUnavailable_:function(Y,S,P){return!!Y&&!this.isVideoPlayable_(Y,P)&&!S},
getPlayerOverlays_:function(Y){return(Y==null?void 0:Y.playerOverlays)||null},
isVideoPlayable_:function(Y,S){if(!Y)return!1;var P=Y.status==="OK"||Y.status==="LIVE_STREAM_OFFLINE",u=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",Y)||this.get("errorScreen.ypcTrailerRenderer",Y);Y=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",Y);var W;S=S==null?void 0:(W=S.playerOverlayRenderer)==null?void 0:W.gatedActionsOverlayRenderer;return!!P||!!u||!!Y||!!S},
hasWatchNextResponseErrorRenderer:function(Y){var S=this.getPageContents(Y),P,u,W,m,J;return!(Y==null?0:(P=Y.contents)==null?0:(u=P.twoColumnWatchNextResults)==null?0:u.secondaryResults)&&!!((W=S[0])==null?0:(m=W.itemSectionRenderer)==null?0:(J=m.contents[0])==null?0:J.backgroundPromoRenderer)},
isLiveStreamOffline_:function(Y){return Y?Y.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(Y,S,P){var u=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",S),W=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];W=_.f("web_no_skip_video_on_verification_checks")?(Y==null?void 0:Y.status)&&W.includes(Y.status):Y&&Y.status==="AGE_CHECK_REQUIRED";var m=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",Y);m==void 0&&(m=!0);!P||this.isVideoPlayable_(Y,this.getPlayerOverlays_(S))||
u||W||!m||_.E().resolve(_.D3).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.wGI()},
onPlayerFeedbackStartRequest_:function(Y){_.nb(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:Y}])},
onPlayerFeedbackArticleRequest_:function(Y){_.nb(this.hostElement,"yt-help-dialog-requested",[Y])},
onPlayerYpcContentRequest_:function(){var Y,S,P,u,W,m,J,c,C=((Y=this.data)==null?NaN:(S=Y.contents)==null?NaN:(P=S.twoColumnWatchNextResults)==null?NaN:(u=P.secondaryResults)==null?NaN:(W=u.secondaryResults)==null?NaN:(m=W.offerModule)==null?NaN:(J=m.tvfilmOfferModuleRenderer)==null?NaN:(c=J.actionButtons)==null?NaN:c.length)-1;Y=[".offerButton.buttonRenderer.",".actionButtons."+(C>=0?C:0)+".buttonRenderer."];S=_.n(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(P=S.next();!P.done;P=S.next())for(P=P.value,u=_.n(Y),W=u.next();!W.done;W=u.next())if(W="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+P+W.value,W=this.get(W+"navigationEndpoint",this.data)||this.get(W+"serviceEndpoint",this.data)||this.get(W+"command",this.data)){_.m4(W,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(Y){_.ms(this.hostElement,"yt-autonav-pause-player",Y)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(Y){Y()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(Y){switch(Y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(Y){switch(Y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.ms(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(Y)},
setPlayerState:function(Y){_.Na().dispatch(_.pbU(Y))},
onPlayerSubscribe_:function(Y){_.nb(this.hostElement,"yt-player-subscribe",[Y])},
onPlayerUnsubscribe_:function(Y){_.nb(this.hostElement,"yt-player-unsubscribe",[Y])},
onPlayerAdYtShowToast_:function(Y){_.nb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:Y.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(Y){if(Y)return Y},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(Y){return!_.f("web_watch_move_summary_to_sd")&&!!Y},
computeWatchMetadataRefresh:function(){return _.f("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.f("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var Y,S,P,u;this.watchNextSecondaryResults=(Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:(P=S.twoColumnWatchNextResults)==null?void 0:(u=P.secondaryResults)==null?void 0:u.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.f("swatcheroo_pbs_load_grid")&&!_.f("swatcheroo_provide_all_data_on_scheduled_job")){_.wc.cancelJob(this.setRichGridJobId_);var Y,S,P,u,W,m,J;this.setRichGridRendererData((Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:(P=S.twoColumnWatchNextResults)==null?void 0:(u=P.secondaryResults)==null?void 0:(W=u.secondaryResults)==null?void 0:(m=W.results)==null?void 0:(J=m[0])==null?
void 0:J.richGridRenderer)}},
setRichGridRendererData:function(Y){this.richGridRendererData=Y},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var Y,S=(Y=this.data)==null?void 0:Y.engagementPanels;if(S==null?0:S.length){Y=null;S=_.n(S);for(var P=S.next();!P.done;P=S.next()){P=P.value;var u=void 0;if(((u=P.engagementPanelSectionListRenderer)==null?void 0:u.targetId)==="engagement-panel-structured-description"){Y=P;break}}var W,m,J;Y=(W=Y)==null?void 0:(m=W.engagementPanelSectionListRenderer)==null?void 0:(J=m.content)==null?void 0:J.structuredDescriptionContentRenderer;if(Y==null?0:Y.items){W=
[];m=_.n(Y.items);for(J=m.next();!J.done;J=m.next()){J=J.value;if(!_.f("sd_horizontal_list_show_nav_killswitch")){var c=u=P=S=Y=void 0,C=void 0,x=(Y=J.horizontalCardListRenderer)==null?void 0:(S=Y.header)==null?void 0:(P=S.richListHeaderRenderer)==null?void 0:(u=P.navigationButton)==null?void 0:(c=u.buttonRenderer)==null?void 0:(C=c.command)==null?void 0:C.commandExecutorCommand;x&&x.commands&&(x.commands=x.commands.filter(function(b){return!_.g(b,_.Ir1)}))}J.expandableVideoDescriptionBodyRenderer||
J.videoDescriptionHeaderRenderer||W.push(J)}return{items:W}}}},
constructWarning_:function(Y){return{text:_.kW(Y),type:"WARNING"}},
isPlaShelfEnabled_:function(Y){if((this.get("adPlacements",Y)||[]).length)return!0;Y=this.get("playerAds",Y)||[];return!(!Y.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",Y[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var Y=this;_.ms(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var S=this.getScrollTop()>0;this.gestures_&&(S?this.gestures_.detach():this.gestures_.attach());S!==this.showFullerscreenEdu_&&_.f("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=S,_.Un(this).getPlayerPromise().then(function(P){P.updateFullerscreenEduButtonVisibility(Y.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.ms(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var Y=this;this.commentsReady=!1;_.wc.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.hp(_.wc,function(){Y.setComments_()},1E3)},
setComments_:function(){if(!_.f("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Fk("cmi");_.wc.cancelJob(this.setCommentsJobId_);var Y=this.getPageContents(this.data);if(Y&&Y.length){Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())if(S=S.value,this.get("itemSectionRenderer.sectionIdentifier",S)==="comment-item-section"){this.comments=S.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.ms(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.f("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.f("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Fk("cmc")},
doRemoveComments_:function(){this.comments={};_.f("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.wc.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.wc.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(Y,S){var P=_.g(S.endpoint,_.yx);P&&(!(S=this.get("data.currentVideoEndpoint.watchEndpoint"))||P.videoId!==S.videoId||P.playlistId&&P.playlistId!==S.playlistId||P.index!==void 0&&P.index!==S.index||typeof P.startTimeSeconds!=="number"||(Y.stopPropagation(),this.setScrollTop(0),_.Un(this).getPlayerPromise().then(function(u){var W=P.startTimeSeconds;u.seekTo(W);u.wakeUpControls();W<u.getDuration()&&u.playVideo()})))},
updatePlayerStartTime_:function(){var Y=_.$xY();"t"in Y&&(Y=_.L6X(Y.t),this.player.seekTo(Y,!0))},
updateTitleFromWatchNext:function(Y){Y=this.getPageContents(Y);var S,P;(Y=_.Ma(Y==null?void 0:(S=Y[0])==null?void 0:(P=S.videoPrimaryInfoRenderer)==null?void 0:P.title))&&_.ms(this.hostElement,"yt-update-title",Y)},
updateTitle_:function(Y){Y=this.get("videoDetails.title",Y)||"";_.ms(this.hostElement,"yt-update-title",Y)},
syncWithRemoteVideo_:function(Y,S,P){if(this.active&&this.player){var u=this.player.getVideoData();if(u.video_id===P&&(P=u.list,_.f("polymer_enable_mdx_queue")&&P&&P.startsWith("RQ")&&(P=void 0),u.video_id!==Y||P!=S)){var W;_.f("kevlar_player_watch_endpoint_navigation")?W=_.oKU(_.GoX(Y,S)):W=this.buildWatchEndpoint_(Y,S);_.ms(this.hostElement,"yt-navigate",{endpoint:W,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(Y,S,P){return _.YW(Y,S,P)},
initDclkstatus_:function(){_.Dx5()},
attachWatchPageSkeleton_:function(){var Y=document.querySelector("#watch-page-skeleton");if(Y){var S=Y.querySelector("#primary-info"),P=Y.querySelector("#secondary-info"),u=Y.querySelector("#related");S&&_.I(this.hostElement).querySelector("#info-skeleton").appendChild(S);P&&_.I(this.hostElement).querySelector("#meta-skeleton").appendChild(P);u&&(_.I(this.hostElement).querySelector("#related-skeleton").appendChild(u),this.watchNextSkeletonEl_=u);_.jL(Y)}},
handlePlayerUpdated_:function(){_.Un(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(Y,S){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof S!=="undefined"){var P=this.watchNextSkeletonEl_.children,u=Y&&Y.indexSplices.length?Y.indexSplices[0].index:0;Y=Math.min(this.watchNextShownItems.length,P.length);S||(u=0,Y=P.length);for(S=u;S<Y;S++)P[S].classList.add("hidden")}},
onPlayerFullscreenChange_:function(Y){_.f("external_fullscreen")||_.nb(this.hostElement,"yt-player-fullscreen",[Y.fullscreen])},
onFullscreenChange_:function(Y){this.fullscreen=Y;this.gestures_&&this.gestures_.update(this.fullscreen);var S=_.Un(this);S.getPlayerPromise().then(function(P){P.setFauxFullscreen(!!_.SR())});
this.updateFullBleedElementLocations();Y&&(S.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(Y,S){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!S},
computeIsDonationShelfCollapsed_:function(Y){return Y},
computeShouldShowMerchShelf:function(Y,S){return S&&!!Y},
computeResponseHasComments:function(Y){var S,P,u,W,m;return!!(Y==null?0:(S=Y.contents)==null?0:(P=S.twoColumnWatchNextResults)==null?0:(u=P.results)==null?0:(W=u.results)==null?0:(m=W.contents)==null?0:m.some(function(J){var c;return(J==null?void 0:(c=J.itemSectionRenderer)==null?void 0:c.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(Y,S,P,u){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&u?!1:!!Y&&!!Object.keys(Y).length&&!S},
identity:_.XE,onWindowResized_:function(Y){this.windowSize_=Y;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(Y){var S=this;Y&&Y.type!=="dataloaded"&&Y.type!=="dataupdated"||_.Un(this).getPlayerPromise().then(function(P){var u=P.getPlayerState();u!==5&&u!==0&&(P=1/P.getVideoAspectRatio(),S.videoHeightToWidthRatio_!==P&&(S.videoHeightToWidthRatio_=P))})},
schedulePlayerSizeUpdate_:function(Y){var S=this,P=_.f("kevlar_watch_while_v2")||_.f("web_watch_pip"),u=function(){if(S.watchMetadata){var W,m;(m=(W=S.watchMetadata).resize)==null||m.call(W)}_.Un(S).getPlayerPromise().then(function(J){if(_.f("kevlar_set_internal_player_size")){if(!P||!S.isMiniplayerActive()){var c=S.calculateCurrentPlayerSize_();J.setInternalSize(c.width,c.height)}}else J.setSize(NaN,NaN);_.f("kevlar_watch_while")&&S.updateWatchWhileScrollThreshold_()})};
Y?u():_.$I(_.wc,u)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(Y){this.set("data.survey",Y.detail)},
onYtShowSurveyCommand_:function(Y){this.set("data.survey",_.g(Y,_.XG_).survey)},
onDownloadedVideoDeleted:function(Y){var S=this,P,u;return _.B(function(W){if(W.nextAddress==1){if(!S.active||(P=S.playerData)==null||!P.offlineState||S.videoId!==Y)return W.return();(u=S.player)==null||u.stopVideo();_.nd().navigatingAwayFromWatchDeletedVideo=!0;_.m4(_.L7u,S.hostElement);return _.q(W,_.nd().navigationFinishPromise,2)}_.nd().navigatingAwayFromWatchDeletedVideo=!1;_.Yt(W)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var Y;this.theater?Y=_.wx(.5625*this.windowSize_.width,480,this.windowSize_.height-185):Y=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==Y&&(this.watchWhileScrollThreshold_=Y,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var Y=_.I(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&Y){var S=this.windowSize_.height>=624,P=this.active?this.getScrollTop():0;!Y.active&&S&&P>=this.watchWhileScrollThreshold_?(Y.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):Y.active&&(!S||P<this.watchWhileScrollThreshold_&&!_.SR())&&(Y.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var Y=_.I(this.hostElement).querySelector("#secondary-inner");if(Y){var S=_.I(this.hostElement).querySelector("#below"),P=_.I(this.hostElement).querySelector("#secondary"),u=_.I(this.hostElement).querySelector("#comments");u&&P&&S&&(this.defaultTwoColumnLayout?(Y.appendChild(u),P.appendChild(Y)):(S.appendChild(u),_.Fu(S,Y)))}}},
isTwoColumnsChanged_:function(Y,S){if(Y!==!0||S!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(Y=_.I(this.hostElement).querySelector("#secondary-inner"))){S=_.I(this.hostElement).querySelector("#below");var P=_.I(this.hostElement).querySelector("#secondary"),u=_.I(this.hostElement).querySelector("#comments");u&&P&&S&&(this.isTwoColumns_?(Y.appendChild(u),P.appendChild(Y)):(S.appendChild(u),_.Fu(S,Y)))}}else{Y=!_.f("live_chat_over_engagement_panels");S=_.I(this.hostElement).querySelector("#chat-container");
P=_.I(this.hostElement).querySelector("#panels");var W=_.I(this.hostElement).querySelector("#alerts");u=_.I(this.hostElement).querySelector("#playlist");var m=_.I(this.hostElement).querySelector("#related"),J=_.I(this.hostElement).querySelector("#donation-shelf"),c=_.I(this.hostElement).querySelector("#comments");this.isTwoColumns_?(W=_.I(this.hostElement).querySelector("#secondary-inner"),Y&&W.appendChild(P),W.appendChild(u),_.f("web_watch_theater_chat")||W.appendChild(S),Y||W.appendChild(P),W.appendChild(J),
W.appendChild(m)):(Y&&_.pX(P,W),_.pX(u,W),_.f("web_watch_theater_chat")||_.pX(S,W),Y||_.pX(P,W),_.pX(J,W),c&&_.pX(m,c));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.f("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.f("web_watch_theater_chat")){var Y=_.I(this.hostElement).querySelector("#chat-container"),S=this.theater&&!this.fullscreen||_.f("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&S?_.f("web_watch_theater_chat_beside_player")?(S=_.I(this.hostElement).querySelector("#panels-full-bleed-container"),(Y==null?void 0:Y.parentElement)!==S&&S.append(Y),this.panelsBesidePlayer=!0):
_.f("web_watch_theater_fixed_chat")&&(S=_.I(this.hostElement).querySelector("#columns"),(Y==null?void 0:Y.parentElement)!==S&&S.append(Y),this.fixedPanels=!0):(_.f("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.f("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),S=_.I(this.hostElement).querySelector("#playlist"),Y&&S?_.Fs(Y,S):_.sf(new _.$2("Missing element when updating chat location",{"chatContainer defined":!!Y,"playlist defined":!!S})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(Y,S){return _.f("sw_metadata_vis_toggle_ks")?!0:!!Y||!!S},
computeForceDarkPanelTheme:function(Y){return _.f("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&Y:!1},
safeUpdateStyles:function(Y){try{_.PZ(this.hostElement,Y)}catch(S){_.sf(S)}},
videoHeightToWidthRatioChanged_:function(Y,S){S&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(Y){this.videoHeightToWidthRatio_=1/Y},
computeIsVerticalVideo_:function(Y){return Y>=1},
computeIsFourThreeToSixteenNineVideo_:function(Y){return Y<=.7501&&Y>=.5624},
computeIsExtraWideVideo_:function(Y){return Y<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Un(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Un(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.M91(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(Y){var S=_.u4(Y)||0;_.PU(Y,S+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var Y=_.u4("yt-fullerscreen-edu-button-click-count")||0,S=_.u4("yt-fullerscreen-edu-button-shown-count")||0,P=_.z_("external_fullscreen_button_shown_threshold"),u=Y>=_.z_("external_fullscreen_button_click_threshold")||S>=P;_.Un(this).getPlayerPromise().then(function(W){W.updateFullerscreenEduButtonSubtleModeState(u)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(Y,S){return S},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.E().resolve(_.D3).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var Y=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.wc.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.wc.addLowPriorityJob(function(){Y.fullHeightPanelPositionUpdateJobId=0;var S=_.I(Y.hostElement).querySelector("#secondary"),P=_.I(Y.hostElement).querySelector("#fixed-secondary");S=S.getBoundingClientRect();var u=S.width;Y.swatcherooSqueezeback&&
(u+=_.sN);if(Y.swatcherooSqueezeback){var W=_.I(Y.hostElement).querySelector("#squeezeback-constraining-container");W.style.width=u+"px";W.style.flex="0 0 "+u+"px"}P.style.width=u+"px";P.style.left=S.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var Y=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.wc.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.wc.addLowPriorityJob(function(){Y.panelMaxHeightUpdateJob_=0;var S;!Y.isTwoColumns_||Y.theater||Y.fullscreen?S=460:S=Y.calculateNormalPlayerSize_().height;var P=S+"px";_.f("live_chat_taller_height")&&!Y.theater&&(P="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.f("live_chat_medium_height")&&!Y.theater&&(P="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.f("live_chat_scaled_height")&&!Y.theater&&(P="calc(100vh - var(--ytd-toolbar-height) - 238px)");Y.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":S+"px","--ytd-watch-flexy-chat-max-height":P,"--ytd-watch-flexy-structured-description-max-height":S+"px","--ytd-watch-flexy-comments-panel-max-height":S+"px","--ytd-comments-engagement-panel-content-height":S+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var Y=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.f("web_watch_flexy_adjust_sidebar_width"))&&!_.f("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.wc.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.wc.addLowPriorityJob(function(){Y.panelMaxHeightUpdateJob_=0;if(Y.isTwoColumns_){var S=_.amZ(Y.windowSize_,Y.calculateNormalPlayerSize_().width);S!==Y.currentSidebarWidth&&(Y.currentSidebarWidth=
S,Y.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":S+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(Y){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",Y)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.cu(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(Y){var S=_.I(this.hostElement).querySelector("#engagement-panel-scrim");Y?S.addEventListener("tap",_.up(this,this.onEngagementPanelScrimClick_)):S.removeEventListener("tap",_.up(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(Y){if(this.hostElement.contains(Y)&&!this.scrollToAnimation_.isAnimating()){var S=Y.offsetTop-24;Y=Y.offsetTop+Y.offsetHeight+24;var P=this.getPageScrollingElement(),u=this.getScrollTop(),W=u+P.clientHeight-56;if(S<u+56)S-=56;else if(Y>W)S=Y-P.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,S),500)}},
onYtSignalActionScrollToComments:function(){var Y=this.hostElement.querySelector("#comments");if(Y&&!this.scrollToAnimation_.isAnimating()){Y=Y.offsetTop-56-24;if(_.f("kevlar_comment_teaser_scroll_to_midpoint")&&(Y-=_.Pk().height/3,Y<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Y),500)}},
onYtEngagementPanelVisibleChanged:function(Y,S,P){this.active&&this.trackEngagementPanelVisibility&&!_.bvB.includes(P)&&(S==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(P),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.jR(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),S!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&S!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(P),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(Y){return Y?"":"watch-active-metadata"},
computeNewMetadataClass:function(Y){return Y?"watch-active-metadata":""},
computeFullBleedPlayer:function(Y,S){return Y||S},
computeDefaultLayout:function(Y){return!Y},
computeDefaultTwoColumnLayout:function(Y,S){return!Y&&S},
updatePanelsLocation:function(){if(_.f("web_watch_enable_fs_squeezeback_panels")){var Y=_.I(this.hostElement).querySelector("#below"),S=_.I(this.hostElement).querySelector("#panels"),P=_.I(this.hostElement).querySelector("#panels-full-bleed-container"),u=_.I(this.hostElement).querySelector("#secondary-inner");this.fullscreen?P.appendChild(S):this.isTwoColumns_?_.Fu(u,S):Y.appendChild(S)}},
swatcherooUpdatePanelsLocation:function(Y,S,P,u,W,m){if(this.is==="ytd-watch-grid"){S=Y&&!S;this.swatcherooSplitScroll&&(S?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));P=_.I(this.hostElement).querySelector("#panels");var J=_.I(this.hostElement).querySelector("#playlist"),c=_.I(this.hostElement).querySelector("#fixed-secondary"),C=_.I(this.hostElement).querySelector("#fixed-below"),
x=_.I(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),b=_.I(this.hostElement).querySelector("#chat-container");m&&(Y?c.appendChild(P):C.appendChild(P));W?Y?c.appendChild(b):C.appendChild(b):_.Fs(b,x);u?Y?c.appendChild(J):C.appendChild(J):_.Fs(J,x);this.swatcherooSplitScroll&&(Y=_.I(this.hostElement).querySelector("#secondary"),u=_.I(this.hostElement).querySelector("#columns"),W=_.I(this.hostElement).querySelector("#fixed-columns-secondary"),S?W.appendChild(Y):
u.appendChild(Y))}},
computeMetadataSkinnyMode:function(Y,S,P){return this.is!=="ytd-watch-grid"?!1:Y?P:S},
computeWatchWhilePanelsActive:function(Y,S){return Y||S},
computeNoBorderOnChat:function(Y){return _.f("web_watch_theater_chat_no_border")&&Y},
computeLiveChatPresentAndExpanded:function(Y,S){return Y&&!S},
computePanelExpanded:function(Y,S,P){return Y||S||P},
computeSqueezeback:function(Y,S){if(_.f("web_watch_enable_fs_squeezeback_panels"))return Y&&S},
computeSwatcherooSqueezeback:function(Y,S,P){return this.is!=="ytd-watch-grid"||_.f("ww_squeezeback_killswitch")?!1:Y&&S&&P},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(Y){_.Un(this).getPlayerPromise().then(function(S){var P;(P=S.changeMarkerVisibility)==null||P.call(S,_.g(Y,_.U0).isVisible||!1,_.g(Y,_.U0).entityKeys||[],_.g(Y,_.U0).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(Y){this.liveChatCollapsed=Y.detail;_.Na().dispatch(_.dxI(Y.detail))},
onSetPlaylistCollapsed:function(Y){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!Y)},
provideRenderingData:function(Y,S){switch(Y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=S;break;case "PRIMARY_INFO":_.f("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=S);this.videoPrimaryInfoRendererValue=S==null?void 0:S.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.f("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=S);this.videoSecondaryInfoRendererValue=S==null?void 0:S.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
S;break;case "CLARIFICATION":this.clarifyBoxValue=S;break;case "LIVE_CHAT":this.conversationBar=S;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=S;break;case "PLAYLIST":this.externalPlaylistData_=S!=null?S:{};break;case "MERCH_SHELF":this.merchShelfValue=S==null?void 0:S.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=S;break;case "TICKET_SHELF":this.ticket=S;break;case "OFFER_MODULE":this.offerModule=S;break;case "LIMITED_STATE":this.limitedStateValue=
S;break;case "DONATION_SHELF":this.donation=S;break;case "ALERTS":this.alertsValue=S;break;case "COMMENTS":this.comments=S;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=S;break;case "ENGAGEMENT_PANELS":this.engagementPanels=S;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=S;break;case "RICH_GRID_RENDERER":this.richGridRendererData=S;break;case "EXPANDABLE_METADATA":this.expandableMetadata=S;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
S}},
toggleCinematicsActive:function(Y){this.cinematicsActive=Y},
isMiniplayerActive:function(){return _.E().resolve(_.l1).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var mYd;_.zaj=function(Y){return Y.shorts.isShortsActive};
_.n2d=function(Y){return Y.findIndex(function(S){return mYd.indexOf(S.tagName)>-1})>-1};
_.j46=function(Y){return _.WT({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:Y}})};
_.Jc1=function(){var Y=_.E().resolve(_.Nn);_.g9u(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(Y.isFullscreenEnabled()?_.Pu(document.documentElement):_.Olh(document.documentElement))};
mYd=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.k4=new Map;_.k4.set(32,59972);_.k4.set(27,50765);_.k4.set(70,60102);_.k4.set(76,60221);_.k4.set(77,60222);_.k4.set(74,60223);_.k4.set(84,60224);_.k4.set(38,61941);_.k4.set(40,61942);_.k4.set(73,62521);_.k4.set(67,62522);_.k4.set(80,63390);_.k4.set(78,63397);_.k4.set(75,59972);_.k4.set(188,63385);_.k4.set(190,63384);_.k4.set(36,63387);
_.k4.set(35,63386);_.k4.set(37,63388);_.k4.set(39,63389);_.k4.set(79,63423);_.k4.set(87,63424);_.k4.set(107,63426);_.k4.set(109,63425);_.k4.set(65,63428);_.k4.set(83,63430);_.k4.set(68,63429);_.k4.set(221,63431);_.k4.set(219,63432);_.k4.set(97,63439);_.k4.set(98,63440);_.k4.set(99,63441);_.k4.set(100,63442);_.k4.set(101,63443);_.k4.set(102,63444);_.k4.set(103,63445);_.k4.set(104,63446);_.k4.set(105,63447);_.M9=new Map;_.M9.set(80,63390);_.M9.set(78,63397);_.M9.set(188,63400);_.M9.set(190,63401);
_.M9.set(191,60765);_.M9.set(13,247917);_.yC=new Map;_.N9=new Map;
}catch(e){_._DumpException(e)}
try{
var qa_,b7I,TQX,KcY;_.JsB=function(Y){return Y.ui.guideIsVisibleButNotPersistent};
_.BQd=function(Y){return Y.ui.tabGesturesIsActive};
_.csZ=function(){var Y=_.mG("service_worker_scope");try{return navigator.serviceWorker.getRegistration(Y)}catch(S){return Promise.reject(S)}};
_.C0o=function(Y){return!(!Y||!Y.pushManager)};
qa_=function(){return _.csZ().then(_.C0o).catch(function(){return!1})};
_.RA5=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?qa_():Promise.resolve(!1)};
_.xg6=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
b7I=function(){var Y,S,P;return _.B(function(u){switch(u.nextAddress){case 1:return _.q(u,_.bA.getInstance(),2);case 2:Y=u.yieldResult;if(!Y){S=void 0;u.jumpTo(3);break}return _.q(u,Y.get("lmqf"),4);case 4:S=u.yieldResult;case 3:switch((P=S)||(P="SD"),P){case "HD":return u.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return u.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return u.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return u.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return u.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
TQX=function(Y){var S,P,u;return _.B(function(W){if(W.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]){var m=window.localStorage["yt-player-av1-pref"];m=m==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":m==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else m="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(S=Y===m)return W.jumpTo(2);u=P=Y;return _.q(W,b7I(),3)}W.nextAddress!=2&&(S=u===W.yieldResult);return W.return(S)})};var EtB;var fDd=_.KD.IronButtonState,gtB=(0,_.xf)(HTMLElement);
_.Kc({_template:function(){if(EtB!==void 0)return EtB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;KcY===void 0&&(KcY=document.createElement("template"));var u=KcY;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return EtB=Y},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[fDd,_.br,_.Em,_.$1],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(Y){var S=(0,_.bg)(this);S.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:Y});
S.shadowRoot.appendChild(Y);return gtB.prototype._attachDom.call(this,Y)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var Y=this.contentElement;Y&&Y.selectedItem&&this._setSelectedItem(Y.selectedItem)},
get contentElement(){for(var Y=_.G5(this.$.content).getDistributedNodes(),S=0,P=Y.length;S<P;S++)if(Y[S].nodeType===Node.ELEMENT_NODE)return Y[S]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(Y){this._setSelectedItem(Y.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(Y){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y)===this&&this.open()},
_selectedItemChanged:function(Y){var S="";Y?S=Y.label||Y.getAttribute("label")||Y.textContent.trim():S="";this.value=S;this._setSelectedItemLabel(S)},
_computeMenuVerticalOffset:function(Y,S){return S?S:Y?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var Y=this.opened?"true":"false",S=this.contentElement;S&&S.setAttribute("aria-expanded",Y)}});_.FS=new _.N("navigateAction");var $gu=new _.N("formRenderer");var sA=function(){var Y=_.JI.apply(this,arguments)||this;Y.showInput=!1;return Y};
_.r(sA,_.JI);_.z=sA.prototype;_.z.detached=function(){this.showInput&&window.removeEventListener("click",_.up(this,this.closeOnOutsideClick_))};
_.z.stopPropagation_=function(Y){this.showInput&&Y.stopPropagation()};
_.z.closeOnOutsideClick_=function(Y){this.closeOnOutsideClickCondition(Y)&&(this.showInput=!1,window.removeEventListener("click",_.up(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.z.closeOnOutsideClickCondition=function(){return!0};
_.z.closeOnOutsideClickHandler=function(){};
_.z.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.up(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.z.openOnClickHandler=function(){};
_.z.showInputChanged=function(){};
_.z.setShowInput=function(Y){this.showInput=Y};
sA.prototype.setShowInput=sA.prototype.setShowInput;sA.prototype.showInputChanged=sA.prototype.showInputChanged;sA.prototype.openOnClickHandler=sA.prototype.openOnClickHandler;sA.prototype.openOnClick_=sA.prototype.openOnClick_;sA.prototype.closeOnOutsideClickHandler=sA.prototype.closeOnOutsideClickHandler;sA.prototype.closeOnOutsideClickCondition=sA.prototype.closeOnOutsideClickCondition;sA.prototype.closeOnOutsideClick_=sA.prototype.closeOnOutsideClick_;sA.prototype.stopPropagation_=sA.prototype.stopPropagation_;
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],sA.prototype,"showInput",void 0);_.Q([_.WZ("click"),_.WZ("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],sA.prototype,"stopPropagation_",null);_.Q([_.zY("showInput"),_.k("design:type",Function),_.k("design:paramtypes",[Boolean]),_.k("design:returntype")],sA.prototype,"showInputChanged",null);sA=_.Q([_.BZ()],sA);_.rsd=[sA.prototype];var GqX;var hAI;var dW=function(){return _.Z.apply(this,arguments)||this};
_.r(dW,_.Z);_.z=dW.prototype;_.z.computePreselectedOption=function(Y,S){return S===this.itemSelected_?Y:void 0};
_.z.dataChanged_=function(){var Y=this;this.preselectedSubreason=this.itemSelected_=-1;var S;(S=this.data)!=null&&S.key&&_.ky(this,function(){var P,u=Number((P=Y.data)==null?void 0:P.key);!Number.isNaN(u)&&(Y.itemSelected_=u,P=(P=(Y.data.items||[])[u])&&P.optionSelectableItemRenderer&&P.optionSelectableItemRenderer.preselectedIndex)&&(Y.preselectedSubreason=P)})};
_.z.isSubReasonHidden_=function(Y,S){return Y!=S};
_.z.onTopItemSelected_=function(Y,S){for(var P=_.I(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),u=0,W=P.length;u<W;u++)P[u].select(0);_.nb(this.hostElement,"yt-report-form-update",[S.item.value]);Y.stopPropagation()};
_.z.onItemSelected_=function(Y,S){_.nb(this.hostElement,"yt-report-form-update",[S.item.value]);Y.stopPropagation()};
_.z.getItem_=function(Y){return Y.serviceItem?Y.serviceItem:Y.navigationItem?Y.navigationItem:Y.optionSelectableItemRenderer?Y.optionSelectableItemRenderer:null};
_.z.computeText_=function(Y){return(Y=this.getItem_(Y))?this.ytRendererBehavior.getSimpleString(Y.text):null};
_.z.validate=function(){return this.itemSelected_!==-1};
_.z.computeAriaLabel_=function(Y){var S=_.Ma(Y.text);(Y=Y.accessibility&&Y.accessibility.accessibilityData&&Y.accessibility.accessibilityData.label)&&(S+=". "+Y);return S};
_.z.computeItemSelected_=function(Y){return Y};
_.z.preventSelection_=function(Y){Y.stopPropagation();this.tooltipTapped=!0};
_.z.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.z.updateItemSelectedFromBinding=function(Y){this.itemSelected_=Y.detail.value};
_.z.save=function(){var Y;this.validate()&&(Y=this.data)!=null&&Y.items&&(Y=this.data.items[this.itemSelected_],Y!=null&&Y.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(Y.optionSelectableItemRenderer.submitEndpoint)||_.Bu(this.hostElement,[Y.optionSelectableItemRenderer.submitEndpoint])))};
dW.prototype.onPaperRippleTransitionEnd_=dW.prototype.onPaperRippleTransitionEnd_;dW.prototype.dataChanged_=dW.prototype.dataChanged_;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],dW.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],dW.prototype,"data",void 0);_.Q([_.X({value:-1}),_.k("design:type",Number)],dW.prototype,"itemSelected_",void 0);
_.Q([_.X({computed:"computeItemSelected_(itemSelected_)"}),_.k("design:type",Number)],dW.prototype,"value",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],dW.prototype,"restoreFocusOnClose",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],dW.prototype,"tooltipTapped",void 0);_.Q([_.X({value:-1}),_.k("design:type",Number)],dW.prototype,"preselectedSubreason",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dW.prototype,"dataChanged_",null);_.Q([_.WZ("transitionend"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dW.prototype,"onPaperRippleTransitionEnd_",null);dW=_.Q([_.r0({is:"yt-options-renderer",disableElementRegistration:!0})],dW);
_.A(dW,"yt-options-renderer",function(){if(hAI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;GqX===void 0&&(GqX=document.createElement("template"));var u=GqX;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);hAI=Y}Y=hAI;return Y},{mode:2});var vtu;var Dgu;var IDY;var aD_;var Lc1;var wzZ;var l5=function(){return _.Z.apply(this,arguments)||this};
_.r(l5,_.Z);l5.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
l5.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
l5.prototype.onTap=function(Y){if(this.hostElement.classList.contains("selected")||_.J6(this.hostElement,"yt-share-panel-can-select-contact-action"))Y&&Y.detail&&(Y.detail.x||Y.detail.y)&&_.I(this.hostElement).querySelector("#target").blur(),(Y=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),Y={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:Y?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.nb(this.hostElement,"yt-share-panel-select-contact-action",[Y])};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.Q([_.X({observer:"onDataChanged"}),_.k("design:type",Object)],l5.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.k("design:type",String)],l5.prototype,"componentTitle",void 0);_.Q([_.nc("#thumbnail"),_.k("design:type",Object)],l5.prototype,"thumbnail",void 0);l5=_.Q([_.r0({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],l5);
_.A(l5,"yt-enrolled-contact-renderer",function(){if(wzZ===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Lc1===void 0&&(Lc1=document.createElement("template"));var u=Lc1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);wzZ=Y}Y=wzZ;return Y},{mode:2});var pzY;var Fc1;var XS=function(){return _.Z.apply(this,arguments)||this};
_.r(XS,_.Z);XS.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
XS.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
XS.prototype.onTap=function(Y){if(this.hostElement.classList.contains("selected")||_.J6(this.hostElement,"yt-share-panel-can-select-contact-action"))Y&&Y.detail&&(Y.detail.x||Y.detail.y)&&_.I(this.hostElement).querySelector("#target").blur(),(Y=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),Y={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:Y?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.nb(this.hostElement,"yt-share-panel-select-contact-action",[Y])};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.Q([_.X({observer:"onDataChanged"}),_.k("design:type",Object)],XS.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.k("design:type",String)],XS.prototype,"componentTitle",void 0);_.Q([_.nc("#thumbnail"),_.k("design:type",Object)],XS.prototype,"thumbnail",void 0);XS=_.Q([_.r0({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],XS);
_.A(XS,"yt-suggested-contact-renderer",function(){if(Fc1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;pzY===void 0&&(pzY=document.createElement("template"));var u=pzY;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Fc1=Y}Y=Fc1;return Y},{mode:2});var Zz=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-share-panel-reset-action":"onReset"};return Y};
_.r(Zz,_.Z);Zz.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"}}}}}};
Zz.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.nb(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Zz.prototype.onReset=function(){for(var Y=_.I(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),S=Y.length-1;S>=0;S--)Y[S].classList.toggle("selected")};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Zz.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Zz.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X({observer:"onDataChanged"}),_.k("design:type",Object)],Zz.prototype,"data",void 0);
Zz=_.Q([_.r0({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Zz);
_.A(Zz,"yt-contact-section-renderer",function(){if(aD_===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;IDY===void 0&&(IDY=document.createElement("template"));var u=IDY;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);aD_=Y}Y=aD_;return Y},{mode:2});var i5=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return Y};
_.r(i5,_.Z);_.z=i5.prototype;_.z.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"}}}};
_.z.onYtRefreshFormCommand=function(Y){var S;(Y=_.g((S=_.g(Y,_.L0m))==null?void 0:S.formRenderer,$gu))&&this.set("data",Y)};
_.z.reset=function(){var Y=_.I(this.hostElement).querySelector("#fields").children;Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())S=S.value,S.reset&&S.reset()};
_.z.getForm=function(){var Y={},S=_.I(this.hostElement).querySelector("#fields").children;S=_.n(S);for(var P=S.next();!P.done;P=S.next()){P=P.value;if(!P.validate())return null;Y[P.data.key]=P.value}return Y};
_.z.submitFormFields=function(){if(this.fields)for(var Y=_.n(this.fields),S=Y.next();!S.done;S=Y.next())S=S.value,S.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?S.save():S.nodeName==="YT-OPTIONS-RENDERER"&&S.save()};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],i5.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],i5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],i5.prototype,"data",void 0);_.Q([_.jD("#fields > *"),_.k("design:type",Array)],i5.prototype,"fields",void 0);
i5=_.Q([_.r0({is:"yt-form-renderer",disableElementRegistration:!0})],i5);
_.A(i5,"yt-form-renderer",function(){if(Dgu===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;vtu===void 0&&(vtu=document.createElement("template"));var u=vtu;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Dgu=Y}Y=Dgu;return Y},{mode:2});var sDj;var og=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return Y};
_.r(og,_.Z);og.prototype.onCheckboxChange=function(Y){this.data&&(Y=(this.checked=_.oK(Y).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}})};
og.prototype.handleUpdateCheckboxCommand=function(Y){(Y=_.g(Y,_.k26))&&this.data&&this.data.id===Y.id&&(this.set("data.disabled",Y.disabled),this.set("data.title",Y.title))};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],og.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],og.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],og.prototype,"checked",void 0);og=_.Q([_.t({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],og);
_.A(og,"ytd-settings-checkbox-renderer",function(){if(sDj!==void 0)return sDj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return sDj=Y},{mode:1});var dgd;var tQ=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return Y};
_.r(tQ,_.Z);tQ.prototype.dataChanged=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return Y.radio.removeAttribute("checked"),!Y.data||!Y.data.id||Y.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.xg6()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(S=Y.data&&Y.data.id)?_.q(P,TQX(Y.data.id),4):P.jumpTo(3):(Y.set("data.hidden",!0),P.jumpTo(0));P.nextAddress!=3&&(S=P.yieldResult);S&&_.nb(Y.hostElement,"yt-select-settings-radio-option",[Y.data.id]);_.Yt(P)})};
tQ.prototype.onButtonChanged=function(Y){_.oK(Y).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.E().resolve(_.uY).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.nb(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
tQ.prototype.onSelectOption=function(Y){this.data&&this.data.id&&(this.data.id===Y?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
tQ.prototype.dataChanged=tQ.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],tQ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.nc("#radio"),_.k("design:type",Object)],tQ.prototype,"radio",void 0);_.Q([_.X(),_.k("design:type",Object)],tQ.prototype,"data",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],tQ.prototype,"dataChanged",null);tQ=_.Q([_.t({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],tQ);
_.A(tQ,"ytd-settings-radio-option-renderer",function(){if(dgd!==void 0)return dgd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return dgd=Y},{mode:1});var lDo;var AQ=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return Y};
_.r(AQ,_.Z);
AQ.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"}}}};
AQ.prototype.handleUpdateTextCommand=function(Y){(Y=_.g(Y,_.Mms))&&this.data&&this.data.id===Y.id&&this.set("data",Y)};
AQ.prototype.handleUpdateConnectedAppRendererCommand=function(Y){if(_.g(Y,_.HX_)&&this.data){var S,P;if(Y=(S=_.g(Y,_.HX_))==null?void 0:(P=S.newConnectedAppRenderer)==null?void 0:P.connectedAppRenderer)this.data=Y}};
AQ.prototype.computeConnectedAppStyle=function(Y){return Y.style?Y.style.toLowerCase().replace(/_/g,"-"):""};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],AQ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],AQ.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.k("design:type",String)],AQ.prototype,"connectedAppStyle",void 0);AQ=_.Q([_.t({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],AQ);
_.A(AQ,"ytd-connected-app-renderer",function(){if(lDo!==void 0)return lDo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return lDo=Y},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.r7("iuT5Oc");

_.Gl();
}catch(e){_._DumpException(e)}
try{
_.r7("L3n37");
var m_j=_.TI(115994),n75=_.TI(115993),jZB=function(Y,S,P){var u=this;var W=P.dragDownAction;this.layer=0;this.JSC$20334_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return u.dragDownAction()}}}};
this.JSC$20334_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return u.dragDownAction()}}}};
this.fullscreen=!1;var m=_.BF();_.Sa(m,m_j,this.layer);_.Sa(m,n75,this.layer);this.dragDownAction=function(){W();_.wL(m,{visualElement:u.fullscreen?m_j:n75})};
this.gesture=new _.WP(Y,S,this.JSC$20334_watchConfig,"pandown");this.attach()};
jZB.prototype.attach=function(){this.gesture.attach()};
jZB.prototype.detach=function(){this.gesture.detach()};
jZB.prototype.update=function(Y){this.fullscreen=Y;this.gesture.config=Y?this.JSC$20334_watchFullScreenConfig:this.JSC$20334_watchConfig};var Jbo={},BJ1=["learning-journey-engagement-panel","PAyouchat"];
Jbo.YtdLearningJourneyWatchBehavior=[_.e.YtRendererBehavior,_.da.YtPlayerListenerBehavior,_.om.YtRendererstamperBehavior,_.tD.YtActionHandlerBehavior,_.gn.YtPageBehavior,_.eo.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},hasLearningJourneyPanels:{type:Boolean,reflectToAttribute:!0,computed:"getHasLearningJourneyPanels(learningJourneyEngagementPanels,hasLearningJourneyPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},
infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},
playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z4("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.f("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 _.Z4("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 _.f("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.f("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},richItemMinWidth:{type:Number,value:function(){return _.z_("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.z_("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!_.f("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.f("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 _.f("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.f("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_rounded_player_large")||_.f("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.f("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.f("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.f("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.f("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.f("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var Y={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",
mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.vn(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.vn(["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"||_.f("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(Y.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},Y.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):_.f("web_watch_inject_placeholder_panels")?Y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.f("kevlar_use_engagement_panel_management_component")||(Y["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}):(Y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},Y.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return Y},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var Y=this;this.watchController=void 0;this.pageDisposeJobs=[function(){Y.showMetadataPlaceholder_()},
function(){_.f("web_watch_dont_clear_comments")||Y.clearComments_()},
function(){Y.clearPlayerAds_()},
function(){Y.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.f("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.f("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.ZYu(function(){return _.Un(Y)},this.hostElement);
this.pageDisposeJobs.push(function(){Y.youThereManager_.reset()});
_.f("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){Y.resetFullerscreenEduButtonForNewPlayback_()}));
_.f("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.PY;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;_.f("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.f("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));_.f("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.up(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(Y){Y&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:Y}),Y.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(Y){_.f("kevlar_watch_flexy_theater_manager")&&(this.theater=Y,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.f("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(Y){!_.f("kevlar_watch_while_v2")&&!_.f("web_watch_pip")||Y||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(Y){this.active!==void 0&&(this.fullscreen=Y,_.f("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(Y){this.active!==void 0&&(_.ms(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.f("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(Y>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(Y){this.initCsi_();this.updatePageData_(Y)},
updatePageData_:function(Y){var S=this;if(Y)if(this.data===Y){this.onPageLoadWithSameData_();var P;(P=this.watchController)==null||_.i$(P,this.data)}else this.data=Y;this.playlist&&_.wP({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Fk("nw");this.loading=!1;_.hp(_.wc,function(){S.initDclkstatus_();var u,W=((u=S.player)==null?void 0:u.getVideoData().cpn)||"";_.r0c(function(m,J){_.PY_(m,J,W)})})},
onPageLoadWithSameData_:function(){_.f("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var Y=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!Y);this.set("loadingData.playlistLoading",Y&&Y!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),Y=this.watchNextSkeletonEl_.firstElementChild;Y;)Y.classList.remove("hidden"),Y=Y.nextElementSibling;if(_.f("kevlar_watch_frame0_loading_state")){var S,P,u;Y=(S=this.loadingData)==null?void 0:(P=S.endpoint)==null?void 0:(u=P.watchEndpoint)==null?void 0:u.videoId;var W;Y&&(W="https://i.ytimg.com/vi/"+Y+"/frame0.jpg");_.I(this.hostElement).querySelector("#player").style.backgroundImage=W?"url("+W+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var Y=_.I(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&Y&&(Y.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var S,P;(P=(S=this.watchMetadata).updateSentimentBarWidth)==
null||P.call(S);var u,W;(W=(u=this.watchMetadata).resize)==null||W.call(u)}_.f("kevlar_watch_frame0_loading_state")&&(_.I(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(Y){var S=_.I(this.hostElement).querySelector(Y);S?_.uj(S,!1):_.sf(new _.$2("Overscroll monitor not found for component: ",Y))},
removeSplitScrollMouseTrap:function(Y){var S=_.I(this.hostElement).querySelector(Y);S?_.zd(S):_.sf(new _.$2("Disposal component for  overscroll monitoring not found: ",Y))},
onLoadingChanged_:function(Y){Y?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(Y){var S=this;Y?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.wc.addLowPriorityJob(function(){S.onWindowResized_(_.x9(!0))})},
updateTheaterModeState_:function(Y){if(!_.f("kevlar_watch_flexy_theater_manager")){Y=Y||this.fullWindowMode_;if(this.theater!==void 0||Y)this.theater=Y;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();Y&&_.rUo()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var Y=this.theater;_.f("external_fullscreen")&&this.fullscreen&&(Y=!0);Y=Y?_.I(this.hostElement).querySelector("#player-full-bleed-container"):_.I(this.hostElement).querySelector("#player-container-inner");var S=this.getPlayerContainer(),P=_.f("kevlar_watch_while_v2")||_.f("web_watch_pip");S.parentElement!==Y&&(P&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Un(this).appendTo(Y,S),Y.appendChild(_.I(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var Y=this;return _.B(function(S){if(S.nextAddress==1)return _.q(S,_.E().resolve(_.l1).deactivate(),2);Y.updatePlayerLocation();_.Yt(S)})},
updateCinematicsLocation:function(){var Y=this.getElement("CINEMATICS");if(Y){var S=this.getCinematicsLocationContainer();Y.parentElement!==S&&S.appendChild(Y);var P;(P=this.watchController)==null||_.E$X(P)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.I(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.I(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(Y,S){var P=document.documentElement.hasAttribute("dark"),u=P&&_.f("web_cinematic_theater_mode"),W=P&&_.f("web_cinematic_fullscreen");P=!P&&this.cinematicLightTheme;return Y&&u||S&&W||(S||Y)&&P},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var Y=this,S;(S=this.watchController)==null||_.i$(S,this.data);_.f("kevlar_watch_flexy_comments_manager")||this.initComments_();_.f("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.E().resolve(_.D3).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,_.f("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.wc.addLowPriorityJob(function(){_.jR(Y.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.f("web_watch_start_chat_in_theater_mode")){var P,u,W;if((P=this.data)==null?0:(u=P.contents)==null?0:(W=u.twoColumnWatchNextResults)==null?0:W.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var m,J;((m=this.data)==null?0:(J=m.contents)==null?0:J.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(Y){var S;(S=this.watchController)==null||_.ZL(S,this.playerData);Y&&Y.playabilityStatus&&(S=this.isVideoPlayable_(Y.playabilityStatus,this.getPlayerOverlays_(this.data)),Y=this.isLiveStreamOffline_(Y.playabilityStatus),S&&!Y||_.ky(this,function(){_.Fk("pbu")}));
this.setPlayerAds_();_.jR(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(Y){_.Na().dispatch(_.gkX(this.active));Y?this.activate_():this.deactivate_()},
attached:function(){var Y=this;this.watchController=new _.X9(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.ZL(this.watchController,this.playerData);this.data&&_.i$(this.watchController,this.data);_.f("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var S=_.Un(this);_.f("kevlar_disable_prepare_player")||S.preparePlayer();
_.f("kevlar_watch_flexy_playlist_manager")||_.E().resolve(_.D3).setPlayer(S);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();S={"--ytd-watch-flexy-scrollbar-width":_.$0()+"px"};this.is==="ytd-watch-grid"&&(S["--ytd-watch-flexy-sidebar-width"]=_.Xu+"px",S["--ytd-watch-grid-horizontal-page-margins"]=_.sN+"px",S["--ytd-watch-grid-columns-top-margins"]=_.c1u+"px",S["--ytd-watch-grid-min-player-height-medium"]="360px");!_.z_("kv_pl_mx_sz_ks")&&_.z_("kevlar_watch_max_player_width")&&
(S["--ytd-watch-flexy-max-player-width-wide-screen"]=_.bL5+"px");_.z_("kevlar_watch_flexy_metadata_height")&&(S["--ytd-watch-flexy-space-below-player"]=_.TOd+"px");this.safeUpdateStyles(S);_.f("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new jZB(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return Y.onPlayerTouchPanDown_()}}));
_.f("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.I(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var Y=_.$0(),S=_.dJ+Y,P=S;this.fixedPanels&&(S+=_.Xu);var u=657+Y;Y=1327+Y;_.I(this.hostElement).querySelector("#two-column-query").query="(min-width: "+S+"px)";_.I(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(u+"px), (min-height: 630px) and (min-width: ")+(S+"px) and (max-width: ")+(Y+"px)");_.I(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(Y+"px)");_.I(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+P+"px)"},
calculateCurrentPlayerSize_:function(){var Y=_.I(this.hostElement).querySelector("#miniplayer-bar").firstChild;return Y&&Y.active||this.theater||_.f("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.SZ(NaN,NaN):_.AH(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.AH(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.oY(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var Y=this;this.onWindowResized_(_.x9());_.f("browse_skeleton_removal_on_watch_killswitch")||_.Z4("IS_SHELL_LOAD")&&_.RYd();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var S=_.Un(this);S.addEventListener("yt-player-updated",_.up(this,this.onPlayerUpdated_));S.getPlayerPromise().then(function(P){Y.playerApiReady_(P)});
_.f("kevlar_watch_flexy_playlist_manager")||(S=_.E().resolve(_.D3),_.f("kevlar_watch_observe_playlist_navigations_killswitch")&&S.addEventListener("yt-navigate",_.up(this,this.onYtNavigate_)),S.setPlaylistComponent(_.I(this.hostElement).querySelector("#playlist")),S.addEventListener("yt-playlist-data-updated",_.up(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.wc.addLowPriorityJob(function(){_.ms(Y.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Un(this).removeEventListener("yt-player-updated",_.up(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.f("kevlar_watch_flexy_playlist_manager")){var Y=_.E().resolve(_.D3);_.f("kevlar_watch_observe_playlist_navigations_killswitch")&&Y.removeEventListener("yt-navigate",_.up(this,this.onYtNavigate_));
Y.cancelVideoSkip();Y.removeEventListener("yt-playlist-data-updated",_.up(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.ms(this.hostElement,"yt-autonav-pause-player",!1);Y=_.SR();_.f("kevlar_exit_fullscreen_leaving_watch")&&Y&&_.Pu(Y)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(Y){this.player&&this.player.updateVideoData({rvs:Y.rvs})},
getPageContents:function(Y){return Y&&Y.contents&&Y.contents.twoColumnWatchNextResults&&Y.contents.twoColumnWatchNextResults.results&&Y.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(Y){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Y)},
onRetrieveLocation_:function(Y,S){S.hasComments?S.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):S.locationRetrieved("/related_ajax",void 0);Y.stopPropagation()},
onSubscriptionChanged_:function(Y,S){this.player&&(S?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.fv("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.I(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.I(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(Y){this.player=Y;this.setPlayerState(Y.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.f("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.f("kevlar_unified_player")||_.f("kevlar_player_new_bootstrap_adoption"))&&_.NF()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(Y,S){S=S===void 0?!0:S;_.SR()&&_.f("external_fullscreen")&&_.Pu(document.documentElement);this.theaterRequested_=Y;S&&_.Kz("wide",Y?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.f("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.nb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.ms(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(Y){_.d6(Y,typeof this.player),this.player&&_.d6(Y,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var Y;((Y=this.player)==null?0:Y.isFullscreen())?this.player.toggleFullscreen():_.nb(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(Y,S){return this.loading?S:!!Object.keys(Y).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(Y){if(Y){Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())S=S.value,S.youThereRenderer&&_.t9Y(this.youThereManager_,S.youThereRenderer)}},
setPlaylistData_:function(Y){return Y||{}},
userEngagementConfigDataChanged_:function(Y){if(Y)if(Y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var S=this.youThereManager_;_.uE()<Y.lowEngagementThresholdMs||_.koZ(S,!0)}else Y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.nb(this.hostElement,"yt-autonav-pause-user-engagement",[Y])},
isPlayerUnavailable_:function(Y,S,P){return!!Y&&!this.isVideoPlayable_(Y,P)&&!S},
getPlayerOverlays_:function(Y){return(Y==null?void 0:Y.playerOverlays)||null},
isVideoPlayable_:function(Y,S){if(!Y)return!1;var P=Y.status==="OK"||Y.status==="LIVE_STREAM_OFFLINE",u=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",Y)||this.get("errorScreen.ypcTrailerRenderer",Y);Y=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",Y);var W;S=S==null?void 0:(W=S.playerOverlayRenderer)==null?void 0:W.gatedActionsOverlayRenderer;return!!P||!!u||!!Y||!!S},
hasWatchNextResponseErrorRenderer:function(Y){var S=this.getPageContents(Y),P,u,W,m,J;return!(Y==null?0:(P=Y.contents)==null?0:(u=P.twoColumnWatchNextResults)==null?0:u.secondaryResults)&&!!((W=S[0])==null?0:(m=W.itemSectionRenderer)==null?0:(J=m.contents[0])==null?0:J.backgroundPromoRenderer)},
isLiveStreamOffline_:function(Y){return Y?Y.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(Y,S,P){var u=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",S),W=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];W=_.f("web_no_skip_video_on_verification_checks")?(Y==null?void 0:Y.status)&&W.includes(Y.status):Y&&Y.status==="AGE_CHECK_REQUIRED";var m=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",Y);m==void 0&&(m=!0);!P||this.isVideoPlayable_(Y,this.getPlayerOverlays_(S))||
u||W||!m||_.E().resolve(_.D3).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.wGI()},
onPlayerFeedbackStartRequest_:function(Y){_.nb(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:Y}])},
onPlayerFeedbackArticleRequest_:function(Y){_.nb(this.hostElement,"yt-help-dialog-requested",[Y])},
onPlayerYpcContentRequest_:function(){var Y,S,P,u,W,m,J,c,C=((Y=this.data)==null?NaN:(S=Y.contents)==null?NaN:(P=S.twoColumnWatchNextResults)==null?NaN:(u=P.secondaryResults)==null?NaN:(W=u.secondaryResults)==null?NaN:(m=W.offerModule)==null?NaN:(J=m.tvfilmOfferModuleRenderer)==null?NaN:(c=J.actionButtons)==null?NaN:c.length)-1;Y=[".offerButton.buttonRenderer.",".actionButtons."+(C>=0?C:0)+".buttonRenderer."];S=_.n(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(P=S.next();!P.done;P=S.next())for(P=P.value,u=_.n(Y),W=u.next();!W.done;W=u.next())if(W="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+P+W.value,W=this.get(W+"navigationEndpoint",this.data)||this.get(W+"serviceEndpoint",this.data)||this.get(W+"command",this.data)){_.m4(W,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(Y){_.ms(this.hostElement,"yt-autonav-pause-player",Y)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(Y){Y()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(Y){switch(Y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(Y){switch(Y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.ms(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(Y)},
setPlayerState:function(Y){_.Na().dispatch(_.pbU(Y))},
onPlayerSubscribe_:function(Y){_.nb(this.hostElement,"yt-player-subscribe",[Y])},
onPlayerUnsubscribe_:function(Y){_.nb(this.hostElement,"yt-player-unsubscribe",[Y])},
onPlayerAdYtShowToast_:function(Y){_.nb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:Y.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(Y){if(Y)return Y},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(Y){return!_.f("web_watch_move_summary_to_sd")&&!!Y},
computeWatchMetadataRefresh:function(){return _.f("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var Y,S,P,u;this.watchNextSecondaryResults=(Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:(P=S.twoColumnWatchNextResults)==null?void 0:(u=P.secondaryResults)==null?void 0:u.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.f("swatcheroo_pbs_load_grid")&&!_.f("swatcheroo_provide_all_data_on_scheduled_job")){_.wc.cancelJob(this.setRichGridJobId_);var Y,S,P,u,W,m,J;this.setRichGridRendererData((Y=this.data)==null?void 0:(S=Y.contents)==null?void 0:(P=S.twoColumnWatchNextResults)==null?void 0:(u=P.secondaryResults)==null?void 0:(W=u.secondaryResults)==null?void 0:(m=W.results)==null?void 0:(J=m[0])==null?
void 0:J.richGridRenderer)}},
setRichGridRendererData:function(Y){this.richGridRendererData=Y},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var Y,S=(Y=this.data)==null?void 0:Y.engagementPanels;if(S==null?0:S.length){Y=null;S=_.n(S);for(var P=S.next();!P.done;P=S.next()){P=P.value;var u=void 0;if(((u=P.engagementPanelSectionListRenderer)==null?void 0:u.targetId)==="engagement-panel-structured-description"){Y=P;break}}var W,m,J;Y=(W=Y)==null?void 0:(m=W.engagementPanelSectionListRenderer)==null?void 0:(J=m.content)==null?void 0:J.structuredDescriptionContentRenderer;if(Y==null?0:Y.items){W=
[];m=_.n(Y.items);for(J=m.next();!J.done;J=m.next()){J=J.value;if(!_.f("sd_horizontal_list_show_nav_killswitch")){var c=u=P=S=Y=void 0,C=void 0,x=(Y=J.horizontalCardListRenderer)==null?void 0:(S=Y.header)==null?void 0:(P=S.richListHeaderRenderer)==null?void 0:(u=P.navigationButton)==null?void 0:(c=u.buttonRenderer)==null?void 0:(C=c.command)==null?void 0:C.commandExecutorCommand;x&&x.commands&&(x.commands=x.commands.filter(function(b){return!_.g(b,_.Ir1)}))}J.expandableVideoDescriptionBodyRenderer||
J.videoDescriptionHeaderRenderer||W.push(J)}return{items:W}}}},
constructWarning_:function(Y){return{text:_.kW(Y),type:"WARNING"}},
isPlaShelfEnabled_:function(Y){if((this.get("adPlacements",Y)||[]).length)return!0;Y=this.get("playerAds",Y)||[];return!(!Y.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",Y[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var Y=this;_.ms(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var S=this.getScrollTop()>0;this.gestures_&&(S?this.gestures_.detach():this.gestures_.attach());S!==this.showFullerscreenEdu_&&_.f("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=S,_.Un(this).getPlayerPromise().then(function(P){P.updateFullerscreenEduButtonVisibility(Y.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.ms(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var Y=this;this.commentsReady=!1;_.wc.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.hp(_.wc,function(){Y.setComments_()},1E3)},
setComments_:function(){if(!_.f("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Fk("cmi");_.wc.cancelJob(this.setCommentsJobId_);var Y=this.getPageContents(this.data);if(Y&&Y.length){Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())if(S=S.value,this.get("itemSectionRenderer.sectionIdentifier",S)==="comment-item-section"){this.comments=S.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.ms(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.f("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.f("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Fk("cmc")},
doRemoveComments_:function(){this.comments={};_.f("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.wc.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.wc.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(Y,S){var P=_.g(S.endpoint,_.yx);P&&(!(S=this.get("data.currentVideoEndpoint.watchEndpoint"))||P.videoId!==S.videoId||P.playlistId&&P.playlistId!==S.playlistId||P.index!==void 0&&P.index!==S.index||typeof P.startTimeSeconds!=="number"||(Y.stopPropagation(),this.setScrollTop(0),_.Un(this).getPlayerPromise().then(function(u){var W=P.startTimeSeconds;u.seekTo(W);u.wakeUpControls();W<u.getDuration()&&u.playVideo()})))},
updatePlayerStartTime_:function(){var Y=_.$xY();"t"in Y&&(Y=_.L6X(Y.t),this.player.seekTo(Y,!0))},
updateTitleFromWatchNext:function(Y){Y=this.getPageContents(Y);var S,P;(Y=_.Ma(Y==null?void 0:(S=Y[0])==null?void 0:(P=S.videoPrimaryInfoRenderer)==null?void 0:P.title))&&_.ms(this.hostElement,"yt-update-title",Y)},
updateTitle_:function(Y){Y=this.get("videoDetails.title",Y)||"";_.ms(this.hostElement,"yt-update-title",Y)},
syncWithRemoteVideo_:function(Y,S,P){if(this.active&&this.player){var u=this.player.getVideoData();if(u.video_id===P&&(P=u.list,_.f("polymer_enable_mdx_queue")&&P&&P.startsWith("RQ")&&(P=void 0),u.video_id!==Y||P!=S)){var W;_.f("kevlar_player_watch_endpoint_navigation")?W=_.oKU(_.GoX(Y,S)):W=this.buildWatchEndpoint_(Y,S);_.ms(this.hostElement,"yt-navigate",{endpoint:W,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(Y,S,P){return _.YW(Y,S,P)},
initDclkstatus_:function(){_.Dx5()},
attachWatchPageSkeleton_:function(){var Y=document.querySelector("#watch-page-skeleton");if(Y){var S=Y.querySelector("#primary-info"),P=Y.querySelector("#secondary-info"),u=Y.querySelector("#related");S&&_.I(this.hostElement).querySelector("#info-skeleton").appendChild(S);P&&_.I(this.hostElement).querySelector("#meta-skeleton").appendChild(P);u&&(_.I(this.hostElement).querySelector("#related-skeleton").appendChild(u),this.watchNextSkeletonEl_=u);_.jL(Y)}},
handlePlayerUpdated_:function(){_.Un(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(Y,S){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof S!=="undefined"){var P=this.watchNextSkeletonEl_.children,u=Y&&Y.indexSplices.length?Y.indexSplices[0].index:0;Y=Math.min(this.watchNextShownItems.length,P.length);S||(u=0,Y=P.length);for(S=u;S<Y;S++)P[S].classList.add("hidden")}},
onPlayerFullscreenChange_:function(Y){_.f("external_fullscreen")||_.nb(this.hostElement,"yt-player-fullscreen",[Y.fullscreen])},
onFullscreenChange_:function(Y){this.fullscreen=Y;this.gestures_&&this.gestures_.update(this.fullscreen);var S=_.Un(this);S.getPlayerPromise().then(function(P){P.setFauxFullscreen(!!_.SR())});
this.updateFullBleedElementLocations();Y&&(S.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(Y,S){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!S},
computeIsDonationShelfCollapsed_:function(Y){return Y},
computeShouldShowMerchShelf:function(Y,S){return S&&!!Y},
computeResponseHasComments:function(Y){var S,P,u,W,m;return!!(Y==null?0:(S=Y.contents)==null?0:(P=S.twoColumnWatchNextResults)==null?0:(u=P.results)==null?0:(W=u.results)==null?0:(m=W.contents)==null?0:m.some(function(J){var c;return(J==null?void 0:(c=J.itemSectionRenderer)==null?void 0:c.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(Y,S,P,u){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&u?!1:!!Y&&!!Object.keys(Y).length&&!S},
identity:_.XE,onWindowResized_:function(Y){this.windowSize_=Y;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.f("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(Y){var S=this;Y&&Y.type!=="dataloaded"&&Y.type!=="dataupdated"||_.Un(this).getPlayerPromise().then(function(P){var u=P.getPlayerState();u!==5&&u!==0&&(P=1/P.getVideoAspectRatio(),S.videoHeightToWidthRatio_!==P&&(S.videoHeightToWidthRatio_=P))})},
schedulePlayerSizeUpdate_:function(Y){var S=this,P=_.f("kevlar_watch_while_v2")||_.f("web_watch_pip"),u=function(){if(S.watchMetadata){var W,m;(m=(W=S.watchMetadata).resize)==null||m.call(W)}_.Un(S).getPlayerPromise().then(function(J){if(_.f("kevlar_set_internal_player_size")){if(!P||!S.isMiniplayerActive()){var c=S.calculateCurrentPlayerSize_();J.setInternalSize(c.width,c.height)}}else J.setSize(NaN,NaN);_.f("kevlar_watch_while")&&S.updateWatchWhileScrollThreshold_()})};
Y?u():_.$I(_.wc,u)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(Y){this.set("data.survey",Y.detail)},
onYtShowSurveyCommand_:function(Y){this.set("data.survey",_.g(Y,_.XG_).survey)},
onDownloadedVideoDeleted:function(Y){var S=this,P,u;return _.B(function(W){if(W.nextAddress==1){if(!S.active||(P=S.playerData)==null||!P.offlineState||S.videoId!==Y)return W.return();(u=S.player)==null||u.stopVideo();_.nd().navigatingAwayFromWatchDeletedVideo=!0;_.m4(_.L7u,S.hostElement);return _.q(W,_.nd().navigationFinishPromise,2)}_.nd().navigatingAwayFromWatchDeletedVideo=!1;_.Yt(W)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var Y;this.theater?Y=_.wx(.5625*this.windowSize_.width,480,this.windowSize_.height-185):Y=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==Y&&(this.watchWhileScrollThreshold_=Y,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var Y=_.I(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&Y){var S=this.windowSize_.height>=624,P=this.active?this.getScrollTop():0;!Y.active&&S&&P>=this.watchWhileScrollThreshold_?(Y.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):Y.active&&(!S||P<this.watchWhileScrollThreshold_&&!_.SR())&&(Y.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var Y=_.I(this.hostElement).querySelector("#secondary-inner");if(Y){var S=_.I(this.hostElement).querySelector("#below"),P=_.I(this.hostElement).querySelector("#secondary"),u=_.I(this.hostElement).querySelector("#comments");u&&P&&S&&(this.defaultTwoColumnLayout?(Y.appendChild(u),P.appendChild(Y)):(S.appendChild(u),_.Fu(S,Y)))}}},
isTwoColumnsChanged_:function(Y,S){if(Y!==!0||S!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(Y=_.I(this.hostElement).querySelector("#secondary-inner"))){S=_.I(this.hostElement).querySelector("#below");var P=_.I(this.hostElement).querySelector("#secondary"),u=_.I(this.hostElement).querySelector("#comments");u&&P&&S&&(this.isTwoColumns_?(Y.appendChild(u),P.appendChild(Y)):(S.appendChild(u),_.Fu(S,Y)))}}else{Y=!_.f("live_chat_over_engagement_panels");S=_.I(this.hostElement).querySelector("#chat-container");
P=_.I(this.hostElement).querySelector("#plj-sidebar");u=_.I(this.hostElement).querySelector("#panels");var W=_.I(this.hostElement).querySelector("#plj-panels"),m=_.I(this.hostElement).querySelector("#plj-playlist"),J=_.I(this.hostElement).querySelector("#alerts"),c=_.I(this.hostElement).querySelector("#playlist"),C=_.I(this.hostElement).querySelector("#related"),x=_.I(this.hostElement).querySelector("#donation-shelf"),b=_.I(this.hostElement).querySelector("#comments");this.isTwoColumns_?(J=_.I(this.hostElement).querySelector("#secondary-inner"),
J.appendChild(P),P.appendChild(m),m.appendChild(c),P.appendChild(W),Y&&J.appendChild(u),_.f("web_watch_theater_chat")||J.appendChild(S),Y||J.appendChild(u),J.appendChild(x),J.appendChild(C)):(Y&&_.pX(u,J),_.pX(c,J),_.f("web_watch_theater_chat")||_.pX(S,J),Y||_.pX(u,J),_.pX(x,J),b&&_.pX(C,b));_.f("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.f("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.f("web_watch_theater_chat")){var Y=_.I(this.hostElement).querySelector("#chat-container"),S=this.theater&&!this.fullscreen||_.f("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&S?_.f("web_watch_theater_chat_beside_player")?(S=_.I(this.hostElement).querySelector("#panels-full-bleed-container"),(Y==null?void 0:Y.parentElement)!==S&&S.append(Y),this.panelsBesidePlayer=!0):
_.f("web_watch_theater_fixed_chat")&&(S=_.I(this.hostElement).querySelector("#columns"),(Y==null?void 0:Y.parentElement)!==S&&S.append(Y),this.fixedPanels=!0):(_.f("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.f("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),S=_.I(this.hostElement).querySelector("#playlist"),Y&&S?_.Fs(Y,S):_.sf(new _.$2("Missing element when updating chat location",{"chatContainer defined":!!Y,"playlist defined":!!S})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(Y,S){return _.f("sw_metadata_vis_toggle_ks")?!0:!!Y||!!S},
computeForceDarkPanelTheme:function(Y){return _.f("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&Y:!1},
safeUpdateStyles:function(Y){try{_.PZ(this.hostElement,Y)}catch(S){_.sf(S)}},
videoHeightToWidthRatioChanged_:function(Y,S){S&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.f("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(Y){this.videoHeightToWidthRatio_=1/Y},
computeIsVerticalVideo_:function(Y){return Y>=1},
computeIsFourThreeToSixteenNineVideo_:function(Y){return Y<=.7501&&Y>=.5624},
computeIsExtraWideVideo_:function(Y){return Y<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Un(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Un(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.M91(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(Y){var S=_.u4(Y)||0;_.PU(Y,S+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var Y=_.u4("yt-fullerscreen-edu-button-click-count")||0,S=_.u4("yt-fullerscreen-edu-button-shown-count")||0,P=_.z_("external_fullscreen_button_shown_threshold"),u=Y>=_.z_("external_fullscreen_button_click_threshold")||S>=P;_.Un(this).getPlayerPromise().then(function(W){W.updateFullerscreenEduButtonSubtleModeState(u)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(Y,S){return S},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.E().resolve(_.D3).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var Y=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.wc.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.wc.addLowPriorityJob(function(){Y.fullHeightPanelPositionUpdateJobId=0;var S=_.I(Y.hostElement).querySelector("#secondary"),P=_.I(Y.hostElement).querySelector("#fixed-secondary");S=S.getBoundingClientRect();var u=S.width;Y.swatcherooSqueezeback&&
(u+=_.sN);if(Y.swatcherooSqueezeback){var W=_.I(Y.hostElement).querySelector("#squeezeback-constraining-container");W.style.width=u+"px";W.style.flex="0 0 "+u+"px"}P.style.width=u+"px";P.style.left=S.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var Y=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.wc.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.wc.addLowPriorityJob(function(){Y.panelMaxHeightUpdateJob_=0;var S;!Y.isTwoColumns_||Y.theater||Y.fullscreen?S=460:S=Y.calculateNormalPlayerSize_().height;var P=S+"px";_.f("live_chat_taller_height")&&!Y.theater&&(P="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.f("live_chat_medium_height")&&!Y.theater&&(P="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.f("live_chat_scaled_height")&&!Y.theater&&(P="calc(100vh - var(--ytd-toolbar-height) - 238px)");Y.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":S+"px","--ytd-watch-flexy-chat-max-height":P,"--ytd-watch-flexy-structured-description-max-height":S+"px","--ytd-watch-flexy-comments-panel-max-height":S+"px","--ytd-comments-engagement-panel-content-height":S+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var Y=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.f("web_watch_flexy_adjust_sidebar_width"))&&!_.f("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.wc.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.wc.addLowPriorityJob(function(){Y.panelMaxHeightUpdateJob_=0;if(Y.isTwoColumns_){var S=_.amZ(Y.windowSize_,Y.calculateNormalPlayerSize_().width);S!==Y.currentSidebarWidth&&(Y.currentSidebarWidth=
S,Y.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":S+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(Y){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",Y)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.cu(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(Y){var S=_.I(this.hostElement).querySelector("#engagement-panel-scrim");Y?S.addEventListener("tap",_.up(this,this.onEngagementPanelScrimClick_)):S.removeEventListener("tap",_.up(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(Y){if(this.hostElement.contains(Y)&&!this.scrollToAnimation_.isAnimating()){var S=Y.offsetTop-24;Y=Y.offsetTop+Y.offsetHeight+24;var P=this.getPageScrollingElement(),u=this.getScrollTop(),W=u+P.clientHeight-56;if(S<u+56)S-=56;else if(Y>W)S=Y-P.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,S),500)}},
onYtSignalActionScrollToComments:function(){var Y=this.hostElement.querySelector("#comments");if(Y&&!this.scrollToAnimation_.isAnimating()){Y=Y.offsetTop-56-24;if(_.f("kevlar_comment_teaser_scroll_to_midpoint")&&(Y-=_.Pk().height/3,Y<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Y),500)}},
onYtEngagementPanelVisibleChanged:function(Y,S,P){this.active&&this.trackEngagementPanelVisibility&&!_.bvB.includes(P)&&(S==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(P),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.jR(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),S!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&S!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(P),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(Y){return Y?"":"watch-active-metadata"},
computeNewMetadataClass:function(Y){return Y?"watch-active-metadata":""},
computeFullBleedPlayer:function(Y,S){return Y||S},
computeDefaultLayout:function(Y){return!Y},
computeDefaultTwoColumnLayout:function(Y,S){return!Y&&S},
swatcherooUpdatePanelsLocation:function(Y,S,P,u,W,m){if(this.is==="ytd-watch-grid"){S=Y&&!S;this.swatcherooSplitScroll&&(S?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));P=_.I(this.hostElement).querySelector("#panels");var J=_.I(this.hostElement).querySelector("#playlist"),c=_.I(this.hostElement).querySelector("#fixed-secondary"),C=_.I(this.hostElement).querySelector("#fixed-below"),
x=_.I(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),b=_.I(this.hostElement).querySelector("#chat-container");m&&(Y?c.appendChild(P):C.appendChild(P));W?Y?c.appendChild(b):C.appendChild(b):_.Fs(b,x);u?Y?c.appendChild(J):C.appendChild(J):_.Fs(J,x);this.swatcherooSplitScroll&&(Y=_.I(this.hostElement).querySelector("#secondary"),u=_.I(this.hostElement).querySelector("#columns"),W=_.I(this.hostElement).querySelector("#fixed-columns-secondary"),S?W.appendChild(Y):
u.appendChild(Y))}},
computeMetadataSkinnyMode:function(Y,S,P){return this.is!=="ytd-watch-grid"?!1:Y?P:S},
computeWatchWhilePanelsActive:function(Y,S){return Y||S},
computeNoBorderOnChat:function(Y){return _.f("web_watch_theater_chat_no_border")&&Y},
computeLiveChatPresentAndExpanded:function(Y,S){return Y&&!S},
computePanelExpanded:function(Y,S,P){return Y||S||P},
computeSwatcherooSqueezeback:function(Y,S,P){return this.is!=="ytd-watch-grid"||_.f("ww_squeezeback_killswitch")?!1:Y&&S&&P},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(Y){_.Un(this).getPlayerPromise().then(function(S){var P;(P=S.changeMarkerVisibility)==null||P.call(S,_.g(Y,_.U0).isVisible||!1,_.g(Y,_.U0).entityKeys||[],_.g(Y,_.U0).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(Y){this.liveChatCollapsed=Y.detail;_.Na().dispatch(_.dxI(Y.detail))},
onSetPlaylistCollapsed:function(Y){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!Y)},
provideRenderingData:function(Y,S){switch(Y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=S;break;case "PRIMARY_INFO":_.f("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=S);this.videoPrimaryInfoRendererValue=S==null?void 0:S.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.f("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=S);this.videoSecondaryInfoRendererValue=S==null?void 0:S.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
S;break;case "CLARIFICATION":this.clarifyBoxValue=S;break;case "LIVE_CHAT":this.conversationBar=S;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=S;break;case "PLAYLIST":this.externalPlaylistData_=S!=null?S:{};break;case "MERCH_SHELF":this.merchShelfValue=S==null?void 0:S.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=S;break;case "OFFER_MODULE":this.offerModule=S;break;case "LIMITED_STATE":this.limitedStateValue=S;break;case "DONATION_SHELF":this.donation=S;break;
case "ALERTS":this.alertsValue=S;break;case "COMMENTS":this.comments=S;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=S;break;case "ENGAGEMENT_PANELS":this.engagementPanels=S;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=S;break;case "RICH_GRID_RENDERER":this.richGridRendererData=S;break;case "EXPANDABLE_METADATA":this.expandableMetadata=S;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=S}},
toggleCinematicsActive:function(Y){this.cinematicsActive=Y},
isMiniplayerActive:function(){return _.E().resolve(_.l1).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(Y){return BJ1.map(function(S){return Y.find(function(P){var u;return(P==null?void 0:(u=P.engagementPanelSectionListRenderer)==null?void 0:u.targetId)===S})}).filter(function(S){return S!==void 0})},
getNonLearningJourneyEngagementPanels:function(Y){return Y.filter(function(S){var P;return!BJ1.includes((S==null?void 0:(P=S.engagementPanelSectionListRenderer)==null?void 0:P.targetId)||"")})},
getHasLearningJourneyPanels:function(Y){return Y.length>0}}];var cb6;var O0=function(){var Y=_.Z.apply(this,arguments)||this;Y.flexy=!0;Y.learningJourney=!0;Y.roundedInfoPanel=!0;Y.viewTransitionEnabled=_.f("enable_player_resize_transition");Y.smallerChatMinHeight=_.f("live_chat_smaller_min_height");Y.cinematicTheaterMode=_.f("web_cinematic_theater_mode");Y.transparentTheaterMode=_.f("web_transparent_theater_mode");Y.cinematicFullscreen=_.f("web_cinematic_fullscreen");Y.useLargerMaxPlayerValue=_.f("kevlar_flexy_use_larger_player_value");Y.cinematicFullscreenV2=_.f("web_cinematic_fullscreen_v2");
Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.theaterLargerPlayer=_.f("web_watch_theater_larger_player");Y.defaultCollapsePlaylist=_.f("web_watch_default_collapse_playlist");return Y};
_.r(O0,_.Z);_.z=O0.prototype;_.z.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.z.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.z.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.z.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.z.ready=function(){var Y=this,S=function(){Y.onColumnScroll()};
this.primary.addEventListener("scroll",S);this.secondary.addEventListener("scroll",S)};
_.z.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.z.updateIsTwoColumnsFromBinding=function(Y){_.f("web_watch_update_narrow_width_killswitch")||_.Na().dispatch(_.$3o(!Y.detail.value));this.ytdWatchBehavior.isTwoColumns_=Y.detail.value};
_.z.updateFlexySmallWindowFromBinding=function(Y){this.ytdWatchBehavior.flexySmallWindow_=Y.detail.value};
_.z.updateFlexyLargeWindowFromBinding=function(Y){this.ytdWatchBehavior.flexyLargeWindow_=Y.detail.value};
_.z.updateWatchWhileWindowSizeSufficientFromBinding=function(Y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=Y.detail.value};
_.z.updateWatchNextCanShowMoreFromBinding=function(Y){this.ytdWatchBehavior.watchNextCanShowMore=Y.detail.value};
_.z.updateShownItemsFromBinding=function(Y){Y.detail.path?this.set(Y.detail.path,Y.detail.value):this.ytdWatchBehavior.watchNextShownItems=Y.detail.value};
_.z.getElement=function(Y){switch(Y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20340_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20340_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.y6.Object.defineProperties(O0.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.pageVisualEffects)return!1;for(var S=0;S<this.data.pageVisualEffects.length;S++)if(Y=_.g(this.data.pageVisualEffects[S],_.TA))return S=void 0,(S=Y.config)==null?void 0:S.enableInLightTheme;return!1}}});
_.y6.Object.defineProperties(O0,{template:{configurable:!0,enumerable:!0,get:function(){if(cb6===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);cb6=Y}Y=cb6;return Y}}});
O0.prototype.updateMiniplayerIsActiveValue=O0.prototype.updateMiniplayerIsActiveValue;O0.prototype.updateScrollTopValue=O0.prototype.updateScrollTopValue;O0.prototype.updateFullscreenValue=O0.prototype.updateFullscreenValue;O0.prototype.updateTheaterValue=O0.prototype.updateTheaterValue;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],O0.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(Jbo.YtdLearningJourneyWatchBehavior),_.k("design:type",Object)],O0.prototype,"ytdWatchBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],O0.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],O0.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],O0.prototype,"playerData",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],O0.prototype,"flexy",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],O0.prototype,"learningJourney",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],O0.prototype,"roundedInfoPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],O0.prototype,"viewTransitionEnabled",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],O0.prototype,"smallerChatMinHeight",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],O0.prototype,"cinematicTheaterMode",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],O0.prototype,"transparentTheaterMode",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],O0.prototype,"cinematicFullscreen",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],O0.prototype,"useLargerMaxPlayerValue",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],O0.prototype,"cinematicFullscreenV2",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],O0.prototype,"isDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],O0.prototype,"theaterLargerPlayer",void 0);_.Q([_.X(),_.k("design:type",Object)],O0.prototype,"defaultCollapsePlaylist",void 0);_.Q([_.X({selector:_.fe}),_.k("design:type",Object)],O0.prototype,"theaterValue",void 0);
_.Q([_.X({selector:_.G7}),_.k("design:type",Object)],O0.prototype,"fullscreenValue",void 0);_.Q([_.X({selector:_.hb}),_.k("design:type",Object)],O0.prototype,"scrollTopValue",void 0);_.Q([_.X({selector:_.pA}),_.k("design:type",Object)],O0.prototype,"miniplayerIsActiveValue",void 0);_.Q([_.U8("ytd-player"),_.k("design:type",HTMLElement)],O0.prototype,"ytdPlayer",void 0);_.Q([_.nc("#playlist"),_.k("design:type",HTMLElement)],O0.prototype,"JSC$20340_ytdPlaylistPanelRenderer",void 0);
_.Q([_.U8("ytd-comments"),_.k("design:type",HTMLElement)],O0.prototype,"ytdComments",void 0);_.Q([_.nc("#primary"),_.k("design:type",HTMLElement)],O0.prototype,"primary",void 0);_.Q([_.nc("#secondary"),_.k("design:type",HTMLElement)],O0.prototype,"secondary",void 0);_.Q([_.nc("#player-container"),_.k("design:type",HTMLElement)],O0.prototype,"playerContainer",void 0);_.Q([_.nc("#cinematics"),_.k("design:type",HTMLElement)],O0.prototype,"JSC$20340_cinematics",void 0);
_.Q([_.zY("theaterValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],O0.prototype,"updateTheaterValue",null);_.Q([_.zY("fullscreenValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],O0.prototype,"updateFullscreenValue",null);_.Q([_.zY("scrollTopValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],O0.prototype,"updateScrollTopValue",null);
_.Q([_.zY("miniplayerIsActiveValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],O0.prototype,"updateMiniplayerIsActiveValue",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],O0.prototype,"cinematicLightTheme",null);O0=_.Q([_.t({is:"ytd-watch-learning-journey"})],O0);_.TV.registerService(_.Dx$,O0);
_.Gl();
}catch(e){_._DumpException(e)}
try{
_.r7("Tm0L3c");
var SNo;var P_j;var uu1=function(){return _.Z.apply(this,arguments)||this};
_.r(uu1,_.Z);uu1=_.Q([_.t({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],uu1);
_.A(uu1,"ytd-ghost-comments-renderer",function(){if(P_j===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);P_j=Y}Y=P_j;return Y},{mode:1});var Wnd;var zII=function(){return _.Z.apply(this,arguments)||this};
_.r(zII,_.Z);zII=_.Q([_.t({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],zII);
_.A(zII,"ytd-ghost-watch-metadata-renderer",function(){if(Wnd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);Wnd=Y}Y=Wnd;return Y},{mode:1});var eO=function(){var Y=_.Z.apply(this,arguments)||this;Y.ghostGridRenderer={rows:6};Y.roundedInfoPanel=!0;Y.hideOfferModules=!0;Y.smallerChatMinHeight=_.f("live_chat_smaller_min_height");Y.cinematicTheaterMode=_.f("web_cinematic_theater_mode");Y.transparentTheaterMode=_.f("web_transparent_theater_mode");Y.darkerPanels=_.f("web_watch_darker_panels");Y.cinematicFullscreen=_.f("web_cinematic_fullscreen");Y.cinematicFullscreenV2=_.f("web_cinematic_fullscreen_v2");Y.isDarkTheme=document.documentElement.hasAttribute("dark");
return Y};
_.r(eO,_.Z);_.z=eO.prototype;_.z.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.z.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.z.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.z.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.z.ready=function(){var Y=this,S=function(){Y.onColumnScroll()};
this.primary.addEventListener("scroll",S);this.secondary.addEventListener("scroll",S)};
_.z.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.z.updateIsTwoColumnsFromBinding=function(Y){this.ytdWatchBehavior.isTwoColumns_=Y.detail.value};
_.z.updateFlexySmallWindowFromBinding=function(Y){this.ytdWatchBehavior.flexySmallWindow_=Y.detail.value};
_.z.updateFlexyLargeWindowFromBinding=function(Y){this.ytdWatchBehavior.flexyLargeWindow_=Y.detail.value};
_.z.updateWatchWhileWindowSizeSufficientFromBinding=function(Y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=Y.detail.value};
_.z.updateWatchNextCanShowMoreFromBinding=function(Y){this.ytdWatchBehavior.watchNextCanShowMore=Y.detail.value};
_.z.updateShownItemsFromBinding=function(Y){_.f("swatcheroo_direct_use_rich_grid")||(Y.detail.path?this.set(Y.detail.path,Y.detail.value):this.ytdWatchBehavior.watchNextShownItems=Y.detail.value)};
_.z.getElement=function(Y){switch(Y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20331_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20331_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.y6.Object.defineProperties(eO.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.pageVisualEffects)return!1;for(var S=0;S<this.data.pageVisualEffects.length;S++)if(Y=_.g(this.data.pageVisualEffects[S],_.TA))return S=void 0,(S=Y.config)==null?void 0:S.enableInLightTheme;return!1}}});
eO.prototype.updateMiniplayerIsActiveValue=eO.prototype.updateMiniplayerIsActiveValue;eO.prototype.updateScrollTopValue=eO.prototype.updateScrollTopValue;eO.prototype.updateFullscreenValue=eO.prototype.updateFullscreenValue;eO.prototype.updateTheaterValue=eO.prototype.updateTheaterValue;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],eO.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.OYB.YtdWatchBehavior),_.k("design:type",Object)],eO.prototype,"ytdWatchBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],eO.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],eO.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],eO.prototype,"ghostGridRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],eO.prototype,"playerData",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eO.prototype,"roundedInfoPanel",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eO.prototype,"hideOfferModules",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eO.prototype,"smallerChatMinHeight",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eO.prototype,"cinematicTheaterMode",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eO.prototype,"transparentTheaterMode",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eO.prototype,"darkerPanels",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eO.prototype,"cinematicFullscreen",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eO.prototype,"cinematicFullscreenV2",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],eO.prototype,"isDarkTheme",void 0);_.Q([_.X({selector:_.fe}),_.k("design:type",Object)],eO.prototype,"theaterValue",void 0);
_.Q([_.X({selector:_.G7}),_.k("design:type",Object)],eO.prototype,"fullscreenValue",void 0);_.Q([_.X({selector:_.hb}),_.k("design:type",Object)],eO.prototype,"scrollTopValue",void 0);_.Q([_.X({selector:_.pA}),_.k("design:type",Object)],eO.prototype,"miniplayerIsActiveValue",void 0);_.Q([_.nc("#ytd-player"),_.k("design:type",HTMLElement)],eO.prototype,"ytdPlayer",void 0);_.Q([_.nc("#playlist"),_.k("design:type",HTMLElement)],eO.prototype,"JSC$20331_ytdPlaylistPanelRenderer",void 0);
_.Q([_.nc("#ytd-comments"),_.k("design:type",HTMLElement)],eO.prototype,"ytdComments",void 0);_.Q([_.nc("#primary"),_.k("design:type",HTMLElement)],eO.prototype,"primary",void 0);_.Q([_.nc("#secondary"),_.k("design:type",HTMLElement)],eO.prototype,"secondary",void 0);_.Q([_.nc("#player-container"),_.k("design:type",HTMLElement)],eO.prototype,"playerContainer",void 0);_.Q([_.nc("#cinematics"),_.k("design:type",HTMLElement)],eO.prototype,"JSC$20331_cinematics",void 0);
_.Q([_.zY("theaterValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eO.prototype,"updateTheaterValue",null);_.Q([_.zY("fullscreenValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eO.prototype,"updateFullscreenValue",null);_.Q([_.zY("scrollTopValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eO.prototype,"updateScrollTopValue",null);
_.Q([_.zY("miniplayerIsActiveValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eO.prototype,"updateMiniplayerIsActiveValue",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eO.prototype,"cinematicLightTheme",null);
_.A(eO,"ytd-watch-grid",function(){if(SNo===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);SNo=Y}Y=SNo;return Y},{mode:2});_.TV.registerService(_.v$E,eO);
_.Gl();
}catch(e){_._DumpException(e)}
try{
_.r7("CF909");
var YN6;var Vq=function(){var Y=_.Z.apply(this,arguments)||this;Y.flexy=!0;Y.roundedInfoPanel=!0;Y.viewTransitionEnabled=_.f("enable_player_resize_transition");Y.smallerChatMinHeight=_.f("live_chat_smaller_min_height");Y.cinematicTheaterMode=_.f("web_cinematic_theater_mode");Y.transparentTheaterMode=_.f("web_transparent_theater_mode");Y.cinematicFullscreen=_.f("web_cinematic_fullscreen");Y.useLargerMaxPlayerValue=_.f("kevlar_flexy_use_larger_player_value");Y.cinematicFullscreenV2=_.f("web_cinematic_fullscreen_v2");
Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.theaterLargerPlayer=_.f("web_watch_theater_larger_player");Y.defaultCollapsePlaylist=_.f("web_watch_default_collapse_playlist");Y.retroModeReduxValue=!1;return Y};
_.r(Vq,_.Z);_.z=Vq.prototype;_.z.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.z.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.z.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.z.updateRetroModeReduxValue=function(){_.f("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.z.ready=function(){var Y=this,S=function(){Y.onColumnScroll()};
this.primary.addEventListener("scroll",S);this.secondary.addEventListener("scroll",S)};
_.z.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.z.updateIsTwoColumnsFromBinding=function(Y){_.f("web_watch_update_narrow_width_killswitch")||_.Na().dispatch(_.$3o(!Y.detail.value));this.ytdWatchBehavior.isTwoColumns_=Y.detail.value};
_.z.updateFlexySmallWindowFromBinding=function(Y){this.ytdWatchBehavior.flexySmallWindow_=Y.detail.value};
_.z.updateFlexyLargeWindowFromBinding=function(Y){this.ytdWatchBehavior.flexyLargeWindow_=Y.detail.value};
_.z.updateWatchWhileWindowSizeSufficientFromBinding=function(Y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=Y.detail.value};
_.z.updateWatchNextCanShowMoreFromBinding=function(Y){this.ytdWatchBehavior.watchNextCanShowMore=Y.detail.value};
_.z.updateShownItemsFromBinding=function(Y){Y.detail.path?this.set(Y.detail.path,Y.detail.value):this.ytdWatchBehavior.watchNextShownItems=Y.detail.value};
_.z.getElement=function(Y){switch(Y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20326_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20326_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.y6.Object.defineProperties(Vq.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.pageVisualEffects)return!1;for(var S=0;S<this.data.pageVisualEffects.length;S++)if(Y=_.g(this.data.pageVisualEffects[S],_.TA))return S=void 0,(S=Y.config)==null?void 0:S.enableInLightTheme;return!1}}});
_.y6.Object.defineProperties(Vq,{template:{configurable:!0,enumerable:!0,get:function(){if(YN6===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);YN6=Y}Y=YN6;return Y}}});
Vq.prototype.updateRetroModeReduxValue=Vq.prototype.updateRetroModeReduxValue;Vq.prototype.updateScrollTopValue=Vq.prototype.updateScrollTopValue;Vq.prototype.updateFullscreenValue=Vq.prototype.updateFullscreenValue;Vq.prototype.updateTheaterValue=Vq.prototype.updateTheaterValue;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Vq.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.OYB.YtdWatchBehavior),_.k("design:type",Object)],Vq.prototype,"ytdWatchBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Vq.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Vq.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Vq.prototype,"playerData",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Vq.prototype,"flexy",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Vq.prototype,"roundedInfoPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Vq.prototype,"viewTransitionEnabled",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Vq.prototype,"smallerChatMinHeight",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Vq.prototype,"cinematicTheaterMode",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Vq.prototype,"transparentTheaterMode",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Vq.prototype,"cinematicFullscreen",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Vq.prototype,"useLargerMaxPlayerValue",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Vq.prototype,"cinematicFullscreenV2",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Vq.prototype,"isDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Vq.prototype,"theaterLargerPlayer",void 0);_.Q([_.X(),_.k("design:type",Object)],Vq.prototype,"defaultCollapsePlaylist",void 0);_.Q([_.X({selector:_.fe}),_.k("design:type",Object)],Vq.prototype,"theaterValue",void 0);_.Q([_.X({selector:_.G7}),_.k("design:type",Object)],Vq.prototype,"fullscreenValue",void 0);
_.Q([_.X({selector:_.hb}),_.k("design:type",Object)],Vq.prototype,"scrollTopValue",void 0);_.Q([_.X({selector:_.pA}),_.k("design:type",Object)],Vq.prototype,"miniplayerIsActive",void 0);_.Q([_.X({selector:function(Y){return Y.watch.isWatchRetroMode}}),
_.k("design:type",Object)],Vq.prototype,"retroModeReduxValue",void 0);_.Q([_.U8("ytd-player"),_.k("design:type",HTMLElement)],Vq.prototype,"ytdPlayer",void 0);_.Q([_.nc("#playlist"),_.k("design:type",HTMLElement)],Vq.prototype,"JSC$20326_ytdPlaylistPanelRenderer",void 0);_.Q([_.U8("ytd-comments"),_.k("design:type",HTMLElement)],Vq.prototype,"ytdComments",void 0);_.Q([_.nc("#primary"),_.k("design:type",HTMLElement)],Vq.prototype,"primary",void 0);
_.Q([_.nc("#secondary"),_.k("design:type",HTMLElement)],Vq.prototype,"secondary",void 0);_.Q([_.nc("#player-container"),_.k("design:type",HTMLElement)],Vq.prototype,"playerContainer",void 0);_.Q([_.nc("#cinematics"),_.k("design:type",HTMLElement)],Vq.prototype,"JSC$20326_cinematics",void 0);_.Q([_.zY("theaterValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vq.prototype,"updateTheaterValue",null);
_.Q([_.zY("fullscreenValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vq.prototype,"updateFullscreenValue",null);_.Q([_.zY("scrollTopValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vq.prototype,"updateScrollTopValue",null);_.Q([_.zY("retroModeReduxValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vq.prototype,"updateRetroModeReduxValue",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vq.prototype,"cinematicLightTheme",null);Vq=_.Q([_.t({is:"ytd-watch-flexy"})],Vq);_.TV.registerService(_.hm$,Vq);
_.Gl();
}catch(e){_._DumpException(e)}
try{
_.r7("nmfa2d");
var g$5;var tH=function(){var Y=_.Z.apply(this,arguments)||this;Y.hidden=!1;Y.errorScreen=null;Y.playlistData={};return Y};
_.r(tH,_.Z);_.z=tH.prototype;_.z.getPlayer=function(){return this.ytdPlayer};
_.z.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:_.vn(["aa","eocs"])}}};
_.z.onActiveChanged=function(){_.Na().dispatch(_.gkX(this.ytPageBehavior.active))};
_.z.playerDataChanged=function(){var Y;(Y=this.watchController)==null||_.ZL(Y,this.playerData)};
_.z.dataChanged=function(){var Y;(Y=this.watchController)==null||_.i$(Y,this.data)};
_.z.sizeChanged=function(){var Y,S;(S=(Y=this.metadata).resize)==null||S.call(Y)};
_.z.attached=function(){this.watchController=new _.X9(this);this.playerData&&_.ZL(this.watchController,this.playerData);this.data&&_.i$(this.watchController,this.data)};
_.z.detached=function(){_.oY(this.watchController);this.watchController=void 0};
_.z.getPlayerContainer=function(){return this.playerContainer};
_.z.getElement=function(Y){switch(Y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20278_playlistPanel}};
_.z.provideRenderingData=function(Y,S){switch(Y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=S;break;case "ERROR_SCREEN":this.errorScreen=S!=null?S:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=S;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=S;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=S;break;case "RICH_METADATA":this.richMetadataRowContainer=S;break;case "CLARIFICATION":this.clarificationData=S;break;case "PLAYLIST":this.playlistData=
S!=null?S:{};break;case "MERCH_SHELF":this.merchShelf=S;break;case "TICKET_SHELF":this.ticketShelf=S;break;case "LIMITED_STATE":this.limitedState=S;break;case "DONATION_SHELF":this.donationShelf=S;break;case "ALERTS":this.alerts=S}};
_.y6.Object.defineProperties(tH.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return!this.hidden&&!!((Y=this.data)==null?0:(S=Y.contents)==null?0:(P=S.twoColumnWatchNextResults)==null?0:P.conversationBar)}}});
tH.prototype.sizeChanged=tH.prototype.sizeChanged;tH.prototype.dataChanged=tH.prototype.dataChanged;tH.prototype.playerDataChanged=tH.prototype.playerDataChanged;tH.prototype.onActiveChanged=tH.prototype.onActiveChanged;_.Q([_.p(_.gn.YtPageBehavior),_.k("design:type",Object)],tH.prototype,"ytPageBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],tH.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],tH.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"playerData",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],tH.prototype,"hidden",void 0);_.Q([_.nc("#ytd-player"),_.k("design:type",HTMLElement)],tH.prototype,"ytdPlayer",void 0);_.Q([_.nc("#player-container"),_.k("design:type",HTMLElement)],tH.prototype,"playerContainer",void 0);_.Q([_.nc("#metadata"),_.k("design:type",Object)],tH.prototype,"metadata",void 0);_.Q([_.nc("#playlist"),_.k("design:type",HTMLElement)],tH.prototype,"JSC$20278_playlistPanel",void 0);
_.Q([_.X({selector:_.DOI,reflectToAttribute:!0}),_.k("design:type",Object)],tH.prototype,"fixie",void 0);_.Q([_.X({selector:_.vr5,reflectToAttribute:!0}),_.k("design:type",Object)],tH.prototype,"singleColumn",void 0);_.Q([_.X({selector:function(Y){return _.fe(Y)&&!_.G7(Y)},
reflectToAttribute:!0}),_.k("design:type",Object)],tH.prototype,"theater",void 0);_.Q([_.X({selector:_.G7,reflectToAttribute:!0}),_.k("design:type",Object)],tH.prototype,"fullscreen",void 0);_.Q([_.X({selector:_.hH5}),_.k("design:type",Object)],tH.prototype,"windowSize",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"singleColumnContents",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"errorScreen",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"playlistData",void 0);
_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"videoPrimaryInfoRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"videoSecondaryInfoRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"richMetadataRowContainer",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"clarificationData",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"commentsEntryPointHeaderRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"ticketShelf",void 0);
_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"merchShelf",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"donationShelf",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"limitedState",void 0);_.Q([_.X(),_.k("design:type",Object)],tH.prototype,"alerts",void 0);_.Q([_.d("playlistData"),_.k("design:type",Object),_.k("design:paramtypes",[])],tH.prototype,"hasPlaylistData",null);
_.Q([_.d("data","hidden"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],tH.prototype,"hasChat",null);_.Q([_.zY("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tH.prototype,"onActiveChanged",null);_.Q([_.zY("playerData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tH.prototype,"playerDataChanged",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tH.prototype,"dataChanged",null);_.Q([_.zY("windowSize","singleColumn"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tH.prototype,"sizeChanged",null);
_.A(tH,"ytd-watch-fixie",function(){if(g$5===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);g$5=Y}Y=g$5;return Y},{mode:1});_.TV.registerService(_.Goh,tH);
_.Gl();
}catch(e){_._DumpException(e)}
try{
_.r7("xwEKAe");
var Dtu=function(Y){var S=_.$o();if(S.getFlag(202))S=S.getFlag(201);else{var P;S=(Y==null?void 0:(P=Y.config)==null?void 0:P.settingOnByDefault)!==void 0?Y.config.settingOnByDefault:!_.f("web_shorts_cinematics_disabled_by_default")}return S},Inu=function(Y){var S=_.$o();
_.rP(0,201,Y);_.rP(0,202,!0);S.save()},anI=function(Y){return(Y=_.cWX(Y))?_.q7J(Y):0},Lfo=function(Y){return Y.shorts.isSmallScreenSqueezeback},wV6=function(Y){return Y.shorts.isPlaybackStarted},pVX=function(Y,S,P,u){Y=S-Y;
P=u-P;return Math.sqrt(Y*Y+P*P)},Ffu=function(Y,S){Y&&_.E().resolve(_.uY).resolveCommand(Y,{forceClickLogging:!0,
form:{element:S}})},snu=function(Y){Y.unsubscribeFromStore=_.J5(Y.storeWithShorts,_.zaj,function(S){Y.initOrDisposeActiveModules(S);
!S&&Y.storeWithShorts.getState().shorts.isFullscreen&&(_.Pu(document.documentElement),Y.storeWithShorts.dispatch(_.j46(!1)))});
Y.initOrDisposeActiveModules(_.zaj(Y.storeWithShorts.getState()))},dtI=function(Y){var S=_.E().resolve(_.Nn);
S.rootElement=Y;snu(S)},ln1=function(){return _.E().resolve(_.Nn).dismissedIndices},XVI=function(Y){return _.WT({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:Y}})},ZH1=function(Y){return _.WT({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:Y}})},W5=function(Y){return _.WT({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:Y}})},z7=function(Y,S){if(Y instanceof z7)this.array_=Y.array_;
else{var P;if(P=_.eK(Y))a:{for(var u=P=0;u<Y.length;u++){if(!_.eK(Y[u])||P>0&&Y[u].length!=P){P=!1;break a}for(var W=0;W<Y[u].length;W++)if(typeof Y[u][W]!=="number"){P=!1;break a}P==0&&(P=Y[u].length)}P=P!=0}if(P)this.array_=_.NU(Y);else if(Y instanceof _.SZ)this.array_=iHj(Y.height,Y.width);else if(typeof Y==="number"&&typeof S==="number"&&Y>0&&S>0)this.array_=iHj(Y,S);else throw Error("Zl");}this.size_=new _.SZ(this.array_[0].length,this.array_.length)},oVc=function(Y,S,P){for(var u=0;u<Y.getSize().height;u++)for(var W=
0;W<Y.getSize().width;W++)S.call(P,Y.array_[u][W],u,W,Y)},tJ5=function(Y,S){var P=new z7(Y.getSize());
oVc(Y,function(u,W,m){P.array_[W][m]=S.call(void 0,u,W,m,Y)});
return P},iHj=function(Y,S){for(var P=[],u=0;u<Y;u++){P[u]=[];
for(var W=0;W<S;W++)P[u][W]=0}return P};
z7.prototype.add=function(Y){if(!_.S5c(this.size_,Y.getSize()))throw Error("$l");return tJ5(this,function(S,P,u){return S+Y.array_[P][u]})};
z7.prototype.equals=function(Y,S){if(this.size_.width!=Y.size_.width||this.size_.height!=Y.size_.height)return!1;S=S||0;for(var P=0;P<this.size_.height;P++)for(var u=0;u<this.size_.width;u++)if(!_.Y56(this.array_[P][u],Y.array_[P][u],S))return!1;return!0};
z7.prototype.getSize=function(){return this.size_};
var mn=function(Y,S,P){return S>=0&&S<Y.size_.height&&P>=0&&P<Y.size_.width?Y.array_[S][P]:null};
z7.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var AGY=function(Y,S,P,u){if(!(S>=0&&S<Y.size_.height&&P>=0&&P<Y.size_.width))throw Error("am`"+S+"`"+P+"`"+Y.size_.height+"`"+Y.size_.width);Y.array_[S][P]=u};
z7.prototype.multiply=function(Y){if(Y instanceof z7){if(this.size_.width!=Y.getSize().height)throw Error("bm");return UtX(this,Y)}if(typeof Y==="number")return QnY(this,Y);throw Error("cm");};
var UtX=function(Y,S){var P=new z7(Y.size_.height,S.getSize().width);oVc(P,function(u,W,m){for(var J=u=0;J<this.size_.width;J++)u+=mn(this,W,J)*mn(S,J,m);AGY(P,W,m,u)},Y);
return P},QnY=function(Y,S){return tJ5(Y,function(P){return P*S})};var kQd=new _.N("inlineSurveyRenderer");var MJI=new _.N("interstitialViewModel");var yGu=new _.N("reelNavigateCommand");var NNd=new _.N("reelNonVideoContentDismissalCommand");var HH1=new _.N("showReelsCommentsOverlayCommand");var VJI=new _.N("videoInteractionPopUpRenderer");var eV_;var OHd;var Y3u;var nO=function(){var Y=_.Z.apply(this,arguments)||this;Y.ctaVisualElement=null;Y.currentCsn=null;return Y};
_.r(nO,_.Z);_.z=nO.prototype;_.z.onDataChanged=function(){this.maybeLogShows()};
_.z.computeButtonShape=function(){var Y=this;if(this.data)return{buttonText:_.Ma(this.data.text),state:"active",onTap:function(){Y.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.z.maybeCreateCtaVe=function(){var Y;if((Y=this.data)!=null&&Y.badgeInteractionLogging){var S;if(Y=(S=this.data.badgeInteractionLogging)==null?void 0:S.trackingParams)this.ctaVisualElement=_.Re(Y)}};
_.z.maybeLogClicks=function(){this.currentCsn=_.pM(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.ko(this.currentCsn,this.ctaVisualElement)};
_.z.maybeLogShows=function(){this.currentCsn=_.pM(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.UV(this.currentCsn,[this.ctaVisualElement])};
_.z.onTap=function(){var Y;if((Y=this.data)!=null&&Y.onClickCommand){var S;this.ytComponentBehavior.resolveCommand((S=this.data)==null?void 0:S.onClickCommand);this.maybeLogClicks()}};
nO.prototype.onDataChanged=nO.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],nO.prototype,"ytComponentBehavior",void 0);_.Q([_.X({}),_.k("design:type",Object)],nO.prototype,"data",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nO.prototype,"onDataChanged",null);
nO=_.Q([_.t({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],nO);
_.A(nO,"ytd-shopping-overlay-badge-renderer",function(){if(Y3u!==void 0)return Y3u;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Y3u=Y},{mode:1});_.AL(_.N11,"reel-sound-metadata-view-model",{props:{data:_.tL,overlayDensity:_.tL}});_.AL(_.sN6,"player-disclosure-view-model",{props:{data:_.wm}});_.AL(_.Ldf,"pivot-button-view-model",{props:{data:_.tL,className:_.tL}});_.AL(_.wN_,"reel-action-bar-view-model",{props:{data:_.wm,buttonShapeOverrideables:_.wm}});_.AL(_.AI(function(Y){function S(){var w1,U9,nu,Yc,tu=(U9=_.g((w1=V())==null?void 0:w1.command,_.$if))==null?void 0:(nu=U9.item)==null?void 0:(Yc=nu.notificationTextRenderer)==null?void 0:Yc.successResponseText;if(tu)_.nb(u.value,"yt-open-popup-action",[_.Vc(tu),u.value]);else if(M())Ffu(M(),v.value);else{var $_;Ffu(($_=V())==null?void 0:$_.command,v.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var P=Y.data;var u=_.Ms();Y=_.n(_.qb("0px",void 0,"O1N7Ce"));var W=Y.next().value,m=Y.next().value;Y=_.n(_.qb("0px",void 0,"tTDBdb"));var J=Y.next().value,c=Y.next().value;Y=_.n(_.qb(0,void 0,"fh8Zkc"));var C=Y.next().value,x=Y.next().value;Y=_.n(_.qb(0,void 0,"CUjqGd"));var b=Y.next().value,T=Y.next().value,K=function(){var w1;if(((w1=_.PL())==null?void 0:w1.getPlayerState())!==-1){u.value.style.display="inherit";var U9;(U9=_.PL())==null||U9.removeEventListener("onStateChange",K)}G()},G=function(){var w1=
document.querySelector("video");
if(w1){x(w1.getBoundingClientRect().width);T(w1.getBoundingClientRect().height);var U9;m((w1==null?void 0:(U9=w1.style)==null?void 0:U9.left)||"0px");var nu;c((w1==null?void 0:(nu=w1.style)==null?void 0:nu.top)||"0px")}};
_.D6(function(){var w1,U9,nu;if(((w1=_.PL())==null?void 0:w1.getPlayerState())===-1&&Math.round(((nu=(U9=_.PL())==null?void 0:U9.getVideoAspectRatio())!=null?nu:0)*100)!==Math.round(C()/b()*100)){u.value.style.display="none";var Yc,tu;T(C()/((tu=(Yc=_.PL())==null?void 0:Yc.getVideoAspectRatio())!=null?tu:1))}},"VB5m5");
_.Ij(function(){var w1;(w1=_.PL())==null||w1.addEventListener("onStateChange",K);window.addEventListener("resize",G);G();var U9,nu,Yc;if((Yc=(U9=P())==null?void 0:(nu=U9.regions)==null?void 0:nu[0])==null||!Yc.transformationMatrix)throw Error("gm");var tu;if((tu=P())==null?0:tu.trackingParams){var $_;_.BF().graftServerVe(($_=P().trackingParams)!=null?$_:"")}_.aI(function(){var fu;(fu=_.PL())==null||fu.removeEventListener("onStateChange",K);window.removeEventListener("resize",G)})});
var v=_.Ms(),a=_.n(_.qb(!1,void 0,"TPsTce"));Y=a.next().value;var w=a.next().value,F=_.n(_.qb(!1,void 0,"Uz6CHf"));a=F.next().value;var U=F.next().value,V=function(){var w1;return _.g((w1=P())==null?void 0:w1.popUp,VJI)},M=function(){var w1;
return(w1=P())==null?void 0:w1.command},zJ=function(){return _.g(M(),_.Rq)!==void 0};
F=_.mR(function(){zJ()&&w(!0);U(!0);return!1});
var O=_.mR(function(){w(!1);U(!1);return!1}),ca=_.mR(function(){zJ()&&w(!0);
return!1}),hu=_.mR(function(){zJ()&&w(!1);
return!1}),ah=_.mR(function(){S();
return!1}),va=_.mR(function(w1){w1.key==="Enter"&&S();
return!1}),yX={},la={};
return _.R("yt-player-overlay-video-interactions",{el:u},_.R("svg",{"on:mouseover":F,"on:mouseout":O,"on:keydown":va,"on:focus":ca,"on:blur":hu,el:v,tabindex:0,"aria-label":function(){var w1;return(w1=P())==null?void 0:w1.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Si("yt-player-overlay-video-interactions__interactions-svg",(yX["yt-player-overlay-video-interactions__interactions-svg-hover"]=Y,yX),(la["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=a,la)),role:"button",style:function(){var w1,U9,nu,Yc=(nu=(w1=P())==null?void 0:(U9=w1.regions)==null?void 0:U9[0].transformationMatrix)!=null?nu:[];w1=C();U9=b();nu=[];for(var tu=0,$_=-1;tu<Yc.length;tu++)tu%3===0&&($_++,nu[$_]=[]),nu[$_].push(Yc[tu]);
Yc=new z7(nu);nu=new z7([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);nu=Yc.multiply(nu);Yc=new z7([[0,0],[0,0],[0,0],[0,0]]);for(tu=0;tu<nu.getSize().width;tu++){$_=mn(nu,0,tu);var fu=mn(nu,1,tu);if($_===null||fu===null)throw Error("fm`"+(tu+1).toString());AGY(Yc,tu,0,$_*w1);AGY(Yc,tu,1,fu*U9)}w1=mn(Yc,0,0);tu=mn(Yc,1,0);U9=mn(Yc,0,1);$_=mn(Yc,1,1);if(w1===null||tu===null||U9===null||$_===null)throw Error("dm");nu=pVX(w1,tu,U9,$_);fu=mn(Yc,3,0);Yc=mn(Yc,3,1);if(fu===null||Yc===null)throw Error("em");Yc=pVX(w1,
fu,U9,Yc);$_=(Number(($_*-1).toFixed(2))-Number((U9*-1).toFixed(2)))/(Number(tu.toFixed(2))-Number(w1.toFixed(2)));fu=Math.atan($_)*180/Math.PI;tu=$_===Number.POSITIVE_INFINITY?-90:$_===Number.NEGATIVE_INFINITY?90:Object.is($_,-0)?180:$_===0?0:$_>0?fu*-1:w1<tu?fu*-1:Math.abs(fu)+180;return"left:calc("+w1+"px + "+W()+"); top:calc("+(U9+"px + "+J()+"); width:")+(nu+"px; height:")+(Yc+"px; transform:rotate(")+(tu+"deg);")},
"on:click":ah}))},"Vh"),"yt-player-overlay-video-interactions",{props:{data:_.wm}});_.AL(_.iSj,"yt-reel-metapanel-view-model",{props:{data:_.wm,overlayDensity:_.wm}});var j8=function(){var Y=_.Z.apply(this,arguments)||this;Y.showScrubber=!1;Y.isWatchWhileMode=!1;Y.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");Y.anchoredPanelActive=!1;Y.enableLivingroomLayout=_.f("reels_enable_livingroom_layout");Y.enablePlayerMetadataContainer=_.f("reels_web_enable_metadata_container");Y.enableSqueezebackPanels=_.f("web_shorts_enable_squeezeback_panels");Y.isSqueezebackActive=!1;Y.smallScreenSqueezeback=!1;Y.isPlayerStarted=!1;Y.overlayDensity=0;Y.isOverlay=!1;Y.isImmersive=
!1;Y.isImmersiveHorizontal=!1;Y.isFullscreen=!1;Y.onWindowResized=function(){var S;Y.set("isImmersive",((S=window.getComputedStyle(Y.hostElement))==null?void 0:S.getPropertyValue("--immersive-mode-on"))==="1");Y.set("isImmersiveHorizontal",Y.isImmersive&&Y.enableLivingroomLayout&&!Y.isWatchWhileMode)};
return Y};
_.r(j8,_.Z);_.z=j8.prototype;_.z.updateIsOverlay=function(Y){this.isOverlay=Y.detail.value};
_.z.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.f("web_enable_flexible_overlay")||_.f("web_enable_format_first")||_.f("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.z.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.z.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.z.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.z.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.z.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.z.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.mG("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.mG("reels_action_justified_content")||"flex-start")};
_.z.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}}};
_.z.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Td("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Td("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Td("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Td("SHARE_LABEL",
void 0,"Share")}}});_.f("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Td("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()};
_.z.setEmptyOverlayMetadata=function(){_.f("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}))};
_.y6.Object.defineProperties(j8.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.infoPanel)}}});
j8.prototype.onIsActiveChanged=j8.prototype.onIsActiveChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],j8.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],j8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],j8.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],j8.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],j8.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],j8.prototype,"isActive",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],j8.prototype,"hidden",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],j8.prototype,"useShortsIcon",void 0);_.Q([_.X({value:"left"}),_.k("design:type",String)],j8.prototype,"buttonTooltipPosition",void 0);
_.Q([_.X({value:_.f("reels_enable_livingroom_layout")?"top":"left"}),_.k("design:type",String)],j8.prototype,"likeButtonTooltipPosition",void 0);_.Q([_.X({value:"none"}),_.k("design:type",String)],j8.prototype,"textTransform",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],j8.prototype,"showScrubber",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],j8.prototype,"isWatchWhileMode",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.infoPanel"),_.k("design:type",Object),_.k("design:paramtypes",[])],j8.prototype,"hasInfoPanel",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],j8.prototype,"enableAnchoredPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],j8.prototype,"anchoredPanelActive",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],j8.prototype,"enableLivingroomLayout",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],j8.prototype,"enablePlayerMetadataContainer",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],j8.prototype,"enableSqueezebackPanels",void 0);_.Q([_.X({selector:_.pN8,reflectToAttribute:!0}),_.k("design:type",Object)],j8.prototype,"isSqueezebackActive",void 0);_.Q([_.X({selector:Lfo,reflectToAttribute:!0}),_.k("design:type",Object)],j8.prototype,"smallScreenSqueezeback",void 0);
_.Q([_.X({selector:wV6}),_.k("design:type",Object)],j8.prototype,"isPlayerStarted",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],j8.prototype,"overlayDensity",void 0);_.Q([_.X(),_.k("design:type",Object)],j8.prototype,"isOverlay",void 0);_.Q([_.X({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.k("design:type",Boolean)],j8.prototype,"isShortsOverlay",void 0);_.Q([_.X(),_.k("design:type",Object)],j8.prototype,"isImmersive",void 0);
_.Q([_.X(),_.k("design:type",Object)],j8.prototype,"isImmersiveHorizontal",void 0);_.Q([_.X({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.k("design:type",Boolean)],j8.prototype,"isShortsImmersive",void 0);_.Q([_.X({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.k("design:type",Object)],j8.prototype,"buttonOverride",void 0);_.Q([_.X({selector:_.BB,reflectToAttribute:!0}),_.k("design:type",Object)],j8.prototype,"isFullscreen",void 0);
_.Q([_.zY("isActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],j8.prototype,"onIsActiveChanged",null);j8=_.Q([_.t({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],j8);
_.A(j8,"ytd-reel-player-overlay-renderer",function(){if(OHd!==void 0)return OHd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[buttonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return OHd=Y},{mode:1});var S3I;var Jb=function(){var Y=_.Z.apply(this,arguments)||this;Y.videoDuration=0;Y.playedTime=0;Y.isActive=!1;Y.JSC$19527_playerEvents=new Map;return Y};
_.r(Jb,_.Z);_.z=Jb.prototype;_.z.created=function(){this.JSC$19527_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19527_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.z.attached=function(){this.getPlayerAndInitializeListeners()};
_.z.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19527_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.up(this,this.onPageChanged))};
_.z.getPlayerAndInitializeListeners=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return S=_.Q5(),S?_.q(P,S.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.up(Y,Y.onPageChanged)),P.jumpTo(0));Y.player=P.yieldResult;Y.initializePlayerListeners();_.Yt(P)})};
_.z.onPageChanged=function(Y){var S=this;return _.B(function(P){if(P.nextAddress==1)return Y.detail.newPageType!=="ytd-shorts"?P.return():_.q(P,_.ks().getPlayerPromise(),2);S.player=P.yieldResult;S.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.up(S,S.onPageChanged));_.Yt(P)})};
_.z.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19527_playerEvents)};
_.z.onVideoDataChange=function(Y){var S=this;return _.B(function(P){if(!S.player||Y.type!=="newdata")return P.return();S.videoDuration=_.f("web_shorts_use_progress_state_for_gapless")?S.player.getProgressState(Y.playertype).seekableEnd:S.player.getDuration(Y.playertype);S.playedTime=0;_.Yt(P)})};
_.z.onVideoProgress=function(Y){var S=this,P,u;return _.B(function(W){if(!S.player)return W.return();P=S.player.getPresentingPlayerType();u=S.player.getPlayerState();S.videoDuration=_.f("web_shorts_use_progress_state_for_gapless")?S.player.getProgressState(P).seekableEnd:S.player.getDuration(P);S.playedTime=u===0?S.videoDuration:Y;_.Yt(W)})};
_.z.getPercentPlayed=function(Y,S){return Y?_.wx(S/Y,0,1):0};
_.y6.Object.defineProperties(Jb.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var Y="";return Y=this.videoDuration&&this.playedTime?Y+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):Y+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Jb.prototype,"componentBehavior",void 0);_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],Jb.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Jb.prototype,"player",void 0);_.Q([_.X(),_.k("design:type",Object)],Jb.prototype,"videoDuration",void 0);_.Q([_.X(),_.k("design:type",Object)],Jb.prototype,"playedTime",void 0);_.Q([_.X(),_.k("design:type",Object)],Jb.prototype,"isActive",void 0);
_.Q([_.d("videoDuration","playedTime"),_.k("design:type",Number),_.k("design:paramtypes",[])],Jb.prototype,"percentPlayed",null);_.Q([_.d("videoDuration","playedTime"),_.k("design:type",Object),_.k("design:paramtypes",[])],Jb.prototype,"percentPlayedStyle",null);_.Q([_.d("videoDuration","isActive"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Jb.prototype,"hideProgressBar",null);
_.A(Jb,"ytd-progress-bar-line",function(){if(S3I===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);S3I=Y}Y=S3I;return Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var PQZ;_.Vz(_.CD1,"desktop-shorts-volume-controls",{propNames:["noSlider"]});var B5=function(){var Y=_.Z.apply(this,arguments)||this;Y.playerState=null;Y.isMuted=!1;var S;if(S=_.f("web_shorts_pip_button"))_.E().resolve(_.L$c),S=!!window.documentPictureInPicture&&_.Df();Y.shortsPipButtonEnabled=S;Y.JSC$19530_playerEvents=new Map;return Y};
_.r(B5,_.Z);_.z=B5.prototype;_.z.created=function(){this.JSC$19530_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19530_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.z.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.TI(28662);this.playPauseButtonClientVE=_.TI(36842);this.fullscreenButtonToggleOffClientVE=_.TI(222256);this.fullscreenButtonToggleOnClientVE=_.TI(222257);var Y=_.pM(),S=_.wf();Y&&S&&(_.f("combine_ve_grafts")?(_.Ym(_.BF(),this.muteButtonClientVE,S),_.Ym(_.BF(),this.playPauseButtonClientVE,S)):_.Ar(Y,S,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.z.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19530_playerEvents),this.player=null)};
_.z.getPlayerAndInitializeListeners=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return S=_.Q5(),S?_.q(P,S.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.up(Y,Y.onPageChanged)),P.jumpTo(0));Y.player=P.yieldResult;Y.initializePlayerListeners();_.Yt(P)})};
_.z.onPageChanged=function(Y){var S=this;return _.B(function(P){if(P.nextAddress==1)return Y.detail.newPageType!=="ytd-shorts"?P.return():_.q(P,_.ks().getPlayerPromise(),2);S.player=P.yieldResult;S.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.up(S,S.onPageChanged));_.Yt(P)})};
_.z.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19530_playerEvents)};
_.z.onPlayerStateChange=function(Y){this.playerState=Y};
_.z.onPlayerVolumeChange=function(Y){this.isMuted=Y.muted};
_.z.onPlayPauseButtonClick=function(){var Y=this,S,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,_.ks().getPlayerPromise(),2);S=u.yieldResult;(P=_.pM())&&Y.playPauseButtonClientVE&&_.ko(P,Y.playPauseButtonClientVE);S.getPlayerState()!==1?S.playVideo():S.pauseVideo();_.Yt(u)})};
_.z.computePlayPauseIcon=function(Y){return Y===2||Y===-1||Y===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.z.computeFullscreenLabel=function(Y){return Y?_.Td("FULLSCREEN_EXIT_LABEL"):_.Td("FULLSCREEN_ENTER_LABEL")};
_.z.computeShortsPipLabel=function(Y){return Y?_.Td("MINIPLAYER_CLOSE"):_.Td("OPEN_IN_MINIPLAYER")};
_.z.computePlayPauseLabel=function(Y){return Y===1||Y===3?_.Td("PLAYER_LABEL_PAUSE"):_.Td("PLAYER_LABEL_PLAY")};
_.z.onMuteButtonClick=function(){var Y=this,S,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,_.ks().getPlayerPromise(),2);S=u.yieldResult;(P=_.pM())&&Y.muteButtonClientVE&&_.ko(P,Y.muteButtonClientVE);S.isMuted()?S.unMute(!0):S.mute(!0);_.Yt(u)})};
_.z.computeMuteIcon=function(Y){return Y?"miniplayer:volume-off":"miniplayer:volume-up"};
_.z.computeMuteLabel=function(Y){return Y?_.Td("PLAYER_LABEL_UNMUTE"):_.Td("PLAYER_LABEL_MUTE")};
_.z.onFullscreenButtonClick=function(){var Y=_.pM();Y&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.ko(Y,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.ko(Y,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.Jc1()};
_.z.onShortsPipButtonClick=function(){var Y=_.E().resolve(_.Nn);if(_.f("web_shorts_pip")){var S=_.E().resolve(_.l1);Y.isShortsPipActive()?S.deactivate():S.isMiniplayerActive()||(_.nd().shortsPipActivation=!0,_.U86(S))}};
_.y6.Object.defineProperties(B5.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var Y=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){Y.onPlayPauseButtonClick()}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen)}}},
shortsPipButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeShortsPipLabel(this.isShortsPipActive),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeShortsPipLabel(this.isShortsPipActive)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"screen_full_exit":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],B5.prototype,"componentBehavior",void 0);_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],B5.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],B5.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],B5.prototype,"player",void 0);_.Q([_.X(),_.k("design:type",Object)],B5.prototype,"playerState",void 0);_.Q([_.X(),_.k("design:type",Object)],B5.prototype,"isMuted",void 0);
_.Q([_.X({computed:"computePlayPauseIcon(playerState)"}),_.k("design:type",String)],B5.prototype,"playPauseIcon",void 0);_.Q([_.X({computed:"computeMuteIcon(isMuted)"}),_.k("design:type",String)],B5.prototype,"muteIcon",void 0);_.Q([_.X({selector:_.BB}),_.k("design:type",Boolean)],B5.prototype,"isFullscreen",void 0);_.Q([_.X({selector:_.cB}),_.k("design:type",Boolean)],B5.prototype,"isShortsPipActive",void 0);_.Q([_.X(),_.k("design:type",Object)],B5.prototype,"shortsPipButtonEnabled",void 0);
_.Q([_.d("playerState"),_.k("design:type",Object),_.k("design:paramtypes",[])],B5.prototype,"playPauseButtonData",null);_.Q([_.d("isFullscreen"),_.k("design:type",Object),_.k("design:paramtypes",[])],B5.prototype,"fullscreenButtonData",null);_.Q([_.d("isShortsPipActive"),_.k("design:type",Object),_.k("design:paramtypes",[])],B5.prototype,"shortsPipButtonData",null);_.Q([_.d("isFullscreen"),_.k("design:type",String),_.k("design:paramtypes",[])],B5.prototype,"fullscreenIcon",null);
_.Q([_.d("isShortsPipActive"),_.k("design:type",String),_.k("design:paramtypes",[])],B5.prototype,"shortsPipIcon",null);
_.A(B5,"ytd-shorts-player-controls",function(){if(PQZ===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n<yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);PQZ=Y}Y=PQZ;return Y},{mode:1});var uwX;_.AL(_.Abh,"yt-interstitial-view-model",{props:{data:_.wm}});var Wdj=_.AI(function(Y){var S=Y.data;return _.R("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.R("h1",{class:"reelWatchBreakViewModelHostTitle"},_.R(_.qw,{text:function(){return S().title}})),_.R("h2",{class:"reelWatchBreakViewModelHostBody"},_.R(_.qw,{text:function(){return S().body},
isOverlay:!0})),_.R(_.rv,{data:function(){return S().buttons}},{buttonViewModel:function(P,u){return _.R("div",{class:function(){return u()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.R(_.aq,{data:P.data}))}}))},"Wh");
Wdj.idomCompat=!0;_.AL(Wdj,"reel-watch-break-view-model",{props:{data:_.wm}});var c5=function(){return _.Z.apply(this,arguments)||this};
_.r(c5,_.Z);c5.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}}};
_.y6.Object.defineProperties(c5.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.g((Y=this.data)==null?void 0:Y.renderer,kQd)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.g((Y=this.data)==null?void 0:Y.renderer,MJI)}}});
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],c5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],c5.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],c5.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],c5.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.renderer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],c5.prototype,"isSurvey",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.renderer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],c5.prototype,"isInterstitialViewModel",null);c5=_.Q([_.t({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],c5);
_.A(c5,"ytd-reel-non-video-content-renderer",function(){if(uwX!==void 0)return uwX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
return uwX=Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var zHj;_.AL(_.FzZ,"desktop-shorts-player-controls",{});var CO=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPlayerPaused=!1;Y.isPlayerStarted=!1;Y.showPlayerControls=!1;Y.showScrubber=!1;Y.autoHideJobId=0;Y.modern=_.f("web_button_rework");Y.overlayType=_.mG("web_shorts_expanded_overlay_type");Y.panelData=void 0;Y.isWatchWhileMode=!1;Y.hasError=!1;Y.panelShowDelayMs=1;Y.scrubberComponent={};Y.useStamper=_.f("web_shorts_enable_title_deflation");Y.isFullscreen=!1;Y.shouldHideOverlay=!1;Y.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");
Y.enablePersistentAnchoredPanel=_.f("desktop_shorts_v2_persistent_anchored_panel");Y.hideWatchWhilePanel=_.f("web_shorts_hide_watch_while_panel");Y.isPersistentPanelActive=!1;Y.anchoredPanelActive=!1;Y.isShortsPipActive=!1;Y.smallScreenSqueezeback=!1;Y.enableFlexibleOverlay=_.f("web_enable_flexible_overlay");Y.overlayDensity=0;Y.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
Y.onWindowResized=function(){_.pc(Y,"calculateOverlayDensity",function(){Y.calculateOverlayDensity()},100)};
return Y};
_.r(CO,_.Z);_.z=CO.prototype;_.z.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.z.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.z.shouldRenderOverlayControl=function(Y){return!this.useStamper&&this.isVideoContent(Y)};
_.z.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var Y=_.E().resolve(_.Rr);this.isWatchWhileMode&&(_.f("web_enable_shorts_new_carousel")?_.wc.addJob(function(){Y.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):Y.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.z.handleShowReelsCommentsOverlayCommand=function(Y){Y=_.g(Y,HH1);this.isActive&&(Y==null?0:Y.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.z.updateEngagementPanelVisibility=function(Y,S){Y&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:S?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:Y}})};
_.z.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.z.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.E().resolve(_.Nn).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.z.handleWatchWhilePanelScrimClick=function(){var Y=_.E().resolve(_.Rr);this.activeWatchWhilePanel&&(Y.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.z.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.z.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:_.f("web_enable_shorts_new_carousel")?0:void 0}}};
_.z.handlePlayerClick=function(Y){var S=this,P,u;if((u=(P=window).matchMedia)!=null&&u.call(P,"(any-pointer: coarse)").matches||!Y)this.showPlayerControls=!0,_.wc.cancelJob(this.autoHideJobId),this.autoHideJobId=_.hp(_.wc,function(){S.showPlayerControls=!1},4E3)};
_.z.isFirstReel=function(){return this.index===0};
_.z.handleMouseenter=function(){_.wc.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.z.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.z.handleScrubberEnter=function(){this.showScrubber=!0};
_.z.handleScrubberLeave=function(){this.showScrubber=!1};
_.z.maybeLogNonDefaultAspectRatio=function(){var Y;(Y=this.data)!=null&&Y.thumbnail&&this.isActive&&.5625!==anI(this.data.thumbnail)&&_.C31("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.z.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var Y=document.querySelector("#shorts-container");if(Y){Y=Y.offsetWidth-96-this.playerContainer.offsetWidth-72;Y=Y>=720?1:Y>=360?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&Y===1&&(Y=0);this.isPersistentPanelActive&&(Y=0);this.overlayDensity=Y;var S;(S=this.onOverlayDensityChanged)==null||S.call(this,this.index,this.overlayDensity)}}};
_.z.onOverlayDensityChange=function(){var Y;(Y=this.onOverlayDensityChanged)==null||Y.call(this,this.index,this.overlayDensity);(Y=_.I(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&Y.set("overlayDensity",this.overlayDensity);if(Y=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))Y.overlayDensity=this.overlayDensity};
_.z.isVideoContent=function(Y){_.E().resolve(_.Nn);return!!_.g(Y,_.bM)};
_.z.isNonVideoContent=function(Y){_.E().resolve(_.Nn);return!!_.g(Y,_.vg)};
_.z.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.y6.Object.defineProperties(CO.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var Y,S;return _.f("web_enable_format_first")||((Y=this.data)==null?void 0:Y.adsOverlay)&&_.f("web_enable_format_first_ads_only")||((S=this.data)==null?void 0:S.reelPlayerOverlayRenderer)&&_.f("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var Y;return!this.isActive||!this.isPlayerStarted||(Y=this.data)!=null&&Y.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var Y;if(this.useStamper&&((Y=this.data)==null?0:Y.command)&&this.isVideoContent(this.data.command)){var S,P;if(((S=this.data)==null?0:S.adsOverlay)&&Object.keys((P=this.data)==null?void 0:P.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var u,W;if(((u=this.data)==null?0:u.reelPlayerOverlayRenderer)&&Object.keys((W=this.data)==null?void 0:W.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
CO.prototype.onOverlayDensityChange=CO.prototype.onOverlayDensityChange;CO.prototype.calculateOverlayDensity=CO.prototype.calculateOverlayDensity;CO.prototype.maybeLogNonDefaultAspectRatio=CO.prototype.maybeLogNonDefaultAspectRatio;CO.prototype.onEngagementPanelsChanged=CO.prototype.onEngagementPanelsChanged;CO.prototype.onScrubberDataChange=CO.prototype.onScrubberDataChange;CO.prototype.updateShouldHideOverlay=CO.prototype.updateShouldHideOverlay;
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],CO.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],CO.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],CO.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Number)],CO.prototype,"index",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],CO.prototype,"isActive",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],CO.prototype,"isHiddenInDom",void 0);_.Q([_.X(),_.k("design:type",Object)],CO.prototype,"isPlayerPaused",void 0);_.Q([_.X({selector:wV6}),_.k("design:type",Object)],CO.prototype,"isPlayerStarted",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"showPlayerControls",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"showScrubber",void 0);_.Q([_.X(),_.k("design:type",Object)],CO.prototype,"autoHideJobId",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"modern",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"overlayType",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],CO.prototype,"ytdReduxBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],CO.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],CO.prototype,"watchWhileEngagementPanels",void 0);_.Q([_.X(),_.k("design:type",Object)],CO.prototype,"panelData",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"isWatchWhileMode",void 0);_.Q([_.X(),_.k("design:type",String)],CO.prototype,"activeWatchWhilePanel",void 0);
_.Q([_.X(),_.k("design:type",Object)],CO.prototype,"hasError",void 0);_.Q([_.X(),_.k("design:type",Object)],CO.prototype,"panelShowDelayMs",void 0);_.Q([_.X(),_.k("design:type",Object)],CO.prototype,"scrubberComponent",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"useStamper",void 0);_.Q([_.X({selector:_.BB,reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"isFullscreen",void 0);
_.Q([_.X(),_.k("design:type",Object)],CO.prototype,"shouldHideOverlay",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"enableAnchoredPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"enablePersistentAnchoredPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"hideWatchWhilePanel",void 0);
_.Q([_.X({selector:_.pN8,reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"isPersistentPanelActive",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"anchoredPanelActive",void 0);_.Q([_.X({selector:_.cB,reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"isShortsPipActive",void 0);_.Q([_.X({selector:Lfo,reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"smallScreenSqueezeback",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],CO.prototype,"enableFormatFirst",null);_.Q([_.X(),_.k("design:type",Object)],CO.prototype,"enableFlexibleOverlay",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CO.prototype,"overlayDensity",void 0);_.Q([_.X(),_.k("design:type",Function)],CO.prototype,"onOverlayDensityChanged",void 0);
_.Q([_.X(),_.d("isActive","hasError"),_.k("design:type",Object),_.k("design:paramtypes",[])],CO.prototype,"shouldRenderPlayerElements",null);_.Q([_.X(),_.d("isActive","isWatchWhileMode"),_.k("design:type",Object),_.k("design:paramtypes",[])],CO.prototype,"watchWhileOrPersistentActive",null);_.Q([_.zY("isActive","hasError","showingExpandedOverlay"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CO.prototype,"updateShouldHideOverlay",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("isActive","isPlayerStarted","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],CO.prototype,"shouldRenderScrubber",null);_.Q([_.zY("shouldRenderScrubber"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CO.prototype,"onScrubberDataChange",null);_.Q([_.d("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],CO.prototype,"overlayComponent",null);
_.Q([_.zY("watchWhileEngagementPanels"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CO.prototype,"onEngagementPanelsChanged",null);_.Q([_.nc("#player-container"),_.k("design:type",HTMLElement)],CO.prototype,"playerContainer",void 0);_.Q([_.nc("#cinematic-container"),_.k("design:type",HTMLElement)],CO.prototype,"cinematicContainer",void 0);
_.Q([_.zY("isPersistentPanelActive","data.thumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CO.prototype,"maybeLogNonDefaultAspectRatio",null);_.Q([_.zY("isPersistentPanelActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CO.prototype,"calculateOverlayDensity",null);_.Q([_.zY("overlayDensity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CO.prototype,"onOverlayDensityChange",null);
CO=_.Q([_.t({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],CO);
_.A(CO,"ytd-reel-video-renderer",function(){if(zHj!==void 0)return zHj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return zHj=Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var q_=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPreviousPageShorts=!1;Y.index=0;Y.delayedActiveIndex=0;Y.playablePreviousIndex=null;Y.isPlayerPaused=!1;Y.isPlayerStarted=!1;Y.intersectionObserverThreshold=.6;Y.fitToVisibleBounds=!1;Y.pageSubtype="shorts";Y.panelShowDelayMs=_.z_("enable_shorts_panel_show_delay_ms");Y.enablePreviousContinuation=_.f("shorts_in_playlists_web");Y.shortsPipEnabled=_.f("web_shorts_pip");Y.isDark=document.documentElement.hasAttribute("dark");Y.shortsViewTransitions=
_.f("web_shorts_view_transitions");Y.isFullscreen=!1;Y.isShortsPipActive=!1;Y.buttonOverride={iconPosition:"icon-only",size:"XL"};Y.anchoredPanelActive=!1;Y.isActive=!1;Y.smallScreenPersistentPanel=!1;Y.isPersistentPanelActive=!1;Y.smallScreenSqueezeBack=!1;Y.enableScrollIntoViewCenter=_.f("web_scroll_into_view_center");Y.formatFirst=_.f("web_enable_format_first")||_.f("web_enable_format_first_ads_only")||_.f("web_enable_format_first_organic_only");Y.enableFlexibleOverlay=_.f("web_enable_flexible_overlay");
Y.isShortsInitialized=!1;Y.hidePreviousButtonImmediately=!1;Y.showPreviousButtonImmediately=!1;Y.endOfNextContinuation=!1;Y.currentPlayerIndex=0;Y.nextReelVe=_.TI(56921);Y.prevReelVe=_.TI(56922);Y.loopToggleOffVe=_.TI(198013);Y.loopToggleOnVe=_.TI(198014);Y.ambientModeToggleVe=_.TI(227860);Y.reelPlayerPausedStateRendererVe=_.TI(141313);Y.storedPlaybackSpeed=null;Y.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand",
"yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts"};Y.onOverlayDensityChanged=function(S,P){var u;(u=Y.getActiveReelVideo(S))==null||u.setAttribute("overlay-density",String(P))};
return Y};
_.r(q_,_.Z);_.z=q_.prototype;
_.z.deflateInactivePreviousSlides=function(){var Y=_.z_("web_shorts_deflate_inactive_slides_aggressive_distance");if(Y>0&&this.shortsProcessedSequence&&this.activeIndex){Y=this.activeIndex-Y;for(var S=0;S<=Y;S++){var P=void 0;((P=this.shortsProcessedSequence[S].reelPlayerOverlayRenderer)==null?0:P.likeButton)&&this.set("shortsProcessedSequence."+S+".reelPlayerOverlayRenderer",{});P=void 0;((P=this.shortsProcessedSequence[S].adsOverlay)==null?0:P.adSlotMetadata)&&this.set("shortsProcessedSequence."+S+
".adsOverlay",{})}}};
_.z.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.z.onResize=function(){var Y=_.Na(),S=Y.dispatch,P=this.calculateIsSmallWidth();S.call(Y,_.WT({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:P}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.z.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:_.f("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:0}}};
_.z.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var Y=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,S=Y,P=0;Y<250&&(S=Y+this.shortsInnerContainer.clientWidth,P=24);_.PZ(this.hostElement,{"--ytd-shorts-header-width":S+"px","--ytd-shorts-top-spacing":P+"px"})}};
_.z.isFirstShorts=function(Y){return Y?this.index===-Y.length:this.index===0};
_.z.isActiveReel=function(Y,S,P){P&&(S=this.calculatePrevIndex(S,P));return Y===S};
_.z.onFullscreenChange=function(){if(_.f("web_fullscreen_shorts")){var Y;(Y=this.getActiveReelVideo(this.activeIndex))==null||Y.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.E().resolve(_.l1).close(!0)}};
_.z.engagementPanelsChanged=function(){var Y;this.watchWhileEngagementPanels=(Y=this.data)==null?void 0:Y.engagementPanels};
_.z.unregisterPanels=function(){var Y=_.E().resolve(_.Rr);if(this.watchWhileEngagementPanels)for(var S=_.n(this.watchWhileEngagementPanels),P=S.next();!P.done;P=S.next()){var u=void 0,W=void 0;P=(u=P.value.engagementPanelSectionListRenderer)==null?void 0:(W=u.identifier)==null?void 0:W.tag;Y&&P&&Y.panelMap.delete(P)}};
_.z.isVideoContent=function(Y){return this.isVideoContentCommand(Y==null?void 0:Y.command)};
_.z.getActiveReelVideo=function(Y){return _.I(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+Y+'"]')};
_.z.calculatePrevIndex=function(Y,S){return S?Y-((S==null?void 0:S.length)||0):-1};
_.z.onKeydown=function(Y){var S=_.iM(Y)||[];if(!_.n2d(S))if(Y.code==="ArrowUp")Y.preventDefault(),this.handlePrevButtonClick();else if(Y.code==="ArrowDown")Y.preventDefault(),this.handleNextButtonClick();else if(Y.code==="KeyM")this.toggleMuteUnmuteVideo();else if(Y.code==="KeyK"||Y.code==="Space")this.togglePlayPauseVideo();else if((Y.code==="KeyA"||Y.code==="ArrowLeft")&&_.f("web_shorts_keyboard_enable_seek_shortcuts")){var P;(P=this.player)==null||P.seekBy(-5)}else if((Y.code==="KeyD"||Y.code===
"ArrowRight")&&_.f("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var u;(u=this.player)==null||u.seekBy(5)}};
_.z.onServiceRequestCompleted=function(Y,S){Y=S.data;Y.continuationEndpoint&&Y.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:Y.entries,continuationEndpoint:Y.continuationEndpoint}}):Y.prevContinuationEndpoint&&Y.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:Y.prevEntries,prevContinuationEndpoint:Y.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.z.handleEngagementPanelVisibilityChanged=function(Y,S){var P=_.E().resolve(_.Rr);if(Y&&P){var u,W=((u=Y.identifier)==null?void 0:u.tag)||Y.panelIdentifier||Y.targetId;if(S==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==W){P.hidePanel(this.activePanel);var m;this.activePanel=((m=Y.identifier)==null?void 0:m.tag)||Y.panelIdentifier}else this.isPersistentPanelActive=!0,_.Na().dispatch(XVI(!0)),this.anchoredPanelActive=!0,this.activePanel=W;else S==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===W&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Na().dispatch(XVI(!1)))}};
_.z.handlePanelScrimClick=function(){var Y=_.E().resolve(_.Rr);this.activePanel&&(Y.hidePanel(this.activePanel),_.Na().dispatch(XVI(!1)))};
_.z.getShortsLoopSetting=function(){var Y,S,P,u,W;return _.B(function(m){switch(m.nextAddress){case 1:return _.f("kevlar_shorts_auto_advance")?_.q(m,_.bA.getInstance(),2):m.return(!0);case 2:return(Y=m.yieldResult)?_.q(m,Y.get("sfvles"),3):m.return(!0);case 3:return P=(S=m.yieldResult)!=null?S:!1,_.q(m,Y.get("sfvle"),4);case 4:return W=(u=m.yieldResult)!=null?u:!0,P?m.return(W):m.return(!0)}})};
_.z.handleSignalActionToggleLoopShortsOff=function(){var Y=this,S,P,u;return _.B(function(W){switch(W.nextAddress){case 1:if(!Y.player)return W.return();Y.player.setLoopVideo(!1);S=_.BF();_.Pp(S,Y.loopToggleOffVe);return _.q(W,_.bA.getInstance(),2);case 2:return(P=W.yieldResult)?_.q(W,P.set("sfvle",!1),3):W.return();case 3:return _.q(W,P.set("sfvles",!0),4);case 4:u=_.$o(),_.rP(0,203,!1),_.rP(0,204,!0),u.save(),_.Yt(W)}})};
_.z.handleSignalActionToggleLoopShortsOn=function(){var Y=this,S,P,u;return _.B(function(W){switch(W.nextAddress){case 1:if(!Y.player)return W.return();Y.player.setLoopVideo(!0);S=_.BF();_.Pp(S,Y.loopToggleOnVe);return _.q(W,_.bA.getInstance(),2);case 2:return(P=W.yieldResult)?_.q(W,P.set("sfvle",!0),3):W.return();case 3:return _.q(W,P.set("sfvles",!0),4);case 4:u=_.$o(),_.rP(0,203,!0),_.rP(0,204,!0),u.save(),_.Yt(W)}})};
_.z.handleSignalActionToggleCinematicShortsOn=function(){Inu(!0);var Y;(Y=this.JSC$19554_cinematicController)==null||_.hVu(Y,!0);_.Pp(_.BF(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.z.handleSignalActionToggleCinematicShortsOff=function(){Inu(!1);var Y;(Y=this.JSC$19554_cinematicController)==null||_.hVu(Y,!1);_.Pp(_.BF(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.z.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.z.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.z.unhideCurrentOverlay=function(){if(this.overlayContainer){var Y=this.overlayContainer.querySelector("#experiment-overlay");Y&&_.wc.addLowPriorityJob(function(){Y.style.display="unset"},100)}};
_.z.getCurrentShort=function(){if(this.currentEndpoint){var Y=this.currentEndpoint;if(this.isNonVideoContentCommand(Y)){var S=_.g(Y,_.vg);return{reelNonVideoContentRenderer:_.g(S==null?void 0:S.renderer,_.HrJ),command:Y}}if(this.data){var P;S=(P=_.g(this.currentEndpoint,_.bM))==null?void 0:P.thumbnail;var u;P=(u=this.data.overlay)==null?void 0:u.reelPlayerOverlayRenderer;_.E().resolve(_.Nn);var W,m;u=_.g((W=this.data.overlay)==null?void 0:(m=W.shortsAdsRenderer)==null?void 0:m.overlay,_.wWJ);Y=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.g(this.currentEndpoint,_.bM),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:P,thumbnail:S,command:Y,adsOverlay:u}}}};
_.z.created=function(){var Y=this;this.scrollToVideoThrottle=new _.NE(function(S){var P;(P=Y.getActiveReelVideo(S))==null||P.scrollIntoView({behavior:"smooth",block:"nearest",inline:Y.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.NE(function(S){var P;(P=Y.getActiveReelVideo(S))==null||P.scrollIntoView({behavior:"auto",block:"nearest",inline:Y.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.z.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.z.attached=function(){var Y=this;dtI(this);this.pageScrollElement=_.I(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.up(this,this.processResetAction));_.f("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.f("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var S=Y.getActiveReelVideo(Y.activeIndex);
Y.maybeCreateIntersectionObserver();S==null||S.scrollIntoView({behavior:"instant",block:"nearest",inline:Y.enableScrollIntoViewCenter?"center":"start"});Y.shortsContainer.style.overflowY="scroll"}))};
_.z.calculateSqueezebackPanelSize=function(){var Y=this,S=window.innerWidth-456-(window.innerHeight-106)*.5625;_.wc.addLowPriorityJob(function(){S<360?_.Na().dispatch(ZH1(!0)):(Y.hostElement.style.setProperty("--anchored-panel-width",Math.min(S,480)+"px"),_.Na().dispatch(ZH1(!1)))})};
_.z.detached=function(){var Y=_.E().resolve(_.Nn);Y.rootElement=void 0;var S;(S=Y.unsubscribeFromStore)==null||S.call(Y);Y.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.up(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.z.onResizeFinished=function(Y,S){var P=this,u=new ResizeObserver(function(){P.shortsContainer.style.overflowY="hidden";_.wc.addLowPriorityJob(function(){S()},100)});
u.observe(Y);return u};
_.z.resetDocumentScrollTop=function(){var Y,S;if((Y=document)==null?0:(S=Y.scrollingElement)==null?0:S.scrollTop)document.scrollingElement.scrollTop=0};
_.z.loadPage_=function(Y){var S=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),Y){var P;if((P=_.g(this.currentEndpoint,_.bM))==null?0:P.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=Y;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){S.isPlayerStarted&&
(S.handleOnPlaybackCommand(),S.afterPlayerStarted=function(){})};
this.registerPanel(Y)}};
_.z.afterPlayerStarted=function(){};
_.z.handleOnPlaybackCommand=function(){if(_.f("web_shorts_comment_stickers")&&this.isPlayerStarted){var Y,S=(Y=_.g(this.currentEndpoint,_.bM))==null?void 0:Y.onPlaybackCommand;S&&this.ytComponentBehavior.resolveCommand(S)}};
_.z.maybeCreateIntersectionObserver=function(){var Y=this,S=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==S){this.intersectionObserverThreshold=S;var P={rootMargin:"0px",threshold:S},u;(u=this.intersectionObserver)==null||u.disconnect();this.intersectionObserver=new IntersectionObserver(function(W){W=_.n(W);for(var m=W.next();!m.done;m=W.next())if(m=m.value,m.intersectionRatio>S){m=Number(m.target.id);if(isNaN(m))break;if(m===Y.index)break;
_.k9u();Y.loadVideo(m);_.dP("r_vtc")}},P);
this.observeShorts()}};
_.z.observeShorts=function(){var Y=[].concat(_.cz(_.I(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;var P=void 0;(P=this.intersectionObserver)==null||P.observe(S)}};
_.z.initCsi=function(){_.fv("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var Y={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},S,P;if((S=this.playerData)==null?0:(P=S.cacheMetadata)==null?0:P.isCacheHit)Y.isCacheHit=!0;var u;if(S=(u=_.g(this.currentEndpoint,_.bM))==null?void 0:
u.prefetchTaskId)Y.prefetchInfo={taskId:S};_.wP(Y)};
_.z.isAd=function(){var Y,S;return!!((Y=_.g(this.currentEndpoint,_.bM))==null?0:(S=Y.adClientParams)==null?0:S.isAd)};
_.z.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.z.getPlayerContainer=function(){var Y;return(Y=_.I(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:Y.playerContainer};
_.z.onPlayerStateChange=function(Y){var S=this;this.isPlayerPaused=Y===2;Y!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?Y===1&&this.index===0&&(this.isPlayerStarted||_.Na().dispatch(W5(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Na().dispatch(W5(!0)));this.player&&!this.player.getLoopVideo()&&_.wc.addLowPriorityJob(function(){S.getShortsLoopSetting().then(function(P){var u;(u=S.player)==null||u.setLoopVideo(P)})});
this.isPlayerPaused&&_.f("web_shorts_paused_state_logging")&&_.UV(_.pM(),[this.reelPlayerPausedStateRendererVe])};
_.z.isInBackground=function(){var Y=window.document.visibilityState;return!(!Y||Y==="visible")};
_.z.isShortPlayable=function(){if(_.f("kevlar_playable_short_killswitch"))return!0;var Y;return(Y=this.playerData)!=null&&Y.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.z.setNormalPlaybackSpeed=function(){var Y=this,S,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,Y.getPlayer().getPlayerPromise(),2);S=u.yieldResult;P=S.getPlaybackRate();P!==1&&(Y.storedPlaybackSpeed=P,S.setPlaybackRate(1));_.Yt(u)})};
_.z.restorePlaybackSpeed=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1)return Y.storedPlaybackSpeed===null?P.jumpTo(0):_.q(P,Y.getPlayer().getPlayerPromise(),3);S=P.yieldResult;S.setPlaybackRate(Y.storedPlaybackSpeed);Y.storedPlaybackSpeed=null;_.Yt(P)})};
_.z.playerDataChanged=function(){var Y=this,S,P,u,W,m,J,c,C,x;return _.B(function(b){if(b.nextAddress==1){S=Y.getPlayer();_.f("web_shorts_dynamic_intersection_observer_threshold")&&((P=Y.intersectionObserver)==null||P.disconnect());if(Y.playerData){if(((u=Y.playerData.videoDetails)==null?void 0:u.videoId)!==((W=S.getPlayer())==null?void 0:W.getVideoData().video_id)){m={};if(J=_.g(Y.currentEndpoint,_.bM))m.watch_endpoint=J,J.endTimeSeconds&&(m.end=J.endTimeSeconds);S.loadVideoWithPlayerResponse(Y.playerData,
m)}}else return b.return();return Y.player?b.jumpTo(2):_.q(b,S.getPlayerPromise(),3)}b.nextAddress!=2&&(Y.player=b.yieldResult,Y.JSC$19554_playerStateChangeListener=Y.onPlayerStateChange.bind(Y),Y.player.addEventListener("onStateChange",Y.JSC$19554_playerStateChangeListener),_.f("kevlar_client_enable_shorts_player_bootstrap")&&_.NF(),Y.scrollToVideoThrottle.fire(Y.index),Y.movePlayerToVideo(Y.index),_.wc.addLowPriorityJob(function(){Y.getShortsLoopSetting().then(function(T){var K;(K=Y.player)==null||
K.setLoopVideo(T)})}),_.GXS.resolve(Y.player),Y.player.syncVolume(),Y.getPlayer().focusOnPlayer());
_.f("web_shorts_caption_language_entity_killswitch")||_.wc.addLowPriorityJob(function(){var T=_.E().resolve(_.Nn),K,G=(K=Y.player)==null?void 0:K.getOption("captions","track");K=_.JE("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(G){var v;((v=_.Jq(_.mkE,K)())==null?void 0:v.value)!==G.displayName&&T.store.dispatch(_.qE("stringEntity",K,{key:K,value:G.displayName||""}))}else T.store.dispatch(_.qE("stringEntity",K,{key:K,value:"CAPTIONS_UNAVAILABLE"}))});
_.wc.addLowPriorityJob(function(){Y.observeShorts()},100);
c=Y.player.getPlayerState(Y.player.getPresentingPlayerType());c!==1||Y.isPlayerStarted||_.Na().dispatch(W5(!0));Y.updateBackNavContainerWidth();C=_.g(Y.currentEndpoint,_.bM);((x=C)==null?0:x.startTimeSeconds)&&Y.player.seekTo(C.startTimeSeconds);if(Y.JSC$19554_cinematicController||Y.cinematicsInitializeJobId)return b.return();Y.cinematicsInitializeJobId=_.wc.addLowPriorityJob(function(){Y.initCinematicController();Y.cinematicsInitializeJobId=void 0});
_.Yt(b)})};
_.z.onShortUndoDismiss=function(){var Y=this,S=ln1().pop();S!==void 0&&(_.ky(this,function(){Y.showCardWithIndex(S)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.z.onShortsDismiss=function(Y){if(Y=Y.detail.reelDismissalActionRenderer)(Y=_.g(Y.onDismissalCompletionRenderer,_.PhB))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:Y}}}),this.scrollAndDismissCard()};
_.z.processReelNonVideoContentDismissalCommand=function(Y){var S=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);Y=_.g(Y,NNd);this.activeDimissalTimeout=setTimeout(function(){S.scrollAndDismissCard()},Number(Y==null?void 0:Y.delayMs))};
_.z.scrollAndDismissCard=function(){var Y=this,S=this.index;ln1().push(S);_.ky(this,function(){var P=Y.getPlayableNextIndex();P!==null&&(P=Y.getActiveReelVideo(P),Y.hideCardWithIndex(S),P==null||P.scrollIntoView({behavior:"smooth",block:"nearest",inline:Y.enableScrollIntoViewCenter?"center":"start"}))})};
_.z.hideCardWithIndex=function(Y){if(Y=this.getActiveReelVideo(Y))Y.hidden=!0};
_.z.showCardWithIndex=function(Y){if(Y=this.getActiveReelVideo(Y))Y.hidden=!1};
_.z.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.z.activeChanged=function(Y){_.Na().dispatch(_.WT({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:Y}}));if(Y)document.addEventListener("keydown",_.up(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var S;(S=this.player)==null||S.sendAbandonmentPing()}var P;(P=this.player)==null||P.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.up(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.z.graftClientVisualElements=function(){if(this.data){var Y=_.BF();_.Gn6(Y,_.Cb({response:this.reelWatchSequenceResponse}));_.Ym(Y,this.nextReelVe);_.Ym(Y,this.prevReelVe);_.f("kevlar_shorts_auto_advance")&&(_.Ym(Y,this.loopToggleOffVe),_.Ym(Y,this.loopToggleOnVe));_.Ym(Y,this.ambientModeToggleVe);_.UV(_.pM(),[this.nextReelVe,this.prevReelVe]);_.f("web_shorts_paused_state_logging")&&_.Ym(Y,this.reelPlayerPausedStateRendererVe)}};
_.z.graftNvcRenderer=function(){var Y,S,P,u,W=this.index<0?(Y=this.shortsProcessedPrevSequence)==null?void 0:(S=Y[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:S.command:(P=this.shortsProcessedSequence)==null?void 0:(u=P[this.index])==null?void 0:u.command;if(W&&this.isNonVideoContentCommand(W)){Y=_.g(W,_.vg);var m,J;(Y=(m=_.g(Y==null?void 0:Y.renderer,_.HrJ))==null?void 0:(J=m.loggingDirectives)==null?void 0:J.trackingParams)&&_.BF().graftServerVe(Y)}};
_.z.setActiveIndex=function(){_.E().resolve(_.Nn).setActiveIndex(this.index)};
_.z.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.z.lazyUpdateMiniplayerData=function(){var Y=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.wc.addLowPriorityJob(function(){Y.updateMiniplayerData();Y.updateMiniplayerDataJobId=void 0}))};
_.z.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.wc.cancelJob(this.updateMiniplayerDataJobId)};
_.z.updateMiniplayerData=function(){var Y,S,P,u=_.E().resolve(_.l1),W={shortsData:this.getCurrentShort(),previousButtonDisabled:!((Y=this.prevButtonData)==null||!Y.isDisabled),nextButtonDisabled:!((S=this.nextButtonData)==null||!S.isDisabled),playabilityStatus:(P=this.playerData)==null?void 0:P.playabilityStatus};_.TG(u,W)};
_.z.resetPlayerLocation=function(){var Y=this.getPlayer();this.initialPlayerContainer&&(Y.appendTo(this.initialPlayerContainer,void 0,!0),this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.z.movePlayerToVideo=function(Y,S){var P=this;S=S===void 0?!0:S;var u=this.getActiveReelVideo(Y),W=this.getPlayer();if(u){this.overlayContainer||(this.overlayContainer=_.I(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||W.appendTo(this.overlayContainer.playerContainer,void 0,!0));u.appendChild(this.overlayContainer);var m;(m=this.player)==null||m.setSize(NaN,NaN);this.isActive||_.hp(_.wc,function(){P.isActive=!0});
W.style.visibility="visible";_.f("reels_web_disable_rtr_tick")||_.f("reels_web_use_pbs_first_shorts")&&Y===0||_.Fk("r_tr");this.currentPlayerIndex=Y;u.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else S?_.wc.addLowPriorityJob(function(){P.movePlayerToVideo(P.index,!1)}):Math.random()<=_.z_("web_shorts_error_logging_threshold")&&_.F_(new _.$2("Trying to movePlayerToVideo with undefined container.",{firstAttempt:S,
index:Y}))};
_.z.enableFormatFirst=function(Y){return _.f("web_enable_format_first")||Y.adsOverlay&&_.f("web_enable_format_first_ads_only")||Y.reelPlayerOverlayRenderer&&_.f("web_enable_format_first_organic_only")};
_.z.getAspectRatio=function(Y){if(Y!=null&&Y.thumbnail&&this.enableFormatFirst(Y))return"--ytd-shorts-player-ratio: "+anI(Y.thumbnail)};
_.z.getBackgroundImage=function(Y){if(Y!=null&&Y.thumbnail)return(Y=_.Qz(Y.thumbnail.thumbnails))?'background-image:url("'+Y+'");':"background-color:black;"};
_.z.onPersistentPanelActiveChanged=function(){var Y=this.getCurrentShort();if(Y&&this.enableFormatFirst(Y)&&(Y==null?0:Y.thumbnail)&&anI(Y.thumbnail)!==.5625){var S;(S=this.player)==null||S.setSize(NaN,NaN)}};
_.z.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.z.maybeMoveCinematicsToVideo=function(){var Y=this;this.cinematicTransitionJobId&&_.wc.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.wc.addLowPriorityJob(function(){Y.moveCinematicsToVideo()},500)};
_.z.moveCinematicsToVideo=function(){var Y;(Y=this.JSC$19554_cinematicController)!=null&&(Y=Y.currentCinematicEffect)!=null&&(Y=Y.storyboardManager,Y.paused=!1,_.nVZ(Y),Y.update());Y=_.I(this.hostElement).querySelector("ytd-reel-video-renderer");(Y==null?0:Y.cinematicContainer)&&Y.cinematicContainer!==this.shortsCinematicContainer.parentElement&&Y.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.z.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.z.updatePrevButtonData=function(){var Y=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(Y){var S;this.prevButtonData=Y=Object.assign({},Y,{accessibility:{label:_.Td("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:Y.isDisabled||this.index===-(((S=this.shortsProcessedPrevSequence)==null?void 0:S.length)||0),tooltip:this.isUpArrowHidden?"":_.Td("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=Y=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.z.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.z.updateNextButtonData=function(){var Y=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(Y){var S;this.nextButtonData=Y=Object.assign({},Y,{accessibility:{label:_.Td("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:Y.isDisabled||this.index===((S=this.shortsProcessedSequence)==null?void 0:S.length),tooltip:_.Td("NEXT_VIDEO_LABEL")||""})}};
_.z.getPlayablePreviousIndex=function(){for(var Y,S=this.index-1;S>=-(((Y=this.prevShortsSequence)==null?void 0:Y.length)||0);S--)if(!ln1().includes(S))return S;return null};
_.z.getIndexInSequence=function(Y,S){return Y.findIndex(function(P){var u;return((u=_.g(P.command,_.bM))==null?void 0:u.videoId)===S})};
_.z.handlePrevButtonClick=function(Y){var S=this,P,u;return _.B(function(W){P=S.getPlayablePreviousIndex();if(P===null)return W.return();S.gestureType=((u=Y)==null?void 0:u.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";P===0&&(S.hidePreviousButtonImmediately=!0);if(S.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){S.transitionToVideoThrottle.fire(P)}),W.return();
S.scrollToVideoThrottle.fire(P);_.Yt(W)})};
_.z.getPlayableNextIndex=function(){for(var Y,S=this.index+1;S<(((Y=this.shortsProcessedSequence)==null?void 0:Y.length)||0);S++)if(!ln1().includes(S))return S;return null};
_.z.handleNextButtonClick=function(Y,S){var P=this,u,W;return _.B(function(m){u=P.getPlayableNextIndex();if(u===null)return m.return();u===1&&(P.showPreviousButtonImmediately=!0);P.gestureType=((W=Y)==null?void 0:W.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";S&&(P.gestureType=S);if(P.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){P.transitionToVideoThrottle.fire(u)}),m.return();
P.scrollToVideoThrottle.fire(u);_.Yt(m)})};
_.z.handleReelNavigateCommand=function(Y,S,P){(Y=_.g(Y,yGu))&&S&&Y.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(P)};
_.z.loadVideo=function(Y,S){S=S===void 0?!1:S;if(Y!==this.currentPlayerIndex){_.Na().dispatch(W5(!1));if(this.isAd()&&!S){var P;(P=this.player)==null||P.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.wc.cancelJob(this.cinematicTransitionJobId);if((S=this.JSC$19554_cinematicController)!=null){var u;(u=S.currentCinematicEffect)==null||u.pause()}if((u=this.JSC$19554_cinematicController)!=null){var W;(W=u.currentCinematicEffect)==null||W.clear()}u=Y>this.index;this.isShortsMiniplayerActive()&&
(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(u));this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var m,J,c,C;W=Y<0?(m=this.shortsProcessedPrevSequence)==null?void 0:(J=m[this.shortsProcessedPrevSequence.length+Y])==null?void 0:J.command:(c=this.shortsProcessedSequence)==null?void 0:(C=c[Y])==null?void 0:C.command;this.index=Y;this.gestureType||(this.gestureType=u?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");W&&this.isVideoContentCommand(W)&&(this.ytComponentBehavior.resolveCommand(W,{form:{createScreenConfig:{clickedVisualElement:u?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(W&&this.isNonVideoContentCommand(W)){this.currentEndpoint=W;this.data=void 0;m=_.BF();J=_.g(W,_.vg);var x,b;(J=(x=_.g(J==null?void 0:J.renderer,_.HrJ))==null?void 0:(b=x.screenLoggingData)==null?void 0:b.screenVeType)&&_.Ow(m,
J);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}x=_.z_("reels_enable_early_continuation_offset")<=0?1:_.z_("reels_enable_early_continuation_offset");var T,K;if(((T=this.reelWatchSequenceResponse)==null?0:T.continuationEndpoint)&&((K=this.reelWatchSequenceResponse)==null?0:K.entries)&&Y===this.reelWatchSequenceResponse.entries.length-x){var G,v;T={contentPlaybackContext:_.Tp({},(v=_.g((G=this.currentEndpoint)==null?void 0:G.commandMetadata,_.Yo))==null?void 0:
v.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:T})}var a,w,F;((a=this.reelWatchSequenceResponse)==null?0:a.prevContinuationEndpoint)&&Y===-(((w=this.reelWatchSequenceResponse)==null?void 0:(F=w.prevEntries)==null?void 0:F.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.z.setMiniplayerPreview=function(Y){Y=(Y===void 0?0:Y)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var S,P,u=_.E().resolve(_.l1),W={shortsData:void 0,shortsPreviewThumbnail:Y?(S=this.shortsProcessedSequence)==null?void 0:(P=S[Y])==null?void 0:P.thumbnail:void 0};_.TG(u,W)};
_.z.updateTitle=function(Y){var S,P;Y=(Y==null?0:Y.adPlacements)?"":(P=Y==null?void 0:(S=Y.videoDetails)==null?void 0:S.title)!=null?P:"";_.ms(this.hostElement,"yt-update-title",Y)};
_.z.registerPanel=function(Y){var S=_.E().resolve(_.Rr);if(S){Y=_.n(Y.engagementPanels||[]);for(var P=Y.next();!P.done;P=Y.next()){P=P.value;var u=P.engagementPanelSectionListRenderer,W=void 0,m=void 0,J=void 0,c=void 0,C=((W=u)==null?void 0:W.targetId)||((m=u)==null?void 0:m.panelIdentifier)||((J=u)==null?void 0:(c=J.identifier)==null?void 0:c.tag);W=u=void 0;(W=(u=S).registerPanelContent)==null||W.call(u,C,P)}}};
_.z.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;_.Na().dispatch(W5(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.Na().dispatch(XVI(!1));var Y=_.E().resolve(_.Nn);Y.dismissedIndices=[];Y.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.E().resolve(_.l1).close(!0)};
_.z.processAppendReelWatchSequenceContinuationEntriesAction=function(Y){var S=this,P;(P=this.intersectionObserver)==null||P.disconnect();Y=Y.appendReelWatchSequenceContinuationEntriesAction;if(Y==null?0:Y.entries){var u;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.cz(((u=this.reelWatchSequenceResponse)==null?void 0:u.entries)||[]),_.cz(Y.entries)),continuationEndpoint:Y.continuationEndpoint})}else if(Y==null?0:Y.prevEntries){var W;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.cz(((W=this.reelWatchSequenceResponse)==null?void 0:W.prevEntries)||[]),_.cz(Y.prevEntries)),prevContinuationEndpoint:Y.prevContinuationEndpoint});_.wc.addLowPriorityJob(function(){S.movePlayerToVideo(S.index);var m;(m=S.getActiveReelVideo(S.index))==null||m.scrollIntoView({block:"nearest",inline:S.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.wc.addLowPriorityJob(function(){S.observeShorts()},100)};
_.z.processWatchSequence=function(Y){var S=this;return Y.map(function(P){P=P.command;if(S.isVideoContentCommand(P)){var u=_.g(P,_.bM);return{reelPlayerOverlayRenderer:_.g(u==null?void 0:u.overlay,_.Vps),thumbnail:u.thumbnail,command:P}}return S.isNonVideoContentCommand(P)?(u=_.g(P,_.vg),{reelNonVideoContentRenderer:_.g(u==null?void 0:u.renderer,_.HrJ),command:P}):{command:P}})};
_.z.calculateIntersectionObserverThreshold=function(){if(!_.f("web_shorts_dynamic_intersection_observer_threshold"))return.6;var Y=_.I(this.hostElement).querySelector("ytd-reel-video-renderer"),S=1;(Y==null?0:Y.offsetHeight)&&(Y==null?0:Y.offsetWidth)&&(S=Math.min(Y.offsetHeight,this.shortsContainer.offsetHeight)/Y.offsetHeight*(Math.min(Y.offsetWidth,this.shortsContainer.offsetWidth)/Y.offsetWidth));return Math.round(S*.6*10)/10};
_.z.isVideoContentCommand=function(Y){_.E().resolve(_.Nn);return!!_.g(Y,_.bM)};
_.z.isNonVideoContentCommand=function(Y){_.E().resolve(_.Nn);return!!_.g(Y,_.vg)};
_.z.initCinematicController=function(){var Y=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19554_cinematicController=new _.u_(this.shortsCinematicContainer,this.player);var S,P=_.g((S=this.data)==null?void 0:S.background,_.TA);_.vVc(this.JSC$19554_cinematicController,P);_.hVu(this.JSC$19554_cinematicController,Dtu(P));_.GQ1(this.JSC$19554_cinematicController);_.wc.addLowPriorityJob(function(){Y.moveCinematicsToVideo()})}};
_.z.handleMiniplayerNavigateShorts=function(Y){Y==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():Y==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.z.shouldDisplayReelVideoOverlay=function(Y,S){return _.f("web_enable_shorts_new_carousel")?Math.abs(Y-S)<2:!0};
_.y6.Object.defineProperties(q_.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.reelWatchSequenceResponse)!=null&&Y.prevEntries)return this.processWatchSequence([].concat(_.cz(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var Y=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!Y)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var S=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.cz(this.prevShortsSequence.slice(0,S)),[Y],_.cz(this.prevShortsSequence.slice(S+
1)))}S=this.index+this.shortsProcessedPrevSequence.length;Y.thumbnail=this.shortsProcessedPrevSequence[S].thumbnail;return[].concat(_.cz(this.shortsProcessedPrevSequence.slice(0,S)),[Y],_.cz(this.shortsProcessedPrevSequence.slice(S+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.reelWatchSequenceResponse)!=null&&Y.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var Y=this.getCurrentShort();if(!Y||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[Y];if(Y==null||!Y.reelNonVideoContentRenderer){var S=this.getIndexInSequence(this.shortsSequence,_.g(this.currentEndpoint,_.bM).videoId);if(this.index===0&&S!==-1)return this.currentPlayerIndex=this.index=S,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.cz(this.shortsSequence.slice(0,this.index)),[Y],_.cz(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){Y.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var P,u,W,m;S=((u=_.g((P=this.shortsProcessedSequence[0])==null?void 0:P.command,_.bM))==null?void 0:u.videoId)===((m=_.g((W=this.shortsSequence[0])==null?void 0:W.command,_.bM))==null?void 0:m.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.cz(this.shortsProcessedSequence.slice(0,
this.index)),[Y],_.cz(this.shortsSequence.slice(S)))}return[Y].concat(_.cz(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var Y=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;Y&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(Y)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var Y,S;return this.index===((Y=this.reelWatchSequenceResponse)==null?void 0:(S=Y.entries)==null?void 0:S.length)}var P;return!((P=this.reelWatchSequenceResponse)==null?0:P.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var Y;(Y=this.delayedActiveIndexUpdateDebouncer)==null||Y.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return this.isShortPlayable()||((S=_.g((Y=this.data)==null?void 0:Y.watchStatus,_.m7s))==null?void 0:(P=S.style)==null?void 0:P.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var Y=this,S=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),P;if((this.data||S)&&(((P=this.data)==null?0:P.engagementPanels)||this.isAd()||S)){S=!1;this.activePanel="shorts-comments-panel";var u;P=_.n(((u=this.data)==null?void 0:u.engagementPanels)||[]);for(u=P.next();!u.done;u=P.next()){u=u.value.engagementPanelSectionListRenderer;var W=void 0,m=void 0,J=void 0,c=void 0;if((((W=u)==null?void 0:(m=W.identifier)==
null?void 0:m.tag)||((J=u)==null?void 0:J.targetId)||((c=u)==null?void 0:c.panelIdentifier))===this.activePanel){S=!0;break}}if(this.isPersistentPanelActive){var C=_.E().resolve(_.Rr);_.hp(_.wc,function(){C.showPanel(Y.activePanel,void 0,void 0,void 0,null)},100)}P=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
u=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);if(P===void 0&&u===void 0||(P==null?0:P.isDisabled)||(u==null?void 0:u.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!S){var x,b,T=(x=this.data)==null?void 0:(b=x.engagementPanels)==null?void 0:b.findIndex(function(a){var w,F;return((w=a.engagementPanelSectionListRenderer)==null?void 0:(F=
w.identifier)==null?void 0:F.tag)==="shorts-comments-panel"});
if(T!==-1&&T!==void 0){var K,G;(K=this.data)==null||(G=K.engagementPanels)==null||G.splice(T,1)}var v;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Td("COMMENTS",void 0,"Comments")}]},visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Td("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:_.Td("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.Td("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(_.cz(Object.values(((v=this.data)==null?void 0:v.engagementPanels)||{})))}return(T=this.data)==null?void 0:T.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.shortsProcessedSequence)==null?void 0:Y[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var Y=this,S,P,u;if((S=this.playerData)==null?0:(P=S.playabilityStatus)==null?0:(u=P.errorScreen)==null?0:u.playerInterstitialRenderer)return _.wc.addLowPriorityJob(function(){Y.movePlayerToVideo(Y.index)}),this.playerData.playabilityStatus.errorScreen;
var W,m;return((W=this.data)==null?void 0:W.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((m=this.data)==null?0:m.watchStatus)&&_.g(this.data.watchStatus,_.j7J)?(_.wc.addLowPriorityJob(function(){Y.movePlayerToVideo(Y.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.y6.Object.defineProperties(q_,{template:{configurable:!0,enumerable:!0,get:function(){if(eV_===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);eV_=Y}Y=eV_;return Y}}});
q_.prototype.onNextButtonDataChange=q_.prototype.onNextButtonDataChange;q_.prototype.onPrevButtonDataChange=q_.prototype.onPrevButtonDataChange;q_.prototype.onPersistentPanelActiveChanged=q_.prototype.onPersistentPanelActiveChanged;q_.prototype.lazyUpdateMiniplayerData=q_.prototype.lazyUpdateMiniplayerData;q_.prototype.onShortsPipActiveChanged=q_.prototype.onShortsPipActiveChanged;q_.prototype.setActiveIndex=q_.prototype.setActiveIndex;q_.prototype.graftNvcRenderer=q_.prototype.graftNvcRenderer;
q_.prototype.graftClientVisualElements=q_.prototype.graftClientVisualElements;q_.prototype.onActiveChanged=q_.prototype.onActiveChanged;q_.prototype.onShortsDismiss=q_.prototype.onShortsDismiss;q_.prototype.onShortUndoDismiss=q_.prototype.onShortUndoDismiss;q_.prototype.playerDataChanged=q_.prototype.playerDataChanged;q_.prototype.afterPlayerStarted=q_.prototype.afterPlayerStarted;q_.prototype.unhideCurrentOverlay=q_.prototype.unhideCurrentOverlay;q_.prototype.onServiceRequestCompleted=q_.prototype.onServiceRequestCompleted;
q_.prototype.engagementPanelsChanged=q_.prototype.engagementPanelsChanged;q_.prototype.onFullscreenChange=q_.prototype.onFullscreenChange;q_.prototype.onResize=q_.prototype.onResize;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],q_.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.gn.YtPageBehavior),_.k("design:type",Object)],q_.prototype,"ytPageBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],q_.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(_.G8),_.k("design:type",Object)],q_.prototype,"ironResizableBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],q_.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],q_.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],q_.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],q_.prototype,"ytdReduxBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"playerData",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"reelWatchSequenceResponse",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"cachedReelWatchSequenceResponse",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"currentEndpoint",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"nextButtonData",void 0);
_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"prevButtonData",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"isPreviousPageShorts",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"index",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"delayedActiveIndex",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"playablePreviousIndex",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"player",void 0);
_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"isPlayerPaused",void 0);_.Q([_.X({selector:wV6}),_.k("design:type",Object)],q_.prototype,"isPlayerStarted",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"intersectionObserver",void 0);_.Q([_.X(),_.k("design:type",Number)],q_.prototype,"cinematicsInitializeJobId",void 0);_.Q([_.X(),_.k("design:type",Number)],q_.prototype,"cinematicTransitionJobId",void 0);
_.Q([_.X(),_.k("design:type",Number)],q_.prototype,"updateMiniplayerDataJobId",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"fitToVisibleBounds",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"pageSubtype",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],q_.prototype,"panelShowDelayMs",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],q_.prototype,"enablePreviousContinuation",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],q_.prototype,"shortsPipEnabled",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],q_.prototype,"isDark",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],q_.prototype,"shortsViewTransitions",void 0);_.Q([_.X({selector:_.BB,reflectToAttribute:!0}),_.k("design:type",Object)],q_.prototype,"isFullscreen",void 0);
_.Q([_.X({selector:_.cB,reflectToAttribute:!0}),_.k("design:type",Object)],q_.prototype,"isShortsPipActive",void 0);_.Q([_.nc("#shorts-inner-container"),_.k("design:type",HTMLElement)],q_.prototype,"shortsInnerContainer",void 0);_.Q([_.nc("#back-nav-button ytd-button-renderer"),_.k("design:type",_.ls)],q_.prototype,"backNavButton",void 0);_.Q([_.nc("#shorts-container"),_.k("design:type",HTMLElement)],q_.prototype,"shortsContainer",void 0);
_.Q([_.U8("error-screen"),_.k("design:type",HTMLElement)],q_.prototype,"errorScreenContainer",void 0);_.Q([_.U8("player"),_.k("design:type",Object)],q_.prototype,"playerElement",void 0);_.Q([_.U8("shorts-cinematic-container"),_.k("design:type",HTMLElement)],q_.prototype,"shortsCinematicContainer",void 0);_.Q([_.U8("initial-player-container"),_.k("design:type",HTMLElement)],q_.prototype,"initialPlayerContainer",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"buttonOverride",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],q_.prototype,"anchoredPanelActive",void 0);_.Q([_.X(),_.k("design:type",String)],q_.prototype,"activePanel",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"isActive",void 0);_.Q([_.X({selector:Lfo,reflectToAttribute:!0}),_.k("design:type",Object)],q_.prototype,"smallScreenPersistentPanel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],q_.prototype,"isPersistentPanelActive",void 0);
_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"smallScreenSqueezeBack",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"enableScrollIntoViewCenter",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],q_.prototype,"formatFirst",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],q_.prototype,"enableFlexibleOverlay",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"panelContainer",void 0);
_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"overlayContainer",void 0);_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"isShortsInitialized",void 0);_.Q([_.d("reelWatchSequenceResponse"),_.k("design:type",Object),_.k("design:paramtypes",[])],q_.prototype,"prevShortsSequence",null);_.Q([_.d("data","prevShortsSequence"),_.k("design:type",Object),_.k("design:paramtypes",[])],q_.prototype,"shortsProcessedPrevSequence",null);
_.Q([_.d("reelWatchSequenceResponse"),_.k("design:type",Object),_.k("design:paramtypes",[])],q_.prototype,"shortsSequence",null);_.Q([_.d("data","shortsSequence"),_.k("design:type",Object),_.k("design:paramtypes",[])],q_.prototype,"shortsProcessedSequence",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],q_.prototype,"isUpArrowHidden",null);_.Q([_.X({reflectToAttribute:!0}),_.d("reelWatchSequenceResponse","index","endOfNextContinuation"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],q_.prototype,"isDownArrowHidden",null);
_.Q([_.X(),_.d("index"),_.k("design:type",Number),_.k("design:paramtypes",[])],q_.prototype,"activeIndex",null);_.Q([_.d("isShortPlayable","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],q_.prototype,"shouldRenderOfflineContent",null);_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"onResize",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],q_.prototype,"anchoredEngagementPanels",null);
_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"watchWhileEngagementPanels",void 0);_.Q([_.zY("isFullscreen"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"onFullscreenChange",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"engagementPanelsChanged",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],q_.prototype,"onServiceRequestCompleted",null);_.Q([_.d("data","shortsSequence","index"),_.k("design:type",Object),_.k("design:paramtypes",[])],q_.prototype,"activeReel",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"unhideCurrentOverlay",null);
_.Q([_.zY("isPlayerStarted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"afterPlayerStarted",null);_.Q([_.d("playerData","reelWatchSequenceResponse","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],q_.prototype,"errorScreen",null);_.Q([_.d("errorScreen"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],q_.prototype,"hasError",null);
_.Q([_.zY("playerData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],q_.prototype,"playerDataChanged",null);_.Q([_.WZ("yt-dismissible-item-undo-feedback"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"onShortUndoDismiss",null);_.Q([_.WZ("yt-disable-lockup-interaction"),_.k("design:type",Function),_.k("design:paramtypes",[Object]),_.k("design:returntype")],q_.prototype,"onShortsDismiss",null);
_.Q([_.cZ("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"onActiveChanged",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"graftClientVisualElements",null);_.Q([_.zY("currentPlayerIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"graftNvcRenderer",null);
_.Q([_.zY("index"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"setActiveIndex",null);_.Q([_.zY("isShortsPipActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"onShortsPipActiveChanged",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"lazyUpdateMiniplayerData",null);
_.Q([_.X(),_.k("design:type",Object)],q_.prototype,"onOverlayDensityChanged",void 0);_.Q([_.zY("isPersistentPanelActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"onPersistentPanelActiveChanged",null);_.Q([_.zY("index","data","isUpArrowHidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"onPrevButtonDataChange",null);
_.Q([_.zY("index","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q_.prototype,"onNextButtonDataChange",null);q_=_.Q([_.t({is:"ytd-shorts"})],q_);_.TV.registerService(_.r0Y,q_);
_.Gl();
}catch(e){_._DumpException(e)}
try{
_.r7("JzFVk");
var axB=function(Y){return _.R("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},Ixc(Y.data.ctaButton,{buttonViewModel:{}}),_.R(_.qw,{text:Y.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var Lbd;var wr5;var wo=function(){return _.Z.apply(this,arguments)||this};
_.r(wo,_.Z);wo.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
wo.prototype.computeBlueBottomLink=function(Y){return Y};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],wo.prototype,"data",void 0);_.Q([_.X({computed:"computeIcon_(data.bottomIcon)"}),_.k("design:type",String)],wo.prototype,"bottomIcon",void 0);
_.Q([_.X({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.k("design:type",Boolean)],wo.prototype,"enableBlueBottomLink",void 0);wo=_.Q([_.t({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],wo);
_.A(wo,"ytd-web-answer-renderer",function(){if(wr5!==void 0)return wr5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return wr5=Y},{mode:_.OX("kevlar_poly_si_batch_j035")?1:2});var pr_;var pY=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasChipBar=!1;return Y};
_.r(pY,_.Z);pY.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}}};
pY.prototype.computeHasChipBar=function(Y){return!(Y==null||!Y.chipBar)};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],pY.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.k("design:type",Object)],pY.prototype,"hasChipBar",void 0);pY=_.Q([_.t({is:"ytd-search-header-renderer",disableElementRegistration:!0})],pY);
_.A(pY,"ytd-search-header-renderer",function(){if(pr_!==void 0)return pr_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return pr_=Y},{mode:1});var Fb1;var Fd=function(){return _.Z.apply(this,arguments)||this};
_.r(Fd,_.Z);Fd.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Fd.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Fd.prototype,"data",void 0);Fd=_.Q([_.t({disableElementRegistration:!0,is:"ytd-page-continuation"})],Fd);
_.A(Fd,"ytd-page-continuation",function(){if(Fb1!==void 0)return Fb1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Fb1=Y},{mode:1});var s0Z;var dmY;var lxB;var sY=function(){return _.Z.apply(this,arguments)||this};
_.r(sY,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],sY.prototype,"data",void 0);sY=_.Q([_.t({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],sY);
_.A(sY,"ytd-watch-card-one-vs-one-event",function(){if(lxB!==void 0)return lxB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return lxB=Y},{mode:1});var lD=function(){return _.Z.apply(this,arguments)||this};
_.r(lD,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],lD.prototype,"data",void 0);lD=_.Q([_.t({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],lD);
_.A(lD,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(dmY!==void 0)return dmY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return dmY=Y},{mode:1});var Xru;var Xd=function(){return _.Z.apply(this,arguments)||this};
_.r(Xd,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Xd.prototype,"data",void 0);Xd=_.Q([_.t({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Xd);
_.A(Xd,"ytd-banner-and-box-hero-image-renderer",function(){if(Xru!==void 0)return Xru;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Xru=Y},{mode:1});var ZnI;var Zm=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.f("web_modern_buttons");return Y};
_.r(Zm,_.Z);Zm.prototype.computeIcon=function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.icon)==null?void 0:S.iconType;if(P)return _.u2(P)};
Zm.prototype.computeButtonShape=function(){var Y;return{buttonText:_.Ma((Y=this.data)==null?void 0:Y.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.y6.Object.defineProperties(Zm.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Zm.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Zm.prototype,"modern",void 0);_.Q([_.X({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.d("data.style"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zm.prototype,"buttonColor",null);
Zm=_.Q([_.t({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Zm);
_.A(Zm,"ytd-call-to-action-button-renderer",function(){if(ZnI!==void 0)return ZnI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ZnI=Y},{mode:1});var ind;var iD=function(){return _.Z.apply(this,arguments)||this};
_.r(iD,_.Z);iD.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.I(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.UD(this.data.leftThumbnail.thumbnails,216)+")")};
iD.prototype.onLeftThumbnailChanged=iD.prototype.onLeftThumbnailChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],iD.prototype,"data",void 0);_.Q([_.zY("data.leftThumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iD.prototype,"onLeftThumbnailChanged",null);iD=_.Q([_.t({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],iD);
_.A(iD,"ytd-collage-hero-image-renderer",function(){if(ind!==void 0)return ind;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return ind=Y},{mode:1});var ouc;var oa=function(){return _.Z.apply(this,arguments)||this};
_.r(oa,_.Z);oa.prototype.computeStyle=function(Y){return Y};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],oa.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],oa.prototype,"componentStyle",void 0);oa=_.Q([_.t({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],oa);
_.A(oa,"ytd-single-hero-image-renderer",function(){if(ouc!==void 0)return ouc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ouc=Y},{mode:1});var tz1;var t0=function(){return _.Z.apply(this,arguments)||this};
_.r(t0,_.Z);_.z=t0.prototype;
_.z.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:_.f("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.z.computeSubtitle=function(Y){if(this.data){var S;if(this.data.upcomingEventData){Y=_.Ma(Y.subtitle);var P=Number(this.data.upcomingEventData.startTime);isNaN(P)||(S=_.kW(_.L2(Y,P)))}else S=Y.subtitle;return S}};
_.z.onHeroTap=function(Y){Y.preventDefault();var S=this.data&&this.data.navigationEndpoint;!S||!_.iN(_.iM(Y),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.iN(_.iM(Y),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.f("kevlar_watchcard_hero_video_renderer_killswitch")?_.ms(this.hostElement,"yt-navigate",{navigationEndpoint:S}):this.ytComponentBehavior.resolveCommand(S))};
_.z.computeHeroTabIndex=function(Y){return Y&&Y.simpleText?-1:0};
_.z.computeHeroRole=function(Y){return Y&&Y.simpleText?"":"link"};
_.z.computeIsReminderButtonPresent=function(Y){return!(!Y||!Y.reminderButton)};
_.z.computeHideBottomItems=function(Y){return!(this.computeIsReminderButtonPresent(Y)||Y.subtitle)};
_.z.dataChanged=function(){var Y=this.get("data.buttons.buttonRenderer.serviceEndpoint"),S;((S=_.g(Y==null?void 0:Y.commandMetadata,_.gD))==null?0:S.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(Y)};
t0.prototype.dataChanged=t0.prototype.dataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],t0.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],t0.prototype,"data",void 0);
_.Q([_.X({computed:"computeSubtitle(data)"}),_.k("design:type",String)],t0.prototype,"subtitle",void 0);_.Q([_.X({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],t0.prototype,"isReminderButtonPresent",void 0);_.Q([_.X({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],t0.prototype,"hideBottomItems",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],t0.prototype,"dataChanged",null);t0=_.Q([_.t({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],t0);
_.A(t0,"ytd-watch-card-hero-video-renderer",function(){if(tz1!==void 0)return tz1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return tz1=Y},{mode:1});var AXo;var A0=function(){return _.Z.apply(this,arguments)||this};
_.r(A0,_.Z);_.z=A0.prototype;_.z.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"}}}};
_.z.computeTitleBadges=function(Y){return Y?[Y]:[]};
_.z.computeHeaderStyle=function(Y){return Y?Y.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.z.computeAvatarAriaLabel=function(Y){if(Y){var S,P,u,W;return(W=(S=Y.avatar)==null?void 0:(P=S.accessibility)==null?void 0:(u=P.accessibilityData)==null?void 0:u.label)!=null?W:_.Ma(Y==null?void 0:Y.title)}};
_.z.computeAvatarHeight=function(Y){return Y==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.z.computeBadgeRowClass=function(Y){return(Y==null?0:Y[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],A0.prototype,"data",void 0);_.Q([_.X({computed:"computeTitleBadges(data.titleBadge)"}),_.k("design:type",Array)],A0.prototype,"titleBadges",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.k("design:type",String)],A0.prototype,"headerStyle",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.k("design:type",String)],A0.prototype,"badgeRowClass",void 0);A0=_.Q([_.t({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],A0);
_.A(A0,"ytd-watch-card-rich-header-renderer",function(){if(AXo!==void 0)return AXo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return AXo=Y},{mode:1});var Umo;var Q05;var UY=function(){return _.Z.apply(this,arguments)||this};
_.r(UY,_.Z);UY.prototype.onMetadataTap=function(Y){var S=this.data&&this.data.navigationEndpoint;S&&!_.iN(_.iM(Y),this.hostElement,["A".toString()])&&_.ms(this.hostElement,"yt-navigate",{endpoint:S})};
_.y6.Object.defineProperties(UY.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y;if(this.data.upcomingEventData){var S=_.Ma(this.data.subtitle),P=Number(this.data.upcomingEventData.startTime);isNaN(P)||(Y=_.kW(_.L2(S,P)))}else Y=this.data.subtitle;return Y}}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],UY.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data.style"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],UY.prototype,"isCondensed",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],UY.prototype,"subtitle",null);
UY=_.Q([_.t({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],UY);
_.A(UY,"ytd-watch-card-compact-video-renderer",function(){if(Q05!==void 0)return Q05;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Q05=Y},{mode:1});var kb1;var QE=function(){return _.Z.apply(this,arguments)||this};
_.r(QE,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],QE.prototype,"data",void 0);QE=_.Q([_.t({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],QE);
_.A(QE,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(kb1!==void 0)return kb1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return kb1=Y},{mode:1});var k$=function(){return _.Z.apply(this,arguments)||this};
_.r(k$,_.Z);k$.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],k$.prototype,"ytRendererStamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],k$.prototype,"data",void 0);k$=_.Q([_.t({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],k$);
_.A(k$,"ytd-vertical-watch-card-list-renderer",function(){if(Umo!==void 0)return Umo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Umo=Y},{mode:1});var Mzj;var Mx=function(){var Y=_.Z.apply(this,arguments)||this;Y.ariaExpanded="false";return Y};
_.r(Mx,_.Z);_.z=Mx.prototype;_.z.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.z.dataChanged=function(){var Y;this.currentSeasonIndex=((Y=this.data)==null?void 0:Y.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.z.computeEpisodesInfo=function(Y,S,P){if(Y!==void 0&&S.length===Y.length)return Y[P]};
_.z.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.z.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.z.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.z.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.z.getUppercaseSimpleString=function(Y){return this.ytRendererBehavior.getSimpleString(Y).toUpperCase()};
_.z.updateCurrentSeasonIndexFromBinding=function(Y){this.currentSeasonIndex=Y.detail.value};
Mx.prototype.onIronOverlayClosed=Mx.prototype.onIronOverlayClosed;Mx.prototype.currentSeasonIndexChanged=Mx.prototype.currentSeasonIndexChanged;Mx.prototype.dataChanged=Mx.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Mx.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",String)],Mx.prototype,"label",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],Mx.prototype,"currentSeasonIndex",void 0);_.Q([_.X({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.k("design:type",Object)],Mx.prototype,"episodesInfo",void 0);_.Q([_.X({value:"false"}),_.k("design:type",Object)],Mx.prototype,"ariaExpanded",void 0);_.Q([_.nc("#lists"),_.k("design:type",Object)],Mx.prototype,"lists",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mx.prototype,"dataChanged",null);_.Q([_.cZ("currentSeasonIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mx.prototype,"currentSeasonIndexChanged",null);_.Q([_.WZ("iron-overlay-closed"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Mx.prototype,"onIronOverlayClosed",null);
Mx=_.Q([_.t({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Mx);
_.A(Mx,"ytd-watch-card-section-dropdown-renderer",function(){if(Mzj!==void 0)return Mzj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Mzj=Y},{mode:1});var yXX;var yE=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSearch=!1;return Y};
_.r(yE,_.Z);yE.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],yE.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],yE.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],yE.prototype,"isSearch",void 0);yE=_.Q([_.t({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],yE);
_.A(yE,"ytd-watch-card-section-sequence-renderer",function(){if(yXX!==void 0)return yXX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
return yXX=Y},{mode:1});var Ixc=_.EP({buttonViewModel:_.aq});_.Sr(axB);_.Vz(axB,"ytd-button-banner-view-model",{propNames:["data"]});var Nx=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSearch=!1;return Y};
_.r(Nx,_.Z);
Nx.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Nx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Nx.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],Nx.prototype,"rounded",void 0);_.Q([_.X(),_.k("design:type",Object)],Nx.prototype,"isSearch",void 0);
Nx=_.Q([_.t({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Nx);
_.A(Nx,"ytd-universal-watch-card-renderer",function(){if(s0Z!==void 0)return s0Z;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return s0Z=Y},{mode:1});var NSX;_.AL(_.AI(function(Y){var S=Y.data;var P;Y=!((P=_.E().resolve(_.PQ(_.F5)))==null||!P());P={};return _.R("overview-message-view-model",{class:_.Si("ytwOverviewMessageViewModelHost",(P.ytwOverviewMessageViewModelDarkBackground=Y,P.ytwOverviewMessageViewModelLightBackground=!Y,P))},_.R(_.gw,{cond:function(){return S().primaryImage},
then:function(u){return _.R(_.ZZ,{data:u,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.R(_.gw,{cond:function(){return S().primaryText},
then:function(){return _.R("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.R(_.qw,{text:function(){return S().primaryText}}))}}),_.R(_.gw,{cond:function(){return S().secondaryText},
then:function(){return _.R("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.R(_.qw,{text:function(){return S().secondaryText}}))}}))},"Uh"),"overview-message-view-model",{props:{data:_.wm}});_.Vz(_.fu_,"ytd-overview-answer-view-model",{propNames:["data"]});var HG=function(){return _.Z.apply(this,arguments)||this};
_.r(HG,_.Z);HG.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"}}}};
HG.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],HG.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.I3),_.k("design:type",Object)],HG.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],HG.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],HG.prototype,"isSearch",void 0);
HG=_.Q([_.t({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],HG);
_.A(HG,"ytd-secondary-search-container-renderer",function(){if(NSX!==void 0)return NSX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
return NSX=Y},{mode:1});var HnZ;var VE=function(){var Y=_.Z.apply(this,arguments)||this;Y.renderSecondarySearchContainer=!1;Y.isSearch=!1;Y.isSearchDova=_.f("dova_on_search");return Y};
_.r(VE,_.Z);_.z=VE.prototype;_.z.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.z.created=function(){var Y=this;this.boundStampSecondarySearchContainerIfFits=function(){Y.stampSecondarySearchContainerIfFits()};
_.lk("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.z.computeIsSearchFrictionPage=function(Y){var S,P,u,W,m;Y=Y==null?void 0:(S=Y.primaryContents)==null?void 0:(P=S.sectionListRenderer)==null?void 0:(u=P.contents)==null?void 0:(W=u[0])==null?void 0:(m=W.itemSectionRenderer)==null?void 0:m.contents;if(!Y)return!1;S=_.n(Y);for(P=S.next();!P.done;P=S.next())if(u=void 0,(u=P.value)==null?0:u.searchFrictionViewModel)return!0;return!1};
_.z.computeShowSecondaryColumn=function(Y,S){return!!(S&&S.secondaryContents&&Y)};
_.z.activeChanged=function(){var Y=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.up(this,this.debounceStampSecondarySearchContainerIfFits)),_.w0(function(){Y.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.up(this,this.debounceStampSecondarySearchContainerIfFits))};
_.z.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.z.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.z.debounceStampSecondarySearchContainerIfFits=function(){_.pc(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.z.onRetrieveLocation=function(Y,S){S.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);Y.stopPropagation()};
_.z.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
VE.prototype.dataChanged=VE.prototype.dataChanged;VE.prototype.onRetrieveLocation=VE.prototype.onRetrieveLocation;VE.prototype.persistentGuideChanged=VE.prototype.persistentGuideChanged;VE.prototype.activeChanged=VE.prototype.activeChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],VE.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.p(_.G8),_.k("design:type",Object)],VE.prototype,"ironResizableBehavior",void 0);_.Q([_.X(),_.k("design:type",Boolean)],VE.prototype,"active",void 0);_.Q([_.X(),_.k("design:type",Object)],VE.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],VE.prototype,"useBiggerThumbs",void 0);_.Q([_.X({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],VE.prototype,"biggerThumbsStyle",void 0);_.Q([_.X(),_.k("design:type",Object)],VE.prototype,"renderSecondarySearchContainer",void 0);_.Q([_.X({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.k("design:type",Boolean)],VE.prototype,"showSecondaryColumn",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.k("design:type",Boolean)],VE.prototype,"isSearchFrictionPage",void 0);
_.Q([_.X(),_.k("design:type",Object)],VE.prototype,"isSearch",void 0);_.Q([_.X(),_.k("design:type",Object)],VE.prototype,"isSearchDova",void 0);_.Q([_.zY("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VE.prototype,"activeChanged",null);_.Q([_.zY("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VE.prototype,"persistentGuideChanged",null);
_.Q([_.WZ("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],VE.prototype,"onRetrieveLocation",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VE.prototype,"dataChanged",null);VE=_.Q([_.t({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],VE);
_.A(VE,"ytd-two-column-search-results-renderer",function(){if(HnZ!==void 0)return HnZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return HnZ=Y},{mode:1});var e9=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasSearchHeader=!1;Y.hasSecondaryContent=!1;Y.hasBiggerThumbs=_.f("enable_desktop_search_bigger_thumbs");Y.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return Y};
_.r(e9,_.Z);_.z=e9.prototype;_.z.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:_.vn(["aa","eocs"])}}};
_.z.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.z.loadPage_=function(Y){this.initCsi();Y&&(this.data=Y,_.lk("REFINEMENTS_TUPLE",["FromSearchResponse",Y.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.H_(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.z.initCsi=function(){_.fv("results",["ol","cpt"])};
_.z.updateTitle=function(){var Y=_.FI(window.location.href,"q");Y||(Y=_.FI(window.location.href,"search_query"));_.ms(this.hostElement,"yt-update-title",Y||"")};
_.z.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.z.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.f("web_srp_data_changed_terminate_imp_killswitch")||_.nb(this.hostElement,"yt-terminate-video-preview-action")};
_.z.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.z.computeHasSearchHeader=function(Y){var S;Y=Y==null?void 0:(S=Y.header)==null?void 0:S.searchHeaderRenderer;return!!Y&&(!!Y.searchFilterButton||!!Y.chipBar)};
_.z.computeHasSecondaryContent=function(Y){var S,P;return!!(Y==null?0:(S=Y.contents)==null?0:(P=S.twoColumnSearchResultsRenderer)==null?0:P.secondaryContents)};
_.y6.Object.defineProperties(e9,{template:{configurable:!0,enumerable:!0,get:function(){if(Lbd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);Lbd=Y}Y=Lbd;return Y}}});
e9.prototype.onReloadContinuationFinish=e9.prototype.onReloadContinuationFinish;e9.prototype.dataChanged=e9.prototype.dataChanged;_.Q([_.p(_.gn.YtPageBehavior),_.k("design:type",Object)],e9.prototype,"ytPageBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],e9.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.I3),_.k("design:type",Object)],e9.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],e9.prototype,"data",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],e9.prototype,"monitorScroll",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],e9.prototype,"hasSearchHeader",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],e9.prototype,"hasSecondaryContent",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],e9.prototype,"hasBiggerThumbs",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e9.prototype,"dataChanged",null);
_.Q([_.WZ("yt-reload-continuation-finish"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e9.prototype,"onReloadContinuationFinish",null);e9=_.Q([_.t({is:"ytd-search"})],e9);_.TV.registerService(_.$xE,e9);
_.Gl();
}catch(e){_._DumpException(e)}
try{
_.r7("h8y2qb");
var GGo=function(Y){if(Y=_.cWX(Y)){var S;(S=Y.sources)!=null&&S[0]?(S=_.q7J(Y),S=S<1?"VERTICAL":S>1?"HORIZONTAL":"SQUARE"):S=void 0;return S}},$D=function(Y){_.KQ.call(this,"upload");
this.opts.query=Y},v0I=function(Y,S){return _.R(hY6,{data:Y,
onYtNavigate:S})},Iz1=function(Y,S){return Y.map(function(P){if(P.tabRenderer)return Df5(P.tabRenderer);
if(P.expandableTabRenderer&&S){var u=P.expandableTabRenderer;return{customTabRenderable:function(){return S(u)}}}return{}})},Df5=function(Y){return{identifier:Y.tabIdentifier,
aTagConfig:_.Ie({innertubeCommand:Y.endpoint,forceNewState:!0}),title:Y.title,selected:Y.selected,disabled:Y.unselectable}},azu=function(Y,S){return _.BT(Y.entities,"pageHeaderEntity",S)},pno=function(Y){var S=Y.data;
var P=Y.noPadding===void 0?!1:Y.noPadding;var u=Y.enableBanner===void 0?!1:Y.enableBanner;var W=Y.cinematicContainerTopbarOffset;var m=Y.allowCinematicContainerOverflow===void 0?!1:Y.allowCinematicContainerOverflow;Y=Y.displayAsSidebar===void 0?!1:Y.displayAsSidebar;if(S==null?0:S.tagManagerId)_.JD(S.tagManagerId,_.X3("GL")),Lku(S.tagManagerId);a:{if(S.pageHeaderEntityKey){var J=_.jF(azu,S.pageHeaderEntityKey);if(J==null?0:J.header){J=J==null?void 0:J.header;break a}}J=Y&&S.sidebarContent?S.sidebarContent:
S.content}return _.R("yt-page-header-renderer",{class:"page-header-renderer-wiz"},wnc(J,{pageHeaderViewModel:{noPadding:P,enableBanner:u,cinematicContainerTopbarOffset:W,allowCinematicContainerOverflow:m,displayAsSidebar:Y&&S.enableSidebarView}}))},FkB=function(Y){return _.WT({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:Y})},Lku=function(Y){if(!_.Mw(document,"gtm-noscript")){var S=document.createElement("noscript");
S.id="gtm-noscript";S.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+Y+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(S)}};_.PW($D,_.KQ);$D.prototype.JSC$7947_setLabel=function(Y){$D.superClass_.JSC$7947_setLabel.call(this,Y);return this};
$D.prototype.addUploadMetadata=function(Y,S){$D.superClass_.addUploadMetadata.call(this,Y,S);return this};var sgd=function(Y){if(Y!=="youtubebanner"&&Y!=="youtube-channel-banner")throw Error("Vl");$D.call(this,Y)};
_.r(sgd,$D);sgd.prototype.JSC$7947_setLabel=function(Y){$D.prototype.JSC$7947_setLabel.call(this,Y);return this};
sgd.prototype.addUploadMetadata=function(Y,S){$D.prototype.addUploadMetadata.call(this,Y,S);return this};var dfc=[_.G8,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(Y){_.G5(Y).path[0]!==this&&(this.resetLayout(),Y.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var Y=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Sp(this._layoutDebouncer,_.TR,Y);_.Pm(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var Y=this;requestAnimationFrame(function(){Y.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(Y){this.resizerShouldNotify(Y)&&this._notifyDescendant(Y)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var lz1=[_.xw_,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(Y,S){var P=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[Y];if(!P)throw new ReferenceError(this._getUndefinedMsg(Y));Y=this._boundEffect(P,S||{});Y.setUp();return Y},
_effectsChanged:function(Y,S,P){this._tearDownEffects();Y&&P&&(Y.split(" ").forEach(function(u){var W;u!==""&&((W=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[u])?this._effects.push(this._boundEffect(W,S[u])):console.warn(this._getUndefinedMsg(u)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(Y,S){S=S||{};var P=parseFloat(S.startsAt||0),u=parseFloat(S.endsAt||1),W=u-P,m=function(){};
u=P===0&&u===1?Y.run:function(J,c){Y.run.call(this,Math.max(0,(J-P)/W),c)};
return{setUp:Y.setUp?Y.setUp.bind(this,S):m,run:Y.run?u.bind(this):m,tearDown:Y.tearDown?Y.tearDown.bind(this):m}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(Y){Y.setUp()!==!1&&this._effectsRunFn.push(Y.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(Y){Y.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(Y,S){this._effectsRunFn&&this._effectsRunFn.forEach(function(P){P(Y,S)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var Y=this._clampedScrollTop;this._updateScrollState(Y);this.threshold>0&&this._setThresholdTriggered(Y>=this.threshold)}},
_getDOMRef:function(Y){console.warn("_getDOMRef","`"+Y+"` is undefined")},
_getUndefinedMsg:function(Y){return"Scroll effect `"+Y+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+Y+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Wl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(Y){var S={};Y=parseFloat(Y.scalar);S.background=this._getDOMRef("background");S.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");S.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");S.deltaBg=S.backgroundFrontLayer.offsetHeight-S.background.offsetHeight;S.deltaBg===0?(isNaN(Y)&&(Y=.8),S.deltaBg=(this._dHeight||0)*Y):(isNaN(Y)&&(Y=
1),S.deltaBg*=Y);this._fxParallaxBackground=S},
run:function(Y){var S=this._fxParallaxBackground;this.transform("translate3d(0px, "+S.deltaBg*Math.min(1,Y)+"px, 0px)",S.backgroundFrontLayer);S.backgroundRearLayer&&this.transform("translate3d(0px, "+S.deltaBg*Math.min(1,Y)+"px, 0px)",S.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var Xnu;var Zed;var ieI=function(){};
_.z=ieI.prototype;_.z._scrollTargetChanged=function(){};
_.z.scroll=function(){};
_.z._isValidScrollTarget=function(){};
_.z._toggleScrollListener=function(){};
_.z.toggleScrollListener=function(){};
_.z.createEffect=function(){};
_.z._effectsChanged=function(){};
_.z._layoutIfDirty=function(){};
_.z._boundEffect=function(){};
_.z._setUpEffect=function(){};
_.z._tearDownEffects=function(){};
_.z._runEffects=function(){};
_.z._scrollHandler=function(){};
_.z._scrollStateChanged=function(){};
_.z._getUndefinedMsg=function(){};
_.z.notifyResize=function(){};
_.z.assignParentResizable=function(){};
_.z.stopResizeNotificationsFor=function(){};
_.z._subscribeIronResize=function(){};
_.z._unsubscribeIronResize=function(){};
_.z.resizerShouldNotify=function(){};
_.z._onDescendantIronResize=function(){};
_.z._fireResize=function(){};
_.z._onIronRequestResizeNotifications=function(){};
_.z._parentResizableChanged=function(){};
_.z._notifyDescendant=function(){};
_.z._requestResizeNotifications=function(){};
_.z._findParent=function(){};
_.z._appResetLayoutHandler=function(){};
_.z.resetLayout=function(){};
_.z._notifyLayoutChanged=function(){};
_.z._notifyDescendantResize=function(){};
_.z._setThresholdTriggered=function(){};
ieI=_.Kc({_template:function(){if(Zed!==void 0)return Zed;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Xnu===void 0&&(Xnu=document.createElement("template"));var u=Xnu;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return Zed=Y},
is:"tp-yt-app-header",behaviors:[lz1,dfc],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var Y=_.G5(this.$.slot).getDistributedNodes(),S=0,P;P=Y[S];S++)if(P.nodeType===Node.ELEMENT_NODE)if(P.hasAttribute("sticky")){this._stickyElRef=P;break}else this._stickyElRef||(this._stickyElRef=P);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var Y=this._clampedScrollTop,S=this._height===0||Y===0,P=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;S||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();S?this._updateScrollState(Y,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=P}},
_updateScrollState:function(Y,S){if(this._height!==0){var P=0,u=this._top;var W=this._maxHeaderTop;var m=Y-this._lastScrollTop,J=Math.abs(m),c=Y>this._lastScrollTop,C=performance.now();this._mayMove()&&(P=this._clamp(this.reveals?u+m:Y,0,W));Y>=this._dHeight&&(P=this.condenses&&!this.fixed?Math.max(this._dHeight,P):P,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&J<100){if(C-this._initTimestamp>300||this._wasScrollingDown!==c)this._initScrollTop=Y,this._initTimestamp=C;Y>=W&&
(Math.abs(this._initScrollTop-Y)>30||J>10?(c&&Y>=W?P=W:!c&&Y>=this._dHeight&&(P=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((P-u)/(m/(C-this._lastTimestamp)),0,300)+"ms"):P=this._top)}W=this._dHeight===0?Y>0?1:0:P/this._dHeight;S||(this._lastScrollTop=Y,this._top=P,this._wasScrollingDown=c,this._lastTimestamp=C);if(S||W!==this._progress||u!==P||Y===0)this._progress=W,this._runEffects(W,P),this._transformHeader(P)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(Y){this.translate3d(0,-Y+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&Y>=this._stickyElTop?Math.min(Y,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(Y,S,P){return Math.min(P,Math.max(S,Y))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.G5(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(Y){switch(Y){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.G5(this).querySelector("[main-title]");case "condensedTitle":return _.G5(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var o0j;var tlI;_.Kc({_template:function(){if(tlI!==void 0)return tlI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;o0j===void 0&&(o0j=document.createElement("template"));var u=o0j;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return tlI=Y},
is:"tp-yt-app-header-layout",behaviors:[dfc],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.G5(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var Y=this.header;if(this.isAttached&&Y){this.$.wrapper.classList.remove("initializing");Y.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)Y.style.left=
"",Y.style.right="";else{var S=this.getBoundingClientRect(),P=document.documentElement.clientWidth-S.right;Y.style.left=S.left+"px";Y.style.right=P+"px"}S=this.$.contentContainer.style;P=Y.offsetHeight;Y.fixed&&!Y.condenses&&this.hasScrollingRegion?(S.marginTop=P+"px",S.paddingTop=""):(S.paddingTop=P+"px",S.marginTop="")}}});var AQj=new _.N("replaceFeedContentAction");var Uf6=new _.N("alertCommand");var QgI=new _.N("manageLabsStateCommand");var kGY=new _.N("channelBannerEditorRenderer");var MlY=new _.N("inlineFormRenderer");var rn=new _.N("playlistSidebarPrimaryInfoRenderer");var yQI=new _.N("productDetailsThumbnailRenderer"),NWY=new _.N("productDetailsVariantRenderer"),He_=new _.N("productDetailsVariantOptionRenderer"),Vl_=new _.N("productDetailsOffersContainerRenderer"),eYI=new _.N("productDetailsOfferRenderer");var OeI=new _.N("shoppingFlaggingRenderer");var Y8c=new _.N("playlistBylineRenderer");var S8I=new _.N("insertChannelTabCommand");var GA=function(){return _.JI.apply(this,arguments)||this};
_.r(GA,_.JI);_.z=GA.prototype;_.z.activeChanged=function(){if(this.active){var Y=_.I(this.hostElement).querySelector("#header");Y&&_.ms(Y,"iron-resize");window.addEventListener("scroll",_.up(this,this.onScroll))}else window.removeEventListener("scroll",_.up(this,this.onScroll)),_.ms(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.z.guideVisibleChanged=function(){var Y=_.I(this.hostElement).querySelector("#header");Y&&_.ms(Y,"iron-resize")};
_.z.onScroll=function(){var Y=this;_.pc(this,"onScroll",function(){var S=_.I(Y.hostElement).querySelector("#header");S&&S.polymerController&&(S=S.polymerController.getScrollState().progress===1?"standard":"seamed",_.ms(Y.hostElement,"yt-request-panel-mode-change",{mode:S}))},10)};
_.z.tabsChanged=function(){if(this.tabs){for(var Y=null,S=0,P=this.tabs.length;S<P;++S){var u=this.tabs[S].tabRenderer;if(u&&u.selected){Y=S;break}}this.selected=Y}};
_.z.onTabsActivate=function(Y){_.ms(this.hostElement,"yt-navigate",{endpoint:this.tabs[Y.detail.selected].tabRenderer.endpoint})};
GA.prototype.tabsChanged=GA.prototype.tabsChanged;GA.prototype.guideVisibleChanged=GA.prototype.guideVisibleChanged;GA.prototype.activeChanged=GA.prototype.activeChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],GA.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.X(),_.k("design:type",Array)],GA.prototype,"tabs",void 0);
_.Q([_.X(),_.k("design:type",Object)],GA.prototype,"selected",void 0);_.Q([_.X(),_.k("design:type",Boolean)],GA.prototype,"active",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],GA.prototype,"disableHeaderFluidWidth",void 0);_.Q([_.zY("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GA.prototype,"activeChanged",null);
_.Q([_.zY("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GA.prototype,"guideVisibleChanged",null);_.Q([_.zY("tabs"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GA.prototype,"tabsChanged",null);GA=_.Q([_.BZ()],GA);var P3I=[_.e.YtRendererBehavior,_.LG.YtdGuideStateAwareBehavior,GA.prototype];var uTj=2/3,WH5=_.TI(130749),zRc=function(Y,S){var P=this;this.element=Y;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){P.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:uTj,moveAction:function(u){P.moveAction(u)},
triggerAction:function(){P.element.isReloading=!0;_.wL(_.BF(),{visualElement:WH5});_.zR.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:P.element}})}}}};
_.Sa(_.BF(),WH5,this.layer);this.gesture=new _.WP(Y,S,this.refreshConfig,"pan-down");this.attach()};
_.z=zRc.prototype;_.z.attach=function(){this.gesture.attach()};
_.z.detach=function(){this.gesture.detach()};
_.z.reset=function(){this.element.close()};
_.z.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.z.moveAction=function(Y){this.element.rotation=Y*360};var m9o=_.TI(130750),hZ=function(Y,S,P,u,W){var m=this;this.element=Y;this.parent=P;this.channelHeader=u;this.ytdReduxDispatch=W;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){m.tabsStartAtInPx=m.channelHeader.clientHeight-48;var J;(J=m.selectedTab)!=null&&J.title&&(J=_.E().resolve(_.PQ(_.Ag)))&&(J=J.getCurrentPage(),m.lastVisitedTabScrollPosition=J.getScrollTop(),m.previousTab&&
((m.lastVisitedTabScrollPosition===void 0?0:m.lastVisitedTabScrollPosition<m.channelHeader.clientHeight-48)?m.scrollPositionForTabs.has(m.selectedTab.title)&&m.scrollPositionForTabs.delete(m.selectedTab.title):m.scrollPositionForTabs.set(m.selectedTab.title,J.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:n41(),triggerAction:function(){m.navigate(m.previousTab)},
moveAction:function(J,c){m.moveAction(J,c)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-n41(),triggerAction:function(){m.navigate(m.nextTab)},
moveAction:function(J,c){m.moveAction(J,c)}}}};
_.Sa(_.BF(),m9o,this.layer);this.gesture=new _.WP(Y,S,this.tabConfig);this.attach()};
hZ.prototype.attach=function(){this.gesture.attach()};
hZ.prototype.detach=function(){this.gesture.detach()};
hZ.prototype.tabsChanged=function(Y){if(Y){var S=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next()){P=P.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=P);var u=void 0;if((u=P)==null?0:u.selected)this.previousTab=S,this.selectedTab=P;S=P}S=this.gesture;Y=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
S.config=Y;this.scrollPositionNeedsUpdate=!0}};
hZ.prototype.moveAction=function(Y,S){if(!this.tabsElement){var P;this.tabsElement=(P=this.parent.header)==null?void 0:P.tabsElement;S==="right"&&this.previousTab?_.cMs(_.VV.instance,this.previousTab.endpoint,{},""):S==="left"&&this.nextTab&&_.cMs(_.VV.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}P=this.tabsElement._pos;S==="right"&&(Y*=-1);this.tabsElement._positionBar(P.width,P.left*1+P.width*Y)};
var n41=function(){var Y,S;return(S=(Y=_.E().resolve(_.Ag).getCurrentPage())==null?void 0:Y.clientWidth)!=null?S:0};
hZ.prototype.navigate=function(Y){this.element.data=void 0;if(Y=Y==null?void 0:Y.endpoint)this.ytdReduxDispatch(FkB(!0)),_.wL(_.BF(),{visualElement:m9o}),_.zR.instance.resolveCommand({navigateAction:{endpoint:Y}},{form:{element:this.element}})};var jl1;var Jrd;var vP=function(){return _.Z.apply(this,arguments)||this};
_.r(vP,_.Z);vP.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],vP.prototype,"data",void 0);vP=_.Q([_.t({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],vP);
_.A(vP,"ytd-labs-edit-renderer",function(){if(Jrd!==void 0)return Jrd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Jrd=Y},{mode:1});var Be5;var Dv=function(){var Y=_.Z.apply(this,arguments)||this;Y.dark=!1;Y.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";Y.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(Dv,_.Z);Dv.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Dv.prototype.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.setBackgroundImage(Y);this.dark=Y};
Dv.prototype.onDarkModeToggledAction=function(Y){this.setBackgroundImage(Y);this.dark=Y};
Dv.prototype.setBackgroundImage=function(Y){_.PZ(this.hostElement,{"--yt-labs-header-background":"url("+(Y?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Dv.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Dv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Dv.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Dv.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Dv.prototype,"dark",void 0);
Dv=_.Q([_.t({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Dv);
_.A(Dv,"ytd-labs-header-renderer",function(){if(Be5!==void 0)return Be5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Be5=Y},{mode:1});var crY;var It=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return Y};
_.r(It,_.Z);It.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"}}}}}};
It.prototype.onYtToggleButton=function(Y){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",Y.detail.toggled)};
It.prototype.onManageLabsState=function(Y){if(Y=_.g(Y,QgI))Y.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?Y.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&Y.labsItemId===this.data.labsItemId&&(Y.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.nb(this.hostElement,"yt-check-labs-opted-in-state").some(function(S){return S})&&this.data.confirmationDialogCommand?_.cu(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.E().resolve(_.uY).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&Y.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.E().resolve(_.uY).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
It.prototype.onCheckLabsOptedInState=function(){var Y=this.get("data.primaryButton.toggleButtonRenderer");return Y?Y.isToggled:!1};
_.y6.Object.defineProperties(It.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
It.prototype.onYtToggleButton=It.prototype.onYtToggleButton;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],It.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],It.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],It.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],It.prototype,"itemStyle",null);_.Q([_.WZ("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],It.prototype,"onYtToggleButton",null);It=_.Q([_.t({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],It);
_.A(It,"ytd-labs-item-renderer",function(){if(crY!==void 0)return crY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return crY=Y},{mode:1});var C3Z;var q8u;var at=function(){return _.Z.apply(this,arguments)||this};
_.r(at,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],at.prototype,"data",void 0);at=_.Q([_.t({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],at);
_.A(at,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(q8u!==void 0)return q8u;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return q8u=Y},{mode:1});var RRZ;var Lv=function(){return _.Z.apply(this,arguments)||this};
_.r(Lv,_.Z);Lv.prototype.observeSuperchatChip=function(){if(this.data){var Y={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.PZ(this.hostElement,Y)}};
Lv.prototype.colorFromDecimal=function(Y){return _.hK(Number(Y||0))};
Lv.prototype.observeSuperchatChip=Lv.prototype.observeSuperchatChip;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Lv.prototype,"data",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Lv.prototype,"observeSuperchatChip",null);Lv=_.Q([_.t({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Lv);
_.A(Lv,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(RRZ!==void 0)return RRZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return RRZ=Y},{mode:1});var wn=function(){return _.Z.apply(this,arguments)||this};
_.r(wn,_.Z);wn.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"}}}};
_.y6.Object.defineProperties(wn.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],wn.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.vf),_.k("design:type",Object)],wn.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],wn.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],wn.prototype,"hideMessageBlock",null);
wn=_.Q([_.t({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],wn);
_.A(wn,"ytd-live-chat-history-entry-renderer",function(){if(C3Z!==void 0)return C3Z;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return C3Z=Y},{mode:1});var x9B;var pv=function(){return _.Z.apply(this,arguments)||this};
_.r(pv,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],pv.prototype,"data",void 0);pv=_.Q([_.t({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],pv);
_.A(pv,"ytd-channel-options-renderer",function(){if(x9B!==void 0)return x9B;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return x9B=Y},{mode:1});var bt5;var Fx=function(){return _.Z.apply(this,arguments)||this};
_.r(Fx,_.Z);Fx.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Fx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Fx.prototype,"data",void 0);Fx=_.Q([_.t({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Fx);
_.A(Fx,"ytd-settings-email-item-renderer",function(){if(bt5!==void 0)return bt5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return bt5=Y},{mode:1});var Te1;var s1=function(){return _.Z.apply(this,arguments)||this};
_.r(s1,_.Z);s1.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"}}}};
s1.prototype.getExpansionIcon=function(Y){return Y?"arrow_drop_up":"arrow_drop_down"};
s1.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.y6.Object.defineProperties(s1.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],s1.prototype,"data",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],s1.prototype,"expanded",void 0);_.Q([_.d("expanded"),_.k("design:type",String),_.k("design:paramtypes",[])],s1.prototype,"emailListExpanded",null);
_.Q([_.nc("#options"),_.k("design:type",Object)],s1.prototype,"options",void 0);s1=_.Q([_.t({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],s1);
_.A(s1,"ytd-settings-email-list-renderer",function(){if(Te1!==void 0)return Te1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Te1=Y},{mode:1});var KH5;var dn=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return Y};
_.r(dn,_.Z);dn.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"}}}};
dn.prototype.handleSignalActionSubmitForm=function(){var Y,S=(Y=this.formRenderer)==null?void 0:Y.getForm();S&&this.data.serviceEndpoint&&_.E().resolve(_.uY).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},S,{element:this.hostElement})})};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],dn.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],dn.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],dn.prototype,"data",void 0);_.Q([_.nc("yt-form-renderer"),_.k("design:type",Object)],dn.prototype,"formRenderer",void 0);
dn=_.Q([_.t({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],dn);
_.A(dn,"ytd-settings-gaia-link-renderer",function(){if(KH5!==void 0)return KH5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return KH5=Y},{mode:1});var E41;var lZ=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return Y};
_.r(lZ,_.Z);lZ.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.xg6()&&this.set("data.hidden",!1)};
lZ.prototype.onSwitchReady=function(){var Y=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.f("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.RA5().then(function(S){S&&(Notification.permission==="default"?Y.set("data.hidden",!1):Notification.permission==="granted"&&_.UA("NotificationsDisabled").then(function(P){P||_.nb(Y.hostElement,"yt-toggle-settings-switch",[Y.data.id,!P]);Y.set("data.hidden",!1)}).catch(function(){}))})})};
lZ.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}}}}};
lZ.prototype.handleUpdateOptionsCommand=function(Y){(Y=_.g(Y,_.y_d))&&this.data&&this.data.id===Y.id&&(this.set("data.hidden",Y.hidden),Y.text!==void 0&&this.set("data.text",Y.text),Y.clearOptions&&this.set("data.options",[]))};
lZ.prototype.onSwitchReady=lZ.prototype.onSwitchReady;lZ.prototype.dataChanged=lZ.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],lZ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],lZ.prototype,"data",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lZ.prototype,"dataChanged",null);_.Q([_.WZ("yt-settings-switch-ready"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lZ.prototype,"onSwitchReady",null);lZ=_.Q([_.t({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],lZ);
_.A(lZ,"ytd-settings-options-renderer",function(){if(E41!==void 0)return E41;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return E41=Y},{mode:1});var fMI;var Xx=function(){return _.Z.apply(this,arguments)||this};
_.r(Xx,_.Z);Xx.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Xx.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Xx.prototype.onYtExpanderMoreTapped=Xx.prototype.onYtExpanderMoreTapped;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Xx.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Xx.prototype,"data",void 0);
_.Q([_.WZ("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xx.prototype,"onYtExpanderMoreTapped",null);Xx=_.Q([_.t({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Xx);
_.A(Xx,"ytd-product-details-description-renderer",function(){if(fMI!==void 0)return fMI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return fMI=Y},{mode:1});var g4B;var Zv=function(){var Y=_.Z.apply(this,arguments)||this;Y.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";Y.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";Y.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";Y.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return Y};
_.r(Zv,_.Z);Zv.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.y6.Object.defineProperties(Zv.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:(S=Y.offerData)==null?void 0:S.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?void 0:Y.purchaseButtonRenderers)!==void 0&&((S=this.data)==null?void 0:S.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!((Y=this.data)==null||!Y.formattedFromMerchantText)&&(!((S=this.data)==null||!S.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Zv.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Zv.prototype,"data",void 0);
_.Q([_.X({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0}),_.k("design:type",Object)],Zv.prototype,"shippingIcon",void 0);_.Q([_.X({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0}),_.k("design:type",Object)],Zv.prototype,"shippingAddressIcon",void 0);_.Q([_.X({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0}),_.k("design:type",Object)],Zv.prototype,"googleGuaranteeIcon",void 0);
_.Q([_.X({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0}),_.k("design:type",Object)],Zv.prototype,"returnPolicyIcon",void 0);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Zv.prototype,"showAdditionalFees",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Zv.prototype,"showMultiPurchaseButtons",null);
_.Q([_.d("data","showMultiPurchaseButtons"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Zv.prototype,"showPurchaseData",null);Zv=_.Q([_.t({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Zv);
_.A(Zv,"ytd-product-details-hero-offer-renderer",function(){if(g4B!==void 0)return g4B;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return g4B=Y},{mode:1});var $9B;var rr6;var iZ=function(){return _.Z.apply(this,arguments)||this};
_.r(iZ,_.Z);_.z=iZ.prototype;_.z.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.z.onKeyDown=function(Y){Y=Y.keyCode;Y!==13&&Y!==32||this.handleSelection()};
_.z.onMouseEnterImage=function(){var Y;((Y=this.data)==null?void 0:Y.thumbnailDetails)!==void 0&&_.jR(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.z.onMouseLeaveImage=function(){_.jR(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.z.handleSelection=function(){this.data&&_.ms(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.y6.Object.defineProperties(iZ.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isSelected)}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],iZ.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],iZ.prototype,"isSelected",null);iZ=_.Q([_.t({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],iZ);
_.A(iZ,"ytd-product-details-thumbnail-renderer",function(){if(rr6!==void 0)return rr6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return rr6=Y},{mode:1});var ot=function(){var Y=_.Z.apply(this,arguments)||this;var S={};Y.actionMap=(S["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",S["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",S);Y.selectedThumbnailIndex=0;Y.selectItem=function(P){P.target.onKeyDown(P)};
return Y};
_.r(ot,_.Z);_.z=ot.prototype;_.z.handlePreviewImageSelect=function(Y){this.hoverThumbnail=Y};
_.z.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.z.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.z.onThumbnailSelected=function(Y,S){this.selectedThumbnailIndex=S};
_.z.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.z.updateOffset=function(){var Y=_.I(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-Y));this.ytdHorizontalListBehavior.reposition_()};
_.y6.Object.defineProperties(ot.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null?0:Y.imageRenderer){var S,P;return((S=this.data)==null?void 0:(P=S.imageRenderer)==null?void 0:P.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var Y;if((Y=this.data)==null?0:Y.imageRenderer){var S;return(S=_.g(this.data.imageRenderer[this.selectedThumbnailIndex],yQI))==null?void 0:S.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var Y=this,S,P,u,W=(u=(S=this.data)==null?void 0:(P=S.imageRenderer)==null?void 0:P.map(function(m,J){return{productDetailsThumbnailRenderer:Object.assign({},_.g(m,yQI),{index:J,isSelected:J===Y.selectedThumbnailIndex})}}))!=null?u:[];
return Object.assign({},this.data,{imageRenderer:W})}}});
ot.prototype.updateOffset=ot.prototype.updateOffset;ot.prototype.dataChanged=ot.prototype.dataChanged;ot.prototype.onThumbnailSelected=ot.prototype.onThumbnailSelected;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ot.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.kR.YtdHorizontalListBehavior),_.k("design:type",Object)],ot.prototype,"ytdHorizontalListBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],ot.prototype,"componentBehavior",void 0);_.Q([_.p([_.tD.YtActionHandlerBehavior]),_.k("design:type",Object)],ot.prototype,"actionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ot.prototype,"data",void 0);_.Q([_.X({value:"$.items.children"}),_.k("design:type",String)],ot.prototype,"itemsPath",void 0);_.Q([_.X({value:3}),_.k("design:type",Number)],ot.prototype,"initialCount",void 0);
_.Q([_.nc("#items"),_.k("design:type",Object)],ot.prototype,"items",void 0);_.Q([_.X(),_.k("design:type",Object)],ot.prototype,"selectedThumbnailIndex",void 0);_.Q([_.X(),_.k("design:type",Object)],ot.prototype,"hoverThumbnail",void 0);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ot.prototype,"showThumbnails",null);
_.Q([_.WZ("ytd-product-details-thumbnail-renderer-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Number]),_.k("design:returntype")],ot.prototype,"onThumbnailSelected",null);_.Q([_.d("data","selectedThumbnailIndex","hoverThumbnail"),_.k("design:type",Object),_.k("design:paramtypes",[])],ot.prototype,"thumbnailDetails",null);_.Q([_.d("data","selectedThumbnailIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],ot.prototype,"populatedData",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ot.prototype,"dataChanged",null);_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ot.prototype,"updateOffset",null);ot=_.Q([_.t({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],ot);
_.A(ot,"ytd-product-details-image-carousel-renderer",function(){if($9B!==void 0)return $9B;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return $9B=Y},{mode:_.OX("kevlar_poly_si_batch_j079")?1:2});var Gs_;var tZ=function(){return _.Z.apply(this,arguments)||this};
_.r(tZ,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],tZ.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],tZ.prototype,"data",void 0);tZ=_.Q([_.t({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],tZ);
_.A(tZ,"ytd-product-details-offer-renderer",function(){if(Gs_!==void 0)return Gs_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Gs_=Y},{mode:1});var hRB;var AZ=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOffersHidden=!0;return Y};
_.r(AZ,_.Z);AZ.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var Y,S=_.g((Y=this.data)==null?void 0:Y.viewOffersButton,_.I8);S&&this.ytRendererBehavior.logExplicitClick(S)};
AZ.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.y6.Object.defineProperties(AZ.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u;return(P=_.g((Y=this.data)==null?void 0:(S=Y.offers)==null?void 0:S[0],eYI))==null?void 0:(u=P.offerData)==null?void 0:u.vendorLogoUrl}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],AZ.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],AZ.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],AZ.prototype,"isOffersHidden",void 0);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],AZ.prototype,"firstOfferVendorLogoUrl",null);AZ=_.Q([_.t({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],AZ);
_.A(AZ,"ytd-product-details-offers-container-renderer",function(){if(hRB!==void 0)return hRB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return hRB=Y},{mode:1});var v4o;var D9d;var U1=function(){return _.Z.apply(this,arguments)||this};
_.r(U1,_.Z);U1.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
U1.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.jR(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
U1.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.jR(this,"ytd-product-details-variant-image-unselect")};
_.y6.Object.defineProperties(U1.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((Y=this.data)==null?void 0:Y.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((S=this.data)==null?void 0:S.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((P=this.data)==null?void 0:P.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var Y;if(((Y=this.data)==null?void 0:Y.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var Y,S;return this.isUnavailable?(Y=this.data)==null?void 0:Y.variantOptionUnavailableAccessibilityLabel:(S=this.data)==null?void 0:S.variantOptionAccessibilityLabel}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],U1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],U1.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],U1.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],U1.prototype,"displayType",void 0);
_.Q([_.d("displayType","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],U1.prototype,"isImageButton",null);_.Q([_.d("displayType","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],U1.prototype,"isPillButton",null);_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],U1.prototype,"isActive",null);
_.Q([_.d("data"),_.X({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],U1.prototype,"isUnavailable",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],U1.prototype,"thumbnailDetails",null);_.Q([_.d("isUnavailable","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],U1.prototype,"accessibilityLabel",null);U1=_.Q([_.t({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],U1);
_.A(U1,"ytd-product-details-variant-option-renderer",function(){if(D9d!==void 0)return D9d;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return D9d=Y},{mode:1});var IMc;var Qb=function(){var Y=_.Z.apply(this,arguments)||this;Y.variantsExpanded=!1;Y.hideShowMoreLessVariantButton=!0;Y.initialized=!1;Y.computeVariantsDebouncer=null;Y.computeVariants=function(S){S=S===void 0?!1:S;Y.variantsExpanded||Y.showOptions()||!S||(Y.variantsExpanded=!0);if(Y.variantsExpanded){S=_.n(Y.items.children);for(var P=S.next();!P.done;P=S.next())P.value.hidden=!1}Y.initialized=!0};
return Y};
_.r(Qb,_.Z);_.z=Qb.prototype;_.z.ready=function(){var Y=this;setTimeout(function(){Y.computeVariants(!0)})};
_.z.showOptions=function(){for(var Y=_.n(this.items.children),S=Y.next();!S.done;S=Y.next())S.value.hidden=!0;var P=this.container.getBoundingClientRect().width,u=0,W=Y=0;S=!1;for(var m=_.n(this.items.children),J=m.next();!J.done;J=m.next()){J=J.value;J.hidden=!1;var c=J.getBoundingClientRect().width;if(u+c<P)u+=c;else if(++W<2)u=c;else break;Y+=1;J.hasAttribute("is-active")&&(S=!0)}for(P=Y;P<this.items.children.length;P++)this.items.children[P].hidden=!0;this.hideShowMoreLessVariantButton=Y===this.items.children.length;
return S};
_.z.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Sp(this.computeVariantsDebouncer,_.AV.after(100),this.computeVariants)};
_.z.onShowMoreLessVariantsButtonClick=function(){var Y;(Y=this.data)!=null&&Y.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.z.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.y6.Object.defineProperties(Qb.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.variantOptionRenderers)==null?void 0:S.find(function(m){return _.g(m,He_).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),u,W;
return(W=(u=_.g(P,He_))==null?void 0:u.name)!=null?W:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
Qb.prototype.debouncedComputeVariants=Qb.prototype.debouncedComputeVariants;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Qb.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Qb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Qb.prototype,"componentBehavior",void 0);_.Q([_.p(_.G8),_.k("design:type",Object)],Qb.prototype,"ironResizableBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],Qb.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Qb.prototype,"variantsExpanded",void 0);_.Q([_.X(),_.k("design:type",Object)],Qb.prototype,"hideShowMoreLessVariantButton",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Qb.prototype,"initialized",void 0);_.Q([_.nc("#items"),_.k("design:type",HTMLDivElement)],Qb.prototype,"items",void 0);_.Q([_.nc("#container"),_.k("design:type",HTMLDivElement)],Qb.prototype,"container",void 0);
_.Q([_.nc("#more-variants-button"),_.k("design:type",HTMLElement)],Qb.prototype,"moreVariantsButton",void 0);_.Q([_.d("data"),_.k("design:type",String),_.k("design:paramtypes",[])],Qb.prototype,"selectedOptionName",null);_.Q([_.zY("data","variantsExpanded"),_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qb.prototype,"debouncedComputeVariants",null);
_.Q([_.d("data"),_.k("design:type",String),_.k("design:paramtypes",[])],Qb.prototype,"displayType",null);_.Q([_.d("displayType"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qb.prototype,"variantItemsClassname",null);Qb=_.Q([_.t({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Qb);
_.A(Qb,"ytd-product-details-variant-renderer",function(){if(IMc!==void 0)return IMc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return IMc=Y},{mode:1});var kD=function(){return _.Z.apply(this,arguments)||this};
_.r(kD,_.Z);
kD.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"}}}};
_.y6.Object.defineProperties(kD.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(S=_.g((Y=this.data)==null?void 0:Y.offersContainerRenderer,Vl_))==null?void 0:S.offers;return P!==void 0&&(P==null?void 0:P.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((P=(Y=this.data)==null?void 0:(S=Y.variants)==null?void 0:S.map(function(u){var W,m;u=(m=(W=_.g(u,NWY))==null?void 0:W.variantOptionRenderers)==null?void 0:m.find(function(c){var C;return((C=_.g(c,He_))==null?void 0:C.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var J;return(J=_.g(u,He_))==null?void 0:J.name}).filter(function(u){return typeof u==="string"}))!=null?P:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u=(S=_.g((Y=this.data)==null?void 0:Y.shoppingFlaggingRenderer,OeI))==null?void 0:(P=S.reportButton)==null?void 0:P.buttonRenderer;if(u)return{text:u.text,command:u.command,icon:{iconType:"FLAG"},accessibilityData:u.accessibilityData,trackingParams:u.trackingParams,loggingDirectives:u.loggingDirectives}}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],kD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],kD.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],kD.prototype,"data",void 0);_.Q([_.nc("#image-carousel-renderer"),_.k("design:type",Object)],kD.prototype,"imageCarouselRenderer",void 0);
_.Q([_.nc("#hero-offer-renderer"),_.k("design:type",Object)],kD.prototype,"productDetailsHeroOfferRenderer",void 0);_.Q([_.nc("#variants"),_.k("design:type",Object)],kD.prototype,"productDetailsVariantRenderer",void 0);_.Q([_.nc("#offers"),_.k("design:type",Object)],kD.prototype,"productDetailsOffersContainerRenderer",void 0);_.Q([_.nc("#description-renderer"),_.k("design:type",Object)],kD.prototype,"productDetailsDescriptionRenderer",void 0);
_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kD.prototype,"showPurchaseData",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kD.prototype,"showHeroOfferRenderer",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kD.prototype,"showBrandText",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kD.prototype,"showOffers",null);
_.Q([_.d("showOffers","showPurchaseData"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kD.prototype,"showBuySeparator",null);_.Q([_.d("showOffers","showPurchaseData"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kD.prototype,"showBuyCard",null);_.Q([_.d("data"),_.k("design:type",String),_.k("design:paramtypes",[])],kD.prototype,"selectedVariantsText",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],kD.prototype,"shoppingReportingButtonData",null);
kD=_.Q([_.t({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],kD);
_.A(kD,"ytd-product-details-renderer",function(){if(v4o!==void 0)return v4o;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return v4o=Y},{mode:1});var aM_;var LHZ;var ww5;var Ml=function(){return _.Z.apply(this,arguments)||this};
_.r(Ml,_.Z);Ml.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.y6.Object.defineProperties(Ml.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Ml.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ml.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],Ml.prototype,"formattedAmount",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Ml.prototype,"ariaLabel",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.style"),_.k("design:type",String),_.k("design:paramtypes",[])],Ml.prototype,"vcBalanceWidgetStyle",null);Ml=_.Q([_.r0({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Ml);
_.A(Ml,"yt-vc-balance-renderer",function(){if(ww5===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;LHZ===void 0&&(LHZ=document.createElement("template"));var u=LHZ;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);ww5=Y}Y=ww5;return Y},{mode:2});_.$s("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var yb=function(){return _.Z.apply(this,arguments)||this};
_.r(yb,_.Z);_.y6.Object.defineProperties(yb.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],yb.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],yb.prototype,"data",void 0);_.Q([_.X({selectorArgs:["data.vcBalanceEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"vcBalanceEntity",S)}}),
_.k("design:type",Object)],yb.prototype,"vcBalanceEntity",void 0);_.Q([_.d("vcBalanceEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],yb.prototype,"formattedAmount",null);_.Q([_.d("vcBalanceEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],yb.prototype,"vcBalanceAriaLabel",null);yb=_.Q([_.t({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],yb);
_.A(yb,"ytd-vc-balance-renderer",function(){if(aM_!==void 0)return aM_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return aM_=Y},{mode:1});var pwu;var Nl=function(){var Y=_.Z.apply(this,arguments)||this;Y.rotation=0;Y.isReloading=!1;return Y};
_.r(Nl,_.Z);Nl.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Nl.prototype.reset=function(){this.hostElement.style.opacity=""};
Nl.prototype.close=function(){var Y=this;return _.B(function(S){if(S.nextAddress==1)return _.q(S,Y.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);Y.hostElement.style.opacity="0";_.Yt(S)})};
Nl.prototype.rotationChanged=Nl.prototype.rotationChanged;_.Q([_.X(),_.k("design:type",Object)],Nl.prototype,"rotation",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Nl.prototype,"isReloading",void 0);_.Q([_.nc("#icon"),_.k("design:type",HTMLElement)],Nl.prototype,"icon",void 0);_.Q([_.zY("rotation"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nl.prototype,"rotationChanged",null);
Nl=_.Q([_.t({disableElementRegistration:!0,is:"ytd-refresh"})],Nl);
_.A(Nl,"ytd-refresh",function(){if(pwu!==void 0)return pwu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return pwu=Y},{mode:1});var FHd;var slc;var d91=function(Y,S,P,u,W,m,J,c){this.minWidth=Y;this.minHeight=S;this.recommendedWidth=P;this.recommendedHeight=u;this.JSC$19258_maxFileSize=W;this.title=m;this.bannerGalleryTitle=J;this.channelId=c;this.picker_=null;Y=_.BCf("yt-banner");S=Y.addView;P=(new sgd("youtubebanner")).addUploadMetadata("silo_id","19");P.opts.ytMaxFileSize=this.JSC$19258_maxFileSize;u=this.recommendedHeight;P.opts.ytRecWidth=this.recommendedWidth;P.opts.ytRecHeight=u;S.call(Y,P);Y.addView(new _.gU);S=Y.addView;P=new _.gU;
P.opts.type="ytbanner";S.call(Y,P.JSC$7947_setLabel(this.bannerGalleryTitle));S=Y.setTitle(this.title).setSize(1E3);S.urlParamMap_.set("thumbs","orig");P=this.minWidth;u=this.minHeight;if(isNaN(P)||isNaN(u))throw Error("kb`"+P+"`"+u);S.urlParamMap_.set("minSize",P+"x"+u);S.urlParamMap_.set("cropMode","ytcb");this.builder_=Y};
d91.prototype.open=function(){var Y=this;return new _.qs(function(S,P){_.xP_(Y.builder_,function(u){u.action=="picked"?S(u):u.action=="cancel"&&P(Error("Xl"))});
Y.picker_&&Y.picker_.dispose();Y.picker_=Y.builder_.build();Y.picker_.setVisible(!0)})};
d91.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var lM_=function(Y){this.channelId=Y},Xw_=function(Y,S){var P="";
S.viewToken&&(P=S.viewToken[2].type);var u=S.docs[0];S=u.crop;Y={channel_id:Y.channelId,fife_url:u.thumbnails[0].url,photo_id:u.id,is_gallery_image:P=="ytbanner"};S&&(Y.crop_top=S.top,Y.crop_right=S.right,Y.crop_bottom=S.bottom,Y.crop_left=S.left);return _.RQK("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:Y})};var HP=function(){var Y=_.Z.apply(this,arguments)||this;Y.ariaLabel=null;return Y};
_.r(HP,_.Z);_.z=HP.prototype;_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.z.detached=function(){this.picker&&this.picker.dispose()};
_.z.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.z.computeAriaLabel=function(Y){return Y};
_.z.onTap=function(){var Y=this,S;if((S=this.data)==null||!S.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new d91(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 P;(P=this.picker)==null||P.open().then(function(u){Y.handleBannerPicked(u)},function(){})}};
_.z.handleBannerPicked=function(Y){var S=this;this.uploader||(this.uploader=new lM_(this.data.channelId||""));this.message=this.data.uploadingText;Xw_(this.uploader,Y).then(function(P){S.handleBannerUploadSucceeded(P)},function(P){S.handleBannerUploadFailed(P)})};
_.z.handleBannerUploadSucceeded=function(Y){Y&&Y.errors?this.handleBannerUploadFailed(Y):(_.ms(this.hostElement,"yt-banner-updated",Y),this.message=null)};
_.z.handleBannerUploadFailed=function(Y){this.message=Y&&Y.errors&&Y.errors.length?Y.errors[0]:null};
HP.prototype.dataChanged=HP.prototype.dataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],HP.prototype,"componentBehavior",void 0);_.Q([_.p(_.DW),_.k("design:type",Object)],HP.prototype,"ironButtonState",void 0);_.Q([_.X(),_.k("design:type",Object)],HP.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.k("design:type",Object)],HP.prototype,"ariaLabel",void 0);
_.Q([_.X(),_.k("design:type",Object)],HP.prototype,"message",void 0);_.Q([_.X(),_.k("design:type",Object)],HP.prototype,"picker",void 0);_.Q([_.X(),_.k("design:type",Object)],HP.prototype,"uploader",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],HP.prototype,"dataChanged",null);HP=_.Q([_.t({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],HP);
_.A(HP,"ytd-channel-banner-editor-renderer",function(){if(slc!==void 0)return slc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return slc=Y},{mode:1});var Zt6;var ito=_.Q0(["#"]),Vb=function(){return _.Z.apply(this,arguments)||this};
_.r(Vb,_.Z);Vb.prototype.computeHrefWithDefault=function(Y){return this.ytComponentBehavior.computeHref_(Y,!0)||_.qD(ito)};
Vb.prototype.dataChanged=function(){var Y=this.data;Y&&Y.targetId&&_.DQU(_.YA(),Y.targetId,this.moreIcon)};
Vb.prototype.dataChanged=Vb.prototype.dataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Vb.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Vb.prototype,"data",void 0);_.Q([_.nc("#more-icon"),_.k("design:type",Object)],Vb.prototype,"moreIcon",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vb.prototype,"dataChanged",null);
Vb=_.Q([_.t({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Vb);
_.A(Vb,"ytd-channel-tagline-renderer",function(){if(Zt6!==void 0)return Zt6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Zt6=Y},{mode:1});var o45;var eP=function(){return _.Z.apply(this,arguments)||this};
_.r(eP,_.Z);_.z=eP.prototype;_.z.ready=function(){var Y=this;_.I(this.hostElement).querySelector("#form").addEventListener("submit",function(S){Y.onSubmit(S)})};
_.z.onDataChanged=function(){var Y;((Y=this.data)==null?0:Y.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.z.onIconButtonKeydown=function(Y){Y.keyCode===13&&this.iconButton.click()};
_.z.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.z.openOnClickHandler=function(){this.input.focus()};
_.z.onSubmit=function(Y){Y.preventDefault();return!1};
_.z.submitOnEnterKeyUp=function(Y){var S;if(Y.keyCode===13&&((S=this.data)==null?0:S.expandedText)){Y=this.data.endpoint;S=_.RY.unsafeClone(Y);var P;((P=_.g(S==null?void 0:S.commandMetadata,_.Yo))==null?0:P.url)?(_.g(S.commandMetadata,_.Yo).url=_.X_(_.g(S.commandMetadata,_.Yo).url,"query",this.data.expandedText),_.g(S,_.CV)&&(_.g(S,_.CV).query=this.data.expandedText),_.ms(this.hostElement,"yt-navigate",{endpoint:S,tempData:{disableCache:!0}})):(P=new _.$2("Error: Trying to navigate to an endpoint without url",
Y),_.p_(P))}};
_.z.updateDataExpandedTextFromBinding=function(Y){this.set("data.expandedText",Y.detail.value)};
eP.prototype.onDataChanged=eP.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rsd),_.k("design:type",Object)],eP.prototype,"ytdExpandableInputBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],eP.prototype,"data",void 0);_.Q([_.nc("#input"),_.k("design:type",Object)],eP.prototype,"input",void 0);_.Q([_.nc("#icon-button"),_.k("design:type",HTMLElement)],eP.prototype,"iconButton",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eP.prototype,"onDataChanged",null);eP=_.Q([_.t({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],eP);
var hY6=_.eD()(eP,"ytd-expandable-tab-renderer",function(){if(o45===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);o45=Y}Y=o45;return Y},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var t75;var Ar1=_.Q0(["#"]),O1=function(){return _.Z.apply(this,arguments)||this};
_.r(O1,_.Z);O1.prototype.computeHrefWithDefault=function(Y){return this.ytComponentBehavior.computeHref_(Y,!0)||_.qD(Ar1)};
_.y6.Object.defineProperties(O1.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var Y;return _.vF((Y=this.data)==null?void 0:Y.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var Y;return _.vF((Y=this.data)==null?void 0:Y.moreOnTap)}}});
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],O1.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],O1.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],O1.prototype,"usePageHeaderStyle",void 0);_.Q([_.d("data.primaryOnTap"),_.k("design:type",Object),_.k("design:paramtypes",[])],O1.prototype,"primaryLinkEndpoint",null);
_.Q([_.d("data.moreOnTap"),_.k("design:type",Object),_.k("design:paramtypes",[])],O1.prototype,"moreEndpoint",null);O1=_.Q([_.t({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],O1);
_.A(O1,"ytd-channel-header-links-view-model",function(){if(t75!==void 0)return t75;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return t75=Y},{mode:1});var U95;var Y$=function(){var Y=_.Z.apply(this,arguments)||this;Y.avatarSize=80;Y.ariaLabel=_.Td("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return Y};
_.r(Y$,_.Z);Y$.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Y$.prototype.computeHref=function(Y){var S;return((S=_.g(Y,_.tp))==null?0:S.url)?this.componentBehavior.computeHref_(Y):null};
Y$.prototype.onTap=function(){var Y,S;(Y=this.data)==null||!Y.editAvatarServiceEndpoint||((S=_.g(this.data.editAvatarServiceEndpoint,_.tp))==null?0:S.url)||_.E().resolve(_.uY).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.Q([_.p(_.DW),_.k("design:type",Object)],Y$.prototype,"ironButtonState",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Y$.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Y$.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Y$.prototype,"avatarSize",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],Y$.prototype,"ariaLabel",void 0);Y$=_.Q([_.t({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Y$);
_.A(Y$,"ytd-channel-avatar-editor",function(){if(U95!==void 0)return U95;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return U95=Y},{mode:1});_.AL(_.w2_,"yt-tab-group-shape",{props:{shape:_.wm}});var S9=function(){var Y=_.Z.apply(this,arguments)||this;Y.expandableCustomTabRenderable=function(S){return v0I(S,function(){return void Y.onSearchNavigate()})};
Y.isRichGrid=!1;Y.richGridMiniMode=!1;Y.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return Y};
_.r(S9,_.Z);_.z=S9.prototype;_.z.areAllFalse=function(Y,S,P){return!Y&&!S&&!P};
_.z.updateJoinButtonOverrides=function(){var Y;(Y=_.I(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||Y.set("overrides",this.joinButtonOverrides)};
_.z.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.z.attached=function(){this.data&&this.dataChanged()};
_.z.computeHeaderDisabled=function(Y,S){return S||!Y};
_.z.handleButtonRefreshAction=function(Y){(Y=_.g(Y,_.Ge_))&&this.set("data.sponsorButton",Y.membershipButton)};
_.z.handleInsertTabCommand=function(Y){var S=_.g(Y,S8I);S&&S.externalChannelId===this.data.channelId&&(S.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(P){return P.tabRenderer&&P.tabRenderer.tabIdentifier===S.tabIdentifier})||this.splice("tabs",S.tabIndex||-1,0,S.tab))};
_.z.handleRefreshChannelTabAction=function(Y){var S,P=(S=this.tabs)==null?void 0:S.filter(function(m){var J;return(J=m.tabRenderer)==null?void 0:J.selected});
S=(P==null?void 0:P.length)===1?P[0]:void 0;var u;if((S==null?void 0:(u=S.tabRenderer)==null?void 0:u.tabIdentifier)===Y){var W;_.ms(this.hostElement,"yt-navigate",{endpoint:(W=S.tabRenderer)==null?void 0:W.endpoint,tempData:{disableCache:!0}})}};
_.z.onWindowResize=function(){_.I(this.hostElement).querySelector("#header").fire("iron-resize")};
_.z.dataChanged=function(){var Y=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var S=_.UD(this.data.banner.thumbnails,this.hostElement.clientWidth);S&&(S.indexOf("//")===0&&(S="https:"+S),this.hasChannelArt=!0,_.PZ(this.hostElement,{"--yt-channel-banner":"url("+S+")"}))}this.hasChannelArt!==Y&&_.I(this.hostElement).querySelector("#header").fire("iron-resize")};
_.z.onBannerUpdated=function(Y,S){Y=window.devicePixelRatio>1?S.hq_url:S.url;Y.indexOf("//")===0&&(Y="https:"+Y);this.hasChannelArt=!0;_.PZ(this.hostElement,{"--yt-channel-banner":"url("+Y+")"})};
_.z.observeLightsourcePalette=function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.headerColorPalette)==null?void 0:S.lightsourceColorPaletteData;P&&_.fR(this.hostElement,P)};
_.z.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.PZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.z.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.z.handleUnsubscribeAction=function(){var Y,S;((S=_.g((Y=this.data)==null?void 0:Y.sponsorButton,_.I8))==null?void 0:S.style)==="STYLE_PRIMARY"&&_.I(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.z.onFocusedChanged=function(Y){(Y=_.oK(Y))&&Y.is==="tp-yt-paper-tab"&&Y.hasRipple()&&(Y.getRipple().holdDown=!Y.pointerDown&&Y.focused)};
_.z.updateSelectedFromBinding=function(Y){this.ytdTabbedHeaderBehavior.selected=Y.detail.value};
_.y6.Object.defineProperties(S9.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Iz1(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!!((Y=this.data)==null?0:(S=Y.headerLinks)==null?0:S.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.subscriptionStateEntity)==null||!Y.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var Y=this.channelHandleDisplayStyle;return Y==="MODERN"||Y==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var Y;return this.usePageHeaderStyle||!((Y=this.data)==null?0:Y.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var Y;return this.usePageHeaderStyle||!((Y=this.data)==null||!Y.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.g((Y=this.data)==null?void 0:Y.bannerEditor,kGY)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var Y;return _.f("enable_view_pronouns_on_main_app")&&!((Y=this.data)==null||!Y.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var Y;return(this.useModernStyle||this.usePageHeaderStyle)&&!((Y=this.data)==null||!Y.videosCountText)}}});
S9.prototype.observerRichGridItemsPerRow=S9.prototype.observerRichGridItemsPerRow;S9.prototype.observeLightsourcePalette=S9.prototype.observeLightsourcePalette;S9.prototype.onBannerUpdated=S9.prototype.onBannerUpdated;S9.prototype.dataChanged=S9.prototype.dataChanged;S9.prototype.updateJoinButtonOverrides=S9.prototype.updateJoinButtonOverrides;_.Q([_.p(_.I5),_.k("design:type",Object)],S9.prototype,"ytdGridStateAwareBehavior",void 0);
_.Q([_.p(P3I),_.k("design:type",Object)],S9.prototype,"ytdTabbedHeaderBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],S9.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],S9.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.p(_.Gn),_.k("design:type",Object)],S9.prototype,"ytdReduxBehavior",void 0);_.Q([_.nc("#tabs"),_.k("design:type",Object)],S9.prototype,"tabsElement",void 0);_.Q([_.X(),_.k("design:type",Array)],S9.prototype,"tabs",void 0);_.Q([_.d("tabs.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],S9.prototype,"tabGroupShape",null);_.Q([_.X(),_.k("design:type",Object)],S9.prototype,"expandableCustomTabRenderable",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],S9.prototype,"isRichGrid",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Object)],S9.prototype,"richGridMiniMode",void 0);_.Q([_.X({selector:_.wT}),_.k("design:type",Number)],S9.prototype,"richGridItemsPerRow",void 0);_.Q([_.X(),_.k("design:type",Object)],S9.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],S9.prototype,"hasChannelArt",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S9.prototype,"hasChannelHeaderLinks",null);_.Q([_.X({selector:_.JsB,reflectToAttribute:!0}),_.k("design:type",Boolean)],S9.prototype,"guideIsVisibleButNotPersistent",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],S9.prototype,"subscribeKey",null);
_.Q([_.X({selectorArgs:["subscribeKey"],selector:_.YI}),_.k("design:type",Object)],S9.prototype,"subscriptionStateEntity",void 0);_.Q([_.d("subscriptionStateEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],S9.prototype,"subscribed",null);_.Q([_.d("subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],S9.prototype,"joinButtonOverrides",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S9.prototype,"useModernStyle",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S9.prototype,"usePageHeaderStyle",null);_.Q([_.d("useModernStyle","usePageHeaderStyle"),_.k("design:type",Number),_.k("design:paramtypes",[])],S9.prototype,"avatarSize",null);
_.Q([_.d("channelHandleDisplayStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S9.prototype,"shouldInlineChannelName",null);_.Q([_.d("data","usePageHeaderStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S9.prototype,"hideBannerEndpoint",null);_.Q([_.d("data","usePageHeaderStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S9.prototype,"hideBannerVisibleArea",null);
_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S9.prototype,"showBannerEditor",null);_.Q([_.d("usePageHeaderStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],S9.prototype,"bannerEffects",null);_.Q([_.d("usePageHeaderStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],S9.prototype,"effectsConfig",null);_.Q([_.d("usePageHeaderStyle","hasChannelArt"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S9.prototype,"shouldShowPageHeaderBanner",null);
_.Q([_.d("data.channelHandleText"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S9.prototype,"isChannelHandlePresent",null);_.Q([_.d("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.k("design:type",String),_.k("design:paramtypes",[])],S9.prototype,"channelHandleDisplayStyle",null);_.Q([_.d("data.channelPronouns"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S9.prototype,"shouldShowChannelPronouns",null);
_.Q([_.d("data.subscriberCountText"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S9.prototype,"shouldShowSubscriberCount",null);_.Q([_.d("useModernStyle","data.videosCountText"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S9.prototype,"shouldShowVideosCount",null);_.Q([_.zY("joinButtonOverrides"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S9.prototype,"updateJoinButtonOverrides",null);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S9.prototype,"dataChanged",null);_.Q([_.WZ("yt-banner-updated"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],S9.prototype,"onBannerUpdated",null);_.Q([_.zY("data.headerColorPalette.lightsourceColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S9.prototype,"observeLightsourcePalette",null);
_.Q([_.zY("richGridItemsPerRow","isRichGrid"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S9.prototype,"observerRichGridItemsPerRow",null);S9=_.Q([_.t({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],S9);
_.A(S9,"ytd-c4-tabbed-header-renderer",function(){if(FHd!==void 0)return FHd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return FHd=Y},{mode:1});var Qld;var PG=function(){return _.Z.apply(this,arguments)||this};
_.r(PG,_.Z);PG.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"}}}};
PG.prototype.dataChanged=function(){if(this.data){var Y=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var S=_.UD(this.data.banner.thumbnails,this.hostElement.clientWidth);S&&(S.indexOf("//")===0&&(S="https:"+S),this.hasBannerArt=!0,_.PZ(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+S+")"}))}this.hasBannerArt!==Y&&_.I(this.hostElement).querySelector("#header").fire("iron-resize")}};
PG.prototype.updateSelectedFromBinding=function(Y){this.selected=Y.detail.value};
PG.prototype.dataChanged=PG.prototype.dataChanged;_.Q([_.p(P3I),_.k("design:type",Object)],PG.prototype,"ytdTabbedHeaderBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.I5),_.k("design:type",Object)],PG.prototype,"ytdGridStateAwareBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],PG.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],PG.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],PG.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Number)],PG.prototype,"selected",void 0);_.Q([_.X(),_.k("design:type",Boolean)],PG.prototype,"active",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],PG.prototype,"hasBannerArt",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PG.prototype,"dataChanged",null);PG=_.Q([_.t({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],PG);
_.A(PG,"ytd-interactive-tabbed-header-renderer",function(){if(Qld!==void 0)return Qld;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Qld=Y},{mode:1});var ksI;var uD=function(){return _.Z.apply(this,arguments)||this};
_.r(uD,_.Z);uD.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
uD.prototype.computeActionsAlignment=function(Y){return(Y==null?void 0:Y.actionsAlignment)||""};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],uD.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.k("design:type",String)],uD.prototype,"actionsAlignment",void 0);
uD=_.Q([_.t({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],uD);
_.A(uD,"ytd-page-footer-renderer",function(){if(ksI!==void 0)return ksI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ksI=Y},{mode:1});var M71;var yrY;var WG=function(){var Y=_.Z.apply(this,arguments)||this;Y.isEditing=!1;Y.useSlot=!1;Y.isMultiline=!1;return Y};
_.r(WG,_.Z);_.z=WG.prototype;_.z.onKeydown=function(Y){if(Y.keyCode===13&&!this.isMultiline)this.onSave();else if(Y.keyCode===27)this.onCancel()};
_.z.computeComponentStyle=function(Y){return(Y==null?0:Y.style)?Y.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.z.computeisMultiline=function(Y){if(this.multilineOverride!==void 0)return this.multilineOverride;var S,P;return!!(Y==null?0:(S=Y.formField)==null?0:(P=S.textInputFormFieldRenderer)==null?0:P.isMultiline)};
_.z.computeTextDisplayed=function(Y,S){if(Y)return Y;if(S)return S};
_.z.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.z.onSave=function(){if(this.textForm.validate()){this.textForm.save();var Y=this.textForm.value;if(Y)this.set("data.textDisplayed",_.kW(Y));else{var S;((S=this.data)==null?0:S.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.I1("inline-form-changed",this.data));this.isEditing=!1}};
_.z.onCancel=function(){var Y=_.Ma(this.data.textDisplayed);Y===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(Y);this.isEditing=!1};
WG.prototype.onKeydown=WG.prototype.onKeydown;_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],WG.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],WG.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],WG.prototype,"isEditing",void 0);_.Q([_.X(),_.k("design:type",Object)],WG.prototype,"useSlot",void 0);_.Q([_.X(),_.k("design:type",Boolean)],WG.prototype,"multilineOverride",void 0);_.Q([_.X(),_.k("design:type",Boolean)],WG.prototype,"enableOverlayTheme",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.k("design:type",String)],WG.prototype,"componentStyle",void 0);
_.Q([_.X({computed:"computeisMultiline(data)"}),_.k("design:type",Object)],WG.prototype,"isMultiline",void 0);_.Q([_.nc("#text-form"),_.k("design:type",Object)],WG.prototype,"textForm",void 0);_.Q([_.WZ("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],WG.prototype,"onKeydown",null);WG=_.Q([_.t({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],WG);
_.A(WG,"ytd-inline-form-renderer",function(){if(yrY!==void 0)return yrY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return yrY=Y},{mode:1});var Nec;var zo=function(){var Y=_.Z.apply(this,arguments)||this;Y.previousSelectValue=void 0;Y.selectedItemMessage=void 0;return Y};
_.r(zo,_.Z);zo.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
zo.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var Y,S,P,u,W=(Y=this.data)==null?void 0:(S=Y.dropdown)==null?void 0:(P=S.dropdownRenderer)==null?void 0:(u=P.entries)==null?void 0:u.map(function(c){return c.privacyDropdownItemRenderer});
Y=_.n(W!=null?W:[]);for(S=Y.next();!S.done;S=Y.next())if((S=S.value)&&S.int32Value===this.selectedValue){this.selectedItemMessage=S.itemMessage;break}}else this.selectedItemMessage=void 0;var m;(m=this.onValueChanged)==null||m.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var J;(J=this.data)!=null&&J.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
zo.prototype.onValueChangedForSelectedValue=function(Y){this.selectedValue=Y.detail.value};
zo.prototype.selectedValueChanged=zo.prototype.selectedValueChanged;_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],zo.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],zo.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],zo.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],zo.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],zo.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],zo.prototype,"theme",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Number)],zo.prototype,"selectedValue",void 0);_.Q([_.X(),_.k("design:type",Function)],zo.prototype,"onValueChanged",void 0);
_.Q([_.cZ("selectedValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zo.prototype,"selectedValueChanged",null);zo=_.Q([_.t({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],zo);
_.A(zo,"ytd-dropdown-form-field-renderer",function(){if(Nec!==void 0)return Nec;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Nec=Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var Ht_;var m6=function(){return _.Z.apply(this,arguments)||this};
_.r(m6,_.Z);_.y6.Object.defineProperties(m6.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var Y=[],S=_.n(this.data||[]),P=S.next();!P.done;P=S.next())(P=_.g(P.value,Y8c))&&Y.push(P);return Y}}});
_.Q([_.X(),_.k("design:type",Array)],m6.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],m6.prototype,"byline",null);m6=_.Q([_.t({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],m6);
_.A(m6,"ytd-playlist-byline-renderer",function(){if(Ht_!==void 0)return Ht_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ht_=Y},{mode:1});var V75;var nY=function(){var Y=_.Z.apply(this,arguments)||this;Y.rtlBullet=_.f("web_playlist_stats_rtl_bullet_icon_killswitch");Y.modern=_.f("web_modern_buttons");Y.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return Y};
_.r(nY,_.Z);_.z=nY.prototype;_.z.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"}}}}};
_.z.attached=function(){};
_.z.computeIsCustomThumbnail=function(Y){return Y?!!Y.playlistCustomThumbnailRenderer:!1};
_.z.onYtNavigate=function(Y,S){if(S&&S.actions&&S.actions.indexOf("shuffle")>-1){Y=_.E().resolve(_.D3);var P=S.tempData||{};P.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);S.tempData=P;Y.isShuffleNextPlaylist=!0}};
_.z.onUpdatePlaylistAction=function(Y){var S;Y=(S=_.g(Y,_.hk_))==null?void 0:S.updatedRenderer;if(S=_.g(Y,rn))this.data=S};
_.z.computeStyleType=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.z.computeThumbnailWidth=function(Y){return Y==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.z.computeHideThumbnailAria=function(Y){if(Y==null?0:Y.thumbnailOverlays)for(var S=0;S<Y.thumbnailOverlays.length;S++){var P=void 0;if((P=Y.thumbnailOverlays[S])==null?0:P.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
nY.prototype.onYtNavigate=nY.prototype.onYtNavigate;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],nY.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],nY.prototype,"ytComponentBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],nY.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],nY.prototype,"rtlBullet",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.k("design:type",String)],nY.prototype,"styleType",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.k("design:type",Number)],nY.prototype,"thumbnailWidth",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],nY.prototype,"modern",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.k("design:type",Boolean)],nY.prototype,"isCustomThumbnail",void 0);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[Event,Object]),_.k("design:returntype")],nY.prototype,"onYtNavigate",null);
nY=_.Q([_.t({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],nY);
_.A(nY,"ytd-playlist-sidebar-primary-info-renderer",function(){if(V75!==void 0)return V75;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return V75=Y},{mode:1});var eR6;var j9=function(){return _.Z.apply(this,arguments)||this};
_.r(j9,_.Z);j9.prototype.computeOwnerVisibility=function(Y){return!(!Y.videoOwner&&!Y.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"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],j9.prototype,"data",void 0);j9=_.Q([_.t({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],j9);
_.A(j9,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(eR6!==void 0)return eR6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return eR6=Y},{mode:1});var OtI;var J0=function(){var Y=_.Z.apply(this,arguments)||this;Y.expanded=!1;Y.isCompact=!1;return Y};
_.r(J0,_.Z);_.z=J0.prototype;_.z.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.z.dataChanged=function(){this.data&&_.a9(_.I(this.text),_.eUS(_.Sdd,_.Ma(this.data.text||null)))};
_.z.computeAutoScrollEnabled=function(Y,S){return Y&&!S};
_.z.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.z.toggleOnTap=function(){this.expanded=!this.expanded};
J0.prototype.expandedChanged=J0.prototype.expandedChanged;J0.prototype.dataChanged=J0.prototype.dataChanged;_.Q([_.p(_.Hg6),_.k("design:type",Object)],J0.prototype,"ytdAutoScrollBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],J0.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],J0.prototype,"expanded",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],J0.prototype,"isCompact",void 0);_.Q([_.X({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.k("design:type",Boolean)],J0.prototype,"autoScrollEnabled",void 0);_.Q([_.nc("#text"),_.k("design:type",Object)],J0.prototype,"text",void 0);_.Q([_.nc("#expander-icon"),_.k("design:type",Object)],J0.prototype,"expanderIcon",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],J0.prototype,"dataChanged",null);_.Q([_.zY("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],J0.prototype,"expandedChanged",null);J0=_.Q([_.t({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],J0);
_.A(J0,"ytd-channel-legal-info-renderer",function(){if(OtI!==void 0)return OtI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return OtI=Y},{mode:1});var YF_;var SFI=_.Td("DOWNLOAD",{},"Download"),PUj=_.Td("DOWNLOADING",{},"Downloading"),u1Z=_.Td("DOWNLOADED",{},"Downloaded"),BG=function(){var Y=_.Z.apply(this,arguments)||this;Y.downloadProgress=0;Y.isDownloadComplete=!1;Y.transferState="TRANSFER_STATE_UNKNOWN";return Y};
_.r(BG,_.Z);_.z=BG.prototype;_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.z.dataChanged=function(){var Y;(Y=this.data)!=null&&Y.tooltip||(Y=_.dT(_.Na().getState(),this.playlistId),this.updateButtonState(Y))};
_.z.computePlaylistId=function(Y){return Y};
_.z.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.z.updateButtonState=function(Y){if(this.data&&(this.data.tooltip!==PUj||!_.fA(Y))){this.isDownloadComplete=!1;switch(Y){case "TRANSFER_STATE_UNKNOWN":Y=SFI;var S="OFFLINE_DOWNLOAD";var P="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":Y=u1Z;S="OFFLINE_PIN";P="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":Y=PUj;S="OFFLINE_DOWNLOADING_ZERO";P="ACTION_REMOVE_WITH_PROMPT";
break;default:Y=SFI,S="OFFLINE_DOWNLOAD",P="ACTION_ADD"}var u=Object.assign({},this.data);u.tooltip=Y;u.accessibilityData={accessibilityData:{label:Y}};u.icon={iconType:S};u.size="SIZE_DEFAULT";_.g(u.command,_.n2)&&(_.g(u.command,_.n2).action=P);this.set("data",u)}};
_.z.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var Y="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?Y="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?Y="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?Y="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?Y="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?Y="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(Y="OFFLINE_PIN",this.isDownloadComplete=!0);var S;Y!==((S=this.data.icon)==null?void 0:S.iconType)&&(S=Object.assign({},this.data),S.tooltip=PUj,S.accessibilityData={accessibilityData:{label:PUj}},S.icon={iconType:Y},_.g(S.command,_.n2)&&(_.g(S.command,_.n2).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",S))}};
BG.prototype.updateProgress=BG.prototype.updateProgress;BG.prototype.onTransferStateChanged=BG.prototype.onTransferStateChanged;BG.prototype.dataChanged=BG.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],BG.prototype,"ytdReduxBehavior",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],BG.prototype,"forceIconButton",void 0);
_.Q([_.X({value:!0}),_.k("design:type",Boolean)],BG.prototype,"forceIconOnly",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],BG.prototype,"overrides",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],BG.prototype,"buttonTooltipPosition",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],BG.prototype,"styleActionButton",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],BG.prototype,"disableTextTransform",void 0);
_.Q([_.X({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.k("design:type",String)],BG.prototype,"playlistId",void 0);_.Q([_.X(),_.k("design:type",Object)],BG.prototype,"data",void 0);_.Q([_.X({selector:_.KaY,selectorArgs:["playlistId"]}),_.k("design:type",Object)],BG.prototype,"downloadProgress",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],BG.prototype,"isDownloadComplete",void 0);
_.Q([_.X({selector:_.dT,selectorArgs:["playlistId"]}),_.k("design:type",String)],BG.prototype,"transferState",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],BG.prototype,"showTooltips",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],BG.prototype,"sendCommandWhenDisabled",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],BG.prototype,"disabled",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BG.prototype,"dataChanged",null);_.Q([_.cZ("transferState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BG.prototype,"onTransferStateChanged",null);_.Q([_.cZ("downloadProgress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BG.prototype,"updateProgress",null);
BG=_.Q([_.t({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],BG);
_.A(BG,"ytd-download-playlist-button-renderer",function(){if(YF_!==void 0)return YF_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return YF_=Y},{mode:1});var WbX;_.AL(_.d$,"thumbnail-overlay-button-view-model",{props:{data:_.wm,lockupExperiments:_.wm}});var cG=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSquare=!1;Y.isVertical=!1;return Y};
_.r(cG,_.Z);cG.prototype.computeIsSquare=function(Y){return Y!=null&&Y.thumbnail?GGo(Y.thumbnail)==="SQUARE":!1};
cG.prototype.computeIsVertical=function(Y){return Y!=null&&Y.thumbnail?GGo(Y.thumbnail)==="VERTICAL":!1};
cG.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.k("design:type",Object)],cG.prototype,"isSquare",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.k("design:type",Object)],cG.prototype,"isVertical",void 0);
_.Q([_.X(),_.k("design:type",Object)],cG.prototype,"data",void 0);cG=_.Q([_.t({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],cG);
_.A(cG,"ytd-hero-playlist-thumbnail-renderer",function(){if(WbX!==void 0)return WbX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return WbX=Y},{mode:1});var CY=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDarkTheme=!1;Y.isUltraWide=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return Y};
_.r(CY,_.Z);_.z=CY.prototype;_.z.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.E();var Y;(Y=_.E().resolve(_.PQ(_.sT)))!=null&&(Y.headerElement=this.hostElement)};
_.z.detached=function(){var Y;(Y=_.E().resolve(_.PQ(_.sT)))!=null&&(Y.headerElement=void 0)};
_.z.onUpdateHeader=function(Y){(Y=Y.detail)&&this.set("data",Y)};
_.z.computeTextDisplayed=function(Y){if(Y)return Y.textDisplayed?Y.textDisplayed:Y.placeholder};
_.z.gradientColorToLinearGradientStop=function(Y){var S=this.isDarkTheme?Y.darkThemeColor:Y.lightThemeColor;return S?_.hK(S)+" "+((Y==null?void 0:Y.startLocation)||0)*100+"%":"transparent"};
_.z.onWindowResize=function(){var Y;((Y=this.data)==null?0:Y.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.z.onIronResize=function(Y){this.isUltraWide=!Y.detail.value};
_.z.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.z.onUpdatePlaylistName=function(Y){var S=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},Y.detail.value));_.ky(this,function(){var P;(P=S.editableTitle)==null||P.resize()})};
_.z.onUpdatePlaylistDescription=function(Y){var S=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},Y.detail.value));_.ky(this,function(){var P;(P=S.editableDescriptionInlineExpander)==null||P.resize()})};
_.z.getCinematicData=function(Y){return _.g(Y==null?void 0:Y.cinematicContainer,_.TA)};
_.y6.Object.defineProperties(CY.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var Y,S=(Y=this.getCinematicData(this.data))==null?void 0:Y.config;return(Y=this.isDarkTheme?S==null?void 0:S.darkThemeBackgroundColor:S==null?void 0:S.lightThemeBackgroundColor)?"background-color:"+_.Gp(Y)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var Y;return _.g((Y=this.data)==null?void 0:Y.descriptionForm,MlY)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var Y=this,S,P,u;return"background:linear-gradient(to bottom, "+(((u=(S=this.getCinematicData(this.data))==null?void 0:(P=S.gradientColorConfig)==null?void 0:P.map(function(W){return Y.gradientColorToLinearGradientStop(W)}))==null?void 0:u.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var Y;return _.Ma((Y=this.data)==null?void 0:Y.descriptionTapText)}}});
CY.prototype.onUpdateHeader=CY.prototype.onUpdateHeader;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],CY.prototype,"actionHandlerBehavior",void 0);_.Q([_.nc("#description-inline-expander"),_.k("design:type",Object)],CY.prototype,"descriptionInlineExpander",void 0);
_.Q([_.nc("#editable-description-inline-expander"),_.k("design:type",Object)],CY.prototype,"editableDescriptionInlineExpander",void 0);_.Q([_.X(),_.k("design:type",Object)],CY.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],CY.prototype,"isUltraWide",void 0);_.Q([_.nc("#editable-title-display"),_.k("design:type",Object)],CY.prototype,"editableTitle",void 0);_.Q([_.d("isUltraWide"),_.k("design:type",Object),_.k("design:paramtypes",[])],CY.prototype,"maxDescriptionLines",null);
_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],CY.prototype,"noCinematicData",null);_.Q([_.WZ("yt-new-playlist-header"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],CY.prototype,"onUpdateHeader",null);_.Q([_.d("data","isDarkTheme"),_.k("design:type",Object),_.k("design:paramtypes",[])],CY.prototype,"backgroundStyle",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],CY.prototype,"descriptionFormData",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],CY.prototype,"getDropdownTheme",null);_.Q([_.d("data","isDarkTheme"),_.k("design:type",String),_.k("design:paramtypes",[])],CY.prototype,"gradientStyle",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],CY.prototype,"descriptionTapText",null);
CY=_.Q([_.t({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],CY);
_.A(CY,"ytd-playlist-header-renderer",function(){if(M71!==void 0)return M71;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return M71=Y},{mode:_.OX("kevlar_poly_si_batch_j078")?1:2});var zgc;var mm_;var qx=function(){return _.Z.apply(this,arguments)||this};
_.r(qx,_.Z);qx.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],qx.prototype,"data",void 0);qx=_.Q([_.t({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],qx);
_.A(qx,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(mm_!==void 0)return mm_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return mm_=Y},{mode:1});var Ra=function(){return _.Z.apply(this,arguments)||this};
_.r(Ra,_.Z);
Ra.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}}}}};
Ra.prototype.computeUsePremiumShowStyle=function(Y){if(!Y||!Y.items)return!1;for(var S=0;S<Y.items.length;S++)if(_.g(Y.items[S],rn)){var P=void 0;return((P=_.g(Y.items[S],rn))==null?void 0:P.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ra.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.k("design:type",Boolean)],Ra.prototype,"usePremiumShowStyle",void 0);
Ra=_.Q([_.t({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],Ra);
_.A(Ra,"ytd-playlist-sidebar-renderer",function(){if(zgc!==void 0)return zgc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return zgc=Y},{mode:1});var nuI;var wnc=_.EP({pageHeaderViewModel:_.Rrm});_.Sr(pno);var j0o=_.AI(function(Y){var S=Y.data;var P=Y.noPadding;var u=Y.enableBanner;var W=Y.cinematicContainerTopbarOffset;var m=Y.allowCinematicContainerOverflow;var J=Y.displayAsSidebar;_.D6(function(){S().tagManagerId&&(_.JD(S().tagManagerId,_.X3("GL")),Lku(S().tagManagerId))});
var c=_.Jq(azu,function(){return S().pageHeaderEntityKey});
return _.R("yt-page-header-renderer",{class:"page-header-renderer-wiz"},_.R(_.rv,{data:function(){var C;return((C=c())==null?0:C.header)?c().header:(J==null?0:J())&&S().sidebarContent?S().sidebarContent:S().content}},{pageHeaderViewModel:function(C){return _.R(_.x5d,{data:C.data,
noPadding:P,enableBanner:u,cinematicContainerTopbarOffset:W,allowCinematicContainerOverflow:m,displayAsSidebar:function(){return(J==null?void 0:J())&&S().enableSidebarView}})}}))},"Sh"),JX5=_.f("web_enable_sink_yt_page_header_renderer")?j0o:pno;
j0o.idomCompat=!0;_.f("web_enable_sink_yt_page_header_renderer")?_.AL(JX5,"yt-page-header-renderer",{props:{data:_.wm,noPadding:_.wm,enableBanner:_.wm,cinematicContainerTopbarOffset:_.wm,allowCinematicContainerOverflow:_.wm,displayAsSidebar:_.wm}}):_.Vz(JX5,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar".split(" ")});_.AL(_.gt,"yt-image-banner-view-model",{props:{data:_.wm,isPositionRelative:_.wm}});var x$=function(){var Y=_.Z.apply(this,arguments)||this;Y.expandableCustomTabRenderable=function(S){return v0I(S,function(){return void Y.onSearchNavigate()})};
Y.isRichGrid=!1;Y.isConstrainedList=!1;Y.richGridMiniMode=!1;Y.richGridStyle="RICH_GRID_STYLE_UNKNOWN";Y.isRichGridShorts=!1;Y.responsiveSizing="COMPACT";Y.disableGridStateAware=!1;Y.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return Y};
_.r(x$,_.Z);_.z=x$.prototype;_.z.computeHeaderDisabled=function(Y,S){return S||!Y||this.tabsHidden};
_.z.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.z.computeIsRichGridShorts=function(Y){return Y==="RICH_GRID_STYLE_SHORTS_GRID"||Y==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.z.computeImageBannerViewModel=function(){var Y,S;return _.g((S=_.g((Y=this.data)==null?void 0:Y.content,_.nmi))==null?void 0:S.banner,_.b48)};
_.z.computeHasCinematicContainer=function(){var Y,S;return!((S=_.g((Y=this.data)==null?void 0:Y.content,_.nmi))==null||!S.background)};
_.z.handleHeaderResize=function(){var Y=_.I(this.hostElement).querySelector("#header");Y&&_.ms(Y,"iron-resize")};
_.z.handleInsertTabCommand=function(Y){var S=_.g(Y,S8I);S&&(S.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(P){return P.tabRenderer&&P.tabRenderer.tabIdentifier===S.tabIdentifier})||this.splice("tabs",S.tabIndex||-1,0,S.tab))};
_.z.handleRefreshChannelTabAction=function(Y){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===Y&&_.ms(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.z.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.PZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.z.observerRichGridSlimItemsPerRow=function(){_.PZ(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.z.updateCssVars=function(){this.richGridItemsPerRow&&_.PZ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.z_("rich_grid_max_item_width",500))+16)-16+"px"})};
_.z.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.PZ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.z.onDataChanged=function(){this.handleHeaderResize()};
_.z.onWindowResize=function(){this.handleHeaderResize()};
_.z.onFocusedChanged=function(Y){(Y=_.oK(Y))&&Y.is==="tp-yt-paper-tab"&&Y.hasRipple()&&(Y.getRipple().holdDown=!Y.pointerDown&&Y.focused)};
_.z.updateSelectedFromBinding=function(Y){this.ytdTabbedHeaderBehavior.selected=Y.detail.value};
_.z.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.y6.Object.defineProperties(x$.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Iz1(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.imageBannerViewModel)==null?void 0:Y.style)==="IMAGE_BANNER_STYLE_INSET"}}});
x$.prototype.onDataChanged=x$.prototype.onDataChanged;x$.prototype.updateCssVarsForResponsiveGrid=x$.prototype.updateCssVarsForResponsiveGrid;x$.prototype.updateCssVars=x$.prototype.updateCssVars;x$.prototype.observerRichGridSlimItemsPerRow=x$.prototype.observerRichGridSlimItemsPerRow;x$.prototype.observerRichGridItemsPerRow=x$.prototype.observerRichGridItemsPerRow;_.Q([_.p(_.I5),_.k("design:type",Object)],x$.prototype,"ytdGridStateAwareBehavior",void 0);
_.Q([_.p(P3I),_.k("design:type",Object)],x$.prototype,"ytdTabbedHeaderBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],x$.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],x$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],x$.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.p(_.Gn),_.k("design:type",Object)],x$.prototype,"ytdReduxBehavior",void 0);_.Q([_.nc("#tabs"),_.k("design:type",Object)],x$.prototype,"tabsElement",void 0);_.Q([_.X(),_.k("design:type",Array)],x$.prototype,"tabs",void 0);_.Q([_.X(),_.k("design:type",Object)],x$.prototype,"expandableCustomTabRenderable",void 0);_.Q([_.d("tabs.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],x$.prototype,"tabGroupShape",null);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],x$.prototype,"isRichGrid",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],x$.prototype,"isConstrainedList",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Object)],x$.prototype,"richGridMiniMode",void 0);_.Q([_.X({selector:function(Y){return Y.ui.richGridStyle}}),
_.k("design:type",Object)],x$.prototype,"richGridStyle",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.k("design:type",Object)],x$.prototype,"isRichGridShorts",void 0);_.Q([_.X({selector:_.wT}),_.k("design:type",Number)],x$.prototype,"richGridItemsPerRow",void 0);_.Q([_.X({selector:function(Y){return Y.ui.richGridContainerWidth}}),
_.k("design:type",Number)],x$.prototype,"richGridContainerWidth",void 0);_.Q([_.X({selector:_.Wa9}),_.k("design:type",Number)],x$.prototype,"richGridSlimItemsPerRow",void 0);_.Q([_.X(),_.k("design:type",Object)],x$.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],x$.prototype,"responsiveSizing",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],x$.prototype,"disableGridStateAware",void 0);
_.Q([_.X({computed:"computeImageBannerViewModel(data)"}),_.k("design:type",Object)],x$.prototype,"imageBannerViewModel",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.k("design:type",Boolean)],x$.prototype,"hasCinematicContainer",void 0);_.Q([_.X({selector:_.JsB,reflectToAttribute:!0}),_.k("design:type",Boolean)],x$.prototype,"guideIsVisibleButNotPersistent",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("imageBannerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],x$.prototype,"hasBanner",null);_.Q([_.X({reflectToAttribute:!0}),_.d("imageBannerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],x$.prototype,"hasInsetBanner",null);_.Q([_.X({computed:"computeTabsHidden(tabs)",value:!0}),_.k("design:type",Boolean)],x$.prototype,"tabsHidden",void 0);
_.Q([_.zY("richGridItemsPerRow","isRichGrid"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x$.prototype,"observerRichGridItemsPerRow",null);_.Q([_.zY("richGridSlimItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x$.prototype,"observerRichGridSlimItemsPerRow",null);
_.Q([_.zY("richGridItemsPerRow","richGridMiniMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x$.prototype,"updateCssVars",null);_.Q([_.zY("richGridContainerWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x$.prototype,"updateCssVarsForResponsiveGrid",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x$.prototype,"onDataChanged",null);
x$=_.Q([_.t({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],x$);
_.A(x$,"ytd-tabbed-page-header",function(){if(nuI!==void 0)return nuI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return nuI=Y},{mode:1});var BSI;var bD=function(){return _.Z.apply(this,arguments)||this};
_.r(bD,_.Z);bD.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.PZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.y6.Object.defineProperties(bD.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var Y,S;return this.componentBehavior.computeIcon_(((S=_.g((Y=this.data)==null?void 0:Y.badge,_.zzm))==null?void 0:S.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(S=_.g((Y=this.data)==null?void 0:Y.badge,_.zzm))==null?void 0:S.label}}});
bD.prototype.observerRichGridItemsPerRow=bD.prototype.observerRichGridItemsPerRow;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],bD.prototype,"componentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],bD.prototype,"ytdReduxBehavior",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.LA}),_.k("design:type",Boolean)],bD.prototype,"richGridMiniMode",void 0);
_.Q([_.X({selector:_.wT}),_.k("design:type",Number)],bD.prototype,"richGridItemsPerRow",void 0);_.Q([_.X(),_.k("design:type",Object)],bD.prototype,"data",void 0);_.Q([_.zY("richGridItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bD.prototype,"observerRichGridItemsPerRow",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],bD.prototype,"badgeIconName",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],bD.prototype,"badgeLabel",null);bD=_.Q([_.t({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],bD);
_.A(bD,"ytd-member-hub-profile-renderer",function(){if(BSI!==void 0)return BSI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return BSI=Y},{mode:1});var cXu;var To=function(){return _.Z.apply(this,arguments)||this};
_.r(To,_.Z);To.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],To.prototype,"data",void 0);To=_.Q([_.t({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],To);
_.A(To,"ytd-settings-sidebar-renderer",function(){if(cXu!==void 0)return cXu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return cXu=Y},{mode:1});var CUc;var KY=function(){return _.Z.apply(this,arguments)||this};
_.r(KY,_.Z);KY.prototype.shouldHideHashtagInfo_=function(Y){return!(Y==null?0:Y.hashtagInfoText)};
KY.prototype.onFocusedChanged=function(Y){(Y=_.oK(Y))&&Y.is==="tp-yt-paper-tab"&&Y.hasRipple()&&(Y.getRipple().holdDown=!Y.pointerDown&&Y.focused)};
KY.prototype.updateSelectedFromBinding=function(Y){this.selected=Y.detail.value};
_.y6.Object.defineProperties(KY.prototype,{tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
_.Q([_.p(P3I),_.k("design:type",Object)],KY.prototype,"ytdTabbedHeaderBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],KY.prototype,"rendererBehaviors",void 0);_.Q([_.X(),_.k("design:type",Object)],KY.prototype,"data",void 0);_.Q([_.nc("#tabs"),_.k("design:type",Object)],KY.prototype,"tabsElement",void 0);_.Q([_.X(),_.k("design:type",Array)],KY.prototype,"tabs",void 0);_.Q([_.X(),_.k("design:type",Object)],KY.prototype,"selected",void 0);
_.Q([_.d("tabs"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],KY.prototype,"tabsEnabled",null);KY=_.Q([_.t({disableElementRegistration:!0,is:"ytd-hashtag-header-renderer"})],KY);
_.A(KY,"ytd-hashtag-header-renderer",function(){if(CUc!==void 0)return CUc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-hashtag-header-renderer">\n  <tp-yt-app-header id="header" slot="header" condenses="" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-hashtag-header-renderer">\n    <div id="hashtag-info-container" class="style-scope ytd-hashtag-header-renderer">\n      <yt-formatted-string id="hashtag" dir="auto" text="[[data.hashtag]]" class="style-scope ytd-hashtag-header-renderer">\n      </yt-formatted-string>\n      <div id="hashtag-info" hidden="[[shouldHideHashtagInfo_(data)]]" class="style-scope ytd-hashtag-header-renderer">\n        <yt-formatted-string id="hashtag-info-text" hidden="[[!data.hashtagInfoText]]" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-header-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <tp-yt-app-toolbar hidden="[[!tabsEnabled]]" sticky="" class="style-scope ytd-hashtag-header-renderer">\n      <div id="tabs-container" class="style-scope ytd-hashtag-header-renderer">\n        \n        <div id="tabs-inner-container" class="style-scope ytd-hashtag-header-renderer">\n          <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-hashtag-header-renderer">\n            <template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-hashtag-header-renderer">\n              <tp-yt-paper-tab disable-upgrade$="[[!item.tabRenderer]]" hidden="[[!item.tabRenderer]]" on-focused-changed="onFocusedChanged" class="style-scope ytd-hashtag-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab>\n            </template>\n          </tp-yt-paper-tabs>\n        </div>\n        <div id="tabs-divider" class="style-scope ytd-hashtag-header-renderer"></div>\n      </div>\n    </tp-yt-app-toolbar>\n  </tp-yt-app-header>\n</tp-yt-app-header-layout>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return CUc=Y},{mode:_.OX("kevlar_poly_si_batch_j078")?1:2});var qFI;var EY=function(){var Y=_.Z.apply(this,arguments)||this;Y.expandableCustomTabRenderable=function(S){return v0I(S,function(){return void Y.onSearchNavigate()})};
return Y};
_.r(EY,_.Z);EY.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
EY.prototype.onSearchNavigate=function(){this.selected=void 0};
EY.prototype.onTabsChange=function(){var Y,S=(Y=this.tabs)==null?void 0:Y.findIndex(function(P){var u;return P==null?void 0:(u=P.tabRenderer)==null?void 0:u.selected});
S!==void 0&&(this.selected=S)};
EY.prototype.onTabsActive=function(Y){if(this.tabs!==void 0){var S,P;(Y=(S=this.tabs[Y.detail.selected])==null?void 0:(P=S.tabRenderer)==null?void 0:P.endpoint)&&_.ms(this.hostElement,"yt-navigate",{endpoint:Y})}};
_.y6.Object.defineProperties(EY.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Iz1(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
EY.prototype.onTabsChange=EY.prototype.onTabsChange;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],EY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.I5),_.k("design:type",Object)],EY.prototype,"ytdGridStateAwareBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],EY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],EY.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Array)],EY.prototype,"tabs",void 0);_.Q([_.X(),_.k("design:type",Number)],EY.prototype,"selected",void 0);_.Q([_.d("tabs.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],EY.prototype,"tabGroupShape",null);_.Q([_.X(),_.k("design:type",Object)],EY.prototype,"expandableCustomTabRenderable",void 0);
_.Q([_.d("tabs"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],EY.prototype,"tabsEnabled",null);_.Q([_.cZ("tabs"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EY.prototype,"onTabsChange",null);EY=_.Q([_.t({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],EY);
_.A(EY,"ytd-topic-channel-details-renderer",function(){if(qFI!==void 0)return qFI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return qFI=Y},{mode:1});var Rg_;var fY=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableGridStateAware=!1;return Y};
_.r(fY,_.Z);fY.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]]"}}}}}};
fY.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
fY.prototype.updateCssVars=function(){_.PZ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.z_("rich_grid_max_item_width",500))+16)-16+"px"})};
fY.prototype.updateCssVars=fY.prototype.updateCssVars;fY.prototype.activeChanged=fY.prototype.activeChanged;_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],fY.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],fY.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],fY.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Array)],fY.prototype,"tabs",void 0);_.Q([_.X(),_.k("design:type",Boolean)],fY.prototype,"active",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fY.prototype,"disableGridStateAware",void 0);
_.Q([_.X({selector:_.wT}),_.k("design:type",Number)],fY.prototype,"richGridItemsPerRow",void 0);_.Q([_.X({selector:_.LA}),_.k("design:type",Boolean)],fY.prototype,"richGridMiniMode",void 0);_.Q([_.nc("ytd-carousel-item-renderer"),_.k("design:type",Object)],fY.prototype,"carousel",void 0);_.Q([_.zY("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fY.prototype,"activeChanged",null);
_.Q([_.zY("richGridItemsPerRow","richGridMiniMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fY.prototype,"updateCssVars",null);fY=_.Q([_.t({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],fY);
_.A(fY,"ytd-carousel-header-renderer",function(){if(Rg_!==void 0)return Rg_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Rg_=Y},{mode:1});var xmc;var bnc=_.Q0(["https://www.google-analytics.com/analytics.js"]),go=function(){var Y=_.Z.apply(this,arguments)||this;Y.scriptAnalyticsAdded=!1;return Y};
_.r(go,_.Z);go.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var Y,S=(Y=this.data)==null?void 0:Y.tagManagerId;S&&(_.JD(S,_.X3("GL")),Lku(S))};
go.prototype.sendGoogleAnalyticsPageview=function(Y){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var P=_.Ch.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(P)};
var S=window.ga;S("set","page",window.location.pathname);S.l=+new Date;S("set","forceSSL",!0);S("create",Y,"'auto'");S("send","pageview")};
go.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var Y=_.nN("SCRIPT");Y.name="ga-analytics";var S=_.kt(bnc);_.I9(Y,S);Y.async=!0;_.I(this.hostElement).appendChild(Y)};
go.prototype.dataChanged=go.prototype.dataChanged;_.Q([_.X(),_.k("design:type",Object)],go.prototype,"data",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],go.prototype,"dataChanged",null);go=_.Q([_.t({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],go);
_.A(go,"ytd-channel-metadata-renderer",function(){if(xmc!==void 0)return xmc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return xmc=Y},{mode:1});var TSd;var Kbd;var $$=function(){return _.Z.apply(this,arguments)||this};
_.r($$,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$$.prototype,"data",void 0);$$=_.Q([_.t({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],$$);
_.A($$,"ytd-sub-feed-option-renderer",function(){if(Kbd!==void 0)return Kbd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Kbd=Y},{mode:1});var Eu1;var ro=function(){return _.Z.apply(this,arguments)||this};
_.r(ro,_.Z);ro.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ro.prototype,"ytRendererStamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ro.prototype,"data",void 0);ro=_.Q([_.t({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],ro);
_.A(ro,"ytd-sub-feed-selector-renderer",function(){if(Eu1!==void 0)return Eu1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Eu1=Y},{mode:1});var Go=function(){return _.Z.apply(this,arguments)||this};
_.r(Go,_.Z);
Go.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Go.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Go.prototype,"data",void 0);Go=_.Q([_.t({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Go);
_.A(Go,"ytd-browse-feed-actions-renderer",function(){if(TSd!==void 0)return TSd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return TSd=Y},{mode:1});var fxY;var guu;var h0=function(){return _.Z.apply(this,arguments)||this};
_.r(h0,_.Z);h0.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],h0.prototype,"data",void 0);h0=_.Q([_.t({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],h0);
_.A(h0,"ytd-mini-channel-renderer",function(){if(guu!==void 0)return guu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return guu=Y},{mode:1});var $mI;var vG=function(){return _.Z.apply(this,arguments)||this};
_.r(vG,_.Z);vG.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],vG.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],vG.prototype,"data",void 0);vG=_.Q([_.t({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],vG);
_.A(vG,"ytd-vertical-channel-section-renderer",function(){if($mI!==void 0)return $mI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return $mI=Y},{mode:1});var Dm=function(){return _.Z.apply(this,arguments)||this};
_.r(Dm,_.Z);Dm.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Dm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Dm.prototype,"data",void 0);Dm=_.Q([_.t({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Dm);
_.A(Dm,"ytd-browse-secondary-contents-renderer",function(){if(fxY!==void 0)return fxY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
return fxY=Y},{mode:1});var rXu;var Ia=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};Y.notActive=!1;Y.isConstrainedList=!1;return Y};
_.r(Ia,_.Z);_.z=Ia.prototype;
_.z.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}}}},"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",
noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.z.getPath=function(Y,S){var P="data.tabs.#"+S+".";Y.tabs[S].tabRenderer?P+="tabRenderer.":Y.tabs[S].expandableTabRenderer&&(P+="expandableTabRenderer.");return P+"content.sectionListRenderer"};
_.z.computeDisplayedContent=function(Y){this.unlinkPaths("content");if(Y&&Y.tabs)for(var S=Y.tabs.length,P=0;P<S;P++){var u=Y.tabs[P].tabRenderer||Y.tabs[P].expandableTabRenderer;if(u.selected&&u.content)return this.linkPaths("content",this.getPath(Y,P)),u.content}return null};
_.z.computeHasSecondaryColumnData=function(Y){return!!Y&&!!Y.secondaryContents};
_.z.onRetrieveLocation=function(Y,S){S.locationRetrieved(S.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);Y.stopPropagation()};
_.z.onYtServiceRequestSent=function(Y,S){_.f("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(S)};
_.z.onYtServiceRequestCompleted=function(Y,S){_.f("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(S)};
_.z.onReplaceFeedContentAction=function(Y){if(!_.f("replace_feed_content_action_killswitch")&&!this.notActive){var S;(Y=(S=_.g(Y,AQj))==null?void 0:S.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(Y)}};
_.z.handleServiceRequestActions=function(Y){if(Y=Y.actions){Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;var P=void 0;((P=_.g(S,AQj))==null?0:P.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.g(S,AQj).items)}}};
Ia.prototype.onYtServiceRequestCompleted=Ia.prototype.onYtServiceRequestCompleted;Ia.prototype.onYtServiceRequestSent=Ia.prototype.onYtServiceRequestSent;Ia.prototype.onRetrieveLocation=Ia.prototype.onRetrieveLocation;_.Q([_.p(_.I5),_.k("design:type",Object)],Ia.prototype,"ytdGridStateAwareBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Ia.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Ia.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ia.prototype,"data",void 0);_.Q([_.X({computed:"computeDisplayedContent(data)"}),_.k("design:type",Object)],Ia.prototype,"content",void 0);
_.Q([_.X({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Ia.prototype,"hasSecondaryColumnData",void 0);_.Q([_.X({value:function(){return window.outerHeight>1024?3:2}}),
_.k("design:type",Number)],Ia.prototype,"initialCount",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],Ia.prototype,"pageSubtype",void 0);_.Q([_.nc("ytd-section-list-renderer"),_.k("design:type",Object)],Ia.prototype,"listRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],Ia.prototype,"notActive",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Ia.prototype,"isConstrainedList",void 0);
_.Q([_.X(),_.k("design:type",String)],Ia.prototype,"responsiveSizing",void 0);_.Q([_.WZ("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],Ia.prototype,"onRetrieveLocation",null);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],Ia.prototype,"onYtServiceRequestSent",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],Ia.prototype,"onYtServiceRequestCompleted",null);Ia=_.Q([_.t({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Ia);
_.A(Ia,"ytd-two-column-browse-results-renderer",function(){if(rXu!==void 0)return rXu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return rXu=Y},{mode:2});var Gbj;var hg5;var aa=function(){var Y=_.Z.apply(this,arguments)||this;Y.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);Y.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return Y};
_.r(aa,_.Z);_.z=aa.prototype;_.z.attached=function(){this.requestElementsPerRow()};
_.z.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_]]"}}}}}};
_.z.onUpdateElementsPerRowAction=function(Y){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y)};
_.z.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.z.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.z.computeAlertStyle_=function(Y){return Y};
_.z.observerElementsPerRow=function(){this.elementsPerRow&&_.PZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.z.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.z.requestElementsPerRow=function(){_.ms(this.hostElement,"yt-request-elements-per-row")};
aa.prototype.onIsVisibleChanged_=aa.prototype.onIsVisibleChanged_;aa.prototype.observerElementsPerRow=aa.prototype.observerElementsPerRow;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],aa.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],aa.prototype,"actionHandlerBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],aa.prototype,"data",void 0);_.Q([_.X({value:6,reflectToAttribute:!0}),_.k("design:type",Number)],aa.prototype,"elementsPerRow",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],aa.prototype,"wrapButtons",void 0);_.Q([_.X({value:_.X3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.k("design:type",Boolean)],aa.prototype,"isMusic",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.k("design:type",String)],aa.prototype,"alertStyle",void 0);_.Q([_.X({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.k("design:type",Function)],aa.prototype,"dismissBoundButtonTap_",void 0);_.Q([_.X({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.k("design:type",Function)],aa.prototype,"acceptBoundButtonTap_",void 0);_.Q([_.zY("elementsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aa.prototype,"observerElementsPerRow",null);_.Q([_.zY("data.isVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aa.prototype,"onIsVisibleChanged_",null);aa=_.Q([_.r0({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],aa);
_.A(aa,"yt-alert-with-actions-renderer",function(){if(hg5===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Gbj===void 0&&(Gbj=document.createElement("template"));var u=Gbj;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);hg5=Y}Y=hg5;return Y},{mode:2});_.AL(_.AI(function(Y){function S(U){var V={};return _.R(_.qw,{text:U,className:_.Si("ytPersonalGreetingViewModelHeadline",(V.ytPersonalGreetingViewModelHeadlineSmall=function(){return c()===48},V))})}
function P(U,V){return _.R("span",{el:U,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},S(V))}
var u=_.Ms(),W=_.Ms(),m=_.Ms(),J=function(){return Y.data().canvasPromoData},c=function(){var U;
return(U=Y.data().bannerHeight)!=null?U:56},C=_.n(_.qb({content:""},void 0,"rcUSic")),x=C.next().value,b=C.next().value,T=_.h1a(u,{throttleMs:100}),K=_.h1a(W,{throttleMs:100}),G=_.h1a(m,{throttleMs:100});
C=_.n(_.qb(!0,void 0,"b0Yv9d"));var v=C.next().value,a=C.next().value;C=_.n(_.qb(!0,void 0,"ByEGnd"));var w=C.next().value,F=C.next().value;_.D6(function(){F(K.width()-T.width()>1);a(G.width()+(Y.data().avatar?48:0)-T.width()>1);b(v()?Y.data().shorterGreeting:Y.data().greeting)},"nSIsDe");
_.Zw(u,function(){var U;return(U=Y.data())==null?void 0:U.rendererContext},void 0,void 0,void 0,!0);
return _.R("yt-personal-greeting-view-model",{el:u,"aria-hidden":function(){return w()},
class:_.Si(Y.className,"ytPersonalGreetingViewModelHost"),style:_.Jg({height:(0,_.xi)(function(){return w()?0:c()})})},_.R(_.gw,{cond:function(){return Y.data().avatar&&!v()},
then:function(){return _.R(_.rv,{data:function(){return Y.data().avatar}},{decoratedAvatarViewModel:function(U){return _.R(_.RT,{data:U.data,
className:_.Si("ytPersonalGreetingViewModelAvatar")})}})}}),S(function(){var U;
return(J==null?void 0:(U=J())==null?void 0:U.headline)||x()}),P(m,function(){return Y.data().greeting}),P(W,function(){return Y.data().shorterGreeting}))},"Th"),"yt-personal-greeting-view-model",{props:{data:_.wm,
className:_.wm}});var LY=function(){var Y=_.Z.apply(this,arguments)||this;Y.hidden=!1;Y.isConstrainedList=!1;Y.darkerDarkTheme=_.f("web_darker_dark_theme");Y.responsiveSizing="COMPACT";Y.attachedPlayers=_.f("kevlar_channel_trailer_multi_attach")?[]:void 0;Y.player=null;Y.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return Y};
_.r(LY,_.Z);_.z=LY.prototype;
_.z.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",
isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",
tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},hashtagHeaderRenderer:{component:"ytd-hashtag-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.z.created=function(){var Y=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){Y.disposeMastheadAd()}]};
_.z.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new zRc(this.refresh,this.contents))};
_.z.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.z.activeChanged=function(){var Y=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=Y)};
_.z.tabsChanged=function(){var Y=this,S,P,u,W;if(this.pageSubtype==="channels"||_.f("kevlar_tab_gestures_for_tabbed_header_data")&&(((S=this.data)==null?0:(P=S.header)==null?0:P.c4TabbedHeaderRenderer)||((u=this.data)==null?0:(W=u.header)==null?0:W.carouselHeaderRenderer)))this.tabGestures=new hZ(this.contents,this.contents,this.hostElement,this.header,function(C){Y.ytdReduxBehavior.dispatch(C)});
var m,J,c;S=(m=this.data)==null?void 0:(J=m.contents)==null?void 0:(c=J.twoColumnBrowseResultsRenderer)==null?void 0:c.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=S);this.tabGestures&&this.tabGestures.tabsChanged(S)};
_.z.channelIdChanged=function(){if(this.tabGestures){var Y,S,P,u=this.tabGestures,W=(Y=this.data)==null?void 0:(S=Y.header)==null?void 0:(P=S.c4TabbedHeaderRenderer)==null?void 0:P.channelId;W&&W!==u.currentChannelId&&(u.scrollPositionForTabs.clear(),u.currentChannelId=W,u.lastVisitedTabScrollPosition=void 0,u.tabsStartAtInPx=0)}};
_.z.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.z.engagementPanelsChanged=function(){var Y=_.E().resolve(_.Rr);if(Y){if(this.engagementPanels)for(var S=_.n(this.engagementPanels),P=S.next();!P.done;P=S.next()){var u=void 0;(P=(u=P.value.identifier)==null?void 0:u.tag)&&Y.panelMap.delete(P)}this.engagementPanels=[];var W;S=_.n(((W=this.data)==null?void 0:W.panels)||[]);for(W=S.next();!W.done;W=S.next()){W=_.g(W.value,_.A3B);var m=P=void 0,J=void 0,c=void 0;if(u=((P=W)==null?void 0:P.targetId)||((m=W)==null?void 0:m.panelIdentifier)||((J=W)==null?
void 0:(c=J.identifier)==null?void 0:c.tag))m=P=void 0,(m=(P=Y).registerPanelContent)==null||m.call(P,u,{engagementPanelSectionListRenderer:W}),this.engagementPanels.push(W)}}};
_.z.onStampFinished=function(){var Y=this;_.ky(this,function(){if(Y.tabGestures){var S=Y.tabGestures;if(S.scrollPositionNeedsUpdate){var P=_.E().resolve(_.PQ(_.Ag)),u;if((u=S.selectedTab)!=null&&u.title&&P&&(u=P.getCurrentPage())){if(S.scrollPositionForTabs.has(S.selectedTab.title)){var W,m;P=(m=(W=P.getCurrentPage())==null?void 0:W.clientHeight)!=null?m:0;W=S.scrollPositionForTabs.get(S.selectedTab.title);u.setScrollTop(W);P>W+100&&(S.scrollPositionNeedsUpdate=!1)}else u.setScrollTop(Math.min(S.lastVisitedTabScrollPosition!==
void 0?S.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,S.tabsStartAtInPx)),S.scrollPositionNeedsUpdate=!1;S.ytdReduxDispatch(FkB(!1))}}}})};
_.z.loadPage_=function(Y){this.initCsi();Y&&(this.data=Y);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.z.getTitle=function(Y){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",Y))return this.get("microformat.microformatDataRenderer.title",Y);if(this.get("header.c4TabbedHeaderRenderer.title",Y))return this.get("header.c4TabbedHeaderRenderer.title",Y);if(this.get("header.feedTabbedHeaderRenderer.title",Y))return _.Ma(this.get("header.feedTabbedHeaderRenderer.title",Y));if(this.get("header.interactiveTabbedHeaderRenderer.title",Y))return this.get("header.interactiveTabbedHeaderRenderer.title",
Y);if(this.get("header.hashtagHeaderRenderer.hashtag",Y))return _.Ma(this.get("header.hashtagHeaderRenderer.hashtag",Y));if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",Y))return _.Ma(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
Y));var S,P;return _.f("enable_page_header_page_title")&&(Y==null?0:(S=Y.header)==null?0:(P=S.pageHeaderRenderer)==null?0:P.pageTitle)?Y.header.pageHeaderRenderer.pageTitle:""};
_.z.updateTitle=function(Y){_.ms(this.hostElement,"yt-update-title",this.getTitle(Y))};
_.z.initCsi=function(){_.fv(this.pageSubtype||"browse",["ol","cpt"])};
_.z.getPlayer=function(){if(_.f("kevlar_channel_trailer_multi_attach")){for(var Y=_.n(this.attachedPlayers),S=Y.next();!S.done;S=Y.next())if(S=S.value,S.isConnected||_.pN(this.hostElement,S))return S;return null}return this.player};
_.z.getPlayerContainer=function(){return null};
_.z.onPlayerAttached=function(Y,S){_.f("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(S):this.player=S};
_.z.onPlayerDetached=function(Y,S){_.f("kevlar_channel_trailer_multi_attach")?(Y=this.attachedPlayers.indexOf(S),Y<0||this.attachedPlayers.splice(Y,1)):this.player=null};
_.z.getServiceTrackingParams=function(){var Y,S;return((Y=this.data)==null?void 0:(S=Y.responseContext)==null?void 0:S.serviceTrackingParams)||[]};
_.z.setMastheadAd=function(Y){Y&&Y.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=Y&&Y.mastheadAd};
_.z.dataChanged=function(){var Y=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.RYd();_.ky(this,function(){_.jR(Y.hostElement,"ytd-update-grid-state-action")})};
_.z.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.z.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var Y=this.data.alerts;return Y&&Y.find(function(S){return!!S.alertWithActionsRenderer})}};
_.z.computeGreetingData=function(){if(this.data&&this.data.alerts){var Y=this.data.alerts;return Y&&Y.find(function(S){return!!S.personalGreetingViewModel})}};
_.z.computeHasC4TabbedHeaderRenderer=function(Y){var S;return!!(Y==null?0:(S=Y.header)==null?0:S.c4TabbedHeaderRenderer)};
_.z.computeHasMemberHubProfileRenderer=function(Y){var S;return!!(Y==null?0:(S=Y.header)==null?0:S.memberHubProfileRenderer)};
_.z.handleAlertCommand=function(Y){this.get("alertCommand.alert.alertWithActionsRenderer",Y)&&(Y=_.g(Y,Uf6),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",Y.alert))};
_.z.handleYtPlaylistDeletionRedirect=function(Y){Y=this.get("playlistDeletionRedirectCommand.redirectEndpoint",Y);_.ms(this.hostElement,"yt-navigate",{endpoint:Y})};
_.z.computeFluidWidth=function(Y,S,P){if(S==="mini_app"||P)return!0;var u,W,m;Y=Y==null?void 0:(u=Y.contents)==null?void 0:(W=u.twoColumnBrowseResultsRenderer)==null?void 0:(m=W.tabs)==null?void 0:m.find(function(C){var x;return C==null?void 0:(x=C.tabRenderer)==null?void 0:x.selected});
if(!Y)return!1;var J,c;return!!((J=Y.tabRenderer)==null?0:(c=J.content)==null?0:c.richGridRenderer)&&!["channel","channels","playables"].includes(S)};
_.z.computeHeaderFluidWidth=function(Y){return Y==="hashtag-landing-page"};
_.z.computeHasSidebar=function(Y){var S;return!!(Y.sidebar||((S=Y.header)==null?0:S.playlistHeaderRenderer))};
_.z.computeHasPageHeaderSidebar=function(Y){var S,P;return!!((S=Y.header)==null?0:(P=S.pageHeaderRenderer)==null?0:P.enableSidebarView)};
_.z.computeUseUnifiedShowPageLayout=function(Y){if(!Y||this.pageSubtype!=="show"||!Y.sidebar||!Y.sidebar.playlistSidebarRenderer)return!1;Y=Y.sidebar.playlistSidebarRenderer;if(!Y.items)return!1;for(var S=0;S<Y.items.length;S++)if(_.g(Y.items[S],rn)){var P=void 0;return((P=_.g(Y.items[S],rn))==null?void 0:P.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.z.computeIsConstrainedList=function(Y){return _.f("web_enable_constrained_list_subscriptions_channels")&&Y==="subscriptions-channels"};
_.z.computeResponsiveSizing=function(Y){return Y==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.y6.Object.defineProperties(LY.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,S;return((Y=this.data)==null?0:(S=Y.header)==null?0:S.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,S;if(!((Y=this.data)==null?0:(S=Y.sidebar)==null?0:S.playlistSidebarRenderer))return!1;var P;return(P=this.data)!=null&&P.header?!1:!0}}});
_.y6.Object.defineProperties(LY,{template:{configurable:!0,enumerable:!0,get:function(){if(jl1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" disable-upgrade$="[[!hasPageHeaderSidebar]]" display-as-sidebar="" hidden="[[!hasPageHeaderSidebar]]">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);jl1=Y}Y=jl1;return Y}}});
LY.prototype.dataChanged=LY.prototype.dataChanged;LY.prototype.onPlayerDetached=LY.prototype.onPlayerDetached;LY.prototype.onPlayerAttached=LY.prototype.onPlayerAttached;LY.prototype.onStampFinished=LY.prototype.onStampFinished;LY.prototype.engagementPanelsChanged=LY.prototype.engagementPanelsChanged;LY.prototype.scrollAtTopChanged=LY.prototype.scrollAtTopChanged;LY.prototype.channelIdChanged=LY.prototype.channelIdChanged;LY.prototype.tabsChanged=LY.prototype.tabsChanged;
LY.prototype.activeChanged=LY.prototype.activeChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],LY.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],LY.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],LY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],LY.prototype,"ytdReduxBehavior",void 0);
_.Q([_.p(_.gn.YtPageBehavior),_.k("design:type",Object)],LY.prototype,"ytPageBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],LY.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],LY.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],LY.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],LY.prototype,"hidden",void 0);_.Q([_.X(),_.k("design:type",Object)],LY.prototype,"mastheadAdData",void 0);_.Q([_.X({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.k("design:type",Object)],LY.prototype,"alertBannerData",void 0);_.Q([_.X({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.k("design:type",Object)],LY.prototype,"greetingData",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],LY.prototype,"pageSubtype",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.k("design:type",Boolean)],LY.prototype,"hasC4TabbedHeaderRenderer",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.k("design:type",Boolean)],LY.prototype,"hasMemberHubProfileRenderer",void 0);
_.Q([_.X({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],LY.prototype,"hasSidebar",void 0);_.Q([_.X({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],LY.prototype,"hasPageHeaderSidebar",void 0);_.Q([_.X({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],LY.prototype,"roundedContainer",void 0);
_.Q([_.X({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],LY.prototype,"useUnifiedShowPageLayout",void 0);_.Q([_.X({computed:"computeIsConstrainedList(pageSubtype)"}),_.k("design:type",Object)],LY.prototype,"isConstrainedList",void 0);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],LY.prototype,"usePlaylistHeaderRenderer",null);
_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],LY.prototype,"useOldPlaylistSidebarRenderer",null);_.Q([_.X({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.k("design:type",Boolean)],LY.prototype,"fluidWidth",void 0);_.Q([_.X({selector:function(Y){return Y.ui.scrollAtTop}}),
_.k("design:type",Boolean)],LY.prototype,"scrollAtTop",void 0);_.Q([_.X({selector:_.BQd}),_.k("design:type",Boolean)],LY.prototype,"tabGesturesIsActive",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],LY.prototype,"darkerDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.k("design:type",Boolean)],LY.prototype,"disableHeaderFluidWidth",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.k("design:type",String)],LY.prototype,"responsiveSizing",void 0);_.Q([_.nc("ytd-two-column-browse-results-renderer"),_.k("design:type",HTMLElement)],LY.prototype,"contents",void 0);_.Q([_.nc("#header"),_.k("design:type",HTMLElement)],LY.prototype,"header",void 0);_.Q([_.nc("ytd-refresh"),_.k("design:type",Object)],LY.prototype,"refresh",void 0);
_.Q([_.zY("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LY.prototype,"activeChanged",null);_.Q([_.zY("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LY.prototype,"tabsChanged",null);_.Q([_.zY("data.header.c4TabbedHeaderRenderer.channelId"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LY.prototype,"channelIdChanged",null);
_.Q([_.zY("scrollAtTop"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LY.prototype,"scrollAtTopChanged",null);_.Q([_.X(),_.k("design:type",Object)],LY.prototype,"engagementPanels",void 0);_.Q([_.zY("data.panels"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LY.prototype,"engagementPanelsChanged",null);
_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LY.prototype,"onStampFinished",null);_.Q([_.WZ("yt-player-attached"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Element]),_.k("design:returntype")],LY.prototype,"onPlayerAttached",null);_.Q([_.WZ("yt-player-detached"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Element]),_.k("design:returntype")],LY.prototype,"onPlayerDetached",null);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LY.prototype,"dataChanged",null);LY=_.Q([_.t({is:"ytd-browse"})],LY);_.TV.registerService(_.g$$,LY);
_.Gl();
}catch(e){_._DumpException(e)}
try{
_.r7("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 CYj=function(Y,S){return Y<S?-1:Y>S?1:0},Hw=function(Y,S){var P=0;
Y=(0,_.uW)(String(Y)).split(".");S=(0,_.uW)(String(S)).split(".");for(var u=Math.max(Y.length,S.length),W=0;P==0&&W<u;W++){var m=Y[W]||"",J=S[W]||"";do{m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];J=/(\d*)(\D*)(.*)/.exec(J)||["","","",""];if(m[0].length==0&&J[0].length==0)break;P=CYj(m[1].length==0?0:parseInt(m[1],10),J[1].length==0?0:parseInt(J[1],10))||CYj(m[2].length==0,J[2].length==0)||CYj(m[2],J[2]);m=m[3];J=J[3]}while(P==0)}return P},VC=function(Y){if(!Y)return"browse";
var S=Y.page,P=Y.url,u,W,m,J=(u=Y.response)==null?void 0:(W=u.responseContext)==null?void 0:(m=W.webResponseContextExtensionData)==null?void 0:m.pageTheme;if(J)S=J.toLowerCase().replace(/_/g,"-");else if(S!=="watch"){var c,C;if((S==="browse"||S==="settings")&&((c=Y.response)==null?0:(C=c.sidebar)==null?0:C.settingsSidebarRenderer))S="WEB_PAGE_TYPE_SETTINGS";else{var x,b;S==="browse"&&((x=Y.response)==null?0:(b=x.metadata)==null?0:b.channelMetadataRenderer)?S="channel":P&&(S=_.eeh(P)||S)}}return S},
qh5=function(){var Y=_.tA("yt.aba.att");
return Y?Y:_.Ur.instance!==void 0?_.Ur.instance.ozI.bind(_.Ur.instance):null},Ra5=function(Y,S){var P;
return _.B(function(u){return(P=qh5())?u.return(P(Y,S,6E4)):u.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},xY1=function(Y,S,P,u,W){S=S===void 0?[]:S;
W=W?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:W}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Sk(Y),dialogMessages:S.map(function(m){return _.Sk(m)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Sk(P),serviceEndpoint:W}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Sk(u)}}}}}},bz1=function(Y){var S=!!_.pd().queueProxy;
var P,u,W;Y=Y==null?void 0:(P=Y.response)==null?void 0:(u=P.currentVideoEndpoint)==null?void 0:(W=u.watchEndpoint)==null?void 0:W.playlistId;return!(!S&&!Y)},Tkd=function(Y,S){var P=_.nd();
if(bz1(Y))return P.playlistWatchPageActivation=!0;switch(VC(S)){case "yts-products":return P.productDetailsPageActivation=!0;case "mini_app":return P.miniAppPageActivation=!0;case "playables":return P.playablesDestPageActivation=!0;default:return!1}},KG1=function(Y,S,P){for(var u=typeof Y==="string"?Y.split(""):Y,W=Y.length-1;W>=0;--W)W in u&&S.call(P,u[W],W,Y)},E2_=function(Y,S){S=_.b8J(Y,S);
S>=0&&_.kY(Y,S)},fA1=function(Y){return Array.prototype.concat.apply([],arguments)},g2B=function(Y){var S=0;
S=S===void 0?0:S;if(!_.j_(Y))throw _.jS("uint64");var P=typeof Y;switch(S){case 512:switch(P){case "string":return _.v6(Y);case "bigint":return String((0,_.DI)(64,Y));default:return _.Jma(Y)}case 1024:switch(P){case "string":return _.cmJ(Y);case "bigint":return _.tm((0,_.DI)(64,Y));default:return _.Bd8(Y)}case 0:switch(P){case "string":return _.v6(Y);case "bigint":return _.tm((0,_.DI)(64,Y));default:return _.hj(Y)}default:return _.O6(S,"Unknown format requested type for int64")}},$YB=function(Y){Y!=
null&&(Y=Y.JSC$6687_value_||"",Y=typeof Y==="string"?Y:new Uint8Array(Y));
return Y},rcc=function(Y){for(var S=_.Ch.apply(1,arguments),P=Y[0],u=0;u<Y.length-1;u++)P+=String(S[u]),P+=Y[u+1];
S=document.implementation.createHTMLDocument("");u=S.createElement("style");S.head.appendChild(u);S=u.sheet;S.insertRule(P,0);if(S.cssRules.length===1&&(P=S.cssRules[0],P instanceof CSSStyleRule))return new _.ph(P.cssText.replace(/</g,"\\3C "))},G_Z=function(Y,S){if(/-[a-z]/.test(S))return null;
if(_.M_6&&Y.dataset){if(_.nYh()&&!(S in Y.dataset))return null;Y=Y.dataset[S];return Y===void 0?null:Y}return Y.getAttribute("data-"+_.b6(S))},v2u=function(){var Y=had;
_.tA("yt.ads.biscotti.getId_")||_.HQ("yt.ads.biscotti.getId_",Y)},DYZ=function(Y){_.HQ("yt.ads.biscotti.lastId_",Y)},aAd=function(){var Y={};
for(_.DA=new IAY(Y.handleError===void 0?_.F_:Y.handleError,Y.logEvent===void 0?_.L_:Y.logEvent);_.I4.length>0;)switch(Y=_.I4.shift(),Y.type){case "ERROR":_.DA.logError(Y.payload);break;case "EVENT":_.DA.logEvent(Y.eventType,Y.payload)}},LGI=function(Y,S,P){return _.$qK(function(u){return P?u.userIdentifier!==void 0&&!Y.includes(u.userIdentifier)&&P.includes(u.publicName):u.userIdentifier!==void 0&&!Y.includes(u.userIdentifier)},S)},wQZ=function(Y){var S,P;
return _.B(function(u){if(u.nextAddress==1)return S=_.fz("YtIdbMeta hasAnyMeta other"),_.q(u,_.$qK(function(W){return W.userIdentifier!==void 0&&W.userIdentifier!==S},Y),2);
P=u.yieldResult;return u.return(P.length>0)})},FGo=function(Y,S){pQB||(pQB=_.wc.addLowPriorityJob(function(){var P,u,W,m,J;
return _.B(function(c){switch(c.nextAddress){case 1:return _.q(c,_.Vl(),2);case 2:P=c.yieldResult;if(!P)return c.return();u=!0;_.ND(c,3);return _.q(c,LGI(Y,P,S),5);case 5:W=c.yieldResult;if(!W.length){u=!1;c.jumpTo(6);break}m=W[0];return _.q(c,_.Ac(m.actualName),7);case 7:return _.q(c,_.k2(m.actualName,P),6);case 6:_.tc(c,4);break;case 3:J=_.O4(c),_.a4(J),u=!1;case 4:_.wc.cancelJob(pQB),pQB=0,u&&FGo(Y,S),_.Yt(c)}})}))},s41=function(){var Y;
return _.B(function(S){return S.nextAddress==1?_.q(S,_.Vl(),2):(Y=S.yieldResult)?S.return(wQZ(Y)):S.return(!1)})},dYX=function(Y){var S=100;
S=S===void 0?500:S;var P,u,W,m,J,c;return _.B(function(C){return C.nextAddress==1?(P=_.X3("INNERTUBE_CONTEXT_CLIENT_NAME",0),u=[P,(0,_.Oh)()-2592E6],W=[P,(0,_.Oh)()],m=IDBKeyRange.bound(u,W),_.q(C,_.NT8(Y),2)):C.nextAddress!=3?(J=C.yieldResult,c=[],_.q(C,_.Ql(J,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(x){c.length=0;return _.YF(x.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:m,direction:"prev"},function(b){if(b.getValue()&&c.length<S)return c.push(b.getValue()),
b.delete().then(function(){return b.continue()})})}),3)):C.return(c)})},lA1=function(){var Y;
return _.B(function(S){if(S.nextAddress==1)return _.q(S,_.Vl(),2);Y=S.yieldResult;if(!Y||!_.gk()&&!_.f("nwl_init_require_datasync_id_killswitch")||!_.RCK())return S.jumpTo(0);_.bVU=!0;_.xyh.isNwlInitialized=_.bVU;return _.q(S,_.uDf().awaitInitialization(),0)})},e7=function(Y,S){_.pq8[Y]=!0;
var P=_.WK();P&&P.publish.apply(P,arguments);_.pq8[Y]=!1},ZzI=function(){if(_.BT8()&&!XQo){var Y=function(P){P=P.data;
if(P.op==="serializedGelBatch"){var u=_.Fm$.get(P.key);u&&(_.dha(P.serializedBatch,u.client,u.resolve,u.networklessOptions,u.isIsolated,u.useVSSEndpoint,u.dangerousLogToVisitorSession,u.requestsOutstanding),_.Fm$.delete(P.key))}},S=_.JEJ();
S&&(S.addEventListener("message",Y),S.onerror=function(){_.Fm$.clear()});
XQo=!0}},O8=function(){this.relativeTimeStart_=_.S5()},iz5=function(Y,S){Y!=null&&this.append.apply(this,arguments)},o2B=function(){return _.df("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},tHY=function(Y,S,P){P=P===void 0?!1:P;
var u,W,m,J,c;return _.B(function(C){switch(C.nextAddress){case 1:_.Kz("SOCS",Y,34128E3,"youtube.com",!0);if(_.BW)return W=fetch(S,{method:"POST",mode:_.Qx(S),credentials:_.U2(S),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),m=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Qx("/upgrade_visitor_cookie?eom=1"),credentials:_.U2("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.q(C,Promise.all([W,m]).then(function(x){return x[1]}),5);
fetch(S,{method:"POST",mode:_.Qx(S),credentials:_.U2(S),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.q(C,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Qx("/upgrade_visitor_cookie?eom=1"),credentials:_.U2("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:u=C.yieldResult;C.jumpTo(3);break;case 5:u=J=C.yieldResult;case 3:if(!u.ok)throw Error("nf");return _.q(C,u.text(),7);case 7:c=C.yieldResult,
!c.includes('"state_switch":true')&&!P||c.includes("skip_reload_for_test")||window.location.reload(),_.Yt(C)}})},Ac6=function(Y){return _.B(function(S){return S.nextAddress==1?_.q(S,tHY(Y.socsCookie,Y.savePreferenceUrl,!0),2):S.return()})},UYY=function(Y){return _.B(function(S){return S.nextAddress==1?_.q(S,tHY(Y.socsCookie,Y.savePreferenceUrl),2):S.return()})},k_j=function(Y){Y=Y.xhr.responseText;
if(!_.m$(Y,")]}'"))throw new Yu;Y=JSON.parse(Y.substr(4));if((Y.type||1)>1)throw new Yu;Y=Y.id;DYZ(Y);Sz=_.lO(Y);Q4Z(18E5,2);return Y},ycc=function(Y,S){S=new MH6(S);
DYZ("");Sz=_.bff(S);Y>0&&Q4Z(12E4,Y-1);throw S;},Q4Z=function(Y,S){_.Jc(function(){_.d4E().then(k_j,function(P){return ycc(S,P)}).thenCatch(_.bd)},Y)},had=function(){var Y=_.kjh();
if(Y!==void 0)return _.t9(Y);Sz||(Sz=_.d4E().then(k_j).thenCatch(function(S){return ycc(2,S)}));
return Sz},Nk5=function(){var Y=document;
return _.d1(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(S){return"on"+S.toLowerCase()in Y})},Hzj=function(Y){Y.addEventListener("click",function(S){var P=S.target;
P&&P.getAttribute("href")&&(P=P.getAttribute("href"),_.$U(window,P,"_blank"),S.preventDefault(),S.stopImmediatePropagation())})},VHo=function(Y){var S,P,u,W=(u=(P=((S=Y.mainDownloadsListEntity)!=null?S:{})[_.eDJ])==null?void 0:P.refresh)!=null?u:"",m;
Y=(m=Y.refresh)==null?void 0:m[W];W=Y!=null?Y:{};return(W==null?0:W.refreshTime)?Number(W==null?void 0:W.refreshTime):0},ea_=function(Y,S){var P=_.hE(Y);
return S.every(function(u){var W;u=u==null?void 0:(W=u.playbackDataEntity)==null?void 0:W.key;if(!u)return!1;W=_.JE(_.mZ(u).entityId,"mainVideoEntity");return!!P[W]})},Ozj=function(Y){Y=_.$W(Y.entities);
return _.sMY(Y).length},YQB=function(Y,S){if(S){var P;
Y=(P=_.BT(Y.entities,"downloadQualityPickerEntity",S))!=null?P:void 0}else Y=void 0;return Y},uBj=function(){SQX||(_.Qc=_.yf8,SQX=new PXd);
return SQX},WVZ=function(Y){var S=document.getElementsByTagName("ytd-enforcement-message-view-model");
S.length===0||getComputedStyle(S[0]).display==="none"?Y(0,"p.h_"):Y(1,"p.h_")},Pr=function(Y){var S,P;
(Y=(P=_.g(Y==null?void 0:Y.commandMetadata,_.Yo))==null?void 0:P.url)&&(S=_.eeh(Y));return S},zlZ=function(){uU=0;
var Y=[_.x9(!0)];Wr&&_.jR(Wr,"yt-window-resized",Y)},mRZ=function(){uU||(uU=_.wc.addLowPriorityJob(zlZ,200))},jdo=function(){zb=0;
nF5=_.hX6(document);var Y=[nF5];Wr&&_.jR(Wr,"yt-window-scrolled",Y)},Ji6=function(){zb||(zb=_.wc.addLowPriorityJob(jdo,200))},ci_=function(Y){Y=Y===void 0?null:Y;
BcI.push(_.YG(window,"resize",mRZ));BcI.push(_.YG(window,"scroll",Ji6));Y&&(Wr=Y)},CXY=function(Y){_.B(function(S){if(S.nextAddress==1)return _.q(S,Y.delete("yt-appshell-assets"),2);
_.Yt(S)})},qQB=function(Y){return _.Uh((0,_.Zif)(),Y)},xR5=function(){var Y;
_.B(function(S){return S.nextAddress==1?_.q(S,mb.getInstance(),2):(Y=S.yieldResult)?_.q(S,Rlj(Y),0):S.jumpTo(0)})},Tcj=function(){var Y;
_.B(function(S){return S.nextAddress==1?_.q(S,nn.getInstance(),2):(Y=S.yieldResult)?_.q(S,bZd(Y),0):S.jumpTo(0)})},KVB=function(Y){CXY(Y);
xR5();Tcj()},EF1=function(Y){var S,P;
return _.B(function(u){if(u.nextAddress==1)return _.q(u,_.vOY(Y),2);if(S=u.yieldResult){var W;a:{if(S.headers&&(W=S.headers.get("date"))&&(W=Date.parse(W),!isNaN(W))){W=Math.round((0,_.Oh)()-W);break a}W=-1}P=W;if(P>-1)return u.return(P)}return u.return(-1)})},fRc=function(){var Y=_.Pa.caches,S=_.Z4("IS_SHELL_LOAD"),P,u;
_.B(function(W){if(W.nextAddress==1)return P=-1,S?_.q(W,EF1(Y),3):(u=_.vu(),P=Math.round((0,_.Oh)()-u),W.jumpTo(2));W.nextAddress!=2&&(P=W.yieldResult);P>=0&&P<2147483648&&_.wP({appInstallDataAgeMs:P});_.Yt(W)})},gFI=function(Y){var S=_.d7(_.Pa.location.href),P={};
"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(u){var W=S.JSC$7905_queryData_.getValues(u);if(W==null?0:W.length)P[u]=W});
return _.Mg(Y,new Map(Object.entries(P)))},$Rj=function(Y){Y=Y.match(/(.*)::.*::.*/);
if(Y!==null)return Y[1]},ri1=function(Y){if(_.Q19()){var S=Object.keys(window.localStorage);
S=_.n(S);for(var P=S.next();!P.done;P=S.next()){P=P.value;var u=$Rj(P);u===void 0||Y.includes(u)||self.localStorage.removeItem(P)}}},GZo=function(){if(!_.Q19())return!1;
var Y=_.fz(),S=Object.keys(window.localStorage);S=_.n(S);for(var P=S.next();!P.done;P=S.next())if(P=$Rj(P.value),P!==void 0&&P!==Y)return!0;return!1},hlj=function(Y){return _.ol("NotificationsDisabled",Y)},vFX=function(){return Notification.permission!="granted"?Promise.resolve():_.csZ().then(function(Y){return Y?Y.pushManager.getSubscription().then(function(S){if(S)return Promise.resolve();
S={userVisibleOnly:!0,applicationServerKey:_.z3("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return Y.pushManager.subscribe(S).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},DR6=function(Y){return _.csZ().then(function(S){if(!S||!S.active)return Promise.reject(new _.$2("serviceworker.postMessage",Y,S));
try{return S.active.postMessage(Y),Promise.resolve()}catch(P){return Promise.reject(P)}})},IRI=function(){DR6({type:"notifications_register",
data:_.X3("ID_TOKEN")})},LVY=function(){var Y={isWide:_.T_.get("wide","0")==="1"},S=_.$o();
if(S=S.getFlag(165)||S.getFlag(174))Y.theme=_.w2(!0);if(_.J8X()){var P=_.LV()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";Y.systemTheme=P}!S&&_.f("parent_tools_enable_app_settings")&&_.MP(window.location.href).theme!==void 0&&(Y.theme=_.w2());if((S=jz)?!_.RY.equals(S,Y):Y)S={currentValue:Y},aR5&&(S.timeSinceLastSnapshotSecs=Math.round(((0,_.Oh)()-aR5)/1E3)),jz&&(S.previousValue=jz),_.L_("appSettingsCaptured",S),jz=Y,aR5=(0,_.Oh)()},w_X=function(){if(!_.Z4("LOGGED_IN"))return Promise.resolve(!1);
var Y=_.mG("service_worker_push_force_notification_prompt_tag");return Y?_.UA("PromptTags").then(function(S){if(!S)return!0;var P=[];try{P=JSON.parse(S)}catch(u){return!1}return P&&P.indexOf(Y)==-1}):Promise.resolve(!1)},p_Z=function(){var Y=_.z_("service_worker_push_prompt_delay_microseconds");
return Y?_.UA("PromptTime").then(function(S){return Promise.resolve(Date.now()-Y>(S||0))}):Promise.resolve(!0)},FV_=function(){var Y=_.z_("service_worker_push_logged_out_prompt_watches");
return Y==-1?Promise.resolve(!1):_.UA("WatchCount").then(function(S){return S>=Y})},sdj=function(){var Y=_.Mw(document,"yt-push-prompt-modal-bg");
Y&&_.jL(Y)},dRB=function(){return _.z_("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.UA("PromptCount").then(function(Y){Y||(Y=0);
return Promise.resolve(Y<_.z_("service_worker_push_prompt_cap"))})},lRu=function(Y){return _.Z4("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Z4("LOGGED_IN")&&(Y===void 0?0:Y)?w_X().then(function(S){if(S)return!0;
S=[dRB(),p_Z()];_.Z4("LOGGED_IN")||S.push(FV_());return Promise.all(S).then(function(P){return P.every(function(u){return u})})}):Promise.resolve(!1)},X_5=function(){_.UA("PromptCount").then(function(Y){return _.ol("PromptCount",Y+1)}).then(function(){return _.ol("PromptTime",Date.now())}).then(function(){var Y=_.mG("service_worker_push_force_notification_prompt_tag");
if(Y)return _.UA("PromptTags").then(function(S){var P=[];if(S)try{P=JSON.parse(S)}catch(u){return!1}P||(P=[]);P.push(Y);return _.ol("PromptTags",JSON.stringify(P))})})},iZo=function(){ZZZ||sdj()},oF6=function(Y){Y.style.zIndex=2147483648;
Y.style.pointerEvents="auto";Y.style.backgroundColor="rgba(0, 0, 0, 0.6)";Y.style.width="100%";Y.style.height="100vh";Y.style.position="absolute";Y.style.top="0";Y.style.left="0";Y.style.border="none"},tq1=function(){var Y=_.Mw(document,"yt-push-prompt-modal-bg");
ZZZ=_.f("service_worker_push_prompt_modal_ignore_click");Y?oF6(Y):(Y=_.IL("div",{id:"yt-push-prompt-modal-bg"}),oF6(Y),document.body.appendChild(Y),_.IV9(document,"click",iZo))},AiZ=function(){var Y=arguments;
_.f("service_worker_push_prompt_modal_enable")&&tq1();return Notification.requestPermission().then(function(S){sdj();var P=document.getElementById("ticker");P&&(P.className=P.classList.remove("show"));if(S=="granted")return vFX().then(function(){hlj(!1);IRI();return Promise.resolve(!0)});
S=="denied"&&IRI();return Promise.resolve(!1)}).catch(function(){sdj();
return Promise.reject.apply(Promise,_.cz(Y))})},UR6=function(Y){Y=Y===void 0?!1:Y;
var S=_.RK9().client;if(S&&S.browserVersion){var P=S.browserVersion,u=S.browserName=="CHROME"&&Hw(P,"50.0.0")<0;S=S.browserName=="OPERA"&&Hw(P,"42.0.0")<0;if(u||S)return Promise.resolve()}return _.RA5().then(function(W){if(!W)return Promise.resolve();W=vFX().then(function(){return DR6({type:"notifications_check_registration",data:_.X3("ID_TOKEN")})});
return Notification.permission!="default"?W.catch(function(){}):W.then(function(){return lRu(Y)}).then(function(m){if(m)return X_5(),AiZ().then(function(){})}).catch(function(){})})},Qd5=function(Y){return _.C0o(Y)?UR6():Promise.resolve()},kZB=function(Y){var S=Y.installing||Y.waiting;
return Y.active||!S?Promise.resolve(Y):new Promise(function(P){var u=function(W){W=W.target;if(W.state==="activated"||W.state==="redundant")S.removeEventListener("statechange",u),P(Y)};
S.addEventListener("statechange",u)})},MqX=function(){var Y=new _.Ty9("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.Ca(Y,{mainAppWeb:_.d2()});var S=_.zWs;_.f("service_worker_forward_exp_params")&&(S=gFI(S));try{var P=_.Taa(S).catch(function(){_.q2(Y,"FAILURE");return new Promise(function(){})});
_.f("service_worker_push_enabled")&&P.then(function(u){_.q2(Y,"SUCCESS");return u}).then(kZB).then(Qd5)}catch(u){if(_.q2(Y,"FAILURE"),u.name!=="SecurityError")throw u;
}},yi1=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&MqX()},NcX=function(Y,S){var P={};
S&&(P.serializedYpcFamilyCreateLoggingParams=S);_.L_(Y,P);_.w6()},HZY=function(Y,S){var P={};
P.serializedYpcRefundFlowLoggingParams=S;Y&&(P.eventType=Y);_.L_("ypcRefundFlowEvent",P);_.w6()},VqX=function(Y){Y&&_.ER$("transactionFlowSucceeded",Y)},elB=function(Y){Y&&_.GG("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",Y,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},OZB=function(Y){var S,P,u,W,m,J,c;
_.B(function(C){if(C.nextAddress==1)return _.q(C,_.cNJ(),2);if(C.nextAddress!=3){if(!C.yieldResult)return C.return(!1);S=[];return _.q(C,_.NG.keys(),3)}P=C.yieldResult;u=_.n(P);for(W=u.next();!W.done;W=u.next())m=W.value,J=_.JNa(m),c=J.datasyncId,!c||Y.includes(c)||S.push(_.NG.delete(m));return C.return(Promise.all(S).then(function(x){return x.some(function(b){return b})}))})},Yfj=function(){var Y,S,P,u,W,m,J;
return _.B(function(c){if(c.nextAddress==1)return _.q(c,_.cNJ(),2);if(c.nextAddress!=3){if(!c.yieldResult)return c.return(!1);Y=_.fz("cache contains other");return _.q(c,_.NG.keys(),3)}S=c.yieldResult;P=_.n(S);for(u=P.next();!u.done;u=P.next())if(W=u.value,m=_.JNa(W),(J=m.datasyncId)&&J!==Y)return c.return(!0);return c.return(!1)})},SfB=function(){var Y=_.E().resolve(_.PQ(_.A4f));
return Y?Y.getCurrentTime():0},PE1=function(){var Y,S,P,u,W,m,J,c,C,x,b,T,K,G;
return _.B(function(v){switch(v.nextAddress){case 1:Y={},S=_.zGa(),P=_.n(Object.entries(S)),u=P.next();case 4:if(u.done){v.jumpTo(3);break}W=u.value;m=_.n(W);J=m.next().value;c=m.next().value;C=J;x=c;if(!x){v.jumpTo(5);break}return _.q(v,x(),8);case 8:Y[C]=v.yieldResult;case 5:u=P.next();v.jumpTo(4);break;case 2:b=_.n(void 0),T=b.next();case 9:if(T.done){v.jumpTo(3);break}K=T.value;G=S[K];if(!G){v.jumpTo(10);break}return _.q(v,G(),13);case 13:Y[K]=v.yieldResult;case 10:T=b.next();v.jumpTo(9);break;
case 3:return v.return(Y)}})},u_1=function(){var Y;
_.B(function(S){if(S.nextAddress==1)return _.q(S,PE1(),2);Y=S.yieldResult;return _.q(S,navigator.clipboard.writeText(JSON.stringify(Y,null,2)),0)})},WU6=function(Y,S){return _.BT(Y.entities,"superThanksSelectedTierEntity",S)},z_1=function(Y){var S;
return(S=Y.sharedUi)==null?void 0:S.currentPageType},ms6=function(Y,S){return{popup:{searchSuggestionReportDialog:{searchQuery:Y,
title:_.Td("SBOX_INAPPROPRIATE_TITLE"),suggestions:S,categoryLabel:_.Td("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Td("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Td("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Td("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Td("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Td("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Td("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Td("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.Td("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.Td("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},nG5=function(Y){var S,P,u,W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V;
return _.B(function(M){switch(M.nextAddress){case 1:return _.q(M,_.qa(),2);case 2:return(S=M.yieldResult)?_.q(M,_.WPh(S),3):M.return();case 3:P=M.yieldResult;if(!P)return M.return();W=((u=P.offlineVideos)==null?void 0:u.length)||0;J=((m=P.offlinePlaylists)==null?void 0:m.length)||0;if(W===0&&J===0)return M.return();c=0;if(P.offlineVideos)for(C=_.n(P.offlineVideos),x=C.next();!x.done;x=C.next())b=x.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===b.videoState&&(c+=1);Y.offline_videos_count=W.toString();_.f("kevlar_log_offline_current_network_type_ks")||
(Y.offline_current_network_type=(T=_.Ho$())!=null?T:"CONN_INVALID");_.f("kevlar_log_updated_time_for_smart_downloads")&&(K=_.Na().getState().entities,G=_.IR(K),v=VHo(K),Y.offline_smart_downloads_last_sync_time_ms=G.toString(),Y.offline_smart_downloads_next_sync_time_ms=v.toString());Y.offline_videos_playable=c.toString();Y.offline_playlists_count=J.toString();if(!_.f("woffle_used_state_report")){M.jumpTo(4);break}P.offlineVideos&&(a=P.offlineVideos.reduce(function(zJ,O){O.downloadedBytes&&(zJ+=Number(O.downloadedBytes));
return zJ},0).toString())&&(Y.offline_used_disk_space_bytes=a);
if(!((w=navigator)==null?0:(F=w.storage)==null?0:F.estimate)){M.jumpTo(4);break}return _.q(M,navigator.storage.estimate(),6);case 6:U=M.yieldResult,Y.offline_free_disk_space_bytes=(((V=U)==null?void 0:V.quota)||0).toString();case 4:Y.offline_client_state=JSON.stringify(P),_.Yt(M)}})},jz6=function(Y){Y=Y.match(/(.*)::.*::.*/);
if(Y!==null)return Y[1]},Jp_=function(Y){if(_.uxh()){var S=Object.keys(window.sessionStorage);
S=_.n(S);for(var P=S.next();!P.done;P=S.next()){P=P.value;var u=jz6(P);u===void 0||Y.includes(u)||self.sessionStorage.removeItem(P)}}},B6Y=function(){if(!_.uxh())return!1;
var Y=_.fz(),S=Object.keys(window.sessionStorage);S=_.n(S);for(var P=S.next();!P.done;P=S.next())if(P=jz6(P.value),P!==void 0&&P!==Y)return!0;return!1},JX=function(Y,S,P){(_.f("desktop_keyboard_shortcut_usage_log")||P&&_.f("web_shorts_keyboard_shortcut_usage_log"))&&(S?_.M9.get(Y):_.k4.get(Y))&&(Y=S?_.N9.get(Y):_.yC.get(Y))&&_.ko(_.pM(),Y)},cp1=function(Y,S){S.stack&&(Y.stack+="\n"+S.stack);
return Y},R_X=function(Y){var S=Br(Y,"Content-Type");
if(!S)return null;S=S.toLowerCase();if(S.startsWith("application/json"))return S.startsWith("application/json+protobuf")?new CEX:new _.Oq;if(S.startsWith("application/x-protobuf")){Y=Br(Y,"Content-Transfer-Encoding");if(!Y)return new cr;if(Y.toLowerCase()=="base64")return new qf5}return null},rp1=function(Y,S,P,u){var W=new xsY(function(c,C){return b_u.has(C)?c.sentinel==="gal"&&c.event!==void 0:!1},function(c){c.event?(c=T6I(c.event),c=!c||KUu(u,c)?!0:_.Te(Y.lastEvent,Cn,2,qm)?!_.Te(c,R0,1,qm)&&
!_.Te(c,Cn,2,qm):!_.Te(c,R0,1,qm)&&!_.Te(c,Cn,3,qm)):c=!0;
return c});
P=_.Mg(Y.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",EGu(P)]]));if(Y.nestedOrigins!==void 0)for(var m=_.n(Y.nestedOrigins),J=m.next();!J.done;J=m.next())P=_.Mg(P,new Map([["origin",J.value]]));return fNc(W,P,S).then(function(c){c=gGZ(c.event);if(_.Te(c,R0,1,qm)){var C,x=(C=_.F0(c,R0,1,qm))==null?void 0:_.Lj(C,2);x&&u.JSC$16962_logErrorEvent($su(x));C=_.F0(c,R0,1,qm);_.Lj(C,2)===4?(c=_.F0(c,R0,1,qm),c={statusCode:11,statusMessage:_.aJ(c,
3)}):(c=_.F0(c,R0,1,qm),c={statusCode:12,statusMessage:_.aJ(c,3)});return c}_.Te(c,Cn,3,qm)?(c=_.F0(c,Cn,3,qm),c={statusCode:1,consentLanguageKeys:_.aJ(c,2)}):c={statusCode:1};return c}).catch(function(c){return c.errorCode!==void 0?{statusCode:c.errorCode,
statusMessage:c.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},DsB=function(Y){var S={};
if(Y===void 0||Y===null)return S;Y.getToken()!==void 0&&Gy1(Y.getToken())&&Gy1(Y.getToken()).length>0&&(S.scopes=new Set(Gy1(Y.getToken())));Y.getToken()!==void 0&&h_o(Y.getToken())&&h_o(Y.getToken()).length>0&&(S.capabilities=new Set(h_o(Y.getToken())));_.aJ(Y,3)!==void 0&&(S.consistencyKey=_.aJ(Y,3));Y.getName()!==void 0&&Y.getName()!==""&&(S.linkName=Y.getName());_.bW(Y,vG_,4)&&(Y=_.P_(Y,vG_,4),Y=Object.assign({},_.aJ(Y,1)&&{userId:_.aJ(Y,1)},_.aJ(Y,2)&&{displayName:_.aJ(Y,2)},_.aJ(Y,3)&&{email:_.aJ(Y,
3)},_.aJ(Y,5)&&{username:_.aJ(Y,5)},_.aJ(Y,4)&&{profilePicture:_.aJ(Y,4)}),S.profile=Y);return S},IN5=function(Y,S){var P=Y.flowParams;
return{serviceId:P.serviceId,sessionId:P.sessionId,currentFlow:Y.currentFlow,googleScopesString:S,linkingSessionSerialized:Y.session.serialize(),consentLanguageKeys:P.consentLanguageKeys,callerState:Y.callerState,dynamicUrlParameters:P.dynamicUrlParameters,partnerConfigMinReadTimestamp:P.partnerConfigMinReadTimestamp}},FUB=function(Y){var S=Y.googleScopes!==void 0?Array.from(Y.googleScopes).join(","):"";
aN6(IN5(Y,S));S=LUZ(Y);return S===null?Promise.resolve(wKB):S.start().then(function(P){var u,W=(u=P.link)==null?void 0:u.consistencyKey;return P.statusCode===1&&Y.googleScopes!==void 0&&Y.googleScopes.size>0&&W!==void 0?(u=Y.flowParams,pKZ(u.serviceId,u.sessionId,Y.googleScopes,W,u.galService,Y.config,P)):P})},sz5=function(Y){var S=LUZ(Y);
return S===null?Promise.resolve(xu({statusCode:7,statusMessage:"Failed to create flow object"},Y.callerState)):S.complete().then(function(P){var u,W=(u=P.link)==null?void 0:u.consistencyKey;return P.statusCode===1&&Y.googleScopes!==void 0&&Y.googleScopes.size>0&&W!==void 0?(u=Y.flowParams,pKZ(u.serviceId,u.sessionId,Y.googleScopes,W,u.galService,Y.config,P)):xu(P,Y.callerState)},function(P){return xu({statusCode:12,
statusMessage:"Failed to complete the flow: "+P.message},Y.callerState)})},pKZ=function(Y,S,P,u,W,m,J){return dsB(W,{serviceId:Y,
sessionId:S,googleScopes:P,consistencyKey:u}).then(function(){return J},function(c){return W.deleteLink({serviceId:Y,
sessionId:S,accountLinkingEntryPoint:m.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+c.message}},function(C){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+C.message}})})},LUZ=function(Y){switch(Y.currentFlow){case 1:var S=Y.flowParams;
Y=_.P_(Y.session,lNo,1);return bU.createOAuthFlow(S,Y);case 2:case 3:return S=Y.flowParams,Y=_.P_(Y.session,XKc,6),Tb.createStreamlinedFlow(S,Y);default:return null}},Z_u=function(Y,S){Y===2&&(Y=3);
var P=0;Kn.indexOf(Y)!==-1&&(P=Kn.indexOf(Y)+1);for(Y=P;Y<Kn.length;Y++)if(S.has(Kn[Y]))return Kn[Y]},tuI=function(Y){var S=Y.serviceId;
var P=Y.sessionId;var u=Y.config;var W=Y.galService;var m=Y.capabilities;var J=Y.scopes;var c=Y.loginHint;var C=Y.callerState;var x=Y.consentLanguageKeys;var b=Y.linkName;var T=Y.dynamicUrlParameters;var K=Y.partnerConfigMinReadTimestamp;Y=u.dataUsageNoticeConfig?u.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return W.startLinkingSession({serviceId:S,sessionId:P,capabilities:m,scopes:J,loginHint:c,callerState:C,supportedFlows:i_1(u.supportedFlows),completionUrl:u.completionUrl,accountLinkingEntryPoint:u.accountLinkingEntryPoint,
consentLanguageKeys:x,dataUsageNoticeConfig:Y,linkName:b,dynamicUrlParameters:T,partnerConfigMinReadTimestamp:K}).then(function(G){return new oGd(S,P,u,W,G,void 0,C,x,T,K)})},Muu=function(Y,S,P){a:{var u=new ApB;
if(u.storage!==null)try{var W=u.storage.get("SAVED_SESSION");if(W===void 0){var m=null;break a}if(W.serviceId===Y){m=W;break a}}catch(J){}m=null}if(m===null)return Promise.resolve({statusCode:2});Us5(Y);u=QzI(m.linkingSessionSerialized);return ky_(new oGd(Y,m.sessionId,S,P,u,m.googleScopesString!==""&&m.googleScopesString!==void 0?new Set(m.googleScopesString.split(",")):void 0,m.callerState,m.consentLanguageKeys,m.dynamicUrlParameters,m.partnerConfigMinReadTimestamp),m.currentFlow,m.consentLanguageKeys)},
aN6=function(Y){var S=new ApB;
S.storage!==null&&S.storage.set("SAVED_SESSION",Y)},Us5=function(Y){var S=new ApB;
if(S.storage!==null){var P=S.storage.get("SAVED_SESSION");P!==void 0&&P.serviceId===Y&&S.storage.remove("SAVED_SESSION")}},i_1=function(Y){var S=new Set;
Y=_.n(Y);for(var P=Y.next();!P.done;P=Y.next())P=P.value,P!==1&&yp1.has(P)&&S.add(yp1.get(P));return S},xu=function(Y,S){S!==void 0&&(Y.callerState=S);
return Y},N6d=function(Y){switch(Y){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},e_d=function(){var Y={timeout:5E3};
Y=Y===void 0?{}:Y;return H__!=null?H__:H__=Vu1(Y)},O_Z=function(){return new Promise(function(Y,S){window.gapi.load("client",{callback:Y,
onerror:S})})},Vu1=function(Y){Y=Y===void 0?{}:Y;
var S;return _.B(function(P){if(P.nextAddress==1){if((S=window.gapi)&&S.client&&S.client.load)P=P.return(S);else{var u=_.YU("https://apis.google.com/js/api.js");P=_.q(P,_.DH(u,Y),2)}return P}if(P.nextAddress!=3){S=window.gapi;if(!S)throw Error("Zj");return S.client&&S.client.load?P.jumpTo(3):_.q(P,O_Z(),3)}return P.return(S)})},SEd=function(Y,S){S=S===void 0?0:S;
var P=Y.auth2.getAuthInstance().currentUser.get(),u=P.getAuthResponse(!0);if(u&&u.expires_at-Date.now()<S){if(YEB.has(Y))return YEB.get(Y);S=Promise.resolve(P.reloadAuthResponse()).finally(function(){YEB.delete(Y)});
YEB.set(Y,S);return S}return Promise.resolve()},Pgo=function(Y,S){var P;
return Y.client.init({apiKey:S.apiKey,clientId:S.clientId,scope:S.scope,discoveryDocs:S.discoveryDocs,hostedDomain:S.hostedDomain,fetchBasicProfile:(P=S.fetchBasicProfile)!=null?P:!0})},uDo=function(Y){if(Y.queryParams!=null){var S={},P;
for(P in Y.queryParams)Y.queryParams[P]!==void 0&&(S[P]=Y.queryParams[P]);Y.queryParams=S}},mz1=function(Y){return new Wu6(Y,new zTB(Y))},JJI=function(Y,S){S=S===void 0?!1:S;
var P=document.createElement("div");Y&&(P.style.transform="scaleX(-1)");P.style.backgroundColor=S?"rgba(138,180,248,.24)":"#e8f0fe";P.style.height="4px";P.style.overflow="hidden";P.style.position="absolute";P.style.top="0";P.style.width="100%";P.style.zIndex="1500";P.setAttribute("aria-label","Loading");P.setAttribute("aria-live","polite");Y=document.createElement("style");Y.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
P.appendChild(Y);Y=nyd();Y.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";Y.style.left="-145.166611%";var u=jW5(S);u.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";Y.appendChild(u);P.appendChild(Y);Y=nyd();Y.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";Y.style.left="-54.888891%";S=jW5(S);S.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
Y.appendChild(S);P.appendChild(Y);return P},nyd=function(){var Y=document.createElement("div");
Y.style.height="100%";Y.style.position="absolute";Y.style.transformOrigin="top left";Y.style.width="100%";return Y},jW5=function(Y){var S=document.createElement("span");
S.style.borderTop=Y?"4px solid #669df6":"4px solid #4285f4";S.style.display="inline-block";S.style.position="absolute";S.style.width="100%";return S},BuB=function(Y){return Y==null?void 0:_.qUf(Y).valueOf()},RTY=function(Y){var S=document.body,P=!1,u=function(){P||(P=!0,cJ6(W,m),setTimeout(function(){S.removeChild(m);
S.removeChild(W)},150))},W=Cg1(Y,getComputedStyle(S).direction==="rtl",u),m=qEo(u);
cJ6(W,m);S.appendChild(m);S.appendChild(W);window.requestAnimationFrame(function(){m.style.opacity="1";W.style.opacity="1";W.style.transform="translate(-50%, -50%) scale(1)";W.children[0].focus()})},Cg1=function(Y,S,P){var u=document.createElement("div");
u.style.position="fixed";u.style.alignItems="center";u.style.backgroundColor=Y?"rgb(32, 33, 36)":"white";u.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";u.style.display="flex";u.style.flexDirection="column";u.style.justifyContent="center";u.style.left="50%";u.style.top="50%";u.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";u.style.zIndex="2002";document.body.clientWidth>=660?(u.style.borderRadius="8px",u.style.minHeight="220px",
u.style.maxHeight="90%",u.style.maxWidth="90%",u.style.minWidth="540px"):(u.style.height="100%",u.style.width="100%");u.setAttribute("aria-label","Error");u.setAttribute("aria-modal","true");u.setAttribute("role","alertdialog");u.addEventListener("keydown",function(m){m.key==="Escape"&&P()});
S=xzZ(Y,S,P);u.appendChild(boY(S));u.appendChild(S);var W=document.createElement("img");W.src=Y?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";W.style.height="72px";W.style.width="72px";W.style.color="#9aa0a6";W.setAttribute("alt","");u.appendChild(W);W=document.createElement("h1");W.textContent="Something went wrong.  Try again.";
W.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";W.style.lineHeight="24px";W.style.fontSize="16px";W.style.textAlign="center";W.style.letterSpacing="0.1px";W.style.color=Y?"rgb(232,234,237)":"#3c4043";u.appendChild(W);u.appendChild(boY(S));return u},xzZ=function(Y,S,P){var u=document.createElement("button");
u.style.backgroundColor="transparent";u.style.border="none";u.style.borderRadius="50%";u.style.cursor="pointer";u.style.outline="none";u.style.padding="12px";u.setAttribute("aria-label","Close dialog");u.style.position="absolute";u.style.top="0";S?u.style.right="0":u.style.left="0";u.addEventListener("focus",function(){u.style.backgroundColor=Y?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
u.addEventListener("blur",function(){u.style.backgroundColor="transparent"});
u.addEventListener("mouseenter",function(){u.style.backgroundColor=Y?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
u.addEventListener("mouseleave",function(){u.style.backgroundColor="transparent"});
u.addEventListener("click",P);u.addEventListener("keydown",function(W){W.key!=="Enter"&&W.key!=="Space"||P()});
S=document.createElement("img");S.src=Y?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";S.style.display="block";S.style.height="24px";S.style.width="24px";S.setAttribute("alt","");u.appendChild(S);return u},boY=function(Y){var S=document.createElement("div");
S.setAttribute("tabindex","0");S.setAttribute("aria-hidden","true");S.addEventListener("focus",function(){return void Y.focus()});
return S},qEo=function(Y){var S=document.createElement("div");
S.style.backgroundColor="rgba(32,33,36,0.6)";S.style.bottom="0";S.style.left="0";S.style.position="fixed";S.style.right="0";S.style.top="0";S.style.transition=" opacity 150 ms linear";S.style.zIndex="2001";S.addEventListener("click",Y);return S},cJ6=function(Y,S){S.style.opacity="0";
Y.style.opacity="0";Y.style.transform="translate(-50%, -50%) scale(0.8)"},TuI=function(Y,S){Y.sandbox&&Y.sandbox.add&&(Y.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),Y.sandbox.add("allow-downloads"));
Y.src=S},EF=function(Y){KuB.call(this,Y)},fn=function(Y,S){S=S===void 0?!1:S;
this.parsedImageUrl_=null;Y instanceof Eyc||(fYY==void 0&&(fYY=new gyI),Y=fYY.parse(Y.toString(),S));Y=this.parsedImageUrl_=Y;Y.JSC$17193_parsedOptions_==void 0&&((S=Y.getOptions())||(S=""),Y.JSC$17193_parsedOptions_=(new $zc).parse(S));KuB.call(this,Y.JSC$17193_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;Y=this.parsedImageUrl_;S=Y.uri_.JSC$7905_port_;this.JSC$17195_domain_=Y.uri_.JSC$7905_domain_+(S?":"+S:"");this.JSC$17195_query_=this.parsedImageUrl_.uri_.JSC$7905_queryData_.toString()},
rJ1=function(Y){this.mode=4;
this.data=Y;this.parsedData=[];Y=0;for(var S=this.data.length;Y<S;Y++){var P=[],u=this.data.charCodeAt(Y);u>65536?(P[0]=240|(u&1835008)>>>18,P[1]=128|(u&258048)>>>12,P[2]=128|(u&4032)>>>6,P[3]=128|u&63):u>2048?(P[0]=224|(u&61440)>>>12,P[1]=128|(u&4032)>>>6,P[2]=128|u&63):u>128?(P[0]=192|(u&1984)>>>6,P[1]=128|u&63):P[0]=u;this.parsedData.push(P)}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))},G45=function(Y){this.typeNumber=0;
this.errorCorrectLevel=Y===void 0?2:Y;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},gS=function(Y,S){if(Y.length==void 0)throw Error("tk`"+Y.length+"`"+S);
for(var P=0;P<Y.length&&Y[P]==0;)P++;this.num=Array(Y.length-P+S);for(S=0;S<Y.length-P;S++)this.num[S]=Y[S+P]},hT5=function(Y,S){this.totalCount=Y;
this.dataCount=S},vyX=function(){this.buffer=[];
this.length=0},DzI=function(){var Y=!1;
if(_.cua()){Y=_.Rh();var S="";_.Rhh()?(S=/Windows (?:NT|Phone) ([0-9.]+)/,S=(Y=S.exec(Y))?Y[1]:"0.0"):_.p8()?(S=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,S=(Y=S.exec(Y))&&Y[1].replace(/_/g,".")):_.q9f()?(S=/Mac OS X ([0-9_.]+)/,S=(Y=S.exec(Y))?Y[1].replace(/_/g,"."):"10"):_.qU(_.Rh(),"KaiOS")?(S=/(?:KaiOS)\/(\S+)/i,S=(Y=S.exec(Y))&&Y[1]):_.cua()?(S=/Android\s+([^\);]+)(\)|;)/,S=(Y=S.exec(Y))&&Y[1]):_.xUX()&&(S=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,S=(Y=S.exec(Y))&&Y[1]);Y=S||""}return Y},FuX=function(Y,
S){this.JSC$17218__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(S)for(var P in S)this.JSC$17218__htOption[P]=S[P];this.JSC$17218__htOption.useSVG&&(IYj=aYo);this.JSC$17218__android=DzI();this.JSC$17218__el=Y;this._oQRCode=null;this._oDrawing=new IYj(this.JSC$17218__el,this.JSC$17218__htOption);this.JSC$17218__htOption.text&&(Y=this.JSC$17218__htOption.text,this._oQRCode=new G45(this.JSC$17218__htOption.correctLevel),LuI(this._oQRCode,Y),S=this._oQRCode,we_(S,!1,pe_(S)),this.JSC$17218__el.title=
Y,this._oDrawing.draw(this._oQRCode),this.makeImage())},sW1=function(Y,S,P,u,W){Y.save();
var m=new Path2D;m.roundRect(S,P,u*7,u*7,u*2);m.roundRect(S+u,P+u,u*5,u*5,u*1.3);m.roundRect(S+2*u,P+2*u,u*3,u*3,u);Y.clip(m,"evenodd");Y.fillStyle=W;Y.fillRect(0,0,Y.canvas.width,Y.canvas.height);Y.restore()},$u=function(Y,S){if(typeof Y!=="function")throw Error("wk");
return _.Pa.setTimeout(function(){Y()},S)},rS=function(){},lYY=function(Y,S,P,u,W){(new rS).debug("TestLoadImageWithRetries: "+W);
if(u==0)P(!1);else{var m=W||0;u--;dzj(Y,S,function(J){J?P(!0):_.Pa.setTimeout(function(){lYY(Y,S,P,u,m)},m)})}},dzj=function(Y,S,P){var u=new rS;
u.debug("TestLoadImage: loading "+Y);var W=new Image;W.onload=function(){try{u.debug("TestLoadImage: loaded"),XeB(W),P(!0)}catch(m){}};
W.onerror=function(){try{u.debug("TestLoadImage: error"),XeB(W),P(!1)}catch(m){}};
W.onabort=function(){try{u.debug("TestLoadImage: abort"),XeB(W),P(!1)}catch(m){}};
W.ontimeout=function(){try{u.debug("TestLoadImage: timeout"),XeB(W),P(!1)}catch(m){}};
_.Pa.setTimeout(function(){if(W.ontimeout)W.ontimeout()},S);
W.src=Y},XeB=function(Y){Y.onload=null;
Y.onerror=null;Y.onabort=null;Y.ontimeout=null},ZoY=function(){this.front_=[];
this.back_=[]},ioX=function(Y,S){_.R6.call(this);
this.delay_=new _.bV(this.JSC$17344_onTick_,0,this);_.Ph(this,this.delay_);this.JSC$17342_interval_=5E3;this.nextTickTime_=0;if(typeof Y==="function")S&&(Y=(0,_.xS)(Y,S));else if(Y&&typeof Y.handleEvent==="function")Y=(0,_.xS)(Y.handleEvent,Y);else throw Error("Ca");this.JSC$17344_listener_=Y},Gb=function(Y,S,P,u,W,m,J,c,C,x,b,T,K,G){P=P===void 0?!1:P;
u=u===void 0?function(){return""}:u;
W=W===void 0?!1:W;m=m===void 0?!1:m;J=J===void 0?!1:J;c=c===void 0?function(){return _.Cb({})}:c;
C=C===void 0?!1:C;b=b===void 0?!1:b;T=T===void 0?!1:T;K=K===void 0?!1:K;G=G===void 0?!1:G;this.JSC$17345_pathPrefix_=Y;this.defaultQueryParams_=S;this.pubsub_=new _.x2;this.reconnectTimer_=new ioX(this.safeReconnect_,this);this.JSC$17345_channel_=null;this.JSC$17345_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17345_pendingMessages_=[];this.enableAsyncTest_=P;this.JSC$17345_getXsrfToken_=u;this.useAsyncBrowserChannelHandler_=m;this.getAuthorizationHeader_=
c;this.getAuthorizationHeaderSync_=x;this.enableCachedUpdateAuthorizationHeader_=J;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Cb();this.enableLoungeTokenRefresh_=W;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=C;this.disableMdxAuthForNonPlaybackMessages_=b;this.disableMdxAuthForAdMessages_=T;this.enableMdxAuthForConnectionOnly_=K;this.disableMdxAuthForShortsMessages_=G;this.JSC$17345_channelOpenedCounter=new oyY;this.JSC$17345_channelClosedCounter=new tru;this.channelMessageSentCounter=
new AJj;this.JSC$17345_channelMessageReceivedCounter=new Uzo;this.JSC$17345_channelErrorCounter=new QWX;this.pendingMapsOnClosedCounter=new k4c;this.undeliveredMapsOnClosedCounter=new MrI},hX=function(Y){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;Y=Y||document.location.href;var S=Number(_.HR(Y)[4]||null)||"";S&&(this.port=":"+S);this.domain=_.eX(Y)||"";Y=_.Rh();Y.search("MSIE")>=0&&Hw(Y.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},vr=function(Y){Y=Y||{};
this.name=Y.name||"";this.id=Y.id||Y.screenId||"";this.token=Y.token||Y.loungeToken||"";this.uuid=Y.uuid||Y.dialId||"";this.idType=Y.screenIdType||"normal"},yJ5=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(Y){var S=Math.random()*16|0;
return(Y=="x"?S:S&3|8).toString(16)})},Nuu=function(Y){return _.b9(Y,function(S){return{key:S.id,
name:S.name}})},Ho5=function(Y,S){return _.d1(Y,function(P){return P||S?!P!=!S?!1:P.id==S.id:!0})},I0=function(Y,S){return _.d1(Y,function(P){return Dx(P,S)})},S21=function(){var Y=Vr5(),S=eTY();
if(Oou()){var P=Y,u=_.$Uh(P,S);u<0&&_.ffK(P,-(u+1),0,S)}Y=Y25(Y);if(Y.length==0)try{_.k4Y("remote_sid")}catch(W){}else try{_.Kz("remote_sid",Y.join(","),-1)}catch(W){}},Vr5=function(){var Y=_.u4("yt-remote-connected-devices")||[];
Y.sort(_.gYa);return Y},Y25=function(Y){if(Y.length==0)return[];
var S=Y[0].indexOf("#"),P=S==-1?Y[0]:Y[0].substring(0,S);return _.b9(Y,function(u,W){return W==0?u:u.substring(P.length)})},P65=function(Y){_.PU("yt-remote-connected-devices",Y,86400)},eTY=function(){if(uvX)return uvX;
var Y=_.u4("yt-remote-device-id");Y||(Y=yJ5(),_.PU("yt-remote-device-id",Y,31536E3));for(var S=Vr5(),P=1,u=Y;_.Au(S,u);)P++,u=Y+"#"+P;return uvX=u},W96=function(){return _.u4("yt-remote-session-browser-channel")},Oou=function(){return _.u4("yt-remote-session-screen-id")},n5B=function(Y){Y.length>5&&(Y=Y.slice(Y.length-5));
var S=_.b9(zjI(),function(u){return u.loungeToken}),P=_.b9(Y,function(u){return u.loungeToken});
_.tG8(P,function(u){return!_.Au(S,u)})&&mqc();
_.PU("yt-remote-local-screens",Y,31536E3)},zjI=function(){return _.u4("yt-remote-local-screens")||[]},mqc=function(){_.PU("yt-remote-lounge-token-expiration",!0,86400)},a0=function(Y){Y||(_.WU("yt-remote-session-screen-id"),_.WU("yt-remote-session-video-id"));
S21();Y=Vr5();_.MU(Y,eTY());P65(Y)},J91=function(){jkY();
return Ln?!!Ln.get("yt-remote-use-staging-server"):!1},jkY=function(){if(!Ln){var Y=_.S2J();
Y&&(Ln=new _.rk(Y))}},q2u=function(Y,S,P,u,W){P=P===void 0?function(){return""}:P;
var m=function(){return new Gb(wS(Y,"/bc"),S,!1,P,u)};
return _.f("enable_mdx_web_channel_desktop")?new Bfc(function(){return new c9X(wS(Y,"/wc"),S,P)}):new C6_(m,W)},Tfu=function(){var Y=Rj_;
xqj();pn.push(Y);bMZ()},F1=function(Y,S){xqj();
var P=K9Z(Y,String(S));pn.length==0?E5_(P):(bMZ(),_.Q4(pn,function(u){u(P)}))},sF=function(Y){F1("CP",Y)},xqj=function(){pn||(pn=_.tA("yt.mdx.remote.debug.handlers_")||[],_.HQ("yt.mdx.remote.debug.handlers_",pn))},E5_=function(Y){var S=(dS+1)%50;
dS=S;fCd[S]=Y;g5Y||(g5Y=S==49)},bMZ=function(){var Y=pn;
if(fCd[0]){var S=g5Y?dS:-1,P={};do P={record$jscomp$13:void 0},S=(S+1)%50,P.record$jscomp$13=fCd[S],_.Q4(Y,function(u){return function(W){W(u.record$jscomp$13)}}(P));
while(S!=dS);fCd=Array(50);dS=-1;g5Y=!1}},K9Z=function(Y,S){var P=(Date.now()-$q_)/1E3;
P.toFixed&&(P=P.toFixed(3));var u=[];u.push("[",P+"s","] ");u.push("[","yt.mdx.remote","] ");u.push(Y+": "+S,"\n");return u.join("")},lU=function(Y){_.QC.call(this);
this.JSC$17369_logName_=Y;this.screens=[]},Zx=function(Y){lU.call(this,"LocalScreenService");
this.JSC$17376_http_=Y;this.loungeTokenRefreshTimer_=NaN;X1(this);this.info("Initializing with "+r95(this.screens))},iU=function(Y,S){S=S===void 0?!1:S;
lU.call(this,"ScreenService");this.JSC$17382_http_=Y;this.disableAutomaticScreenCache_=S;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};G5Y(this)},o0=function(Y,S,P){_.QC.call(this);
this.JSC$17386_logName_=P;this.JSC$17386_screenService_=Y;this.receiver_=S;this.screen_=null},iMo=function(Y,S,P){P.disableCastApi?tX("Cannot initialize because disabled by Mdx config."):hj1()?v5I(Y,P)&&(Dqu(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?ICY(S):(window.__onGCastApiAvailable=function(u,W){u?ICY(S):(AX("Failed to load cast API: "+W),aCB(!1),Dqu(!1),_.WU("yt-remote-cast-available"),_.WU("yt-remote-cast-receiver"),L9o(),S(!1))},P.loadCastApiSetupScript?_.Xv("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?w3I()>=60&&p3X():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?F9_():w3I()>=89?skd():(dq1(),lC_(X35.map(ZMB))))):tX("Cannot initialize because not running Chrome")},L9o=function(){tX("dispose");
var Y=UF();Y&&Y.dispose();_.HQ("yt.mdx.remote.cloudview.instance_",null);o5d(!1);_.FM9(tfI);tfI.length=0},A95=function(){return!!_.u4("yt-remote-cast-installed")},Uqj=function(){var Y=_.u4("yt-remote-cast-receiver");
return Y?Y.friendlyName:null},Qk1=function(){tX("clearCurrentReceiver");
_.WU("yt-remote-cast-receiver")},k56=function(){return A95()?UF()?UF().getCastSession():(AX("getCastSelector: Cast is not initialized."),null):(AX("getCastSelector: Cast API is not installed!"),null)},y91=function(Y,S){MfI()?UF().setConnectedScreenStatus(Y,S):AX("setConnectedScreenStatus called before ready.")},hj1=function(){var Y=_.Rh().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.cW||Y},v5I=function(Y,S){var P=!1;
UF()||(Y=new Qp(Y,S),Y.subscribe("yt-remote-cast2-availability-change",function(u){_.PU("yt-remote-cast-available",u);e7("yt-remote-cast2-availability-change",u)}),Y.subscribe("yt-remote-cast2-receiver-selected",function(u){tX("onReceiverSelected: "+u.friendlyName);
_.PU("yt-remote-cast-receiver",u);e7("yt-remote-cast2-receiver-selected",u)}),Y.subscribe("yt-remote-cast2-receiver-resumed",function(u){tX("onReceiverResumed: "+u.friendlyName);
_.PU("yt-remote-cast-receiver",u);e7("yt-remote-cast2-receiver-resumed",u)}),Y.subscribe("yt-remote-cast2-session-change",function(u){tX("onSessionChange: "+Nfj(u));
u||_.WU("yt-remote-cast-receiver");e7("yt-remote-cast2-session-change",u)}),_.HQ("yt.mdx.remote.cloudview.instance_",Y),P=!0);
tX("cloudview.createSingleton_: "+P);return P},UF=function(){return _.tA("yt.mdx.remote.cloudview.instance_")},ICY=function(Y){aCB(!0);
Dqu(!1);UF().init(!1,function(S){S?(o5d(!0),_.sKu("yt-remote-cast2-api-ready")):(AX("Failed to initialize cast API."),aCB(!1),_.WU("yt-remote-cast-available"),_.WU("yt-remote-cast-receiver"),L9o());Y(S)})},tX=function(Y){F1("cloudview",Y)},AX=function(Y){F1("cloudview",Y)},aCB=function(Y){tX("setCastInstalled_ "+Y);
_.PU("yt-remote-cast-installed",Y)},MfI=function(){return!!_.tA("yt.mdx.remote.cloudview.apiReady_")},o5d=function(Y){tX("setApiReady_ "+Y);
_.HQ("yt.mdx.remote.cloudview.apiReady_",Y)},Dqu=function(Y){_.HQ("yt.mdx.remote.cloudview.initializing_",Y)},ku=function(Y){this.index=-1;
this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(Y)},HM1=function(){var Y,S;
return _.B(function(P){if(P.nextAddress==1)return(_.T21()||_.f("use_new_nwl"))&&_.qR1().isNetworkAvailable()?_.q(P,_.Vl(),2):P.return();if(P.nextAddress!=3)return(Y=P.yieldResult)?_.q(P,dYX(Y),3):P.return();S=P.yieldResult;if(!S.length)return P.return();S.forEach(function(u){var W={timestamp:u.timestamp};u=u.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:u.appShellAssetLoadReport,options:W}:u.clientError?{payloadName:"clientError",payload:u.clientError,options:W}:void 0;u&&
_.L_(u.payloadName,u.payload,u.options)});
S.length===100&&_.wc.addLowPriorityJob(HM1);_.Yt(P)})},Vfj=function(Y){if(Y.playerResponse){if(Y=Y.playerResponse,Y.messages&&Y.messages.length>0&&(Y=Y.messages.find(function(S){return!(!S||!S.mealbarPromoRenderer)}))&&Y.mealbarPromoRenderer)return Y.mealbarPromoRenderer}else if(Y.response&&(Y=Y.response)&&Y.overlay&&Y.overlay.mealbarPromoRenderer)return Y.overlay.mealbarPromoRenderer},ejd=function(Y){if(Y.response){var S=Y.response;
if(S&&S.overlay&&S.overlay.tooltipRenderer)return S.overlay.tooltipRenderer}if(Y.playerResponse&&(Y=Y.playerResponse,Y.messages&&Y.messages.length>0&&(Y=Y.messages.find(function(P){return!(!P||!P.tooltipRenderer)}))&&Y.tooltipRenderer))return Y.tooltipRenderer},YV5=function(Y){if(!OMB&&(Y=Y||_.X3("ZWIEBACK_PING_URLS"))&&Y.length){OMB=!0;
for(var S=0;S<Y.length;S++)_.UQ(Y[S])}},Pj_=function(Y){if(_.RY.get(_.X3("PLAYER_VARS",{}),"privembed",!1)!="1"){Y&&v2u();
try{SVI().then(function(){},function(){}),_.Jc(Pj_,18E5)}catch(S){_.ik(S)}}},ukY=function(){var Y=_.$o(),S=Y.getFlag(119),P=window.devicePixelRatio>1;
document.body&&_.X$(document.body,"exp-invert-logo")&&(P&&!_.X$(document.body,"inverted-hdpi")?_.i2(document.body,"inverted-hdpi"):!P&&_.X$(document.body,"inverted-hdpi")&&_.X5(document.body,"inverted-hdpi"));S!=P&&(_.rP(0,119,P),Y.save())},Ws5=function(Y){return Y.filter(function(S){return"ypcGetCartEndpoint"in S||"ypcFixInstrumentEndpoint"in S})},zB1=function(Y){return Y.filter(function(S){return!_.g(S,_.Yem)})},noZ=function(Y){Y=_.n(Y);
for(var S=Y.next(),P={};!S.done;P={setter$jscomp$6:void 0},S=Y.next()){var u=S.value;S=u.params;u=u.service;S&&u&&(P.setter$jscomp$6=mTu[u],P.setter$jscomp$6&&S.forEach(function(W){return function(m){var J=m.key;m=m.value;J&&m&&(0,W.setter$jscomp$6)(J,m)}}(P)))}},J6Z=function(Y,S){var P,u,W,m,J,c,C;
_.B(function(x){switch(x.nextAddress){case 1:P=_.sR.getInstance();u=_.zR.instance;W=_.pR.instance;if(!W)return jA5(Y,u,S),x.return();_.ND(x,2);Y.onLoadingCommand&&u.resolveCommand(Y.onLoadingCommand);return _.q(x,P.getCurrentPositionFromGeolocation(),4);case 4:m=x.yieldResult;if(!Y.resolveLocationCommand){x.jumpTo(5);break}J=P.createLocationInfo(m);return _.q(x,_.sn(W,Y.resolveLocationCommand,{locationInfo:J}),6);case 6:c=x.yieldResult;if(!c||"error"in c&&c.error||c.errorMetadata)return jA5(Y,u,S),
x.return();var b;if(c==null?0:(b=c.onResponseReceivedActions)==null?0:b.length){b=_.n(c.onResponseReceivedActions);for(var T=b.next();!T.done;T=b.next())u.resolveCommand(T.value)}(_.g(Y.onSuccessCommand,_.yx)||_.g(Y.onSuccessCommand,_.CV))&&_.ms(S.hostElement,"yt-navigate",{endpoint:Y.onSuccessCommand,reload:!0});case 5:_.tc(x,0);break;case 2:C=_.O4(x);if(C instanceof GeolocationPositionError&&C.code===GeolocationPositionError.PERMISSION_DENIED)return Y.onDeniedCommand&&u.resolveCommand(Y.onDeniedCommand),
x.return();jA5(Y,u,S);_.Yt(x)}})},jA5=function(Y,S,P){Y.onFailureCommand&&(S.resolveCommand(Y.onFailureCommand),_.nb(P.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},c66=function(Y,S){var P=_.g(Y,_.vQs);
if(P&&S){Y=P.videoIds||[P.videoId];var u;S=(u=_.ms(S,"yt-lockup-requested",{videoIds:Y}).detail)==null?void 0:u.returnValue;var W;P.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?W=S?S:Y.map(function(m){return{videoId:m,navigationEndpoint:P.videoCommand}}):S&&(W=S);
W&&(u=W.map(function(m){var J=Object,c=J.assign;var C=m.navigationEndpoint;if(!_.g(C,_.bM)){var x=_.g(C,_.yx);if(x){if(delete x.index,delete x.playlistId,x=_.g(C==null?void 0:C.commandMetadata,_.Yo),x==null?0:x.url){var b=x.url;b=_.O2(b,"list");b=_.O2(b,"index");x.url=b}}else C=void 0}return c.call(J,{},m,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:C})}),BP5(u,P))}},Cjc=function(Y){var S=_.pd();
if(Y=_.g(Y,_.DAs))Y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&S.clearQueue(),Y.closeMiniplayer&&_.E().resolve(_.l1).close(!0)},RB1=function(Y){qV6(_.pd(),Y)},xTZ=function(Y){var S;
(Y=(S=_.g(Y,_.G2s))==null?void 0:S.setVideoIds)&&Y.forEach(function(P){_.B$f(_.pd(),P)})},TP_=function(Y){bb6(_.pd(),Y)},Ks1=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(Y){return!1}},EoI=function(Y,S,P){return{horizontalAlignment:Y.x+P.width/2<S.width/2?"west":"east",
verticalAlignment:Y.y+P.height/2<S.height/2?"north":"south"}},$T1=function(Y,S,P,u,W){W=W===void 0?new _.TH(0,0):W;
return f9j(goY(Y,S,P,u),W)},goY=function(Y,S,P,u){return new _.TH(Y==="west"?16:P.width-u.width-16,S==="north"?16:P.height-u.height-16)},r6d=function(Y,S){var P=0;
Y&&(P+=76);S&&(P+=285);return P},Gd6=function(Y){var S=["h",
"m","s"],P=_.NU(S);P.reverse();var u={};Y=(Y.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(J){var c=(J.match(/[hms]/)||[""])[0];return c?(u[c]=parseInt(J.match(/\d+/)[0],10),!1):!0});
for(Y.reverse();Y.length&&P.length;){var W=P.shift();W in u||(u[W]=parseInt(Y.shift(),10))}if(Y.length||u.s>59||u.m>59||u.h>9)return null;var m="";S.forEach(function(J){u[J]&&(m+=""+u[J]+J)});
return m||null},hB5=function(Y){Y=Y.data;
return _.R("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.R("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.R(_.ZZ,{data:{thumbnails:[{url:Y.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.R("div",{class:"profile-badge-view-model-wiz__content"},_.R("div",{class:"profile-badge-view-model-wiz__badge-description"},Y.badgeDesc),Y.badgeSubtitle?_.R("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},Y.badgeSubtitle):null))},voB=function(Y){Y=
Y.data;
var S=_.Ms();_.XJ(S,Y.rendererContext);return _.R("yt-comment-interaction-view-model",{el:S,class:"yt-comment-interaction-view-model-wiz"},_.R("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":Y.onTapA11yLabel,"on:keydown":_.FJ(),tabindex:0},_.R("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.R("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},Y.headerPrefix,' "',Y.videoTitle),_.R("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.R("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.R("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},Y.commentContent),_.R("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.R(_.ZZ,{data:{thumbnails:[{url:Y.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},I9c=function(Y){Y=Y.data;
return _.R("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},DTc(Y.avatar),_.R("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},Y.channelName))},LsY=function(Y){Y=Y.data;
var S;return _.R("div",{class:"yt-profile-info-view-model-wiz__activity"},_.R("div",{class:"yt-profile-info-view-model-wiz__header"},_.R("div",{class:"yt-profile-info-view-model-wiz__section-title"},Y.commentsInteractionTitle)),(S=Y.comments)==null?void 0:S.map(function(P){return _.R("div",{class:"yt-profile-info-view-model-wiz__activity"},a9Z(P))}))},wuo=function(Y){Y=Y.data;
var S=_.Ie({elementsCommand:Y.subscriptionsAccessButtonCommand}),P=_.Ms();_.CUY(P,_.vF(Y.subscriptionsAccessButtonCommand));var u=_.mR(function(m){if(S==null?0:S.onclick)S.onclick(m);return!1}),W;
return _.R("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.R("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.R("a",{el:P,"on:click":u,class:"yt-profile-info-view-model-wiz__another-header"},_.R("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},Y.sharedSubscriptionsTitle),_.R("div",null,a9Z(Y.subscriptionsAccessButton)))),_.R("div",{class:"yt-profile-info-view-model-wiz__subs"},(W=Y.sharedSubscriptions)==null?void 0:W.slice(0,5).map(function(m){return _.R("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",a9Z(m))})))},puB=function(Y){Y=Y.data;
var S;return _.R("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.R("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.R("h2",{class:"yt-profile-info-view-model-wiz__section-title"},Y.sharedSubscriptionsTitle)),_.R("div",{class:"yt-profile-info-view-model-wiz__subs"},(S=Y.sharedSubscriptions)==null?void 0:S.slice(0,5).map(function(P){return _.R("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",a9Z(P))})))},FsY=function(Y){Y=Y.data;
return _.R("div",{class:"yt-profile-info-view-model-wiz__activity"},[Y.profileBadgeInfoYtWide,Y.profileBadgeInfoChannelWide].map(function(S){var P,u,W,m,J;return S?_.R(_.SX,null,_.R("div",{class:"yt-profile-info-view-model-wiz__header"},_.R("div",{class:"yt-profile-info-view-model-wiz__section-title"},S==null?void 0:S.profileSectionTitle),_.R("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.R("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},S==null?void 0:(P=S.commentBadge)==
null?void 0:P.commentDesc),(S==null?0:(u=S.commentBadge)==null?0:u.blackHeartDesc)?_.R("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.R("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.R(_.ZZ,{data:{thumbnails:[{url:S==null?void 0:(W=S.commentBadge)==null?void 0:W.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.R("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},S==null?void 0:(m=
S.commentBadge)==null?void 0:m.blackHeartDesc))),_.R("div",{class:"yt-profile-info-view-model-wiz__badge"},S==null?void 0:(J=S.badges)==null?void 0:J.map(function(c){return _.R(hB5,{data:c})}))):null}))},sAI=function(Y){Y=Y.data;
return _.R("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.R(FsY,{data:Y}),Y.comments?_.R(LsY,{data:Y}):null,Y.sharedSubscriptionsTitle?Y.subscriptionsAccessButtonCommand?_.R(wuo,{data:Y}):_.R(puB,{data:Y}):null)},l9I=function(Y){var S=Y.data;
Y=S?dTo(S.profileIdentityInfo):void 0;S=S?dTo(S.profileInfo):void 0;return _.R("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},Y,S)},XuB=function(Y,S){var P=_.mis(S,{},Y,!0);
return new Promise(function(u,W){P.listenOnce("n",function(){W(Error("gl`"+P.JSC$25627_getErrorDescription()))});
P.listenOnce("l",function(){var m=P.getResponseCode();if(m!==200)W(Error("hl`"+S+"`"+Y.type+"`"+Y.size+"`"+m));else try{u(JSON.parse(P.getResponseText()).encryptedBlobId)}catch(J){W(J)}});
P.run()})},ZbY=function(Y){return Y.substring(Y.indexOf(":")+1,Y.indexOf(";"))},ib_=function(Y){return new Promise(function(S,P){var u=new FileReader;
u.onloadend=function(){try{var W=new Uint8Array(u.result);W.length<8&&P(void 0);var m=W.subarray(0,8);W="";for(var J=0;J<m.length;J++)W+=("0"+m[J].toString(16)).substr(-2);W.startsWith("ffd8ff")?S("image/jpeg"):W.startsWith("47494638")?S("image/gif"):W.startsWith("89504e470d0a1a0a")?S("image/png"):W.startsWith("424d")?S("image/bmp"):S(void 0)}catch(c){P(c)}};
u.onerror=P;u.readAsArrayBuffer(Y)})},ooo=function(Y){return new Promise(function(S,P){var u=new Image;
u.crossOrigin="anonymous";u.onload=function(){var W=document.createElement("canvas");W.width=u.naturalWidth;W.height=u.naturalHeight;var m=W.getContext("2d");if(!m)throw Error("il");m.drawImage(u,0,0);m=ZbY(Y);W.toBlob(function(J){J?S(J):P()},m)};
u.src=Y})},A6B=function(Y,S){var P;
if(((P=_.g(Y,_.bM))==null?void 0:P.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var u;_.ms((u=S.hostElement)!=null?u:S,"yt-shorts-reset");_.nT6(_.E().resolve(_.Nn),Y).then(function(m){tR1(m,S,Y)})}else{var W;
_.Bu((W=S.hostElement)!=null?W:S,[Y]).then(function(m){m&&tR1(m.data,S,Y)})}},tR1=function(Y,S,P){if(Y){var u=_.g(Y.replacementEndpoint,_.bM);
if(u){Y.sequenceContinuation&&(u.sequenceParams=Y.sequenceContinuation);var W;_.ms((W=S.hostElement)!=null?W:S,"yt-navigate",{endpoint:Y.replacementEndpoint})}else if((Y==null?void 0:Y.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(Y==null?0:Y.watchStatus)&&_.g(Y.watchStatus,_.j7J)){var m;_.ms((m=S.hostElement)!=null?m:S,"yt-navigate",{endpoint:P})}}},UTd=function(){var Y=_.E().resolve(_.Ee),S=z_1(Y.getState())||"";
Y=_.Eu8(Y.getState())||"";return{disableCache:S==="ytd-browse"&&Y==="home"}},QA_=function(Y){if(!Y)return!1;
try{if(Y.host&&Y.host.tagName==="YT-FORMATTED-STRING"&&Y.host.id==="contenteditable-textarea"||Y.nodeType===Node.ELEMENT_NODE&&Y.tagName==="YTD-COMMENT-INPUT")return!0}catch(S){return!1}return QA_(Y.parentNode)},Mm=function(Y){return Y?Y.tagName==="A"&&Y.href&&Y.classList.contains("yt-simple-endpoint"):!1},kd_=function(Y){return Y?Y.tagName==="IMG"&&Y.classList.contains("emoji"):!1},MR1=function(Y,S,P){if(!Y)return null;
var u=Mm(Y);if(u&&P)return S=Y.pathname.substring(Y.pathname.indexOf("/channel/")+9),document.createTextNode("@"+S);if(u&&!P)return document.createTextNode("");if(kd_(Y))return P=Y.alt,Y=Y.dataset.emojiId,!Y&&S&&(S=_.qF(S,P))&&S.isCustomEmoji&&(Y=S.emojiId),Y?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+Y+">"):document.createTextNode(P);u=Y.cloneNode(!1);for(var W=0;W<Y.childNodes.length;++W){var m=MR1(Y.childNodes[W],S,P);m&&u.appendChild(m)}return u},yp=function(Y){return Y?Mm(Y)?Y:yp(Y.lastChild):
null},y66=function(Y){return Y?Mm(Y)?Y:y66(Y.firstChild):null},NPc=function(Y){if(!Y)return null;
for(var S=Y.previousSibling;S;)if(S.nodeType===Node.ELEMENT_NODE&&S.nodeName==="BR")S=S.previousSibling;else if(S.nodeType===Node.TEXT_NODE&&/\s+/.test(S.textContent))S=S.previousSibling;else break;(S=yp(S))?Y=S:Y=(Y=Y.parentNode)?yp(Y.previousElementSibling):null;return Y},Hb5=function(Y){if(!Y)return null;
for(var S=Y.nextSibling;S;)if(S.nodeType===Node.ELEMENT_NODE&&S.nodeName==="BR")S=S.nextSibling;else if(S.nodeType===Node.TEXT_NODE&&/\s+/.test(S.textContent))S=S.nextSibling;else break;return(S=y66(S))?S:Hb5(Y.parentNode)},VRB=function(Y){var S=_.xa(),P=S.JSC$9117_getStartNode();
if(!QA_(P.parentNode))return null;S=S.JSC$9117_getStartOffset();if(P.nodeType===Node.TEXT_NODE){var u=_.rh(P,Mm);if(u){if(Y&&S===0||!Y&&S===P.length)return u}else{if(Y&&S===P.length)return!P||P.nodeName==="BR"||P.nextElementSibling&&_.bJ(P.nextElementSibling,"display")==="block"?null:y66(P.nextElementSibling);if(!Y&&S===0)return P?yp(P.previousElementSibling):null}}if(P.nodeType===Node.ELEMENT_NODE)if(Y){if(0<=S&&S<P.childNodes.length)return y66(P.childNodes[S])}else if(0<S&&S<=P.childNodes.length)return yp(P.childNodes[S-
1]);return null},eB1=function(Y,S,P){if(!Y)return null;
if(Y.nodeType===Node.TEXT_NODE)if(P){var u=NPc(Y);if(u&&!/^\s+\S/.test(Y.wholeText.substr(0,S)))return u}else if((u=Hb5(Y))&&!/\S\s+/.test(Y.wholeText.substr(S,Y.wholeText.length)))return u;return Y.nodeType===Node.ELEMENT_NODE?P?NPc(Y.childNodes[S]):Hb5(Y.childNodes[S]):eB1(Y.parentNode,S,P)},ObI=function(Y){if(Y.hasChildNodes())switch(Y.tagName){case "DIV":case "A":case "SPAN":var S="";
for(Y=Y.firstChild;Y;Y=Y.nextSibling)S+=ObI(Y);return S;default:return""}else switch(Y.nodeType){case 3:return Y.textContent;default:return""}},YCd=function(Y){Y=Y.data;
return _.R("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.R("div",null,_.R(_.qw,{text:Y.title})),Y.subtitle?_.R("div",{class:"ytd-menu-title-renderer__subtitle"},_.R(_.qw,{text:Y.subtitle})):null)},SC_=function(Y){switch(Y){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";
case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}},PIu=function(Y){return Y.map(function(S){return{settingsRadioOptionRenderer:{title:_.uI(S.name),
asideText:_.uI(S.approximateSize),id:SC_(S.format)}}})},WZX=function(Y){if(Y&&Y.length!==0)return Y.filter(upc()).map(function(S){return{settingsRadioOptionRenderer:{title:S.name,
asideText:S.approximateSize,id:SC_(S.formatType)}}})},Nm=function(Y){if(Y)return Y.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},zo_=function(Y){Y=new Set(Y!=null?Y:[]);
if(Y.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(Y.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(Y.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(Y.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(Y.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM"},ma_=function(Y){var S=Y.indexOf("(");
return S!==-1?Y.substring(S+1,Y.length-1):Y},nWc=function(Y){switch(Y){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},JE1=function(Y,S,P,u,W,m){var J=_.RY.clone(jR6);
J.locale=_.X3("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;J.report={description:W||"<empty>"};W=_.X3("SBOX_SETTINGS",{});S=S.join(",");var c=Date.now();Y={choice_cc:u,choice_id_cc:P,choices_sc:S,gl:W.REQUEST_DOMAIN,hl:W.REQUEST_LANGUAGE,query:Y,time:c};m&&(Y.choice_additional_comment_cc=m);_.CWm(J,Y)},BT1=function(Y){var S=new Map;
S.set("authuser",_.X3("SESSION_INDEX","0"));return _.Mg(Y,S)},CI6=function(Y){var S;
return _.B(function(P){switch(P.nextAddress){case 1:if(!Y||!cEZ(Y))return P.return(null);S=null;switch(_.X3("INNERTUBE_CLIENT_NAME")){case "WEB":return P.jumpTo(2);case "WEB_REMIX":S=Y.getPlayer()}P.jumpTo(3);break;case 2:return _.q(P,Y.getPlayerPromise(),4);case 4:S=P.yieldResult;P.jumpTo(3);break;case 3:return P.return(S)}})},cEZ=function(Y){return["ytd-player",
"ytmusic-player"].includes(String(Y.tagName||"").toLowerCase())},qCZ=function(Y){Y=Math.round(Y);
return Y%2?Y-1:Y},Ro5=function(Y){Y=Math.round(Y);
return Y%2===0?Y-1:Y},xaj=function(Y){var S,P,u;
if(Y=(S=Y.createPlaylistDialogFormSchema)==null?void 0:(P=S.fieldSchemas)==null?void 0:(u=P.title)==null?void 0:u.validationSchema)for(S=[Y.syncStep,Y.asyncStep].filter(function(W){return W!==void 0}),S=_.n(S),P=S.next();!P.done;P=S.next()){P=P.value.rules;
if(!P)break;P=_.n(P);for(P=P.next();!P.done;P=P.next())return _.g(P.value,_.sY_)}},TTZ=function(Y){var S,P,u;
if(Y=(S=Y.createPlaylistDialogFormSchema)==null?void 0:(P=S.fieldSchemas)==null?void 0:(u=P.visibility)==null?void 0:u.validationSchema)for(S=[Y.syncStep,Y.asyncStep].filter(function(W){return W!==void 0}),S=_.n(S),P=S.next();!P.done;P=S.next()){P=P.value.rules;
if(!P)break;P=_.n(P);for(u=P.next();!u.done;u=P.next())if(u=_.g(u.value,bAu))return S=void 0,(S=u.translations)==null?void 0:S.visibilityNotValidErrorMessage}},KZd=function(){var Y,S;
return(S=(Y=_.E().resolve(_.PQ(_.F5)))==null?void 0:Y())!=null?S:!1},EW6=function(Y,S){a:switch(S){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":S="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:S="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:Y,style:S,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},fSI=function(Y){_.nb(Y,"yt-refit-popups-action")},$aZ=function(Y){var S=Y.data;
var P=Y.disablePadding;var u=Y.className;var W=_.Ms(),m=EW6(S.banner,S.assetContainerPaddingStyle),J=EW6(S.imageBanner,S.assetContainerPaddingStyle),c=S.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",C=S.assetContainerMaxHeight;_.LE(function(){var x;(x=W.value)==null||x.addEventListener("image-loaded",function(){fSI(W.value)})});
_.aI(function(){var x;(x=W.value)==null||x.removeEventListener("image-loaded",function(){fSI(W.value)})});
Y={};return _.R("yt-dialog-header-view-model",{el:W,class:_.uN(u,(Y.ytDialogHeaderViewModelHost=!0,Y.ytDialogHeaderViewModelHostDisablePadding=!!P,Y))},_.kS(S.banner,function(){var x={};return _.R("div",{class:_.uN(u,(x.ytDialogHeaderViewModelBanner=!0,x.ytDialogHeaderViewModelBannerFullBleed=!!c,x)),style:"max-height: "+(C?C+"px":"")},_.R(_.tB,{data:m,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.kS(S.imageBanner,function(){var x={};
return _.R("div",{class:_.uN(u,(x.ytDialogHeaderViewModelBanner=!0,x.ytDialogHeaderViewModelBannerFullBleed=!!c,x)),style:_.Jg({"max-height":function(){return C!==void 0?C+"px":void 0}})},_.R(_.tB,{data:J,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.kS(S.customAssetContainer,function(){return _.R("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},gW1(S.customAssetContainer))}),_.kS(S.customBanner,function(){return _.R("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},gW1(S.customBanner))}),_.kS(S.headline,function(){return _.R("h2",null,_.R(_.qw,{text:S.headline,
className:"ytDialogHeaderViewModelText"}))}))},rE5=function(Y){var S=21;
if(!Y)return S;S+=Y.headerTitle?27:0;S+=Y.headerTitle&&Y.hasHeaderActionHeader?4:0;return S+=Y.headerTitle&&Y.headerSubtitle?16:0},GM1=function(Y){var S=0;
if(!Y)return S;S+=Y.hasFooterPrimaryButton||Y.hasFooterSecondaryButton?48:0;S+=Y.footerTrailingLabel||Y.footerLeadingLabel?30:0;return S+=Y.hasFooterPrimaryButton||Y.hasFooterSecondaryButton||!Y.footerTrailingLabel&&!Y.footerLeadingLabel?0:12},ho1=function(Y){var S=new _.x2,P=Y;
return{subscribe:function(u){S.subscribe("changed",u)},
dispatch:function(u,W){var m=P;u==="Touch Start"?P=Object.assign({},m,{isAnimating:!1,initialY:W.event.touches[0].clientY}):u==="Touch Move"?(u=Math.min(W.fullContentWrapperHeight,W.contentHeightMap[W.contentWrapperId]+rE5(W.header)-GM1(W.footer)),P=Object.assign({},m,{currentY:Math.max(W.contentScrollable?-1*(m.initialY-24):0,W.event.touches[0].clientY-m.initialY),maxHeightForContentWrapper:Math.min(u,Math.max(0,(m.isFullScreen?u:W.contentWrapperHeight)-m.currentY))})):P=u==="Snap To Full Screen"?
Object.assign({},m,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:W.maxHeight}):u==="Snap To Neutral Position"?Object.assign({},m,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:W.maxHeight}):u==="Close Sheet"?Object.assign({},m,{isAnimating:!0,currentY:W.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:W.maxHeight}):m;S.publish("changed",P)}}},vWI=function(Y){return _.mR(function(S){Y(S);
return!1})},DaZ=function(){_.E().resolve(_.xx).closeSheet()},ISc=function(Y){var S,P,u,W,m,J,c,C,x,b,T;
return{headerTitle:(S=Y.headerTitle)==null?void 0:S.call(Y),headerSubtitle:(P=Y.headerSubtitle)==null?void 0:P.call(Y),headerActionHeader:Y.headerActionHeader,footerPrimaryButton:Y.footerPrimaryButton,footerSecondaryButton:Y.footerSecondaryButton,footerButtonType:(u=Y.footerButtonType)==null?void 0:u.call(Y),footerLeadingLabel:(W=Y.footerLeadingLabel)==null?void 0:W.call(Y),footerTrailingLabel:(m=Y.footerTrailingLabel)==null?void 0:m.call(Y),shouldShowIcons:(J=Y.shouldShowIcons)==null?void 0:J.call(Y),
skipContentClick:(c=Y.skipContentClick)==null?void 0:c.call(Y),additionalClassName:(C=Y.additionalClassName)==null?void 0:C.call(Y),onClosedCallback:Y.onClosedCallback,focusOnClose:(x=Y.focusOnClose)==null?void 0:x.call(Y),isDisabled:(b=Y.isDisabled)==null?void 0:b.call(Y),disabledCommand:(T=Y.disabledCommand)==null?void 0:T.call(Y),headerFn:Y.headerFn,contentFn:Y.contentFn,footerFn:Y.footerFn,hasHeaderFn:Y.hasHeaderFn(),hasContentFn:Y.hasContentFn(),hasFooterFn:Y.hasFooterFn(),hasFooterPrimaryButton:Y.hasFooterPrimaryButton(),
hasFooterSecondaryButton:Y.hasFooterSecondaryButton(),hasHeaderActionHeader:Y.hasHeaderActionHeader()}},aSX=function(Y){switch(Y){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";
case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}},LZ1=function(Y){switch(Y){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";
case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}},wTo=function(Y){switch(Y){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";
case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}},pTY=function(Y,S,P){S.forEach(function(u){_.uA(_.E().resolve(_.jG),u)});
_.nb(Y,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",P])},lSj=function(Y,S,P,u){var W=_.g(P,_.pP).commandLifeCycleConfig;
W&&W.onStartCommand&&_.cu(Y,[W.onStartCommand],S);_.MF(S);var m=_.pR.instance;m&&_.Ft(m,P)?_.sn(m,P,u).then(function(J){if(!J||(J==null?0:J.error))return J=_.g(P,_.pP).serializedTransactionFlowLoggingParams,_.yi(S),_.t9(new Hr("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",J));_.yi(S);return{data:J}}).then(function(J){_.yi(S);
FZI(J.data);var c=J.data.command;c&&_.cu(Y,[c],S);c=sR_(P,J.data);if(!c){var C=J.data;J=!1;if(C&&C.command&&_.g(C.command,_.qT)){var x;C=((x=_.g(C.command,_.qT))==null?void 0:x.commands)||[];for(x=0;x<C.length;x++)if(_.g(C[x],_.l3_)){J=!0;break}}J||_.BU('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!c&&W&&W.onSuccessCommand?_.cu(Y,[W.onSuccessCommand],S):c&&W&&W.onFailureCommand&&_.cu(Y,[W.onFailureCommand],S)},function(){_.yi(S);
W&&W.onFailureCommand&&_.cu(Y,[W.onFailureCommand],S);da1(P)}):_.p_(Error("zl"),"ERROR")},XTc=function(Y,S,P){var u=[S];
P&&u.push(P);return _.Bu(Y,u).then(function(W){var m=_.g(S,_.pP).serializedTransactionFlowLoggingParams,J=W.data,c=sR_(S,J);c?W=_.t9(new Hr(c,m)):FZI(J);return W},function(){var W=_.g(S,_.pP).serializedTransactionFlowLoggingParams;
da1(S);return _.t9(new Hr("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",W))})},sR_=function(Y,S){Y=_.g(Y,_.pP).serializedTransactionFlowLoggingParams;
var P=null;switch(S.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":P="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":P="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":P="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}P?_.XQ(P,Y):VqX(Y);return P},da1=function(Y){_.XQ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.g(Y,_.pP).serializedTransactionFlowLoggingParams)},
FZI=function(Y){if(Y.trackingParams){var S=_.pM(),P=_.wf();
S&&P&&_.t6(S,P,_.Re(Y.trackingParams))}},ZAY=function(Y,S,P){var u=_.pR.instance,W=_.IJK(_.X3("YPC_MB_URL")),m=(new _.veU).init(),J=_.DeJ(),c=_.g(P,_.pph).languageCode;
c===void 0?_.p_(Error("Ei"),"ERROR"):_.fl([m,W]).then(function(){var C={ctk:payments.business.integration.ClientTokenFactory.createClientToken(c,J)};u&&_.Ft(u,P)?_.sn(u,P,C).then(function(x){return{data:x}}).then(function(x){_.ms(S,"yt-service-request-completed",x);
x.code!=="ERROR"&&(x=x.data.command)&&_.cu(Y,[x],S)}):_.p_(Error("zl"),"ERROR")})},tkI=function(Y,S,P,u){var W=_.pR.instance;
W&&_.Ft(W,P)?_.sn(W,P,u).then(function(m){return{data:m}}).then(function(m){iAd(Y,S,P,m)},function(){oWc(P)}):(W=_.E().resolve(_.PQ(_.ER)))&&W.requestDataForServiceEndpoint(P,u).then(function(m){iAd(Y,S,P,m)},function(){oWc(P)})},iAd=function(Y,S,P,u){_.ms(S,"yt-service-request-completed",u);
if(u.code&&u.code=="ERROR")oWc(P);else{(u=u.data.commands)&&_.cu(Y,u,S);var W;(Y=(W=_.g(P,_.Zdd))==null?void 0:W.serializedYpcPauseFlowLoggingParams)&&Y&&_.GG("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",Y)}},oWc=function(Y){var S;
(Y=(S=_.g(Y,_.Zdd))==null?void 0:S.serializedYpcPauseFlowLoggingParams)&&Y&&_.GG("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",Y,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},QRX=function(Y,S,P){var u=_.pR.instance;
u&&_.Ft(u,P)?_.sn(u,P).then(function(W){return{data:W}}).then(function(W){AEI(Y,S,P,W)},function(){UaY(P)}):(u=_.E().resolve(_.PQ(_.ER)))&&u.requestDataForServiceEndpoint(P).then(function(W){AEI(Y,S,P,W)},function(){UaY(P)})},AEI=function(Y,S,P,u){_.ms(S,"yt-service-request-completed",u);
u.code&&u.code=="ERROR"?UaY(P):((u=u.data.commands)&&_.cu(Y,u,S),(Y=_.g(P,_.idu).serializedYpcResumeFlowLoggingParams)&&Y&&_.GG("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",Y))},UaY=function(Y){(Y=_.g(Y,_.idu).serializedYpcResumeFlowLoggingParams)&&Y&&_.GG("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",Y,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},kMX=function(Y){Y=Y===void 0?{}:Y;
_.E().resolve(_.d_U).showFeedbackDialog(Y.customProductData,Y.feedbackContent,Y.onFeedbackSubmitted,Y.bucket)},MkX=function(Y){Y=Y===void 0?{}:Y;
_.E().resolve(_.d_U).showHelpDialog(Y.helpContext,Y.articleId,Y.productData)},yEc=function(){MkX()},NT1=function(){kMX()},Vkd=function(Y,S,P){var u,W,m,J,c,C,x;
return _.B(function(b){switch(b.nextAddress){case 1:u=_.g(Y,HA1);if((W=u)==null?0:W.productId){C={productId:u.productId,bucket:u.bucket,enableAnonymousFeedback:(c=u.enableAnonymousFeedback)!=null?c:!0,allowNonLoggedInFeedback:!0};x={feedbackChoice:P.feedbackChoice};if(!_.f("web_collect_offline_state")){b.jumpTo(8);break}_.ND(b,9);return _.q(b,nG5(x),11)}J={bucket:(m=u)==null?void 0:m.bucket};if(!_.f("web_collect_offline_state")){b.jumpTo(4);break}J.customProductData={};_.ND(b,5);return _.q(b,nG5(J.customProductData),
7);case 7:_.tc(b,4);break;case 5:_.O4(b);case 4:kMX(J);b.jumpTo(0);break;case 11:_.tc(b,8);break;case 9:_.O4(b);case 8:_.gzh(x),_.fha("GFEEDBACK",x),u.productId==="5295751"&&(x.client_attestation=Number(_.X3("CATSTAT",0))),u.productId==="5295751"&&(x.client_time=Date.now()/1E3/3600),u.productId==="5295751"&&(x.original_playback_id=_.fq6||""),_.CWm(C,x),_.Yt(b)}})},eoI=function(Y){if(Y=_.g(Y,_.QUa)){var S={bucket:Y.bucketIdentifier};
Y.additionalDatas&&(S.customProductData={},Y.additionalDatas.forEach(function(P){if(P=P.userFeedbackEndpointProductSpecificValueData)S.customProductData[P.key]=P.value}));
kMX(S)}},OAB=function(Y){var S=_.Ap.getInstance();
var P=_.Td("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var u=_.Td("DELETE",void 0,"Delete"),W=_.Td("CANCEL",void 0,"Cancel");P=xY1(P,void 0,u,W,{signal:"DELETE_ALL_DOWNLOADS"});_.Ix(S,[{openPopupAction:P}],Y)},SR1=function(){return _.B(function(Y){return Y.nextAddress==1?_.q(Y,_.E().resolve(_.MX),2):_.q(Y,YRd(),0)})},PMB=function(Y){var S,P;
return _.B(function(u){return u.nextAddress==1?(P=(S=_.g(Y,_.iE))==null?void 0:S.targetId)?_.q(u,_.E().resolve(_.MX),3):u.jumpTo(0):_.q(u,_.E().resolve(_.k8).deleteVideo(P),0)})},WM6=function(Y){var S,P;
return _.B(function(u){return u.nextAddress==1?(P=(S=_.g(Y,_.iE))==null?void 0:S.targetId)?_.q(u,_.E().resolve(_.MX),3):u.jumpTo(0):_.q(u,uQY(_.E().resolve(_.k8),P),0)})},myX=function(Y){var S,P;
return _.B(function(u){return(P=(S=_.g(Y,_.iE))==null?void 0:S.targetId)?_.q(u,zCd(P),0):u.jumpTo(0)})},jKI=function(){_.f("kevlar_woffle_refresh_dl_load_killswitch")||n9d()},B2B=function(){_.f("kevlar_woffle")&&_.FQ.instance&&JKB()},CMo=function(Y){var S;
if((S=_.g(Y,_.mA))==null||!S.videoId)return!1;cKX(_.E().resolve(_.k8),_.g(Y,_.mA),Y.clickTrackingParams);return!0},RC_=function(Y){var S;
if((S=_.g(Y,_.n2))==null||!S.playlistId)return!1;qRZ(_.E().resolve(_.k8),_.g(Y,_.n2),Y.clickTrackingParams);return!0},bVI=function(Y){var S=_.g(Y,_.opS);
(S==null?void 0:S.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(S==null?void 0:S.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||xyu(_.E().resolve(_.k8),_.g(Y,_.opS))},KMd=function(Y){Y=_.g(Y,_.R7S);
var S;(Y==null?0:(S=Y.actions)==null?0:S.length)&&T2Z(Y)},g9j=function(Y){var S,P;
return _.B(function(u){S=_.g(Y,E91);return(P=S)!=null&&P.localWatchHistoryCommandType?_.q(u,fVX(S),0):u.return()})},$y5=function(Y){setTimeout(function(){requestAnimationFrame(Y)},80)},rKZ=function(Y){return Object.entries(Y).map(function(S){return S.join(":")}).join(";")},hCo=function(Y){var S,P,u;
_.B(function(W){if(W.nextAddress==1)return _.q(W,Gp1(),2);S=W.yieldResult;P=_.zR.instance;switch(S){case "granted":u=Y.getLocationCommand;break;case "denied":u=Y.openDeniedDialogAction;break;case "prompt":u=Y.openCollectionDialogAction;break;default:u=Y.openCollectionDialogAction}u&&P.resolveCommand(u);_.Yt(W)})},Gp1=function(){var Y,S;
return _.B(function(P){if(P.nextAddress==1)return Y="prompt",navigator.permissions?_.q(P,navigator.permissions.query({name:"geolocation"}),3):P.jumpTo(2);P.nextAddress!=2&&(S=P.yieldResult,Y=S.state);return P.return(Y)})},Dyj=function(){_.B(function(Y){return _.q(Y,_.v9c(),0)})},IVd=function(){var Y,S,P;
return _.B(function(u){if(u.nextAddress==1)return Y=_.E().resolve(_.fV),Y?_.q(u,_.sn(Y,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.sf(Error("Cl")),u.return(void 0));if(S=u.yieldResult){if(S.errorMetadata)return _.sf(Error("Dl`"+S.errorMetadata.status+"`"+S.error)),u.return(void 0);P=S.datasyncIds;_.spS=P.length;return u.return(P)}_.sf(Error("El"));return u.return(void 0)})},aVX=function(){IVd().then(function(Y){Y&&(FGo(Y),OZB(Y),ri1(Y),Jp_(Y))})},LMd=function(Y){_.wc.addLowPriorityJob(function(){var S,
P,u,W,m;
return _.B(function(J){switch(J.nextAddress){case 1:if(_.f("ytidb_clear_optimizations_killswitch")){J.jumpTo(2);break}S=_.fz("clear");if(S.startsWith("V")&&S.endsWith("||")){var c=[S];FGo(c);OZB(c);ri1(c);Jp_(c);return J.return()}P=GZo();u=B6Y();return _.q(J,Yfj(),3);case 3:return W=J.yieldResult,_.q(J,s41(),4);case 4:if(m=J.yieldResult,!(P||u||W||m))return J.return();case 2:Y.isNetworkAvailable()?aVX():Y.listenOnce("publicytnetworkstatus-online",aVX),_.Yt(J)}})})},Vp=function(Y){Y={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.kW(Y)}}}};_.zR.instance&&_.zR.instance.resolveCommand(Y)},wqo=function(Y){if(Y){var S=_.BF();
_.Ow(S,3854,void 0,{layer:0,parentLayer:4});switch(Y){case 1:var P=238708;break;case 2:P=238715;break;case 3:P=238710;break;case 6:P=238709}P&&(Y=_.JL(S,{veType:P}))&&_.Pp(S,Y)}},pq1=function(Y){if(Y){var S=_.BF();
_.Ow(S,3854,void 0,{layer:0,parentLayer:4});switch(Y){case 1:var P=238714;break;case 2:P=238711;break;case 8:P=238709;break;case 7:P=238713;break;case 3:case 4:case 5:P=238712}P&&(Y=_.JL(S,{veType:P}))&&_.Pp(S,Y)}},FMd=function(Y){switch(Y.latencyType){case 0:_.pb("consent_primitive_flow");
_.Fk("cpit",Y.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Fk("cpist",Y.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Fk("cprtif",Y.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Fk("cprtli",Y.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Fk("cprt",Y.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Fk("cpdt",Y.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Fk("cpjct",Y.timestampEpochMillis,"consent_primitive_flow")}},
Uy1=function(Y,S){var P,u,W,m,J,c,C,x,b,T,K,G,v,a,w,F,U,V,M,zJ;
return _.B(function(O){switch(O.nextAddress){case 1:_.ND(O,2);(u=(P=_.g(Y,sKj))==null?void 0:P.serializedConsentRequest)||(u=(W=_.g(Y,dyI))==null?void 0:W.serializedConsentRequest);u&&(m=lVd(_.z3(u)));if(m===void 0)return O.return();J=Xqc(m);J.latencyCallback=FMd;S&&ZVj(J,function(){S.then(function(ca){ca.pauseVideo();(new iVc).increment()})});
return((c=_.g(Y,sKj))==null?void 0:c.consentAction)==="CONSENT_ACTION_PREWARM"||((C=_.g(Y,dyI))==null?void 0:C.consentAction)==="CONSENT_ACTION_PREWARM"?_.q(O,o9B(J),5):_.q(O,tVX(J),6);case 6:x=O.yieldResult;b=_.$n(x,ez);if(b===1){if(((T=_.F0(x,OF,1,ez))==null?void 0:_.Lj(T,1))===1||((K=_.F0(x,OF,1,ez))==null?void 0:_.Lj(K,1))===2||((G=_.F0(x,OF,1,ez))==null?void 0:_.Lj(G,1))===3)_.g(Y,dyI)?Vp(_.Td("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Vp(_.Td("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));wqo((v=_.F0(x,OF,1,ez))==null?void 0:_.Lj(v,1),_.Uy(x,AKZ,3,_.QI()))}else b===2?(((a=YV(x))==null?void 0:_.Lj(a,1))===5?_.g(Y,dyI)?Vp(_.Td("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Vp(_.Td("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((w=YV(x))==null?void 0:_.Lj(w,1))===1||((F=YV(x))==null?void 0:_.Lj(F,1))===4?Vp(_.Td("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((U=YV(x))==null?void 0:_.Lj(U,1))===7&&((V=m)==null?void 0:(M=_.P_(V,SJ,4))==null?void 0:_.Lj(M,4))!==1&&Vp(_.Td("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),pq1((zJ=YV(x))==null?void 0:_.Lj(zJ,1))):Vp(_.Td("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));O.jumpTo(5);break;case 5:_.tc(O,0);break;case 2:_.O4(O),Vp(_.Td("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.Yt(O)}})},kpI=function(){if(!QKo.has("Worker")){QKo.set("Worker",
!0);
var Y={api:"BROWSER_API_WEB_WORKER"};Y.available="Worker"in window?!0:!1;_.L_("apiTest",Y)}},MVY=function(Y){return typeof Y==="undefined"?"-1":String(Math.ceil(Y/1048576))},VVY=function(Y,S){yKu(new N25(_.g(S,HVo).addToken,_.g(S,HVo).commonToken)).then(function(){_.ms(Y,"yt-invoke-instrument-manager-action-completed")},function(P){_.ms(Y,"yt-invoke-instrument-manager-action-error",P)})},eC_={},OVo=function(Y){return _.xPY(eC_,Y,function(){return Hw(_.PmK,Y)>=0})},YXX=function(Y){return _.iW(Y)},
SXd=function(Y){var S=1;
Y=Y.split(":");for(var P=[];S>0&&Y.length;)P.push(Y.shift()),S--;Y.length&&P.push(Y.join(":"));return P},PpI=function(Y,S){S=Y.aspectRatio()<=S.aspectRatio()?S.width/Y.width:S.height/Y.height;
Y.scale(S)},u26=function(Y,S){S=Y.aspectRatio()>S.aspectRatio()?S.width/Y.width:S.height/Y.height;
return Y.scale(S)},Wm5=function(Y){var S=new _.zj;
return _.sM(S,11,Y)},zn1=function(Y){var S={};
Y=Y.getAllResponseHeaders().split("\r\n");for(var P=0;P<Y.length;P++)if(!_.Ba(Y[P])){var u=SXd(Y[P]),W=u[0];u=u[1];if(typeof u==="string"){u=u.trim();var m=S[W]||[];S[W]=m;m.push(u)}}return _.RY.map(S,function(J){return J.join(", ")})},Br=function(Y,S){return Y.JSC$7668_xhr_?Y.JSC$7668_xhr_.getResponseHeader(S):null},PV=function(Y,S,P){Array.isArray(P)||(P=[String(P)]);
_.ONS(Y.JSC$7905_queryData_,S,P);return Y},JKB=function(){var Y=_.FQ.instance;
_.B(function(S){return Y.deferredInstallPrompt?_.q(S,Y.deferredInstallPrompt.prompt(),0):S.jumpTo(0)})},mhd=function(Y,S,P){if(_.eK(Y))_.Q4(Y,S,P);
else for(Y=_.PEu(Y);;){var u=Y.next();if(u.done)break;S.call(P,u.value,void 0,Y)}},nBu={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}"]},P21,u51,W4_,zMc,mG6,nJj,jeo,JLd,B8I,zCd,uQY,YRd,cLI,C2I,qD5,RM1,xGB,qRZ,cKX,bs1,T8Y,K4j,n9d,xyu,EJX,T2Z,fZ1,fVX,gJI,$GI,rLd,GRu,hMI,vJu,DG5,jJ,IZ1,aZo,
qV6,BP5,L46,wF6,JG,BV,cV,pFj,F41,seI,dG1,lZj,XF1,ZsZ,is6,oJ_,tCY;nBu={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 j__=function(Y,S){var P=[];mhd(S,function(u){try{var W=_.z5.prototype.getWrapper.call(this,u,!0)}catch(m){if(m=="Storage: Invalid value was encountered")return;throw m;}W===void 0?P.push(u):_.SfJ(W)&&P.push(u)},Y);
return P},JI1=function(Y,S){j__(Y,S).forEach(function(P){_.z5.prototype.remove.call(this,P)},Y)},B0B=function(Y){var S=_.XU;
S._minimumZ=Math.max(S._minimumZ,Y)},cIB=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],CpX=function(Y,S){_.oY(Y.g6);Y.g6=S},qX5=function(Y,S,P,u){Y.setState(5);
var W=!!Y.rxX&&cIB.includes(_.eX(Y.rxX)||"");try{var m=new _.ai({program:S,globalName:P,oc:{disable:!_.f("att_web_record_metrics")||!_.f("att_skip_metrics_for_cookieless_domains_ks")&&W,rD:"aGIf"}});m.qwe.then(function(){Y.setState(6);u&&u(S)});
CpX(Y,m)}catch(J){Y.setState(7),J instanceof Error&&_.sf(J)}},Rnj=function(Y,S,P,u,W,m){var J=J===void 0?"trayride":J;
P?(Y.setState(2),_.Xv(P,function(){if(window[J])qX5(Y,u,J,W);else{Y.setState(3);var c=_.wyE(P),C=document.getElementById(c);C&&(_.lV9(c),C.parentNode.removeChild(C));_.sf(new _.$2("BL:ULB",P))}},m)):S?(m=_.nN("SCRIPT"),S instanceof _.GT?_.Di(m,S):m.textContent=S,m.nonce=_.rE(document),document.head.appendChild(m),document.head.removeChild(m),window[J]?qX5(Y,u,J,W):(Y.setState(4),_.sf(new _.$2("BL:ULBJ")))):_.sf(new _.$2("BL:ULV"))},xh1=function(){this.state=1;
this.g6=null;this.rxX=void 0};
_.z=xh1.prototype;_.z.initialize=function(Y,S,P,u){this.rxX=u;if(Y.program){var W;u=(W=Y.interpreterUrl)!=null?W:null;if(Y.interpreterSafeScript)W=_.zoK(Y.interpreterSafeScript);else{var m;W=(m=Y.interpreterScript)!=null?m:null}Y.interpreterSafeUrl&&(u=_.pZ(Y.interpreterSafeUrl).toString());Rnj(this,W,u,Y.program,S,P)}else _.sf(Error("lf"))};
_.z.isInitialized=function(){return!!this.g6};
_.z.getState=function(){return this.state};
_.z.isLoading=function(){return this.state===2};
_.z.invoke=function(Y){Y=Y===void 0?{}:Y;var S;this.g6?S=_.AsS(this.g6,{qf:Y}):S=null;return S};
_.z.dispose=function(){CpX(this,null);this.setState(8)};
_.z.setState=function(Y){this.state=Y};
var bc5=function(Y,S){return Y.g6.snapshot(S)},T0_=function(Y,S){var P=_.z_("botguard_async_snapshot_timeout_ms",3E3);
S=S===void 0?{}:S;P=P===void 0?3E3:P;return Y.g6?new Promise(function(u,W){var m=!1,J=_.wc.addJob(function(){m=!0;W(Error("mf"))},1,P);
Y.g6?bc5(Y,{qf:S}).then(function(c){_.wc.cancelJob(J);m||u(c)}).catch(function(c){_.wc.cancelJob(J);
m||W(c)}):(_.wc.cancelJob(J),u(null))}):Promise.resolve(null)},KmI=["att/log"],EBu;
EBu={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var fQY={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},gBZ=function(Y,S){return _.TM(Y,{mode:"readwrite",enableRetries:!0},function(P){return _.Ef9(P,S,"settingEntity")})},$hY=function(Y,S,P){return _.TM(Y,{mode:"readonly",
enableRetries:!0},function(u){return _.jr_(u,S,P)})},rII=function(Y){if(!Y.storage)return!1;
a:{if(Y.storage){try{var S=Y.storage.get("TLPQtimestamp")}catch(P){}Y=Number(S);if(!isNaN(Y))break a}Y=void 0}return Y?Date.now()-Y<864E5:!1},GYI=function(Y,S){Y.queueProxy&&S.forEach(function(P){if(P.videoId&&P.trackingParams&&Y.queueProxy instanceof _.rG){var u=_.pM();
Y.queueProxy.attributionData.set(P.videoId,{enqueueingVe:_.Re(P.trackingParams).getAsJson(),enqueueingCsn:u?u:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Oh)()).toString()})}})},hn_=function(Y){var S=_.owJ(Y);
S!=Y.currentSnapState_&&(Y.currentSnapState_=S,Y.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},uh=function(Y){this.JSC$10826_networkManager_=Y;
this.partCallbacks_=[]};
uh.prototype.getCacheKeyForEndpoint=function(Y){return _.uR1(Y,!1)};
uh.prototype.onPartsCallback_=function(Y){this.partCallbacks_.forEach(function(S){Y&&S(Y)})};
var WV=function(Y,S,P){uh.call(this,Y);this.player_=S;this.autoplayData_=P};
_.r(WV,uh);WV.prototype.getCacheKeyForEndpoint=function(Y){return _.uR1(Y,!!this.autoplayData_)};
WV.prototype.getTempData=function(Y,S){S=S.timeBeforeNextVideo;Y={itct:Y.clickTrackingParams,lact:_.uE(),pbis:S,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(Y.autonav=1);return Y};
WV.prototype.getXhrParams=function(Y){return Object.assign({pbj:"prefetch"},Y)};
WV.prototype.getParams=function(Y){Y={frags:Y.fragmentsRequested.join(",")};_.f("kevlar_droppable_prefetchable_requests")&&(Y.prefetch=1);return Y};
var vBc=function(Y){Y.playerEvents_.forEach(function(S){Y.player.removeEventListener(S.eventName,S.callback)});
Y.playerEvents_.length=0},zQ=function(Y,S,P){this.player=Y;
this.JSC$10836_taskManager=S;this.prefetchDelay=P;this.completionResolver_=null;this.playerEvents_=[]};
zQ.prototype.start=function(){var Y=this;this.completionResolver_=_.dL();_.gy(this.completionResolver_.promise,function(){vBc(Y);Y.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Dho=function(Y,S,P){Y.player.addEventListener(S,P);Y.playerEvents_.push({eventName:S,callback:P})},IQI={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},aQ5={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},LmX=function(Y,S,P){zQ.call(this,Y,S,P);this.cueId_="playbackTrigger-"+Math.random()};
_.r(LmX,zQ);
LmX.prototype.prepareTrigger=function(Y){var S=this,P=this.player.getDuration(),u=this.player.getVideoData(),W=u.isLive&&u.hasProgressBarBoundaries;if(W&&u.progressBarEndPositionUtcTimeMillis){var m=u.progressBarEndPositionUtcTimeMillis/1E3;isNaN(m)||(P=m)}var J=0;this.prefetchDelay>=0?W?u.progressBarStartPositionUtcTimeMillis&&(u=u.progressBarStartPositionUtcTimeMillis/1E3,isNaN(u)||(J=u+this.prefetchDelay)):J=this.prefetchDelay:J=P+this.prefetchDelay;W?this.player.addUtcCueRange(this.cueId_,J,P):
this.player.addCueRange(this.cueId_,J,P);_.gy(Y.promise,function(){S.player.removeCueRange(S.cueId_)});
Dho(this,"onCueRangeEnter",function(c){c==S.cueId_&&Y.resolve(P-J)})};
var wZu=function(Y,S){Y.fragmentConfiguration_[S].requiredKeys.every(function(P){return!!Y.prefetchedData_[P]})&&(Y.validatedFragments_.push(S),S=Y.missingFragments_.indexOf(S),S!==-1&&Y.missingFragments_.splice(S,1))},pZd=function(Y){Y.prefetchedFragments_.forEach(function(S){wZu(Y,S)})},Fm5=function(Y,S,P){this.pageFragments_=Y;
this.prefetchedFragments_=S;this.fragmentConfiguration_=aQ5;this.prefetchedData_=P;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;pZd(this)},s_c=function(){},dh6=function(Y){this.JSC$10850_playlistManager_=Y};
_.r(dh6,s_c);dh6.prototype.getPrefetchEndpoint=function(){return this.JSC$10850_playlistManager_.getAutoplayEndpoint()};
var lQY=function(Y){this.autonavEndpoints_=Y};
_.r(lQY,s_c);lQY.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var XZo=function(Y,S,P,u,W){this.autonavEndpoints=Y;this.foregroundTrigger=S;this.backgroundTrigger=P;this.pageType=u;this.isInPlaylist=W},ZcZ=function(Y,S){if(Y.webPrefetchData&&Y.webPrefetchData.navigationEndpoints&&Y.webPrefetchData.navigationEndpoints.length){Y=Y.webPrefetchData.navigationEndpoints;
var P=_.g(Y[0],_.yx);if(P.watchEndpointSupportedPrefetchConfig&&P.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var u=P.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;P=u.playbackRelativeSecondsPrefetchCondition;P=typeof P==="number"&&Math.abs(P)<S.videoDuration?P:void 0;u=u.countdownUiRelativeSecondsPrefetchCondition;u=typeof u!=="number"||_.f("prefetch_job_config_cleanup_ks")&&S.inPlaylist?void 0:u;if(typeof u==="number")return new XZo(Y,S.makeUpNextTrigger(u),S.makePlaybackTrigger(u),
"watch",S.inPlaylist);if(typeof P==="number")return new XZo(Y,S.makePlaybackTrigger(P),null,"watch",S.inPlaylist)}}},icZ=function(Y){return Y.prefetchJobConfig_.backgroundTrigger?_.oj(_.lHE)()==0?Y.prefetchJobConfig_.backgroundTrigger:Y.prefetchJobConfig_.foregroundTrigger:Y.prefetchJobConfig_.foregroundTrigger},oBZ=function(Y){_.bG(document,"visibilitychange",Y.onVisibilityChange_,!1,Y)},mf=function(Y){uh.call(this,Y)};
_.r(mf,uh);mf.prototype.getCacheKeyForEndpoint=function(Y){return uh.prototype.getCacheKeyForEndpoint.call(this,Y)};
mf.prototype.getTempData=function(){return{}};
mf.prototype.getXhrParams=function(Y){return Y};
mf.prototype.getParams=function(){return{}};
var tDX=function(Y,S,P){var u=Y.prefetchDelay*1E3;if(Math.abs(u)>S)P.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var W=u,m=S-u;u<0&&(W=S+u,m=Math.abs(u));var J=Y.JSC$10836_taskManager.addJob(function(){P.resolve(m/1E3)},10,W);
P.promise.thenCatch(function(){Y.JSC$10836_taskManager.cancelJob(J)})}},AIX=function(Y,S,P){zQ.call(this,Y,S,P)};
_.r(AIX,zQ);AIX.prototype.prepareTrigger=function(Y){var S=this;Dho(this,"onAutonavCoundownStarted",function(P){tDX(S,P,Y)})};
var UhB=function(Y){Y.pendingPrefetchJob_&&(Y.pendingPrefetchJob_.cancel(),Y.pendingPrefetchJob_=null)},Q_I=function(Y,S,P){if(!Y.triggeredTargets.has(S)){var u=_.vTt(Y,S);
u.action=P;_.GwS(Y,S,u)}},kYB=function(Y){_.bpU();
_.NUK("cpt")&&_.sf(Error("mh"));_.Pa.requestAnimationFrame(function(){_.Pa.setTimeout(function(){_.Fk("cpt");var S=_.lj("vpl"),P=_.lj("cpt");S&&P&&_.Fk("ol",Math.max(S,P))})});
try{_.Fk("fr_s"),Y()}catch(S){_.p_(S)}_.Pa.requestAnimationFrame(function(){_.Fk("bcp")})},MDB=function(Y,S){Y.serviceEndpointHandlers.push(S)},yIZ=function(Y,S){S=Y.pendingPages_.indexOf(S);
S>-1&&Y.pendingPages_.splice(S,1)},N05=function(Y,S){var P=_.Lrs.indexOf(S);
P>-1&&_.Lrs.splice(P,1);Y.targetPage_==S?(Y.abort(),_.pDJ(Y)):yIZ(Y,S)},Hc1=function(Y,S,P,u){S={challenge:S};
P&&(S.webResponse=P);return _.h5(Y.innertubeTransportService,S,_.HT(KmI),u)},VDX=function(Y,S,P){if(!S.challenge)throw Error("oi");
if(S.botguardData&&S.botguardData.program){var u=new xh1;u.initialize(S.botguardData,function(){T0_(u,{atr_challenge:S.challenge}).then(function(W){if(!W)throw Error("pi");return Hc1(Y,S.challenge,W,P)}).catch(function(W){_.sf(W);
return Hc1(Y,S.challenge,void 0,P)})},void 0)}else Hc1(Y,S.challenge,void 0,P)},enj=function(Y,S,P){var u={};
S.ids&&(u.ids=[].concat(_.cz(S.ids)));S.engagementType&&(u.engagementType=S.engagementType);return _.h5(Y.innertubeTransportService,u,_.HT(_.hes),P).then(function(W){if(!W)throw new _.$2("GetAttestationChallenge returned falsy");VDX(Y,W,P)}).thenCatch(function(W){_.p_(W)})},Oc1=function(Y,S,P){return new _.qs(function(u,W){var m;
return _.B(function(J){if(J.nextAddress==1){var c=S.engagementType,C=S.ids,x={};C=_.n(C!=null?C:[]);for(var b=C.next();!b.done;b=C.next())b=b.value,b.encryptedVideoId?x.encryptedVideoId=b.encryptedVideoId:b.externalChannelId?x.externalChannelId=b.externalChannelId:b.commentId?x.commentId=b.commentId:b.externalOwnerId?x.externalOwnerId=b.externalOwnerId:b.artistId?x.artistId=b.artistId:b.playlistId?x.playlistId=b.playlistId:b.externalPostId?x.externalPostId=b.externalPostId:b.shareId&&(x.shareId=b.shareId);
return _.q(J,Ra5(c,x),2)}m=J.yieldResult;if(!m.challenge)return _.sf(Error("qi")),enj(Y,S,P).then(u,W),J.return();c=m;x={challenge:c.challenge};x.webResponse=c.webResponse;x.engagementType=S.engagementType;x.ids=S.ids;_.h5(Y.innertubeTransportService,x,_.HT(KmI),P).then(u,W);_.Yt(J)})})},bb6=function(Y,S){var P,u,W,m;
_.B(function(J){if(J.nextAddress==1){P=_.g(S,_.alf);if(!(P&&P.listId&&Y.response&&Y.response.playingVideoId)||Y.listId!==P.listId)return J.return();Y.index===void 0&&(Y.index=0);return _.q(J,_.AdS(Y.JSC$10659_playlistNetworkManager,P.listId,Y.index,Y.response.playingVideoId),2)}u=J.yieldResult;if(!u)return J.return();W=u.playlistId;m=u.playlistPanelRenderer;Y.setPlaylistData(W,m,u.autoplayRenderer);_.Yt(J)})},YD6=function(Y,S,P){var u=Y.getParams(P),W=_.xGX(S,u),m=Y.getTempData(S,P);
m.endpoint=JSON.stringify(S);_.f("enable_unknown_lact_fix_on_html5")&&(_.E().resolve(_.En),m.lact=_.uE());var J={headers:{"X-YouTube-STS":_.X3("STS"),"x-youtube-csoc":1}};_.ef(W,m);return new _.qs(function(c,C){var x=Y.getXhrParams(u),b;_.f("kevlar_cache_on_ttl_player")&&(b=_.VV.instance);b&&_.uCh(b,S)?_.cMs(b,S,m,window.location.href).then(function(T){T?c(T):C()},C):_.I5_(Y.JSC$10826_networkManager_,S,x,Y.onPartsCallback_.bind(Y),J).then(function(T){T?c(T):C()},C)})},SD5=function(Y,S){Y.triggerPromise_=
S.start();
Y.triggerPromise_.then(function(P){var u=Y.prefetchEndpointProvider_.getPrefetchEndpoint();if(u){var W=IQI[Y.prefetchJobConfig_.pageType].prefetchedFragments;Y.prefetchRequestPromise_=YD6(Y.JSC$10862_networkPrefetchRequest_,u,{fragmentsRequested:W,timeBeforeNextVideo:P});Y.prefetchResponseCacheKey_=Y.JSC$10862_networkPrefetchRequest_.getCacheKeyForEndpoint(u);oBZ(Y);Y.prefetchRequestPromise_.then(function(m){Y.storePrefetchedDataCallback_(Y.prefetchResponseCacheKey_,m);if(_.f("web_prefetch_preload_video")&&
W.length===1&&W[0]==="pl"&&m&&!m.playerAds&&!m.adPlacements){var J=_.g(u,_.bM),c=J!=null,C={raw_player_response:m,watch_endpoint:J};(m=_.E().resolve(c?_.h4J:_.HX))&&u&&m.then(function(x){c&&_.f("web_queue_preload_video")?(C.prefer_gapless=!0,x.queueNextVideo(C)):x.preloadVideoByPlayerVars(C)})}})}})},nH=function(Y,S,P,u){this.prefetchEndpointProvider_=Y;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=S;this.prefetchJobConfig_=P;this.JSC$10862_networkPrefetchRequest_=u;this.prefetchResponseCacheKey_=null};
nH.prototype.enqueue=function(){this.triggerPromise_||(SD5(this,icZ(this)),_.b2(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
nH.prototype.resolve=function(){this.cancel()};
nH.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.");oBZ(this)};
nH.prototype.onVisibilityChange_=function(){var Y=this;_.oj(_.lHE)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){Y.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||SD5(this,icZ(this))};
P21=function(Y,S,P,u,W){S&&(S==null?0:S.videoId)&&P&&P.entries&&_.f("kevlar_enable_shorts_prefetch_in_sequence")&&(UhB(Y),S=P.entries.map(function(m){var J;return(J=_.g(m.command,_.bM))==null?void 0:J.videoId}).indexOf(S.videoId),P=P.entries[S+1],P!=null&&P.command&&!_.g(P==null?void 0:P.command,_.vg)&&(u=new XZo([P.command],new LmX(u,_.wc,1),null,"shorts",!1),Y.pendingPrefetchJob_=new nH(new lQY(u.autonavEndpoints),function(){return!1},u,new mf(W)),Y.pendingPrefetchJob_.enqueue()))};
u51=function(Y,S,P,u,W,m){var J=_.Af.getInstance();if(!_.f("block_all_player_prefetch_requests")){UhB(Y);var c=!!P.getPlaylistId(),C=P.getVideoData().isLive&&P.getVideoData().hasProgressBarBoundaries;if((J.getState()==2||c||C)&&(!P.getVideoData().isLive||C)){J={inPlaylist:c,videoDuration:P.getDuration(),makeUpNextTrigger:function(b){return new AIX(P,_.wc,b)},
makePlaybackTrigger:function(b){return new LmX(P,_.wc,b)}};
var x=ZcZ(S,J);x&&(Y.pendingPrefetchJob_=new nH(x.isInPlaylist?new dh6(W):new lQY(x.autonavEndpoints),function(b,T){T=new Fm5(IQI[x.pageType].pageFragments,IQI[x.pageType].prefetchedFragments,T);return _.xQ6(T)?(Y.prefetchCache_.set(b,T),!0):!1},x,new WV(u,P,m,W)),Y.pendingPrefetchJob_.enqueue())}}};
W4_=function(){var Y=_.pd();Y.signals.parkOrScheduleJob(function(){var S=Y.storage;if(S.storage)if(rII(S)){var P=S.getPlaylistId();S=S.getIndex();P=!!P&&S!==void 0}else S.clear(),P=!1;else P=!1;if(P){P=Y.pageManager.isOnWatch();a:{var u=Y.storage;if(u.storage&&rII(u)&&(S=u.getPlaylistId(),u=u.getIndex(),S&&u!==void 0)){P={recoverPlaylistCommand:{listId:S,index:u,openMiniplayer:!P,openListPanel:P,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}P=void 0}P&&_.Ix(Y.JSC$10659_actionRouter,[P],null)}},
0,"ma")};
zMc=function(Y,S,P,u,W,m){var J=_.TI(7111);_.Ym(Y.JSC$15975_screenManager,J,m?_.Re(m):void 0);_.Pp(Y.JSC$15975_screenManager,J,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:u,offlineId:S,offlineabilityFormatType:P,isDefaultFormatType:W==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:W}})};
mG6=function(Y,S,P,u,W){var m,J,c,C,x;return _.B(function(b){if(b.nextAddress==1)return _.q(b,Y.JSC$15975_playerApiPromise,2);m=b.yieldResult;zMc(Y,S,P,"OFFLINE_OBJECT_TYPE_PLAYLIST",u,W);if(c=_.xHU[Y.entityTypeMap.listEntityType])x={},J=(x[c]={maximumDownloadQuality:(C=P)!=null?C:void 0},x);return _.q(b,m.queueOfflineAction(S,Y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",J),0)})};
nJj=function(Y,S){var P,u,W,m;return _.B(function(J){if(J.nextAddress==1)return _.q(J,Y.JSC$15975_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3){P=J.yieldResult;if(!P)return _.sf(new _.$2("PES is undefined")),J.return();u=_.JE(S,"downloadStatusEntity");return _.q(J,$hY(P,u,"downloadStatusEntity"),3)}W=J.yieldResult;return J.return((m=W)==null?void 0:m.downloadState)})};
jeo=function(Y,S,P,u,W){var m,J,c,C,x,b;return _.B(function(T){switch(T.nextAddress){case 1:return _.q(T,Y.JSC$15975_playerApiPromise,2);case 2:m=T.yieldResult;zMc(Y,S,P,"OFFLINE_OBJECT_TYPE_VIDEO",u,W);if(c=_.xHU[Y.entityTypeMap.singleEntityType])x={},J=(x[c]={maximumDownloadQuality:(C=P)!=null?C:void 0},x);return _.q(T,nJj(Y,S),3);case 3:b=T.yieldResult;if(b!=="DOWNLOAD_STATE_USER_DELETED"){T.jumpTo(4);break}return _.q(T,Y.deleteVideo(S),4);case 4:return _.q(T,m.queueOfflineAction(S,Y.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",J),0)}})};
JLd=function(Y,S,P,u,W){return _.B(function(m){return m.nextAddress==1?_.q(m,Y.deleteVideo(S,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.q(m,jeo(Y,S,P,u,W),0)})};
B8I=function(Y,S,P){var u,W;return _.B(function(m){if(m.nextAddress==1)return _.q(m,Y.JSC$15975_playerApiPromise,2);u=m.yieldResult;W=_.JE(S,"mainVideoDownloadStateEntity");return _.q(m,u.updateDownloadState(W,P),0)})};
zCd=function(Y){var S=_.E().resolve(_.k8);return _.B(function(P){if(P.nextAddress==1)return S.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&S.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?P.jumpTo(2):_.q(P,S.resumeVideoDownload(Y),2);if(P.nextAddress!=4)return _.q(P,B8I(S,Y,S.previousDownloadStateForVideo[Y]),4);delete S.previousDownloadStateForVideo[Y];_.Yt(P)})};
uQY=function(Y,S){var P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$15975_playerApiPromise,2);P=u.yieldResult;return _.q(u,P.queueOfflineAction(S,Y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
YRd=function(){var Y=_.E().resolve(_.k8),S,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$15975_playerApiPromise,2);if(u.nextAddress!=3)return S=u.yieldResult,P={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.q(u,S.queueOfflineAction("!*$_ALL_ENTITIES_!*$",Y.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",P),3);var W=Y.JSC$15975_commandHandler,m=W.resolveCommand,J=_.Td("DELETING_ALL",void 0,"Downloads are being deleted");
m.call(W,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Sk(J)}},popupType:"TOAST"}});_.Yt(u)})};
cLI=function(Y){var S,P;return _.B(function(u){if(u.nextAddress==1)return _.q(u,Y.JSC$15975_prefStorage,2);S=u.yieldResult;return u.return((P=S)==null?void 0:P.get("sdois"))})};
C2I=function(Y){var S,P,u,W,m,J;return _.B(function(c){if(c.nextAddress==1)return _.q(c,Y.JSC$15975_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3){S=c.yieldResult;if(!S)return _.sf(new _.$2("PES is undefined")),c.return();P=_.JE("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.q(c,$hY(S,P,"settingEntity"),3)}u=c.yieldResult;return c.return((J=(W=u)==null?void 0:(m=W.settingOptionValue)==null?void 0:m.boolValue)!=null?J:!1)})};
qD5=function(Y,S){var P,u,W,m;return _.B(function(J){switch(J.nextAddress){case 1:return((P=S)==null?void 0:P.formatType)===void 0?J.return():_.q(J,Y.JSC$15975_prefStorage,2);case 2:u=J.yieldResult;if(u===void 0)return J.return();if(((W=S)==null?void 0:W.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.q(J,u.set("lmqf",S.formatType),8);if(((m=S)==null?void 0:m.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){J.jumpTo(0);break}return _.q(J,u.set("lmqf",S.formatType),
6);case 6:return _.q(J,u.set("lmqflst",Math.floor((0,_.Oh)())),0);case 8:return _.q(J,u.remove("lmqflst"),0)}})};
RM1=function(Y){var S,P;return _.B(function(u){switch(u.nextAddress){case 1:return _.q(u,Y.JSC$15975_prefStorage,2);case 2:S=u.yieldResult;if(!S){u.jumpTo(3);break}return _.q(u,S.get("lmqflst"),4);case 4:if(P=u.yieldResult,P!==void 0)return u.return(P);case 3:return u.return(0)}})};
xGB=function(Y){var S,P;return _.B(function(u){switch(u.nextAddress){case 1:return _.q(u,Y.JSC$15975_prefStorage,2);case 2:S=u.yieldResult;if(S===void 0){u.jumpTo(3);break}return _.q(u,S.get("lmqf"),4);case 4:if(P=u.yieldResult,P!==void 0)return u.return(P);case 3:return u.return("SD")}})};
qRZ=function(Y,S,P){var u,W,m,J,c,C,x,b;_.B(function(T){switch(T.nextAddress){case 1:return _.q(T,qD5(Y,(u=S)==null?void 0:u.actionParams),2);case 2:W=S.playlistId;if(!W)return T.return();if(S.action==="ACTION_ADD")return((J=S.actionParams)==null?0:J.formatType)?_.q(T,mG6(Y,W,S.actionParams.formatType,(b=S.actionParams)==null?void 0:b.settingsAction,P),0):_.q(T,Y.offlineWebClientEligibility,14);if(S.action==="ACTION_REMOVE_WITH_PROMPT"){var K=Y.JSC$15975_commandHandler,G=K.resolveCommand,v=_.X3("INNERTUBE_CLIENT_NAME");
var a=v==="WEB_REMIX"?_.Td("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Td("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var w=v==="WEB_REMIX"?[_.Td("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];v=v==="WEB_REMIX"?_.Td("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Td("DELETE",void 0,"Delete");var F=_.Td("CANCEL",void 0,"Cancel");a=xY1(a,w,v,F,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:W});G.call(K,{openPopupAction:a});
return T.return()}if(S.action==="ACTION_REMOVE")return _.q(T,uQY(Y,W),0);if(S.action!=="ACTION_SYNC"){T.jumpTo(0);break}return _.q(T,Y.JSC$15975_playerApiPromise,9);case 9:return m=T.yieldResult,_.q(T,m.queueOfflineAction(W,Y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return c=T.yieldResult,_.q(T,xGB(Y),15);case 15:return C=T.yieldResult,_.q(T,RM1(Y),16);case 16:x=T.yieldResult,S.onAddCommand&&Y.JSC$15975_commandHandler.resolveCommand(S.onAddCommand,{form:{preferredFormatType:C,
offlineWebClientEligibility:c,lastOfflineQualitySettingsSavedMs:x.toString()}}),T.jumpTo(0)}})};
cKX=function(Y,S,P){var u,W,m,J,c,C,x,b,T,K,G,v,a,w;_.B(function(F){switch(F.nextAddress){case 1:return _.q(F,qD5(Y,(u=S)==null?void 0:u.actionParams),2);case 2:W=S.videoId;if(!W)return F.return();if(S.action==="ACTION_REMOVE_WITH_PROMPT"){var U=Y.JSC$15975_commandHandler,V=U.resolveCommand,M=_.X3("INNERTUBE_CLIENT_NAME");var zJ=M==="WEB_REMIX"?_.Td("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Td("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var O=M==="WEB_REMIX"?[_.Td("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];M=M==="WEB_REMIX"?_.Td("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Td("DELETE",void 0,"Delete");var ca=_.Td("CANCEL",void 0,"Cancel");zJ=xY1(zJ,O,M,ca,{signal:"DELETE_DOWNLOAD",targetId:W});V.call(U,{openPopupAction:zJ});return F.return()}if(S.action==="ACTION_ADD")return((K=S.actionParams)==null?0:K.formatType)?_.q(F,jeo(Y,W,S.actionParams.formatType,(w=S.actionParams)==null?void 0:w.settingsAction,P),0):_.q(F,Y.offlineWebClientEligibility,
23);if(S.action==="ACTION_RETRY")return _.q(F,xGB(Y),19);if(S.action==="ACTION_PAUSE")return _.q(F,Y.pauseVideoDownload(W),0);if(S.action==="ACTION_RESUME")return _.q(F,Y.resumeVideoDownload(W),0);if(S.action!=="ACTION_REMOVE"){F.jumpTo(0);break}return _.q(F,nJj(Y,W),13);case 13:return m=F.yieldResult,Y.previousDownloadStateForVideo[W]=(J=m)!=null?J:"DOWNLOAD_STATE_UNKNOWN",_.q(F,B8I(Y,W,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(Y.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
Y.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){F.jumpTo(15);break}return _.q(F,Y.pauseVideoDownload(W),15);case 15:U=_.Td("DELETED_VIDEO",void 0,"Video deleted from downloads.");V=_.Td("UNDO_ACTION",void 0,"Undo");zJ=_.Td("CLOSE",void 0,"Close");c={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Sk(U),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Sk(V),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:W}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:U+" "+V}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:W}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:zJ}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};Y.JSC$15975_commandHandler.resolveCommand(c);
F.jumpTo(0);break;case 19:C=F.yieldResult;C==="UNKNOWN_FORMAT_TYPE"&&(C="SD");x="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((b=S.actionParams)==null?0:b.formatType)C=S.actionParams.formatType,x=(T=S.actionParams)==null?void 0:T.settingsAction;return _.q(F,JLd(Y,W,C,x,P),20);case 20:return F.return();case 23:return G=F.yieldResult,_.q(F,xGB(Y),24);case 24:return v=F.yieldResult,_.q(F,RM1(Y),25);case 25:a=F.yieldResult,S.onAddCommand&&Y.JSC$15975_commandHandler.resolveCommand(S.onAddCommand,
{form:{preferredFormatType:v,offlineWebClientEligibility:G,lastOfflineQualitySettingsSavedMs:a.toString()}}),F.jumpTo(0)}})};
bs1=function(Y,S){var P,u,W,m,J,c,C;return _.B(function(x){if(x.nextAddress==1)return _.q(x,Y.JSC$15975_persistentStorePromiseAccessor(),2);P=x.yieldResult;if(!P)return _.sf(new _.$2("PES is undefined")),x.return();if((u=S)==null||!u.settingItemId)return x.return();W=S;m=W.settingItemId;J=W.boolValue;c=_.JE(m,"settingEntity");C={key:c,settingOptionValue:{boolValue:J}};return _.q(x,gBZ(P,C),0)})};
T8Y=function(Y,S){var P,u,W,m,J,c,C;return _.B(function(x){switch(x.nextAddress){case 1:return _.q(x,Y.JSC$15975_prefStorage,2);case 2:return P=x.yieldResult,u=_.$o(),_.q(x,Y.JSC$15975_persistentStorePromiseAccessor(),3);case 3:return W=x.yieldResult,P?W?_.q(x,P.get("sdois"),4):(_.sf(new _.$2("PES is undefined")),x.return()):(_.sf(new _.$2("prefStorage is undefined")),x.return());case 4:m=x.yieldResult;c=(J=S)==null?void 0:J.boolValue;c===void 0||_.f("kevlar_set_sd_enabled_flag_killswitch")||_.rP(0,
197,!0);m===void 0&&c===void 0&&(c=!1);if(c===void 0){x.jumpTo(0);break}return _.q(x,P.set("sdois",c),6);case 6:return _.f("kevlar_set_sd_enabled_flag_killswitch")||(_.rP(0,196,c),u.save()),C={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:c},_.q(x,bs1(Y,C),0)}})};
K4j=function(Y,S,P){var u,W,m,J,c;return _.B(function(C){switch(C.nextAddress){case 1:return _.q(C,cLI(Y),2);case 2:return u=C.yieldResult,_.q(C,T8Y(Y,P),3);case 3:return _.q(C,cLI(Y),4);case 4:return W=C.yieldResult,m=W!==u,_.q(C,C2I(Y),5);case 5:J=C.yieldResult&&!_.f("kevlar_modern_downloads_page");if((c=!W&&!J)||m)return _.q(C,S.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);C.jumpTo(0)}})};
n9d=function(){var Y=_.E().resolve(_.k8),S;_.B(function(P){switch(P.nextAddress){case 1:return _.q(P,Y.JSC$15975_playerApiPromise,2);case 2:S=P.yieldResult;if(!_.f("kevlar_force_refresh_smart_downloads")){P.jumpTo(3);break}return _.q(P,S.refreshAllStaleEntities(0),4);case 4:return P.return();case 3:return _.q(P,S.refreshAllStaleEntities(),5);case 5:return _.q(P,K4j(Y,S),0)}})};
xyu=function(Y,S){var P,u;_.B(function(W){switch(W.nextAddress){case 1:return _.q(W,Y.JSC$15975_playerApiPromise,2);case 2:P=W.yieldResult;switch((u=S)==null?void 0:u.settingItemId){case "SMART_DOWNLOADS_ENABLED":return W.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return W.jumpTo(4)}W.jumpTo(0);break;case 3:return _.q(W,K4j(Y,P,S),6);case 6:W.jumpTo(0);break;case 4:return _.q(W,bs1(Y,S),7);case 7:W.jumpTo(0)}})};
EJX=function(Y,S){var P,u,W;return _.B(function(m){if(m.nextAddress==1)return _.q(m,Y.JSC$15975_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3){P=m.yieldResult;if(!P)return _.sf(new _.$2("PES is undefined")),m.return(!1);if(!S)return m.return(!1);u=_.JE(S,"mainVideoEntity");return _.q(m,$hY(P,u,"mainVideoEntity"),3)}W=m.yieldResult;return m.return(W!==void 0)})};
T2Z=function(Y){var S=_.E().resolve(_.k8),P,u,W,m,J,c,C,x,b,T,K;_.B(function(G){switch(G.nextAddress){case 1:return _.q(G,S.JSC$15975_playerApiPromise,2);case 2:P=G.yieldResult;W=(u=Y)==null?void 0:u.actions;if(!W)return G.return();m=_.n(W);J=m.next();case 3:if(J.done){G.jumpTo(0);break}c=J.value;x=C=void 0;if(!(((C=c)==null?0:C.entityKey)&&((x=c)==null?0:x.actionType))){G.jumpTo(4);break}b=_.mZ(c.entityKey);T=b.entityId;K=b.entityType;return _.q(G,P.queueOfflineAction(T,K,c.actionType),4);case 4:J=
m.next(),G.jumpTo(3)}})};
fZ1=function(Y,S){var P,u,W,m,J;return _.B(function(c){if(c.nextAddress==1)return _.q(c,Y.JSC$15975_prefStorage,2);if(c.nextAddress!=3)return(P=c.yieldResult)?_.q(c,P.get("psi"),3):c.return();u=c.yieldResult;J={isPaused:S,lastSyncTimestamp:(m=(W=u)==null?void 0:W.lastSyncTimestamp)!=null?m:"0"};return _.q(c,P.set("psi",J),0)})};
fVX=function(Y){var S=_.E().resolve(_.k8),P,u,W,m,J,c,C,x;return _.B(function(b){switch(b.nextAddress){case 1:return _.q(b,S.JSC$15975_playerApiPromise,2);case 2:P=b.yieldResult;W=((u=Y)==null?void 0:u.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((c=Y)==null?void 0:c.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":m="!*$_ALL_ENTITIES_!*$";J="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return b.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return b.jumpTo(4)}b.jumpTo(5);break;case 3:return _.q(b,fZ1(S,W),6);case 6:b.jumpTo(5);break;case 4:return _.q(b,EJX(S,(C=Y)==null?void 0:C.videoId),7);case 7:b.yieldResult&&(m=(x=Y)==null?void 0:x.videoId,J="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");b.jumpTo(5);break;case 5:if(m&&J)return _.q(b,P.queueOfflineAction(m,"videoPlaybackPositionEntity",J),0);b.jumpTo(0)}})};
gJI=function(Y,S){var P;S!==1||((P=Y.currentPersistentToast)==null?0:P.opened)?Y.openToast():Y.currentPersistentToast=void 0};
$GI=function(){var Y,S,P,u;return _.B(function(W){if(W.nextAddress==1)return Y=navigator,(S=Y.storage)!=null&&S.persisted?_.q(W,(P=Y.storage)==null?void 0:P.persisted(),2):W.return("PERSISTED_STATE_NOT_SUPPORTED");u=W.yieldResult;return W.return(u?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
rLd=function(){var Y,S,P,u;return _.B(function(W){if(W.nextAddress==1)return Y=navigator,(S=Y.storage)!=null&&S.persist?_.q(W,(P=Y.storage)==null?void 0:P.persist(),2):W.return("PERSISTED_STATE_NOT_SUPPORTED");u=W.yieldResult;return W.return(u?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
GRu=function(){var Y,S;return _.B(function(P){switch(P.nextAddress){case 1:return Y="PERSISTED_STATE_NOT_SUPPORTED",_.ND(P,2),_.q(P,$GI(),4);case 4:Y=P.yieldResult;if(Y!=="PERSISTED_STATE_NOT_GRANTED"){P.jumpTo(5);break}return _.q(P,rLd(),6);case 6:Y=P.yieldResult;case 5:_.tc(P,3);break;case 2:S=_.O4(P),S instanceof Error&&_.p_(S);case 3:return _.L_("persistentStorageStateChecked",{persistedState:Y}),P.return(Y)}})};
hMI=function(Y,S){var P=[],u=!1;S=_.n(S);for(var W=S.next();!W.done;W=S.next()){W=Y.moduleRegistry[W.value];var m=void 0,J=void 0;((m=W)==null?0:m.isFetching)&&((J=W)==null?0:J.resolver)?(P.push(W.resolver.promise),u=!0):(W=new _.nV,W.resolve(void 0),P.push(W.promise))}return u?Promise.all(P):void 0};
vJu=function(Y,S,P){P=P===void 0?{}:P;var u=Y.defaultViewTransitionOptions,W=S.map(function(J){return J.beforeTransition}),m=S.map(function(J){return J.afterTransition});
return Object.assign({},u,P,{beforeTransition:function(){var J;(J=u.beforeTransition)==null||J.call(u);var c,C;(C=(c=P).beforeTransition)==null||C.call(c);J=_.n(W);for(c=J.next();!c.done;c=J.next())c=c.value,c()},
afterTransition:function(){var J;(J=u.afterTransition)==null||J.call(u);var c,C;(C=(c=P).afterTransition)==null||C.call(c);J=_.n(m);for(c=J.next();!c.done;c=J.next())c=c.value,c()}})};
DG5=function(Y,S,P){var u,W,m,J,c,C,x;_.B(function(b){if(Y.config.disableAllTransitions)return b.return(S());if((u=P)==null||!u.transitionName)return b.return(_.oUB(S,(W=P)==null?void 0:W.viewTransitionOptions));m=P;J=m.transitionName;c=m.viewTransitionOptions;C=Y.config.transitionConfigs.get(J);if(!C)return b.return(S());var T;x=(T=Y.transitionTasksMap.get(J))!=null?T:[];return b.return(_.oUB(S,vJu(C,x,c)))})};
jJ=function(Y,S,P){Y.transitionTasksMap.has(S)?Y.transitionTasksMap.get(S).push(P):(Y=new _.$2("Transition task registered for unknown transition name",S),_.p_(Y))};
IZ1=function(Y,S,P){if(Y.isInitialized()){var u=VC(P),W=u==="watch";u=u==="shorts";var m=VC(S)==="watch";if(W)m||(Y.backgroundPageData=S),Y.watchPipMode&&m||Y.deactivate(P.endpoint);else if(u){if(VC(S)!=="shorts"){var J;(J=Y.getPlayerElement())==null||J.pause()}}else m&&!Y.watchPipMode&&(Tkd(S,P)?(Y.watchWhileMode&&_.NXY(Y,!1),_.AYo(Y,S)):Y.isMiniplayerActive()&&Y.watchWhileMode&&Y.deactivate());m&&_.VcI(Y);Y.shortsPipMode&&!u&&(window.focus(),Y.deactivate());if(u&&Y.shortsPipEnabled||W&&Y.watchPipEnabled)_.Cu9(Y.handleMediaSessionPipActivation);
else if(!Y.isMiniplayerActive()&&(Y.shortsPipEnabled||Y.watchPipEnabled)&&_.Df()&&_.B1Y("Chromium")>=120){Y=_.cta().mediaSession;try{Y.setActionHandler("enterpictureinpicture",null)}catch(c){}}}};
aZo=function(Y,S){var P,u;_.B(function(W){if(W.nextAddress==1){if(!Y||!Y.navigationEndpoint)return W.return();_.nd().lockupActivation=!0;var m;S?m=_.kW(_.Td("QUEUE",void 0,"Queue")):m=Y.longBylineText;u=(P=m)&&Y.title?{miniplayerTitle:Y.title,miniplayerSubtitle:P,playlistData:null}:void 0;return _.q(W,_.bT6(_.E().resolve(_.l1),Y.navigationEndpoint,!0,u),2)}_.nd().userActivation=!0;_.Yt(W)})};
qV6=function(Y,S){var P,u,W,m,J,c;_.B(function(C){if(C.nextAddress==1){P=_.g(S,_.IlJ);if(!P||!P.listId)return C.return();Y.index=P.index||Y.index||0;u=Y.response&&Y.response.playingVideoId||void 0;return _.q(C,_.AdS(Y.JSC$10659_playlistNetworkManager,P.listId,Y.index,u),2)}W=C.yieldResult;if(!W)return C.return();m=W.playlistId;J=W.playlistPanelRenderer;!Y.queueProxy&&m&&J&&m.startsWith("TLPQ")&&(Y.queueProxy=new _.rG(Y.JSC$10659_playlistNetworkManager,m,Y.setPlaylistData.bind(Y),Y.clearQueue.bind(Y),
_.kEu(J),Y.storage));if(P.openMiniplayer&&(c=_.Ma9(J))&&!Y.pageManager.isOnWatch()){var x=c,b=P.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";Y.isMiniplayerActive()?Y.openToast(x):aZo(x,b)}Y.setPlaylistData(m,J,W.autoplayRenderer);_.Yt(C)})};
BP5=function(Y,S){var P=_.pd();P.index===void 0&&(P.index=0);P.temporaryItems.push.apply(P.temporaryItems,_.cz(Y));if((S.videoId||S.videoIds)&&P.index!==void 0&&S.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!P.queueProxy){var u=[];if(P.response){var W=_.E().resolve(_.l1).isMiniplayerActive();if(P.response.playlistPanelRenderer&&P.response.playlistId&&!P.response.playlistId.startsWith("TLPQ")){if(P.pageManager.isOnWatch()||W)u=_.kEu(P.response.playlistPanelRenderer)}else P.response.playingVideoId&&
!S.openMiniplayer?u.push(P.response.playingVideoId):W&&P.response.playingVideoId&&S.openMiniplayer&&u.push(P.response.playingVideoId)}P.queueProxy=new _.rG(P.JSC$10659_playlistNetworkManager,"",P.setPlaylistData.bind(P),P.clearQueue.bind(P),u,P.storage);P.queueProxy.JSC$10605_setCurrentIndex(P.index)}P.queueProxy.addVideos(S.videoIds||[S.videoId],S)}GYI(P,Y);P.response&&_.Fo(P,_.sG(P,P.response.autoplayRenderer));P.pageManager.isOnWatch()?P.isMiniplayerActive()&&P.openToast(Y[0]):(Y=Y[0],S=S.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",P.isMiniplayerActive()?P.openToast(Y):aZo(Y,S))};
L46=function(Y){var S=_.m5(Y);if(S=="object"||S=="array"){if(typeof Y.clone==="function")return Y.clone();if(typeof Map!=="undefined"&&Y instanceof Map)return new Map(Y);if(typeof Set!=="undefined"&&Y instanceof Set)return new Set(Y);S=S=="array"?[]:{};for(var P in Y)S[P]=L46(Y[P]);return S}return Y};
wF6=function(Y,S){Y=_.xn(Y,S,void 0,_.RJ);Y!=null&&(typeof Y==="bigint"?Y>=0&&(0,_.Ud)(Y)?Y=Number(Y):(Y=(0,_.DI)(64,Y),Y=(0,_.Ud)(Y)?Number(Y):String(Y)):Y=_.j_(Y)?typeof Y==="number"?_.hj(Y):_.v6(Y):void 0);return Y};
JG=function(Y,S){return _.VK1(_.xn(Y,S,void 0,_.RJ))};
BV=function(Y,S){return _.T1(_.xn(Y,S,void 0,_.RJ))};
cV=function(Y,S){return _.xn(Y,S,void 0,_.RJ,_.z1)};
pFj=_.dX(function(Y,S,P){if(Y.nextWireType_!==0)return!1;_.lK(S,P,_.X0(Y.decoder_,_.Ht));return!0},_.tY,_.tv);
F41=_.dX(function(Y,S,P,u){if(Y.nextWireType_!==0)return!1;_.gV(S,P,u,_.X0(Y.decoder_,_.Ht));return!0},_.tY,_.tv);
seI=_.dX(function(Y,S,P){if(Y.nextWireType_!==1)return!1;var u=Y.decoder_;Y=_.oJ(u);u=_.oJ(u);Y=_.yJ(Y,u);_.lK(S,P,Y);return!0},_.QuX,_.P$h);
dG1=_.dX(function(Y,S,P){if(Y.nextWireType_!==5)return!1;_.lK(S,P,_.oJ(Y.decoder_));return!0},function(Y,S,P){S=_.K1(S);
S!=null&&(_.ZB(Y,P,5),_.oN(Y.encoder_,S))},_.gX());
lZj=_.dX(function(Y,S,P){if(Y.nextWireType_!==0)return!1;Y=_.lOh(Y.decoder_);_.lK(S,P,Y===!1?void 0:Y);return!0},_.k1u,_.Oqa);
XF1=_.dX(function(Y,S,P){if(Y.nextWireType_!==2)return!1;Y=_.ATa(Y);_.lK(S,P,Y===""?void 0:Y);return!0},_.yjX,_.Y0K);
ZsZ=_.dX(function(Y,S,P){if(Y.nextWireType_!==2)return!1;Y=_.UBJ(Y);_.lK(S,P,Y===_.pu()?void 0:Y);return!0},_.H1h,_.WYE);
is6=_.lIJ(function(Y,S,P){if(Y.nextWireType_!==0&&Y.nextWireType_!==2)return!1;S=_.CS(S,S[_.E6]|0,P);Y.nextWireType_==2?_.QpK(Y,YXX,S):S.push(_.iW(Y.decoder_));return!0},function(Y,S,P){S=_.dIa(_.T1,S,!0);
if(S!=null&&S.length){P=_.cja(Y,P);for(var u=0;u<S.length;u++)_.t_E(Y.encoder_,S[u]);_.Cou(Y,P)}},_.zPK);
oJ_=_.dX(function(Y,S,P){if(Y.nextWireType_!==0)return!1;Y=_.iW(Y.decoder_);_.lK(S,P,Y===0?void 0:Y);return!0},_.V_Y,_.zPK);
tCY=_.dX(function(Y,S,P,u){if(Y.nextWireType_!==0)return!1;_.gV(S,P,u,_.iW(Y.decoder_));return!0},_.V_Y,_.zPK);
_.ph=function(Y){this.privateDoNotAccessOrElseWrappedStyleSheet=Y};
_.ph.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var ALu=function(Y,S){var P=[];for(S=S||0;S<Y.length;S+=2)_.XtS(Y[S],Y[S+1],P);return P.join("&")},UGu=function(Y,S){var P=arguments.length==2?ALu(arguments[1],0):ALu(arguments,1);
return _.lsu(Y,P)},f9j=function(Y,S){return new _.TH(Y.x+S.x,Y.y+S.y)},QeI=function(Y){return Y.previousElementSibling!==void 0?Y.previousElementSibling:_.p6U(Y.previousSibling,!1)},kR5=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(kR5,_.Gc);kR5.prototype.getValue=function(){var Y=_.xn(this,2);if(Array.isArray(Y)||Y instanceof _.Gc)throw Error("aa");return _.fj(this,2)};
var MC1=function(){var Y=_.Wq();this.JSC$7783_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",_.M1("cookie_enabled"),_.M1("cookie_3p_enabled"),_.N1("browser"))};
MC1.prototype.increment=function(Y,S,P){this.JSC$7783_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Y,S,P)};
var oyY=function(){var Y=_.Wq();this.JSC$7786_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.N1("channel_type"))};
oyY.prototype.increment=function(Y){this.JSC$7786_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",Y)};
var tru=function(){var Y=_.Wq();this.JSC$7789_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.N1("channel_type"))};
tru.prototype.increment=function(Y){this.JSC$7789_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",Y)};
var Uzo=function(){var Y=_.Wq();this.JSC$7792_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.N1("channel_type"))};
Uzo.prototype.increment=function(Y){this.JSC$7792_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",Y)};
var AJj=function(){var Y=_.Wq();this.JSC$7795_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
AJj.prototype.increment=function(){this.JSC$7795_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var QWX=function(){var Y=_.Wq();this.JSC$7798_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.N1("channel_type"),_.N1("error_type"))};
QWX.prototype.increment=function(Y,S){this.JSC$7798_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",Y,S)};
var k4c=function(){var Y=_.Wq();this.JSC$7801_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
k4c.prototype.increment=function(){this.JSC$7801_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var MrI=function(){var Y=_.Wq();this.JSC$7804_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
MrI.prototype.increment=function(){this.JSC$7804_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var iVc=function(){var Y=_.Wq();this.JSC$7810_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
iVc.prototype.increment=function(){this.JSC$7810_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var yLI=function(Y){return Y.getCount&&typeof Y.getCount=="function"?Y.getCount():_.eK(Y)||typeof Y==="string"?Y.length:_.RY.getCount(Y)},N86=function(Y,S){if(typeof Y.every=="function")return Y.every(S,void 0);
if(_.eK(Y)||typeof Y==="string")return Array.prototype.every.call(Y,S,void 0);for(var P=_.UZs(Y),u=_.M4(Y),W=u.length,m=0;m<W;m++)if(!S.call(void 0,u[m],P&&P[m],Y))return!1;return!0},HsY=function(Y,S,P,u){var W=new _.Nq(null);
Y&&_.yK(W,Y);S&&_.N4(W,S);P&&_.Hy(W,P);u&&_.VK(W,u);return W},VCc=function(){var Y=_.dk&&Hw(_.PYS,10)>=0,S;
if(S=_.HO1)S=Hw(_.ShS,10)>=0;var P=_.cW&&Hw(_.PYS,85)>=0;return _.j5||Y||S||P},eMZ=function(Y){var S=_.uF_(Y);
return S&&VCc()?-Y.scrollLeft:S&&_.w7(Y,"overflowX")!="visible"?Y.scrollWidth-Y.clientWidth-Y.scrollLeft:Y.scrollLeft},Osj=function(Y,S){S=Math.max(S,0);
_.uF_(Y)?VCc()?Y.scrollLeft=-S:Y.scrollLeft=Y.scrollWidth-S-Y.clientWidth:Y.scrollLeft=S},pQB=0,XQo=!1;
O8.prototype.set=function(Y){this.relativeTimeStart_=Y};
O8.prototype.reset=function(){this.set(_.S5())};
O8.prototype.get=function(){return this.relativeTimeStart_};
var YnX=null,SnB=function(){YnX||(YnX=new O8)},PN_=function(){YnX||(YnX=new O8)};
_.PW(PN_,SnB);_.z=iz5.prototype;_.z.JSC$9126_buffer_="";_.z.set=function(Y){this.JSC$9126_buffer_=""+Y};
_.z.append=function(Y,S,P){this.JSC$9126_buffer_+=String(Y);if(S!=null)for(var u=1;u<arguments.length;u++)this.JSC$9126_buffer_+=arguments[u];return this};
_.z.clear=function(){this.JSC$9126_buffer_=""};
_.z.getLength=function(){return this.JSC$9126_buffer_.length};
_.z.toString=function(){return this.JSC$9126_buffer_};
var utc=function(){var Y={type:"unit",style:"narrow"};this.listType_=Y&&Y.type?Y.type:"conjunction";this.listStyle_=Y&&Y.style?Y.style:"long";this.listSymbols_=nBu;Y=0;switch(this.listStyle_){case "short":Y=1;break;case "narrow":Y=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[Y];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[Y];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[Y];this.listEndPattern_=
this.listSymbols_.AND_END[Y];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[Y];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[Y];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[Y];this.listEndPattern_=this.listSymbols_.OR_END[Y];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[Y],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[Y],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[Y],this.listEndPattern_=this.listSymbols_.UNIT_END[Y]}};
utc.prototype.format=function(Y){return WRo(this,Y)};
var WRo=function(Y,S){var P=S.length;switch(P){case 0:return"";case 1:return String(S[0]);case 2:return Y.listTwoPattern_.replace("{0}",String(S[0])).replace("{1}",String(S[1]))}for(var u=Y.listStartPattern_.replace("{0}",String(S[0])).replace("{1}",String(S[1])),W=2;W<P-1;++W)u=Y.listMiddlePattern_.replace("{0}",u).replace("{1}",String(S[W]));return Y.listEndPattern_.replace("{0}",u).replace("{1}",String(S[P-1]))},PXd=function(){var Y={style:1};
this.style_=(Y==null?void 0:Y.style)||0;this.durationSymbols_=_.TBf||_.pqu},ziu=function(Y,S){switch(S){default:case "years":return Y.durationSymbols_.YEAR;
case "months":return Y.durationSymbols_.MONTH;case "weeks":return Y.durationSymbols_.WEEK;case "days":return Y.durationSymbols_.DAY;case "hours":return Y.durationSymbols_.HOUR;case "minutes":return Y.durationSymbols_.MINUTE;case "seconds":return Y.durationSymbols_.SECOND}},CH=function(Y,S,P){a:{P=ziu(Y,P);
switch(Y.style_){case 1:if(P.LONG!=void 0){Y=P.LONG;break a}case 2:if(P.NARROW!=void 0){Y=P.NARROW;break a}default:Y=P.SHORT;break a}Y=void 0}return Y?(new _.SX6("{DURATION_VALUE,plural,"+Y+"}")).format({DURATION_VALUE:S}):""};
PXd.prototype.format=function(Y){var S=[],P=Y.years,u=Y.months,W=Y.weeks,m=Y.days,J=Y.hours,c=Y.minutes;Y=Y.seconds;P!=null&&S.push(CH(this,P,"years"));u!=null&&S.push(CH(this,u,"months"));W!=null&&S.push(CH(this,W,"weeks"));m!=null&&S.push(CH(this,m,"days"));J!=null&&S.push(CH(this,J,"hours"));c!=null&&S.push(CH(this,c,"minutes"));Y!=null&&S.push(CH(this,Y,"seconds"));return(new utc).format(S)};
var mwZ=!1,MH6=function(Y){_.YY.call(this,Y.message||Y.description||Y.name);this.isMissing=Y instanceof Yu;this.isTimeout=Y instanceof _.i6&&Y.errorCode=="net.timeout";this.isCanceled=Y instanceof _.ok};
_.r(MH6,_.YY);MH6.prototype.name="BiscottiError";var Yu=function(){_.YY.call(this,"Biscotti ID is missing from server")};
_.r(Yu,_.YY);Yu.prototype.name="BiscottiMissingError";var Sz=null,SVI=function(){try{var Y=_.tA("yt.ads.biscotti.getId_");return Y?Y():had()}catch(S){return _.t9(S)}},SQX,ns1=function(Y){return _.WT({type:"SET_GUIDE_IS_EXPANDED",
payload:Y})},jFX=function(Y){return _.WT({type:"SET_ONLINE_STATUS",
payload:Y})},Jgd=function(Y,S){return _.WT({type:"SET_TRANSCRIPTION_STATE",
payload:{high:Y,low:S}})},BL6=function(Y){return _.WT({type:"SET_OVERLAY_STATE",
payload:Y})},cgY=0,CNo=function(Y,S,P){var u=this;
this.priority=S;this.delay=P;this.jobId=0;this.completionCallback=_.bd;this.wrappedJob=function(){Y();u.completionCallback()};
this.id=++cgY};
CNo.prototype.enqueue=function(Y){this.completionCallback=Y;this.jobId=_.wc.addJob(this.wrappedJob,this.priority,this.delay)};
var qt=function(){_.VH.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.r(qt,_.VH);qt.prototype.addJob=function(Y,S,P){Y=new CNo(Y,S,P);this.taskIdToTask.set(Y.id,Y);this.isActive?qnj(this,Y):this.suspendedTasks.add(Y);return Y.id};
var qnj=function(Y,S){Y.scheduledTasks.add(S);S.enqueue(function(){Y.scheduledTasks.delete(S)})};
qt.prototype.cancelJob=function(Y){(Y=this.taskIdToTask.get(Y))&&(this.scheduledTasks.delete(Y)?_.wc.cancelJob(Y.jobId):this.suspendedTasks.delete(Y))};
qt.prototype.pause=function(){var Y=this;this.isActive=!1;this.scheduledTasks.forEach(function(S){_.wc.cancelJob(S.jobId);Y.suspendedTasks.add(S)});
this.scheduledTasks.clear()};
qt.prototype.start=function(){var Y=this;this.isActive=!0;this.suspendedTasks.forEach(function(S){qnj(Y,S)});
this.suspendedTasks.clear()};
qt.prototype.reset=function(){this.scheduledTasks.forEach(function(Y){_.wc.cancelJob(Y.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Rn=function(Y,S){this.JSC$10786_networkService_=Y;this.pageRequestPromise=S};
Rn.prototype.fetchData=function(Y){Ri_(this,this.JSC$10786_networkService_.fetchData(Y))};
Rn.prototype.postData=function(Y,S){Ri_(this,this.JSC$10786_networkService_.postData(Y,S))};
Rn.prototype.requestDataForServiceEndpoint=function(Y,S){Ri_(this,this.JSC$10786_networkService_.requestDataForServiceEndpoint(Y,S))};
var Ri_=function(Y,S){S.then(Y.pageRequestPromise.onSuccess,Y.pageRequestPromise.onFailure,Y.pageRequestPromise)};
Rn.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var xV=function(Y){this.buildNetworkRequest_=Y;this.pendingRequests_=new Set};
xV.prototype.reset=function(){this.pendingRequests_.forEach(function(Y){Y.cancel()});
this.pendingRequests_.clear()};
xV.prototype.fetchData=function(Y){var S=xwc(this);S.fetchData(Y);return S.pageRequestPromise};
xV.prototype.postData=function(Y,S){var P=xwc(this);P.postData(Y,S);return P.pageRequestPromise};
xV.prototype.requestDataForServiceEndpoint=function(Y,S){var P=xwc(this);P.requestDataForServiceEndpoint(Y,S);return P.pageRequestPromise};
var xwc=function(Y){var S=Y.buildNetworkRequest_();Y.pendingRequests_.add(S);var P=function(){Y.pendingRequests_.delete(S)};
S.pageRequestPromise.then(P,P);return S},bRd=function(Y){var S=new qt;
this.JSC$10793_networkService_=Y;this.JSC$10793_taskManager_=S;this.JSC$10793_networkManager_=new xV(this.networkRequestFactory_.bind(this))};
_.z=bRd.prototype;_.z.networkRequestFactory_=function(){return new Rn(this.JSC$10793_networkService_,new _.yV(this.JSC$10793_taskManager_))};
_.z.reset=function(){this.JSC$10793_taskManager_.reset();this.JSC$10793_networkManager_.reset()};
_.z.start=function(){this.JSC$10793_taskManager_.start()};
_.z.pause=function(){this.JSC$10793_taskManager_.pause()};
_.z.getTaskManager=function(){return this.JSC$10793_taskManager_};
_.z.getNetworkManager=function(){return this.JSC$10793_networkManager_};
var nF5=null,BcI=[],uU=0,zb=0,Wr=null,TLd=function(){var Y=(0,_.s3u)();Y&&JI1(Y,Y.mechanism.__iterator__(!0))},nn=function(Y){this.token=Y};
nn.getInstance=function(){var Y;return _.B(function(S){if(S.nextAddress==1)return _.q(S,_.Vl(),2);Y=S.yieldResult;if(!Y)return S.return();nn.instance||(nn.instance=new nn(Y));return S.return(nn.instance)})};
var bZd=function(Y){var S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,qQB(Y.token),2);S=P.yieldResult;return P.return(S.clear("resource-manifest-assets"))})},mb=function(Y){this.token=Y};
mb.getInstance=function(){var Y;return _.B(function(S){if(S.nextAddress==1)return _.q(S,_.Vl(),2);Y=S.yieldResult;if(!Y)return S.return();mb.instance||(mb.instance=new mb(Y));return S.return(mb.instance)})};
var Rlj=function(Y){var S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,qQB(Y.token),2);S=P.yieldResult;return _.q(P,S.clear("auth"),0)})},KRu=!1,jz=null,aR5=void 0,ZZZ=!1,Es6=function(Y){_.YY.call(this,Y)};
_.r(Es6,_.GQ3);var w3I=function(){var Y=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return Y?parseInt(Y[1],10):0},fKI=function(Y){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+Y)!=-1||document.currentScript.src.indexOf("&"+Y)!=-1)},gs5=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},lC_=function(Y){Y.length?$wB(Y.shift(),function(){lC_(Y)}):F9_()},ZMB=function(Y){return"chrome-extension://"+Y+"/cast_sender.js"},$wB=function(Y,
S,P){var u=document.createElement("script");
u.onerror=S;P&&(u.onload=P);_.I9(u,_.Tl(Y));(document.head||document.documentElement).appendChild(u)},rg_=function(){var Y=w3I(),S=[];
if(Y>1){var P=Y-1;S.push("//www.gstatic.com/eureka/clank/"+Y+"/cast_sender.js");S.push("//www.gstatic.com/eureka/clank/"+P+"/cast_sender.js")}return S},F9_=function(){var Y=gs5();
Y&&Y(!1,"No cast extension found")},dq1=function(){if(GIu){var Y=2,S=gs5(),P=function(){Y--;
Y==0&&S&&S(!0)};
window.__onGCastApiAvailable=P;$wB("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",F9_,P)}},p3X=function(){dq1();
var Y=rg_();Y.push("//www.gstatic.com/eureka/clank/cast_sender.js");lC_(Y)},skd=function(){dq1();
var Y=rg_();Y.push.apply(Y,_.cz(X35.map(ZMB)));Y.push("//www.gstatic.com/eureka/clank/cast_sender.js");lC_(Y)},GIu=fKI("loadCastFramework")||fKI("loadCastApplicationFramework"),X35=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var hiZ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(hiZ,_.Gc);var vsB=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(vsB,_.Gc);var Dw_=function(){var Y=new vsB;return _.dV(Y,1,3)};var bh=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(bh,_.Gc);var vG_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(vG_,_.Gc);var IKc=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(IKc,_.Gc);IKc.prototype.getToken=function(){return _.aJ(this,1)};
IKc.prototype.setToken=function(Y){return _.Vi(this,1,Y)};
var Gy1=function(Y){return _.mz(Y,3,_.p1,_.QI())},h_o=function(Y){return _.mz(Y,6,_.p1,_.QI())};var TQ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(TQ,_.Gc);TQ.prototype.getToken=function(){return _.P_(this,IKc,2)};
TQ.prototype.setToken=function(Y){return _.N8(this,2,Y)};
TQ.prototype.getName=function(){return _.aJ(this,6)};
var aK_=_.M8(TQ);var LRc=function(Y,S,P){this.requestMessage=Y;this.methodDescriptor=S;this.metadata=P};
LRc.prototype.getMetadata=function(){return this.metadata};var wXX=function(Y,S){S=S===void 0?{}:S;this.responseMessage=Y;this.metadata=S;this.status=null};
wXX.prototype.getMetadata=function(){return this.metadata};
wXX.prototype.getStatus=function(){return this.status};var KH=function(Y,S,P,u,W){this.name=Y;this.methodType="unary";this.requestType=S;this.responseType=P;this.requestSerializeFn=u;this.responseDeserializeFn=W},pXZ=function(Y,S,P){P=P===void 0?{}:P;
return new LRc(S,Y,P)};
KH.prototype.getName=function(){return this.name};var E5=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(E5,_.Gc);E5.prototype.setHeader=function(Y){return _.N8(this,1,Y)};
E5.prototype.hasHeader=function(){return _.bW(this,bh,1)};var FRI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(FRI,_.Gc);var sFX=new KH("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",E5,FRI,function(Y){return Y.serialize()},_.M8(FRI));var fH=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(fH,_.Gc);fH.prototype.setHeader=function(Y){return _.N8(this,1,Y)};
fH.prototype.hasHeader=function(){return _.bW(this,bh,1)};var dw1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(dw1,_.Gc);var lKZ=new KH("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",fH,dw1,function(Y){return Y.serialize()},_.M8(dw1));var gN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(gN,_.Gc);gN.prototype.setHeader=function(Y){return _.N8(this,1,Y)};
gN.prototype.hasHeader=function(){return _.bW(this,bh,1)};var XXY=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(XXY,_.Gc);XXY.prototype.getLink=function(){return _.P_(this,TQ,1)};var ZRo=new KH("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",gN,XXY,function(Y){return Y.serialize()},_.M8(XXY));var $V=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r($V,_.Gc);$V.prototype.setHeader=function(Y){return _.N8(this,1,Y)};
$V.prototype.hasHeader=function(){return _.bW(this,bh,1)};var iR6=new KH("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",$V,TQ,function(Y){return Y.serialize()},aK_);var osj=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(osj,_.Gc);var ti5=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(ti5,_.Gc);ti5.prototype.getUrl=function(){return _.aJ(this,2)};
ti5.prototype.setUrl=function(Y){return _.Vi(this,2,Y)};var Agu=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Agu,_.Gc);var Uw1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Uw1,_.Gc);var QFd=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(QFd,_.Gc);var XKc=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(XKc,_.Gc);var lNo=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(lNo,_.Gc);var kI1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(kI1,_.Gc);var QzI=_.M8(kI1);var MiI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(MiI,_.Gc);var rN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(rN,_.Gc);rN.prototype.setHeader=function(Y){return _.N8(this,1,Y)};
rN.prototype.hasHeader=function(){return _.bW(this,bh,1)};
rN.prototype.getCompletionUrl=function(){return _.aJ(this,6)};
rN.prototype.getDeviceId=function(){return _.aJ(this,11)};var ygd=new KH("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",rN,kI1,function(Y){return Y.serialize()},QzI);var NL1=new Set(["SAPISIDHASH","APISIDHASH"]);var HRZ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(HRZ,_.Gc);HRZ.prototype.getMessage=function(){return _.aJ(this,2)};
var Vi1=_.M8(HRZ);var GQ=function(Y,S){this.xhrNodeReadableStream_=Y.nodeReadableStream;this.grpcResponseDeserializeFn_=S;this.JSC$16889_xhr_=Y.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16889_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&ei1(this)},WA1=function(Y,S){var P=new OR_;
_.b2(Y.JSC$16889_xhr_,"complete",function(){if(Y.JSC$16889_xhr_.isSuccess()){var u=Y.JSC$16889_xhr_.getResponseText();var W;if(W=S)W=Y.JSC$16889_xhr_,W.JSC$7668_xhr_&&W.isComplete()?(W=W.JSC$7668_xhr_.getResponseHeader("Content-Type"),W=W===null?void 0:W):W=void 0,W=W==="text/plain";if(W){if(!atob)throw Error("Kj");u=atob(u)}try{var m=Y.grpcResponseDeserializeFn_(u)}catch(c){hG(Y,cp1(new _.ry(13,"Error when deserializing response data; error: "+c+(", response: "+u)),P));return}u=_.YS(Y.JSC$16889_xhr_.getStatus());
YPX(Y,SPX(Y));u==0?PLZ(Y,m):hG(Y,cp1(new _.ry(u,"Xhr succeeded but the status code is not 200"),P))}else{u=Y.JSC$16889_xhr_.getResponseText();m=SPX(Y);if(u){var J=uJZ(Y,u);u=J.code;W=J.details;J=J.metadata}else u=2,W="Rpc failed due to xhr error. uri: "+String(Y.JSC$16889_xhr_.JSC$7668_lastUri_)+", error code: "+Y.JSC$16889_xhr_.JSC$7668_lastErrorCode_+", error: "+Y.JSC$16889_xhr_.getLastError(),J=m;YPX(Y,m);hG(Y,cp1(new _.ry(u,W,J),P))}})},ei1=function(Y){Y.xhrNodeReadableStream_.on("data",function(S){if("1"in
S){var P=S["1"];
try{var u=Y.grpcResponseDeserializeFn_(P)}catch(W){hG(Y,new _.ry(13,"Error when deserializing response data; error: "+W+(", response: "+P)))}u&&PLZ(Y,u)}if("2"in S)for(S=uJZ(Y,S["2"]),P=0;P<Y.onStatusCallbacks_.length;P++)Y.onStatusCallbacks_[P](S)});
Y.xhrNodeReadableStream_.on("end",function(){YPX(Y,SPX(Y));for(var S=0;S<Y.onEndCallbacks_.length;S++)Y.onEndCallbacks_[S]()});
Y.xhrNodeReadableStream_.on("error",function(){if(Y.JSC$16889_onErrorCallbacks_.length!=0){var S=Y.JSC$16889_xhr_.JSC$7668_lastErrorCode_;S!==0||Y.JSC$16889_xhr_.isSuccess()||(S=6);var P=-1;switch(S){case 0:var u=2;break;case 7:u=10;break;case 8:u=4;break;case 6:P=Y.JSC$16889_xhr_.getStatus();u=_.YS(P);break;default:u=14}YPX(Y,SPX(Y));S=_.rs6(S)+", error: "+Y.JSC$16889_xhr_.getLastError();P!=-1&&(S+=", http status code: "+P);hG(Y,new _.ry(u,S))}})},SPX=function(Y){var S={},P=zn1(Y.JSC$16889_xhr_);
Object.keys(P).forEach(function(u){S[u]=P[u]});
return S},uJZ=function(Y,S){var P=2,u={};
try{var W=Vi1(S);P=_.kg(W,1);var m=W.getMessage();_.Uy(W,kR5,3,_.QI()).length&&(u["grpc-web-status-details-bin"]=S)}catch(J){Y.JSC$16889_xhr_&&Y.JSC$16889_xhr_.getStatus()===404?(P=5,m="Not Found: "+String(Y.JSC$16889_xhr_.JSC$7668_lastUri_)):(P=14,m="Unable to parse RpcStatus: "+J)}return{code:P,details:m,metadata:u}};
GQ.prototype.on=function(Y,S){Y=="data"?this.onDataCallbacks_.push(S):Y=="metadata"?this.onMetadataCallbacks_.push(S):Y=="status"?this.onStatusCallbacks_.push(S):Y=="end"?this.onEndCallbacks_.push(S):Y=="error"&&this.JSC$16889_onErrorCallbacks_.push(S);return this};
var vV=function(Y,S){S=Y.indexOf(S);S>-1&&Y.splice(S,1)};
GQ.prototype.removeListener=function(Y,S){Y=="data"?vV(this.onDataCallbacks_,S):Y=="metadata"?vV(this.onMetadataCallbacks_,S):Y=="status"?vV(this.onStatusCallbacks_,S):Y=="end"?vV(this.onEndCallbacks_,S):Y=="error"&&vV(this.JSC$16889_onErrorCallbacks_,S);return this};
GQ.prototype.cancel=function(){this.JSC$16889_xhr_.abort()};
var PLZ=function(Y,S){for(var P=0;P<Y.onDataCallbacks_.length;P++)Y.onDataCallbacks_[P](S)},YPX=function(Y,S){for(var P=0;P<Y.onMetadataCallbacks_.length;P++)Y.onMetadataCallbacks_[P](S)},hG=function(Y,S){for(var P=0;P<Y.JSC$16889_onErrorCallbacks_.length;P++)Y.JSC$16889_onErrorCallbacks_[P](S)};
GQ.prototype.cancel=GQ.prototype.cancel;GQ.prototype.removeListener=GQ.prototype.removeListener;GQ.prototype.on=GQ.prototype.on;var OR_=function(){var Y=Error.call(this);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.r(OR_,Error);var Dn=function(Y){this.JSC$16898_worker_=Y.worker||null;this.JSC$16898_streamBinaryChunks_=Y.streamBinaryChunks||!1;this.JSC$16898_credentialsMode_=void 0};
_.PW(Dn,_.yFa);Dn.prototype.createInstance=function(){var Y=new In(this.JSC$16898_worker_,this.JSC$16898_streamBinaryChunks_);this.JSC$16898_credentialsMode_&&Y.setCredentialsMode(this.JSC$16898_credentialsMode_);return Y};
Dn.prototype.setCredentialsMode=function(Y){this.JSC$16898_credentialsMode_=Y};
var In=function(Y,S){_.Tj.call(this);this.JSC$16902_worker_=Y;this.JSC$16902_streamBinaryChunks_=S;this.JSC$16902_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$16902_responseHeaders_=null;this.JSC$16902_method_="GET";this.JSC$16902_url_="";this.inProgress_=!1;this.JSC$16902_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.PW(In,_.Tj);In.prototype.open=function(Y,S){if(this.readyState!=0)throw this.abort(),Error("Lj");this.JSC$16902_method_=Y;this.JSC$16902_url_=S;this.readyState=1;an(this)};
In.prototype.send=function(Y){if(this.readyState!=1)throw this.abort(),Error("Mj");this.inProgress_=!0;var S={headers:this.requestHeaders_,method:this.JSC$16902_method_,credentials:this.JSC$16902_credentialsMode_,cache:void 0};Y&&(S.body=Y);(this.JSC$16902_worker_||_.Pa).fetch(new Request(this.JSC$16902_url_,S)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
In.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,LH(this));this.readyState=0};
In.prototype.handleResponse_=function(Y){if(this.inProgress_&&(this.fetchResponse_=Y,this.JSC$16902_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16902_responseHeaders_=Y.headers,this.readyState=2,an(this)),this.inProgress_&&(this.readyState=3,an(this),this.inProgress_)))if(this.responseType==="arraybuffer")Y.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Pa.ReadableStream!==
"undefined"&&"body"in Y){this.currentReader_=Y.body.getReader();if(this.JSC$16902_streamBinaryChunks_){if(this.responseType)throw Error("Nj");this.response=[]}else this.response=this.responseText="",this.JSC$16902_textDecoder_=new TextDecoder;z31(this)}else Y.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var z31=function(Y){Y.currentReader_.read().then(Y.handleDataFromStream_.bind(Y)).catch(Y.handleSendFailure_.bind(Y))};
In.prototype.handleDataFromStream_=function(Y){if(this.inProgress_){if(this.JSC$16902_streamBinaryChunks_&&Y.value)this.response.push(Y.value);else if(!this.JSC$16902_streamBinaryChunks_){var S=Y.value?Y.value:new Uint8Array(0);if(S=this.JSC$16902_textDecoder_.decode(S,{stream:!Y.done}))this.response=this.responseText+=S}Y.done?LH(this):an(this);this.readyState==3&&z31(this)}};
In.prototype.handleResponseText_=function(Y){this.inProgress_&&(this.response=this.responseText=Y,LH(this))};
In.prototype.handleResponseArrayBuffer_=function(Y){this.inProgress_&&(this.response=Y,LH(this))};
In.prototype.handleSendFailure_=function(){this.inProgress_&&LH(this)};
var LH=function(Y){Y.readyState=4;Y.fetchResponse_=null;Y.currentReader_=null;Y.JSC$16902_textDecoder_=null;an(Y)};
In.prototype.setRequestHeader=function(Y,S){this.requestHeaders_.append(Y,S)};
In.prototype.getResponseHeader=function(Y){return this.JSC$16902_responseHeaders_?this.JSC$16902_responseHeaders_.get(Y.toLowerCase())||"":""};
In.prototype.getAllResponseHeaders=function(){if(!this.JSC$16902_responseHeaders_)return"";for(var Y=[],S=this.JSC$16902_responseHeaders_.entries(),P=S.next();!P.done;)P=P.value,Y.push(P[0]+": "+P[1]),P=S.next();return Y.join("\r\n")};
In.prototype.setCredentialsMode=function(Y){this.JSC$16902_credentialsMode_=Y};
var an=function(Y){Y.onreadystatechange&&Y.onreadystatechange.call(Y)};
Object.defineProperty(In.prototype,"withCredentials",{get:function(){return this.JSC$16902_credentialsMode_==="include"},
set:function(Y){this.setCredentialsMode(Y?"include":"same-origin")}});var mEd=function(Y){var S="";_.RY.forEach(Y,function(P,u){S+=u;S+=":";S+=P;S+="\r\n"});
return S},nI_=function(Y,S,P){if(_.RY.isEmpty(P))return Y;
P=mEd(P);if(typeof Y==="string")return _.Eg(Y,_.UW(S),P);_.XI(Y,S,P);return Y};var jq6=function(){this.isInputValid_=!0;this.JSC$16908_streamPos_=0;this.leftoverInput_=""};
jq6.prototype.isInputValid=function(){return this.isInputValid_};var cr=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16911_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
cr.prototype.isInputValid=function(){return this.state_!=3};
var wN=function(Y,S,P,u){Y.state_=3;Y.errorMessage_="The stream is broken @"+Y.JSC$16911_streamPos_+"/"+P+". Error: "+u+". With input:\n"+S;throw Error(Y.errorMessage_);};
cr.prototype.acceptsBinaryInput=function(){return!0};
cr.prototype.parse=function(Y){function S(C){C&128&&wN(m,J,c,"invalid tag");(C&7)!=2&&wN(m,J,c,"invalid wire type");m.tag_=C>>>3;m.tag_!=1&&m.tag_!=2&&m.tag_!=15&&wN(m,J,c,"unexpected tag");m.state_=1;m.length_=0;m.countLengthBytes_=0}
function P(C){m.countLengthBytes_++;m.countLengthBytes_==5&&C&240&&wN(m,J,c,"message length too long");m.length_|=(C&127)<<(m.countLengthBytes_-1)*7;C&128||(m.state_=2,m.countMessageBytes_=0,typeof Uint8Array!=="undefined"?m.messageBuffer_=new Uint8Array(m.length_):m.messageBuffer_=Array(m.length_),m.length_==0&&W())}
function u(C){m.messageBuffer_[m.countMessageBytes_++]=C;m.countMessageBytes_==m.length_&&W()}
function W(){if(m.tag_<15){var C={};C[m.tag_]=m.messageBuffer_;m.result_.push(C)}m.state_=0}
for(var m=this,J=Y instanceof Array?Y:new Uint8Array(Y),c=0;c<J.length;){switch(m.state_){case 3:wN(m,J,c,"stream already broken");break;case 0:S(J[c]);break;case 1:P(J[c]);break;case 2:u(J[c]);break;default:throw Error("Pj`"+m.state_);}m.JSC$16911_streamPos_++;c++}Y=m.result_;m.result_=[];return Y.length>0?Y:null};var qf5=function(){this.errorMessage_=null;this.JSC$16914_streamPos_=0;this.base64Decoder_=new jq6;this.pbParser_=new cr};
qf5.prototype.isInputValid=function(){return this.errorMessage_===null};
var Jq6=function(Y,S,P){Y.errorMessage_="The stream is broken @"+Y.JSC$16914_streamPos_+". Error: "+P+". With input:\n"+S;throw Error(Y.errorMessage_);};
qf5.prototype.acceptsBinaryInput=function(){return!1};
qf5.prototype.parse=function(Y){this.errorMessage_!==null&&Jq6(this,Y,"stream already broken");var S=null;try{var P=this.base64Decoder_;if(!P.isInputValid_)throw P.isInputValid_=!1,Error("Oj`"+P.JSC$16908_streamPos_+"`stream already broken`"+Y);P.leftoverInput_+=Y;var u=Math.floor(P.leftoverInput_.length/4);if(u==0)var W=null;else{try{var m=_.d61(P.leftoverInput_.slice(0,u*4))}catch(C){var J=P.leftoverInput_,c=C.message;P.isInputValid_=!1;throw Error("Oj`"+P.JSC$16908_streamPos_+"`"+c+"`"+J);}P.JSC$16908_streamPos_+=
u*4;P.leftoverInput_=P.leftoverInput_.slice(u*4);W=m}S=W===null?null:this.pbParser_.parse(W)}catch(C){Jq6(this,Y,C.message)}this.JSC$16914_streamPos_+=Y.length;return S};var CEX=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16917_streamPos_=0;this.result_=[];this.statusParsed_=!1};
CEX.prototype.isInputValid=function(){return this.errorMessage_===null};
CEX.prototype.acceptsBinaryInput=function(){return!1};
CEX.prototype.parse=function(Y){function S(C){m.state_=6;m.errorMessage_="The stream is broken @"+m.JSC$16917_streamPos_+"/"+J+". Error: "+C+". With input:\n";throw Error(m.errorMessage_);}
function P(){m.jsonStreamParser_=new _.Oq({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function u(C){if(C)for(var x=0;x<C.length;x++){var b={};b[1]=C[x];m.result_.push(b)}}
function W(C){if(C){(m.statusParsed_||C.length>1)&&S("extra status: "+C);m.statusParsed_=!0;var x={};x[2]=C[0];m.result_.push(x)}}
for(var m=this,J=0;J<Y.length;){var c;if(c=m.state_!==2){a:{for(;J<Y.length;){if(!_.ep(Y[J])){c=!0;break a}J++;m.JSC$16917_streamPos_++}c=!1}c=!c}if(c)return null;switch(m.state_){case 6:S("stream already broken");break;case 0:Y[J]==="["?(m.state_=1,J++,m.JSC$16917_streamPos_++):S("unexpected input token");break;case 1:Y[J]==="["?(m.state_=2,P()):Y[J]===","||Y.slice(J,J+5)=="null,"?m.state_=3:Y[J]==="]"?(m.state_=5,J++,m.JSC$16917_streamPos_++):S("unexpected input token");break;case 2:c=m.jsonStreamParser_.parse(Y.substring(J));
u(c);m.jsonStreamParser_.done()?(m.state_=3,c=m.jsonStreamParser_.JSC$9253_buffer_,m.JSC$16917_streamPos_+=Y.length-J-c.length,Y=c,J=0):(m.JSC$16917_streamPos_+=Y.length-J,J=Y.length);break;case 3:Y[J]===","||Y.slice(J,J+5)=="null,"?(m.state_=4,P(),m.jsonStreamParser_.parse("["),J+=Y[J]===","?1:5,m.JSC$16917_streamPos_++):Y[J]==="]"&&(m.state_=5,J++,m.JSC$16917_streamPos_++);break;case 4:c=m.jsonStreamParser_.parse(Y.substring(J));W(c);m.jsonStreamParser_.done()?(m.state_=5,c=m.jsonStreamParser_.JSC$9253_buffer_,
m.JSC$16917_streamPos_+=Y.length-J-c.length,Y=c,J=0):(m.JSC$16917_streamPos_+=Y.length-J,J=Y.length);break;case 5:S("extra input after stream end")}}return m.result_.length>0?(Y=m.result_,m.result_=[],Y):null};var Bv1=function(Y){this.JSC$16920_xhr_=Y;this.JSC$16920_parser_=null;this.status_=this.JSC$16920_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16920_textDecoder_=null;this.JSC$16920_eventHandler_=new _.u6(this);this.JSC$16920_eventHandler_.listen(this.JSC$16920_xhr_,"readystatechange",this.JSC$16922_readyStateChangeHandler_)},pH=function(Y,S){Y.status_!=S&&(Y.status_=S,Y.statusHandler_&&Y.statusHandler_())},FH=function(Y){Y.JSC$16920_eventHandler_.removeAll();
if(Y.JSC$16920_xhr_){var S=Y.JSC$16920_xhr_;Y.JSC$16920_xhr_=null;S.abort();S.dispose()}};
Bv1.prototype.getStatus=function(){return this.status_};
Bv1.prototype.JSC$16922_readyStateChangeHandler_=function(Y){Y=Y.target;try{if(Y==this.JSC$16920_xhr_)a:{var S=_.vy(this.JSC$16920_xhr_),P=this.JSC$16920_xhr_.JSC$7668_lastErrorCode_,u=this.JSC$16920_xhr_.getStatus(),W=this.JSC$16920_xhr_.getResponseText();Y=[];if(this.JSC$16920_xhr_.getResponse()instanceof Array){var m=this.JSC$16920_xhr_.getResponse();m.length>0&&m[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,Y=m)}if(!(S<3||S==3&&!W&&Y.length==0))if(u=u==200||u==206,S==4&&(P==8?pH(this,
7):P==7?pH(this,8):u||pH(this,3)),this.JSC$16920_parser_||(this.JSC$16920_parser_=R_X(this.JSC$16920_xhr_),this.JSC$16920_parser_==null&&pH(this,5)),this.status_>2)FH(this);else{if(Y.length>this.JSC$16920_pos_){var J=Y.length;P=[];try{if(this.JSC$16920_parser_.acceptsBinaryInput())for(var c=0;c<J;c++){var C=this.JSC$16920_parser_.parse(Array.from(Y[c]));C&&(P=P.concat(C))}else{C="";if(!this.JSC$16920_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Qj");this.JSC$16920_textDecoder_=new TextDecoder}for(c=
0;c<J;c++)C+=this.JSC$16920_textDecoder_.decode(Y[c],{stream:S==4&&c==J-1});P=this.JSC$16920_parser_.parse(C)}Y.splice(0,J);P&&this.dataHandler_(P)}catch(b){pH(this,5);FH(this);break a}}else if(W.length>this.JSC$16920_pos_){c=W.slice(this.JSC$16920_pos_);this.JSC$16920_pos_=W.length;try{var x=this.JSC$16920_parser_.parse(c);x!=null&&this.dataHandler_&&this.dataHandler_(x)}catch(b){pH(this,5);FH(this);break a}}S==4?(W.length!=0||this.hasStreamingResponseData_?pH(this,2):pH(this,4),FH(this)):pH(this,
1)}}}catch(b){pH(this,6),FH(this)}};var cqo=function(Y){Y=this.xhrReader_=Y;var S=(0,_.xS)(this.onData_,this);Y.dataHandler_=S;Y=this.xhrReader_;S=(0,_.xS)(this.onStatusChange_,this);Y.statusHandler_=S;this.JSC$16924_callbackMap_={};this.callbackOnceMap_={}};
_.z=cqo.prototype;_.z.on=function(Y,S){var P=this.JSC$16924_callbackMap_[Y];P||(P=[],this.JSC$16924_callbackMap_[Y]=P);P.push(S);return this};
_.z.addListener=function(Y,S){this.on(Y,S);return this};
_.z.removeListener=function(Y,S){var P=this.JSC$16924_callbackMap_[Y];P&&_.MU(P,S);(Y=this.callbackOnceMap_[Y])&&_.MU(Y,S);return this};
_.z.once=function(Y,S){var P=this.callbackOnceMap_[Y];P||(P=[],this.callbackOnceMap_[Y]=P);P.push(S);return this};
_.z.onData_=function(Y){var S=this.JSC$16924_callbackMap_.data;S&&CLI(Y,S);(S=this.callbackOnceMap_.data)&&CLI(Y,S);this.callbackOnceMap_.data=[]};
var CLI=function(Y,S){for(var P={},u=0;u<Y.length;P={message$jscomp$966:void 0},u++)P.message$jscomp$966=Y[u],S.forEach(function(W){return function(m){try{m(W.message$jscomp$966)}catch(J){}}}(P))};
cqo.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:qPI(this,"readable");break;case 5:case 6:case 4:case 7:case 3:qPI(this,"error");break;case 8:qPI(this,"close");break;case 2:qPI(this,"end")}};
var qPI=function(Y,S){var P=Y.JSC$16924_callbackMap_[S];P&&P.forEach(function(u){try{u()}catch(W){}});
(P=Y.callbackOnceMap_[S])&&P.forEach(function(u){u()});
Y.callbackOnceMap_[S]=[]};var R31=function(){var Y={format:"jspb"};Y=Y===void 0?{}:Y;this.suppressCorsPreflight_=Y.suppressCorsPreflight||_.tA("suppressCorsPreflight",Y)||!1;this.JSC$16927_withCredentials_=Y.withCredentials||_.tA("withCredentials",Y)||!1;this.streamInterceptors_=Y.streamInterceptors||[];this.unaryInterceptors_=Y.unaryInterceptors||[];this.workerScope_=Y.workerScope;this.chunkedServerStreaming_=Y.useFetchDownloadStreams||!1},Tvo=function(Y,S,P,u,W,m){m=m===void 0?{}:m;
var J=S.substring(0,S.length-W.name.length),c,C=(c=m)==null?void 0:c.signal;return xEd(function(x){return new Promise(function(b,T){if(C==null?0:C.aborted){var K=new _.ry(1,"Aborted");K.cause=C.reason;T(K)}else{var G={},v=b2j(Y,x,J);v.on("error",function(a){return T(a)});
v.on("metadata",function(a){G=a});
v.on("data",function(a){var w=G;w=w===void 0?{}:w;b(new wXX(a,w))});
C&&C.addEventListener("abort",function(){v.cancel();var a=new _.ry(1,"Aborted");a.cause=C.reason;T(a)})}})},Y.unaryInterceptors_).call(Y,pXZ(W,P,u)).then(function(x){return x.responseMessage})},s5=function(Y,S,P,u,W){var m=m===void 0?{}:m;
return Tvo(Y,S,P,u,W,m)};
R31.prototype.serverStreaming=function(Y,S,P,u){var W=this,m=Y.substring(0,Y.length-u.name.length);return xEd(function(J){var c=J.methodDescriptor,C=J.getMetadata(),x=KAI(W,!1);C=EId(W,C,x,m+c.getName());var b=fwB(x,c.responseDeserializeFn,!0);J=c.requestSerializeFn(J.requestMessage);x.send(C,"POST",J);return b},this.streamInterceptors_).call(this,pXZ(u,S,P))};
var b2j=function(Y,S,P){var u=S.methodDescriptor,W=S.getMetadata(),m=KAI(Y,!0);Y=EId(Y,W,m,P+u.getName());P=fwB(m,u.responseDeserializeFn,!1);WA1(P,W["X-Goog-Encode-Response-If-Executable"]=="base64");S=u.requestSerializeFn(S.requestMessage);m.send(Y,"POST",S);return P},KAI=function(Y,S){S=Y.chunkedServerStreaming_&&!S;
return Y.workerScope_||S?new _.hy(new Dn({worker:Y.workerScope_,streamBinaryChunks:S})):new _.hy},EId=function(Y,S,P,u){S["Content-Type"]="application/json+protobuf";
S["X-User-Agent"]="grpc-web-javascript/0.1";var W=S.Authorization;if(W&&NL1.has(W.split(" ")[0])||Y.JSC$16927_withCredentials_)P.JSC$7668_withCredentials_=!0;if(Y.suppressCorsPreflight_)u=nI_(u,"$httpHeaders",S);else for(var m in S)P.headers.set(m,S[m]);return u},fwB=function(Y,S,P){if(P){P=new Bv1(Y);
var u=new cqo(P)}return new GQ({xhr:Y,nodeReadableStream:u},S)},xEd=function(Y,S){return S.reduce(function(P,u){return function(W){return u.intercept(W,P)}},Y)};var gIc=function(Y){this.client_=new R31;this.hostname_=Y==void 0?Y:Y.replace(/\/+$/,"")};
_.z=gIc.prototype;_.z.JSC$16941_depositGoogleCredential=function(Y,S){return s5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Y,S||{},lKZ)};
_.z.deleteLink=function(Y,S){return s5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Y,S||{},sFX)};
_.z.JSC$16941_finishOAuth=function(Y,S){return s5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Y,S||{},ZRo)};
_.z.getLink=function(Y,S){return s5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Y,S||{},iR6)};
_.z.startLinkingSession=function(Y,S){return s5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Y,S||{},ygd)};var $E1=[0,lZj,1,is6,[0,_.Mi,[0,XF1,-1]],[0,ZsZ],[0,oJ_,-1]];var rq6=function(){this.storage=new Map},h3B=function(Y,S,P,u,W){if(!Y.storage.has(S))return null;
Y=_.n(Y.storage.get(S));for(S=Y.next();!S.done;S=Y.next())if(S=S.value,!W||S.linkName===W)if(P&&S.scopes&&GzY(S.scopes,P)||u&&S.capabilities&&GzY(S.capabilities,u))return S;return null},vI1=function(Y,S,P){if(!P)Y.storage.delete(S);
else if(Y.storage.has(S)){var u=Y.storage.get(S).filter(function(W){return W.linkName!==P});
u.length>0?Y.storage.set(S,u):Y.storage.delete(S)}},GzY=function(Y,S){S=_.n(S);
for(var P=S.next();!P.done;P=S.next())if(!Y.has(P.value))return!1;return!0};var DEo=function(){var Y=_.X3("LINK_GAL_DOMAIN");this.alsDomain1p=_.X3("LINK_GAL_DOMAIN");this.alsDomain3p=Y;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},Iwo=function(Y,S){Y.apiKey=S;
return Y};
DEo.prototype.build=function(){var Y={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Rj");Y.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Sj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Tj");Y.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(Y.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)Y.apiKey=
this.apiKey,Y.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Uj");Y.oauthToken=this.oauthToken;Y.alsDomain=this.alsDomain3p}Y.clientXd3=this.clientXd3;Y.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(Y.authUser=this.authUser);this.bucket!==void 0&&(Y.bucket=this.bucket);this.completionUrl!==void 0&&(Y.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(Y.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(Y.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(Y.locale=this.locale);Y.loggerType=this.loggerType;Y.clientEnvironment=this.clientEnvironment;Y.colorScheme=this.colorScheme;Y.showCloseOption=this.showCloseOption;return Y};var Cn=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Cn,_.Gc);var aw5=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(aw5,_.Gc);var LA6=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(LA6,_.Gc);var R0=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(R0,_.Gc);var wL_=function(Y){return _.Lj(Y,1)};var pLB=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(pLB,_.Gc);var gGZ=_.M8(pLB),qm=[1,2,3,4,5];var T6I=function(Y){try{return gGZ(Y)}catch(S){return null}},FAd=function(){},KUu=function(Y,S){switch(_.$n(S,qm)){case 4:return(S=_.F0(S,LA6,4,qm))&&Y.logStateTransition(_.Lj(S,1)),!0;
case 5:return(S=_.F0(S,aw5,5,qm))&&Y.logInternalEvent(_.Lj(S,1)),!0}return!1},$su=function(Y){switch(Y){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.O6(Y)}};var xsY=function(Y,S){var P=this;this.validator=Y;this.messageListener=S;this.dismissCallback=function(){sq_(P,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16970_receiveMessage=function(u){u.type==="message"&&(u=u.event_,u!==null&&(new URL(P.iframe.src)).origin===u.origin&&P.validator(u.data,u.origin)&&!P.messageListener(u.data)&&(P.JSC$16970_resolveCb!==void 0&&P.JSC$16970_resolveCb(u.data),dEc(P)))}},fNc=function(Y,S,P){Y.uiHandler!==void 0&&sq_(Y,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(u,W){Y.JSC$16970_resolveCb=u;Y.JSC$16970_rejectCb=W;Y.iframe=document.createElement("iframe");_.fh(Y.iframe,S);Y.uiHandler=P.displayContent(Y.iframe,Y.dismissCallback);_.b2(window,"message",Y.JSC$16970_receiveMessage,!1,Y)})},sq_=function(Y,S){Y.JSC$16970_rejectCb!==void 0&&Y.JSC$16970_rejectCb(S);
dEc(Y)},dEc=function(Y){Y.uiHandler!==void 0&&Y.uiHandler.hideContent();
_.bG(window,"message",Y.JSC$16970_receiveMessage,!1,Y);Y.JSC$16970_resolveCb=void 0;Y.JSC$16970_rejectCb=void 0;Y.uiHandler=void 0;Y.iframe=void 0};var lw6=function(Y){if(Y===2){var S;Y=((S=window)==null?0:S.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return Y},EGu=function(Y){Y=lw6(Y);
switch(Y){case 0:return"light";case 1:return"dark";default:_.O6(Y)}};var b_u=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),XL5=function(Y,S){this.JSC$16982_linkingSession=Y;this.noticeConfig=S;this.displayInfoMap=new Map;var P=new Map;if(_.bW(this.JSC$16982_linkingSession,Agu,7))for(Y=_.P_(this.JSC$16982_linkingSession,Agu,7),Y=_.Uy(Y,ti5,1,_.QI()),Y=_.n(Y),S=Y.next();!S.done;S=Y.next())S=S.value,P.set(_.Lj(S,1),_.pJJ(_.P_(S,_.ozh,3)));if(P.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){S=this.noticeConfig.enabledDataUsageNoticeUis;Y=S.has(0)?P.get(1):void 0;S=S.has(1)?P.get(2):void 0;P=Y!==void 0&&S!==void 0?P.get(3):void 0;var u=this.noticeConfig.nestedOrigins;var W=new pLB;var m=new Cn;W=_.Hd(W,2,qm,m);m=new pLB;var J=new Cn;m=_.Hd(m,3,qm,J);J=[];Y!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:Y,lastEvent:W,nestedOrigins:u}]),J.push({trustedUrl:Y,lastEvent:W,nestedOrigins:u}));S!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:S,lastEvent:m,nestedOrigins:u}]),J.push({trustedUrl:S,lastEvent:m,nestedOrigins:u}));P!==void 0?this.displayInfoMap.set(3,[{trustedUrl:P,lastEvent:m,nestedOrigins:u}]):this.displayInfoMap.set(3,J)}};var Z2d=function(Y){var S=new rq6;this.galService=Y;this.galCache=S};
Z2d.prototype.getLink=function(Y){var S=Y.serviceId;var P=Y.scopes;var u=Y.capabilities;var W=Y.linkName;var m=this,J;return _.B(function(c){if(u!==void 0&&P!==void 0)throw Error("Vj");J=h3B(m.galCache,S,P,u,W);return J!==null?c.return(J):c.return(m.galService.getLink({serviceId:S,sessionId:Math.floor(Math.random()*2147483648),scopes:P,capabilities:u,linkName:W}).then(function(C){C=DsB(C);var x=m.galCache;x.storage.has(S)?x.storage.get(S).push(C):x.storage.set(S,[C]);return C}))})};
Z2d.prototype.deleteLink=function(Y,S,P){var u=this;return _.B(function(W){vI1(u.galCache,Y,P);return W.return(u.galService.deleteLink({serviceId:Y,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:S,linkName:P}).then(function(){return!0}))})};var oIo=function(Y,S){var P=this;this.validator=Y;this.msgHandler=S;this.closedPopupTimeout=this.JSC$17004_rejectCb=this.JSC$17004_resolveCb=this.popup=null;this.JSC$17004_receiveMessage=function(u){if(u!==null&&(u=u.event_,u.source===P.popup)){var W=u.data;if(P.validator(W,u.origin)){var m;(m=P.msgHandler)!=null&&m.call(P,W)||(P.JSC$17004_resolveCb!==null&&P.JSC$17004_resolveCb(W),i2Y(P))}}}};
oIo.prototype.open=function(Y,S){var P=this;this.popup!==null&&tFo(this);return new Promise(function(u,W){P.JSC$17004_resolveCb=u;P.JSC$17004_rejectCb=W;P.popup=_.$U(window,Y,"",S);_.b2(window,"message",P.JSC$17004_receiveMessage,!1,P);AqI(P)})};
var tFo=function(Y,S){Y.JSC$17004_rejectCb!==null&&Y.JSC$17004_rejectCb(S);i2Y(Y)},i2Y=function(Y){Y.closedPopupTimeout&&(Y.closedPopupTimeout.cancel(),Y.closedPopupTimeout=null);
Y.popup&&Y.popup.close();_.bG(window,"message",Y.JSC$17004_receiveMessage,!1,Y);Y.popup=null;Y.JSC$17004_resolveCb=null;Y.JSC$17004_rejectCb=null},AqI=function(Y){Y.closedPopupTimeout=_.Kci(100).then(function(){Y.popup?Y.popup.closed?UEd(Y):AqI(Y):tFo(Y,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},UEd=function(Y){Y.closedPopupTimeout=_.Kci(100).then(function(){tFo(Y,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var QqX=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),kzj=function(Y,S,P,u,W,m,J,c,C,x){var b=this;this.serviceId=Y;this.sessionId=S;this.galService=P;this.oauthDetails=u;this.galLogger=W;this.interactionMode=m;this.redirectServiceUrl=J;this.consentLanguageKeys=c;this.dynamicUrlParameters=C;this.partnerConfigMinReadTimestamp=x;this.started=!1;this.JSC$17010_dataValidator=function(T,
K){var G=QqX.has(K);G||b.redirectServiceUrl===void 0||(G=b.redirectServiceUrl===K);return G?T.sentinel==="gdi":!1}};
kzj.prototype.complete=function(){var Y=this,S;return _.B(function(P){if(Y.interactionMode!==1)return P.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));S=bU.getRedirectStateFromUri();return S===null?P.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):P.return(MFo(Y,S))})};
kzj.prototype.start=function(){var Y=this,S;return _.B(function(P){if(Y.started)return P.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.aJ(Y.oauthDetails,1))return P.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(Y.interactionMode===1)return bU.setLocation(_.aJ(Y.oauthDetails,1)),P.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));Y.started=!0;Y.galLogger.logStateTransition(5);
S=bU.getPostMessagePopup(Y.JSC$17010_dataValidator);return P.return(S.open(_.aJ(Y.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(u){Y.started=!1;var W=Y.galLogger;if((u==null?void 0:u.error)!==void 0)throw W.logInternalEvent(59),Error("Wj");if((u==null?void 0:u.redirect_state)===void 0)throw W.logInternalEvent(131),Error("Xj");return MFo(Y,u.redirect_state)}).catch(function(u){Y.started=
!1;
return u.errorCode!==void 0?{statusCode:u.errorCode,statusMessage:u.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var MFo=function(Y,S){return _.B(function(P){return P.return(yqI(Y.galService,{serviceId:Y.serviceId,sessionId:Y.sessionId,dynamicUrlParameters:Y.dynamicUrlParameters,redirectState:S,consentLanguageKeys:Y.consentLanguageKeys,partnerConfigMinReadTimestamp:Y.partnerConfigMinReadTimestamp}).then(function(u){var W={statusCode:1,link:DsB(u.getLink())};$YB(_.fj(u,3))!==void 0&&(W.callerState=$YB(_.fj(u,3)));Y.galLogger.logInternalEvent(134);return W}))})},bU={getPostMessagePopup:function(Y){return new oIo(Y)},
getRedirectStateFromUri:function(){var Y=_.d7(bU.getLocation()).fragment_;return(new _.Sv(Y)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(Y){_.Fm(window.location,_.Bx(Y))},
createOAuthFlow:function(Y,S){return new kzj(Y.serviceId,Y.sessionId,Y.galService,S,Y.galLogger,Y.interactionMode,Y.redirectServiceUrl,Y.consentLanguageKeys,Y.dynamicUrlParameters,Y.partnerConfigMinReadTimestamp)}};var NvI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(NvI,_.Gc);var H2Z=_.M8(NvI);var VF5=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),e3Z=function(Y,S,P,u,W,m,J,c,C){var x=this;this.serviceId=Y;this.sessionId=S;this.galService=P;this.gsiWebFlowDetails=u;this.colorScheme=W;this.showCloseOption=m;this.galLogger=J;this.interactionMode=c;this.redirectServiceUrl=C;this.started=!1;this.JSC$17022_dataValidator=function(b,T){var K=VF5.has(T);K||x.redirectServiceUrl===
void 0||(K=x.redirectServiceUrl===T);return K?b.sentinel==="gal":!1};
this.logEventProcessor=function(b){return b.result?(b=T6I(b.result))?KUu(x.galLogger,b):!1:!1}};
e3Z.prototype.complete=function(){var Y=this,S,P;return _.B(function(u){if(Y.interactionMode!==1)return u.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));S=Tb.getRedirectStateFromUri();if(S===void 0)return Y.galLogger.JSC$16962_logErrorEvent(131),u.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return P=O21(Y,S),u.return(YsX(Y,P))}catch(W){return u.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
e3Z.prototype.start=function(){var Y=this,S;return _.B(function(P){if(Y.started)return P.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.aJ(Y.gsiWebFlowDetails,1))return P.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(Y.interactionMode===1)return Tb.setLocation(Ss6(Y,_.aJ(Y.gsiWebFlowDetails,1))),P.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
Y.started=!0;S=Tb.getPostMessagePopup(Y.JSC$17022_dataValidator,Y.logEventProcessor);return P.return(S.open(Ss6(Y,_.aJ(Y.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(u){Y.started=!1;if((u==null?void 0:u.result)===void 0)throw Y.galLogger.JSC$16962_logErrorEvent(131),Error("Xj");u=O21(Y,u.result);return YsX(Y,u)}).catch(function(u){Y.started=!1;
return u.errorCode!==void 0?{statusCode:u.errorCode,statusMessage:u.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Ss6=function(Y,S){Y=["result_channel",Y.interactionMode===1?"2":"1","color_scheme",EGu(Y.colorScheme),"show_close_option",Y.showCloseOption];return UGu(S,Y)},YsX=function(Y,S){if(S!==null&&_.bW(S,R0,2)){var P,u=S==null?void 0:(P=_.P_(S,R0,2))==null?void 0:_.Lj(P,2);
u&&Y.galLogger.JSC$16962_logErrorEvent($su(u));return wL_(_.P_(S,R0,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return Y.galService.getLink({serviceId:Y.serviceId,sessionId:Y.sessionId,consistencyKey:_.aJ(S,1)}).then(function(W){W=DsB(W);Y.galLogger.logInternalEvent(134);return{statusCode:1,link:W}})},O21=function(Y,S){S=H2Z(S);
if(!_.bW(S,R0,2)&&_.aJ(S,1)==="")throw Y.galLogger.JSC$16962_logErrorEvent(5),Error("Yj");return S},Tb={getPostMessagePopup:function(Y,S){return new oIo(Y,S)},
getRedirectStateFromUri:function(){return _.lV(_.d7(Tb.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(Y){_.Fm(window.location,_.Bx(Y))},
createStreamlinedFlow:function(Y,S){return new e3Z(Y.serviceId,Y.sessionId,Y.galService,S,Y.colorScheme,Y.showCloseOption,Y.galLogger,Y.interactionMode,Y.redirectServiceUrl)}};var ApB=function(){var Y=_.P6$("GAL");this.storage=Y?new _.rk(Y):null};var dN=function(){};
_.r(dN,FAd);dN.prototype.logStateTransition=function(){};
dN.prototype.logInternalEvent=function(){};
dN.prototype.JSC$16962_logErrorEvent=function(){};var PJX=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(PJX,_.Gc);PJX.prototype.getCompletionUrl=function(){return _.aJ(this,15)};var lh=function(Y,S,P,u,W,m){this.serviceId=Y;this.environment=S;this.sessionId=P;this.colorSchemeSelected=u;this.colorThemeDisplayed=W;this.JSC$17035_transport=m;this.currentState=1};
_.r(lh,FAd);lh.prototype.logStateTransition=function(Y){var S=uWZ(this);S=_.uX(S,3,this.currentState);S=_.uX(S,1,Y);this.currentState=Y;Y=Wm5(1);this.dispatch(S,Y)};
lh.prototype.logInternalEvent=function(Y){Y=Wm5(Y);this.dispatch(uWZ(this),Y)};
lh.prototype.JSC$16962_logErrorEvent=function(Y){var S=uWZ(this);S=_.uX(S,1,10);Y=Wm5(Y);this.dispatch(S,Y)};
var uWZ=function(Y){var S=new PJX;S=_.uX(S,1,Y.currentState);S=_.zH(S,7,Y.serviceId);var P,u;var W=((P=window)==null?0:(u=P.location)==null?0:u.href)?_.d7(window.location.href).JSC$7905_domain_:"NO_PACKAGE_NAME";P=_.zH(S,8,W);P=_.uX(P,6,Y.environment);P=_.zH(P,5,"100");P=_.uX(P,11,Y.colorSchemeSelected);return _.uX(P,12,Y.colorThemeDisplayed)};
lh.prototype.dispatch=function(Y,S){S===void 0&&(S=new _.zj);var P=S;Y=Y.serialize();P=_.zH(P,8,Y);_.r6(P,12,this.sessionId);this.JSC$17035_transport.dispatch(S)};var WF5=function(Y,S){this.loggerType=Y;this.sessionIndex=S!=null?S:0},z6d;
WF5.prototype.create=function(Y,S,P,u,W){switch(this.loggerType){case 0:return new dN;case 1:return z6d||(z6d=(new _.SL(555,this.sessionIndex.toString())).build()),new lh(Y,S,P,u,W,z6d);default:_.O6(this.loggerType,"unknown logger type")}};var Kn=[6,2,3,1],yp1=new Map([[4,1],[1,6],[2,2],[3,3]]),wKB={statusCode:7,statusMessage:"Failed to create flow object"},oGd=function(Y,S,P,u,W,m,J,c,C,x){this.serviceId=Y;this.sessionId=S;this.config=P;this.galService=u;this.JSC$17042_linkingSession=W;this.googleScopes=m;this.callerState=J;this.consentLanguageKeys=c;this.dynamicUrlParameters=C;this.partnerConfigMinReadTimestamp=x;this.currentFlow=0;u=this.JSC$17042_linkingSession;W=new Set;_.bW(u,lNo,1)&&W.add(1);_.bW(u,QFd,2)&&_.bW(u,XKc,6)&&W.add(2);
_.bW(u,Uw1,3)&&_.bW(u,XKc,6)&&W.add(3);_.bW(u,osj,4)&&W.add(6);this.supportedFlows=W;u=P.loggerType;W=P.clientEnvironment;a:{m=P.colorScheme;switch(m){case 0:m=1;break a;case 1:m=2;break a;case 2:m=3;break a;default:_.O6(m)}m=void 0}a:{J=P.colorScheme;J=lw6(J);switch(J){case 0:J=1;break a;case 1:J=2;break a;default:_.O6(J)}J=void 0}this.galLogger=(new WF5(u,P.authUser)).create(Y,W,S,m,J)},naB=function(Y){return new Promise(function(S){var P,u,W,m,J,c,C,x,b,T;
return _.B(function(K){switch(K.nextAddress){case 1:P=Z_u(Y.currentFlow,Y.supportedFlows),u=!1,W=new XL5(Y.JSC$17042_linkingSession,Y.config.dataUsageNoticeConfig);case 2:if(P===void 0){K.jumpTo(4);break}_.ND(K,5);var G=W,v=P,a=void 0;u?v===1&&(a=G.displayInfoMap.get(2)):v===2||v===3?a=G.displayInfoMap.get(1):v===1&&(a=G.displayInfoMap.get(3));m=a?a:[];J=Y.consentLanguageKeys;c=_.n(m);C=c.next();case 7:if(C.done)return Y.currentFlow=P,_.q(K,FUB(mFZ(Y,J)),11);x=C.value;return _.q(K,rp1(x,Y.config.dataUsageNoticeConfig.uiAdapter,
Y.config.colorScheme,Y.galLogger),10);case 10:b=K.yieldResult;if(b.statusCode!==1)return Us5(Y.serviceId),Y.currentFlow=0,S(xu({statusCode:b.statusCode,statusMessage:b.statusMessage},Y.callerState)),K.return();b.consentLanguageKeys!==void 0&&(J=b.consentLanguageKeys);C=c.next();K.jumpTo(7);break;case 11:T=K.yieldResult;if(T.statusCode!==10)return T.statusCode!==6&&(Us5(Y.serviceId),Y.currentFlow=0),T.statusCode!==1&&Y.callerState!==void 0&&(T.callerState=Y.callerState),S(T),K.return();_.tc(K,6);break;
case 5:_.O4(K);case 6:P=Z_u(Y.currentFlow,Y.supportedFlows);u=!0;K.jumpTo(2);break;case 4:Us5(Y.serviceId),Y.currentFlow=0,S(xu({statusCode:12,statusMessage:"Linking failed"},Y.callerState)),_.Yt(K)}})})},ky_=function(Y,S,P){Y.currentFlow=S;
return sz5(mFZ(Y,P)).then(function(u){return u.statusCode===10&&Y.config.interactionMode===1&&Z_u(Y.currentFlow,Y.supportedFlows)!==void 0?naB(Y):u})},mFZ=function(Y,S){return{flowParams:{serviceId:Y.serviceId,
sessionId:Y.sessionId,galService:Y.galService,galLogger:Y.galLogger,interactionMode:Y.config.interactionMode,redirectServiceUrl:Y.config.redirectServiceUrl,colorScheme:Y.config.colorScheme,consentLanguageKeys:S,dynamicUrlParameters:Y.dynamicUrlParameters,showCloseOption:Y.config.showCloseOption,partnerConfigMinReadTimestamp:Y.partnerConfigMinReadTimestamp},currentFlow:Y.currentFlow,config:Y.config,session:Y.JSC$17042_linkingSession,googleScopes:Y.googleScopes,callerState:Y.callerState}};var Wu6=function(Y,S){this.config=Y;this.galService=S.getService();this.JSC$17055_galRepository=S.JSC$17092_galRepository};
Wu6.prototype.getLink=function(Y,S){return jfd(this,Y,S)};
var jfd=function(Y,S,P){return Y.JSC$17055_galRepository.getLink({serviceId:S,scopes:void 0,capabilities:void 0,linkName:P}).then(function(u){return{statusCode:1,link:u}}).catch(function(u){return{statusCode:N6d(u.code),
statusMessage:u.message}})};
Wu6.prototype.deleteLink=function(Y,S){return this.JSC$17055_galRepository.deleteLink(Y,this.config.accountLinkingEntryPoint,S).then(function(){return{statusCode:1}}).catch(function(P){return{statusCode:N6d(P.code),
statusMessage:P.message}})};
Wu6.prototype.startLinkingSession=function(Y){var S=Y.serviceId;var P=Y.sessionId;return tuI({serviceId:S,sessionId:P!==void 0?P:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:Y.loginHint,callerState:Y.callerState,consentLanguageKeys:Y.consentLanguageKeys,linkName:Y.linkName,dynamicUrlParameters:Y.dynamicUrlParameters,partnerConfigMinReadTimestamp:Y.partnerConfigMinReadTimestamp})};var H__=null,YEB=new WeakMap;var JhZ=function(){};
JhZ.prototype.send=function(Y,S){uDo(Y);return this.makeRequest(Y).then(function(P){if(S){var u=new S;if(P!=null){if(S==null)throw Error("$j");new S;throw Error("bk");}P=u}return P})};var BHY=function(Y,S,P,u,W){this.gapiUrl=Y;this.gapiKey=S;this.gapiConfigUpdates=P||{};this.gapiAuthParams=u||{};this.defaultApiId=W};
_.r(BHY,JhZ);var CJj=function(Y){return e_d().then(function(S){S=S||window.gapi;chj(Y,S);return Pgo(S,{apiKey:Y.gapiKey,clientId:Y.gapiAuthParams.clientId,scope:Y.gapiAuthParams.scope,hostedDomain:Y.gapiAuthParams.hostedDomain,fetchBasicProfile:Y.gapiAuthParams.fetchBasicProfile}).then(function(){return S})})};
BHY.prototype.makeRequest=function(Y){var S=this;return CJj(this).then(function(P){return _.B(function(u){if(u.nextAddress==1)return S.gapiAuthParams.minAuthTokenTimeRemaining===void 0?u.jumpTo(2):_.q(u,SEd(P,S.gapiAuthParams.minAuthTokenTimeRemaining),2);chj(S,P);return u.return(qs_(P.client.request({root:S.gapiUrl,path:Y.path,method:Y.httpMethod,body:Y.body,params:Y.queryParams,headers:Y.headers,authType:Y.authType,apiId:Y.apiId||S.defaultApiId})))})})};
var qs_=function(Y){return new Promise(function(S,P){Y.then(function(u){S(u.result===!1&&u.body!=null?{data:u.body}:u.result)},function(u){P(u.result===!1&&u.body!=null?{data:u.body}:u.result)})})},chj=function(Y,S){for(var P in Y.gapiConfigUpdates)if(Y.gapiConfigUpdates.hasOwnProperty(P)){var u=S,W=P,m=Y.gapiConfigUpdates[P],J=u.config.get(W);
m!==J&&u.config.update(W,m)}};
BHY.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var XH=function(Y,S,P,u,W,m,J,c){this.apiKey=S;this.authUser=P;this.oauthToken=u;this.bucket=W;this.locale=J;this.galSdkEventHandler=c;if(u===void 0){if(S===void 0)throw Error("ck");this.requestService=new BHY(Y,S,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":m===void 0||m===!1,"client/xd3":m===!0})}this.galServiceClient=new gIc(Y)};
XH.prototype.deleteLink=function(Y){var S=Y.serviceId;var P=Y.sessionId;var u=Y.accountLinkingEntryPoint;var W=Y.linkName;var m=this,J;return _.B(function(c){var C=(new E5).setHeader(Zn(m,P));var x=R6o({serviceId:S,linkName:W});C=_.N8(C,2,x);J=_.dV(C,3,u);return c.return(m.makeRequest(m.galServiceClient.deleteLink,J,[1,3],[2,4]))})};
var yqI=function(Y,S){var P=S.serviceId;var u=S.sessionId;var W=S.dynamicUrlParameters;var m=S.redirectState;var J=S.consentLanguageKeys;var c=S.partnerConfigMinReadTimestamp;var C;return _.B(function(x){var b=(new gN).setHeader(Zn(Y,u,W));b=_.Vi(b,2,P);C=_.Vi(b,4,m);J!==void 0&&_.Vi(C,5,J);c!==void 0&&_.N8(C,6,c);return x.return(Y.makeRequest(Y.galServiceClient.JSC$16941_finishOAuth,C,[1,3],[2,4]))})};
XH.prototype.getLink=function(Y){var S=Y.serviceId;var P=Y.sessionId;var u=Y.scopes;var W=Y.capabilities;var m=Y.consistencyKey;var J=Y.linkName;var c=this,C;return _.B(function(x){var b=(new $V).setHeader(Zn(c,P)),T=R6o({serviceId:S,scopes:u,capabilities:W,linkName:J});C=_.N8(b,2,T);m!==void 0&&(b=Dw_(),b=_.Vi(b,2,m),_.N8(C,3,b));return x.return(c.makeRequest(c.galServiceClient.getLink,C,[1,3],[2,4]))})};
var dsB=function(Y,S){var P=S.serviceId;var u=S.sessionId;var W=S.googleScopes;var m=S.consistencyKey;var J;return _.B(function(c){var C=(new fH).setHeader(Zn(Y,u));C=_.Vi(C,2,P);var x=Array.from(W.values());C=_.JY(C,3,x,_.L1);x=Dw_();x=_.Vi(x,2,m);J=_.N8(C,4,x);return c.return(Y.makeRequest(Y.galServiceClient.JSC$16941_depositGoogleCredential,J,[1,3],[2,4]))})};
XH.prototype.startLinkingSession=function(Y){var S=Y.serviceId;var P=Y.sessionId;var u=Y.scopes;var W=Y.capabilities;var m=Y.loginHint;var J=Y.supportedFlows;var c=Y.completionUrl;var C=Y.usePingPong;var x=Y.twoWayLinking;var b=Y.accountLinkingEntryPoint;var T=Y.callerState;var K=Y.consentLanguageKeys;var G=Y.googleScopes;var v=Y.dataUsageNoticeConfig;var a=Y.linkName;var w=Y.dynamicUrlParameters;var F=Y.partnerConfigMinReadTimestamp;var U=this,V,M;return _.B(function(zJ){if(W!==void 0&&u!==void 0)throw Error("Vj");
var O=(new rN).setHeader(Zn(U,P,w));V=_.Vi(O,2,S);a!==void 0&&_.Vi(V,14,a);if(W!==void 0){O=V;var ca=Array.from(W.values());_.JY(O,5,ca,_.L1)}else u!==void 0&&(O=V,ca=Array.from(u.values()),_.JY(O,3,ca,_.L1));c!==void 0&&_.Vi(V,6,c);C!==void 0&&_.Ik(V,15,C);J!==void 0&&(O=V,ca=Array.from(J.values()),_.JY(O,4,ca,_.Jj));if(x!==void 0){if(x&&(!G||G.size===0))throw Error("dk");_.Ik(V,8,x)}b!==void 0&&_.dV(V,9,b);m!==void 0&&_.Vi(V,13,m);T!==void 0&&(O=V,ca=(new TextEncoder).encode(T),_.Bd(O,12,_.s6(ca,
!1),_.pu()));K!==void 0&&_.Vi(V,16,K);F!==void 0&&_.N8(V,18,F);if(v!==void 0&&v.size>0||G!==void 0&&G.size>0)M=new MiI,G!==void 0&&G.size>0&&(O=M,ca=Array.from(G.values()),_.JY(O,1,ca,_.L1)),v!==void 0&&(v.has(0)&&_.zXE(M,2,_.Jj,1,_.B6),v.has(1)&&_.zXE(M,2,_.Jj,2,_.B6)),_.N8(V,17,M);return zJ.return(U.makeRequest(U.galServiceClient.startLinkingSession,V,[1],[2]))})};
XH.prototype.getMetadata=function(){var Y=this,S,P,u;return _.B(function(W){if(W.nextAddress==1)return S={},Y.requestService?_.q(W,CJj(Y.requestService),3):(S.Authorization="Bearer "+Y.oauthToken,W.jumpTo(2));W.nextAddress!=2&&(P=W.yieldResult,S["X-Goog-Api-Key"]=Y.apiKey,S["X-Goog-AuthUser"]=Y.authUser!==void 0?Y.authUser.toString():"0",(u=P.auth.getAuthHeaderValueForFirstParty([]))&&(S.Authorization=u));Y.locale&&(S["accept-language"]=Y.locale);return W.return(S)})};
XH.prototype.makeRequest=function(Y,S,P,u){var W=this,m;return _.B(function(J){if(J.nextAddress==1)return _.q(J,W.getMetadata(),2);m=J.yieldResult;xFo(W,P);return J.return(Y.bind(W.galServiceClient)(S,m).finally(function(){xFo(W,u)}))})};
var xFo=function(Y,S){Y.galSdkEventHandler!==void 0&&S.forEach(function(P){Y.galSdkEventHandler.onEvent(P)})},Zn=function(Y,S,P){var u=new bh;
S=_.Bd(u,2,_.qI(S),0);S=_.dV(S,5,3);P=_.JY(S,8,P,_.L1);Y.bucket!==void 0&&_.Vi(P,1,Y.bucket);return P},R6o=function(Y){var S=Y.serviceId;
var P=Y.scopes;var u=Y.capabilities;Y=Y.linkName;if(u!==void 0&&P!==void 0)throw Error("Vj");var W=new hiZ;S=_.Vi(W,1,S);u!==void 0?(P=Array.from(u.values()),_.JY(S,5,P,_.L1)):P!==void 0&&(P=Array.from(P.values()),_.JY(S,3,P,_.L1));Y!==void 0&&_.Vi(S,6,Y);return S};var zTB=function(Y){this.galService=new XH(Y.alsDomain,Y.apiKey,Y.authUser,Y.oauthToken,Y.bucket,Y.clientXd3,Y.locale,Y.galSdkEventHandler);this.JSC$17092_galRepository=new Z2d(this.galService)};
zTB.prototype.getService=function(){return this.galService};var b66=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(b66,_.Gc);var THI=function(Y){var S=new b66;return _.uX(S,1,Y)};
b66.prototype.setErrorMessage=function(Y){return _.zH(this,2,Y)};var KFZ=[0,_.Ni,_.kn,_.Ni];var ih=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(ih,_.Gc);var Ea1=[0,[1,2,3],_.yL,[0,pFj,dG1,-1],_.yL,[0,seI,-1],_.b9Y];var f_o=[0,_.UM,1,_.Ni,_.kn,-1,1,_.Evh,_.Av,_.Ni,-1,Ea1];var gac=[0,_.Ni,[0,_.Evh,_.Av,[0,_.kn]],_.QL,[0,_.Ni,-1]];var SJ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(SJ,_.Gc);var $Fc=[0,_.kn,_.Ni,-2,_.UM,_.Ni,_.UM,_.Ni,-2,1,_.QL];var rhX=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(rhX,_.Gc);var GtI=[0,_.UM];var h6o=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(h6o,_.Gc);var vac=[0,_.Ni,gac,GtI,$Fc,f_o];var lVd=_.AY(h6o,vac);var DFo=[0,$E1];var AKZ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(AKZ,_.Gc);var I_d=[0,[1,3],tCY,_.Ni,tCY];var OF=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(OF,_.Gc);var a_B=[0,_.Ni];var LFI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(LFI,_.Gc);var YV=function(Y){return _.F0(Y,b66,2,ez)},wBo=function(Y){var S=new LFI;
return _.Hd(S,2,ez,Y)},ez=[1,
2];var pBo=[0,ez,_.yL,a_B,_.yL,KFZ,_.Mi,I_d,1,_.Ni,DFo];var FFI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(FFI,_.Gc);var dFB=function(Y){var S=new FFI;return _.Hd(S,3,sfc,Y)},sfc=[2,
3];var on=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(on,_.Gc);var l_6=function(Y,S){return _.N8(Y,2,S)},XBd=function(Y,S){return _.N8(Y,8,S)},Z6B=function(Y,S){return _.N8(Y,3,S)};var i6Y=[0,_.Ni,pBo,vac,_.hLt,[0,[5,6],[0,_.Ni,-2],[0,_.UM,_.Ni,_.kn],[0,Ea1],[0,_.kn,_.Ni,-1,_.Gcs],_.yL,[0,[0,_.UM],_.Ni,-1],_.yL,[0,[3,4],_.Ni,-1,_.yL,[0,[0,_.Ni,_.QL]],_.yL,[0,[0,[0,[1,2],_.yL,[0],_.yL,[0]]]]]],_.hLt,-1,[0,sfc,_.Ni,_.yL,a_B,_.yL,KFZ,_.Mi,I_d,[0,$E1]]];var oa1=_.AY(on,i6Y),tb6=_.Qy(i6Y);var AhB=function(){_.R6.call(this)};
_.r(AhB,_.R6);AhB.prototype.init=function(){};
new AhB;var UFY=_.Q0(["data-"]),QfI=_.Q0(["aria-"]),kt_=_.Q0(["aria-"]),tG=function(Y,S){this.isLatencyMeasurementExperiment=Y===void 0?!1:Y;this.enableDialogA11yFix=S===void 0?!1:S;this.JSC$17121_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.pt_(_.Pa.location.href)},ZVj=function(Y,S){Y.onConsentPrimitiveShownCallback=S},Mb_=function(Y,S){return Y.overriddenIframeLoadTimeout?Y.overriddenIframeLoadTimeout:S!==void 0?S:5E3},o9B=function(Y){if(Y.prewarmPromise!==void 0)return Y.prewarmPromise;
Y.prewarmPromise=new Promise(function(S,P){AG(Y,1);yhj(Y,NHu(Y,!0),H61(Y));Y.iframe?Y.prewarmChannel||VbY(Y,Y.iframe,S):P(Error("ek"))});
Y.prewarmPromise.finally(function(){Y.prewarmPromise=void 0});
return Y.prewarmPromise};
tG.prototype.showPrimitive=function(){var Y=this;if(this.consentPromise!==void 0)return this.consentPromise;var S=Date.now();e6I(this,S);this.consentPromise=new Promise(function(P,u){AG(Y,0,S);var W=Y.isDarkTheme();Y.isLatencyMeasurementExperiment||Y.initialLoadingStrategy===1||Y.initialLoadingStrategy===2||(Y.loadingBar||(Y.loadingBar=JJI(getComputedStyle(document.body).direction==="rtl",W),Y.loadingBar.style.position="fixed",Y.loadingBar.style.zIndex="15000"),document.body.appendChild(Y.loadingBar));
yhj(Y,NHu(Y),H61(Y));Y.iframe?Y.channel||O6o(Y,Y.iframe,P,u):(Y$u(Y),u(Error("ek")))});
this.consentPromise.finally(function(){Y.consentPromise=void 0});
return this.consentPromise};
var O6o=function(Y,S,P,u){var W,m;_.B(function(J){switch(J.nextAddress){case 1:AG(Y,3);W=!1;setTimeout(function(){if(!W){Y$u(Y);S$Y(Y);P1o(Y);var c=THI(7).setErrorMessage("Timeout connecting to iframe");P(XBd(l_6(new on,wBo(c)),dFB(c)))}},Mb_(Y,ujo(Y)));
if(!Y.prewarmPromise){J.jumpTo(2);break}_.ND(J,3);return _.q(J,Y.prewarmPromise,5);case 5:_.tc(J,2);break;case 3:_.O4(J),m=THI(4).setErrorMessage("Error while prewarming."),P(XBd(l_6(new on,wBo(m)),dFB(m)));case 2:Y.prewarmChannel&&Y.prewarmChannel.send(tb6(Z6B(new on,Y.consentPrimitiveRequest))),Y.channel=_.e5({destination:Y.JSC$17121_win,iframe:S,origin:WwI(Y),channelName:"cpw",onEstablished:function(){W=!0;Y$u(Y);Y.isLatencyMeasurementExperiment||(Y.JSC$17121_previousBodyOverflow=document.body.style.overflow,
Y.JSC$17121_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,Y.JSC$17121_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",Y.enableDialogA11yFix&&window.addEventListener("blur",Y.focusChangeListener));var c=Y.iframe;c.style.bottom="0";c.style.position="fixed";c.style.right="0";c.style.border="none";c.style.left="0";c.style.top=
"0";c.style.zIndex="5000";c.style.pointerEvents="";c.style.visibility="";Y.initialLoadingStrategy===2||Y.initialLoadingStrategy===3?AG(Y,4):AG(Y,6);var C;(C=Y.onConsentPrimitiveShownCallback)==null||C.call(Y)},
onMessage:function(c){c=oa1(c.data);switch(_.Lj(c,1)){case 1:S$Y(Y);var C=BuB(_.P_(c,_.Z_,7));C&&(Y.initialLoadingStrategy!==2&&Y.initialLoadingStrategy!==3||AG(Y,6,C),AG(Y,5,C));if(C=BuB(_.P_(c,_.Z_,6)))AG(Y,7,C),AG(Y,8);var x,b;((x=_.P_(c,LFI,2))==null?void 0:_.$n(x,ez))!==0&&((b=_.P_(c,FFI,8))==null?void 0:_.$n(b,sfc))!==0||u(Error("fk"));P(c);break;case 2:P1o(Y)}}}),_.Yt(J)}})},VbY=function(Y,S,P){Y.prewarmChannel=_.e5({destination:Y.JSC$17121_win,
iframe:S,origin:WwI(Y),channelName:"pwcp",onEstablished:function(){AG(Y,2);P()}})},WwI=function(Y){var S=_.S2(Y.src).toString();
return S&&S.indexOf("://")<0&&S.indexOf("//")!==0?Y.origin:_.pt_(S)},NHu=function(Y,S){S=S===void 0?!1:S;
var P,u=new Map([["origin",Y.origin],["hl",(P=zN1(Y))!=null?P:null]]);S&&u.set("pw","1");S=_.n([["cpr",Y.consentPrimitiveRequest.serialize()]]);for(P=S.next();!P.done;P=S.next()){var W=_.n(P.value);P=W.next().value;W=W.next().value;u.set(P,W)}Y.isDarkTheme()&&u.set("color_scheme","dark");return _.Mg(Y.src,u)},Y$u=function(Y){Y.isLatencyMeasurementExperiment||Y.loadingBar&&document.body.removeChild(Y.loadingBar)};
tG.prototype.getSrc=function(){var Y=_.eX(this.origin),S;var P=(S=_.P_(this.consentPrimitiveRequest,rhX,3))==null?void 0:_.kg(S,1);S="consent.google.com";P=P?"/u/"+encodeURIComponent(P.toString()):"";(Y==null?0:Y.endsWith("youtube.com"))?S="consent.youtube.com":(Y=Y==null?void 0:Y.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(S="consent.google."+((Y[1]?"co.":"")+encodeURIComponent(Y[2])));return _.YU("https://"+S+"/signedin"+P+"/landing")};
var yhj=function(Y,S,P){Y.iframe||(Y.iframe=document.createElement("iframe"),Y.iframe.style.width="100%",Y.iframe.style.height="100%",P!==112496729&&(Y.iframe.style.colorScheme="auto"),Y.isLatencyMeasurementExperiment&&(Y.iframe.style.display="none"),_.fh(Y.iframe,S),Y.iframe.setAttribute("jsname","C5o1O"),m2I(Y.iframe),document.body.appendChild(Y.iframe))},m2I=function(Y){Y.style.bottom="-200vh";
Y.style.position="fixed";Y.style.right="-200vw";Y.style.border="";Y.style.left="";Y.style.top="";Y.style.zIndex="";Y.style.pointerEvents="none";Y.style.visibility="hidden"},S$Y=function(Y){Y.iframe&&(Y.isLatencyMeasurementExperiment||(Y.JSC$17121_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=Y.JSC$17121_previousHtmlOverscroll),Y.JSC$17121_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=Y.JSC$17121_previousBodyOverscroll),Y.JSC$17121_previousBodyOverflow!==
void 0&&(document.body.style.overflow=Y.JSC$17121_previousBodyOverflow),Y.enableDialogA11yFix&&nXu(Y,!1)),m2I(Y.iframe))};
tG.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(nXu(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var nXu=function(Y,S){var P,u,W=(P=Y.iframe)==null?void 0:(u=P.parentElement)==null?void 0:u.children;if(W)for(P=0;P<W.length;P++)u=W[P],u!==Y.iframe&&(S?(u.hasAttribute("aria-hidden")&&_.Lh([_.Ua(UFY)],u,"data-old-aria-hidden",u.getAttribute("aria-hidden")),_.Lh([_.Ua(QfI)],u,"aria-hidden","true")):(u.removeAttribute("aria-hidden"),u.hasAttribute("data-old-aria-hidden")&&(_.Lh([_.Ua(kt_)],u,"aria-hidden",u.getAttribute("data-old-aria-hidden")),u.removeAttribute("data-old-aria-hidden"))))},AG=function(Y,
S,P){var u;
(u=Y.latencyCallback)==null||u.call(Y,{latencyType:S,timestampEpochMillis:P!=null?P:Date.now()})};var jBj=function(Y,S,P){tG.call(this,S,P===void 0?!1:P);this.consentPrimitiveRequest=Y;Y=zN1(this);if(!(0,_.KSf)(Y))throw Error("H``"+String(Y));this.src=this.getSrc();var u;this.initialLoadingStrategy=(u=_.P_(this.consentPrimitiveRequest,SJ,4))==null?void 0:_.Lj(u,4)},Jku;
_.r(jBj,tG);var Xqc=function(Y){var S=_.f("enable_primitive_dialog_aria_hide_siblings");Y={request:Y,enableDialogA11yFix:S===void 0?!1:S};Jku||(Jku=new jBj(Y.request,Y.isLatencyMeasurementExperiment||_.Lj(Y.request,1)===2,Y.enableDialogA11yFix));return Jku},zN1=function(Y){var S;
return(S=_.P_(Y.consentPrimitiveRequest,SJ,4))==null?void 0:_.aJ(S,1)},e6I=function(Y,S){if(!_.bW(Y.consentPrimitiveRequest,ih,5)){var P=Y.consentPrimitiveRequest,u=new ih;
_.N8(P,5,u)}var W;if((W=_.P_(Y.consentPrimitiveRequest,ih,5))==null||_.hv(W,8)==null){var m;(m=_.P_(Y.consentPrimitiveRequest,ih,5))!=null&&_.r6(m,8,S)}},H61=function(Y){var S;
return(S=_.P_(Y.consentPrimitiveRequest,ih,5))==null?void 0:_.kg(S,1)};
jBj.prototype.isDarkTheme=function(){var Y;return((Y=_.P_(this.consentPrimitiveRequest,SJ,4))==null?void 0:_.Lj(Y,2))===2};
var ujo=function(Y){var S;return((S=_.P_(Y.consentPrimitiveRequest,SJ,4))==null?void 0:_.kg(S,5))||void 0},P1o=function(Y){Y.channel=void 0;
Y.prewarmChannel=void 0;Y.iframe&&(document.body.contains(Y.iframe)&&document.body.removeChild(Y.iframe),Y.iframe=void 0);Jku=void 0},tVX=function(Y){return tG.prototype.showPrimitive.call(Y).then(function(S){return _.P_(S,LFI,2)})};for(var U5={},Bx_=(U5[64]="ma",U5[73]="ogb",U5[89]="cr",U5[21]="test",U5[0]="unkn",U5[137]="con",U5[155]="hl",U5[78]="yt",U5[171]="lp",U5[172]="ap",U5[177]="amo",U5[178]="pqe",U5[74]="gg",U5[1]="gm",U5[140]="am",U5),ckB=_.n(Object.keys(Bx_)),C16=ckB.next();!C16.done;C16=ckB.next());var q$c=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(q$c,_.Gc);var RN1=[0,[2,3,4],_.Ni,F41,tCY,_.b9Y];var x2d=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(x2d,_.Gc);var ba5=_.AY(x2d,[0,oJ_,_.kn,_.Ni,_.kn,_.Ni,RN1]);var Tx1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(Tx1,_.Gc);Tx1.prototype.getCommand=function(){return _.Lj(this,1)};
var Kwd=function(){var Y=new Tx1;return _.dV(Y,1,0)};var EXY=_.Qy([0,oJ_,_.kn,[0,_.Ni,_.kn,-1]]);var fd1=new _.cy("s"),gX_=new _.cy("t"),$2j=new _.cy("u"),rkB=new _.cy("v"),GUI=function(Y,S,P){_.Cl.call(this,fd1);this.mediaKey=Y;this.photoUrl=S;this.photoSource=P};
_.r(GUI,_.Cl);var hN1=function(){_.Cl.call(this,gX_)};
_.r(hN1,_.Cl);var vXB=function(Y){Y=Y===void 0?!1:Y;_.Cl.call(this,$2j);this.isError=Y};
_.r(vXB,_.Cl);var D26=function(){_.Cl.call(this,rkB)};
_.r(D26,_.Cl);var Idc=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,psZ=function(Y){if(typeof Y=="string"){if(Y.charAt(0)==".")return adI(Y.substr(1));if(Y.charAt(0)=="["){var S=Idc.exec(Y);Y=Y.indexOf("=")==-1?void 0:S[3];return Lw6(S[1],Y)}return wsj(Y)}return Y},adI=function(Y){return function(S){return S.getAttribute&&_.X$(S,Y)}},Lw6=function(Y,S){return function(P){return S!==void 0?P.getAttribute&&P.getAttribute(Y)==S:P.hasAttribute&&P.hasAttribute(Y)}},wsj=function(Y){Y=Y.toUpperCase();
return function(S){return(S=S.tagName)&&S.toUpperCase()==Y}},Fw_=function(){return!0};var Qu=function(Y,S){this.JSC$17149_key_=Y;this.JSC$17149_value_=S},kV=function(Y){throw Error("gk`"+Y.JSC$17149_key_);
},sBo=function(Y,S){return new TypeError("hk`"+S+"`"+Y.JSC$17149_key_+"`"+Y.JSC$17149_value_+"`"+typeof Y.JSC$17149_value_)};
Qu.prototype.string=function(Y){if(arguments.length==0)var S=d2Y(this);else{var P;S=(P=ld1(this))!=null?P:Y}return S};
var d2Y=function(Y){var S=ld1(Y);S===null&&kV(Y);return S},ld1=function(Y){var S=Y.JSC$17149_value_;
if(S==null)return null;if(typeof S==="string")return S;throw sBo(Y,"string");};
Qu.prototype.bool=function(Y){if(arguments.length==0){var S=this.optionalBool();S===null&&kV(this)}else{var P;S=(P=this.optionalBool())!=null?P:Y}return S};
Qu.prototype.optionalBool=function(){var Y=this.JSC$17149_value_;if(Y==null)return null;if(typeof Y==="boolean")return Y;if(typeof Y==="string"){Y=Y.toLowerCase();if(Y==="true"||Y==="1")return!0;if(Y==="false"||Y==="0")return!1}throw sBo(this,"boolean");};
Qu.prototype.number=function(Y){if(arguments.length==0){var S=XsI(this);S===null&&kV(this)}else{var P;S=(P=XsI(this))!=null?P:Y}return S};
var XsI=function(Y){var S=Y.JSC$17149_value_;if(S==null)return null;if(typeof S==="number")return S;if(typeof S==="string"){var P=Number(S);if(!isNaN(P)&&(P!==0||S.trim().length!==0))return P}throw sBo(Y,"number");};
Qu.prototype.toString=function(){return d2Y(this)};
Qu.prototype.array=function(Y){if(arguments.length==0){var S=ZaZ(this);S===null&&kV(this);return S}S=ZaZ(this);return S==null?Y:S};
var ZaZ=function(Y){var S=Y.JSC$17149_value_;if(S==null)return null;Array.isArray(S)||(typeof S!=="string"?S=[S]:(S=S.trim(),S=S==""?[]:S.split(",").map(function(P){return P.trim()})));
return iaZ(Y,S)},iaZ=function(Y,S){var P=Y.JSC$17149_key_+"[";
return Array.from(S,function(u,W){return new Qu(P+W+"]",u)})};
Qu.prototype.object=function(Y){var S=this.JSC$17149_value_;if(S==null)return Y===void 0&&kV(this),Y;if(typeof S==="object"&&S.constructor===Object){Y={};var P=this.JSC$17149_key_+".",u;for(u in S)Y[u]=new Qu(P+u,S[u]);return Y}throw sBo(this,"object");};var Mt=function(Y){this.list_=oXY(Y)},oXY=function(Y){if(Y instanceof Mt)Y=Y.list_;
else if(Y[0]instanceof Mt){for(var S=new Set,P=0;P<Y.length;P++)for(var u=_.n(Y[P].list_),W=u.next();!W.done;W=u.next())S.add(W.value);Y=S}return[].concat(_.cz(Y))};
_.z=Mt.prototype;_.z.each=function(Y,S,P){((P===void 0?0:P)?KG1:_.Q4)(this.list_,Y,S);return this};
_.z.size=function(){return this.list_.length};
_.z.isEmpty=function(){return this.list_.length===0};
_.z.get=function(Y){return this.list_[Y]||null};
_.z.el=function(){return this.list_[0]||null};
_.z.map=function(Y,S){return _.b9(this.list_,Y,S)};
_.z.equals=function(Y){return this===Y||_.Wt(this.list_,Y.list_)};
_.z.first=function(){return this.list_.length==0?null:new yu(this.list_[0])};
_.z.find=function(Y){var S=[];this.each(function(P){P=P.querySelectorAll(String(Y));for(var u=0;u<P.length;u++)S.push(P[u])});
return new Mt(S)};
_.z.parent=function(){var Y=[];this.each(function(S){(S=S.parentElement||null)&&!_.Au(Y,S)&&Y.push(S)});
return new Mt(Y)};
_.z.children=function(){var Y=[];this.each(function(S){S=_.sg(S);for(var P=0;P<S.length;P++)Y.push(S[P])});
return new Mt(Y)};
_.z.filter=function(Y){Y=_.ze(this.list_,psZ(Y));return new Mt(Y)};
_.z.closest=function(Y){var S=[],P=psZ(Y),u=function(W){return _.Vn(W)&&P(W)};
this.each(function(W){(W=_.rh(W,u,!0))&&!_.Au(S,W)&&S.push(W)});
return new Mt(S)};
_.z.next=function(Y){return tNB(this,_.F5m,Y)};
_.z.prev=function(Y){return tNB(this,QeI,Y)};
var tNB=function(Y,S,P){var u=[];var W=P?psZ(P):Fw_;Y.each(function(m){(m=S(m))&&W(m)&&u.push(m)});
return new Mt(u)};
Mt.prototype.setClass=function(Y){return this.each(function(S){_.lG(S,Y)})};
var AkX=function(Y,S){return Y.each(function(P){_.i2(P,S)})},U2I=function(Y,S){return Y.each(function(P){_.X5(P,S)})};
Mt.prototype.toggleClass=function(Y,S){return S===!0?AkX(this,Y):S===!1?U2I(this,Y):this.each(function(P){_.X$(P,Y)?_.X5(P,Y):_.i2(P,Y)})};
Mt.prototype.setText=function(Y){return this.each(function(S){_.dI(S,Y)})};
var QBZ=function(Y){Y.each(function(S){S.removeAttribute("aria-hidden")})};
Mt.prototype.getStyle=function(Y){if(this.list_.length>0){var S=this.list_[0],P=S.style[_.T5(Y)];return typeof P!=="undefined"?P:S.style[_.NZm(S,Y)]||""}};
Mt.prototype.getData=function(Y){if(this.list_.length===0)return new Qu(Y,null);var S=G_Z(this.list_[0],Y);return new Qu(Y,S)};
Mt.prototype.focus=function(Y){try{Y?this.el().focus(Y):this.el().focus()}catch(S){}return this};
Mt.prototype.click=function(){var Y=_.Ey(this.el());if(Y.createEvent){var S=Y.createEvent("MouseEvents");S.initMouseEvent("click",!0,!0,Y.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(S)}else Y=Y.createEventObject(),Y.clientX=0,Y.clientY=0,Y.screenX=0,Y.screenY=0,Y.altKey=!1,Y.ctrlKey=!1,Y.shiftKey=!1,Y.button=0,this.el().fireEvent("onclick",Y)};
var Nt=function(Y,S,P,u){function W(c,C,x){var b=C;C&&C.parentNode&&(b=C.cloneNode(!0));c(b,x)}
u=u===void 0?!1:u;if(Y.list_.length==1){var m=Y.list_[0],J=function(c){return S(c,m)};
P instanceof Mt?P.each(J,void 0,u):Array.isArray(P)?(u?KG1:_.Q4)(P,J):J(P);return Y}return Y.each(function(c){P instanceof Mt?P.each(function(C){W(S,C,c)}):Array.isArray(P)?_.Q4(P,function(C){W(S,C,c)}):W(S,P,c)})};
_.z=Mt.prototype;_.z.append=function(Y){return Nt(this,function(S,P){S&&P.appendChild(S)},Y)};
_.z.appendTo=function(Y){(new Mt([Y])).append(this);return this};
_.z.remove=function(){return Nt(this,function(Y,S){_.jL(S)},null)};
_.z.empty=function(){return Nt(this,function(Y,S){_.wI(S)},null)};
_.z.after=function(Y,S){return Nt(this,function(P,u){P&&_.Fs(P,u)},Y,!(S===void 0||S))};
_.z.before=function(Y){return Nt(this,function(S,P){S&&_.pX(S,P)},Y)};
_.z.replaceWith=function(Y){return Nt(this,function(S,P){S&&_.L5h(S,P)},Y)};
_.z.toggle=function(Y){return this.each(function(S){_.Zb(S,Y)})};
_.z.show=function(){return this.toggle(!0)};
_.z.hide=function(){return this.toggle(!1)};
_.z.trigger=function(Y,S,P,u){return kUj(this,Y,S,P,u)};
var kUj=function(Y,S,P,u,W){return Y.each(function(m){_.EZX(_.Ey(m)).triggerWizEventInternal(m,S,P,u,W)})},yu=function(Y,S){Y instanceof Mt&&(S=Y.list_,Y=null);
this.list_=oXY(Y!=null?[Y]:S)};
_.PW(yu,Mt);_.z=yu.prototype;_.z.children=function(){return new Mt(Array.prototype.slice.call(_.sg(this.list_[0])))};
_.z.each=function(Y,S){Y.call(S,this.list_[0],0);return this};
_.z.size=function(){return 1};
_.z.el=function(){return this.list_[0]};
_.z.first=function(){return this};var HV=function(Y,S){S=S===void 0?window:S;this.hostId=Y;this.JSC$17160_win=S;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$17160_previousHtmlOverscroll=this.JSC$17160_previousBodyOverscroll=this.JSC$17160_previousBodyOverflow="";this.eventTarget=new _.Tj;this.JSC$17160_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
Nxo=function(Y){var S=MNI(MNI(MNI(new ykZ(78),"po"),"hppp"),"hhc");
S.authUser=Number(_.X3("SESSION_INDEX","0"));S.colorScheme=Y;return S};
HV.prototype.getOrigin=function(){return this.origin?this.origin:_.Hy(_.N4(_.yK(new _.Nq,this.JSC$17160_win.location.protocol),this.JSC$17160_win.location.hostname),this.JSC$17160_win.location.port).toString()};
HV.prototype.getTargetOrigin=function(){return _.Hy(_.N4(_.yK(new _.Nq,this.scheme),this.domain),this.port)};
HV.prototype.preloadIframe=function(Y){var S=this;if(this.iframeLoadPromise===void 0){var P=document.createElement("iframe");this.iframe=P;TuI(P,Y);this.iframeLoadPromise=new Promise(function(u,W){var m=!1,J=function(c){c.stopPropagation();P.removeEventListener("error",J);P.removeEventListener("securitypolicyviolation",J);W(Error("ik",{cause:c}))};
P.addEventListener("error",J);P.addEventListener("securitypolicyviolation",J);setTimeout(function(){m||W(Error("jk"))},3E4);
Hao(S,P,function(){m=!0;P.removeEventListener("error",J);P.removeEventListener("securitypolicyviolation",J);u()})});
VN6(this);Y=this.getTargetOrigin().toString();P.setAttribute("allow","camera "+Y+"; display-capture "+Y);this.parentElement.appendChild(P)}return this.iframeLoadPromise};
var YMo=function(Y,S){var P,u;return _.B(function(W){if(W.nextAddress==1)return P=JJI(getComputedStyle(Y.parentElement).direction==="rtl"),Y.parentElement.appendChild(P),document.activeElement instanceof HTMLElement&&(Y.elementToFocusAfterClose=document.activeElement),_.ND(W,2),_.q(W,Y.preloadIframe(S),4);if(W.nextAddress!=2){Y.parentElement.removeChild(P);Y.JSC$17160_previousBodyOverflow=Y.parentElement.style.overflow;Y.JSC$17160_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
Y.JSC$17160_previousBodyOverscroll=Y.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";Y.parentElement.style.overscrollBehavior="contain";Y.parentElement.style.overflow="hidden";var m=Y.iframe;m.style.bottom="0";m.style.border="none";m.style.height="100%";m.style.left="0";m.style.position=Y.iframePosition;m.style.right="0";m.style.top="0";m.style.width="100%";m.style.zIndex="2202";m.setAttribute("aria-hidden","false");m.setAttribute("aria-modal","true");
Y.opened=!0;eN1(Y);return _.tc(W,0)}u=_.O4(W);Y.parentElement.removeChild(P);RTY(Y.isDarkTheme());Oa1(Y,!1);throw Error("kk",{cause:u});})},Oa1=function(Y,S){S=S===void 0?!0:S;
Y.iframe!==void 0&&(SM5(Y),document.documentElement.style.overscrollBehavior=Y.JSC$17160_previousHtmlOverscroll,Y.parentElement.style.overscrollBehavior=Y.JSC$17160_previousBodyOverscroll,Y.parentElement.style.overflow=Y.JSC$17160_previousBodyOverflow,Y.elementToFocusAfterClose!==void 0&&(Y.elementToFocusAfterClose.focus(),Y.elementToFocusAfterClose=void 0),S?VN6(Y):(Y.parentElement.removeChild(Y.iframe),Y.iframe=void 0,Y.iframeLoadPromise=void 0,Y.mainChannel=void 0),Y.opened=!1)},SM5=function(Y){Y.backgroundElementsAriaHiddenIsNull&&
(QBZ(Y.backgroundElementsAriaHiddenIsNull),Y.backgroundElementsAriaHiddenIsNull=void 0);
Y.backgroundElementsAriaHiddenIsFalse&&(Y.backgroundElementsAriaHiddenIsFalse.each(function(S){S.setAttribute("aria-hidden","false")}),Y.backgroundElementsAriaHiddenIsFalse=void 0);
Y.backgroundElementsWithoutInert&&(Y.backgroundElementsWithoutInert.each(function(S){S.removeAttribute("inert")}),Y.backgroundElementsWithoutInert=void 0)},eN1=function(Y){Y.backgroundElementsAriaHiddenIsNull=(new yu(Y.iframe.parentElement)).children().filter(function(S){return S.getAttribute("aria-hidden")===null&&S!==Y.iframe});
Y.backgroundElementsAriaHiddenIsNull.each(function(S){S.setAttribute("aria-hidden","true")});
Y.backgroundElementsAriaHiddenIsFalse=(new yu(Y.iframe.parentElement)).children().filter(function(S){return S.getAttribute("aria-hidden")==="false"&&S!==Y.iframe});
Y.backgroundElementsAriaHiddenIsFalse.each(function(S){S.setAttribute("aria-hidden","true")});
Y.backgroundElementsWithoutInert=(new yu(Y.iframe.parentElement)).children().filter(function(S){return!S.hasAttribute("inert")&&S!==Y.iframe});
Y.backgroundElementsWithoutInert.each(function(S){S.setAttribute("inert","true")})},VN6=function(Y){Y=Y.iframe;
Y.style.bottom="-1000px";Y.style.position="fixed";Y.style.right="-1000px";Y.style.border="";Y.style.height="";Y.style.left="";Y.style.top="";Y.style.width="";Y.style.zIndex="";Y.setAttribute("aria-hidden","true");Y.setAttribute("aria-modal","false")};
HV.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var ykZ=function(Y,S){HV.call(this,Bx_[Y],S);this.options=[];this.style=""};
_.r(ykZ,HV);var PWI=function(Y){Y.style="youtube";return Y},u01=function(Y,S){Y.eventTarget.listen($2j,S);
return Y},WXY=function(Y,S){Y.eventTarget.listen(fd1,S);
return Y},MNI=function(Y,S){Y.options.push(S);
return Y},zx5=function(Y){var S=[Y.getOrigin()];
Y.ancestorOrigins&&S.push.apply(S,_.cz(Y.ancestorOrigins));var P=new _.Nq(Y.JSC$17160_win.location.href),u=Y.startUrl?Y.startUrl:Y.options.includes("po")?"profile-picture/art":"profile-picture";S=PV(_.VK(Y.getTargetOrigin(),u),"origin",S);Y.startUrl&&_.XI(S,"startPath",Y.startUrl);Y.authUser>0&&_.XI(S,"authuser",Y.authUser);Y.pageId!==void 0&&_.XI(S,"pageId",Y.pageId);_.XI(S,"hostId",Y.hostId);Y.jsMode!==void 0&&_.XI(S,"jsmode",Y.jsMode);Y.options.length>0&&_.XI(S,"opts",Y.options.join(","));try{for(var W=
_.n(["utm_source","utm_medium","utm_campaign","utm_content"]),m=W.next();!m.done;m=W.next()){var J=m.value;_.lV(P,J)&&_.XI(S,J,_.lV(P,J))}var c,C=(c=Y.hl)!=null?c:_.lV(P,"hl");C!==void 0&&_.XI(S,"hl",C)}catch(x){if(!(x instanceof URIError))throw x;}Y.colorScheme&&_.XI(S,"theme",Y.colorScheme);Y.style&&_.XI(S,"style",Y.style);return S},miI=function(Y,S){Y.mainChannel=_.e5({destination:Y.JSC$17160_win,
iframe:S,origin:Y.getTargetOrigin().toString(),channelName:"ow",onMessage:function(P){P=ba5(P.data);if(S===Y.iframe)switch(_.Lj(P,1)){case 1:Y.eventTarget.dispatchEvent(new vXB);Oa1(Y);break;case 2:Y.eventTarget.dispatchEvent(new GUI(_.aJ(P,4),_.aJ(P,2),_.Lj(P,5),_.P_(P,q$c,6)));break;case 0:var u;Y.eventTarget.dispatchEvent(new hN1(_.aJ(P,2),(u=_.Lj(P,3))!=null?u:0));break;case 3:Y.eventTarget.dispatchEvent(new vXB(!0));Oa1(Y,!1);break;case 4:Y.eventTarget.dispatchEvent(new D26)}}})},Hao=function(Y,
S,P){_.e5({destination:Y.JSC$17160_win,
iframe:S,origin:_.Hy(_.N4(_.yK(new _.Nq,Y.scheme),Y.domain),Y.port).toString(),channelName:"owi",onMessage:function(u){S===Y.iframe&&(P!==void 0&&P(),miI(Y,S),Y.opened&&Y.mainChannel.send(EXY(Kwd())),u.reply(),Hao(Y,S))}})};
ykZ.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?HV.prototype.preloadIframe.call(this,zx5(this).toString()):this.iframeLoadPromise};
ykZ.prototype.openPicker=function(Y){var S=this;return _.B(function(P){if(P.nextAddress==1)return S.startUrl=Y?Y:S.options.includes("po")?"profile-picture/art":"profile-picture",_.q(P,YMo(S,zx5(S).toString()),2);if(S.mainChannel){var u=S.mainChannel,W=u.send;var m=Kwd();m=_.zH(m,2,S.startUrl);W.call(u,EXY(m))}_.Yt(P)})};var nnI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(nnI,_.Gc);_.z=nnI.prototype;_.z.getSize=function(){return BV(this,1)};
_.z.setSize=function(Y){return _.sM(this,1,Y)};
_.z.getWidth=function(){return BV(this,12)};
_.z.getHeight=function(){return BV(this,13)};
_.z.setCenterCrop=function(Y){return _.Hk(this,20,Y)};
_.z.getHtml=function(){return _.vW(this,4)};
_.z.getToken=function(){return _.mo(this,24)};
_.z.setToken=function(Y){return _.zH(this,24,Y)};
_.z.getBackgroundColor=function(){return BV(this,87)};
_.z.hasBackgroundColor=function(){return _.T1(_.xn(this,87))!=null};
_.z.getStoryboardLevel=function(){return BV(this,109)};var Vu=function(Y){this.JSC$17168_value_=void 0;this.childNodes_={};if(Y){var S=_.UZs(Y);Y=_.M4(Y);for(var P=0;P<S.length;P++)this.set(S[P],Y[P])}};
Vu.prototype.set=function(Y,S){jJ6(this,Y,S,!1)};
Vu.prototype.add=function(Y,S){jJ6(this,Y,S,!0)};
var jJ6=function(Y,S,P,u){for(var W=0;W<S.length;W++){var m=S.charAt(W);Y.childNodes_[m]||(Y.childNodes_[m]=new Vu);Y=Y.childNodes_[m]}if(u&&Y.JSC$17168_value_!==void 0)throw Error("lk`"+S);Y.JSC$17168_value_=P},Jv6=function(Y,S){for(var P=0;P<S.length;P++)if(Y=Y.childNodes_[S.charAt(P)],!Y)return;
return Y};
Vu.prototype.get=function(Y){return(Y=Jv6(this,Y))?Y.JSC$17168_value_:void 0};
Vu.prototype.getValues=function(){var Y=[];BV_(this,Y);return Y};
var BV_=function(Y,S){Y.JSC$17168_value_!==void 0&&S.push(Y.JSC$17168_value_);for(var P in Y.childNodes_)BV_(Y.childNodes_[P],S)};
Vu.prototype.getKeys=function(Y){var S=[];if(Y){for(var P=this,u=0;u<Y.length;u++){var W=Y.charAt(u);if(!P.childNodes_[W])return[];P=P.childNodes_[W]}cvY(P,Y,S)}else cvY(this,"",S);return S};
var cvY=function(Y,S,P){Y.JSC$17168_value_!==void 0&&P.push(S);for(var u in Y.childNodes_)cvY(Y.childNodes_[u],S+u,P)};
_.z=Vu.prototype;_.z.containsKey=function(Y){return this.get(Y)!==void 0};
_.z.containsValue=function(Y){if(this.JSC$17168_value_===Y)return!0;for(var S in this.childNodes_)if(this.childNodes_[S].containsValue(Y))return!0;return!1};
_.z.clear=function(){this.childNodes_={};this.JSC$17168_value_=void 0};
_.z.remove=function(Y){for(var S=this,P=[],u=0;u<Y.length;u++){var W=Y.charAt(u);if(!S.childNodes_[W])throw Error("mk`"+Y);P.push([S,W]);S=S.childNodes_[W]}Y=S.JSC$17168_value_;for(delete S.JSC$17168_value_;P.length>0;)if(u=P.pop(),S=u[0],u=u[1],S.childNodes_[u].isEmpty())delete S.childNodes_[u];else break;return Y};
_.z.clone=function(){return new Vu(this)};
_.z.getCount=function(){return yLI(this.getValues())};
_.z.isEmpty=function(){return this.JSC$17168_value_===void 0&&_.RY.isEmpty(this.childNodes_)};var $zc=function(){if(!CWj){var Y=CWj=new Vu,S;for(S in qMX)Y.add(S,qMX[S])}},CWj,eJ=function(Y,S){this.types=Y;
this.setters=S},qMX={a:new eJ([3,
0],[function(Y,S){_.Hk(Y,21,S)},
function(Y,S){_.sM(Y,56,S)}]),
al:new eJ([3],[function(Y,S){_.Hk(Y,74,S)}]),
b:new eJ([3,0],[function(Y,S){_.Hk(Y,23,S)},
function(Y,S){_.sM(Y,38,S)}]),
ba:new eJ([0],[function(Y,S){_.sM(Y,85,S)}]),
bc:new eJ([0],[function(Y,S){_.sM(Y,87,S)}]),
br:new eJ([0],[function(Y,S){_.sM(Y,86,S)}]),
c:new eJ([3,0],[function(Y,S){_.Hk(Y,2,S)},
function(Y,S){_.sM(Y,39,S)}]),
cc:new eJ([3],[function(Y,S){_.Hk(Y,51,S)}]),
ci:new eJ([3],[function(Y,S){_.Hk(Y,32,S)}]),
ckm:new eJ([3],[function(Y,S){_.Hk(Y,104,S)}]),
cp:new eJ([0],[function(Y,S){_.sM(Y,92,S)}]),
cr:new eJ([3],[function(Y,S){_.Hk(Y,108,S)}]),
cv:new eJ([0],[function(Y,S){_.sM(Y,94,S)}]),
d:new eJ([3],[function(Y,S){_.Hk(Y,3,S)}]),
dc:new eJ([5],[function(Y,S){_.zH(Y,99,S)}]),
df:new eJ([3],[function(Y,S){_.Hk(Y,80,S)}]),
dv:new eJ([3],[function(Y,S){_.Hk(Y,90,S)}]),
e:new eJ([0],[function(Y,S){_.sM(Y,15,S)}]),
em:new eJ([0],[function(Y,S){_.sM(Y,107,S)}]),
f:new eJ([4],[function(Y,S){_.zH(Y,16,S)}]),
fg:new eJ([3],[function(Y,S){_.Hk(Y,34,S)}]),
fh:new eJ([3],[function(Y,S){_.Hk(Y,30,S)}]),
fm:new eJ([3],[function(Y,S){_.Hk(Y,84,S)}]),
fo:new eJ([2],[function(Y,S){_.mV(Y,79,_.S_(S))}]),
ft:new eJ([3],[function(Y,S){_.Hk(Y,50,S)}]),
fv:new eJ([3],[function(Y,S){_.Hk(Y,31,S)}]),
g:new eJ([3],[function(Y,S){_.Hk(Y,14,S)}]),
gce:new eJ([4],[function(Y,S){_.zH(Y,112,S)}]),
gd:new eJ([3],[function(Y,S){_.Hk(Y,83,S)}]),
gm:new eJ([3],[function(Y,S){_.Hk(Y,105,S)}]),
h:new eJ([3,0],[function(Y,S){_.Hk(Y,4,S)},
function(Y,S){_.sM(Y,13,S)}]),
i:new eJ([3],[function(Y,S){_.Hk(Y,22,S)}]),
ic:new eJ([0],[function(Y,S){_.sM(Y,71,S)}]),
id:new eJ([3],[function(Y,S){_.Hk(Y,70,S)}]),
il:new eJ([3],[function(Y,S){_.Hk(Y,96,S)}]),
ip:new eJ([3],[function(Y,S){_.Hk(Y,54,S)}]),
iv:new eJ([0],[function(Y,S){_.r6(Y,75,S)}]),
j:new eJ([1],[function(Y,S){S=S==null?S:g2B(S);_.mV(Y,29,S)}]),
k:new eJ([3,0],[function(Y,S){_.Hk(Y,17,S)},
function(Y,S){_.sM(Y,42,S)}]),
l:new eJ([0],[function(Y,S){_.sM(Y,44,S)}]),
lf:new eJ([3],[function(Y,S){_.Hk(Y,65,S)}]),
lo:new eJ([3],[function(Y,S){_.Hk(Y,97,S)}]),
m:new eJ([0],[function(Y,S){_.sM(Y,63,S)}]),
md:new eJ([3],[function(Y,S){_.Hk(Y,91,S)}]),
mm:new eJ([4],[function(Y,S){_.zH(Y,81,S)}]),
mo:new eJ([3],[function(Y,S){_.Hk(Y,73,S)}]),
mv:new eJ([3],[function(Y,S){_.Hk(Y,66,S)}]),
n:new eJ([3],[function(Y,S){Y.setCenterCrop(S)}]),
nc:new eJ([3],[function(Y,S){_.Hk(Y,55,S)}]),
nd:new eJ([3],[function(Y,S){_.Hk(Y,53,S)}]),
ng:new eJ([3],[function(Y,S){_.Hk(Y,95,S)}]),
ngm:new eJ([3],[function(Y,S){_.Hk(Y,106,S)}]),
no:new eJ([3],[function(Y,S){_.Hk(Y,37,S)}]),
ns:new eJ([3],[function(Y,S){_.Hk(Y,40,S)}]),
nt0:new eJ([4],[function(Y,S){_.zH(Y,36,S)}]),
ntm:new eJ([3],[function(Y,S){_.Hk(Y,114,S)}]),
nu:new eJ([3],[function(Y,S){_.Hk(Y,46,S)}]),
nw:new eJ([3],[function(Y,S){_.Hk(Y,48,S)}]),
o:new eJ([1,3],[function(Y,S){S=S==null?S:g2B(S);_.mV(Y,7,S)},
function(Y,S){_.Hk(Y,27,S)}]),
p:new eJ([3,0],[function(Y,S){_.Hk(Y,19,S)},
function(Y,S){_.sM(Y,43,S)}]),
pa:new eJ([3],[function(Y,S){_.Hk(Y,61,S)}]),
pc:new eJ([0],[function(Y,S){_.sM(Y,88,S)}]),
pd:new eJ([3],[function(Y,S){_.Hk(Y,60,S)}]),
pf:new eJ([3],[function(Y,S){_.Hk(Y,67,S)}]),
pg:new eJ([3],[function(Y,S){_.Hk(Y,72,S)}]),
pi:new eJ([2],[function(Y,S){_.mV(Y,76,_.S_(S))}]),
pp:new eJ([3],[function(Y,S){_.Hk(Y,52,S)}]),
pt:new eJ([4],[function(Y,S){_.zH(Y,111,S)}]),
q:new eJ([4],[function(Y,S){_.zH(Y,28,S)}]),
r:new eJ([3,0],[function(Y,S){_.Hk(Y,6,S)},
function(Y,S){_.sM(Y,26,S)}]),
ra:new eJ([3],[function(Y,S){_.Hk(Y,103,S)}]),
rf:new eJ([3],[function(Y,S){_.Hk(Y,100,S)}]),
rg:new eJ([3],[function(Y,S){_.Hk(Y,59,S)}]),
rh:new eJ([3],[function(Y,S){_.Hk(Y,49,S)}]),
rj:new eJ([3],[function(Y,S){_.Hk(Y,57,S)}]),
ro:new eJ([2],[function(Y,S){_.mV(Y,78,_.S_(S))}]),
rp:new eJ([3],[function(Y,S){_.Hk(Y,58,S)}]),
rw:new eJ([3],[function(Y,S){_.Hk(Y,35,S)}]),
rwa:new eJ([3],[function(Y,S){_.Hk(Y,64,S)}]),
rwu:new eJ([3],[function(Y,S){_.Hk(Y,41,S)}]),
s:new eJ([3,0],[function(Y,S){_.Hk(Y,33,S)},
function(Y,S){Y.setSize(S)}]),
sb:new eJ([0],[function(Y,S){_.sM(Y,110,S)}]),
sc:new eJ([0],[function(Y,S){_.sM(Y,89,S)}]),
sg:new eJ([3],[function(Y,S){_.Hk(Y,82,S)}]),
sl:new eJ([0],[function(Y,S){_.sM(Y,109,S)}]),
sm:new eJ([3],[function(Y,S){_.Hk(Y,93,S)}]),
t:new eJ([4],[function(Y,S){Y.setToken(S)}]),
tm:new eJ([3],[function(Y,S){_.Hk(Y,113,S)}]),
u:new eJ([3],[function(Y,S){_.Hk(Y,18,S)}]),
ut:new eJ([3],[function(Y,S){_.Hk(Y,45,S)}]),
v:new eJ([0],[function(Y,S){_.sM(Y,62,S)}]),
vb:new eJ([0],[function(Y,S){_.r6(Y,68,S)}]),
vf:new eJ([4],[function(Y,S){_.zH(Y,102,S)}]),
vl:new eJ([0],[function(Y,S){_.r6(Y,69,S)}]),
vm:new eJ([3],[function(Y,S){_.Hk(Y,98,S)}]),
w:new eJ([0],[function(Y,S){_.sM(Y,12,S)}]),
x:new eJ([0],[function(Y,S){_.sM(Y,9,S)}]),
y:new eJ([0],[function(Y,S){_.sM(Y,10,S)}]),
ya:new eJ([2],[function(Y,S){_.mV(Y,77,_.S_(S))}]),
z:new eJ([0],[function(Y,S){_.sM(Y,11,S)}])};
$zc.prototype.parse=function(Y){var S=new nnI,P=new nnI;if(Y=="")Y=!0;else{Y=Y.split("-");for(var u=!0,W=0;W<Y.length;W++){var m=Y[W];if(m.length==0)u=!1;else{var J=m,c=!1;var C=J;var x=J.charAt(0);x!=x.toLowerCase()&&(c=!0,C=J.charAt(0).toLowerCase()+J.substring(1));var b=CWj;for(x=1;x<=C.length;++x){var T=b,K=C.substring(0,x);if(K.length==0?T.isEmpty():!Jv6(T,K))break}C=x==1?null:(C=b.get(C.substring(0,x-1)))?{option:J.substring(0,x-1),value:J.substring(x-1),signed:c,attributes:C}:null;if(C){J=
[];c=[];x=!1;for(b=0;b<C.attributes.types.length;b++){T=C.attributes.types[b];var G=C.value;K=W;if(C.signed&&T==1)for(var v=G.length;v<12&&K<Y.length-1;)G+="-"+Y[K+1],v=G.length,++K;else if(T==2)for(;K<Y.length-1&&Y[K+1].match(/^[\d\.]/);)G+="-"+Y[K+1],++K;v=C.attributes.setters[b];G=RxB(this,T)(C.option,G,S,P,v);if(G===null){x=!0;W=K;break}else J.push(T),c.push(G)}if(!x)for(C=0;C<c.length;C++)b=J[C],G=c[C],xiX(this,b)(m,G);u=u&&x}else u=!1}}Y=u}return new bjZ(S,P,Y)};
var O5=function(Y,S,P,u,W,m){W(P,S);Y=Y.charAt(0);m=m(Y==Y.toUpperCase());W(u,m)};
_.z=$zc.prototype;_.z.parseAndSetIntOption_=function(Y,S,P,u,W){if(S=="")return 0;isFinite(S)&&(S=String(S));S=typeof S==="string"?/^\s*-?0x/i.test(S)?parseInt(S,16):parseInt(S,10):NaN;if(isNaN(S))return 1;O5(Y,S,P,u,W,Number);return null};
_.z.logIntParseError_=function(){};
_.z.parseAndSetFloatOption_=function(Y,S,P,u,W){if(S=="")return 0;var m=Number(S);S=m==0&&_.Ba(S)?NaN:m;if(isNaN(S))return 1;O5(Y,S,P,u,W,Number);return null};
_.z.logFloatParseError_=function(){};
_.z.parseAndSetBoolOption_=function(Y,S,P,u,W){if(S!="")return 2;O5(Y,!0,P,u,W,Boolean);return null};
_.z.logBoolParseError_=function(){};
_.z.parseAndSetStringOption_=function(Y,S,P,u,W){if(S=="")return 0;O5(Y,S,P,u,W,function(m){return m?"1":""});
return null};
_.z.logStringParseError_=function(){};
_.z.parseAndSetUint64Base64Option_=function(Y,S,P,u,W){if(S=="")return 0;O5(Y,S,P,u,W,function(m){return m?1:0});
return null};
var RxB=function(Y,S){switch(S){case 0:return(0,_.xS)(Y.parseAndSetIntOption_,Y);case 2:return(0,_.xS)(Y.parseAndSetFloatOption_,Y);case 3:return(0,_.xS)(Y.parseAndSetBoolOption_,Y);case 4:return(0,_.xS)(Y.parseAndSetStringOption_,Y);case 1:return(0,_.xS)(Y.parseAndSetUint64Base64Option_,Y);default:return function(){}}},xiX=function(Y,S){switch(S){case 0:return(0,_.xS)(Y.logIntParseError_,Y);
case 2:return(0,_.xS)(Y.logFloatParseError_,Y);case 3:return(0,_.xS)(Y.logBoolParseError_,Y);case 4:case 1:return(0,_.xS)(Y.logStringParseError_,Y);default:return function(){}}},bjZ=function(Y,S,P){this.valueProto_=Y;
this.signatureFlagProto_=S;this.JSC$17180_valid_=P};
bjZ.prototype.isValid=function(){return this.JSC$17180_valid_};var KuB=function(Y){this.JSC$17181_parser_=null;this.JSC$17181_components_=[];this.JSC$17181_parsedOptions_=null;TVY(this,Y)},KX6=function(Y){Y.JSC$17181_parser_==null&&(Y.JSC$17181_parser_=new $zc);
return Y.JSC$17181_parser_},TVY=function(Y,S){Y.JSC$17181_parsedOptions_=S?typeof S==="string"?KX6(Y).parse(S):S:KX6(Y).parse("")},Yr=function(Y,S){return Y==S?!1:!0};
_.z=KuB.prototype;_.z.JSC$17183_setCrop=function(Y){Y=Y||void 0;var S=this.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(Y,_.vW(P,2),_.vW(S.signatureFlagProto_,2))&&_.Hk(P,2,Y);return this};
_.z.JSC$17183_setCircleCrop=function(Y){Y=Y||void 0;var S=this.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(Y,JG(P,51),JG(S.signatureFlagProto_,51))&&_.Hk(P,51,Y);return this};
_.z.JSC$17183_setImageCrop=function(Y){Y=Y||void 0;var S=this.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(Y,JG(P,32),JG(S.signatureFlagProto_,32))&&_.Hk(P,32,Y);return this};
_.z.JSC$17183_setHeight=function(Y){var S=this.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(Y,P.getHeight(),S.signatureFlagProto_.getHeight())&&_.sM(P,13,Y);return this};
_.z.setCenterCrop=function(Y){Y=Y||void 0;var S=this.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(Y,_.vW(P,20),_.vW(S.signatureFlagProto_,20))&&P.setCenterCrop(Y);return this};
_.z.JSC$17183_setSmartCrop=function(Y){Y=Y||void 0;var S=this.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(Y,_.vW(P,19),_.vW(S.signatureFlagProto_,19))&&_.Hk(P,19,Y);return this};
_.z.JSC$17183_setPad=function(Y){Y=Y||void 0;var S=this.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(Y,JG(P,60),JG(S.signatureFlagProto_,60))&&_.Hk(P,60,Y);return this};
_.z.JSC$17183_setSmartCropUseFace=function(Y){Y=Y||void 0;var S=this.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(Y,_.vW(P,67),_.vW(S.signatureFlagProto_,67))&&_.Hk(P,67,Y);return this};
_.z.JSC$17183_setSmartCropNoClip=function(Y){Y=Y||void 0;var S=this.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(Y,_.vW(P,52),_.vW(S.signatureFlagProto_,52))&&_.Hk(P,52,Y);return this};
_.z.setSize=function(Y){var S=this.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(Y,P.getSize(),S.signatureFlagProto_.getSize())&&P.setSize(Y);return this};
_.z.setToken=function(Y){Y=Y||void 0;var S=this.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(Y,P.getToken(),S.signatureFlagProto_.getToken())&&P.setToken(Y);return this};
_.z.JSC$17183_setWidth=function(Y){var S=this.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(Y,P.getWidth(),S.signatureFlagProto_.getWidth())&&_.sM(P,12,Y);return this};
_.z.clearOptions=function(){TVY(this,"");return this};
_.z.build=function(){this.JSC$17181_components_.length=0;var Y=this.JSC$17181_parsedOptions_,S=Y.valueProto_;Y=Y.signatureFlagProto_;Sw(this,"s",S.getSize(),Y.getSize());Sw(this,"w",S.getWidth(),Y.getWidth());PN(this,"c",_.vW(S,2),_.vW(Y,2));PN(this,"d",_.vW(S,3),_.vW(Y,3));Sw(this,"h",S.getHeight(),Y.getHeight());PN(this,"s",JG(S,33),JG(Y,33));PN(this,"h",S.getHtml(),Y.getHtml());PN(this,"p",_.vW(S,19),_.vW(Y,19));PN(this,"pp",_.vW(S,52),_.vW(Y,52));PN(this,"pf",_.vW(S,67),_.vW(Y,67));PN(this,"n",
_.vW(S,20),_.vW(Y,20));Sw(this,"r",BV(S,26),BV(Y,26));PN(this,"r",_.vW(S,6),_.vW(Y,6));PN(this,"o",JG(S,27),JG(Y,27));var P=wF6(S,7);uQ(this,"o",P,wF6(Y,7));P=wF6(S,29);uQ(this,"j",P,wF6(Y,29));Sw(this,"x",BV(S,9),BV(Y,9));Sw(this,"y",BV(S,10),BV(Y,10));Sw(this,"z",BV(S,11),BV(Y,11));PN(this,"g",_.vW(S,14),_.vW(Y,14));Sw(this,"e",BV(S,15),BV(Y,15));uQ(this,"f",_.mo(S,16),_.mo(Y,16));PN(this,"k",JG(S,17),JG(Y,17));PN(this,"u",JG(S,18),!0);PN(this,"ut",JG(S,45),!0);PN(this,"i",JG(S,22),!0);PN(this,
"a",JG(S,21),JG(Y,21));PN(this,"b",_.vW(S,23),_.vW(Y,23));Sw(this,"b",BV(S,38),BV(Y,38));Sw(this,"c",BV(S,39),BV(Y,39),16,8);uQ(this,"q",_.mo(S,28),_.mo(Y,28));PN(this,"fh",JG(S,30),JG(Y,30));PN(this,"fv",JG(S,31),JG(Y,31));PN(this,"fg",_.vW(S,34),_.vW(Y,34));PN(this,"ci",JG(S,32),JG(Y,32));uQ(this,"t",S.getToken(),Y.getToken());uQ(this,"nt0",_.mo(S,36),_.mo(Y,36));PN(this,"rw",_.vW(S,35),_.vW(Y,35));PN(this,"rwu",_.vW(S,41),_.vW(Y,41));PN(this,"rwa",_.vW(S,64),_.vW(Y,64));PN(this,"nw",_.vW(S,48),
_.vW(Y,48));PN(this,"rh",_.vW(S,49),_.vW(Y,49));PN(this,"no",_.vW(S,37),_.vW(Y,37));PN(this,"ns",JG(S,40),JG(Y,40));Sw(this,"k",BV(S,42),BV(Y,42));Sw(this,"p",BV(S,43),BV(Y,43));Sw(this,"l",BV(S,44),BV(Y,44));Sw(this,"v",BV(S,62),BV(Y,62));PN(this,"nu",JG(S,46),JG(Y,46));PN(this,"ft",JG(S,50),JG(Y,50));PN(this,"cc",JG(S,51),JG(Y,51));PN(this,"nd",JG(S,53),JG(Y,53));PN(this,"ip",JG(S,54),JG(Y,54));PN(this,"nc",JG(S,55),JG(Y,55));Sw(this,"a",BV(S,56),BV(Y,56));PN(this,"rj",JG(S,57),JG(Y,57));PN(this,
"rp",JG(S,58),JG(Y,58));PN(this,"rg",JG(S,59),JG(Y,59));PN(this,"pd",JG(S,60),JG(Y,60));PN(this,"pa",JG(S,61),JG(Y,61));Sw(this,"m",BV(S,63),BV(Y,63));Sw(this,"vb",_.hv(S,68,_.RJ),_.hv(Y,68,_.RJ));Sw(this,"vl",_.hv(S,69,_.RJ),_.hv(Y,69,_.RJ));PN(this,"lf",JG(S,65),JG(Y,65));PN(this,"mv",JG(S,66),JG(Y,66));PN(this,"id",JG(S,70),JG(Y,70));Sw(this,"ic",BV(S,71),!0);PN(this,"pg",_.vW(S,72),_.vW(Y,72));PN(this,"mo",JG(S,73),JG(Y,73));PN(this,"al",JG(S,74),JG(Y,74));Sw(this,"iv",_.hv(S,75,_.RJ),_.hv(Y,
75,_.RJ));Sw(this,"pi",cV(S,76),cV(Y,76));Sw(this,"ya",cV(S,77),cV(Y,77));Sw(this,"ro",cV(S,78),cV(Y,78));Sw(this,"fo",cV(S,79),cV(Y,79));PN(this,"df",JG(S,80),JG(Y,80));uQ(this,"mm",_.mo(S,81),_.mo(Y,81));PN(this,"sg",JG(S,82),JG(Y,82));PN(this,"gd",JG(S,83),JG(Y,83));PN(this,"fm",JG(S,84),JG(Y,84));Sw(this,"ba",BV(S,85),BV(Y,85));Sw(this,"br",BV(S,86),BV(Y,86));Sw(this,"bc",S.getBackgroundColor(),Y.getBackgroundColor(),16,8);Sw(this,"pc",BV(S,88),BV(Y,88),16,8);Sw(this,"sc",BV(S,89),BV(Y,89),16,
8);PN(this,"dv",JG(S,90),JG(Y,90));PN(this,"md",JG(S,91),JG(Y,91));Sw(this,"cp",BV(S,92),BV(Y,92));PN(this,"sm",JG(S,93),JG(Y,93));Sw(this,"cv",BV(S,94),BV(Y,94));PN(this,"ng",JG(S,95),JG(Y,95));PN(this,"il",JG(S,96),JG(Y,96));PN(this,"lo",JG(S,97),JG(Y,97));PN(this,"vm",JG(S,98),JG(Y,98));uQ(this,"dc",_.mo(S,99),_.mo(Y,99));PN(this,"rf",JG(S,100),JG(Y,100));uQ(this,"vf",_.mo(S,102),_.mo(Y,102));PN(this,"ra",_.vW(S,103),_.vW(Y,103));PN(this,"ckm",JG(S,104),JG(Y,104));PN(this,"gm",JG(S,105),JG(Y,105));
PN(this,"ngm",JG(S,106),JG(Y,106));Sw(this,"em",BV(S,107),BV(Y,107));PN(this,"cr",JG(S,108),JG(Y,108));Sw(this,"sl",S.getStoryboardLevel(),Y.getStoryboardLevel());Sw(this,"sb",BV(S,110),BV(Y,110));uQ(this,"pt",_.mo(S,111),_.mo(Y,111));uQ(this,"gce",_.mo(S,112),_.mo(Y,112));PN(this,"tm",JG(S,113),JG(Y,113));PN(this,"ntm",JG(S,114),JG(Y,114));return this.JSC$17181_components_.join("-")};
var Sw=function(Y,S,P,u,W,m){if(P!=null){var J=W==void 0||W!=10&&W!=16?10:W;P=P.toString(J);W=new iz5;W.append(J==16?"0x":"");J=W.append;m==void 0?m="":(m-=P.length,m=m<=0?"":(0,_.yum)("0",m));J.call(W,m);W.append(P);Enc(Y,S,W.toString(),!!u)}},PN=function(Y,S,P,u){P&&Enc(Y,S,"",!!u)},uQ=function(Y,S,P,u){P&&Enc(Y,S,P,!!u)},Enc=function(Y,S,P,u){u&&(S=S.charAt(0).toUpperCase()+S.substring(1));
Y.JSC$17181_components_.push(S+P)};_.PW(EF,KuB);_.z=EF.prototype;_.z.JSC$17183_setCrop=function(Y){Y&&WN(this);return EF.superClass_.JSC$17183_setCrop.call(this,Y)};
_.z.JSC$17183_setHeight=function(Y){Y=Y==null||Y<0?void 0:Y;Y!=null&&this.setSize();return EF.superClass_.JSC$17183_setHeight.call(this,Y)};
_.z.JSC$17183_setImageCrop=function(Y){Y&&WN(this);return EF.superClass_.JSC$17183_setImageCrop.call(this,Y)};
_.z.JSC$17183_setCircleCrop=function(Y){Y&&WN(this);return EF.superClass_.JSC$17183_setCircleCrop.call(this,Y)};
_.z.setSize=function(Y){_.SS(Y)&&(Y=Math.max(Y.width,Y.height));Y=Y==null||Y<0?void 0:Y;Y!=null&&(this.JSC$17183_setWidth(),this.JSC$17183_setHeight());return EF.superClass_.setSize.call(this,Y)};
_.z.JSC$17183_setSmartCrop=function(Y){Y&&WN(this);return EF.superClass_.JSC$17183_setSmartCrop.call(this,Y)};
_.z.JSC$17183_setSmartCropNoClip=function(Y){Y&&WN(this);return EF.superClass_.JSC$17183_setSmartCropNoClip.call(this,Y)};
_.z.JSC$17183_setSmartCropUseFace=function(Y){Y&&WN(this);return EF.superClass_.JSC$17183_setSmartCropUseFace.call(this,Y)};
_.z.setCenterCrop=function(Y){Y&&WN(this);return EF.superClass_.setCenterCrop.call(this,Y)};
_.z.JSC$17183_setPad=function(Y){Y&&WN(this);return EF.superClass_.JSC$17183_setPad.call(this,Y)};
_.z.JSC$17183_setWidth=function(Y){Y=Y==null||Y<0?void 0:Y;Y!=null&&this.setSize();return EF.superClass_.JSC$17183_setWidth.call(this,Y)};
var fpj=function(Y){Y.clearOptions();var S=Y.JSC$17181_parsedOptions_,P=S.valueProto_;Yr(!0,_.vW(P,3),_.vW(S.signatureFlagProto_,3))&&_.Hk(P,3,!0);return Y},WN=function(Y){Y.setCenterCrop();
Y.JSC$17183_setCircleCrop();Y.JSC$17183_setCrop();Y.JSC$17183_setImageCrop();Y.JSC$17183_setPad();Y.JSC$17183_setSmartCrop();Y.JSC$17183_setSmartCropNoClip();Y.JSC$17183_setSmartCropUseFace()};
EF.prototype.build=function(){var Y=this.JSC$17181_parsedOptions_.valueProto_;JG(Y,18)||JG(Y,45)?Y.getSize()||this.setSize(0):(Y=this.JSC$17181_parsedOptions_.valueProto_,Y.getSize()||Y.getWidth()||Y.getHeight()||(this.setSize(),this.JSC$17183_setHeight(),this.JSC$17183_setWidth(),WN(this)));return EF.superClass_.build.call(this)};var gn6=/^[^\/]*\/\//,zu=function(Y,S){S=S===void 0?!1:S;this.original_=Y;this.originalPrefix_="";(Y=this.original_.match(gn6))&&Y[0]?(this.originalPrefix_=Y[0],Y=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):Y="http://"+this.original_;this.uri_=_.d7(Y,!0);this.isFreeformUrl_=S;this.JSC$17187_valid_=!0;this.obfuscated_=!1},$io=function(Y,S){Y.JSC$17189_pathPrefix_=Y.JSC$17189_pathPrefix_?Y.JSC$17189_pathPrefix_+("/"+S):S},md=function(Y){if(Y.JSC$17189_components_==
void 0){var S=Y.uri_.getPath().substring(1);
Y.JSC$17189_pathPrefix_=null;if(Y.isFreeformUrl_){Y.JSC$17189_components_=[];if((S.match(/=/g)||[]).length>1)return Y.JSC$17187_valid_=!1,Y.JSC$17189_components_;var P=S.indexOf("=");P!=-1?(Y.JSC$17189_components_.push(S.substr(0,P)),Y.JSC$17189_components_.push(S.substr(P+1))):Y.JSC$17189_components_.push(S);return Y.JSC$17189_components_}Y.JSC$17189_components_=S.split("/");S=Y.JSC$17189_components_.length;S>2&&Y.JSC$17189_components_[0]=="u"&&($io(Y,Y.JSC$17189_components_[0]+"/"+Y.JSC$17189_components_[1]),
Y.JSC$17189_components_.shift(),Y.JSC$17189_components_.shift(),S-=2);if(S==0||S==4||S>7)return Y.JSC$17187_valid_=!1,Y.JSC$17189_components_;if(S==2)$io(Y,Y.JSC$17189_components_[0]);else if(Y.JSC$17189_components_[0]=="image")$io(Y,Y.JSC$17189_components_[0]);else if(S==7||S==3)return Y.JSC$17187_valid_=!1,Y.JSC$17189_components_;if(S<=3){Y.obfuscated_=!0;S==3&&($io(Y,Y.JSC$17189_components_[1]),Y.JSC$17189_components_.shift(),--S);--S;P=Y.JSC$17189_components_[S];var u=P.indexOf("=");u!=-1&&(Y.JSC$17189_components_[S]=
P.substr(0,u),Y.JSC$17189_components_.push(P.substr(u+1)))}}return Y.JSC$17189_components_};
zu.prototype.isValid=function(){md(this);return this.JSC$17187_valid_};
zu.prototype.isObfuscated=function(){md(this);return this.obfuscated_};
var rvY=function(Y){md(Y);return Y.isFreeformUrl_},nF=function(Y){md(Y);
Y.JSC$17189_pathPrefix_==void 0&&(Y.JSC$17189_pathPrefix_=null);return Y.JSC$17189_pathPrefix_},Gec=function(Y){switch(md(Y).length){case 7:return!0;
case 6:return nF(Y)==null;case 5:return!1;case 3:return!0;case 2:return nF(Y)==null;case 1:return!1;default:return!1}},jw=function(Y,S){if(rvY(Y))a:{switch(S){case 7:S=0;
break;case 4:if(!Gec(Y)){Y=null;break a}S=1;break;default:Y=null;break a}Y=md(Y)[S]}else if(Y.isObfuscated())a:{var P=nF(Y)!=null?1:0;switch(S){case 6:S=P;break;case 4:if(!Gec(Y)){Y=null;break a}S=1+P;break;default:Y=null;break a}Y=md(Y)[S]}else a:{P=nF(Y)!=null?1:0;switch(S){case 0:S=P;break;case 1:S=1+P;break;case 2:S=2+P;break;case 3:S=3+P;break;case 4:if(!Gec(Y)){Y=null;break a}S=4+P;break;case 5:S=Gec(Y)?1:0;S=4+P+S;break;default:Y=null;break a}Y=md(Y)[S]}return Y};
zu.prototype.getOptions=function(){this.options_==void 0&&(this.options_=jw(this,4));return this.options_};var gyI=function(){};
gyI.prototype.parse=function(Y,S){return new Eyc(Y,S===void 0?!1:S)};
var Eyc=function(Y,S){zu.call(this,Y,S===void 0?!1:S)};
_.r(Eyc,zu);_.PW(fn,EF);var fYY;fn.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
fn.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var Y=fn.superClass_.build.call(this),S=[];nF(this.parsedImageUrl_)!=null&&S.push(nF(this.parsedImageUrl_));var P=rvY(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var u=this.parsedImageUrl_;u.obfuscatedData_==void 0&&(u.obfuscatedData_=jw(u,6));S.push(u.obfuscatedData_+(Y?"="+Y:""))}else if(P){u=S.push;var W=this.parsedImageUrl_;W.freeformUrlPath_===void 0&&(W.freeformUrlPath_=jw(W,
7));u.call(S,W.freeformUrlPath_);Y&&S.push(Y)}else u=S.push,W=this.parsedImageUrl_,W.obfuscatedGaiaId_==void 0&&(W.obfuscatedGaiaId_=jw(W,0)),u.call(S,W.obfuscatedGaiaId_),u=S.push,W=this.parsedImageUrl_,W.photoId_==void 0&&(W.photoId_=jw(W,1)),u.call(S,W.photoId_),u=S.push,W=this.parsedImageUrl_,W.imageVersion_==void 0&&(W.imageVersion_=jw(W,2)),u.call(S,W.imageVersion_),u=S.push,W=this.parsedImageUrl_,W.signature_==void 0&&(W.signature_=jw(W,3)),u.call(S,W.signature_),Y&&S.push(Y),Y=S.push,u=this.parsedImageUrl_,
u.filename_==void 0&&(u.filename_=jw(u,5)),Y.call(S,u.filename_);S=P?S.join("="):S.join("/");S=_.d7(this.protocolPrefix_+this.JSC$17195_domain_+"/"+S+(this.JSC$17195_query_?"?"+this.JSC$17195_query_:"")).toString();S.startsWith("%3a//")&&(S=S.replace("%3a//","://"));return S};var hxd=_.Q0(["viewBox"]),vnX=_.Q0(["width"]),TU_=_.Q0(["height"]),KII=_.Q0(["fill"]),EqY=_.Q0(["id"]),fH1=_.Q0(["x"]),gq6=_.Q0(["y"]);rJ1.prototype.getLength=function(){return this.parsedData.length};
rJ1.prototype.write=function(Y){for(var S=0,P=this.parsedData.length;S<P;S++)Y.put(this.parsedData[S],8)};
var LuI=function(Y,S){var P=new rJ1(S);Y.dataList.push(P);P=Y.errorCorrectLevel;var u=1,W=encodeURI(S).toString().replace(/%[0-9a-fA-F]{2}/g,"a");S=W.length+(W.length!=S?3:0);W=0;for(var m=JU.length;W<=m;W++){var J=0;switch(P){case 1:J=JU[W][0];break;case 0:J=JU[W][1];break;case 3:J=JU[W][2];break;case 2:J=JU[W][3]}if(S<=J)break;else u++}if(u>JU.length)throw Error("vk");Y.typeNumber=u;Y.dataCache=null};
G45.prototype.isDark=function(Y,S){if(Y<0||this.moduleCount<=Y||S<0||this.moduleCount<=S)throw Error("nk`"+Y+"`"+S);return this.modules[Y][S]};
for(var we_=function(Y,S,P){Y.moduleCount=Y.typeNumber*4+17;Y.modules=Array(Y.moduleCount);for(var u=0;u<Y.moduleCount;u++){Y.modules[u]=Array(Y.moduleCount);for(var W=0;W<Y.moduleCount;W++)Y.modules[u][W]=null}$dc(Y,0,0);$dc(Y,Y.moduleCount-7,0);$dc(Y,0,Y.moduleCount-7);u=rzd[Y.typeNumber-1];for(W=0;W<u.length;W++)for(var m=0;m<u.length;m++){var J=u[W],c=u[m];if(Y.modules[J][c]==null)for(var C=-2;C<=2;C++)for(var x=-2;x<=2;x++)Y.modules[J+C][c+x]=C==-2||C==2||x==-2||x==2||C==0&&x==0?!0:!1}for(u=
8;u<Y.moduleCount-8;u++)Y.modules[u][6]==null&&(Y.modules[u][6]=u%2==0);for(u=8;u<Y.moduleCount-8;u++)Y.modules[6][u]==null&&(Y.modules[6][u]=u%2==0);u=Y.errorCorrectLevel<<3|P;for(W=u<<10;BN(W)-BN(1335)>=0;)W^=1335<<BN(W)-BN(1335);u=(u<<10|W)^21522;for(W=0;W<15;W++)m=!S&&(u>>W&1)==1,W<6?Y.modules[W][8]=m:W<8?Y.modules[W+1][8]=m:Y.modules[Y.moduleCount-15+W][8]=m;for(W=0;W<15;W++)m=!S&&(u>>W&1)==1,W<8?Y.modules[8][Y.moduleCount-W-1]=m:W<9?Y.modules[8][15-W-1+1]=m:Y.modules[8][15-W-1]=m;Y.modules[Y.moduleCount-
8][8]=!S;if(Y.typeNumber>=7){u=Y.typeNumber;for(W=u<<12;BN(W)-BN(7973)>=0;)W^=7973<<BN(W)-BN(7973);u=u<<12|W;for(W=0;W<18;W++)m=!S&&(u>>W&1)==1,Y.modules[Math.floor(W/3)][W%3+Y.moduleCount-8-3]=m;for(W=0;W<18;W++)m=!S&&(u>>W&1)==1,Y.modules[W%3+Y.moduleCount-8-3][Math.floor(W/3)]=m}if(Y.dataCache==null){W=Y.typeNumber;m=Y.dataList;S=Y.errorCorrectLevel;u=G9d(W,S);if(u==void 0)throw Error("uk`"+W+"`"+S);J=u.length/3;S=[];for(c=0;c<J;c++){C=u[c*3];x=u[c*3+1];for(var b=u[c*3+2],T=0;T<C;T++)S.push(new hT5(x,
b))}u=new vyX;for(J=0;J<m.length;J++)c=m[J],u.put(c.mode,4),u.put(c.getLength(),hO1(c.mode,W)),c.write(u);for(J=W=0;J<S.length;J++)W+=S[J].dataCount;if(u.length>W*8)throw Error("ok`"+u.length+"`"+W*8);for(u.length+4<=W*8&&u.put(0,4);u.length%8!=0;)vq1(u,!1);for(;!(u.length>=W*8);){u.put(236,8);if(u.length>=W*8)break;u.put(17,8)}m=W=x=0;J=Array(S.length);c=Array(S.length);for(C=0;C<S.length;C++){T=S[C].dataCount;var K=S[C].totalCount-T;W=Math.max(W,T);m=Math.max(m,K);J[C]=Array(T);for(b=0;b<J[C].length;b++)J[C][b]=
255&u.buffer[b+x];x+=T;b=K;T=new gS([1],0);for(K=0;K<b;K++)T=T.multiply(new gS([1,Dd5(K)],0));b=T;T=(new gS(J[C],b.getLength()-1)).mod(b);c[C]=Array(b.getLength()-1);for(b=0;b<c[C].length;b++)K=b+T.getLength()-c[C].length,c[C][b]=K>=0?T.get(K):0}for(b=u=0;b<S.length;b++)u+=S[b].totalCount;u=Array(u);for(b=x=0;b<W;b++)for(C=0;C<S.length;C++)b<J[C].length&&(u[x++]=J[C][b]);for(b=0;b<m;b++)for(C=0;C<S.length;C++)b<c[C].length&&(u[x++]=c[C][b]);Y.dataCache=u}S=Y.dataCache;u=-1;W=Y.moduleCount-1;m=7;J=
0;for(c=Y.moduleCount-1;c>0;c-=2)for(c==6&&c--;;){for(C=0;C<2;C++)Y.modules[W][c-C]==null&&(x=!1,J<S.length&&(x=(S[J]>>>m&1)==1),IHj(P,W,c-C)&&(x=!x),Y.modules[W][c-C]=x,m--,m==-1&&(J++,m=7));W+=u;if(W<0||Y.moduleCount<=W){W-=u;u=-u;break}}},$dc=function(Y,S,P){for(var u=-1;u<=7;u++)if(!(S+u<=-1||Y.moduleCount<=S+u))for(var W=-1;W<=7;W++)P+W<=-1||Y.moduleCount<=P+W||(Y.modules[S+u][P+W]=0<=u&&u<=6&&(W==0||W==6)||0<=W&&W<=6&&(u==0||u==6)||2<=u&&u<=4&&2<=W&&W<=4?!0:!1)},pe_=function(Y){for(var S=0,
P=0,u=0;u<8;u++){we_(Y,!0,u);
var W=Y;for(var m=W.moduleCount,J=0,c=0;c<m;c++)for(var C=0;C<m;C++){for(var x=0,b=W.isDark(c,C),T=-1;T<=1;T++)if(!(c+T<0||m<=c+T))for(var K=-1;K<=1;K++)C+K<0||m<=C+K||(T!=0||K!=0)&&b==W.isDark(c+T,C+K)&&x++;x>5&&(J+=3+x-5)}for(c=0;c<m-1;c++)for(C=0;C<m-1;C++)if(x=0,W.isDark(c,C)&&x++,W.isDark(c+1,C)&&x++,W.isDark(c,C+1)&&x++,W.isDark(c+1,C+1)&&x++,x==0||x==4)J+=3;for(c=0;c<m;c++)for(C=0;C<m-6;C++)W.isDark(c,C)&&!W.isDark(c,C+1)&&W.isDark(c,C+2)&&W.isDark(c,C+3)&&W.isDark(c,C+4)&&!W.isDark(c,C+5)&&
W.isDark(c,C+6)&&(J+=40);for(C=0;C<m;C++)for(c=0;c<m-6;c++)W.isDark(c,C)&&!W.isDark(c+1,C)&&W.isDark(c+2,C)&&W.isDark(c+3,C)&&W.isDark(c+4,C)&&!W.isDark(c+5,C)&&W.isDark(c+6,C)&&(J+=40);for(C=x=0;C<m;C++)for(c=0;c<m;c++)W.isDark(c,C)&&x++;W=J+=Math.abs(100*x/m/m-50)/5*10;if(u==0||S>W)S=W,P=u}return P},rzd=[[],
[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]],BN=function(Y){for(var S=0;Y!=0;)S++,Y>>>=1;return S},IHj=function(Y,S,P){switch(Y){case 0:return(S+P)%2==0;
case 1:return S%2==0;case 2:return P%3==0;case 3:return(S+P)%3==0;case 4:return(Math.floor(S/2)+Math.floor(P/3))%2==0;case 5:return S*P%2+S*P%3==0;case 6:return(S*P%2+S*P%3)%2==0;case 7:return(S*P%3+(S+P)%2)%2==0;default:throw Error("pk`"+Y);}},hO1=function(Y,S){if(1<=S&&S<10)switch(Y){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+Y);}else if(S<27)switch(Y){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+Y);}else if(S<41)switch(Y){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+Y);}else throw Error("rk`"+S);},cN=function(Y){if(Y<1)throw Error("sk`"+Y);
return aH_[Y]},Dd5=function(Y){for(;Y<0;)Y+=255;
for(;Y>=256;)Y-=255;return CF[Y]},CF=Array(256),aH_=Array(256),LIu=0;LIu<8;LIu++)CF[LIu]=1<<LIu;
for(var qO=8;qO<256;qO++)CF[qO]=CF[qO-4]^CF[qO-5]^CF[qO-6]^CF[qO-8];for(var wO6=0;wO6<255;wO6++)aH_[CF[wO6]]=wO6;gS.prototype.get=function(Y){return this.num[Y]};
gS.prototype.getLength=function(){return this.num.length};
gS.prototype.multiply=function(Y){for(var S=Array(this.getLength()+Y.getLength()-1),P=0;P<this.getLength();P++)for(var u=0;u<Y.getLength();u++)S[P+u]^=Dd5(cN(this.get(P))+cN(Y.get(u)));return new gS(S,0)};
gS.prototype.mod=function(Y){if(this.getLength()-Y.getLength()<0)return this;for(var S=cN(this.get(0))-cN(Y.get(0)),P=Array(this.getLength()),u=0;u<this.getLength();u++)P[u]=this.get(u);for(u=0;u<Y.getLength();u++)P[u]^=Dd5(cN(Y.get(u))+S);return(new gS(P,0)).mod(Y)};
var pOI=[[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]],G9d=function(Y,S){switch(S){case 1:return pOI[(Y-1)*4];case 0:return pOI[(Y-1)*4+1];case 3:return pOI[(Y-1)*4+2];case 2:return pOI[(Y-1)*4+3]}};
vyX.prototype.get=function(Y){return(this.buffer[Math.floor(Y/8)]>>>7-Y%8&1)==1};
vyX.prototype.put=function(Y,S){for(var P=0;P<S;P++)vq1(this,(Y>>>S-P-1&1)==1)};
var vq1=function(Y,S){var P=Math.floor(Y.length/8);Y.buffer.length<=P&&Y.buffer.push(0);S&&(Y.buffer[P]|=128>>>Y.length%8);Y.length++},JU=[[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]],aYo=function(){var Y=function(S,P){this.JSC$17215__el=S;this.JSC$17215__htOption=P};
Y.prototype.draw=function(S){function P(b,T){b=document.createElementNS("http://www.w3.org/2000/svg",b);for(var K in T)T.hasOwnProperty(K)&&(K==="href"?_.Z7_(b,T[K]):_.Lh([_.Ua(hxd),_.Ua(vnX),_.Ua(TU_),_.Ua(KII),_.Ua(EqY),_.Ua(fH1),_.Ua(gq6)],b,K,T[K]));return b}
var u=this.JSC$17215__htOption,W=this.JSC$17215__el,m=S.moduleCount;this.clear();var J=P("svg",{viewBox:"0 0 "+String(m)+" "+String(m),width:"100%",height:"100%",fill:u.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});W.appendChild(J);J.appendChild(P("rect",{fill:u.colorLight,width:"100%",height:"100%"}));J.appendChild(P("rect",{fill:u.colorDark,width:"1",height:"1",id:"template"}));for(var c=0;c<m;c++)for(var C=0;C<m;C++)if(S.isDark(c,C)){var x=P("use",{x:String(c),y:String(C),href:"#template"});
J.appendChild(x)}};
Y.prototype.clear=function(){for(;this.JSC$17215__el.hasChildNodes();)this.JSC$17215__el.removeChild(this.JSC$17215__el.lastChild)};
return Y}(),IYj=document.documentElement.tagName.toLowerCase()==="svg"?aYo:typeof CanvasRenderingContext2D!="undefined"?function(){var Y=function(S,P){this._bIsPainted=!1;
DzI();this.JSC$17215__htOption=P;this._elCanvas=document.createElement("canvas");this._elCanvas.width=P.width;this._elCanvas.height=P.height;S.appendChild(this._elCanvas);this.JSC$17215__el=S;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$17215__el.appendChild(this._elImage);this._bSupportDataURI=null};
Y.prototype._onMakeImage=function(){var S=this._elCanvas.toDataURL("image/png");this._elImage.src=S;this._elImage.style.display="block";this._elCanvas.style.display="none"};
Y.prototype._safeSetDataURI=function(S,P){var u=this;u._fFail=P;u._fSuccess=S;u._bSupportDataURI===null?(S=_.nN("IMG"),P=function(){u._bSupportDataURI=!1;u._fFail&&u._fFail.call(u)},S.onabort=P,S.onerror=P,S.onload=function(){u._bSupportDataURI=!0;
u._fSuccess&&u._fSuccess.call(u)},S.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):u._bSupportDataURI===!0&&u._fSuccess?u._fSuccess.call(u):u._bSupportDataURI===!1&&u._fFail&&u._fFail.call(u)};
Y.prototype.draw=function(S){var P=this._oContext,u=this.JSC$17215__htOption,W=S.moduleCount,m=u.width/W,J=u.height/W,c=Math.round(m),C=Math.round(J);this._elImage.style.display="none";this.clear();for(var x=0;x<W;x++)for(var b=0;b<W;b++){var T=S.isDark(x,b),K=b*m,G=x*J;P.strokeStyle=T?u.colorDark:u.colorLight;P.lineWidth=1;P.fillStyle=T?u.colorDark:u.colorLight;P.fillRect(K,G,m,J);P.strokeRect(Math.floor(K)+.5,Math.floor(G)+.5,c,C);P.strokeRect(Math.ceil(K)-.5,Math.ceil(G)-.5,c,C)}this._bIsPainted=
!0};
Y.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
Y.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
Y.prototype.round=function(S){return S?Math.floor(S*1E3)/1E3:S};
return Y}():function(){var Y=function(S,P){this.JSC$17215__el=S;
this.JSC$17215__htOption=P};
Y.prototype.draw=function(S){for(var P=this.JSC$17215__htOption,u=this.JSC$17215__el,W=S.moduleCount,m=Math.floor(P.width/W),J=Math.floor(P.height/W),c=['<table style="border:0;border-collapse:collapse;">'],C=0;C<W;C++){c.push("<tr>");for(var x=0;x<W;x++)c.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+m+"px;height:"+J+"px;background-color:"+(S.isDark(C,x)?P.colorDark:P.colorLight)+';"></td>');c.push("</tr>")}c.push("</table>");S=c.join("");S=_.eUS(_.Yd6,S);_.a9(u,S);
S=u.childNodes[0];W=(P.width-S.offsetWidth)/2;m=(P.height-S.offsetHeight)/2;W>0&&m>0&&(S.style.margin=m+"px "+W+"px")};
Y.prototype.clear=function(){this.JSC$17215__el.textContent=""};
return Y}();
FuX.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17218__android||this.JSC$17218__android>=3)&&this._oDrawing.makeImage()};
FuX.prototype.clear=function(){this._oDrawing.clear()};
_.Pa.QRCode=FuX;var FII={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Rw=function(){};
Rw.prototype.stringify=function(Y){return _.Pa.JSON.stringify(Y,void 0)};
Rw.prototype.parse=function(Y){return _.Pa.JSON.parse(Y,void 0)};var s7Z=function(){_.Cl.call(this,"z")};
_.PW(s7Z,_.Cl);var dd5=function(){_.Cl.call(this,"y")};
_.PW(dd5,_.Cl);var lHY=null,XO1=function(){return lHY=lHY||new _.Tj},ZQ1=function(Y){_.Cl.call(this,"serverreachability",Y)};
_.PW(ZQ1,_.Cl);var xr=function(Y){var S=XO1();S.dispatchEvent(new ZQ1(S,Y))},iQc=function(Y){_.Cl.call(this,"statevent",Y)};
_.PW(iQc,_.Cl);var bQ=function(Y){var S=XO1();S.dispatchEvent(new iQc(S,Y))},oqI=function(Y,S,P,u){_.Cl.call(this,"timingevent",Y);
this.size=S;this.rtt=P;this.retries=u};
_.PW(oqI,_.Cl);var tvj=function(Y,S,P){var u=XO1();u.dispatchEvent(new oqI(u,Y,S,P))},Tu=function(Y,S){if(typeof Y!=="function")throw Error("wk");
return _.Pa.setTimeout(function(){Y()},S)};var KF=function(){this.redactEnabled_=!0};
KF.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Az5=function(Y,S,P,u,W,m){Y.info(function(){if(Y.redactEnabled_)if(m){var J="";for(var c=m.split("&"),C=0;C<c.length;C++){var x=c[C].split("=");if(x.length>1){var b=x[0];x=x[1];var T=b.split("_");J=T.length>=2&&T[1]=="type"?J+(b+"="+x+"&"):J+(b+"=redacted&")}}}else J=null;else J=m;return"XMLHTTP REQ ("+u+") [attempt "+W+"]: "+S+"\n"+P+"\n"+J})},Udu=function(Y,S,P,u,W,m,J){Y.info(function(){return"XMLHTTP RESP ("+u+") [ attempt "+W+"]: "+S+"\n"+P+"\n"+m+" "+J})},E3=function(Y,S,P,u){Y.info(function(){return"XMLHTTP TEXT ("+
S+"): "+Q7c(Y,P)+(u?" "+u:"")})},k9j=function(Y,S){Y.info(function(){return"TIMEOUT: "+S})};
KF.prototype.debug=function(){};
KF.prototype.info=function(){};
KF.prototype.warning=function(){};
var Q7c=function(Y,S){if(!Y.redactEnabled_)return S;if(!S)return null;try{var P=JSON.parse(S);if(P)for(var u=0;u<P.length;u++)if(Array.isArray(P[u])){var W=P[u];if(!(W.length<2)){var m=W[1];if(Array.isArray(m)&&!(m.length<1)){var J=m[0];if(J!="noop"&&J!="stop"&&J!="close")for(var c=1;c<m.length;c++)m[c]=""}}}return(0,_.Gj)(P)}catch(C){return Y.debug("Exception parsing expected JS array - probably was not JS"),S}};var fF=function(Y,S,P,u,W){this.JSC$17240_channel_=Y;this.JSC$17240_channelDebug_=S;this.sid_=P;this.JSC$17240_rid_=u;this.JSC$17240_retryId_=W||1;this.JSC$17240_eventHandler_=new _.u6(this);this.timeout_=45E3;this.JSC$17240_extraHeaders_=null;this.JSC$17240_successful_=!1;this.JSC$17240_postData_=this.JSC$17240_requestUri_=this.JSC$17240_baseUri_=this.JSC$17240_type_=this.JSC$17240_requestStartTime_=this.JSC$17240_watchDogTimeoutTime_=this.JSC$17240_watchDogTimerId_=null;this.JSC$17240_pendingMessages_=
[];this.JSC$17240_xmlHttp_=null;this.JSC$17240_xmlHttpChunkStart_=0;this.JSC$17240_lastError_=this.JSC$17240_verb_=null;this.JSC$17240_lastStatusCode_=-1;this.JSC$17240_cancelled_=!1;this.JSC$17240_readyStateChangeThrottleMs_=0;this.JSC$17240_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Mv5},Mv5=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},yz1=function(Y,S){switch(Y){case 0:return"Non-200 return code ("+S+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},NU_={},HQd={};
fF.prototype.setTimeout=function(Y){this.timeout_=Y};
var eOZ=function(Y,S,P){Y.JSC$17240_type_=1;Y.JSC$17240_baseUri_=_.ui(S.clone());Y.JSC$17240_postData_=P;Y.decodeChunks_=!0;Vv1(Y,null)},Vv1=function(Y,S){Y.JSC$17240_requestStartTime_=Date.now();
OQu(Y);Y.JSC$17240_requestUri_=Y.JSC$17240_baseUri_.clone();PV(Y.JSC$17240_requestUri_,"t",Y.JSC$17240_retryId_);Y.JSC$17240_xmlHttpChunkStart_=0;var P=Y.JSC$17240_channel_.JSC$17259_supportsCrossDomainXhrs_;Y.fetchResponseState_=new Mv5;Y.JSC$17240_xmlHttp_=Ybc(Y.JSC$17240_channel_,P?S:null,!Y.JSC$17240_postData_);Y.JSC$17240_readyStateChangeThrottleMs_>0&&(Y.JSC$17240_readyStateChangeThrottle_=new _.NE((0,_.xS)(Y.JSC$17244_xmlHttpHandler_,Y,Y.JSC$17240_xmlHttp_),Y.JSC$17240_readyStateChangeThrottleMs_));
Y.JSC$17240_eventHandler_.listen(Y.JSC$17240_xmlHttp_,"readystatechange",Y.JSC$17244_readyStateChangeHandler_);S=Y.JSC$17240_extraHeaders_?_.RY.clone(Y.JSC$17240_extraHeaders_):{};Y.JSC$17240_postData_?(Y.JSC$17240_verb_||(Y.JSC$17240_verb_="POST"),S["Content-Type"]="application/x-www-form-urlencoded",Y.JSC$17240_xmlHttp_.send(Y.JSC$17240_requestUri_,Y.JSC$17240_verb_,Y.JSC$17240_postData_,S)):(Y.JSC$17240_verb_="GET",Y.JSC$17240_xmlHttp_.send(Y.JSC$17240_requestUri_,Y.JSC$17240_verb_,null,S));xr(1);
Az5(Y.JSC$17240_channelDebug_,Y.JSC$17240_verb_,Y.JSC$17240_requestUri_,Y.JSC$17240_rid_,Y.JSC$17240_retryId_,Y.JSC$17240_postData_)};
fF.prototype.JSC$17244_readyStateChangeHandler_=function(Y){Y=Y.target;var S=this.JSC$17240_readyStateChangeThrottle_;S&&_.vy(Y)==3?(this.JSC$17240_channelDebug_.debug("Throttling readystatechange."),S.fire()):this.JSC$17244_xmlHttpHandler_(Y)};
fF.prototype.JSC$17244_xmlHttpHandler_=function(Y){try{Y==this.JSC$17240_xmlHttp_?SbI(this):this.JSC$17240_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(S){this.JSC$17240_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),PTo(this)}finally{}};
var SbI=function(Y){var S=_.vy(Y.JSC$17240_xmlHttp_),P=Y.JSC$17240_xmlHttp_.JSC$7668_lastErrorCode_,u=Y.JSC$17240_xmlHttp_.getStatus();if(!(S<3||S==3&&!PTo(Y))){Y.JSC$17240_cancelled_||S!=4||P==7||(P==8||u<=0?xr(3):xr(2));uPZ(Y);var W=Y.JSC$17240_xmlHttp_.getStatus();Y.JSC$17240_lastStatusCode_=W;P=WQI(Y);PTo(Y)||Y.JSC$17240_channelDebug_.debug(function(){return"No response text for uri "+Y.JSC$17240_requestUri_+" status "+W});
Y.JSC$17240_successful_=W==200;Udu(Y.JSC$17240_channelDebug_,Y.JSC$17240_verb_,Y.JSC$17240_requestUri_,Y.JSC$17240_rid_,Y.JSC$17240_retryId_,S,W);if(Y.JSC$17240_successful_){if(Y.decodeInitialResponse_&&!Y.initialResponseDecoded_)if(u=zuo(Y))E3(Y.JSC$17240_channelDebug_,Y.JSC$17240_rid_,u,"Initial handshake response via X-HTTP-Initial-Response"),Y.initialResponseDecoded_=!0,mKX(Y,u);else{Y.JSC$17240_successful_=!1;Y.JSC$17240_lastError_=3;bQ(12);Y.JSC$17240_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
Y.JSC$17240_rid_+")");g_(Y);$r(Y);return}Y.decodeChunks_?nNc(Y,S,P):(E3(Y.JSC$17240_channelDebug_,Y.JSC$17240_rid_,P,null),mKX(Y,P));S==4&&g_(Y);Y.JSC$17240_successful_&&!Y.JSC$17240_cancelled_&&(S==4?jx5(Y.JSC$17240_channel_,Y):(Y.JSC$17240_successful_=!1,OQu(Y)))}else zn1(Y.JSC$17240_xmlHttp_),W==400&&P.indexOf("Unknown SID")>0?(Y.JSC$17240_lastError_=3,bQ(12),Y.JSC$17240_channelDebug_.warning("XMLHTTP Unknown SID ("+Y.JSC$17240_rid_+")")):(Y.JSC$17240_lastError_=0,bQ(13),Y.JSC$17240_channelDebug_.warning("XMLHTTP Bad status "+
W+" ("+Y.JSC$17240_rid_+")")),g_(Y),$r(Y)}},zuo=function(Y){return Y.JSC$17240_xmlHttp_&&(Y=Br(Y.JSC$17240_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Ba(Y)?Y:null},WQI=function(Y){if(!JVd(Y))return Y.JSC$17240_xmlHttp_.getResponseText();
var S=Y.JSC$17240_xmlHttp_.getResponse();if(S==="")return"";var P="",u=S.length,W=_.vy(Y.JSC$17240_xmlHttp_)==4;if(!Y.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return g_(Y),$r(Y),"";Y.fetchResponseState_.textDecoder=new _.Pa.TextDecoder}for(var m=0;m<u;m++)Y.fetchResponseState_.responseArrivedForFetch=!0,P+=Y.fetchResponseState_.textDecoder.decode(S[m],{stream:!(W&&m==u-1)});S.length=0;Y.fetchResponseState_.responseBuffer+=P;Y.JSC$17240_xmlHttpChunkStart_=0;return Y.fetchResponseState_.responseBuffer},
PTo=function(Y){return Y.JSC$17240_xmlHttp_?Y.fetchResponseState_.responseArrivedForFetch?!0:!(!Y.JSC$17240_xmlHttp_.getResponseText()&&!Y.JSC$17240_xmlHttp_.getResponse()):!1},JVd=function(Y){return Y.JSC$17240_xmlHttp_?Y.JSC$17240_verb_=="GET"&&Y.JSC$17240_type_!=2&&Y.JSC$17240_channel_.usesFetchStreams_:!1},nNc=function(Y,S,P){for(var u=!0,W;!Y.JSC$17240_cancelled_&&Y.JSC$17240_xmlHttpChunkStart_<P.length;)if(W=BgZ(Y,P),W==HQd){S==4&&(Y.JSC$17240_lastError_=4,bQ(14),u=!1);
E3(Y.JSC$17240_channelDebug_,Y.JSC$17240_rid_,null,"[Incomplete Response]");break}else if(W==NU_){Y.JSC$17240_lastError_=4;bQ(15);E3(Y.JSC$17240_channelDebug_,Y.JSC$17240_rid_,P,"[Invalid Chunk]");u=!1;break}else E3(Y.JSC$17240_channelDebug_,Y.JSC$17240_rid_,W,null),mKX(Y,W);JVd(Y)&&Y.JSC$17240_xmlHttpChunkStart_!=0&&(Y.fetchResponseState_.responseBuffer=Y.fetchResponseState_.responseBuffer.slice(Y.JSC$17240_xmlHttpChunkStart_),Y.JSC$17240_xmlHttpChunkStart_=0);S!=4||P.length!=0||Y.fetchResponseState_.responseArrivedForFetch||
(Y.JSC$17240_lastError_=1,bQ(16),u=!1);Y.JSC$17240_successful_=Y.JSC$17240_successful_&&u;u?P.length>0&&!Y.firstByteReceived_&&(Y.firstByteReceived_=!0,S=Y.JSC$17240_channel_,S.JSC$17259_backChannelRequest_==Y&&S.detectBufferingProxy_&&!S.bpDetectionDone_&&(S.JSC$17259_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+P.length),cVZ(S),S.bpDetectionDone_=!0,bQ(11))):(E3(Y.JSC$17240_channelDebug_,Y.JSC$17240_rid_,P,"[Invalid Chunked Response]"),g_(Y),$r(Y))},BgZ=function(Y,S){var P=
Y.JSC$17240_xmlHttpChunkStart_,u=S.indexOf("\n",P);
if(u==-1)return HQd;P=Number(S.substring(P,u));if(isNaN(P))return NU_;u+=1;if(u+P>S.length)return HQd;S=S.slice(u,u+P);Y.JSC$17240_xmlHttpChunkStart_=u+P;return S};
fF.prototype.cancel=function(){this.JSC$17240_cancelled_=!0;g_(this)};
var OQu=function(Y){Y.JSC$17240_watchDogTimeoutTime_=Date.now()+Y.timeout_;CTd(Y,Y.timeout_)},CTd=function(Y,S){if(Y.JSC$17240_watchDogTimerId_!=null)throw Error("xk");
Y.JSC$17240_watchDogTimerId_=Tu((0,_.xS)(Y.JSC$17244_onWatchDogTimeout_,Y),S)},uPZ=function(Y){Y.JSC$17240_watchDogTimerId_&&(_.Pa.clearTimeout(Y.JSC$17240_watchDogTimerId_),Y.JSC$17240_watchDogTimerId_=null)};
fF.prototype.JSC$17244_onWatchDogTimeout_=function(){this.JSC$17240_watchDogTimerId_=null;var Y=Date.now();Y-this.JSC$17240_watchDogTimeoutTime_>=0?(k9j(this.JSC$17240_channelDebug_,this.JSC$17240_requestUri_),this.JSC$17240_type_!=2&&(xr(3),bQ(17)),g_(this),this.JSC$17240_lastError_=2,$r(this)):(this.JSC$17240_channelDebug_.warning("WatchDog timer called too early"),CTd(this,this.JSC$17240_watchDogTimeoutTime_-Y))};
var $r=function(Y){Y.JSC$17240_channel_.state_==0||Y.JSC$17240_cancelled_||jx5(Y.JSC$17240_channel_,Y)},g_=function(Y){uPZ(Y);
_.oY(Y.JSC$17240_readyStateChangeThrottle_);Y.JSC$17240_readyStateChangeThrottle_=null;Y.JSC$17240_eventHandler_.removeAll();if(Y.JSC$17240_xmlHttp_){var S=Y.JSC$17240_xmlHttp_;Y.JSC$17240_xmlHttp_=null;S.abort();S.dispose()}};
fF.prototype.getLastError=function(){return this.JSC$17240_lastError_};
var mKX=function(Y,S){try{var P=Y.JSC$17240_channel_;if(P.state_!=0&&(P.JSC$17259_backChannelRequest_==Y||qbu(P.forwardChannelRequestPool_,Y)))if(!Y.initialResponseDecoded_&&qbu(P.forwardChannelRequestPool_,Y)&&P.state_==3){try{var u=P.wireCodec_.JSC$17254_parser_.parse(S)}catch(c){u=null}if(Array.isArray(u)&&u.length==3){S=u;if(S[0]==0)a:if(P.JSC$17259_channelDebug_.debug("Server claims our backchannel is missing."),P.JSC$17259_backChannelTimerId_)P.JSC$17259_channelDebug_.debug("But we are currently starting the request.");
else{if(P.JSC$17259_backChannelRequest_)if(P.JSC$17259_backChannelRequest_.JSC$17240_requestStartTime_+3E3<Y.JSC$17240_requestStartTime_)Ru1(P),xKI(P);else break a;else P.JSC$17259_channelDebug_.warning("We do not have a BackChannel established");bwu(P);bQ(18)}else{P.JSC$17259_lastPostResponseArrayId_=S[1];var W=P.JSC$17259_lastPostResponseArrayId_-P.JSC$17259_lastArrayId_;if(0<W){var m=S[2];P.JSC$17259_channelDebug_.debug(m+" bytes (in "+W+" arrays) are outstanding on the BackChannel");m<37500&&
P.enableStreaming_&&P.JSC$17259_backChannelRetryCount_==0&&!P.JSC$17259_deadBackChannelTimerId_&&(P.JSC$17259_deadBackChannelTimerId_=Tu((0,_.xS)(P.JSC$17261_onBackChannelDead_,P),6E3))}}if(Tgj(P.forwardChannelRequestPool_)<=1&&P.forwardChannelFlushedCallback_){try{P.forwardChannelFlushedCallback_()}catch(c){}P.forwardChannelFlushedCallback_=void 0}}else P.JSC$17259_channelDebug_.debug("Bad POST response data returned"),r_(P,11)}else if((Y.initialResponseDecoded_||P.JSC$17259_backChannelRequest_==
Y)&&Ru1(P),!_.Ba(S)){var J=P.wireCodec_.JSC$17254_parser_.parse(S);P.onInput_(J,Y)}xr(4)}catch(c){}};var KQc=function(Y,S){this.JSC$17247_mapId=Y;this.map=S;this.context=null};var ENo=function(Y){this.maxPoolSizeConfigured_=Y||10;_.Pa.PerformanceNavigationTiming?(Y=_.Pa.performance.getEntriesByType("navigation"),Y=Y.length>0&&(Y[0].nextHopProtocol=="hq"||Y[0].nextHopProtocol=="h2")):Y=!!(_.Pa.chrome&&_.Pa.chrome.loadTimes&&_.Pa.chrome.loadTimes()&&_.Pa.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17250_maxSize_=Y?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17250_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17250_request_=null;this.JSC$17250_pendingMessages_=
[]},fT1=function(Y){return Y.JSC$17250_request_?!0:Y.requestPool_?Y.requestPool_.size>=Y.JSC$17250_maxSize_:!1},Tgj=function(Y){return Y.JSC$17250_request_?1:Y.requestPool_?Y.requestPool_.size:0},qbu=function(Y,S){return Y.JSC$17250_request_?Y.JSC$17250_request_==S:Y.requestPool_?Y.requestPool_.has(S):!1},gNZ=function(Y,S){Y.requestPool_?Y.requestPool_.add(S):Y.JSC$17250_request_=S},$Kc=function(Y,S){Y.JSC$17250_request_&&Y.JSC$17250_request_==S?Y.JSC$17250_request_=null:Y.requestPool_&&Y.requestPool_.has(S)&&
Y.requestPool_.delete(S)};
ENo.prototype.cancel=function(){this.JSC$17250_pendingMessages_=rVd(this);if(this.JSC$17250_request_)this.JSC$17250_request_.cancel(),this.JSC$17250_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var Y=_.n(this.requestPool_.values()),S=Y.next();!S.done;S=Y.next())S.value.cancel();this.requestPool_.clear()}};
var rVd=function(Y){if(Y.JSC$17250_request_!=null)return Y.JSC$17250_pendingMessages_.concat(Y.JSC$17250_request_.JSC$17240_pendingMessages_);if(Y.requestPool_!=null&&Y.requestPool_.size!==0){var S=Y.JSC$17250_pendingMessages_;Y=_.n(Y.requestPool_.values());for(var P=Y.next();!P.done;P=Y.next())S=S.concat(P.value.JSC$17240_pendingMessages_);return S}return _.NU(Y.JSC$17250_pendingMessages_)},GrI=function(Y,S){Y.JSC$17250_pendingMessages_=Y.JSC$17250_pendingMessages_.concat(S)};var hud=function(Y,S){var P=new KF;P.debug("TestLoadImage: loading "+Y);if(_.Pa.Image){var u=new Image;u.onload=_.gP(Gu,P,"TestLoadImage: loaded",!0,S,u);u.onerror=_.gP(Gu,P,"TestLoadImage: error",!1,S,u);u.onabort=_.gP(Gu,P,"TestLoadImage: abort",!1,S,u);u.ontimeout=_.gP(Gu,P,"TestLoadImage: timeout",!1,S,u);_.Pa.setTimeout(function(){if(u.ontimeout)u.ontimeout()},1E4);
u.src=Y}else S(!1)},vN1=function(Y,S){var P=new KF,u=new AbortController,W=setTimeout(function(){u.abort();
Gu(P,"TestPingServer: timeout",!1,S)},1E4);
fetch(Y,{signal:u.signal}).then(function(m){clearTimeout(W);m.ok?Gu(P,"TestPingServer: ok",!0,S):Gu(P,"TestPingServer: server error",!1,S)}).catch(function(){clearTimeout(W);
Gu(P,"TestPingServer: error",!1,S)})},Gu=function(Y,S,P,u,W){try{Y.debug(S),W&&(W.onload=null,W.onerror=null,W.onabort=null,W.ontimeout=null),u(P)}catch(m){}};var DKB=function(){this.JSC$17254_parser_=new Rw},IT1=function(Y,S,P){var u=P||"";
try{_.Q6h(Y,function(W,m){var J=W;_.SS(W)&&(J=(0,_.Gj)(W));S.push(u+m+"="+encodeURIComponent(J))})}catch(W){throw S.push(u+"type="+encodeURIComponent("_badmap")),W;
}};var hU=function(Y,S,P){return P&&P.internalChannelParams?P.internalChannelParams[Y]||S:S},vN=function(Y){this.serverVersion_=0;
this.JSC$17259_outgoingMaps_=[];this.JSC$17259_channelDebug_=new KF;this.JSC$17259_hostPrefix_=this.JSC$17259_backChannelUri_=this.JSC$17259_forwardChannelUri_=this.JSC$17259_path_=this.JSC$17259_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17259_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17259_extraHeaders_=null;this.JSC$17259_nextMapId_=this.JSC$17259_nextRid_=0;this.JSC$17259_failFast_=hU("failFast",!1,Y);this.enableStreaming_=this.JSC$17259_deadBackChannelTimerId_=
this.JSC$17259_backChannelTimerId_=this.JSC$17259_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17259_lastPostResponseArrayId_=this.JSC$17259_lastArrayId_=-1;this.JSC$17259_backChannelAttemptId_=this.JSC$17259_backChannelRetryCount_=this.JSC$17259_forwardChannelRetryCount_=0;this.JSC$17259_baseRetryDelayMs_=hU("baseRetryDelayMs",5E3,Y);this.JSC$17259_retryDelaySeedMs_=hU("retryDelaySeedMs",1E4,Y);this.JSC$17259_forwardChannelMaxRetries_=
hU("forwardChannelMaxRetries",2,Y);this.JSC$17259_forwardChannelRequestTimeoutMs_=hU("forwardChannelRequestTimeoutMs",2E4,Y);this.JSC$17259_xmlHttpFactory_=Y&&Y.xmlHttpFactory||void 0;this.networkTestUrl_=Y&&Y.networkTestUrl||void 0;this.usesFetchStreams_=Y&&Y.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17259_supportsCrossDomainXhrs_=Y&&Y.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new ENo(Y&&Y.concurrentRequestLimit);this.wireCodec_=new DKB;this.fastHandshake_=
Y&&Y.fastHandshake||!1;this.encodeInitMessageHeaders_=Y&&Y.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17259_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=Y&&Y.blockingHandshake||!1;Y&&Y.disableRedact&&this.JSC$17259_channelDebug_.disableRedact();Y&&Y.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
Y&&Y.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;Y&&Y.longPollingTimeout&&Y.longPollingTimeout>0&&(this.longPollingTimeout_=Y.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
vN.prototype.JSC$17261_channelVersion_=8;vN.prototype.state_=1;
vN.prototype.connect=function(Y,S,P,u){this.JSC$17259_channelDebug_.debug("connect()");bQ(0);this.JSC$17259_path_=Y;this.JSC$17259_extraParams_=S||{};P&&u!==void 0&&(this.JSC$17259_extraParams_.OSID=P,this.JSC$17259_extraParams_.OAID=u);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17259_channelDebug_.debug("connectChannel_()");Y=aTc(this,null,this.JSC$17259_path_);this.JSC$17259_channelDebug_.debug("GetForwardChannelUri: "+Y);this.JSC$17259_forwardChannelUri_=Y;LQc(this)};
vN.prototype.disconnect=function(){this.JSC$17259_channelDebug_.debug("disconnect()");wHu(this);if(this.state_==3){var Y=this.JSC$17259_nextRid_++,S=this.JSC$17259_forwardChannelUri_.clone();_.XI(S,"SID",this.sid_);_.XI(S,"RID",Y);_.XI(S,"TYPE","terminate");DE(this,S);Y=new fF(this,this.JSC$17259_channelDebug_,this.sid_,Y);Y.JSC$17240_type_=2;Y.JSC$17240_baseUri_=_.ui(S.clone());S=!1;if(_.Pa.navigator&&_.Pa.navigator.sendBeacon)try{S=_.Pa.navigator.sendBeacon(Y.JSC$17240_baseUri_.toString(),"")}catch(P){}!S&&
_.Pa.Image&&((new Image).src=Y.JSC$17240_baseUri_,S=!0);S||(Y.JSC$17240_xmlHttp_=Ybc(Y.JSC$17240_channel_,null),Y.JSC$17240_xmlHttp_.send(Y.JSC$17240_baseUri_));Y.JSC$17240_requestStartTime_=Date.now();OQu(Y)}pHZ(this)};
var xKI=function(Y){Y.JSC$17259_backChannelRequest_&&(cVZ(Y),Y.JSC$17259_backChannelRequest_.cancel(),Y.JSC$17259_backChannelRequest_=null)},wHu=function(Y){xKI(Y);
Y.JSC$17259_backChannelTimerId_&&(_.Pa.clearTimeout(Y.JSC$17259_backChannelTimerId_),Y.JSC$17259_backChannelTimerId_=null);Ru1(Y);Y.forwardChannelRequestPool_.cancel();Y.JSC$17259_forwardChannelTimerId_&&(typeof Y.JSC$17259_forwardChannelTimerId_==="number"&&_.Pa.clearTimeout(Y.JSC$17259_forwardChannelTimerId_),Y.JSC$17259_forwardChannelTimerId_=null)};
vN.prototype.getState=function(){return this.state_};
var LQc=function(Y){fT1(Y.forwardChannelRequestPool_)||Y.JSC$17259_forwardChannelTimerId_||(Y.JSC$17259_forwardChannelTimerId_=!0,_.Ex(Y.JSC$17261_onStartForwardChannelTimer_,Y),Y.JSC$17259_forwardChannelRetryCount_=0)},sxZ=function(Y,S){if(Tgj(Y.forwardChannelRequestPool_)>=Y.forwardChannelRequestPool_.JSC$17250_maxSize_-(Y.JSC$17259_forwardChannelTimerId_?1:0))return!1;
if(Y.JSC$17259_forwardChannelTimerId_)return Y.JSC$17259_channelDebug_.debug("Use the retry request that is already scheduled."),Y.JSC$17259_outgoingMaps_=S.JSC$17240_pendingMessages_.concat(Y.JSC$17259_outgoingMaps_),!0;if(Y.state_==1||Y.state_==2||Y.JSC$17259_forwardChannelRetryCount_>=(Y.JSC$17259_failFast_?0:Y.JSC$17259_forwardChannelMaxRetries_))return!1;Y.JSC$17259_channelDebug_.debug("Going to retry POST");Y.JSC$17259_forwardChannelTimerId_=Tu((0,_.xS)(Y.JSC$17261_onStartForwardChannelTimer_,
Y,S),FQ1(Y,Y.JSC$17259_forwardChannelRetryCount_));Y.JSC$17259_forwardChannelRetryCount_++;return!0};
vN.prototype.JSC$17261_onStartForwardChannelTimer_=function(Y){if(this.JSC$17259_forwardChannelTimerId_)if(this.JSC$17259_forwardChannelTimerId_=null,this.JSC$17259_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!Y){this.JSC$17259_channelDebug_.debug("open_()");this.JSC$17259_nextRid_=Math.floor(Math.random()*1E5);Y=this.JSC$17259_nextRid_++;var S=new fF(this,this.JSC$17259_channelDebug_,"",Y),P=this.JSC$17259_extraHeaders_;this.initHeaders_&&(P?(P=_.RY.clone(P),_.RY.extend(P,this.initHeaders_)):
P=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(S.JSC$17240_extraHeaders_=P,P=null);var u;if(this.fastHandshake_)a:{for(var W=u=0;W<this.JSC$17259_outgoingMaps_.length;W++){b:{var m=this.JSC$17259_outgoingMaps_[W];if("__data__"in m.map&&(m=m.map.__data__,typeof m==="string")){m=m.length;break b}m=void 0}if(m===void 0)break;u+=m;if(u>4096){u=W;break a}if(u===4096||W===this.JSC$17259_outgoingMaps_.length-1){u=W+1;break a}}u=1E3}else u=1E3;u=dK1(this,S,u);
W=this.JSC$17259_forwardChannelUri_.clone();_.XI(W,"RID",Y);_.XI(W,"CVER",22);this.httpSessionIdParam_&&_.XI(W,"X-HTTP-Session-Id",this.httpSessionIdParam_);DE(this,W);P&&(this.encodeInitMessageHeaders_?u="headers="+_.UW(mEd(P))+"&"+u:this.httpHeadersOverwriteParam_&&nI_(W,this.httpHeadersOverwriteParam_,P));gNZ(this.forwardChannelRequestPool_,S);this.blockingHandshake_&&_.XI(W,"TYPE","init");this.fastHandshake_?(_.XI(W,"$req",u),_.XI(W,"SID","null"),S.decodeInitialResponse_=!0,eOZ(S,W,null)):eOZ(S,
W,u);this.state_=2}}else this.state_==3&&(Y?lTB(this,Y):this.JSC$17259_outgoingMaps_.length==0?this.JSC$17259_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):fT1(this.forwardChannelRequestPool_)||(lTB(this),this.JSC$17259_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var lTB=function(Y,S){var P;S?P=S.JSC$17240_rid_:P=Y.JSC$17259_nextRid_++;var u=Y.JSC$17259_forwardChannelUri_.clone();_.XI(u,"SID",Y.sid_);_.XI(u,"RID",P);_.XI(u,"AID",Y.JSC$17259_lastArrayId_);DE(Y,u);Y.httpHeadersOverwriteParam_&&Y.JSC$17259_extraHeaders_&&nI_(u,Y.httpHeadersOverwriteParam_,Y.JSC$17259_extraHeaders_);P=new fF(Y,Y.JSC$17259_channelDebug_,Y.sid_,P,Y.JSC$17259_forwardChannelRetryCount_+1);Y.httpHeadersOverwriteParam_===null&&(P.JSC$17240_extraHeaders_=Y.JSC$17259_extraHeaders_);S&&
(Y.JSC$17259_outgoingMaps_=S.JSC$17240_pendingMessages_.concat(Y.JSC$17259_outgoingMaps_));S=dK1(Y,P,1E3);P.setTimeout(Math.round(Y.JSC$17259_forwardChannelRequestTimeoutMs_*.5)+Math.round(Y.JSC$17259_forwardChannelRequestTimeoutMs_*.5*Math.random()));gNZ(Y.forwardChannelRequestPool_,P);eOZ(P,u,S)},DE=function(Y,S){Y.JSC$17259_extraParams_&&_.RY.forEach(Y.JSC$17259_extraParams_,function(P,u){_.XI(S,u,P)});
Y.handler_&&_.Q6h({},function(P,u){_.XI(S,u,P)})},dK1=function(Y,S,P){P=Math.min(Y.JSC$17259_outgoingMaps_.length,P);
var u=Y.handler_?(0,_.xS)(Y.handler_.JSC$17265_badMapError,Y.handler_,Y):null;a:{for(var W=Y.JSC$17259_outgoingMaps_,m=-1;;){var J=["count="+P];m==-1?P>0?(m=W[0].JSC$17247_mapId,J.push("ofs="+m)):m=0:J.push("ofs="+m);for(var c=!0,C=0;C<P;C++){var x=W[C].JSC$17247_mapId,b=W[C].map;x-=m;if(x<0)m=Math.max(0,W[C].JSC$17247_mapId-100),c=!1;else try{IT1(b,J,"req"+x+"_")}catch(T){u&&u(b)}}if(c){u=J.join("&");break a}}u=void 0}Y=Y.JSC$17259_outgoingMaps_.splice(0,P);S.JSC$17240_pendingMessages_=Y;return u},
XHd=function(Y){Y.JSC$17259_backChannelRequest_||Y.JSC$17259_backChannelTimerId_||(Y.JSC$17259_backChannelAttemptId_=1,_.Ex(Y.JSC$17261_onStartBackChannelTimer_,Y),Y.JSC$17259_backChannelRetryCount_=0)},bwu=function(Y){if(Y.JSC$17259_backChannelRequest_||Y.JSC$17259_backChannelTimerId_||Y.JSC$17259_backChannelRetryCount_>=3)return!1;
Y.JSC$17259_channelDebug_.debug("Going to retry GET");Y.JSC$17259_backChannelAttemptId_++;Y.JSC$17259_backChannelTimerId_=Tu((0,_.xS)(Y.JSC$17261_onStartBackChannelTimer_,Y),FQ1(Y,Y.JSC$17259_backChannelRetryCount_));Y.JSC$17259_backChannelRetryCount_++;return!0};
vN.prototype.JSC$17261_onStartBackChannelTimer_=function(){this.JSC$17259_backChannelTimerId_=null;Zw1(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17259_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17259_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17259_backChannelRequest_+" "+this.handshakeRttMs_);else{var Y=2*this.handshakeRttMs_;this.JSC$17259_channelDebug_.info("BP detection timer enabled: "+Y);this.bpDetectionTimerId_=Tu((0,_.xS)(this.onBpDetectionTimer_,
this),Y)}};
vN.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17259_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17259_backChannelRequest_.JSC$17240_xmlHttp_!=null){var Y=this.JSC$17259_backChannelRequest_.JSC$17240_xmlHttp_.getResponseText();Y&&this.JSC$17259_channelDebug_.warning("Timer should have been cancelled : "+Y)}this.JSC$17259_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;bQ(10);xKI(this);Zw1(this)}else this.JSC$17259_channelDebug_.warning("Invalid operation.")};
var cVZ=function(Y){Y.bpDetectionTimerId_!=null&&(Y.JSC$17259_channelDebug_.debug("Cancel the BP detection timer."),_.Pa.clearTimeout(Y.bpDetectionTimerId_),Y.bpDetectionTimerId_=null)},Zw1=function(Y){Y.JSC$17259_channelDebug_.debug("Creating new HttpRequest");
Y.JSC$17259_backChannelRequest_=new fF(Y,Y.JSC$17259_channelDebug_,Y.sid_,"rpc",Y.JSC$17259_backChannelAttemptId_);Y.httpHeadersOverwriteParam_===null&&(Y.JSC$17259_backChannelRequest_.JSC$17240_extraHeaders_=Y.JSC$17259_extraHeaders_);Y.JSC$17259_backChannelRequest_.JSC$17240_readyStateChangeThrottleMs_=0;var S=Y.JSC$17259_backChannelUri_.clone();_.XI(S,"RID","rpc");_.XI(S,"SID",Y.sid_);_.XI(S,"AID",Y.JSC$17259_lastArrayId_);_.XI(S,"CI",Y.enableStreaming_?"0":"1");!Y.enableStreaming_&&Y.longPollingTimeout_&&
_.XI(S,"TO",Y.longPollingTimeout_);_.XI(S,"TYPE","xmlhttp");DE(Y,S);Y.httpHeadersOverwriteParam_&&Y.JSC$17259_extraHeaders_&&nI_(S,Y.httpHeadersOverwriteParam_,Y.JSC$17259_extraHeaders_);Y.backChannelRequestTimeoutMs_&&Y.JSC$17259_backChannelRequest_.setTimeout(Y.backChannelRequestTimeoutMs_);var P=Y.JSC$17259_backChannelRequest_,u=Y.JSC$17259_hostPrefix_;P.JSC$17240_type_=1;P.JSC$17240_baseUri_=_.ui(S.clone());P.JSC$17240_postData_=null;P.decodeChunks_=!0;Vv1(P,u);Y.JSC$17259_channelDebug_.debug("New Request created")};
vN.prototype.JSC$17261_onBackChannelDead_=function(){this.JSC$17259_deadBackChannelTimerId_!=null&&(this.JSC$17259_deadBackChannelTimerId_=null,xKI(this),bwu(this),bQ(19))};
var Ru1=function(Y){Y.JSC$17259_deadBackChannelTimerId_!=null&&(_.Pa.clearTimeout(Y.JSC$17259_deadBackChannelTimerId_),Y.JSC$17259_deadBackChannelTimerId_=null)},jx5=function(Y,S){Y.JSC$17259_channelDebug_.debug("Request complete");
var P=null;if(Y.JSC$17259_backChannelRequest_==S){Ru1(Y);cVZ(Y);Y.JSC$17259_backChannelRequest_=null;var u=2}else if(qbu(Y.forwardChannelRequestPool_,S))P=S.JSC$17240_pendingMessages_,$Kc(Y.forwardChannelRequestPool_,S),u=1;else return;if(Y.state_!=0)if(S.JSC$17240_successful_)u==1?(tvj(S.JSC$17240_postData_?S.JSC$17240_postData_.length:0,Date.now()-S.JSC$17240_requestStartTime_,Y.JSC$17259_forwardChannelRetryCount_),LQc(Y)):XHd(Y);else{var W=S.JSC$17240_lastStatusCode_,m=S.getLastError();if(m==3||
m==0&&W>0)Y.JSC$17259_channelDebug_.debug("Not retrying due to error type"),W>200&&(Y.errorResponseStatusCode_=S.JSC$17240_lastStatusCode_);else{Y.JSC$17259_channelDebug_.debug(function(){return"Maybe retrying, last error: "+yz1(m,Y.errorResponseStatusCode_)});
if(u==1&&sxZ(Y,S)||u==2&&bwu(Y))return;Y.JSC$17259_channelDebug_.debug("Exceeded max number of retries")}P&&P.length>0&&GrI(Y.forwardChannelRequestPool_,P);Y.JSC$17259_channelDebug_.debug("Error: HTTP request failed");switch(m){case 1:r_(Y,5);break;case 4:r_(Y,10);break;case 3:r_(Y,6);break;default:r_(Y,2)}}},FQ1=function(Y,S){var P=Y.JSC$17259_baseRetryDelayMs_+Math.floor(Math.random()*Y.JSC$17259_retryDelaySeedMs_);
Y.isActive()||(Y.JSC$17259_channelDebug_.debug("Inactive channel"),P*=2);return P*S};
vN.prototype.onInput_=function(Y,S){for(var P=0;P<Y.length;P++){var u=Y[P];this.JSC$17259_lastArrayId_=u[0];u=u[1];if(this.state_==2)if(u[0]=="c"){this.sid_=u[1];this.JSC$17259_hostPrefix_=u[2];var W=u[3];W!=null&&(this.JSC$17261_channelVersion_=W,this.JSC$17259_channelDebug_.info("VER="+this.JSC$17261_channelVersion_));W=u[4];W!=null&&(this.serverVersion_=W,this.JSC$17259_channelDebug_.info("SVER="+this.serverVersion_));u=u[5];u!=null&&typeof u==="number"&&u>0&&(this.backChannelRequestTimeoutMs_=
u*=1.5,this.JSC$17259_channelDebug_.info("backChannelRequestTimeoutMs_="+u));if(u=S.JSC$17240_xmlHttp_){var m=Br(u,"X-Client-Wire-Protocol");m&&(W=this.forwardChannelRequestPool_,!W.requestPool_&&(_.C8(m,"spdy")||_.C8(m,"quic")||_.C8(m,"h2"))&&(W.JSC$17250_maxSize_=W.maxPoolSizeConfigured_,W.requestPool_=new Set,W.JSC$17250_request_&&(gNZ(W,W.JSC$17250_request_),W.JSC$17250_request_=null)));this.httpSessionIdParam_&&((u=Br(u,"X-HTTP-Session-Id"))?(this.httpSessionId_=u,_.XI(this.JSC$17259_forwardChannelUri_,
this.httpSessionIdParam_,u)):this.JSC$17259_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17265_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-S.JSC$17240_requestStartTime_,this.JSC$17259_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));u=S;W=aTc(this,this.JSC$17259_supportsCrossDomainXhrs_?this.JSC$17259_hostPrefix_:null,this.JSC$17259_path_);this.JSC$17259_channelDebug_.debug("GetBackChannelUri: "+
W);this.JSC$17259_backChannelUri_=W;u.initialResponseDecoded_?(this.JSC$17259_channelDebug_.debug("Upgrade the handshake request to a backchannel."),$Kc(this.forwardChannelRequestPool_,u),W=u,(m=this.backChannelRequestTimeoutMs_)&&W.setTimeout(m),W.JSC$17240_watchDogTimerId_&&(uPZ(W),OQu(W)),this.JSC$17259_backChannelRequest_=u):XHd(this);this.JSC$17259_outgoingMaps_.length>0&&LQc(this)}else u[0]!="stop"&&u[0]!="close"||r_(this,7);else this.state_==3&&(u[0]=="stop"||u[0]=="close"?u[0]=="stop"?r_(this,
7):this.disconnect():u[0]!="noop"&&this.handler_&&this.handler_.JSC$17265_channelHandleArray(u),this.JSC$17259_backChannelRetryCount_=0)}};
var r_=function(Y,S){Y.JSC$17259_channelDebug_.info("Error code "+S);if(S==2){var P=(0,_.xS)(Y.testNetworkCallback_,Y),u=Y.networkTestUrl_,W=!u;u=new _.Nq(u||"//www.google.com/images/cleardot.gif");_.Pa.location&&_.Pa.location.protocol=="http"||_.yK(u,"https");_.ui(u);W?hud(u.toString(),P):vN1(u.toString(),P)}else bQ(2);Y.onError_(S)};
vN.prototype.testNetworkCallback_=function(Y){Y?(this.JSC$17259_channelDebug_.info("Successfully pinged google.com"),bQ(2)):(this.JSC$17259_channelDebug_.info("Failed to ping google.com"),bQ(1))};
vN.prototype.onError_=function(Y){this.JSC$17259_channelDebug_.debug("HttpChannel: error - "+Y);this.state_=0;this.handler_&&this.handler_.JSC$17265_channelError(Y);pHZ(this);wHu(this)};
var pHZ=function(Y){Y.state_=0;Y.nonAckedMapsAtChannelClose_=[];if(Y.handler_){var S=rVd(Y.forwardChannelRequestPool_);if(S.length!=0||Y.JSC$17259_outgoingMaps_.length!=0)Y.JSC$17259_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+S.length+", outgoing: "+Y.JSC$17259_outgoingMaps_.length}),_.Y_(Y.nonAckedMapsAtChannelClose_,S),_.Y_(Y.nonAckedMapsAtChannelClose_,Y.JSC$17259_outgoingMaps_),Y.forwardChannelRequestPool_.JSC$17250_pendingMessages_.length=0,_.NU(Y.JSC$17259_outgoingMaps_),
Y.JSC$17259_outgoingMaps_.length=0;
Y.handler_.JSC$17265_channelClosed()}},iw5=function(Y){if(Y.state_==0)return Y.nonAckedMapsAtChannelClose_;
var S=[];_.Y_(S,rVd(Y.forwardChannelRequestPool_));_.Y_(S,Y.JSC$17259_outgoingMaps_);return S},aTc=function(Y,S,P){var u=_.d7(P);
u.JSC$7905_domain_!=""?(S&&_.N4(u,S+"."+u.JSC$7905_domain_),_.Hy(u,u.JSC$7905_port_)):(u=_.Pa.location,u=HsY(u.protocol,S?S+"."+u.hostname:u.hostname,+u.port,P));S=Y.httpSessionIdParam_;P=Y.httpSessionId_;S&&P&&_.XI(u,S,P);_.XI(u,"VER",Y.JSC$17261_channelVersion_);DE(Y,u);return u},Ybc=function(Y,S,P){if(S&&!Y.JSC$17259_supportsCrossDomainXhrs_)throw Error("yk");
S=Y.usesFetchStreams_&&!Y.JSC$17259_xmlHttpFactory_?new _.hy(new Dn({streamBinaryChunks:P})):new _.hy(Y.JSC$17259_xmlHttpFactory_);S.JSC$7668_withCredentials_=Y.JSC$17259_supportsCrossDomainXhrs_;return S};
vN.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var oNI=function(){};
_.z=oNI.prototype;_.z.JSC$17265_channelOpened=function(){};
_.z.JSC$17265_channelHandleArray=function(){};
_.z.JSC$17265_channelError=function(){};
_.z.JSC$17265_channelClosed=function(){};
_.z.isActive=function(){return!0};
_.z.JSC$17265_badMapError=function(){};var tdB=function(){},aw=function(Y,S){_.Tj.call(this);
this.JSC$17268_channel_=new vN(S);this.JSC$17268_url_=Y;this.messageUrlParams_=S&&S.messageUrlParams||null;Y=S&&S.messageHeaders||null;S&&S.clientProtocolHeaderRequired&&(Y?_.RY.set(Y,"X-Client-Protocol","webchannel"):Y=_.RY.create("X-Client-Protocol","webchannel"));this.JSC$17268_channel_.JSC$17259_extraHeaders_=Y;Y=S&&S.initMessageHeaders||null;S&&S.messageContentType&&(Y?_.RY.set(Y,"X-WebChannel-Content-Type",S.messageContentType):Y=_.RY.create("X-WebChannel-Content-Type",S.messageContentType));
S&&S.clientProfile&&(Y?_.RY.set(Y,"X-WebChannel-Client-Profile",S.clientProfile):Y=_.RY.create("X-WebChannel-Client-Profile",S.clientProfile));this.JSC$17268_channel_.initHeaders_=Y;(Y=S&&S.httpHeadersOverwriteParam)&&!_.Ba(Y)&&(this.JSC$17268_channel_.httpHeadersOverwriteParam_=Y);this.supportsCrossDomainXhr_=S&&S.supportsCrossDomainXhr||!1;this.sendRawJson_=S&&S.sendRawJson||!1;(S=S&&S.httpSessionIdParam)&&!_.Ba(S)&&(this.JSC$17268_channel_.httpSessionIdParam_=S,_.RY.containsKey(this.messageUrlParams_,
S)&&_.RY.remove(this.messageUrlParams_,S));this.channelHandler_=new Iw(this)};
_.PW(aw,_.Tj);aw.prototype.open=function(){this.JSC$17268_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17268_channel_.JSC$17259_supportsCrossDomainXhrs_=!0);this.JSC$17268_channel_.connect(this.JSC$17268_url_,this.messageUrlParams_||void 0)};
aw.prototype.close=function(){this.JSC$17268_channel_.disconnect()};
aw.prototype.send=function(Y){var S=this.JSC$17268_channel_;if(typeof Y==="string"){var P={};P.__data__=Y;Y=P}else this.sendRawJson_&&(P={},P.__data__=(0,_.Gj)(Y),Y=P);S.JSC$17259_outgoingMaps_.push(new KQc(S.JSC$17259_nextMapId_++,Y));S.state_==3&&LQc(S)};
aw.prototype.disposeInternal=function(){this.JSC$17268_channel_.handler_=null;delete this.channelHandler_;this.JSC$17268_channel_.disconnect();delete this.JSC$17268_channel_;aw.superClass_.disposeInternal.call(this)};
var AV1=function(Y){s7Z.call(this);Y.__headers__&&(this.headers=Y.__headers__,this.statusCode=Y.__status__,delete Y.__headers__,delete Y.__status__);var S=Y.__sm__;S?this.data=(this.metadataKey=_.RY.getAnyKey(S))?_.RY.get(S,this.metadataKey):S:this.data=Y};
_.PW(AV1,s7Z);var UKo=function(Y){dd5.call(this);this.status=1;this.errorCode=Y};
_.PW(UKo,dd5);var Iw=function(Y){this.JSC$17275_channel_=Y};
_.PW(Iw,oNI);Iw.prototype.JSC$17265_channelOpened=function(){this.JSC$17275_channel_.dispatchEvent("w")};
Iw.prototype.JSC$17265_channelHandleArray=function(Y){this.JSC$17275_channel_.dispatchEvent(new AV1(Y))};
Iw.prototype.JSC$17265_channelError=function(Y){this.JSC$17275_channel_.dispatchEvent(new UKo(Y))};
Iw.prototype.JSC$17265_channelClosed=function(){this.JSC$17275_channel_.dispatchEvent("x")};
var QxX=function(Y,S){this.transportChannel_=Y;this.JSC$17278_channel_=S},kr6=function(Y){return iw5(Y.JSC$17278_channel_).map(function(S){var P=Y.transportChannel_;
S=S.map;"__data__"in S?(S=S.__data__,P=P.sendRawJson_?(0,_.$gs)(S):S):P=S;return P})};var LF=function(Y){MdB.dispatchEvent(new yV1(MdB,Y))},MdB=new _.Tj,yV1=function(Y){_.Cl.call(this,"statevent",Y)};
_.r(yV1,_.Cl);var w_=function(Y,S,P,u,W){this.JSC$17283_channel_=Y;this.JSC$17283_channelDebug_=S;this.sid_=P;this.JSC$17283_rid_=u;this.JSC$17283_retryId_=W||1;this.timeout_=45E3;this.JSC$17283_eventHandler_=new _.u6(this);this.pollingTimer_=new _.P3;this.pollingTimer_.setInterval(250)};
_.z=w_.prototype;_.z.JSC$17285_extraHeaders_=null;_.z.JSC$17285_successful_=!1;_.z.JSC$17285_watchDogTimerId_=null;_.z.JSC$17285_watchDogTimeoutTime_=null;_.z.JSC$17285_requestStartTime_=null;_.z.JSC$17285_type_=null;_.z.JSC$17285_baseUri_=null;_.z.JSC$17285_requestUri_=null;_.z.JSC$17285_postData_=null;_.z.JSC$17285_xmlHttp_=null;_.z.JSC$17285_xmlHttpChunkStart_=0;_.z.trident_=null;_.z.JSC$17285_verb_=null;_.z.JSC$17285_lastError_=null;_.z.JSC$17285_lastStatusCode_=-1;_.z.sendClose_=!0;
_.z.JSC$17285_cancelled_=!1;_.z.JSC$17285_readyStateChangeThrottleMs_=0;_.z.JSC$17285_readyStateChangeThrottle_=null;var Ngd=function(Y,S){switch(Y){case 0:return"Non-200 return code ("+S+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Hw1={},Vd1={};
w_.prototype.setTimeout=function(Y){this.timeout_=Y};
var OwZ=function(Y,S,P){Y.JSC$17285_type_=1;Y.JSC$17285_baseUri_=_.ui(S.clone());Y.JSC$17285_postData_=P;Y.decodeChunks_=!0;euc(Y,null)},YqB=function(Y,S,P,u,W){Y.JSC$17285_type_=1;
Y.JSC$17285_baseUri_=_.ui(S.clone());Y.JSC$17285_postData_=null;Y.decodeChunks_=P;W&&(Y.sendClose_=!1);euc(Y,u)},euc=function(Y,S){Y.JSC$17285_requestStartTime_=Date.now();
SqX(Y);Y.JSC$17285_requestUri_=Y.JSC$17285_baseUri_.clone();PV(Y.JSC$17285_requestUri_,"t",Y.JSC$17283_retryId_);Y.JSC$17285_xmlHttpChunkStart_=0;Y.JSC$17285_xmlHttp_=Y.JSC$17283_channel_.JSC$17292_createXhrIo(Y.JSC$17283_channel_.JSC$17292_shouldUseSecondaryDomains()?S:null);Y.JSC$17285_readyStateChangeThrottleMs_>0&&(Y.JSC$17285_readyStateChangeThrottle_=new _.NE((0,_.xS)(Y.JSC$17285_xmlHttpHandler_,Y,Y.JSC$17285_xmlHttp_),Y.JSC$17285_readyStateChangeThrottleMs_));Y.JSC$17283_eventHandler_.listen(Y.JSC$17285_xmlHttp_,
"readystatechange",Y.JSC$17285_readyStateChangeHandler_);S=Y.JSC$17285_extraHeaders_?_.RY.clone(Y.JSC$17285_extraHeaders_):{};Y.JSC$17285_postData_?(Y.JSC$17285_verb_="POST",S["Content-Type"]="application/x-www-form-urlencoded",Y.JSC$17285_xmlHttp_.send(Y.JSC$17285_requestUri_,Y.JSC$17285_verb_,Y.JSC$17285_postData_,S)):(Y.JSC$17285_verb_="GET",Y.sendClose_&&!_.Jv&&(S.Connection="close"),Y.JSC$17285_xmlHttp_.send(Y.JSC$17285_requestUri_,Y.JSC$17285_verb_,null,S));Y.JSC$17283_channel_.notifyServerReachabilityEvent(1);
S=Y.JSC$17283_channelDebug_;var P=Y.JSC$17285_postData_;if(P){var u="";P=P.split("&");for(var W=0;W<P.length;W++){var m=P[W].split("=");if(m.length>1){var J=m[0];m=m[1];var c=J.split("_");u=c.length>=2&&c[1]=="type"?u+(J+"="+m+"&"):u+(J+"=redacted&")}}}else u=null;S.info("XMLHTTP REQ ("+Y.JSC$17283_rid_+") [attempt "+Y.JSC$17283_retryId_+"]: "+Y.JSC$17285_verb_+"\n"+Y.JSC$17285_requestUri_+"\n"+u)};
w_.prototype.JSC$17285_readyStateChangeHandler_=function(Y){Y=Y.target;var S=this.JSC$17285_readyStateChangeThrottle_;S&&_.vy(Y)==3?(this.JSC$17283_channelDebug_.debug("Throttling readystatechange."),S.fire()):this.JSC$17285_xmlHttpHandler_(Y)};
w_.prototype.JSC$17285_xmlHttpHandler_=function(Y){try{if(Y==this.JSC$17285_xmlHttp_)a:{var S=_.vy(this.JSC$17285_xmlHttp_),P=this.JSC$17285_xmlHttp_.JSC$7668_lastErrorCode_,u=this.JSC$17285_xmlHttp_.getStatus();if(_.Jv&&!OVo("420+")){if(S<4)break a}else if(S<3||S==3&&!this.JSC$17285_xmlHttp_.getResponseText())break a;this.JSC$17285_cancelled_||S!=4||P==7||(P==8||u<=0?this.JSC$17283_channel_.notifyServerReachabilityEvent(3):this.JSC$17283_channel_.notifyServerReachabilityEvent(2));PvX(this);var W=
this.JSC$17285_xmlHttp_.getStatus();this.JSC$17285_lastStatusCode_=W;var m=this.JSC$17285_xmlHttp_.getResponseText();m||this.JSC$17283_channelDebug_.debug("No response text for uri "+this.JSC$17285_requestUri_+" status "+W);this.JSC$17285_successful_=W==200;this.JSC$17283_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17283_rid_+") [ attempt "+this.JSC$17283_retryId_+"]: "+this.JSC$17285_verb_+"\n"+this.JSC$17285_requestUri_+"\n"+S+" "+W);if(this.JSC$17285_successful_){S==4&&pF(this);if(this.decodeChunks_){for(Y=
!0;!this.JSC$17285_cancelled_&&this.JSC$17285_xmlHttpChunkStart_<m.length;){var J=uKj(this,m);if(J==Vd1){S==4&&(this.JSC$17285_lastError_=4,LF(15),Y=!1);Fw(this.JSC$17283_channelDebug_,this.JSC$17283_rid_,null,"[Incomplete Response]");break}else if(J==Hw1){this.JSC$17285_lastError_=4;LF(16);Fw(this.JSC$17283_channelDebug_,this.JSC$17283_rid_,m,"[Invalid Chunk]");Y=!1;break}else Fw(this.JSC$17283_channelDebug_,this.JSC$17283_rid_,J,null),WTY(this,J)}S==4&&m.length==0&&(this.JSC$17285_lastError_=1,
LF(17),Y=!1);this.JSC$17285_successful_=this.JSC$17285_successful_&&Y;Y||(Fw(this.JSC$17283_channelDebug_,this.JSC$17283_rid_,m,"[Invalid Chunked Response]"),pF(this),z7_(this))}else Fw(this.JSC$17283_channelDebug_,this.JSC$17283_rid_,m,null),WTY(this,m);this.JSC$17285_successful_&&!this.JSC$17285_cancelled_&&(S==4?this.JSC$17283_channel_.JSC$17292_onRequestComplete(this):(this.JSC$17285_successful_=!1,SqX(this)))}else W==400&&m.indexOf("Unknown SID")>0?(this.JSC$17285_lastError_=3,LF(13),this.JSC$17283_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17283_rid_+")")):(this.JSC$17285_lastError_=0,LF(14),this.JSC$17283_channelDebug_.warning("XMLHTTP Bad status "+W+" ("+this.JSC$17283_rid_+")")),pF(this),z7_(this)}else this.JSC$17283_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(c){this.JSC$17283_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var uKj=function(Y,S){var P=Y.JSC$17285_xmlHttpChunkStart_,u=S.indexOf("\n",P);if(u==-1)return Vd1;P=Number(S.substring(P,u));if(isNaN(P))return Hw1;u+=1;if(u+P>S.length)return Vd1;S=S.slice(u,u+P);Y.JSC$17285_xmlHttpChunkStart_=u+P;return S};
w_.prototype.cancel=function(){this.JSC$17285_cancelled_=!0;pF(this)};
var SqX=function(Y){Y.JSC$17285_watchDogTimeoutTime_=Date.now()+Y.timeout_;mJ1(Y,Y.timeout_)},mJ1=function(Y,S){if(Y.JSC$17285_watchDogTimerId_!=null)throw Error("xk");
Y.JSC$17285_watchDogTimerId_=$u((0,_.xS)(Y.JSC$17285_onWatchDogTimeout_,Y),S)},PvX=function(Y){Y.JSC$17285_watchDogTimerId_&&(_.Pa.clearTimeout(Y.JSC$17285_watchDogTimerId_),Y.JSC$17285_watchDogTimerId_=null)};
w_.prototype.JSC$17285_onWatchDogTimeout_=function(){this.JSC$17285_watchDogTimerId_=null;var Y=Date.now();Y-this.JSC$17285_watchDogTimeoutTime_>=0?(this.JSC$17283_channelDebug_.info("TIMEOUT: "+this.JSC$17285_requestUri_),this.JSC$17285_type_!=2&&this.JSC$17283_channel_.notifyServerReachabilityEvent(3),pF(this),this.JSC$17285_lastError_=2,LF(18),z7_(this)):(this.JSC$17283_channelDebug_.warning("WatchDog timer called too early"),mJ1(this,this.JSC$17285_watchDogTimeoutTime_-Y))};
var z7_=function(Y){Y.JSC$17283_channel_.JSC$17292_isClosed()||Y.JSC$17285_cancelled_||Y.JSC$17283_channel_.JSC$17292_onRequestComplete(Y)},pF=function(Y){PvX(Y);
_.oY(Y.JSC$17285_readyStateChangeThrottle_);Y.JSC$17285_readyStateChangeThrottle_=null;Y.pollingTimer_.stop();Y.JSC$17283_eventHandler_.removeAll();if(Y.JSC$17285_xmlHttp_){var S=Y.JSC$17285_xmlHttp_;Y.JSC$17285_xmlHttp_=null;S.abort();S.dispose()}Y.trident_&&(Y.trident_=null)};
w_.prototype.getLastError=function(){return this.JSC$17285_lastError_};
var WTY=function(Y,S){try{Y.JSC$17283_channel_.JSC$17292_onRequestData(Y,S),Y.JSC$17283_channel_.notifyServerReachabilityEvent(4)}catch(P){}};var Fw=function(Y,S,P,u){var W=Y.info;a:if(P&&P!="y2f%"){try{var m=JSON.parse(P);if(m)for(var J=0;J<m.length;J++)if(Array.isArray(m[J])){var c=m[J];if(!(c.length<2)){var C=c[1];if(Array.isArray(C)&&!(C.length<1)){var x=C[0];if(x!="noop"&&x!="stop")for(var b=1;b<C.length;b++)C[b]=""}}}var T=(0,_.Gj)(m);break a}catch(K){Y.debug("Exception parsing expected JS array - probably was not JS");T=P;break a}T=void 0}else T=P;W.call(Y,"XMLHTTP TEXT ("+S+"): "+T+(u?" "+u:""))};
rS.prototype.debug=function(Y){this.info(Y)};
rS.prototype.info=function(){};
rS.prototype.warning=function(){};var nfo=function(Y,S){this.JSC$17290_channel_=Y;this.JSC$17290_channelDebug_=S;this.JSC$17290_parser_=new Rw};
_.z=nfo.prototype;_.z.JSC$17292_extraHeaders_=null;_.z.JSC$17292_request_=null;_.z.receivedIntermediateResult_=!1;_.z.JSC$17292_path_=null;_.z.state_=null;_.z.JSC$17292_lastStatusCode_=-1;_.z.JSC$17292_hostPrefix_=null;_.z.blockedPrefix_=null;
_.z.connect=function(Y){this.JSC$17292_path_=Y;Y=jMY(this.JSC$17290_channel_,this.JSC$17292_path_);LF(3);Date.now();var S=this.JSC$17290_channel_.firstTestResults_;S!=null?(this.JSC$17292_hostPrefix_=S[0],(this.blockedPrefix_=S[1])?(this.state_=1,J7I(this)):(this.state_=2,BF1(this))):(PV(Y,"MODE","init"),this.JSC$17292_request_=new w_(this,this.JSC$17290_channelDebug_),this.JSC$17292_request_.JSC$17285_extraHeaders_=this.JSC$17292_extraHeaders_,YqB(this.JSC$17292_request_,Y,!1,null,!0),this.state_=
0)};
var J7I=function(Y){var S=c7Z(Y.JSC$17290_channel_,Y.blockedPrefix_,"/mail/images/cleardot.gif");_.ui(S);lYY(S.toString(),5E3,(0,_.xS)(Y.checkBlockedCallback_,Y),3,2E3);Y.notifyServerReachabilityEvent(1)};
nfo.prototype.checkBlockedCallback_=function(Y){if(Y)this.state_=2,BF1(this);else{LF(4);var S=this.JSC$17290_channel_;S.JSC$17293_channelDebug_.debug("Test Connection Blocked");S.JSC$17297_lastStatusCode_=S.connectionTest_.JSC$17292_lastStatusCode_;s3(S,9)}Y&&this.notifyServerReachabilityEvent(2)};
var BF1=function(Y){Y.JSC$17290_channelDebug_.debug("TestConnection: starting stage 2");var S=Y.JSC$17290_channel_.secondTestResults_;S!=null?(Y.JSC$17290_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+S?"Buffered":"Unbuffered"),LF(5),S?(LF(11),d_(Y.JSC$17290_channel_,Y,!1)):(LF(12),d_(Y.JSC$17290_channel_,Y,!0))):(Y.JSC$17292_request_=new w_(Y,Y.JSC$17290_channelDebug_),Y.JSC$17292_request_.JSC$17285_extraHeaders_=Y.JSC$17292_extraHeaders_,S=Cvo(Y.JSC$17290_channel_,
Y.JSC$17292_hostPrefix_,Y.JSC$17292_path_),LF(5),PV(S,"TYPE","xmlhttp"),YqB(Y.JSC$17292_request_,S,!1,Y.JSC$17292_hostPrefix_,!1))};
_.z=nfo.prototype;_.z.JSC$17292_createXhrIo=function(Y){return this.JSC$17290_channel_.JSC$17292_createXhrIo(Y)};
_.z.abort=function(){this.JSC$17292_request_&&(this.JSC$17292_request_.cancel(),this.JSC$17292_request_=null);this.JSC$17292_lastStatusCode_=-1};
_.z.JSC$17292_isClosed=function(){return!1};
_.z.JSC$17292_onRequestData=function(Y,S){this.JSC$17292_lastStatusCode_=Y.JSC$17285_lastStatusCode_;if(this.state_==0)if(this.JSC$17290_channelDebug_.debug("TestConnection: Got data for stage 1"),S){try{var P=this.JSC$17290_parser_.parse(S)}catch(u){qq6(this.JSC$17290_channel_,this);return}this.JSC$17292_hostPrefix_=P[0];this.blockedPrefix_=P[1]}else this.JSC$17290_channelDebug_.debug("TestConnection: Null responseText"),qq6(this.JSC$17290_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(LF(7),Date.now()):S=="11111"?(LF(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17292_lastStatusCode_=200,this.JSC$17292_request_.cancel(),this.JSC$17290_channelDebug_.debug("Test connection succeeded; using streaming connection"),LF(12),d_(this.JSC$17290_channel_,this,!0)):(LF(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.z.JSC$17292_onRequestComplete=function(){this.JSC$17292_lastStatusCode_=this.JSC$17292_request_.JSC$17285_lastStatusCode_;this.JSC$17292_request_.JSC$17285_successful_?this.state_==0?(this.JSC$17290_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,J7I(this)):(this.state_=2,BF1(this))):this.state_==2&&(this.JSC$17290_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17290_channelDebug_.debug("Test connection succeeded; using streaming connection"),
LF(12),d_(this.JSC$17290_channel_,this,!0)):(this.JSC$17290_channelDebug_.debug("Test connection failed; not using streaming"),LF(11),d_(this.JSC$17290_channel_,this,!1))):(this.JSC$17290_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?LF(9):this.state_==2&&LF(10),qq6(this.JSC$17290_channel_,this,this.JSC$17292_request_.getLastError()))};
_.z.JSC$17292_shouldUseSecondaryDomains=function(){return this.JSC$17290_channel_.JSC$17292_shouldUseSecondaryDomains()};
_.z.isActive=function(){return this.JSC$17290_channel_.isActive()};
_.z.notifyServerReachabilityEvent=function(Y){this.JSC$17290_channel_.notifyServerReachabilityEvent(Y)};var lQ=function(Y,S,P){this.state_=1;this.JSC$17293_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17293_channelDebug_=new rS;this.JSC$17293_parser_=new Rw;this.firstTestResults_=Y||null;this.secondTestResults_=S!=null?S:null;this.asyncTest_=P||!1},R7_=function(Y,S){this.JSC$17295_mapId=Y;
this.map=S;this.context=null};
_.z=lQ.prototype;_.z.JSC$17297_extraHeaders_=null;_.z.JSC$17297_extraParams_=null;_.z.forwardChannelRequest_=null;_.z.JSC$17297_backChannelRequest_=null;_.z.JSC$17297_path_=null;_.z.JSC$17297_forwardChannelUri_=null;_.z.JSC$17297_backChannelUri_=null;_.z.JSC$17297_hostPrefix_=null;_.z.JSC$17297_nextRid_=0;_.z.JSC$17297_nextMapId_=0;_.z.handler_=null;_.z.JSC$17297_forwardChannelTimerId_=null;_.z.JSC$17297_backChannelTimerId_=null;_.z.JSC$17297_deadBackChannelTimerId_=null;_.z.connectionTest_=null;
_.z.useChunked_=null;_.z.JSC$17297_lastArrayId_=-1;_.z.JSC$17297_lastPostResponseArrayId_=-1;_.z.JSC$17297_lastStatusCode_=-1;_.z.JSC$17297_forwardChannelRetryCount_=0;_.z.JSC$17297_backChannelRetryCount_=0;_.z.JSC$17297_channelVersion_=8;var xJ1={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},brX=function(Y,S,P,u){_.Cl.call(this,"timingevent",Y);this.size=S;this.rtt=P;this.retries=u};
_.PW(brX,_.Cl);var TFZ=function(Y){_.Cl.call(this,"serverreachability",Y)};
_.PW(TFZ,_.Cl);lQ.prototype.connect=function(Y,S,P,u,W){this.JSC$17293_channelDebug_.debug("connect()");LF(0);this.JSC$17297_path_=S;this.JSC$17297_extraParams_=P||{};u&&W!==void 0&&(this.JSC$17297_extraParams_.OSID=u,this.JSC$17297_extraParams_.OAID=W);this.asyncTest_?($u((0,_.xS)(this.connectTest_,this,Y),100),KTI(this)):this.connectTest_(Y)};
lQ.prototype.disconnect=function(){this.JSC$17293_channelDebug_.debug("disconnect()");Efd(this);if(this.state_==3){var Y=this.JSC$17297_nextRid_++,S=this.JSC$17297_forwardChannelUri_.clone();_.XI(S,"SID",this.sid_);_.XI(S,"RID",Y);_.XI(S,"TYPE","terminate");Xw(this,S);Y=new w_(this,this.JSC$17293_channelDebug_,this.sid_,Y);Y.JSC$17285_type_=2;Y.JSC$17285_baseUri_=_.ui(S.clone());(new Image).src=Y.JSC$17285_baseUri_.toString();Y.JSC$17285_requestStartTime_=Date.now();SqX(Y)}foj(this)};
lQ.prototype.connectTest_=function(Y){this.JSC$17293_channelDebug_.debug("connectTest_()");this.connectionTest_=new nfo(this,this.JSC$17293_channelDebug_);this.connectionTest_.JSC$17292_extraHeaders_=this.JSC$17297_extraHeaders_;this.connectionTest_.JSC$17290_parser_=this.JSC$17293_parser_;this.connectionTest_.connect(Y)};
var KTI=function(Y){Y.JSC$17293_channelDebug_.debug("connectChannel_()");Y.JSC$17297_ensureInState_(1,0);Y.JSC$17297_forwardChannelUri_=jMY(Y,Y.JSC$17297_path_);gf6(Y)},Efd=function(Y){Y.connectionTest_&&(Y.connectionTest_.abort(),Y.connectionTest_=null);
Y.JSC$17297_backChannelRequest_&&(Y.JSC$17297_backChannelRequest_.cancel(),Y.JSC$17297_backChannelRequest_=null);Y.JSC$17297_backChannelTimerId_&&(_.Pa.clearTimeout(Y.JSC$17297_backChannelTimerId_),Y.JSC$17297_backChannelTimerId_=null);$Jj(Y);Y.forwardChannelRequest_&&(Y.forwardChannelRequest_.cancel(),Y.forwardChannelRequest_=null);Y.JSC$17297_forwardChannelTimerId_&&(_.Pa.clearTimeout(Y.JSC$17297_forwardChannelTimerId_),Y.JSC$17297_forwardChannelTimerId_=null)},r7Y=function(Y,S){if(Y.state_==0)throw Error("Ak");
Y.JSC$17293_outgoingMaps_.length==1E3&&Y.JSC$17293_parser_.stringify(S);Y.JSC$17293_outgoingMaps_.push(new R7_(Y.JSC$17297_nextMapId_++,S));Y.state_!=2&&Y.state_!=3||gf6(Y)};
lQ.prototype.JSC$17292_isClosed=function(){return this.state_==0};
lQ.prototype.getState=function(){return this.state_};
var gf6=function(Y){Y.forwardChannelRequest_||Y.JSC$17297_forwardChannelTimerId_||(Y.JSC$17297_forwardChannelTimerId_=$u((0,_.xS)(Y.JSC$17297_onStartForwardChannelTimer_,Y),0),Y.JSC$17297_forwardChannelRetryCount_=0)};
lQ.prototype.JSC$17297_onStartForwardChannelTimer_=function(Y){this.JSC$17297_forwardChannelTimerId_=null;Gf_(this,Y)};
var Gf_=function(Y,S){Y.JSC$17293_channelDebug_.debug("startForwardChannel_");if(Y.state_==1){if(!S){Y.JSC$17293_channelDebug_.debug("open_()");Y.JSC$17297_nextRid_=Math.floor(Math.random()*1E5);S=Y.JSC$17297_nextRid_++;var P=new w_(Y,Y.JSC$17293_channelDebug_,"",S);P.JSC$17285_extraHeaders_=Y.JSC$17297_extraHeaders_;var u=h7c(Y),W=Y.JSC$17297_forwardChannelUri_.clone();_.XI(W,"RID",S);_.XI(W,"CVER","1");Xw(Y,W);OwZ(P,W,u);Y.forwardChannelRequest_=P;Y.state_=2}}else Y.state_==3&&(S?vf1(Y,S):Y.JSC$17293_outgoingMaps_.length==
0?Y.JSC$17293_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Y.forwardChannelRequest_||(vf1(Y),Y.JSC$17293_channelDebug_.debug("startForwardChannel_ finished, sent request")))},vf1=function(Y,S){if(S)if(Y.JSC$17297_channelVersion_>6){Y.JSC$17293_outgoingMaps_=Y.pendingMaps_.concat(Y.JSC$17293_outgoingMaps_);
Y.pendingMaps_.length=0;var P=Y.JSC$17297_nextRid_-1;S=h7c(Y)}else P=S.JSC$17283_rid_,S=S.JSC$17285_postData_;else P=Y.JSC$17297_nextRid_++,S=h7c(Y);var u=Y.JSC$17297_forwardChannelUri_.clone();_.XI(u,"SID",Y.sid_);_.XI(u,"RID",P);_.XI(u,"AID",Y.JSC$17297_lastArrayId_);Xw(Y,u);P=new w_(Y,Y.JSC$17293_channelDebug_,Y.sid_,P,Y.JSC$17297_forwardChannelRetryCount_+1);P.JSC$17285_extraHeaders_=Y.JSC$17297_extraHeaders_;P.setTimeout(1E4+Math.round(1E4*Math.random()));Y.forwardChannelRequest_=P;OwZ(P,u,S)},
Xw=function(Y,S){Y.handler_&&(Y=Y.handler_.JSC$17304_getAdditionalParams())&&_.RY.forEach(Y,function(P,u){_.XI(S,u,P)})},h7c=function(Y){var S=Math.min(Y.JSC$17293_outgoingMaps_.length,1E3),P=["count="+S];
if(Y.JSC$17297_channelVersion_>6&&S>0){var u=Y.JSC$17293_outgoingMaps_[0].JSC$17295_mapId;P.push("ofs="+u)}else u=0;for(var W={},m=0;m<S;W={mapId$jscomp$3:void 0},m++){W.mapId$jscomp$3=Y.JSC$17293_outgoingMaps_[m].JSC$17295_mapId;var J=Y.JSC$17293_outgoingMaps_[m].map;W.mapId$jscomp$3=Y.JSC$17297_channelVersion_<=6?m:W.mapId$jscomp$3-u;try{_.RY.forEach(J,function(c){return function(C,x){P.push("req"+c.mapId$jscomp$3+"_"+x+"="+encodeURIComponent(C))}}(W))}catch(c){P.push("req"+W.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}Y.pendingMaps_=Y.pendingMaps_.concat(Y.JSC$17293_outgoingMaps_.splice(0,S));
return P.join("&")},DJd=function(Y){Y.JSC$17297_backChannelRequest_||Y.JSC$17297_backChannelTimerId_||(Y.JSC$17297_backChannelAttemptId_=1,Y.JSC$17297_backChannelTimerId_=$u((0,_.xS)(Y.JSC$17297_onStartBackChannelTimer_,Y),0),Y.JSC$17297_backChannelRetryCount_=0)},ao_=function(Y){if(Y.JSC$17297_backChannelRequest_||Y.JSC$17297_backChannelTimerId_||Y.JSC$17297_backChannelRetryCount_>=3)return!1;
Y.JSC$17293_channelDebug_.debug("Going to retry GET");Y.JSC$17297_backChannelAttemptId_++;Y.JSC$17297_backChannelTimerId_=$u((0,_.xS)(Y.JSC$17297_onStartBackChannelTimer_,Y),Io1(Y,Y.JSC$17297_backChannelRetryCount_));Y.JSC$17297_backChannelRetryCount_++;return!0};
lQ.prototype.JSC$17297_onStartBackChannelTimer_=function(){this.JSC$17297_backChannelTimerId_=null;this.JSC$17293_channelDebug_.debug("Creating new HttpRequest");this.JSC$17297_backChannelRequest_=new w_(this,this.JSC$17293_channelDebug_,this.sid_,"rpc",this.JSC$17297_backChannelAttemptId_);this.JSC$17297_backChannelRequest_.JSC$17285_extraHeaders_=this.JSC$17297_extraHeaders_;this.JSC$17297_backChannelRequest_.JSC$17285_readyStateChangeThrottleMs_=0;var Y=this.JSC$17297_backChannelUri_.clone();_.XI(Y,
"RID","rpc");_.XI(Y,"SID",this.sid_);_.XI(Y,"CI",this.useChunked_?"0":"1");_.XI(Y,"AID",this.JSC$17297_lastArrayId_);Xw(this,Y);_.XI(Y,"TYPE","xmlhttp");YqB(this.JSC$17297_backChannelRequest_,Y,!0,this.JSC$17297_hostPrefix_,!1);this.JSC$17293_channelDebug_.debug("New Request created")};
var d_=function(Y,S,P){Y.JSC$17293_channelDebug_.debug("Test Connection Finished");Y.useChunked_=Y.secondTestResults_==null?P:!Y.secondTestResults_;Y.JSC$17297_lastStatusCode_=S.JSC$17292_lastStatusCode_;Y.asyncTest_||KTI(Y)},qq6=function(Y,S){Y.JSC$17293_channelDebug_.debug("Test Connection Failed");
Y.JSC$17297_lastStatusCode_=S.JSC$17292_lastStatusCode_;s3(Y,2)};
lQ.prototype.JSC$17292_onRequestData=function(Y,S){if(this.state_!=0&&(this.JSC$17297_backChannelRequest_==Y||this.forwardChannelRequest_==Y))if(this.JSC$17297_lastStatusCode_=Y.JSC$17285_lastStatusCode_,this.forwardChannelRequest_==Y&&this.state_==3)if(this.JSC$17297_channelVersion_>7){try{var P=this.JSC$17293_parser_.parse(S)}catch(u){P=null}if(Array.isArray(P)&&P.length==3)if(S=P,S[0]==0)a:if(this.JSC$17293_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17297_backChannelTimerId_)this.JSC$17293_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17297_backChannelRequest_)if(this.JSC$17297_backChannelRequest_.JSC$17285_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17285_requestStartTime_)$Jj(this),this.JSC$17297_backChannelRequest_.cancel(),this.JSC$17297_backChannelRequest_=null;else break a;else this.JSC$17293_channelDebug_.warning("We do not have a BackChannel established");ao_(this);LF(19)}else this.JSC$17297_lastPostResponseArrayId_=S[1],Y=this.JSC$17297_lastPostResponseArrayId_-this.JSC$17297_lastArrayId_,0<
Y&&(S=S[2],this.JSC$17293_channelDebug_.debug(S+" bytes (in "+Y+" arrays) are outstanding on the BackChannel"),S<37500&&this.useChunked_&&this.JSC$17297_backChannelRetryCount_==0&&!this.JSC$17297_deadBackChannelTimerId_&&(this.JSC$17297_deadBackChannelTimerId_=$u((0,_.xS)(this.JSC$17297_onBackChannelDead_,this),6E3)));else this.JSC$17293_channelDebug_.debug("Bad POST response data returned"),s3(this,11)}else S!="y2f%"&&(this.JSC$17293_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
s3(this,11));else this.JSC$17297_backChannelRequest_==Y&&$Jj(this),_.Ba(S)||(Y=this.JSC$17293_parser_.parse(S),this.onInput_(Y))};
lQ.prototype.JSC$17297_onBackChannelDead_=function(){this.JSC$17297_deadBackChannelTimerId_!=null&&(this.JSC$17297_deadBackChannelTimerId_=null,this.JSC$17297_backChannelRequest_.cancel(),this.JSC$17297_backChannelRequest_=null,ao_(this),LF(20))};
var $Jj=function(Y){Y.JSC$17297_deadBackChannelTimerId_!=null&&(_.Pa.clearTimeout(Y.JSC$17297_deadBackChannelTimerId_),Y.JSC$17297_deadBackChannelTimerId_=null)};
lQ.prototype.JSC$17292_onRequestComplete=function(Y){this.JSC$17293_channelDebug_.debug("Request complete");if(this.JSC$17297_backChannelRequest_==Y){$Jj(this);this.JSC$17297_backChannelRequest_=null;var S=2}else if(this.forwardChannelRequest_==Y)this.forwardChannelRequest_=null,S=1;else return;this.JSC$17297_lastStatusCode_=Y.JSC$17285_lastStatusCode_;if(this.state_!=0)if(Y.JSC$17285_successful_)if(S==1){S=Y.JSC$17285_postData_?Y.JSC$17285_postData_.length:0;Y=Date.now()-Y.JSC$17285_requestStartTime_;
var P=MdB;P.dispatchEvent(new brX(P,S,Y,this.JSC$17297_forwardChannelRetryCount_));gf6(this);this.handler_&&this.handler_.JSC$17304_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else DJd(this);else{P=Y.getLastError();if(P==3||P==7||P==0&&this.JSC$17297_lastStatusCode_>0)this.JSC$17293_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17293_channelDebug_.debug("Maybe retrying, last error: "+Ngd(P,this.JSC$17297_lastStatusCode_));var u;if(u=S==1)this.forwardChannelRequest_||
this.JSC$17297_forwardChannelTimerId_||this.state_==1||this.JSC$17297_forwardChannelRetryCount_>=2?u=!1:(this.JSC$17293_channelDebug_.debug("Going to retry POST"),this.JSC$17297_forwardChannelTimerId_=$u((0,_.xS)(this.JSC$17297_onStartForwardChannelTimer_,this,Y),Io1(this,this.JSC$17297_forwardChannelRetryCount_)),this.JSC$17297_forwardChannelRetryCount_++,u=!0);if(u||S==2&&ao_(this))return;this.JSC$17293_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17293_channelDebug_.debug("Error: HTTP request failed");
switch(P){case 1:s3(this,5);break;case 4:s3(this,10);break;case 3:s3(this,6);break;case 7:s3(this,12);break;default:s3(this,2)}}};
var Io1=function(Y,S){var P=5E3+Math.floor(Math.random()*1E4);Y.isActive()||(Y.JSC$17293_channelDebug_.debug("Inactive channel"),P*=2);return P*S};
lQ.prototype.onInput_=function(Y){for(var S=0;S<Y.length;S++){var P=Y[S];this.JSC$17297_lastArrayId_=P[0];P=P[1];this.state_==2?P[0]=="c"?(this.sid_=P[1],this.JSC$17297_hostPrefix_=P[2],P=P[3],P!=null?this.JSC$17297_channelVersion_=P:this.JSC$17297_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17304_channelOpened(),this.JSC$17297_backChannelUri_=Cvo(this,this.JSC$17297_hostPrefix_,this.JSC$17297_path_),DJd(this)):P[0]=="stop"&&s3(this,7):this.state_==3&&(P[0]=="stop"?s3(this,7):
P[0]!="noop"&&this.handler_&&this.handler_.JSC$17304_channelHandleArray(P),this.JSC$17297_backChannelRetryCount_=0)}};
lQ.prototype.JSC$17297_ensureInState_=function(Y){if(!_.Au(arguments,this.state_))throw Error("Bk`"+this.state_);};
var s3=function(Y,S){Y.JSC$17293_channelDebug_.info("Error code "+S);if(S==2||S==9){var P=null;Y.handler_&&(P=null);var u=(0,_.xS)(Y.testGoogleComCallback_,Y);P||(P=new _.Nq("//www.google.com/images/cleardot.gif"),_.ui(P));dzj(P.toString(),1E4,u)}else LF(2);Y.onError_(S)};
lQ.prototype.testGoogleComCallback_=function(Y){Y?(this.JSC$17293_channelDebug_.info("Successfully pinged google.com"),LF(2)):(this.JSC$17293_channelDebug_.info("Failed to ping google.com"),LF(1),this.onError_(8))};
lQ.prototype.onError_=function(Y){this.JSC$17293_channelDebug_.debug("HttpChannel: error - "+Y);this.state_=0;this.handler_&&this.handler_.JSC$17304_channelError(Y);foj(this);Efd(this)};
var foj=function(Y){Y.state_=0;Y.JSC$17297_lastStatusCode_=-1;if(Y.handler_)if(Y.pendingMaps_.length==0&&Y.JSC$17293_outgoingMaps_.length==0)Y.handler_.JSC$17304_channelClosed();else{Y.JSC$17293_channelDebug_.debug("Number of undelivered maps, pending: "+Y.pendingMaps_.length+", outgoing: "+Y.JSC$17293_outgoingMaps_.length);var S=_.NU(Y.pendingMaps_),P=_.NU(Y.JSC$17293_outgoingMaps_);Y.pendingMaps_.length=0;Y.JSC$17293_outgoingMaps_.length=0;Y.handler_.JSC$17304_channelClosed(S,P)}},jMY=function(Y,
S){S=c7Z(Y,null,S);
Y.JSC$17293_channelDebug_.debug("GetForwardChannelUri: "+S);return S},Cvo=function(Y,S,P){S=c7Z(Y,Y.JSC$17292_shouldUseSecondaryDomains()?S:null,P);
Y.JSC$17293_channelDebug_.debug("GetBackChannelUri: "+S);return S},c7Z=function(Y,S,P){var u=_.d7(P);
if(u.JSC$7905_domain_!="")S&&_.N4(u,S+"."+u.JSC$7905_domain_),_.Hy(u,u.JSC$7905_port_);else{var W=window.location;u=HsY(W.protocol,S?S+"."+W.hostname:W.hostname,+W.port,P)}Y.JSC$17297_extraParams_&&_.RY.forEach(Y.JSC$17297_extraParams_,function(m,J){_.XI(u,J,m)});
_.XI(u,"VER",Y.JSC$17297_channelVersion_);Xw(Y,u);return u};
lQ.prototype.JSC$17292_createXhrIo=function(Y){if(Y)throw Error("yk");Y=new _.hy;Y.JSC$7668_withCredentials_=!1;return Y};
lQ.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
lQ.prototype.notifyServerReachabilityEvent=function(Y){var S=MdB;S.dispatchEvent(new TFZ(S,Y))};
lQ.prototype.JSC$17292_shouldUseSecondaryDomains=function(){return!1};
new PN_;var LT1=function(){};
_.z=LT1.prototype;_.z.JSC$17304_channelOpened=function(){};
_.z.JSC$17304_channelHandleArray=function(){};
_.z.JSC$17304_channelSuccess=function(){};
_.z.JSC$17304_channelError=function(){};
_.z.JSC$17304_channelClosed=function(){};
_.z.JSC$17304_getAdditionalParams=function(){return{}};
_.z.isActive=function(){return!0};var wmZ=function(Y){Y.front_.length===0&&(Y.front_=Y.back_,Y.front_.reverse(),Y.back_=[])};
_.z=ZoY.prototype;_.z.enqueue=function(Y){this.back_.push(Y)};
_.z.peek=function(){wmZ(this);return _.s9(this.front_)};
_.z.getCount=function(){return this.front_.length+this.back_.length};
_.z.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.z.clear=function(){this.front_=[];this.back_=[]};
_.z.contains=function(Y){return _.Au(this.front_,Y)||_.Au(this.back_,Y)};
_.z.remove=function(Y){var S=this.front_;var P=Array.prototype.lastIndexOf.call(S,Y,S.length-1);P>=0?(_.kY(S,P),S=!0):S=!1;return S||_.MU(this.back_,Y)};
_.z.getValues=function(){for(var Y=[],S=this.front_.length-1;S>=0;--S)Y.push(this.front_[S]);S=this.back_.length;for(var P=0;P<S;++P)Y.push(this.back_[P]);return Y};var ZE=function(Y){this.JSC$17308_map_=new _.PY;this.size=0;Y&&this.addAll(Y)},pmY=function(Y){var S=typeof Y;
return S=="object"&&Y||S=="function"?"o"+_.Pt(Y):S.charAt(0)+Y};
_.z=ZE.prototype;_.z.getCount=function(){return this.JSC$17308_map_.size};
_.z.add=function(Y){this.JSC$17308_map_.set(pmY(Y),Y);this.size=this.JSC$17308_map_.size};
_.z.addAll=function(Y){Y=_.M4(Y);for(var S=Y.length,P=0;P<S;P++)this.add(Y[P]);this.size=this.JSC$17308_map_.size};
_.z.removeAll=function(Y){Y=_.M4(Y);for(var S=Y.length,P=0;P<S;P++)this.remove(Y[P]);this.size=this.JSC$17308_map_.size};
_.z.delete=function(Y){Y=this.JSC$17308_map_.remove(pmY(Y));this.size=this.JSC$17308_map_.size;return Y};
_.z.remove=function(Y){return this.delete(Y)};
_.z.clear=function(){this.JSC$17308_map_.clear();this.size=0};
_.z.isEmpty=function(){return this.JSC$17308_map_.size===0};
_.z.has=function(Y){return this.JSC$17308_map_.containsKey(pmY(Y))};
_.z.contains=function(Y){return this.JSC$17308_map_.containsKey(pmY(Y))};
_.z.getValues=function(){return this.JSC$17308_map_.getValues()};
_.z.values=function(){return this.JSC$17308_map_.values()};
_.z.clone=function(){return new ZE(this)};
_.z.equals=function(Y){return this.getCount()==yLI(Y)&&FT1(this,Y)};
var FT1=function(Y,S){var P=yLI(S);if(Y.getCount()>P)return!1;!(S instanceof ZE)&&P>5&&(S=new ZE(S));return N86(Y,function(u){var W=S;return W.contains&&typeof W.contains=="function"?W.contains(u):W.containsValue&&typeof W.containsValue=="function"?W.containsValue(u):_.eK(W)||typeof W==="string"?_.Au(W,u):_.RY.containsValue(W,u)})};
ZE.prototype.__iterator__=function(){return this.JSC$17308_map_.__iterator__(!1)};
ZE.prototype[Symbol.iterator]=function(){return this.values()};var sMc={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(Y){return(this._clampValue(Y)-this.min)/(this.max-this.min)},
_clampValue:function(Y){return Math.min(this.max,Math.max(this.min,this._calcStep(Y)))},
_calcStep:function(Y){Y=parseFloat(Y);if(!this.step)return Y;Y=Math.round((Y-this.min)/this.step);return this.step<1?Y/(1/this.step)+this.min:Y*this.step+this.min},
_validateValue:function(){var Y=this._clampValue(this.value);this.value=this.oldValue=isNaN(Y)?this.oldValue:Y;return this.value!==Y},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var dJ_;var loB;_.Kc({_template:function(){if(loB!==void 0)return loB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;dJ_===void 0&&(dJ_=document.createElement("template"));var u=dJ_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return loB=Y},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.ky(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(Y){Y.keyCode===27&&(Y.preventDefault(),this.close())},
_track:function(Y){if(!this.persistent&&!this.disableSwipe)switch(Y.preventDefault(),Y.detail.state){case "start":this._trackStart(Y);break;case "track":this._trackMove(Y);break;case "end":this._trackEnd(Y)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var Y=this.$.contentContainer.getBoundingClientRect();this._savedWidth=Y.width;this._translateOffset=this.position==="left"?Y.left:Y.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(Y){this._trackDetails&&(this._translateDrawer(Y.detail.dx+this._translateOffset),this._trackDetails.push({dx:Y.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(Y){if(this._trackDetails){var S=Y.detail.dx+this._translateOffset,P=this.getWidth();S=this.position==="left"?S>=0||S<=-P:S<=0||S>=P;if(!S){var u=this._trackDetails;this._trackDetails=null;this._flingDrawer(Y,u);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}P/=2;Y.detail.dx<-P?this.opened=this.position==="right":Y.detail.dx>P&&(this.opened=this.position==="left");S?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(Y,S){for(var P=Date.now(),u=P-100,W,m=0,J=S.length-1;m<=J;){var c=m+J>>1,C=S[c];C.timeStamp>=u?(W=C,J=c-1):m=c+1}return W?(Y.detail.dx-W.dx)/(P-W.timeStamp||1):0},
_flingDrawer:function(Y,S){S=this._calculateVelocity(Y,S);if(!(Math.abs(S)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;Y=Y.detail.dx+this._translateOffset;var P=this.getWidth(),u=this.position==="left",W=S>0;W?(S=Math.max(S,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(S=Math.min(S,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");S=this._FLING_INITIAL_SLOPE*(!W&&u?-(Y+P):W&&!u?P-Y:-Y)/S;this._styleTransitionDuration(S);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,S)}},
_styleTransitionDuration:function(Y){this.style.transitionDuration=Y+"ms";this.$.contentContainer.style.transitionDuration=Y+"ms";this.$.scrim.style.transitionDuration=Y+"ms"},
_styleTransitionTimingFunction:function(Y){this.$.contentContainer.style.transitionTimingFunction=Y;this.$.scrim.style.transitionTimingFunction=Y},
_translateDrawer:function(Y){var S=this.getWidth();this.position==="left"?(Y=Math.max(-S,Math.min(Y,0)),this.$.scrim.style.opacity=1+Y/S):(Y=Math.max(0,Math.min(Y,S)),this.$.scrim.style.opacity=1-Y/S);this.translate3d(Y+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var Y=this._drawerState;Y===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;Y!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),Y!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var Y=_.G5(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');Y.length>0?(this._firstTabStop=Y[0],this._lastTabStop=Y[Y.length-1]):
this._lastTabStop=this._firstTabStop=null;(Y=this.getAttribute("tabindex"))&&parseInt(Y,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(Y){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||Y.keyCode!==9||(Y.shiftKey?this._firstTabStop&&_.G5(Y).localTarget===this._firstTabStop&&(Y.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.G5(Y).localTarget===this._lastTabStop&&(Y.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(Y,S){this.toggleClass("visible",Y&&!S,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 Xm1;var Zr5;_.Kc({_template:function(){if(Zr5!==void 0)return Zr5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Xm1===void 0&&(Xm1=document.createElement("template"));var u=Xm1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return Zr5=Y},
is:"tp-yt-paper-progress",behaviors:[sMc],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(Y){this.toggleClass("indeterminate",Y,this.$.primaryProgress)},
_transformProgress:function(Y,S){Y.style.transform=Y.style.webkitTransform="scaleX("+S/100+")"},
_mainRatioChanged:function(Y){this._transformProgress(this.$.primaryProgress,Y)},
_progressChanged:function(Y,S,P,u,W){Y=this._clampValue(Y);S=this._clampValue(S);var m=this._calcRatio(Y)*100,J=this._calcRatio(S)*100;this._setSecondaryRatio(m);this._transformProgress(this.$.secondaryProgress,m);this._transformProgress(this.$.primaryProgress,J);this.secondaryProgress=Y;W?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",S);this.setAttribute("aria-valuemin",P);this.setAttribute("aria-valuemax",u)},
_disabledChanged:function(Y){this.setAttribute("aria-disabled",Y?"true":"false")},
_hideSecondaryProgress:function(Y){return Y===0}});var ir_;var of5;var tp1=function(){};
_.z=tp1.prototype;_.z.registered=function(){};
_.z.addOwnKeyBinding=function(){};
_.z.removeOwnKeyBindings=function(){};
_.z.keyboardEventMatchesKeys=function(){};
_.z._collectKeyBindings=function(){};
_.z._prepKeyBindings=function(){};
_.z._addKeyBinding=function(){};
_.z._resetKeyEventListeners=function(){};
_.z._listenKeyEventListeners=function(){};
_.z._unlistenKeyEventListeners=function(){};
_.z._onKeyBindingEvent=function(){};
_.z._triggerKeyHandler=function(){};
_.z._tapHandler=function(){};
_.z._focusChanged=function(){};
_.z._detectKeyboardFocus=function(){};
_.z._userActivate=function(){};
_.z._upHandler=function(){};
_.z._spaceKeyDownHandler=function(){};
_.z._spaceKeyUpHandler=function(){};
_.z._asyncClick=function(){};
_.z._pressedChanged=function(){};
_.z._ariaActiveAttributeChanged=function(){};
_.z._activeChanged=function(){};
_.z._controlStateChanged=function(){};
_.z._changedButtonState=function(){};
_.z._focusBlurHandler=function(){};
_.z._disabledChanged=function(){};
_.z._changedControlState=function(){};
_.z._buttonStateChanged=function(){};
_.z._downHandler=function(){};
_.z.ensureRipple=function(){};
_.z.getRipple=function(){};
_.z.hasRipple=function(){};
_.z._noinkChanged=function(){};
_.z._calcRatio=function(){};
_.z._clampValue=function(){};
_.z._calcStep=function(){};
_.z._validateValue=function(){};
_.z._update=function(){};
_.z._setImmediateValue=function(){};
_.z._setExpand=function(){};
_.z._setDragging=function(){};
_.z._setTransiting=function(){};
_.z._setMarkers=function(){};
_.z._setPressed=function(){};
_.z._setPointerDown=function(){};
_.z._setReceivedFocusFromKeyboard=function(){};
_.z._setFocused=function(){};
_.z._setRatio=function(){};
tp1=_.Kc({_template:function(){if(of5!==void 0)return of5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;ir_===void 0&&(ir_=document.createElement("template"));var u=ir_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return of5=Y},
is:"tp-yt-paper-slider",behaviors:[_.x1,_.Em,_.YsU,sMc],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&&_.Lo(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(Y,S,P){this.setAttribute("aria-valuemin",S);this.setAttribute("aria-valuemax",P);this.setAttribute("aria-valuenow",Y);this._positionKnob(this._calcRatio(Y)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(Y){this._setImmediateValue(this._calcStep(this._calcKnobPosition(Y)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(Y){return(this.max-this.min)*Y/100+this.min},
_onTrack:function(Y){Y.stopPropagation();switch(Y.detail.state){case "start":this._trackStart(Y);break;case "track":this._trackX(Y);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(Y){this.dragging||this._trackStart(Y);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,Y.detail.dx*(this._isRTL?-1:1)));Y=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(Y);Y=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(Y+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var Y=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;Y.transform=Y.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(Y){this._expandKnob();Y.preventDefault();this.focus()},
_bartrack:function(Y){this._allowBarEvent(Y)&&this._onTrack(Y)},
_barclick:function(Y){this._w=this.$.sliderBar.offsetWidth;var S=this.$.sliderBar.getBoundingClientRect();S=(Y.detail.x-S.left)/this._w*100;this._isRTL&&(S=100-S);var P=this.ratio;this._setTransiting(!0);this._positionKnob(S);P===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
Y.preventDefault();this.focus()},
_bardown:function(Y){this._allowBarEvent(Y)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(Y))},
_knobTransitionEnd:function(Y){Y.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(Y,S,P,u){u||this._setMarkers([]);S=Math.round((P-S)/this.step);S>Y&&(S=Y);if(S<0||!isFinite(S))S=0;this._setMarkers(Array(S))},
_mergeClasses:function(Y){return Object.keys(Y).filter(function(S){return Y[S]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(Y){return!this.ignoreBarTouch||Y.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(Y){this._isRTL?this._incrementKey(Y):this._decrementKey(Y)},
_rightKey:function(Y){this._isRTL?this._decrementKey(Y):this._incrementKey(Y)},
_incrementKey:function(Y){this.disabled||(Y.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),Y.preventDefault())},
_decrementKey:function(Y){this.disabled||(Y.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),Y.preventDefault())},
_changeValue:function(Y){this.value=Y.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(Y){Y.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.O2u._createRipple.call(this)},
_focusedChanged:function(Y){Y&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=Y?"":"none",this._ripple.holdDown=Y)}});var A7o;var UJI;var iQ=null,QM_=function(){};
_.z=QM_.prototype;_.z.fit=function(){};
_.z._discoverInfo=function(){};
_.z.resetFit=function(){};
_.z.refit=function(){};
_.z.position=function(){};
_.z.constrain=function(){};
_.z._sizeDimension=function(){};
_.z.__sizeDimension=function(){};
_.z.center=function(){};
_.z.__getNormalizedRect=function(){};
_.z.__getOffscreenArea=function(){};
_.z.__getPosition=function(){};
_.z.notifyResize=function(){};
_.z.assignParentResizable=function(){};
_.z.stopResizeNotificationsFor=function(){};
_.z._subscribeIronResize=function(){};
_.z._unsubscribeIronResize=function(){};
_.z.resizerShouldNotify=function(){};
_.z._onDescendantIronResize=function(){};
_.z._fireResize=function(){};
_.z._onIronRequestResizeNotifications=function(){};
_.z._parentResizableChanged=function(){};
_.z._notifyDescendant=function(){};
_.z._requestResizeNotifications=function(){};
_.z._findParent=function(){};
_.z.toggle=function(){};
_.z.open=function(){};
_.z.close=function(){};
_.z.cancel=function(){};
_.z.invalidateTabbables=function(){};
_.z._ensureSetup=function(){};
_.z._canceledChanged=function(){};
_.z._withBackdropChanged=function(){};
_.z._prepareRenderOpened=function(){};
_.z._finishRenderOpened=function(){};
_.z._finishRenderClosed=function(){};
_.z._preparePositioning=function(){};
_.z._finishPositioning=function(){};
_.z._applyFocus=function(){};
_.z._onCaptureClick=function(){};
_.z._onCaptureFocus=function(){};
_.z._onCaptureEsc=function(){};
_.z._onCaptureTab=function(){};
_.z._onIronResize=function(){};
_.z._onNodesChange=function(){};
_.z.__ensureFirstLastFocusables=function(){};
_.z.__openedChanged=function(){};
_.z.__deraf=function(){};
_.z.__updateScrollObservers=function(){};
_.z.__addScrollListeners=function(){};
_.z.__removeScrollListeners=function(){};
_.z.__isValidScrollAction=function(){};
_.z.__onCaptureScroll=function(){};
_.z.__saveScrollPosition=function(){};
_.z.__restoreScrollPosition=function(){};
_.z._setCanceled=function(){};
QM_=_.Kc({_template:function(){if(UJI!==void 0)return UJI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;A7o===void 0&&(A7o=document.createElement("template"));var u=A7o;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);return UJI=Y},
is:"tp-yt-paper-toast",behaviors:[_.ir],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(){_.bv._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.sm.requestAvailability()},
show:function(Y){typeof Y=="string"&&(Y={text:Y});for(var S in Y)S.indexOf("_")===0?_.bv._warn('The property "'+S+'" is private and was not set.'):S in this?this[S]=Y[S]:_.bv._warn('The property "'+S+'" is not valid.');this.open()},
hide:function(){this.close()},
__onTransitionEnd:function(Y){Y&&Y.target===this&&Y.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(iQ&&iQ!==this&&iQ.close(),iQ=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):iQ===this&&(iQ=null);_.ZW._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(Y){this.positionTarget=Y},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var kfd=new _.N("disablePersonalizationAction");var sKj=new _.N("showDmaConsentFlowCommand");var dyI=new _.N("showMmgNoticeCommand");var Mpu=new _.N("saveConsentAction");var y7j=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NI(Y)};
_.r(y7j,_.Gc);var NF_=_.YUX(y7j);var HrB=new _.N("updateTopbarAvatarAction");var Vpu=new _.N("channelHandleValidationResultRenderer");var e71=new _.N("generateHandleFromNameResultRenderer");var Oro=new _.N("channelHandleInputRenderer");var Ymu=new _.N("copyLinkRenderer");var SmX=new _.N("timedCommand");var Prj=new _.N("clearCookieAction");var uUI=new _.N("getMultiPageMenuAction");var Wl1=new _.N("addToGuideSectionAction"),zD6=new _.N("removeFromGuideSectionAction");var m7u=new _.N("updateNotificationsUnseenCountAction");var n16=new _.N("resetChannelUnreadCountCommand");var jS6=new _.N("resetSubscriptionsUnreadDotCommand");var Jn5=new _.N("selectLanguageCommand");var HA1=new _.N("sendFeedbackAction");var Bp1=new _.N("uploadImageToScottyCommand");var cnc=new _.N("registerPromoCommand");var Cr1=new _.N("setPushNotificationsEnabledCommand");var qmB=new _.N("desktopTopbarRenderer");var RDB=new _.N("surveyFollowUpRenderer");var x71=new _.N("handlesClaimingRadioOptionRenderer");var bDu=new _.N("hotkeyDialogRenderer");var Tp1=new _.N("modifyReportFormCommand");var Klj=new _.N("accountLinkCommand");var E1B=new _.N("accountUnlinkCommand");var fWX=new _.N("logAccountLinkingEventCommand");var g1I=new _.N("guideCollapsibleEntryRenderer");var $7I=new _.N("guideDownloadsEntryRenderer");var ow=new _.N("guideEntryRenderer");var rnd=new _.N("getLocationCommand");var G8Y=new _.N("locationCollectionCommand");var hDI=new _.N("storiesItemViewModel");var v15=new _.N("addToRemoteQueueAction");var D7I=new _.N("insertInRemoteQueueAction");var IWI=new _.N("removeFromRemoteQueueAction");var aWZ=new _.N("notificationRenderer");var E91=new _.N("localWatchHistoryCommand");var Llc=new _.N("pdgBuyFlowHeaderRenderer");var wY6=new _.N("pdgColorSliderRenderer");var pY6=new _.N("pdgCommentOptionRenderer");var Flo=new _.N("pdgCommentPreviewRenderer");var sSd=new _.N("superVodSelectableItemButtonRenderer");var d7o=new _.N("switchButtonRenderer");var lW1=new _.N("upsellDialogRenderer");var XYY=new _.N("feedbackQuestionRenderer"),ZDX=new _.N("feedbackOptionRenderer");var iD5=new _.N("sponsorshipsTierRenderer"),o1B=new _.N("sponsorshipsPromotionChannelRenderer");var tBZ=new _.N("simpleSurveyMessageRenderer");var HVo=new _.N("invokeInstrumentManagerAction");var AnB=new _.N("logYpcFlowDismissCommand");var U75=new _.N("logYpcFlowStartCommand");var QSo=new _.N("unlimitedCreateFamilyEndpoint");var k8I=new _.N("iconBadgeRenderer");var bAu=new _.N("collaborativePlaylistVisibilityValidationRule");var MBd=function(Y){_.Cl.call(this,"channelMessage");this.message=Y};
_.r(MBd,_.Cl);var ynZ=function(Y){_.Cl.call(this,"channelError");this.error=Y};
_.r(ynZ,_.Cl);var NpB={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"},HDY={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},VBB={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},eD1={NOW_PLAYING:"nowPlaying",
ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},ODo={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var tU=function(Y){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.PY;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";Y&&(this.id=Y.id||Y.name,this.name=Y.name,this.clientName=Y.clientName?Y.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=Y.app,this.type=Y.type||"REMOTE_CONTROL",this.username=Y.user||"",this.avatar=Y.userAvatarUri||"",this.obfuscatedGaiaId=Y.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=Y.ownerObfuscatedGaiaId||"",this.theme=Y.theme||"u",YwI(this,Y.capabilities||""),SwY(this,Y.compatibleSenderThemes||""),PO1(this,Y.experiments||""),
this.remoteControllerUrl=Y.remoteControllerUrl||"",this.localChannelEncryptionKey=Y.localChannelEncryptionKey||"",this.deviceContext=Y.deviceContext,this.brand=Y.brand||"",this.model=Y.model||"",this.year=Y.year||0,this.os=Y.os||"",this.osVersion=Y.osVersion||"",this.chipset=Y.chipset||"",this.mdxDialServerType=Y.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=Y.pairingType||"unknown",Y=Y.deviceInfo)&&(Y=JSON.parse(Y),this.brand=Y.brand||"",this.model=Y.model||"",this.year=Y.year||
0,this.os=Y.os||"",this.osVersion=Y.osVersion||"",this.chipset=Y.chipset||"",this.clientName=Y.clientName?Y.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=Y.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
tU.prototype.copy=function(){var Y={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(Y.brand=this.brand);
this.model&&(Y.model=this.model);this.year&&(Y.year=this.year);this.os&&(Y.os=this.os);this.osVersion&&(Y.osVersion=this.osVersion);this.chipset&&(Y.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(Y.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(Y.mdxDialServerType=this.mdxDialServerType);Y=new tU(Y);Y.connected=this.connected;Y.remoteControllerUrl=this.remoteControllerUrl;Y.localChannelEncryptionKey=this.localChannelEncryptionKey;Y.deviceContext=
this.deviceContext;return Y};
tU.prototype.equals=function(Y){return Y?this.id==Y.id:!1};
var YwI=function(Y,S){Y.capabilities.clear();_.ze(S.split(","),_.gP(_.RY.contains,NpB)).forEach(function(P){Y.capabilities.add(P)})},SwY=function(Y,S){Y.compatibleSenderThemes.clear();
_.ze(S.split(","),_.gP(_.RY.contains,HDY)).forEach(function(P){Y.compatibleSenderThemes.add(P)})},PO1=function(Y,S){Y.experiments.clear();
S.split(",").forEach(function(P){Y.experiments.add(P)})};var uZ1=function(Y,S){this.action=Y;this.params=S||{}};_.PW(ioX,_.R6);_.z=ioX.prototype;_.z.JSC$17344_onTick_=function(){this.JSC$17342_interval_=Math.min(3E5,this.JSC$17342_interval_*2);this.JSC$17344_listener_();this.nextTickTime_&&this.start()};
_.z.start=function(){var Y=this.JSC$17342_interval_+15E3*Math.random(),S=this.delay_;S.isActive()||S.start(Y);this.nextTickTime_=Date.now()+Y};
_.z.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.z.isActive=function(){return this.delay_.isActive()};
_.z.reset=function(){this.delay_.stop();this.JSC$17342_interval_=5E3};_.PW(Gb,LT1);_.z=Gb.prototype;_.z.subscribe=function(Y,S,P){return this.pubsub_.subscribe(Y,S,P)};
_.z.unsubscribe=function(Y,S,P){return this.pubsub_.unsubscribe(Y,S,P)};
_.z.unsubscribeByKey=function(Y){return this.pubsub_.unsubscribeByKey(Y)};
_.z.publish=function(Y,S){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.z.dispose=function(){this.JSC$17345_disposed_||(this.JSC$17345_disposed_=!0,_.oY(this.pubsub_),this.disconnect(),_.oY(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17345_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Cb({})})};
_.z.isDisposed=function(){return this.JSC$17345_disposed_};
_.z.connect=function(Y,S,P){var u=this,W,m,J,c;return _.B(function(C){if(C.nextAddress==1)return _.V3(C,2),u.useAsyncBrowserChannelHandler_?_.q(C,u.connectPromise_,2):C.jumpTo(2);_.Hx(C);if(u.JSC$17345_disposed_||u.JSC$17345_channel_&&u.JSC$17345_channel_.getState()==2)return C.return();u.sCookie_="";u.reconnectTimer_.stop();u.connectionParams_=Y||null;u.connectUi_=S||0;W=u.JSC$17345_pathPrefix_+"/test";m=u.JSC$17345_pathPrefix_+"/bind";J=new lQ(P?P.firstTestResults:null,P?P.secondTestResults:null,
u.enableAsyncTest_);if(c=u.JSC$17345_channel_)c.handler_=null;J.handler_=u;u.JSC$17345_channel_=J;if(u.useAsyncBrowserChannelHandler_)return u.connectPromise_=Wad(u).then(function(){return zSc(u,W,m,c,P)}),C.return(u.connectPromise_.then(function(){u.connectPromise_=_.Cb()}));
zSc(u,W,m,c,P);return _.e2(C,0)})};
var zSc=function(Y,S,P,u,W){m$5(Y);if(Y.JSC$17345_channel_){var m=_.X3("ID_TOKEN"),J=Y.JSC$17345_channel_.JSC$17297_extraHeaders_||{};m?J["x-youtube-identity-token"]=m:delete J["x-youtube-identity-token"];Y.JSC$17345_channel_.JSC$17297_extraHeaders_=J}npc(Y);u?(u.getState(),Y.JSC$17345_channel_.connect(S,P,Y.defaultQueryParams_,u.sid_,u.JSC$17297_lastArrayId_)):W?Y.JSC$17345_channel_.connect(S,P,Y.defaultQueryParams_,W.sessionId,W.arrayId):Y.JSC$17345_channel_.connect(S,P,Y.defaultQueryParams_)};
Gb.prototype.disconnect=function(Y){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Cb())}finally{this.disconnectUi_=Y||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),m$5(this),this.JSC$17345_channel_&&(this.JSC$17345_channel_.getState()==3&&Gf_(this.JSC$17345_channel_),this.JSC$17345_channel_.disconnect()),this.disconnectUi_=0}};
Gb.prototype.sendMessage=function(Y,S){var P=this,u;return _.B(function(W){switch(W.nextAddress){case 1:_.V3(W,2);if(!P.useAsyncBrowserChannelHandler_){W.jumpTo(2);break}return _.q(W,P.connectPromise_,2);case 2:_.Hx(W);if(P.JSC$17345_disposed_)return W.return();u={_sc:Y};S&&_.RY.extend(u,S);if(P.reconnectTimer_.isActive()||(P.JSC$17345_channel_?P.JSC$17345_channel_.getState():0)==2){P.JSC$17345_pendingMessages_.push(u);W.jumpTo(6);break}if(!P.isChannelOpened()){W.jumpTo(6);break}_.V3(W,8);if(!P.useAsyncBrowserChannelHandler_||
j8c(P,Y)){W.jumpTo(8);break}return _.q(W,Wad(P),8);case 8:_.Hx(W,0,0,1);P.isChannelOpened()&&(j8c(P,Y)||npc(P),m$5(P),r7Y(P.JSC$17345_channel_,u));_.e2(W,6,1);break;case 6:_.e2(W,0)}})};
var j8c=function(Y,S){return Y.enableMdxAuthForConnectionOnly_?!0:Y.disableMdxAuthForAdMessages_?Object.values(VBB).includes(S):Y.disableMdxAuthForNonPlaybackMessages_?!Object.values(eD1).includes(S):Y.disableMdxAuthForShortsMessages_?Object.values(ODo).includes(S):!1};
Gb.prototype.JSC$17304_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17345_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)Jf1(this);else{var Y=this.JSC$17345_pendingMessages_;this.JSC$17345_pendingMessages_=[];var S=Y.length;npc(this);BDB(this,Y,S);cfu(this)}else cfu(this)};
var Jf1=function(Y){var S,P;_.B(function(u){if(u.nextAddress==1)return _.V3(u,2),_.q(u,Wad(Y),2);_.Hx(u);S=Y.JSC$17345_pendingMessages_;Y.JSC$17345_pendingMessages_=[];P=S.length;BDB(Y,S,P);cfu(Y);return _.e2(u,0)})},BDB=function(Y,S,P){for(var u=0;u<P;++u)r7Y(Y.JSC$17345_channel_,S[u]);
cfu(Y)},cfu=function(Y){Y.publish("handlerOpened");
Y.JSC$17345_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.z=Gb.prototype;_.z.JSC$17304_channelError=function(Y){var S=Y==2&&this.JSC$17345_channel_.JSC$17297_lastStatusCode_==401;Y==4||S||this.reconnectTimer_.start();this.publish("handlerError",Y,S);S=Object.keys(xJ1).find(function(P){return xJ1[P]===Y});
this.JSC$17345_channelErrorCounter.increment("BROWSER_CHANNEL",S!=null?S:"UNKNOWN")};
_.z.JSC$17304_channelClosed=function(Y,S){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(S)for(var P=S.length,u=0;u<P;++u){var W=S[u].map;W&&this.JSC$17345_pendingMessages_.push(W)}this.JSC$17345_channelClosedCounter.increment("BROWSER_CHANNEL");Y&&this.pendingMapsOnClosedCounter.JSC$7801_streamzService.JSC$7659_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",Y.length);S&&this.undeliveredMapsOnClosedCounter.JSC$7804_streamzService.JSC$7659_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
S.length)};
_.z.JSC$17304_channelSuccess=function(Y,S){S!=null&&Y!=null&&this.channelMessageSentCounter.increment()};
_.z.JSC$17304_getAdditionalParams=function(){var Y={v:2};this.sCookie_&&(Y.gsessionid=this.sCookie_);this.connectUi_!=0&&(Y.ui=""+this.connectUi_);this.disconnectUi_!=0&&(Y.ui=""+this.disconnectUi_);this.connectionParams_&&_.RY.extend(Y,this.connectionParams_);return Y};
_.z.JSC$17304_channelHandleArray=function(Y){Y[0]=="S"?this.sCookie_=Y[1]:Y[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17345_channel_.disconnect()):this.publish("handlerMessage",new uZ1(Y[0],Y[1]));this.JSC$17345_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.z.isChannelOpened=function(){return!!this.JSC$17345_channel_&&this.JSC$17345_channel_.getState()==3};
var m$5=function(Y){if(Y.JSC$17345_channel_){var S=Y.JSC$17345_getXsrfToken_(),P=Y.JSC$17345_channel_.JSC$17297_extraHeaders_||{};S?P["x-youtube-lounge-xsrf-token"]=S:delete P["x-youtube-lounge-xsrf-token"];Y.JSC$17345_channel_.JSC$17297_extraHeaders_=P}},Wad=function(Y){if(Y.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Cb();
if(!Y.enableCachedUpdateAuthorizationHeader_)return COB(Y);Y.updateAuthorizationHeaderPromise_===null&&(Y.updateAuthorizationHeaderPromise_=COB(Y));return Y.updateAuthorizationHeaderPromise_},COB=function(Y){return _.gy(Y.getAuthorizationHeader_().then(function(S){qw1(Y,S)}).thenCatch(function(){}),function(){Y.updateAuthorizationHeaderPromise_=null})},qw1=function(Y,S){if(Y.JSC$17345_channel_){var P=Y.JSC$17345_channel_.JSC$17297_extraHeaders_||{};
S&&Object.keys(S).length>0?P=Object.assign({},P,S):delete P.Authorization;Y.JSC$17345_channel_.JSC$17297_extraHeaders_=P}},npc=function(Y){Y.getAuthorizationHeaderSync_&&!Y.useAsyncBrowserChannelHandler_&&qw1(Y,Y.getAuthorizationHeaderSync_())};
_.z=Gb.prototype;_.z.setLoungeToken=function(Y){(this.defaultQueryParams_.loungeIdToken=Y)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17345_channel_){var S=this.JSC$17345_channel_.JSC$17297_extraHeaders_||{};Y?S["X-YouTube-LoungeId-Token"]=Y:delete S["X-YouTube-LoungeId-Token"];this.JSC$17345_channel_.JSC$17297_extraHeaders_=S}};
_.z.getDeviceId=function(){return this.defaultQueryParams_.id};
_.z.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.z.reconnect=function(){var Y=this.reconnectTimer_;Y.delay_.fire();Y.start()};
_.z.safeReconnect_=function(){var Y=this.JSC$17345_channel_,S=0;Y.JSC$17297_backChannelRequest_&&S++;Y.forwardChannelRequest_&&S++;S==0&&this.connect(this.connectionParams_,this.connectUi_)};var wS=function(Y,S){var P=Y.basePath;Y.supportCors&&(P=Y.scheme+"://"+Y.domain+Y.port+Y.basePath);return _.NP(P+S,{})};
hX.prototype.sendRequest=function(Y,S,P,u,W,m,J){Y={format:m?"RAW":"JSON",method:Y,context:this,timeout:5E3,withCredentials:!!J,onSuccess:_.gP(this.JSC$17350_onSuccess_,u,!m),onError:_.gP(this.onError_,W),onTimeout:_.gP(this.JSC$17350_onTimeout_,W)};P&&(Y.postParams=P,Y.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.qY(S,Y)};
hX.prototype.JSC$17350_onSuccess_=function(Y,S,P,u){S?Y(u):Y({text:P.responseText})};
hX.prototype.onError_=function(Y,S){Y(Error("Ck`"+S.status))};
hX.prototype.JSC$17350_onTimeout_=function(Y){Y(Error("Dk"))};var Dx=function(Y,S){return!!S&&(Y.id==S||Y.uuid==S)},RSu=function(Y){return{name:Y.name,
screenId:Y.id,loungeToken:Y.token,dialId:Y.uuid,screenIdType:Y.idType}},x$6=function(Y){return new vr(Y)},bP5=function(Y){return Array.isArray(Y)?_.b9(Y,x$6):[]},Nfj=function(Y){if(!Y)return"null";
var S=Y.token?".."+Y.token.slice(-6):"-",P=Y.uuid?".."+Y.uuid.slice(-6):"-";return'{name:"'+Y.name+'",id:'+Y.id.substr(0,6)+"..,token:"+(S+",uuid:"+P+",idType:"+Y.idType+"}")},r95=function(Y){return Array.isArray(Y)?"["+_.b9(Y,Nfj).join(",")+"]":"null"};var uvX="",Ln=null;var C6_=function(Y,S){_.Tj.call(this);var P=this;this.handler=Y();this.handler.subscribe("handlerOpened",this.JSC$17357_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(u,W){P.onError(W)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=S};
_.r(C6_,_.Tj);_.z=C6_.prototype;_.z.connect=function(Y,S,P){this.handler.connect(Y,S,P)};
_.z.disconnect=function(Y){this.handler.disconnect(Y)};
_.z.reconnect=function(){this.handler.reconnect()};
_.z.getDeviceId=function(){return this.handler.getDeviceId()};
_.z.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.z.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.z.JSC$17357_onOpened=function(){this.dispatchEvent("channelOpened");var Y=this.handler,S=this.currentScreenId;_.PU("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!Y.JSC$17345_channel_.useChunked_,sessionId:Y.JSC$17345_channel_.sid_,arrayId:Y.JSC$17345_channel_.JSC$17297_lastArrayId_});_.PU("yt-remote-session-screen-id",S);Y=Vr5();S=eTY();_.Au(Y,S)||Y.push(S);P65(Y);S21()};
_.z.onClosed=function(){this.dispatchEvent("channelClosed")};
_.z.onMessage=function(Y){this.dispatchEvent(new MBd(Y))};
_.z.onError=function(Y){this.dispatchEvent(new ynZ(Y?1:0))};
_.z.sendMessage=function(Y,S){this.handler.sendMessage(Y,S)};
_.z.setLoungeToken=function(Y){this.handler.setLoungeToken(Y)};
_.z.dispose=function(){this.handler.dispose()};var c9X=function(Y,S,P){var u=this;P=P===void 0?function(){return""}:P;
var W=W===void 0?new tdB:W;var m=m===void 0?new _.x2:m;this.pathPrefix=Y;this.defaultQueryParams=S;this.getXsrfToken=P;this.JSC$17360_pubsub=m;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new ioX(function(){var J;((J=u.channel)==null?void 0:Tgj((new QxX(J,J.JSC$17268_channel_)).JSC$17278_channel_.forwardChannelRequestPool_))===0&&u.connect(u.connectionParams,u.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17360_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17360_channelOpenedCounter=new oyY;this.JSC$17360_channelClosedCounter=new tru;this.JSC$17360_channelMessageReceivedCounter=new Uzo;this.JSC$17360_channelErrorCounter=new QWX};
c9X.prototype.connect=function(Y,S){Y=Y===void 0?{}:Y;S=S===void 0?0:S;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=Y,this.connectUi=S,TDI(this),(Y=_.X3("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=Y:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new aw(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,Kac(this))};
var Kac=function(Y){_.b2(Y.channel,"w",function(){Y.channelState=3;Y.reconnectTimer.reset();Y.connectionParams=null;Y.connectUi=0;for(var S=_.n(Y.nonAckedMessagesOnChannelClosed),P=S.next();!P.done;P=S.next())P=P.value,Y.channel&&Y.channel.send(P);Y.nonAckedMessagesOnChannelClosed=[];Y.publish("webChannelOpened");Y.JSC$17360_channelOpenedCounter.increment("WEB_CHANNEL")});
_.b2(Y.channel,"x",function(){Y.channelState=0;Y.reconnectTimer.isActive()||Y.publish("webChannelClosed");var S,P=(S=Y.channel)==null?void 0:kr6(new QxX(S,S.JSC$17268_channel_));P&&(Y.nonAckedMessagesOnChannelClosed=[].concat(_.cz(P)));Y.JSC$17360_channelClosedCounter.increment("WEB_CHANNEL")});
_.b2(Y.channel,"z",function(S){var P=S.data;P[0]==="gracefulReconnect"?(Y.reconnectTimer.start(),Y.channel&&Y.channel.close()):Y.publish("webChannelMessage",new uZ1(P[0],P[1]));Y.lastStatusCode=S.statusCode;Y.JSC$17360_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.b2(Y.channel,"y",function(){Y.lastStatusCode===401||Y.reconnectTimer.start();Y.publish("webChannelError");Y.JSC$17360_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.z=c9X.prototype;_.z.disconnect=function(Y){this.disconnectUi=Y===void 0?0:Y;this.reconnectTimer.stop();TDI(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.z.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.z.reconnect=function(){var Y=this.reconnectTimer;Y.delay_.fire();Y.start()};
_.z.sendMessage=function(Y,S){this.channel&&(TDI(this),Y=Object.assign({},{_sc:Y},S),this.channel.send(Y))};
_.z.setLoungeToken=function(Y){Y||this.reconnectTimer.stop();Y?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=Y:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var TDI=function(Y){var S=Y.getXsrfToken();S?Y.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=S:delete Y.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.z=c9X.prototype;_.z.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.z.publish=function(Y){return this.JSC$17360_pubsub.publish.apply(this.JSC$17360_pubsub,[Y].concat(_.cz(_.Ch.apply(1,arguments))))};
_.z.subscribe=function(Y,S,P){return this.JSC$17360_pubsub.subscribe(Y,S,P)};
_.z.unsubscribe=function(Y,S,P){return this.JSC$17360_pubsub.unsubscribe(Y,S,P)};
_.z.unsubscribeByKey=function(Y){return this.JSC$17360_pubsub.unsubscribeByKey(Y)};
_.z.dispose=function(){this.JSC$17360_disposed||(this.JSC$17360_disposed=!0,_.oY(this.JSC$17360_pubsub),this.disconnect(),_.oY(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.z.isDisposed=function(){return this.JSC$17360_disposed};var Bfc=function(Y){_.Tj.call(this);this.webChannelService=Y();this.webChannelService.subscribe("webChannelOpened",this.JSC$17368_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.r(Bfc,_.Tj);_.z=Bfc.prototype;_.z.connect=function(Y,S){this.webChannelService.connect(Y,S)};
_.z.disconnect=function(Y){this.webChannelService.disconnect(Y)};
_.z.reconnect=function(){this.webChannelService.reconnect()};
_.z.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.z.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.z.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.z.JSC$17368_onOpened=function(){this.dispatchEvent("channelOpened")};
_.z.onClosed=function(){this.dispatchEvent("channelClosed")};
_.z.onMessage=function(Y){this.dispatchEvent(new MBd(Y))};
_.z.onError=function(){this.dispatchEvent(new ynZ(this.webChannelService.lastStatusCode===401?1:0))};
_.z.sendMessage=function(Y,S){this.webChannelService.sendMessage(Y,S)};
_.z.setLoungeToken=function(Y){this.webChannelService.setLoungeToken(Y)};
_.z.dispose=function(){this.webChannelService.dispose()};var $q_=Date.now(),pn=null,fCd=Array(50),dS=-1,g5Y=!1;_.PW(lU,_.QC);lU.prototype.getScreens=function(){return this.screens};
lU.prototype.contains=function(Y){return!!Ho5(this.screens,Y)};
lU.prototype.get=function(Y){return Y?I0(this.screens,Y):null};
var EpX=function(Y,S){var P=Y.get(S.uuid)||Y.get(S.id);if(P)return Y=P.name,P.id=S.id||P.id,P.name=S.name,P.token=S.token,P.uuid=S.uuid||P.uuid,P.name!=Y;Y.screens.push(S);return!0},fPX=function(Y,S){var P=Y.screens.length!=S.length;
Y.screens=_.ze(Y.screens,function(m){return!!Ho5(S,m)});
for(var u=S.length,W=0;W<u;W++)P=EpX(Y,S[W])||P;return P},gpd=function(Y,S){var P=Y.screens.length;
Y.screens=_.ze(Y.screens,function(u){return!(u||S?!u!=!S?0:u.id==S.id:1)});
return Y.screens.length<P};
lU.prototype.info=function(Y){F1(this.JSC$17369_logName_,Y)};var $$c=function(Y,S,P,u,W){_.QC.call(this);this.JSC$17372_http_=Y;this.pairingCode_=S;this.deviceId_=P;this.friendlyName_=u;this.enableShortLivedLoungeToken_=W;this.pollIndex_=0;this.JSC$17372_xhr_=null;this.JSC$17372_timer_=NaN};
_.r($$c,_.QC);_.z=$$c.prototype;_.z.start=function(){!this.JSC$17372_xhr_&&isNaN(this.JSC$17372_timer_)&&this.poll_()};
_.z.stop=function(){this.JSC$17372_xhr_&&(this.JSC$17372_xhr_.abort(),this.JSC$17372_xhr_=null);isNaN(this.JSC$17372_timer_)||(_.cQ(this.JSC$17372_timer_),this.JSC$17372_timer_=NaN)};
_.z.disposeInternal=function(){this.stop();_.QC.prototype.disposeInternal.call(this)};
_.z.poll_=function(){this.JSC$17372_timer_=NaN;this.JSC$17372_xhr_=_.qY(wS(this.JSC$17372_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.xS)(this.JSC$17374_onSuccess_,this),onError:(0,_.xS)(this.onError_,this),onTimeout:(0,_.xS)(this.JSC$17374_onTimeout_,this)})};
_.z.JSC$17374_onSuccess_=function(Y,S){this.JSC$17372_xhr_=null;Y=S.screen||{};Y.dialId=this.deviceId_;Y.name=this.friendlyName_;S=-1;this.enableShortLivedLoungeToken_&&Y.shortLivedLoungeToken&&Y.shortLivedLoungeToken.value&&Y.shortLivedLoungeToken.refreshIntervalMs&&(Y.screenIdType="shortLived",Y.loungeToken=Y.shortLivedLoungeToken.value,S=Y.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new vr(Y),S)};
_.z.onError_=function(Y){this.JSC$17372_xhr_=null;Y.status&&Y.status==404?this.pollIndex_>=rfo.length?this.publish("pairingFailed",Error("Ek")):(Y=rfo[this.pollIndex_],this.JSC$17372_timer_=_.Jc((0,_.xS)(this.poll_,this),Y),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+Y.status))};
_.z.JSC$17374_onTimeout_=function(){this.JSC$17372_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var rfo=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.PW(Zx,lU);_.z=Zx.prototype;_.z.start=function(){X1(this)&&this.publish("screenChange");!_.u4("yt-remote-lounge-token-expiration")&&GNY(this);_.cQ(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Jc((0,_.xS)(this.start,this),1E4)};
_.z.add=function(Y,S){X1(this);EpX(this,Y);hSI(this,!1);this.publish("screenChange");S(Y);Y.token||GNY(this)};
_.z.remove=function(Y,S){var P=X1(this);gpd(this,Y)&&(hSI(this,!1),P=!0);S(Y);P&&this.publish("screenChange")};
_.z.updateName=function(Y,S,P,u){var W=X1(this),m=this.get(Y.id);m?(m.name!=S&&(m.name=S,hSI(this,!1),W=!0),P(Y)):u(Error("Hk"));W&&this.publish("screenChange")};
_.z.disposeInternal=function(){_.cQ(this.loungeTokenRefreshTimer_);Zx.superClass_.disposeInternal.call(this)};
var GNY=function(Y){if(Y.screens.length){var S=_.b9(Y.screens,function(u){return u.id}),P=wS(Y.JSC$17376_http_,"/pairing/get_lounge_token_batch");
Y.JSC$17376_http_.sendRequest("POST",P,{screen_ids:S.join(",")},(0,_.xS)(Y.handleLoungeTokens_,Y),(0,_.xS)(Y.handleLoungeTokenError_,Y))}};
Zx.prototype.handleLoungeTokens_=function(Y){X1(this);var S=this.screens.length;Y=Y&&Y.screens||[];for(var P=Y.length,u=0;u<P;++u){var W=Y[u],m=this.get(W.screenId);m&&(m.token=W.loungeToken,--S)}hSI(this,!S);S&&F1(this.JSC$17369_logName_,"Missed "+S+" lounge tokens.")};
Zx.prototype.handleLoungeTokenError_=function(Y){F1(this.JSC$17369_logName_,"Requesting lounge tokens failed: "+Y)};
var X1=function(Y){if(_.f("deprecate_pair_servlet_enabled"))return fPX(Y,[]);var S=bP5(zjI());S=_.ze(S,function(P){return!P.uuid});
return fPX(Y,S)},hSI=function(Y,S){n5B(_.b9(Y.screens,RSu));
S&&mqc()};var AU=function(Y,S){_.QC.call(this);this.getScreensToCheck_=S;S=(S=_.u4("yt-remote-online-screen-ids")||"")?S.split(","):[];for(var P={},u=this.getScreensToCheck_(),W=u.length,m=0;m<W;++m){var J=u[m].id;P[J]=_.Au(S,J)}this.screenIdSet_=P;this.JSC$17379_http_=Y;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;vpB("Initialized with "+(0,_.Gj)(this.screenIdSet_))};
_.r(AU,_.QC);AU.prototype.isOnline=function(Y){return!!this.screenIdSet_[Y]};
AU.prototype.start=function(){var Y=parseInt(_.u4("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.S5()-144E5<Y?0:Y)?D$Z(this):(this.fastCheckEndTime_=_.S5()+3E5,_.PU("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
AU.prototype.isEmpty=function(){return _.RY.isEmpty(this.screenIdSet_)};
AU.prototype.update=function(){vpB("Updating availability on schedule.");var Y=this.getScreensToCheck_(),S=_.RY.filter(this.screenIdSet_,function(P,u){return P&&!!I0(Y,u)},this);
IPc(this,S)};
var aPj=function(Y,S,P){var u=wS(Y.JSC$17379_http_,"/pairing/get_screen_availability");Y.JSC$17379_http_.sendRequest("POST",u,{lounge_token:S.token},(0,_.xS)(function(W){W=W.screens||[];for(var m=W.length,J=0;J<m;++J)if(W[J].loungeToken==S.token){P(W[J].status=="online");return}P(!1)},Y),(0,_.xS)(function(){P(!1)},Y))};
AU.prototype.disposeInternal=function(){_.cQ(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.QC.prototype.disposeInternal.call(this)};
var IPc=function(Y,S){a:if(_.RY.getCount(S)!=_.RY.getCount(Y.screenIdSet_))var P=!1;else{P=_.RY.getKeys(S);for(var u=P.length,W=0;W<u;++W)if(!Y.screenIdSet_[P[W]]){P=!1;break a}P=!0}P||(vpB("Updated online screens: "+(0,_.Gj)(Y.screenIdSet_)),Y.screenIdSet_=S,Y.publish("screenChange"));Lao(Y)},D$Z=function(Y){isNaN(Y.refreshTimer_)||_.cQ(Y.refreshTimer_);
Y.refreshTimer_=_.Jc((0,_.xS)(Y.requestScreenAvailability_,Y),Y.fastCheckEndTime_>0&&Y.fastCheckEndTime_<_.S5()?2E4:1E4)};
AU.prototype.requestScreenAvailability_=function(){_.cQ(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var Y=wgX(this);if(_.RY.getCount(Y)){var S=wS(this.JSC$17379_http_,"/pairing/get_screen_availability"),P={lounge_token:_.RY.getKeys(Y).join(",")};this.currentRequest_=this.JSC$17379_http_.sendRequest("POST",S,P,(0,_.xS)(this.onScreenAvailability_,this,Y),(0,_.xS)(this.onScreenAvailabilityError_,this))}else IPc(this,{}),D$Z(this)};
AU.prototype.onScreenAvailability_=function(Y,S){this.currentRequest_=null;var P=_.RY.getKeys(wgX(this));if(_.Wt(P,_.RY.getKeys(Y))){S=S.screens||[];P={};for(var u=S.length,W=0;W<u;++W)P[Y[S[W].loungeToken]]=S[W].status=="online";IPc(this,P);D$Z(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
AU.prototype.onScreenAvailabilityError_=function(Y){this.warn_("Screen availability failed: "+Y);this.currentRequest_=null;D$Z(this)};
var vpB=function(Y){F1("OnlineScreenService",Y)};
AU.prototype.warn_=function(Y){F1("OnlineScreenService",Y)};
var wgX=function(Y){var S={};_.Q4(Y.getScreensToCheck_(),function(P){P.token?S[P.token]=P.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return S},Lao=function(Y){Y=_.RY.getKeys(_.RY.filter(Y.screenIdSet_,function(S){return S}));
Y.sort(_.gYa);Y.length?_.PU("yt-remote-online-screen-ids",Y.join(","),60):_.WU("yt-remote-online-screen-ids")};_.PW(iU,lU);_.z=iU.prototype;_.z.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.z.add=function(Y,S,P){this.localScreenService_.add(Y,S,P)};
_.z.remove=function(Y,S,P){this.localScreenService_.remove(Y,S,P);this.onlineScreenService_.update()};
_.z.updateName=function(Y,S,P,u){this.localScreenService_.contains(Y)?this.localScreenService_.updateName(Y,S,P,u):(Y="Updating name of unknown screen: "+Y.name,F1(this.JSC$17369_logName_,Y),u(Error(Y)))};
_.z.getScreens=function(Y){return Y?this.screens:fA1(this.screens,_.ze(this.automaticScreens_,function(S){return!this.contains(S)},this))};
_.z.JSC$17384_getOnlineScreens=function(){return _.ze(this.getScreens(!0),function(Y){return this.onlineScreenService_.isOnline(Y.id)},this)};
var FaX=function(Y,S,P,u,W,m){Y.info("getAutomaticScreenByIds "+P+" / "+S);P||(P=Y.deviceToScreenId_[S]);var J=Y.getScreens(),c=P?I0(J,P):null;P&&(Y.disableAutomaticScreenCache_||c)||(c=I0(J,S));if(c){c.uuid=S;var C=U3(Y,c);aPj(Y.onlineScreenService_,C,function(x){W(x?C:null)})}else P?pgu(Y,P,(0,_.xS)(function(x){var b=U3(this,new vr({name:u,
screenId:P,loungeToken:x,dialId:S||""}));aPj(this.onlineScreenService_,b,function(T){W(T?b:null)})},Y),m):W(null)};
iU.prototype.JSC$17384_getScreenByPollingPairingCode=function(Y,S,P,u,W,m){var J=this;this.info("getDialScreenByPairingCode "+Y+" / "+S);var c=new $$c(this.JSC$17382_http_,Y,S,P,u);c.subscribe("pairingComplete",function(C,x){_.oY(c);W(U3(J,C),x)});
c.subscribe("pairingFailed",function(C){_.oY(c);m(C)});
c.start();return(0,_.xS)(c.stop,c)};
var s8Z=function(Y,S){for(var P=Y.screens.length,u=0;u<P;++u)if(Y.screens[u].name==S)return Y.screens[u];return null};
iU.prototype.JSC$17384_getScreenByPairingCode=function(Y,S,P,u){_.qY(wS(this.JSC$17382_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:Y},timeout:5E3,onSuccess:(0,_.xS)(function(W,m){W=new vr(m.screen||{});if(!W.name||s8Z(this,W.name)){a:{m=W.name;for(var J=2,c=S(m,J);s8Z(this,c);){J++;if(J>20)break a;c=S(m,J)}m=c}W.name=m}P(U3(this,W))},this),
onError:(0,_.xS)(function(W){u(Error("Ik`"+W.status))},this),
onTimeout:(0,_.xS)(function(){u(Error("Jk"))},this)})};
var d$5=function(Y,S,P){aPj(Y.onlineScreenService_,S,P)};
iU.prototype.disposeInternal=function(){_.oY(this.localScreenService_);_.oY(this.onlineScreenService_);iU.superClass_.disposeInternal.call(this)};
var pgu=function(Y,S,P,u){Y.info("requestLoungeToken_ for "+S);var W={postParams:{screen_ids:S},method:"POST",context:Y,onSuccess:function(m,J){m=J&&J.screens||[];m[0]&&m[0].screenId==S?P(m[0].loungeToken):u(Error("Kk"))},
onError:function(){u(Error("Lk"))}};
_.qY(wS(Y.JSC$17382_http_,"/pairing/get_lounge_token_batch"),W)},lPu=function(Y){Y.screens=Y.localScreenService_.getScreens();
for(var S=_.RY.transpose(Y.deviceToScreenId_),P=Y.screens.length,u=0;u<P;++u){var W=Y.screens[u];W.uuid=S[W.id]||""}Y.info("Updated manual screens: "+r95(Y.screens))};
iU.prototype.handleScreenChange_=function(){lPu(this);this.publish("screenChange");this.onlineScreenService_.update()};
var G5Y=function(Y){XgY(Y);Y.localScreenService_=new Zx(Y.JSC$17382_http_);Y.localScreenService_.subscribe("screenChange",(0,_.xS)(Y.handleScreenChange_,Y));lPu(Y);Y.disableAutomaticScreenCache_||(Y.automaticScreens_=bP5(_.u4("yt-remote-automatic-screen-cache")||[]));XgY(Y);Y.info("Initializing automatic screens: "+r95(Y.automaticScreens_));Y.onlineScreenService_=new AU(Y.JSC$17382_http_,(0,_.xS)(Y.getScreens,Y,!0));Y.onlineScreenService_.subscribe("screenChange",(0,_.xS)(function(){this.publish("onlineScreenChange")},
Y))},U3=function(Y,S){var P=Y.get(S.id);
P?(P.uuid=S.uuid,S=P):((P=I0(Y.automaticScreens_,S.uuid))?(P.id=S.id,P.token=S.token,S=P):Y.automaticScreens_.push(S),Y.disableAutomaticScreenCache_||ZPB(Y));XgY(Y);Y.deviceToScreenId_[S.uuid]=S.id;_.PU("yt-remote-device-id-map",Y.deviceToScreenId_,31536E3);return S},ZPB=function(Y){Y=_.ze(Y.automaticScreens_,function(S){return S.idType!="shortLived"});
_.PU("yt-remote-automatic-screen-cache",_.b9(Y,RSu))},XgY=function(Y){Y.deviceToScreenId_=_.u4("yt-remote-device-id-map")||{}};
iU.prototype.dispose=iU.prototype.dispose;_.PW(o0,_.QC);var Qr=function(Y,S){Y.screen_=S;Y.publish("sessionScreen",Y.screen_)},iP5=function(Y,S){Y.screen_&&(Y.screen_.token=S,U3(Y.JSC$17386_screenService_,Y.screen_));
Y.publish("sessionScreen",Y.screen_)};
o0.prototype.onSessionStopped=function(Y){this.isDisposed()||(Y&&(kr(this,""+Y),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
o0.prototype.info=function(Y){F1(this.JSC$17386_logName_,Y)};
var kr=function(Y,S){F1(Y.JSC$17386_logName_,S)};
o0.prototype.JSC$17388_getCastSession=function(){return null};
o0.prototype.setDisplayStatus=function(Y){var S=this.receiver_;Y?(S.displayStatus=new chrome.cast.ReceiverDisplayStatus(Y,[]),S.displayStatus.showStop=!0):S.displayStatus=null;chrome.cast.setReceiverDisplayStatus(S,(0,_.xS)(function(){this.info("Updated receiver status for "+S.friendlyName+": "+Y)},this),(0,_.xS)(function(){kr(this,"Failed to update receiver status for: "+S.friendlyName)},this))};
o0.prototype.disposeInternal=function(){this.setDisplayStatus("");o0.superClass_.disposeInternal.call(this)};var MO=function(Y,S,P){o0.call(this,Y,S,"CastSession");var u=this;this.config_=P;this.JSC$17391_session_=null;this.JSC$17391_boundSessionUpdate_=(0,_.xS)(this.JSC$17393_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.xS)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Jc(function(){op_(u,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17391_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17391_isInitLoungeToken_=!1;this.JSC$17391_lastLoungeTokenRefreshError_="unknown"};
_.r(MO,o0);_.z=MO.prototype;
_.z.setCastSession=function(Y){if(this.JSC$17391_session_){if(this.JSC$17391_session_==Y)return;kr(this,"Overriding cast session with new session object");tTd(this);this.JSC$17391_isInitLoungeToken_=!1;this.JSC$17391_lastLoungeTokenRefreshError_="unknown";this.JSC$17391_session_.removeUpdateListener(this.JSC$17391_boundSessionUpdate_);this.JSC$17391_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17391_session_=Y;this.JSC$17391_session_.addUpdateListener(this.JSC$17391_boundSessionUpdate_);this.JSC$17391_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);Af5(this,"getMdxSessionStatus")};
_.z.launchWithParams=function(Y){this.info("launchWithParams no-op for Cast: "+(0,_.Gj)(Y))};
_.z.stop=function(){if(this.JSC$17391_session_)this.JSC$17391_session_.stop((0,_.xS)(function(){this.onSessionStopped()},this),(0,_.xS)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.z.setDisplayStatus=function(){};
_.z.disposeInternal=function(){this.info("disposeInternal");tTd(this);this.JSC$17391_session_&&(this.JSC$17391_session_.removeUpdateListener(this.JSC$17391_boundSessionUpdate_),this.JSC$17391_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17391_session_=null;o0.prototype.disposeInternal.call(this)};
var Q8o=function(Y,S){_.cQ(Y.getLoungeTokenTimeoutKey_);Y.getLoungeTokenTimeoutKey_=0;S==0?U$_(Y):Y.getLoungeTokenTimeoutKey_=_.Jc(function(){U$_(Y)},S)},U$_=function(Y){Af5(Y,"getLoungeToken");
_.cQ(Y.onLoungeTokenTimeoutKey_);Y.onLoungeTokenTimeoutKey_=_.Jc(function(){kNB(Y,null)},3E4)},Af5=function(Y,S){Y.info("sendYoutubeMessage_: "+S+" "+(0,_.Gj)(void 0));
var P={};P.type=S;Y.JSC$17391_session_?Y.JSC$17391_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",P,function(){},(0,_.xS)(function(){kr(this,"Failed to send message: "+S+".")},Y)):kr(Y,"Sending yt message without session: "+(0,_.Gj)(P))};
MO.prototype.onYoutubeMessage_=function(Y,S){if(!this.isDisposed())if(S)if(S=(0,_.DC)(S),_.SS(S))switch(Y=""+S.type,S=S.data||{},this.info("onYoutubeMessage_: "+Y+" "+(0,_.Gj)(S)),Y){case "mdxSessionStatus":op_(this,S);break;case "loungeToken":kNB(this,S);break;default:kr(this,"Unknown youtube message: "+Y)}else kr(this,"Unable to parse message.");else kr(this,"No data in message.")};
var MTo=function(Y,S){if(S)Y.info("onConnectedScreenId_: Received screenId: "+S),Y.screen_&&Y.screen_.id==S||Y.getScreen_(S,function(P){Qr(Y,P)},function(){return Y.onSessionStopped()},5);
else Y.onSessionStopped(Error("Ok"))},ND5=function(Y,S,P){Y.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(S));
var u=new vr(S);yf1(Y,u,function(W){W?(Y.JSC$17391_isInitLoungeToken_=!0,U3(Y.JSC$17386_screenService_,u),Qr(Y,u),Y.JSC$17391_lastLoungeTokenRefreshError_="unknown",Q8o(Y,P)):(_.ik(Error("Pk`"+JSON.stringify(S))),Y.onSessionStopped())},5)},op_=function(Y,S){_.cQ(Y.sessionStatusTimeoutKey_);
Y.sessionStatusTimeoutKey_=0;if(S)Y.config_.enableCastLoungeToken&&S.loungeToken?S.deviceId?Y.screen_&&Y.screen_.uuid==S.deviceId||(S.loungeTokenRefreshIntervalMs?ND5(Y,{name:Y.receiver_.friendlyName,screenId:S.screenId,loungeToken:S.loungeToken,dialId:S.deviceId,screenIdType:"shortLived"},S.loungeTokenRefreshIntervalMs):(_.ik(Error("Rk`"+JSON.stringify(S))),MTo(Y,S.screenId))):(_.ik(Error("Qk`"+JSON.stringify(S))),MTo(Y,S.screenId)):MTo(Y,S.screenId);else Y.onSessionStopped(Error("Ok"))},kNB=function(Y,
S){_.cQ(Y.onLoungeTokenTimeoutKey_);
Y.onLoungeTokenTimeoutKey_=0;var P=null;if(S)if(S.loungeToken){var u;((u=Y.screen_)==null?void 0:u.token)==S.loungeToken&&(P="staleLoungeToken")}else P="missingLoungeToken";else P="noLoungeTokenResponse";P?(Y.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(S)+", error: "+P)),Y.JSC$17391_lastLoungeTokenRefreshError_=P,Q8o(Y,3E4)):(iP5(Y,S.loungeToken),Y.JSC$17391_isInitLoungeToken_=!1,Y.JSC$17391_lastLoungeTokenRefreshError_="unknown",Q8o(Y,S.loungeTokenRefreshIntervalMs))};
MO.prototype.getScreen_=function(Y,S,P,u){_.cQ(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;FaX(this.JSC$17386_screenService_,this.receiver_.label,Y,this.receiver_.friendlyName,(0,_.xS)(function(W){W?S(W):u>=0?(kr(this,"Screen "+Y+" appears to be offline. "+u+" retries left."),this.getScreenTimeoutKey_=_.Jc((0,_.xS)(this.getScreen_,this,Y,S,P,u-1),300)):P(Error("Sk"))},this),P)};
var yf1=function(Y,S,P,u){_.cQ(Y.JSC$17391_checkScreenAvailabilityTimeoutKey_);Y.JSC$17391_checkScreenAvailabilityTimeoutKey_=0;d$5(Y.JSC$17386_screenService_,S,function(W){W||u<0?P(W):Y.JSC$17391_checkScreenAvailabilityTimeoutKey_=_.Jc(function(){yf1(Y,S,P,u-1)},300)})};
MO.prototype.JSC$17388_getCastSession=function(){return this.JSC$17391_session_};
MO.prototype.JSC$17393_onSessionUpdate_=function(Y){this.isDisposed()||Y||(kr(this,"Cast session died."),this.onSessionStopped())};
var tTd=function(Y){_.cQ(Y.getScreenTimeoutKey_);Y.getScreenTimeoutKey_=0;_.cQ(Y.JSC$17391_checkScreenAvailabilityTimeoutKey_);Y.JSC$17391_checkScreenAvailabilityTimeoutKey_=0;_.cQ(Y.sessionStatusTimeoutKey_);Y.sessionStatusTimeoutKey_=0;_.cQ(Y.onLoungeTokenTimeoutKey_);Y.onLoungeTokenTimeoutKey_=0;_.cQ(Y.getLoungeTokenTimeoutKey_);Y.getLoungeTokenTimeoutKey_=0};var yr=function(Y,S,P,u){o0.call(this,Y,S,"DialSession");this.config_=u;this.JSC$17395_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17395_theme_=P;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17395_deferredLaunchDeadlineTimer_=NaN;this.JSC$17395_boundSessionUpdate_=(0,_.xS)(this.JSC$17397_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17395_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17395_isInitLoungeToken_=!1;this.JSC$17395_lastLoungeTokenRefreshError_="unknown"};
_.r(yr,o0);yr.prototype.setCastSession=function(Y){this.JSC$17395_session_=Y;this.JSC$17395_session_.addUpdateListener(this.JSC$17395_boundSessionUpdate_)};
yr.prototype.launchWithParams=function(Y){this.connectData_=Y;this.deferredLaunch_()};
yr.prototype.stop=function(){HP1(this);if(this.JSC$17395_session_)this.JSC$17395_session_.stop((0,_.xS)(this.onSessionStopped,this,null),(0,_.xS)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
yr.prototype.disposeInternal=function(){HP1(this);this.JSC$17395_session_&&this.JSC$17395_session_.removeUpdateListener(this.JSC$17395_boundSessionUpdate_);this.JSC$17395_session_=null;o0.prototype.disposeInternal.call(this)};
var VTu=function(Y){var S;return!!(Y.config_.enableDialLoungeToken&&((S=Y.JSC$17395_session_)==null?0:S.getDialAppInfo))},eSB=function(Y){Y.cancelPolling_=Y.JSC$17386_screenService_.JSC$17384_getScreenByPollingPairingCode(Y.reversePairingCode_,Y.receiver_.label,Y.receiver_.friendlyName,VTu(Y),function(S,P){Y.cancelPolling_=function(){};
Y.JSC$17395_isInitLoungeToken_=!0;Qr(Y,S);S.idType=="shortLived"&&P>0&&NO(Y,P)},function(S){Y.cancelPolling_=function(){};
Y.onSessionStopped(S)})};
yr.prototype.JSC$17397_onSessionUpdate_=function(Y){this.isDisposed()||Y||(kr(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var OPc=function(Y){var S={};S.pairingCode=Y.reversePairingCode_;S.theme=Y.JSC$17395_theme_;J91()&&(S.env_useStageMdx=1);return _.R4(S)},YGc=function(Y){return new Promise(function(S){Y.reversePairingCode_=yJ5();
if(Y.connectData_){var P=new chrome.cast.DialLaunchResponse(!0,OPc(Y));S(P);eSB(Y)}else Y.deferredLaunch_=function(){_.cQ(Y.JSC$17395_deferredLaunchDeadlineTimer_);Y.deferredLaunch_=function(){};
Y.JSC$17395_deferredLaunchDeadlineTimer_=NaN;var u=new chrome.cast.DialLaunchResponse(!0,OPc(Y));S(u);eSB(Y)},Y.JSC$17395_deferredLaunchDeadlineTimer_=_.Jc(function(){Y.deferredLaunch_()},100)})},PAX=function(Y,S,P){Y.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(S));
var u=new vr(S);return(new Promise(function(W){SGI(Y,u,function(m){m?(Y.JSC$17395_isInitLoungeToken_=!0,U3(Y.JSC$17386_screenService_,u),Qr(Y,u),NO(Y,P)):_.ik(Error("Uk`"+JSON.stringify(S)));W(m)},5)})).then(function(W){return W?new chrome.cast.DialLaunchResponse(!1):YGc(Y)})},uo6=function(Y,S){var P=Y.launchData_.receiver.label,u=Y.receiver_.friendlyName;
return(new Promise(function(W){FaX(Y.JSC$17386_screenService_,P,S,u,function(m){m&&m.token&&Qr(Y,m);W(m)},function(m){kr(Y,"Failed to get DIAL screen: "+m);
W(null)})})).then(function(W){return W&&W.token?new chrome.cast.DialLaunchResponse(!1):YGc(Y)})},SGI=function(Y,S,P,u){_.cQ(Y.JSC$17395_checkScreenAvailabilityTimeoutKey_);
Y.JSC$17395_checkScreenAvailabilityTimeoutKey_=0;d$5(Y.JSC$17386_screenService_,S,function(W){W||u<0?P(W):Y.JSC$17395_checkScreenAvailabilityTimeoutKey_=_.Jc(function(){SGI(Y,S,P,u-1)},300)})},NO=function(Y,S){Y.info("getDialAppInfoWithTimeout_ "+S);
VTu(Y)&&(_.cQ(Y.getDialAppInfoTimeoutKey_),Y.getDialAppInfoTimeoutKey_=0,S==0?WDu(Y):Y.getDialAppInfoTimeoutKey_=_.Jc(function(){WDu(Y)},S))},WDu=function(Y){VTu(Y)&&Y.JSC$17395_session_.getDialAppInfo(function(S){Y.info("getDialAppInfo dialLaunchData: "+JSON.stringify(S));
S=S.extraData||{};var P=null;if(S.loungeToken){var u;((u=Y.screen_)==null?void 0:u.token)==S.loungeToken&&(P="staleLoungeToken")}else P="missingLoungeToken";P?(Y.JSC$17395_lastLoungeTokenRefreshError_=P,NO(Y,3E4)):(Y.JSC$17395_isInitLoungeToken_=!1,Y.JSC$17395_lastLoungeTokenRefreshError_="unknown",iP5(Y,S.loungeToken),NO(Y,S.loungeTokenRefreshIntervalMs))},function(S){Y.info("getDialAppInfo error: "+S);
Y.JSC$17395_lastLoungeTokenRefreshError_="noLoungeTokenResponse";NO(Y,3E4)})},HP1=function(Y){_.cQ(Y.JSC$17395_checkScreenAvailabilityTimeoutKey_);
Y.JSC$17395_checkScreenAvailabilityTimeoutKey_=0;_.cQ(Y.getDialAppInfoTimeoutKey_);Y.getDialAppInfoTimeoutKey_=0;Y.cancelPolling_();Y.cancelPolling_=function(){};
_.cQ(Y.JSC$17395_deferredLaunchDeadlineTimer_)};var HN=function(Y,S){o0.call(this,Y,S,"ManualSession");this.JSC$17399_deferredLaunchDeadlineTimer_=_.Jc((0,_.xS)(this.launchWithParams,this,null),150)};
_.r(HN,o0);HN.prototype.stop=function(){this.onSessionStopped()};
HN.prototype.setCastSession=function(){};
HN.prototype.launchWithParams=function(){_.cQ(this.JSC$17399_deferredLaunchDeadlineTimer_);this.JSC$17399_deferredLaunchDeadlineTimer_=NaN;var Y=I0(this.JSC$17386_screenService_.getScreens(),this.receiver_.label);if(Y)Qr(this,Y);else this.onSessionStopped(Error("Vk"))};
HN.prototype.disposeInternal=function(){_.cQ(this.JSC$17399_deferredLaunchDeadlineTimer_);this.JSC$17399_deferredLaunchDeadlineTimer_=NaN;o0.prototype.disposeInternal.call(this)};var Qp=function(Y,S){_.QC.call(this);this.config_=S;this.JSC$17402_screenService_=Y;this.JSC$17402_appId_=S.appId||"233637DE";this.JSC$17402_theme_=S.theme||"cl";this.disableDial_=S.disableCastApi||!1;this.forceMirroring_=S.forceMirroring||!1;this.JSC$17402_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.xS)(this.onReceiverAction_,this)};
_.r(Qp,_.QC);
Qp.prototype.init=function(Y,S){chrome.cast.timeout.requestSession=3E4;var P=new chrome.cast.SessionRequest(this.JSC$17402_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.f("desktop_enable_cast_connect")&&(P.androidReceiverCompatible=!0);this.disableDial_||(P.dialRequest=new chrome.cast.DialRequest("YouTube"));var u=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;Y=Y||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var W=(0,_.xS)(this.onReceiverUpdated_,
this);P=new chrome.cast.ApiConfig(P,(0,_.xS)(this.onSessionEstablished_,this),W,u,Y);P.customDialLaunchCallback=(0,_.xS)(this.onDialLaunchRequested_,this);chrome.cast.initialize(P,(0,_.xS)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Tfu(),this.JSC$17402_screenService_.subscribe("onlineScreenChange",(0,_.xS)(this.JSC$17404_onScreenChange_,this)),this.customReceivers_=z2X(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.xS)(function(m){this.warn_("Failed to set initial custom receivers: "+(0,_.Gj)(m))},this)),this.publish("yt-remote-cast2-availability-change",Vr(this)),S(!0))},this),(0,_.xS)(function(m){this.warn_("Failed to initialize API: "+(0,_.Gj)(m));
S(!1)},this))};
Qp.prototype.setConnectedScreenStatus=function(Y,S){ew("Setting connected screen ID: "+Y+" -> "+S);if(this.JSC$17402_session_){var P=this.JSC$17402_session_.screen_;if(!Y||P&&P.id!=Y)ew("Unsetting old screen status: "+this.JSC$17402_session_.receiver_.friendlyName),O3(this,null)}if(Y&&S){if(!this.JSC$17402_session_){Y=I0(this.JSC$17402_screenService_.getScreens(),Y);if(!Y){ew("setConnectedScreenStatus: Unknown screen.");return}if(Y.idType=="shortLived"){ew("setConnectedScreenStatus: Screen with id type to be short lived.");
return}P=mnY(this,Y);P||(ew("setConnectedScreenStatus: Connected receiver not custom..."),P=new chrome.cast.Receiver(Y.uuid?Y.uuid:Y.id,Y.name),P.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(P),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.xS)(function(u){this.warn_("Failed to set initial custom receivers: "+(0,_.Gj)(u))},this)));
ew("setConnectedScreenStatus: new active receiver: "+P.friendlyName);O3(this,new HN(this.JSC$17402_screenService_,P),!0)}this.JSC$17402_session_.setDisplayStatus(S)}else ew("setConnectedScreenStatus: no screen.")};
var mnY=function(Y,S){return S?_.d1(Y.customReceivers_,function(P){return Dx(S,P.label)},Y):null};
Qp.prototype.setLaunchParams=function(Y){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17402_session_?this.JSC$17402_session_.launchWithParams(Y):this.warn_("Setting connection data without a session")};
Qp.prototype.JSC$17404_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17402_session_?(this.JSC$17402_session_.stop(),O3(this,null)):ew("Stopping non-existing session")};
Qp.prototype.requestSession=function(){chrome.cast.requestSession((0,_.xS)(this.onSessionEstablished_,this),(0,_.xS)(this.onSessionRequestFailed_,this))};
Qp.prototype.disposeInternal=function(){this.JSC$17402_screenService_.unsubscribe("onlineScreenChange",(0,_.xS)(this.JSC$17404_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.MU(_.tA("yt.mdx.remote.debug.handlers_")||[],Rj_);_.oY(this.JSC$17402_session_);_.QC.prototype.disposeInternal.call(this)};
var ew=function(Y){F1("Controller",Y)};
Qp.prototype.warn_=function(Y){F1("Controller",Y)};
var Rj_=function(Y){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(Y)},Vr=function(Y){return Y.hasCastReceiver_||!!Y.customReceivers_.length||!!Y.JSC$17402_session_},O3=function(Y,S,P){S!=Y.JSC$17402_session_&&(_.oY(Y.JSC$17402_session_),(Y.JSC$17402_session_=S)?(P?Y.publish("yt-remote-cast2-receiver-resumed",S.receiver_):Y.publish("yt-remote-cast2-receiver-selected",S.receiver_),S.subscribe("sessionScreen",(0,_.xS)(Y.onSessionScreen_,Y,S)),S.subscribe("sessionFailed",
function(){return nmY(Y,S)}),S.screen_?Y.publish("yt-remote-cast2-session-change",S.screen_):P&&Y.JSC$17402_session_.launchWithParams(null)):Y.publish("yt-remote-cast2-session-change",null))},nmY=function(Y,S){Y.JSC$17402_session_==S&&Y.publish("yt-remote-cast2-session-failed")};
_.z=Qp.prototype;_.z.onSessionScreen_=function(Y,S){this.JSC$17402_session_==Y&&(S||O3(this,null),this.publish("yt-remote-cast2-session-change",S))};
_.z.onReceiverAction_=function(Y,S){if(!this.isDisposed())if(Y)switch(Y.friendlyName=chrome.cast.unescape(Y.friendlyName),ew("onReceiverAction_ "+Y.label+" / "+Y.friendlyName+"-- "+S),S){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17402_session_)if(this.JSC$17402_session_.receiver_.label!=Y.label)ew("onReceiverAction_: Stopping active receiver: "+this.JSC$17402_session_.receiver_.friendlyName),this.JSC$17402_session_.stop();else{ew("onReceiverAction_: Casting to active receiver.");this.JSC$17402_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17402_session_.screen_);break}switch(Y.receiverType){case chrome.cast.ReceiverType.CUSTOM:O3(this,new HN(this.JSC$17402_screenService_,Y));break;case chrome.cast.ReceiverType.DIAL:O3(this,new yr(this.JSC$17402_screenService_,Y,this.JSC$17402_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:O3(this,new MO(this.JSC$17402_screenService_,Y,this.config_));break;default:this.warn_("Unknown receiver type: "+Y.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17402_session_&&
this.JSC$17402_session_.receiver_.label==Y.label?this.JSC$17402_session_.stop():this.warn_("Stopping receiver w/o session: "+Y.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.z.onDialLaunchRequested_=function(Y){if(this.isDisposed())return Promise.reject(Error("Wk"));var S=Y.receiver;S.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+S.friendlyName),S.receiverType=chrome.cast.ReceiverType.DIAL);var P=this.JSC$17402_session_?this.JSC$17402_session_.receiver_:null;if(!P||P.label!=S.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+S.friendlyName),Promise.reject(Error("Xk"));if(P&&P.label==S.label&&P.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17402_session_.screen_)return ew("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17402_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+P.receiverType+'" to "dial" for '+S.friendlyName);O3(this,new yr(this.JSC$17402_screenService_,S,this.JSC$17402_theme_,this.config_))}S=this.JSC$17402_session_;S.launchData_=Y;S.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(Y=S.launchData_.extraData||{},P=Y.screenId||null,VTu(S)&&Y.loungeToken?Y.loungeTokenRefreshIntervalMs?Y=PAX(S,{name:S.receiver_.friendlyName,screenId:Y.screenId,loungeToken:Y.loungeToken,dialId:S.launchData_.receiver.label,screenIdType:"shortLived"},Y.loungeTokenRefreshIntervalMs):(_.ik(Error("Tk`"+JSON.stringify(Y))),Y=uo6(S,P)):Y=uo6(S,P)):Y=YGc(S);return Y};
_.z.onSessionEstablished_=function(Y){var S=this;if(!this.isDisposed()&&!this.forceMirroring_){ew("New cast session ID: "+Y.sessionId);var P=Y.receiver;if(P.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17402_session_)if(P.receiverType==chrome.cast.ReceiverType.CAST)ew("Got resumed cast session before resumed mdx connection."),P.friendlyName=chrome.cast.unescape(P.friendlyName),O3(this,new MO(this.JSC$17402_screenService_,P,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var u=this.JSC$17402_session_.receiver_,W=I0(this.JSC$17402_screenService_.getScreens(),u.label);W&&Dx(W,P.label)&&u.receiverType!=chrome.cast.ReceiverType.CAST&&P.receiverType==chrome.cast.ReceiverType.CAST&&(ew("onSessionEstablished_: manual to cast session change "+P.friendlyName),_.oY(this.JSC$17402_session_),this.JSC$17402_session_=new MO(this.JSC$17402_screenService_,P,this.config_),this.JSC$17402_session_.subscribe("sessionScreen",(0,_.xS)(this.onSessionScreen_,this,this.JSC$17402_session_)),
this.JSC$17402_session_.subscribe("sessionFailed",function(){return nmY(S,S.JSC$17402_session_)}),this.JSC$17402_session_.launchWithParams(null));
this.JSC$17402_session_.setCastSession(Y)}}};
_.z.JSC$17404_getCastSession=function(){return this.JSC$17402_session_?this.JSC$17402_session_.JSC$17388_getCastSession():null};
_.z.onSessionRequestFailed_=function(Y){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Gj)(Y)),Y.code!=chrome.cast.ErrorCode.CANCEL&&O3(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.z.onReceiverUpdated_=function(Y){ew("Receiver availability updated: "+Y);if(!this.isDisposed()){var S=Vr(this);this.hasCastReceiver_=Y==chrome.cast.ReceiverAvailability.AVAILABLE;Vr(this)!=S&&this.publish("yt-remote-cast2-availability-change",Vr(this))}};
var z2X=function(Y){var S=Y.JSC$17402_screenService_.JSC$17384_getOnlineScreens(),P=Y.JSC$17402_session_&&Y.JSC$17402_session_.receiver_;Y=_.b9(S,function(u){P&&Dx(u,P.label)&&(P=null);var W=u.uuid?u.uuid:u.id,m=mnY(this,u);m?(m.label=W,m.friendlyName=u.name):(m=new chrome.cast.Receiver(W,u.name),m.receiverType=chrome.cast.ReceiverType.CUSTOM);return m},Y);
P&&(P.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(P=new chrome.cast.Receiver(P.label,P.friendlyName),P.receiverType=chrome.cast.ReceiverType.CUSTOM),Y.push(P));return Y};
Qp.prototype.JSC$17404_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=z2X(this),ew("Updating custom receivers: "+(0,_.Gj)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.xS)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Vr(this)))};
Qp.prototype.setLaunchParams=Qp.prototype.setLaunchParams;Qp.prototype.setConnectedScreenStatus=Qp.prototype.setConnectedScreenStatus;Qp.prototype.stopSession=Qp.prototype.JSC$17404_stopSession;Qp.prototype.getCastSession=Qp.prototype.JSC$17404_getCastSession;Qp.prototype.requestSession=Qp.prototype.requestSession;Qp.prototype.init=Qp.prototype.init;Qp.prototype.dispose=Qp.prototype.dispose;var tfI=[];var jQ1=function(Y){Y.audioTrackId=null;Y.trackData=null;Y.playerState=-1;Y.hasPrevious=!1;Y.hasNext=!1;Y.playerTime_=0;Y.playerTimeAt_=_.S5();Y.seekableStart_=0;Y.seekableEnd_=0;Y.duration_=0;Y.loadedTime=0;Y.liveIngestionTime_=NaN;Y.isLive_=!1};
_.z=ku.prototype;
_.z.reset=function(Y){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;Y&&(this.index=Y.index,this.listId=Y.listId,this.videoId=Y.videoId,this.playerState=Y.playerState,this.volume=Y.volume,this.muted=Y.muted,this.audioTrackId=Y.audioTrackId,this.trackData=Y.trackData,this.hasPrevious=Y.hasPrevious,this.hasNext=Y.hasNext,this.playerTime_=Y.playerTime,this.playerTimeAt_=Y.playerTimeAt,this.seekableStart_=Y.seekableStart,this.seekableEnd_=Y.seekableEnd,this.duration_=Y.duration,this.loadedTime=
Y.loadedTime,this.liveIngestionTime_=Y.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.z.stopPlayer=function(){this.index=-1;this.videoId="";jQ1(this)};
_.z.isPlaying=function(){return this.playerState==1};
_.z.isBuffering=function(){return this.playerState==3};
_.z.isAdPlaying=function(){return this.playerState==1081};
var Yk=function(Y,S){Y.playerTime_=S;Y.playerTimeAt_=_.S5()},J51=function(Y){switch(Y.playerState){case 1:case 1081:return(_.S5()-Y.playerTimeAt_)/1E3+Y.playerTime_;
case -1E3:return 0}return Y.playerTime_};
ku.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.S5()-this.playerTimeAt_)/1E3:0):this.duration_};
var BGX=function(Y,S,P){var u=Y.videoId;Y.videoId=S;Y.index=P;S!=u&&jQ1(Y)},c56=function(Y){var S={};
S.index=Y.index;S.listId=Y.listId;S.videoId=Y.videoId;S.playerState=Y.playerState;S.volume=Y.volume;S.muted=Y.muted;S.audioTrackId=Y.audioTrackId;S.trackData=_.RY.unsafeClone(Y.trackData);S.hasPrevious=Y.hasPrevious;S.hasNext=Y.hasNext;S.playerTime=Y.playerTime_;S.playerTimeAt=Y.playerTimeAt_;S.seekableStart=Y.seekableStart_;S.seekableEnd=Y.seekableEnd_;S.duration=Y.duration_;S.loadedTime=Y.loadedTime;S.liveIngestionTime=Y.liveIngestionTime_;return S};
ku.prototype.clone=function(){return new ku(c56(this))};var St=function(Y,S){_.QC.call(this);var P=this;this.state_=0;this.connection_=Y;this.contextSubscriptions_=[];this.actionQueue_=new ZoY;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.xS)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.xS)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.xS)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.xS)(this.onCloudviewAvailabilityChange_,this);var u=0;Y?(u=Y.getProxyState(),
u!=3&&(Y.subscribe("proxyStateChange",this.setState_,this),CA1(this))):u=3;u!=0&&(S?this.setState_(u):_.Jc(function(){P.setState_(u)},0));
(Y=k56())&&qG_(this,Y);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.r(St,_.QC);St.prototype.getState=function(){return this.state_};
St.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
St.prototype.reconnect=function(){this.connection_.reconnect()};
var Pl=function(Y){return new ku(Y.connection_.getPlayerContextData())};
_.z=St.prototype;_.z.play=function(){ub(this)?(this.castMedia_?this.castMedia_.play(null,_.bd,R2d(this,"play")):Wl(this,"play"),xnB(this,1,J51(Pl(this))),this.publish("remotePlayerChange")):zm(this,this.play)};
_.z.pause=function(){ub(this)?(this.castMedia_?this.castMedia_.pause(null,_.bd,R2d(this,"pause")):Wl(this,"pause"),xnB(this,2,J51(Pl(this))),this.publish("remotePlayerChange")):zm(this,this.pause)};
_.z.seekTo=function(Y){if(ub(this)){if(this.castMedia_){var S=Pl(this),P=new chrome.cast.media.SeekRequest;P.currentTime=Y;S.isPlaying()||S.isBuffering()?P.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:P.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(P,_.bd,R2d(this,"seekTo",{newTime:Y}))}else Wl(this,"seekTo",{newTime:Y});xnB(this,3,Y);this.publish("remotePlayerChange")}else zm(this,_.gP(this.seekTo,Y))};
_.z.stop=function(){if(ub(this)){this.castMedia_?this.castMedia_.stop(null,_.bd,R2d(this,"stopVideo")):Wl(this,"stopVideo");var Y=Pl(this);Y.stopPlayer();m7(this,Y);this.publish("remotePlayerChange")}else zm(this,this.stop)};
_.z.setVolume=function(Y,S){if(ub(this)){var P=Pl(this);if(this.castSession_){if(P.volume!=Y){var u=Math.round(Y)/100;this.castSession_.setReceiverVolumeLevel(u,(0,_.xS)(function(){sF("set receiver volume: "+u)},this),(0,_.xS)(function(){this.warn_("failed to set receiver volume.")},this))}P.muted!=S&&this.castSession_.setReceiverMuted(S,(0,_.xS)(function(){sF("set receiver muted: "+S)},this),(0,_.xS)(function(){this.warn_("failed to set receiver muted.")},this))}else{var W={volume:Y,
muted:S};P.volume!=-1&&(W.delta=Y-P.volume);Wl(this,"setVolume",W)}P.muted=S;P.volume=Y;m7(this,P)}else zm(this,_.gP(this.setVolume,Y,S))};
_.z.setAudioTrack=function(Y,S){ub(this)?(S=S.getLanguageInfo().getId(),Wl(this,"setAudioTrack",{videoId:Y,audioTrackId:S}),Y=Pl(this),Y.audioTrackId=S,m7(this,Y)):zm(this,_.gP(this.setAudioTrack,Y,S))};
_.z.addVideo=function(Y){ub(this)?Wl(this,"addVideo",{videoId:Y}):zm(this,_.gP(this.addVideo,Y))};
_.z.addPlaylist=function(Y){ub(this)?Wl(this,"addVideos",{listId:Y}):zm(this,_.gP(this.addPlaylist,Y))};
_.z.addVideos=function(Y){Y.length==0?this.warn_("Ignore add videos request due to empty list"):ub(this)?Wl(this,"addVideos",{videoIds:Y.join(",")}):zm(this,_.gP(this.addVideos,Y))};
_.z.JSC$17414_removeVideo=function(Y){ub(this)?Wl(this,"removeVideo",{videoId:Y}):zm(this,_.gP(this.JSC$17414_removeVideo,Y))};
_.z.JSC$17414_insertVideo=function(Y){ub(this)?Wl(this,"insertVideo",{videoId:Y}):zm(this,_.gP(this.JSC$17414_insertVideo,Y))};
_.z.playVideo=function(Y,S,P,u,W,m,J){u=u===void 0?null:u;W=W===void 0?null:W;m=m===void 0?null:m;J=J===void 0?null:J;var c=Pl(this),C={videoId:Y};P!==void 0&&(C.currentIndex=P);BGX(c,Y,P||0);S!==void 0&&(Yk(c,S),C.currentTime=S);u&&(C.listId=u);W&&(C.playerParams=W);m&&(C.clickTrackingParams=m);J&&(C.locationInfo=(0,_.Gj)(J));Wl(this,"setPlaylist",C);u||m7(this,c)};
_.z.nextVideo=function(Y,S){if(ub(this)){if(Y&&S){var P=Pl(this);BGX(P,Y,S);m7(this,P)}Wl(this,"next")}else zm(this,_.gP(this.nextVideo,Y,S))};
_.z.clearPlaylist=function(){if(ub(this)){Wl(this,"clearPlaylist");var Y=Pl(this);Y.reset();m7(this,Y);this.publish("remotePlayerChange")}else zm(this,this.clearPlaylist)};
_.z.dispose=function(){if(this.state_!=3){var Y=this.state_;this.state_=3;this.publish("proxyStateChange",Y,this.state_)}_.QC.prototype.dispose.call(this)};
_.z.disposeInternal=function(){bdB(this);this.connection_=null;this.actionQueue_.clear();qG_(this,null);_.QC.prototype.disposeInternal.call(this)};
var CA1=function(Y){_.Q4("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(S){this.contextSubscriptions_.push(this.connection_.subscribe(S,_.gP(this.onProxyEvent_,S),this))},Y)},bdB=function(Y){_.Q4(Y.contextSubscriptions_,function(S){this.connection_.unsubscribeByKey(S)},Y);
Y.contextSubscriptions_.length=0},ub=function(Y){return Y.getState()==1},zm=function(Y,S){Y.actionQueue_.getCount()<50&&Y.actionQueue_.enqueue(S)},xnB=function(Y,S,P){var u=Pl(Y);
Yk(u,P);u.playerState!=-1E3&&(u.playerState=S);m7(Y,u)},Wl=function(Y,S,P){Y.connection_.sendMessage(S,P)},m7=function(Y,S){bdB(Y);
Y.connection_.setPlayerContextData(c56(S));CA1(Y)};
St.prototype.setState_=function(Y){if((Y!=this.state_||Y==2)&&this.state_!=3&&Y!=0){var S=this.state_;this.state_=Y;this.publish("proxyStateChange",S,Y);if(Y==1)for(;!this.actionQueue_.isEmpty();)Y=this.actionQueue_,wmZ(Y),Y.front_.pop().apply(this);else Y==3&&this.dispose()}};
St.prototype.onProxyEvent_=function(Y,S){this.publish(Y,S)};
var qG_=function(Y,S){Y.castSession_&&(Y.castSession_.removeUpdateListener(Y.boundCastStatusListener_),Y.castSession_.removeMediaListener(Y.boundCastMediaListener_),Y.onCastMediaChange_(null));Y.castSession_=S;if(Y.castSession_&&(sF("Setting cast session: "+Y.castSession_.sessionId),Y.castSession_.addUpdateListener(Y.boundCastStatusListener_),Y.castSession_.addMediaListener(Y.boundCastMediaListener_),Y.castSession_.media.length))Y.onCastMediaChange_(Y.castSession_.media[0])};
St.prototype.onCastStatusUpdate_=function(Y){if(!Y)this.onCastMediaChange_(null),qG_(this,null);else if(this.castSession_.receiver.volume){Y=this.castSession_.receiver.volume;var S=Pl(this),P=Math.round(100*Y.level||0);if(S.volume!=P||S.muted!=Y.muted)sF("Cast volume update: "+Y.level+(Y.muted?" muted":"")),S.volume=P,S.muted=!!Y.muted,m7(this,S)}};
St.prototype.onCastMediaChange_=function(Y){sF("Cast media: "+!!Y);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=Y)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),TGY(this),this.publish("remotePlayerChange")};
var TGY=function(Y){var S=Y.castMedia_.media,P=Y.castMedia_.customData;if(S&&P){var u=Pl(Y);S.contentId!=u.videoId&&sF("Cast changing video to: "+S.contentId);u.videoId=S.contentId;u.playerState=P.playerState;Yk(u,Y.castMedia_.getEstimatedTime());m7(Y,u)}else sF("No cast media video. Ignoring state update.")};
St.prototype.onCastMediaUpdate_=function(Y){if(Y)TGY(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
St.prototype.onCloudviewAvailabilityChange_=function(){var Y=k56();Y&&qG_(this,Y)};
St.prototype.warn_=function(Y){F1("CP",Y)};
var R2d=function(Y,S,P){return(0,_.xS)(function(u){this.warn_("Failed to "+S+" with cast v2 channel. Error code: "+u.code);u.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+S+" using MDx browser channel."),Wl(this,S,P))},Y)};var jt=function(Y,S,P,u){u=u===void 0?!1:u;_.QC.call(this);var W=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$17421_http_=Y;this.enableConnectWithInitialState_=u;this.listeners_.push(_.YG(window,"beforeunload",function(){W.JSC$17424_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new ku;this.currentScreenId_=S.id;this.currentScreenIdType_=S.idType;this.channelService=q2u(this.JSC$17421_http_,P,this.JSC$17424_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){KDI(W)});
this.channelService.listen("channelClosed",function(){nW("Channel closed");isNaN(W.connectTimerId_)?a0(!0):a0();W.dispose()});
this.channelService.listen("channelError",function(m){a0();isNaN(W.getReconnectTimeout_())?(m==1&&W.currentScreenIdType_=="shortLived"&&W.publish("browserChannelAuthError",m),nW("Channel error: "+m+" without reconnection"),W.dispose()):(W.reconnecting_=!0,nW("Channel error: "+m+" with reconnection in "+W.getReconnectTimeout_()+" ms"),Emo(W,2))});
this.channelService.listen("channelMessage",function(m){f3d(W,m)});
this.channelService.setLoungeToken(S.token);this.subscribe("remoteQueueChange",function(){var m=W.playerContext_.videoId;Oou()&&_.PU("yt-remote-session-video-id",m)})};
_.r(jt,_.QC);
jt.prototype.connect=function(Y,S){if(S){var P=S.listId,u=S.videoId,W=S.videoIds,m=S.playerParams,J=S.clickTrackingParams,c=S.index,C={videoId:u},x=S.currentTime,b=S.locationInfo;S=S.loopMode;x!==void 0&&(C.currentTime=x<=5?0:x);m&&(C.playerParams=m);b&&(C.locationInfo=b);J&&(C.clickTrackingParams=J);P&&(C.listId=P);W&&W.length>0&&(C.videoIds=W.join(","));c!==void 0&&(C.currentIndex=c);this.enableConnectWithInitialState_&&(C.loopMode=S||"LOOP_MODE_OFF");P&&(this.playerContext_.listId=P);this.playerContext_.videoId=
u;this.playerContext_.index=c||0;this.playerContext_.state=3;Yk(this.playerContext_,x);this.autoplayMode_="UNSUPPORTED";P=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";nW("Connecting with "+P+" and params: "+(0,_.Gj)(C));this.channelService.connect({method:P,params:(0,_.Gj)(C)},Y,W96())}else nW("Connecting without params"),this.channelService.connect({},Y,W96());gmc(this)};
jt.prototype.setLoungeToken=function(Y){this.channelService.setLoungeToken(Y)};
jt.prototype.dispose=function(){this.isDisposed()||(_.HQ("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),Emo(this,3));_.QC.prototype.dispose.call(this)};
jt.prototype.disposeInternal=function(){$n1(this);r5o(this);GEc(this);_.cQ(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.cQ(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Dyu(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.QC.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var h25=function(Y){return _.d1(Y.connectedDevices_,function(S){return S.type=="LOUNGE_SCREEN"})},nW=function(Y){F1("conn",Y)},Emo=function(Y,S){Y.publish("proxyStateChange",S)},gmc=function(Y){Y.connectTimerId_=_.Jc(function(){nW("Connecting timeout");
Y.JSC$17424_disconnect_(1)},2E4)},$n1=function(Y){_.cQ(Y.connectTimerId_);
Y.connectTimerId_=NaN},GEc=function(Y){_.cQ(Y.reconnectedCheckScreenTimeout_);
Y.reconnectedCheckScreenTimeout_=NaN},vmj=function(Y){r5o(Y);
Y.playingSyncTimerId_=_.Jc(function(){Jo(Y,"getNowPlaying")},2E4)},r5o=function(Y){_.cQ(Y.playingSyncTimerId_);
Y.playingSyncTimerId_=NaN},KDI=function(Y){nW("Channel opened");
Y.reconnecting_&&(Y.reconnecting_=!1,GEc(Y),Y.reconnectedCheckScreenTimeout_=_.Jc(function(){nW("Timing out waiting for a screen.");Y.JSC$17424_disconnect_(1)},15E3))},I3Z=function(Y,S){var P=null;
if(S){var u=h25(Y);u&&(P={clientName:u.clientName,deviceMake:u.brand,deviceModel:u.model,osVersion:u.osVersion})}_.HQ("yt.mdx.remote.remoteClient_",P);S&&($n1(Y),GEc(Y));P=Y.channelService.isChannelOpened()&&isNaN(Y.connectTimerId_);S==P?S&&(Emo(Y,1),Jo(Y,"getSubtitlesTrack")):S?(Y.getOtherConnectedRemoteId_()&&Y.playerContext_.reset(),Emo(Y,1),Jo(Y,"getNowPlaying"),DnX(Y)):Y.JSC$17424_disconnect_(1)},a3d=function(Y,S){var P=S.params.videoId;
delete S.params.videoId;P==Y.playerContext_.videoId&&(_.RY.isEmpty(S.params)?Y.playerContext_.trackData=null:Y.playerContext_.trackData=S.params,Y.publish("remotePlayerChange"))},LD6=function(Y,S,P){var u=S.params.videoId||S.params.video_id,W=parseInt(S.params.currentIndex,10);
Y.playerContext_.listId=S.params.listId||Y.playerContext_.listId;BGX(Y.playerContext_,u,W);Y.publish("remoteQueueChange",P)},wpI=function(Y,S){S.params=S.params||{};
LD6(Y,S,"NOW_PLAYING_MAY_CHANGE");Y.onStateChange_(S);Y.publish("autoplayDismissed")};
jt.prototype.onStateChange_=function(Y){var S=parseInt(Y.params.currentTime||Y.params.current_time,10);Yk(this.playerContext_,isNaN(S)?0:S);S=parseInt(Y.params.state,10);S=isNaN(S)?-1:S;S==-1&&this.playerContext_.playerState==-1E3&&(S=-1E3);this.playerContext_.playerState=S;S=Number(Y.params.loadedTime);this.playerContext_.loadedTime=isNaN(S)?0:S;S=Number(Y.params.duration);this.playerContext_.duration_=isNaN(S)?0:S;S=this.playerContext_;var P=Number(Y.params.liveIngestionTime);S.liveIngestionTime_=
P;S.isLive_=isNaN(P)?!1:!0;S=this.playerContext_;P=Number(Y.params.seekableStartTime);Y=Number(Y.params.seekableEndTime);S.seekableStart_=isNaN(P)?0:P;S.seekableEnd_=isNaN(Y)?0:Y;this.playerContext_.playerState==1?vmj(this):r5o(this);this.publish("remotePlayerChange")};
jt.prototype.onAdStateChange_=function(Y){if(this.playerContext_.playerState!=-1E3){var S=1085;switch(parseInt(Y.params.adState,10)){case 1:S=1081;break;case 2:S=1084;break;case 0:S=1083}this.playerContext_.playerState=S;Y=parseInt(Y.params.currentTime,10);Yk(this.playerContext_,isNaN(Y)?0:Y);this.publish("remotePlayerChange")}};
var pp5=function(Y,S){var P=S.params.muted=="true";Y.playerContext_.volume=parseInt(S.params.volume,10);Y.playerContext_.muted=P;Y.publish("remotePlayerChange")},FD1=function(Y,S){Y.autoplayVideoId_=S.params.videoId;
Y.publish("nowAutoplaying",parseInt(S.params.timeout,10))},sQX=function(Y,S){Y.autoplayVideoId_=S.params.videoId||null;
Y.publish("autoplayUpNext",Y.autoplayVideoId_)},dn5=function(Y,S){Y.autoplayMode_=S.params.autoplayMode;
Y.publish("autoplayModeChange",Y.autoplayMode_);Y.autoplayMode_=="DISABLED"&&Y.publish("autoplayDismissed")},l3c=function(Y,S){var P=S.params.hasNext=="true";
Y.playerContext_.hasPrevious=S.params.hasPrevious=="true";Y.playerContext_.hasNext=P;Y.publish("previousNextChange")};
jt.prototype.isCapabilitySupportedOnConnectedDevices_=function(Y){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var S=_.n(this.connectedDevices_),P=S.next();!P.done;P=S.next())if(!P.value.capabilities.has(Y))return!1;return!0};
var f3d=function(Y,S){S=S.message;S.params?nW("Received: action="+S.action+", params="+(0,_.Gj)(S.params)):nW("Received: action="+S.action+" {}");switch(S.action){case "loungeStatus":S=(0,_.DC)(S.params.devices);Y.connectedDevices_=_.b9(S,function(u){return new tU(u)});
S=!!_.d1(Y.connectedDevices_,function(u){return u.type=="LOUNGE_SCREEN"});
I3Z(Y,S);S=Y.isCapabilitySupportedOnConnectedDevices_("mlm");Y.publish("multiStateLoopEnabled",S);break;case "loungeScreenDisconnected":E2_(Y.connectedDevices_,function(u){return u.type=="LOUNGE_SCREEN"});
I3Z(Y,!1);break;case "remoteConnected":var P=new tU((0,_.DC)(S.params.device));_.d1(Y.connectedDevices_,function(u){return u.equals(P)})||_.K$X(Y.connectedDevices_,P);
break;case "remoteDisconnected":P=new tU((0,_.DC)(S.params.device));E2_(Y.connectedDevices_,function(u){return u.equals(P)});
break;case "gracefulDisconnect":break;case "playlistModified":LD6(Y,S,"QUEUE_MODIFIED");break;case "nowPlaying":wpI(Y,S);break;case "onStateChange":Y.onStateChange_(S);break;case "onAdStateChange":Y.onAdStateChange_(S);break;case "onVolumeChanged":pp5(Y,S);break;case "onSubtitlesTrackChanged":a3d(Y,S);break;case "nowAutoplaying":FD1(Y,S);break;case "autoplayDismissed":Y.publish("autoplayDismissed");break;case "autoplayUpNext":sQX(Y,S);break;case "onAutoplayModeChanged":dn5(Y,S);break;case "onHasPreviousNextChanged":l3c(Y,
S);break;case "requestAssistedSignIn":Y.publish("assistedSignInRequested",S.params.authCode);break;case "onLoopModeChanged":Y.publish("loopModeChange",S.params.loopMode);break;default:nW("Unrecognized action: "+S.action)}};
_.z=jt.prototype;_.z.getProxyState_=function(){var Y=3;this.isDisposed()||(Y=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(Y=1):Y=2);return Y};
_.z.JSC$17424_disconnect_=function(Y){nW("Disconnecting with "+Y);_.HQ("yt.mdx.remote.remoteClient_",null);$n1(this);this.publish("beforeDisconnect",Y);Y==1&&a0();this.channelService.disconnect(Y);this.dispose()};
_.z.getPlayerContextData_=function(){var Y=this.playerContext_;this.clientVideoId_&&(Y=this.playerContext_.clone(),BGX(Y,this.clientVideoId_,Y.index));return c56(Y)};
_.z.setPlayerContextData_=function(Y){var S=this,P=new ku(Y);P.videoId&&P.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=P.videoId,_.cQ(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Jc(function(){if(S.clientVideoId_){var W=S.clientVideoId_;S.clientVideoId_=null;S.playerContext_.videoId!=W&&Jo(S,"getNowPlaying")}},5E3));
var u=[];this.playerContext_.listId==P.listId&&this.playerContext_.videoId==P.videoId&&this.playerContext_.index==P.index||u.push("remoteQueueChange");this.playerContext_.playerState==P.playerState&&this.playerContext_.volume==P.volume&&this.playerContext_.muted==P.muted&&J51(this.playerContext_)==J51(P)&&(0,_.Gj)(this.playerContext_.trackData)==(0,_.Gj)(P.trackData)||u.push("remotePlayerChange");this.playerContext_.reset(Y);_.Q4(u,function(W){this.publish(W)},this)};
_.z.getOtherConnectedRemoteId_=function(){var Y=this.channelService.getDeviceId(),S=_.d1(this.connectedDevices_,function(P){return P.type=="REMOTE_CONTROL"&&P.id!=Y});
return S?S.id:""};
_.z.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.z.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.z.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.z.JSC$17424_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var DnX=function(Y){_.cQ(Y.idleDisconnectTimerId_);Y.idleDisconnectTimerId_=_.Jc(function(){Y.JSC$17424_disconnect_(1)},864E5)},Jo=function(Y,S,P){P?nW("Sending: action="+S+", params="+(0,_.Gj)(P)):nW("Sending: action="+S);
Y.channelService.sendMessage(S,P)};
jt.prototype.sendMessageWithUserAction_=function(Y,S){Jo(this,Y,S);DnX(this)};
jt.prototype.JSC$17424_getXsrfToken_=function(){var Y=_.T_.get("SAPISID","")||_.T_.get("__Secure-1PAPISID",void 0)||"",S=_.T_.get("__Secure-3PAPISID","")||"";if(!Y&&!S)return"";Y=_.QB(_.CN(Y),2);S=_.QB(_.CN(S),2);return _.QB(_.CN(","+Y+","+S),2)};
jt.prototype.subscribe=jt.prototype.subscribe;jt.prototype.unsubscribeByKey=jt.prototype.unsubscribeByKey;jt.prototype.getProxyState=jt.prototype.getProxyState_;jt.prototype.disconnect=jt.prototype.JSC$17424_disconnect_;jt.prototype.getPlayerContextData=jt.prototype.getPlayerContextData_;jt.prototype.setPlayerContextData=jt.prototype.setPlayerContextData_;jt.prototype.getOtherConnectedRemoteId=jt.prototype.getOtherConnectedRemoteId_;jt.prototype.getReconnectTimeout=jt.prototype.getReconnectTimeout_;
jt.prototype.getAutoplayMode=jt.prototype.getAutoplayMode_;jt.prototype.getAutoplayVideoId=jt.prototype.getAutoplayVideoId_;jt.prototype.reconnect=jt.prototype.JSC$17424_reconnect_;jt.prototype.sendMessage=jt.prototype.sendMessageWithUserAction_;jt.prototype.getXsrfToken=jt.prototype.JSC$17424_getXsrfToken_;jt.prototype.isCapabilitySupportedOnConnectedDevices=jt.prototype.isCapabilitySupportedOnConnectedDevices_;var XpY=function(Y){lU.call(this,"ScreenServiceProxy");this.instance_=Y;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.xS)(this.JSC$17427_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.xS)(this.onOnlineScreenChange_,this)))};
_.r(XpY,lU);_.z=XpY.prototype;_.z.getScreens=function(Y){return this.instance_.$_gs(Y)};
_.z.contains=function(Y){return!!this.instance_.$_c(Y)};
_.z.get=function(Y){return this.instance_.$_g(Y)};
_.z.start=function(){this.instance_.$_st()};
_.z.add=function(Y,S,P){this.instance_.$_a(Y,S,P)};
_.z.remove=function(Y,S,P){this.instance_.$_r(Y,S,P)};
_.z.updateName=function(Y,S,P,u){this.instance_.$_un(Y,S,P,u)};
_.z.disposeInternal=function(){for(var Y=this.subscriptionKeys_.length,S=0;S<Y;++S)this.instance_.$_ubk(this.subscriptionKeys_[S]);this.subscriptionKeys_.length=0;this.instance_=null;lU.prototype.disposeInternal.call(this)};
_.z.JSC$17427_onScreenChange_=function(){this.publish("screenChange")};
_.z.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
iU.prototype.$_st=iU.prototype.start;iU.prototype.$_gspc=iU.prototype.JSC$17384_getScreenByPairingCode;iU.prototype.$_gsppc=iU.prototype.JSC$17384_getScreenByPollingPairingCode;iU.prototype.$_c=iU.prototype.contains;iU.prototype.$_g=iU.prototype.get;iU.prototype.$_a=iU.prototype.add;iU.prototype.$_un=iU.prototype.updateName;iU.prototype.$_r=iU.prototype.remove;iU.prototype.$_gs=iU.prototype.getScreens;iU.prototype.$_gos=iU.prototype.JSC$17384_getOnlineScreens;iU.prototype.$_s=iU.prototype.subscribe;
iU.prototype.$_ubk=iU.prototype.unsubscribeByKey;var QQj=function(Y){jkY();if(!Ln||!Ln.get("yt-remote-disable-remote-module-for-dev")){Y=_.X3("MDX_CONFIG")||Y;TLd();S21();Bl||(Bl=new hX(Y?Y.loungeApiHost:void 0),J91()&&(Bl.basePath="/api/loungedev"));cl||(cl=_.tA("yt.mdx.remote.deferredProxies_")||[],_.HQ("yt.mdx.remote.deferredProxies_",cl));ZdZ();var S=CW();if(!S){var P=new iU(Bl,Y?Y.disableAutomaticScreenCache||!1:!1);_.HQ("yt.mdx.remote.screenService_",P);S=CW();var u={};Y&&(u={appId:Y.appId,disableDial:Y.disableDial,theme:Y.theme,loadCastApiSetupScript:Y.loadCastApiSetupScript,
disableCastApi:Y.disableCastApi,enableDialLoungeToken:Y.enableDialLoungeToken,enableCastLoungeToken:Y.enableCastLoungeToken,forceMirroring:Y.forceMirroring});_.HQ("yt.mdx.remote.enableConnectWithInitialState_",Y?Y.enableConnectWithInitialState||!1:!1);iMo(P,function(m){m?q3()&&y91(q3(),"YouTube TV"):P.subscribe("onlineScreenChange",function(){e7("yt-remote-receiver-availability-change")})},u)}if(Y&&!_.tA("yt.mdx.remote.initialized_")){_.HQ("yt.mdx.remote.initialized_",!0);
Rv("Initializing: "+(0,_.Gj)(Y));xk.push(_.n_("yt-remote-cast2-api-ready",function(){e7("yt-remote-api-ready")}));
xk.push(_.n_("yt-remote-cast2-availability-change",function(){e7("yt-remote-receiver-availability-change")}));
xk.push(_.n_("yt-remote-cast2-receiver-selected",function(){id1();e7("yt-remote-auto-connect","cast-selector-receiver")}));
xk.push(_.n_("yt-remote-cast2-receiver-resumed",function(){e7("yt-remote-receiver-resumed","cast-selector-receiver")}));
xk.push(_.n_("yt-remote-cast2-session-change",omX));xk.push(_.n_("yt-remote-connection-change",function(m){m?y91(q3(),"YouTube TV"):tau()||(y91(null,null),Qk1())}));
xk.push(_.n_("yt-remote-cast2-session-failed",function(){e7("yt-remote-connection-failed")}));
u=A5o();Y.isAuto&&(u.id+="#dial");var W=Y.capabilities||[];_.f("desktop_enable_autoplay")&&W.push("atp");W.length>0&&(u.capabilities=W);u.name=Y.device;u.app=Y.app;(Y=Y.theme)&&(u.theme=Y);Rv(" -- with channel params: "+(0,_.Gj)(u));u?(_.PU("yt-remote-session-app",u.app),_.PU("yt-remote-session-name",u.name)):(_.WU("yt-remote-session-app"),_.WU("yt-remote-session-name"));_.HQ("yt.mdx.remote.channelParams_",u);S.start();q3()||UnY()}}},Mad=function(){var Y=CW().instance_.$_gos();
var S=kEj();S&&bb()&&(Ho5(Y,S)||Y.push(S));return Nuu(Y)},y51=function(){var Y=Mad(),S=kEj();
S||(S=tau());return _.d1(Y,function(P){return S&&Dx(S,P.key)?!0:!1})},kEj=function(){var Y=q3();
if(!Y)return null;var S=CW().getScreens();return I0(S,Y)},omX=function(Y){Rv("remote.onCastSessionChange_: "+Nfj(Y));
if(Y){var S=kEj();S&&S.id==Y.id?(y91(S.id,"YouTube TV"),Y.idType=="shortLived"&&(Y=Y.token)&&(S=bb())&&S.setLoungeToken(Y)):(S&&NGd(),Hdo(Y,1))}else bb()&&NGd()},NGd=function(){MfI()?UF().stopSession():AX("stopSession called before API ready.");
var Y=bb();Y&&(Y.disconnect(1),Vao(null))},e2o=function(){var Y=bb();
return Y&&Y.getProxyState()!=3?new St(bb(),void 0):null},Rv=function(Y){F1("remote",Y)},CW=function(){if(!OdI){var Y=_.tA("yt.mdx.remote.screenService_");
OdI=Y?new XpY(Y):null}return OdI},q3=function(){return _.tA("yt.mdx.remote.currentScreenId_")},Yej=function(Y){_.HQ("yt.mdx.remote.currentScreenId_",Y)},id1=function(){_.HQ("yt.mdx.remote.connectData_",null)},bb=function(){return _.tA("yt.mdx.remote.connection_")},Vao=function(Y){var S=bb();
id1();Y||Yej("");_.HQ("yt.mdx.remote.connection_",Y);cl&&(_.Q4(cl,function(P){P(Y)}),cl.length=0);
S&&!Y?e7("yt-remote-connection-change",!1):!S&&Y&&e7("yt-remote-connection-change",!0)},tau=function(){var Y=Oou();
if(!Y)return null;var S=CW();if(!S)return null;S=S.getScreens();return I0(S,Y)},Hdo=function(Y,S){Yej(Y.id);
Y=new jt(Bl,Y,A5o(),_.tA("yt.mdx.remote.enableConnectWithInitialState_")||!1);Y.connect(S,_.tA("yt.mdx.remote.connectData_"));Y.subscribe("beforeDisconnect",function(P){e7("yt-remote-before-disconnect",P)});
Y.subscribe("beforeDispose",function(){bb()&&Vao(null)});
Y.subscribe("browserChannelAuthError",function(){var P=kEj();P&&P.idType=="shortLived"&&(MfI()?UF().handleBrowserChannelAuthError():AX("refreshLoungeToken called before API ready."))});
Vao(Y)},UnY=function(){var Y=tau();
Y?(Rv("Resume connection to: "+Nfj(Y)),Hdo(Y,0)):(a0(),Qk1(),Rv("Skipping connecting because no session screen found."))},Bl=null,cl=null,OdI=null,ZdZ=function(){var Y=A5o();
if(_.RY.isEmpty(Y)){Y=eTY();var S=_.u4("yt-remote-session-name")||"",P=_.u4("yt-remote-session-app")||"";Y={device:"REMOTE_CONTROL",id:Y,name:S,app:P,mdxVersion:3};Y.authuser=String(_.X3("SESSION_INDEX","0"));(S=_.X3("DELEGATED_SESSION_ID"))&&(Y.pageId=String(S));_.HQ("yt.mdx.remote.channelParams_",Y)}},A5o=function(){return _.tA("yt.mdx.remote.channelParams_")||{}},xk=[];var SeI=new _.lX("yt-menu"),P4X=function(){},WeI=function(Y,S,P){Y=S=="right-click"?P.rightClickMenuPopupHint:P.menuPopupHint;
if(!(uhY(S)>10))return S=S||"default",SeI.set(S+"-impression",uhY(S)+1),Y},uhY=function(Y){return parseInt(SeI.get((Y||"default")+"-impression")||0,10)};
_.Yn(P4X);var zeo=function(){this.contexts_=new WeakMap;this.JSC$17433_networkService_=this.activeContext_=null},mCI=function(Y,S,P){var u=Y.contexts_.get(S);
u||(u=new bRd(Y.JSC$17433_networkService_),Y.contexts_.set(S,u));Y.activeContext_=u;P&&Y.activeContext_.reset();Y.activeContext_.start();return Y.activeContext_};var Tm=function(){};
Tm.prototype.enqueue=function(){var Y=this,S;return _.B(function(P){if(Y.isCounterfactual())return(S=Y.getCounterfactualData())&&Y.shouldLogCounterfactualImpression()&&Y.sendImpressionEndpoints(S),P.return();Y.doEnqueue();_.Yt(P)})};
Tm.prototype.sendImpressionEndpoints=function(Y){_.Ap.getInstance().triggerOptionalAction("yt-service-request",{},Y[0])};var KW=function(Y,S){this.renderer=Y;this.page=S};
_.r(KW,Tm);KW.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
KW.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
KW.prototype.shouldLogCounterfactualImpression=function(){return!0};
KW.prototype.doEnqueue=function(){var Y=_.Un(this.page);Y&&Y.pause();this.renderer.impressionCommand&&_.Ap.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Ix(_.Ap.getInstance(),[this.renderer.promoCommand],this.page)};var nAo=function(Y,S){this.renderer=Y;this.resolver=_.dL();this.JSC$17445_enforcementCounter=new _.U1L;S?this.JSC$17445_playerManager=_.Un(S):this.JSC$17445_playerManager=null;_.cq(1,!0)};
_.r(nAo,Tm);_.z=nAo.prototype;_.z.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var Y=[];this.renderer.impressionEndpoints.forEach(function(S){(S=_.vF(S))&&Y.push(S)});
return Y}};
_.z.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.z.shouldLogCounterfactualImpression=function(){var Y=_.ahY();Y?(this.JSC$17445_enforcementCounter.increment("POPUP"),_.cq(3)):_.cq(2);return Y};
_.z.cancel=function(){this.resolver.promise.cancel()};
_.z.doEnqueue=function(){var Y=this;_.ahY()?(this.JSC$17445_enforcementCounter.increment("POPUP"),_.cq(3),jmY(this)):this.JSC$17445_playerManager?(this.resolver.promise.then(function(){jmY(Y)}),JD_(this.resolver,this.JSC$17445_playerManager)):_.cq(2)};
var JD_=function(Y,S){var P=_.dL();S.getPlayerPromise().then(function(u){P.resolve(u)});
P.promise.then(function(u){u.addEventListener("onAbnormalityDetected",Y.resolve);_.gy(Y.promise,function(){u.removeEventListener("onAbnormalityDetected",Y.resolve)})});
Y.promise.thenCatch(function(){P.promise.cancel()})},jmY=function(Y){_.cq(3);
var S={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:Y.renderer}};S=_.Ap.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:S},{});Promise.all(S).then(function(){BmB();Y.JSC$17445_playerManager&&Y.JSC$17445_playerManager.pause()})},BmB=function(){WVZ(function(Y,S){_.PY_(Y,S);
Y===0?_.cq(7):_.cq(4)})};var cDd=function(Y,S){this.renderer=Y;this.page=S;this.resolver=_.dL()};
_.r(cDd,Tm);_.z=cDd.prototype;_.z.cancel=function(){this.resolver.promise.cancel()};
_.z.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.z.isCounterfactual=function(){return!this.renderer.isVisible};
_.z.shouldLogCounterfactualImpression=function(){return!0};
_.z.doEnqueue=function(){var Y=this;this.resolver.promise.then(function(){var P={popup:{mealbarPromoRenderer:Y.renderer},popupType:"MEALBAR"};_.Ap.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:P},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var S=_.Un(this.page);S&&C4d(this.resolver,S)}break;default:this.resolver.resolve()}};
var C4d=function(Y,S){var P=_.dL();S.getPlayerPromise().then(function(u){P.resolve(u)});
P.promise.then(function(u){u.addEventListener("onAdEnd",Y.resolve);_.gy(Y.promise,function(){u.removeEventListener("onAdEnd",Y.resolve)})});
Y.promise.thenCatch(function(){P.promise.cancel()})};var qeI=function(Y,S){this.renderer=Y;this.page=S};
_.r(qeI,Tm);_.z=qeI.prototype;_.z.cancel=function(){this.JSC$17453_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17453_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17453_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.z.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.z.isCounterfactual=function(){return!this.renderer.isVisible};
_.z.shouldLogCounterfactualImpression=function(){return!0};
_.z.doEnqueue=function(){var Y=this,S,P;((S=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(P=S.playbackUpsellDialogTriggerConditionData)==null?void 0:P.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17453_downloadedVideosCountSelectorUnsubscriber=_.J5(_.Na(),Ozj,function(u,W){u>W&&(ReY(Y),Y.cancel())}):ReY(this)};
var ReY=function(Y){var S={popup:{upsellDialogRenderer:Y.renderer},popupType:"MODAL"};_.Ap.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:S},{});(Y=_.Un(Y.page))&&Y.pause()};var Ec={},xCo=(Ec.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Ec.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Ec.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Ec.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Ec.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Ec.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Ec.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Ec),bfo=function(Y,S){this.renderer=Y;this.targetManager=
S};
_.r(bfo,Tm);_.z=bfo.prototype;_.z.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17460_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17460_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17460_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.z.getCounterfactualData=function(){if(this.isCounterfactual()){var Y;return(Y=this.renderer.promoConfig)==null?void 0:Y.impressionEndpoints}};
_.z.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.z.shouldLogCounterfactualImpression=function(){return!0};
_.z.doEnqueue=function(){var Y=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17460_downloadedVideosCountSelectorUnsubscriber=_.J5(_.Na(),Ozj,function(S,P){Y.renderer.targetId&&S>P&&(Q_I(Y.targetManager,Y.renderer.targetId,TmZ(Y)),Y.cancel())});
break;default:Q_I(this.targetManager,this.renderer.targetId,TmZ(this))}};
var TmZ=function(Y){var S;if((S=Y.renderer.suggestedPosition)==null?0:S.type)var P=xCo[Y.renderer.suggestedPosition.type];P||(P="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:Y.renderer},popupType:"HINT",position:P}}};var Keu=function(){this.previousPage=null},EAu;
Keu.prototype.registerPromoCommand=function(Y,S){fG5(this,void 0,void 0,_.g(Y.roadblock,lW1),void 0,void 0,S)};
var fG5=function(Y,S,P,u,W,m,J){Y.previousPage!==J&&Y.pendingTooltipPromo&&Y.pendingTooltipPromo.cancel();Y.previousPage=J;W?(Y.pendingEnforcementPromo&&Y.pendingEnforcementPromo.cancel(),Y.pendingEnforcementPromo=new nAo(W,J),Y.pendingEnforcementPromo.enqueue()):m?(Y.pendingCommandWrapperPromo=new KW(m,J),Y.pendingCommandWrapperPromo.enqueue()):u?(Y.pendingRoadblockPromo&&Y.pendingRoadblockPromo.cancel(),Y.pendingRoadblockPromo=new qeI(u,J),Y.pendingRoadblockPromo.enqueue()):S?(Y.pendingMealbarPromo&&
Y.pendingMealbarPromo.cancel(),Y.pendingMealbarPromo=new cDd(S,J),Y.pendingMealbarPromo.enqueue()):P&&(Y.pendingTooltipPromo&&Y.pendingTooltipPromo.cancel(),Y.pendingTooltipPromo=new bfo(P,_.YA()),Y.pendingTooltipPromo.enqueue())},gAI=function(){EAu||(EAu=new Keu);
return EAu};var OMB=!1;var N25=function(Y,S){var P=_.X3("SESSION_INDEX");this.actionToken_=Y;this.commonToken_=S;this.sessionIndex_=P},yKu=function(Y){var S=_.dL(),P=_.tA("payments.business.integration.bootstrap"),u=_.tA("payments.business.integration"),W=u.Style.create().withMaterialDesignStyle(),m=u.mashupMode.popup("instrument-manager");
P.asMashupMode(m).usingUserIndex(Y.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(W).inStandaloneContext(u.standaloneContextAuthId.forUserId()).instrumentManager(Y.actionToken_,Y.commonToken_.length>0?Y.commonToken_:void 0,function(J){var c=J.instrumentId;c?S.resolve(c):(c=_.tA("payments.business.integration.scenario.InstrumentManager"),S.reject(J.errorCode&&J.errorCode===c.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(J){_.ik(J);
S.reject("instrumentManagerLoadError")});
return S.promise};var Hr=function(Y,S,P){this.payloadName="transactionFlowFailed";this.payload={errorType:Y,serializedTransactionFlowLoggingParams:S,isUserDismiss:P===void 0?!1:P}};
_.HQ("yt.ypc.shared.YpcTransactionFlowError",Hr);var fW=function(){return _.JI.apply(this,arguments)||this};
_.r(fW,_.JI);fW.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
fW.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
fW.prototype.onErrorMessageDismiss=fW.prototype.onErrorMessageDismiss;_.Q([_.X({readOnly:!0,observer:"errorRendererChanged"}),_.k("design:type",Object)],fW.prototype,"errorRenderer",void 0);_.Q([_.WZ("yt-live-chat-error-message-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fW.prototype,"onErrorMessageDismiss",null);fW=_.Q([_.BZ()],fW);var $Cj=[fW.prototype];var rD6;var GSd;var heu=new _.lX("yt-live-chat"),vAB=new Map;vAB.set("timestamp_toggle","show-timestamps");vAB.set("reactions_toggle","allow-reactions");var gR=function(){return _.Z.apply(this,arguments)||this};
_.r(gR,_.Z);_.z=gR.prototype;_.z.menuItemIdentifierChanged=function(){var Y;(Y=this.data)!=null&&Y.menuItemIdentifier&&(Y=vAB.get(this.data.menuItemIdentifier))&&(_.f("enable_lwe_web_mute")?(Y=heu.get(Y),this.isToggled=!(Y===void 0?!this.data.isToggled:!Y)):this.isToggled=heu.get(Y))};
_.z.onFocus=function(){this.toggleButton.focus()};
_.z.onTap=function(){var Y=this.data.command;Y&&this.componentBehavior.resolveCommand(Y)};
_.z.computeText=function(Y,S,P){return this.componentBehavior.getSimpleString(Y?P:S)};
_.z.computeIcon=function(Y,S,P){return(Y=Y?P:S)&&Y.iconType?_.u2(Y.iconType):""};
gR.prototype.onTap=gR.prototype.onTap;gR.prototype.onFocus=gR.prototype.onFocus;gR.prototype.menuItemIdentifierChanged=gR.prototype.menuItemIdentifierChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],gR.prototype,"componentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],gR.prototype,"data",void 0);
_.Q([_.X({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.k("design:type",String)],gR.prototype,"icon",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],gR.prototype,"isToggled",void 0);_.Q([_.nc("tp-yt-paper-toggle-button"),_.k("design:type",Object)],gR.prototype,"toggleButton",void 0);_.Q([_.zY("data.menuItemIdentifier"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gR.prototype,"menuItemIdentifierChanged",null);
_.Q([_.WZ("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gR.prototype,"onFocus",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gR.prototype,"onTap",null);gR=_.Q([_.r0({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],gR);
_.A(gR,"yt-live-chat-toggle-renderer",function(){if(GSd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;rD6===void 0&&(rD6=document.createElement("template"));var u=rD6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);GSd=Y}Y=GSd;return Y},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var DCY=new _.yH("NAVIGATION_PROGRESS_TOKEN");_.lk("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var IGd={},mTu=(IGd.CSI=function(Y,S){var P={};P[Y]=S;Y=_.oj(_.XOJ)(P);Object.keys(Y).length>0&&_.wP(Y)},IGd.ECATCHER=function(Y){return function(S,P){_.X3(Y)[S]=P}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),IGd);var aGI={},Le_={},wUX=(Le_[G8Y.name]=!0,Le_),$k=function(){var Y=_.JI.apply(this,arguments)||this;Y._noAccessors=!0;Y.tabGesturesIsActive=!1;Y.actionRouterIsRoot=!0;Y.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};Y.pageTitle="";Y.titleSuffix="YouTube";Y.unseenNotificationCount=
0;Y.hasNavigated=!1;Y.hasSetScrollTopForNavigation=!1;Y.pagePreparer=null;Y.zwiebackInitJobId=0;Y.dataUpdatePromise=null;Y.loadDepsPromise=_.Cb();Y.hasPendingNavigation=!1;Y.pendingPlayerOnResponseReceivedActions=[];return Y};
_.r($k,_.JI);$k.prototype.created=function(){this.pendingPlayerOnResponseReceivedActions=[];_.f("enable_browser_cookie_status_monitoring")&&_.hp(_.wc,this.reportBrowserCookieSetting)};
$k.prototype.reportBrowserCookieSetting=function(){var Y=new MC1,S="other";_.cW?S="chrome":_.BW?S="firefox":_.dk?S="safari":_.yl&&(S="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(P){Y.increment(_.Eh(),P,S)}).catch(function(){Y.increment(_.Eh(),!1,S)}):Y.increment(_.Eh(),!1,S)};
$k.prototype.attached=function(){pUB(this);document.addEventListener("yt-navigate-cache",_.up(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var Y=rR();Y.init();Y.dispatchElement=this.hostElement};
var pUB=function(Y,S){S=S===void 0?0:S;var P=_.E().resolve(_.PQ(_.OG));if(P)Feo(Y,P);else{if(S>=5)throw Error("Yk");setTimeout(function(){pUB(Y,S+1)},0)}},Feo=function(Y,S){S.addEventListener("yt-navigate-start",_.up(Y,Y.onYtNavigateStart));
S.addEventListener("yt-navigate-finish",_.up(Y,Y.onYtNavigateFinish));S.addEventListener("yt-navigate-error",_.up(Y,Y.onYtNavigateError));S.addEventListener("yt-page-data-fetched",_.up(Y,Y.onYtPageDataFetched))};
_.z=$k.prototype;_.z.detached=function(){var Y=_.E().resolve(_.OG);Y.removeEventListener("yt-navigate-start",_.up(this,this.onYtNavigateStart));Y.removeEventListener("yt-navigate-finish",_.up(this,this.onYtNavigateFinish));Y.removeEventListener("yt-navigate-error",_.up(this,this.onYtNavigateError));Y.removeEventListener("yt-page-data-fetched",_.up(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.up(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.z.setPageOffset=function(Y,S){Y?_.nb(this.hostElement,"yt-set-page-offset",[Y,S]):_.p_(Error("Zk"))};
_.z.setPageOffsetForNavigation=function(Y,S){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(Y,S))};
_.z.onYtNavigateSetPageOffset=function(Y,S){this.setPageOffsetForNavigation(S.page,S.offset)};
_.z.getPageOffset=function(){var Y=_.I(this.hostElement).querySelector("#page-manager").getCurrentPage(),S=0;Y&&(S=_.nb(this.hostElement,"yt-get-page-offset",[Y])[0]);return S};
_.z.onYtHistoryPop=function(Y,S){if(_.Z4("DISABLE_WARM_LOADS"))Y.preventDefault(),window.location.reload();else{var P=_.E().resolve(_.OG);P.hasPendingNavigation()&&Y.preventDefault();P.cancelPendingNavigation();_.jR(this.hostElement,"yt-pending-navigation-cancelled");S.errorMsg&&(Y=S.errorMsg.split(" - "),S=Error(Y[0]),Y.length==2&&Y[1]&&(_.d6(S,Y[1]),_.sf(S)),window.location.reload())}};
_.z.onYtHistoryLoad=function(Y,S){var P=this;if(_.Z4("DISABLE_WARM_LOADS"))window.location.reload();else{this.hasError=!1;(Y=S.endpoint)&&Object.keys(Y).length||(Y=null);var u=S.historyEntry,W=_.E().resolve(_.OG),m=_.E().resolve(_.Ag),J=null;u&&u.rootData&&(J=u.rootData);var c=J&&smo(J);!J||c||J.filler?Y?(W.navigate(Y,!0),dCu(this,Y)):(S.legacyBorder||c||(S.JSC$26311_savedComponentState==null&&J==null?_.sf(new _.$2("Incomplete history entry",S.forward)):_.F_(new _.$2("Malformed history entry",S.JSC$26311_savedComponentState,
S.forward,J))),window.location.reload()):(_.k9u({isHot:!0}),_.wP({webInfo:{navigationReason:"h"}}),_.RGK(),_.Fk("srt"),_.Fk("pdc"),this.cancelPendingTasks(),lGd(this,S.forward,J),J.player&&(J.player.loaded=!1),dCu(this,Y),_.RZi(W,Y||{},J,2,{},!1,S).then(function(){P.setPageOffset(m.getCurrentPage(),u.scrollTop||0)}))}};
_.z.initHistoryManager=function(Y){if(!this.hasNavigated){this.hasNavigated=!0;var S=_.I(this.hostElement).querySelector("#page-manager").getCurrentData();Y=isNaN(Y)?this.getPageOffset():Y;var P=_.E().resolve(_.OG).currentEndpoint;this.replaceState(P,S,Y)}};
_.z.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.z.onYtNavigateStart=function(Y,S){this.cancelPendingTasks();S.noProgressBar||(Y=_.E().resolve(_.PQ(DCY)))&&Y.start();Y=this.hasPendingNavigation?null:this.data;this.hasError=!1;var P=_.E().resolve(_.Ag),u,W,m;_.f("kevlar_use_vimio_behavior")&&!((u=S.endpoint)==null?0:(W=u.commandMetadata)==null?0:(m=W.webCommandMetadata)==null?0:m.ignoreNavigation)&&(u=P.getCurrentPage())&&u.disconnectVisibilityRoot();P.prepareForNavigation(S.pageType,S.endpoint);_.f("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=
new _.ZG(1,"pcl"),_.i4(this.pagePreparer,P.preparePage.bind(P,S.pageType,S.endpoint)));u=this.getPageOffset();this.initHistoryManager(u);S.reload||this.hasPendingNavigation?this.replaceState(S.endpoint,Y,u):(Y==null?void 0:Y.page)==="watch"&&S.pageType==="watch"&&_.f("kevlar_replace_watch_to_watch_history_state")?this.replaceState(S.endpoint,Y,u):(Y==null?void 0:Y.page)!=="shorts"||S.pageType!=="shorts"||S.endpoint.reelWatchEndpoint.sequenceParams||_.f("short_to_short_back_nav_killswitch")?S.type!=
"navigate-back"&&S.type!="navigate-forward"&&(S.pageType==="shorts"&&_.ms(this.hostElement,"yt-shorts-reset"),this.saveAndPush(S.url,S.endpoint,Y,u)):this.replaceState(S.endpoint,Y,0);this.hasPendingNavigation=!0};
var XU5=function(Y){Y.hasPendingNavigation=!1;(Y=_.E().resolve(_.PQ(DCY)))&&Y.finish()};
$k.prototype.onYtNavigateError=function(Y,S){XU5(this);this.hasError=!0;S&&S.errorMessage?this.errorMessage=S.errorMessage:this.errorMessage=void 0;Y=this.get("endpoint.commandMetadata.webCommandMetadata.url",S);var P=_.MP(window.location.href);Y&&!P.pbjreload&&(S=S.navigationErrorReason||"10",_.f("kevlar_parent_on_pbjreload")&&(P={csn:_.pM()},this.get("data.endpoint.clickTrackingParams")&&(P.itct=this.data.endpoint.clickTrackingParams),_.ef(Y,P)),_.aK(_.y4(Y,{pbjreload:S})))};
$k.prototype.onYtNavigateCache=function(Y,S){var P=this,u=S.url,W=S.endpoint,m=S.data;Y=!!S.miniplayer;S=!!S.skipHistory;if(u&&W&&m){var J=this.getPageOffset(),c=this.data||null;S||this.saveAndPush(u,W,c,J);u=_.RZi(_.E().resolve(_.OG),W,m,Y?4:3,{},Y);Y&&u.then(function(){P.dataUpdatePromise&&P.dataUpdatePromise.then(function(){var C=_.E().resolve(_.Ag);P.setPageOffset(C.getCurrentPage(),0)})})}};
$k.prototype.onYtNavigateFinish=function(Y,S){var P=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){Zfd(P,S.fromHistory)})};
var Zfd=function(Y,S){XU5(Y);if(Y.pendingPlayerOnResponseReceivedActions){for(var P=_.n(Y.pendingPlayerOnResponseReceivedActions),u=P.next();!u.done;u=P.next())_.m4(u.value,Y.hostElement);Y.pendingPlayerOnResponseReceivedActions=[]}P=_.E().resolve(_.Ag);!S&&Y.hasNavigated&&((S=P.getCurrentPage())?S.is==="ytd-shorts"||Y.tabGesturesIsActive||Y.setPageOffsetForNavigation(S,0):_.sf(Error("$k")));_.w0(function(){_.w0(function(){_.Fk("pda")})})};
$k.prototype.onYtNavigate=function(Y){if(!Y.detail.endpoint){var S=new _.$2("Error: Missing yt-navigate endpoint from target:",Y.target,Y.target.nodeName);_.p_(S)}if(S=_.f("cold_missing_history"))S=rR(),S.init(!1),S=!(S.browserHistory.boundHistoryReplaceState&&S.browserHistory.boundHistoryPushState);if(S){_.lk("DISABLE_WARM_LOADS",!0);S=new _.$2("Failed to initialize history manager",this.getDebugString());var P=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
P?_.sf(S):_.p_(S)}S=Y.detail.endpoint;var u,W;_.f("debug_forward_web_query_parameters")&&((u=S.commandMetadata)==null?0:(W=u.webCommandMetadata)==null?0:W.url)&&(S=JSON.parse(JSON.stringify(S)),S.commandMetadata.webCommandMetadata.url=_.Dzf(S.commandMetadata.webCommandMetadata.url,window.location.search));Y={type:0,command:S,form:{params:Y.detail.params,tempData:Y.detail.tempData||{},requestType:Y.detail.type,createScreenConfig:Y.detail.createScreenConfig,reload:Y.detail.reload?Y.detail.reload:!1,
requestForm:Y.detail}};_.f("kevlar_yt_navigate_command_handler")?(u=_.E().resolve(_.uY),Y.form.skipDefaultElement=!0,u.resolveCommand(S,{form:Y.form})):this.handleNavigate(Y)};
$k.prototype.handleNavigate=function(Y){this.hasSetScrollTopForNavigation=!1;var S=_.E().resolve(_.OG),P=Y.form||{};S.navigate(Y.command,P.reload,P.params,P.tempData,P.requestType,P.createScreenConfig,P.ignoreConfirmation,P.requestForm)&&dCu(this,Y.command,P.tempData)};
$k.prototype.onYtPageDataFetched=function(Y,S){try{_.bpU().reset();this.data=S.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.E().resolve(_.Ag).updatePageData(this.data);var P=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);P&&noZ(P);var u=this.get("response.responseContext.serviceTrackingParams",this.data);u&&noZ(u);var W=
this.get("playerResponse.onResponseReceivedActions",this.data);W&&(W=ifu(this,W));W&&_.cu(this.hostElement,W,this.hostElement);var m=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),J=this.get("response.responseContext.consistencyTokenJar",this.data);if(m||J){var c=_.qvh(),C=(0,_.RY.getValues)(c.tokenJars);m&&c.replace(C,m);J&&c.replace(C,J)}}catch(x){_.p_(x)}};
var dCu=function(Y,S,P){try{Y.onYtEndpointChangeHandler(S,P)}catch(u){_.p_(u)}};
_.z=$k.prototype;_.z.onYtEndpointChangeHandler=function(){};
_.z.setPageTitle=function(Y){Y=(this.pageTitle=Y)?Y+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+Y};
_.z.onYtUpdateTitle=function(Y,S){this.setPageTitle(S)};
_.z.setUnseenNotificationCount=function(Y){this.unseenNotificationCount=Y;this.setPageTitle(this.pageTitle)};
_.z.handleUpdateNotificationsUnseenCountAction=function(Y){_.g(Y,m7u)&&((Y=_.g(Y,m7u).unseenCount)?this.setUnseenNotificationCount(Y):this.setUnseenNotificationCount(0))};
_.z.handleClearCookieAction=function(Y){var S;(Y=(S=_.g(Y,Prj))==null?void 0:S.cookieName)&&_.k4Y(Y)};
_.z.onYtUpdateUnseenNotificationCount=function(Y,S){this.setUnseenNotificationCount(S)};
_.z.loadData=function(Y){var S=this;this.loadDepsPromise.then(function(){var P=_.E().resolve(_.PQ(_.OG));P||_.p_(Error("al"));if(Y&&Y.response){if(!Y.endpoint){var u=_.A9(window.document.location.href)||"/",W="";if(u==="/"||u.startsWith("/?"))W="WEB_PAGE_TYPE_BROWSE";Y.endpoint={commandMetadata:{webCommandMetadata:{url:u,webPageType:W,rootVe:3854}}}}_.RZi(P,Y.endpoint,Y,5,{})}else Y.endpoint?P.navigate(Y.endpoint):P.navigate(_.ja);_.wc.cancelJob(S.zwiebackInitJobId);S.zwiebackInitJobId=_.wc.addLowPriorityJob(YV5)})};
var rR=function(){return _.E().resolve(_.Pb)};
$k.prototype.getDebugString=function(){return rR().getDebugString()};
$k.prototype.getThirdPartyManipulationSuspected=function(){return rR().getThirdPartyManipulationSuspected()};
$k.prototype.replaceState=function(Y,S,P){rR().saveAndReplace(Y,S,P)};
$k.prototype.saveAndPush=function(Y,S,P,u){rR().saveAndPush(Y,S,P,u)};
var smo=function(Y){return _.f("web_honor_cache_for_back")&&(_.g(Y.endpoint,_.yx)||_.g(Y.endpoint,_.bM))?!0:!Y||isNaN(Y.expirationTime)?!1:(0,_.Oh)()>Y.expirationTime},lGd=function(Y,S,P){var u=Y.get("response.trackingParams",P),W=_.wf(),m=_.pM();
if(u&&W&&m&&(u=Y.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",P),!u&&P.rootVe&&(u=P.rootVe),W=S?"forwardButton":"backButton",S=Y.get("playerResponse.topbar.desktopTopbarRenderer."+W+".buttonRenderer.command.clickTrackingParams",Y.data),Y=Y.get("response.topbar.desktopTopbarRenderer."+W+".buttonRenderer.command.clickTrackingParams",Y.data),S=(Y=S||Y)?_.Re(Y):void 0,Y=_.BF(),W=[_.Cb(P)],_.Ow(Y,u,S,{dataPromises:W,csnToClone:P.csn}),P.graftedVes))for(P=
_.n(P.graftedVes),u=P.next();!u.done;u=P.next())_.Ym(Y,u.value)};
$k.prototype.onStoreGraftedVeAction=function(Y){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(Y)):_.sf(Error("bl"))};
var ifu=function(Y,S){return S.filter(function(P){for(var u in P)if(wUX[u])return Y.pendingPlayerOnResponseReceivedActions.push(P),!0;return!1})};
_.y6.Object.defineProperties($k.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
$k.prototype.onStoreGraftedVeAction=$k.prototype.onStoreGraftedVeAction;$k.prototype.loadData=$k.prototype.loadData;$k.prototype.onYtUpdateUnseenNotificationCount=$k.prototype.onYtUpdateUnseenNotificationCount;$k.prototype.handleClearCookieAction=$k.prototype.handleClearCookieAction;$k.prototype.handleUpdateNotificationsUnseenCountAction=$k.prototype.handleUpdateNotificationsUnseenCountAction;$k.prototype.setUnseenNotificationCount=$k.prototype.setUnseenNotificationCount;
$k.prototype.onYtUpdateTitle=$k.prototype.onYtUpdateTitle;$k.prototype.setPageTitle=$k.prototype.setPageTitle;$k.prototype.onYtEndpointChangeHandler=$k.prototype.onYtEndpointChangeHandler;$k.prototype.onYtPageDataFetched=$k.prototype.onYtPageDataFetched;$k.prototype.handleNavigate=$k.prototype.handleNavigate;$k.prototype.onYtNavigate=$k.prototype.onYtNavigate;$k.prototype.onYtNavigateFinish=$k.prototype.onYtNavigateFinish;$k.prototype.onYtNavigateCache=$k.prototype.onYtNavigateCache;
$k.prototype.onYtNavigateError=$k.prototype.onYtNavigateError;$k.prototype.onYtNavigateStart=$k.prototype.onYtNavigateStart;$k.prototype.cancelPendingTasks=$k.prototype.cancelPendingTasks;$k.prototype.initHistoryManager=$k.prototype.initHistoryManager;$k.prototype.onYtHistoryLoad=$k.prototype.onYtHistoryLoad;$k.prototype.onYtHistoryPop=$k.prototype.onYtHistoryPop;$k.prototype.onYtNavigateSetPageOffset=$k.prototype.onYtNavigateSetPageOffset;$k.prototype.setPageOffset=$k.prototype.setPageOffset;
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],$k.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$k.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],$k.prototype,"hasError",void 0);_.Q([_.X(),_.k("design:type",Object)],$k.prototype,"errorMessage",void 0);
_.Q([_.WZ("yt-navigate-set-page-offset"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],$k.prototype,"onYtNavigateSetPageOffset",null);_.Q([_.WZ("yt-history-pop"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],$k.prototype,"onYtHistoryPop",null);
_.Q([_.WZ("yt-history-load"),_.k("design:type",Function),_.k("design:paramtypes",[Event,_.scJ]),_.k("design:returntype")],$k.prototype,"onYtHistoryLoad",null);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],$k.prototype,"onYtNavigate",null);_.Q([_.WZ("yt-update-title"),_.k("design:type",Function),_.k("design:paramtypes",[Event,String]),_.k("design:returntype")],$k.prototype,"onYtUpdateTitle",null);
_.Q([_.WZ("yt-update-unseen-notification-count"),_.k("design:type",Function),_.k("design:paramtypes",[Event,Number]),_.k("design:returntype")],$k.prototype,"onYtUpdateUnseenNotificationCount",null);$k=_.Q([_.BZ()],$k);aGI.YtdAppBehavior=[_.tD.YtActionHandlerBehavior,$k.prototype];var Gm=function(){var Y=_.JI.apply(this,arguments)||this;Y._noAccessors=!0;return Y};
_.r(Gm,_.JI);Gm.prototype.ready=function(){var Y=this;_.I(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){Y.onChange_()})};
Gm.prototype.dataChanged_=function(){_.I(this.hostElement).querySelector("#checkbox").checked=!1};
Gm.prototype.onChange_=function(){var Y=_.I(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.ms(this.hostElement,"yt-dismissal-reason-"+Y,this.data.feedbackToken)};
Gm.prototype.dataChanged_=Gm.prototype.dataChanged_;_.Q([_.X(),_.k("design:type",Object)],Gm.prototype,"data",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gm.prototype,"dataChanged_",null);Gm=_.Q([_.BZ()],Gm);var oA1=[Gm.prototype];var ho=function(){var Y=_.JI.apply(this,arguments)||this;Y.timeoutJobId=0;Y.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return Y};
_.r(ho,_.JI);ho.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
ho.prototype.startTimeout=function(){var Y=this,S=this.data&&this.data.displayDurationSeconds;S&&!this.timeoutJobId&&(this.timeoutJobId=_.hp(_.wc,function(){_.nb(Y.hostElement,"yt-close-popup-action",[Y.is]);Y.timeoutJobId=0},S*1E3))};
ho.prototype.cancelTimeout=function(){_.wc.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
ho.prototype.ytdHatsSurveyBehaviorDataChanged=ho.prototype.ytdHatsSurveyBehaviorDataChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],ho.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ho.prototype,"ytdHatsSurveyBehaviorDataChanged",null);ho=_.Q([_.BZ()],ho);var to6=[_.tD.YtActionHandlerBehavior,ho.prototype];var ADu=function(Y,S){return Y.SHARED_RENDERERS_.hasOwnProperty(S)?"yt":Y.prefix},vl={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}};vl.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.f("kevlar_mealbar_above_player"),modern:_.f("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"}};
vl.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};vl.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};vl.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
vl.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)"}};
vl.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};
vl.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};
vl.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};
vl.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};vl.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"}};
vl.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};vl.TOAST={component:null,properties:{}};var UC1=new function(Y,S,P){this.supportedPopups=Y;this.navigationEndpointPopupMap=S;this.popupTypeMap=P;this.supportedPopups=Y;this.navigationEndpointPopupMap=S;this.popupTypeMap=P}({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:_.f("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"}),QmX=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17512_popupConfig=vl;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 kSB=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.KG.getInstance()},Dr=function(Y,S){var P=Y.pageNameToElement.get(S);
if(!P){switch(S){case "watch":var u=_.f("web_watch_force_learning_journey_for_testing")?_.Xh("ytd-watch-learning-journey"):_.f("kevlar_watch_fixie")?_.Xh("ytd-watch-fixie"):_.f("kevlar_watch_grid")?_.Xh("ytd-watch-grid"):_.Xh("ytd-watch-flexy");break;case "learning-journey-watch":u=_.Xh("ytd-watch-learning-journey");break;case "shorts":u=_.Xh("ytd-shorts");break;case "search":u=_.Xh("ytd-search");break;case "channel":u=_.Xh("ytd-browse");u.pageSubtype="channels";break;case "trending":u=_.Xh("ytd-browse");
u.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":u=
_.Xh("ytd-browse");u.pageSubtype=S;break;case "browse":u=_.Xh("ytd-browse");break;default:_.sf(new _.$2("Error getting page element for type",S))}P=u;Y.pageNameToElement.set(S,P)}return P};
kSB.prototype.preparePage=function(Y,S,P){P&&(Y=Pr(P)||Y);if(Y!=="watch"){var u=this.elementPoolPopulator,W=Y;W!=u.targetPage_&&u.pendingPages_.indexOf(W)>-1&&(u.targetPage_&&(u.pendingPages_.unshift(u.targetPage_),u.abort()),yIZ(u,W),_.wDL(u,W))}if((u=Dr(this,Y))||!_.g(P,_.tp)){u.isAttached||u===S||(u.hidden=!0);if(!(u.data||Y==="watch"&&_.f("swatcheroo_page_pool_dont_provide_filler_data"))){var m;if(Y=(m=_.X3("FILLER_DATA",{})[Y])==null?void 0:m.response)u.data=Y}return u}};var MoX=function(Y){this.JSC$28235_clientRoot=Y;this.playlistHandlerActionMap={"yt-add-to-playlist-command":c66,"yt-end-playlist-command":Cjc,"yt-recover-playlist-command":RB1,"yt-refresh-playlist-command":TP_,"yt-playlist-remove-videos-action":xTZ};_.Uf(_.Ap.getInstance(),this.playlistHandlerActionMap,this.JSC$28235_clientRoot);W4_()},yD1;var Iv=function(Y,S,P){this.apiKey=Y;this.endpoint=S;this.confidenceThreshold=P===void 0?.5:P;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=S==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||S==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
S==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||S==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new tdB};
_.z=Iv.prototype;
_.z.start=function(Y){if(this.state===0)if(this.isOnline()){Y.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=Y.supportsHttpHeadersOverwriteParam);Y.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=Y.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.pb("voice_assistant");_.sV("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=Y.languageCode||"en-US";this.supportsCrossDomainXhr=Y.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=Y.youtubeAssistantRequest||null;this.listeningHandler=Y.listeningHandler||this.listeningHandler;this.audioDetectedHandler=Y.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=Y.stopHandler||this.stopHandler;this.completeHandler=Y.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=Y.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=Y.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
Y.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=Y.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=Y.accessToken;this.additionalHeaders=Y.additionalHeaders||{};var S;this.prefetchResponseTimeoutMs=(S=Y.prefetchResponseTimeoutMs)!=null?S:this.prefetchResponseTimeoutMs;Nm1(this);this.startAudio();Hfo(this)}else this.errorHandler("OFFLINE")};
_.z.stop=function(Y){var S=Y===void 0?{}:Y;Y=S.logCancel===void 0?!0:S.logCancel;var P=S.logMicClosed===void 0?!0:S.logMicClosed;var u=S.handleError===void 0?!0:S.handleError;S=S.handleStop===void 0?!0:S.handleStop;this.state!==0&&(Y&&av("voz_cx"),LW(this,{logMicClosed:P,handleStop:S}),u&&this.errorHandler("ABORTED"))};
_.z.getState=function(){return this.state};
_.z.isSupported=function(){return!0};
_.z.stopAudio=function(Y){(Y===void 0||Y)&&av("voz_mf")};
_.z.startAudio=function(){av("voz_vp");return _.Cb(null)};
var Vo5=function(Y,S){Y.channelOpen&&(Y.state!==2&&(Y.state=2,av("voz_ss"),Y.listeningHandler()),S=new Uint8Array(S),S='{ "audioIn": "'+_.QB(S)+'" }',Y.channel.send(S))},LW=function(Y,S){var P=S===void 0?{}:S;
S=P.logMicClosed===void 0?!0:P.logMicClosed;P=P.handleStop===void 0?!0:P.handleStop;Y.vozEndOfDataTimeout>-1&&(clearTimeout(Y.vozEndOfDataTimeout),Y.vozEndOfDataTimeout=-1);eeu(Y);Y.stopAudio(S);Y.channel&&(Y.channelOpen=!1,Y.manuallyClosedChannel=!0,Y.channel.close(),Y.channel=void 0);Y.transcribedSpeechResults=[];Y.state=0;P&&Y.stopHandler()},Nm1=function(Y){var S={httpHeadersOverwriteParam:Y.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},Y.additionalHeaders,Y.accessToken&&Y.isUsingVoz?{Authorization:"Bearer "+Y.accessToken}:{"x-goog-api-key":Y.apiKey}),supportsCrossDomainXhr:Y.supportsCrossDomainXhr};Y.channel=new aw(Y.endpoint,S);Y.channel.open();_.b2(Y.channel,"w",function(){var P=Y.channel,u=P.send,W=Y.isUsingVoz?"PLACEHOLDER":"example";W={config:{dialogStateIn:{languageCode:Y.languageCode},deviceConfig:{deviceId:W,deviceModelId:W},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!Y.isUsingVoz)W.config.requestType=4;else if(Y.isUsingVoz&&Y.youtubeAssistantRequest){var m=JSON.stringify(Y.youtubeAssistantRequest);W.config.internalIn={youtubeAssistantS3InputJson:m}}u.call(P,W);Y.channelOpen=!0;Y.manuallyClosedChannel=!1});
_.b2(Y.channel,"x",function(){Y.manuallyClosedChannel||(Y.channelOpen=!1,Y.channel=void 0,LW(Y))});
_.b2(Y.channel,"z",function(P){if(P.data){eeu(Y);for(var u=0;u<P.data.length;u++){var W=Y,m=P.data[u],J=m.speechResults;if(J)a:{var c=[];m=[];var C=!1;J=_.n(J);for(var x=J.next();!x.done;x=J.next()){x=x.value;if(x.noSpeech){LW(W);W.errorHandler("NO_SPEECH");break a}x.transcript!==void 0&&x.stability!==void 0&&(x.stability<W.confidenceThreshold&&(C=!0),C?m.push(x.transcript):c.push(x.transcript))}if(c.length!==0||m.length!==0)c=c.join(" "),m=m.join(" "),W.receivedEndOfUtterance&&!W.isUsingVoz?W.isUsingVoz||
W.completeHandler([c,m]):(C=W,J=c,x=m,av("voz_sf"),C.transcriptionUpdateHandler(J,x),C.transcribedSpeechResults=[J,x]),W.receivedEndOfUtterance&&(av("voz_eou"),W.transcriptionCompleteHandler([c,m]),W.isUsingVoz&&(W.prefetchResponseTimeoutMs===0?LW(W,{logMicClosed:!1,handleStop:!0}):W.prefetchResponseTimeoutMs>0&&Of1(W)))}else W.isUsingVoz&&(m==null?0:m.internalOut)?(m=JSON.parse(m.internalOut.youtubeAssistantS3OutputJson),m.userHasOptedInToVaa||m.vaaConsent?W.vaaConsentUpdateHandler(!!m.userHasOptedInToVaa,
!!m.vaaConsent):(YLB(W),m&&(c=W.transcribedSpeechResults,av("voz_rqf"),W.completeHandler(c,m)))):m.eventType==="END_OF_UTTERANCE"?W.receivedEndOfUtterance=!0:(av("voz_err"),W.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.sf(Error("cl")))}}});
_.b2(Y.channel,"y",function(P){LW(Y);switch(P.status){case 1:P="WEBCHANNEL_NETWORK_ERROR";break;case 2:P="WEBCHANNEL_SERVER_ERROR";break;default:P="WEBCHANNEL_UNKNOWN_ERROR"}Y.errorHandler(P);Y.logError(Error(P))})};
Iv.prototype.logError=function(Y){_.p_(Y)};
Iv.prototype.isOnline=function(){return!0};
var Of1=function(Y){YLB(Y);Y.prefetchResponseSetTimeoutId=setTimeout(function(){LW(Y,{logMicClosed:!1,handleStop:!0})},Y.prefetchResponseTimeoutMs)},YLB=function(Y){Y.prefetchResponseSetTimeoutId>-1&&(clearTimeout(Y.prefetchResponseSetTimeoutId),Y.prefetchResponseSetTimeoutId=-1)},Hfo=function(Y){eeu(Y);
Y.noResponseReceivedTimeout=window.setTimeout(function(){LW(Y);Y.errorHandler("NO_SPEECH")},11E3)},eeu=function(Y){Y.noResponseReceivedTimeout>-1&&(window.clearTimeout(Y.noResponseReceivedTimeout),Y.noResponseReceivedTimeout=-1)},av=function(Y){_.Fk(Y,void 0,"voice_assistant")};var wR=function(){Iv.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.r(wR,Iv);wR.prototype.isSupported=function(){return Ks1()};
wR.prototype.startAudio=function(){var Y=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.t9(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(u){SLB(Y,u)};
this.processor.connect(this.audioContext.destination);var S=function(u){Y.stream=u;if(!Y.audioContext)return _.Cb(null);u=Y.audioContext.createMediaStreamSource(u);Y.processor&&u.connect(Y.processor);return _.Cb(null)},P={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?S(this.stream):navigator.mediaDevices.getUserMedia(P).then(S).catch(function(u){LW(Y);u.name&&u.name==="NotAllowedError"?Y.errorHandler("NO_MICROPHONE_PERMISSION"):(Y.errorHandler("AUDIO_ERROR"),Y.logError(u));return _.t9(null)});
return Iv.prototype.startAudio.call(this)};
wR.prototype.stopAudio=function(Y){Y=Y===void 0?!0:Y;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(S){S.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Iv.prototype.stopAudio.call(this,Y)};
wR.prototype.isOnline=function(){return navigator.onLine};
var SLB=function(Y,S){if(Y.audioContext)if(window.OfflineAudioContext){var P=Y.audioContext.sampleRate,u=S.inputBuffer.getChannelData(0);S=new window.OfflineAudioContext(1,u.length,16E3);for(var W=S.createBuffer(1,u.length,P),m=W.getChannelData(0),J=0,c=0;c<u.length;c++)m[c]=u[c],J+=m[c]*m[c];!Y.audioDetected&&Math.sqrt(J/u.length)>.01&&(Y.audioDetected=!0,Y.audioDetectedHandler());u=S.createBufferSource();u.buffer=W;u.connect(S.destination);u.start(0);S.oncomplete=function(C){C=C.renderedBuffer.getChannelData(0);
for(var x=Math.floor(16384E3/P),b=new Int16Array(x),T=0;T<x;++T)b[T]=Math.max(-1,Math.min(1,C[T]))*32767;Vo5(Y,b.buffer)};
S.startRendering()}else PsX(Y,S)},PsX=function(Y,S){var P=Y.audioContext.sampleRate,u=S.inputBuffer.getChannelData(0),W=Math.floor((P+8E3)/16E3);
P=u.length/W;S=new Float32Array(P);for(var m=0;m<P;++m)S[m]=u[m*W];u=new Int16Array(P);for(W=0;W<P;++W)u[W]=Math.max(-1,Math.min(1,S[W]))*32767;Vo5(Y,u.buffer)};var uRZ={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var Wi6=function(){this.JSC$17577_audioEnabled=!0;this.audioFeedbackHolder={}};
Wi6.prototype.isPlaying=function(Y){return Y.currentTime>0&&!Y.paused&&!Y.ended&&Y.readyState>2};
var zwX=function(Y){for(var S=_.n(Object.values(uRZ)),P=S.next();!P.done;P=S.next())P=P.value,Y.audioFeedbackHolder[P]=new Audio,Y.audioFeedbackHolder[P].src="/s/search/audio/"+P+".mp3",Y.audioFeedbackHolder[P].load()},pW=function(Y,S){if(Y.JSC$17577_audioEnabled!==!1&&S in Y.audioFeedbackHolder){for(var P=_.n(Object.values(Y.audioFeedbackHolder)),u=P.next();!u.done;u=P.next())u=u.value,Y.isPlaying(u)&&u.pause();
Y.audioFeedbackHolder[S].currentTime=0;Y.audioFeedbackHolder[S].play().catch(function(){})}};var mV5=function(Y,S){var P=this;this.store=Y;this.service=S;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){P.setState("offline");P.stop()};
this.audioPlayer=new Wi6;var u;(u=this.audioPlayer)==null||zwX(u)};
_.z=mV5.prototype;_.z.getService=function(){return this.service};
_.z.isEnabled=function(){return!!this.service};
_.z.isSupported=function(){var Y;return(Y=this.service)==null?void 0:Y.isSupported()};
_.z.start=function(){var Y=this,S,P,u,W,m,J,c,C,x,b,T,K,G;return _.B(function(v){switch(v.nextAddress){case 1:Y.store.dispatch(Jgd("",""));if(!navigator.onLine)return Y.setState("offline"),v.return();window.addEventListener("offline",Y.handleOfflineEvent);Y.stream=null;if(!Y.permissionsSupported){v.jumpTo(2);break}_.ND(v,3);return _.q(v,nOX(Y),5);case 5:S=v.yieldResult;if(!S)return(P=Y.audioPlayer)==null||pW(P,"failure"),v.return();Y.service.stream=Y.stream;Y.setState("listening");_.tc(v,2);break;
case 3:_.O4(v),Y.permissionsSupported=!1;case 2:u={context:_.OMX(_.Sq())},u.youtubeAssistantParams={searchParams:{inlineSearchResponse:Y.enableInlineSearchResponse}},W=function(a,w){Y.store.dispatch(BL6("transcribing"));Y.store.dispatch(Jgd(a,w))},m=function(){var a;
(a=Y.audioPlayer)==null||pW(a,"open");Y.setState("listening")},J=function(){Y.setState("transcribing")},c=function(a){Y.setErrorState(a)},C=function(a,w){var F;
(F=Y.audioPlayer)==null||pW(F,"success");w&&(_.f("kevlar_voice_search_inline_search")&&(Y.responseProcessor=_.E().resolve(_.F6E),Y.responseProcessor&&(F=w.navigationAction,a=w.prefetchedSearchResponse,F&&a&&(F=(new _.vvm).JSC$11777_getStoreKey(F),_.oB(Y.responseProcessor,a,F)))),Y.JSC$17595_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",w))},x=function(){window.removeEventListener("offline",Y.handleOfflineEvent)},b=_.jA$(!1),T=b.Authorization!=null,K=Y.enableFirstPartyAuth||
Y.enableFPAForSignedInUsers&&T?b:{"X-Goog-Visitor-Id":b["X-Goog-Visitor-Id"]},G={completeHandler:C,
errorHandler:c,listeningHandler:m,audioDetectedHandler:J,stopHandler:x,transcriptionUpdateHandler:W,youtubeAssistantRequest:u,languageCode:j1j(),additionalHeaders:K,supportsCrossDomainXhr:Y.enableFirstPartyAuth||Y.enableFPAForSignedInUsers&&T,supportsHttpHeadersOverwriteParam:!Y.disableHttpHeadersOverwrite},Y.service.start(G),_.Yt(v)}})};
_.z.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.z.reset=function(){this.store.dispatch(_.WT({type:"RESET_VOICE_SEARCH_STATE"}))};
_.z.setState=function(Y){this.store.dispatch(BL6(Y))};
_.z.setErrorState=function(Y){switch(Y){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var S;(S=this.audioPlayer)==null||pW(S,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)nOX(this);else{var P;(P=this.audioPlayer)==null||pW(P,"failure");this.setState("permission-denied")}break;case "ABORTED":var u;(u=this.audioPlayer)==null||pW(u,"no_input");break;default:var W;(W=this.audioPlayer)==
null||pW(W,"no_input");this.setState("timeout")}};
var nOX=function(Y){var S,P;return _.B(function(u){switch(u.nextAddress){case 1:return _.q(u,navigator.permissions.query({name:"microphone"}),2);case 2:S=u.yieldResult;if(S.state==="granted")return u.return(!0);if(S.state==="denied")return Y.setState("permission-denied"),u.return(!1);Y.setState("permission");P={audio:{sampleSize:16,channelCount:1},video:!1};_.ND(u,3);return _.q(u,navigator.mediaDevices.getUserMedia(P),5);case 5:return Y.stream=u.yieldResult,u.return(!0);case 3:return _.O4(u),Y.setState("permission-denied"),
u.return(!1)}})},j1j=function(){var Y=_.X3("INNERTUBE_CONTEXT_HL"),S=_.X3("INNERTUBE_CONTEXT_GL");
return Y.indexOf("-")>-1?Y:Y+"-"+S};var JOd=function(Y,S,P){mV5.call(this,S,P);this.JSC$17595_actionRouter=Y;this.enableInlineSearchResponse=_.f("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.f("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.f("kevlar_voice_search_enable_fpa_signedin_users")},BCI;
_.r(JOd,mV5);
var cOd=function(){if(!BCI){var Y="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.f("kevlar_voice_search_auth_enabled")||_.f("kevlar_voice_search_use_yt_endpoint")?Y="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.f("kevlar_voice_search_use_fp_endpoint")&&(Y="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");BCI=
new JOd(_.Ap.getInstance(),_.Na(),new wR(_.X3("VOZ_API_KEY"),Y,.5))}return BCI};var Csu=function(Y){this.JSC$17599_clientRoot=Y;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17599_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)]]));Y=_.n(this.eventListeners);for(var S=Y.next();!S.done;S=Y.next()){var P=_.n(S.value);S=P.next().value;P=P.next().value;P=_.n(P);for(var u=P.next();!u.done;u=P.next()){var W=
_.n(u.value);u=W.next().value;W=W.next().value;S.addEventListener(u,W)}}_.Uf(_.Ap.getInstance(),this.autonavPauseActionMap,this.JSC$17599_clientRoot)},qLd,RwI=function(Y){return _.f("kevlar_autonav_popup_filtering")?(Y=_.oK(Y))?Y.hasAttribute("prevent-autonav"):!0:!0};
_.z=Csu.prototype;_.z.onIronOverlayOpened=function(Y){RwI(Y)&&(this.autonavPauseReasons.overlayOpen=!0,F8(this))};
_.z.onIronOverlayClosed=function(Y){RwI(Y)&&(this.autonavPauseReasons.overlayOpen=!1,F8(this))};
_.z.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;F8(this)};
_.z.onYtAutonavPauseBlur=function(){var Y=this;_.wc.addJob(function(){Y.isInBackground()||(Y.autonavPauseReasons.inputBoxFocus=!1,F8(Y))},8,0)};
_.z.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;F8(this)};
_.z.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;F8(this)};
_.z.onYtAutonavPauseScroll=function(){var Y=_.E().resolve(_.Ag);Y.isOnWatch()&&(Y=Y.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=Y.getBoundingClientRect().top<-200,F8(this))};
_.z.onYtAutonavPauseUserEngagement=function(Y){var S=this;if(_.f("user_engagement_enable_autoplay_pause_feature")){var P=Number(Y.lowEngagementThresholdMs);isNaN(P)||P<=0||Y.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.tr("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.E().resolve(_.En),_.uE()<P?_.hp(_.wc,function(){_.tr("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.WGj()?(this.userEngagementCsn=_.pM(),_.hp(_.wc,function(){_.tr("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
S.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,F8(this)):_.tr("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.C2f(Error("dl`"+JSON.stringify(Y)))};
_.z.onYtAutonavPausePlayer=function(Y){this.autonavPauseReasons.requestedByPlayer=!!Y.detail;F8(this)};
_.z.onYtAutonavVisibilityChanged=function(){var Y=this,S,P,u;return _.B(function(W){if(W.nextAddress==1)return(S=_.Q5())?_.q(W,S.getPlayerPromise(),2):W.return();P=W.yieldResult;u=P.isMuted()||P.getVolume()===0;Y.autonavPauseReasons.backgroundAndMute=Y.isInBackground()&&u;F8(Y);_.Yt(W)})};
_.z.onYtAutonavPausePlayerEnded=function(){_.E().resolve(_.En);var Y=144E5;_.f("user_engagement_enable_autoplay_pause_feature")||_.f("is_part_of_any_user_engagement_experiment")||(Y=45E5);this.autonavPauseReasons.longIdle=_.uE()>Y;xVj(this);F8(this)};
_.z.onYtUserActivity=function(){var Y=this;this.autonavPauseReasons.userEngagement&&(_.hp(_.wc,function(){_.tr("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",Y.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,F8(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.hp(_.wc,function(){_.tr("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",Y.userEngagementCsn);_.w6()}),this.autonavPauseReasons.youthereLactExperiment=!1,F8(this));
this.autonavPauseReasons.longIdle&&!_.f("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,F8(this))};
_.z.isInBackground=function(){var Y=window.document.visibilityState;return!(!Y||Y==="visible")};
var F8=function(Y){for(var S=!1,P=_.n(Object.values(Y.autonavPauseReasons)),u=P.next();!u.done;u=P.next())u=u.value,S=S||u;S?_.Af.getInstance().pause(Y.autonavPauseReasons):(Y=_.Af.getInstance(),Y.autonavState_==3?(Y.setState(2,!1,!1),Y.autonavPauseReason_=void 0):Y.autonavState_==1&&(Y.disabledAutonavPauseReason_=void 0))},xVj=function(Y){var S=!1;
if(_.f("enable_autoplay_pause_by_lact")){_.E().resolve(_.En);S=_.z_("autoplay_pause_by_lact_sec")*1E3;var P=_.z_("autoplay_pause_by_lact_sampling_fraction");(S=_.uE()>=S&&Math.random()<P)&&!_.WGj()&&(_.hp(_.wc,function(){_.tr("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),S=!1)}S!==Y.autonavPauseReasons.youthereLactExperiment&&(Y.autonavPauseReasons.youthereLactExperiment=S)&&(Y.userEngagementCsn=_.pM(),_.hp(_.wc,function(){_.tr("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",Y.userEngagementCsn)}));
Y.autonavPauseReasons.userEngagement&&_.hp(_.wc,function(){_.tr("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",Y.userEngagementCsn)})};
Csu.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.tr("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.w6(),this.autonavPauseReasons.youthereLactExperiment=!1,F8(this));this.autonavPauseReasons.userEngagement&&(_.tr("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,F8(this))};
Csu.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var sc=function(){var Y=_.Z.apply(this,arguments)||this;Y.miniGuideVisible=!1;Y.guideOpened=_.f("disable_initial_guide_state_fix")?!1:Y.canFitPersistentGuide(Y.initialBodyClientWidth);Y.guideUserStateOpened=Y.getInitialGuideUserStateOpened();Y.isFullscreenShorts=!1;Y.miniGuideWidthThreshold=_.z_("kevlar_mini_guide_width_threshold",791);Y.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");Y.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
Y.persistentGuideBlockedPagePathRegex=new RegExp(Y.persistentGuideBlockedPagesPatterns.join("|"));Y.animationTransitionDuration=0;Y.lateDataResolver=_.dL();Y.serviceEndpoint=fQY;Y.initialGuideDataFetchFailed=!1;Y.initialLoad=!0;Y.guideRenderers=new Set;Y.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return Y};
_.r(sc,_.Z);_.z=sc.prototype;_.z.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.z.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.z.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.z.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.z.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.z.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.z.ready=function(){_.E().addProvider({provide:_.a5,useValue:this.hostElement})};
_.z.attached=function(){var Y=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.up(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.up(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.up(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.up(this,this.onYtGuideShow));_.ky(this,function(){Y.animationTransitionDuration=200})};
_.z.detached=function(){document.removeEventListener("yt-navigate-finish",_.up(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.up(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.up(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.up(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.up(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.up(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.up(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.z.getData=function(){return this.data};
_.z.load=function(){var Y=this,S,P,u,W;return _.B(function(m){switch(m.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=Y.lateDataResolver.resolve.bind(Y),m.return(Y.lateDataResolver.promise);if(window.ytInitialGuideData)return S=_.dL(),S.resolve(window.ytInitialGuideData),m.return(S.promise);u=!1;_.ND(m,2);return _.q(m,Y.fetchGuideData(),4);case 4:P=m.yieldResult;_.tc(m,3);break;case 2:W=_.O4(m),W.message==="Returned error"&&(u=!0);
case 3:if(P)return m.return(P);Y.onYtGuideClose();u||(Y.initialGuideDataFetchFailed=!0);return m.return(Y.lateDataResolver.promise)}})};
_.z.fetchGuideData=function(){var Y=this,S,P,u,W,m,J;return _.B(function(c){if(c.nextAddress==1)return Y.guidePromise||(Y.guidePromise=_.Bu(Y.hostElement,[Y.serviceEndpoint])),_.q(c,Y.guidePromise,2);if(c.nextAddress!=3)return S=c.yieldResult,P=_.E(),u=P.resolve(_.XN),_.q(c,u(),3);(W=c.yieldResult)&&((m=S)==null?0:m.data)&&((J=S.data.responseContext)==null?void 0:J.maxAgeSeconds)!==0&&W.put("service:guide:fallback",new _.e4({innertubeResponse:S.data}));return c.return(S.data)})};
_.z.initializeGuideDataIfEmpty=function(){var Y=this,S,P;return _.B(function(u){if(u.nextAddress==1){if(!Y.initialGuideDataFetchFailed||Y.data)return u.return();_.ND(u,2);return _.q(u,Y.fetchGuideData(),4)}if(u.nextAddress!=2)return(S=u.yieldResult)&&Y.lateDataResolver.resolve(S),_.tc(u,0);P=_.O4(u);_.sf(P);_.Yt(u)})};
_.z.initializeGuideData=function(){var Y=this,S;return _.B(function(P){switch(P.nextAddress){case 1:return _.Ca(o2B(),{mainAppWeb:_.d2()}),_.ND(P,2),_.q(P,Y.load(),4);case 4:Y.data=P.yieldResult;_.tc(P,3);break;case 2:_.O4(P),_.q2(o2B(),"FAILURE");case 3:S=Y.data&&Y.data.items&&Y.data.items.length>0?"SUCCESS":"FAILURE",_.q2(o2B(),S),_.Yt(P)}})};
_.z.setGuideData=function(Y){var S=this,P,u;return _.B(function(W){if(W.nextAddress==1)return S.disabled?W.return():S.data?(Y.data=S.data,S.guideRenderers.add(Y),W.return()):_.q(W,S.initializeGuideData(),2);S.graftGuideToPage();P=_.Z4("IS_HOMEPAGE_COLD")?"eop":void 0;_.f("disable_element_pool_populator")?S.setGuideDataAfterInit(Y):(u=new _.ZG(1,P),_.i4(u,S.setGuideDataAfterInit.bind(S,Y)));_.Yt(W)})};
_.z.setGuideDataAfterInit=function(Y){Y.data=this.data;Y.markDirty();this.guideRenderers.add(Y);_.w0(function(){_.Fk("gle")});
_.ky(this,function(){_.Fk("gpe")})};
_.z.graftGuideToPage=function(){if(this.data){var Y=this.data&&this.data.trackingParams;Y&&(Y=_.Re(Y),_.Sa(_.BF(),Y))}};
_.z.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.up(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.z.onDrawerOpenedChanged=function(Y,S){!S.value&&this.guideOpened&&(this.guideOpened=!1)};
_.z.onYtGuideToggle=function(Y){var S=this.guideOpened;this.guideOpened=!S;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var P=_.$o();_.rP(0,109,!this.guideUserStateOpened);P.save()}this.updateGuideDrawerElementState();if(this.guideElement){var u;this.guideOpened&&((u=Y.detail)==null?0:u.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.up(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.up(this,
this.onAppDrawerTransitioned))}S||this.initializeGuideDataIfEmpty()};
_.z.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.up(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.H_(this.guideElement)};
_.z.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.up(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(ns1(this.guideOpened))};
_.z.guidePersistentAndVisibleChanged=function(){_.jR(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.z.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.WT({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.z.miniGuideVisibleChanged=function(){_.jR(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.z.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(ns1(this.guideOpened)),this.initialLoad=!1);_.jR(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.z.activeEndpointChanged=function(){_.jR(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.z.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.z.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()};
_.z.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var Y=this.canFitPersistentGuide(this.cachedClientWidth);Y?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=Y}this.updateGuideDrawerElementState()};
_.z.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.z.getGuideOpened=function(){return this.guideOpened};
_.z.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.z.getActiveEndpoint=function(){return this.activeEndpoint};
_.z.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.z.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&&_.ms(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.z.computeGuidePersistentAndVisible=function(){var Y=this;_.pc(this,"computeGuidePersistentAndVisible",function(){Y.guidePersistentAndVisible=Y.guideOpened&&Y.guidePersistent;Y.guideIsVisibleButNotPersistent=!(!Y.guideOpened||Y.guidePersistent)})};
_.z.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.z.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.z.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.z.startLoadingWatch=function(){this.closeGuide()};
_.z.startLoadingShorts=function(){_.f("web_hide_guide_on_shorts")&&this.closeGuide()};
_.z.onYtNavigateFinish=function(Y,S){if(!_.nj||S){this.activeEndpoint=S.endpoint;this.pageType=S.pageType;this.pageUrl=S.response.url;var P,u;Y=(u=_.g((P=S.endpoint)==null?void 0:P.commandMetadata,_.Yo))==null?void 0:u.url;!this.pageUrl&&Y&&(this.pageUrl=Y);_.f("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.z.getVisibleGuideRenderer=function(){for(var Y=_.n(this.guideRenderers),S=Y.next();!S.done;S=Y.next())if(S=S.value,this.miniGuideVisible&&S.is==="ytd-mini-guide-renderer"||this.guideOpened&&S.is==="ytd-guide-renderer")return S;return null};
_.z.markGuideRendererDirty=function(Y){if(Y){typeof Y.markDirty==="function"&&Y.markDirty();Y=_.n([].concat(_.cz(_.I(Y).children)));for(var S=Y.next();!S.done;S=Y.next())this.markGuideRendererDirty(S.value)}};
_.z.persistentGuideEnabled=function(Y,S){if(!S||Y==="watch"||Y==="settings"||Y==="shorts"&&this.isFullscreenShorts||_.f("reels_web_disable_persistent_guide_shorts")&&Y==="shorts")return!1;var P=_.Cz(S)||"";return _.f("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(u){return P===u}):!this.persistentGuideBlockedPagePathRegex.test(P)};
_.z.canFitPersistentGuide=function(Y){var S=_.z_("kevlar_persistent_guide_width_threshold",1312);return S===-1||_.f("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:Y>S};
_.z.canFitMiniGuide=function(Y){return this.miniGuideWidthThreshold===-1?!1:Y>this.miniGuideWidthThreshold};
_.z.onResize=function(){var Y=this;_.pc(this,"calculateGuideState",function(){Y.onResizeDebounced()})};
_.z.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.z.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.z.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.z.getInitialGuideUserStateOpened=function(){return!_.$o().getFlag(109)};
_.y6.Object.defineProperties(sc.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.X3("initialBodyClientWidth")||window.innerWidth}}});
sc.prototype.onResize=sc.prototype.onResize;sc.prototype.observeForMiniGuideVisible=sc.prototype.observeForMiniGuideVisible;sc.prototype.computeGuidePersistentAndVisible=sc.prototype.computeGuidePersistentAndVisible;sc.prototype.cachedClientWidthChanged=sc.prototype.cachedClientWidthChanged;sc.prototype.resetGuide=sc.prototype.resetGuide;sc.prototype.activeEndpointChanged=sc.prototype.activeEndpointChanged;sc.prototype.guideOpenedChanged=sc.prototype.guideOpenedChanged;
sc.prototype.miniGuideVisibleChanged=sc.prototype.miniGuideVisibleChanged;sc.prototype.guideIsVisibleButNotPersistentChanged=sc.prototype.guideIsVisibleButNotPersistentChanged;sc.prototype.guidePersistentAndVisibleChanged=sc.prototype.guidePersistentAndVisibleChanged;sc.prototype.onGuideElementChanged=sc.prototype.onGuideElementChanged;sc.prototype.onGuidePersistentChanged=sc.prototype.onGuidePersistentChanged;sc.prototype.onRenderGuideChanged=sc.prototype.onRenderGuideChanged;
sc.prototype.onActiveEndpointChanged=sc.prototype.onActiveEndpointChanged;sc.prototype.onMiniGuideVisibleChanged=sc.prototype.onMiniGuideVisibleChanged;sc.prototype.onGuideIsVisibleButNotPersistentChanged=sc.prototype.onGuideIsVisibleButNotPersistentChanged;sc.prototype.onGuidePersistendAndVisibleChanged=sc.prototype.onGuidePersistendAndVisibleChanged;_.Q([_.p(_.G8),_.k("design:type",Object)],sc.prototype,"ironResizableBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],sc.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],sc.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],sc.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],sc.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],sc.prototype,"disabled",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],sc.prototype,"guidePersistentAndVisible",void 0);_.Q([_.zY("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"onGuidePersistendAndVisibleChanged",null);_.Q([_.X(),_.k("design:type",Boolean)],sc.prototype,"guideIsVisibleButNotPersistent",void 0);
_.Q([_.zY("guideIsVisibleButNotPersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.Q([_.X(),_.k("design:type",Object)],sc.prototype,"miniGuideVisible",void 0);_.Q([_.zY("miniGuideVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"onMiniGuideVisibleChanged",null);_.Q([_.X(),_.k("design:type",Boolean)],sc.prototype,"forceMiniGuideClose",void 0);
_.Q([_.X(),_.k("design:type",Object)],sc.prototype,"activeEndpoint",void 0);_.Q([_.zY("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"onActiveEndpointChanged",null);_.Q([_.X(),_.k("design:type",Boolean)],sc.prototype,"renderGuide",void 0);_.Q([_.zY("renderGuide"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"onRenderGuideChanged",null);
_.Q([_.X(),_.k("design:type",Object)],sc.prototype,"guideOpened",void 0);_.Q([_.X(),_.k("design:type",Boolean)],sc.prototype,"guidePersistent",void 0);_.Q([_.zY("guidePersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"onGuidePersistentChanged",null);_.Q([_.X(),_.k("design:type",Object)],sc.prototype,"guideUserStateOpened",void 0);_.Q([_.X(),_.k("design:type",String)],sc.prototype,"pageUrl",void 0);
_.Q([_.X(),_.k("design:type",String)],sc.prototype,"pageType",void 0);_.Q([_.X(),_.k("design:type",Number)],sc.prototype,"cachedClientWidth",void 0);_.Q([_.X(),_.k("design:type",Object)],sc.prototype,"guideElement",void 0);_.Q([_.X({selector:_.BB}),_.k("design:type",Object)],sc.prototype,"isFullscreenShorts",void 0);_.Q([_.zY("guideElement"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"onGuideElementChanged",null);
_.Q([_.zY("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"guidePersistentAndVisibleChanged",null);_.Q([_.cZ("guideIsVisibleButNotPersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.Q([_.zY("miniGuideVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"miniGuideVisibleChanged",null);_.Q([_.cZ("guideOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"guideOpenedChanged",null);_.Q([_.zY("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"activeEndpointChanged",null);
_.Q([_.cZ("pageUrl"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"resetGuide",null);_.Q([_.cZ("cachedClientWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"cachedClientWidthChanged",null);_.Q([_.zY("guideOpened","guidePersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"computeGuidePersistentAndVisible",null);
_.Q([_.cZ("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"observeForMiniGuideVisible",null);_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sc.prototype,"onResize",null);sc=_.Q([_.t({disableElementRegistration:!0,is:"yt-guide-manager"})],sc);var bkj=_.A(sc,"yt-guide-manager",void 0,{mode:_.OX("kevlar_poly_si_batch_j081")?1:2});var dR=function(){var Y=_.Z.apply(this,arguments)||this;Y.JSC$17609_keyboardInUse=!1;Y.boundHandleCapturedKeydownEvent=function(S){Y.handleCapturedKeydownEvent(S)};
return Y};
_.r(dR,_.Z);_.z=dR.prototype;_.z.attached=function(){this.listenToDocument(document)};
_.z.listenToDocument=function(Y){Y.addEventListener("keydown",_.up(this,this.onKeyDownEvent));Y.addEventListener("keyup",_.up(this,this.onKeyUpEvent));Y.addEventListener("mousedown",_.up(this,this.onMouseDownEvent));_.f("desktop_keyboard_capture_keydown_killswitch")||Y.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);Y.addEventListener("yt-page-data-updated",_.up(this,this.onPageUpdate))};
_.z.detached=function(){this.unlistenFromDocument(document)};
_.z.unlistenFromDocument=function(Y){Y.removeEventListener("keydown",_.up(this,this.onKeyDownEvent));Y.removeEventListener("keyup",_.up(this,this.onKeyUpEvent));Y.removeEventListener("mousedown",_.up(this,this.onMouseDownEvent));_.f("desktop_keyboard_capture_keydown_killswitch")||Y.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);Y.removeEventListener("yt-page-data-updated",_.up(this,this.onPageUpdate))};
_.z.ready=function(){_.E().addProvider({provide:_.Tz,useValue:this})};
_.z.isKeyBoardInUse=function(){return this.JSC$17609_keyboardInUse};
_.z.handleCapturedKeydownEvent=function(Y){if(Y.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(Y)};
_.z.onMouseDownEvent=function(){this.JSC$17609_keyboardInUse=!1};
_.z.onPageUpdate=function(){if(_.f("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.f("web_shorts_keyboard_shortcut_usage_log")){_.yC.clear();for(var Y=_.n(_.k4),S=Y.next();!S.done;S=Y.next()){var P=_.n(S.value);S=P.next().value;P=P.next().value;P=_.TI(P);_.yC.set(S,P);_.t6(_.pM(),_.wf(),P)}_.N9.clear();Y=_.n(_.M9);for(S=Y.next();!S.done;S=Y.next())P=_.n(S.value),S=P.next().value,P=P.next().value,P=_.TI(P),_.N9.set(S,P),_.t6(_.pM(),_.wf(),P);_.Ar(_.pM(),_.wf(),[].concat(_.cz(_.N9.values()),
_.cz(_.yC.values())));_.UV(_.pM(),[].concat(_.cz(_.N9.values()),_.cz(_.yC.values())))}};
_.z.onMiniplayerActiveChange=function(){var Y;(Y=_.E().resolve(_.l1).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(Y.document):this.unlistenFromDocument(Y.document))};
_.z.ignoreKeyEvent=function(Y){if(Y.ctrlKey||Y.altKey)if(_.f("kevlar_macro_markers_keyboard_shortcut")){if(Y.keyCode!==37&&Y.keyCode!==39)return!0}else return!0;var S=_.iM(Y)||[];return _.n2d(S)?!0:Y.defaultPrevented?(JX(Y.keyCode,Y.shiftKey,this.isShortsPage),!0):Y.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(Y):!1};
_.z.isSpacebarClick=function(Y){var S=Y||window.event;var P;S.composedPath&&typeof S.composedPath==="function"?P=S.composedPath():P=S.path;P&&P.length?S=P[0]:(S=S||window.event,S=S.target||S.srcElement,S.nodeType==3&&(S=S.parentNode));return S&&Y.keyCode===32&&(Y=S.tagName==="BUTTON"||S.tagName==="A"||S.tagName==="INPUT",S=(S=S.getAttribute("role"))&&(S==="option"||S==="button"||S.indexOf("menuitem")===0),Y||S)?!0:!1};
_.z.onKeyDownEvent=function(Y){if(!this.ignoreKeyEvent(Y)&&(Y.keyCode===191&&(Y.shiftKey||Y.metaKey?Y.repeat!=null&&Y.repeat||(this.openHotkeyDialog(),JX(Y.keyCode,Y.shiftKey,this.isShortsPage)):(this.focusSearchBox(),Y.preventDefault())),!Y.metaKey)){var S=_.E().resolve(_.l1);switch(Y.keyCode){case 9:this.JSC$17609_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(Y);break;case 84:S.pipController.getWindow()&&window.focus();this.toggleTheaterMode(Y.keyCode,Y.shiftKey);break;case 73:S.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(Y.keyCode,Y.shiftKey);break;case 70:if(this.isShortsPage&&_.f("web_fullscreen_shorts")){_.Jc1();break}this.isMiniplayerActive()?S.pipController.getWindow()&&(S.close(!0),window.focus()):this.passEventToPlayer(Y);break;case 27:this.closeMiniplayer(Y.keyCode,Y.shiftKey)||this.passEventToPlayer(Y);break;case 13:Y.shiftKey&&_.f("web_ephemeral_actions")&&_.E().resolve(_.zG).activate(Y);break;default:this.passEventToPlayer(Y)}}};
_.z.onKeyUpEvent=function(Y){if(!this.ignoreKeyEvent(Y))if(_.f("web_speedmaster_spacebar_control")&&Y.keyCode===32)this.handlePlayerSpaceKey(Y,!0);else{var S=this.getPlayerManager();S&&(S=S.getPlayer())&&S.handleGlobalKeyUp(Y.keyCode,Y.shiftKey,Y.ctrlKey,Y.altKey,Y.metaKey,Y.key,Y.code)}};
_.z.getPlayerManager=function(){var Y=_.Q5(),S=_.E().resolve(_.PQ(_.Ag));return Y&&S&&S.isOnWatch()?Y:null};
_.z.passEventToPlayer=function(Y,S){var P=this,u,W,m;return _.B(function(J){if(J.nextAddress==1)return!_.f("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&P.isMiniplayerActive()?u=_.E().resolve(_.l1).getPlayerElement():P.inlinePreviewIsActive?(W=_.jR(P.hostElement,"yt-get-inline-preview-player-action"))&&W[0]&&(u=W[0]):u=_.Q5(),u?_.q(J,u.getPlayerPromise(),3):J.jumpTo(0);m=J.yieldResult;S?m.handleGlobalKeyUp(Y.keyCode,Y.shiftKey,Y.ctrlKey,Y.altKey,Y.metaKey,Y.key,Y.code,Y.repeat):m.handleGlobalKeyDown(Y.keyCode,
Y.shiftKey,Y.ctrlKey,Y.altKey,Y.metaKey,Y.key,Y.code,Y.repeat);Y.keyCode!==38&&Y.keyCode!==40&&JX(Y.keyCode,Y.shiftKey,P.isShortsPage);_.Yt(J)})};
_.z.focusSearchBox=function(){_.ms(this.hostElement,"yt-focus-searchbox")};
_.z.openHotkeyDialog=function(){_.ms(this.hostElement,"yt-open-hotkey-dialog")};
_.z.isMiniplayerActive=function(){return _.E().resolve(_.l1).isMiniplayerActive()};
_.z.closeMiniplayer=function(Y,S){return this.isMiniplayerActive()?(_.E().resolve(_.l1).close(),JX(Y,S,this.isShortsPage),!0):!1};
_.z.toggleTheaterMode=function(Y,S){var P=_.fe(_.Na().getState()),u=this.getPlayerManager(),W=_.f("disable_theater_mode_keyboard")||_.Z4("START_IN_FULL_WINDOW_MODE");u&&!W&&(P=!P,_.SR()&&_.f("external_fullscreen")&&(P=!0),_.nb(this.hostElement,"yt-toggle-theater-mode",[P]),JX(Y,S,this.isShortsPage))};
_.z.toggleMiniplayer=function(Y,S){var P=this.getPlayerManager();if(this.isMiniplayerActive()){var u;((u=_.E().resolve(_.PQ(_.Ag)))==null?0:u.isOnWatch())?_.E().resolve(_.l1).close(!0):_.qf(_.E().resolve(_.l1));JX(Y,S,this.isShortsPage)}else P&&(_.nb(this.hostElement,"yt-activate-miniplayer-from-watch-action"),JX(Y,S,this.isShortsPage))};
_.z.handlePlayerSpaceKey=function(Y,S){var P=!!_.Q5()||this.isMiniplayerActive();P=_.f("disable_space_scroll_fix")||P;_.f("global_spacebar_pause")&&!this.isKeyBoardInUse()&&P&&(Y.preventDefault(),this.passEventToPlayer(Y,S))};
dR.prototype.onMiniplayerActiveChange=dR.prototype.onMiniplayerActiveChange;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],dR.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],dR.prototype,"ytdReduxBehavior",void 0);_.Q([_.X({selector:_.j8Y}),_.k("design:type",Boolean)],dR.prototype,"inlinePreviewIsActive",void 0);_.Q([_.X({selector:_.zaj}),_.k("design:type",Boolean)],dR.prototype,"isShortsPage",void 0);
_.Q([_.X({selector:_.pA}),_.k("design:type",Boolean)],dR.prototype,"miniplayerIsActive",void 0);_.Q([_.zY("miniplayerIsActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dR.prototype,"onMiniplayerActiveChange",null);dR=_.Q([_.t({disableElementRegistration:!0,is:"yt-hotkey-manager"})],dR);_.A(dR,"yt-hotkey-manager",void 0,{mode:_.OX("kevlar_poly_si_batch_j081")?1:2});var lb=function(){var Y=_.Z.apply(this,arguments)||this;Y.loopStateEntityKey_=null;Y.playlistLoopStateEntity_=null;Y.isShuffleNextPlaylist=!1;Y.JSC$17612_PLAYER_EVENTS_=new Map;Y.playerListenersSetup_=!1;Y.videoSkipJob_=0;Y.canAutoAdvance_=!1;Y.playerManager_=null;Y.TEST_ONLY={};return Y};
_.r(lb,_.Z);_.z=lb.prototype;_.z.ready=function(){_.E().addProvider({provide:_.D3,useValue:this.hostElement})};
_.z.created=function(){this.JSC$17612_PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.JSC$17612_PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.JSC$17612_PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.JSC$17612_PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.JSC$17612_PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.JSC$17612_PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.z.attached=function(){document.addEventListener("yt-navigate-start",_.up(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.up(this,this.onYtNavigateFinish_))};
_.z.detached=function(){document.removeEventListener("yt-navigate-start",_.up(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.up(this,this.onYtNavigateFinish_))};
_.z.updatePlaylistEventListeners=function(Y,S){S&&!this.playerListenersSetup_?(this.playerManager_=Y,this.registerPlaylistEventListeners_(Y)):!S&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(Y))};
_.z.setPlayer=function(Y){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=Y};
_.z.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.z.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.z.registerPlaylistEventListeners_=function(Y){var S=this;Y.getPlayerPromise().then(function(P){S.playerListenersSetup_||(S.ytPlayerListenerBehavior.listenToPlayerEvents(P,S.JSC$17612_PLAYER_EVENTS_),S.playerListenersSetup_=!0)})};
_.z.removePlaylistEventListeners_=function(Y){var S=this;Y.getPlayerPromise().then(function(P){S.playerListenersSetup_&&(S.ytPlayerListenerBehavior.unlistenFromPlayerEvents(P,S.JSC$17612_PLAYER_EVENTS_),S.playerListenersSetup_=!1)})};
_.z.setPlaylistComponent=function(Y){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.up(this,this.onPlaylistYtNavigate_)),Y&&(Y.data&&this.playlistComponent.data&&Y.data.playlistId==this.playlistComponent.data.playlistId?(Y.loopOn=this.playlistComponent.loopOn,Y.shuffleOn=this.playlistComponent.shuffleOn):(Y.loopOn=!1,Y.shuffleOn=!1),this.isShuffleNextPlaylist&&(Y.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=Y;this.playlistComponent.addEventListener("yt-navigate",
_.up(this,this.onPlaylistYtNavigate_))};
_.z.setAutoplayRenderer=function(Y){this.autoplayData=Y};
_.z.setPlaylistData=function(Y){this.currentPlaylistData_=Y;_.ms(this.hostElement,"yt-playlist-data-updated");_.RY.isEmpty(Y)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(Y)};
_.z.setPlayerPlaybackControlData=function(Y){this.playerManager_&&this.playerManager_.updatePlayerComponents(Y.playlistPanelRenderer)};
_.z.getPlaylistData=function(){return this.currentPlaylistData_};
_.z.getTempData_=function(Y,S){if(this.playlistComponent==null)return null;Y={};this.playlistComponent.shuffleOn&&(Y.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(Y.loop_on=this.playlistComponent.loopOn);S&&(Y.autonav="1",_.E().resolve(_.En),S=_.uE(),S>0&&(Y.lact=S),this.playerManager_&&(S=this.playerManager_.getPlayer())&&S.shouldSendVisibilityState()&&(S=S.getVisibilityState(),S!=0&&(Y.vis=S)));_.f("enable_unknown_lact_fix_on_html5")&&(_.E().resolve(_.En),Y.lact=_.uE());
return Y};
_.z.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.z.setLoopStateEntityKey_=function(Y){var S;this.loopStateEntityKey_=((S=this.getPlaylistLoopData_(Y))==null?void 0:S.playlistLoopStateEntityKey)||null};
_.z.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.z.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.z.skipVideo=function(){var Y=this,S=_.f("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||S)S=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.bL(_.wc,function(){Y.onPlaylistNext();Y.videoSkipJob_=0},S)};
_.z.cancelVideoSkip=function(){this.videoSkipJob_&&(_.wc.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.z.isInBackground_=function(){var Y=window.document.visibilityState;return!(!Y||Y=="visible")};
_.z.onPlaylistIndex_=function(Y){this.playlistComponent&&(Y=this.playlistComponent.data.contents[Y].playlistPanelVideoRenderer.navigationEndpoint,_.ms(this.hostElement,"yt-navigate",{endpoint:Y,tempData:this.getTempData_(Y)}))};
_.z.onPlayerStateChange_=function(Y){if(Y=Y==0&&this.playlistComponent&&this.canAutoAdvance_)Y=_.Af.getInstance(),Y=!(Y.autonavState_===3?Y.autonavPauseReason_&&Y.autonavPauseReason_.inputBoxFocus===!0:Y.autonavState_===1&&Y.disabledAutonavPauseReason_&&Y.disabledAutonavPauseReason_.inputBoxFocus===!0);Y&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.z.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.z.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.z.navigateToAutoplayWatchEndpoint_=function(Y,S,P){var u=this.playlistComponent.data.currentIndex,W=this.getNumPlayableVideos_();Y=="NORMAL"&&S=="autoplayVideo"&&u+1>=W&&P||!(Y=this.getVideoEndpoint_(Y,S))||(P=this.getTempData_(Y,P),_.ms(this.hostElement,"yt-navigate",{endpoint:Y,tempData:P}))};
_.z.getNumPlayableVideos_=function(){for(var Y=0,S=_.n(this.playlistComponent.data.contents||[]),P=S.next();!P.done;P=S.next())P.value.playlistPanelVideoRenderer&&(Y+=1);return Y};
_.z.getVideoEndpoint_=function(Y,S){if(this.autoplayData&&this.autoplayData.sets)for(var P=0,u=this.autoplayData.sets.length;P<u;P++){var W=this.autoplayData.sets[P];if(W.mode==Y){if(W[S])return W[S];break}}else Y=new _.$2("AutoplayData is undefined in playlist manager","Mode: "+Y+" endpoint: "+S),_.sf(Y)};
_.z.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.z.onPlaylistYtNavigate_=function(Y){if(Y.detail.endpoint){Y.stopPropagation();var S=Y.detail;S.tempData=this.getTempData_(Y.detail.endpoint);_.ms(this.hostElement,"yt-navigate",S)}};
_.z.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.z.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.z.playlistLoopStateEntityChanged_=function(Y){var S=this,P,u,W;return _.B(function(m){if(m.nextAddress==1){if(!Y)return m.return();P=Y.state==="PLAYLIST_LOOP_STATE_ONE";return S.playerManager_?_.q(m,S.playerManager_.getPlayerPromise(),3):m.jumpTo(2)}m.nextAddress!=2&&(u=m.yieldResult,u.setLoopVideo(P));W=Y.state==="PLAYLIST_LOOP_STATE_ALL";S.playlistComponent&&(S.playlistComponent.loopOn=W);_.Yt(m)})};
_.z.getPlaylistLoopData_=function(Y){var S,P;if(Y=Y==null?void 0:(S=Y.playlistButtons)==null?void 0:(P=S.menuRenderer)==null?void 0:P.topLevelButtons)for(S=_.n(Y),P=S.next();!P.done;P=S.next())if(P=P.value,P.playlistLoopButtonRenderer)return P.playlistLoopButtonRenderer};
_.z.getLoopStateCommand_=function(Y){var S=this.getPlaylistData(),P;S=((P=this.getPlaylistLoopData_(S))==null?void 0:P.states)||[];var u;Y=(u=_.g(S[Y?1:2],_.nM6))==null?void 0:u.button;var W;return(W=_.g(Y,_.I8))==null?void 0:W.command};
_.z.onPlayerLoopChange_=function(Y){this.playlistLoopStateEntity_&&(Y?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(Y=this.getLoopStateCommand_(Y))&&this.ytComponentBehavior.resolveCommand(Y)};
_.z.onSleepTimerSettingsChanged_=function(Y){this.canAutoAdvance_=Y!=="End of video"};
lb.prototype.onPlaylistLoopStateEntityChanged=lb.prototype.onPlaylistLoopStateEntityChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],lb.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],lb.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],lb.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],lb.prototype,"loopStateEntityKey_",void 0);
_.Q([_.X({selectorArgs:["loopStateEntityKey_"],selector:_.wCu}),_.k("design:type",Object)],lb.prototype,"playlistLoopStateEntity_",void 0);_.Q([_.zY("playlistLoopStateEntity_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lb.prototype,"onPlaylistLoopStateEntityChanged",null);lb=_.Q([_.t({disableElementRegistration:!0,is:"yt-playlist-manager"})],lb);_.A(lb,"yt-playlist-manager",void 0,{mode:_.OX("kevlar_poly_si_batch_j081")?1:2});var TCZ,KiB=function(){if(TCZ!==void 0)return TCZ;var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return TCZ=Y};var X8=function(){var Y=_.Z.apply(this,arguments)||this;Y.lastCallback=null;Y.getAccountLinkPromises={};Y.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);Y.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return Y};
_.r(X8,_.Z);_.z=X8.prototype;_.z.getLocation=function(){return window.location.href};
_.z.getCompletionUrl=function(){return _.Vx(this.getLocation())};
_.z.containsRedirectState=function(Y){return(Y=_.hk(_.ca8(Y)))?(new URLSearchParams(Y)).get("redirect_state")!==null:!1};
_.z.createGalConfig=function(Y,S){var P=new DEo;Y=P=S?this.getPopupOrRedirectSetting(P,_.X3("LINK_API_KEY"),_.X3("LINK_API_KEY_REDIRECT"),Y):Iwo(P,_.X3("LINK_API_KEY"));Y.authUser=_.X3("SESSION_INDEX")||0;Y.supportedFlows=new Set([4]);return Y.build()};
_.z.getPopupOrRedirectSetting=function(Y,S,P,u){this.isGalInteractionPopupMode(u)?(Y.interactionMode=0,Y=Iwo(Y,S)):(Y.interactionMode=1,S=this.getCompletionUrl(),Y.completionUrl=S,Y=Iwo(Y,P));return Y};
_.z.isGalInteractionPopupMode=function(Y){if(this.redirectModeProviderAllowlist.has(Y))switch(Y){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.f("main_web_redirect_integration_riot");default:return!1}return!0};
_.z.getStatusEntityKeyForProviderId=function(Y){return _.JE(Y+":all","accountLinkStatusEntity")};
_.z.findNestedPropValue=function(Y,S){var P=!1,u=null;JSON.stringify(Y,function(W,m){P||W!==S||(P=!0,u=m);return P?null:m});
return u};
_.z.findAccountLinkButtonViewModel=function(Y,S){var P=null,u=!1;JSON.stringify(Y,function(W,m){u||m.accountLinkStatusEntityKey!==S||m.accountLinkStatusSecondaryEntityKey||(u=!0,P=m);return u?null:m});
return P};
_.z.executeLinkingSuccessOrFailureCommands=function(Y,S,P){var u=null,W;(S==null?0:(W=S.url)==null?0:W.includes("account_sharing"))?u=S==null?void 0:S.response:u=S==null?void 0:S.response;(S=this.findAccountLinkButtonViewModel(u,Y))?(Y=P?this.findNestedPropValue(S,"onSuccessCommand"):this.findNestedPropValue(S,"onFailureCommand"))?_.RA([Y],this.hostElement):_.AA(Error("el")):_.AA(Error("fl`"+Y))};
_.z.handleInitializeRequest=function(Y,S){var P=this,u=mz1(this.createGalConfig(Y,!0));this.containsRedirectState(this.getLocation())?Muu(Y,u.config,u.galService).then(function(W){var m=P.getStatusEntityKeyForProviderId(Y);if(W.statusCode===1)S&&P.executeLinkingSuccessOrFailureCommands(m,S,!0),W=P.getLocation().indexOf("#"),W!==-1&&window.history.pushState(null,"",P.getLocation().substring(0,W));else return S&&P.executeLinkingSuccessOrFailureCommands(m,S,!1),Promise.reject(Error(W.statusMessage))}).catch(function(W){_.sf(W);
_.L_("gamingAccountLinkStatusChanged",{serviceId:Y,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(W)}):this.getAccountLinkPromises[Y]=u.startLinkingSession({serviceId:Y})};
_.z.handleAccountLinkCommand=function(Y){_.g(Y,Klj)&&this.handleLinkRequest(_.g(Y,Klj))};
_.z.handleLinkRequest=function(Y){var S=this,P=Y.thirdPartyId;if(P)if(this.isGalInteractionPopupMode(P)){var u=function(){S.closeAndFire("ytd-gaming-account-link-setting-renderer",Y.onFailureCommand)},W=function(){S.closeAndFire("ytd-gaming-account-link-setting-renderer",Y.onSuccessCommand)};
this.lastCallback=W;this.getAccountLinkPromises[P].then(function(m){naB(m).then(function(J){J.statusCode===1?W():u()})}).catch(function(){u()})}else this.getAccountLinkPromises[P].then(function(m){naB(m).then(function(J){if(J.statusCode!==1)return Promise.reject(Error(J.statusMessage))})}).catch(function(m){_.sf(m);
_.L_("gamingAccountLinkStatusChanged",{serviceId:P,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(m)})};
_.z.closeAndFire=function(Y,S){_.nb(this.hostElement,"yt-close-popup-action",[Y]);S&&_.RA([S],this.hostElement)};
_.z.handleAccountUnlinkCommand=function(Y){_.g(Y,E1B)&&this.handleUnlinkRequest(_.g(Y,E1B))};
_.z.handleUnlinkRequest=function(Y){var S=this,P=Y.thirdPartyId;if(P){var u=function(){S.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",Y.onFailureCommand)},W=function(){S.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",Y.onSuccessCommand)};
this.lastCallback=W;var m=mz1(this.createGalConfig(P,!1));this.unlinkUserGal(m,P).then(function(J){J.statusCode===1?W():u()}).catch(function(){u()})}};
_.z.unlinkUserGal=function(Y,S){return Y.deleteLink(S)};
_.z.handleLogAccountLinkingEventCommand=function(Y){_.f("enable_gel_log_commands")&&_.g(Y,fWX)&&(Y=_.g(Y,fWX).event)&&_.L_("gamingAccountLinkStatusChanged",Y)};
_.y6.Object.defineProperties(X8,{template:{configurable:!0,enumerable:!0,get:function(){return KiB()}}});
_.Q([_.p(_.Vt.YtOpenPopupBehavior),_.k("design:type",Object)],X8.prototype,"ytOpenPopupBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],X8.prototype,"ytActionHandlerBehavior",void 0);X8=_.Q([_.t({disableElementRegistration:!0,is:"ytd-third-party-manager"})],X8);_.A(X8,"ytd-third-party-manager",function(){return KiB()},{mode:_.OX("kevlar_poly_si_batch_j081")?1:2});var EOY,fXc=function(){return EOY!==void 0?EOY:EOY=document.createElement("template")};
document.head.appendChild(fXc().content);var gOu,$VX=function(){if(gOu!==void 0)return gOu;var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(fXc().content.cloneNode(!0),Y.content.firstChild);Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return gOu=Y};var rOY=_.Q0(["\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      "]),Zr=function(){var Y=_.Z.apply(this,arguments)||this;Y.currentPage=void 0;Y.renderLoadingStateJobId=0;Y.updatePageDataJobId=0;Y.pageDisposeJobsets=new WeakMap;Y.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-get-page-offset":"getPageOffset",
"yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};Y.applyZoomTransition=_.mG("web_page_transition_type")==="zoom";Y.applySlideTransition=_.mG("web_page_transition_type")==="slide";Y.TEST_ONLY=void 0;return Y};
_.r(Zr,_.Z);_.z=Zr.prototype;_.z.ready=function(){var Y=_.E();Y.addProvider({provide:_.Ag,useValue:this});Y.addProvider({provide:_.SNf,useValue:this})};
_.z.created=function(){this.pagePool=new kSB;this.contextSwitcher=new zeo};
_.z.attached=function(){_.ms(this.hostElement,"attached");var Y=_.E().resolve(_.PQ(_.ER));Y&&(this.contextSwitcher.JSC$17433_networkService_=Y);this.viewTransitionManager=_.E().resolve(_.PQ(_.QuB));this.setupPageTransitionAnimation()};
_.z.getPageOffset=function(Y){return Y.getScrollTop()};
_.z.setPageOffset=function(Y,S){try{Y.setScrollTop(S)}catch(P){}};
_.z.setPageOffsetForNavigation=function(Y,S){_.ms(this.hostElement,"yt-navigate-set-page-offset",{page:Y,offset:S===void 0?0:S})};
_.z.pauseActiveContext=function(){var Y=this.contextSwitcher;Y.activeContext_&&Y.activeContext_.pause()};
_.z.getModuleNameForType=function(Y){return Y==="watch"?_.f("kevlar_watch_fixie")?"watchFixie":_.f("kevlar_watch_grid")?"watchGrid":"watchFlexy":Y==="shorts"||Y==="search"?Y:"browse"};
_.z.attachPage=function(Y){var S,P=!_.f("pc_is_attached_ks")&&(Y==null?void 0:(S=Y.polymerController)==null?void 0:S.isAttached);if(!Y.isAttached&&!P)try{_.I(this.hostElement).appendChild(Y)}catch(W){var u;_.sf(new _.$2("Error attaching page element for component",{origin:(u=this.currentPage)==null?void 0:u.is,component:Y.is}))}};
_.z.setActivePage=function(Y){var S=this,P=!1,u=function(){var W=S.isOnWatch(),m=S.currentPage;if(Y)if(Y!==S.currentPage){m&&(m.hidden=!0,m.active=!1,m.removeAttribute("role"));S.currentPage=Y;var J,c=Pr((J=S.data)==null?void 0:J.endpoint);m&&_.ms(S.hostElement,"yt-page-type-changed",{oldPageType:m.is,newPageType:Y.is,newPageSubtype:c});_.X2().dispatch(_.WT({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:Y.is}));_.X2().dispatch(_.WT({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:c||""}));Y.hidden=
!1;S.attachPage(Y);Y.active=!0;Y.setAttribute("role","main");m&&S.setPageOffsetForNavigation(Y,0);_.f("kevlar_remove_page_dom_on_switch")&&!W&&m&&_.I(S.hostElement).removeChild(m)}else P=!0;else W=new _.$2("Unable to set active page",m?m.is:"unknown origin",(c=S.data)==null?void 0:c.endpoint),_.p_(W)};
this.viewTransitionManager?DG5(this.viewTransitionManager,u,this.viewTransitionConfigForSetActivePage(this.currentPage,Y)):u();return P};
_.z.viewTransitionConfigForSetActivePage=function(Y,S){return _.f("web_thumbnail_to_watch_transition")&&(Y==null?void 0:Y.is)==="ytd-browse"&&this.isWatchPage(S)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(Y==null?void 0:Y.is)==="ytd-browse"&&(S==null?void 0:S.is)==="ytd-browse"&&Y!==S?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.z.updatePageData=function(Y){var S=this,P=this.data;this.updatePageDataJobId&&_.wc.cancelJob(this.updatePageDataJobId);this.data=Y;return new _.qs(function(u){var W=function(){Y.filler?S.performDataUpdate(Y,P):kYB(function(){S.performDataUpdate(Y,P)});
var C=_.aQ();_.Ld(C,"cr")||C.processSignal("cr");u()},m=function(){Y&&Y.page==="watch"?S.updatePageDataJobId=_.bL(_.wc,W):W()};
if(_.f("kevlar_enable_mss_page_modules_client")&&Y){var J=_.E().resolve(_.Zd),c=S.getModuleNameForType(Y.page);(J=hMI(J,[c]))?J.then(m):m()}else m()})};
_.z.isDownloadsPage=function(Y){var S,P;return(Y==null?void 0:(S=Y.endpoint)==null?void 0:(P=S.browseEndpoint)==null?void 0:P.browseId)==="FEdownloads"};
_.z.setPlayerSyncInterval=function(Y){var S;return _.B(function(P){if(P.nextAddress==1)return _.q(P,_.E().resolve(_.HX),2);S=P.yieldResult;S.setUpPositionSyncInterval(Y);_.Yt(P)})};
_.z.performDataUpdate=function(Y,S){_.f("kevlar_early_popup_close")||_.nb(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var P=!Y.filler;P&&(_.Fk("lps"),_.f("config_age_report_killswitch")||fRc());var u=VC(Y),W,m=!1;if(_.f("kevlar_remove_page_dom_on_switch")){var J=S&&VC(S);u===J&&(W=this.getCurrentPage())}W||(W=Dr(this.pagePool,u));P&&N05(this.pagePool.elementPoolPopulator,u);P&&!this.renderLoadingStateJobId&&(m=this.setActivePage(W));if(W){J=u==="watch";var c=
u==="shorts";_.f("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(W);if(J||c)W.playerData=Y.playerResponse;if(c){Y.reelWatchSequenceResponse?W.reelWatchSequenceResponse=Y.reelWatchSequenceResponse:Y.cachedReelWatchSequenceResponse&&(W.reelWatchSequenceResponse=Y.cachedReelWatchSequenceResponse);W.currentEndpoint=Y.endpoint;var C;W.isPreviousPageShorts=!!(S==null?0:(C=S.endpoint)==null?0:C.reelWatchEndpoint);Y.cachedReelWatchSequenceResponse=Y.reelWatchSequenceResponse||
Y.cachedReelWatchSequenceResponse||(S==null?void 0:S.cachedReelWatchSequenceResponse);W.cachedReelWatchSequenceResponse=Y.cachedReelWatchSequenceResponse}C=this.isDownloadsPage(Y);var x=this.isDownloadsPage(S);C&&!x?this.setPlayerSyncInterval(6E5):!C&&x&&this.setPlayerSyncInterval();_.f("block_all_player_prefetch_requests")||this.preparePrefetchRequest(Y,W,P,J,c);IZ1(_.E().resolve(_.l1),S,Y);_.bKt(_.E().resolve(_.En));_.f("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(W);
P?(P=typeof W.loadPage,P==="function"?(W.pageContext=mCI(this.contextSwitcher,W,W.data!==Y.response),S=function(){W.loadPage(Y.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&W.is==="ytd-browse"&&m?this.applySlideTransition?DG5(this.viewTransitionManager,S,{transitionName:"slide"}):DG5(this.viewTransitionManager,S,{transitionName:"zoom"}):S()):_.F_(new _.$2("b/38014653 ",[u,
W.is,W.nodeName,P,W.isAttached,S&&VC(S),this.hostElement.children.length])),_.Fk("pdl")):(W.hidden=!0,Y.response.filler=!0,W.data=Y.response,this.attachPage(W));_.ms(this.hostElement,"yt-page-data-updated",{pageType:u})}_.hp(_.wc,function(){_.f("logging_avoid_blocking_during_navigation")&&_.XZa().transition("none");var b=gAI(),T=W;if(Y){var K=Vfj(Y),G=ejd(Y),v;a:{if(Y.playerResponse){var a=Y.playerResponse,w;if((v=a.auxiliaryUi)==null?0:(w=v.messageRenderers)==null?0:w.upsellDialogRenderer){v=a.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(Y.response&&(v=Y.response,(a=v.overlay)==null?0:a.upsellDialogRenderer)){v=v.overlay.upsellDialogRenderer;break a}v=void 0}var F;var U;w=(F=Y.playerResponse)==null?void 0:(U=F.auxiliaryUi)==null?void 0:U.messageRenderers;F=(w==null?void 0:w.enforcementMessageViewModel)||(w==null?void 0:w.bkaEnforcementMessageViewModel);F=(F==null?void 0:F.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?F:void 0;var V;a:{if(Y.response&&(U=Y.response,(V=U.overlay)==null?0:V.commandWrapperPromoRenderer)){V=
U.overlay.commandWrapperPromoRenderer;break a}V=void 0}fG5(b,K,G,v,F,V,T)}})};
_.z.preparePrefetchRequest=function(Y,S,P,u,W){var m,J,c,C,x,b,T,K,G,v,a,w,F,U,V;return _.B(function(M){if(M.nextAddress==1)return!P||!u&&!W||_.f("kevlar_disable_background_prefetch")&&_.oj(_.lHE)()===0?M.return():(m=_.Un(S))?_.q(M,m.getPlayerPromise(),2):M.return();J=M.yieldResult;c=_.E().resolve(_.PQ(_.ER));if(!c)return M.return();if(W)return C=_.zU(_.ea),P21(C,(x=Y.endpoint)==null?void 0:x.reelWatchEndpoint,S.reelWatchSequenceResponse,J,c),M.return();K=(b=Y.response)==null?void 0:(T=b.responseContext)==
null?void 0:T.webResponseContextExtensionData;if(!K)return M.return();F=(G=Y.response)==null?void 0:(v=G.contents)==null?void 0:(a=v.twoColumnWatchNextResults)==null?void 0:(w=a.autoplay)==null?void 0:w.autoplay;U=_.E().resolve(_.D3);V=_.zU(_.ea);u51(V,K,J,c,U,F);_.Yt(M)})};
_.z.movePlayerToWatch=function(Y){var S=this,P,u;return _.B(function(W){P=Dr(S.pagePool,"watch");u=P.getPlayerContainer();Y.appendTo(u);_.Yt(W)})};
_.z.movePlayerToShorts=function(Y){var S=this,P,u,W;return _.B(function(m){P=Dr(S.pagePool,"shorts");u=P.getPlayerContainer();(W=Y)==null||W.appendTo(u,void 0,!0);_.Yt(m)})};
_.z.getPlayerFromWatch=function(){var Y=Dr(this.pagePool,"watch");return _.Un(Y)};
_.z.getPlayerFromShorts=function(){var Y=Dr(this.pagePool,"shorts");return _.Un(Y)};
_.z.startLoadingWatch=function(){var Y=Dr(this.pagePool,"watch");this.renderLoadingStateJobId?(_.wc.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(Y)};
_.z.startLoadingShorts=function(){var Y=Dr(this.pagePool,"shorts");this.setActivePage(Y)};
_.z.getCurrentPage=function(){return this.currentPage};
_.z.getDestinationPageType=function(){return this.destinationPageType};
_.z.getCurrentData=function(){return this.data};
_.z.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.z.isOnShorts=function(){var Y;return((Y=this.currentPage)==null?void 0:Y.is)==="ytd-shorts"};
_.z.isWatchPage=function(Y){return!!Y&&(Y.is==="ytd-watch-flexy"||Y.is==="ytd-watch-fixie"||Y.is==="ytd-watch-grid")};
_.z.preparePage=function(Y,S){var P=this,u=function(){var J=P.pagePool.preparePage(Y,P.currentPage,S);J&&P.attachPage(J)},W=function(J){_.d6(J,S);
_.sf(J)};
if(_.f("kevlar_enable_mss_page_modules_client")){var m=this.getModuleNameForType(Y);if(m=hMI(_.E().resolve(_.Zd),[m])){m.then(u.bind(this)).catch(W.bind(this));return}}try{u()}catch(J){W(J)}};
_.z.lazyPrepareCriticalPages=function(Y,S){Y=Pr(S)||Y;_.f("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(Y).then(this.maybePrepareWatchPage.bind(this,Y)):this.maybePrepareWatchPage(Y)};
_.z.maybePrepareWatchPage=function(Y){Y!=="watch"&&_.hp(_.wc,this.preparePage.bind(this,"watch"))};
_.z.downloadPageModules=function(Y){Y=this.getModuleNameForType(Y);var S=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);S.delete(Y);var P=_.E().resolve(_.Zd);P.JSC$16174_loadModules(Y);return P.JSC$16174_loadModules.apply(P,_.cz(S))};
_.z.renderPageLoadingState=function(Y,S){this.preparePage(Y,S);var P=Dr(this.pagePool,Y);P.loadingData&&(P.loadingData.endpoint=S);P.loading=!0;this.setActivePage(P);Y==="watch"&&_.ms(this.hostElement,"yt-guide-close")};
_.z.prepareForNavigation=function(Y,S){var P=this;if(this.currentPage&&this.data){var u=Pr(S)||Y;this.destinationPageType=u;VC(this.data)==u&&_.ms(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(Y==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.wc.cancelJob(this.renderLoadingStateJobId);_.E().resolve(_.l1).deactivate(S);var W=this.data;this.renderLoadingStateJobId=_.$I(_.wc,function(){if(P.data!=W){var m=Dr(P.pagePool,Y);P.setActivePage(m)}else P.renderPageLoadingState(Y,
S);P.renderLoadingStateJobId=0},150)}};
_.z.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var Y=new _.ZG(1);this.currentPage.pageDisposeJobs.forEach(function(S){_.i4(Y,S)});
this.pageDisposeJobsets.set(this.currentPage,Y)}};
_.z.flushPageDisposeJobset=function(Y){var S=this.pageDisposeJobsets.get(Y);S&&(S.flushJobs(),this.pageDisposeJobsets.delete(Y))};
_.z.onYtStopOldPlayer=function(Y,S){S=S===void 0?!1:S;var P,u=_.nz("kevlar_new_stop_old_player_logic_pages");if(_.f("kevlar_check_current_page_on_stop_old_player")&&(u.length===0||this.currentPage&&u.includes(this.currentPage.is)))if(this.data&&(P=VC(this.data)),VC(Y)===P&&this.currentPage&&VC(this.currentPage.data)!==P)var W=_.Un(this.currentPage);else P=VC(this.data),W=Dr(this.pagePool,P),W=_.Un(W);else this.data&&(P=VC(this.data),W=Dr(this.pagePool,P),W=_.Un(W));if(W)if(Y=VC(Y),u=Dr(this.pagePool,
Y),u=_.Un(u),W==u)S&&!_.f("kevlar_disable_preemptive_player_reset")&&W.resetForNewPlayback();else if(S=P==="watch"&&Y!=="watch",!S||Y==="shorts"||_.l7d()&&!bz1(this.data)&&Y!=="yts-products"&&Y!="mini_app"&&Y!="playables")P=_.E().resolve(_.l1),S&&P.isMiniplayerActive()&&P.pipController.getWindow()||W.stop()};
_.z.setupPageTransitionAnimation=function(){var Y=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){jJ(this.viewTransitionManager,"slide",{beforeTransition:function(){Y.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){Y.hostElement.style.viewTransitionName=""}});
jJ(this.viewTransitionManager,"zoom",{beforeTransition:function(){Y.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){Y.hostElement.style.viewTransitionName=""}});
var S=_.z_("web_page_transition_exit_ms"),P=_.z_("web_page_transition_wait_ms"),u=_.z_("web_page_transition_enter_ms");if(!isNaN(S)||!isNaN(P)||!isNaN(u))if(S=rcc(rOY,S,P,u))P=document.createElement("style"),P.textContent=_.$8a(S),document.head.appendChild(P)}};
_.y6.Object.defineProperties(Zr,{template:{configurable:!0,enumerable:!0,get:function(){return $VX()}}});
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Zr.prototype,"ytActionHandlerBehavior",void 0);Zr=_.Q([_.t({disableElementRegistration:!0,is:"ytd-page-manager"})],Zr);_.A(Zr,"ytd-page-manager",function(){return $VX()},{mode:_.OX("kevlar_poly_si_batch_j081")?1:2});var ib=function(Y,S,P){P=P===void 0?!1:P;_.R6.call(this);this.draggableElement=Y;this.callbacks=S;this.allowClicks=P;this.dragOccurred=!1;this.internalDragger=new _.pQ(this.draggableElement);this.dragDelay=new _.V6(this.delayedDrag.bind(this));GVI(this);this.allowClicks&&(_.Bk6(this.internalDragger,5),Y.addEventListener("click",_.up(this,this.validateClick),{capture:!0}))};
_.r(ib,_.R6);var GVI=function(Y){_.b2(Y.internalDragger,"earlycancel",function(){Y.allowClicks&&(Y.dragOccurred=!1)});
_.b2(Y.internalDragger,"start",function(S){var P,u;(u=(P=Y.callbacks).onStartDrag)==null||u.call(P,S);!S.defaultPrevented&&Y.allowClicks&&(Y.dragOccurred=!0)});
_.b2(Y.internalDragger,"beforedrag",function(S){S.preventDefault();Y.lastOffset=new _.TH(S.clientX-Y.internalDragger.startX,S.clientY-Y.internalDragger.startY);Y.dragDelay.start()});
_.b2(Y.internalDragger,"end",function(){Y.dragDelay.stop();var S,P;(P=(S=Y.callbacks).onEndDrag)==null||P.call(S);Y.lastOffset=void 0})};
ib.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
ib.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.up(this,this.validateClick),{capture:!0})};
ib.prototype.validateClick=function(Y){this.dragOccurred&&(this.dragOccurred=!1,Y.stopPropagation(),Y.preventDefault())};var ov=function(Y,S){_.R6.call(this);this.JSC$17634_resizeContainer=Y;this.callbacks=S;this.aspectRatio=16/9;this.JSC$17634_resizers=[];Y=_.n(this.JSC$17634_resizeContainer.children);for(S=Y.next();!S.done;S=Y.next())hwd(this,S.value)};
_.r(ov,_.R6);ov.prototype.disposeInternal=function(){for(var Y=_.n(this.JSC$17634_resizers),S=Y.next();!S.done;S=Y.next())S.value.dispose();Y=_.n(this.JSC$17634_resizeContainer.children);for(S=Y.next();!S.done;S=Y.next())S.value.setAttribute("disabled","");this.JSC$17634_resizers.length=0};
ov.prototype.setSize=function(Y){this.currentMiniplayerSize=Y};
ov.prototype.setAspectRatio=function(Y){this.aspectRatio=Y};
ov.prototype.update=function(Y,S){for(var P=_.n(this.JSC$17634_resizeContainer.children),u=P.next();!u.done;u=P.next()){u=u.value;var W=u.getAttribute("alignment");_.eV(u,"disabled",W===Y||W===S)}};
var hwd=function(Y,S){var P=S.getAttribute("alignment"),u=new ib(S,{onStartDrag:function(W){if(S.hasAttribute("disabled"))W.preventDefault();else{Y.dragStartSize=Y.currentMiniplayerSize;var m,J;(J=(m=Y.callbacks).onStartResize)==null||J.call(m)}},
onDrag:function(W){if(Y.dragStartSize){P!=="north"&&P!=="west"||W.scale(-1);var m=P==="north"||P==="south";W=m?W.y:W.x;m&&Y.aspectRatio>=1?W*=Y.aspectRatio:!m&&Y.aspectRatio<1&&(W/=Y.aspectRatio);Y.callbacks.onResize(Y.dragStartSize+W)}}});
Y.JSC$17634_resizers.push(u)};var vOc,DVI=function(){return vOc!==void 0?vOc:vOc=document.createElement("template")};
document.head.appendChild(DVI().content);var IXI;var aXu=_.AI(function(Y){var S=_.Ms(),P=Y.onDrag,u=Y.onDragStart,W=Y.onDragEnd,m=_.tI(Y,{allowClicks:!1,dragThreshold:5}),J=m.dragThreshold,c=m.allowClicks;Y=m.children;m=m.className;var C=void 0,x=void 0,b=new _.TH(0,0),T=!1;_.LE(function(){C=new _.pQ(S.value);x=new _.V6(G);K(C,x);if(c()){_.Bk6(C,J());var a;(a=S.value)==null||a.addEventListener("click",v,{capture:!0})}_.aI(function(){var w;(w=C)==null||w.dispose();if(c()){var F;(F=S.value)==null||F.removeEventListener("click",v,{capture:!0})}})});
var K=function(a,w){_.b2(a,"earlycancel",function(){c()&&(T=!1)});
_.b2(a,"start",function(F){u==null||u(F);F.defaultPrevented||c()&&(T=!0)});
_.b2(a,"beforedrag",function(F){C&&x&&(F.preventDefault(),b=new _.TH(F.clientX-C.startX,F.clientY-C.startY),x.start())});
_.b2(a,"end",function(){w.stop();W==null||W();b=new _.TH(0,0)})},G=function(){b&&P(b)},v=function(a){T&&(T=!1,a.stopPropagation(),a.preventDefault())};
return _.R("yt-draggable",{el:S,class:_.Si("ytDraggableComponentHost",m)},Y)},"Rf");var Li_=_.AI(function(Y){var S=_.n(_.qb(0,void 0,"Pf10wb")),P=S.next().value,u=S.next().value;S=function(W){var m={},J={};return _.R(aXu,{className:_.Si("ytdMiniplayerComponentResizer",(m.ytdMiniplayerComponentResizerDisabled=function(){return W===Y.horizontalAlignment()||W===Y.verticalAlignment()},m.ytdMiniplayerComponentResizerNorth=W==="north",m.ytdMiniplayerComponentResizerEast=W==="east",m.ytdMiniplayerComponentResizerSouth=W==="south",m.ytdMiniplayerComponentResizerWest=W==="west",m)),
onDragStart:function(){u(Y.currentMiniplayerSize())},
onDrag:function(c){W!=="north"&&W!=="west"||c.scale(-1);var C;c=(C=W==="north"||W==="south")?c.y:c.x;var x=Y.currentAspectRatio();C&&x>=1?c*=x:!C&&x<1&&(c/=x);C=c;Y.onResize(P()+C)}},_.R("div",{class:_.Si("ytdMiniplayerComponentResizerCorner",(J.ytdMiniplayerComponentResizerNorthCorner=W==="north",J.ytdMiniplayerComponentResizerEastCorner=W==="east",J.ytdMiniplayerComponentResizerSouthCorner=W==="south",J.ytdMiniplayerComponentResizerWestCorner=W==="west",J))}))};
return _.R("div",{class:"ytdMiniplayerComponentResizers"},S("north"),S("east"),S("south"),S("west"))},"Sf");var w01=16/9,p01=_.AI(function(){var Y=_.Ms(),S=_.n(_.qb(new _.SZ(NaN,NaN),void 0,"yxHohf")),P=S.next().value,u=S.next().value;S=_.n(_.qb(!1,void 0,"ku1l7c"));var W=S.next().value,m=S.next().value;S=_.n(_.qb(!1,void 0,"pbOm3b"));var J=S.next().value,c=S.next().value;S=_.n(_.qb(!1,void 0,"LqfsYc"));var C=S.next().value,x=S.next().value;S=_.n(_.qb(!1,void 0,"wYZnZe"));var b=S.next().value,T=S.next().value;S=_.n(_.qb(!1,void 0,"KVndGb"));var K=S.next().value,G=S.next().value;S=_.n(_.qb(!1,void 0,"ofTiZe"));
var v=S.next().value,a=S.next().value;S=_.n(_.qb(w01,void 0,"bpheWd"));var w=S.next().value,F=S.next().value,U=_.n(_.qb(!1,void 0,"MIV0Jb"));S=U.next().value;var V=U.next().value;U=_.n(_.qb(!1,void 0,"Y2idSc"));var M=U.next().value,zJ=U.next().value;U=_.n(_.qb(void 0,void 0,"IuZWBb"));var O=U.next().value,ca=U.next().value;U=_.n(_.qb(_.X3("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var hu=U.next().value,ah=U.next().value;U=_.n(_.qb("south",void 0,"mV91if"));var va=U.next().value,yX=U.next().value;
U=_.n(_.qb(400,void 0,"OwmImd"));var la=U.next().value,w1=U.next().value,U9=_.E().resolve(_.l1).miniplayerPropSignalMap[0],nu=U9.data,Yc=U9.externalPlaylistData;U=U9.toastData;var tu=U9.playabilityStatus,$_=U9.isDisabled,fu=U9.watchWhile;U9=_.n(_.ji(U9.isReadyToResume));var G3=U9.next().value,wd=U9.next().value,Wd;_.LE(function(){u(_.x9());Y.value.addEventListener("animationend",function(qL){qL.target===Y.value&&(G(!1),a(!1))})});
_.kG("yt-window-resized",function(qL){qL&&u(qL)});
var kE=function(){Wd&&F(Wd.getVideoAspectRatio())},n8=function(){if(Wd){var qL=Wd.getPlayerState()===1;
G3()&&qL&&wd(!1)}};
_.kG("yt-activate-miniplayer",function(qL){var Zf;return _.B(function(Cu){if(Cu.nextAddress==1)return W()?Cu.return():_.q(Cu,(Zf=_.E().resolve(_.l1).getPlayerElement())==null?void 0:Zf.getPlayerPromise(),2);Wd=Cu.yieldResult;if(!Wd)return Cu.return();!M()&&_.f("kevlar_watch_while_v2")&&(yX(qL&&!_.f("kevlar_watch_while_bottom_align")?"north":"south"),ah(_.X3("HTML_DIR")==="rtl"?"west":"east"));var hm=Wd;hm.addEventListener("onVideoDataChange",kE);hm.addEventListener("onStateChange",n8);F(Wd.getVideoAspectRatio());
m(!0);G(!0);_.Yt(Cu)})});
_.kG("yt-deactivate-miniplayer",function(qL){return _.B(function(Zf){m(!1);wd(!1);a(qL);G(!0);if(Wd){var Cu=Wd;Cu.removeEventListener("onVideoDataChange",kE);Cu.removeEventListener("onStateChange",n8)}_.Yt(Zf)})});
var P6=function(){var qL=!!nu(),Zf=K(),Cu=fu();return(Cu===void 0?0:Cu)&&_.f("kevlar_watch_while_modern")?!1:qL||Zf},ML=function(){var qL;
return!((qL=Yc())==null||!qL.contents)},zc=function(){var qL=la();
var Zf=P();Zf=Math.min(Math.min(Zf.width,Zf.height)-32,720);var Cu=w(),hm=P6(),Iu=ML()&&J(),Fi=Math.min(qL,Zf);qL=new _.SZ(192,hm?116:192);Cu=u26(new _.SZ(Iu?w01:Cu,1),new _.SZ(Fi,hm?Fi-76:Fi));qL.width<=Cu.width&&qL.height<=Cu.height||(PpI(Cu,qL),Cu.width=Math.min(Cu.width,Zf),Cu.height=Math.min(Cu.height,Zf));return new _.SZ(Cu.width,_.wx(192,Cu.height+r6d(hm,Iu),720))},Ku=function(){var qL=zc(),Zf=P6(),Cu=ML()&&J();
return new _.SZ(qL.width,qL.height-r6d(Zf,Cu))},uo=function(){var qL=function(Zf){Zf.target===Y.value&&b()&&(T(!1),Y.value.removeEventListener("transitionend",qL))};
Y.value.addEventListener("transitionend",qL);T(!0);c(!J())};
U9={};return _.R("ytd-miniplayer",{el:Y,class:_.Si("ytdMiniplayerComponentHost",(U9.ytdMiniplayerComponentVisible=function(){return W()||K()},U9.ytdMiniplayerComponentAnimatingSnap=C,U9.ytdMiniplayerComponentAnimatingPlaylistExpand=b,U9.ytdMiniplayerComponentAnimatingFade=K,U9),function(){if(K()){var qL=va();
var Zf=W(),Cu=v();qL=Zf?qL==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Cu?qL==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":qL==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else qL="";return qL}),
style:_.Jg({top:function(){return va()==="north"?"16px":""},
right:function(){return hu()==="east"?"16px":""},
bottom:function(){return va()==="south"?"16px":""},
left:function(){return hu()==="west"?"16px":""},
width:function(){return zc().width+"px"},
height:function(){return zc().height+"px"},
transform:function(){var qL=O();return qL?"translate("+qL.x+"px, "+qL.y+"px)":""}})},_.R("div",{class:"ytdMiniplayerComponentContent"},_.R(aXu,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(qL){var Zf=$T1(hu(),va(),P(),zc(),O()),Cu=Ku();Math.abs(qL.clientY-(Zf.y+Cu.height))>15?V(!0):qL.preventDefault()},
onDrag:function(qL){ca(qL)},
onDragEnd:function(){var qL=EoI($T1(hu(),va(),P(),zc(),O()),P(),zc()),Zf=goY(hu(),va(),P(),zc()),Cu=goY(qL.horizontalAlignment,qL.verticalAlignment,P(),zc());Cu=new _.TH(Cu.x-Zf.x,Cu.y-Zf.y);var hm;Zf=Zf.y+(((hm=O())==null?void 0:hm.y)||0)+zc().height/2;var Iu=function(){hu()===qL.horizontalAlignment&&va()===qL.verticalAlignment||zJ(!0);ah(qL.horizontalAlignment);yX(qL.verticalAlignment);ca(void 0)},Fi=function(tj){tj.target===Y.value&&C()&&(x(!1),Iu(),Y.value.removeEventListener("transitionend",
Fi))};
V(!1);va()==="south"&&Zf>P().height?(Iu(),_.E().resolve(_.l1).close()):(Y.value.addEventListener("transitionend",Fi),x(!0),ca(Cu))}},_.R(_.gw,{cond:W,
then:function(){return _.R(_.H1u,{isDisabled:$_,playabilityStatus:tu,size:Ku})}}),_.R(_.gw,{cond:P6,
then:function(){return _.R(_.yjB,{isReadyToResume:G3,data:nu,expanded:J,onExpandClick:uo,playlistData:Yc})}}),_.R(_.gw,{cond:S,
then:function(){return _.R("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.R(_.gw,{cond:function(){return ML()&&J()||b()},
then:function(){return _.R(_.$_U,{className:"ytdMiniplayerComponentPlaylistPanel",data:Yc,hideHeaderText:!0,withinMiniplayer:!0})}}),_.R("div",{class:"ytdMiniplayerComponentToast"},_.R(_.V_c,{toastData:U}))),_.R(Li_,{onResize:function(qL){w1(_.wx(192,qL,720))},
currentAspectRatio:w,currentMiniplayerSize:la,horizontalAlignment:hu,verticalAlignment:va}))},"Tf");_.f("ytd_miniplayer_to_wiz")&&_.AL(p01,"ytd-miniplayer",{});_.AL(_.V_c,"ytd-miniplayer-toast",{props:{toastData:_.wm}});var FiB=16/9,s1Z=new _.SZ(400,400/FiB),Q7=function(){var Y=_.Z.apply(this,arguments)||this;Y.active=!1;Y.hasNoData=!1;Y.enabled=!1;Y.expanded=!1;Y.readyToResume=!1;Y.isDisabled=!1;Y.externalPlaylistData={};Y.premiumBadges=[];Y.watchWhile=!1;Y.playerState=null;Y.verticalAttachment="south";Y.horizontalAttachment=_.X3("HTML_DIR")==="rtl"?"west":"east";Y.isAnimatingFade=!1;Y.isAnimatingSnap=!1;Y.isAnimatingExpand=!1;Y.isDragging=!1;Y.playerHidden=!1;Y.hasPlaylistData=!1;Y.closed=!1;Y.expandedClosed=!1;
Y.isForReadyToResume=!1;Y.watchResponse=null;Y.player=null;Y.playerVe=null;Y.expandVe=null;Y.closeVe=null;Y.readyToResumeCloseVe=null;Y.disabledInitialStateIsPlaying=!1;Y.PLAYER_EVENTS=new Map;Y.aspectRatio=FiB;Y.currentMiniplayerSize=400;Y.userSetSize=!1;Y.userSetPosition=!1;Y.userHasDragged=!1;Y.maxMiniplayerSize=720;Y.transform=new _.TH(0,0);Y.windowDimensions=new _.SZ(NaN,NaN);Y.dimensions=s1Z;Y.screenLayer=3;Y.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return Y};
_.r(Q7,_.Z);_.z=Q7.prototype;_.z.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.z.ready=function(){this.setUpDragging();this.setUpResizing()};
_.z.attached=function(){this.onWindowResized(_.x9());this.hostElement.addEventListener("animationend",_.up(this,this.resetFadingAnimation))};
_.z.detached=function(){this.hostElement.removeEventListener("animationend",_.up(this,this.resetFadingAnimation))};
_.z.resetFadingAnimation=function(Y){Y.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.z.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.z.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.z.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var Y=_.pM(this.screenLayer);this.readyToResumeCloseVe&&Y&&_.UV(Y,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.z.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var Y=_.pM(0),S=_.wf(0);Y&&S&&(_.t6(Y,S,this.readyToResumeVe),_.UV(Y,[this.readyToResumeVe]))}};
_.z.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var Y=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=Y===-1||Y===1||Y===3)&&this.player.pauseVideo()}};
_.z.activate=function(Y,S){S=S===void 0?!1:S;var P=this,u;return _.B(function(W){if(W.nextAddress==1)return P.setInitialActivatePositioning(S),P.enabled=!0,P.active=!0,P.expanded=!1,P.closed=!1,P.expandedClosed=!1,P.watchWhileHidden||(P.isAnimatingFade=!0),_.E().resolve(_.D3).setPlaylistComponent(P.JSC$17645_playlistPanel),Y.appendTo(P.playerContainer),_.q(W,Y.getPlayerPromise(),2);u=W.yieldResult;u.setSizeStyle(!1,!0);P.ytPlayerListenerBehavior.listenToPlayerEvents(u,P.PLAYER_EVENTS);P.player=u;
P.watchWhile&&_.f("kevlar_watch_while_minimum_size")&&P.setMiniplayerSize(192);P.setAspectRatio(P.player.getVideoAspectRatio());P.onIsDisabledChanged();_.Yt(W)})};
_.z.setInitialActivatePositioning=function(Y){if(!this.userSetPosition&&_.f("kevlar_watch_while_v2")){this.verticalAttachment=Y&&!_.f("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.X3("HTML_DIR")==="rtl"?"west":"east";var S;(S=this.JSC$17645_resizers)==null||S.update(this.horizontalAttachment,this.verticalAttachment)}};
_.z.deactivate=function(Y,S){var P=this;return _.B(function(u){if(!P.active)return u.return();Y||(P.expanded?P.expandedClosed=!0:P.closed=!0);P.active=!1;P.isForReadyToResume=!1;S&&_.f("kevlar_watch_while_counterfactual")||(P.isAnimatingFade=!0);P.player&&P.ytPlayerListenerBehavior.unlistenFromPlayerEvents(P.player,P.PLAYER_EVENTS);P.player=null;_.Yt(u)})};
_.z.onMetadataTap=function(Y){this.expandVe&&(Y===void 0||Y)&&(Y=_.pM(this.screenLayer))&&_.ko(Y,this.expandVe);_.qf(_.E().resolve(_.l1))};
_.z.onDisabledTap=function(Y){Y.target===_.I(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.z.onPlaylistExpandTap=function(Y){if(this.hasPlaylistData){Y=_.iM(Y)||[];Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;if(S===this.hostElement)break;if(S.classList&&S.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.z.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.up(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.z.animatedResizePlaylist=function(Y){Y.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.up(this,this.animatedResizePlaylist)))};
_.z.getExpandIcon=function(Y){return Y?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.z.onPlayerVideoDataChange=function(){var Y,S=(Y=this.player)==null?void 0:Y.getVideoAspectRatio();S&&S!==this.aspectRatio&&this.setAspectRatio(S)};
_.z.setAspectRatio=function(Y){if(this.active){this.aspectRatio=Y;this.updateDimensionsAndResize();var S;(S=this.JSC$17645_resizers)==null||S.setAspectRatio(Y)}};
_.z.updateDimensionsAndResize=function(){var Y=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),S=this.expanded?FiB:this.aspectRatio,P=new _.SZ(192,this.showInfoBar?116:192);Y=u26(new _.SZ(S,1),new _.SZ(Y,this.showInfoBar?Y-76:Y));P.width<=Y.width&&P.height<=Y.height||(PpI(Y,P),Y.width=Math.min(Y.width,this.maxMiniplayerSize),Y.height=Math.min(Y.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&S<=1?Math.max(Y.width,Y.height)+76:Math.max(Y.width,Y.height)));this.dimensions=
new _.SZ(Y.width,this.clamp(Y.height+this.getNonPlayerHeight()));this.resize()};
_.z.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var Y=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=Y.height+"px";var S;(S=this.player)==null||S.setInternalSize(Y.width,Y.height)};
_.z.getPlayerSize=function(Y){var S=Math.max(0,Y.height-this.getNonPlayerHeight());return new _.SZ(Y.width,S)};
_.z.getNonPlayerHeight=function(){var Y=0;this.showInfoBar&&(Y+=76);this.expanded&&(Y+=285);return Y};
_.z.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.E().resolve(_.l1).close()};
_.z.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.z.logClosingClick=function(){this.closeVe&&_.ko(_.pM(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.ko(_.pM(this.screenLayer),this.readyToResumeCloseVe)};
_.z.onPlayerExpandMiniplayer=function(){if(this.expandVe){var Y=_.pM(this.screenLayer);Y&&_.ko(Y,this.expandVe)}};
_.z.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var Y=this.playerState===1;this.continueWatching&&Y&&(this.continueWatching=!1);this.premiumBadges.length&&Y&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.z.getScreenLayer=function(){return this.screenLayer};
_.z.logMiniplayer=function(){var Y=_.pM(this.screenLayer),S=_.wf(this.screenLayer);Y&&S&&this.playerVe&&(_.t6(Y,S,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.Ar(Y,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.UV(Y,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.Ar(Y,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.z.computePlaylistData=function(Y,S){return S};
_.z.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.z.computeExpandButtonHidden=function(Y,S,P){return!Y||!S||P};
_.z.computePlaylistIndexHidden=function(Y,S){return!Y||S};
_.z.computePlaylistPanelHidden=function(Y,S){return!S&&!Y};
_.z.computeExpandButtonLabel=function(Y){return Y?_.Td("MINIPLAYER_COLLAPSE_LABEL"):_.Td("MINIPLAYER_EXPAND_LABEL")};
_.z.computeDisabledStateCloseButtonLabel=function(){return _.Td("MINIPLAYER_CLOSE",void 0,"Close")};
_.z.onWindowResized=function(Y){Y&&(Y=this.windowDimensions=Y,this.maxMiniplayerSize=Math.min(Math.min(Y.width,Y.height)-32,720),this.updateDimensionsAndResize())};
_.z.setUpResizing=function(){var Y=this;this.JSC$17645_resizers||(this.JSC$17645_resizers=new ov(this.JSC$17645_resizeContainer,{onStartResize:function(){Y.handleResizeStart()},
onResize:function(S){Y.handleResize(S)}}),this.JSC$17645_resizers.setSize(this.currentMiniplayerSize),this.JSC$17645_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.z.handleResizeStart=function(){var Y=_.pM(this.screenLayer);this.userSetSize||(this.userSetSize=!0,Y&&this.resizeVe&&_.UV(Y,[this.resizeVe]));Y&&this.resizeVe&&_.ko(Y,this.resizeVe)};
_.z.handleResize=function(Y){this.setMiniplayerSize(Y);this.updateDimensionsAndResize()};
_.z.setUpDragging=function(){var Y=this;this.JSC$17645_dragger||(this.JSC$17645_dragger=new ib(this.draggableContainer,{onStartDrag:function(S){!Y.isSafeToDrag(S)||Y.isAnimatingSnap?S.preventDefault():Y.handleDragStart()},
onDrag:function(S){Y.transform=S;Y.setTransform(Y.transform)},
onEndDrag:function(){Y.handleDragEnd()}},!0))};
_.z.handleDragStart=function(){this.isDragging=!0;var Y=_.pM(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,Y&&this.repositionVe&&_.UV(Y,[this.repositionVe]));Y&&this.repositionVe&&_.ko(Y,this.repositionVe)};
_.z.handleDragEnd=function(){this.isDragging=!1;var Y=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&Y>this.windowDimensions.height&&_.E().resolve(_.l1).close();this.animateSnapToCorner()};
_.z.animateSnapToCorner=function(){var Y=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),S=this.getNearestAttachments();S=this.getGlobalPositionFromAttachments(S.horizontalAttachment,S.verticalAttachment);Y=new _.TH(S.x-Y.x,S.y-Y.y);this.isAnimatingSnap=!0;this.setTransform(Y);this.hostElement.addEventListener("transitionend",_.up(this,this.endSnapAnimation))};
_.z.endSnapAnimation=function(Y){Y.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.up(this,this.endSnapAnimation)),this.endDrag())};
_.z.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.z.setTransform=function(Y){this.hostElement.style.transform=Y?"translate("+Y.x+"px, "+Y.y+"px)":""};
_.z.getGlobalPositionFromAttachments=function(Y,S){return new _.TH(Y==="west"?16:this.windowDimensions.width-this.dimensions.width-16,S==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.z.updateAttachments=function(){var Y=this.getNearestAttachments();if(this.horizontalAttachment!==Y.horizontalAttachment||this.verticalAttachment!==Y.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=Y.horizontalAttachment;this.verticalAttachment=Y.verticalAttachment;var S;(S=this.JSC$17645_resizers)==null||S.update(this.horizontalAttachment,this.verticalAttachment)};
_.z.getNearestAttachments=function(){var Y=this.getCurrentGlobalPosition();return{horizontalAttachment:Y.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:Y.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.z.getCurrentGlobalPosition=function(){var Y=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return f9j(Y,this.transform)};
_.z.isSafeToDrag=function(Y){var S=this.playerContainer.getBoundingClientRect();return Math.abs(Y.clientY-(S.y+S.height))>15};
_.z.setMiniplayerSize=function(Y){this.currentMiniplayerSize=this.clamp(Y);var S;(S=this.JSC$17645_resizers)==null||S.setSize(this.currentMiniplayerSize)};
_.z.clamp=function(Y){return _.wx(192,Y,720)};
_.z.registerViewTransitionTasks=function(){var Y=this,S=_.E().resolve(_.PQ(_.QuB));if(S){var P={beforeTransition:function(){Y.hostElement&&(Y.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){Y.hostElement&&(Y.hostElement.style.viewTransitionName="")}};
jJ(S,"slide",P);jJ(S,"zoom",P)}};
_.y6.Object.defineProperties(Q7.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.f("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:_.Td("CONTINUE_WATCHING",void 0,"Continue watching")};var Y;if((Y=this.externalPlaylistData)==null?0:Y.contents)return this.externalPlaylistData.titleText;var S;return(S=this.data)==null?void 0:S.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.externalPlaylistData)==null?0:Y.contents){var S;return(S=_.Ma9(this.externalPlaylistData))==null?void 0:S.title}var P;return(P=this.data)==null?void 0:P.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var Y,S,P,u;return((Y=this.externalPlaylistData)==null?void 0:Y.currentIndex)!==void 0&&((S=this.externalPlaylistData)==null?0:S.totalVideos)&&!((P=this.data)==null?0:(u=P.playlistData)==null?0:u.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.LPa(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.f("kevlar_watch_while_counterfactual")}}});
Q7.prototype.onIsDisabledChanged=Q7.prototype.onIsDisabledChanged;Q7.prototype.readyToResumeVeChanged=Q7.prototype.readyToResumeVeChanged;Q7.prototype.premiumBrandingChanged=Q7.prototype.premiumBrandingChanged;Q7.prototype.onPlayerVeChange=Q7.prototype.onPlayerVeChange;Q7.prototype.hasPlaylistDataChanged=Q7.prototype.hasPlaylistDataChanged;_.Q([_.p(_.da.YtPlayerListenerBehavior),_.k("design:type",_.ll)],Q7.prototype,"ytPlayerListenerBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Q7.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Q7.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Q7.prototype,"ytdReduxBehavior",void 0);_.Q([_.nc("#draggable"),_.k("design:type",HTMLDivElement)],Q7.prototype,"draggableContainer",void 0);
_.Q([_.nc("#resize-container"),_.k("design:type",HTMLDivElement)],Q7.prototype,"JSC$17645_resizeContainer",void 0);_.Q([_.nc("#video-container"),_.k("design:type",HTMLDivElement)],Q7.prototype,"videoContainer",void 0);_.Q([_.nc("#player-container"),_.k("design:type",HTMLDivElement)],Q7.prototype,"playerContainer",void 0);_.Q([_.nc("#playlist"),_.k("design:type",HTMLDivElement)],Q7.prototype,"JSC$17645_playlistPanel",void 0);_.Q([_.X(),_.k("design:type",Object)],Q7.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"active",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"hasNoData",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"enabled",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"expanded",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"readyToResume",void 0);
_.Q([_.X(),_.k("design:type",Object)],Q7.prototype,"isDisabled",void 0);_.Q([_.X(),_.k("design:type",Object)],Q7.prototype,"externalPlaylistData",void 0);_.Q([_.X(),_.k("design:type",Array)],Q7.prototype,"premiumBadges",void 0);_.Q([_.X(),_.k("design:type",Object)],Q7.prototype,"toastData",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"watchWhile",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Q7.prototype,"premiumBranding",void 0);
_.Q([_.X(),_.k("design:type",Object)],Q7.prototype,"playerState",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Q7.prototype,"continueWatching",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],Q7.prototype,"verticalAttachment",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],Q7.prototype,"horizontalAttachment",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"isAnimatingFade",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"isAnimatingSnap",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"isAnimatingExpand",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"isDragging",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"playerHidden",void 0);
_.Q([_.X({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.k("design:type",Object)],Q7.prototype,"playlistData",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.k("design:type",Object)],Q7.prototype,"hasPlaylistData",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"closed",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Q7.prototype,"expandedClosed",void 0);
_.Q([_.X({selector:_.m$$}),_.k("design:type",Boolean)],Q7.prototype,"isSingleOptionSurveyActive",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.Fp}),_.k("design:type",Boolean)],Q7.prototype,"isWatchPage",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("watchWhile"),_.k("design:type",Object),_.k("design:paramtypes",[])],Q7.prototype,"showInfoBar",null);_.Q([_.d("premiumBadges","showInfoBar"),_.k("design:type",Object),_.k("design:paramtypes",[])],Q7.prototype,"showOverlayPremiumBadges",null);
_.Q([_.X(),_.k("design:type",Object)],Q7.prototype,"watchResponse",void 0);_.Q([_.X(),_.k("design:type",Object)],Q7.prototype,"miniplayerRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],Q7.prototype,"playabilityStatus",void 0);_.Q([_.X(),_.k("design:type",Object)],Q7.prototype,"playerVe",void 0);_.Q([_.X(),_.k("design:type",Object)],Q7.prototype,"expandVe",void 0);_.Q([_.X(),_.k("design:type",Object)],Q7.prototype,"closeVe",void 0);
_.Q([_.X(),_.k("design:type",Object)],Q7.prototype,"readyToResumeCloseVe",void 0);_.Q([_.X(),_.k("design:type",_.LM)],Q7.prototype,"readyToResumeVe",void 0);_.Q([_.X(),_.k("design:type",_.LM)],Q7.prototype,"resizeVe",void 0);_.Q([_.X(),_.k("design:type",_.LM)],Q7.prototype,"repositionVe",void 0);_.Q([_.zY("hasPlaylistData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q7.prototype,"hasPlaylistDataChanged",null);
_.Q([_.zY("playerVe"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q7.prototype,"onPlayerVeChange",null);_.Q([_.zY("premiumBranding"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q7.prototype,"premiumBrandingChanged",null);_.Q([_.zY("readyToResumeVe"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q7.prototype,"readyToResumeVeChanged",null);
_.Q([_.zY("isDisabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q7.prototype,"onIsDisabledChanged",null);_.Q([_.d("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.k("design:type",Object),_.k("design:paramtypes",[])],Q7.prototype,"miniplayerSubtitle",null);_.Q([_.d("data.miniplayerTitle","externalPlaylistData"),_.k("design:type",Object),_.k("design:paramtypes",[])],Q7.prototype,"miniplayerTitle",null);
_.Q([_.d("externalPlaylistData","continueWatching"),_.k("design:type",Object),_.k("design:paramtypes",[])],Q7.prototype,"playlistIndexMessage",null);_.Q([_.X({reflectToAttribute:!0}),_.d("playabilityStatus"),_.k("design:type",Object),_.k("design:paramtypes",[])],Q7.prototype,"showErrorScreen",null);_.Q([_.X({reflectToAttribute:!0}),_.d("watchWhile"),_.k("design:type",Object),_.k("design:paramtypes",[])],Q7.prototype,"watchWhileHidden",null);
_.f("ytd_miniplayer_to_wiz")||_.A(Q7,"ytd-miniplayer",function(){if(IXI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
Y.content.insertBefore(DVI().content.cloneNode(!0),Y.content.firstChild);Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);IXI=Y}Y=IXI;return Y},{mode:2});var dV5;var kk=function(){var Y=_.Z.apply(this,arguments)||this;Y.useListItemStyles=_.f("web_list_item_style_for_menu_items");Y.systemIcons=_.f("kevlar_system_icons");return Y};
_.r(kk,_.Z);_.z=kk.prototype;_.z.ready=function(){this.hostElement.addEventListener("tap",_.up(this,this.onEndpointTapExtra))};
_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.z.onFocus=function(){var Y;(Y=_.I(this.hostElement).querySelector("tp-yt-paper-item"))==null||Y.focus()};
_.z.onEndpointTapExtra=function(Y){_.ms(this.hostElement,"iron-activate");var S=this.data.navigationEndpoint;S&&_.g(S,_.QUa)&&(Y.stopPropagation(),_.cu(this.hostElement,[S],this.hostElement))};
_.z.computeIcon=function(Y){return Y&&Y.iconType?_.u2(Y.iconType):""};
_.z.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.z.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.z.forceUpdateStylesOnLegacyBrowsers=function(){_.f("kevlar_legacy_browsers")&&_.PZ(this.hostElement)};
kk.prototype.forceUpdateStylesOnLegacyBrowsers=kk.prototype.forceUpdateStylesOnLegacyBrowsers;kk.prototype.onFocus=kk.prototype.onFocus;_.Q([_.p(_.sL),_.k("design:type",Object)],kk.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.p(_.hIf.YtConditionalRendererBehavior),_.k("design:type",Object)],kk.prototype,"ytConditionalRendererBehavior",void 0);_.Q([_.p(_.eo.YtEndpointBehavior),_.k("design:type",Object)],kk.prototype,"ytEndpointBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],kk.prototype,"data",void 0);_.Q([_.X({computed:"computeIcon(data.icon)",value:""}),_.k("design:type",String)],kk.prototype,"icon",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],kk.prototype,"useIcons",void 0);_.Q([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.k("design:type",Boolean)],kk.prototype,"hasSeparator",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],kk.prototype,"useListItemStyles",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],kk.prototype,"systemIcons",void 0);_.Q([_.WZ("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kk.prototype,"onFocus",null);_.Q([_.zY("useIcons","hasSeparator"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kk.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.A(kk,"ytd-menu-navigation-item-renderer",function(){if(dV5===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);dV5=Y}Y=dV5;return Y},{mode:1});var lXZ;var X01=_.kW(_.Td("DOWNLOAD",{},"Download")),Zk1=_.kW(_.Td("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),ik6=_.kW(_.Td("RETRY",{},"Retry")),oOo=_.kW(_.Td("PAUSE_DOWNLOADING",{},"Pause downloading")),tG1=_.kW(_.Td("RESUME_DOWNLOAD",{},"Resume download")),M3=function(){var Y=_.Z.apply(this,arguments)||this;Y.primaryText=X01;Y.primaryIconType="OFFLINE_DOWNLOAD";Y.hasSecondaryContent=!1;Y.hasSeparator=!1;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.isVideoDeletedByUser=!1;Y.isHidden=!1;Y.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return Y};
_.r(M3,_.Z);_.z=M3.prototype;_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.z.onFocus=function(){this.primaryEntry.focus()};
_.z.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.z.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.z.getRemoveAction=function(){return"ACTION_REMOVE"};
_.z.sendOfflineAction=function(Y){var S=this.data.serviceEndpoint;if(S){var P=_.g(S,_.mA);P&&Y&&(P.action=Y);this.ytComponentBehavior.resolveCommand(S)}};
_.z.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=X01,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=X01;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=ik6;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Zk1;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=tG1;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Zk1;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
oOo;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Zk1;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Zk1;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=X01,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.z.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.z.isSecondaryEntryHidden=function(Y,S){return Y?!0:!S};
_.z.computeHasSeparator=function(){var Y;return!((Y=this.data)==null||!Y.hasSeparator)};
M3.prototype.showHideButton=M3.prototype.showHideButton;M3.prototype.onTransferStateChange=M3.prototype.onTransferStateChange;M3.prototype.onFocus=M3.prototype.onFocus;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],M3.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],M3.prototype,"ytComponentBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],M3.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],M3.prototype,"primaryText",void 0);_.Q([_.X(),_.k("design:type",String)],M3.prototype,"primaryIconType",void 0);_.Q([_.X(),_.k("design:type",String)],M3.prototype,"primaryAction",void 0);_.Q([_.X(),_.k("design:type",Object)],M3.prototype,"secondaryText",void 0);_.Q([_.X(),_.k("design:type",String)],M3.prototype,"secondaryIconType",void 0);
_.Q([_.X(),_.k("design:type",String)],M3.prototype,"secondaryAction",void 0);_.Q([_.X(),_.k("design:type",Object)],M3.prototype,"hasSecondaryContent",void 0);_.Q([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.k("design:type",Object)],M3.prototype,"hasSeparator",void 0);_.Q([_.X({selector:_.sC,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.k("design:type",String)],M3.prototype,"transferState",void 0);
_.Q([_.X({selector:_.vpX,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.k("design:type",Object)],M3.prototype,"isVideoDeletedByUser",void 0);_.Q([_.X(),_.k("design:type",Object)],M3.prototype,"isHidden",void 0);_.Q([_.X({selector:_.fPh,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.k("design:type",Object)],M3.prototype,"offlineabilityState",void 0);_.Q([_.nc("#primary-entry"),_.k("design:type",Object)],M3.prototype,"primaryEntry",void 0);
_.Q([_.WZ("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],M3.prototype,"onFocus",null);_.Q([_.cZ("transferState","isVideoDeletedByUser"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],M3.prototype,"onTransferStateChange",null);_.Q([_.cZ("offlineabilityState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],M3.prototype,"showHideButton",null);
_.A(M3,"ytd-menu-service-item-download-renderer",function(){if(lXZ===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);lXZ=Y}Y=lXZ;return Y},{mode:1});var AOX;var y7=function(){var Y=_.Z.apply(this,arguments)||this;Y.useIcons=!1;Y.systemIcons=_.f("kevlar_system_icons");Y.useListItemStyles=_.f("web_list_item_style_for_menu_items");return Y};
_.r(y7,_.Z);_.z=y7.prototype;_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.z.onFocus=function(){var Y;(Y=_.I(this.hostElement).querySelector("tp-yt-paper-item"))==null||Y.focus()};
_.z.onTap=function(){_.jR(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var Y=this.data.serviceEndpoint,S=this.data.command;if(Y){var P,u=(P=this.data)==null?void 0:P.trackingParams;P=!!_.g(Y,_.J7L);u&&P&&_.Na().dispatch(_.WT({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:u}}));this.ytComponentBehavior.resolveCommand(Y)||_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}})}S&&(this.ytComponentBehavior.resolveCommand(S)||_.cu(this.hostElement,
[S],this.hostElement))};
_.z.computeIcon=function(Y){return Y&&Y.iconType?_.u2(Y.iconType):""};
_.z.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.z.computeHasSeparator=function(){var Y;return!((Y=this.data)==null||!Y.hasSeparator)};
_.z.forceUpdateStylesOnLegacyBrowsers=function(){_.f("kevlar_legacy_browsers")&&_.PZ(this.hostElement)};
_.z.computeIsSelected=function(){var Y;return!((Y=this.data)==null||!Y.isSelected)};
y7.prototype.forceUpdateStylesOnLegacyBrowsers=y7.prototype.forceUpdateStylesOnLegacyBrowsers;y7.prototype.onTap=y7.prototype.onTap;y7.prototype.onFocus=y7.prototype.onFocus;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],y7.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],y7.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.hIf.YtConditionalRendererBehavior),_.k("design:type",Object)],y7.prototype,"ytConditionalRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],y7.prototype,"data",void 0);_.Q([_.X({computed:"computeIcon(data.icon)",value:""}),_.k("design:type",String)],y7.prototype,"icon",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],y7.prototype,"useIcons",void 0);
_.Q([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.k("design:type",Boolean)],y7.prototype,"hasSeparator",void 0);_.Q([_.X({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.k("design:type",Boolean)],y7.prototype,"isSelected",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],y7.prototype,"systemIcons",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],y7.prototype,"useListItemStyles",void 0);
_.Q([_.WZ("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],y7.prototype,"onFocus",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],y7.prototype,"onTap",null);_.Q([_.zY("useIcons","hasSeparator"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],y7.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.A(y7,"ytd-menu-service-item-renderer",function(){if(AOX===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);AOX=Y}Y=AOX;return Y},{mode:2});var UVu;var N3=function(){return _.Z.apply(this,arguments)||this};
_.r(N3,_.Z);_.z=N3.prototype;_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.onDataChanged=function(){var Y=this;_.ky(this,function(){Y.postbox.openDialog();Y.focus();_.ms(Y.hostElement,"yt-refit")})};
_.z.focus=function(){this.postbox.focus()};
_.z.closePopup=function(){_.nb(this.hostElement,"yt-close-popup-action")};
_.z.onYtCommentboxDismiss=function(){this.closePopup()};
N3.prototype.onYtCommentboxDismiss=N3.prototype.onYtCommentboxDismiss;N3.prototype.onDataChanged=N3.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],N3.prototype,"data",void 0);_.Q([_.X({value:function(){return _.Td("SBOX_INAPPROPRIATE_CANCEL")}}),
_.k("design:type",String)],N3.prototype,"closeButtonAriaLabel",void 0);_.Q([_.nc("#postbox"),_.k("design:type",Object)],N3.prototype,"postbox",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N3.prototype,"onDataChanged",null);_.Q([_.WZ("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N3.prototype,"onYtCommentboxDismiss",null);
N3=_.Q([_.t({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],N3);
_.A(N3,"ytd-backstage-post-dialog-popup-renderer",function(){if(UVu!==void 0)return UVu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return UVu=Y},{mode:1});var Q1d;var Hl=function(){return _.Z.apply(this,arguments)||this};
_.r(Hl,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Hl.prototype,"data",void 0);Hl=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Hl);
_.A(Hl,"ytd-sender-id-section-renderer",function(){if(Q1d!==void 0)return Q1d;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
return Q1d=Y},{mode:1});var kVY;var MG5;var yO6;var V7=function(){return _.Z.apply(this,arguments)||this};
_.r(V7,_.Z);V7.prototype.closePopup=function(){_.nb(this.hostElement,"yt-close-popup-action")};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],V7.prototype,"data",void 0);V7=_.Q([_.r0({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],V7);
_.A(V7,"yt-community-post-section-renderer",function(){if(yO6===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;MG5===void 0&&(MG5=document.createElement("template"));var u=MG5;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);yO6=Y}Y=yO6;return Y},{mode:2});var NC1;var Hku;var VGY;var ew1;var Ok_;var Yv1;var et=function(){return _.Z.apply(this,arguments)||this};
_.r(et,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],et.prototype,"data",void 0);et=_.Q([_.r0({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],et);
_.A(et,"yt-share-start-time-with-context-renderer",function(){if(Yv1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;Ok_===void 0&&(Ok_=document.createElement("template"));var u=Ok_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Yv1=Y}Y=Yv1;return Y},{mode:2});var Oc=function(){return _.Z.apply(this,arguments)||this};
_.r(Oc,_.Z);Oc.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Oc.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Oc.prototype,"data",void 0);Oc=_.Q([_.r0({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Oc);
_.A(Oc,"yt-share-panel-title-v15-renderer",function(){if(ew1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;VGY===void 0&&(VGY=document.createElement("template"));var u=VGY;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);ew1=Y}Y=ew1;return Y},{mode:2});var Y3=function(){return _.Z.apply(this,arguments)||this};
_.r(Y3,_.Z);Y3.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Y3.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Y3.prototype,"data",void 0);Y3=_.Q([_.r0({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Y3);
_.A(Y3,"yt-share-panel-header-renderer",function(){if(Hku===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;NC1===void 0&&(NC1=document.createElement("template"));var u=NC1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Hku=Y}Y=Hku;return Y},{mode:2});var Sv6;var Pl1;var SW=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-open-popup-action":"onOpen"};return Y};
_.r(SW,_.Z);_.z=SW.prototype;_.z.attached=function(){this.onOpen()};
_.z.updateTimeSecs=function(Y){this.currentTimeSecs=Y};
_.z.computeTimeString=function(Y){Y=Y.toString();var S=Math.floor(Number(Y)/3600),P=Math.floor(Number(Y)%3600%60);return(S>0?S+":":"")+_.Sm(Math.floor(Number(Y)%3600/60),S>0?2:1)+":"+_.Sm(P,2)};
_.z.computeTimeStringA11y=function(Y){Y=_.IPY({seconds:Y});var S=Y.hours===void 0?0:Y.hours,P=Y.minutes===void 0?0:Y.minutes,u=Y.seconds===void 0?0:Y.seconds;Y=[];if(S>0){var W=uBj().format({hours:S});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.ZS)||S>9999)W=W.replace(S.toString(),_.aPu(S)),_.ZS==="km"&&(W=W.replace(".",","));Y.push(W)}P>0&&Y.push(uBj().format({minutes:P}));u>0&&Y.push(uBj().format({seconds:u}));S="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");P=_.ZS==
"am"?"{0}\u1363 ":_.ZS=="fa"?"{0}\u060c\u200f ":_.ZS=="my"?"{0} - ":_.ZS=="ne"?"{0},":_.ZS=="th"?"{0} ":_.ZS=="ur"?"{0}\u060c ":_.ZS=="ar"||_.ZS=="ar-XB"?"{0} \u0648":_.ZS=="ja"||_.ZS=="zh-CN"||_.ZS=="zh-HK"||_.ZS=="zh-TW"?"{0}\u3001":"{0}, ";u=_.ZS=="am"?"\u1363 ":_.ZS=="fa"?"\u060c\u200f ":_.ZS=="my"?" - ":_.ZS=="th"?" ":_.ZS=="ur"?"\u060c ":_.ZS=="ar"||_.ZS=="ar-XB"?" \u0648":_.ZS=="ja"||_.ZS=="zh-CN"||_.ZS=="zh-HK"||_.ZS=="zh-TW"?"\u3001":", ";W=_.ZS=="am"?" \u12a5\u1293 {0}":_.ZS=="as"?" \u0986\u09f0\u09c1 {0}":
_.ZS=="az"?" v\u0259 {0}":_.ZS=="bn"?" \u098f\u09ac\u0982 {0}":_.ZS=="cs"?" a\u00a0{0}":_.ZS=="de"?" und {0}":_.ZS=="el"?" \u03ba\u03b1\u03b9 {0}":_.ZS=="eu"?" eta {0}":_.ZS=="fa"?"\u060c \u0648 {0}":_.ZS=="fil"?", at {0}":_.ZS=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.ZS=="hi"?", \u0914\u0930 {0}":_.ZS=="hu"?" \u00e9s {0}":_.ZS=="hy"?" \u0587 {0}":_.ZS=="id"?", dan {0}":_.ZS=="iw"?" \u05d5-{0}":_.ZS=="ja"?"\u3001{0}":_.ZS=="ka"?" \u10d3\u10d0 {0}":_.ZS=="km"?" \u1793\u17b7\u1784 {0}":_.ZS=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.ZS=="ko"?" \ubc0f {0}":_.ZS=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.ZS=="lt"?" ir {0}":_.ZS=="lv"?" un {0}":_.ZS=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.ZS=="mr"?" \u0906\u0923\u093f {0}":_.ZS=="ms"?" dan {0}":_.ZS=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.ZS=="ne"?" \u0930 {0}":_.ZS=="or"?", \u0b13 {0}":_.ZS=="pa"?" \u0a05\u0a24\u0a47 {0}":_.ZS=="ro"?" \u0219i {0}":_.ZS=="si"?", \u0dc3\u0dc4 {0}":_.ZS=="sk"?" a {0}":_.ZS=="sl"?" in {0}":_.ZS=="sq"?" dhe {0}":_.ZS=="sv"?" och {0}":
_.ZS=="sw"?" na {0}":_.ZS=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.ZS=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.ZS=="th"?" \u0e41\u0e25\u0e30{0}":_.ZS=="tr"?" ve {0}":_.ZS=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.ZS=="uz"?" va {0}":_.ZS=="vi"?" v\u00e0 {0}":_.ZS=="zh-HK"?"\u53ca{0}":_.ZS=="zu"?", ne-{0}":_.ZS=="af"||_.ZS=="nl"?" en {0}":_.ZS=="ar"||_.ZS=="ar-XB"?" \u0648{0}":_.ZS=="be"||_.ZS=="uk"?" \u0456 {0}":_.ZS=="en-GB"||_.ZS=="en-IN"?" and {0}":_.ZS=="en"||_.ZS=="en-XA"?
", and {0}":_.ZS=="et"||_.ZS=="fi"?" ja {0}":_.ZS=="fr"||_.ZS=="fr-CA"?" et {0}":_.ZS=="zh-CN"||_.ZS=="zh-TW"?"\u548c{0}":_.ZS=="da"||_.ZS=="is"||_.ZS=="no"?" og {0}":_.ZS=="es"||_.ZS=="es-419"||_.ZS=="es-US"?" y {0}":_.ZS=="kk"||_.ZS=="lo"||_.ZS=="mn"?", {0}":_.ZS=="bg"||_.ZS=="mk"||_.ZS=="ru"||_.ZS=="sr"?" \u0438 {0}":_.ZS=="gl"||_.ZS=="it"||_.ZS=="pt-BR"||_.ZS=="pt-PT"?" e {0}":" i {0}";var m=_.ZS=="am"?"{0} \u12a5\u1293 {1}":_.ZS=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.ZS=="az"?"{0} v\u0259 {1}":
_.ZS=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.ZS=="de"?"{0} und {1}":_.ZS=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.ZS=="eu"?"{0} eta {1}":_.ZS=="fa"?"{0} \u0648 {1}":_.ZS=="fil"?"{0} at {1}":_.ZS=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.ZS=="hi"?"{0} \u0914\u0930 {1}":_.ZS=="hu"?"{0} \u00e9s {1}":_.ZS=="hy"?"{0} \u0587 {1}":_.ZS=="iw"?"{0} \u05d5-{1}":_.ZS=="ja"?"{0}\u3001{1}":_.ZS=="ka"?"{0} \u10d3\u10d0 {1}":_.ZS=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.ZS=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.ZS=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.ZS=="ko"?"{0} \ubc0f {1}":_.ZS=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.ZS=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.ZS=="lt"?"{0} ir {1}":_.ZS=="lv"?"{0} un {1}":_.ZS=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.ZS=="mn"?"{0}, {1}":_.ZS=="mr"?"{0} \u0906\u0923\u093f {1}":_.ZS=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.ZS=="ne"?"{0} \u0930 {1}":_.ZS=="or"?"{0} \u0b13 {1}":_.ZS=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.ZS=="ro"?"{0} \u0219i {1}":_.ZS==
"si"?"{0} \u0dc3\u0dc4 {1}":_.ZS=="sl"?"{0} in {1}":_.ZS=="sq"?"{0} dhe {1}":_.ZS=="sv"?"{0} och {1}":_.ZS=="sw"?"{0} na {1}":_.ZS=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.ZS=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.ZS=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.ZS=="tr"?"{0} ve {1}":_.ZS=="ur"?"{0} \u0627\u0648\u0631 {1}":_.ZS=="uz"?"{0} va {1}":_.ZS=="vi"?"{0} v\u00e0 {1}":_.ZS=="zh-HK"?"{0}\u53ca{1}":_.ZS=="zu"?"{0} ne-{1}":_.ZS=="af"||_.ZS=="nl"?"{0} en {1}":_.ZS=="ar"||_.ZS==
"ar-XB"?"{0} \u0648{1}":_.ZS=="be"||_.ZS=="uk"?"{0} \u0456 {1}":_.ZS=="cs"||_.ZS=="sk"?"{0} a\u00a0{1}":_.ZS=="et"||_.ZS=="fi"?"{0} ja {1}":_.ZS=="fr"||_.ZS=="fr-CA"?"{0} et {1}":_.ZS=="id"||_.ZS=="ms"?"{0} dan {1}":_.ZS=="zh-CN"||_.ZS=="zh-TW"?"{0}\u548c{1}":_.ZS=="da"||_.ZS=="is"||_.ZS=="no"?"{0} og {1}":_.ZS=="es"||_.ZS=="es-419"||_.ZS=="es-US"?"{0} y {1}":_.ZS=="bg"||_.ZS=="mk"||_.ZS=="ru"||_.ZS=="sr"?"{0} \u0438 {1}":_.ZS=="en"||_.ZS=="en-GB"||_.ZS=="en-IN"||_.ZS=="en-XA"?"{0} and {1}":_.ZS==
"gl"||_.ZS=="it"||_.ZS=="pt-BR"||_.ZS=="pt-PT"?"{0} e {1}":"{0} i {1}";_.ZS==="sq"?(W=W.replace("dhe","e"),m=m.replace("dhe","e")):_.ZS==="th"?(u=u.replace("{0}"," {0}"),m=m.replace("{0}","{0} "),m=m.replace("{1}"," {1}")):_.ZS==="ne"?u=",":_.ZS==="zh-CN"?u="":S.includes(_.ZS)&&(u=" ");return Y.length<2?Y.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(_.ZS)?Y.length===2?
m.replace("{0}",Y[0]).replace("{1}",Y[1]):P.replace("{0}",Y[0])+Y.slice(1,-1).join(u)+W.replace("{0}",Y[Y.length-1]):Y.join(u)};
_.z.getTimeParam=function(){return Gd6(this.timeString)};
_.z.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var Y={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},S;_.uA(_.BF(),(S=this.data)==null?void 0:S.trackingParams,Y,7)};
_.z.onChangeStartAtTimestamp=function(){for(var Y=this.startAtTimestamp.value.split(":"),S=0,P=1,u=Y.length-1;u>=0;u--)S+=Number(Y[u])*P,P*=60;this.updateTimeSecs(S);this.setTimestamp()};
_.z.onOpen=function(){var Y=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var S=_.Q5();S?S.getPlayerPromise().then(function(P){P=P.getCurrentTime();Y.updateTimeSecs(P)}):SfB()&&this.updateTimeSecs(SfB())};
_.z.setTimestamp=function(){var Y=Math.floor(this.currentTimeSecs);_.nb(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!Y,timestamp:Y||""}])};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],SW.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],SW.prototype,"data",void 0);_.Q([_.X({value:!1,notify:!0}),_.k("design:type",Boolean)],SW.prototype,"isStartAtChecked",void 0);_.Q([_.X(),_.k("design:type",Number)],SW.prototype,"currentTimeSecs",void 0);
_.Q([_.X({computed:"computeTimeString(currentTimeSecs)"}),_.k("design:type",String)],SW.prototype,"timeString",void 0);_.Q([_.X({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.k("design:type",String)],SW.prototype,"timeStringA11y",void 0);_.Q([_.nc("#start-at-timestamp"),_.k("design:type",Object)],SW.prototype,"startAtTimestamp",void 0);SW=_.Q([_.r0({is:"yt-start-at-renderer",disableElementRegistration:!0})],SW);
_.A(SW,"yt-start-at-renderer",function(){if(Pl1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Sv6===void 0&&(Sv6=document.createElement("template"));var u=Sv6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Pl1=Y}Y=Pl1;return Y},{mode:2});var ucu;var WyB;var zK1=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"]]),mcZ=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"]]),nR1=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var j5I={};j5I.YtBindingExpressionsBehavior={identity:_.XE,msg:function(Y,S){S=S===void 0?{}:S;return _.Td(Y,S,Y)},
msgPlural:function(Y,S){return _.fb(Y,S)},
getMusicIconFromType:function(Y){if(_.f("music_web_enable_icon_wil"))Y=_.u2(Y);else if(mcZ.has(Y))Y="yt-sys-icons:"+mcZ.get(Y);else{var S=zK1.get(Y)||_.u2(Y).split(":")[1];S=_.ak1(S);var P;Y=((P=nR1.get(Y))!=null?P:"yt-sys-icons:")+S}return Y}};var J8B;var BaI;var c85;var ClI=document.head,qvu=ClI.appendChild,RKd;if(c85===void 0){var xc1=document.createElement("template");_.h(xc1,'\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>');c85=xc1}RKd=c85;qvu.call(ClI,RKd.content);var P7=function(){var Y=_.Z.apply(this,arguments)||this;Y.screenLayer=7;return Y};
_.r(P7,_.Z);P7.prototype.getScreenLayer=function(){return this.screenLayer};
P7.prototype.onTap=function(Y){Y&&Y.detail&&(Y.detail.x||Y.detail.y)&&_.I(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Bu(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(Y=this.getScreenLayer(),_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:Y}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.y6.Object.defineProperties(P7.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()}}});
P7.prototype.onTap=P7.prototype.onTap;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],P7.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],P7.prototype,"data",void 0);_.Q([_.d("data.title"),_.k("design:type",Object),_.k("design:paramtypes",[])],P7.prototype,"title",null);
_.Q([_.d("data.serviceName"),_.k("design:type",String),_.k("design:paramtypes",[])],P7.prototype,"icon",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],P7.prototype,"onTap",null);P7=_.Q([_.r0({is:"yt-share-target-renderer",disableElementRegistration:!0})],P7);
_.A(P7,"yt-share-target-renderer",function(){if(BaI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;J8B===void 0&&(J8B=document.createElement("template"));var u=J8B;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);BaI=Y}Y=BaI;return Y},{mode:2});var bGu;var Tao;var ux=function(){var Y=_.Z.apply(this,arguments)||this;Y.SHARE_TARGET_WIDTH=70;Y.SHARE_TARGET_MARGIN_RIGHT=8;Y.PAGE_SCROLL_SPEED=9;Y.actionMap={"yt-share-panel-reset-action":"onReset_"};return Y};
_.r(ux,_.Z);_.z=ux.prototype;_.z.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.z.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.I(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.I(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.z.onReset_=function(){if(_.I(this.hostElement).querySelector("#list")){var Y=_.I(this.hostElement).querySelector("#list");var S=_.I(this.hostElement).querySelector("#list");var P=S.offsetLeft,u=S.offsetParent;u||_.V__(S)!="fixed"||(u=_.Ey(S).documentElement);if(u){if(_.j5&&!OVo(58)){var W=_.zLt(u);P+=W.left}else Number(_.z8Y)>=8&&!(Number(_.z8Y)>=9)&&(W=_.zLt(u),P-=W.left);S=_.uF_(u)?u.clientWidth-(P+S.offsetWidth):P}else S=P;Osj(Y,S);this.updateScrollButtons_()}};
_.z.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.z.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.z.onScrollWheel_=function(Y){Y.stopPropagation();Y.preventDefault();var S=eMZ(_.I(this.hostElement).querySelector("#list"));Y=Math.abs(Y.deltaX)>Math.abs(Y.deltaY)?Y.deltaX:Y.deltaY;Osj(_.I(this.hostElement).querySelector("#list"),S+Y);this.updateScrollButtons_()};
_.z.smoothScrollByOnePage_=function(Y){var S=_.I(this.hostElement).querySelector("#list"),P=(Math.floor(S.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,u=eMZ(S),W=P*(Y?1:-1),m=this.PAGE_SCROLL_SPEED,J=this.updateScrollButtons_.bind(this),c=0,C;(function b(){c+=m;C=c/P*2;Osj(S,u+W*(C<1?C*C:-C*C+4*C-2));c<P?window.requestAnimationFrame(b):J()})()};
_.z.updateScrollButtons_=function(){var Y=eMZ(_.I(this.hostElement).querySelector("#list")),S=_.I(this.hostElement).querySelector("#list").scrollWidth-_.I(this.hostElement).querySelector("#list").clientWidth;_.I(this.hostElement).querySelector("#scroll-button-back").hidden=Y<=0;_.I(this.hostElement).querySelector("#scroll-button-forward").hidden=Y>=S};
ux.prototype.onScrollWheel_=ux.prototype.onScrollWheel_;ux.prototype.onDataChanged_=ux.prototype.onDataChanged_;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ux.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],ux.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(j5I.YtBindingExpressionsBehavior),_.k("design:type",Object)],ux.prototype,"ytBindingExpressionsBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ux.prototype,"data",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ux.prototype,"onDataChanged_",null);_.Q([_.WZ("wheel"),_.k("design:type",Function),_.k("design:paramtypes",[WheelEvent]),_.k("design:returntype")],ux.prototype,"onScrollWheel_",null);
ux=_.Q([_.r0({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],ux);
_.A(ux,"yt-third-party-share-target-section-renderer",function(){if(Tao===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;bGu===void 0&&(bGu=document.createElement("template"));var u=bGu;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Tao=Y}Y=Tao;return Y},{mode:2});var W7=function(){return _.Z.apply(this,arguments)||this};
_.r(W7,_.Z);W7.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],W7.prototype,"data",void 0);W7=_.Q([_.r0({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],W7);
_.A(W7,"yt-third-party-network-section-renderer",function(){if(WyB===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;ucu===void 0&&(ucu=document.createElement("template"));var u=ucu;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);WyB=Y}Y=WyB;return Y},{mode:2});_.AL(_.AI(function(Y){return _.R("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.R("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.R(_.rv,{data:function(){return Y.data().firstPartyItems}},{listItemViewModel:_.TC})))},"Uf"),"first-party-network-section-view-model",{props:{data:_.wm}});var KyZ=_.Q0(["data:image/svg+xml;charset=UTF-8;base64,",""]),zi=function(){var Y=_.Z.apply(this,arguments)||this;Y.screenLayer=7;Y.qrCodeEnabled=_.f("web_enable_sharing_qr_code");Y.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return Y};
_.r(zi,_.Z);_.z=zi.prototype;_.z.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"}}}};
_.z.attached=function(){this.JSC$17697_scroller&&(this.JSC$17697_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17697_scroller.attached&&typeof this.JSC$17697_scroller.attached==="function"&&this.JSC$17697_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.z.onDataChanged=function(){var Y=this,S;(S=this.data)!=null&&S.contents&&(this.hostElement.setAttribute("links-only","true"),_.eV(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.ky(this,function(){_.ms(Y.hostElement,"yt-refit");Y.focusSharePanelHeader()}))};
_.z.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.z.handleSetTimestamp=function(Y){var S=this.shortUrl();Y.isSet&&(S=_.Eg(S,"t",Y.timestamp));this.maybeRenderQrCode(S)};
_.z.shortUrl=function(){var Y,S=(Y=this.data)==null?void 0:Y.contents;if(S)for(Y=0;Y<S.length;Y++){var P=void 0,u=void 0;if((P=S[Y])==null?0:(u=P.thirdPartyNetworkSection)==null?0:u.copyLinkContainer){var W=u=P=void 0;return(W=_.g((P=S[Y])==null?void 0:(u=P.thirdPartyNetworkSection)==null?void 0:u.copyLinkContainer,Ymu))==null?void 0:W.shortUrl}}};
_.z.maybeRenderQrCode=function(Y){var S=this,P,u,W,m,J,c,C,x,b;return _.B(function(T){if(T.nextAddress==1){P=_.I(S.hostElement).querySelector("#qr-code");if(!S.qrCodeEnabled||!Y)return P&&(P.style.display="none"),T.return();u=_.kKa(_.E().resolve(_.WF),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});W=document.createElement("div");return typeof u==="function"?(u(W),T.jumpTo(2)):_.q(T,u,3)}T.nextAddress!=2&&(m=T.yieldResult,m(W));C=(J=W)==null?void 0:(c=J.firstChild)==null?void 0:c.firstChild;
x=document.createElement("img");b=_.qD(KyZ,btoa(C.outerHTML));x.onload=function(){var K={canvas:P,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:x},G=new G45;LuI(G,Y);we_(G,!1,pe_(G));var v=G.modules,a=Object.assign({},FII,K);v=structuredClone(v);K=v.length;var w,F=(w=a.canvas)!=null?w:document.createElement("canvas");w=a.cellSize;G=a.logo;var U,V=(U=a.logoSize)!=null?U:Math.floor(K/4);K%2!==V%2&&V++;var M=a.logoPadding,zJ=a.backgroundColor;U=K*w;var O=
a.width,ca=0;O&&(ca=a.padding,ca=Math.ceil(ca*U/(O-ca*2)),F.style.width=O+"px",F.style.height=O+"px");F.width!==U+ca*2&&(F.width=U+ca*2);F.height!==U+ca*2&&(F.height=U+ca*2);U=F.getContext("2d");a.autoClear&&U.clearRect(0,0,F.width,F.height);U.fillStyle=zJ;U.beginPath();U.roundRect(0,0,F.width,F.height,a.borderRadius);U.fill();U.save();U.translate(ca,ca);if(G)for(F=Math.floor(K-V)/2-M,M=Math.floor(K+V)/2+M,zJ=F;zJ<M;zJ++)for(O=F;O<M;O++)v[zJ][O]=!1;for(F=0;F<K;F++)for(M=0;M<K;M++)(F<7&&M<7||F<7&&
M>=K-7||F>=K-7&&M<7)&&(v[F][M]=!1);var hu;F=(hu=a.markerColor)!=null?hu:a.color;sW1(U,0,0,w,F);sW1(U,w*(K-7),0,w,F);sW1(U,0,w*(K-7),w,F);switch(a.cellStyle){case 0:hu=v;v=hu.length;F=a.cellSize;U.beginPath();for(M=0;M<v;M++)for(zJ=0;zJ<v;zJ++)hu[M][zJ]&&U.rect(M*F,zJ*F,F,F);U.fillStyle=a.color;U.fill();break;case 1:hu=v;v=hu.length;F=a.cellSize;M=F*a.relativeCircleSize;U.fillStyle=a.color;U.beginPath();for(a=0;a<v;a++)for(zJ=0;zJ<v;zJ++)hu[a][zJ]&&(U.beginPath(),U.ellipse((a+.5)*F,(zJ+.5)*F,M/2,M/
2,0,0,2*Math.PI),U.fill());U.fill();break;case 2:hu=v;v=hu.length;F=a.cellSize;U.fillStyle=a.color;a=[[1,1],[-1,1],[-1,-1],[1,-1]];U.beginPath();for(M=0;M<v;M++)for(zJ=0;zJ<v;zJ++)if(hu[M][zJ])U.roundRect(M*F,zJ*F,F,F,F/2),M+1<v&&hu[M+1][zJ]&&U.rect(M*F+F/2,zJ*F,F,F),zJ+1<v&&hu[M][zJ+1]&&U.rect(M*F,zJ*F+F/2,F,F);else{O=M*F+F/2;ca=zJ*F+F/2;for(var ah=0;ah<4;ah++){var va=_.n(a[ah]),yX=va.next().value;va=va.next().value;M+yX>=0&&M+yX<v&&zJ+va>=0&&zJ+va<v&&hu[M+yX][zJ]&&hu[M][zJ+va]&&hu[M+yX][zJ+va]&&
(yX=ah*Math.PI/2,va=F/2,U.moveTo(O+va*Math.cos(yX),ca+va*Math.sin(yX)),U.arc(O,ca,F/2,yX,yX+Math.PI/2,!1),U.lineTo(O+va*(Math.cos(yX)-Math.sin(yX)),ca+va*(Math.cos(yX)+Math.sin(yX))),U.lineTo(O+va*Math.cos(yX),ca+va*Math.sin(yX)))}}U.fill()}G&&U.drawImage(G,(K-V)*w/2,(K-V)*w/2,V*w,V*w);U.restore();P.style.removeProperty("display")};
x.src=_.mp(b);_.Yt(T)})};
_.z.hasCommunityPostRenderer=function(){var Y,S,P,u;return!!((Y=this.data)==null?0:(S=Y.header)==null?0:(P=S.sharePanelHeaderRenderer)==null?0:(u=P.communityPost)==null?0:u.communityPostSectionRenderer)};
_.z.onTapClose=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.z.getScreenLayer=function(){return this.screenLayer};
_.z.logSharePanelPage=function(){if(!_.f("enable_share_panel_navigation_logging_fix_on_web")){var Y;if((Y=this.data)!=null&&Y.trackingParams){Y=this.data.trackingParams;var S=this.parentClickTrackingParams;S=S?_.Re(S):void 0;var P=_.BF();_.Ow(P,21760,S,{layer:7,parentLayer:0});P.graftServerVe(Y,void 0,7);_.Na().dispatch(_.WT({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
zi.prototype.onDataChanged=zi.prototype.onDataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],zi.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],zi.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],zi.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],zi.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],zi.prototype,"data",void 0);_.Q([_.X({value:_.Td("SBOX_INAPPROPRIATE_CANCEL")}),_.k("design:type",String)],zi.prototype,"closeButtonAriaLabel",void 0);_.Q([_.nc("yt-share-panel-header-renderer"),_.k("design:type",HTMLElement)],zi.prototype,"header",void 0);_.Q([_.X({selector:function(Y){return Y.share.parentClickTrackingParams}}),
_.k("design:type",String)],zi.prototype,"parentClickTrackingParams",void 0);_.Q([_.X(),_.k("design:type",Object)],zi.prototype,"qrCodeEnabled",void 0);_.Q([_.nc("#scroller"),_.k("design:type",Object)],zi.prototype,"JSC$17697_scroller",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zi.prototype,"onDataChanged",null);zi=_.Q([_.t({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],zi);
_.A(zi,"ytd-unified-share-panel-renderer",function(){if(kVY!==void 0)return kVY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return kVY=Y},{mode:1});var ER5;var mK=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernModal=_.f("kevlar_sign_in_modal_modernization");return Y};
_.r(mK,_.Z);mK.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
mK.prototype.computeShouldHideOldButtons=function(){var Y;return!((Y=this.data)==null?0:Y.button)};
_.y6.Object.defineProperties(mK.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var Y,S;if(this.modernModal&&((Y=this.data)==null?0:(S=Y.button)==null?0:S.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var P,u;return(P=this.data)==null?void 0:(u=P.button)==null?void 0:u.buttonRenderer}}});
_.Q([_.X(),_.k("design:type",Object)],mK.prototype,"data",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],mK.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],mK.prototype,"modernModal",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],mK.prototype,"buttonRendererData",null);
mK=_.Q([_.t({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],mK);
_.A(mK,"ytd-modal-with-title-and-button-renderer",function(){if(ER5!==void 0)return ER5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ER5=Y},{mode:1});var f7o;var nL=function(){return _.Z.apply(this,arguments)||this};
_.r(nL,_.Z);nL.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("page-changed",this.page))};
nL.prototype.pageChangedForBinding=nL.prototype.pageChangedForBinding;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],nL.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],nL.prototype,"page",void 0);_.Q([_.zY("page"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nL.prototype,"pageChangedForBinding",null);
nL=_.Q([_.t({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],nL);
_.A(nL,"ytd-account-item-section-header-renderer",function(){if(f7o!==void 0)return f7o;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return f7o=Y},{mode:1});var gR1;var jW=function(){return _.Z.apply(this,arguments)||this};
_.r(jW,_.Z);jW.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"}}}};
jW.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.I3),_.k("design:type",Object)],jW.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],jW.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!1}),_.k("design:type",Function)],jW.prototype,"onAccountItemTap",void 0);
jW=_.Q([_.t({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],jW);
_.A(jW,"ytd-account-item-section-renderer",function(){if(gR1!==void 0)return gR1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return gR1=Y},{mode:1});var $co;var r81;var J1=function(){return _.Z.apply(this,arguments)||this};
_.r(J1,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],J1.prototype,"data",void 0);J1=_.Q([_.t({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],J1);
_.A(J1,"ytd-accounts-dialog-header-renderer",function(){if(r81!==void 0)return r81;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return r81=Y},{mode:1});var Gnd;var B7=function(){return _.Z.apply(this,arguments)||this};
_.r(B7,_.Z);B7.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],B7.prototype,"data",void 0);B7=_.Q([_.t({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],B7);
_.A(B7,"ytd-google-account-header-renderer",function(){if(Gnd!==void 0)return Gnd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Gnd=Y},{mode:1});var c7=function(){return _.Z.apply(this,arguments)||this};
_.r(c7,_.Z);c7.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"}}}};
c7.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("page-changed",this.page))};
c7.prototype.pageChangedForBinding=c7.prototype.pageChangedForBinding;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],c7.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],c7.prototype,"page",void 0);
_.Q([_.zY("page"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c7.prototype,"pageChangedForBinding",null);c7=_.Q([_.t({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],c7);
_.eD()(c7,"ytd-account-section-list-renderer",function(){if($co===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);$co=Y}Y=$co;return Y},{allowedProps:["data"],
mode:1});var hKZ;var CL=function(){var Y=_.Z.apply(this,arguments)||this;Y.enableHandlesAccountMenuSwitcher=_.f("enable_handles_account_menu_switcher");return Y};
_.r(CL,_.Z);CL.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
CL.prototype.dataChanged=CL.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],CL.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CL.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.Q([_.nc("#avatar"),_.k("design:type",Object)],CL.prototype,"avatar",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CL.prototype,"dataChanged",null);CL=_.Q([_.t({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],CL);
_.eD()(CL,"ytd-active-account-header-renderer",function(){if(hKZ===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);hKZ=Y}Y=hKZ;return Y},{allowedProps:["data"],
mode:1});var vRd;var DcI;var qW=function(){return _.Z.apply(this,arguments)||this};
_.r(qW,_.Z);qW.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qW.prototype.onBackTap=function(){_.ms(this.hostElement,"yt-menu-back-tapped")};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],qW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],qW.prototype,"data",void 0);qW=_.Q([_.t({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],qW);
_.eD()(qW,"ytd-simple-menu-header-renderer",function(){if(DcI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);DcI=Y}Y=DcI;return Y},{allowedProps:["data"],
mode:2});var I7c;var RX=function(){return _.Z.apply(this,arguments)||this};
_.r(RX,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],RX.prototype,"data",void 0);RX=_.Q([_.t({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],RX);
_.A(RX,"ytd-comment-video-thumbnail-header-renderer",function(){if(I7c!==void 0)return I7c;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return I7c=Y},{mode:1});var a71;var x3=function(){return _.Z.apply(this,arguments)||this};
_.r(x3,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],x3.prototype,"data",void 0);x3=_.Q([_.t({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],x3);
_.A(x3,"ytd-abuse-type-selector-renderer",function(){if(a71!==void 0)return a71;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return a71=Y},{mode:1});var Lyj;var bx=function(){return _.Z.apply(this,arguments)||this};
_.r(bx,_.Z);bx.prototype.attached=function(){var Y=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){Y.additionalContextInput.focusTextInput()})};
bx.prototype.handleAdditionalContextChanged=function(){var Y=this;_.pc(this,"ytd-report-channel-additional-context-update",function(){Y.ytdReduxBehavior.dispatch(_.WT({type:"ADDITIONAL_CONTEXT_UPDATED",payload:Y.additionalContext}))},300)};
bx.prototype.updateAdditionalContextFromBinding=function(Y){this.additionalContext=Y.detail.value};
bx.prototype.handleAdditionalContextChanged=bx.prototype.handleAdditionalContextChanged;_.Q([_.p(_.Gn),_.k("design:type",Object)],bx.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",String)],bx.prototype,"additionalContext",void 0);_.Q([_.X({selector:function(Y){return Y.reportChannelAbuse.additionalContext}}),
_.k("design:type",String)],bx.prototype,"additionalContextRedux",void 0);_.Q([_.X(),_.k("design:type",Object)],bx.prototype,"data",void 0);_.Q([_.nc("yt-text-input-form-field-renderer"),_.k("design:type",Object)],bx.prototype,"additionalContextInput",void 0);_.Q([_.zY("additionalContext"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bx.prototype,"handleAdditionalContextChanged",null);
bx=_.Q([_.t({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],bx);
_.A(bx,"ytd-report-channel-modal-additional-context-renderer",function(){if(Lyj!==void 0)return Lyj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Lyj=Y},{mode:1});var wfc;var Ti=function(){var Y=_.Z.apply(this,arguments)||this;Y.nextButtonDisabled=null;Y.submitEndpoint=null;Y.navigationEndpoint=null;Y.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return Y};
_.r(Ti,_.Z);_.z=Ti.prototype;_.z.computeNextButtonData=function(Y,S,P){var u={};S&&(u.navigationEndpoint=S);P&&(u.serviceEndpoint=P);Y&&Y.buttonRenderer&&_.RY.extend(u,Y.buttonRenderer);return u};
_.z.handleReportChannelModalDisableNextButtonAction=function(Y){this.setNextButtonIsDisabled(Y)};
_.z.handleReportFormEndpointUpdateAction=function(Y){this.setNextButtonIsDisabled(!!Y.disableSubmitButton);this.resetEndpointData();Y.submitEndpoint?this.submitEndpoint=Y.submitEndpoint:Y.submitNavigationEndpoint&&(this.navigationEndpoint=Y.submitNavigationEndpoint)};
_.z.handleSignalActionSubmitForm=function(){var Y,S=Object.keys(((Y=this.reportChannelAbuseForm)==null?void 0:Y.selectedVideoIds)||{}),P;Y=((P=this.reportChannelAbuseForm)==null?void 0:P.additionalContext)||"";var u;P=((u=this.reportChannelAbuseForm)==null?void 0:u.impersonatedChannelUrl)||"";var W;if((W=this.data)==null?0:W.submitEndpoint){S={impersonated_channel_url:P,text:Y,video_ids:S};var m;_.E().resolve(_.uY).resolveCommand((m=this.data)==null?void 0:m.submitEndpoint,{form:Object.assign({},
S,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.z.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.z.onYtServiceRequestError=function(Y){this.setNextButtonIsDisabled(!1);_.hQ(this.hostElement,Y.detail.error.message)};
_.z.setNextButtonIsDisabled=function(Y){this.set("data.nextButton.buttonRenderer.isDisabled",Y)};
_.z.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Ti.prototype.onYtServiceRequestError=Ti.prototype.onYtServiceRequestError;Ti.prototype.onYtServiceRequestCompleted=Ti.prototype.onYtServiceRequestCompleted;_.Q([_.X(),_.k("design:type",Object)],Ti.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Ti.prototype,"nextButtonDisabled",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Ti.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Ti.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ti.prototype,"submitEndpoint",void 0);_.Q([_.X(),_.k("design:type",Object)],Ti.prototype,"navigationEndpoint",void 0);_.Q([_.X({selector:function(Y){return Y.reportChannelAbuse}}),
_.k("design:type",Object)],Ti.prototype,"reportChannelAbuseForm",void 0);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Ti.prototype,"onYtServiceRequestCompleted",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Ti.prototype,"onYtServiceRequestError",null);
Ti=_.Q([_.t({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Ti);
_.A(Ti,"ytd-report-channel-modal-footer-renderer",function(){if(wfc!==void 0)return wfc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return wfc=Y},{mode:1});var pfu;var KL=function(){var Y=_.Z.apply(this,arguments)||this;Y.boundOnTapDismissButton=function(){Y.closePopup()};
return Y};
_.r(KL,_.Z);KL.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
KL.prototype.handleDataChanged=function(){_.NR(this.hostElement)};
KL.prototype.closePopup=function(){_.nb(this.hostElement,"yt-close-popup-action")};
KL.prototype.handleDataChanged=KL.prototype.handleDataChanged;_.Q([_.X(),_.k("design:type",Object)],KL.prototype,"boundOnTapDismissButton",void 0);_.Q([_.X(),_.k("design:type",Object)],KL.prototype,"data",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],KL.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],KL.prototype,"handleDataChanged",null);KL=_.Q([_.t({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],KL);
_.A(KL,"ytd-report-channel-modal-header-renderer",function(){if(pfu!==void 0)return pfu;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return pfu=Y},{mode:1});var FyY;var Ez=function(){var Y=_.Z.apply(this,arguments)||this;Y.autoValidate=!1;Y.invalid=!1;Y.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return Y};
_.r(Ez,_.Z);_.z=Ez.prototype;_.z.attached=function(){var Y=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){Y.channelUrlInput.focusTextInput()})};
_.z.disableNextButton=function(Y){_.nb(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[Y])};
_.z.handleImpersonatedChannelUrlChanged=function(){var Y=this;this.disableNextButton(!0);this.invalid=!1;_.pc(this,"ytd-report-channel-impersonated-channel-update",function(){var S=Y.impersonatedChannelUrl.trim();Y.ytdReduxBehavior.dispatch(_.WT({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:S}));var P;((P=Y.data)==null?0:P.submitEndpoint)&&S&&(_.f("web_ytd_report_channel_modal_impersonation_renderer_command_resolver_ks")?_.Bu(Y.hostElement,[Y.data.submitEndpoint,{impersonated_channel_url:S}]):
_.E().resolve(_.uY).resolveCommand(Y.data.submitEndpoint,{form:{impersonated_channel_url:S,element:Y.hostElement}}))},500)};
_.z.handleModifyReportFormCommand=function(Y){this.invalid=this.get("modifyReportFormCommand.action",Y)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.z.updateInvalidFromBinding=function(Y){this.invalid=Y.detail.value};
_.z.updateImpersonatedChannelUrlFromBinding=function(Y){this.impersonatedChannelUrl=Y.detail.value};
Ez.prototype.handleImpersonatedChannelUrlChanged=Ez.prototype.handleImpersonatedChannelUrlChanged;_.Q([_.p(_.Gn),_.k("design:type",Object)],Ez.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Ez.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ez.prototype,"autoValidate",void 0);_.Q([_.X(),_.k("design:type",Object)],Ez.prototype,"invalid",void 0);
_.Q([_.X(),_.k("design:type",String)],Ez.prototype,"impersonatedChannelUrl",void 0);_.Q([_.X({selector:function(Y){return Y.reportChannelAbuse.impersonatedChannelUrl}}),
_.k("design:type",String)],Ez.prototype,"impersonatedChannelUrlRedux",void 0);_.Q([_.X(),_.k("design:type",Object)],Ez.prototype,"data",void 0);_.Q([_.nc("#text-input"),_.k("design:type",Object)],Ez.prototype,"channelUrlInput",void 0);_.Q([_.zY("impersonatedChannelUrl"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ez.prototype,"handleImpersonatedChannelUrlChanged",null);
Ez=_.Q([_.t({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Ez);
_.A(Ez,"ytd-report-channel-modal-impersonation-renderer",function(){if(FyY!==void 0)return FyY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return FyY=Y},{mode:1});var s5_;var dc1;var fL=function(){return _.Z.apply(this,arguments)||this};
_.r(fL,_.Z);fL.prototype.onCheckboxToggled=function(Y){var S,P,u=(P=_.g((S=this.data)==null?void 0:S.video,_.qmJ))==null?void 0:P.videoId;u&&this.ytdReduxBehavior.dispatch(Y.target.checked?_.WT({type:"VIDEO_SELECTED",payload:u}):_.WT({type:"VIDEO_UNSELECTED",payload:u}))};
fL.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.y6.Object.defineProperties(fL.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var Y,S=(Y=this.data)==null?void 0:Y.video;if(!S)return{};var P;Y=(P=_.g(S,_.qmJ))==null?void 0:P.navigationEndpoint;if(!Y)return S;_.g(Y==null?void 0:Y.commandMetadata,_.Yo)&&(_.g(Y.commandMetadata,_.Yo).ignoreNavigation=!0);return S}}});
_.Q([_.X({reflectToAttribute:!0,selector:function(Y,S){return S in Y.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.k("design:type",Boolean)],fL.prototype,"checked",void 0);_.Q([_.X(),_.k("design:type",Object)],fL.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],fL.prototype,"video",null);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],fL.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.Gn),_.k("design:type",Object)],fL.prototype,"ytdReduxBehavior",void 0);fL=_.Q([_.t({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],fL);
_.A(fL,"ytd-selectable-video-renderer",function(){if(dc1!==void 0)return dc1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return dc1=Y},{mode:1});var gO=function(){var Y=_.Z.apply(this,arguments)||this;Y.monitorScroll=!0;return Y};
_.r(gO,_.Z);gO.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],gO.prototype,"data",void 0);gO=_.Q([_.t({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],gO);
_.A(gO,"ytd-selectable-video-list-renderer",function(){if(s5_!==void 0)return s5_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return s5_=Y},{mode:1});var l7Z;_.$s("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var $3=function(){return _.Z.apply(this,arguments)||this};
_.r($3,_.Z);$3.prototype.onChange=function(Y){if(Y=_.oK(Y).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.f("kevlar_command_handler_migration_killswitch"))_.cu(this.hostElement,Y,this.hostElement);else{Y=_.n(Y);for(var S=Y.next();!S.done;S=Y.next())this.ytComponentBehavior.resolveCommand(S.value)}};
$3.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
$3.prototype.updateDataToggledFromBinding=function(Y){this.set("data.toggled",Y.detail.value)};
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],$3.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$3.prototype,"data",void 0);_.Q([_.X({computed:"isEnabled(data)"}),_.k("design:type",Boolean)],$3.prototype,"enabled",void 0);$3=_.Q([_.t({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],$3);
_.A($3,"ytd-toggle-item-renderer",function(){if(l7Z!==void 0)return l7Z;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return l7Z=Y},{mode:1});var Xf5;var ZG6;var iGB;var rO=function(){var Y=_.Z.apply(this,arguments)||this;Y.setVisible=!1;Y.boundOnSubmitButtonClick=function(){Y.onSubmitButtonClick()};
Y.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return Y};
_.r(rO,_.Z);rO.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}}}}}};
rO.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
rO.prototype.onSubmitButtonClick=function(){var Y;((Y=this.data)==null?0:Y.submitEndpoint)&&!_.f("enable_ytc_refunds_submit_form_signal_action")&&_.Bu(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
rO.prototype.handleSignalActionSubmitForm=function(){var Y;((Y=this.data)==null?0:Y.submitEndpoint)&&_.Bu(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.y6.Object.defineProperties(rO.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.hiddenByDefault)&&!this.setVisible}}});
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],rO.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],rO.prototype,"setVisible",void 0);_.Q([_.X(),_.k("design:type",Object)],rO.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],rO.prototype,"surveyFeedbackData",void 0);_.Q([_.X(),_.k("design:type",Object)],rO.prototype,"boundOnSubmitButtonClick",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data","setVisible"),_.k("design:type",Object),_.k("design:paramtypes",[])],rO.prototype,"visibilityHidden",null);rO=_.Q([_.r0({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],rO);
_.A(rO,"yt-flow-footer-renderer",function(){if(iGB===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;ZG6===void 0&&(ZG6=document.createElement("template"));var u=ZG6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);iGB=Y}Y=iGB;return Y},{mode:2});var Gi=function(){return _.Z.apply(this,arguments)||this};
_.r(Gi,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Gi.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Gi.prototype,"data",void 0);_.Q([_.X({selector:function(Y){return Y.ypc.surveyFeedbackData}}),
_.k("design:type",Object)],Gi.prototype,"surveyFeedbackData",void 0);Gi=_.Q([_.t({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Gi);
_.A(Gi,"ytd-flow-footer-renderer",function(){if(Xf5!==void 0)return Xf5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Xf5=Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var oR1;var t4X;var h1=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return Y};
_.r(h1,_.Z);_.z=h1.prototype;_.z.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.rL("multiPageMenuSectionItems")}}};
_.z.handleHideEnclosingAction_=function(Y){if(this.data&&this.data.items)for(var S=0;S<this.data.items.length;S++){var P=this.data.items[S].notificationRenderer;if(P&&P.notificationId==Y.hideEnclosingAction.notificationId){this.splice("data.items",S,1);_.nb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.z.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.eV(this.hostElement,"hidden",!0)};
_.z.updateMenu_=function(Y){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&Y&&!Y.doNotRefreshInbox){Y=this.data.continuations;for(var S=0;S<Y.length;S++)if(Y[S].invalidationContinuationData){var P=void 0;var u=(P=Y[S].invalidationContinuationData)==null?void 0:P.continuation;break}Y=_.RY.clone(this.data.continuationUpdateEndpoint||null);Y.continuation=u;Y.click_tracking_params=this.data.trackingParams;_.Bu(this.hostElement,[Y])}};
_.z.onServiceRequestCompleted_=function(Y,S){if(this.data&&(Y=S.actions)){S=0;for(var P=Y.length;S<P;S++){var u=_.g(Y[S],_.flJ);if(!u)break;if((u.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||u.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&u.continuationItems&&this.data.items){var W=this.data.items.length-1;this.data.items[W].continuationItemRenderer&&this.splice.apply(this,["data.items",W,1].concat(u.continuationItems))}}}};
h1.prototype.onServiceRequestCompleted_=h1.prototype.onServiceRequestCompleted_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],h1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],h1.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],h1.prototype,"data",void 0);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],h1.prototype,"onServiceRequestCompleted_",null);h1=_.Q([_.r0({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],h1);
_.eD()(h1,"yt-multi-page-menu-section-renderer",function(){if(t4X===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;oR1===void 0&&(oR1=document.createElement("template"));var u=oR1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);t4X=Y}Y=t4X;return Y},{allowedProps:["data"],
mode:2});var A8_;var Ucj;var v7=function(){return _.Z.apply(this,arguments)||this};
_.r(v7,_.Z);v7.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.y6.Object.defineProperties(v7.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.progress)==null?0:this.data.progress*100}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],v7.prototype,"data",void 0);_.Q([_.d("data.progress"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],v7.prototype,"showProgressBar",null);
_.Q([_.d("data.progress"),_.k("design:type",Number),_.k("design:paramtypes",[])],v7.prototype,"progress",null);v7=_.Q([_.r0({is:"yt-flow-header-renderer",disableElementRegistration:!0})],v7);
_.A(v7,"yt-flow-header-renderer",function(){if(Ucj===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;A8_===void 0&&(A8_=document.createElement("template"));var u=A8_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Ucj=Y}Y=Ucj;return Y},{mode:2});var Q5Z;var knZ;var Dy=function(){return _.Z.apply(this,arguments)||this};
_.r(Dy,_.Z);Dy.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Dy.prototype,"data",void 0);Dy=_.Q([_.r0({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Dy);
_.A(Dy,"yt-post-confirmation-flow-step-renderer",function(){if(knZ===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;Q5Z===void 0&&(Q5Z=document.createElement("template"));var u=Q5Z;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);knZ=Y}Y=knZ;return Y},{mode:2});var M45;var y8d;var IX=function(){return _.Z.apply(this,arguments)||this};
_.r(IX,_.Z);
IX.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],IX.prototype,"data",void 0);IX=_.Q([_.r0({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],IX);
_.A(IX,"yt-refund-confirmation-flow-step-renderer",function(){if(y8d===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;M45===void 0&&(M45=document.createElement("template"));var u=M45;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);y8d=Y}Y=y8d;return Y},{mode:2});_.Sr(hB5);_.Sr(voB);var DTc=_.EP({avatarViewModel:_.rH});_.Sr(I9c);var a9Z=_.EP({commentInteractionViewModel:voB,sharedSubscriptionViewModel:I9c,buttonViewModel:_.aq});_.Sr(LsY);_.Sr(wuo);_.Sr(puB);_.Sr(FsY);_.Sr(sAI);var dTo=_.EP({profileIdentityInfoViewModel:_.O7I,profileInfoViewModel:sAI});_.Sr(l9I);_.Vz(l9I,"yt-profile-card-view-model",{propNames:["data"]});var aX=function(){var Y=_.Z.apply(this,arguments)||this;Y.enableFocusFix=_.f("music_web_enable_focus_on_setting_menu_fix")&&_.Z4("IS_MOBILE_WEB",!1);Y.covered=!1;Y.hideMenu=!1;Y.isCommentNotificationOnProfileCard=!1;Y.scrolledByTouch=!1;Y.disableBackdropFilter=_.f("web_disable_backdrop_filter");Y.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return Y};
_.r(aX,_.Z);_.z=aX.prototype;
_.z.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"}}}};
_.z.ready=function(){var Y=this;this.JSC$17807_containerElement.addEventListener("scroll",function(){Y.ytRendererBehavior.markDirty()})};
_.z.attributeChanged=function(Y,S){Y==="menu-style"&&_.nb(this.hostElement,"yt-multi-page-menu-closed-action",[S])};
_.z.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.up(this,this.focusOnStampFinished))};
_.z.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.up(this,this.focusOnStampFinished))};
_.z.reset=function(){this.closeJobId&&(_.wc.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.z.focusOnStampFinished=function(Y){Y.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.up(this,this.focusOnStampFinished)),this.doFocus())};
_.z.doFocus=function(){var Y=_.FA6(this.sectionsElement);Y.length&&Y[0].focus()};
_.z.computeMenuStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.z.computeIsCommentNotificationOnProfileCard=function(Y){return _.f("enable_profile_cards_on_comments")&&Y.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.z.computeHideMenu=function(Y,S){return Y||!(!S||!S.showLoadingSpinner)};
_.z.onPopupClosed=function(){this.isPopUpOpen=!1;_.nb(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.z.onPopupOpened=function(Y,S){this.isPopUpOpen=!0;S.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.ms(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.WT({type:"CHANNEL_REPORT_RESET"})))};
_.z.onYtNavigate=function(Y,S){this.shouldCloseOnNavigateEvent(S.endpoint)&&_.nb(this.hostElement,"yt-close-all-popups-action")};
_.z.handleEndpoint=function(Y){Y=_.g(Y,_.GN);!this.isCommentNotificationOnProfileCard&&Y&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17807_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.z.handleActions=function(Y){for(var S=0,P=Y.length;S<P;S++){var u=_.g(Y[S],uUI);u&&this.handleGetMultiPageMenuAction(u);(u=_.g(Y[S],_.flJ))&&this.handleAppendContinuationItemsAction(u)}};
_.z.onServiceRequestSentOrCompleted=function(Y,S){Y.detail&&Y.detail.endpoint&&this.handleEndpoint(Y.detail.endpoint);S.actions&&this.handleActions(S.actions)};
_.z.handleGetMultiPageMenuAction=function(Y){var S=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.I(this.submenuElement).appendChild(S);(Y=Y.menu.multiPageMenuRenderer)&&this.logSubmenu(Y);S.data=Y;S.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.z.handleAppendContinuationItemsAction=function(Y){if(this.data&&Y.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&Y.continuationItems&&this.data.sections){var S=this.data.sections.length-1;this.data.sections[S].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),S--);if(this.data.sections[S].multiPageMenuNotificationSectionRenderer&&Y.continuationItems){Y=_.n(Y==null?void 0:Y.continuationItems);for(var P=Y.next();!P.done;P=Y.next())if(P=P.value,_.g(P,aWZ)){var u=
void 0,W=void 0,m=void 0,J=void 0,c=void 0;((u=this)==null?0:(W=u.data)==null?0:(m=W.sections)==null?0:(J=m[S])==null?0:(c=J.multiPageMenuNotificationSectionRenderer)==null?0:c.items)&&this.push("data.sections."+S+".multiPageMenuNotificationSectionRenderer.items",P)}else if(_.g(P,_.m4t)||_.g(P,_.Ws))this.push("data.sections",P),S++}}};
_.z.logSubmenu=function(Y){if(!_.f("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var S=this.ytRendererBehavior.getScreenLayer(),P=_.pM(S),u=_.wf(S);if((Y=Y.trackingParams)&&P&&u){var W=_.Re(Y);_.f("combine_ve_grafts")?_.BF().graftServerVe(Y,u,S):_.t6(P,u,W)}}};
_.z.emptySubmenuContainer=function(){for(var Y=_.I(this.submenuElement);Y.firstChild;)Y.removeChild(Y.firstChild)};
_.z.onMenuBackTap=function(Y){_.ms(this.hostElement,"yt-submenu-closed");Y.stopPropagation()};
_.z.onSubmenuClosed=function(Y){_.oK(Y)!==this.hostElement&&(this.covered=!1,_.ms(this.hostElement,"yt-refit"),Y.stopPropagation())};
_.z.onRetrieveLocation=function(Y,S){S.hasComments&&(S.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),Y.stopPropagation())};
_.z.shouldCloseOnNavigateEvent=function(Y){if(!Y)return!0;if(_.g(Y,_.PvU)||_.g(Y,_.uKm)||_.g(Y,_.SqU)||_.g(Y,_.tp))return!1;var S;return((S=_.g(Y==null?void 0:Y.commandMetadata,_.Yo))==null?0:S.ignoreNavigation)?!1:!0};
_.z.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.z.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.z.refitAfterRender=function(){var Y=this;_.ky(this,function(){_.ms(Y.hostElement,"yt-refit")})};
aX.prototype.refitAfterRender=aX.prototype.refitAfterRender;aX.prototype.onRetrieveLocation=aX.prototype.onRetrieveLocation;aX.prototype.onSubmenuClosed=aX.prototype.onSubmenuClosed;aX.prototype.onMenuBackTap=aX.prototype.onMenuBackTap;aX.prototype.onServiceRequestSentOrCompleted=aX.prototype.onServiceRequestSentOrCompleted;aX.prototype.onYtNavigate=aX.prototype.onYtNavigate;aX.prototype.onPopupOpened=aX.prototype.onPopupOpened;aX.prototype.onPopupClosed=aX.prototype.onPopupClosed;
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],aX.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],aX.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],aX.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],aX.prototype,"enableFocusFix",void 0);_.Q([_.X(),_.k("design:type",Object)],aX.prototype,"covered",void 0);_.Q([_.X({computed:"computeHideMenu(covered, data)"}),_.k("design:type",Object)],aX.prototype,"hideMenu",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.k("design:type",String)],aX.prototype,"menuStyle",void 0);
_.Q([_.X({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.k("design:type",Object)],aX.prototype,"isCommentNotificationOnProfileCard",void 0);_.Q([_.X(),_.k("design:type",Boolean)],aX.prototype,"isPopUpOpen",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],aX.prototype,"scrolledByTouch",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],aX.prototype,"disableBackdropFilter",void 0);
_.Q([_.nc("#sections"),_.k("design:type",HTMLElement)],aX.prototype,"sectionsElement",void 0);_.Q([_.nc("#spinner"),_.k("design:type",HTMLElement)],aX.prototype,"spinnerElement",void 0);_.Q([_.nc("#header"),_.k("design:type",HTMLElement)],aX.prototype,"headerElement",void 0);_.Q([_.nc("#container"),_.k("design:type",HTMLElement)],aX.prototype,"JSC$17807_containerElement",void 0);_.Q([_.nc("#submenu"),_.k("design:type",HTMLElement)],aX.prototype,"submenuElement",void 0);
_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aX.prototype,"onPopupClosed",null);_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],aX.prototype,"onPopupOpened",null);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],aX.prototype,"onYtNavigate",null);
_.Q([_.WZ("yt-service-request-completed"),_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],aX.prototype,"onServiceRequestSentOrCompleted",null);_.Q([_.WZ("yt-menu-back-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],aX.prototype,"onMenuBackTap",null);
_.Q([_.WZ("yt-submenu-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],aX.prototype,"onSubmenuClosed",null);_.Q([_.WZ("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],aX.prototype,"onRetrieveLocation",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aX.prototype,"refitAfterRender",null);
aX=_.Q([_.t({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],aX);
_.A(aX,"ytd-multi-page-menu-renderer",function(){if(vRd!==void 0)return vRd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return vRd=Y},{mode:1});var Na1;var LL=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return Y};
_.r(LL,_.Z);_.z=LL.prototype;_.z.created=function(){this.showTooltips=!0};
_.z.computeAccessibility_=function(Y){return this.get("accessibility.accessibilityData",Y)||null};
_.z.onTap=function(){var Y=_.jR(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(Y&&Y.length===1&&Y[0])_.nb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var S;if((S=this.data)==null?0:S.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var P;((P=this.data)==null?0:P.menuRequest)&&_.Bu(this.hostElement,[this.data.menuRequest])}}};
_.z.handleTopbarMenuClosedAction=function(Y){var S,P;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(Y)===((S=this.data)==null?void 0:(P=S.icon)==null?void 0:P.iconType)&&this.toggleIconState(!1)};
_.z.toggleIconState=function(Y){_.f("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=Y)};
_.z.handleUpdateTopbarAvatarAction=function(Y){var S;Y=(S=_.g(Y,HrB))==null?void 0:S.avatarUrl;var P,u;S=(P=this.data)==null?void 0:(u=P.avatar)==null?void 0:u.thumbnails;Y&&S&&(P={thumbnails:[Object.assign({},S[0],{url:Y})]},this.set("data.avatar",P))};
_.y6.Object.defineProperties(LL.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.I(this.hostElement).querySelector("#button")}}});
LL.prototype.onTap=LL.prototype.onTap;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],LL.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],LL.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.p(_.cWJ.YtButtonBehavior),_.k("design:type",Object)],LL.prototype,"ytButtonBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],LL.prototype,"data",void 0);
_.Q([_.nc("yt-icon-button#button"),_.k("design:type",Object)],LL.prototype,"iconButton",void 0);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LL.prototype,"onTap",null);LL=_.Q([_.t({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],LL);
_.A(LL,"ytd-topbar-menu-button-renderer",function(){if(Na1!==void 0)return Na1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Na1=Y},{mode:1});var HG1;var wO=function(){return _.Z.apply(this,arguments)||this};
_.r(wO,_.Z);wO.prototype.getSelected=function(){return this.reasons.selected};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],wO.prototype,"data",void 0);_.Q([_.nc("#reasons"),_.k("design:type",Object)],wO.prototype,"reasons",void 0);wO=_.Q([_.t({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],wO);
_.A(wO,"ytd-ad-feedback-content",function(){if(HG1!==void 0)return HG1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return HG1=Y},{mode:1});var V4I;var pL=function(){return _.Z.apply(this,arguments)||this};
_.r(pL,_.Z);_.z=pL.prototype;_.z.onPopupOpened=function(){_.nb(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.z.computeConfirmButton=function(Y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:Y.confirmLabel}};
_.z.computeCancelButton=function(Y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:Y.cancelLabel}};
_.z.onConfirmTap=function(){var Y=this.content.getSelected();Y!==void 0&&(Y=this.data.reasons[Y].endpoint)&&(_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}}),_.nb(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.z.sendFeedbackSubmitToastAction=function(){var Y;(Y=this.data)!=null&&Y.completionMessage&&_.nb(this.hostElement,"yt-open-popup-action",[_.Vc(this.data.completionMessage),this])};
_.z.onCancelTap=function(){_.nb(this.hostElement,"yt-close-popup-action")};
pL.prototype.onPopupOpened=pL.prototype.onPopupOpened;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],pL.prototype,"data",void 0);_.Q([_.nc("#content"),_.k("design:type",Object)],pL.prototype,"content",void 0);_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pL.prototype,"onPopupOpened",null);
pL=_.Q([_.t({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],pL);
_.A(pL,"ytd-ad-feedback-renderer",function(){if(V4I!==void 0)return V4I;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return V4I=Y},{mode:1});var eKX;var Fl=function(){return _.Z.apply(this,arguments)||this};
_.r(Fl,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Fl.prototype,"data",void 0);Fl=_.Q([_.t({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Fl);
_.A(Fl,"ytd-ad-info-dialog-content",function(){if(eKX!==void 0)return eKX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return eKX=Y},{mode:1});var OGo;var sz=function(){return _.Z.apply(this,arguments)||this};
_.r(sz,_.Z);sz.prototype.computeConfirmButton=function(Y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:Y.confirmLabel}};
sz.prototype.onConfirmTap=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
sz.prototype.computeShouldShowTitle=function(){var Y;return!((Y=this.data)==null||!Y.title)};
sz.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.E().resolve(_.uY).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
sz.prototype.onPopupClosed=sz.prototype.onPopupClosed;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],sz.prototype,"data",void 0);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],sz.prototype,"onPopupClosed",null);sz=_.Q([_.t({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],sz);
_.A(sz,"ytd-ad-info-dialog-renderer",function(){if(OGo!==void 0)return OGo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return OGo=Y},{mode:1});var YOo;var dO=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionButtonClass="action-button";Y.dismissButtonId="dismiss-button";Y.dialogDismiss=!0;return Y};
_.r(dO,_.Z);_.z=dO.prototype;_.z.computeInPlayer=function(Y){return(Y==null?void 0:Y.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.z.computedLogo=function(){var Y,S;return this.isDarkTheme()?(Y=this.data)==null?void 0:Y.logoDark:(S=this.data)==null?void 0:S.logo};
_.z.computedHeaderImage=function(){var Y,S;return this.isDarkTheme()?(Y=this.data)==null?void 0:Y.headerImageDark:(S=this.data)==null?void 0:S.headerImage};
_.z.computeLogoIconId=function(){var Y,S,P,u=(Y=this.computedLogo())==null?void 0:(S=Y.sources)==null?void 0:(P=S[0])==null?void 0:P.height;return u&&u%31===0?"logo-icon-with-padding":"logo-icon"};
_.z.computeLogoIconHeight=function(){var Y,S,P,u=(Y=this.computedLogo())==null?void 0:(S=Y.sources)==null?void 0:(P=S[0])==null?void 0:P.height;return u&&u%31===0?"31":"24"};
_.z.onPopupClosed=function(){_.E().resolve(_.yM).dispose()};
_.z.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.z.onShow=function(){this.inPlayer&&_.cq(6)};
_.z.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var Y=0;Y<this.data.impressionEndpoints.length;Y++){var S=_.g(this.data.impressionEndpoints[Y],_.hL);S&&this.ytComponentBehavior.resolveCommand(S)}};
_.z.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.nb(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.y6.Object.defineProperties(dO.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!((Y=this.data)==null||!Y.headerImageDark)&&!((S=this.data)==null||!S.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.secondaryButton)}}});
dO.prototype.onPopupClosed=dO.prototype.onPopupClosed;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],dO.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.vU.YtVisibilityBehavior),_.k("design:type",Object)],dO.prototype,"ytVisibilityBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],dO.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],dO.prototype,"actionButtonClass",void 0);_.Q([_.X(),_.k("design:type",Object)],dO.prototype,"dismissButtonId",void 0);_.Q([_.X(),_.k("design:type",Object)],dO.prototype,"dialogDismiss",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],dO.prototype,"hasHeaderImage",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],dO.prototype,"hasPremiumButton",null);
_.Q([_.X({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.k("design:type",Boolean)],dO.prototype,"inPlayer",void 0);_.Q([_.nc("#dismiss-button"),_.k("design:type",HTMLElement)],dO.prototype,"dismissButton",void 0);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],dO.prototype,"onPopupClosed",null);dO=_.Q([_.t({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],dO);
_.A(dO,"ytd-enforcement-message-view-model",function(){if(YOo!==void 0)return YOo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return YOo=Y},{mode:1});var SOc;var PnI;var lx=function(){var Y=_.Z.apply(this,arguments)||this;Y.TEST_ONLY={immediateValidation:function(){Y.immediateValidation()},
onValidationResponse:function(S){Y.onValidationResponse(S)},
onGenerateHandleFromNameResponse:function(S){Y.onGenerateHandleFromNameResponse(S)}};
return Y};
_.r(lx,_.Z);_.z=lx.prototype;_.z.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.z.validate=function(){this.immediateValidation()};
_.z.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.z.setHandleInputValue=function(Y){this.handleDir=this.getHandleDir(Y);this.handleInput.value=Y;this.validationState={status:"PENDING"};this.immediateValidation()};
_.z.getHandleDir=function(Y){var S=Y===""&&!1;return(S=_.GZf.test.call(_.GZf,Y))?"rtl":"ltr"};
_.z.onDataChanged=function(){var Y,S;this.handleDir=this.getHandleDir((S=(Y=this.data)==null?void 0:Y.handle)!=null?S:"");var P;this.validationState=((P=this.data)==null?0:P.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var u;((u=this.data)==null?0:u.validateOnInit)&&this.immediateValidation()};
_.z.stopPropagation=function(Y){Y.stopPropagation()};
_.z.onInput=function(){var Y;this.handleDir=this.getHandleDir((Y=this.handleInput.value)!=null?Y:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.z.onFocusout=function(Y){this.handleInput.contains(Y.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.z.delayedValidation=function(){var Y,S;this.debouncedValidation((S=(Y=this.data)==null?void 0:Y.validationDelayMs)!=null?S:1E3)};
_.z.immediateValidation=function(){this.debouncedValidation(0)};
_.z.debouncedValidation=function(Y){var S=this;_.pc(this,"debouncedValidation",function(){var P,u=S.staticValidation((P=S.handleInput.value)!=null?P:"");if(u!==void 0)S.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:u};else{var W;if((W=S.data)!=null&&W.validateChannelHandleCommand){S.validationState={status:"LOADING"};var m;S.ytComponentBehavior.resolveCommand(S.data.validateChannelHandleCommand,{form:{handle:(m=S.handleInput.value)!=null?m:""},commandController:{onSuccess:function(J,
c){S.onValidationResponse(c)},
onServerError:function(J,c){S.onValidationServerError(c)}}})}else S.handleUnexpectedValidationError(new _.$2("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",S.data))}},Y)};
_.z.staticValidation=function(Y){var S;if(((S=this.data)==null?void 0:S.channelHandleStaticValidationParams)!==void 0){S=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(Y)&&S.validValueRegexpErrorMessage!==void 0)return S.validValueRegexpErrorMessage;if(S.minLength!==void 0&&Y.length<S.minLength&&S.minLengthErrorMessage!==void 0)return S.minLengthErrorMessage;if(S.maxLength!==void 0&&Y.length>S.maxLength&&S.maxLengthErrorMessage!==void 0)return S.maxLengthErrorMessage}};
_.z.onValidationResponse=function(Y){var S=_.g(Y.result,Vpu);S===void 0?this.handleUnexpectedValidationError(new _.$2("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",Y)):this.handleValidationResultRenderer(S)};
_.z.onValidationServerError=function(Y){this.handleUnexpectedValidationError(new _.$2("ValidateChannelHandle request failed.",Y))};
_.z.handleValidationResultRenderer=function(Y){if(Y.handle===void 0)this.handleUnexpectedValidationError(new _.$2("ChannelHandleValidationResultRenderer does not contain handle.",Y));else if(Y.handle===this.handleInput.value)switch(Y.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:Y.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:Y.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.$2("Unrecognized ChannelHandleValidationResult",Y));break;default:_.O6(Y.result)}};
_.z.handleUnexpectedValidationError=function(Y){var S;this.validationState={status:"UNKNOWN",handle:(S=this.handleInput.value)!=null?S:""};_.sf(Y)};
_.z.stopEventPropagation=function(Y){Y.stopPropagation()};
_.z.updateHandleOnChannelNameInputChange=function(Y){if(!this.wasEdited){var S,P;this.debouncedGenerateHandleFromName(Y,(P=(S=this.data)==null?void 0:S.validationDelayMs)!=null?P:1E3)}};
_.z.debouncedGenerateHandleFromName=function(Y,S){var P=this;_.pc(this,"debouncedGenerateHandleFromName",function(){var u;(u=P.data)!=null&&u.validateChannelHandleCommand?P.ytComponentBehavior.resolveCommand(P.data.validateChannelHandleCommand,{form:{name:Y},commandController:{onSuccess:function(W,m){P.onGenerateHandleFromNameResponse(m)},
onServerError:function(W,m){_.sf(new _.$2("Error calling GenerateHandleFromName",m))}}}):_.sf(new _.$2("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",P.data))},S)};
_.z.onGenerateHandleFromNameResponse=function(Y){this.wasEdited||((Y=_.g(Y.result,e71))?this.setHandleInputValue(Y.handle):_.sf(new _.$2("Invalid results when generate handle from name")))};
_.y6.Object.defineProperties(lx.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var Y;if(Y=this.validationState)Y=this.validationState,Y=Y.status==="OK"||Y.status==="UNKNOWN";if(Y)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var Y;if(((Y=this.validationState)==null?void 0:Y.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var Y,S=(Y=this.channelHandleEntity)==null?void 0:Y.handleEdit;this.handleDir=this.getHandleDir(S!=null?S:"");return S}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var Y,S;if(((Y=this.data)==null?void 0:(S=Y.channelHandleStaticValidationParams)==null?void 0:S.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
lx.prototype.stopEventPropagation=lx.prototype.stopEventPropagation;lx.prototype.onDataChanged=lx.prototype.onDataChanged;lx.prototype.applyHandleEdit=lx.prototype.applyHandleEdit;lx.prototype.onValueChanged=lx.prototype.onValueChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],lx.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],lx.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],lx.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],lx.prototype,"wasEdited",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],lx.prototype,"handleDir",void 0);_.Q([_.nc("#handle-input"),_.k("design:type",Object)],lx.prototype,"handleInput",void 0);_.Q([_.X(),_.d("validationState"),_.k("design:type",Object),_.k("design:paramtypes",[])],lx.prototype,"value",null);
_.Q([_.zY("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lx.prototype,"onValueChanged",null);_.Q([_.d("validationState"),_.k("design:type",Object),_.k("design:paramtypes",[])],lx.prototype,"errorIndicator",null);_.Q([_.X({reflectToAttribute:!0}),_.d("errorIndicator"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],lx.prototype,"borderErrorIndicator",null);
_.Q([_.X({selectorArgs:["data.channelHandleEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"channelHandle",S)}}),
_.k("design:type",Object)],lx.prototype,"channelHandleEntity",void 0);_.Q([_.d("channelHandleEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],lx.prototype,"handleEdit",null);_.Q([_.zY("handleEdit"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lx.prototype,"applyHandleEdit",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lx.prototype,"onDataChanged",null);
_.Q([_.d("data.channelHandleStaticValidationParams.validValueRegexp"),_.k("design:type",Object),_.k("design:paramtypes",[])],lx.prototype,"validValueRegexp",null);_.Q([_.WZ("yt-service-request-sent"),_.WZ("yt-service-request-completed"),_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],lx.prototype,"stopEventPropagation",null);lx=_.Q([_.t({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],lx);
_.A(lx,"ytd-channel-handle-input-renderer",function(){if(PnI!==void 0)return PnI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return PnI=Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var Xl=function(){var Y=_.Z.apply(this,arguments)||this;Y.data=null;Y.errorMessage=null;Y.isLoading=!0;Y.hideContainer=!1;Y.enableNewChannelCreationOnIdForAll=_.f("enable_new_channel_creation_for_id4all");Y.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};Y.testOnly={setErrorMessage:function(S){Y.resetErrorState();
Y.setErrorState(S)}};
return Y};
_.r(Xl,_.Z);_.z=Xl.prototype;_.z.created=function(){this.logScreenVe()};
_.z.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")};
_.z.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var Y;((Y=this.zeroStepErrorMessageEntity)==null?0:Y.value)&&this.set("errorMessage",_.kW(this.zeroStepErrorMessageEntity.value))};
_.z.onCreateTap=function(){var Y=this;if(this.data&&this.data.channelCreationEndpoint){var S,P;if(!((S=this.data.createChannelButton)==null?0:(P=S.buttonRenderer)==null?0:P.isDisabled)){var u;if((u=this.nameInput)!=null&&u.value){this.setLoadingState();var W,m;S=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(W=this.handleInput)==null?void 0:W.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((m=this.handleInput)==null?void 0:m.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:S,commandController:{onSuccess:function(J,c){Y.onChannelCreationEndpointSuccess(c);Y.obakeImageSource&&_.L_("channelCreatedWithObakeImage",{imageSourceType:Y.obakeImageSource})},
onServerError:function(){Y.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.z.endpointRequiresServiceRequestAction=function(Y){return!!_.g(Y,_.aB)||!!_.g(Y,HrB)};
_.z.isNavigateAction=function(Y){var S;return!!_.g(Y,_.FS)||!!_.g((S=_.g(Y,SmX))==null?void 0:S.command,_.FS)};
_.z.isPlaylistAction=function(Y){return!!_.g(Y,_.hf)||!!_.g(Y,_.LP)};
_.z.onChannelCreationEndpointSuccess=function(Y){if(Y.createChannelError){var S;this.setErrorState((S=Y.createChannelError)==null?void 0:S.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.f("enable_secondary_channel_creation_form")&&Y.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(Y.navigationEndpoint);if(Y.actions){S=_.n(Y.actions);for(var P=S.next();!P.done;P=S.next())if(P=P.value,this.endpointRequiresServiceRequestAction(P)&&this.ytComponentBehavior.resolveCommand(P),
this.isNavigateAction(P)){var u=void 0;P=_.g((u=_.g(P,SmX))==null?void 0:u.command,_.FS);u=void 0;this.isPlaylistAction((u=P)==null?void 0:u.endpoint)&&(_.nb(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),u=void 0,this.ytComponentBehavior.resolveCommand((u=P)==null?void 0:u.endpoint))}}Y.actions&&Y.actions.some(function(W){var m;return _.g(W,_.FS)||_.g((m=_.g(W,SmX))==null?void 0:m.command,_.FS)})||_.nb(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.z.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.z.onCancelTap=function(){var Y,S,P;if(!((Y=this.data)==null?0:(S=Y.cancelButton)==null?0:(P=S.buttonRenderer)==null?0:P.isDisabled)){var u,W,m;Y=(u=this.data)==null?void 0:(W=u.cancelButton)==null?void 0:(m=W.buttonRenderer)==null?void 0:m.command;if(!Y||!_.g(Y,_.$kJ)){var J;this.nameInput&&((J=this.data)==null?0:J.name)&&(this.nameInput.value=this.data.name);var c;this.handleInput&&((c=this.data)==null?0:c.channelHandleInput)&&(this.handleInput.data=_.g(this.data.channelHandleInput,Oro));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.z.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.z.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.z.onClearProfilePhotoTap=function(){var Y,S,P;((Y=this.data)==null?0:(S=Y.clearProfilePhotoButton)==null?0:(P=S.buttonRenderer)==null?0:P.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.z.onEditAvatarTap=function(){var Y,S,P;((Y=this.data)==null?0:(S=Y.editAvatarButton)==null?0:(P=S.buttonRenderer)==null?0:P.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.z.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)};
_.z.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var Y;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((Y=this.data)==null?0:Y.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.z.setErrorState=function(Y){this.resetErrorState();if(Y)this.set("errorMessage",Y);else{var S;if((S=this.zeroStepErrorMessageEntity)==null?0:S.value)this.set("errorMessage",_.kW(this.zeroStepErrorMessageEntity.value));else{var P;((P=this.data)==null?0:P.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.z.fetchImageBlobWithAlr=function(Y,S){S=S===void 0?5:S;var P=this,u,W,m,J,c;return _.B(function(C){switch(C.nextAddress){case 1:return _.q(C,fetch(Y,{method:"GET",mode:"cors"}),2);case 2:u=C.yieldResult;if(u.ok){C.jumpTo(3);break}if(S===0)throw Error();W=P.addJitter(Math.pow(2,5-S));return _.q(C,new Promise(function(x){setTimeout(x,W*1E3)}),4);
case 4:return C.return(P.fetchImageBlobWithAlr(Y,S-1));case 3:if(!u.headers.get("content-type").split(";").some(function(x){return x.trim()==="text/plain"})){C.jumpTo(5);
break}m=P;J=m.fetchImageBlobWithAlr;return _.q(C,u.text(),6);case 6:return C.return(J.call(m,C.yieldResult,S-1));case 5:return _.q(C,u.blob(),7);case 7:return c=C.yieldResult,C.return(c)}})};
_.z.addJitter=function(Y){var S=Y*.3*Math.random();Math.random()>.5&&(S*=-1);return Y+S};
_.z.openProfilePicturePicker=function(){var Y=this,S,P,u,W,m;return _.B(function(J){if(J.nextAddress==1){S=Y.data.scottyUploadUrl;if(!S)return J.return();P=document.documentElement.hasAttribute("dark");u=document.body.style.colorScheme;P&&(document.body.style.colorScheme="dark");W=u01(WXY(PWI(Nxo(P?"dark":"light")),function(c){var C,x,b,T,K;return _.B(function(G){if(G.nextAddress==1)return C=_.Eg(fpj(new fn(c.photoUrl,!1)).build(),"alr","yes"),Y.obakeImageSource=Y.pictureChangeSourceToObakeImageSourceType(c.photoSource),
_.ND(G,2),Y.setLoadingState(),_.q(G,Y.fetchImageBlobWithAlr(C),4);if(G.nextAddress!=2)return x=G.yieldResult,b=new FileReader,b.addEventListener("load",function(){var v,a,w,F,U,V;return _.B(function(M){if(M.nextAddress==1){if(x.size>15728640)return Y.setErrorState((v=Y.data)==null?void 0:v.imageSizeErrorMessage),_.sf(Error("jl")),M.return();if(!b.result)return Y.setErrorState((a=Y.data)==null?void 0:a.genericImageLoadErrorMessage),_.sf(Error("kl")),M.return();w=b.result;_.ND(M,2);return _.q(M,XuB(x,
S),4)}if(M.nextAddress!=2)return F=M.yieldResult,Y.handleImageUpdatedAction(w,F),Y.resetErrorState(),_.tc(M,0);U=_.O4(M);Y.setErrorState((V=Y.data)==null?void 0:V.uploadErrorMessage);if(U instanceof Error)_.p_(U);else{var zJ=new _.$2(JSON.stringify(U));_.p_(zJ)}_.Yt(M)})}),b.readAsDataURL(x),_.tc(G,0);
T=_.O4(G);Y.setErrorState((K=Y.data)==null?void 0:K.genericImageLoadErrorMessage);T instanceof Error?_.p_(T):_.F_(new _.$2(JSON.stringify(T)));_.Yt(G)})}),function(){Y.hideContainer=!1;
document.body.style.colorScheme=u});
_.ND(J,2);return _.q(J,W.openPicker(),4)}if(J.nextAddress!=2)return _.tc(J,0);_.O4(J);Y.setErrorState((m=Y.data)==null?void 0:m.selectImageErrorMessage);_.Yt(J)})};
_.z.pictureChangeSourceToObakeImageSourceType=function(Y){switch(Y){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.z.logScreenVe=function(){_.Ow(_.BF(),124448)};
_.z.graftServerVe=function(){var Y=_.wf(),S,P,u=(S=this.data)==null?void 0:(P=S.loggingDirectives)==null?void 0:P.trackingParams;u&&Y&&(this.channelCreationFormVe=_.BF().graftServerVe(u,Y),Y={visualElement:this.channelCreationFormVe},_.jC().reportShown(Y))};
_.z.isNameChanged=function(Y){var S;return((S=this.data)==null?void 0:S.name)!==Y};
_.z.isHandleChanged=function(Y){var S,P=_.g((S=this.data)==null?void 0:S.channelHandleInput,Oro);return P&&Y?P.handle!==Y:!1};
_.z.handleImageUpdatedAction=function(Y,S){this.hideContainer=!1;this.previewDataUrl=Y;this.encryptedBlobId=S};
_.z.handleImageSelectionErrorAction=function(Y){this.hideContainer=!1;this.setErrorState(Y)};
_.z.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.z.showContainer=function(){this.hideContainer=!1};
_.z.maybeWipeZeroStepErrorMessage=function(){var Y,S=(Y=this.data)==null?void 0:Y.zeroStepErrorMessageEntityKey,P;S&&((P=this.zeroStepErrorMessageEntity)==null?0:P.value)&&this.ytdReduxBehavior.dispatch(_.qE("stringEntity",S,{key:S,value:""}))};
_.y6.Object.defineProperties(Xl.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var Y;return((Y=this.photoThumbnail)==null?0:Y.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.descriptionInfo}}});
Xl.prototype.dataChanged=Xl.prototype.dataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Xl.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Xl.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Xl.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Xl.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Xl.prototype,"errorMessage",void 0);
_.Q([_.X(),_.k("design:type",Object)],Xl.prototype,"isLoading",void 0);_.Q([_.X(),_.k("design:type",String)],Xl.prototype,"previewDataUrl",void 0);_.Q([_.X(),_.k("design:type",Number)],Xl.prototype,"obakeImageSource",void 0);_.Q([_.X(),_.k("design:type",Object)],Xl.prototype,"hideContainer",void 0);_.Q([_.nc("#title-input"),_.k("design:type",Object)],Xl.prototype,"nameInput",void 0);_.Q([_.nc("#handle-input"),_.k("design:type",Object)],Xl.prototype,"handleInput",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],Xl.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.Q([_.X({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.mkE}),_.k("design:type",Object)],Xl.prototype,"zeroStepErrorMessageEntity",void 0);_.Q([_.d("data","data.isDefaultProfilePhoto","previewDataUrl"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xl.prototype,"photoThumbnail",null);
_.Q([_.d("data","data.isDefaultProfilePhoto","photoThumbnail"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xl.prototype,"userSetPhotoThumbnailUrl",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Xl.prototype,"hideProfilePhotoButtonLayer",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Xl.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.Q([_.cZ("data","zeroStepErrorMessageEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xl.prototype,"dataChanged",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.descriptionInfo","zeroStepErrorMessageEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xl.prototype,"description",null);Xl=_.Q([_.t({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Xl);
_.A(Xl,"ytd-channel-creation-dialog-renderer",function(){if(SOc!==void 0)return SOc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return SOc=Y},{mode:1});var u41;var Zy=function(){var Y=_.Z.apply(this,arguments)||this;Y.isLoading=!1;Y.isDisabled=!1;return Y};
_.r(Zy,_.Z);Zy.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Zy.prototype.updateDisabled=function(){var Y;this.isDisabled=this.isLoading||((Y=this.handleInput)==null?void 0:Y.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Zy.prototype.onSaveClick=function(){var Y=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var S;((S=this.data)==null?void 0:S.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 P;if((P=Y.data)==null?0:P.nextEndpoint){var u;Y.ytComponentBehavior.resolveCommand((u=Y.data)==null?void 0:u.nextEndpoint)}else Y.isLoading=
!1,Y.closeDialog()},
onServerError:function(){Y.isLoading=!1;Y.handleInput.validate();var P;Y.errorMessage=(P=Y.data)==null?void 0:P.errorMessage}}}))}};
Zy.prototype.closeDialog=function(){_.nb(this.hostElement,"yt-close-popup-action",[this.is])};
Zy.prototype.updateDisabled=Zy.prototype.updateDisabled;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Zy.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Zy.prototype,"data",void 0);_.Q([_.nc("#handle-input"),_.k("design:type",Object)],Zy.prototype,"handleInput",void 0);_.Q([_.zY("isLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zy.prototype,"updateDisabled",null);
Zy=_.Q([_.t({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Zy);
_.A(Zy,"ytd-channel-handle-edit-dialog-renderer",function(){if(u41!==void 0)return u41;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return u41=Y},{mode:1});var WEI;var ix=function(){return _.Z.apply(this,arguments)||this};
_.r(ix,_.Z);ix.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ix.prototype,"data",void 0);ix=_.Q([_.t({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],ix);
_.A(ix,"ytd-channel-switcher-footer-renderer",function(){if(WEI!==void 0)return WEI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return WEI=Y},{mode:1});var z4d;var mHI;var oX=function(){return _.Z.apply(this,arguments)||this};
_.r(oX,_.Z);oX.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
oX.prototype.onIronChange=oX.prototype.onIronChange;_.Q([_.X(),_.k("design:type",Object)],oX.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!1}),_.k("design:type",Function)],oX.prototype,"onDontAskAgainChanged",void 0);_.Q([_.nc("#checkbox"),_.k("design:type",Object)],oX.prototype,"checkbox",void 0);_.Q([_.WZ("iron-change"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oX.prototype,"onIronChange",null);
oX=_.Q([_.t({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],oX);
_.A(oX,"ytd-identity-prompt-footer-renderer",function(){if(mHI!==void 0)return mHI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return mHI=Y},{mode:1});var t1=function(){var Y=_.Z.apply(this,arguments)||this;Y.dontAskAgain=!1;Y.showPopup=!1;Y.boundDontAskAgainChanged=function(S){Y.dontAskAgainChanged(S)};
Y.boundOnAccountItemTap=function(S){Y.onAccountItemTap(S)};
return Y};
_.r(t1,_.Z);_.z=t1.prototype;
_.z.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]]"}}}}}};
_.z.ready=function(){var Y=this;_.I(this.hostElement).querySelector("#container").addEventListener("scroll",function(){Y.ytRendererBehavior.markDirty()})};
_.z.dontAskAgainChanged=function(Y){this.dontAskAgain=Y};
_.z.onAccountItemTap=function(Y){if(Y){var S={};this.dontAskAgain&&(S={dont_ask_again:this.dontAskAgain});_.aK(Y,S)}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.z.redirectOnlyAccount=function(Y){Y.sections&&Y.sections.length>0&&(Y=_.g(Y.sections[0],_.TVi),(Y==null?0:Y.contents)&&(Y==null?void 0:Y.contents.length)<=1?(Y=_.MP(window.location.href),(Y==null?0:Y.next)&&_.ny9(Y.next)?_.aK(Y.next):_.aK("/")):this.showPopup=!0)};
t1.prototype.dataChanged=t1.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],t1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],t1.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!1}),_.k("design:type",Object)],t1.prototype,"dontAskAgain",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],t1.prototype,"showPopup",void 0);_.Q([_.X({reflectToAttribute:!1}),_.k("design:type",Object)],t1.prototype,"boundDontAskAgainChanged",void 0);_.Q([_.X({reflectToAttribute:!1}),_.k("design:type",Object)],t1.prototype,"boundOnAccountItemTap",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],t1.prototype,"dataChanged",null);
t1=_.Q([_.t({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],t1);
_.A(t1,"ytd-channel-switcher-renderer",function(){if(z4d!==void 0)return z4d;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return z4d=Y},{mode:1});var nxI;var A1=function(){return _.Z.apply(this,arguments)||this};
_.r(A1,_.Z);_.y6.Object.defineProperties(A1.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.Q([_.X(),_.k("design:type",Object)],A1.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],A1.prototype,"steps",null);A1=_.Q([_.t({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],A1);
_.A(A1,"ytd-channel-transfer-stepper-renderer",function(){if(nxI!==void 0)return nxI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return nxI=Y},{mode:1});var jrc;var Uz=function(){var Y=_.Z.apply(this,arguments)||this;Y.data=null;Y.isError=!1;Y.isLoading=!1;return Y};
_.r(Uz,_.Z);_.z=Uz.prototype;_.z.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"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.z.computeProfileName=function(Y){return Y?Y.givenNameValue+" "+Y.familyNameValue:""};
_.z.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)};
_.z.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)};
Uz.prototype.onYtServiceRequestError=Uz.prototype.onYtServiceRequestError;Uz.prototype.onYtServiceRequestSent=Uz.prototype.onYtServiceRequestSent;Uz.prototype.dataChanged=Uz.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Uz.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Uz.prototype,"data",void 0);
_.Q([_.X({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.k("design:type",String)],Uz.prototype,"profileName",void 0);_.Q([_.X(),_.k("design:type",Object)],Uz.prototype,"isError",void 0);_.Q([_.X(),_.k("design:type",Object)],Uz.prototype,"isLoading",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uz.prototype,"dataChanged",null);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],Uz.prototype,"onYtServiceRequestSent",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],Uz.prototype,"onYtServiceRequestError",null);Uz=_.Q([_.t({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Uz);
_.A(Uz,"ytd-channel-warm-welcome-cont-renderer",function(){if(jrc!==void 0)return jrc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return jrc=Y},{mode:1});var Jd1;var Q_=function(){var Y=_.Z.apply(this,arguments)||this;Y.data=null;return Y};
_.r(Q_,_.Z);Q_.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Q_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Q_.prototype,"data",void 0);Q_=_.Q([_.t({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Q_);
_.A(Q_,"ytd-channel-warm-welcome-renderer",function(){if(Jd1!==void 0)return Jd1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Jd1=Y},{mode:1});var BB1;var k3=function(){return _.Z.apply(this,arguments)||this};
_.r(k3,_.Z);_.y6.Object.defineProperties(k3.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.authorThumbnail)||{}}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],k3.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],k3.prototype,"thumbnailDetails",null);k3=_.Q([_.t({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],k3);
_.A(k3,"ytd-comment-preview-renderer",function(){if(BB1!==void 0)return BB1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return BB1=Y},{mode:1});var cdo;var MW=function(){return _.Z.apply(this,arguments)||this};
_.r(MW,_.Z);MW.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.y6.Object.defineProperties(MW.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.submitButton}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],MW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],MW.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],MW.prototype,"submitButton",null);MW=_.Q([_.t({is:"ytd-notice-renderer",disableElementRegistration:!0})],MW);
_.A(MW,"ytd-notice-renderer",function(){if(cdo!==void 0)return cdo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return cdo=Y},{mode:1});var CnI;var y_=function(){return _.Z.apply(this,arguments)||this};
_.r(y_,_.Z);y_.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],y_.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],y_.prototype,"data",void 0);y_=_.Q([_.t({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],y_);
_.A(y_,"ytd-preview-comment-dialog-content",function(){if(CnI!==void 0)return CnI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return CnI=Y},{mode:1});var qOI;var NW=function(){return _.Z.apply(this,arguments)||this};
_.r(NW,_.Z);NW.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
NW.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],NW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],NW.prototype,"data",void 0);NW=_.Q([_.t({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],NW);
_.A(NW,"ytd-preview-comment-dialog-renderer",function(){if(qOI!==void 0)return qOI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return qOI=Y},{mode:1});var R4I;var xHX=_.f("web_button_rework")&&_.Z4("BUTTON_REWORK")||_.f("web_button_rework_with_live"),H7=function(){var Y=_.Z.apply(this,arguments)||this;Y.selectedAmountIndex=1;Y.privacyCheckboxValue=!1;Y.useAmsterdamStyle=xHX;Y.amountPlaceholderIndex=-1;return Y};
_.r(H7,_.Z);_.z=H7.prototype;_.z.onAmountClick=function(Y){this.selectedAmountIndex=_.I(this.hostElement).querySelector("#amounts").indexForElement(Y.currentTarget)};
_.z.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.nb(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.z.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.nb(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.nb(this.hostElement,"yt-close-popup-action",[this.is]);var Y;(Y=_.Q5())==null||Y.getPlayerPromise().then(function(S){S.pauseVideo()})}};
_.z.donationCallback=function(Y){Y.success?(this.hostElement.hasAttribute("live-chat")&&Y.response&&Y.response.data&&Y.response.data.actions&&_.nb(this.hostElement,"yt-live-chat-open-popup",[Y.response.data.actions[0]]),_.nb(this.hostElement,"yt-close-popup-action",[this.is]),_.nb(this.hostElement,"yt-live-chat-close-buy-flow")):Y.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(Y.errorMessageRenderer)};
_.z.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.I(this.hostElement).querySelector("#custom-amount-input").focus()};
_.z.updateConfirmationDialogTextWithAmount=function(Y){var S=this.getConfirmDialogRuns();S&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(S),"text"],this.getFormattedAmount(Y))};
_.z.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.z.getAmountPlaceholderIndex=function(Y){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=Y.findIndex(function(S){return S.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.z.getFormattedAmount=function(Y){var S;return(new _.iI(4,((S=this.data)==null?void 0:S.currencyCode)||"")).format(Y)};
_.z.isAmountValid=function(Y){if(Y==="")return!1;Y=Number(Y)*1E6;var S=this.get("minAmountMicros",this.data),P=this.get("maxAmountMicros",this.data);return S&&Y<S||P&&Y>P?!1:!0};
_.z.setInputError=function(){this.shouldShowValidationError?_.I(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.I(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.z.setInitialCheckboxValue=function(){var Y;this.privacyCheckboxValue=!((Y=this.data)==null||!Y.privacyCheckboxInitialState)};
_.z.updateCustomAmountInputFromBinding=function(Y){this.customAmountInput=Y.detail.value};
_.z.updatePrivacyCheckboxValueFromBinding=function(Y){this.privacyCheckboxValue=Y.detail.value};
_.y6.Object.defineProperties(H7.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var Y=this,S,P;return((S=this.data)==null?void 0:(P=S.suggestedAmounts)==null?void 0:P.map(function(u,W){return{buttonRenderer:{style:Y.selectedAmountIndex===W?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:u.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var Y=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(Y&&this.amountMicros!==null)return Object.assign({},Y,{ypcGetCartEndpoint:Object.assign({},Y.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("confirmLargeAmount",this.data);if(Y&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),Y}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("donateButton.buttonRenderer",this.data);if(Y)return Object.assign({},Y,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
H7.prototype.setInitialCheckboxValue=H7.prototype.setInitialCheckboxValue;H7.prototype.setInputError=H7.prototype.setInputError;H7.prototype.setFocusOnCustomAmountInput=H7.prototype.setFocusOnCustomAmountInput;_.Q([_.p($Cj),_.k("design:type",Object)],H7.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],H7.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],H7.prototype,"selectedAmountIndex",void 0);_.Q([_.X(),_.k("design:type",String)],H7.prototype,"customAmountInput",void 0);_.Q([_.X(),_.k("design:type",Object)],H7.prototype,"privacyCheckboxValue",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],H7.prototype,"useAmsterdamStyle",void 0);_.Q([_.zY("customAmount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H7.prototype,"setFocusOnCustomAmountInput",null);_.Q([_.d("data","selectedAmountIndex"),_.k("design:type",Array),_.k("design:paramtypes",[])],H7.prototype,"suggestedAmountButtons",null);
_.Q([_.d("data","selectedAmountIndex"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],H7.prototype,"isCustomAmountSelected",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],H7.prototype,"showPrivacyCheckbox",null);_.Q([_.d("data","selectedAmountIndex","customAmount"),_.k("design:type",Object),_.k("design:paramtypes",[])],H7.prototype,"amountMicros",null);
_.Q([_.d("isCustomAmountSelected","customAmountInput"),_.k("design:type",Object),_.k("design:paramtypes",[])],H7.prototype,"customAmount",null);_.Q([_.d("customAmount"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],H7.prototype,"shouldShowValidationError",null);_.Q([_.d("customAmount"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],H7.prototype,"isDonateButtonEnabled",null);
_.Q([_.d("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.k("design:type",Object),_.k("design:paramtypes",[])],H7.prototype,"donateCommand",null);_.Q([_.d("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.k("design:type",Object),_.k("design:paramtypes",[])],H7.prototype,"donateCommandWithConfirmation",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],H7.prototype,"largeDonationThreshold",null);
_.Q([_.d("customAmount","donateCommand","amountMicros"),_.k("design:type",Object),_.k("design:paramtypes",[])],H7.prototype,"confirmLargeAmountCommand",null);_.Q([_.d("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.k("design:type",Object),_.k("design:paramtypes",[])],H7.prototype,"donateButtonRenderer",null);_.Q([_.zY("shouldShowValidationError"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H7.prototype,"setInputError",null);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H7.prototype,"setInitialCheckboxValue",null);H7=_.Q([_.t({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],H7);
_.A(H7,"ytd-donation-amount-picker-renderer",function(){if(R4I!==void 0)return R4I;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n            [[getSimpleString(data.campaignDescription)]]\n          </div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n        [[getSimpleString(data.campaignDescription)]]\n      </div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return R4I=Y},{mode:1});var b$u;var V_=function(){return _.Z.apply(this,arguments)||this};
_.r(V_,_.Z);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],V_.prototype,"ytComponentBehavior",void 0);_.Q([_.X({}),_.k("design:type",Object)],V_.prototype,"data",void 0);V_=_.Q([_.t({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],V_);
_.A(V_,"ytd-donation-post-transaction-content",function(){if(b$u!==void 0)return b$u;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return b$u=Y},{mode:1});var TBo;var eW=function(){return _.Z.apply(this,arguments)||this};
_.r(eW,_.Z);eW.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.Q([_.X({}),_.k("design:type",Object)],eW.prototype,"data",void 0);eW=_.Q([_.t({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],eW);
_.A(eW,"ytd-donation-post-transaction-renderer",function(){if(TBo!==void 0)return TBo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return TBo=Y},{mode:1});var KEY;var Exj;var Oz=function(){return _.Z.apply(this,arguments)||this};
_.r(Oz,_.Z);Oz.prototype.computeIsStreamingProvider=function(Y){return!!Y.isStreamingShelf};
Oz.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Oz.prototype,"data",void 0);_.Q([_.X({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Oz.prototype,"isStreamingProvider",void 0);
Oz=_.Q([_.t({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Oz);
_.A(Oz,"ytd-media-provider-renderer",function(){if(Exj!==void 0)return Exj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Exj=Y},{mode:1});var fFI;var YH=function(){return _.Z.apply(this,arguments)||this};
_.r(YH,_.Z);YH.prototype.observeLightsourcePalette=function(){var Y,S=(Y=this.data)==null?void 0:Y.vibrantsourceColorPaletteData;S&&_.fR(this.hostElement,S)};
YH.prototype.observeLightsourcePalette=YH.prototype.observeLightsourcePalette;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],YH.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],YH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],YH.prototype,"data",void 0);
_.Q([_.zY("data.vibrantsourceColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],YH.prototype,"observeLightsourcePalette",null);YH=_.Q([_.t({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],YH);
_.A(YH,"ytd-streaming-pop-up-dialog",function(){if(fFI!==void 0)return fFI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return fFI=Y},{mode:1});var Sy=function(){return _.Z.apply(this,arguments)||this};
_.r(Sy,_.Z);Sy.prototype.onPopupOpened_=function(){var Y;((Y=this.data)==null?0:Y.serviceEndpoint)&&_.E().resolve(_.uY).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Sy.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Sy.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"}}}}};
Sy.prototype.onPopupOpened_=Sy.prototype.onPopupOpened_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.I3),_.k("design:type",Object)],Sy.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Sy.prototype,"data",void 0);
_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sy.prototype,"onPopupOpened_",null);Sy=_.Q([_.t({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Sy);
_.A(Sy,"ytd-brandconnect-popup-renderer",function(){if(KEY!==void 0)return KEY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return KEY=Y},{mode:1});var gx1;var Pc=function(){return _.Z.apply(this,arguments)||this};
_.r(Pc,_.Z);_.z=Pc.prototype;_.z.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(){for(var Y=0;Y<this.getOptionRenderers().length;Y++)this.notifyPath("data.options."+Y+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+Y+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.z.updateSubmitButton=function(Y){this.set("data.submitButton.buttonRenderer.isDisabled",!Y)};
_.z.computeAlt=function(Y){return _.Ma(Y)};
_.z.onDismissTap=function(){_.nb(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.E().resolve(_.uY).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.z.getOptionRenderers=function(Y){return(Y=Y||this.data)&&Y.options?Y.options.reduce(function(S,P){P.checkboxSurveyOptionRenderer&&S.push(P.checkboxSurveyOptionRenderer);return S},[]):[]};
_.z.onOptionChange=function(Y){var S=this,P=!1;if(Y.detail.checked)for(var u=this.getOptionRenderers().find(function(c){return c.value===Y.detail.value}),W=this.getOptionRenderers(),m=0;m<W.length;m++){var J=W[m];
this.notifyPath("data.options."+m+".checkboxSurveyOptionRenderer.checked");J.checked&&((u==null?0:u.isExclusiveOption)?!J.isExclusiveOption:J.isExclusiveOption)?this.set("data.options."+m+".checkboxSurveyOptionRenderer.checked",!1):J.checked&&(P=!0)}else P=this.getOptionRenderers().some(function(c,C){S.notifyPath("data.options."+C+".checkboxSurveyOptionRenderer.checked");return c.checked});
this.updateSubmitButton(P)};
_.z.onSubmitTap=function(){var Y=this.getOptionRenderers().filter(function(m){return m.checked});
if(Y.length!==0){var S=Y.map(function(m){return m.responseEndpoint});
Y=[];for(var P=1;P<S.length;P++){var u=void 0,W=(u=_.g(S[P],_.La))==null?void 0:u.feedbackToken;W&&Y.push(W)}S=[S[0]];Y.length&&S.push({extra_feedback_tokens:Y});_.Bu(this.hostElement,S);_.nb(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);Y=this.data&&this.data.submitActions||[];if(_.f("kevlar_command_handler_migration_killswitch"))_.cu(this.hostElement,Y,this.hostElement);else for(Y=_.n(Y),S=Y.next();!S.done;S=Y.next())this.ytComponentBehavior.resolveCommand(S.value)}};
Pc.prototype.onOptionChange=Pc.prototype.onOptionChange;Pc.prototype.dataChanged=Pc.prototype.dataChanged;_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],Pc.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Pc.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.Q([_.p(to6),_.k("design:type",Object)],Pc.prototype,"ytdHatsSurveyBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Pc.prototype,"data",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pc.prototype,"dataChanged",null);
_.Q([_.WZ("ytd-checkbox-survey-option-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Pc.prototype,"onOptionChange",null);Pc=_.Q([_.t({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Pc);
_.A(Pc,"ytd-checkbox-survey-renderer",function(){if(gx1!==void 0)return gx1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return gx1=Y},{mode:1});var $H1;var rdZ;var uq=function(){return _.Z.apply(this,arguments)||this};
_.r(uq,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.Q([_.p(oA1),_.k("design:type",Object)],uq.prototype,"ytdDismissalReasonBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],uq.prototype,"data",void 0);uq=_.Q([_.t({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],uq);
_.A(uq,"ytd-dismissal-reason-text-renderer",function(){if(rdZ!==void 0)return rdZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return rdZ=Y},{mode:1});var GX_;var Wc=function(){return _.Z.apply(this,arguments)||this};
_.r(Wc,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.Q([_.p(oA1),_.k("design:type",Object)],Wc.prototype,"ytdDismissalReasonBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Wc.prototype,"data",void 0);Wc=_.Q([_.t({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Wc);
_.A(Wc,"ytd-dismissal-reason-video-renderer",function(){if(GX_!==void 0)return GX_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return GX_=Y},{mode:1});var zv=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(zv,_.Z);_.z=zv.prototype;_.z.created=function(){this.selectedFeedbackTokens=new ZE};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.z.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.z.onDismissalReasonSelected=function(Y,S){_.ms(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(S);this.hasReasonsSelected=!0};
_.z.onDismissalReasonDeselected=function(Y,S){_.ms(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(S);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.z.onCancelTap=function(){_.nb(this.hostElement,"yt-close-popup-action")};
_.z.onSubmitTap=function(){var Y=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(Y={feedback_tokens:Y},_.f("web_ytd_dismissal_follow_up_renderer_command_resolver_ks")?_.Bu(this.hostElement,[this.data.submitFeedbackEndpoint,Y]):_.E().resolve(_.uY).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},Y,{element:this.hostElement})}));_.nb(this.hostElement,"yt-close-popup-action")};
zv.prototype.onDismissalReasonDeselected=zv.prototype.onDismissalReasonDeselected;zv.prototype.onDismissalReasonSelected=zv.prototype.onDismissalReasonSelected;zv.prototype.dataChanged=zv.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],zv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],zv.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],zv.prototype,"hasReasonsSelected",void 0);_.Q([_.X(),_.k("design:type",ZE)],zv.prototype,"selectedFeedbackTokens",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],zv.prototype,"darkerDarkTheme",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zv.prototype,"dataChanged",null);
_.Q([_.WZ("yt-dismissal-reason-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,String]),_.k("design:returntype")],zv.prototype,"onDismissalReasonSelected",null);_.Q([_.WZ("yt-dismissal-reason-deselected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,String]),_.k("design:returntype")],zv.prototype,"onDismissalReasonDeselected",null);zv=_.Q([_.t({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],zv);
_.A(zv,"ytd-dismissal-follow-up-renderer",function(){if($H1!==void 0)return $H1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return $H1=Y},{mode:1});var h4B;var mv=function(){return _.Z.apply(this,arguments)||this};
_.r(mv,_.Z);_.z=mv.prototype;_.z.onCheckedChange=function(){this.multiselect||_.ms(this.hostElement,"yt-feedback-single-select-changed");_.I(this.hostElement).querySelector("#freeform").focus();_.ms(this.hostElement,"yt-refit")};
_.z.showTextBox=function(Y,S){return Y&&S};
_.z.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))};
_.z.updateDataCheckedFromBinding=function(Y){this.set("data.checked",Y.detail.value)};
_.z.updateDataResultTextFromBinding=function(Y){this.set("data.resultText",Y.detail.value)};
mv.prototype.dataChanged=mv.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],mv.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],mv.prototype,"multiselect",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mv.prototype,"dataChanged",null);
mv=_.Q([_.t({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],mv);
_.A(mv,"ytd-feedback-option-renderer",function(){if(h4B!==void 0)return h4B;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return h4B=Y},{mode:1});var vxo;var n4=function(){return _.Z.apply(this,arguments)||this};
_.r(n4,_.Z);n4.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
n4.prototype.onSingleSelectCheckedChanged=function(Y){Y=_.oK(Y);for(var S=0;S<this.data.options.length;S++)if(Y.data!==_.g(this.data.options[S],ZDX)){var P="data.options."+S+".feedbackOptionRenderer.checked";this.notifyPath(P);this.set(P,!1)}};
n4.prototype.onSingleSelectCheckedChanged=n4.prototype.onSingleSelectCheckedChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],n4.prototype,"data",void 0);
_.Q([_.WZ("yt-feedback-single-select-changed"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],n4.prototype,"onSingleSelectCheckedChanged",null);n4=_.Q([_.t({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],n4);
_.A(n4,"ytd-feedback-question-renderer",function(){if(vxo!==void 0)return vxo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return vxo=Y},{mode:1});var DH1;var jy=function(){return _.Z.apply(this,arguments)||this};
_.r(jy,_.Z);jy.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
jy.prototype.getSelectedFeedbackResults=function(){for(var Y={},S=0;S<this.data.questions.length;S++)for(var P=_.g(this.data.questions[S],XYY),u=0;u<P.options.length;u++){var W=_.g(P.options[u],ZDX);W&&W.checked&&(Y[W.optionKey]=W.resultText)}return Y};
jy.prototype.onKeyUp=function(){var Y=this;_.yz(_.wc,function(){_.ms(Y.hostElement,"yt-refit")});
_.wc.start()};
jy.prototype.submitSurvey=function(){var Y=this.getSelectedFeedbackResults();Object.keys(Y).length>0&&this.data.submitFeedbackEndpoint&&(Y={survey_results:Y,is_feedback_token_unencrypted:!0},_.f("web_ytd_feedback_survey_renderer_command_resolver_ks")?_.Bu(this.hostElement,[this.data.submitFeedbackEndpoint,Y]):_.E().resolve(_.uY).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},Y,{element:this.hostElement})}))};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],jy.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],jy.prototype,"data",void 0);jy=_.Q([_.t({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],jy);
_.A(jy,"ytd-feedback-survey-renderer",function(){if(DH1!==void 0)return DH1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return DH1=Y},{mode:1});var IFd;var aF1;var Je=function(){return _.Z.apply(this,arguments)||this};
_.r(Je,_.Z);Je.prototype.computeAlt=function(Y){return _.Ma(Y)};
Je.prototype.submitResponse=function(){var Y,S;(Y=this.data)!=null&&Y.feedbackToken&&((S=this.data)==null?void 0:S.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]))};
Je.prototype.onClick=function(){this.submitResponse()};
Je.prototype.onClick=Je.prototype.onClick;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Je.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Je.prototype,"vertical",void 0);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Je.prototype,"onClick",null);
Je=_.Q([_.t({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Je);
_.A(Je,"ytd-single-select-answer-option-renderer",function(){if(aF1!==void 0)return aF1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return aF1=Y},{mode:1});var LEZ;var Bc=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");Y.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return Y};
_.r(Bc,_.Z);Bc.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Bc.prototype.dataChanged=function(){var Y,S;this.vertical=((S=(Y=this.data)==null?void 0:Y.answerOrientation)!=null?S:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Bc.prototype.submitFeedback=function(Y){var S;((S=this.data)==null?0:S.responseEndpoint)&&Y&&_.Bu(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[Y]}])};
Bc.prototype.dataChanged=Bc.prototype.dataChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Bc.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],Bc.prototype,"eventForwardingBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],Bc.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Bc.prototype,"vertical",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Bc.prototype,"darkerDarkTheme",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bc.prototype,"dataChanged",null);Bc=_.Q([_.t({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Bc);
_.A(Bc,"ytd-single-select-question-renderer",function(){if(LEZ!==void 0)return LEZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return LEZ=Y},{mode:1});var cc=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return Y};
_.r(cc,_.Z);_.z=cc.prototype;_.z.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"}}}};
_.z.dataChanged=function(){this.jumpToStage(0)};
_.z.jumpToStage=function(Y){var S,P;if((S=this.data)==null?0:(P=S.stages)==null?0:P[Y])this.currentStage=this.data.stages[Y],this.refitAfterRender()};
_.z.computeAlt=function(Y){return _.Ma(Y)};
_.z.computeSimpleMessage=function(Y){var S;return(S=_.g(Y,tBZ))==null?void 0:S.messageText};
_.z.computeHideDismiss=function(Y){var S;return(S=_.g(Y,RDB))==null?void 0:S.hideParentDismissButton};
_.z.onDismissTap=function(){_.nb(this.hostElement,"yt-close-popup-action");_.g(this.currentStage,tBZ)||this.data.dismissalEndpoint&&_.E().resolve(_.uY).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.z.refitAfterRender=function(){var Y=this;_.ky(this,function(){_.ms(Y.hostElement,"yt-refit")})};
cc.prototype.dataChanged=cc.prototype.dataChanged;_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],cc.prototype,"eventForwardingBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],cc.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],cc.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.p(to6),_.k("design:type",Object)],cc.prototype,"ytdHatsSurveyBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],cc.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],cc.prototype,"currentStage",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cc.prototype,"dataChanged",null);cc=_.Q([_.t({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],cc);
_.A(cc,"ytd-multi-stage-survey-renderer",function(){if(IFd!==void 0)return IFd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return IFd=Y},{mode:1});var wb5;var C4=function(){return _.Z.apply(this,arguments)||this};
_.r(C4,_.Z);C4.prototype.computeAlt=function(Y){return _.Ma(Y)};
C4.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.E().resolve(_.uY).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.nb(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.XzY(!1)))};
C4.prototype.onTap=function(){this.vertical&&this.submitResponse()};
C4.prototype.onTap=C4.prototype.onTap;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],C4.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],C4.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],C4.prototype,"vertical",void 0);
_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C4.prototype,"onTap",null);C4=_.Q([_.t({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],C4);
_.A(C4,"ytd-single-option-survey-option-renderer",function(){if(wb5!==void 0)return wb5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return wb5=Y},{mode:1});var pbX;var q0=function(){return _.Z.apply(this,arguments)||this};
_.r(q0,_.Z);_.z=q0.prototype;_.z.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(){var Y,S;this.vertical=(((Y=this.data)==null?void 0:(S=Y.surveyOrientation)==null?void 0:S.type)||"HORIZONTAL")==="VERTICAL"};
_.z.computeAlt=function(Y){return _.Ma(Y)};
_.z.onDismissTap=function(){_.nb(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.E().resolve(_.uY).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.XzY(!1))};
q0.prototype.dataChanged=q0.prototype.dataChanged;_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],q0.prototype,"eventForwardingBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(to6),_.k("design:type",Object)],q0.prototype,"ytdHatsSurveyBehavior",void 0);
_.Q([_.p(_.Gn),_.k("design:type",Object)],q0.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],q0.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],q0.prototype,"vertical",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q0.prototype,"dataChanged",null);q0=_.Q([_.t({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],q0);
_.A(q0,"ytd-single-option-survey-renderer",function(){if(pbX!==void 0)return pbX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return pbX=Y},{mode:1});var FE6;var RV=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(RV,_.Z);RV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
RV.prototype.onDismissTap=function(){_.nb(this.hostElement,"yt-close-popup-action")};
RV.prototype.onNavigate=function(){_.nb(this.hostElement,"yt-close-popup-action")};
RV.prototype.onNavigate=RV.prototype.onNavigate;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],RV.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],RV.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],RV.prototype,"darkerDarkTheme",void 0);
_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RV.prototype,"onNavigate",null);RV=_.Q([_.t({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],RV);
_.A(RV,"ytd-survey-follow-up-renderer",function(){if(FE6!==void 0)return FE6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return FE6=Y},{mode:1});var src;var dHB;var lFB;var xH=function(){var Y=_.Z.apply(this,arguments)||this;Y.polymer2="Element"in Polymer;return Y};
_.r(xH,_.Z);_.z=xH.prototype;_.z.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.z.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.z.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.z.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("minutes-changed",this.minutes))};
_.z.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("seconds-changed",this.seconds))};
_.z.updateMinutesFromBinding=function(Y){this.minutes=Y.detail.value};
_.z.updateSecondsFromBinding=function(Y){this.seconds=Y.detail.value};
xH.prototype.secondsChangedForBinding=xH.prototype.secondsChangedForBinding;xH.prototype.minutesChangedForBinding=xH.prototype.minutesChangedForBinding;xH.prototype.secondsChanged=xH.prototype.secondsChanged;_.Q([_.X(),_.k("design:type",String)],xH.prototype,"minutes",void 0);_.Q([_.X(),_.k("design:type",String)],xH.prototype,"seconds",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],xH.prototype,"polymer2",void 0);
_.Q([_.nc("#seconds"),_.k("design:type",Object)],xH.prototype,"secondsEl",void 0);_.Q([_.zY("seconds"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xH.prototype,"secondsChanged",null);_.Q([_.zY("minutes"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xH.prototype,"minutesChangedForBinding",null);
_.Q([_.zY("seconds"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xH.prototype,"secondsChangedForBinding",null);xH=_.Q([_.r0({is:"yt-timestamp-input",disableElementRegistration:!0})],xH);
_.A(xH,"yt-timestamp-input",function(){if(lFB===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;dHB===void 0&&(dHB=document.createElement("template"));var u=dHB;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);lFB=Y}Y=lFB;return Y},{mode:2});var bq=function(){return _.Z.apply(this,arguments)||this};
_.r(bq,_.Z);_.z=bq.prototype;_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$17980_scroller.dialogElement=this.hostElement.parentNode};
_.z.dataChanged=function(){var Y=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.ks().getPlayerPromise().then(function(S){S=S.getCurrentTime();Y.minutes=Math.floor(S/60).toString();Y.seconds=(Math.floor(S)%60).toString()})};
_.z.onTapSubmit=function(Y){Y.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(Y={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(Y.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(Y.minutes=this.minutes,Y.seconds=this.seconds),_.E().resolve(_.uY).resolveCommand(this.serviceEndpoint,{form:Object.assign({},Y,{element:this.hostElement})}))};
_.z.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.z.onYtServiceRequestCompleted=function(Y,S){S=S.actions;if(Array.isArray(S))for(var P=0,u=S.length;P<u;P++)_.g(S[P],_.fP)&&(Y.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(S[P]))};
_.z.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.z.toggleSubmitButton=function(Y){this.set("submitButton.isDisabled",!Y)};
_.z.handleInput=function(){var Y=this.issueType,S=this.affiliation,P=this.minutes,u=this.seconds;P=!this.showTimestamp||!!P&&!!u;this.toggleSubmitButton(!!this.descriptionText&&!!Y&&!!S&&P)};
_.z.computeServiceEndpoint=function(Y){return this.get("submitButton.buttonRenderer.serviceEndpoint",Y)};
_.z.computeSubmitButton=function(Y){(Y=this.get("submitButton.buttonRenderer",Y))&&(Y=Object.assign({},Y,{serviceEndpoint:void 0}));return Y};
_.z.computeShowTimestamp=function(Y){return!!Y};
_.z.onValueChangedForIssueType=function(Y){this.issueType=Y.detail.value};
_.z.onValueChangedForAffiliation=function(Y){this.affiliation=Y.detail.value};
_.z.updateDescriptionTextFromBinding=function(Y){this.descriptionText=Y.detail.value};
_.z.updateFullNameTextFromBinding=function(Y){this.fullNameText=Y.detail.value};
_.z.updateMinutesFromBinding=function(Y){this.minutes=Y.detail.value};
_.z.updateSecondsFromBinding=function(Y){this.seconds=Y.detail.value};
bq.prototype.handleInput=bq.prototype.handleInput;bq.prototype.onYtServiceRequestError=bq.prototype.onYtServiceRequestError;bq.prototype.onYtServiceRequestCompleted=bq.prototype.onYtServiceRequestCompleted;bq.prototype.onYtServiceRequestSent=bq.prototype.onYtServiceRequestSent;bq.prototype.dataChanged=bq.prototype.dataChanged;_.Q([_.p(_.Vt.YtOpenPopupBehavior),_.k("design:type",Object)],bq.prototype,"ytOpenPopupBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.Q([_.nc("#scroller"),_.k("design:type",Object)],bq.prototype,"JSC$17980_scroller",void 0);_.Q([_.nc("#description"),_.k("design:type",HTMLInputElement)],bq.prototype,"description",void 0);_.Q([_.nc("#full-name"),_.k("design:type",Object)],bq.prototype,"fullName",void 0);_.Q([_.X(),_.k("design:type",Object)],bq.prototype,"data",void 0);
_.Q([_.X({computed:"computeShowTimestamp(data.timestampLabel)"}),_.k("design:type",Boolean)],bq.prototype,"showTimestamp",void 0);_.Q([_.X({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.k("design:type",Object)],bq.prototype,"serviceEndpoint",void 0);_.Q([_.X({computed:"computeSubmitButton(data)"}),_.k("design:type",Object)],bq.prototype,"submitButton",void 0);_.Q([_.X(),_.k("design:type",String)],bq.prototype,"descriptionText",void 0);
_.Q([_.X(),_.k("design:type",Number)],bq.prototype,"issueType",void 0);_.Q([_.X(),_.k("design:type",Number)],bq.prototype,"affiliation",void 0);_.Q([_.X(),_.k("design:type",String)],bq.prototype,"fullNameText",void 0);_.Q([_.X(),_.k("design:type",String)],bq.prototype,"minutes",void 0);_.Q([_.X(),_.k("design:type",String)],bq.prototype,"seconds",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bq.prototype,"dataChanged",null);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],bq.prototype,"onYtServiceRequestSent",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],bq.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bq.prototype,"onYtServiceRequestError",null);_.Q([_.zY("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bq.prototype,"handleInput",null);bq=_.Q([_.t({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],bq);
_.A(bq,"ytd-legal-report-details-form-renderer",function(){if(src!==void 0)return src;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return src=Y},{mode:1});var XbY;var Tv=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return Y};
_.r(Tv,_.Z);Tv.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Tv.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var Y=this.formRenderer.getForm();Y&&this.data.submitEndpoint&&(_.E().resolve(_.uY).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},Y,{element:this.hostElement})}),_.nb(this.hostElement,"yt-close-popup-action"))}};
Tv.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.nb(this.hostElement,"yt-close-popup-action"))};
Tv.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Tv.prototype.onPopupClosed=Tv.prototype.onPopupClosed;_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],Tv.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Tv.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);
_.Q([_.nc("yt-form-renderer"),_.k("design:type",Object)],Tv.prototype,"formRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],Tv.prototype,"data",void 0);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tv.prototype,"onPopupClosed",null);Tv=_.Q([_.t({is:"ytd-form-popup-content",disableElementRegistration:!0})],Tv);
_.A(Tv,"ytd-form-popup-content",function(){if(XbY!==void 0)return XbY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return XbY=Y},{mode:1});var Z$j;var K4=function(){return _.Z.apply(this,arguments)||this};
_.r(K4,_.Z);K4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
K4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
K4.prototype.onPopupOpened=function(){_.ms(this.hostElement,"yt-invalidate-popup-tabbables")};
K4.prototype.onYtServiceRequestCompleted=function(Y,S){S.data&&S.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.ms(this.hostElement,"yt-invalidate-popup-tabbables"))};
K4.prototype.onYtServiceRequestCompleted=K4.prototype.onYtServiceRequestCompleted;K4.prototype.onPopupOpened=K4.prototype.onPopupOpened;_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],K4.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],K4.prototype,"data",void 0);_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],K4.prototype,"onPopupOpened",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],K4.prototype,"onYtServiceRequestCompleted",null);K4=_.Q([_.t({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],K4);
_.A(K4,"ytd-form-popup-renderer",function(){if(Z$j!==void 0)return Z$j;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Z$j=Y},{mode:1});var i$5;var EZ=function(){var Y=_.Z.apply(this,arguments)||this;Y.isLoading=!1;return Y};
_.r(EZ,_.Z);_.z=EZ.prototype;_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Hzj(this.hostElement)};
_.z.onYtServiceRequestSent=function(){this.isLoading=!0};
_.z.onYtServiceRequestCompleted=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.z.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.cu(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.z.closePopupHandler=function(){this.fireOnCloseActions()};
_.z.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var Y=this.get("data.headerImage.thumbnails");Y&&(Y=_.UD(Y,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+Y+")")}};
_.z.onYtNavigate=function(Y){(Y=_.oK(Y))&&Y.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
EZ.prototype.onYtNavigate=EZ.prototype.onYtNavigate;EZ.prototype.onHeaderImageChanged=EZ.prototype.onHeaderImageChanged;EZ.prototype.closePopupHandler=EZ.prototype.closePopupHandler;EZ.prototype.onYtServiceRequestCompleted=EZ.prototype.onYtServiceRequestCompleted;EZ.prototype.onYtServiceRequestSent=EZ.prototype.onYtServiceRequestSent;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],EZ.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],EZ.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],EZ.prototype,"isLoading",void 0);_.Q([_.nc("#header"),_.k("design:type",HTMLDivElement)],EZ.prototype,"header",void 0);_.Q([_.nc("#confirm-button"),_.k("design:type",_.zV)],EZ.prototype,"confirmButton",void 0);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],EZ.prototype,"onYtServiceRequestSent",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],EZ.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],EZ.prototype,"closePopupHandler",null);_.Q([_.zY("data.headerImage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EZ.prototype,"onHeaderImageChanged",null);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],EZ.prototype,"onYtNavigate",null);
EZ=_.Q([_.t({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],EZ);
_.A(EZ,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(i$5!==void 0)return i$5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return i$5=Y},{mode:1});var oxY;var f4=function(){var Y=_.Z.apply(this,arguments)||this;Y.isLoading=!1;return Y};
_.r(f4,_.Z);_.z=f4.prototype;_.z.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"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Hzj(this.hostElement)};
_.z.onYtServiceRequestCompleted=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.z.onYtServiceRequestError=function(Y){_.hQ(this.hostElement,Y.detail.error.message)};
_.z.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.z.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.nb(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.z.onDataChanged=function(){this.isLoading=!1;var Y=this.get("data.headerImage.thumbnails");Y&&(Y=_.UD(Y,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+Y+")");Y=_.pM();var S=_.wf(),P=this.get("data.trackingParams");P&&S&&Y&&_.t6(Y,S,_.Re(P))};
_.y6.Object.defineProperties(f4.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
f4.prototype.onDataChanged=f4.prototype.onDataChanged;f4.prototype.onDomChange=f4.prototype.onDomChange;f4.prototype.onYtServiceRequestError=f4.prototype.onYtServiceRequestError;f4.prototype.onYtServiceRequestCompleted=f4.prototype.onYtServiceRequestCompleted;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],f4.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],f4.prototype,"isLoading",void 0);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"hasDescription",null);_.Q([_.nc("tp-yt-paper-dialog-scrollable"),_.k("design:type",Object)],f4.prototype,"scrollable",void 0);_.Q([_.nc("#header"),_.k("design:type",HTMLElement)],f4.prototype,"header",void 0);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],f4.prototype,"onYtServiceRequestCompleted",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],f4.prototype,"onYtServiceRequestError",null);
_.Q([_.WZ("dom-change"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],f4.prototype,"onDomChange",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f4.prototype,"onDataChanged",null);f4=_.Q([_.t({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],f4);
_.A(f4,"ytd-gaming-account-link-setting-renderer",function(){if(oxY!==void 0)return oxY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return oxY=Y},{mode:1});var tMY;var Ad_;var gM=function(){var Y=_.Z.apply(this,arguments)||this;Y.isHeader=!1;Y.getEndpointForm=UTd;return Y};
_.r(gM,_.Z);_.z=gM.prototype;_.z.triggerHintActions=function(){var Y=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var S=_.jR(Y.hostElement,"yt-get-opened-popups-action");!(S&&S.length===1?S[0]:[]).some(function(P){P=P.openPopupAction.popupType;return P==="SURVEY"||P==="MEALBAR"||P==="HINT"})&&Y.data.hintActions&&Y.guideOpened&&(_.cu(Y.hostElement,Y.data.hintActions,Y.hostElement),Y.data.hintActions=void 0)})};
_.z.getBadgeIconType=function(Y){return Y&&Y.liveBroadcasting?"live":null};
_.z.onDown=function(){this.interaction.triggerDown()};
_.z.onUp=function(){this.interaction.triggerUp()};
_.z.onTap=function(Y){if(this.data.serviceEndpoint){var S;_.f("shorts_controller_retrieve_seedless_sequence_v2")&&((S=_.g(this.data.serviceEndpoint,_.bM))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):A6B(this.data.serviceEndpoint,this);Y.preventDefault()}else this.data.navigationEndpoint&&!_.iN(_.iM(Y),this.hostElement,["A".toString()])&&_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.z.computeActive=function(Y,S){if(!Y)return!1;var P=Y.navigationEndpoint;Y=Y.serviceEndpoint;if(!P&&!Y||!S)return!1;if(P){Y=(Y=Pr(S))&&["subscriptions","filteredsubscriptions"].includes(Y);if(_.g(P,_.CV)&&_.g(S,_.CV)&&!Y){var u=_.g(P,_.CV).browseId;S=_.g(S,_.CV).browseId;return u!==void 0&&S!==void 0&&(u===S||u==="VLWL"&&S==="FEwatch_later"||u==="FEwatch_later"&&S==="VLWL")}var W;P=(W=_.g(P.commandMetadata,_.Yo))==null?void 0:W.url;S=(u=_.g(S.commandMetadata,_.Yo))==null?void 0:u.url;return!(!P||
!S||P!==S&&P!==_.Cz(S))}return this.isActiveShortsTab(Y,S)};
_.z.isActiveShortsTab=function(Y,S){S=!!_.g(S,_.bM)||!!_.g(S,_.vg);return(!!_.g(Y,_.bM)||!!_.g(Y,_.vg))&&S};
_.z.computeIsPrimary=function(Y){return!!Y};
_.y6.Object.defineProperties(gM.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&Y)return Y}}});
gM.prototype.onTap=gM.prototype.onTap;gM.prototype.onUp=gM.prototype.onUp;gM.prototype.onDown=gM.prototype.onDown;gM.prototype.triggerHintActions=gM.prototype.triggerHintActions;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],gM.prototype,"componentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],gM.prototype,"rendererBehavior",void 0);_.Q([_.p(_.l4.YtTaskEmitterBehavior),_.k("design:type",Object)],gM.prototype,"taskEmitterBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],gM.prototype,"activeEndpoint",void 0);_.Q([_.X(),_.k("design:type",Object)],gM.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],gM.prototype,"guideOpened",void 0);_.Q([_.X(),_.k("design:type",String)],gM.prototype,"type",void 0);_.Q([_.nc("yt-interaction"),_.k("design:type",Object)],gM.prototype,"interaction",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],gM.prototype,"isHeader",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data","activeEndpoint"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gM.prototype,"active",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gM.prototype,"isPrimary",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.count","data.presentationStyle","data.badges.*"),_.k("design:type",String),_.k("design:paramtypes",[])],gM.prototype,"lineEndStyle",null);
_.Q([_.d("lineEndStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],gM.prototype,"ariaLabel",null);_.Q([_.zY("data.hintActions","guideOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gM.prototype,"triggerHintActions",null);_.Q([_.WZ("down"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gM.prototype,"onDown",null);
_.Q([_.WZ("up"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gM.prototype,"onUp",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],gM.prototype,"onTap",null);gM=_.Q([_.t({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],gM);
_.A(gM,"ytd-guide-entry-renderer",function(){if(Ad_!==void 0)return Ad_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ad_=Y},{mode:1});var $H=function(){var Y=_.Z.apply(this,arguments)||this;Y.userToggled=!1;return Y};
_.r($H,_.Z);_.z=$H.prototype;_.z.getItemsPath=function(){return"data.expandableItems"};
_.z.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.z.onExpanderItemTapped=function(Y){var S=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.f("kevlar_guide_expandable_items_killswitch")&&_.ky(this,function(){_.H_(S.expandableItems)});
Y.preventDefault()};
_.z.onCollapserItemTapped=function(Y){var S=this;this._setExpanded(!1);this.userToggled=!0;Y.preventDefault();this.expandableItems&&!_.f("kevlar_guide_collapsible_items_killswitch")&&_.ky(this,function(){_.NR(S.hostElement)})};
_.z.observeActiveEndpoint=function(){for(var Y=this.activeEndpoint,S=this.data,P=this.expandableItems.children,u=0,W=P.length;u<W;u++)P[u].activeEndpoint=Y;S&&S.autoExpandCommand&&Y&&!this.userToggled&&(P=this.data.autoExpandCommand,S=!(!_.g(P,_.CV)||!_.g(Y,_.CV)||_.g(P,_.CV).browseId!==_.g(Y,_.CV).browseId),Y=this.get("commandMetadata.webCommandMetadata.url",Y),P=this.get("commandMetadata.webCommandMetadata.url",P),S=S||!!(Y&&P&&Y.includes(P)),this._setExpanded(S),S&&this.ytLazyListBehavior.fillRemainingListItems())};
$H.prototype.observeActiveEndpoint=$H.prototype.observeActiveEndpoint;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$H.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],$H.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.QG.YtLazyListBehavior),_.k("design:type",Object)],$H.prototype,"ytLazyListBehavior",void 0);_.Q([_.nc("#expandable-items"),_.k("design:type",HTMLElement)],$H.prototype,"expandableItems",void 0);
_.Q([_.X(),_.k("design:type",Object)],$H.prototype,"data",void 0);_.Q([_.X({readOnly:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],$H.prototype,"expanded",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],$H.prototype,"initialCount",void 0);_.Q([_.X(),_.k("design:type",Object)],$H.prototype,"activeEndpoint",void 0);_.Q([_.zY("data","activeEndpoint","canShowMore"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$H.prototype,"observeActiveEndpoint",null);
$H=_.Q([_.t({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],$H);
_.A($H,"ytd-guide-collapsible-entry-renderer",function(){if(tMY!==void 0)return tMY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" 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');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return tMY=Y},{mode:_.OX("kevlar_poly_si_batch_j079")?1:2});var UHX;var QrY;var rM=function(){var Y=_.Z.apply(this,arguments)||this;Y.allVideosCount=0;Y.renderGuideEntry=!1;return Y};
_.r(rM,_.Z);rM.prototype.observeRenderEntry=function(){var Y;this.renderGuideEntry=!((Y=this.data)==null||!Y.alwaysShow)||!!this.allVideosCount};
rM.prototype.observeRenderEntry=rM.prototype.observeRenderEntry;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],rM.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],rM.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],rM.prototype,"activeEndpoint",void 0);_.Q([_.X({selector:_.x$a}),_.k("design:type",Object)],rM.prototype,"allVideosCount",void 0);
_.Q([_.X(),_.k("design:type",Object)],rM.prototype,"renderGuideEntry",void 0);_.Q([_.cZ("allVideosCount","data.alwaysShow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rM.prototype,"observeRenderEntry",null);rM=_.Q([_.t({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],rM);
_.A(rM,"ytd-guide-downloads-entry-renderer",function(){if(QrY===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);QrY=Y}Y=QrY;return Y},{mode:1});var Gv=function(){var Y=_.Z.apply(this,arguments)||this;Y.youtab=_.f("web_enable_youtab");Y.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return Y};
_.r(Gv,_.Z);_.z=Gv.prototype;_.z.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]]"}}}}}};
_.z.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var Y=this.sectionItems.children,S=0,P=Y.length;S<P;S++)Y[S].activeEndpoint=this.activeEndpoint}};
_.z.handleAddToGuideSectionAction=function(Y){var S=_.g(Y,Wl1);if(S&&this.data&&(Y=S.items,S=S.handlerData,Y&&S&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(S)>-1)){S=0;for(var P=Y.length;S<P;S++)Y[S].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,Y[S])}};
_.z.handleRemoveFromGuideSectionAction=function(Y){var S=_.g(Y,zD6);S&&this.data&&(Y=S.guideEntryId,S=S.handlerData,Y&&S&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(S)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(Y,this.data.sectionItems),this.removeFromCollapsedSection(Y,this.data.sectionItems)))};
_.z.removeFromExpandedSection=function(Y,S){Y=this.getEntryIndexMatchingId(Y,S);Y!==-1&&this.splice("data.sectionItems",Y,1)};
_.z.removeFromCollapsedSection=function(Y,S){var P=S.findIndex(function(u){return!!_.g(u,g1I)});
P&&P!==-1&&S[P]&&_.g(S[P],g1I)&&(S=_.g(S[P],g1I).expandableItems)&&(Y=this.getEntryIndexMatchingId(Y,S),Y!==-1&&this.splice("data.sectionItems."+P+".guideCollapsibleEntryRenderer.expandableItems",Y,1))};
_.z.getEntryIndexMatchingId=function(Y,S){var P=this;return S.findIndex(function(u){return P.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",u)===Y})};
Gv.prototype.activeEndpointChanged=Gv.prototype.activeEndpointChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Gv.prototype,"actionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Gv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.nc("#section-items"),_.k("design:type",HTMLDivElement)],Gv.prototype,"sectionItems",void 0);
_.Q([_.nc("#header-entry"),_.k("design:type",Object)],Gv.prototype,"headerEntry",void 0);_.Q([_.X(),_.k("design:type",Object)],Gv.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Gv.prototype,"activeEndpoint",void 0);_.Q([_.X(),_.k("design:type",Object)],Gv.prototype,"youtab",void 0);_.Q([_.zY("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gv.prototype,"activeEndpointChanged",null);
Gv=_.Q([_.t({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Gv);
_.A(Gv,"ytd-guide-collapsible-section-entry-renderer",function(){if(UHX===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);UHX=Y}Y=UHX;return Y},{mode:1});var kX6;var MMZ;var he=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernTypography=_.f("web_modern_typography");Y.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return Y};
_.r(he,_.Z);_.z=he.prototype;
_.z.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}}}}};
_.z.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var Y=_.jR(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);Y&&Y.length===1&&Y[0]&&_.jR(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.z.handleResetChannelUnreadCountCommand=function(Y){var S;(Y=(S=_.g(Y,n16))==null?void 0:S.channelId)&&this.data&&this.data.items&&(S=this.getPathToEntryMatchingId(Y))&&(this.set(S+".guideEntryRenderer.count",0),this.set(S+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.z.handleResetSubscriptionsUnreadDotCommand=function(Y){var S,P=(S=_.g(Y,jS6))==null?void 0:S.targetId,u;P&&(u=this.data)!=null&&u.items&&(Y=this.data.items.findIndex(function(W){var m;return((m=W.guideEntryRenderer)==null?void 0:m.targetId)===P}),Y<0||this.set("data.items."+Y+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.z.getPathToEntryMatchingId=function(Y){if(this.data&&this.data.items){var S=this.getEntryIndexMatchingId(Y,this.data.items);if(S>-1)return"data.items."+S;for(var P=0;P<this.data.items.length;P++)if(S=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[P]))if(S=this.getEntryIndexMatchingId(Y,S),S>-1)return"data.items."+P+".guideCollapsibleEntryRenderer.expandableItems."+S}};
_.z.handleAddToGuideSectionAction=function(Y){var S=this;if(_.g(Y,Wl1)){var P=_.g(Y,Wl1).items;Y=_.g(Y,Wl1).handlerData;var u,W;P&&Y&&((u=this.data)==null?void 0:(W=u.handlerDatas)==null?void 0:W.indexOf(Y))>-1&&(P=P.filter(function(m){return(m=S.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",m))&&!S.isGuideItemPresent(m)}),this.unshift.apply(this,["data.items"].concat(_.cz(P))))}};
_.z.isGuideItemPresent=function(Y){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(Y,this.data.items)!==-1)return!0;var S=this.data.items.find(function(P){return!!P.guideCollapsibleEntryRenderer});
if((S==null?0:S.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(Y,S.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.z.getEntryIndexMatchingId=function(Y,S){var P=this;return S.findIndex(function(u){return P.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",u)===Y})};
_.z.handleRemoveFromGuideSectionAction=function(Y){if(_.g(Y,zD6)){var S=_.g(Y,zD6).guideEntryId;Y=_.g(Y,zD6).handlerData;var P,u;S&&Y&&((P=this.data)==null?void 0:(u=P.handlerDatas)==null?void 0:u.indexOf(Y))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(S,this.data.items),this.removeFromCollapsedSection(S,this.data.items))}};
_.z.removeFromExpandedSection=function(Y,S){Y=this.getEntryIndexMatchingId(Y,S);Y!==-1&&this.splice("data.items",Y,1)};
_.z.removeFromCollapsedSection=function(Y,S){var P=S.findIndex(function(u){return!!u.guideCollapsibleEntryRenderer});
P!==-1&&(S=S[P].guideCollapsibleEntryRenderer.expandableItems)&&(Y=this.getEntryIndexMatchingId(Y,S),Y!==-1&&this.splice("data.items."+P+".guideCollapsibleEntryRenderer.expandableItems",Y,1))};
_.z.activeEndpointChanged=function(){for(var Y=_.I(this.hostElement).querySelector("#items").children,S=0,P=Y.length;S<P;S++)Y[S].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.z.guideOpenedChanged=function(){for(var Y=_.I(this.hostElement).querySelector("#items").children,S=0,P=Y.length;S<P;S++)Y[S].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
he.prototype.guideOpenedChanged=he.prototype.guideOpenedChanged;he.prototype.activeEndpointChanged=he.prototype.activeEndpointChanged;he.prototype.persistentGuideChanged=he.prototype.persistentGuideChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],he.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],he.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],he.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.QG.YtLazyListBehavior),_.k("design:type",Object)],he.prototype,"ytLazyListBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],he.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],he.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],he.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],he.prototype,"modernTypography",void 0);_.Q([_.X(),_.k("design:type",String)],he.prototype,"type",void 0);_.Q([_.X({value:20}),_.k("design:type",Number)],he.prototype,"initialCount",void 0);_.Q([_.X({value:10}),_.k("design:type",Number)],he.prototype,"targetFramerate",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],he.prototype,"autoFill",void 0);_.Q([_.X({value:50}),_.k("design:type",Number)],he.prototype,"renderDelay",void 0);
_.Q([_.zY("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],he.prototype,"persistentGuideChanged",null);_.Q([_.cZ("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],he.prototype,"activeEndpointChanged",null);_.Q([_.cZ("guideOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],he.prototype,"guideOpenedChanged",null);
he=_.Q([_.t({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],he);
_.A(he,"ytd-guide-section-renderer",function(){if(MMZ!==void 0)return MMZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return MMZ=Y},{mode:_.OX("kevlar_poly_si_batch_j073")?1:2});var yd1;var vc=function(){return _.Z.apply(this,arguments)||this};
_.r(vc,_.Z);_.y6.Object.defineProperties(vc.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],vc.prototype,"rendererBehaviors",void 0);_.Q([_.X(),_.k("design:type",Object)],vc.prototype,"data",void 0);_.Q([_.X(),_.d("data.signInButton.buttonRenderer.style"),_.k("design:type",Object),_.k("design:paramtypes",[])],vc.prototype,"alignByText",null);vc=_.Q([_.t({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],vc);
_.A(vc,"ytd-guide-signin-promo-renderer",function(){if(yd1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);yd1=Y}Y=yd1;return Y},{mode:1});var DU=function(){var Y=_.Z.apply(this,arguments)||this;Y.showFooter=!1;return Y};
_.r(DU,_.Z);DU.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}}}}};
DU.prototype.attached=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1){S=_.E().resolve(_.PQ(_.a5));if(!S)return P.jumpTo(0);S.setGuideData(Y.hostElement);return _.q(P,0,3)}Y.ytLazyListBehavior.initialCount=2;return P.return()})};
DU.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
DU.prototype.dataChanged=DU.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],DU.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.QG.YtLazyListBehavior),_.k("design:type",Object)],DU.prototype,"ytLazyListBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],DU.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],DU.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],DU.prototype,"showFooter",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],DU.prototype,"autoFill",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],DU.prototype,"dataChanged",null);DU=_.Q([_.t({is:"ytd-guide-renderer",disableElementRegistration:!0})],DU);
_.A(DU,"ytd-guide-renderer",function(){if(kX6!==void 0)return kX6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return kX6=Y},{mode:_.OX("kevlar_poly_si_batch_j073")?1:2});var NBY;var IV=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.f("kevlar_system_icons");Y.frostedGlass=_.f("web_frosted_glass");Y.getEndpointForm=UTd;return Y};
_.r(IV,_.Z);_.z=IV.prototype;_.z.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.z.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.Ma(this.data.formattedTitle))};
_.z.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.z.onDown=function(){this.interaction.triggerDown()};
_.z.onUp=function(){this.interaction.triggerUp()};
_.z.onTap=function(Y){if(this.data.serviceEndpoint){var S;_.f("shorts_controller_retrieve_seedless_sequence_v2")&&((S=_.g(this.data.serviceEndpoint,_.bM))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):A6B(this.data.serviceEndpoint,this);Y.preventDefault()}else{var P;((P=this.data)==null?0:P.navigationEndpoint)&&!_.iN(_.iM(Y),this.hostElement,["A".toString()])&&_.ms(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.z.computeActive=function(Y,S){if(!Y)return!1;var P=Y.navigationEndpoint;Y=Y.serviceEndpoint;if(!P&&!Y||!S)return!1;if(P){Y=_.g(P,_.CV);var u=_.g(S,_.CV);if(Y&&u)return Y.browseId===u.browseId&&Y.params===u.params;var W;P=(W=_.g(P.commandMetadata,_.Yo))==null?void 0:W.url;var m;S=(m=_.g(S.commandMetadata,_.Yo))==null?void 0:m.url;return!(!P||!S||P!==S&&P!==_.Cz(S))}return this.isActiveShortsTab(Y,S)};
_.z.isActiveShortsTab=function(Y,S){S=!!_.g(S,_.bM)||!!_.g(S,_.vg);return(!!_.g(Y,_.bM)||!!_.g(Y,_.vg))&&S};
_.z.computeTitle=function(Y,S){return S?"":_.Ma(Y)};
_.y6.Object.defineProperties(IV.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
IV.prototype.onTap=IV.prototype.onTap;IV.prototype.onUp=IV.prototype.onUp;IV.prototype.onDown=IV.prototype.onDown;IV.prototype.onActiveStateChange=IV.prototype.onActiveStateChange;IV.prototype.dataChanged=IV.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],IV.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.DW),_.k("design:type",Object)],IV.prototype,"ironButtonState",void 0);_.Q([_.X(),_.k("design:type",Object)],IV.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],IV.prototype,"activeEndpoint",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],IV.prototype,"noLabels",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.k("design:type",Boolean)],IV.prototype,"isActive",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],IV.prototype,"systemIcons",void 0);_.Q([_.nc("yt-interaction"),_.k("design:type",Object)],IV.prototype,"interaction",void 0);_.Q([_.d("isActive"),_.k("design:type",Object),_.k("design:paramtypes",[])],IV.prototype,"ariaSelected",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],IV.prototype,"frostedGlass",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IV.prototype,"dataChanged",null);_.Q([_.zY("isActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IV.prototype,"onActiveStateChange",null);_.Q([_.WZ("down"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IV.prototype,"onDown",null);
_.Q([_.WZ("up"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IV.prototype,"onUp",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],IV.prototype,"onTap",null);IV=_.Q([_.t({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],IV);
_.A(IV,"ytd-mini-guide-entry-renderer",function(){if(NBY!==void 0)return NBY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return NBY=Y},{mode:_.OX("kevlar_poly_si_batch_j063")?1:2});var H$Y;var aV=function(){var Y=_.Z.apply(this,arguments)||this;Y.allVideosCount=0;Y.noLabels=_.f("kevlar_mini_guide_no_labels");Y.frostedGlass=_.f("web_frosted_glass");return Y};
_.r(aV,_.Z);_.z=aV.prototype;_.z.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.z.visibleChanged=function(){if(this.visible&&!this.data){var Y=_.E().resolve(_.PQ(_.a5));Y&&Y.setGuideData(this.hostElement)}};
_.z.dataChanged=function(){var Y=[],S;if((S=this.data)!=null&&S.items){S=_.n(this.data.items);for(var P=S.next();!P.done;P=S.next()){P=P.value;var u=void 0;if((u=P.guideSectionRenderer)==null?0:u.items)for(u=void 0,P=_.n((u=P.guideSectionRenderer)==null?void 0:u.items),u=P.next();!u.done;u=P.next())if(u=u.value,u.guideEntryRenderer)u=u.guideEntryRenderer,u.isPrimary&&Y.push({guideEntryRenderer:u});else if(u.guideCollapsibleSectionEntryRenderer){var W=void 0;((W=_.g(u.guideCollapsibleSectionEntryRenderer.headerEntry,
ow))==null?0:W.isPrimary)&&Y.push({guideEntryRenderer:_.g(u.guideCollapsibleSectionEntryRenderer.headerEntry,ow)});if(u=u.guideCollapsibleSectionEntryRenderer.sectionItems)for(u=_.n(u),W=u.next();!W.done;W=u.next()){var m=W.value;W=_.g(m,$7I);var J=void 0;((J=_.g(m,ow))==null?0:J.isPrimary)?Y.push({guideEntryRenderer:_.g(m,ow)}):W&&(m=void 0,_.g((m=W)==null?void 0:m.entryRenderer,ow)&&(W.alwaysShow||this.allVideosCount)&&Y.push({guideEntryRenderer:_.g(W.entryRenderer,ow)}))}}}}this.miniGuideItems=
Y};
_.z.activeEndpointChanged=function(){for(var Y=this.items.children,S=0;S<Y.length;S++)Y[S].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
aV.prototype.activeEndpointChanged=aV.prototype.activeEndpointChanged;aV.prototype.dataChanged=aV.prototype.dataChanged;aV.prototype.visibleChanged=aV.prototype.visibleChanged;_.Q([_.p(_.Gn),_.k("design:type",Object)],aV.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],aV.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],aV.prototype,"ytComponentBehavior",void 0);_.Q([_.nc("#items"),_.k("design:type",Object)],aV.prototype,"items",void 0);_.Q([_.X(),_.k("design:type",Object)],aV.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],aV.prototype,"visible",void 0);
_.Q([_.X(),_.k("design:type",Object)],aV.prototype,"miniGuideItems",void 0);_.Q([_.X({selector:_.x$a}),_.k("design:type",Object)],aV.prototype,"allVideosCount",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],aV.prototype,"noLabels",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],aV.prototype,"frostedGlass",void 0);_.Q([_.cZ("visible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aV.prototype,"visibleChanged",null);
_.Q([_.cZ("data","allVideosCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aV.prototype,"dataChanged",null);_.Q([_.cZ("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aV.prototype,"activeEndpointChanged",null);aV=_.Q([_.t({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],aV);
_.A(aV,"ytd-mini-guide-renderer",function(){if(H$Y===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);H$Y=Y}Y=H$Y;return Y},{mode:1});var VMo;var e4d=/^[\x00-\x7F]+$/,L4=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(L4,_.Z);_.y6.Object.defineProperties(L4.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var Y,S=_.Ma((Y=this.data)==null?void 0:Y.handle);if(S)return _.kW("@"+S)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var Y=_.Ma(this.displayHandle),S,P=_.Ma((S=this.data)==null?void 0:S.handleUrl);if(Y&&P)return _.kW(P+Y)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var Y=_.Ma(this.displayHandle);if(Y&&!e4d.test(Y)){var S;return(S=this.data)==null?void 0:S.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var Y=_.Ma(this.displayHandleUrl),S,P=_.Ma((S=this.data)==null?void 0:S.urlInfoText);if(Y&&P)return _.kW(P+" "+Y)}}});
_.Q([_.X(),_.k("design:type",Object)],L4.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],L4.prototype,"displayHandle",null);_.Q([_.d("displayHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],L4.prototype,"displayHandleUrl",null);_.Q([_.d("displayHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],L4.prototype,"warningText",null);
_.Q([_.d("displayHandleUrl"),_.k("design:type",Object),_.k("design:paramtypes",[])],L4.prototype,"urlInfoTextWithUrl",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],L4.prototype,"darkerDarkTheme",void 0);L4=_.Q([_.t({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],L4);
_.A(L4,"ytd-handles-claiming-confirm-dialog-content",function(){if(VMo!==void 0)return VMo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return VMo=Y},{mode:1});var O$I;var wM=function(){var Y=_.Z.apply(this,arguments)||this;Y.okButtonOverride={style:"mono",type:"outline",size:"M"};return Y};
_.r(wM,_.Z);wM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wM.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],wM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],wM.prototype,"okButtonOverride",void 0);_.Q([_.X(),_.k("design:type",Object)],wM.prototype,"data",void 0);wM=_.Q([_.t({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],wM);
_.A(wM,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(O$I!==void 0)return O$I;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return O$I=Y},{mode:1});var YJ1;var SJ6=/^[\x00-\x7F]+$/,p4=function(){var Y=_.Z.apply(this,arguments)||this;Y.isLoading=!1;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(p4,_.Z);p4.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var Y;this.selectedHandle=(Y=this.handleInput)==null?void 0:Y.value;this.onSelectedHandleChanged(this.selectedHandle);_.jR(this.hostElement,"yt-refit-popups-action")}};
_.y6.Object.defineProperties(p4.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.kW("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.kW(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!SJ6.test(this.selectedHandle)){var Y;return(Y=this.data)==null?void 0:Y.warningText}}}});
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],p4.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],p4.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],p4.prototype,"selectedHandle",void 0);_.Q([_.X(),_.k("design:type",Object)],p4.prototype,"isLoading",void 0);_.Q([_.X(),_.k("design:type",Function)],p4.prototype,"onSelectedHandleChanged",void 0);_.Q([_.nc("#channel-handle-input"),_.k("design:type",Object)],p4.prototype,"handleInput",void 0);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],p4.prototype,"handleUrlPrefix",null);_.Q([_.d("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],p4.prototype,"displayHandle",null);_.Q([_.d("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],p4.prototype,"displayHandleUrl",null);_.Q([_.d("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],p4.prototype,"warningText",null);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],p4.prototype,"darkerDarkTheme",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);p4=_.Q([_.t({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],p4);
_.A(p4,"ytd-handles-claiming-edit-dialog-content",function(){if(YJ1!==void 0)return YJ1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return YJ1=Y},{mode:1});var P7d;var FX=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionButtonOverride={style:"mono",type:"filled",size:"M"};Y.cancelButtonOverride={style:"mono",type:"text",size:"M"};Y.selectButtonDisabled=!1;Y.isLoading=!1;Y.hasSelectedHandleEventListener=!1;Y.selectedHandleChanged=function(S){Y.selectedHandle=S};
return Y};
_.r(FX,_.Z);_.z=FX.prototype;_.z.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.z.onDataChanged=function(){var Y,S;this.selectedHandle=(S=_.g((Y=this.data)==null?void 0:Y.inputField,Oro))==null?void 0:S.handle};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.onCancel=function(){this.selectedHandle="";_.nb(this.hostElement,"yt-close-popup-action",[this.is])};
_.z.onSelectHandle=function(){var Y=this;if(this.selectedHandle!==void 0){var S;((S=this.data)==null?void 0:S.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(P,u){if(u.newHandleUpdateStatus!==void 0&&u.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&u.newHandleUpdateStatus.errorMessage)_.hQ(Y.hostElement,_.Ma(u.newHandleUpdateStatus.errorMessage)),
Y.isLoading=!1;else{var W;if((W=Y.data)==null?0:W.onChannelUpdateSuccess){P=Y.data.onChannelUpdateSuccess;var m,J;if(u=(m=_.g(P,_.fP))==null?void 0:(J=m.popup)==null?void 0:J.handlesClaimingConfirmDialogRenderer)u.handle=_.kW(Y.selectedHandle);Y.ytComponentBehavior.resolveCommand(P);_.nb(Y.hostElement,"yt-close-popup-action",[Y.is])}else Y.isLoading=!1}},
onServerError:function(){var P;Y.content&&((P=Y.content)==null?0:P.handleInput)&&Y.content.handleInput.validate();Y.isLoading=!1;_.hQ(Y.hostElement,_.Td("TRY_AGAIN_LATER"))}}}))}};
_.z.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
FX.prototype.onDataChanged=FX.prototype.onDataChanged;FX.prototype.onSelectedHandleChanged=FX.prototype.onSelectedHandleChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],FX.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],FX.prototype,"actionButtonOverride",void 0);_.Q([_.X(),_.k("design:type",Object)],FX.prototype,"cancelButtonOverride",void 0);_.Q([_.X(),_.k("design:type",Object)],FX.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",String)],FX.prototype,"selectedHandle",void 0);_.Q([_.X(),_.k("design:type",Object)],FX.prototype,"selectButtonDisabled",void 0);_.Q([_.X(),_.k("design:type",Object)],FX.prototype,"isLoading",void 0);_.Q([_.X(),_.k("design:type",Object)],FX.prototype,"hasSelectedHandleEventListener",void 0);_.Q([_.X(),_.k("design:type",Object)],FX.prototype,"handleInput",void 0);
_.Q([_.zY("selectedHandle"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FX.prototype,"onSelectedHandleChanged",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FX.prototype,"onDataChanged",null);_.Q([_.nc("ytd-handles-claiming-edit-dialog-content"),_.k("design:type",Object)],FX.prototype,"content",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],FX.prototype,"ytRendererstamperBehavior",void 0);FX=_.Q([_.t({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],FX);
_.A(FX,"ytd-handles-claiming-edit-dialog-renderer",function(){if(P7d!==void 0)return P7d;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return P7d=Y},{mode:1});var ua_;var sZ=function(){return _.Z.apply(this,arguments)||this};
_.r(sZ,_.Z);_.y6.Object.defineProperties(sZ.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null?0:Y.handle){var S;return _.kW("@"+_.Ma((S=this.data)==null?void 0:S.handle))}}}});
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],sZ.prototype,"formattedHandle",null);_.Q([_.X(),_.k("design:type",Object)],sZ.prototype,"data",void 0);sZ=_.Q([_.t({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],sZ);
_.A(sZ,"ytd-handles-claiming-radio-option-renderer",function(){if(ua_!==void 0)return ua_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ua_=Y},{mode:1});var WWZ;var zvc=/^[\x00-\x7F]+$/,dM=function(){var Y=_.Z.apply(this,arguments)||this;Y.initialRadioIndex="-1";Y.isLoading=!1;Y.darkerDarkTheme=_.f("web_darker_dark_theme");Y.maybeSubmitFeedback=function(){Y.feedbackSurveyRenderer.submitSurvey()};
return Y};
_.r(dM,_.Z);dM.prototype.updateSelectedHandleIndexFromBinding=function(Y){this.selectedRadioIndex=+Y.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(Y)};
dM.prototype.selectedHandleChanged=function(Y){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var S;this.selectedHandle=(S=this.handleInput)==null?void 0:S.value;this.onSelectedHandleChanged(Y)}};
_.y6.Object.defineProperties(dM.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var Y;return this.ytRendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.kW("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.kW(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!zvc.test(this.selectedHandle)){var Y;return(Y=this.data)==null?void 0:Y.warningText}}}});
_.Q([_.X(),_.k("design:type",Object)],dM.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],dM.prototype,"initialRadioIndex",void 0);_.Q([_.X(),_.k("design:type",Number)],dM.prototype,"selectedRadioIndex",void 0);_.Q([_.X(),_.k("design:type",String)],dM.prototype,"selectedHandle",void 0);_.Q([_.X(),_.k("design:type",Object)],dM.prototype,"isLoading",void 0);_.Q([_.X(),_.k("design:type",Function)],dM.prototype,"onSelectedHandleChanged",void 0);
_.Q([_.X(),_.k("design:type",Function)],dM.prototype,"onSelectedRadioIndexChanged",void 0);_.Q([_.nc("#channel-handle-input"),_.k("design:type",Object)],dM.prototype,"handleInput",void 0);_.Q([_.nc("ytd-feedback-survey-renderer"),_.k("design:type",Object)],dM.prototype,"feedbackSurveyRenderer",void 0);_.Q([_.d("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],dM.prototype,"radioButtonLength",null);
_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],dM.prototype,"handleUrlPrefix",null);_.Q([_.d("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],dM.prototype,"displayHandle",null);_.Q([_.d("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],dM.prototype,"displayHandleUrl",null);_.Q([_.d("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],dM.prototype,"warningText",null);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],dM.prototype,"darkerDarkTheme",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);dM=_.Q([_.t({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],dM);
_.A(dM,"ytd-handles-claiming-select-dialog-content",function(){if(WWZ!==void 0)return WWZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return WWZ=Y},{mode:1});var mrB;var lq=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionButtonOverride={style:"mono",type:"filled",size:"M"};Y.cancelButtonOverride={style:"mono",type:"text",size:"M"};Y.initialRadioIndex="-1";Y.selectButtonDisabled=!1;Y.isLoading=!1;Y.selectedRadioIndexChanged=function(S){Y.selectedRadioIndex=Number(S.detail.value)};
Y.selectedHandleChanged=function(S){Y.selectedHandle=S.detail.value};
Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(lq,_.Z);_.z=lq.prototype;_.z.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.z.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.z.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.jR(this.hostElement,"yt-refit-popups-action")};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.nb(this.hostElement,"yt-close-popup-action",[this.is])};
_.z.onSelectHandle=function(){var Y=this;if(this.selectedHandle!==void 0){var S;((S=this.data)==null?void 0:S.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(P,u){if(u.newHandleUpdateStatus!==void 0&&u.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&u.newHandleUpdateStatus.errorMessage)_.hQ(Y.hostElement,_.Ma(u.newHandleUpdateStatus.errorMessage)),
Y.isLoading=!1;else{var W;if((W=Y.data)==null?0:W.onChannelUpdateSuccess){P=Y.data.onChannelUpdateSuccess;u=_.g(P,_.fP);var m;if(u==null?0:(m=u.popup)==null?0:m.handlesClaimingConfirmDialogRenderer)u.popup.handlesClaimingConfirmDialogRenderer.handle=_.kW(Y.selectedHandle);Y.ytComponentBehavior.resolveCommand(P);_.nb(Y.hostElement,"yt-close-popup-action",[Y.is])}else Y.isLoading=!1}},
onServerError:function(){if(Y.selectedRadioIndex===Y.radioButtonLength){var P;Y.content&&((P=Y.content)==null?0:P.handleInput)&&Y.content.handleInput.validate()}Y.isLoading=!1;_.hQ(Y.hostElement,_.Td("TRY_AGAIN_LATER"))}}}))}};
_.z.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var Y,S;this.selectedHandle=(Y=this.content)==null?void 0:(S=Y.handleInput)==null?void 0:S.value}else this.selectedRadioIndex>=0&&((Y=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(Y==null?void 0:Y.handle):this.selectedHandle=void 0)};
_.z.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.z.getRadioItem=function(Y){if(this.radioButtonLength>Y&&Y>=0)return _.g(this.data.radioButton[Y],x71)};
_.y6.Object.defineProperties(lq.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.radioButton)||[]).length}}});
lq.prototype.onSelectedHandleChanged=lq.prototype.onSelectedHandleChanged;lq.prototype.onSelectedHandleIndexChanged=lq.prototype.onSelectedHandleIndexChanged;lq.prototype.onDataChanged=lq.prototype.onDataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],lq.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],lq.prototype,"actionButtonOverride",void 0);_.Q([_.X(),_.k("design:type",Object)],lq.prototype,"cancelButtonOverride",void 0);
_.Q([_.X(),_.k("design:type",Object)],lq.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],lq.prototype,"initialRadioIndex",void 0);_.Q([_.X(),_.k("design:type",Number)],lq.prototype,"selectedRadioIndex",void 0);_.Q([_.X(),_.k("design:type",String)],lq.prototype,"selectedHandle",void 0);_.Q([_.X(),_.k("design:type",Object)],lq.prototype,"selectButtonDisabled",void 0);_.Q([_.X(),_.k("design:type",Object)],lq.prototype,"isLoading",void 0);
_.Q([_.d("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],lq.prototype,"radioButtonLength",null);_.Q([_.nc("ytd-handles-claiming-select-dialog-content"),_.k("design:type",Object)],lq.prototype,"content",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lq.prototype,"onDataChanged",null);
_.Q([_.zY("selectedRadioIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lq.prototype,"onSelectedHandleIndexChanged",null);_.Q([_.zY("selectedHandle"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lq.prototype,"onSelectedHandleChanged",null);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],lq.prototype,"darkerDarkTheme",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],lq.prototype,"ytRendererstamperBehavior",void 0);lq=_.Q([_.t({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],lq);
_.A(lq,"ytd-handles-claiming-select-dialog-renderer",function(){if(mrB!==void 0)return mrB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return mrB=Y},{mode:1});var nwZ;var jT5;var XX=function(){return _.Z.apply(this,arguments)||this};
_.r(XX,_.Z);XX.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],XX.prototype,"data",void 0);XX=_.Q([_.t({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],XX);
_.A(XX,"ytd-hotkey-dialog-section-option-renderer",function(){if(jT5!==void 0)return jT5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return jT5=Y},{mode:1});var JB1;var ZU=function(){return _.Z.apply(this,arguments)||this};
_.r(ZU,_.Z);ZU.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ZU.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ZU.prototype,"data",void 0);ZU=_.Q([_.t({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],ZU);
_.A(ZU,"ytd-hotkey-dialog-section-renderer",function(){if(JB1!==void 0)return JB1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return JB1=Y},{mode:1});var iq=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(iq,_.Z);iq.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],iq.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],iq.prototype,"darkerDarkTheme",void 0);iq=_.Q([_.t({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],iq);
_.A(iq,"ytd-hotkey-dialog-content",function(){if(nwZ!==void 0)return nwZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return nwZ=Y},{mode:1});var B$o;var oV=function(){return _.Z.apply(this,arguments)||this};
_.r(oV,_.Z);oV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var Y=document.querySelector("ytd-hotkey-dialog-content #scrollable");Y&&(Y.dialogElement=this.hostElement.parentElement)};
oV.prototype.onCloseTap=function(){_.nb(this.hostElement,"yt-close-popup-action")};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],oV.prototype,"data",void 0);oV=_.Q([_.t({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],oV);
_.A(oV,"ytd-hotkey-dialog-renderer",function(){if(B$o!==void 0)return B$o;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return B$o=Y},{mode:1});var cBI;var te=function(){return _.Z.apply(this,arguments)||this};
_.r(te,_.Z);te.prototype.onYtServiceRequestError=function(){if(this.blocked){var Y;var S=(Y=this.data)==null?void 0:Y.defaultServiceEndpoint}else{var P;S=(P=this.data)==null?void 0:P.toggledServiceEndpoint}var u;(S=(u=_.g(S,_.BUd))==null?void 0:u.onFailureAction)&&this.ytComponentBehavior.resolveCommand(S);this.updateBlockState(!this.blocked)};
te.prototype.onYtToggleButton=function(Y){this.updateBlockState(Y.detail.toggled)};
te.prototype.updateBlockState=function(Y){if(Y!==this.blocked){var S=this.blockedEntityKey;S&&this.ytdReduxBehavior.dispatch(_.qE("blockStateEntity",S,{key:S,blocked:Y}));this.set("data.isToggled",Y)}};
_.y6.Object.defineProperties(te.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)}}});
te.prototype.onYtToggleButton=te.prototype.onYtToggleButton;te.prototype.onYtServiceRequestError=te.prototype.onYtServiceRequestError;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],te.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],te.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],te.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],te.prototype,"blockedEntityKey",void 0);
_.Q([_.X({selectorArgs:["blockedEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"blockStateEntity",S)}}),
_.k("design:type",Object)],te.prototype,"blockStateEntity",void 0);_.Q([_.d("data","blockStateEntity"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],te.prototype,"blocked",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],te.prototype,"onYtServiceRequestError",null);
_.Q([_.WZ("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],te.prototype,"onYtToggleButton",null);te=_.Q([_.t({is:"ytd-block-button",disableElementRegistration:!0})],te);
_.A(te,"ytd-block-button",function(){if(cBI!==void 0)return cBI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return cBI=Y},
{mode:1});var C7X;var qJc;var Ae=function(){return _.Z.apply(this,arguments)||this};
_.r(Ae,_.Z);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Ae.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ae.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ae.prototype,"data",void 0);Ae=_.Q([_.t({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Ae);
_.A(Ae,"ytd-kids-blocklist-picker-item-renderer",function(){if(qJc!==void 0)return qJc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return qJc=Y},{mode:1});var UZ=function(){return _.Z.apply(this,arguments)||this};
_.r(UZ,_.Z);UZ.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],UZ.prototype,"data",void 0);UZ=_.Q([_.t({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],UZ);
_.A(UZ,"ytd-kids-blocklist-picker-content",function(){if(C7X!==void 0)return C7X;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return C7X=
Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var Rv6;var Q9=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasAnyRequestSucceeded=!1;Y.hasAnyRequestFailed=!1;Y.numPendingRequests=0;return Y};
_.r(Q9,_.Z);_.z=Q9.prototype;_.z.attached=function(){this.hostElement.setAttribute("dialog","")};
_.z.onDoneButtonTap=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.z.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.z.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.z.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.z.onPopupClosed=function(Y){var S,P;if(((S=Y.detail)==null?void 0:(P=S.popup)==null?void 0:P.is)==="tp-yt-paper-dialog"){var u;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((u=this.data)==null?0:u.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.Vc(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Q9.prototype.onPopupClosed=Q9.prototype.onPopupClosed;Q9.prototype.onYtServiceRequestError=Q9.prototype.onYtServiceRequestError;Q9.prototype.onYtServiceRequestCompleted=Q9.prototype.onYtServiceRequestCompleted;Q9.prototype.onYtServiceRequestSent=Q9.prototype.onYtServiceRequestSent;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Q9.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],Q9.prototype,"data",void 0);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q9.prototype,"onYtServiceRequestSent",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q9.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q9.prototype,"onYtServiceRequestError",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Q9.prototype,"onPopupClosed",null);Q9=_.Q([_.t({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Q9);
_.A(Q9,"ytd-kids-blocklist-picker-renderer",function(){if(Rv6!==void 0)return Rv6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Rv6=Y},{mode:1});var xr1;var bCI;var kH=function(){return _.Z.apply(this,arguments)||this};
_.r(kH,_.Z);kH.prototype.setTip=function(Y){var S=this;this.data&&(this.tip=WeI(P4X.getInstance(),Y,this.data),_.ky(this,function(){_.ms(S.hostElement,"yt-refit")}))};
kH.prototype.clearTip=function(){this.tip=void 0};
kH.prototype.computeHidden=function(Y){return!Y};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],kH.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.k("design:type",Boolean)],kH.prototype,"hidden",void 0);_.Q([_.X(),_.k("design:type",Object)],kH.prototype,"tip",void 0);kH=_.Q([_.t({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],kH);
_.A(kH,"ytd-menu-popup-tip-renderer",function(){if(bCI!==void 0)return bCI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);
return bCI=Y},{mode:1});var T$1;var M0=function(){var Y=_.Z.apply(this,arguments)||this;Y.useIcons=!1;Y.systemIcons=_.f("kevlar_system_icons");Y.useListItemStyles=_.f("web_list_item_style_for_menu_items");return Y};
_.r(M0,_.Z);_.z=M0.prototype;_.z.onFocus=function(){var Y;(Y=_.I(this.hostElement).querySelector("tp-yt-paper-item"))==null||Y.focus()};
_.z.onTap=function(){var Y=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(Y&&_.g(Y,_.qT))this.componentBehavior.resolveCommand(Y),this.updateToggledStateInEntity();else if(Y){this.componentBehavior.resolveCommand(Y)||_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}});var S;((S=_.g(Y,_.xo))==null?void 0:S.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.z.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.z.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.z.updateToggledStateInEntity=function(){var Y=this.data.toggleMenuServiceItemEntityKey,S=!this.data.isToggled;Y&&this.ytdReduxBehavior.dispatch(_.qE("toggleMenuServiceItemEntity",Y,{key:Y,isToggled:S}))};
_.z.computeIcon=function(Y,S,P){return(Y=Y?P:S)&&Y.iconType?_.u2(Y.iconType):""};
_.z.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.z.isIconActive=function(Y){return!_.f("toggle_menu_active_icon_killswitch")&&Y};
_.y6.Object.defineProperties(M0.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((Y=this.data)==null?0:Y.isToggled)?(S=this.data)==null?void 0:S.toggledText:(P=this.data)==null?void 0:P.defaultText}}});
M0.prototype.toggledStateEntityChanged=M0.prototype.toggledStateEntityChanged;M0.prototype.onYtServiceRequestCompleted=M0.prototype.onYtServiceRequestCompleted;M0.prototype.onTap=M0.prototype.onTap;M0.prototype.onFocus=M0.prototype.onFocus;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],M0.prototype,"componentBehavior",void 0);
_.Q([_.p(_.Gn),_.k("design:type",Object)],M0.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],M0.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],M0.prototype,"useIcons",void 0);_.Q([_.X({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.k("design:type",String)],M0.prototype,"icon",void 0);
_.Q([_.X({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"toggleMenuServiceItemEntity",S)}}),
_.k("design:type",Object)],M0.prototype,"toggleMenuServiceItemEntity",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],M0.prototype,"systemIcons",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],M0.prototype,"useListItemStyles",void 0);_.Q([_.WZ("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],M0.prototype,"onFocus",null);
_.Q([_.d("data.isToggled"),_.k("design:type",Object),_.k("design:paramtypes",[])],M0.prototype,"toggleButtonText",null);_.Q([_.WZ("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],M0.prototype,"onTap",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],M0.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.zY("toggleMenuServiceItemEntity.isToggled","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],M0.prototype,"toggledStateEntityChanged",null);M0=_.Q([_.t({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],M0);
_.A(M0,"ytd-toggle-menu-service-item-renderer",function(){if(T$1!==void 0)return T$1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return T$1=Y},{mode:1});var KW_;var y9=function(){return _.Z.apply(this,arguments)||this};
_.r(y9,_.Z);y9.prototype.onFocus=function(){var Y;(Y=_.I(this.hostElement).querySelector("tp-yt-paper-item"))==null||Y.focus()};
_.y6.Object.defineProperties(y9.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Bx(this.data.iconUrl)}}});
y9.prototype.onFocus=y9.prototype.onFocus;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],y9.prototype,"rendererBehavior",void 0);_.Q([_.p(_.eo.YtEndpointBehavior),_.k("design:type",Object)],y9.prototype,"ytEndpointBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],y9.prototype,"data",void 0);_.Q([_.WZ("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],y9.prototype,"onFocus",null);
_.Q([_.d("data.iconUrl"),_.k("design:type",Object),_.k("design:paramtypes",[])],y9.prototype,"imageSource",null);y9=_.Q([_.t({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],y9);
_.A(y9,"ytd-menu-custom-icon-item-renderer",function(){if(KW_!==void 0)return KW_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return KW_=Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});_.AL(_.TC,"yt-list-item-view-model",{props:{data:_.wm,isMenuItem:_.wm,isCompact:_.wm,onTap:_.tL,trailingAccessory:_.tL,hideSelectionTextChevron:_.wm,disabled:_.wm,inPopup:_.wm,disableHorizontalPadding:_.wm,isOverlay:_.wm}});var N0=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableBackdropFilter=_.f("web_disable_backdrop_filter");return Y};
_.r(N0,_.Z);_.z=N0.prototype;
_.z.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"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.z.computeAriaLabel=function(Y){return Y};
_.z.onPopupOpened=function(){this.items.selected=0;for(var Y=_.n(_.I(this.items).children),S=Y.next();!S.done;S=Y.next())S.value.popupPositionTarget=this.positionTarget;if(Y=this.popupTip||void 0)Y.setTip(this.source||""),this.source=void 0;this.veData&&(Y=_.pM())&&_.UV(Y,[this.veData])};
_.z.onPopupClosed=function(){var Y=this.popupTip||void 0;Y&&Y.clearTip()};
_.z.onIronActivate=function(Y){this.shouldPersist(Y)||_.nb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(Y=_.pM())&&_.ko(Y,this.veData)};
_.z.shouldPersist=function(Y){var S,P;if(((S=Y.detail)==null?void 0:S.selected)===void 0||(P=this.data)==null||!P.items)return!1;var u,W;return!((W=(u=this.data.items[Y.detail.selected])==null?void 0:u.toggleMenuServiceItemRenderer)==null||!W.persistentOnMenuPopup)};
_.z.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(Y){return Y.menuNavigationItemRenderer?!!Y.menuNavigationItemRenderer.icon:Y.menuServiceItemRenderer?!!Y.menuServiceItemRenderer.icon:Y.menuConditionalServiceItemRenderer?!!Y.menuConditionalServiceItemRenderer.icon:Y.menuConditionalNavigationItemRenderer?!!Y.menuConditionalNavigationItemRenderer.icon:Y.toggleMenuServiceItemRenderer?!!Y.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
N0.prototype.onPopupClosed=N0.prototype.onPopupClosed;N0.prototype.onPopupOpened=N0.prototype.onPopupOpened;_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],N0.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],N0.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],N0.prototype,"veData",void 0);_.Q([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.k("design:type",String)],N0.prototype,"ariaLabel",void 0);_.Q([_.X({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],N0.prototype,"useIcons",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],N0.prototype,"disableBackdropFilter",void 0);_.Q([_.nc("#items"),_.k("design:type",Object)],N0.prototype,"items",void 0);_.Q([_.nc("ytd-menu-popup-tip-renderer"),_.k("design:type",Object)],N0.prototype,"popupTip",void 0);_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N0.prototype,"onPopupOpened",null);
_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N0.prototype,"onPopupClosed",null);N0=_.Q([_.t({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],N0);
_.A(N0,"ytd-menu-popup-renderer",function(){if(xr1!==void 0)return xr1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return xr1=Y},{mode:1});var Ew1;var fqd=_.AI(function(Y){Y=_.tI(Y,{icon:void 0});var S=Y.data;Y=Y.icon;var P=function(){return S().iconBadgeText},u={},W=_.Si("yt-spec-icon-badge-shape",function(){a:switch(S().iconBadgeType){case "notification":var m="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":m="yt-spec-icon-badge-shape--type-cart";break a;default:m=""}return m},function(){a:switch(S().iconBadgeStyle){case "overlay":var m="yt-spec-icon-badge-shape--style-overlay";
break a;default:m=""}return m},(u["yt-spec-icon-badge-shape--text-size-small"]=function(){var m=P();
return!!((m==null?0:m.length)&&m.length>2)},u));
return _.R("yt-icon-badge-shape",null,_.R(_.gw,{cond:Y,then:function(m){return _.R("div",{class:W},_.R("div",{class:"yt-spec-icon-badge-shape__icon"},_.R(_.BX,{icon:m})),_.R(_.gw,{cond:P,then:function(J){return _.R("div",{class:"yt-spec-icon-badge-shape__badge"},J)}}))}}))},"Vf");
fqd.idomCompat=!0;_.AL(fqd,"yt-icon-badge-shape",{props:{data:_.wm,icon:_.wm}});var Hc=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};Y.unseenCount=0;Y.isOverlay=!1;return Y};
_.r(Hc,_.Z);_.z=Hc.prototype;_.z.attached=function(){var Y=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(S){Y.onServiceWorkerMessage(S)})};
_.z.onDataChanged=function(){this.isAttached&&!this.JSC$18111_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18111_lastData=this.data};
_.z.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.z.computeIcon=function(){var Y,S;return(Y=this.data)==null?void 0:(S=Y.icon)==null?void 0:S.iconType};
_.z.onServiceWorkerMessage=function(Y){Y.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.z.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.g(this.data.updateUnseenCountEndpoint,_.xo)&&_.g(this.data.updateUnseenCountEndpoint,_.xo).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.z.handleUpdateNotificationsUnseenCountAction=function(Y){var S=this;Y=_.g(Y,m7u);Y!=null&&Y.unseenCount&&Y.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(Y.unseenCount),_.wc.addLowPriorityJob(function(){S.data.updateUnseenCountEndpoint&&S.ytComponentBehavior.resolveCommand(S.data.updateUnseenCountEndpoint)},Y.timeoutMs))};
_.z.onClick=function(){_.ms(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var Y=_.jR(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),S=this.data.menuRequest;Y&&Y.length===1&&Y[0]?_.nb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):S&&this.ytComponentBehavior.resolveCommand(S)};
_.z.handleTopbarMenuClosedAction=function(Y){Y==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.z.toggleIconState=function(Y){this.iconButton&&(this.iconButton.pressed=Y)};
_.z.sendUnseenCountRequest=function(Y){var S=this;_.hp(_.wc,function(){S.ytComponentBehavior.resolveCommand(Y)})};
_.z.updateCountUI=function(Y){this.set("unseenCount",Y<9?Y:"9+")};
_.y6.Object.defineProperties(Hc.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Hc.prototype.handleUpdateNotificationsUnseenCountAction=Hc.prototype.handleUpdateNotificationsUnseenCountAction;Hc.prototype.onDataChanged=Hc.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Hc.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.sL),_.k("design:type",Object)],Hc.prototype,"ytdOpenPopupBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Hc.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Hc.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Hc.prototype,"unseenCount",void 0);_.Q([_.X(),_.k("design:type",Object)],Hc.prototype,"isOverlay",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],Hc.prototype,"showTooltips",void 0);_.Q([_.nc("yt-icon-button"),_.k("design:type",Object)],Hc.prototype,"iconButton",void 0);
_.Q([_.d("unseenCount"),_.k("design:type",Object),_.k("design:paramtypes",[])],Hc.prototype,"showNotificationCount",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hc.prototype,"onDataChanged",null);_.Q([_.WZ("yt-update-notifications-unseen-count-action"),_.k("design:type",Function),_.k("design:paramtypes",[Object]),_.k("design:returntype")],Hc.prototype,"handleUpdateNotificationsUnseenCountAction",null);
Hc=_.Q([_.t({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Hc);
_.A(Hc,"ytd-notification-topbar-button-renderer",function(){if(Ew1!==void 0)return Ew1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Ew1=Y},{mode:_.OX("kevlar_poly_si_batch_j025")?1:2});var gw_;var V9=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return Y};
_.r(V9,_.Z);V9.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}}}}}};
V9.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
V9.prototype.onDarkModeToggled=function(Y){this.dark=Y};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],V9.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],V9.prototype,"data",void 0);_.Q([_.X({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],V9.prototype,"dark",void 0);
V9=_.Q([_.t({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],V9);
_.A(V9,"yt-pdg-buy-flow-header-renderer",function(){if(gw_!==void 0)return gw_;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return gw_=Y},{mode:1});var $rX;var rBZ;var ey=function(){var Y=_.Z.apply(this,arguments)||this;Y.immediateValue=0;Y.isDarkTheme=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(ey,_.Z);_.z=ey.prototype;_.z.created=function(){_.sm.requestAvailability()};
_.z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.z.dataChanged=function(){var Y=_.I(this.hostElement).querySelector("#color-slider");Y.immediateValue&&this.updateSliderKnobAndGradientStyles(Y.immediateValue);this.data.notches[0].knobColorArgb&&_.PZ(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.hK(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.X3("HTML_DIR")==="rtl"&&_.I(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.z.onSliderImmediateChange=function(){var Y=_.I(this.hostElement).querySelector("#color-slider");Y.dragging&&(Y.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(Y.immediateValue),this.updateSliderKnobAndGradientStyles(Y.immediateValue)),this.updateSliderAria())};
_.z.onSliderChange=function(){var Y=_.I(this.hostElement).querySelector("#color-slider");Y.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(Y.immediateValue),this.updateSliderKnobAndGradientStyles(Y.immediateValue));this.updateSliderAria()};
_.z.updateSliderAria=function(){var Y=_.I(this.hostElement).querySelector("#color-slider"),S=_.I(this.hostElement).querySelector("#color-slider");S=_.Ma(this.data.notches[S.immediateValue].tierValue);_.Ih()&&_.ms(this.hostElement,"iron-announce",{text:S});Y.setAttribute("aria-valuetext",S)};
_.z.updateSuperThanksSelectedTierEntity=function(Y){if(Y!==this.immediateValue){var S,P,u=this==null?void 0:(S=this.data)==null?void 0:(P=S.superThanksSelectedTierEntity)==null?void 0:P.key;u&&u.length>0&&this.ytdReduxBehavior.dispatch(_.qE("superThanksSelectedTierEntity",u,{key:u,index:Y}))}};
_.z.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.z.updateSliderKnobAndGradientStyles=function(Y){this.immediateValue=Y;Y=this.data.notches[Y];if(Y==null?0:Y.knobColorArgb)var S={"--ytd-pdg-color-slider-knob-color":_.hK(Y.knobColorArgb)};(Y==null?0:Y.linearGradientCssStyle)&&S!==null&&(S=Object.assign({},S,{"--ytd-pdg-color-slider-active-color":Y==null?void 0:Y.linearGradientCssStyle}));S!==null&&_.PZ(this.hostElement,S)};
ey.prototype.onSliderChange=ey.prototype.onSliderChange;ey.prototype.onSliderImmediateChange=ey.prototype.onSliderImmediateChange;ey.prototype.dataChanged=ey.prototype.dataChanged;_.Q([_.X(),_.k("design:type",Object)],ey.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],ey.prototype,"immediateValue",void 0);_.Q([_.X(),_.k("design:type",Number)],ey.prototype,"maxMarkers",void 0);
_.Q([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:WU6}),_.k("design:type",Object)],ey.prototype,"superThanksSelectedTierEntity",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],ey.prototype,"isDarkTheme",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],ey.prototype,"ytdReduxBehavior",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ey.prototype,"dataChanged",null);
_.Q([_.WZ("immediate-value-change"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ey.prototype,"onSliderImmediateChange",null);_.Q([_.WZ("change"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ey.prototype,"onSliderChange",null);ey=_.Q([_.t({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],ey);
_.A(ey,"ytd-pdg-color-slider-renderer",function(){if(rBZ!==void 0)return rBZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return rBZ=Y},{mode:1});var G$B;var hvZ;var OZ=null;
_.Kc({is:"ytd-comment-input",_template:function(){if(hvZ!==void 0)return hvZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return hvZ=Y},
behaviors:[_.P79.YtHostElementBehavior,_.x1,_.rm.YtComponentBehavior,_.om.YtRendererstamperBehavior,_.oKL.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 _.GV}},
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",_.up(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;_.mT();this.focus()},
detached:function(){document.removeEventListener("tap",_.up(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(Y){Y=Y.detail;Y=Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId;var S=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(S,Y);this.maybeUpdateTextDirection_();_.ms(this.hostElement,"input")},
getInputRange_:function(){var Y=_.xa();if(Y){Y=Y.getBrowserRangeObject();for(var S=Y.commonAncestorContainer;S;){if(S===this.getEditableTextArea_())return Y;S=S.parentNode}}Y=this.getEditableTextArea_();Y=_.aM(Y,Y.childNodes.length);Y.select();return Y.getBrowserRangeObject()},
insertTextWithEmojis_:function(Y,S,P){(S=this.emojiManager.createDocumentFragment(S,!0,!1,P===void 0?!0:P))&&S.childNodes.length!==0&&(Y.collapsed||Y.deleteContents(),P=S.lastChild,Y.insertNode(S),_.FZs(P).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var Y=_.xa();if(Y){var S=Y.JSC$9117_getStartNode(),P=Y.JSC$9117_getEndNode();if(QA_(S)&&QA_(P)){var u=Y.JSC$9117_getStartOffset(),W;if(_.BW&&S.nodeType===Node.ELEMENT_NODE&&(W=_.$IU(S)))_.aM(W,0).select();else{W=Mm(S)?S:_.rh(S,Mm);var m=Mm(P)?P:_.rh(P,Mm);if(W||m)if(Y.isCollapsed()){if(S.nodeType===Node.TEXT_NODE){Y=!0;u===S.length&&(Y=!1);if(OZ==="end"||OZ==="right")Y=!1;S=S.parentNode;Y=[].concat(_.cz(S.parentNode.childNodes)).indexOf(S)+(Y?0:1);_.aM(S.parentNode,Y).select()}}else W?
W.previousSibling&&W.previousSibling.length>0?_.Lr(P,Y.JSC$9117_getEndOffset(),W.previousSibling,W.previousSibling.length-1).select():(S=document.createTextNode("\u200b"),W.parentNode.insertBefore(S,W),_.Lr(P,Y.JSC$9117_getEndOffset(),S,0).select()):m&&(m.nextSibling&&m.nextSibling.length>0?_.Lr(S,Y.JSC$9117_getStartOffset(),m.nextSibling,1).select():(P=document.createTextNode("\u200b"),m.parentNode.insertBefore(P,m.nextSibling),_.Lr(S,Y.JSC$9117_getStartOffset(),P,P.length).select()));OZ=null}}else OZ=
null}else OZ=null},
leftKeyPressed_:function(){OZ="left"},
rightKeyPressed_:function(){OZ="right"},
endKeyPressed_:function(){OZ="end"},
maybeDeleteChip_:function(){var Y=VRB(!0);if(Y){var S=_.xa(),P=S.JSC$9117_getStartNode();S=S.JSC$9117_getStartOffset();_.Gf(P,S,Y,Y.childNodes.length).select()}},
maybeBackspaceChip_:function(){var Y=VRB(!1);if(Y){var S=_.xa(),P=S.JSC$9117_getStartNode();S=S.JSC$9117_getStartOffset();_.Gf(P,S,Y,0).select()}},
maybeBackspaceChipWordMode_:function(Y){var S=_.xa();if(S.isCollapsed()){var P=S.JSC$9117_getStartNode();S=S.JSC$9117_getStartOffset();var u=eB1(P,S,!0);u&&(_.Gf(P,S,u,0).select(),document.execCommand("delete"),Y.preventDefault(),Y.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(Y){var S=_.xa();if(S.isCollapsed()){var P=S.JSC$9117_getStartNode();S=S.JSC$9117_getStartOffset();var u=eB1(P,S,!1);u&&(_.Gf(P,S,u,u.childNodes.length).select(),document.execCommand("delete"),Y.preventDefault(),Y.stopImmediatePropagation())}},
onContentClick:function(Y){Y.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(Y){Y.defaultPrevented||Y.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Mm(Y.target)&&Y.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.I(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.I(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(Y,S){Y=MR1(Y,this.emojiManager,S).cloneNode(!0);for(S=Y.firstChild;S;)if(S.nodeType!==1)S=S.nextSibling;else switch(S.tagName){case "BR":var P=_.aL();_.L5h(P,S);S=P.nextSibling;break;case "DIV":(P=S.lastChild)&&S.nextSibling&&_.Fs(_.aL(),P);S.previousSibling&&(S.previousSibling.nodeType===1||S.previousSibling.nodeType===3&&!S.previousSibling.textContent.endsWith("\n"))&&_.pX(_.aL(),S);P&&P.nodeName==="BR"&&_.jL(P);P=S;S.hasChildNodes()?(S=S.firstChild,
_.w6u(P)):(S=S.nextSibling,_.jL(P));break;default:S=S.nextSibling}return ObI(Y)},
setTextAreaValue:function(Y){Y||(Y="");var S=this.getEditableFormattedString_();S.text="";this.getEditableTextArea_().innerText="";typeof Y==="string"&&(Y={runs:[{text:Y}]});S.text=Y},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();OZ=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var Y=this.getEditableTextArea_();Y&&(_.aM(Y,Y.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.X3("HTML_DIR")==="rtl"){var Y=this.getEditableTextArea_(),S=this.getTextAreaValue()!==""?"auto":"rtl";Y.setAttribute("dir",S)}},
handleInputEvent_:function(){var Y=null;if(this.isEmojiButtonDisplayed){var S=this.getInputRange_();S&&(Y=this.emojiInput.retrieveTextBeforeRange(S))}this.insertText_(Y,!0);this.updateCharCount_();Y=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=Y.scrollHeight>Y.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var Y=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:Y})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(Y){this.isEmojiButtonDisplayed&&(Y.preventDefault(),Y.stopImmediatePropagation(),Y=Y.clipboardData.getData("text/plain"),this.insertText_(Y,!1,!1),_.ms(this.hostElement,"input"))},
insertText_:function(Y,S,P){S=S===void 0?!1:S;P=P===void 0?!0:P;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&Y){var u=this.getInputRange_().cloneRange();this.emojiManager&&u&&(S&&this.emojiInput.offsetStartOfRangeBy(u,Y.length),this.insertTextWithEmojis_(u,Y,P),kd_(this.getEditableTextArea_().lastChild)||(u=this.getInputRange_().cloneRange()),u&&(this.emojiInput.updateSuggestions(u,Y),this.updateSuggestionOffset_(u)))}},
getSimpleString:_.Ma,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(Y){return Y?"focused":"not-focused"},
computePlaceholderText_:function(Y){return this.getSimpleString(Y)},
computeEditableText_:function(Y){return this.getSimpleString(Y)},
onPrefilledContentDismissed_:function(Y){Y.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(Y,S){Y?this.fire("yt-autonav-pause-focus"):S!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(Y){var S=this.getEditableTextArea_();[].concat(_.cz(Y.dataTransfer.items)).forEach(function(P){P.kind==="string"&&P.type.match("^text/plain")&&P.getAsString(function(u){S.appendChild(document.createTextNode(u))})});
Y.preventDefault()},
preventDefault_:function(Y){Y.preventDefault()},
onSuggestionInsert_:function(Y){this.insertTextWithEmojis_(Y.detail.range,Y.detail.text)},
onEmojiSuggestionClick_:function(Y){this.emojiInput.insertSuggestion(Y.detail)},
updateSuggestionOffset_:function(Y){if(this.emojiInput&&_.I(this.emojiInput).querySelector("#dropdown")){var S=this.getEditableTextArea_().getBoundingClientRect().bottom,P=Y.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(S-P)+5;S=this.getEditableTextArea_().getBoundingClientRect().left;Y=Y.getBoundingClientRect().left-S;_.I(this.emojiInput).querySelector("#dropdown").style.marginLeft=Y+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.lX("yt-post"));return this.localStorage}});var Yz=function(){var Y=_.Z.apply(this,arguments)||this;Y.currentCommentOptionIndex=0;Y.isEmojiPickerDisplayed=!1;Y.emojiManager=_.GV;Y.isUgcEmpty=!1;Y.userGeneratedCommentChangedHandler=function(){_.ms(Y.hostElement,"ytd-pdg-user-generated-comment-changed");Y.isEmojiYtdCommentInputEnabled&&(Y.isUgcEmpty=!Y.ytdCommentInputEl.getTextAreaValue())};
Y.pasteHandler=function(S){S.preventDefault();S.stopImmediatePropagation();var P;if(S=(P=S.clipboardData)==null?void 0:P.getData("text/plain"))P=document.getSelection().getRangeAt(0),P.collapsed||P.deleteContents(),S=document.createTextNode(S),P.insertNode(S),P.selectNodeContents(S),P.collapse(!1),S=window.getSelection(),S.removeAllRanges(),S.addRange(P)};
Y.onDocumentClick=function(S){if(Y.isEmojiPickerDisplayed){var P,u,W;!(S.target instanceof Node)||(P=S.composedPath())!=null&&P.includes(Y.editableTextEl)||(u=S.composedPath())!=null&&u.includes(Y.emojiButtonEl)||(W=S.composedPath())!=null&&W.includes(Y.emojiPickerEl)||(Y.isEmojiPickerDisplayed=!1)}};
return Y};
_.r(Yz,_.Z);_.z=Yz.prototype;_.z.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.z.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.z.detached=function(){var Y;(Y=this.contentEl)==null||Y.removeEventListener("input",this.userGeneratedCommentChangedHandler);var S;(S=this.contentEl)==null||S.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.z.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.z.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var Y;this.contentEl.textContent=this.rendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.z.reloadEmojis=function(){this.emojiPickerEl&&_.g(this.emojiPicker,_.gqt)&&this.emojiPickerEl.updateEmojiCategories()};
_.z.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.PZ(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.z.handleBackgroundColorStyling=function(){var Y;if((Y=this.currentCommentOption)==null?0:Y.commentBackgroundColorArgb){var S;_.PZ(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.hK((S=this.currentCommentOption)==null?void 0:S.commentBackgroundColorArgb)})}else _.PZ(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.z.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var Y;(Y=this.contentEl)==null||Y.focus()}};
_.z.onEditButtonClick=function(Y){var S=document.getSelection();S&&this.contentEl&&(Y.stopPropagation(),Y.preventDefault(),S.selectAllChildren(this.contentEl),S.collapseToEnd())};
_.z.onContentDrop=function(Y){var S=this;if(Y.dataTransfer){Y=_.n(Y.dataTransfer.items);for(var P=Y.next();!P.done;P=Y.next())P=P.value,P.kind==="string"&&P.type.match("^text/plain")&&P.getAsString(function(u){var W;(W=S.contentEl)==null||W.appendChild(document.createTextNode(u))})}};
_.z.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.z.getUserGeneratedCommentText=function(){var Y,S=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(Y=this.contentEl)==null?void 0:Y.textContent;return S?S.trim():""};
_.z.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.z.onEmojiSelect=function(Y){this.ytdCommentInputEl.onEmojiSelect(Y)};
_.y6.Object.defineProperties(Yz.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.currentCommentOption)==null||!Y.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;if(_.g((Y=this.currentCommentOption)==null?void 0:Y.chipRenderer,_.wmd)){var S;return _.g((S=this.currentCommentOption)==null?void 0:S.chipRenderer,_.wmd)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var Y,S;return((Y=this.data)==null?0:Y.commentOptionRenderers)?_.g((S=this.data)==null?void 0:S.commentOptionRenderers[this.superThanksSelectedTierEntity.index],pY6):void 0}var P,u;return((P=this.data)==null?0:P.commentOptionRenderers)?_.g((u=this.data)==null?void 0:u.commentOptionRenderers[this.currentCommentOptionIndex],pY6):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var Y;return this.rendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var Y;return this.rendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(S=_.g((Y=this.data)==null?void 0:Y.commentDialog,_.Rkt))==null?void 0:S.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(S=_.g((Y=this.data)==null?void 0:Y.commentDialog,_.Rkt))==null?void 0:S.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(S=_.g((Y=this.data)==null?void 0:Y.commentDialog,_.Rkt))==null?void 0:S.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(S=_.g((Y=this.data)==null?void 0:Y.commentDialog,_.Rkt))==null?void 0:S.emojiPicker;if(!_.g(P,_.gqt)||!_.g(P,_.gqt).categories)return!1;Y=function(m){return m.emojiPickerCategoryRenderer?m.emojiPickerCategoryRenderer.emojiIds&&m.emojiPickerCategoryRenderer.emojiIds.length>0:m.emojiPickerUpsellCategoryRenderer?m.emojiPickerUpsellCategoryRenderer.emojis&&m.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var u,W;return((u=_.g(P,_.gqt))==null?0:(W=u.categories)==null?0:W.find(Y))?!0:!1}}});
Yz.prototype.onEmojiSelect=Yz.prototype.onEmojiSelect;Yz.prototype.dataChanged=Yz.prototype.dataChanged;Yz.prototype.currentCommentOptionChanged=Yz.prototype.currentCommentOptionChanged;_.Q([_.p(_.Gn),_.k("design:type",Object)],Yz.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Yz.prototype,"rendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Yz.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.nc("#content-dom-if"),_.k("design:type",_.fc)],Yz.prototype,"contentDomIfEl",void 0);_.Q([_.nc("#content-no-emojis"),_.k("design:type",HTMLElement)],Yz.prototype,"contentEl",void 0);_.Q([_.nc("#container"),_.k("design:type",HTMLElement)],Yz.prototype,"containerEl",void 0);_.Q([_.nc("#comment-chip-container"),_.k("design:type",HTMLElement)],Yz.prototype,"paidCommentChipContainerEl",void 0);_.Q([_.nc("#text-input"),_.k("design:type",HTMLElement)],Yz.prototype,"editableTextEl",void 0);
_.Q([_.nc("#emoji-button"),_.k("design:type",HTMLElement)],Yz.prototype,"emojiButtonEl",void 0);_.Q([_.nc("#emoji-picker > yt-emoji-picker-renderer"),_.k("design:type",Object)],Yz.prototype,"emojiPickerEl",void 0);_.Q([_.nc("#text-input > ytd-comment-input"),_.k("design:type",Object)],Yz.prototype,"ytdCommentInputEl",void 0);_.Q([_.X(),_.k("design:type",Object)],Yz.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Yz.prototype,"currentCommentOptionIndex",void 0);
_.Q([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:WU6}),_.k("design:type",Object)],Yz.prototype,"superThanksSelectedTierEntity",void 0);_.Q([_.X(),_.k("design:type",Object)],Yz.prototype,"isEmojiPickerDisplayed",void 0);_.Q([_.X(),_.k("design:type",Object)],Yz.prototype,"emojiManager",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Yz.prototype,"isUgcEmpty",void 0);
_.Q([_.zY("currentCommentOption"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yz.prototype,"currentCommentOptionChanged",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yz.prototype,"dataChanged",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Yz.prototype,"isEmojiYtdCommentInputEnabled",null);
_.Q([_.d("data.title"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yz.prototype,"title",null);_.Q([_.d("data.authorText"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yz.prototype,"channelName",null);_.Q([_.d("data.commentOptionRenderers","currentCommentOption"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Yz.prototype,"shouldShowPaidCommentChipRenderer",null);
_.Q([_.d("data.commentOptionRenderers","currentCommentOption"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yz.prototype,"paidCommentChipRenderer",null);_.Q([_.d("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yz.prototype,"currentCommentOption",null);
_.Q([_.d("data.defaultCommentText","superThanksSelectedTierEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yz.prototype,"commentText",null);_.Q([_.d("data.placeholderText"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yz.prototype,"placeholderText",null);_.Q([_.d("data.commentDialog.commentDialogRenderer.editableText"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yz.prototype,"editableText",null);
_.Q([_.d("data.commentDialog.commentDialogRenderer.emojiButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yz.prototype,"emojiButton",null);_.Q([_.d("data.commentDialog.commentDialogRenderer.emojiPicker"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yz.prototype,"emojiPicker",null);
_.Q([_.d("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Yz.prototype,"isEmojiButtonDisplayed",null);_.Q([_.WZ("yt-emoji-select"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Yz.prototype,"onEmojiSelect",null);Yz=_.Q([_.t({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Yz);
_.A(Yz,"ytd-pdg-comment-preview-renderer",function(){if(G$B!==void 0)return G$B;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return G$B=Y},{mode:2});var vwX;var Sn=function(){var Y=_.Z.apply(this,arguments)||this;Y.selected=!1;return Y};
_.r(Sn,_.Z);_.z=Sn.prototype;_.z.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.z.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.z.dataChanged=function(){this.data&&(_.Hq(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.PZ(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.hK(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.hK(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.z.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.z.onClick=function(){this.logClick()};
_.z.onKeyboardSelect=function(){_.ms(this.hostElement,"tap");this.onClick()};
_.z.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Sn.prototype.onClick=Sn.prototype.onClick;Sn.prototype.selectedChanged=Sn.prototype.selectedChanged;Sn.prototype.dataChanged=Sn.prototype.dataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Sn.prototype,"componentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.x1),_.k("design:type",Object)],Sn.prototype,"ironA11yKeysBehavior",void 0);
_.Q([_.p(_.sX),_.k("design:type",Object)],Sn.prototype,"ironSelectableBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Sn.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Sn.prototype,"shownThumbnail",void 0);_.Q([_.X(),_.k("design:type",Object)],Sn.prototype,"basePriceText",void 0);_.Q([_.X(),_.k("design:type",Object)],Sn.prototype,"purchaseCommand",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Sn.prototype,"selected",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sn.prototype,"dataChanged",null);_.Q([_.zY("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sn.prototype,"selectedChanged",null);_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sn.prototype,"onClick",null);
Sn=_.Q([_.t({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Sn);
_.A(Sn,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(vwX!==void 0)return vwX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return vwX=Y},{mode:1});var PI=function(){var Y=_.Z.apply(this,arguments)||this;Y.selectedItemIndex=0;Y.buyButtonDisabled=!1;return Y};
_.r(PI,_.Z);_.z=PI.prototype;
_.z.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]]"}}}}}};
_.z.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var Y;var S=(Y=_.g(this.data.colorSlider,wY6))==null?void 0:Y.notches[this.selectedItemIndex].purchaseCommand}else{var P;S=(P=_.g(this.data.selectableItemButtons[this.selectedItemIndex],sSd))==null?void 0:P.purchaseCommand}if(S){Y=_.g(S,_.Yem);Y.productData||(Y.productData={});var u;Y.productData={pdgData:{commentMessageText:(u=this.commentPreviewRenderer)==null?void 0:u.getUserGeneratedCommentText()}};
_.ms(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(S)}}};
_.z.dataChanged=function(){if(this.data){_.GV.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.f5f(_.GV,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.GV.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var Y;this.buyButtonDisabled=!((Y=_.g(this.data.commentPreview,Flo))==null||!Y.placeholderText);this.updatePriceSelectorStatus();var S;if((S=this.data)==null?0:S.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;Y=[];this.data.preloadImages&&(Y=this.data.preloadImages);
Y=Y.map(function(P){return _.UD(P.thumbnails,1920)});
Y=_.n(Y);for(S=Y.next();!S.done;S=Y.next())(S=S.value)&&_.Frh(S).thenCatch(function(){_.sf(Error("ll"))})}};
_.z.superThanksSelectedTierEntityChanged=function(){var Y;(this==null?void 0:(Y=this.superThanksSelectedTierEntity)==null?void 0:Y.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.z.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.z.updatePriceSelectorStatus=function(){this.isColorSlider?(_.I(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.I(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.I(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.I(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.z.closeBuyFlow=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.z.onUserGeneratedContentChanged=function(){var Y;this.buyButtonDisabled=!((Y=this.commentPreviewRenderer)==null?0:Y.getUserGeneratedCommentText())};
_.z.updateSelectedItemIndexFromBinding=function(Y){this.selectedItemIndex=Y.detail.value};
_.y6.Object.defineProperties(PI.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.disclaimerText)}}});
PI.prototype.onUserGeneratedContentChanged=PI.prototype.onUserGeneratedContentChanged;PI.prototype.closeBuyFlow=PI.prototype.closeBuyFlow;PI.prototype.selectedItemIndexChanged=PI.prototype.selectedItemIndexChanged;PI.prototype.superThanksSelectedTierEntityChanged=PI.prototype.superThanksSelectedTierEntityChanged;PI.prototype.dataChanged=PI.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],PI.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],PI.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],PI.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],PI.prototype,"selectedItemIndex",void 0);_.Q([_.X(),_.k("design:type",Boolean)],PI.prototype,"isColorSlider",void 0);
_.Q([_.X(),_.k("design:type",Object)],PI.prototype,"buyButtonDisabled",void 0);_.Q([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:WU6}),_.k("design:type",Object)],PI.prototype,"superThanksSelectedTierEntity",void 0);_.Q([_.nc("ytd-pdg-comment-preview-renderer"),_.k("design:type",Object)],PI.prototype,"commentPreviewRenderer",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],PI.prototype,"ytdReduxBehavior",void 0);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PI.prototype,"dataChanged",null);_.Q([_.zY("superThanksSelectedTierEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PI.prototype,"superThanksSelectedTierEntityChanged",null);_.Q([_.zY("selectedItemIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PI.prototype,"selectedItemIndexChanged",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PI.prototype,"closeBuyFlow",null);_.Q([_.WZ("ytd-pdg-user-generated-comment-changed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PI.prototype,"onUserGeneratedContentChanged",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],PI.prototype,"isDisclaimerTextShown",null);
PI=_.Q([_.t({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],PI);
_.A(PI,"yt-super-vod-buy-flow-content-renderer",function(){if($rX!==void 0)return $rX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return $rX=Y},{mode:1});var Dr6;var u8=function(){var Y=_.Z.apply(this,arguments)||this;Y.lottieAnimationRef={};return Y};
_.r(u8,_.Z);_.z=u8.prototype;_.z.created=function(){_.sm.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.up(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.z.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.ms(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.z.detached=function(){this.autoCloseJobId&&_.wc.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.up(this,this.onPopupIronOverlayOpened))};
_.z.dataChanged=function(){var Y=this;this.data&&this.data.autoCloseDelay&&(_.nb(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.yz(_.wc,function(){Y.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.PZ(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.z.onDOMLoadedLottie=function(){var Y=this,S,P,u=Number((S=this.data)==null?void 0:(P=S.autoCloseDelay)==null?void 0:P.seconds)||0;this.fadeOutJobId=_.yz(_.wc,function(){Y.lottiePlayerEl.classList.add("fadeout")},(u-.25)*1E3);
this.autoCloseJobId=_.yz(_.wc,function(){Y.closePopup()},u*1E3)};
_.z.openPopup=function(){this.ironOverlayBehavior.open()};
_.z.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.nb(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.cu(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.E().resolve(_.uY).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.wc.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.wc.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.z.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var Y,S;(Y=this.lottieAnimationRef)==null||(S=Y.lottieEl)==null||S.destroy();Y=this.data.lottie;var P,u;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:Y.url+"_"+Math.random(),path:Y.url,autoplay:!0,loop:(u=(P=Y.settings)==null?void 0:P.loop)!=null?u:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.y6.Object.defineProperties(u8.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var Y,S;return!!((Y=this.data)==null?0:(S=Y.lottie)==null?0:S.url)}}});
u8.prototype.maybeInitializeLottie=u8.prototype.maybeInitializeLottie;u8.prototype.dataChanged=u8.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],u8.prototype,"rendererBehavior",void 0);_.Q([_.p(_.ir),_.k("design:type",Object)],u8.prototype,"ironOverlayBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],u8.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],u8.prototype,"lottiePlayerProps",void 0);
_.Q([_.X(),_.k("design:type",Object)],u8.prototype,"lottieAnimationRef",void 0);_.Q([_.nc("ytd-lottie-player"),_.k("design:type",HTMLElement)],u8.prototype,"lottiePlayerEl",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],u8.prototype,"dataChanged",null);_.Q([_.d("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],u8.prototype,"hasLottieAnimation",null);
_.Q([_.zY("data.lottie.url"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],u8.prototype,"maybeInitializeLottie",null);u8=_.Q([_.t({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],u8);
_.A(u8,"ytd-desktop-image-overlay-renderer",function(){if(Dr6!==void 0)return Dr6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return Dr6=Y},{mode:1});var IqB;var WI=function(){return _.Z.apply(this,arguments)||this};
_.r(WI,_.Z);_.z=WI.prototype;_.z.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"}}}}};
_.z.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",_.up(this,this.closePopup))};
_.z.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.up(this,this.closePopup))};
_.z.dataChanged=function(){_.jR(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.g(this.data.header,Llc)&&(this.hasBackgroundBanner=!!_.g(this.data.header,Llc).backgroundBanner)};
_.z.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.up(this,this.closePopup))};
_.z.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Bu(this.hostElement,[this.data.onCloseCommand])};
WI.prototype.handleBuyflowSelectionSubmitted=WI.prototype.handleBuyflowSelectionSubmitted;WI.prototype.dataChanged=WI.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],WI.prototype,"data",void 0);
_.Q([_.X({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],WI.prototype,"hasBackgroundBanner",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WI.prototype,"dataChanged",null);_.Q([_.WZ("yt-pdg-buy-flow-selection-submitted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WI.prototype,"handleBuyflowSelectionSubmitted",null);
WI=_.Q([_.t({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],WI);
_.A(WI,"ytd-pdg-buy-flow-renderer",function(){if(IqB!==void 0)return IqB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return IqB=Y},{mode:1});var aqc;var zD=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOpen=!1;Y.isPlaylistCreated=!1;return Y};
_.r(zD,_.Z);_.z=zD.prototype;_.z.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.z.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.ms(this.hostElement,"yt-refit")};
_.z.onCreateTap=function(){var Y=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Bu(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(S,P){if(!_.f("killswitch_ep_in_create_playlist_response")&&(P==null?0:P.actions))for(S=_.n(P.actions),P=S.next();!P.done;P=S.next())P=P.value,_.g(P,_.aB)&&Y.ytComponentBehavior.resolveCommand(P)}}]),this.isPlaylistCreated=!0)};
_.z.onKeydown=function(Y){if(Y.keyCode===13)this.onCreateTap()};
_.z.onServiceRequestCompleted=function(Y){Y.stopPropagation();_.nb(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.z.computePrivacyBadge=function(Y){return Y?[{metadataBadgeRenderer:Y}]:[]};
zD.prototype.onServiceRequestCompleted=zD.prototype.onServiceRequestCompleted;zD.prototype.onKeydown=zD.prototype.onKeydown;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],zD.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],zD.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],zD.prototype,"isOpen",void 0);
_.Q([_.X(),_.k("design:type",Object)],zD.prototype,"isPlaylistCreated",void 0);_.Q([_.X({value:{REQUIRED_LABEL:_.Td("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Td("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.k("design:type",Object)],zD.prototype,"addToStrings",void 0);_.Q([_.X({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.k("design:type",Array)],zD.prototype,"privacyBadge",void 0);
_.Q([_.nc("#privacy-input"),_.k("design:type",Object)],zD.prototype,"privacyInput",void 0);_.Q([_.nc("#name-input"),_.k("design:type",Object)],zD.prototype,"nameInput",void 0);_.Q([_.WZ("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],zD.prototype,"onKeydown",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],zD.prototype,"onServiceRequestCompleted",null);
zD=_.Q([_.t({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],zD);
_.A(zD,"ytd-add-to-playlist-create-renderer",function(){if(aqc!==void 0)return aqc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return aqc=Y},{mode:1});var LWc;var w4Z;var mB=function(){var Y=_.Z.apply(this,arguments)||this;Y.transferState="TRANSFER_STATE_UNKNOWN";return Y};
_.r(mB,_.Z);mB.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
mB.prototype.onCheckboxChange=function(Y){var S=this;this.data&&_.pc(this,"yt-playlist-checkbox-changed",function(){var P=_.oK(Y).checked?S.data.addToPlaylistServiceEndpoint:S.data.removeFromPlaylistServiceEndpoint;P&&_.E().resolve(_.uY).resolveCommand(P,{form:{element:S.hostElement}});_.f("dl_playlist_killswitch")||S.transferState!=="TRANSFER_STATE_UNKNOWN"&&S.transferState!=="TRANSFER_STATE_FAILED"&&S.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:S.data.playlistId,action:"ACTION_SYNC"}})},
100)};
mB.prototype.computeIconType=function(Y){return Y?"yt-icons:"+Y.toLowerCase():null};
mB.prototype.dataChanged=mB.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],mB.prototype,"data",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],mB.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],mB.prototype,"ytComponentBehavior",void 0);_.Q([_.nc("#checkbox"),_.k("design:type",HTMLInputElement)],mB.prototype,"checkbox",void 0);
_.Q([_.X({selector:_.dT,selectorArgs:["data.playlistId"]}),_.k("design:type",String)],mB.prototype,"transferState",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mB.prototype,"dataChanged",null);mB=_.Q([_.t({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],mB);
_.A(mB,"ytd-playlist-add-to-option-renderer",function(){if(w4Z!==void 0)return w4Z;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return w4Z=Y},{mode:1});_.Sr(YCd);_.Vz(YCd,"ytd-menu-title-renderer",{propNames:["data"]});var nT=function(){var Y=_.Z.apply(this,arguments)||this;Y.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Td("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};Y.closeButtonAriaLabel=_.Td("SBOX_INAPPROPRIATE_CANCEL");Y.dialog=_.f("desktop_add_to_playlist_renderer_dialog_popup");return Y};
_.r(nT,_.Z);_.z=nT.prototype;_.z.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"}}}};
_.z.onPopupOpened=function(){_.Vm(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.z.onPopupClosed=function(){_.Vm(this.playlists,"scrollable",!1)};
_.z.computeAriaLabel=function(){var Y;if(this==null?0:(Y=this.data)==null?0:Y.actions){Y=_.n(this.data.actions);for(var S=Y.next();!S.done;S=Y.next())if(S=S.value,S.menuTitleRenderer)return _.Ma(S.menuTitleRenderer.title)}};
_.z.onTapClose=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.y6.Object.defineProperties(nT.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;if(this==null?0:(Y=this.data)==null?0:Y.actions){Y=_.n(this.data.actions);for(var S=Y.next();!S.done;S=Y.next())if(S=S.value,S.menuTitleRenderer)return S.menuTitleRenderer}return!1}}});
nT.prototype.onPopupClosed=nT.prototype.onPopupClosed;nT.prototype.onPopupOpened=nT.prototype.onPopupOpened;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nT.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],nT.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],nT.prototype,"ytRendererStamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],nT.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],nT.prototype,"addToStrings",void 0);_.Q([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.k("design:type",String)],nT.prototype,"ariaLabel",void 0);_.Q([_.X(),_.k("design:type",String)],nT.prototype,"closeButtonAriaLabel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],nT.prototype,"dialog",void 0);
_.Q([_.nc("#playlists"),_.k("design:type",HTMLElement)],nT.prototype,"playlists",void 0);_.Q([_.nc("ytd-add-to-playlist-create-renderer"),_.k("design:type",Object)],nT.prototype,"createRenderer",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],nT.prototype,"menuTitleRenderer",null);_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nT.prototype,"onPopupOpened",null);
_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nT.prototype,"onPopupClosed",null);nT=_.Q([_.t({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],nT);
_.A(nT,"ytd-add-to-playlist-renderer",function(){if(LWc!==void 0)return LWc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return LWc=Y},{mode:1});var p4j;var jn=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPlaylistEditComplete=!1;Y.isCollabEngagementDisabled=!1;Y.closeButtonAriaLabel=_.Td("SBOX_INAPPROPRIATE_CANCEL");Y.saveButton={title:_.Td("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};Y.onValueChanged=function(){Y.updateSaveButtonState();Y.computeCollabEngagementDisabled()};
return Y};
_.r(jn,_.Z);_.z=jn.prototype;_.z.attached=function(){this.JSC$18167_scroller&&(this.JSC$18167_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18167_scroller.attached&&typeof this.JSC$18167_scroller.attached==="function"&&this.JSC$18167_scroller.attached())};
_.z.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.z.onPopupClosed=function(){this.reset()};
_.z.close=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.z.onClickSave=function(){var Y=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var S=[];this.nameInput.value!==null&&S.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&S.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var P=Number(this.privacyInput.value);isNaN(P)||S.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:P})}this.votingInput.value!==null&&(P=this.votingInput.value)&&S.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:P});if(S.length>0){var u;_.g((u=this.data)==null?void 0:u.updateSettingsEndpoint,_.hf).actions=S;var W;if((W=this.data)==null?0:W.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){Y.close()}}}),this.isPlaylistEditComplete=!0}}};
_.z.computePrivacyBadge=function(Y){return Y?[{metadataBadgeRenderer:Y}]:[]};
_.z.computeEditorData=function(Y){var S,P;return Y==null?void 0:(S=Y.sections)==null?void 0:(P=S[0])==null?void 0:P.playlistSettingsEditorCasualSectionRenderer};
_.z.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.z.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}}}}}};
_.z.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"}))};
_.z.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.z.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.z.isNameChanged=function(){var Y,S,P;return(((Y=this.editorData)==null?void 0:(S=Y.name)==null?void 0:(P=S.textInputFormFieldRenderer)==null?void 0:P.value)||"")!==(this.nameInput.value||"")};
_.z.isDescriptionChanged=function(){var Y,S,P;return(((Y=this.editorData)==null?void 0:(S=Y.description)==null?void 0:(P=S.textInputFormFieldRenderer)==null?void 0:P.value)||"")!==(this.descriptionInput.value||"")};
_.z.isPrivacyChanged=function(){var Y,S,P,u,W,m,J,c;return((J=(Y=this.editorData)==null?void 0:(S=Y.privacy)==null?void 0:(P=S.dropdownFormFieldRenderer)==null?void 0:(u=P.dropdown)==null?void 0:(W=u.dropdownRenderer)==null?void 0:(m=W.entries)==null?void 0:m.find(function(C){var x;return C==null?void 0:(x=C.privacyDropdownItemRenderer)==null?void 0:x.isSelected}))==null?void 0:(c=J.privacyDropdownItemRenderer)==null?void 0:c.int32Value)!==this.privacyInput.value};
_.z.isVotingChanged=function(){var Y,S,P,u,W,m,J,c;return((J=(Y=this.editorData)==null?void 0:(S=Y.voting)==null?void 0:(P=S.dropdownFormFieldRenderer)==null?void 0:(u=P.dropdown)==null?void 0:(W=u.dropdownRenderer)==null?void 0:(m=W.entries)==null?void 0:m.find(function(C){var x;return C==null?void 0:(x=C.privacyDropdownItemRenderer)==null?void 0:x.isSelected}))==null?void 0:(c=J.privacyDropdownItemRenderer)==null?void 0:c.int32Value)!==this.votingInput.value};
jn.prototype.onPopupClosed=jn.prototype.onPopupClosed;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],jn.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],jn.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],jn.prototype,"ytRendererStamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],jn.prototype,"data",void 0);_.Q([_.X({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.k("design:type",Array)],jn.prototype,"privacyBadge",void 0);_.Q([_.X({computed:"computeEditorData(data)"}),_.k("design:type",Object)],jn.prototype,"editorData",void 0);_.Q([_.X(),_.k("design:type",Object)],jn.prototype,"isPlaylistEditComplete",void 0);_.Q([_.X(),_.k("design:type",Object)],jn.prototype,"isCollabEngagementDisabled",void 0);
_.Q([_.X({value:{REQUIRED_LABEL:_.Td("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Td("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.k("design:type",Object)],jn.prototype,"addToStrings",void 0);_.Q([_.X(),_.k("design:type",String)],jn.prototype,"closeButtonAriaLabel",void 0);_.Q([_.X(),_.k("design:type",Object)],jn.prototype,"saveButton",void 0);_.Q([_.nc("#name-input"),_.k("design:type",Object)],jn.prototype,"nameInput",void 0);
_.Q([_.nc("#description-input"),_.k("design:type",Object)],jn.prototype,"descriptionInput",void 0);_.Q([_.nc("#privacy-input"),_.k("design:type",Object)],jn.prototype,"privacyInput",void 0);_.Q([_.nc("#voting-input"),_.k("design:type",Object)],jn.prototype,"votingInput",void 0);_.Q([_.nc("#scroller"),_.k("design:type",Object)],jn.prototype,"JSC$18167_scroller",void 0);
_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jn.prototype,"onPopupClosed",null);_.Q([_.X(),_.k("design:type",Object)],jn.prototype,"onValueChanged",void 0);jn=_.Q([_.t({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],jn);
_.A(jn,"ytd-playlist-settings-editor-renderer",function(){if(p4j===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);p4j=Y}Y=p4j;return Y},{mode:1});var FW6;_.$s("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var JS=function(){return _.Z.apply(this,arguments)||this};
_.r(JS,_.Z);_.z=JS.prototype;_.z.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}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var Y=this.get("data.nextButton.buttonRenderer.navigationEndpoint");Y&&(this.nextNavigationEndpoint=Y,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.z.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var Y={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",Y)}}};
_.z.onPopupOpened=function(Y){Y.detail!==this&&Y.detail!==this.hostElement||!_.f("enable_premium_voluntary_pause")||_.nb(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.z.onNextButtonTap=function(){var Y=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);Y&&this.ytdOpenPopupBehavior.openPopup(Y)};
_.z.updateSelectedResponseIndexFromBinding=function(Y){this.selectedResponseIndex=Y.detail.value};
JS.prototype.onPopupOpened=JS.prototype.onPopupOpened;JS.prototype.onSelectedResponseIndexChange=JS.prototype.onSelectedResponseIndexChange;JS.prototype.dataChanged=JS.prototype.dataChanged;_.Q([_.p(_.sL),_.k("design:type",Object)],JS.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],JS.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],JS.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Number)],JS.prototype,"selectedResponseIndex",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JS.prototype,"dataChanged",null);_.Q([_.zY("selectedResponseIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JS.prototype,"onSelectedResponseIndexChange",null);
_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],JS.prototype,"onPopupOpened",null);JS=_.Q([_.t({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],JS);
_.A(JS,"ytd-red-cancel-survey-renderer",function(){if(FW6!==void 0)return FW6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return FW6=Y},{mode:1});var sT1;var BI=function(){var Y=_.Z.apply(this,arguments)||this;Y.closeButtonAriaLabel=_.Td("SBOX_INAPPROPRIATE_CANCEL");return Y};
_.r(BI,_.Z);BI.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
BI.prototype.onClickClose=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],BI.prototype,"rendererStamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],BI.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],BI.prototype,"closeButtonAriaLabel",void 0);BI=_.Q([_.t({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],BI);
_.A(BI,"ytd-search-filter-options-dialog-renderer",function(){if(sT1!==void 0)return sT1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return sT1=Y},{mode:1});var drX;var upc=function(){return function(Y){Y=Y.availabilityType;return Y===void 0||Y==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||Y==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var cI=function(){var Y=_.Z.apply(this,arguments)||this;Y.qualityOptions=[];Y.upsellOptions=[];Y.showUpsellSection=!1;Y.darkerDarkTheme=_.f("web_darker_dark_theme");Y.rememberSettingsChecked=!1;return Y};
_.r(cI,_.Z);_.z=cI.prototype;_.z.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}}}}};
_.z.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.z.updateQualityOptions=function(){if(this.formats===void 0)_.nb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var Y=[],S=[];this.showUpsellSection=!1;for(var P=_.n(this.formats),u=P.next();!u.done;u=P.next())(u=u.value)&&(u.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?S.push(u):Y.push(u));Y.length&&(this.qualityOptions=PIu(Y));S.length&&(this.showUpsellSection=!0,this.upsellOptions=PIu(S))}};
_.z.updateRememberString=function(){if(this.downloadQualityPickerEntity)var Y=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var S;Y=(S=this.data)==null?void 0:S.premiumRememberSettingString}else{var P;Y=(P=this.data)==null?void 0:P.rememberSettingString}Y=Y===void 0?_.Td("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):Y;this.rememberSettingsCheckboxRenderer={title:_.Sk(Y),disabled:!1}};
_.z.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.y6.Object.defineProperties(cI.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var Y;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(Y=this.data)==null?void 0:Y.qualityFormats}}});
cI.prototype.updateRememberString=cI.prototype.updateRememberString;cI.prototype.updateQualityOptions=cI.prototype.updateQualityOptions;cI.prototype.dataChanged=cI.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],cI.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],cI.prototype,"data",void 0);
_.Q([_.p(_.Gn),_.k("design:type",Object)],cI.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Boolean)],cI.prototype,"selectedUpsellQuality",void 0);_.Q([_.X({computed:"computeIcon_(data.premiumIcon)",value:""}),_.k("design:type",String)],cI.prototype,"premiumIcon",void 0);_.Q([_.X({selector:YQB,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.k("design:type",Object)],cI.prototype,"downloadQualityPickerEntity",void 0);
_.Q([_.X(),_.k("design:type",Array)],cI.prototype,"qualityOptions",void 0);_.Q([_.X(),_.k("design:type",Array)],cI.prototype,"upsellOptions",void 0);_.Q([_.X(),_.k("design:type",Object)],cI.prototype,"showUpsellSection",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],cI.prototype,"darkerDarkTheme",void 0);_.Q([_.X(),_.k("design:type",Object)],cI.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.Q([_.nc("#remember-settings"),_.k("design:type",HTMLInputElement)],cI.prototype,"rememberSettingsCheckbox",void 0);_.Q([_.X(),_.k("design:type",Object)],cI.prototype,"rememberSettingsChecked",void 0);_.Q([_.X(),_.k("design:type",Function)],cI.prototype,"onRememberSettingsCheckedChanged",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cI.prototype,"dataChanged",null);
_.Q([_.zY("downloadQualityPickerEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cI.prototype,"updateQualityOptions",null);_.Q([_.zY("selectedUpsellQuality"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cI.prototype,"updateRememberString",null);cI=_.Q([_.t({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],cI);
_.A(cI,"ytd-download-quality-selector-content",function(){if(drX!==void 0)return drX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return drX=Y},{mode:1});var lq1;var CT=function(){var Y=_.Z.apply(this,arguments)||this;Y.selectedUpsellQuality=!1;Y.qualityOptions=[];Y.darkerDarkTheme=_.f("web_darker_dark_theme");Y.useUpsellDismissAlternate=_.f("use_not_now_dl_upsell_dismiss_cta");Y.shouldShowAlternateUpsellDimiss=!1;Y.rememberSettings=!1;Y.rememberSettingsChecked=!1;Y.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};Y.rememberSettingsCheckedChanged=function(S){Y.rememberSettingsChecked=S};
return Y};
_.r(CT,_.Z);_.z=CT.prototype;
_.z.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Sk(_.Td("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Sk(_.Td("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Sk(_.Td("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Sk(_.Td("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.z.updateQualityOptions=function(){this.formats===void 0?_.nb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=PIu(this.formats)};
_.z.onQualityOptionsSelect=function(Y){if(this.qualityOptions&&Y){Y!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var S=_.n(this.qualityOptions.entries()),P=S.next();!P.done;P=
S.next()){P=_.n(P.value);var u=P.next().value;P=P.next().value;var W=void 0,m=void 0;if(((W=P)==null?void 0:(m=W.settingsRadioOptionRenderer)==null?void 0:m.id)===Y){this.selectedQualityIndex=u;Y=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((Y=this.formats[u])==null?void 0:Y.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.z.onClickSubmit=function(){var Y;if((Y=this.downloadButtonRenderer)==null||!Y.isDisabled){var S,P;Y=(P=(S=this.data)==null?void 0:S.onSubmitEndpoint)!=null?P:{};var u,W;if(this.formats&&(((u=_.g(Y,_.mA))==null?0:u.videoId)||((W=_.g(Y,_.n2))==null?0:W.playlistId))){var m,J,c,C,x,b;S={formatType:(C=(m=this.formats)==null?void 0:(J=m[(c=this.selectedQualityIndex)!=null?c:0])==null?void 0:J.format)!=null?C:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(x=this.getOfflineEndpoint(Y))==null?void 0:(b=x.actionParams)==null?void 0:b.settingsAction)};this.getOfflineEndpoint(Y).actionParams=S;this.ytComponentBehavior.resolveCommand(Y)}_.nb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.z.onClickUpsell=function(){var Y;if((Y=this.upsellButtonRenderer)==null||!Y.isDisabled){var S,P;Y=(P=(S=this.data)==null?void 0:S.upsellEndpoint)!=null?P:{};this.ytComponentBehavior.resolveCommand(Y);_.nb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);S="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var u,W,m,J;S=(J=(u=this.formats)==null?void 0:(W=u[(m=this.selectedQualityIndex)!=null?m:0])==null?void 0:W.format)!=null?J:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:S}})}};
_.z.onClickClose=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.z.getOfflineSettingsAction=function(Y,S){return Y?S===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":S:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.z.getOfflineEndpoint=function(Y){return _.g(Y,_.mA)?_.g(Y,_.mA):_.g(Y,_.n2)};
_.y6.Object.defineProperties(CT.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Sk(_.Td("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var Y;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(Y=this.data)==null?void 0:Y.qualityFormats}}});
CT.prototype.updateQualityOptions=CT.prototype.updateQualityOptions;CT.prototype.dataChanged=CT.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],CT.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],CT.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],CT.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Number)],CT.prototype,"selectedQualityIndex",void 0);_.Q([_.X(),_.k("design:type",Object)],CT.prototype,"selectedUpsellQuality",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],CT.prototype,"ytdReduxBehavior",void 0);
_.Q([_.X({selector:YQB,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.k("design:type",Object)],CT.prototype,"downloadQualityPickerEntity",void 0);_.Q([_.X(),_.k("design:type",Array)],CT.prototype,"qualityOptions",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],CT.prototype,"darkerDarkTheme",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],CT.prototype,"useUpsellDismissAlternate",void 0);
_.Q([_.X(),_.k("design:type",Object)],CT.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.Q([_.X(),_.k("design:type",Object)],CT.prototype,"downloadButtonRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],CT.prototype,"upsellButtonRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],CT.prototype,"cancelButtonRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],CT.prototype,"upsellCancelButtonRenderer",void 0);_.Q([_.X(),_.k("design:type",Object)],CT.prototype,"rememberSettings",void 0);
_.Q([_.X(),_.k("design:type",Object)],CT.prototype,"rememberSettingsChecked",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CT.prototype,"dataChanged",null);_.Q([_.zY("downloadQualityPickerEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CT.prototype,"updateQualityOptions",null);CT=_.Q([_.t({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],CT);
_.A(CT,"ytd-download-quality-selector-renderer",function(){if(lq1!==void 0)return lq1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return lq1=Y},{mode:1});var X46;var q6=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(q6,_.Z);q6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
q6.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],q6.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],q6.prototype,"darkerDarkTheme",void 0);_.Q([_.X({computed:"computeIcon_(data.infoIcon)"}),_.k("design:type",Object)],q6.prototype,"infoIcon",void 0);
_.Q([_.X({computed:"computeIcon_(data.warningIcon)"}),_.k("design:type",Object)],q6.prototype,"warningIcon",void 0);q6=_.Q([_.t({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],q6);
_.A(q6,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(X46!==void 0)return X46;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return X46=Y},{mode:1});var ZCd;var RC=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(RC,_.Z);RC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
RC.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],RC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],RC.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],RC.prototype,"darkerDarkTheme",void 0);RC=_.Q([_.t({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],RC);
_.A(RC,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(ZCd!==void 0)return ZCd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return ZCd=Y},{mode:1});var iCZ;var xz=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(xz,_.Z);xz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xz.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"}}}}};
xz.prototype.onServiceRequestSentOrCompleted=function(Y,S){S&&S.actions&&S.actions.length>0&&_.nb(this.hostElement,"yt-close-popup-action",[this.is])};
xz.prototype.onServiceRequestSentOrCompleted=xz.prototype.onServiceRequestSentOrCompleted;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],xz.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],xz.prototype,"darkerDarkTheme",void 0);_.Q([_.X(),_.k("design:type",Object)],xz.prototype,"data",void 0);
_.Q([_.WZ("yt-service-request-completed"),_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],xz.prototype,"onServiceRequestSentOrCompleted",null);xz=_.Q([_.t({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],xz);
_.A(xz,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(iCZ!==void 0)return iCZ;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return iCZ=Y},{mode:1});var owB;var b8=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");Y.submitButtonDisabled=!0;return Y};
_.r(b8,_.Z);_.z=b8.prototype;_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.z.onDataChanged=function(){var Y,S,P;if(((Y=this.data)==null?void 0:(S=Y.confirmButton)==null?void 0:(P=S.buttonRenderer)==null?void 0:P.isDisabled)!==void 0){var u,W,m;this.submitButtonDisabled=(u=this.data)==null?void 0:(W=u.confirmButton)==null?void 0:(m=W.buttonRenderer)==null?void 0:m.isDisabled}};
_.z.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.z.updateSubmitButtonDisabledFromBinding=function(Y){this.submitButtonDisabled=Y.detail.value};
_.z.updateSubmitButtonDisabledFromConfirmCheckbox=function(Y){this.submitButtonDisabled=!Y.detail.value};
b8.prototype.onDataChanged=b8.prototype.onDataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],b8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],b8.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],b8.prototype,"darkerDarkTheme",void 0);
_.Q([_.X(),_.k("design:type",Object)],b8.prototype,"submitButtonDisabled",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b8.prototype,"onDataChanged",null);b8=_.Q([_.t({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],b8);
_.A(b8,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(owB!==void 0)return owB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return owB=Y},{mode:1});var tQj;var TD=function(){return _.Z.apply(this,arguments)||this};
_.r(TD,_.Z);_.y6.Object.defineProperties(TD.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;return((Y=this.data)==null?void 0:Y.title)+" "+((S=this.data)==null?void 0:S.metadataPrimary)+" "+((P=this.data)==null?void 0:P.metadataSecondary)}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],TD.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],TD.prototype,"data",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],TD.prototype,"ariaLabel",null);TD=_.Q([_.t({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],TD);
_.A(TD,"ytd-compact-product-list-item-renderer",function(){if(tQj!==void 0)return tQj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return tQj=Y},{mode:1});var AB1;var KT=function(){return _.Z.apply(this,arguments)||this};
_.r(KT,_.Z);KT.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]]"}}}}}};
_.y6.Object.defineProperties(KT.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],KT.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],KT.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],KT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],KT.prototype,"data",void 0);KT=_.Q([_.t({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],KT);
_.A(KT,"ytd-compact-product-list-renderer",function(){if(AB1!==void 0)return AB1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return AB1=Y},{mode:1});var Urd;var ES=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(ES,_.Z);_.z=ES.prototype;_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.z.getBackgroundUrl=function(){var Y=this.get("data.headerImage.thumbnails");return Y?"url("+_.UD(Y,this.hostElement.clientWidth)+")":""};
_.z.onDataChanged=function(){var Y=this.getBackgroundUrl();Y&&(this.header.style.backgroundImage=Y);Y=_.pM();var S=_.wf(),P=this.get("data.trackingParams");P&&S&&Y&&_.t6(Y,S,_.Re(P));Y=_.n(this.hostElement.querySelectorAll("yt-img-shadow"));for(S=Y.next();!S.done;S=Y.next())S.value.onShow()};
_.z.onPopupClosed=function(Y){_.oK(Y).localName==="ytd-membership-post-cancel-renderer"&&_.nb(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
ES.prototype.onPopupClosed=ES.prototype.onPopupClosed;ES.prototype.onDataChanged=ES.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ES.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],ES.prototype,"darkerDarkTheme",void 0);
_.Q([_.nc("#header"),_.k("design:type",HTMLDivElement)],ES.prototype,"header",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ES.prototype,"onDataChanged",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ES.prototype,"onPopupClosed",null);ES=_.Q([_.t({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],ES);
_.A(ES,"ytd-membership-post-cancel-renderer",function(){if(Urd!==void 0)return Urd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Urd=Y},{mode:1});var QTY;var fT=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(fT,_.Z);fT.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
fT.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],fT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],fT.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],fT.prototype,"darkerDarkTheme",void 0);_.Q([_.nc("ytd-feedback-survey-renderer"),_.k("design:type",Object)],fT.prototype,"feedbackSurveyRenderer",void 0);fT=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],fT);
_.A(fT,"ytd-sponsorship-confirm-cancel-content",function(){if(QTY!==void 0)return QTY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return QTY=Y},{mode:1});var k$1;var gi=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");Y.maybeSubmitFeedback=function(){Y.content&&Y.content.maybeSubmitFeedback()};
return Y};
_.r(gi,_.Z);_.z=gi.prototype;_.z.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.z.onYtPopupOpened=function(Y,S){S===this&&this.data&&this.data.onOpenCommands&&_.cu(this.hostElement,this.data.onOpenCommands,this.hostElement);_.nb(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.z.onYtPopupClosed=function(Y,S){(S&&S.canceled===!0||S&&S.canceled===!1&&S.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.cu(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.z.onYtServiceRequestCompleted=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.z.onYtServiceRequestError=function(Y){_.hQ(this.hostElement,Y.detail.error.message)};
_.z.onDataChanged=function(){if(this.isAttached){var Y=this.backgroundUrl;Y&&(_.I(this.hostElement).querySelector("#header").style.backgroundImage=Y)}};
_.y6.Object.defineProperties(gi.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return Y?"url("+_.UD(Y,this.hostElement.clientWidth)+")":""}}});
gi.prototype.onDataChanged=gi.prototype.onDataChanged;gi.prototype.onYtServiceRequestError=gi.prototype.onYtServiceRequestError;gi.prototype.onYtServiceRequestCompleted=gi.prototype.onYtServiceRequestCompleted;gi.prototype.onYtPopupClosed=gi.prototype.onYtPopupClosed;gi.prototype.onYtPopupOpened=gi.prototype.onYtPopupOpened;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],gi.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],gi.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],gi.prototype,"data",void 0);_.Q([_.X({value:function(){return _.Td("SBOX_INAPPROPRIATE_CANCEL")}}),
_.k("design:type",String)],gi.prototype,"closeButtonAriaLabel",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],gi.prototype,"darkerDarkTheme",void 0);_.Q([_.nc("#scrollable"),_.k("design:type",Object)],gi.prototype,"scrollable",void 0);_.Q([_.nc("ytd-sponsorship-confirm-cancel-content"),_.k("design:type",Object)],gi.prototype,"content",void 0);
_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],gi.prototype,"onYtPopupOpened",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],gi.prototype,"onYtPopupClosed",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],gi.prototype,"onYtServiceRequestCompleted",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],gi.prototype,"onYtServiceRequestError",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gi.prototype,"onDataChanged",null);
gi=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],gi);
_.A(gi,"ytd-sponsorship-confirm-cancel-renderer",function(){if(k$1!==void 0)return k$1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return k$1=Y},{mode:_.OX("kevlar_poly_si_batch_j081")?1:2});var MQd;var $z=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r($z,_.Z);$z.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$z.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],$z.prototype,"darkerDarkTheme",void 0);$z=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],$z);
_.A($z,"ytd-sponsorships-celebration-content",function(){if(MQd!==void 0)return MQd;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return MQd=
Y},{mode:1});var yBB;var N$d=_.Q0(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),ri=function(){var Y=_.Z.apply(this,arguments)||this;Y.scriptsAppended=!1;Y.buttonOverrides={type:"tonal",style:"overlay-dark"};return Y};
_.r(ri,_.Z);_.z=ri.prototype;
_.z.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:_.f("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}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.onDataChanged=function(){var Y;(Y=this.header)==null||Y.style.setProperty("background-color",this.backgroundColor);if(Y=this.headerImageUrl){var S;(S=this.header)==null||S.style.setProperty("background-image",Y)}S=_.pM(4);Y=_.wf(4);var P=this.get("data.trackingParams");if(P&&Y&&S){var u=_.Re(P);_.t6(S,Y,u);_.f("combine_ve_grafts")?_.BF().graftServerVe(P,Y,4):_.t6(S,Y,u)}S=_.n(this.hostElement.querySelectorAll("yt-img-shadow"));for(Y=S.next();!Y.done;Y=S.next())Y.value.onShow();if(S=this.get("data.gtmId"))_.JD(S,
_.X3("GL","")),this.setupConversionTracking()};
_.z.setupConversionTracking=function(){if(!this.scriptsAppended){var Y=document.createElement("script");var S=_.hw(N$d.join(""));_.Di(Y,S);document.head.appendChild(Y);Y=document.createElement("noscript");Y.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(Y);this.scriptsAppended=!0}};
_.z.onPopupClosed=function(Y){if(_.oK(Y).localName==="ytd-sponsorships-celebration-renderer"){_.nb(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var S;this.data&&((S=this.data)==null?0:S.dismissCommand)&&_.zR.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.y6.Object.defineProperties(ri.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.hK(Y)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return Y?"url("+_.UD(Y,this.hostElement.getBoundingClientRect().width)+")":""}}});
ri.prototype.onPopupClosed=ri.prototype.onPopupClosed;ri.prototype.onDataChanged=ri.prototype.onDataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ri.prototype,"data",void 0);_.Q([_.nc("#header"),_.k("design:type",HTMLElement)],ri.prototype,"header",void 0);
_.Q([_.X(),_.k("design:type",Object)],ri.prototype,"scriptsAppended",void 0);_.Q([_.X(),_.k("design:type",Object)],ri.prototype,"buttonOverrides",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ri.prototype,"onDataChanged",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ri.prototype,"onPopupClosed",null);
ri=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],ri);
_.A(ri,"ytd-sponsorships-celebration-renderer",function(){if(yBB!==void 0)return yBB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return yBB=Y},{mode:1});var HCc;var GD=function(){var Y=_.Z.apply(this,arguments)||this;Y.isToggleChecked=!1;return Y};
_.r(GD,_.Z);GD.prototype.onDataChanged=function(){var Y;this.isToggleChecked=((Y=this.data)==null?void 0:Y.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
GD.prototype.close=function(){var Y;((Y=this.data)==null?0:Y.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
GD.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var Y,S=_.g((Y=this.data)==null?void 0:Y.switchButton,d7o);S&&(this.isToggleChecked&&S.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(S.switchOnInnertubeCommand),!this.isToggleChecked&&S.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(S.switchOffInnertubeCommand))};
GD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
GD.prototype.onDataChanged=GD.prototype.onDataChanged;_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],GD.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],GD.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],GD.prototype,"isToggleChecked",void 0);_.Q([_.X({value:_.Td("CLOSE")}),_.k("design:type",String)],GD.prototype,"closeButtonAriaLabel",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GD.prototype,"onDataChanged",null);GD=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],GD);
_.A(GD,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(HCc!==void 0)return HCc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return HCc=Y},{mode:1});var VQ6;var hS=function(){return _.Z.apply(this,arguments)||this};
_.r(hS,_.Z);_.z=hS.prototype;_.z.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"}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.detached=function(){this.playerElement.stop()};
_.z.onYtServiceRequestCompleted=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.z.onYtServiceRequestError=function(Y){_.hQ(this.hostElement,Y.detail.error.message)};
_.z.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.z.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.z.getTier=function(Y,S){return!Y||!Y.tiers||S<0?null:_.g(Y.tiers[S],iD5)};
_.z.moreThanOne=function(Y){return!!(Y&&Y.length>1)};
_.z.tierOverviewTap=function(Y){var S=this;this.selectedTier=Y.model.index;_.ky(this,function(){_.ms(S.hostElement,"yt-refit")})};
_.z.computeSelectedClass=function(Y,S){return this.isSelected(Y,S)?"selected":""};
_.z.computeButtonAriaPressed=function(Y,S){return this.isSelected(Y,S)?"true":"false"};
_.z.isSelected=function(Y,S){return Y===S};
_.z.onDataChanged=function(){_.I(this.hostElement).querySelector("#header-overlay").style.visibility="";_.I(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var Y=_.n(this.hostElement.querySelectorAll("yt-img-shadow")),
S=Y.next();!S.done;S=Y.next())S.value.onShow();var P;this.set("selectedTier",(P=this.get("data.targetTierIndex"))!=null?P:0);var u;(Y=(u=this.data)==null?void 0:u.onVisible)&&this.ytComponentBehavior.resolveCommand(Y)};
_.z.initializeVe=function(Y){var S=_.pM(),P=_.wf(),u=this.get("data.trackingParams");P&&S&&(this.screenLayer=4,S=_.oj(_.zua)(void 0,69877,{clientScreenNonce:S,visualElement:P},void 0,void 0,void 0),_.jiK(S,69877,4),P=_.wf(4),u&&P&&(u=_.Re(u),_.t6(S,P,u),Y&&(this.offerVideoVe=_.TI(74659),_.t6(S,u,this.offerVideoVe))))};
_.z.setHeaderBackground=function(){var Y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.I(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.hK(Y);if(Y=this.getHeaderImage())Y=_.UD(Y,screen.width),_.I(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+Y+")"};
_.z.getHeaderImage=function(){var Y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&Y?Y:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.z.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.z.setupVideoPlayer=function(Y){var S=this,P,u,W,m;return _.B(function(J){if(J.nextAddress==1)return P=S.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),u=S.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.f("kevlar_player_update_killswitch")?S.playerElement.update({args:{autoplay:P,video_id:Y,player_params:u}}):S.playerElement.loadVideoWithPlayerVars({autoplay:P,video_id:Y,player_params:u}),
_.q(J,S.playerElement.getPlayerPromise(),2);W=J.yieldResult;W.addEventListener("onStateChange",function(c){S.onPlayerStateChange(c)});
W.setScreenLayer(S.screenLayer);(m=_.pM(4))&&S.offerVideoVe&&_.A6(m,S.offerVideoVe);P&&(S.pauseOtherPlayers(),S.playerElement.focusOnPlayer(),S.playerElement.getPlayer().hideControls(),_.hp(_.wc,function(){S.fadeOutHeaderOverlay()},4E3));
_.Yt(J)})};
_.z.onPlayerStateChange=function(Y){Y===1?this.backgroundPlayerElement&&(Y=this.backgroundPlayerElement.player_.getPlayerState(),Y!==1&&Y!==3||this.backgroundPlayerElement.pause()):Y===0&&(_.I(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.I(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.z.fadeOutHeaderOverlay=function(){_.I(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.z.onHeaderTap=function(){if(this.offerVideo){_.I(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var Y;((Y=this.playerElement.player_)==null?void 0:Y.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(Y=_.pM(4))&&this.offerVideoVe&&_.ko(Y,this.offerVideoVe)}};
_.z.getBackgroundImageLayerClass=function(Y){return Y?"background-image-layer-with-video":""};
_.z.getHeaderClass=function(Y){return Y?"header-with-video":""};
_.z.getHeaderOverlayClass=function(Y){return Y?"header-overlay-with-video":""};
_.z.getTitleContainerClass=function(Y,S){return Y?"title-container-with-video":S?"title-container-without-video-flexible":"title-container-without-video"};
_.z.tierTitleDisplayStatus=function(Y){return this.moreThanOne(Y)?"hide":"show"};
_.z.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.E().resolve(_.l1).getPlayerElement():this.backgroundPlayerElement=_.Q5();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var Y=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=Y===1||Y===3;this.backgroundPlayerElement.pause()}};
_.z.isMiniplayerActive=function(){return _.E().resolve(_.l1).isMiniplayerActive()};
_.z.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("selected-tier-changed",this.selectedTier))};
hS.prototype.selectedTierChangedForBinding=hS.prototype.selectedTierChangedForBinding;hS.prototype.onDataChanged=hS.prototype.onDataChanged;hS.prototype.onYtPopupClosed=hS.prototype.onYtPopupClosed;hS.prototype.onYtPopupOpened=hS.prototype.onYtPopupOpened;hS.prototype.onYtServiceRequestError=hS.prototype.onYtServiceRequestError;hS.prototype.onYtServiceRequestCompleted=hS.prototype.onYtServiceRequestCompleted;
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],hS.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],hS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],hS.prototype,"data",void 0);_.Q([_.X({value:0}),_.k("design:type",Number)],hS.prototype,"selectedTier",void 0);
_.Q([_.X({value:""}),_.k("design:type",String)],hS.prototype,"offerVideo",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],hS.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.Q([_.X({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Pt(this)}}),
_.k("design:type",String)],hS.prototype,"playerId",void 0);_.Q([_.nc("tp-yt-paper-dialog-scrollable"),_.k("design:type",Object)],hS.prototype,"scrollable",void 0);_.Q([_.nc("ytd-sponsorships-tier-renderer"),_.k("design:type",Object)],hS.prototype,"tierRenderer",void 0);_.Q([_.nc("#player"),_.k("design:type",Object)],hS.prototype,"playerElement",void 0);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],hS.prototype,"onYtServiceRequestCompleted",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],hS.prototype,"onYtServiceRequestError",null);
_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hS.prototype,"onYtPopupOpened",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hS.prototype,"onYtPopupClosed",null);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hS.prototype,"onDataChanged",null);
_.Q([_.zY("selectedTier"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hS.prototype,"selectedTierChangedForBinding",null);hS=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],hS);
_.A(hS,"ytd-sponsorships-offer-renderer",function(){if(VQ6!==void 0)return VQ6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return VQ6=Y},{mode:_.OX("kevlar_poly_si_batch_j077")?1:2});var ev1;var vI=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonOverrides={type:"filled",style:"mono"};return Y};
_.r(vI,_.Z);vI.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}}}}}};
vI.prototype.backgroundColorChanged=function(){var Y,S,P,u=(S=_.g((Y=this.data)==null?void 0:Y.content,o1B))==null?void 0:(P=S.backgroundColor)==null?void 0:P.backgroundColor;u&&(Y=_.Gp(u),_.I(this.hostElement).querySelector("#banner").style.backgroundColor=Y,_.I(this.hostElement).querySelector("#abstract-art").style.backgroundColor=Y)};
vI.prototype.attached=function(){this.JSC$18253_scroller&&(this.JSC$18253_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18253_scroller.attached&&typeof this.JSC$18253_scroller.attached==="function"&&this.JSC$18253_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
vI.prototype.backgroundColorChanged=vI.prototype.backgroundColorChanged;_.Q([_.X(),_.k("design:type",Object)],vI.prototype,"data",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.nc("#scroller"),_.k("design:type",Object)],vI.prototype,"JSC$18253_scroller",void 0);_.Q([_.X(),_.k("design:type",Object)],vI.prototype,"buttonOverrides",void 0);
_.Q([_.zY("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vI.prototype,"backgroundColorChanged",null);vI=_.Q([_.t({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],vI);
_.A(vI,"ytd-sponsorships-promotion-celebration-renderer",function(){if(ev1!==void 0)return ev1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return ev1=Y},{mode:_.OX("kevlar_poly_si_batch_j077")?1:2});var OCX;var YiB;var Dh=function(){return _.Z.apply(this,arguments)||this};
_.r(Dh,_.Z);Dh.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Dh.prototype.computeIsInitiallyChecked=function(Y){return Y===1};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Dh.prototype,"data",void 0);_.Q([_.nc("#checkbox"),_.k("design:type",Object)],Dh.prototype,"checkbox",void 0);Dh=_.Q([_.t({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Dh);
_.A(Dh,"ytd-subscription-toggle-option-renderer",function(){if(YiB!==void 0)return YiB;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return YiB=Y},{mode:1});var IC=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");Y.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return Y};
_.r(IC,_.Z);IC.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"}}}};
IC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
IC.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var Y=_.I(this.hostElement).querySelector("#options").selected;Y=this.data.options[Y].subscriptionRadioOptionRenderer.serviceEndpoint;var S=_.I(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");S&&Y&&Y.modifyChannelNotificationPreferenceEndpoint&&(S=S.getValue())&&(Y.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[S]);_.E().resolve(_.uY).resolveCommand(Y,{form:{element:this.hostElement}});
_.nb(this.hostElement,"yt-close-popup-action")};
_.y6.Object.defineProperties(IC.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var Y=this.data.options,S=0;S<Y.length;S++){var P=Y[S].subscriptionRadioOptionRenderer;if(P&&P.selected)return S}return null}}});
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],IC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],IC.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],IC.prototype,"eventForwardingBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],IC.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],IC.prototype,"darkerDarkTheme",void 0);_.Q([_.d("data.options"),_.k("design:type",Object),_.k("design:paramtypes",[])],IC.prototype,"initialIndex",null);IC=_.Q([_.t({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],IC);
_.A(IC,"ytd-subscription-notification-options-renderer",function(){if(OCX!==void 0)return OCX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return OCX=Y},{mode:1});var SiY;var aC=function(){return _.Z.apply(this,arguments)||this};
_.r(aC,_.Z);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],aC.prototype,"data",void 0);aC=_.Q([_.t({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],aC);
_.A(aC,"ytd-tvfilm-offer-groups-renderer",function(){if(SiY!==void 0)return SiY;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return SiY=Y},{mode:1});var PCc;var LT=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(LT,_.Z);_.z=LT.prototype;_.z.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"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.z.computeThumbnailClass=function(Y){return Y.thumbnailOverlays?Y.isShow?"thumbnail-show":"thumbnail-movie":Y.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.z.computeCommerceSectionClass=function(Y){return Y.offers&&Y.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.z.computeTitleClass=function(Y){return Y.offers&&Y.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.z.onDataChanged=function(){[].concat(_.cz(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(Y){Y.onShow()})};
LT.prototype.onDataChanged=LT.prototype.onDataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],LT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],LT.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],LT.prototype,"darkerDarkTheme",void 0);
_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LT.prototype,"onDataChanged",null);LT=_.Q([_.t({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],LT);
_.A(LT,"ytd-ypc-offers-overlay-renderer",function(){if(PCc!==void 0)return PCc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return PCc=Y},{mode:_.OX("kevlar_poly_si_batch_j028")?1:2});var uC5;var WLZ=function(){this.usedMethods=new Set};
WLZ.prototype.add=function(Y){this.usedMethods.add(Y)};
WLZ.prototype.reset=function(){this.usedMethods.clear()};var nTd=function(Y,S){this.query=Y;this.previousSearchQuery=S;this.id=zd_++;if(!mQ5){S=_.X3("SBOX_SETTINGS");Y="https://"+((S==null?void 0:S.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var P=S==null?void 0:S.REQUEST_LANGUAGE;P&&(Y+="&hl="+P);(P=S==null?void 0:S.REQUEST_DOMAIN)&&(Y+="&gl="+P);Y+="&client=youtube&gs_ri=youtube";(P=S==null?void 0:S.SUGG_EXP_ID)&&(Y+="&sugexp="+encodeURIComponent(P));(P=S==null?void 0:S.PSUGGEST_TOKEN)&&(Y+="&tok="+P);(S=
S==null?void 0:S.SESSION_INDEX)&&(Y+="&authuser="+S);_.f("desktop_enable_visual_suggest")&&(Y+="&h=180&w=320&ytvs=1");mQ5=Y}},j3Z=function(Y){var S="q="+encodeURIComponent(Y.query);
Y.previousSearchQuery&&(S+="&pq="+encodeURIComponent(Y.previousSearchQuery));return S},JMc=function(){var Y=_.X3("SBOX_SETTINGS"),S={};
if(Y==null?0:Y.SEND_VISITOR_DATA)S["X-Goog-Visitor-Id"]=Y==null?void 0:Y.VISITOR_DATA;return S},BbY=function(Y){var S=mQ5;
S+="&gs_id="+Y.id.toString(36);S+="&q="+encodeURIComponent(Y.query);S+="&cp="+Y.query.length;Y.previousSearchQuery&&(S+="&pq="+encodeURIComponent(Y.previousSearchQuery));(Y=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(S+="&video_id="+Y);return S},zd_=0,mQ5="";var cMI=_.ZM.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,CCX=_.ZM.SEARCH_ENTITY_SUGGESTION_MOVIE,qio=_.ZM.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,Rd1=_.ZM.SEARCH_ENTITY_SUGGESTION_TV_SHOW,xQd=function(Y,S){this.text=Y;this.bold=S},bi_=function(Y,S,P){this.input=S;
this.index=P;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=Y[0];this.type=Y[1];this.subtypes=Y[2];var u;this.displayText=Nm((u=Y[3])==null?void 0:u.b);var W;this.ignoredPrefix=Nm((W=Y[3])==null?void 0:W.a);var m,J;this.hasNewVideo=((m=Y[3])==null?void 0:(J=m.zam)==null?void 0:J.toString())==="true"?!0:!1;var c;this.visualSuggestUrl=(c=Y[3])==null?void 0:c.zai;var C;this.entityType=Nm((C=Y[3])==null?void 0:C.zap);var x;this.entityName=Nm((x=Y[3])==null?void 0:x.zao);var b;S=Nm((b=
Y[3])==null?void 0:b.zaf);b=zo_(this.subtypes);if(S&&b){if(S){P="";switch(b){case "YOUTUBE_ENTITY_TYPE_SONG":P=qio;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":P=cMI;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":P=Rd1;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":P=CCX}b=b==="YOUTUBE_ENTITY_TYPE_SONG"||b==="YOUTUBE_ENTITY_TYPE_ALBUM"?P+" \u2022  \u2022 "+S:S}else b="";this.entitySubtitle=b}var T;this.entityMid=(T=Y[3])==null?void 0:T.zae;var K;this.externalChannelId=(K=Y[3])==null?void 0:K.zav},TbI=function(Y){var S=
[],P,u=(P=Y.displayText)!=null?P:Y.text;
if(Y.type===33)return S.push(new xQd(u,!1)),S;if(u.length>=Y.input.length&&u.substring(0,Y.input.length)===Y.input)S.push(new xQd(Y.input,!1)),S.push(new xQd(u.substring(Y.input.length),!0));else{var W=new Set(Y.input.split(/\s/)),m=u.split(/\s/);S=m.map(function(J,c){return new xQd(J.trim()+(c===m.length-1?"":" "),!W.has(J))})}return S},KL6=function(Y){return!!zo_(Y.subtypes)};var ETB=function(Y){this.rawResponse=["",[],{}];this.suggestions=[];try{var S=JSON.parse(ma_(Y));if(typeof S==="object"&&S!==null)this.rawResponse=S;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(u){console.log("Suggest: Failed to parse SuggestResponse!");return}var P=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(u,W){return new bi_(u,P,W)})};var fg6=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new WLZ;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18289_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},gTu,$Qo=function(){gTu||(gTu=new fg6);
return gTu};
fg6.prototype.updateSuggestions=function(Y){var S=this;this.availableSuggestions.forEach(function(P){S.previousSuggestions[P]=!0});
this.availableSuggestions=Y.map(function(P){var u=P.type.toString();P.subtypes.length>0&&(u+="i"+P.subtypes.join("i"),u+="k"+P.suggestionSources.COMPLETE_SERVER.toString());return u})};
var rMI=function(Y,S){var P=Date.now();Y.firstEditTime<0&&(Y.firstEditTime=P);S&&(Y.lastQueryBuildTime=P);Y.lastEditTime=P};
fg6.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18289_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Gw_=function(Y){var S="";Y.availableSuggestions.forEach(function(W){delete Y.previousSuggestions[W]});
for(var P=_.n(Object.keys(Y.previousSuggestions)),u=P.next();!u.done;u=P.next())u=u.value,Y.previousSuggestions[u]&&(S+=(S?"j":"")+u);return S},hdI=function(Y,S){var P=[];
S&&(P[1]=S.toString());P[0]="youtube";P[7]=Date.now()-Y.startTime;P[6]=Y.sessionNumber;Y.zeroPrefixSuggestionCount>=0&&(P[33]=Y.zeroPrefixSuggestionCount);P[13]=Y.outOfSyncResponseCount;if(Y.availableSuggestions.length>0){for(var u=S="",W=0,m=_.n(Y.availableSuggestions),J=m.next();!J.done;J=m.next())J=J.value,J!==u&&(W>1&&(S+="l"+W),S+=(u?"j":"")+J,W=0,u=J),W+=1;W>1&&(S+="l"+W);P[3]=S}P[35]=Gw_(Y);Y.selectedSuggestionIndex>=0&&(P[2]=Y.selectedSuggestionIndex);var c;if(S=(c=_.X3("SBOX_SETTINGS"))==
null?void 0:c.SUGG_EXP_ID)P[19]=Y.normalize(S),c=0,Y.experimentTriggeredBeforeFinal&&(c|=1),Y.experimentTriggeredFinal&&(c|=2),P[20]=c;P[26]=Array.from(Y.inputMethodsTracker.usedMethods).join("j");if(Y.JSC$18289_totalRoundTripTime>0){P[15]=Y.JSC$18289_totalRoundTripTime;P[14]=Y.maxRoundTripTime;c=[];for(W=S=0;W<10;W++)u=Y.roundTripTimeHistogram[W],u===0?S++:(S>1?c.push(W+"-"+u):S===1?c.push("0j"+u):c.push(u.toString()),S=0);c=c.join("j");P[16]=c}Y.zeroPrefixRoundTripTime>0&&(P[36]=Y.zeroPrefixRoundTripTime);
Y.lastQueryBuildTime>0&&(P[18]=Y.lastQueryBuildTime-Y.startTime);Y.firstEditTime>0&&(P[4]=Y.firstEditTime-Y.startTime);Y.lastEditTime>0&&(P[5]=Y.lastEditTime-Y.startTime);return P.join(".")};
fg6.prototype.normalize=function(Y){return Y.replaceAll(".","-")};
var vT6=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var wi=function(){var Y=_.Z.apply(this,arguments)||this;Y.microphoneSpinnerActive=!1;Y.noAnimations=!1;Y.boundExitClick=function(){Y.onExitButtonClick()};
Y.speechOverlayClassName="";Y.isLevelAnimating=!1;Y.playCloseDialogAudioFeedback=!0;Y.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return Y};
_.r(wi,_.Z);_.z=wi.prototype;_.z.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.z.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=cOd()};
_.z.dataChanged=function(){this.logDialog()};
_.z.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var Y;(Y=this.manager.audioPlayer)!=null&&(Y.JSC$17577_audioEnabled=!1)}this.manager.stop();(Y=this.manager.audioPlayer)!=null&&(Y.JSC$17577_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.z.handleSpeechQueryCompleteAction=function(Y){var S=Y.navigationAction;S&&(Y.trackingParams&&_.BF().graftServerVe(Y.trackingParams,this.dialogVe,5),_.ms(this.hostElement,"yt-navigate",{endpoint:S,tempData:this.getNavigationParams(S),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.z.onExitButtonClick=function(){this.closeDialog()};
_.z.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var Y;if((Y=this.manager)!=null){var S;(S=Y.audioPlayer)==null||pW(S,"failure");Y.setState("microphone-off");Y.stop()}}else(Y=this.manager)==null||Y.start()};
_.z.transcriptionChanged=function(){var Y,S;(((Y=this.transcription)==null?0:Y.low)||((S=this.transcription)==null?0:S.high))&&this.setState("transcribing",this.transcription)};
_.z.stateChanged=function(){this.setState(this.state,this.transcription)};
_.z.logDialog=function(){var Y;(Y=this.data)!=null&&Y.trackingParams&&(Y=_.BF(),_.Ow(Y,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=Y.graftServerVe(this.data.trackingParams,void 0,5))};
_.z.getNavigationParams=function(Y){var S={};if(_.f("web_yt_searchbox")){var P=$Qo();P.inputMethodsTracker.add(6);P=hdI(P,15);S.gs_l=P;var u;S.oq=((u=_.g(Y,_.qy))==null?void 0:u.query)||""}else if(Y=window.ytvoicesearchloggingparams){if(Y=Y())S.oq=Y.oq,S.gs_l=Y.gs_l}else _.AA(Error("ml"));return S};
_.z.closeDialog=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.z.setState=function(Y,S){if(this.data){var P=this.data,u={};switch(Y){case "listening":u={headerText:P.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:P.microphoneButtonAriaLabel};break;case "timeout":u={headerText:P.promptHeader,microphoneState:"try-again",microphoneLabel:P.promptMicrophoneLabel,microphoneAriaLabel:P.promptMicrophoneLabel};break;case "microphone-off":u={headerText:P.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:P.promptMicrophoneLabel,
microphoneAriaLabel:P.promptMicrophoneLabel};break;case "transcribing":(S==null?0:S.low)||(S==null?0:S.high)?u={transcriptionLow:S==null?void 0:S.low,transcriptionHigh:S==null?void 0:S.high,microphoneState:"speaking",microphoneAriaLabel:P.microphoneButtonAriaLabel}:u={headerText:P.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:P.microphoneButtonAriaLabel};break;case "processing":u={headerText:P.loadingHeader,microphoneState:"processing",microphoneAriaLabel:P.microphoneButtonAriaLabel};
break;case "offline":u={headerText:P.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:P.connectionErrorMicrophoneLabel,microphoneAriaLabel:P.connectionErrorMicrophoneLabel};break;case "permission":u={headerText:P.permissionsHeader,bodyLine1:P.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:P.permissionsSubtext};break;case "permission-denied":u={headerText:P.disabledHeader,bodyLine1:P.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:P.disabledSubtext}}u.className=
Y;this.speechOverlayState=u;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.z.setMicrophoneState=function(Y){var S=this.isLevelAnimating;this.isLevelAnimating=Y==="speaking";!S&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=Y==="processing"&&!this.noAnimations};
_.z.setClass=function(Y){this.speechOverlayClassName&&_.Vm(this.hostElement,this.speechOverlayClassName,!1);Y&&(this.speechOverlayClassName=Y,_.Vm(this.hostElement,Y,!0))};
_.z.runLevelAnimation=function(){var Y=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var S=1+Math.random()*.75,P=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+P/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+S+")");_.wc.addJob(function(){Y.runLevelAnimation()},3,P)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
wi.prototype.stateChanged=wi.prototype.stateChanged;wi.prototype.transcriptionChanged=wi.prototype.transcriptionChanged;wi.prototype.onPopupClosed=wi.prototype.onPopupClosed;wi.prototype.dataChanged=wi.prototype.dataChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],wi.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],wi.prototype,"rendererStamperBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],wi.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],wi.prototype,"eventForwardingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],wi.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],wi.prototype,"speechOverlayState",void 0);
_.Q([_.X(),_.k("design:type",Object)],wi.prototype,"microphoneSpinnerActive",void 0);_.Q([_.X({type:_.f("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.k("design:type",Object)],wi.prototype,"noAnimations",void 0);_.Q([_.X({selector:function(Y){var S;return(S=Y.voiceSearch)==null?void 0:S.transcription}}),
_.k("design:type",Object)],wi.prototype,"transcription",void 0);_.Q([_.X({selector:function(Y){var S;return(S=Y.voiceSearch)==null?void 0:S.overlay}}),
_.k("design:type",String)],wi.prototype,"state",void 0);_.Q([_.X(),_.k("design:type",Object)],wi.prototype,"boundExitClick",void 0);_.Q([_.nc("#microphone-levels"),_.k("design:type",HTMLElement)],wi.prototype,"level",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wi.prototype,"dataChanged",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wi.prototype,"onPopupClosed",null);
_.Q([_.cZ("transcription"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wi.prototype,"transcriptionChanged",null);_.Q([_.cZ("state"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wi.prototype,"stateChanged",null);wi=_.Q([_.t({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],wi);
_.A(wi,"ytd-voice-search-dialog-renderer",function(){if(uC5!==void 0)return uC5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return uC5=Y},{mode:1});var DQX;var pT=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOverlay=!1;Y.hidden=!1;return Y};
_.r(pT,_.Z);_.z=pT.prototype;_.z.onPopupClosed=function(){this.toggleIconState(!1)};
_.z.computeIcon=function(){var Y,S,P;return(S=_.g((Y=this.data)==null?void 0:Y.icon,k8I))==null?void 0:(P=S.icon)==null?void 0:P.iconType};
_.z.computeIconBadgeShape=function(){var Y;return{iconBadgeType:"cart",iconBadgeText:(Y=this.iconBadgeEntity)==null?void 0:Y.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.z.onClick=function(){var Y;(Y=this.data)!=null&&Y.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.z.computeHidden=function(Y){return!Y};
_.z.toggleIconState=function(Y){this.iconButton&&(this.iconButton.pressed=Y)};
pT.prototype.onPopupClosed=pT.prototype.onPopupClosed;_.Q([_.p(_.Gn),_.k("design:type",Object)],pT.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],pT.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],pT.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],pT.prototype,"isOverlay",void 0);
_.Q([_.X({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.k("design:type",Object)],pT.prototype,"hidden",void 0);_.Q([_.X({selectorArgs:["data.iconBadgeEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"iconBadgeEntity",S)}}),
_.k("design:type",Object)],pT.prototype,"iconBadgeEntity",void 0);_.Q([_.nc("yt-icon-button"),_.k("design:type",HTMLButtonElement)],pT.prototype,"iconButton",void 0);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pT.prototype,"onPopupClosed",null);pT=_.Q([_.t({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],pT);
_.A(pT,"ytd-icon-badge-topbar-button-renderer",function(){if(DQX!==void 0)return DQX;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return DQX=Y},{mode:1});var IgI;var Fg=function(){var Y=_.Z.apply(this,arguments)||this;Y.premiumOptions=[];Y.darkerDarkTheme=_.f("web_darker_dark_theme");return Y};
_.r(Fg,_.Z);Fg.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.y6.Object.defineProperties(Fg.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Fg.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Array)],Fg.prototype,"premiumOptions",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Fg.prototype,"darkerDarkTheme",void 0);_.Q([_.d("premiumOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],Fg.prototype,"hasPremiumOptions",null);
Fg=_.Q([_.t({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Fg);
_.A(Fg,"ytd-offline-promo-content",function(){if(IgI!==void 0)return IgI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return IgI=Y},{mode:1});var agc;var sS=function(){var Y=_.Z.apply(this,arguments)||this;Y.premiumOptions=[];return Y};
_.r(sS,_.Z);sS.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var Y;this.premiumOptions=WZX((Y=this.data)==null?void 0:Y.formats)};
sS.prototype.onClickSubmit=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var Y;(Y=_.Q5())==null||Y.pause()};
sS.prototype.attached=function(){this.JSC$18309_scroller&&(this.JSC$18309_scroller.dialogElement=this.hostElement.parentNode)};
_.y6.Object.defineProperties(sS.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
sS.prototype.dataChanged=sS.prototype.dataChanged;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],sS.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],sS.prototype,"data",void 0);
_.Q([_.X({computed:"computeIcon_(data.headersIcon)",value:""}),_.k("design:type",String)],sS.prototype,"headersIcon",void 0);_.Q([_.X(),_.k("design:type",Array)],sS.prototype,"premiumOptions",void 0);_.Q([_.nc("#scroller"),_.k("design:type",Object)],sS.prototype,"JSC$18309_scroller",void 0);_.Q([_.d("headersIcon"),_.k("design:type",Object),_.k("design:paramtypes",[])],sS.prototype,"showIcon",null);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sS.prototype,"dataChanged",null);sS=_.Q([_.t({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],sS);
_.A(sS,"ytd-offline-promo-renderer",function(){if(agc!==void 0)return agc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return agc=Y},{mode:1});var LLc;var di=function(){var Y=_.Z.apply(this,arguments)||this;Y.playbackPauseInterval=NaN;Y.isLoading=!1;Y.hasError=!1;Y.dialogClass="";Y.youtubeLabel=_.Td("LOGO_ALT_LABEL",{},"YouTube Home");Y.logoName="yt-logos-ext:yt-logo-updated";Y.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return Y};
_.r(di,_.Z);_.z=di.prototype;_.z.onDataChange=function(){var Y;if(this.showEOMV1Text=!((Y=this.data)==null||!Y.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.z.attached=function(){this.pausePlayer()};
_.z.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.z.handleLangSelect=function(Y){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[Y.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.z.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.z.handleSaveConsent=function(Y){var S=this;this.showLoadingSpinner();this.showLoadingSpinner();Ac6(_.g(Y,Mpu)).catch(function(P){_.sf(new _.$2("Something went wrong when save consent "+(P.message?P.message:P)+"."));S.hideLoadingSpinner();S.showErrorMessage()})};
_.z.handleDisablePersonalization=function(Y){var S=this;this.showLoadingSpinner();UYY(_.g(Y,kfd)).then(function(){S.dialog.close();S.resumePlayer()}).catch(function(P){_.sf(new _.$2("Something went wrong when disable personalization "+(P.message?P.message:P)+"."));
S.hideLoadingSpinner();S.showErrorMessage()})};
_.z.showLoadingSpinner=function(){var Y=this;this.showSpinnerJobId=_.wc.addLowPriorityJob(function(){Y.isLoading=!0},500)};
_.z.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.wc.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.z.showErrorMessage=function(){var Y=this;this.hasError=!0;_.wc.addLowPriorityJob(function(){Y.hasError=!1},2E3)};
_.z.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.BQ(function(){try{var Y=_.Q5();Y&&Y.pause()}catch(S){}},100))};
_.z.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var Y=_.Q5();Y&&Y.play()}catch(S){}};
_.y6.Object.defineProperties(di.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.eomV1Text)return[];Y=[];for(var S=["SHIELD","WARNING","BAR_CHART"],P=this.data.eomV1Text.essentialCookieMsg.items,u=0;u<S.length&&u<P.length;u++)Y.push({icon:S[u],text:P[u]});return Y}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.eomV1Text)return[];Y=[];for(var S=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],P=this.data.eomV1Text.nonEssentialCookieMsg.items,u=0;u<S.length&&u<P.length;u++)Y.push({icon:S[u],text:P[u]});return Y}}});
di.prototype.onDataChange=di.prototype.onDataChange;_.Q([_.X(),_.k("design:type",Object)],di.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],di.prototype,"showEOMV1Text",void 0);_.Q([_.X(),_.k("design:type",Object)],di.prototype,"isLoading",void 0);_.Q([_.X(),_.k("design:type",Object)],di.prototype,"hasError",void 0);_.Q([_.X(),_.k("design:type",Number)],di.prototype,"showSpinnerJobId",void 0);_.Q([_.X(),_.k("design:type",Object)],di.prototype,"dialogClass",void 0);
_.Q([_.nc("#dialog"),_.k("design:type",Object)],di.prototype,"dialog",void 0);_.Q([_.nc("#cb-header"),_.k("design:type",HTMLElement)],di.prototype,"header",void 0);_.Q([_.nc("#lang-select"),_.k("design:type",HTMLElement)],di.prototype,"langSelect",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],di.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],di.prototype,"ytComponentBehavior",void 0);
_.Q([_.X(),_.k("design:type",String)],di.prototype,"youtubeLabel",void 0);_.Q([_.X(),_.k("design:type",Object)],di.prototype,"logoName",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],di.prototype,"onDataChange",null);_.Q([_.d("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],di.prototype,"eomEssentialCookieMsgItems",null);
_.Q([_.d("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],di.prototype,"eomNonEssentialCookieMsgItems",null);di=_.Q([_.t({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],di);
_.A(di,"ytd-consent-bump-v2-lightbox",function(){if(LLc!==void 0)return LLc;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return LLc=Y},{mode:1});var wM5;var l8=function(){return _.Z.apply(this,arguments)||this};
_.r(l8,_.Z);l8.prototype.ready=function(){if(!_.Eh()||mwZ)var Y=!0;else mwZ=!0,Y=!1;Y||(Y=document.querySelector("ytd-app"),Y||(Y=document.body),this.internalLightBox=_.I(Y).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.Q([_.X(),_.k("design:type",Object)],l8.prototype,"data",void 0);_.Q([_.nc("#lightbox"),_.k("design:type",Object)],l8.prototype,"lightBox",void 0);l8=_.Q([_.t({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],l8);
_.A(l8,"ytd-consent-bump-v2-renderer",function(){if(wM5!==void 0)return wM5;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return wM5=Y},{mode:1});var pMo;var FL_;var s31;var Xg=function(){var Y=_.Z.apply(this,arguments)||this;Y.ephemeralActionsEnabled=_.f("web_ephemeral_actions");return Y};
_.r(Xg,_.Z);_.z=Xg.prototype;_.z.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&gJI(this.toastManager,this.toastType)};
_.z.open=function(Y){this.toast&&(this.ephemeralAction&&_.E().resolve(_.zG).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=Y!=null?Y:0,this.toastManager.enqueue(this.toast,Y)):this.toast.open())};
_.z.close=function(Y){var S;(S=this.toast)==null||S.close();this.toastManager&&Y===1&&gJI(this.toastManager,Y)};
_.z.refit=function(){var Y;(Y=this.toast)==null||Y.refit()};
_.z.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var Y;(Y=this.toast)==null||Y.close()}};
_.z.setVerticalOffset=function(Y){this.toast&&(this.toast.verticalOffset=Y,this.toast.fit())};
_.z.computeButtonClass_=function(Y){return Y?"toast-button":""};
_.z.computeText_=function(Y){return _.Ma(Y)};
_.z.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.I1("toast-opened-changed",this.toastOpened))};
_.z.updateToastOpenedFromBinding=function(Y){this.toastOpened=Y.detail.value};
_.y6.Object.defineProperties(Xg.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var Y,S,P=(Y=this.data)==null?void 0:(S=Y.actionButton)==null?void 0:S.buttonRenderer;return(P==null?void 0:P.command)||(P==null?void 0:P.serviceEndpoint)||(P==null?void 0:P.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var Y=[],S;((S=this.data)==null?0:S.responseText)&&Y.push(_.Ma(this.data.responseText));var P;((P=this.data)==null?0:P.subText)&&Y.push(_.Ma(this.data.subText));var u,W;if((u=this.data)==null?0:(W=u.actionButton)==null?0:W.buttonRenderer){var m,J;Y.push(((m=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(J=m.accessibilityData)==null?void 0:J.label)||_.Ma(this.data.actionButton.buttonRenderer.text))}return Y.filter(function(c){return c}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var Y,S;return(S=(Y=this.toast)==null?void 0:Y.opened)!=null?S:!1}}});
Xg.prototype.toastOpenedChangedForBinding=Xg.prototype.toastOpenedChangedForBinding;Xg.prototype.toastOpenedChanged=Xg.prototype.toastOpenedChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],Xg.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Xg.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Xg.prototype,"duration",void 0);
_.Q([_.X(),_.k("design:type",Number)],Xg.prototype,"toastType",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Xg.prototype,"useCloseButton",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],Xg.prototype,"closeToastOnActionButtonClick",void 0);_.Q([_.X({value:function(){return _.Td("SBOX_INAPPROPRIATE_CANCEL")}}),
_.k("design:type",String)],Xg.prototype,"closeButtonAriaLabel",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Xg.prototype,"toastOpened",void 0);_.Q([_.X(),_.k("design:type",Boolean)],Xg.prototype,"hasOpened",void 0);_.Q([_.X(),_.k("design:type",Object)],Xg.prototype,"ephemeralActionsEnabled",void 0);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xg.prototype,"command",null);
_.Q([_.d("ephemeralActionsEnabled","labelText","command","duration"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xg.prototype,"ephemeralAction",null);_.Q([_.d("ephemeralAction"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Xg.prototype,"hasEphemeralAction",null);_.Q([_.nc("#toast"),_.k("design:type",Object)],Xg.prototype,"toast",void 0);_.Q([_.X({value:function(){return{style:"call-to-action-inverse"}}}),
_.k("design:type",Object)],Xg.prototype,"buttonOverrides",void 0);_.Q([_.X({value:{style:"mono-inverse"}}),_.k("design:type",Object)],Xg.prototype,"closeButtonOverrides",void 0);_.Q([_.X({value:function(){return _.E().resolve(_.PQ(_.oYX))}}),
_.k("design:type",Object)],Xg.prototype,"toastManager",void 0);_.Q([_.d("data.responseText","data.subText","data.actionButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xg.prototype,"labelText",null);_.Q([_.zY("toastOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"toastOpenedChanged",null);
_.Q([_.zY("toastOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"toastOpenedChangedForBinding",null);Xg=_.Q([_.r0({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Xg);
_.A(Xg,"yt-notification-action-renderer",function(){if(s31===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;FL_===void 0&&(FL_=document.createElement("template"));var u=FL_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);s31=Y}Y=s31;return Y},{mode:2});var Zh=function(){var Y=_.Z.apply(this,arguments)||this;Y.duration=4E3;Y.downloadingCount=0;Y.downloadedCount=0;Y.downloadingOnlySmartDownloads=!1;Y.sessionTotalDownloads=0;Y.sessionDownloaded=0;Y.previousSessionsDownloaded=0;Y.totalDownloadPercentage=0;Y.currentDownloadProgress=0;Y.currentDownloadPercentage=0;Y.isLeaderTab=!0;Y.isFullScreen=!1;Y.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};Y.boundBeforeUnload=function(S){Y.isLeaderTab&&Y.downloadingCount>0&&(S.preventDefault(),
S.returnValue=!0)};
return Y};
_.r(Zh,_.Z);_.z=Zh.prototype;
_.z.open=function(){this.updateDownloadState();if(this.data){var Y=this.sessionDownloaded+1,S=this.sessionTotalDownloads>1?_.Td("VIDEOS_DOWNLOADING_RATIO",{downloaded:Y.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+Y+"/"+this.sessionTotalDownloads):_.Td("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(S=this.sessionTotalDownloads>1?_.Td("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:Y.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
Y+"/"+this.sessionTotalDownloads):_.Td("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));Y=this.isLeaderTab?_.Td("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Ma(this.data.responseText)!==S||_.Ma(this.data.subText)!==Y)this.set("data.responseText",_.kW(S)),this.set("data.subText",_.kW(Y)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.z.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.z.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.z.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.z.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var Y=this.downloadedCount-this.previousSessionsDownloaded;Y<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-Y);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.z.handleFullscreenChange=function(Y){(this.isFullScreen=Y)||this.updatePopup()};
Zh.prototype.updateCurrentDownloadProgress=Zh.prototype.updateCurrentDownloadProgress;Zh.prototype.updatePopup=Zh.prototype.updatePopup;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Zh.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],Zh.prototype,"ytEventForwardingBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Zh.prototype,"actionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Zh.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Zh.prototype,"duration",void 0);_.Q([_.X({selector:function(Y){return _.Zr$(Y.entities).length}}),
_.k("design:type",Object)],Zh.prototype,"downloadingCount",void 0);_.Q([_.X({selector:Ozj}),_.k("design:type",Object)],Zh.prototype,"downloadedCount",void 0);_.Q([_.X({selector:function(Y){var S=_.Zr$(Y.entities);return ea_(Y.entities,S)}}),
_.k("design:type",Object)],Zh.prototype,"downloadingOnlySmartDownloads",void 0);_.Q([_.X(),_.k("design:type",Object)],Zh.prototype,"sessionTotalDownloads",void 0);_.Q([_.X(),_.k("design:type",Object)],Zh.prototype,"sessionDownloaded",void 0);_.Q([_.X(),_.k("design:type",Object)],Zh.prototype,"previousSessionsDownloaded",void 0);_.Q([_.X(),_.k("design:type",Object)],Zh.prototype,"totalDownloadPercentage",void 0);
_.Q([_.X({selector:function(Y){var S;Y=(S=_.Zr$(Y.entities))!=null?S:[];return Y.length>0?_.DJ9(Y.slice(-1)):0}}),
_.k("design:type",Object)],Zh.prototype,"currentDownloadProgress",void 0);_.Q([_.X(),_.k("design:type",Object)],Zh.prototype,"currentDownloadPercentage",void 0);_.Q([_.X({selector:_.Eph}),_.k("design:type",Object)],Zh.prototype,"isLeaderTab",void 0);_.Q([_.nc("yt-notification-action-renderer"),_.k("design:type",Object)],Zh.prototype,"notificationActionRenderer",void 0);
_.Q([_.cZ("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zh.prototype,"updatePopup",null);_.Q([_.cZ("currentDownloadProgress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zh.prototype,"updateCurrentDownloadProgress",null);Zh=_.Q([_.t({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Zh);
_.A(Zh,"ytd-video-download-toast-renderer",function(){if(pMo!==void 0)return pMo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return pMo=Y},{mode:1});var dQ6;var lg1;var OS=function(){return _.Z.apply(this,arguments)||this};
_.r(OS,_.Z);OS.prototype.computeIsRedLogo=function(Y,S){!Y&&S&&(Y=S);return Y==="YOUTUBE_RED_LOGO"||Y==="YOUTUBE_PREMIUM_LOGO"};
OS.prototype.computeLogoName=function(Y){Y=this.componentBehavior.computeIcon_(Y);return Y===""?"yt-logos-ext:yt-logo-updated":Y};
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],OS.prototype,"componentBehavior",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.k("design:type",Boolean)],OS.prototype,"isRedLogo",void 0);_.Q([_.X({computed:"computeLogoName(data)"}),_.k("design:type",String)],OS.prototype,"logoName",void 0);_.Q([_.X({value:{}}),_.k("design:type",Object)],OS.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],OS.prototype,"logoType",void 0);OS=_.Q([_.t({disableElementRegistration:!0,is:"ytd-logo"})],OS);
_.A(OS,"ytd-logo",function(){if(lg1!==void 0)return lg1;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return lg1=Y},{mode:_.OX("kevlar_poly_si_batch_j074")?1:2});var Ye=function(){var Y=_.Z.apply(this,arguments)||this;Y.animationRef={};return Y};
_.r(Ye,_.Z);_.z=Ye.prototype;_.z.attached=function(){document.addEventListener("yt-navigate-finish",_.up(this,this.logYoodle))};
_.z.detached=function(){document.removeEventListener("yt-navigate-finish",_.up(this,this.logYoodle))};
_.z.logYoodle=function(){var Y,S;if((Y=this.data)==null?0:(S=Y.loggingDirectives)==null?0:S.trackingParams)this.ytRendererBehavior.markDirty(),_.BF().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.z.computeHideImg=function(Y,S){return!!Y||!!S};
_.z.computeHideYtdLogo=function(Y,S){return!Y||!!S};
_.z.computeHideLottie=function(Y){return!Y};
_.z.computeIsRedLogo=function(Y){return Y==="YOUTUBE_RED_LOGO"||Y==="YOUTUBE_PREMIUM_LOGO"};
_.z.renderLogoEntity=function(){var Y=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),S=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),P=this.getLogoTitleText(this.data),u=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==Y&&(this.url=Y);this.animatedUrl!==S&&(this.animatedUrl=S);this.logoTitleText!==P&&(this.logoTitleText=P);this.lottieUrl!==u&&(this.lottieUrl=u,this.lottiePlayerProps=this.computeLottiePlayerProps(u))};
_.z.getSanitizedThumbnail=function(Y){return Y&&Y.thumbnails?_.Yr1(Y.thumbnails,122)||"":""};
_.z.getThumbnailUrl=function(Y,S){if(!S)return"";var P,u;Y=Y?(P=S.darkThemeLogo)==null?void 0:P.thumbnail:(u=S.lightThemeLogo)==null?void 0:u.thumbnail;return this.getSanitizedThumbnail(Y)};
_.z.getAnimatedThumbnailUrl=function(Y,S){return S?this.getSanitizedThumbnail(Y?S.darkThemeAnimatedLogo:S.lightThemeAnimatedLogo):""};
_.z.getLogoTitleText=function(Y){if(Y)return _.Ma(Y.tooltipText)};
_.z.computeLogoIcon=function(Y,S){if(S){var P,u;return Y?(P=S.darkThemeLogo)==null?void 0:P.icon:(u=S.lightThemeLogo)==null?void 0:u.icon}};
_.z.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.z.getLottieUrl=function(Y,S){var P,u,W,m;return Y?S==null?void 0:(P=S.darkThemeLogo)==null?void 0:(u=P.lottieAnimation)==null?void 0:u.url:S==null?void 0:(W=S.lightThemeLogo)==null?void 0:(m=W.lottieAnimation)==null?void 0:m.url};
_.z.computeLottiePlayerProps=function(Y){if(Y){var S;if((S=this.animationRef)==null?0:S.lottieEl){var P;(P=this.animationRef)==null||P.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:Y,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.z.onLottieError=function(){this.data&&this.lottieUrl&&_.ms(this.hostElement,"yoodle-error")};
_.z.onImgError=function(){this.data&&!this.lottieUrl&&_.ms(this.hostElement,"yoodle-error")};
Ye.prototype.playAnimation=Ye.prototype.playAnimation;Ye.prototype.renderLogoEntity=Ye.prototype.renderLogoEntity;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Ye.prototype,"data",void 0);_.Q([_.X({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.k("design:type",Boolean)],Ye.prototype,"hideImg",void 0);
_.Q([_.X({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.k("design:type",Boolean)],Ye.prototype,"hideYtdLogo",void 0);_.Q([_.X({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.k("design:type",Boolean)],Ye.prototype,"hideLottie",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.k("design:type",Boolean)],Ye.prototype,"isRedLogo",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],Ye.prototype,"useDarkThemeYoodle",void 0);_.Q([_.X(),_.k("design:type",String)],Ye.prototype,"url",void 0);_.Q([_.X(),_.k("design:type",String)],Ye.prototype,"animatedUrl",void 0);_.Q([_.X(),_.k("design:type",String)],Ye.prototype,"logoTitleText",void 0);_.Q([_.X({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.k("design:type",Object)],Ye.prototype,"logoIcon",void 0);_.Q([_.X(),_.k("design:type",Object)],Ye.prototype,"logoType",void 0);
_.Q([_.X(),_.k("design:type",String)],Ye.prototype,"lottieUrl",void 0);_.Q([_.X(),_.k("design:type",Object)],Ye.prototype,"lottiePlayerProps",void 0);_.Q([_.X(),_.k("design:type",Object)],Ye.prototype,"animationRef",void 0);_.Q([_.zY("data"),_.zY("useDarkThemeYoodle"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ye.prototype,"renderLogoEntity",null);
_.Q([_.WZ("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Ye.prototype,"playAnimation",null);Ye=_.Q([_.t({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Ye);
_.A(Ye,"ytd-yoodle-renderer",function(){if(dQ6!==void 0)return dQ6;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return dQ6=Y},{mode:_.OX("kevlar_poly_si_batch_j074")?1:2});var XMj;var Zio;var SU=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return Y};
_.r(SU,_.Z);_.z=SU.prototype;_.z.onYoodleError=function(){_.f("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.z.computeLogoName=function(Y){Y=this.componentBehavior.computeIcon_(Y);return Y===""?"yt-logos-ext:yt-logo-updated":Y};
_.z.computeTitle=function(Y,S,P){return P&&(S==null?0:S.tooltipText)?_.Ma(S.tooltipText):_.Ma(Y)};
_.z.computeAriaLabel=function(Y,S,P){return P&&(S==null?0:S.tooltipText)?_.Ma(Y):""};
_.z.computeShowYoodle=function(Y,S,P){return!Y||!S&&!!P&&!_.RY.isEmpty(P)};
_.z.onNavigateHomeAction=function(){if(_.f("kevlar_miniplayer_navigate_home_from_app_killswitch")){var Y;(Y=_.I(this.hostElement).querySelector(".yt-simple-endpoint"))==null||Y.click()}};
_.z.computeLogoHref=function(Y,S,P){var u;(P==null?0:P.onTapCommand)?u=this.componentBehavior.computeHref_(P.onTapCommand):Y&&(u=this.componentBehavior.computeHref_(Y));return u?u:S};
_.z.computeCommand=function(Y,S){return(S==null?void 0:S.onTapCommand)||Y};
_.z.getEndpointForm=function(){if(_.f("kevlar_topbar_disable_cache_only_home")){var Y=_.E().resolve(_.Ee),S=z_1(Y.getState())||"";Y=_.Eu8(Y.getState())||"";return{disableCache:S==="ytd-browse"&&Y==="home"}}return{disableCache:!0}};
SU.prototype.onYoodleError=SU.prototype.onYoodleError;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],SU.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],SU.prototype,"componentBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],SU.prototype,"ytdReduxBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],SU.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],SU.prototype,"countryCode",void 0);_.Q([_.X({selectorArgs:["data.overrideEntityKey"],selector:function(Y,S){return _.BT(Y.entities,"logoEntity",S)}}),
_.k("design:type",Object)],SU.prototype,"logoEntity",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.k("design:type",Boolean)],SU.prototype,"showYoodle",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],SU.prototype,"yoodleError",void 0);_.Q([_.X({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.k("design:type",String)],SU.prototype,"titleText",void 0);
_.Q([_.X({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.k("design:type",String)],SU.prototype,"ariaLabelText",void 0);_.Q([_.X({value:"/"}),_.k("design:type",String)],SU.prototype,"defaultEndpointUrl",void 0);_.Q([_.X({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.k("design:type",String)],SU.prototype,"endpointUrl",void 0);
_.Q([_.X({computed:"computeCommand(data.endpoint, logoEntity)"}),_.k("design:type",String)],SU.prototype,"command",void 0);_.Q([_.X(),_.k("design:type",Object)],SU.prototype,"logoType",void 0);_.Q([_.X({}),_.k("design:type",Boolean)],SU.prototype,"useDarkThemeYoodle",void 0);_.Q([_.WZ("yoodle-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SU.prototype,"onYoodleError",null);SU=_.Q([_.t({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],SU);
_.A(SU,"ytd-topbar-logo-renderer",function(){if(Zio!==void 0)return Zio;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return Zio=Y},{mode:_.OX("kevlar_poly_si_batch_j027")?1:2});var iio=0;var oTB=_.ZM.SEARCH_APPEND_LABEL,t3u=_.ZM.SUGGESTION_NEW_VIDEOS_TEXT,AMo=_.ZM.SUGGESTION_THUMBNAIL_LABEL,UQI=_.AI(function(Y){function S(Zf){var Cu,hm;return _.B(function(Iu){if(Iu.nextAddress==1)return Cu=new Request(Zf),_.ND(Iu,2),_.q(Iu,fetch(Cu,{credentials:"include"}),4);if(Iu.nextAddress!=2)return G3(!0),_.tc(Iu,0);hm=_.O4(Iu);_.sf(hm);_.Yt(Iu)})}
var P=Y.isHighlighted;var u=Y.suggestion;var W=Y.onClickCallback;var m=Y.onHoverUpdateCallback;var J=Y.labels;var c=Y.queryBuilderFunction;var C=Y.onRemoveCallback;var x=Y.suggestionIndex;var b=Y.generateUniqueId;var T=Y.highlightedId;var K=Y.useScrollMargin;var G=Y.isKeyboardMode;var v=null,a=null,w=_.Ms(),F=_.Ms(),U=_.yZ(function(Zf){Zf&&_.pa(237477,Zf,a,function(Cu){a=Cu})}),V=_.yZ(function(Zf){Zf&&_.pa(237477,Zf,a,function(Cu){a=Cu})}),M=_.mR(function(Zf){if((Zf==null?void 0:Zf.button)===2)return Zf.preventDefault(),
!1;
var Cu=_.pM();Cu&&v&&_.MT(Cu,v,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var hm;W(Zf,u().text,u().index,Zf==null?void 0:(hm=Zf.detail)==null?void 0:hm.wasSelectedByKeyboard);return!1}),zJ=function(){return u().type===35},O=function(){return _.f("desktop_enable_single_suggestion_highlight")},ca=function(){return _.f("desktop_enable_entity_suggest")},hu=function(){return _.z_("desktop_suggestions_panel_row_height")||0},ah=function(){var Zf;
return _.f("desktop_enable_new_video_metadata")&&((Zf=u())==null?void 0:Zf.hasNewVideo)===!0},va=function(){return _.f("desktop_enable_visual_suggest")},yX=function(){return u().entitySubtitle},la=function(){return O()?(P==null?void 0:P())||kE()&&!(G==null?0:G()):(P==null?void 0:P())||kE()},w1=function(){var Zf=_.X3("SBOX_SETTINGS");
return zJ()&&!(Zf==null?0:Zf.HIDE_REMOVE_LINK)},U9=function(){return TbI(u())},nu,Yc=!((nu=_.E().resolve(_.PQ(_.F5)))==null||!nu()),tu=function(){return zJ()?"ARROW_TIME":"SEARCH"},$_=function(){return J==null?void 0:J().SUGGESTION_DISMISS_LABEL},fu=function(){return J==null?void 0:J().SUGGESTION_DISMISSED_LABEL};
nu=_.n(_.qb(!1,void 0,"ByoSbe"));Y=nu.next().value;var G3=nu.next().value;nu=_.n(_.qb(!1,void 0,"I2Bnsf"));var wd=nu.next().value,Wd=nu.next().value,kE=wd,n8=_.mR(function(){c(F.value.innerText);return!1}),P6=_.mR(function(Zf){Zf.preventDefault();
return!1}),ML=_.mR(function(Zf){var Cu=u().text,hm=_.X3("SBOX_SETTINGS"),Iu="https://"+(hm.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
Iu+="&delq="+encodeURIComponent(Cu);(Cu=hm==null?void 0:hm.PSUGGEST_TOKEN)&&(Iu+="&tok="+Cu);(hm=hm==null?void 0:hm.SESSION_INDEX)&&(Iu+="&authuser="+hm);S(Iu);Zf.preventDefault();(Zf=_.pM())&&a&&_.MT(Zf,a,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");C(x==null?void 0:x());return!1}),zc=_.mR(function(){if(O()&&(G==null?0:G()))return!1;
Wd(!0);m(!0);return!1}),Ku=_.mR(function(){Wd(!1);
m(!1);return!1});
nu=_.n(_.qb("",void 0,"f8xtGe"));var uo=nu.next().value,qL=nu.next().value;_.Ij(function(){w1()&&qL(b==null?void 0:b(x==null?void 0:x()));w.value&&_.pa(12453,w.value,v,function(Zf){v=Zf})});
return _.R(_.gw,{cond:Y,then:function(){var Zf={};return _.R("div",{class:_.Si("ytSuggestionComponentRemovedText",(Zf.ytSuggestionComponentLargerRemovedText=function(){return va()},Zf)),
style:function(){return hu()>0?"height: "+hu()+"px;":""},
role:"button"},fu)},
else:function(){var Zf={},Cu={};return _.R("div",{class:_.Si("ytSuggestionComponentSuggestion",(Zf.ytSuggestionComponentSuggestionHover=function(){return!O()},Zf.ytSuggestionComponentHighlighted=la,Zf.ytSuggestionComponentPersonalizedSuggestion=zJ,Zf.ytSuggestionComponentMweb=!1,Zf.ytSuggestionComponentLargerSuggestion=function(){return ah()||va()},Zf.ytSuggestionComponentThumbnailSuggestion=function(){return va()},Zf.ytSuggestionComponentRoundedSuggestion=function(){return _.f("desktop_enable_scrollable_suggestions_panel")&&
_.f("desktop_enable_suggestions_panel_padding")},Zf)),
style:function(){return hu()>0?"height: "+hu()+"px;":""},
role:"presentation","on:mousedown":M,"on:mouseover":zc,"on:mouseout":Ku,el:w},_.R("div",{class:_.Si("ytSuggestionComponentText",(Cu.ytSuggestionComponentScrollMargin=K,Cu)),"aria-label":function(){return ah()?u().text+" "+t3u:u().text},
id:function(){return b==null?void 0:b(x==null?void 0:x())},
"on:mousedown":M,role:"option"},_.R(_.gw,{cond:function(){return u().type!==33},
then:function(){return _.R(_.BX,{icon:tu,className:"ytSuggestionComponentIcon"})}}),_.R("div",{class:"ytSuggestionComponentLeftContainer"},_.R("span",{el:F,
role:"button",tabindex:0},_.R(_.$Z,{each:U9},function(hm){return hm.bold?_.R("span",{class:"ytSuggestionComponentBold"},hm.text):_.R("span",null,hm.text)})),_.R(_.gw,{cond:function(){return ca()&&KL6(u())&&!!u().entitySubtitle},
then:function(){return _.R("div",{class:"ytSuggestionComponentEntitySubtitle"},yX)}}),_.R(_.gw,{cond:function(){return ah()},
then:function(){return _.R("div",{class:"ytSuggestionComponentNewVideoContainer"},_.R("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.R("div",{class:"ytSuggestionComponentNewVideoText"},t3u))}}))),_.R("div",{class:"ytSuggestionComponentRightContainer"},_.R(_.gw,{cond:function(){return va()&&u().visualSuggestUrl!==void 0},
then:function(){var hm={};return _.R("div",{class:"ytSuggestionComponentThumbnailContainer"},_.R("img",{"aria-label":AMo,class:_.Si("ytSuggestionComponentVisualSuggestThumbnail",(hm.ytSuggestionComponentCircularFrame=function(){return ca()&&KL6(u())&&u().subtypes.includes(790)},hm.ytSuggestionComponentEntitySuggestThumbnail=function(){return ca()&&KL6(u())},hm)),
src:function(){return u().visualSuggestUrl}}))}}),_.R(_.hA,null,_.R(_.rw,{when:function(){return va()&&w1()}},function(){var hm={};
return _.R("button",{class:_.Si("ytSuggestionComponentRemoveLinkClearButton",(hm.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return uo()&&uo()===(T==null?void 0:T())},hm.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!la()},hm)),
el:V,"on:mousedown":ML,"aria-label":$_,id:function(){return uo()}},_.R(_.BX,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.R(_.rw,{when:function(){return!(va()&&u().visualSuggestUrl!==void 0)&&w1()}},function(){var hm={};
return _.R("a",{class:_.Si("ytSuggestionComponentRemoveLink",(hm.ytSuggestionComponentRemoveLinkDark=Yc,hm.ytSuggestionComponentRemoveLinkSelected=function(){return uo()&&uo()===(T==null?void 0:T())},hm)),
el:U,"on:mousedown":ML,"aria-label":$_,tabindex:0,role:"button",id:function(){return uo()}},$_)}),_.R(_.rw,{when:function(){return!1}},function(){return _.R("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":n8,"on:mousedown":P6,role:"button","aria-label":oTB},_.R(_.BX,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Wf");var Q3I=_.AI(function(){var Y=_.mR(function(){$Qo().inputMethodsTracker.add(3);var S,P=(S=_.X3("SBOX_SETTINGS"))==null?void 0:S.REQUEST_LANGUAGE;if(P)return _.Xv("//www.google.com/textinputassistant/14/"+P+"_tia.js"),!1});
return _.R("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.R("button",{class:"ytdTextInputAssistantButton","on:click":Y},_.R("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Xf");var kwd=function(){this.cache=new Map},M3o=function(Y){for(var S=_.n(Y.cache.entries()),P=S.next();!P.done;P=S.next()){var u=_.n(P.value);
P=u.next().value;u=u.next().value;u.suggestions.some(function(W){return W.type===35})&&Y.cache.delete(P)}};var yM5=_.ZM.SEARCH,Nb1=_.ZM.SEARCH_CLEAR_LABEL,Hid=new _.yH("FAKE_SUGGEST_RESPONSE");_.AL(_.AI(function(Y){function S(){Zf||(Zf=setTimeout(function(){hm()},1E3))}
function P(T3,x_){if(T3.trim()){qL=T3;_.lk("REFINEMENTS_TUPLE",void 0);Ku=!0;var xc;x_=hdI(kE,x_);var kc=(xc=Y.searchEndpoint)==null?void 0:xc.call(Y);xc=fu.value.value;kc||(kc=EBu);var mh;(mh=_.g(kc.commandMetadata,_.Yo))!=null&&mh.url||(mh=Error("nl`"+JSON.stringify(kc)),_.p_(mh),kc=EBu);mh=_.RY.unsafeClone(kc);kc=_.X_(_.g(mh.commandMetadata,_.Yo).url,"search_query",T3);_.FI(location.href,"sv")==="1"&&(_.g(mh,_.qy).params="EgOAAgE%3D",kc=_.X_(kc,"sv","1"));_.g(mh,_.qy)&&(_.g(mh,_.qy).query=T3);
kc=kc.replace(/%20/g,"+");_.g(mh.commandMetadata,_.Yo).url=kc;_.E().resolve(_.uY).resolveCommand(mh,{form:{tempData:{gs_l:x_,oq:xc!=null?xc:T3}}});hm();fu.value.value=T3;fu.value.blur();kE.reset()}}
function u(T3){return _.B(function(x_){return x_.return(new Promise(function(xc){var kc=new XMLHttpRequest;kc.open("GET",BbY(T3),!0);kc.withCredentials=!0;var mh=_.X3("SBOX_SETTINGS");(mh==null?0:mh.SEND_VISITOR_DATA)&&kc.setRequestHeader("X-Goog-Visitor-Id",mh==null?void 0:mh.VISITOR_DATA);kc.onload=function(){xc(kc.responseText)};
kc.onerror=function(){_.sf(Error("ol"));xc(null)};
setTimeout(function(){kc.abort()},1E4);
kc.send(null)}))})}
function W(T3){var x_,xc,kc,mh;return _.B(function(ZD){switch(ZD.nextAddress){case 1:return x_={credentials:"include",headers:JMc()},window.AbortController&&(xc=new AbortController,setTimeout(function(){xc.abort("ytsbox-suggest-timeout")},1E4),x_.signal=xc.signal),_.ND(ZD,2),_.q(ZD,fetch(BbY(T3),x_),4);
case 4:kc=ZD.yieldResult.text();_.tc(ZD,3);break;case 2:return mh=_.O4(ZD),mh!=="ytsbox-abort-last"&&mh!=="ytsbox-suggest-timeout"&&_.sf(mh),ZD.return(null);case 3:return ZD.return(kc)}})}
function m(T3){var x_,xc,kc;return _.B(function(mh){switch(mh.nextAddress){case 1:if(x_=_.E().resolve(_.PQ(Hid)))return mh.return(x_);xc=Date.now();S();return _.f("yt_searchbox_xhr")?_.q(mh,u(T3),5):_.q(mh,W(T3),4);case 4:kc=mh.yieldResult;mh.jumpTo(3);break;case 5:kc=mh.yieldResult;case 3:if(kc){Zf&&(clearTimeout(Zf),Zf=null);var ZD=kE,JA=xc,pS=T3.query.length===0;JA=Date.now()-JA;pS?ZD.zeroPrefixRoundTripTime=JA:(ZD.JSC$18289_totalRoundTripTime+=JA,ZD.maxRoundTripTime=Math.max(ZD.maxRoundTripTime,
JA),pS=Math.floor(JA/100),pS>=vT6.length?++ZD.roundTripTimeHistogram[9]:++ZD.roundTripTimeHistogram[vT6[pS]])}return mh.return(kc)}})}
function J(T3){var x_,xc,kc;return _.B(function(mh){if(mh.nextAddress==1)return(x_=Wd.cache.get(j3Z(T3)))?mh.return(x_):_.q(mh,m(T3),2);xc=mh.yieldResult;if(xc===null)return mh.return(null);kc=new ETB(xc);T3.query.length===0&&kc.suggestions.length===0||Wd.cache.set(j3Z(T3),kc);return mh.return(kc)})}
function c(T3){var x_,xc;return _.B(function(kc){if(kc.nextAddress==1){uo=!1;var mh=qL;mh=_.zHu()==="search"?(_.FI(location.href,"search_query")||_.FI(location.href,"q"))===mh:!1;x_=new nTd(T3,mh?qL:null);return _.q(kc,J(x_),2)}xc=kc.yieldResult;if(xc===null)return kc.return();x_.query.length===0&&(kE.zeroPrefixSuggestionCount=xc.suggestions.length);if(x_.id<=Cu)return kE.outOfSyncResponseCount++,kc.return();if(document.activeElement!==fu.value)return kc.return();Cu=x_.id;var ZD=kE,JA=xc.rawResponse[2]||
{};ZD.experimentTriggeredBeforeFinal||(ZD.experimentTriggeredBeforeFinal=ZD.experimentTriggeredFinal);ZD.experimentTriggeredFinal=!!JA.e;kE.updateSuggestions(xc.suggestions);w(-1);nu([]);xc.suggestions!==G()&&V4(xc.suggestions.length);v(xc.suggestions);hu(xc.suggestions.length>0&&xc.suggestions[0].type===33);wd&&(wd.hidden=xc.suggestions.length===0,ca()?(wd.style.minWidth="",ZD=wd.style,JA=(mh=G()[0])==null?void 0:mh.ignoredPrefix,ZD.marginLeft=(JA?Math.min(JA.length*6,G3.value.offsetWidth):0).toString()+
"px"):(wd.style.minWidth=G3.value.offsetWidth+"px",wd.style.marginLeft="0"),y3());_.Yt(kc)})}
function C(){if(!Ku)return!1;var T3=_.X3("REFINEMENTS_TUPLE");return T3?(T3=T3[1].map(function(x_,xc){return new bi_([x_,0,[71]],fu.value.value,xc)}),G()!==T3&&V4(T3.length),nu([]),v(T3),kE.updateSuggestions(T3),Ku=!1,wd.hidden=T3.length===0,uo=T3.length>0,!0):!1}
function x(){var T3=fu.value.value;(typeof T3==="string"||T3 instanceof String)&&T3!==""?M(!0):M(!1)}
function b(){if(_.zHu()==="search"){var T3=window.location.href;try{var x_=_.FI(T3,"search_query")||_.FI(T3,"q")||""}catch(xc){x_=""}x_&&(fu.value.value=x_,M(!0))}}
var T=_.n(_.qb([],void 0,"kGFAjf")),K=T.next().value;T=T.next().value;var G=K,v=T;K=_.n(_.qb(-1,void 0,"mLGL9e"));var a=K.next().value,w=K.next().value;K=_.n(_.qb(-1,void 0,"u2rYdc"));var F=K.next().value,U=K.next().value;K=_.n(_.qb(!1,void 0,"W9DFC"));var V=K.next().value,M=K.next().value;K=_.n(_.qb(!1,void 0,"Ip4dNc"));var zJ=K.next().value,O=K.next().value;T=_.n(_.qb(!1,void 0,"ZNKSQb"));K=T.next().value;T=T.next().value;var ca=K,hu=T;T=_.n(_.qb(!1,void 0,"JBrGLd"));K=T.next().value;var ah=T.next().value;
T=_.n(_.qb(!1,void 0,"P2pD6e"));var va=T.next().value,yX=T.next().value;T=_.n(_.qb(1,void 0,"SjP20c"));var la=T.next().value,w1=T.next().value;T=_.n(_.qb([],void 0,"h4dRaf"));var U9=T.next().value,nu=T.next().value;T=_.n(_.qb(!1,void 0,"TUTzaf"));var Yc=T.next().value,tu=T.next().value;T=_.f("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var $_=_.Ms(),fu=_.Ms(),G3=_.Ms(),wd,Wd=new kwd,kE=$Qo(),n8=_.E().resolve(_.PQ(_.F5)),
P6=function(){var T3;return((T3=Y.forceDarkMode)==null?void 0:T3.call(Y))||!(n8==null||!n8())},ML=function(){return _.f("desktop_enable_scrollable_suggestions_panel")},zc="i"+iio++,Ku=!1,uo=!1,qL="",Zf=null,Cu=-1,hm=function(){nu([]);
v([]);hu(!1);wd&&(wd.hidden=!0);Zf&&(clearTimeout(Zf),Zf=null);w(-1)},Iu=function(T3,x_){T3.preventDefault();
tu(!0);wd&&(wd.hidden=!1);var xc=a();T3=G();var kc=U9();x_=nWc(x_);xc+=x_;for(xc>=T3.length?xc=-1:xc<-1&&(xc=T3.length-1);xc!==-1&&(kc.includes(xc)||xc>=T3.length||xc<0);)xc+=x_,xc>=T3.length&&(xc=-1);w(xc);a()>=0&&(fu.value.value=G()[a()].text,U(0),x(),T3=a(),kc=F(),(kc=document.getElementById(g7[T3][kc]))&&ML()&&(T3===G().length-1?wd.scrollTop=wd.scrollHeight:kc.scrollIntoView({block:"nearest",inline:"start"})))},Fi=_.mR(function(T3){if(!(T3.relatedTarget instanceof Element&&T3.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){O(!0);
var x_;(x_=Y.focusCallback)==null||x_.call(Y,!0);C()||(uo?wd.hidden=!1:(_.ms($_.value,"yt-autonav-pause-focus",{}),c(T3.target.value)))}}),tj=_.mR(function(T3){if(!(T3.relatedTarget instanceof Element&&T3.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){O(!1);
var x_;(x_=Y.focusCallback)==null||x_.call(Y,!1);wd.scrollTop=0;wd.hidden=!0;_.ms($_.value,"yt-autonav-pause-blur",{})}}),vd=function(T3){T3=nWc(T3);
var x_;((x_=g7[a()])==null?0:x_[F()+T3])&&U(F()+T3)},OE=_.mR(function(T3){var x_=T3.target;
switch(T3.keyCode){case 13:T3.preventDefault();var xc;if((xc=g7[a()])==null?0:xc[F()]){var kc;(kc=document.getElementById(g7[a()][F()]))==null||kc.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}T3=T3.shiftKey?4:3;xc=kE;kc=a();xc.selectedSuggestionIndex=kc;P(x_.value,T3);break;case 27:wd&&(wd.hidden=!0);break;case 40:Iu(T3,40);break;case 38:Iu(T3,38);break;case 39:vd(39);break;case 37:vd(37);break;case 229:kE.inputMethodsTracker.add(4);break;default:kE.inputMethodsTracker.add(1),
rMI(kE)}return!1}),Tc=_.mR(function(T3){c(T3.target.value);
x();ML()&&wd&&(wd.scrollTop=0);return!1}),XO=_.mR(function(){kE.inputMethodsTracker.add(2);
rMI(kE);return!1});
_.Ij(function(){if(wd){kE.reset();if(window.ResizeObserver){var T3=new ResizeObserver(function(){ca()||(wd.style.minWidth=G3.value.offsetWidth+"px")});
T3.observe(G3.value);(new ResizeObserver(function(){y3()})).observe(wd);
_.aI(function(){T3.disconnect()})}b();
window.addEventListener("yt-navigate-finish",b);window.addEventListener("yt-focus-searchbox",function(){fu.value.focus()});
var x_;ah((x_=_.X3("SBOX_SETTINGS"))==null?void 0:x_.HAS_ON_SCREEN_KEYBOARD)}else _.p_(new _.$2("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Y5=_.mR(function(T3){T3.preventDefault();P(fu.value.value,12);return!1}),L7=_.mR(function(T3){T3.preventDefault();
var x_,xc;(x_=fu)==null||(xc=x_.value)==null||xc.focus();var kc,mh;((kc=fu)==null?void 0:(mh=kc.value)==null?void 0:mh.value)!==""&&(fu.value.value="",fu.value.dispatchEvent(new Event("input")));return!1}),tF=_.mR(function(){var T3=ms6(fu.value.value,G().filter(function(x_){return x_.type!==35}).map(function(x_){return{label:x_.text}}));
_.nb($_.value,"yt-open-popup-action",[{openPopupAction:T3},document.body]);return!1}),jX=_.mR(function(){fu.value.focus();
return!1}),XF=function(T3,x_,xc,kc){kE.selectedSuggestionIndex=xc;
P(x_,kc?3:1)},bI=function(T3){fu.value.value=T3;
fu.value.dispatchEvent(new Event("input"));kE.inputMethodsTracker.add(5);rMI(kE,!0)},g7=[[]],Wu=function(T3){var x_="searchbox-suggestion"+_.D_(_.If);
g7[T3].push(x_);return x_},V4=function(T3){if(G()){g7=[[]];
for(var x_=0;x_<T3;x_++)g7.push([])}},y3=function(){if(ML()){var T3=wd,x_=T3.scrollTop;
T3=T3.scrollHeight-T3.clientHeight;yX(x_>=T3);x_=Math.abs(T3-x_);x_<=40?w1(1-(40-x_)/40):w1(1)}},W_=function(){return"opacity: "+la()*100+"%"},E9=_.mR(function(){y3();
return!1}),FE=_.mR(function(){tu(!1);
return!1}),ia,Rs={},W6={},DB={},c6={};
return _.R("yt-searchbox",{class:_.Si("ytSearchboxComponentHost",(Rs.ytSearchboxComponentMweb=!1,Rs.ytSearchboxComponentDesktop=!0,Rs["yt-searchbox-filled-query"]=function(){return V()},Rs["ytd-masthead"]=function(){return!zJ()},Rs.ytSearchboxComponentHostDark=P6,Rs)),
role:"search",el:$_,"client-ve-type":10349},_.R("div",{el:G3,"on:click":jX,class:_.Si("ytSearchboxComponentInputBox",(W6.ytSearchboxComponentInputBoxDark=P6,W6.ytSearchboxComponentInputBoxHasFocus=zJ,W6))},_.R("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Y5},_.R(_.gw,{cond:zJ,then:function(){return _.R("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.R(_.BX,{icon:"SEARCH"}))}}),_.R("input",{el:fu,
class:_.Si("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":zc,"aria-expanded":!((ia=wd)==null?0:ia.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":tj,"on:focus":Fi,"on:input":Tc,"on:keydown":OE,"on:paste":XO,placeholder:Y.placeholderText,"aria-activedescendant":function(){var T3;return(T3=g7[a()])==null?void 0:T3[F()]},
"aria-autocomplete":"list",role:"combobox"})),_.R(_.gw,{cond:K,then:function(){return _.R("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.R(Q3I,null))}}),_.R(_.gw,{cond:V,
then:function(){return _.R("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.R("button",{class:"ytSearchboxComponentClearButton","on:click":L7,"aria-label":Y.clearButtonAriaLabel||Nb1},_.R(_.BX,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.R(_.RF,{model:{}})))}})),_.R("button",{class:_.Si("ytSearchboxComponentSearchButton",(DB.ytSearchboxComponentSearchButtonDark=P6,DB)),
"on:click":Y5,"aria-label":yM5,title:Y.placeholderText},_.R(_.BX,{icon:"SEARCH"})),_.R(_.gw,{cond:function(){if(Ks1()&&_.f("mweb_voice_search")&&Y.voiceSearchButton)return Y.voiceSearchButton()},
then:function(T3){var x_={};return _.R("div",{class:_.Si("ytSearchboxComponentVoiceSearchWrapper",(x_.ytSearchboxComponentHideVoiceSearchButton=function(){return V()},x_))},_.R(_.rv,{data:T3},{buttonRenderer:function(xc){return _.R(_.aT,{data:xc.data,
onButtonClickCallback:function(){}})}}))}}),_.R("div",{el:_.Fqh(function(T3){return void(wd=T3)}),
id:zc,class:_.Si("ytSearchboxComponentSuggestionsContainer",(c6.ytSearchboxComponentSuggestionsContainerDark=P6,c6["yt-searchbox-suggestions-container"]=!1,c6.ytSearchboxComponentSuggestionsContainerScrollable=ML(),c6.ytSearchboxComponentSuggestionsContainerAnimated=T,c6)),"on:scroll":E9,"on:mousemove":FE,role:"listbox",hidden:!0},_.R(_.$Z,{each:G},function(T3,x_){return _.R(UQI,{suggestion:T3,isHighlighted:function(){return x_()===a()},
onClickCallback:XF,onHoverUpdateCallback:function(xc){if(_.f("desktop_enable_single_suggestion_highlight")){var kc=x_();xc&&(U(0),w(kc))}},
onRemoveCallback:function(xc){M3o(Wd);xc===void 0||xc<0||U9().includes(xc)||nu([].concat(_.cz(U9()),[xc]))},
labels:Y.labels,queryBuilderFunction:bI,suggestionIndex:x_,generateUniqueId:Wu,highlightedId:function(){var xc;return(xc=g7[a()])==null?void 0:xc[F()]},
useScrollMargin:ML(),isKeyboardMode:Yc})}),_.R(_.gw,{cond:function(){return!ca()&&G().find(function(T3){return T3.type!==35})&&_.f("searchbox_reporting")},
then:function(){return _.R("button",{class:"ytSearchboxComponentReportButton","on:mousedown":tF},_.Td("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.R(_.gw,{cond:function(){return!va()&&ML()},
then:function(){return _.R("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.R("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:W_}))}})))},"Yf"),"yt-searchbox",{props:{searchEndpoint:_.wm,
placeholderText:_.wm,labels:_.wm,voiceSearchButton:_.wm,focusCallback:_.tL,clearButtonAriaLabel:_.wm,forceDarkMode:_.wm}});var Pi=function(){var Y=_.Z.apply(this,arguments)||this;Y.menuButtonTargetId="topbar-guide-menu";Y.narrow=!1;Y.menuStrings={BACK_ALT_LABEL:_.Td("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Td("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Td("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Td("SBOX_PLACEHOLDER",void 0,"Search")};Y.pageDarkTheme=document.documentElement.hasAttribute("dark");Y.watchPageScrollTop=0;Y.theater=!1;Y.fullscreen=!1;Y.desktopUnifiedSearchPanelMode=_.f("desktop_enable_unified_search_panel");
Y.cinematicTheaterMode=_.f("web_cinematic_theater_mode");Y.ytSearchboxFocused=!1;Y.searchboxLabels=_.X3("SBOX_LABELS");Y.topbarIsAboveChipbar=!1;Y.isDarkThemeForced=!1;Y.areGhostCardsHidden=!1;Y.guideKeyboardToggle=!1;Y.voiceSearchManager=cOd();Y.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};Y.setYtSearchboxFocused=function(S){Y.ytSearchboxFocused=S};
return Y};
_.r(Pi,_.Z);_.z=Pi.prototype;_.z.computeSimpleText=function(Y){return _.Ma(Y)};
_.z.onDarkChanged=function(){for(var Y=_.n(this.buttons||[]),S=Y.next();!S.done;S=Y.next())S.value.isOverlay=!!this.dark;Y=_.n(this.buttonRenderers||[]);for(S=Y.next();!S.done;S=Y.next())S.value.overrides=this.computeButtonOverride()};
_.z.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.z.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"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var Y=_.Ld(_.aQ(),"aa");_.Vm(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||Y||(this.isDarkThemeForced=this.dark=!0);this.logoType?(Y=this.hostElement.querySelector("#masthead-logo"))&&(_.f("polymer_on_demand_shady_dom")?Y.setAttribute("slot","masthead-logo-old"):_.jL(Y)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.up(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.up(this,this.onSetTheaterModeEnabled))};
_.z.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.up(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.up(this,this.onSetTheaterModeEnabled))};
_.z.dataChanged=function(){var Y=this.data;Y&&(this.voiceEnabled=Y.voiceSearchButton?cOd().isSupported():!1,_.DQU(_.YA(),this.menuButtonTargetId,this.guideButton),Y.onReceivedActions&&Y.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.cu(this.hostElement,Y.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&Y&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Vm(this.hostElement,"dark",!1),_.Vm(this.hostElement,"theater",!1),
(Y=this.hostElement.querySelector("#masthead-logo"))&&(_.f("polymer_on_demand_shady_dom")?Y.setAttribute("slot","masthead-logo-old"):_.jL(Y))))};
_.z.computeCenterHidden=function(){var Y;return this.data&&!((Y=this.data.searchbox)==null?0:Y.fusionSearchboxRenderer)};
_.z.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Vm(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.z.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.z.onWatchScroll=function(Y){this.watchPageScrollTop=Y.detail||0;this.updateMastheadBackgroundOpacity()};
_.z.onFullscreenChangeAction=function(Y){Y||(this.watchPageScrollTop=0);this.fullscreen=Y;this.updateMastheadBackgroundOpacity()};
_.z.onSetTheaterModeEnabled=function(Y){this.theater=Y.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.z.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.z.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.z.setBackgroundOpacity=function(Y){Y=this.calculateBackgroundOpacity(Y);this.background.style.opacity=""+Y};
_.z.calculateBackgroundOpacity=function(Y){var S=this.theater&&this.cinematicTheaterMode?.6:0,P=this.hostElement.clientHeight/2;return Math.min(Math.max(Y,0),P)/P*(1-S)+S};
_.z.shouldShowCinematicMastHead=function(){var Y=_.f("kevlar_watch_grid")&&!_.f("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(Y||this.pageDarkTheme)};
_.z.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.z.focusGuide=function(){this.guideButton.focus()};
_.z.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.ms(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.z.onGuideToggleTap=function(){_.ms(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.z.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.z.onGuideToggleHover=function(){_.ms(this.hostElement,"yt-guide-hover")};
_.z.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.z.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.z.closeOnOutsideClickCondition=function(Y){for(Y=_.iM(Y);Y[0];){var S=Y.shift();if(S instanceof Element&&S.id==="kbd")return!1}return!0};
_.z.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.z.pausePlayer=function(){var Y;(Y=_.Q5())==null||Y.pause();this.pauseMiniplayer()};
_.z.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var Y;(Y=_.E().resolve(_.l1).getPlayerElement())==null||Y.pause()}};
_.z.isMiniplayerActive=function(){return _.E().resolve(_.l1).isMiniplayerActive()};
_.z.updateNarrowFromBinding=function(Y){this.narrow=Y.detail.value};
_.z.onYtSendFeedbackAction=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.y6.Object.defineProperties(Pi.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var Y;return(Y=this.data)==null?void 0:Y.voiceSearchButton}}}});
Pi.prototype.narrowChanged=Pi.prototype.narrowChanged;Pi.prototype.onIronResize=Pi.prototype.onIronResize;Pi.prototype.onWatchPageChange=Pi.prototype.onWatchPageChange;Pi.prototype.onRendererStamperFinished=Pi.prototype.onRendererStamperFinished;Pi.prototype.dataChanged=Pi.prototype.dataChanged;Pi.prototype.onDarkChanged=Pi.prototype.onDarkChanged;_.Q([_.p(_.G8),_.k("design:type",Object)],Pi.prototype,"ironResizableBehavior",void 0);
_.Q([_.p(_.rsd),_.k("design:type",Object)],Pi.prototype,"ytdExpandableInputBehavior",void 0);_.Q([_.p(_.LG.YtdGuideStateAwareBehavior),_.k("design:type",Object)],Pi.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Pi.prototype,"ytComponentBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Pi.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.Gn),_.k("design:type",Object)],Pi.prototype,"ytdReduxBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],Pi.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Pi.prototype,"narrow",void 0);_.Q([_.X(),_.k("design:type",Object)],Pi.prototype,"logoType",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],Pi.prototype,"voiceEnabled",void 0);_.Q([_.X(),_.k("design:type",Object)],Pi.prototype,"menuStrings",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Pi.prototype,"dark",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Pi.prototype,"pageDarkTheme",void 0);_.Q([_.X(),_.k("design:type",Object)],Pi.prototype,"watchPageScrollTop",void 0);
_.Q([_.X({reflectToAttribute:!0,selector:_.Fp}),_.k("design:type",Boolean)],Pi.prototype,"isWatchPage",void 0);_.Q([_.X({reflectToAttribute:!0,selector:_.npY}),_.k("design:type",Boolean)],Pi.prototype,"isShortsPage",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Pi.prototype,"theater",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],Pi.prototype,"fullscreen",void 0);
_.Q([_.X({reflectToAttribute:!0,selector:_.COX}),_.k("design:type",String)],Pi.prototype,"frostedGlassMode",void 0);_.Q([_.X(),_.k("design:type",Object)],Pi.prototype,"ytSearchboxFocused",void 0);_.Q([_.jD("#buttons > *"),_.k("design:type",Array)],Pi.prototype,"buttons",void 0);_.Q([_.jD("ytd-button-renderer"),_.k("design:type",Array)],Pi.prototype,"buttonRenderers",void 0);_.Q([_.nc("#background"),_.k("design:type",HTMLDivElement)],Pi.prototype,"background",void 0);
_.Q([_.nc("#guide-button"),_.k("design:type",Object)],Pi.prototype,"guideButton",void 0);_.Q([_.nc("#logo"),_.k("design:type",Object)],Pi.prototype,"logo",void 0);_.Q([_.X({computed:"computeButtonOverride(dark)"}),_.k("design:type",Object)],Pi.prototype,"buttonOverrides",void 0);_.Q([_.cZ("dark"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pi.prototype,"onDarkChanged",null);_.Q([_.X({value:function(){return this.onVoiceTap.bind(this)}}),
_.k("design:type",Function)],Pi.prototype,"boundOnTapVoiceButton",void 0);_.Q([_.X(),_.k("design:type",Object)],Pi.prototype,"topbarIsAboveChipbar",void 0);_.Q([_.d("voiceEnabled"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Pi.prototype,"shouldShowVoiceSearchButton",null);_.Q([_.d("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Pi.prototype,"voiceSearchButton",null);
_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pi.prototype,"dataChanged",null);_.Q([_.WZ("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pi.prototype,"onRendererStamperFinished",null);_.Q([_.cZ("isWatchPage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pi.prototype,"onWatchPageChange",null);
_.Q([_.WZ("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pi.prototype,"onIronResize",null);_.Q([_.cZ("narrow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pi.prototype,"narrowChanged",null);Pi=_.Q([_.t({disableElementRegistration:!0,is:"ytd-masthead"})],Pi);
_.A(Pi,"ytd-masthead",function(){if(XMj!==void 0)return XMj;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return XMj=Y},{mode:_.OX("kevlar_poly_si_batch_j036")?1:2});var V3B;var ed5={},Oio={},Yk5={},Sk1={},PFY=(Sk1.OFFLINE=(ed5["publicytnetworkstatus-online"]="BACK_ONLINE",ed5),Sk1.ONLINE=(Oio["publicytnetworkstatus-offline"]="OFFLINE",Oio),Sk1.BACK_ONLINE=(Yk5["publicytnetworkstatus-offline"]="OFFLINE",Yk5.TIMER_TRIGGER="ONLINE",Yk5),Sk1),ue=function(){var Y=_.Z.apply(this,arguments)||this;Y.currentState="ONLINE";Y.scheduledJobId=0;Y.bannerString="";Y.bannerVe=null;Y.networkStatusManagerInstance=new _.kF;return Y};
_.r(ue,_.Z);_.z=ue.prototype;_.z.attached=function(){var Y=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){Y.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){Y.stateChangeHandler("publicytnetworkstatus-offline")})};
_.z.detached=function(){var Y=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){Y.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){Y.stateChangeHandler("publicytnetworkstatus-offline")})};
_.z.enterState=function(Y){var S=this;this.scheduledJobId&&_.wc.cancelJob(this.scheduledJobId);Y==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):Y==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Td("NO_INTERNET_CONNECTION",void 0,"No internet connection")):Y==="BACK_ONLINE"&&(this.bannerString=_.Td("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.hp(_.wc,function(){S.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=Y};
_.z.stateChangeHandler=function(Y){(Y=PFY[this.currentState][Y])&&this.enterState(Y)};
_.z.logVisibility=function(Y){var S=_.pM();this.createBannerVe(Y);S&&this.bannerVe&&(Y?_.UV(S,[this.bannerVe]):_.QP(S,[this.bannerVe]))};
_.z.createBannerVe=function(Y){!this.bannerVe&&Y&&(this.bannerVe=_.TI(37929),_.Sa(_.BF(),this.bannerVe))};
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",String)],ue.prototype,"currentState",void 0);_.Q([_.X(),_.k("design:type",Object)],ue.prototype,"scheduledJobId",void 0);_.Q([_.X(),_.k("design:type",Object)],ue.prototype,"bannerString",void 0);ue=_.Q([_.t({disableElementRegistration:!0,is:"ytd-network-status-banner"})],ue);
_.A(ue,"ytd-network-status-banner",function(){if(V3B!==void 0)return V3B;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return V3B=
Y},{mode:1});var uzo;var Wi=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};Y.hidden=!0;Y.frostedGlass=_.f("web_frosted_glass");return Y};
_.r(Wi,_.Z);Wi.prototype.computeHidden=function(Y){return Y&&Y.status?!1:!0};
Wi.prototype.handleUpdatePermissionRoleCommand=function(Y){if(Y=_.g(Y,_.FTu))if(Y=_.g(Y.renderer,_.pmi))this.data=Y};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Wi.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Wi.prototype,"componentBehavior",void 0);_.Q([_.X({value:!0,computed:"computeHidden(data)"}),_.k("design:type",Object)],Wi.prototype,"hidden",void 0);_.Q([_.X(),_.k("design:type",Object)],Wi.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],Wi.prototype,"frostedGlass",void 0);
Wi=_.Q([_.t({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Wi);
_.A(Wi,"ytd-permission-role-bottom-bar-renderer",function(){if(uzo!==void 0)return uzo;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);return uzo=Y},{mode:1});var WCI;var zWI;var jR6={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var z0=function(){return _.Z.apply(this,arguments)||this};
_.r(z0,_.Z);_.z=z0.prototype;_.z.attached=function(){this.JSC$18391_scroller&&(this.JSC$18391_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18391_scroller.attached&&typeof this.JSC$18391_scroller.attached==="function"&&this.JSC$18391_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(P){P.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var Y=_.I(this.hostElement);Y.querySelector("tp-yt-paper-radio-group").selected="";var S=Y.querySelector("#reason-text");S&&(S.value="");Y.querySelector("#description-text").value=""}};
_.z.canSubmit=function(Y,S){_.ms(this.hostElement,"yt-invalidate-popup-tabbables");return!(Y&&S)};
_.z.onCancel=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.z.onSubmit=function(){var Y=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(m){return m.active}).map(function(m){return m.innerText.trim()}),S=this.hostElement.querySelector("tp-yt-paper-radio-group"),P=S.selectedItem,u=P.name;
P=P.innerText.trim();var W=S.querySelector("#reason-text");S=void 0;W&&(S=W.value);(W=this.descriptionText.value)&&(W=W.trim());JE1(this.data.searchQuery,Y,u,P,W,S);_.nb(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.z.sendFormSubmitToast=function(){var Y=_.ek(_.Td("SBOX_INAPPROPRIATE_TOAST"));_.nb(this.hostElement,"yt-open-popup-action",[Y,this])};
_.z.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(Y){return Y.active})};
_.z.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
z0.prototype.onIronSelect=z0.prototype.onIronSelect;z0.prototype.onIronChange=z0.prototype.onIronChange;z0.prototype.dataChanged=z0.prototype.dataChanged;_.Q([_.X(),_.k("design:type",Object)],z0.prototype,"data",void 0);_.Q([_.X({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.k("design:type",Boolean)],z0.prototype,"submitDisabled",void 0);_.Q([_.X(),_.k("design:type",Boolean)],z0.prototype,"suggestionSelected",void 0);
_.Q([_.X(),_.k("design:type",Boolean)],z0.prototype,"catagorySelected",void 0);_.Q([_.nc("#scroller"),_.k("design:type",Object)],z0.prototype,"JSC$18391_scroller",void 0);_.Q([_.nc("#description-text"),_.k("design:type",Object)],z0.prototype,"descriptionText",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],z0.prototype,"dataChanged",null);
_.Q([_.WZ("iron-change"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],z0.prototype,"onIronChange",null);_.Q([_.WZ("iron-select"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],z0.prototype,"onIronSelect",null);z0=_.Q([_.t({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],z0);
_.A(z0,"ytd-search-suggestion-report-dialog",function(){if(zWI!==void 0)return zWI;var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return zWI=Y},{mode:1});var mx=function(Y){var S=Y.openPopupAction;var P=Y.target;var u=Y.container;var W=Y.popupContainerConfig;var m=Y.getElement;Y=Y.removeWhenClosed===void 0?!1:Y.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=S;this.target=P;this.container=u;this.popupContainerConfig=W;this.getElement=m;this.JSC$18397_popupConfig=this.popupContainerConfig.JSC$17512_popupConfig[this.openPopupAction.popupType];this.rendererName=(S=this.getName())?_.K4u(S,ADu(this.popupContainerConfig,
S)):"";_.f("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=Y);this.createPopup()};
mx.prototype.updatePopup=function(Y){this.openPopupAction=Y;this.JSC$18397_popupConfig=this.popupContainerConfig.JSC$17512_popupConfig[this.openPopupAction.popupType];mSI(this);_.f("reorder_popup_updates_killswitch")&&nlI(this);_.f("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var B55=function(Y,S,P){Y.target=P;var u;P=((u=Y.target.polymerController)!=null?u:Y.target).popupPositionTarget||Y.target;Y.JSC$18397_popupConfig.targetContainer&&(P=Y.container);Y.popup.positionTarget=P;Y.popupContent.positionTarget=P;_.f("reorder_popup_updates_killswitch")||nlI(Y);Y.JSC$18397_popupConfig.forceFocus&&(Y.popupContent.style.outline="none");Y.popupContent.tabIndex=-1;Y.JSC$18397_popupConfig.narrowProperties&&(Y.popup.style.position="static");Y.JSC$18397_popupConfig.preventAutonav&&
Y.popup.setAttribute("prevent-autonav",!0);Y.JSC$18397_popupConfig.forceCloseOnOutsideClick&&Y.popup.setAttribute("force-close-on-outside-click",!0);joj(Y,S);J2d(Y,Y.JSC$18397_popupConfig.styles);Y.isRtl()&&J2d(Y,Y.JSC$18397_popupConfig.rtlStyles);if(!Y.openPopupAction.shouldStopParentSignal){var W;S=(W=Y.target.polymerController)!=null?W:Y.target;(Y.popupContent.startForwardingEvents||Y.popupContainerConfig.forwardingEnabledPopups.has(Y.rendererName))&&S.parentComponent!==Y.popupContent&&Y.popupContent!==
Y.target&&Y.target!==document.body&&(Y.popupContent.startForwardingEvents?Y.popupContent.startForwardingEvents(Y.popupContainerConfig.forwardedEvents,Y.target):(Y.JSC$18397_eventForwarder||(Y.JSC$18397_eventForwarder=new _.cs(Y.popupContent)),Y.JSC$18397_eventForwarder.start(Y.popupContainerConfig.forwardedEvents,Y.target)))}};
mx.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var joj=function(Y,S){c2_(Y,S&&Y.JSC$18397_popupConfig.narrowProperties?Y.JSC$18397_popupConfig.narrowProperties:Y.JSC$18397_popupConfig.properties);Y.isRtl()&&c2_(Y,Y.JSC$18397_popupConfig.rtlProperties);nlI(Y)};
mx.prototype.createPopup=function(){var Y=this.JSC$18397_popupConfig.component;if(this.popupContent=CF6(this,this.rendererName)){if(Y){this.popup=CF6(this,Y);var S=this.popupContent;_.f("web_enable_wrapper_for_cow_component_in_popup")&&(S=document.createElement("div"),S.appendChild(this.popupContent));_.f("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18397_popupConfig.slotName&&S.setAttribute("slot",this.JSC$18397_popupConfig.slotName);Y=this.popup;var P=this.container.tagName.toLowerCase(),
u=_.tK(S);_.OGa(_.UR(Y),_.My(S,P,u));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.f("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.I(this.container).appendChild(this.popup)}};
var mSI=function(Y){var S,P,u=(S=Y.openPopupAction.accessibilityData)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label;u&&(Y.popup.ariaLabel=u);var W;((W=Y.popupContent.polymerController)!=null?W:Y.popupContent).data=(0,_.RY.unsafeClone)(Y.openPopupAction.popup[Y.getName()]);Y.popupContent.duration=qkZ(Y);Y.popupContent.positionType=Y.openPopupAction.position;var m=Y.openPopupAction.properties;m&&Object.keys(m).forEach(function(J){Y.popupContent[J]=m[J]})},c2_=function(Y,S){if(S)for(var P=
_.n(Object.keys(S)),u=P.next();!u.done;u=P.next())u=u.value,Y.popup[u]=S[u]},nlI=function(Y){if(Y.openPopupAction.position){var S=Y.JSC$18397_popupConfig.positionalProperties&&Y.JSC$18397_popupConfig.positionalProperties[Y.openPopupAction.position],P=Y.JSC$18397_popupConfig.rtlPositionalProperties&&Y.JSC$18397_popupConfig.rtlPositionalProperties[Y.openPopupAction.position];
S=Y.isRtl()&&P?P:S;S.shiftedHorizontalOffset&&(P=Y.popup.style.display,Y.popup.style.display="block",Y.popupContent&&Y.popup.positionTarget&&Y.popupContent.clientWidth>Y.popup.positionTarget.clientWidth&&(S.horizontalOffset=Y.popup.positionTarget.clientWidth/2-S.shiftedHorizontalOffset),Y.popup.style.display=P);c2_(Y,S)}},J2d=function(Y,S){if(S)for(var P=_.n(Object.keys(S)),u=P.next();!u.done;u=P.next())u=u.value,Y.popup.style[u]=S[u]};
mx.prototype.getName=function(){return _.sW(this.openPopupAction.popup,"renderer")||_.sW(this.openPopupAction.popup,"dialog")||_.sW(this.openPopupAction.popup,"model")||void 0};
var qkZ=function(Y){Y=Y.openPopupAction.durationHintMs;return Y===0?Y:Math.max(4E3,Y||4E3)};
mx.prototype.isRtl=function(){return _.X3("HTML_DIR")==="rtl"};
var CF6=function(Y,S){Y=Y.getElement(S,Y.target);Y==null&&_.sf(new _.$2("popup getElement returned null",S));return Y};var RWZ={};
RWZ.YtPopupContainerBehavior=[_.rm.YtComponentBehavior,_.tD.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.uj(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.zd(this.hostElement)},
closePopup:function(Y){var S=this.createCacheKey(void 0,Y);this.popups_[S]&&this.handleClosePopupAction_(void 0,Y)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.wc.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.wc.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(Y){Y.opened&&Y.keepBelowPlayer&&this.ensurePopupBelowPlayer(Y)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var Y in this.popups_){var S=this.popups_[Y];if(S.popup.scrollAction==="refit"){var P=S.popup.positionTarget.getBoundingClientRect(),u=S.popup;P=P.top;var W=S;if(!W.naturalHeight){W.popup.hidden=!1;W.popup.style.position="fixed";W.popup.style.top="0px";W.popup.style.left="0px";var m=W.popup.getBoundingClientRect();W.naturalHeight=m.bottom-m.top;W.popup.refit()}u.hidden=!(P>=W.naturalHeight+60);S.popupContent.clientHeight===0&&S.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(Y){this.popupContainerConfig=Y},
handleOpenPopupAction:function(Y,S){var P=Y.openPopupAction,u=_.E().resolve(_.PQ(_.oYX))&&P.popupType==="TOAST";u&&!P.uniqueId&&(P.uniqueId=_.gW());if(!_.f("popup_container_parent_target_killswitch")){var W;S=(W=this.getParentTarget(S))!=null?W:S}var m=this.ensurePopup_(P,S);return new _.qs(function(J){m.then(function(c){if(!c)return J();this.maybeCreateNarrowMediaQuery_();var C=this.createCacheKey(c.rendererName,c.openPopupAction.uniqueId);if(P.showOncePerUniqueId){if(this.shownPopupKeys_.has(C))return J();
this.shownPopupKeys_.add(C)}C=this.popups_[C];var x=!(!C||!C.openPopupAction.beReused);x=!!P.reusePopup||x;if(c.popup.opened&&!x){u&&!c.openPopupAction.replacePopup||this.handleClosePopupAction_(c.rendererName,c.openPopupAction.uniqueId);x=P.popupType==="DIALOG"&&!_.f("popup_container_dialog_reopen_killswitch");if(!u&&!x&&C&&C.target==S&&!c.openPopupAction.replacePopup)return J();_.ky(c.popup,function(){this.completeOpenPopupAction_(P,S,c);J()}.bind(this))}else c.popup.opened?c.updatePopup(P):this.completeOpenPopupAction_(P,
S,c),J()}.bind(this))}.bind(this))},
getParentTarget:function(Y){if(Y&&Y instanceof HTMLElement)for(var S=_.n(Object.entries(this.popups_)),P=S.next();!P.done;P=S.next())if(P=_.n(P.value),P.next(),P=P.next().value,P.popup.tagName==="TP-YT-IRON-DROPDOWN"&&P.popup.opened&&Y.closest(P.rendererName))return P.target},
completeOpenPopupAction_:function(Y,S,P){_.f("reorder_popup_updates_killswitch")?(B55(P,this.narrowMediaQuery_.queryMatches,S),P.updatePopup(Y)):(P.updatePopup(Y),B55(P,this.narrowMediaQuery_.queryMatches,S));Y=P.popup;Y.addEventListener("iron-overlay-opened",_.up(this,this.onPopupIronOverlayOpened_));Y.addEventListener("iron-overlay-closed",_.up(this,this.onPopupIronOverlayClosed_));Y.addEventListener("iron-overlay-canceled",_.up(this,this.onPopupIronOverlayCanceled_));Y.addEventListener("yt-refit",
_.up(this,this.refitPopup_));Y.addEventListener("yt-invalidate-popup-tabbables",_.up(this,this.handleInvalidatePopupTabbables_));Y.open()},
getPopupDurationMs_:function(Y){return Y.durationHintMs===0?Y.durationHintMs:Math.max(4E3,Y.durationHintMs||4E3)},
handleClosePopupAction_:function(Y,S){var P=_.f("web_popup_cache_key_killswitch")||!!S;if(Y||P){var u=this.createCacheKey(Y,S);Y=(Y=this.popups_[u])&&Y.popup}else Y=_.lwt(_.XU);if(Y&&Y.close){if(S=_.E().resolve(_.PQ(_.Tz)))Y.restoreFocusOnClose=S.isKeyBoardInUse();Y.close();this.removePopup_(Y,u)}},
handleClosePopupCommand_:function(Y){Y.closePopupCommand&&Y.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,Y.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(Y){var S={},P;for(P in this.popups_)if(S={key$jscomp$1163:S.key$jscomp$1163},S.key$jscomp$1163=P,!Y||!Y.some(function(m){return function(J){return J==m.key$jscomp$1163}}(S))){var u=this.popups_[S.key$jscomp$1163],W=u.popup;
_.E().resolve(_.PQ(_.oYX))&&u.openPopupAction.popupType==="TOAST"||(W&&W.close&&W.close(),this.removePopup_(W,S.key$jscomp$1163))}},
handleClosePopupsAction_:function(Y){Y.forEach(function(S){var P=this.popups_[S];P&&((P=P.popup)&&P.close&&P.close(),this.removePopup_(P,S))}.bind(this))},
handleGetPopupOpenedAction_:function(Y,S){return(S=this.createCacheKey(Y,S))&&this.popups_[S]?this.popups_[Y].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var Y=[],S;for(S in this.popups_){var P=this.popups_[S];P.popup.opened&&Y.push(P)}return Y},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(Y,S){_.f("ytpopup_disable_default_html_caching")&&Y&&Y.removeWhenClosed&&(_.I(this.hostElement).removeChild(Y),S&&this.popups_[S]&&delete this.popups_[S])},
shouldReusePopup_:function(Y){return!(!Y||!Y.reusePopup)||!(!Y||!Y.beReused)},
ensurePopup_:function(Y,S){this.maybeCreateNarrowMediaQuery_();var P=_.sW(Y.popup,"renderer")||_.sW(Y.popup,"dialog")||_.sW(Y.popup,"model");if(!P)return _.Cb();P=_.K4u(P,ADu(this.popupContainerConfig,P));return _.Cb(this.getAndMaybeCreatePopup_(Y,P,S))},
getAndMaybeCreatePopup_:function(Y,S,P){var u=this.createCacheKey(S,Y.uniqueId);if(this.popups_[u])return this.popups_[u];Y=new mx({openPopupAction:Y,target:P,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(S)});return this.popups_[u]=Y},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(Y){return _.f("ytpopup_disable_default_html_caching")?Y&&Y.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.up(this,this.openPopupQueryMatchesChanged_)),_.I(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(Y){Y=Y.detail.value;for(var S in this.popups_)joj(this.popups_[S],Y)},
onPopupIronOverlayClosed_:function(Y){var S=Y.currentTarget,P=_.Exu(S);P=P.length>0?P[0]:S;if(P.is!=="ytd-reel-watch-while-dialog-renderer"||Y.target.is!=="tp-yt-iron-dropdown"){Y.detail.popup=S;Y.detail.popupRenderer=P;var u,W={context:{openingElement:((u=this.popups_[(P==null?void 0:P.is)||""])==null?void 0:u.target)||void 0}};Object.assign(W,Y.detail);var m;_.ms((m=P.hostElement)!=null?m:P,"yt-popup-closed",W);S.removeEventListener("yt-refit",_.up(this,this.refitPopup_));S.removeEventListener("yt-invalidate-popup-tabbables",
_.up(this,this.handleInvalidatePopupTabbables_));S.removeEventListener("iron-overlay-canceled",_.up(this,this.onPopupIronOverlayCanceled_));S.removeEventListener("iron-overlay-closed",_.up(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(S)}},
onPopupIronOverlayCanceled_:function(Y,S){var P=Y.currentTarget,u=_.Exu(P);u=u.length>0?u[0]:P;if(u.is!=="ytd-reel-watch-while-dialog-renderer"||Y.target.is!=="tp-yt-iron-dropdown"){var W;_.ms((W=u.hostElement)!=null?W:u,"yt-popup-canceled",Y.detail);W=S?_.iM(S):null;(!S||["click","tap"].includes(S.type))&&!P.hasAttribute("force-close-on-outside-click")&&P.positionTarget&&W&&W.includes(P.positionTarget)&&Y.preventDefault();P.restoreFocusOnClose=_.x1.keyboardEventMatchesKeys(S,"esc")}},
onPopupIronOverlayOpened_:function(Y){Y=Y.currentTarget;var S=_.Exu(Y);S=S.length>0?S[0]:Y;var P,u;_.ms((P=S.hostElement)!=null?P:S,"yt-popup-opened",(u=S.hostElement)!=null?u:S);Y.keepBelowPlayer&&(this.ensurePopupBelowPlayer(Y,!0),this.dynamicallyPositionedElements_.add(Y));P=_.E().resolve(_.PQ(_.Tz));u=!!S.querySelector("#toast");P&&P.isKeyBoardInUse()&&!u&&(typeof S.focusFirstItem==="function"?S.focusFirstItem():(S=_.FA6(Y),S.length&&S[0].focus()));Y.removeEventListener("iron-overlay-opened",
_.up(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(Y){Y=Y.currentTarget;Y.refit&&Y.refit()},
refitPopups_:function(){for(var Y in this.popups_)this.popups_[Y].refit()},
handleInvalidatePopupTabbables_:function(Y){Y=Y.currentTarget;Y.invalidateTabbables&&Y.invalidateTabbables()},
createCacheKey:function(Y,S){return _.f("web_popup_cache_key_killswitch")?S?Y+"#"+S:Y:S?"#"+S:Y},
openSheet:function(Y,S){var P=Y==null?void 0:Y.openPopupActionCommand;!P&&(Y==null?0:Y.viewModel)&&(P={openPopupAction:{popup:{sheetViewModel:Y.viewModel},popupType:"CONTEXTUAL_SHEET"}});P&&this.handleOpenPopupAction(P,S)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var Y=this;return _.B(function(S){return S.return(Y.handleGetOpenedPopupsAction_().filter(function(P){var u;return((u=P.openPopupAction)==null?void 0:u.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(Y,S,P){if(_.f("web_dialog_utils_killswitch")){var u=Y==null?void 0:Y.openPopupActionCommand,W=(P==null?0:P.ariaLabel)?{accessibilityData:{accessibilityData:{label:P.ariaLabel}}}:void 0;!u&&(Y==null?0:Y.viewModel)&&(u={openPopupAction:Object.assign({},{popup:{dialogViewModel:Y.viewModel},popupType:(P==null?0:P.isModal)?"MODAL":"DIALOG"},W&&W)});u&&this.handleOpenPopupAction(u,S)}else{if(W=Y==null?void 0:Y.viewModel){var m=P=P===void 0?{}:P;P=m.ariaLabel;W={popup:{dialogViewModel:W},
popupType:m.isModal?"MODAL":"DIALOG"};m={accessibilityData:{label:P}};P&&(W.accessibilityData=m);W={openPopupAction:W}}else W=void 0;(W=(u=W)!=null?u:Y==null?void 0:Y.openPopupActionCommand)&&this.handleOpenPopupAction(W,S)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var Y=this;return _.B(function(S){return S.return(Y.handleGetOpenedPopupsAction_().filter(function(P){var u;return((u=P.openPopupAction)==null?void 0:u.popupType)==="DIALOG"}).length>0)})}}];var xS_;var bmY;var T5B=_.Q0(["about:blank"]),nI=function(){var Y=_.Z.apply(this,arguments)||this;Y.isMuted=!1;Y.pageLoadTimeoutId=void 0;return Y};
_.r(nI,_.Z);_.z=nI.prototype;_.z.dataChanged=function(){var Y=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var S=this.data.url,P=_.pZ(S);_.f("enable_yt_ata_iframe_authuser")?(P=_.pZ(S),_.fh(this.iframe,BT1(P))):_.fh(this.iframe,P);this.pageLoadTimeoutId=_.hp(_.vs(),function(){return void Y.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.e5({destination:window,iframe:this.iframe,origin:_.pt_(P.toString()),channelName:"ataiframe",onMessage:_.zhm(y7j,function(u){NF_(u.data)?(u=_.mz(u.data,1,_.B6,_.QI()),u.length!==1?_.sf(Error("pl")):(u=u[0],u===3?(Y.isMuted=!0,Y.logStateChanged({adMuteRequested:!0})):u===1&&Y.close())):_.sf(Error("ql"))}),
onEstablished:function(){Y.cancelPageLoadTimeout();Y.logStateChanged({pageLoadSucceeded:!0})}})}};
_.z.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.vs().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.z.logStateChanged=function(Y){var S;if((S=this.data)==null?0:S.trackingParams)Y={adsClientData:{aboutThisAdData:Y}},_.BF().stateChanged(this.data.trackingParams,Y)};
_.z.close=function(){_.nb(this.hostElement,"yt-close-popup-action",[this.is])};
_.z.handlesPopupClosed=function(Y,S){var P=this,u,W;return _.B(function(m){if(m.nextAddress==1)return _.X3("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.nb(P.hostElement,"on-about-this-ad-popup-closed",[P.isMuted,S]),m.jumpTo(0)):Y&&cEZ(Y)?_.q(m,CI6(Y),4):(P.isMuted&&_.nb(P.hostElement,"yt-mute-ad-action",[P.is,P]),m.jumpTo(0));if(u=m.yieldResult){var J=W=new _.JM(u),c=P.isMuted;J.getOptions().includes("onAboutThisAdPopupClosed")?_.Chs(J,"onAboutThisAdPopupClosed",{isMuted:c,layoutId:S}):_.VR("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Yt(m)})};
_.z.onPopupClosed=function(Y){var S=this,P,u;return _.B(function(W){P=_.kt(T5B);_.fh(S.iframe,P);S.cancelPageLoadTimeout();if(!S.data)return W.jumpTo(0);S.ytRendererBehavior.markDirty();u=Y.detail.context.openingElement;return _.q(W,S.handlesPopupClosed(u,S.data.layoutId),0)})};
_.z.detached=function(){this.cancelPageLoadTimeout()};
_.z.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
nI.prototype.onPopupClosed=nI.prototype.onPopupClosed;nI.prototype.dataChanged=nI.prototype.dataChanged;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.Q([_.nc("#iframe"),_.k("design:type",HTMLIFrameElement)],nI.prototype,"iframe",void 0);_.Q([_.X(),_.k("design:type",Object)],nI.prototype,"data",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nI.prototype,"dataChanged",null);
_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype",Promise)],nI.prototype,"onPopupClosed",null);nI=_.Q([_.r0({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],nI);
_.A(nI,"yt-about-this-ad-renderer",function(){if(bmY===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;xS_===void 0&&(xS_=document.createElement("template"));var u=xS_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);bmY=Y}Y=bmY;return Y},{mode:2});var KCI;var Elj;var jU=function(Y){var S=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=S.message;"stack"in S&&(this.stack=S.stack);this.maxFileSizeMB=Y;Object.setPrototypeOf(this,jU.prototype)};
_.r(jU,Error);var f2B=function(Y,S){var P=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=P.message;"stack"in P&&(this.stack=P.stack);this.minWidth=Y;this.minHeight=S;Object.setPrototypeOf(this,f2B.prototype)};
_.r(f2B,Error);var glY=function(Y){this.requirements=Y;this.JSC$18425_maxFileSize=Y.maxFileSizeMB*1024*1024},$Su=function(Y,S){if(S.size>Y.JSC$18425_maxFileSize)throw new jU(Y.requirements.maxFileSizeMB);
};var r2o=function(Y,S){this.canvas=Y;this.imageEditorBuilder=S};
r2o.prototype.addEventListeners=function(Y){var S=function(W){Gx1(Y,W)};
this.JSC$18431_mouseDownEvent=S;var P=function(W){hW1(Y,W)};
this.JSC$18431_mouseMoveEvent=P;var u=function(){vlZ(Y)};
this.JSC$18431_mouseUpEvent=u;this.canvas.addEventListener("mousedown",S);this.canvas.addEventListener("mousemove",P);document.addEventListener("mouseup",u)};
r2o.prototype.removeEventListeners=function(){this.JSC$18431_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18431_mouseDownEvent);this.JSC$18431_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18431_mouseMoveEvent);this.JSC$18431_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18431_mouseUpEvent)};
var DSI=function(Y,S){Y.removeEventListeners();return new Promise(function(P){var u=new Image;u.crossOrigin="anonymous";u.onload=function(){var W=Y.imageEditorBuilder(Y.canvas,u);Y.addEventListeners(W);P(W)};
u.src=S})},JC=function(Y,S,P,u,W,m,J,c){this.canvas=Y;
this.image=S;this.requiredRatio=P;this.minImageCropDimension=u;this.minOutputImageResolution=W;this.component=m;this.styleFocusedCorner=c===void 0?!0:c;this.action=2;this.focusedCorner=this.resizeCorner=0;Y=this.canvas.getContext("2d");if(!Y)throw Error("rl");this.ctx=Y;this.canvasMargin=J!=null?J:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;J=this.image;Y=this.canvasInnerWidth/J.width;J.height*Y>912&&(Y=J.width/J.height*912/J.width);J=Y;this.scaledImageWidth=this.canvas.width%2?
Ro5(this.image.width*J):qCZ(this.image.width*J);this.scaledImageHeight=Math.round(this.image.height*J);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18434_overlayMarginBottom=this.JSC$18434_overlayMarginTop=this.canvasMargin;this.JSC$18434_overlayMarginRight=this.JSC$18434_overlayMarginLeft=this.horizontalMargin;this.JSC$18434_overlayWidth=this.scaledImageWidth;this.JSC$18434_overlayHeight=this.scaledImageHeight;
Y=this.image.width/this.image.height;Y>this.requiredRatio?(this.JSC$18434_overlayWidth=this.canvas.width%2?Ro5(this.scaledImageHeight*this.requiredRatio):qCZ(this.scaledImageHeight*this.requiredRatio),this.JSC$18434_overlayMarginRight=this.JSC$18434_overlayMarginLeft=(this.canvas.width-this.JSC$18434_overlayWidth)/2):Y<this.requiredRatio&&(this.JSC$18434_overlayHeight=this.canvas.height%2?Ro5(this.scaledImageWidth/this.requiredRatio):qCZ(this.scaledImageWidth/this.requiredRatio),this.JSC$18434_overlayMarginBottom=
this.JSC$18434_overlayMarginTop=(this.canvas.height-this.JSC$18434_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*J,this.scaledImageWidth);I26(this)};
JC.prototype.getContext=function(){return this.ctx};
var Gx1=function(Y,S){S={x:Math.round(S.pageX-Y.canvas.getBoundingClientRect().left),y:Math.round(S.pageY-Y.canvas.getBoundingClientRect().top)};Y.dragStart=S;a2c(Y,S)!==0?(Y.action=1,LCd(Y,S),Y.resizeCorner=a2c(Y,S)):S.x>Y.JSC$18434_overlayMarginLeft&&S.x<Y.JSC$18434_overlayMarginLeft+Y.JSC$18434_overlayWidth&&S.y>Y.JSC$18434_overlayMarginTop&&S.y<Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight&&(Y.action=0)},wS_=function(Y,S){switch(S){case 1:return{x:Y.JSC$18434_overlayMarginLeft,
y:Y.JSC$18434_overlayMarginTop};case 2:return{x:Y.JSC$18434_overlayMarginLeft,y:Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight};case 3:return{x:Y.JSC$18434_overlayMarginLeft+Y.JSC$18434_overlayWidth,y:Y.JSC$18434_overlayMarginTop};case 4:return{x:Y.JSC$18434_overlayMarginLeft+Y.JSC$18434_overlayWidth,y:Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight};default:throw Error("sl");}},FCI=function(Y,S){if(Y.focusedCorner!==0){Y.dragStart=wS_(Y,Y.focusedCorner);
Y.action=1;Y.resizeCorner=Y.focusedCorner;var P=Y.dragStart.x,u=Y.dragStart.y;switch(S){case 0:Y.focusedCorner===1||Y.focusedCorner===4?(P-=10,u-=10):(P-=10,u+=10);break;case 1:Y.focusedCorner===1||Y.focusedCorner===4?(P+=10,u+=10):(P+=10,u-=10);break;case 2:P=Y.focusedCorner===1||Y.focusedCorner===4?P-10:P+10;u-=10;break;case 3:P=Y.focusedCorner===1||Y.focusedCorner===4?P+10:P-10;u+=10;break;default:throw Error("tl");}pS5(Y,{x:P,y:u});I26(Y);Y.action=2;Y.dragStart=void 0}},hW1=function(Y,S){S={x:Math.round(S.pageX-
Y.canvas.getBoundingClientRect().left),
y:Math.round(S.pageY-Y.canvas.getBoundingClientRect().top)};LCd(Y,S);switch(Y.action){case 1:pS5(Y,S);break;case 0:Y.dragStart&&(Y.JSC$18434_overlayMarginLeft=Math.max(Y.horizontalMargin,Math.min(Y.JSC$18434_overlayMarginLeft-(Y.dragStart.x-S.x),Y.horizontalMargin+Y.scaledImageWidth-Y.JSC$18434_overlayWidth)),Y.JSC$18434_overlayMarginRight=Y.canvas.width-Y.JSC$18434_overlayMarginLeft-Y.JSC$18434_overlayWidth,Y.JSC$18434_overlayMarginTop=Math.max(Y.canvasMargin,Math.min(Y.JSC$18434_overlayMarginTop-
(Y.dragStart.y-S.y),Y.scaledImageHeight-Y.JSC$18434_overlayHeight+Y.canvasMargin)),Y.JSC$18434_overlayMarginBottom=Y.canvas.height-(Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight));break;default:return}I26(Y);Y.dragStart=S},vlZ=function(Y){Y.action=2;
Y.dragStart=void 0;document.body.style.cursor="auto"},LCd=function(Y,S){switch(a2c(Y,S)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:Y.action!==1&&(document.body.style.cursor="auto")}},a2c=function(Y,S){var P=Y.JSC$18434_overlayMarginLeft-5,u=Y.JSC$18434_overlayMarginTop-5,W=Y.JSC$18434_overlayMarginLeft+Y.JSC$18434_overlayWidth-5;
Y=Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight-5;return so1(S,{x:P,y:u})?1:so1(S,{x:W,y:u})?3:so1(S,{x:P,y:Y})?2:so1(S,{x:W,y:Y})?4:0},so1=function(Y,S){return Y.x>=S.x&&Y.x<=S.x+10&&Y.y>=S.y&&Y.y<=S.y+10},pS5=function(Y,S){if(Y.dragStart)switch(Y.resizeCorner){case 2:Math.abs((Y.JSC$18434_overlayMarginLeft+Y.JSC$18434_overlayWidth-S.x)/(S.y-Y.JSC$18434_overlayMarginTop))>=Y.requiredRatio?dS1(Y,S.x):l2B(Y,S.y);
break;case 1:Math.abs((Y.JSC$18434_overlayMarginLeft+Y.JSC$18434_overlayWidth-S.x)/(Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight-S.y))>=Y.requiredRatio?XSY(Y,S.x):l2B(Y,S.y);break;case 4:Math.abs((S.x-Y.JSC$18434_overlayMarginLeft)/(S.y-Y.JSC$18434_overlayMarginTop))>=Y.requiredRatio?dS1(Y,S.x):ZmY(Y,S.y);break;case 3:Math.abs((S.x-Y.JSC$18434_overlayMarginLeft)/(Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight-S.y))>=Y.requiredRatio?XSY(Y,S.x):ZmY(Y,S.y);break;default:throw Error("ul");
}},dS1=function(Y,S){var P=Y.JSC$18434_overlayMarginTop;
Y.JSC$18434_overlayMarginBottom=imZ(Y,S);Y.JSC$18434_overlayHeight=Y.canvas.height-Y.JSC$18434_overlayMarginBottom-P;Y.JSC$18434_overlayWidth=Math.round(Y.JSC$18434_overlayHeight*Y.requiredRatio);old(Y)},XSY=function(Y,S){var P=Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight;
Y.JSC$18434_overlayMarginTop=imZ(Y,S);Y.JSC$18434_overlayHeight=P-Y.JSC$18434_overlayMarginTop;Y.JSC$18434_overlayWidth=Math.round(Y.JSC$18434_overlayHeight*Y.requiredRatio);old(Y)},old=function(Y){switch(Y.resizeCorner){case 2:case 1:Y.JSC$18434_overlayMarginLeft=Y.canvas.width-Y.JSC$18434_overlayMarginRight-Y.JSC$18434_overlayWidth;
break;case 4:case 3:Y.JSC$18434_overlayMarginRight=Y.canvas.width-Y.JSC$18434_overlayMarginLeft-Y.JSC$18434_overlayWidth;break;default:throw Error("ul");}},l2B=function(Y,S){var P=Y.JSC$18434_overlayMarginLeft+Y.JSC$18434_overlayWidth;
Y.JSC$18434_overlayMarginLeft=t6u(Y,S);Y.JSC$18434_overlayWidth=P-Y.JSC$18434_overlayMarginLeft;Y.JSC$18434_overlayHeight=Math.round(Y.JSC$18434_overlayWidth/Y.requiredRatio);A2Z(Y)},ZmY=function(Y,S){var P=Y.JSC$18434_overlayMarginLeft;
Y.JSC$18434_overlayMarginRight=t6u(Y,S);Y.JSC$18434_overlayWidth=Y.canvas.width-Y.JSC$18434_overlayMarginRight-P;Y.JSC$18434_overlayHeight=Math.round(Y.JSC$18434_overlayWidth/Y.requiredRatio);A2Z(Y)},A2Z=function(Y){switch(Y.resizeCorner){case 2:case 4:Y.JSC$18434_overlayMarginBottom=Y.canvas.height-Y.JSC$18434_overlayMarginTop-Y.JSC$18434_overlayHeight;
break;case 1:case 3:Y.JSC$18434_overlayMarginTop=Y.canvas.height-Y.JSC$18434_overlayMarginBottom-Y.JSC$18434_overlayHeight;break;default:throw Error("ul");}},imZ=function(Y,S){switch(Y.resizeCorner){case 2:S=Y.canvas.height-(Y.JSC$18434_overlayMarginTop+USY(Y,S));
break;case 4:S=Y.canvas.height-(Y.JSC$18434_overlayMarginTop+QoX(Y,S));break;case 1:S=Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight-USY(Y,S);break;case 3:S=Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight-QoX(Y,S);break;default:throw Error("ul");}return Math.max(S,Y.canvasMargin)},USY=function(Y,S){S=Y.JSC$18434_overlayMarginLeft+Y.JSC$18434_overlayWidth-Math.max(S,Y.horizontalMargin);
S=S<0?Y.JSC$18434_overlayWidth:Math.max(S,Y.minOverlayWidth);return Math.round(S/Y.requiredRatio)},QoX=function(Y,S){S=Y.canvas.width-Math.max(Y.canvas.width-S,Y.horizontalMargin)-Y.JSC$18434_overlayMarginLeft;
S=S<0?Y.JSC$18434_overlayWidth:Math.max(S,Y.minOverlayWidth);return Math.round(S/Y.requiredRatio)},t6u=function(Y,S){switch(Y.resizeCorner){case 2:S=Y.canvas.width-Y.JSC$18434_overlayMarginRight-kxY(Y,S);
break;case 4:S=Y.canvas.width-Y.JSC$18434_overlayMarginLeft-kxY(Y,S);break;case 1:S=Y.canvas.width-Y.JSC$18434_overlayMarginRight-M6_(Y,S);break;case 3:S=Y.canvas.width-Y.JSC$18434_overlayMarginLeft-M6_(Y,S);break;default:throw Error("ul");}return Math.max(S,Y.horizontalMargin)},kxY=function(Y,S){S=Y.canvas.height-Math.max(Y.canvas.height-S,Y.canvasMargin)-Y.JSC$18434_overlayMarginTop;
return S<0?Y.JSC$18434_overlayWidth:Math.max(Math.round(S*Y.requiredRatio),Y.minOverlayWidth)},M6_=function(Y,S){S=Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight-Math.max(S,Y.canvasMargin);
return S<0?Y.JSC$18434_overlayWidth:Math.max(Math.round(S*Y.requiredRatio),Y.minOverlayWidth)},I26=function(Y){Y.ctx.clearRect(0,0,Y.canvas.width,Y.canvas.height);
Y.ctx.drawImage(Y.image,0,0,Y.image.width,Y.image.height,Y.horizontalMargin,Y.canvasMargin,Y.canvas.width-2*Y.horizontalMargin,Y.scaledImageHeight);Y.ctx.fillStyle="rgba(0, 0, 0, 0.7)";Y.ctx.fillRect(Y.horizontalMargin,Y.JSC$18434_overlayMarginTop,Y.JSC$18434_overlayMarginLeft-Y.horizontalMargin,Y.JSC$18434_overlayHeight);Y.ctx.fillRect(Y.JSC$18434_overlayMarginLeft+Y.JSC$18434_overlayWidth,Y.JSC$18434_overlayMarginTop,Y.JSC$18434_overlayMarginRight-Y.horizontalMargin,Y.JSC$18434_overlayHeight);Y.ctx.fillRect(Y.horizontalMargin,
Y.canvasMargin,Y.scaledImageWidth,Y.JSC$18434_overlayMarginTop-Y.canvasMargin);Y.ctx.fillRect(Y.horizontalMargin,Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight,Y.scaledImageWidth,Y.JSC$18434_overlayMarginBottom-Y.canvasMargin);Y.drawOverlay();Y.component&&_.ms(Y.component,"image-updated")};
JC.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18434_overlayMarginLeft,this.JSC$18434_overlayMarginTop,this.JSC$18434_overlayWidth,this.JSC$18434_overlayHeight);y21(this)};
var y21=function(Y){var S=Y.JSC$18434_overlayMarginLeft-5,P=Y.JSC$18434_overlayMarginTop-5,u=Y.JSC$18434_overlayMarginLeft+Y.JSC$18434_overlayWidth-5,W=Y.JSC$18434_overlayMarginTop+Y.JSC$18434_overlayHeight-5;Y.ctx.fillStyle="#FFF";Y.ctx.fillRect(S,P,10,10);Y.ctx.strokeRect(S,P,10,10);Y.ctx.fillRect(u,P,10,10);Y.ctx.strokeRect(u,P,10,10);Y.ctx.fillRect(S,W,10,10);Y.ctx.strokeRect(S,W,10,10);Y.ctx.fillRect(u,W,10,10);Y.ctx.strokeRect(u,W,10,10);if(Y.focusedCorner!==0&&Y.styleFocusedCorner){Y.ctx.lineWidth=
4;Y.ctx.strokeStyle="#3EA6FF";switch(Y.focusedCorner){case 1:--S;--P;break;case 2:--S;P=W-1;break;case 3:S=u-1;--P;break;case 4:S=u-1;P=W-1;break;default:return}Y.ctx.strokeRect(S,P,12,12)}};
JC.prototype.crop=function(Y,S){S=S===void 0?!0:S;var P=this.image.width/this.scaledImageWidth,u=document.createElement("canvas"),W=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],m=this.JSC$18434_overlayWidth*P,J=this.JSC$18434_overlayHeight*P;u.width=Math.max(m,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);u.height=Math.max(J,W);Y&&(u.width=Math.min(u.width,u.height),u.height=Math.min(u.width,u.height));
Y=u.getContext("2d");if(!Y)throw Error("il");W=(this.JSC$18434_overlayMarginLeft-this.horizontalMargin)*P;P*=this.JSC$18434_overlayMarginTop-this.canvasMargin;S||(Y.fillStyle="white",Y.fillRect(0,0,u.width,u.height));Y.drawImage(this.image,W,P,m,J,0,0,u.width,u.height);return u};var N5u=function(Y,S,P,u,W){JC.call(this,Y,S,P,u,void 0,W,8,!1)};
_.r(N5u,JC);N5u.prototype.drawOverlay=function(){var Y=this.getContext(),S=this.JSC$18434_overlayWidth,P=this.JSC$18434_overlayHeight,u=this.JSC$18434_overlayMarginTop,W=this.JSC$18434_overlayMarginLeft;Y.lineWidth=2;Y.strokeStyle="#3EA6FF";Y.beginPath();Y.arc(W+S/2,u+P/2,S/2,0,2*Math.PI);Y.stroke();Y.strokeRect(W,u,S,P);y21(this)};
var Hm5={maxFileSizeMB:15,minWidth:98,minHeight:98},V6Z=["image/png","image/jpeg","image/gif"],Bi=function(){var Y=_.Z.apply(this,arguments)||this;Y.fileSelectorFocusListener=null;Y.errorMessage=null;Y.isLoading=!0;Y.hideContainer=!0;Y.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return Y};
_.r(Bi,_.Z);_.z=Bi.prototype;_.z.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.z.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.z.computePlaylistThumbnail=function(Y){return Y==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.z.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.nb(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.z.setErrorState=function(Y){this.resetErrorState();Y&&(this.errorMessage=Y)};
_.z.showPopup=function(){var Y=this;this.hideContainer=!1;_.hp(_.wc,function(){_.ms(Y.hostElement,"yt-refit")});
this.isLoading=!1};
_.z.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.z.closePopup=function(){this.resetFileSelector();_.nb(this.hostElement,"yt-close-popup-action",[this.is])};
_.z.onCancelTap=function(){this.isPlaylistThumbnail||_.nb(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.z.openFileSelector=function(){var Y=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.hp(_.wc,function(){setTimeout(function(){if(!Y.fileSelector.files||Y.fileSelector.files.length===0)Y.onCancelTap();Y.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(S){S instanceof Error?_.p_(S):_.F_(new _.$2(JSON.stringify(S)))}};
_.z.handleFileSelection=function(){var Y=this,S,P,u,W,m,J;return _.B(function(c){switch(c.nextAddress){case 1:_.ND(c,2);if(!Y.fileSelector.files||!Y.imageEditorCanvas)return Y.onCancelTap(),c.return();S=Y.fileSelector.files[0];$Su(Y.imageChecker,S);_.ND(c,4);return _.q(c,ib_(S),6);case 6:Y.mimeType=c.yieldResult;_.tc(c,5,2);break;case 4:_.O4(c,2),_.nb(Y.hostElement,"yt-image-selection-error-action",[(P=Y.data)==null?void 0:P.genericImageLoadErrorMessage]),Y.onCancelTap();case 5:u=new FileReader;u.addEventListener("load",
function(){var C,x;return _.B(function(b){if(b.nextAddress==1){if(!u.result)return _.sf(Error("kl")),b.return();C=u.result;x=new Image;x.src=C;x.onload=function(){try{var T=Y.imageChecker;if(x.width<T.requirements.minWidth||x.height<T.requirements.minHeight)throw new f2B(T.requirements.minWidth,T.requirements.minHeight);}catch(G){if(G instanceof f2B){var K;_.nb(Y.hostElement,"yt-image-selection-error-action",[(K=Y.data)==null?void 0:K.imageDimensionErrorMessage]);Y.logImageDimensionErrorVe()}else G instanceof
Error?_.p_(G):(T=new _.$2(JSON.stringify(G)),_.p_(T));Y.onCancelTap()}Y.showPopup()};
x.onerror=function(){var T;_.nb(Y.hostElement,"yt-image-selection-error-action",[(T=Y.data)==null?void 0:T.genericImageLoadErrorMessage]);Y.onCancelTap()};
return _.q(b,DSI(Y.imageEditorCanvas,C),2)}Y.imageEditor=b.yieldResult;Y.updatePositionOfAllCorners();Y.addEventListeners(Y.imageEditor);_.Yt(b)})},!1);
u.readAsDataURL(S);_.tc(c,0);break;case 2:W=_.O4(c),W instanceof jU?_.nb(Y.hostElement,"yt-image-selection-error-action",[(m=Y.data)==null?void 0:m.imageSizeErrorMessage]):(W instanceof Error?_.p_(W):_.F_(new _.$2(JSON.stringify(W))),_.nb(Y.hostElement,"yt-image-selection-error-action",[(J=Y.data)==null?void 0:J.genericImageLoadErrorMessage])),Y.onCancelTap(),_.Yt(c)}})};
_.z.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var Y=_.JL(_.BF(),{veType:232707,visualElement:_.TI(232707)});Y&&(Y={visualElement:Y},_.jC().reportShown(Y))}};
_.z.handleImageSelectionErrorAction=function(Y){this.isPlaylistThumbnail&&_.eVK(this.hostElement,Y)};
_.z.convertToImageFormatBundle=function(Y){var S=this,P,u,W;return _.B(function(m){switch(m.nextAddress){case 1:return P=Y.toDataURL(S.outputMimeType,1),_.q(m,ooo(P),2);case 2:u=m.yieldResult;_.ND(m,3);$Su(S.imageChecker,u);_.tc(m,4);break;case 3:W=_.O4(m);if(!(W instanceof jU))throw W;_.sf(new _.$2("Output size is bigger than input size for image",S.mimeType,S.outputMimeType,u.size));P=Y.toDataURL("image/jpeg",.95);return _.q(m,ooo(P),6);case 6:u=m.yieldResult;case 4:return m.return({dataUrl:P,imageFile:u})}})};
_.z.handleUploadImageToScottyCommand=function(Y){var S=this,P,u,W,m,J,c,C,x,b,T;return _.B(function(K){switch(K.nextAddress){case 1:if(!S.imageEditor||!_.g(Y,Bp1))return K.return();P=_.g(Y,Bp1).scottyUploadUrl;if(!P){var G=new _.$2("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.p_(G);return K.return()}_.ND(K,2);S.setLoadingState();u=S.imageEditor.crop(!1,!1);return _.q(K,S.convertToImageFormatBundle(u),4);case 4:return W=K.yieldResult,_.q(K,XuB(W.imageFile,P),5);case 5:m=
K.yieldResult;((J=S.data)==null?0:J.onUploadEndpoint)?(c=S.buildUploadServiceEndpoint(m),S.ytComponentBehavior.resolveCommand(c),C=_.g(c,_.hf),((x=C)==null?0:x.params)?S.closePopup():S.resetFileSelector()):(_.nb(S.hostElement,"yt-image-updated-action",[W.dataUrl,m]),S.closePopup());_.tc(K,0);break;case 2:b=_.O4(K),S.setErrorState((T=S.data)==null?void 0:T.uploadErrorMessage),b instanceof Error?_.p_(b):(G=new _.$2(JSON.stringify(b)),_.p_(G)),_.Yt(K)}})};
_.z.buildUploadServiceEndpoint=function(Y){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",Y),this.data.onUploadEndpoint):null};
_.z.dataChanged=function(){var Y=this,S;return _.B(function(P){if(P.nextAddress==1){if(!Y.data||!Y.canvasElement)return P.return();Y.data.imageRatio&&Y.data.minImageCropWidth||_.F_(new _.$2("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));S=function(u,W){return Y.data.imageType==="IMAGE_TYPE_AVATAR"?new N5u(u,W,Y.data.imageRatio,[Y.data.minImageCropWidth,Y.data.minImageCropWidth/Y.data.imageRatio],Y.hostElement):new JC(u,W,Y.data.imageRatio,[Y.data.minImageCropWidth,
Y.data.minImageCropWidth/Y.data.imageRatio],void 0,Y.hostElement,8,!1)};
Y.imageEditorCanvas=new r2o(Y.canvasElement,S);return Y.data.url?_.q(P,DSI(Y.imageEditorCanvas,Y.data.url),3):(Y.hideContainer=!0,Y.openFileSelector(),P.jumpTo(0))}Y.imageEditor=P.yieldResult;Y.showPopup();Y.addEventListeners(Y.imageEditor);_.Yt(P)})};
_.z.addEventListeners=function(Y){this.removeEventListeners();var S=function(W){Gx1(Y,W)};
this.JSC$18442_mouseDownEvent=S;var P=function(W){hW1(Y,W)};
this.JSC$18442_mouseMoveEvent=P;var u=function(){vlZ(Y)};
this.JSC$18442_mouseUpEvent=u;this.topLeftCorner.addEventListener("mousedown",S);this.topLeftCorner.addEventListener("mousemove",P);this.topLeftCorner.addEventListener("mouseup",u);this.topRightCorner.addEventListener("mousedown",S);this.topRightCorner.addEventListener("mousemove",P);this.topRightCorner.addEventListener("mouseup",u);this.bottomLeftCorner.addEventListener("mousedown",S);this.bottomLeftCorner.addEventListener("mousemove",P);this.bottomLeftCorner.addEventListener("mouseup",u);this.bottomRightCorner.addEventListener("mousedown",
S);this.bottomRightCorner.addEventListener("mousemove",P);this.bottomRightCorner.addEventListener("mouseup",u)};
_.z.removeEventListeners=function(){this.JSC$18442_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18442_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18442_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18442_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18442_mouseDownEvent));this.JSC$18442_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18442_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18442_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18442_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18442_mouseMoveEvent));this.JSC$18442_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18442_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18442_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18442_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18442_mouseUpEvent))};
_.z.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var Y=document.activeElement;Y&&Y.shadowRoot&&Y.shadowRoot.activeElement;)Y=Y.shadowRoot.activeElement;switch(Y){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.z.updatePositionOfCorner=function(Y,S){var P=Y.y-S.offsetHeight/2+4;S.style.left=Y.x-S.offsetWidth/2+16+"px";S.style.top=P+"px"};
_.z.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var Y=_.n([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),S=Y.next();!S.done;S=Y.next()){S=S.value;var P=wS_(this.imageEditor,S.corner);this.updatePositionOfCorner(P,S.div)}};
_.z.onLeft=function(Y){this.imageEditor&&this.setFocusInImageEditor()&&(FCI(this.imageEditor,0),this.updatePositionOfAllCorners(),Y.preventDefault())};
_.z.onRight=function(Y){this.imageEditor&&this.setFocusInImageEditor()&&(FCI(this.imageEditor,1),this.updatePositionOfAllCorners(),Y.preventDefault())};
_.z.onUp=function(Y){this.imageEditor&&this.setFocusInImageEditor()&&(FCI(this.imageEditor,2),this.updatePositionOfAllCorners(),Y.preventDefault())};
_.z.onDown=function(Y){this.imageEditor&&this.setFocusInImageEditor()&&(FCI(this.imageEditor,3),this.updatePositionOfAllCorners(),Y.preventDefault())};
_.z.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.y6.Object.defineProperties(Bi.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&V6Z.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var Y,S,P;((S=this.data)==null?0:S.imageRatio)&&((P=this.data)==null?0:P.minImageCropWidth)?Y={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:Y=Hm5;return new glY(Y)}}});
Bi.prototype.updatePositionOfAllCorners=Bi.prototype.updatePositionOfAllCorners;Bi.prototype.dataChanged=Bi.prototype.dataChanged;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],Bi.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],Bi.prototype,"ytComponentBehavior",void 0);_.Q([_.p(_.x1),_.k("design:type",Object)],Bi.prototype,"ironA11yKeysBehavior",void 0);
_.Q([_.nc("#canvas"),_.k("design:type",HTMLCanvasElement)],Bi.prototype,"canvasElement",void 0);_.Q([_.nc("#file-selector"),_.k("design:type",HTMLInputElement)],Bi.prototype,"fileSelector",void 0);_.Q([_.nc("#top-left-corner"),_.k("design:type",HTMLDivElement)],Bi.prototype,"topLeftCorner",void 0);_.Q([_.nc("#top-right-corner"),_.k("design:type",HTMLDivElement)],Bi.prototype,"topRightCorner",void 0);
_.Q([_.nc("#bottom-left-corner"),_.k("design:type",HTMLDivElement)],Bi.prototype,"bottomLeftCorner",void 0);_.Q([_.nc("#bottom-right-corner"),_.k("design:type",HTMLDivElement)],Bi.prototype,"bottomRightCorner",void 0);_.Q([_.X(),_.k("design:type",Object)],Bi.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],Bi.prototype,"errorMessage",void 0);_.Q([_.X(),_.k("design:type",Object)],Bi.prototype,"isLoading",void 0);_.Q([_.X(),_.k("design:type",Object)],Bi.prototype,"hideContainer",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.k("design:type",Boolean)],Bi.prototype,"isPlaylistThumbnail",void 0);_.Q([_.cZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],Bi.prototype,"dataChanged",null);_.Q([_.WZ("image-updated"),_.WZ("yt-refit"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bi.prototype,"updatePositionOfAllCorners",null);
Bi=_.Q([_.r0({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Bi);
_.A(Bi,"yt-image-editor-renderer",function(){if(Elj===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;KCI===void 0&&(KCI=document.createElement("template"));var u=KCI;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Elj=Y}Y=Elj;return Y},{mode:2});var eWd;var Omc;var ci=function(){return _.Z.apply(this,arguments)||this};
_.r(ci,_.Z);ci.prototype.updateMinutesFromBinding=function(Y){this.handleMinutesChanged&&this.handleMinutesChanged(Y)};
ci.prototype.updateSecondsFromBinding=function(Y){this.handleSecondsChanged&&this.handleSecondsChanged(Y)};
ci.prototype.updateDescriptionFromBinding=function(Y){this.handleDescriptionChanged&&this.handleDescriptionChanged(Y)};
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],ci.prototype,"ytComponentBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],ci.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",String)],ci.prototype,"minutes",void 0);_.Q([_.X(),_.k("design:type",String)],ci.prototype,"seconds",void 0);_.Q([_.X(),_.k("design:type",String)],ci.prototype,"description",void 0);_.Q([_.X(),_.k("design:type",Function)],ci.prototype,"handleMinutesChanged",void 0);
_.Q([_.X(),_.k("design:type",Function)],ci.prototype,"handleSecondsChanged",void 0);_.Q([_.X(),_.k("design:type",Function)],ci.prototype,"handleDescriptionChanged",void 0);_.Q([_.X(),_.k("design:type",Number)],ci.prototype,"characterLimit",void 0);_.Q([_.X(),_.k("design:type",Number)],ci.prototype,"textNumRows",void 0);ci=_.Q([_.r0({is:"yt-report-details-form-content",disableElementRegistration:!0})],ci);
_.A(ci,"yt-report-details-form-content",function(){if(Omc===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;eWd===void 0&&(eWd=document.createElement("template"));var u=eWd;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Omc=Y}Y=Omc;return Y},{mode:2});var YKB;var SKu;var CI=function(){var Y=_.Z.apply(this,arguments)||this;Y.updateMinutesFromBinding=function(S){Y.minutes=S.detail.value};
Y.updateSecondsFromBinding=function(S){Y.seconds=S.detail.value};
Y.updateDescriptionFromBinding=function(S){Y.description=S.detail.value};
return Y};
_.r(CI,_.Z);_.z=CI.prototype;_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.z.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"}}}};
_.z.ready=function(){_.I(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.z.onSubmitYtAction=function(Y){var S=Y.detail;S.actionName==="yt-service-request"&&(S=S.args[1],S.flagEndpoint&&(Y.stopPropagation(),this.refireAction(S)))};
_.z.refireAction=function(Y){var S={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(S.vss_id=this.vssId);_.Bu(this.hostElement,[Y,S]);this.submitDisabled=!0};
_.z.dataChanged=function(){var Y=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var S=_.Q5();S&&S.getPlayerPromise().then(function(P){var u=P.getOption("cc","track")||P.getOption("captions","track");u&&(Y.vssId=u.vss_id);P=P.getCurrentTime();Y.minutes=Math.floor(P/60).toString();Y.seconds=(Math.floor(P)%60).toString()})};
_.z.updateSubmitButtonState=function(){var Y;((Y=this.data)==null?0:Y.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.z.onYtServiceRequestCompleted=function(){_.nb(this.hostElement,"yt-close-popup-action")};
_.z.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.y6.Object.defineProperties(CI.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.textNumRows)||4}}});
CI.prototype.onYtServiceRequestError=CI.prototype.onYtServiceRequestError;CI.prototype.onYtServiceRequestCompleted=CI.prototype.onYtServiceRequestCompleted;CI.prototype.updateSubmitButtonState=CI.prototype.updateSubmitButtonState;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);
_.Q([_.X({observer:"dataChanged"}),_.k("design:type",Object)],CI.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Boolean)],CI.prototype,"submitDisabled",void 0);_.Q([_.X(),_.k("design:type",String)],CI.prototype,"minutes",void 0);_.Q([_.X(),_.k("design:type",String)],CI.prototype,"seconds",void 0);_.Q([_.X(),_.k("design:type",String)],CI.prototype,"description",void 0);_.Q([_.X(),_.k("design:type",String)],CI.prototype,"vssId",void 0);
_.Q([_.X({value:_.X3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.k("design:type",Boolean)],CI.prototype,"isMusic",void 0);_.Q([_.d("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],CI.prototype,"characterLimit",null);_.Q([_.d("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],CI.prototype,"textNumRows",null);
_.Q([_.cZ("minutes","seconds","description","submitDisabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CI.prototype,"updateSubmitButtonState",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CI.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CI.prototype,"onYtServiceRequestError",null);CI=_.Q([_.r0({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],CI);
_.A(CI,"yt-report-details-form-renderer",function(){if(SKu===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;YKB===void 0&&(YKB=document.createElement("template"));var u=YKB;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);SKu=Y}Y=SKu;return Y});var PHB;var u65;var WOX;var z0I;var qe=function(){return _.Z.apply(this,arguments)||this};
_.r(qe,_.Z);
qe.prototype.onCheckedChanged_=function(){if(this.data){var Y=_.I(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.nb(this.hostElement,"yt-additional-detail-checkbox-update",[Y]):this.data.identifier==="yt-hide-user-checkbox"?_.nb(this.hostElement,"yt-hide-user-checkbox-update",[Y]):Y&&this.data.enableCommand?_.nb(this.hostElement,"yt-modify-report-form-command",[_.g(this.data.enableCommand,Tp1)]):!Y&&this.data.disableCommand&&_.nb(this.hostElement,
"yt-modify-report-form-command",[_.g(this.data.enableCommand,Tp1)])}};
qe.prototype.onLabelTap_=function(Y){Y.target.tagName!="A"&&(_.I(this.hostElement).querySelector("#checkbox").checked=!_.I(this.hostElement).querySelector("#checkbox").checked)};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],qe.prototype,"data",void 0);qe=_.Q([_.r0({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],qe);
_.A(qe,"yt-boolean-form-field-v2-renderer",function(){if(z0I===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;WOX===void 0&&(WOX=document.createElement("template"));var u=WOX;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);z0I=Y}Y=z0I;return Y});var RH=function(){var Y=_.Z.apply(this,arguments)||this;Y.canShowAdditionalDetailCheckbox=!1;Y.canShowCheckbox=!1;Y.keepDropdownFocusedAfterSelection=!0;return Y};
_.r(RH,_.Z);RH.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],RH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],RH.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],RH.prototype,"canShowAdditionalDetailCheckbox",void 0);_.Q([_.X(),_.k("design:type",Object)],RH.prototype,"canShowCheckbox",void 0);_.Q([_.X(),_.k("design:type",Object)],RH.prototype,"keepDropdownFocusedAfterSelection",void 0);
RH=_.Q([_.r0({is:"yt-report-form-modal-content",disableElementRegistration:!0})],RH);
_.A(RH,"yt-report-form-modal-content",function(){if(u65===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;PHB===void 0&&(PHB=document.createElement("template"));var u=PHB;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);u65=Y}Y=u65;return Y},{mode:2});var mMj;var nh_;var xe=function(){var Y=_.Z.apply(this,arguments)||this;Y.submitting=!1;Y.submitButtonDisabled=!0;Y.command=null;Y.canShowCheckbox=!1;Y.canShowAdditionalDetailCheckbox=!1;Y.canShowNextButton=!1;Y.additionalDetailCheckboxChecked=!1;Y.refitJob=0;Y.keepDropdownFocusedAfterSelection=!0;Y.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return Y};
_.r(xe,_.Z);_.z=xe.prototype;_.z.created=function(){this.refitJob=0};
_.z.attached=function(){this.JSC$18465_scroller&&(this.JSC$18465_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18465_scroller.attached&&typeof this.JSC$18465_scroller.attached==="function"&&this.JSC$18465_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(Y){Y&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,Y.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),Y.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.z.onYtPopupOpened=function(){var Y=_.Q5();Y&&Y.getPlayerPromise().then(function(S){S.pauseVideo()})};
_.z.onYtNavigate=function(Y){_.g(Y.detail.endpoint,_.Hjm)&&(Y.stopPropagation(),this.hideReportForm=!0)};
_.z.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.z.onYtServiceRequestCompleted=function(Y,S){var P=S.actions;if(P){if(P.length===1&&_.g(P[0],_.qT)){var u;P=((u=_.g(P[0],_.qT))==null?void 0:u.commands)||[]}u=0;for(var W=P.length;u<W;u++)_.g(P[u],_.fP)&&(Y.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(P[u]))}if(S.data&&(Y=this.get("feedbackResponses",S.data)))for(S=0;S<Y.length;S++)if(Y[S].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.z.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.z._onDescendantIronResize=function(Y){Y.stopPropagation();return!1};
_.z.handleReportFormEndpointUpdateAction=function(Y){if(Y.submitEndpoint){var S=this.command=Y.submitEndpoint;S=_.g(S,_.d4i);if(S==null?0:S.additionalDetailCheckboxChecked)S.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else Y.submitNavigationEndpoint?(this.command=Y.submitNavigationEndpoint,this.toggleSubmitButton(!1)):Y.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:Y.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;Y.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",Y));this.refit()};
_.z.handleConfirmDialogCloseAction=function(Y){Y.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.z.submitButtonDisabledChanged=function(){var Y=this.hostElement.parentElement;Y&&Y.invalidateTabbables&&Y.invalidateTabbables()};
_.z.handleModifyReportFormCommand=function(Y){Y=this.get("action",Y);Y==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:Y==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:Y==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:Y==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:Y==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:Y==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.z.updateDialogStyling=function(){var Y,S,P,u,W,m=((W=(Y=this.data)==null?void 0:(S=Y.optionsSupportedRenderers)==null?void 0:(P=S.optionsRenderer)==null?void 0:(u=P.items)==null?void 0:u.length)!=null?W:0)<=2?0:240;_.PZ(this.hostElement,{"--yt-report-form-modal-renderer-min-width":m+"px"})};
_.z.toggleSubmitButton=function(Y){this.submitButtonDisabled=!Y;this.submitButtonDisabled=Y};
_.z.computeSubmitButtonData=function(Y,S){var P={};_.g(S,_.Hjm)?P.navigationEndpoint=S:P.command=S||void 0;Y&&Y.buttonRenderer&&_.RY.extend(P,Y.buttonRenderer);return P};
_.z.computeNextButtonData=function(Y,S){var P={};if(!Y||!Y.buttonRenderer)return P;_.RY.extend(P,Y.buttonRenderer);if(!S)return P;if(_.g(S,_.Hjm))P.navigationEndpoint=L46(S);else if(P.command=L46(S),Y=_.g(P.command,_.d4i))Y.legalCheckboxChecked=!0;return P};
_.z.computeShowNextButton=function(Y,S,P){return!!Y&&S&&P};
_.z.refit=function(){var Y=this;this.refitJob||(this.refitJob=_.wc.addLowPriorityJob(function(){_.ms(Y.hostElement,"yt-refit");Y.refitJob=0}))};
_.z.handleAdditionalDetailCheckboxUpdateAction=function(Y){this.additionalDetailCheckboxChecked=Y;_.g(this.command,_.d4i).additionalDetailCheckboxChecked=Y};
_.y6.Object.defineProperties(xe,{template:{configurable:!0,enumerable:!0,get:function(){if(nh_===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;mMj===void 0&&(mMj=document.createElement("template"));var u=mMj;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);nh_=Y}Y=nh_;return Y}}});
xe.prototype.onYtServiceRequestError=xe.prototype.onYtServiceRequestError;xe.prototype.onYtServiceRequestCompleted=xe.prototype.onYtServiceRequestCompleted;xe.prototype.onYtServiceRequestSent=xe.prototype.onYtServiceRequestSent;xe.prototype.onYtNavigate=xe.prototype.onYtNavigate;xe.prototype.onYtPopupOpened=xe.prototype.onYtPopupOpened;_.Q([_.p(_.Vt.YtOpenPopupBehavior),_.k("design:type",Object)],xe.prototype,"openPopupBehavior",void 0);
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],xe.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],xe.prototype,"eventForwardingBehavior",void 0);_.Q([_.p(_.G8),_.k("design:type",Object)],xe.prototype,"ironResizableBehavior",void 0);_.Q([_.X({observer:"dataChanged"}),_.k("design:type",Object)],xe.prototype,"data",void 0);
_.Q([_.X(),_.k("design:type",Object)],xe.prototype,"submitting",void 0);_.Q([_.X({observer:"submitButtonDisabledChanged"}),_.k("design:type",Object)],xe.prototype,"submitButtonDisabled",void 0);_.Q([_.X(),_.k("design:type",Object)],xe.prototype,"command",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],xe.prototype,"hideReportForm",void 0);_.Q([_.X(),_.k("design:type",Object)],xe.prototype,"canShowCheckbox",void 0);
_.Q([_.X(),_.k("design:type",Object)],xe.prototype,"canShowAdditionalDetailCheckbox",void 0);_.Q([_.X(),_.k("design:type",Object)],xe.prototype,"canShowNextButton",void 0);_.Q([_.X(),_.k("design:type",Object)],xe.prototype,"additionalDetailCheckboxChecked",void 0);_.Q([_.X(),_.k("design:type",Object)],xe.prototype,"refitJob",void 0);_.Q([_.X(),_.k("design:type",Object)],xe.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.Q([_.nc("#scroller"),_.k("design:type",Object)],xe.prototype,"JSC$18465_scroller",void 0);_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xe.prototype,"onYtPopupOpened",null);_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],xe.prototype,"onYtNavigate",null);
_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],xe.prototype,"onYtServiceRequestSent",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],xe.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],xe.prototype,"onYtServiceRequestError",null);xe=_.Q([_.r0({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],xe);var jOj;var JPX;var be=function(){return _.Z.apply(this,arguments)||this};
_.r(be,_.Z);_.z=be.prototype;_.z.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.z.onVisible=function(){if(_.f("web_ephemeral_actions_focus")){var Y,S;(S=_.E().resolve(_.PQ(_.zG)))==null||S.enqueue({label:_.Ma((Y=this.data)==null?void 0:Y.messageTitle),elementToFocus:this.hostElement})}};
_.z.onThumbnailLoaded=function(){_.ms(this.hostElement,"yt-refit")};
_.z.onDismissTap=function(){_.nb(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.z.computeAlternateIcon=function(Y){return Y?Y==="BACKSTAGE_ARTWORK"?"backstage:artwork":Y:null};
_.z.computeFontFamily=function(Y){return Y==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.z.computeBackgroundStyle=function(Y,S){if(Y=this.computeBackgroundImage(Y,S))if(Y=_.Qz(Y.thumbnails))return'background-image: url("'+Y+'");'};
_.z.computeHasFullHeightImage=function(Y){return!(!(Y&&Y.thumbnails&&Y.thumbnails.length>0)||this.modern)};
_.z.isModernStyle=function(Y){return Y.style==="STYLE_MODERN"};
_.z.computeIcon=function(Y,S){if(Y&&Y.icon)return S?Y.iconDark:Y.icon};
_.z.computeBackgroundImage=function(Y,S){if(Y&&Y.backgroundImage)return S?Y.backgroundImageDark:Y.backgroundImage};
_.z.computeLogo=function(Y,S){if(Y&&Y.logo)return S?Y.logoDark:Y.logo};
_.z.computeShouldShowModernIcon=function(Y,S){return Y&&!!S};
_.z.getLogoContainerClassName=function(Y){return this.logoWithPadding(Y)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.z.getLogoImageId=function(Y){return this.logoWithPadding(Y)?"mealbar-logo-with-padding":"mealbar-logo"};
_.z.logoWithPadding=function(Y){var S,P,u;return(Y=(S=this.computeLogo(Y,this.isDarkTheme))==null?void 0:(P=S.thumbnails)==null?void 0:(u=P[0])==null?void 0:u.height)&&Y%31===0?!0:!1};
be.prototype.onThumbnailLoaded=be.prototype.onThumbnailLoaded;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.Q([_.X({}),_.k("design:type",Object)],be.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.k("design:type",Boolean)],be.prototype,"modern",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],be.prototype,"isDarkTheme",void 0);
_.Q([_.X({computed:"computeIcon(data, isDarkTheme)"}),_.k("design:type",Object)],be.prototype,"icon",void 0);_.Q([_.X({computed:"computeLogo(data, isDarkTheme)"}),_.k("design:type",Object)],be.prototype,"logo",void 0);_.Q([_.X({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.k("design:type",Object)],be.prototype,"backgroundStyle",void 0);_.Q([_.X({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.k("design:type",Object)],be.prototype,"alternateIcon",void 0);
_.Q([_.X({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.k("design:type",Boolean)],be.prototype,"hasFullHeightImage",void 0);_.Q([_.X({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.k("design:type",Boolean)],be.prototype,"useYoutubeSans",void 0);_.Q([_.X({computed:"computeShouldShowModernIcon(modern, icon)"}),_.k("design:type",Boolean)],be.prototype,"shouldShowModernIcon",void 0);
_.Q([_.WZ("yt-img-shadow-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],be.prototype,"onThumbnailLoaded",null);be=_.Q([_.r0({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],be);
_.A(be,"yt-mealbar-promo-renderer",function(){if(JPX===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;jOj===void 0&&(jOj=document.createElement("template"));var u=jOj;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);JPX=Y}Y=JPX;return Y},{mode:2});var B4_;var cP1;var T0=function(){return _.Z.apply(this,arguments)||this};
_.r(T0,_.Z);_.z=T0.prototype;_.z.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]]"}}}}}};
_.z.computeHasButtons_=function(Y){return!(!Y.dismissButton&&!Y.acceptButton)};
_.z.computeStyle_=function(Y){return Y||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.z.observeImpressionEndpoints_=function(){var Y=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(S){S.clickTrackingParams&&delete S.clickTrackingParams;_.Bu(Y.hostElement,[S])})};
_.z.onTap_=function(){_.nb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
T0.prototype.observeImpressionEndpoints_=T0.prototype.observeImpressionEndpoints_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],T0.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],T0.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],T0.prototype,"positionType",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.k("design:type",Boolean)],T0.prototype,"hasButtons_",void 0);_.Q([_.X({value:function(){return this.onTap_.bind(this)}}),
_.k("design:type",Function)],T0.prototype,"boundOnTap_",void 0);_.Q([_.X({value:{style:"mono-inverse"}}),_.k("design:type",Object)],T0.prototype,"buttonOverride",void 0);_.Q([_.zY("data.promoConfig.impressionEndpoints"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T0.prototype,"observeImpressionEndpoints_",null);T0=_.Q([_.r0({is:"yt-tooltip-renderer",disableElementRegistration:!0})],T0);
_.A(T0,"yt-tooltip-renderer",function(){if(cP1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;B4_===void 0&&(B4_=document.createElement("template"));var u=B4_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);cP1=Y}Y=cP1;return Y},{mode:2});var CHY;var qKd;var R0I={},xM_=(R0I.WEB_REMIX="music.youtube.com",R0I),KI=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return Y};
_.r(KI,_.Z);_.z=KI.prototype;_.z.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.created=function(){this.embedHost_=xM_[_.X3("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.z.ready=function(){_.I(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.z.computeEmbedCode_=function(Y,S,P,u,W){if(!Y)return"";var m=Y.videoId,J=Y.fullListId,c=[];Y.attributionId&&c.push("si="+Y.attributionId);u||c.push("controls=0");P&&Number(S)>0&&c.push("start="+S);J&&(m="videoseries",c.push("list="+J));P="https://"+(W?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+m;Y.clipId&&(c.push("clip="+Y.clipId),c.push("clipt="+Y.clipTiming));S=c.length>0?P+"?"+c.join("&amp;"):P;Y.encryptedEmbedConfig&&c.push("embed_config="+JSON.stringify({enc:Y.encryptedEmbedConfig}));
c=c.length>0?P+"?"+c.join("&amp;"):P;_.f("web_sharing_embed_preview_killswitch")?_.I(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(c,Y.previewWidth||854,Y.previewHeight||480):(_.wI(this.videoPreviewContainer),_.I(this.videoPreviewContainer).appendChild(this.buildIframeElement(c)));return this.getEmbedCode_(S,Y.width||560,Y.height||315)};
_.z.buildIframeElement=function(Y){var S=document.createElement("iframe"),P,u;S.width=""+((u=(P=this.data)==null?void 0:P.previewWidth)!=null?u:854);var W,m;S.height=""+((m=(W=this.data)==null?void 0:W.previewHeight)!=null?m:480);_.TXh(S,2,Y);S.title="YouTube video player";S.frameBorder="0";S.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";S.referrerPolicy="strict-origin-when-cross-origin";S.allowFullscreen=!0;return S};
_.z.computeIsSquareAspectRatio_=function(Y){return Y.previewHeight&&Y.previewWidth?Y.previewHeight==Y.previewWidth:!1};
_.z.computeShowEmbedOptions_=function(Y){return!!Y.enablePrivacyModeOptionLabel||!!Y.showPlayerControlsOptionLabel};
_.z.getEmbedCode_=function(Y,S,P){return'<iframe width="'+S+'" height="'+P+'" src="'+Y+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.z.handleSignalActionCopyShareEmbedUrl_=function(){_.I(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.z.handleSetTimestamp_=function(Y){this.startAtTimeStamp_=(this.startAtChecked_=Y.isSet)?Y.timestamp:0};
_.z.closePanel_=function(){_.nb(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.z.onEmbedCode_=function(){_.I(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.z.onYtPopupClosed_=function(){_.wI(_.I(this.hostElement).querySelector("#video-preview"))};
_.z.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.g(this.data.actionButtons[0],_.I8)&&this.ytRendererBehavior.logExplicitClick(_.g(this.data.actionButtons[0],_.I8))};
KI.prototype.onYtPopupClosed_=KI.prototype.onYtPopupClosed_;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],KI.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],KI.prototype,"data",void 0);
_.Q([_.X({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.k("design:type",String)],KI.prototype,"embedCode_",void 0);_.Q([_.X({value:!0}),_.k("design:type",Boolean)],KI.prototype,"isPlayerControlsOptionChecked_",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],KI.prototype,"isPrivacyModeOptionChecked_",void 0);_.Q([_.X({value:!1,notify:!0}),_.k("design:type",Boolean)],KI.prototype,"startAtChecked_",void 0);
_.Q([_.X({value:0}),_.k("design:type",Number)],KI.prototype,"startAtTimeStamp_",void 0);_.Q([_.X({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],KI.prototype,"isSquareAspectRatio_",void 0);_.Q([_.nc("#video-preview"),_.k("design:type",HTMLElement)],KI.prototype,"videoPreviewContainer",void 0);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],KI.prototype,"onYtPopupClosed_",null);
KI=_.Q([_.r0({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],KI);
_.A(KI,"yt-sharing-embed-renderer",function(){if(qKd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;CHY===void 0&&(CHY=document.createElement("template"));var u=CHY;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);qKd=Y}Y=qKd;return Y},{mode:2});var b0o={};
b0o.YtUnlimitedFamilyInterstitialBehavior=[_.Vt.YtOpenPopupBehavior,_.tD.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(Y){Y=_.k1m(_.oK(Y),"yt-button-renderer");return Y?Y.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(Y){this.dialogHistory_.push(Y)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var Y=this.popFromHistory();if(Y){var S={openPopupAction:{popupType:"DIALOG",popup:{}}};S.openPopupAction.popup[Y.renderer]=Y.data;this.showingPreviousDialog_=!0;this.openPopup(S)}},
handleOpenPopupAction_:function(Y){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var S=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(u){return!!Y.openPopupAction.popup[u]}),P=this.getElementName_();
S&&this.data&&(this.pushToHistory({renderer:P,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(Y){if(Y=_.g(Y,QSo))this.loading=!0,_.nb(this.hostElement,"yt-open-create-family-dialog",[Y,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var Y=this.hostElement.nodeName.split("-").slice(1).map(function(S){return""+S[0].toUpperCase()+S.slice(1).toLowerCase()}).join("");
return Y[0].toLowerCase()+Y.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var T4c;var KO6;var EB=function(){return _.Z.apply(this,arguments)||this};
_.r(EB,_.Z);_.z=EB.prototype;_.z.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}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.nb(this.hostElement,"yt-register-create-family-dialog");_.I(this.hostElement).querySelector("#thumbnail").onShow()};
_.z.fireOnCloseCommand_=function(){var Y;((Y=this.data)==null?0:Y.onCloseCommand)&&_.cu(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.z.onYtServiceRequestSent_=function(Y,S){S&&S.endpoint&&_.g(S.endpoint,_.xo)||(this.loading=!0)};
_.z.onYtServiceRequestCompleted_=function(){var Y=this.hostElement.parentElement;Y.close&&Y.close();this.loading=!1};
_.z.openPopupHandler_=function(Y){if(Y.detail==this){var S;((S=this.data)==null?0:S.onOpenCommands)&&_.cu(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.z.closePopupHandler_=function(Y,S){this.fireOnCloseCommand_();if(S&&S.canceled===!0||S&&S.canceled===!1&&S.confirmed===!1){var P;((P=this.data)==null?0:P.onDismissCommands)&&_.cu(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.z.dataChanged_=function(){this.loading=!1};
EB.prototype.dataChanged_=EB.prototype.dataChanged_;EB.prototype.closePopupHandler_=EB.prototype.closePopupHandler_;EB.prototype.openPopupHandler_=EB.prototype.openPopupHandler_;EB.prototype.onYtServiceRequestCompleted_=EB.prototype.onYtServiceRequestCompleted_;EB.prototype.onYtServiceRequestSent_=EB.prototype.onYtServiceRequestSent_;_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],EB.prototype,"ytEventForwardingBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],EB.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(b0o.YtUnlimitedFamilyInterstitialBehavior),_.k("design:type",Object)],EB.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],EB.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],EB.prototype,"loading",void 0);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],EB.prototype,"onYtServiceRequestSent_",null);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],EB.prototype,"onYtServiceRequestCompleted_",null);
_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],EB.prototype,"openPopupHandler_",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],EB.prototype,"closePopupHandler_",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EB.prototype,"dataChanged_",null);
EB=_.Q([_.r0({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],EB);
_.A(EB,"yt-unlimited-family-message-interstitial-renderer",function(){if(KO6===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;T4c===void 0&&(T4c=document.createElement("template"));var u=T4c;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);KO6=Y}Y=KO6;return Y},{mode:2});var EhX;var fkd;var fI=function(){return _.Z.apply(this,arguments)||this};
_.r(fI,_.Z);fI.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"}}}};
fI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.I(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(Y){Y.onShow()});
_.I(this.hostElement).querySelector("#main-thumbnail").onShow()};
fI.prototype.onButtonTap_=function(Y){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(Y)};
fI.prototype.computeMainThumbnailWidth_=function(Y){return Y&&Y.length!==0?72:96};
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.Q([_.p(b0o.YtUnlimitedFamilyInterstitialBehavior),_.k("design:type",Object)],fI.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],fI.prototype,"data",void 0);
_.Q([_.X({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.k("design:type",Number)],fI.prototype,"mainThumbnailWidth_",void 0);_.Q([_.X({value:function(){return this.onButtonTap_.bind(this)}}),
_.k("design:type",Function)],fI.prototype,"boundButtonTap_",void 0);fI=_.Q([_.r0({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],fI);
_.A(fI,"yt-unlimited-family-profile-interstitial-renderer",function(){if(fkd===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;EhX===void 0&&(EhX=document.createElement("template"));var u=EhX;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);fkd=Y}Y=fkd;return Y},{mode:2});var gh6;var $M1;var gA=function(){var Y=_.Z.apply(this,arguments)||this;Y.sliderAriaValueText_=null;Y.selectedIndex_=0;Y.messages={PAUSE_SLIDER:_.Td("PAUSE_SLIDER",void 0,"Pause Duration")};return Y};
_.r(gA,_.Z);_.z=gA.prototype;_.z.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_]]"}}}}}};
_.z.onPopupOpened_=function(Y){Y.detail==this&&_.f("enable_premium_voluntary_pause")&&(_.nb(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.setDialogData=function(Y){this.data=Y;this.resetSlider_()};
_.z.dataChanged_=function(){this.data&&this.resetSlider_()};
_.z.onSubmitTap_=function(){if(this.data.confirmCommand){var Y=this.data.confirmCommand;_.g(Y,_.Zdd)&&_.Bu(this.hostElement,[Y,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.z.onExitButtonTap_=function(){_.nb(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.z.closePopupHandler_=function(Y,S){(S&&S.canceled===!0||S.canceled===!1&&S.confirmed===!1)&&this.handleOnDismissCommands_()};
_.z.onSliderChange_=function(){this.selectedIndex_=_.I(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.z.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.z.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.z.resetSlider_=function(){if(this.data){var Y=this.data.defaultEndOptionIndex||0,S=_.I(this.hostElement).querySelector("#id-pause-slider");if(S.immediateValue<Y)for(;S.immediateValue!=Y;)S.increment();else if(Y<S.immediateValue)for(;S.immediateValue!=Y;)S.decrement();this.selectedIndex_=Y;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.z.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.cu(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.z.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.cu(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.z.onYtServiceRequestSent=function(){this.loading=!0};
_.z.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
gA.prototype.onYtServiceRequestCompleted=gA.prototype.onYtServiceRequestCompleted;gA.prototype.onYtServiceRequestSent=gA.prototype.onYtServiceRequestSent;gA.prototype.closePopupHandler_=gA.prototype.closePopupHandler_;gA.prototype.dataChanged_=gA.prototype.dataChanged_;gA.prototype.onPopupOpened_=gA.prototype.onPopupOpened_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],gA.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],gA.prototype,"loading",void 0);_.Q([_.X(),_.k("design:type",Number)],gA.prototype,"selectIndexMax_",void 0);_.Q([_.X(),_.k("design:type",Object)],gA.prototype,"selectedData_",void 0);
_.Q([_.X(),_.k("design:type",Object)],gA.prototype,"sliderAriaValueText_",void 0);_.Q([_.X({value:function(){return this.onSubmitTap_.bind(this)}}),
_.k("design:type",Function)],gA.prototype,"onButtonTap_",void 0);_.Q([_.X({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.k("design:type",Function)],gA.prototype,"onSecondaryTap_",void 0);_.Q([_.X(),_.k("design:type",Object)],gA.prototype,"messages",void 0);_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],gA.prototype,"onPopupOpened_",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gA.prototype,"dataChanged_",null);
_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],gA.prototype,"closePopupHandler_",null);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],gA.prototype,"onYtServiceRequestSent",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],gA.prototype,"onYtServiceRequestCompleted",null);gA=_.Q([_.r0({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],gA);
_.A(gA,"yt-unplugged-pause-membership-dialog-renderer",function(){if($M1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;gh6===void 0&&(gh6=document.createElement("template"));var u=gh6;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);$M1=Y}Y=$M1;return Y},{mode:2});var rPY;var GL1;var $e=function(){return _.Z.apply(this,arguments)||this};
_.r($e,_.Z);$e.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.rL("vcBalanceRenderer")}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],$e.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],$e.prototype,"data",void 0);$e=_.Q([_.r0({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],$e);
_.A($e,"yt-vc-offer-layout-header-renderer",function(){if(GL1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;rPY===void 0&&(rPY=document.createElement("template"));var u=rPY;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);GL1=Y}Y=GL1;return Y},{mode:2});var h06;var vh1;var DMZ;var Ikc;var rA=function(){return _.Z.apply(this,arguments)||this};
_.r(rA,_.Z);rA.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.y6.Object.defineProperties(rA.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.DlS.YtTappableItemBehavior),_.k("design:type",Object)],rA.prototype,"ytTappableItemBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],rA.prototype,"data",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.d("data.accessibilityText"),_.k("design:type",String),_.k("design:paramtypes",[])],rA.prototype,"ariaLabel",null);_.Q([_.X({reflectToAttribute:!0}),_.d("data.style"),_.k("design:type",String),_.k("design:paramtypes",[])],rA.prototype,"vcOfferStyle",null);_.Q([_.d("data.style","data.titleText"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],rA.prototype,"showTitleText",null);rA=_.Q([_.r0({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],rA);
_.A(rA,"yt-vc-offer-renderer",function(){if(Ikc===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;DMZ===void 0&&(DMZ=document.createElement("template"));var u=DMZ;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Ikc=Y}Y=Ikc;return Y},{mode:2});var G0=function(){return _.Z.apply(this,arguments)||this};
_.r(G0,_.Z);G0.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],G0.prototype,"data",void 0);G0=_.Q([_.r0({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],G0);
_.A(G0,"yt-vc-offer-layout-renderer",function(){if(vh1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;h06===void 0&&(h06=document.createElement("template"));var u=h06;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);vh1=Y}Y=vh1;return Y},{mode:2});var akZ;var LO_;var wvY;var pvI;var hC=function(){return _.Z.apply(this,arguments)||this};
_.r(hC,_.Z);hC.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],hC.prototype,"data",void 0);hC=_.Q([_.r0({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],hC);
_.A(hC,"yt-ypc-offers-modal-top-bar-renderer",function(){if(pvI===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;wvY===void 0&&(wvY=document.createElement("template"));var u=wvY;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);pvI=Y}Y=pvI;return Y},{mode:2});var vi=function(){return _.Z.apply(this,arguments)||this};
_.r(vi,_.Z);vi.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"}}}}};
vi.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
vi.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var Y=this.scrollable;Y.attached&&typeof Y.attached==="function"&&Y.attached()};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.nc("#scrollable"),_.k("design:type",Object)],vi.prototype,"scrollable",void 0);_.Q([_.X(),_.k("design:type",Object)],vi.prototype,"data",void 0);vi=_.Q([_.r0({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],vi);
_.A(vi,"yt-ypc-offers-modal-renderer",function(){if(LO_===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;akZ===void 0&&(akZ=document.createElement("template"));var u=akZ;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);LO_=Y}Y=LO_;return Y},{mode:2});var FO1;var sOX;var DJ=function(){return _.Z.apply(this,arguments)||this};
_.r(DJ,_.Z);_.z=DJ.prototype;_.z.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}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.I(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.z.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.nb(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.z.onYtPopupOpened_=function(Y,S){(S==null?void 0:S.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.cu(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.z.onYtPopupClosed_=function(Y,S){this.continueButtonTapped||S&&(S.canceled===!0||S.canceled===!1&&S.confirmed===!1)&&this.data.onDismissCommands&&_.cu(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.z.onYtServiceRequestError_=function(Y){this.set("showSpinner",!1);_.hQ(this.hostElement,Y.detail.error.message)};
_.z.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.f("enable_ypc_spinners")?_.nb(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
DJ.prototype.onYtServiceRequestError_=DJ.prototype.onYtServiceRequestError_;DJ.prototype.onYtPopupClosed_=DJ.prototype.onYtPopupClosed_;DJ.prototype.onYtPopupOpened_=DJ.prototype.onYtPopupOpened_;DJ.prototype.onYtServiceRequestCompleted_=DJ.prototype.onYtServiceRequestCompleted_;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.X(),_.k("design:type",Object)],DJ.prototype,"data",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],DJ.prototype,"showSpinner",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],DJ.prototype,"continueButtonTapped",void 0);_.Q([_.X({value:function(){return this.onContinueTapped_.bind(this)}}),
_.k("design:type",Function)],DJ.prototype,"bindOnContinueTapped_",void 0);_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],DJ.prototype,"onYtServiceRequestCompleted_",null);_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],DJ.prototype,"onYtPopupOpened_",null);
_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],DJ.prototype,"onYtPopupClosed_",null);_.Q([_.WZ("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],DJ.prototype,"onYtServiceRequestError_",null);DJ=_.Q([_.r0({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],DJ);
_.A(DJ,"yt-ypc-upgrade-dialog-renderer",function(){if(sOX===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;FO1===void 0&&(FO1=document.createElement("template"));var u=FO1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);sOX=Y}Y=sOX;return Y},{mode:2});var dM1;var lkc;var IH=function(){return _.Z.apply(this,arguments)||this};
_.r(IH,_.Z);IH.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
IH.prototype.computeHasButtons_=function(Y){return!(!Y.dismissButton&&!Y.confirmButton)};
IH.prototype.computeStyle_=function(Y){return Y||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],IH.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],IH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],IH.prototype,"data",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],IH.prototype,"positionType",void 0);
_.Q([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.k("design:type",Boolean)],IH.prototype,"hasButtons_",void 0);_.Q([_.X({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.k("design:type",Boolean)],IH.prototype,"style_",void 0);IH=_.Q([_.r0({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],IH);
_.A(IH,"yt-bubble-hint-renderer",function(){if(lkc===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;dM1===void 0&&(dM1=document.createElement("template"));var u=dM1;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);lkc=Y}Y=lkc;return Y},{mode:2});var XvX;var Z0d;var aH=function(){var Y=_.Nz.apply(this,arguments)||this;Y.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return Y};
_.r(aH,_.Nz);_.z=aH.prototype;_.z.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.z.attached=function(){var Y=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){Y.$.thumbnail.onShow();Y.$["header-image"].onShow()})};
_.z.handleCheckBoxUpdateAction_=function(Y){this.canShowCheckboxEnabledConfirmButton=Y};
_.z.computeUseOverlayForSpinner_=function(Y,S){return!!Y&&S};
_.z.computeShowSpinner_=function(Y,S){return Y||!!S};
_.z.fireOnCloseActions_=function(){var Y,S=_.n(((Y=this.data)==null?void 0:Y.onClosedActions)||[]);for(Y=S.next();!Y.done;Y=S.next())this.ytRendererBehavior.resolveCommand(Y.value)};
_.z.fireOnOpenCommands_=function(Y){var S,P=(S=this.data)==null?void 0:S.onOpenCommands;if(P)for(Y.stopImmediatePropagation(),Y=_.n(P),S=Y.next();!S.done;S=Y.next())this.ytRendererBehavior.resolveCommand(S.value)};
_.z.fireOnDismissCommands_=function(Y){var S,P=(S=this.data)==null?void 0:S.onDismissCommands;if(P)for(Y.stopImmediatePropagation(),Y=_.n(P),S=Y.next();!S.done;S=Y.next())this.ytRendererBehavior.resolveCommand(S.value)};
_.z.openPopupHandler_=function(Y){Y.detail==this&&this.fireOnOpenCommands_(Y)};
_.z.closePopupHandler_=function(Y,S){_.jR(this,"yt-confirm-dialog-close-action",[S]);this.fireOnCloseActions_();(S&&S.canceled===!0||S&&S.canceled===!1&&S.confirmed===!1)&&this.fireOnDismissCommands_(Y)};
_.z.onHeaderImageChanged_=function(){var Y;((Y=this.data)==null?0:Y.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.z.computeHasHeaderImageWidth_=function(Y){return Y!=void 0};
_.z.computeHasLoadingMessage=function(Y){return!!Y};
_.z.onHeaderImageWidthChanged_=function(){var Y,S=(Y=this.data)==null?void 0:Y.headerImageWidth;if(S){if(Y=1.25*S*2+S,this.$.main.style.width=Y+"px",S=this.$.scroller.firstElementChild)S.style.minWidth=Y+"px"}else this.$.main.style.width="100%"};
_.z.onThumbnailChanged_=function(){var Y;((Y=this.data)==null?0:Y.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.z.onYtNavigate_=function(Y){Y=_.oK(Y);Y instanceof Node&&_.Hq(this.$["confirm-button"]).contains(Y)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.z.computePrimaryIsCancel_=function(Y){return Y};
_.z.computeIsCancelButtonHidden_=function(Y){return Y.skipCancelButton||!Y.cancelButton};
_.z.computeIsCheckboxHidden_=function(Y){return!Y.checkbox};
_.z.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.z.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.z.onYtServiceRequestCompleted_=function(){var Y;((Y=this.data)==null?0:Y.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.y6.Object.defineProperties(aH,{template:{configurable:!0,enumerable:!0,get:function(){if(Z0d===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <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');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;XvX===void 0&&(XvX=document.createElement("template"));var u=XvX;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);Z0d=Y}Y=Z0d;return Y}}});
aH.prototype.onYtServiceRequestCompleted_=aH.prototype.onYtServiceRequestCompleted_;aH.prototype.onYtServiceRequestSent_=aH.prototype.onYtServiceRequestSent_;aH.prototype.onThumbnailLoaded_=aH.prototype.onThumbnailLoaded_;aH.prototype.onYtNavigate_=aH.prototype.onYtNavigate_;aH.prototype.onThumbnailChanged_=aH.prototype.onThumbnailChanged_;aH.prototype.onHeaderImageWidthChanged_=aH.prototype.onHeaderImageWidthChanged_;aH.prototype.onHeaderImageChanged_=aH.prototype.onHeaderImageChanged_;
aH.prototype.closePopupHandler_=aH.prototype.closePopupHandler_;aH.prototype.openPopupHandler_=aH.prototype.openPopupHandler_;_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],aH.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);
_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],aH.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],aH.prototype,"data",void 0);_.Q([_.X({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.k("design:type",Boolean)],aH.prototype,"primaryIsCancel",void 0);_.Q([_.X({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.k("design:type",Boolean)],aH.prototype,"isCancelButtonHidden",void 0);
_.Q([_.X({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.k("design:type",Boolean)],aH.prototype,"isCheckboxHidden",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],aH.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.Q([_.X({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.k("design:type",Boolean)],aH.prototype,"useOverlayForSpinner_",void 0);
_.Q([_.X({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.k("design:type",Boolean)],aH.prototype,"showSpinner_",void 0);_.Q([_.X({value:!1}),_.k("design:type",Boolean)],aH.prototype,"isActionInProgress_",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.k("design:type",Boolean)],aH.prototype,"hasHeaderImageWidth_",void 0);
_.Q([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.k("design:type",Boolean)],aH.prototype,"hasLoadingMessage",void 0);_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],aH.prototype,"openPopupHandler_",null);_.Q([_.WZ("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],aH.prototype,"closePopupHandler_",null);
_.Q([_.zY("data.headerImage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aH.prototype,"onHeaderImageChanged_",null);_.Q([_.zY("data.headerImageWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aH.prototype,"onHeaderImageWidthChanged_",null);_.Q([_.zY("data.thumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aH.prototype,"onThumbnailChanged_",null);
_.Q([_.WZ("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],aH.prototype,"onYtNavigate_",null);_.Q([_.WZ("yt-img-shadow-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aH.prototype,"onThumbnailLoaded_",null);_.Q([_.WZ("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.LR]),_.k("design:returntype")],aH.prototype,"onYtServiceRequestSent_",null);
_.Q([_.WZ("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.ZK]),_.k("design:returntype")],aH.prototype,"onYtServiceRequestCompleted_",null);aH=_.Q([_.r0({is:"yt-confirm-dialog-renderer",noInjection:!0})],aH);var i01;var oh1;var LI=function(){return _.Z.apply(this,arguments)||this};
_.r(LI,_.Z);LI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.I(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
LI.prototype.computeConfirmButton_=function(Y){var S={text:Y.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};Y.confirmNavigationEndpoint?S.navigationEndpoint=Y.confirmNavigationEndpoint:Y.confirmServiceEndpoint&&(S.serviceEndpoint=Y.confirmServiceEndpoint);return S};
LI.prototype.computeShowTitle_=function(Y){return!(Y==null||!Y.title)};
_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],LI.prototype,"data",void 0);_.Q([_.X({computed:"computeShowTitle_(data)"}),_.k("design:type",Boolean)],LI.prototype,"showTitle",void 0);LI=_.Q([_.r0({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],LI);
_.A(LI,"yt-fancy-dismissible-dialog-renderer",function(){if(oh1===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;i01===void 0&&(i01=document.createElement("template"));var u=i01;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);oh1=Y}Y=oh1;return Y});var t1_;var APc;var wA=function(){var Y=_.Z.apply(this,arguments)||this;Y.spinnerActive=!1;return Y};
_.r(wA,_.Z);wA.prototype.created=function(){B0B(2201)};
wA.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
wA.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
wA.prototype.onIronOverlayClosed=wA.prototype.onIronOverlayClosed;wA.prototype.onIronOverlayOpened=wA.prototype.onIronOverlayOpened;_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.ir),_.k("design:type",Object)],wA.prototype,"tpYtIronOverlayBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],wA.prototype,"data",void 0);_.Q([_.X(),_.k("design:type",Object)],wA.prototype,"spinnerActive",void 0);
_.Q([_.WZ("iron-overlay-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wA.prototype,"onIronOverlayOpened",null);_.Q([_.WZ("iron-overlay-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wA.prototype,"onIronOverlayClosed",null);wA=_.Q([_.r0({is:"yt-loading-renderer",disableElementRegistration:!0})],wA);
_.A(wA,"yt-loading-renderer",function(){if(APc===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;t1_===void 0&&(t1_=document.createElement("template"));var u=t1_;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);APc=Y}Y=APc;return Y},{mode:2});var UMd;var QOo;var pI=function(){var Y=_.Z.apply(this,arguments)||this;Y.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);Y.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);Y.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.r(pI,_.Z);_.z=pI.prototype;_.z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.z.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.z.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.z.openPopupHandler_=function(Y){Y.detail===this.hostElement&&this.hostElement.hidden&&_.nb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.z.onDismissButtonTap_=function(){var Y;this.closeOnDismissButton_.has(((Y=this.data)==null?void 0:Y.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.nb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.z.onAcceptButtonTap_=function(){var Y;this.closeOnAcceptButton_.has(((Y=this.data)==null?void 0:Y.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.nb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.z.computeHasHeader_=function(Y){return!!Y.headerBackgroundImage};
_.z.computeLayoutStyle_=function(Y){return Y};
_.z.computePopupSize_=function(Y){return Y};
_.z.computeIconType_=function(Y){return Y.dialogIcon&&Y.dialogIcon.iconType?Y.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":Y.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":Y.dialogIcon.iconType:""};
_.z.computeIsLogo_=function(Y){return!!Y.dialogIcon&&!!Y.dialogIcon.iconType&&(Y.dialogIcon.iconType==="YOUTUBE_LOGO"||Y.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||Y.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.z.computeHasCustomLogo=function(Y){return!(Y==null||!Y.headerForegroundImage)};
_.z.computeCustomLogo=function(Y,S){if(Y!=null&&Y.headerForegroundImage)return Y.headerForegroundImageDark?S?Y.headerForegroundImageDark:Y.headerForegroundImage:Y.headerForegroundImage};
_.z.computeHeaderBackgroundImage=function(Y,S){if(Y!=null&&Y.headerBackgroundImage)return S&&(Y==null?0:Y.headerBackgroundImageDark)?Y.headerBackgroundImageDark:Y.headerBackgroundImage};
_.z.shouldShowIconContainer=function(Y,S){return Y&&!S};
_.z.shouldShowNonYouTubeIcon=function(Y,S){return!Y&&!S};
_.z.getLogoImageId=function(Y){var S,P,u;return(Y=(S=this.computeCustomLogo(Y,this.isDarkTheme))==null?void 0:(P=S.thumbnails)==null?void 0:(u=P[0])==null?void 0:u.height)&&Y%31===0?"custom-logo-with-padding":"custom-logo"};
pI.prototype.openPopupHandler_=pI.prototype.openPopupHandler_;pI.prototype.dataChanged_=pI.prototype.dataChanged_;_.Q([_.p(_.om.YtRendererstamperBehavior),_.k("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.Q([_.X(),_.k("design:type",Boolean)],pI.prototype,"isDarkTheme",void 0);
_.Q([_.X({computed:"computeCustomLogo(data, isDarkTheme)"}),_.k("design:type",Object)],pI.prototype,"customLogo",void 0);_.Q([_.X({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.k("design:type",Object)],pI.prototype,"headerBackgroundImage",void 0);_.Q([_.X(),_.k("design:type",Object)],pI.prototype,"data",void 0);_.Q([_.X({computed:"computeHasHeader_(data)"}),_.k("design:type",Boolean)],pI.prototype,"hasHeader",void 0);
_.Q([_.X({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.k("design:type",Object)],pI.prototype,"layoutStyle",void 0);_.Q([_.X({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.k("design:type",Object)],pI.prototype,"popupSize",void 0);_.Q([_.X({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],pI.prototype,"hasLogo",void 0);
_.Q([_.X({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],pI.prototype,"hasCustomLogo",void 0);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pI.prototype,"dataChanged_",null);_.Q([_.WZ("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pI.prototype,"openPopupHandler_",null);
pI=_.Q([_.r0({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],pI);
_.A(pI,"yt-upsell-dialog-renderer",function(){if(QOo===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;UMd===void 0&&(UMd=document.createElement("template"));var u=UMd;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);QOo=Y}Y=QOo;return Y},{mode:2});var kLu=_.AI(function(Y){return _.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.R(_.gw,{cond:Y.title,then:function(S){return _.R("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},S)}}))},"Zf"),M11=_.AI(function(Y){return _.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.R(_.rv,{data:Y.closeButton},{buttonViewModel:function(S){return _.R("div",null,_.R(_.aq,{data:S.data}))}}))},"$f"),yPB=_.AI(function(Y){var S=
Y.data;
return _.R(_.SX,null,_.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.R(_.gw,{cond:function(){return!!S().image&&!!S().title},
then:function(){return _.R(_.ZZ,{data:function(){return S().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.R(_.gw,{cond:function(){return S().title},
then:function(P){return _.R("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},P)}}),_.R(_.gw,{cond:function(){return S().primaryGenre},
then:function(P){return _.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},P)}}))),_.R(_.gw,{cond:function(){var P=S().description;
return P&&P.length<=150},
then:function(){return _.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return S().description}))}}))},"ag"),N4Y=_.AI(function(Y){Y=Y.infoRows;
var S=_.E().resolve(_.hN),P=_.f("enable_displaying_ppn");return _.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.R(_.$Z,{each:Y},function(u){return _.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.R(_.gw,{cond:function(){return u.label},
then:function(W){return _.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},W)}}),_.R(_.gw,{cond:function(){return u.attributedLabel},
then:function(W){return _.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.R(_.qw,{text:W,noPreWrap:!0}))}}),_.R(_.gw,{cond:function(){return u.value},
then:function(W){return _.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},W)}}),_.R(_.gw,{cond:function(){return u.attributedValue},
then:function(W){return _.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.R(_.qw,{text:W,noPreWrap:!0}))}}))}),_.R(_.gw,{cond:function(){return P&&S.clientData.has("post_play_nonce")},
then:function(){return _.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},S.getData("post_play_nonce")))}}))},"bg"),H0j=_.AI(function(Y){var S=Y.data;
return _.R("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.R(kLu,{title:function(){return S().dialogTitle}}),_.R(yPB,{data:S}),_.R(_.gw,{cond:function(){return S().infoRow},
then:function(P){return _.R(N4Y,{infoRows:P})}}),_.R(M11,{closeButton:function(){return S().closeButton}}))},"cg");
H0j.idomCompat=!0;_.AL(H0j,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;return _.R("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.R(_.ZZ,{data:function(){return S().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.R("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.R("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.R(_.gw,{cond:function(){var P=S().ytLogo;return P?P.iconType:null},
then:function(P){return _.R(_.BX,{icon:P,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.R("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.R("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.R(_.qw,{text:function(){return S().title}})),_.R("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.R(_.qw,{text:function(){return S().body}})),_.R("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.R(_.qw,{text:function(){return S().verifyStateText}}))),
_.R("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.R("div",null,_.R(_.rv,{data:function(){return S().dismissButton}},{buttonViewModel:_.aq})),_.R("div",null,_.R(_.rv,{data:function(){return S().linkParentButton}},{buttonViewModel:_.aq})))))},"dg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.wm}});var V1_=_.AI(function(Y){var S=Y.data;return _.R("installment-agreements-view-model",{class:_.Si("ytInstallmentAgreementsViewModelHost")},_.R(_.$Z,{each:_.o_(function(){return S().agreements},[])},function(P){return _.R("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.R("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.R(_.qw,{text:P.label})),_.R("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.R(_.rv,{data:function(){return P.openButton}},{buttonViewModel:_.aq})))}))},
"eg");
V1_.idomCompat=!0;var e0u=_.AI(function(Y){return _.R("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.R(_.qw,{text:function(){return Y.data().inviteMessage}})),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.R(_.qw,{text:function(){return Y.data().attributedAccountSectionHeaderText}})),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.R(_.rv,{data:function(){return Y.data().accountAvatar}},{avatarViewModel:_.qr}),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.R(_.qw,{text:function(){return Y.data().accountName}}),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.R(_.qw,{text:function(){return Y.data().handle}}))),_.R(_.rv,{data:function(){return Y.data().trailingButton}},{buttonViewModel:_.aq})),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.R(_.qw,{text:function(){return Y.data().termsOfService}})))},"fg");var O0j=_.AI(function(Y){var S=_.n(_.ji(function(){var O,ca;return((O=Y.data().createPlaylistDialogFormSchema)==null?0:(ca=O.initialValues)==null?0:ca.title)?Y.data().createPlaylistDialogFormSchema.initialValues.title:""})),P=S.next().value,u=S.next().value;
S=_.n(_.ji(function(){Y.data();return!1}));
var W=S.next().value,m=S.next().value;S=_.n(_.ji(function(){Y.data();return!1}));
var J=S.next().value,c=S.next().value;S=_.n(_.ji(function(){var O,ca;return(O=Y.data().createPlaylistDialogFormSchema)==null?void 0:(ca=O.initialValues)==null?void 0:ca.visibility}));
var C=S.next().value,x=S.next().value;S=_.n(_.ji(function(){Y.data();return!1}));
var b=S.next().value,T=S.next().value;S=_.n(_.ji(function(){var O,ca;return(O=Y.data().createPlaylistDialogFormSchema)==null?void 0:(ca=O.initialValues)==null?void 0:ca.isCollaborative}));
var K=S.next().value,G=S.next().value,v=_.Ms();_.D6(function(){var O=v.value.querySelector("textarea");O&&(O.value=P())});
_.LE(function(){var O;_.a0d((O=Y.data().createPlaylistDialogFormSchema)==null?void 0:O.id,{onSubmit:function(){var ca=P();var hu=C(),ah=K(),va=Y.data();ca={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:ca,privacyStatus:hu,videoIds:va.videoIds,sourcePlaylistId:va.sourcePlaylistId,params:ah?va.createPlaylistParamsCollaborationEnabled:va.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.E().resolve(_.uY).resolveCommand(ca)},
isValid:function(){return W()&&!J()&&!b()}})});
var a=function(O){if(O!==void 0&&(u(O),!W()&&O.length>0&&m(!0),W())){var ca=xaj(Y.data());if(ca){var hu=ca.minLength;ca=ca.maxLength;hu&&O.length<hu?c(!0):ca&&O.length>ca?c(!0):c(!1)}}},w=function(){var O=!(!K()||C()!=="PRIVATE");
T(O)},F=function(O){O!==void 0&&(x(O),w())},U=function(){if(b())return TTZ(Y.data())},V=function(){G(!K());
w()},M=function(){return{validate:function(O){if(W()){var ca=xaj(Y.data());
if(ca){var hu=ca.minLength;ca=ca.translations;if(hu&&O.length<hu)return ca==null?void 0:ca.minLengthErrorMessage}}}}},zJ=function(){var O=xaj(Y.data()),ca=O==null?void 0:O.maxLength,hu;
O=O==null?void 0:(hu=O.translations)==null?void 0:hu.maxLengthErrorMessage;if(ca&&O)return{maxChars:ca,errorMessage:O}};
return _.R("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.R("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:v},_.R(_.rv,{data:function(){return Y.data().playlistTitle}},{textFormFieldViewModel:function(O){return _.R(_.Bwu,{data:O.data,
text:P,onInput:a,validation:M,characterLimit:zJ})},
textFieldViewModel:function(O){return _.R(_.JAd,{data:O.data,text:P,onInput:a,validation:M,characterLimit:zJ})}})),_.R("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.R(_.rv,{data:function(){return Y.data().playlistVisibility}},{dropdownViewModel:function(O){return _.R(_.$PZ,{data:O.data,
onSelected:F,error:U})}})),_.R(_.gw,{cond:function(){return!!Y.data().playlistCollaborate},
then:function(){return _.R("div",null,_.R(_.rv,{data:function(){return Y.data().playlistCollaborate}},{switchListItemViewModel:function(O){return _.R(_.KB,{data:O.data,
onTap:V})}}))}}))},"gg");var Ypd=_.AI(function(Y){var S=_.o_(Y.noPadding,!1),P=function(){var W,m;return(m=(W=Y.data().logo.accessibilityData)==null?void 0:W.label)!=null?m:""},u={};
return _.R("upsell-view-model",{class:_.Si("ytUpsellViewModelHost",(u.ytUpsellViewModelHostNoPadding=function(){return S()},u))},_.R("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.R(_.gw,{cond:function(){return _.yR(Y.data().logo)},
then:function(W){return _.R(_.ZZ,{data:W,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:P})}})),_.R("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.R(_.qw,{text:function(){return Y.data().title}})),_.R("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.R(_.$Z,{each:function(){var W;
return(W=Y.data().subtitles)!=null?W:[]},
keyBy:"INDEX"},function(W){return _.R("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.R(_.qw,{text:W}))})),_.R("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.R(_.$Z,{each:function(){var W;
return(W=Y.data().benefitInfos)!=null?W:[]},
keyBy:"INDEX"},function(W){return _.R(_.gw,{cond:function(){return W().info},
then:function(m){return _.R("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.R(_.BX,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.R(_.qw,{text:m}))}})})),_.R("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.R(_.$Z,{each:function(){var W;
return(W=Y.data().legalInfos)!=null?W:[]},
keyBy:"INDEX"},function(W){return _.R("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.R(_.qw,{text:W}))})))},"hg");var SpB=_.AI(function(Y){var S=Y.data;Y={};Y=(Y.ytMiniAppScoreChallengeViewModelScoreRadial=!0,Y.ytMiniAppScoreChallengeViewModelDarkScoreRadial=KZd(),Y);return _.R("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.R("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return S().title}),_.R("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return S().subtitle}),_.R("div",{class:_.uN(Y)},_.R("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return S().score})),_.R("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return S().prompt}))},"ig");var PSc=function(){this.store=_.X2();this.formId=""};var uq1=_.AI(function(Y){function S(c){if(c&&(c=_.g(c,_.xI)))return Object.assign({},c,{isSelected:m()})}
var P=_.n(_.ji(function(){var c,C;return(C=(c=_.g(Y.data().option,_.xI))==null?void 0:c.isSelected)!=null?C:!1})),u=P.next().value,W=P.next().value,m=u;
_.LE(function(){var c;_.a0d((c=Y.data().formSchema)==null?void 0:c.id,{onSubmit:function(){var C=_.E().resolve(_.uY),x=!!Y.data().selectedCommand,b=!!Y.data().unselectedCommand;if(m()){if(x)var T=Y.data().selectedCommand}else b&&(T=Y.data().unselectedCommand);T=_.vF(T);S(Y.data().option)&&!T?(C="",!x&&b?C="selected ":x&&!b&&(C="unselected "),x=new _.$2("No "+C+"command found for SelectionListItemFormViewModel"),_.p_(x)):T&&C.resolveCommand(T)},
isValid:function(){return!0}})});
var J=function(){W(!m())};
_.aI(function(){var c,C,x=(c=Y.data())==null?void 0:(C=c.formSchema)==null?void 0:C.id;x&&_.D11()().delete(x)});
return _.R("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.R("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.R(_.qw,{text:function(){return Y.data().paragraph}})),_.R(_.gw,{cond:function(){return S(Y.data().option)},
then:function(c){return _.R(_.TC,{data:c,isCompact:!0,hideSelectionTextChevron:!0,onTap:J,disableHorizontalPadding:!0})}}))},"jg");var gW1=_.EP({avatarStackViewModel:_.Te3});_.Sr($aZ);var W1j=_.AI(function(Y){var S=Y.data;var P=Y.disablePadding;var u=Y.className;var W=_.Ms(),m=function(){return EW6(S().banner,S().assetContainerPaddingStyle)},J=function(){return EW6(S().imageBanner,S().assetContainerPaddingStyle)},c=function(){return S().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.LE(function(){var C=function(){fSI(W.value)},x;
(x=W.value)==null||x.addEventListener("image-loaded",C);_.aI(function(){var b;(b=W.value)==null||b.removeEventListener("image-loaded",C)})});
Y={};return _.R("yt-dialog-header-view-model",{el:W,class:_.Si(u,(Y.ytDialogHeaderViewModelHost=!0,Y.ytDialogHeaderViewModelHostDisablePadding=P,Y))},_.R(_.gw,{cond:function(){return S().banner},
then:function(){var C={};return _.R("div",{class:_.Si(u,(C.ytDialogHeaderViewModelBanner=!0,C.ytDialogHeaderViewModelBannerFullBleed=c,C)),style:_.Jg({"max-height":function(){return S().assetContainerMaxHeight?S().assetContainerMaxHeight+"px":""}})},_.R(_.tB,{data:m,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.R(_.gw,{cond:function(){return S().imageBanner},
then:function(){var C={};return _.R("div",{class:_.Si(u,(C.ytDialogHeaderViewModelBanner=!0,C.ytDialogHeaderViewModelBannerFullBleed=c,C)),style:_.Jg({"max-height":function(){return S().assetContainerMaxHeight!==void 0?S().assetContainerMaxHeight+"px":void 0}})},_.R(_.tB,{data:J,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.R(_.gw,{cond:function(){return S().customAssetContainer},
then:function(C){return _.R("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.R(_.rv,{data:C},{avatarStackViewModel:_.xw}))}}),_.R(_.gw,{cond:function(){return S().customBanner},
then:function(C){return _.R("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.R(_.rv,{data:C},{avatarStackViewModel:_.xw}))}}),_.R(_.gw,{cond:function(){return S().headline},
then:function(C){return _.R("h2",null,_.R(_.qw,{text:C,className:"ytDialogHeaderViewModelText"}))}}))},"kg"),zto=_.f("web_enable_sink_dialog_header_view_model")?W1j:_.WX($aZ);
W1j.idomCompat=!0;var mpB=_.AI(function(Y){var S=_.L8c(function(){return Y.data().formId}),P=S.onSubmit,u=S.isValid;
return _.R("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.R(_.rv,{data:function(){return Y.data().panelFooter}},{panelFooterViewModel:function(W){return _.R(_.s8,{data:W.data,
disablePadding:!0,disablePrimaryButton:function(){return!u()},
onClickPrimaryButton:function(){P()}})}}))},"lg");var JRI=_.AI(function(Y){var S=_.tI(Y,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),P=S.elRefCallback;Y=S.iconWiz;var u=S.assetWiz,W=S.assetType,m=S.titleWiz,J=S.leadingActionHeaderWiz,c=S.trailingActionHeaderWiz,C=S.headerPosition,x=S.contentWiz,b=S.buttonLayout,T=S.buttonStyle,K=S.primaryButtonWiz,G=S.secondaryButtonWiz,v=S.contentAlignment,a=S.isFullscreen,w=S.width,F=S.maxHeight,U=S.isHeaderWizDefined,
V=S.headerWiz,M=S.isFooterWizDefined,zJ=S.footerWiz;S=_.Ms(function(U9){P==null||P(U9)});
var O=u?function(){return u({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,ca=K?function(){var U9={};
return K({buttonOverrides:function(){return{style:(T==null?void 0:T())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Si((U9["yt-spec-dialog-layout__dialog-layout-button"]=!0,U9["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(b==null?void 0:b())===0||(b==null?void 0:b())===2},U9))})}:void 0,hu=G?function(){var U9={};
return G({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Si((U9["yt-spec-dialog-layout__dialog-layout-button"]=!0,U9["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(b==null?void 0:b())===0||(b==null?void 0:b())===2},U9))})}:void 0,ah=function(){return(!!m||!!J||!!c)&&C()===0},va={},yX={},la={},w1={};
return _.R("dialog-layout",{el:S,class:_.Si((va["yt-spec-dialog-layout"]=!0,va["yt-spec-dialog-layout--dialog-layout-fullscreen"]=a,va["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!a()},va["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return F()===1},va["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(W==null?void 0:W())===1},va)),
style:function(){return(w==null?void 0:w())!==void 0?"width: "+w+"px;":""}},Y?_.R("div",{class:_.Si((yX["yt-spec-dialog-layout__dialog-layout-icon"]=!0,yX["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!u&&C()===1},yX["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return v()===1},yX))},_.R(Y,null)):null,_.R(_.gw,{cond:U,
then:function(){return V?_.R("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.R(V,null)):null},
else:function(){return _.R(_.SX,null,_.R(_.gw,{cond:ah,then:function(){return _.R(nbo,{contentAlignment:v,LeadingActionHeader:J,TrailingActionHeader:c,Title:m,isAboveAsset:!!O})}}),O?_.R("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.R(O,null)):null)}}),_.R("div",{class:_.Si((la["yt-spec-dialog-layout__dialog-layout-container"]=!0,la["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(v==null?void 0:v())===1},la["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!m&&!V||!!O&&(C==null?void 0:C())===0},la))},_.R(_.gw,{cond:function(){return m&&!V&&(C==null?void 0:C())===1},
then:function(){return _.R(nbo,{contentAlignment:v,LeadingActionHeader:J,TrailingActionHeader:c,Title:m,isAboveAsset:!1})}}),x?_.R("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.R("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.R(x,null))):null,_.R(_.gw,{cond:M,
then:function(){return zJ?_.R("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.R(zJ,null)):null}}),ca||hu?_.R(jPu,{footerClasses:_.Si((w1["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,w1["yt-spec-dialog-layout__dialog-layout-footer"]=!0,w1["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(b==null?void 0:b())===2},w1["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(b==null?void 0:b())===1},w1)),
PrimaryButton:ca,SecondaryButton:hu}):null))},"mg"),nbo=_.AI(function(Y){var S=_.tI(Y,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),P=S.contentAlignment,u=S.LeadingActionHeader;Y=S.Title;var W=S.TrailingActionHeader,m=S.isAboveAsset,J=S.enableLeadingActionHeader;S={};return _.R("div",{class:_.Si((S["yt-spec-dialog-layout__dialog-header-container"]=!0,S["yt-spec-dialog-layout__dialog-header"]=!0,S["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=m,S["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(P==null?void 0:P())===1&&J()},S))},_.R(_.gw,{cond:function(){return J()},
then:function(){return u?_.R("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.R(u,null)):null}}),Y?_.R("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.R(Y,null)):null,W?_.R("div",null,_.R(W,null)):null)},"ng"),jPu=_.AI(function(Y){var S=Y.footerClasses;
var P=Y.PrimaryButton;Y=Y.SecondaryButton;return _.R("div",{class:S},Y?_.R(Y,null):null,P?_.R(P,null):null)},"og");var Bs1=_.AI(function(Y){var S=Y.data;return _.R("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.R("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.R(_.rv,{data:function(){return S().avatar}},{avatarViewModel:_.qr})),_.R("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.R(_.qw,{text:function(){return S().title}})),_.R(_.qw,{text:function(){return S().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"pg");var cR1=_.AI(function(Y){var S=Y.data;return _.R("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.R("div",{class:"ytAccessConfirmationViewModelContent"},_.R(_.rv,{data:function(){return S().dualAvatar}},{dualAvatarViewModel:function(P){return _.R("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.R(_.C_s,{data:P.data}))}}),_.R("h2",{class:"ytAccessConfirmationViewModelTitle"},_.R(_.qw,{text:function(){return S().title}})),_.R(_.qw,{text:function(){return S().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"qg");var CSB=_.AI(function(Y){var S=Y.data;var P=void 0;Y=_.n(_.qb("",void 0,"O14qgc"));var u=Y.next().value,W=Y.next().value,m,J=function(){W("");var x;(x=P)!=null&&x.store.dispatch(_.WT({type:"RESET_COMMAND_MAP"}))};
_.LE(function(){P=new PSc;window.addEventListener("yt-popup-closed",J)});
_.D6(function(){if(P&&m!==S().formId){var x=P,b=S();b.formId&&(x.formId=b.formId,x.store.dispatch(_.WT({type:"SET_CURRENT_FORM_ID",payload:{formId:x.formId}})));m=S().formId}});
_.aI(function(){window.removeEventListener("yt-popup-closed",J)});
var c=function(x,b,T){b.key&&T&&b.key!==u()&&(W(b.key),P&&b.command&&P.store.dispatch(_.WT({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:T,command:b.command}})))},C=function(){if(_.g(S().content,_.UZu))return!(u==null?0:u())};
return _.R("yt-dialog-view-model",{class:_.Si("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.R(JRI,{headerWiz:function(){return _.R("span",{skip:!0},_.R(_.rv,{data:function(){return S().header}},{dialogHeaderViewModel:function(x){return _.R(zto,{data:x.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!S().header},
contentWiz:function(){return _.R("span",{skip:!0},_.R(_.rv,{data:function(){return S().customContent?S().customContent:S().content}},{basicContentViewModel:_.Au5,
createPlaylistDialogFormViewModel:O0j,collaborativePlaylistInviteMessageViewModel:e0u,miniAppScoreChallengeViewModel:SpB,radioButtonGroupViewModel:function(x){return _.R(_.EZB,{data:x.data,selectedKey:u,onSelected:c})},
selectionListItemFormViewModel:uq1,upsellViewModel:function(x){return _.R(Ypd,{data:x.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Bs1,installmentAgreementsViewModel:V1_,accessConfirmationViewModel:cR1,listViewModel:_.ACS}))},
footerWiz:function(){return _.R("span",{skip:!0},_.R(_.rv,{data:function(){return S().footer}},{panelFooterViewModel:function(x){return _.R(_.s8,{data:x.data,
disablePadding:!0,disablePrimaryButton:C})},
formPanelFooterViewModel:mpB,formFooterViewModel:function(x){return _.R(_.mPc,{data:x.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!S().footer}}))},"rg");
CSB.idomCompat=!0;_.AL(CSB,"yt-dialog-view-model",{props:{data:_.wm},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var qpu=_.AI(function(Y){var S=Y.data;Y={};return _.R("yt-panel-header-view-model",{class:_.Si("yt-panel-header-view-model-wiz",(Y["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!S().shouldHideDivider},Y["yt-panel-header-view-model-wiz--compact"]=function(){return!!S().subtitle},Y))},_.R("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.R(_.gw,{cond:function(){return S().title},
then:function(P){return _.R(_.qw,{text:P,className:"yt-panel-header-view-model-wiz__title"})}}),_.R(_.gw,{cond:function(){return S().subtitle},
then:function(P){return _.R(_.qw,{text:P,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.R("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.R(_.rv,{data:function(){return S().trailingButtons}},{buttonViewModel:function(P){return _.R(_.aq,{data:P.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"sg");
qpu.idomCompat=!0;var RtY=_.AI(function(Y){var S=_.mR(function(m){var J;if((J=Y.skipContentClick)==null?0:J.call(Y))return!1;Y.onContentWrapperClick(m);return!0}),P,u,W;
return _.R("div",{class:_.Si("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return Y.isAnimating()?"transform: translateY("+Y.currentY()+"px);transition: 0.2s":""}},(P=Y.header)==null?void 0:P.call(Y),_.R("div",{id:Y.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Jg({"max-height":(0,_.xi)(Y.maxHeightForContentWrapper)}),"on:scroll":vWI(Y.onScroll),"on:touchmove":vWI(function(m){return void m.stopPropagation()})},_.R("div",{el:{onRender:Y.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":S},(u=Y.body)==null?void 0:u.call(Y))),(W=Y.footer)==null?void 0:W.call(Y))},"tg");
RtY.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var xpd=_.AI(function(Y){var S=_.o_(Y.leadingLabel),P=_.o_(Y.trailingLabel),u=_.o_(Y.footerButtonType),W=function(){return S()||P()||Y.hasPrimaryButton()||Y.hasSecondaryButton()},m={},J=_.Si("yt-spec-bottom-sheet-layout__primary-button",(m["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return u()===0&&Y.hasPrimaryButton()},m["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return u()===1&&Y.hasPrimaryButton()},m["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return u()===2&&Y.hasPrimaryButton()},m["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return u()===3&&Y.hasPrimaryButton()},m));
m={};var c=_.Si("yt-spec-bottom-sheet-layout__secondary-button",(m["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return u()===1&&Y.hasSecondaryButton()},m["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return u()===2&&Y.hasSecondaryButton()},m["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return u()===3&&Y.hasPrimaryButton()},m));
return _.R(_.gw,{cond:Y.hasFooterOverride,then:function(){var C;return _.R(_.SX,null,(C=Y.footerOverride)==null?void 0:C.call(Y))},
else:function(){return _.R(_.gw,{cond:W,then:function(){return _.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.R(_.gw,{cond:function(){return S()||P()},
then:function(){var C={};return _.R("div",{class:_.Si("yt-spec-bottom-sheet-layout__footer-label-wrapper",(C["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!Y.hasPrimaryButton()},C))},_.R(_.gw,{cond:S,
then:function(){return _.R("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},S)}}),_.R(_.gw,{cond:P,
then:function(){return _.R("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},P)}}))}}),_.R(_.gw,{cond:function(){return Y.hasPrimaryButton()||Y.hasSecondaryButton()},
then:function(){var C={};return _.R("div",{class:_.Si("yt-spec-bottom-sheet-layout__footer-button-wrapper",(C["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.uqu,C))},_.R(_.gw,{cond:function(){return Y.hasSecondaryButton()&&u()!==0},
then:function(){var x;return _.R("div",{class:c},(x=Y.secondaryButton)==null?void 0:x.call(Y))}}),_.R(_.gw,{cond:Y.hasPrimaryButton,
then:function(){var x;return _.R("div",{class:J},(x=Y.primaryButton)==null?void 0:x.call(Y))}}))}}))}})}})},"ug");
xpd.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var bpX=_.AI(function(Y){var S=_.o_(Y.title),P=_.o_(Y.subtitle),u=_.mR(function(J){var c;(c=Y.touchstart)==null||c.call(Y,J);return!1}),W=_.mR(function(J){var c;
(c=Y.touchmove)==null||c.call(Y,J);return!1}),m=_.mR(function(J){var c;
(c=Y.touchend)==null||c.call(Y,J);return!1});
return _.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:Y.headerId,"on:touchstart":u,"on:touchmove":W,"on:touchend":m},_.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.R(_.gw,{cond:Y.hasHeaderOverride,then:function(){var J;return _.R(_.SX,null,(J=Y.headerOverride)==null?void 0:J.call(Y))},
else:function(){var J={};return _.R("div",{class:_.Si((J["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,J["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=S,J))},_.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.R(_.gw,{cond:S,then:function(){return _.R(_.SX,null,_.R("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},S),_.R(_.gw,{cond:P,then:function(){return _.R("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
P)}}))}})),_.R(_.gw,{cond:function(){return S()&&Y.hasActionHeader()},
then:function(){var c;return _.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(c=Y.actionHeader)==null?void 0:c.call(Y))}}))}}))},"vg");
bpX.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.AI(function(Y){function S(O){if(!F&&typeof MutationObserver!=="undefined"){var ca={childList:!0};"MutationObserver"in window&&(F=new MutationObserver(P.bind(void 0,O)),F.observe(O,ca))}}
function P(O){typeof F!=="undefined"&&(U["content-wrapper"]===void 0&&(U["content-wrapper"]=O.children[0].clientHeight),G(U["content-wrapper"]),K()>v()||a(K()))}
function u(){T(window.innerHeight);K()>v()||a(K());V.isFullScreen[0]()&&K()>v()?M().dispatch("Snap To Full Screen",{maxHeight:w()}):M().dispatch("Snap To Neutral Position",{maxHeight:v()})}
function W(O){document.body.style.overscrollBehavior="none";O.preventDefault();M().dispatch("Touch Start",{event:O})}
function m(O){O.preventDefault();M().dispatch("Touch Move",{event:O,contentScrollable:K()>v(),fullContentWrapperHeight:w(),contentWrapperHeight:v(),contentHeightMap:U,contentWrapperId:"content-wrapper",header:ISc(Y),footer:ISc(Y)})}
function J(){document.body.style.overscrollBehavior="";V.isFullScreen[0]()?V.currentY[0]()>=60?M().dispatch("Snap To Neutral Position",{maxHeight:v()}):M().dispatch("Snap To Full Screen",{maxHeight:w()}):V.currentY[0]()>=60?c():V.currentY[0]()<=-60&&K()>v()?M().dispatch("Snap To Full Screen",{maxHeight:w()}):M().dispatch("Snap To Neutral Position",{maxHeight:v()})}
function c(){M().dispatch("Close Sheet",{clientHeight:b(),maxHeight:0});setTimeout(function(){DaZ()},250)}
var C=_.n(_.qb(window.innerHeight,void 0,"NWeFS")),x=C.next().value;C=C.next().value;var b=x,T=C;C=_.n(_.qb(0,void 0,"oxfm4"));x=C.next().value;C=C.next().value;var K=x,G=C;C=_.n(_.ji(function(){var O=ISc(Y);return.6*b()-rE5(O)-GM1(O)}));
x=C.next().value;C=C.next().value;var v=x,a=C,w=function(){var O=ISc(Y);return b()-rE5(O)-GM1(O)-24-24},F=null,U={},V={initialY:_.qb(0,void 0,"cYBE5c"),
currentY:_.qb(0,void 0,"RndqHc"),isAnimating:_.qb(!1,void 0,"vO9DVd"),isFullScreen:_.qb(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.ji(v)},M=function(){var O=null;return function(){if(!O){var ca={initialY:V.initialY[0](),currentY:V.currentY[0](),isAnimating:V.isAnimating[0](),isFullScreen:V.isFullScreen[0](),maxHeightForContentWrapper:V.maxHeightForContentWrapper[0]()};O=ho1(ca)}return O}}();
_.LE(function(){window.addEventListener("resize",u);M().subscribe(function(O){V.initialY[1](O.initialY);V.currentY[1](O.currentY);V.isAnimating[1](O.isAnimating);V.isFullScreen[1](O.isFullScreen);V.maxHeightForContentWrapper[1](O.maxHeightForContentWrapper)})});
_.aI(function(){window.removeEventListener("resize",u);F&&(F.disconnect(),F=null)});
var zJ=_.Si({"bottom-sheet-content-without-icon":function(){var O;return!((O=Y.shouldShowIcons)==null?0:O.call(Y))}});
return _.R("bottom-sheet-layout",null,_.R(RtY,{contentWrapperId:"content-wrapper",isAnimating:function(){return V.isAnimating[0]()},
currentY:function(){return V.currentY[0]()},
maxHeightForContentWrapper:function(){return V.maxHeightForContentWrapper[0]()},
shouldShowIcons:Y.shouldShowIcons,skipContentClick:Y.skipContentClick,onScroll:function(){var O=document.getElementById("header-wrapper"),ca=document.getElementById("content-wrapper");if(O&&ca){var hu={};hu=(hu["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,hu["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,hu);O.className=ca.scrollTop>1?_.uN(hu):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:DaZ,contentWrapperEl:function(O){S(O);requestAnimationFrame(function(){P(O)})},
header:function(){return _.R(bpX,{touchstart:W,touchmove:m,touchend:J,title:Y.headerTitle,subtitle:Y.headerSubtitle,headerId:"header-wrapper",headerOverride:Y.headerFn,hasHeaderOverride:Y.hasHeaderFn,actionHeader:Y.headerActionHeader,hasActionHeader:Y.hasHeaderActionHeader})},
footer:function(){return _.R(xpd,{footerButtonType:Y.footerButtonType,leadingLabel:Y.footerLeadingLabel,trailingLabel:Y.footerTrailingLabel,primaryButton:Y.footerPrimaryButton,hasPrimaryButton:Y.hasFooterPrimaryButton,secondaryButton:Y.footerSecondaryButton,hasSecondaryButton:Y.hasFooterSecondaryButton,footerOverride:Y.footerFn,hasFooterOverride:Y.hasFooterFn})},
body:function(){return _.R(_.gw,{cond:Y.hasContentFn,then:function(){var O;return _.R("div",{class:zJ},(O=Y.contentFn)==null?void 0:O.call(Y))}})}}))},"wg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Ts1=_.AI(function(Y){var S=_.E().resolve(_.xx),P=_.mR(function(){return void S.closeSheet()});
return _.R("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":P},_.R(_.gw,{cond:function(){return!!Y.header},
then:function(){return _.R("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},Y.header())}}),_.R(_.gw,{cond:function(){return!!Y.content},
then:function(){return _.R("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},Y.content())}}),_.R(_.gw,{cond:function(){return!!Y.footer},
then:function(){return _.R("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},Y.footer())}}))},"xg");
Ts1.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var K1_=_.AI(function(Y){Y=Y.data;var S={};return _.R("yt-sheet-view-model",{class:_.Si("yt-sheet-view-model-wiz",(S["yt-sheet-view-model-wiz--contextual"]=!0,S["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.f("web_disable_backdrop_filter"),S))},_.R(_.gw,{cond:Y,then:function(P){return _.R(Ts1,{header:function(){return _.R(_.rv,{data:function(){return P().header}},{panelHeaderViewModel:qpu})},
content:function(){return _.R(_.rv,{data:function(){return P().content}},{listViewModel:function(u){return _.R(_.ACS,{data:u.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:Ypd,miniAppScoreChallengeViewModel:SpB})},
footer:function(){return _.R(_.rv,{data:function(){return P().footer}},{panelFooterViewModel:_.s8})}})}}))},"yg");
K1_.idomCompat=!0;_.AL(K1_,"yt-sheet-view-model",{props:{data:_.wm}});var f8u=_.AI(function(Y){var S=function(){var P;return(P=Y.data().enableDebuggingFeatures)!=null?P:!1};
return _.R("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.R(_.$Z,{each:function(){var P;return(P=Y.data().stickers)!=null?P:[]}},function(P){return _.R(Ebc,{data:function(){return P},
debugMode:S})}))},"zg"),Ebc=_.AI(function(Y){var S=_.tI(Y,{debugMode:!1}).debugMode,P=_.o_(function(){var C;
return(C=Y.data().region)==null?void 0:C.w},0),u=_.o_(function(){var C;
return(C=Y.data().region)==null?void 0:C.h},0),W=_.o_(function(){var C;
return(C=Y.data().region)==null?void 0:C.x},0),m=_.o_(function(){var C;
return(C=Y.data().region)==null?void 0:C.y},0),J=_.mR(function(){var C=Y.data().onTap;
C&&_.ae(C)}),c={};
return _.R("div",{class:_.Si("ytStoriesStickerLayerViewModelSticker",(c.ytStoriesStickerLayerViewModelDebugMode=S,c)),style:_.Jg({width:function(){return 100*P()+"%"},
height:function(){return 100*u()+"%"},
left:function(){return 100*W()+"%"},
top:function(){return 100*m()+"%"},
"flex-direction":function(){return aSX(Y.data().flexDirection)},
"justify-content":function(){return LZ1(Y.data().justifyContent)},
"align-items":function(){return wTo(Y.data().alignItems)}}),
"on:click":J},_.R(_.rv,{data:function(){return Y.data().button||Y.data().toggleButton}},{buttonViewModel:function(C){return _.R(_.aq,{data:C.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(C){return _.R(_.vL,{data:C.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Ag");var $po=_.AI(function(Y){var S=function(){return Y.data()},P=_.o_(function(){return S().backgroundColor},0),u=_.o_(function(){return S().actionButtons},[]),W=_.o_(function(){return S().stickerLayer},{}),m={},J=function(){var C,x;
return{animationRef:m,animationConfig:{autoplay:!1,loop:!1,path:(x=(C=S().foregroundAnimation)==null?void 0:C.url)!=null?x:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){Y.navigateToNextItemOnLottieComplete()}}}},c=function(){var C,x,b,T,K,G,v,a;
return{animationConfig:{autoplay:(G=(C=S().backgroundAnimation)==null?void 0:(x=C.settings)==null?void 0:x.autoplay)!=null?G:!1,loop:(v=(b=S().backgroundAnimation)==null?void 0:(T=b.settings)==null?void 0:T.loop)!=null?v:!1,path:(a=(K=S().backgroundAnimation)==null?void 0:K.url)!=null?a:"",name:"stories_item_background_animation"}}};
_.D6(function(){if(Y.isVisible()){var C;(C=m.lottieEl)==null||C.play()}else{var x;(x=m.lottieEl)==null||x.stop()}});
return _.R("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Jg({"background-color":function(){return _.hK(P())+";"}})},_.R("div",{class:"ytStoriesItemViewModelAssetContent"},_.R(_.gw,{cond:function(){return!!S().backgroundAnimation},
then:function(){return _.R(_.PX,{data:c,animationName:function(){return c().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.R(_.gw,{cond:function(){return!!S().backgroundImage},
then:function(){return _.R(_.ZZ,{data:function(){return S().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.R(_.gw,{cond:function(){return!!S().foregroundAnimation},
then:function(){return _.R(_.PX,{data:J,animationName:function(){return J().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.R(_.gw,{cond:function(){return!!S().foregroundImage},
then:function(){return _.R(_.ZZ,{data:function(){return S().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.R("div",{class:"ytStoriesItemViewModelTopShadow"}),_.R(_.rv,{data:function(){return W()}},{storiesStickerLayerViewModel:f8u})),_.R("div",{class:"ytStoriesItemViewModelBottomShadow"},_.R("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.mR(Y.pauseAutoNavigation)},_.R(_.$Z,{each:u},function(C){return _.R(gb_,{data:function(){return C}})}))))},"Bg"),gb_=_.AI(function(Y){var S={};
return _.R("div",{class:_.Si("ytStoriesItemViewModelActionButton",(S.ytStoriesItemViewModelStretchedActionButton=function(){return Y.data().size==="STORIES_BUTTON_SIZE_STRETCH"},S))},_.R(_.rv,{data:function(){return Y.data().button}},{buttonViewModel:function(P){return _.R(_.aq,{data:P.data,
className:"ytStoriesItemViewModelButton"})}}))},"Cg");_.AL(_.AI(function(Y){var S=_.n(_.ji(function(){var U;return(U=Y.data().startIndex)!=null?U:0})),P=S.next().value,u=S.next().value;
S=_.n(_.qb(!1,void 0,"klmjc"));var W=S.next().value,m=S.next().value,J=function(){var U;return(U=Y.data().storyItems)!=null?U:[]},c=function(){return Y.data().dismissButton},C=function(){var U;
return _.g((U=_.g(c(),_.Gz))==null?void 0:U.onTap,_.hL)},x=_.Ms(),b,T=function(){var U;
(U=b)==null||U.cancel();b=K(P()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});b.onfinish=function(){K(P()).style.width="100%";var V=_.g(J()[P()],hDI),M,zJ;V!=null&&V.foregroundAnimation&&((V==null?0:(M=V.foregroundAnimation)==null?0:M.url)||(V==null?0:(zJ=V.foregroundAnimation)==null?0:zJ.payload))||(P()!==J().length-1?(u(P()+1),T()):C()&&_.DZ(C()))}},K=function(U){return x.value.children[U].children[0]},G=function(){for(var U=0;U<P();U++)K(U).style.width="100%"};
S=_.mR(function(){W()?m(!1):(P()===J().length-1&&C()&&_.DZ(C()),K(P()).style.width="100%",P()!==J().length-1&&(u(P()+1),T()))});
var v=_.mR(function(){W()?m(!1):(K(P()).style.width="0%",P()!==0?u(P()-1):u(P()),T())}),a=function(){m(!0)},w=function(){K(P()).style.width="100%";
P()!==J().length-1?(u(P()+1),T()):C()&&_.DZ(C())},F=_.mR(function(){var U;
(U=b)==null||U.pause()});
_.D6(function(){if(W()){var U;(U=b)==null||U.pause()}else{var V;(V=b)==null||V.play()}});
_.D6(function(){G();P()===Y.data().startIndex&&T()});
_.LE(function(){G();T()});
return _.R("yt-stories-viewer-view-model",{class:_.Si("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.R("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.R("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":v,"on:mousedown":F}),_.R("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":S,"on:mousedown":F})),_.R(_.rv,{data:J},{storiesItemViewModel:function(U,V){var M=U.data;return _.R(_.gw,{cond:function(){return Math.abs(V()-
P())<=1},
then:function(){var zJ={};return _.R("div",{class:_.Si("ytStoriesViewerViewModelStoryItem",(zJ.ytStoriesViewerViewModelHiddenStoryItem=function(){return V()!==P()},zJ))},_.R($po,{data:M,
pauseAutoNavigation:a,navigateToNextItemOnLottieComplete:w,isVisible:function(){return V()===P()}}))}})}}),_.R("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:x},_.R(_.$Z,{each:J},function(){return _.R("div",{class:"ytStoriesViewerViewModelProgressBar"},_.R("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.R("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.R(_.rv,{data:c},{buttonViewModel:_.aq})))},"Dg"),"yt-stories-viewer-view-model",{props:{data:_.wm}});_.AL(_.AI(function(Y){var S=Y.data;var P=_.Ms(),u=[];return _.R("yt-gen-ai-feedback-form-view-model",{el:P,class:"ytGenAiFeedbackFormViewModelHost"},_.R(_.qw,{text:function(){return S().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.R("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.R(_.rv,{data:function(){return S().feedbackChips}},{toggleButtonViewModel:function(W){var m=W.data;
return _.R(_.vL,{data:m,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(J){var c=m();c=_.g(c,_.hq);c=_.g(c==null?void 0:c.defaultButtonViewModel,_.Gz).trackingParams;J?u.push(c):(J=u.indexOf(c),J>-1&&u.splice(J,1))}})}})),_.R(_.qw,{text:function(){return S().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.R("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.R(_.rv,{data:function(){return S().submitButton}},{buttonViewModel:function(W){return _.R(_.aq,{data:W.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){pTY(P.value,u,S().uniqueId)}})}}),_.R(_.rv,{data:function(){return S().moreFeedbackButton}},{buttonViewModel:function(W){return _.R(_.aq,{data:W.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Eg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.wm},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var FG=function(){return _.Z.apply(this,arguments)||this};
_.r(FG,_.Z);FG.prototype.created=function(){B0B(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(QmX);var Y=_.E().resolve(_.ruI);Y&&(Y.container=this.ytPopupContainerBehavior);if(Y=_.E().resolve(_.xx))Y.container=this.ytPopupContainerBehavior;if(Y=_.E().resolve(_.bn)){var S=this.ytPopupContainerBehavior;Y.containerWasInjected?_.sf(Error("dj")):Y.container=S}};
FG.prototype.ensurePopupBelowPlayer=function(Y,S){var P=_.E().resolve(_.PQ(_.Ag));if(!P||!P.isOnWatch()||!_.Q5())return!1;P=P.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.x9().height>P+this.getPopupHeight(Y,S)?(Y.style.top="auto",Y.style.bottom="0px"):(Y.style.top=P+"px",Y.style.bottom="auto");return!0};
FG.prototype.getPopupHeight=function(Y,S){S&&(Y.cachedPopupHeight=0);if(!Y.cachedPopupHeight){S=0;var P=Y.clientHeight,u=window.getComputedStyle(Y);S+=parseInt(u.marginTop,10);S+=parseInt(u.marginBottom,10);Y.cachedPopupHeight=P+S}return Y.cachedPopupHeight};
FG.prototype.getElement=function(Y){return document.createElement(Y)};
_.Q([_.p(RWZ.YtPopupContainerBehavior),_.k("design:type",Object)],FG.prototype,"ytPopupContainerBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],FG.prototype,"ytComponentBehavior",void 0);FG=_.Q([_.t({disableElementRegistration:!0,is:"ytd-popup-container"})],FG);
_.A(FG,"ytd-popup-container",function(){if(WCI!==void 0)return WCI;var Y=document.createElement("template");_.h(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);return WCI=Y},{mode:1});var rRj;var GhI={};GhI.YtLogYpcFlowCommandsBehavior=[_.tD.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(Y){_.g(Y,U75)&&(Y=_.g(Y,U75))&&(Y.serializedTransactionFlowLoggingParams?_.f7a(Y.serializedTransactionFlowLoggingParams):Y.serializedYpcCancelFlowLoggingParams?(Y=Y.serializedYpcCancelFlowLoggingParams)&&_.GG("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",Y):Y.serializedYpcResumeFlowLoggingParams?(Y=Y.serializedYpcResumeFlowLoggingParams)&&_.GG("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",Y):Y.serializedYpcPauseFlowLoggingParams?(Y=Y.serializedYpcPauseFlowLoggingParams)&&
_.GG("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",Y):Y.serializedYpcRefundFlowLoggingParams?(Y=Y.serializedYpcRefundFlowLoggingParams)&&HZY("YPC_EVENT_TYPE_START",Y):Y.serializedYpcDeactivateFlowLoggingParams?(Y=Y.serializedYpcDeactivateFlowLoggingParams)&&_.GG("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",Y):Y.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(Y=Y.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.GG("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",Y))},
handleLogYpcFlowDismiss_:function(Y){_.g(Y,AnB)&&(Y=_.g(Y,AnB),Y.serializedTransactionFlowLoggingParams?_.gRJ(Y.serializedTransactionFlowLoggingParams):Y.serializedYpcCancelFlowLoggingParams?(Y=Y.serializedYpcCancelFlowLoggingParams)&&_.GG("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",Y):Y.serializedYpcResumeFlowLoggingParams?(Y=Y.serializedYpcResumeFlowLoggingParams)&&_.GG("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",Y):Y.serializedYpcPauseFlowLoggingParams?(Y=
Y.serializedYpcPauseFlowLoggingParams)&&_.GG("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",Y):Y.serializedYpcRefundFlowLoggingParams&&(Y=Y.serializedYpcRefundFlowLoggingParams)&&HZY("YPC_EVENT_TYPE_CANCEL",Y))}}];var htj={};htj.YtCancelRecurrenceBehavior=[_.rm.YtComponentBehavior,_.tIu,{attached:function(){var Y=this;MDB(this,function(S,P){return Y.ypcCancelRecurrenceHandler(S,P)})},
ypcCancelRecurrenceHandler:function(Y,S){var P=this;if(!S||!S.ypcCancelRecurrenceEndpoint)return!1;if(!S.ypcCancelRecurrenceEndpoint.params)return _.ik(Error("vl")),!0;_.MF(this.hostElement);var u=_.pR.instance,W=_.E().resolve(_.PQ(_.ER));u&&_.Ft(u,S)?_.sn(u,S).then(function(m){P.ypcCancelRecurrenceSuccess_(Y,S,{data:m})},function(m){P.ypcCancelRecurrenceFailure_(Y,S,m)}).thenCatch(function(){_.ik(Error("wl"))}):W?W.requestDataForServiceEndpoint(S).then(function(m){P.ypcCancelRecurrenceSuccess_(Y,
S,m)},function(m){P.ypcCancelRecurrenceFailure_(Y,S,m)}).thenCatch(function(){_.ik(Error("wl"))}):_.ik(Error("xl"));
return!0},
ypcCancelRecurrenceSuccess_:function(Y,S,P){_.yi(this.hostElement);P.data||(P={data:P});P.data&&P.data.actions&&_.cu(this.hostElement,P.data.actions,this.hostElement);P.data.messageRenderer?elB(S.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(S=S.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.GG("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",S);_.ms(Y,"yt-service-request-completed",P)},
ypcCancelRecurrenceFailure_:function(Y,S,P){_.yi(this.hostElement);elB(S.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.ms(Y,"yt-service-request-error",{error:P,params:[Y,S]})}}];var vbj=function(Y,S){_.YY.call(this,S)};
_.r(vbj,Es6);var Dp1={};Dp1.YtCompleteTransactionBehavior=[_.rm.YtComponentBehavior,_.tIu,{attached:function(){var Y=this;MDB(this,function(S,P){return Y.ypcCompleteTransactionHandler(S,P)})},
completeTransaction:function(Y,S){var P=this;S={payments_payload:window.btoa(S.integratorData),buybucket_params:Y.data.buybucketParams,offer_params:Y.data.offerParams};var u=_.E().resolve(_.ER),W=Y.data.completeTransactionEndpoint,m=this.get("ypcCompleteTransactionEndpoint.actions",W);m&&_.cu(this.hostElement,m,this.hostElement);return(m=_.pR.instance)&&_.Ft(m,W)?_.sn(m,W,S).then(function(J){return!J||(J==null?0:J.error)?(J=P.get("data.serializedTransactionFlowLoggingParams",Y),_.t9(new Hr("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
J))):{data:J}}).then(function(J){return P.handleCompleteTransactionSuccess_(J,Y)},function(){return P.handleCompleteTransactionFailure_(Y)}):u.requestDataForServiceEndpoint(W,S).then(function(J){return P.handleCompleteTransactionSuccess_(J,Y)},function(){return P.handleCompleteTransactionFailure_(Y)})},
handleCompleteTransactionSuccess_:function(Y,S){Y.data||(Y={data:Y});if(Y.data.messageRenderer)return _.t9(new vbj(Y.data.messageRenderer));if(Y.data.trackingParams){var P=_.pM(),u=_.wf();P&&u&&_.t6(P,u,_.Re(Y.data.trackingParams))}S=this.get("data.serializedTransactionFlowLoggingParams",S);VqX(S);return _.Cb(Y)},
handleCompleteTransactionFailure_:function(Y){Y=this.get("data.serializedTransactionFlowLoggingParams",Y);_.XQ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",Y);return _.t9(new Hr("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",Y))},
ypcCompleteTransactionHandler:function(Y,S){var P=this;if(!S.ypcCompleteTransactionEndpoint)return!1;if(!S.ypcCompleteTransactionEndpoint.transactionParams)return _.ik(Error("yl")),!0;S.ypcCompleteTransactionEndpoint&&S.ypcCompleteTransactionEndpoint.gtmData&&_.BU(S.ypcCompleteTransactionEndpoint.gtmData);var u=_.E().resolve(_.PQ(_.ER));if(u){_.MF(this.hostElement);var W=_.pR.instance;W&&_.Ft(W,S)?_.sn(W,S).then(function(m){return!m||(m==null?0:m.error)?(m=P.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
S),_.t9(new Hr("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",m))):{data:m}}).then(function(m){_.ms(Y,"yt-service-request-completed");
P.ypcCompleteTransactionSuccess_(S,m)},function(){return P.ypcCompleteTransactionFailure_(S)}):u.requestDataForServiceEndpoint(S).then(function(m){_.ms(Y,"yt-service-request-completed");
P.ypcCompleteTransactionSuccess_(S,m)},function(){return P.ypcCompleteTransactionFailure_(S)})}return!0},
ypcCompleteTransactionSuccess_:function(Y,S){_.yi(this.hostElement);S.data||(S={data:S});_.nb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);S.data.messageRenderer||S.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(Y):(_.BU('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",Y));S.data.actions&&(Y=Ws5(S.data.actions),S=zB1(S.data.actions),Y.length&&_.Bu(this.hostElement,
Y),S.length&&_.cu(this.hostElement,S,this.hostElement))},
ypcCompleteTransactionFailure_:function(Y){_.yi(this.hostElement);_.nb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",Y,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(Y,S,P){if(S=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",S))S={serializedTransactionFlowLoggingParams:S},P&&(S.errorType=P),_.L_(Y,S),_.w6()}}];var I8B={};I8B.YtEndpointHandlerWithYpcBehavior=[_.tIu,_.tD.YtActionHandlerBehavior,[{openWalletDialog:function(Y,S,P,u,W,m,J){var c=this,C=_.dL();S=S.replace(/-/g,"+").replace(/_/g,"/");var x=_.$o().get("hl");_.wiY(_.zU(_.ZV),S,C.resolve,W,function(b){m&&m();C.reject(b)},x,function(b){return c.onServerBackendAnalyticEvent_(Y,P,b)},this.onDialogClose_.bind(this),u,J);
return C.promise},
openFixFlowDialog:function(Y,S,P,u){Y=Y.replace(/-/g,"+").replace(/_/g,"/");_.zU(_.ZV).openFixFlowDialog(Y,S,P,u)},
onDialogClose_:function(){_.nb(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(Y,S,P){Y.fire("yt-commerce-action-init-done");S&&_.Bu(this.hostElement,[S,{backend_analytics:P}])}}],
_.Vt.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(Y,S){Y=this.get("data.nativeFlowEndpoint",S);S=this.get("data.fallbackEndpoint",S);Y?_.Bu(this.hostElement,[Y]):S&&_.ms(this.hostElement,"yt-navigate",{endpoint:S})}}],
htj.YtCancelRecurrenceBehavior,Dp1.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var Y=this;MDB(this,function(S,P,u){return Y.handleYPCEndpoint(S,P,u)});
this.ypcRegisterActionMapJobId_=_.hp(_.wc,function(){Y.registerActionMap(Y.buyFlowActionMap_)})},
detached:function(){var Y=this;_.wc.cancelJob(this.ypcRegisterActionMapJobId_);_.hp(_.wc,function(){Y.unregisterActionMap(Y.buyFlowActionMap_)})},
handleYPCEndpoint:function(Y,S,P){var u=S.ypcGetCartEndpoint;if(u){_.pb("commerce_transaction");var W=u.gtmId;W&&_.JD(W);(u=u.gtmData)&&_.BU(u)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",S)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(Y,S),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",S)!=null?(this.handleYPCFixInstrumentEndpoint_(Y,S),!0):S.ypcPauseSubscriptionCommand?(tkI(this.hostElement,Y,S,P),
!0):S.ypcResumeSubscriptionCommand?(QRX(this.hostElement,Y,S),!0):S.getPaymentInstrumentsParamsCommand?(ZAY(this.hostElement,Y,S),!0):S.ypcHandleTransactionEndpoint?(lSj(this.hostElement,Y,S,P),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(Y,S){var P=this;_.Fk("ttcr",void 0,"commerce_transaction");S=S.ypcGetCartEndpoint;var u=S.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,W=u.encryptedPurchaseParams,m=u.serializedTransactionFlowLoggingParams,J=u.serializedPaymentsClientParams,c=this.createGetCartResponseFromParams_(u,S.offerParams,m);this.changeButtonState(Y,!0);_.gy(this.openWalletDialog(Y,W,u.ypcLogWalletAnalyticDataEndpoint,m,function(){P.changeButtonState(Y,!1)},function(){P.changeButtonState(Y,
!1)},J).then(function(C){return P.handleBuyFlowCompleteCallback_(Y,c,C)},function(){return P.handleOnLoadError(c)}).then(function(C){return void P.handlePostPurchaseSuccess_(Y,c,C)},function(C){return void P.handlePostPurchaseError_(C)}),function(){P.changeButtonState(Y,!1);
Y instanceof Element&&_.ms(Y,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(Y,S,P){var u=Y.completeTransactionEndpoint,W=Y.handleTransactionEndpoint;S={data:{offerParams:window.btoa(S),serializedTransactionFlowLoggingParams:P}};W?S.data.handleTransactionEndpoint=W:S.data.completeTransactionEndpoint=u;Y.onCartDismissCommand&&(S.data.onCartDismissCommand=Y.onCartDismissCommand);return S},
onGetCartServiceRequestCompleted_:function(Y,S){var P=this,u=Y.target;if(S&&S.data&&S.data.messageRenderer)_.yi(this.hostElement),this.handleMessageRenderer_(S.data.messageRenderer),this.changeButtonState(u,!1);else{var W=this.get("data.encryptedPurchaseParams",S),m=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",S),J=this.get("data.ypcLogWalletAnalyticDataEndpoint",S),c=this.get("data.serializedPaymentsClientParams",S),C=this.getLoggingParams_(S);if(C||W||m)Y.stopPropagation(),_.Fk("ttcr",
void 0,"commerce_transaction"),W||_.yi(this.hostElement),this.changeButtonState(u,!1),m?_.nb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.X3("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:m}}},this]):W&&(this.changeButtonState(u,!0),Y=null,Y=this.openWalletDialog(u,W,J,C,function(){_.yi(P.hostElement);P.changeButtonState(u,!1)},function(){_.yi(P.hostElement);
P.changeButtonState(u,!1)},c),_.gy(Y.then(function(x){return P.handleBuyFlowCompleteCallback_(u,S,x)},function(){return P.handleOnLoadError(S)}).then(function(x){return P.handlePostPurchaseSuccess_(u,S,x)},function(x){return P.handlePostPurchaseError_(x)}),function(){P.changeButtonState(u,!1);
_.ms(u,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(Y,S){S&&S.endpoint&&S.endpoint.ypcGetCartEndpoint&&!S.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",S.endpoint.ypcGetCartEndpoint)&&_.cu(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",S.endpoint.ypcGetCartEndpoint)],Y.target),_.MF(this.hostElement),this.changeButtonState(Y.target,!0))},
onServiceRequestError_:function(Y,S){if(S&&S.params&&S.params.length){S=_.n(S.params);for(var P=S.next();!P.done;P=S.next())if((P=P.value)&&P.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",P.ypcGetCartEndpoint)&&_.cu(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",P.ypcGetCartEndpoint)],Y.target);_.yi(this.hostElement);this.changeButtonState(Y.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(Y,S,P){var u=P.integratorData;return u==null||u===""||P.error!=null?(u=this.getLoggingParams_(S),String(P.error)==="-1"?(S.data.onCartDismissCommand&&_.cu(this.hostElement,[S.data.onCartDismissCommand],Y),_.t9(new Hr("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",u,!0))):_.t9(new Hr("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",u))):S.data.handleTransactionEndpoint?XTc(this.hostElement,S.data.handleTransactionEndpoint,{payments_payload:u,funds_guarantee_callback_client_data:P.integratorClientCallbackData}):
this.completeTransaction(S,P)},
handlePostPurchaseSuccess_:function(Y,S,P){S=P.data;var u=!1,W,m;if(S&&((W=S.command)==null?0:(m=W.commandExecutorCommand)==null?0:m.commands)){var J,c;W=(J=S.command)==null?void 0:(c=J.commandExecutorCommand)==null?void 0:c.commands;for(J=0;J<W.length;J++)if(_.g(W[J],_.l3_)){u=!0;break}}u||(S&&S.gtmDatas&&S.gtmDatas.length?_.BU(S.gtmDatas[0]):_.BU('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));P.data&&P.data.actions&&(S=Ws5(P.data.actions),P=zB1(P.data.actions),S.length&&
_.Bu(this.hostElement,S),P.length&&_.cu(this.hostElement,P,Y))},
handlePostPurchaseError_:function(Y){Y&&Y.payload&&Y.payload.isUserDismiss||_.p_(Error("Al"))},
handleOnLoadError:function(Y){Y=this.getLoggingParams_(Y);return _.t9(new Hr("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",Y))},
getLoggingParams_:function(Y){return this.get("data.serializedTransactionFlowLoggingParams",Y)},
handleMessageRenderer_:function(Y){var S=_.sW(Y,"renderer"),P=_.X3("openPopupConfig");S==="confirmDialogRenderer"&&P&&_.nb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:P.popupTypeMap[S],popup:Y}},this])},
handleYPCFixInstrumentEndpoint_:function(Y,S){var P=this,u=S.ypcFixInstrumentEndpoint;S=u.encryptedFixInstrumentParameters;this.logFixFopEvent_(u,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(Y,!0);this.openFixFlowDialog(S,function(W,m){P.onFixFlowCompleteCallback_(u,W,m)},function(){return P.changeButtonState(Y,!1)},function(){P.changeButtonState(Y,!1);
P.logFixFopEvent_(u,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(Y,S,P){var u=_.tA("payments.business.integration.scenario.FixInstrument");if(S==u.IntegratorCallbackType.ON_COMPLETE){S="FIX_FOP_EVENT_TYPE_CANCEL";var W=null;P.error!=null?P.error!=u.OnCompleteCallbackError.USER_CANCELLED&&(_.cu(this.hostElement,[Y.errorAction],this.hostElement),S="FIX_FOP_EVENT_TYPE_FAILURE",W="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.cu(this.hostElement,[Y.successAction],this.hostElement),S="FIX_FOP_EVENT_TYPE_SUCCESS");_.cu(this.hostElement,[Y.onFinishAction],
this.hostElement);this.logFixFopEvent_(Y,S,W)}},
logFixFopEvent_:function(Y,S,P){(Y=Y.serializedFixFopLoggingParams)?(S={eventType:S,serializedFixFopLoggingParams:Y},P!=null&&(S.errorType=P),_.L_("fixFopFlow",S),_.w6()):_.p_(Error("Bl"))},
changeButtonState:function(Y,S){_.f("enable_ypc_spinners")&&Y&&(Y.is==="yt-button-renderer"||Y.is==="ytd-button-renderer")&&(Y.disabled=S)}}];var a8c=function(Y){this.JSC$28535_clientRoot=Y;this.feedbackCollectorActionMap={"yt-help-dialog-requested":MkX,"yt-feedback-dialog-requested":kMX,"yt-signal-action-help":yEc,"yt-signal-action-send-feedback":NT1,"yt-send-feedback-action":Vkd,"yt-user-feedback-endpoint":eoI};_.Uf(_.Ap.getInstance(),this.feedbackCollectorActionMap,this.JSC$28535_clientRoot)},L11;var w$1=function(Y){this.JSC$28540_clientRoot=Y;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":OAB.bind(null,this.JSC$28540_clientRoot),"yt-signal-action-delete-all-downloads":SR1,"yt-signal-action-delete-download":PMB,"yt-signal-action-delete-playlist-download":WM6,"yt-signal-action-install-pwa":B2B,"yt-signal-action-refresh-downloads":jKI,"yt-offline-video-endpoint":CMo,"yt-offline-playlist-endpoint":RC_,"yt-update-local-app-setting-command":bVI,"yt-offline-orchestration-action-command":KMd,
"yt-signal-action-undo-delete-download":myX,"yt-local-watch-history-command":g9j};_.Uf(_.Ap.getInstance(),this.downloadManagerActionMap,this.JSC$28540_clientRoot);_.FQ.instance=new _.FQ},p$_;var sB=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};Y.remoteApi_=null;return Y};
_.r(sB,_.Z);_.z=sB.prototype;
_.z.ready=function(){_.f("polymer_enable_mdx")&&(QQj({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.f("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.f("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.f("enable_cast_short_lived_lounge_token")}),_.n_("yt-remote-connection-change",this.handleConnectionChange_,this),_.n_("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=e2o())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.z.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.z.handleConnectionChange_=function(Y){(this.mdxConnected=Y)?(Y=y51(),!Y&&A95()&&Uqj()&&(Y={key:"cast-selector-receiver",name:Uqj()}),Y=Y.name):Y=null;this.receiverName=Y;_.oY(this.remoteApi_);(this.remoteApi_=e2o())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.z.handleReceiverAvailabilityChange_=function(){var Y=Mad();A95()&&_.u4("yt-remote-cast-available")&&Y.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=Y.length>0};
_.z.handleRemoteQueueChange_=function(){var Y=this.currentVideoId_,S=this.currentListId_,P=Pl(this.remoteApi_);this.currentVideoId_=P.videoId;this.currentListId_=P.listId;this.currentVideoId_&&_.nb(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.f("polymer_enable_mdx_queue")?this.currentListId_:null,Y,S])};
_.z.handleAddToQueueAction_=function(Y){Y=_.g(Y,v15);this.remoteApi_&&(Y.videoId?this.remoteApi_.addVideo(Y.videoId):Y.playlistId&&this.remoteApi_.addPlaylist(Y.playlistId))};
_.z.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.z.handleInsertInQueueAction_=function(Y){Y=_.g(Y,D7I);this.remoteApi_&&Y.videoId&&this.remoteApi_.JSC$17414_insertVideo(Y.videoId)};
_.z.handleRemoveFromQueueAction_=function(Y){Y=_.g(Y,IWI);this.remoteApi_&&Y.videoId&&this.remoteApi_.JSC$17414_removeVideo(Y.videoId)};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],sB.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X(),_.k("design:type",Object)],sB.prototype,"appId",void 0);_.Q([_.X(),_.k("design:type",Boolean)],sB.prototype,"mdxConnected",void 0);_.Q([_.X(),_.k("design:type",Boolean)],sB.prototype,"receiverAvailable",void 0);_.Q([_.X(),_.k("design:type",Object)],sB.prototype,"receiverName",void 0);_.Q([_.X(),_.k("design:type",Object)],sB.prototype,"currentVideoId_",void 0);
_.Q([_.X(),_.k("design:type",Object)],sB.prototype,"currentListId_",void 0);sB=_.Q([_.r0({is:"yt-mdx-manager",disableElementRegistration:!0})],sB);_.A(sB,"yt-mdx-manager",void 0,{mode:2});var F1d;var sPc;var dA=function(){var Y=_.Z.apply(this,arguments)||this;Y.APP_IDS={ytr:3,ytm:5};Y.JSC$18654_timeoutId_=0;Y.actionMap={"yt-open-create-family-dialog":"open"};return Y};
_.r(dA,_.Z);_.z=dA.prototype;_.z.created=function(){B0B(2200)};
_.z.detached=function(){this.observer_&&this.observer_.disconnect()};
_.z.open=function(Y,S){var P=this,u=Y.serializedYpcFamilyCreateLoggingParams;this.JSC$18654_timeoutId_=setTimeout(this.abort_.bind(this,Y.postFlowErrorEndpoint,u),3E4);S&&(this.onReadyCallback_=S);var W=_.I(this.hostElement).querySelector("#unicorn-iframe");u&&u&&NcX("ypcFamilyCreateFlowStarted",u);_.WIh("family_creation",function(){var m=_.tA("gapi.family_creation.render");_.tA("gapi.config.update")("iframes/family_creation/url",P.getFamilyCreationUrlWithUnicornParams_());var J=3;Y.appId&&Y.appId in
P.APP_IDS&&(J=P.APP_IDS[Y.appId]);J={authUser:_.X3("SESSION_INDEX")||0,clientId:J,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.X3("HL"),initialflow:[4,5,6,7],m:P.isMobile?1:0,onFlowComplete:P.onUnicornFlowComplete_.bind(P,Y.postFlowSuccessEndpoint,u),onError:P.onUnicornFlowError_.bind(P,Y.postFlowErrorEndpoint,u),onReady:P.onUnicornFlowReady_.bind(P,Y.referencePcidParams)};m(W,J)})};
_.z.close=function(){_.I(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.z.onUnicornFlowComplete_=function(Y,S){this.close();S&&S&&NcX("ypcFamilyCreateFlowSucceeded",S);_.ms(this.hostElement,"yt-navigate",{endpoint:Y})};
_.z.onUnicornFlowError_=function(Y,S){this.close();S&&NcX("ypcFamilyCreateFlowCancelled",S);_.ms(this.hostElement,"yt-navigate",{endpoint:Y})};
_.z.onUnicornFlowReady_=function(Y){var S=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();Y&&_.tA("gapi.family_creation.setConfig")(0,Y);this.observer_=new MutationObserver(function(){_.I(S.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.I(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.I(this.hostElement).querySelector("#dialog").open()};
_.z.getFamilyCreationUrlWithUnicornParams_=function(){return _.X3("YTR_FAMILY_CREATION_URL")};
_.z.getCurrentUrl_=function(){return document.location.href};
_.z.abort_=function(Y,S){this.clearTimeout_();this.onUnicornFlowError_(Y,S)};
_.z.clearTimeout_=function(){clearTimeout(this.JSC$18654_timeoutId_)};
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],dA.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],dA.prototype,"isMobile",void 0);_.Q([_.X(),_.k("design:type",Object)],dA.prototype,"onReadyCallback_",void 0);_.Q([_.X(),_.k("design:type",Object)],dA.prototype,"observer_",void 0);dA=_.Q([_.r0({is:"yt-create-family-dialog",disableElementRegistration:!0})],dA);
_.A(dA,"yt-create-family-dialog",function(){if(sPc===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);var S=Y.content,P=S.insertBefore;F1d===void 0&&(F1d=document.createElement("template"));var u=F1d;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);sPc=Y}Y=sPc;return Y},{mode:2});var dpB;var l81;var le=function(){var Y=_.Z.apply(this,arguments)||this;Y.STEP=1;Y.BLOCK_ON=80;Y.MIN_PROGESS=0;Y.MAX_PROGESS=100;return Y};
_.r(le,_.Z);_.z=le.prototype;_.z.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.z.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));_.E().addProvider({provide:DCY,useValue:this})};
_.z.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.z.finish=function(){var Y=this;this.progress=this.MAX_PROGESS;$y5(function(){Y.progress==Y.MAX_PROGESS&&(Y.hostElement.hidden=!0)})};
_.z.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.y6.Object.defineProperties(le.prototype,{progress:{configurable:!0,enumerable:!0,set:function(Y){this.progress_=Y;var S="scaleX("+Y/this.MAX_PROGESS+")",P=_.I(this.hostElement).querySelector("#progress").style;P.transform=S;P.webkitTransform=S;this.hostElement.setAttribute("aria-valuenow",String(Y))},
get:function(){return this.progress_}}});
_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],le.prototype,"ytComponentBehavior",void 0);le=_.Q([_.r0({is:"yt-page-navigation-progress",disableElementRegistration:!0})],le);
_.A(le,"yt-page-navigation-progress",function(){if(l81===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');Y.content.insertBefore(_.H().content.cloneNode(!0),
Y.content.firstChild);var S=Y.content,P=S.insertBefore;dpB===void 0&&(dpB=document.createElement("template"));var u=dpB;P.call(S,u.content.cloneNode(!0),Y.content.firstChild);l81=Y}Y=l81;return Y},{mode:2});var X$c={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"},Zp1={"font-size":"12px","font-style":"italic"},ipZ={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.v9c=function(){return _.B(function(Y){_.Yt(Y)})};_.AL(_.AI(function(){var Y=_.GI(_.uA8);return _.R("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var S;return(S=Y())==null?void 0:S.announcement})},"Fg"),"yt-ephemeral-actions");var QKo=new Map;var IAY=function(Y,S){var P=this;this.handleError=Y;this.logEventInternal=S;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){P.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
IAY.prototype.logError=function(Y){this.handleError(Y)};
IAY.prototype.logEvent=function(Y,S){switch(Y){case "IDB_DATA_CORRUPTED":_.f("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",S);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",S);break;case "IS_SUPPORTED_COMPLETED":_.f("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",S);break;case "QUOTA_EXCEEDED":obo(this,S);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",S);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":Y=Object.assign({},S,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",Y)}};
var obo=function(Y,S){_.ne.getInstance().estimate().then(function(P){P=Object.assign({},S,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:MVY(P==null?void 0:P.usage),deviceStorageQuotaMbytes:MVY(P==null?void 0:P.quota)});Y.logEventInternal("idbQuotaExceeded",P)})};var XG=function(){var Y=_.Z.apply(this,arguments)||this;Y.tabGesturesIsActive=!1;Y.deprecateFullerscreenUi=_.f("web_watch_fullerscreen_deprecation_ui");Y.hasDelegation=!1;Y.darkerDarkTheme=_.f("web_darker_dark_theme");Y.isFrostedGlassInitialized=!1;Y.frostedGlassExp=_.f("web_frosted_glass");Y.mastheadHiddenFocusWithinKillswitch=_.f("web_masthead_hidden_focus_within_killswitch");Y.ephemeralActionsEnabled=_.f("web_ephemeral_actions");Y.scrollAtTop=!0;Y.guideScrollTop=0;Y.isTheaterModeSession=_.Z4("START_IN_THEATER_MODE");
Y.isFullWindowSession=_.Z4("START_IN_FULL_WINDOW_MODE");Y.hasCreateFamilyDialog=!1;Y.mastheadHeight=56;Y.networkStatusManager=new _.kF;Y.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen",
"yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-clear-url-param-command":"handleClearUrlParamCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications","yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction",
"yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation","yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage",
"yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-persist-subscriptions-display-preferences-command":"handlePersistSubscriptionsDisplayPreferencesCommand","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleWebNativeShareCommand","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};Y.dynamicActionMap={"yt-run-attestation-command":function(S){var P=_.z8_.instance,u=_.g(S,_.qMU);return u?_.f("use_rta_manager_for_async")&&
qh5()?Oc1(P,u,S.clickTrackingParams):enj(P,u,S.clickTrackingParams):_.t9(Error("ni"))}};
Y.isFrostedGlassDisabled=!1;Y.isChannelOrPlaylistPage=!1;return Y};
_.r(XG,_.Z);_.z=XG.prototype;_.z.created=function(){var Y=_.E();_.f("kevlar_clear_duplicate_pref_cookie")&&_.hp(_.wc,function(){var S=_.T_.get("PREF");S&&!/f\d=/.test(S)&&(S=_.mG("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=S?"PREF=null;domain="+S+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.f("gzip_gel_with_worker")&&_.Ro$();_.f("jspb_serialize_with_worker")&&ZzI();_.f("web_worker_availability_check")&&kpI();_.f("nwl_init_killswitch")||lA1().then(function(){_.wc.addLowPriorityJob(HM1)});
this.pageManagerAttachedPromise=_.dL();this.ytdAppBehavior.loadDepsPromise=_.fl([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.NE(this.onThrottledScroll,200,this);_.f("external_fullscreen")&&(this.fullscreen=!1);this.ephemeralResponseStore=Y.resolve(_.VG);this.boundOnTouchStart=this.onTouchStart.bind(this);aAd();KRu=!!_.tA("ytappsettings.initialized");jz=_.tA("ytappsettings.previousValue");aR5=_.tA("ytappsettings.previousSnapshotTime");KRu||
(KRu=!0,LVY());Pj_();ukY();_.lk("DEFERRED_DETACH",_.f("kevlar_tuner_should_defer_detach"));_.lk("REUSE_COMPONENTS",!0);_.lk("STAMPER_STABLE_LIST",!0);_.lk("SCHEDULED_LAZY_LIST",!0);_.lk("openPopupConfig",UC1);_.lk("useClickHandler",!0);_.f("kevlar_shell_cleanup")&&_.wc.addLowPriorityJob(KVB.bind(this,_.Pa.caches));_.Z4("IS_SHELL_LOAD")&&_.wP({shellStartupDurationMs:Math.round((0,_.Oh)()-_.vu())});LMd(this.networkStatusManager);_.f("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",rKZ(X$c)),
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!",rKZ(Zp1)),console.log("%cVisit http://go/join-youtube-web to apply today.",rKZ(ipZ)));_.Foo(Y.resolve(_.u5),1E3)};
_.z.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var Y=Nk5();Y&&!_.f("external_fullscreen_killswitch")&&document.addEventListener(Y,this.setFullscreen.bind(this));(Y=window.matchMedia("(prefers-color-scheme: dark)"))&&Y.addEventListener&&Y.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.z.attached=function(){var Y=this;_.aQ().processSignal("ci");_.f("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.O9X?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.q2(_.KJa(),"SUCCESS");this.updateIconSet();_.uj(this.guideInnerContent,!1);_.YA().initVisibilityObserver();this.guideService.guideElement=this.guide;var S=document.createElement("ytd-miniplayer"),P=_.I(this.hostElement).querySelector("#content");
_.I(this.hostElement).insertBefore(S,P);_.aQ().processSignal("ma");_.E().resolve(_.l1).init(S);_.Z4("IS_SHELL_LOAD")&&(P=document.createElement("ytd-network-status-banner"),_.I(this.hostElement).insertBefore(P,S));_.f("kevlar_right_click_on_lockups")&&_.XU._onCaptureClick&&document.addEventListener("contextmenu",_.XU._onCaptureClick.bind(_.XU),!0);var u=function(){var W=_.Xh("yt-page-navigation-progress");_.I(Y.hostElement).appendChild(W)};
setTimeout(function(){_.aQ().parkOrScheduleJob(u,0,"eocs",16)},0);
_.f("service_worker_push_enabled")&&_.hp(_.wc,yi1);_.Uf(_.Ap.getInstance(),this.dynamicActionMap,this.hostElement);_.ms(this.hostElement,"ytd-app-attached");_.aQ().processSignal("aa");ci_(this.hostElement);_.HQ("gapi.load",_.WIh);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.hp(_.wc,
function(){var W=document.createElement("ytd-video-preview");_.I(_.I(Y.hostElement).querySelector("#video-preview")).appendChild(W)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.hp(_.wc,function(){Dyj();Y.registerViewTransitionTasks()});
if(_.pV()&&this.isAppDarkTheme()!==_.LV())this.onDarkModeToggledAction();else S=_.w2()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==S&&(_.f("enable_dark_theme_only_on_shorts")?_.aK(_.f("enable_dark_theme_only_on_shorts_control")?window.location.href:_.y4(window.location.href,{theme:"dark"})):_.sf(new _.$2("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(yD1=new MoX(this.hostElement)),p$_=new w$1(this.hostElement),L11=new a8c(this.hostElement),qLd=new Csu(this.hostElement)};
_.z.getThemeSettingsToLog=function(){var Y=_.w2()==="USER_INTERFACE_THEME_DARK";Y=_.pV()?_.LV()?"os-dark":"os-light":Y?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:Y,cookiesEnabled:_.Eh()}};
_.z.detached=function(){_.zd(this.guideInnerContent);_.wc.cancelJob(uU);uU=0;_.wc.cancelJob(zb);zb=0;_.Dyu(BcI);BcI.length=0;nF5=_.SLX=null;_.YA().dispose();_.f("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.QZ(_.Ap.getInstance(),yD1.playlistHandlerActionMap,yD1.JSC$28235_clientRoot);_.QZ(_.Ap.getInstance(),p$_.downloadManagerActionMap,p$_.JSC$28540_clientRoot);_.QZ(_.Ap.getInstance(),L11.feedbackCollectorActionMap,L11.JSC$28535_clientRoot);
for(var Y=_.n(qLd.eventListeners),S=Y.next();!S.done;S=Y.next()){var P=_.n(S.value);S=P.next().value;P=P.next().value;P=_.n(P);for(var u=P.next();!u.done;u=P.next()){var W=_.n(u.value);u=W.next().value;W=W.next().value;S.removeEventListener(u,W)}}_.QZ(_.Ap.getInstance(),qLd.autonavPauseActionMap,qLd.JSC$17599_clientRoot)};
_.z.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.$o().getFlag(186)};
_.z.computeIsInlinePreviewEnabled=function(Y,S,P){return!P&&_.ab5({miniplayerIsActive:Y,miniplayerPlaybackState:S})};
_.z.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.WT({type:"SET_FROSTED_GLASS_MODE",payload:!_.f("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"}))};
_.z.computeIsFrostedGlassDisabled=function(Y,S,P,u){return Y||S||P||u&&_.f("web_frosted_glass_disable_watch")};
_.z.computeIsHomePage=function(Y,S){if(!Y||S==null||!S.endpoint)return!1;var P;return((P=_.g(S.endpoint,_.CV))==null?void 0:P.browseId)==="FEwhat_to_watch"};
_.z.updateIsChannelOrPlaylistPage=function(){if(_.f("web_frosted_glass")){var Y,S,P=(S=(Y=_.E().resolve(_.PQ(_.Ag)))==null?void 0:Y.getCurrentPage())==null?void 0:S.pageSubtype;this.isChannelOrPlaylistPage=P?["channel","channels","playlist"].includes(P):!1}};
_.z.scheduleFrostedGlassInitialization=function(){var Y=this;_.f("web_frosted_glass")&&_.aQ().parkOrScheduleJob(function(){Y.isFrostedGlassInitialized=!0},0,_.vn(["eocs",
"cr"]),300)};
_.z.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.wbh(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.WT({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.WT({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.z.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(jFX(!0))};
_.z.onYtSignalActionRequestPersistentStorage=function(){if(!_.f("request_persistent_storage_killswitch")){var Y=_.E().resolve(_.Xa5);Y.cachedPersistStatePromise||(Y.cachedPersistStatePromise=GRu())}};
_.z.handleYtChannelCreationFormEndpoints=function(Y){Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.z.handleShowEngagementPanelEndpoint=function(Y){Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.z.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(jFX(!1))};
_.z.initIconDefs=function(Y,S,P){var u=document.createElement("iron-iconset-svg");u.name=Y;Y=document.createElementNS("http://www.w3.org/2000/svg","svg");u.appendChild(Y);Y.appendChild(S);if(P)for(var W in P)u[W]=P[W];document.body.appendChild(u);return u};
_.z.onWindowResized=function(){_.nb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var Y=_.tQm.getInstance();Y.documentWidth_=document.body.clientWidth;hn_(Y)};
_.z.onWindowScrolled=function(){var Y=_.E().resolve(_.Ag).getCurrentPage();if(Y!=null&&Y.getScrollTop){var S=this.ytdReduxBehavior,P=S.dispatch;Y=Y.getScrollTop()<=0;P.call(S,_.WT({type:"SET_SCROLL_AT_TOP",payload:Y}))}};
_.z.guideIsVisibleButNotPersistentSelectorChanged=function(){var Y=_.E().resolve(_.Ag).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=Y.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
Y.setScrollTop(this.guideScrollTop));_.jR(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.z.getCurrentPageScrollableElementType=function(){var Y=_.E().resolve(_.Ag).getCurrentPage();if(Y&&Y.getPageScrollingElement())return Y.getPageScrollingElement().nodeName};
_.z.observeGuideVisibility=function(){var Y=_.tQm.getInstance(),S=this.miniGuideVisible;Y.guidePersistentAndVisible_=this.guidePersistentAndVisible;Y.miniGuideVisible_=S;hn_(Y)};
_.z.handleEduDismissAction=function(Y){Y&&Y.eduDismissAction&&(_.nb(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.lqu.getInstance(),_.A5.set(Y.eduDismissAction.key+"-dismissed",!0))};
_.z.handleEduImpressionAction=function(Y){if(Y&&Y.eduImpressionAction){var S=_.lqu.getInstance();Y=Y.eduImpressionAction.key;S.JSC$10757_eduDisplayedThisLoad_[_.drU[Y].setKey||Y]=!0;_.A5.set(Y+"-impression",parseInt(_.A5.get(Y+"-impression")||0,10)+1)}};
_.z.onYtSignalActionConfirmMentionsEdu=function(){_.nb(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.km.getInstance();_.QV.set("edu-dismissed",!0)};
_.z.onYtSignalActionRecordMentionsEduImpression=function(){_.km.getInstance();var Y=_.QV.set,S=parseInt(_.QV.get("edu-impressions"),10);Y.call(_.QV,"edu-impressions",(isFinite(S)?S:0)+1)};
_.z.onYtPageManagerAttached=function(Y){var S;((S=_.oK(Y))==null?void 0:S.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.z.onInvokeInstrumentManagerAction=function(Y,S){VVY(S,Y)};
_.z.updateIconSet=function(){var Y=this.hostElement.querySelector("#masthead");if(Y){var S=_.Hq(Y),P=S.querySelector("g#yt-logo-updated");P&&(Y=document.createElementNS("http://www.w3.org/2000/svg","defs"),Y.appendChild(P.cloneNode(!0)),(S=S.querySelector("g#yt-logo-red-updated"))&&Y.appendChild(S.cloneNode(!0)),this.initIconDefs("yt-logos-ext",Y))}};
_.z.updateMastheadData=function(){var Y=this,S,P,u,W;return _.B(function(m){if(m.nextAddress==1){S=Y.data;P=Y.hostElement.querySelector("#masthead");if(!P)return m.return();_.ky(Y,function(){P.data=Y.topbarData});
return Y.get("response.topbar",S)&&Y.get("response.topbar.responseContext.maxAgeSeconds",S)!==0?(u=_.E().resolve(_.XN))?_.q(m,u(),7):Y.ephemeralResponseStore?_.q(m,Y.ephemeralResponseStore.put("service:topbar:fallback",new _.e4({innertubeResponse:Y.get("response.topbar",S)})),0):m.jumpTo(0):m.jumpTo(0)}return(W=m.yieldResult)?_.q(m,W.put("service:topbar:fallback",new _.e4({innertubeResponse:Y.get("response.topbar",S)})),0):m.jumpTo(0)})};
_.z.computeTopbarData=function(Y){if(!Y)return null;var S;return this.isShortsPage&&this.topbarData&&!_.g((S=Y.response)==null?void 0:S.topbar,qmB)?this.topbarData:Y.response&&"topbar"in Y.response?_.g(Y.response.topbar,qmB)||null:null};
_.z.onSetTheaterModeEnabled=function(Y,S){this.isTheaterModeSession=S.enabled;this.setTheaterModeStyles(S.enabled)};
_.z.setTheaterModeStyles=function(){this.setMastheadTheme()};
_.z.onDarkModeToggledAction=function(){var Y=_.Cz(window.location.href);if(!_.BaU(Y)){(Y=!!_.MP(window.location.href).themeRefresh)&&_.sf(new _.$2("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!Y){LVY();Y={themeRefresh:1};var S=_.E().resolve(_.Ag);if(S.isOnWatch()){var P,u;S=((P=S.getPlayerFromWatch())==null?void 0:(u=P.getPlayer())==null?void 0:u.getCurrentTime())||0;S>=1&&(Y.time_continue=Math.floor(S))}_.Eh()||_.w2()!=="USER_INTERFACE_THEME_DARK"||(Y.theme="dark");_.aK(_.y4(window.location.href,
Y))}_.f("web_appshell_refresh_trigger")&&_.Pa.caches&&this.refreshAppShellResponse();P=_.A9(window.location.href);_.SM(_.E().resolve(_.Pb),_.O2(P,"theme"))}};
_.z.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.z.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.z.onPlayerFullscreen=function(Y){_.SR();this.playerFullscreen=Y};
_.z.setRestrictedMode=function(Y){var S=_.$o();_.rP(0,58,Y);S.save();_.E().resolve(_.OG).reload()};
_.z.onPageChanged=function(Y){Y.detail.newPageType==="ytd-watch-flexy"||Y.detail.newPageType==="ytd-watch-fixie"||Y.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Dd("WEB_PAGE_TYPE_WATCH")):Y.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Dd("WEB_PAGE_TYPE_SHORTS")):Y.detail.newPageType==="ytd-browse"&&Y.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Dd("WEB_PAGE_TYPE_MINI_APP")):_.f("web_frosted_glass")&&Y.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Dd("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Dd("WEB_PAGE_TYPE_UNKNOWN"));Y.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.z.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.z.onGuideToggleTap=function(){_.ms(this.hostElement,"yt-guide-toggle")};
_.z.onGuideToggleHover=function(){_.ms(this.hostElement,"yt-guide-hover")};
_.z.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.z.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.z.setMastheadTheme=function(){var Y=_.Hq(this.hostElement).querySelector("#masthead");Y&&(Y.dark=Y.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),Y.isDarkThemeForced=!1)};
_.z.onRequestPanelModeChange=function(Y,S){this.hideHeaderShadow=S.mode!=="seamed"};
_.z.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.z.onDrawerIronSelect=function(Y){_.oK(Y).id==="guide"&&this.processDrawerIronSelect()};
_.z.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var Y="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(Y="opened"));_.ms(this.hostElement,"yt-autonav-pause-guide-"+Y)};
_.z.onAddElementToApp=function(Y){_.I(this.hostElement).appendChild(Y.detail)};
_.z.onThrottledScroll=function(){var Y=_.E().resolve(_.Ag).getCurrentPage();Y&&(this.scrollAtTop=Y.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.z.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.z.setFullscreen=function(){if(_.f("external_fullscreen")||!this.isWatchPage){var Y=_.f("kevlar_fullerscreen_root_only_killswitch")?!!_.SR():!!_.SR()&&_.SR()===document.documentElement;Y=(this.isWatchPage||_.f("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(Y||this.isFullWindowSession);this.fullscreen!==Y&&((this.fullscreen=Y)&&_.jR(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Na().dispatch(_.j46(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.toggleFullscreenStyles(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen),_.nb(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.z.setFullscreenLoggingForShorts=function(Y){var S,P,u;return _.B(function(W){if(W.nextAddress==1)return _.q(W,(S=_.Q5())==null?void 0:S.getPlayerPromise(),2);P=W.yieldResult;(u=P)==null||u.setAppFullscreen(Y);_.Yt(W)})};
_.z.updateMastheadCssHeight=function(){var Y=this.mastheadHeight;this.fullscreen&&(Y=0);_.PZ(this.hostElement,{"--ytd-masthead-height":Y+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.z.updateNetworkStatusBannerDisplayStatus=function(){var Y="unset";this.fullscreen&&(Y="none");_.PZ(this.hostElement,{"--ytd-network-status-banner-display":Y})};
_.z.updateNetworkStatusBannerCssHeight=function(){var Y="unset";this.fullscreen&&(Y="0px");_.PZ(this.hostElement,{"--ytd-network-status-banner-max-height":Y})};
_.z.toggleFullscreenStyles=function(Y,S,P){var u=_.E().resolve(_.Ag).getCurrentPage();Y||S?(document.body.classList.add("no-scroll"),u.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.up(this,this.onScroll)),u.setScrollTop(0),_.PZ(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.$0()+"px"})):P?_.ms(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.ms(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),u.pageScrollElement=
null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.up(this,this.onScroll)));this.mastheadHidden=Y||S||P;this.updateMastheadCssHeight();_.f("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.z.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.z.onYtMastheadHeightChanged=function(Y,S){this.mastheadHeight=S.height;this.updateMastheadCssHeight()};
_.z.onYtNavigateAction=function(Y){Y=this.get("navigateAction.endpoint",Y);_.ms(this.hostElement,"yt-navigate",{endpoint:Y})};
_.z.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var Y=document.createElement("yt-create-family-dialog");_.I(this.hostElement).appendChild(Y);this.hasCreateFamilyDialog=!0}};
_.z.onSetPushNotificationsEnabledCommand=function(Y){var S=this,P=_.g(Y,Cr1);P&&typeof P.enabled==="boolean"&&(Notification.permission!=="granted"?AiZ().then(function(){Notification.permission==="granted"?(hlj(!P.enabled).then(IRI),P.successAction&&_.Bu(S.hostElement,[P.successAction])):P.failureAction&&_.Bu(S.hostElement,[P.failureAction])}):(hlj(!P.enabled).then(IRI),P.successAction&&_.Bu(this.hostElement,[P.successAction])))};
_.z.onYtSignalActionEnableChromeNotifications=function(){UR6(!0)};
_.z.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.g(this.topbarData.hotkeyDialog,bDu)}}})};
_.z.onYtSignalActionShowKeyboardShortcutDialog=function(){_.nb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.z.onYtEndpointChangeHandler=function(Y,S){var P=_.zU(_.ea);P.pendingPrefetchJob_&&(S=!(!S||S.autonav!="1"),P.pendingPrefetchJob_.resolve(Y&&_.Psh(Y)?_.uR1(Y,S):""),P.pendingPrefetchJob_=null);_.nb(this.hostElement,"yt-pause-active-page-context");_.nb(this.hostElement,"ytd-log-youthere-nav");_.nb(this.hostElement,"yt-prepare-page-dispose")};
_.z.handleClearUrlParamCommand=function(Y){_.zR.instance.resolveCommand(Y);_.f("web_clear_url_param_command_resolver_ks")||(Y=new _.$2("ClearUrlParamCommand handled in YtdApp"),_.p_(Y))};
_.z.handleCommandWithCommandHandler=function(Y,S){_.zR.instance.resolveCommand(Y,{form:{element:S}})};
_.z.onYtTimedCommand=function(Y){var S=this;Y=_.g(Y,SmX);var P=Y.command;P&&_.$I(_.wc,function(){var u=_.g(P,_.bDs);u?(_.zR.instance.resolveCommand(P),S.maybeLogGetAnswerRequestTick(u)):_.cu(S.hostElement,[P],S.hostElement)},Y.timeoutMs||0)};
_.z.maybeLogGetAnswerRequestTick=function(Y){Y&&Y.isFirstRequest&&(_.pb("search_overview_answer"),_.Fk("so_rq",void 0,"search_overview_answer"))};
_.z.onYtSignalActionSkipNavigation=function(){var Y=_.E().resolve(_.Ag).getCurrentPage();_.H_(Y)};
_.z.onYtSignalActionCopyDebugData=function(){u_1()};
_.z.handleEntityUpdateCommand=function(Y){_.xW(_.g(Y,_.gMf).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.z.logFlowLoggingEventCommand=function(Y){if(Y=_.g(Y,_.N4E))if(Y.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var S=Y.flowEventNamespace,P=Y.flowEventType,u=Y.flowType;u&&S&&P&&_.yD8(_.jV(S,P,Y.flowEventMetadata),u)}else{S=_.Bq();P=Y.flowEventNamespace;u=Y.flowEventType;var W=Y.flowType;W&&P&&u&&_.JK(S,_.jV(P,u,Y.flowEventMetadata),W,Y.flowNonce)}};
_.z.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.z.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.z.onTouchStart=function(){var Y=_.So();_.pM()&&_.wL(Y.JSC$10909_screenManager,{visualElement:Y.ve})};
_.z.handleWebNativeShareCommand=function(Y){_.zR.instance.resolveCommand(Y);_.f("web_native_share_command_resolver_ks")||(Y=new _.$2("WebNativeShareCommand handled in YtdApp"),_.p_(Y))};
_.z.handlePersistSubscriptionsDisplayPreferencesCommand=function(Y){_.zR.instance.resolveCommand(Y);_.f("web_persist_subscriptions_display_preferences_command_resolver_ks")||(Y=new _.$2("PersistSubscriptionsDisplayPreferencesCommand handled in YtdApp"),_.p_(Y))};
_.z.handleSelectLanguageCommand=function(Y){if(Y=_.g(Y,Jn5).hl){var S=_.$o();S.set("hl",Y);S.save();_.E().resolve(_.OG).reload()}};
_.z.handleConfirmDialogEndpoint=function(Y){(Y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(Y))&&this.ytOpenPopupBehavior.openPopup(Y)};
_.z.handleOpenPopupNavigationEndpoints=function(Y,S){_.f("web_button_rework")&&(Y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(Y))&&this.ytOpenPopupBehavior.openPopup(Y,S)};
_.z.handleSaveCommandToSessionStorage=function(Y){if(Y=_.g(Y,_.En_)){var S=Y.key;S&&Y.command&&window.sessionStorage.setItem(S,JSON.stringify(Y.command))}};
_.z.hardReloadWithShellPurge=function(Y){Y=Y===void 0?{}:Y;Y=Object.assign({},Y,{purge_shell:1});Y=_.tS_(Y);_.aK(Y)};
_.z.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(Y){Y&&Y.active&&Y.active.postMessage({type:"refresh_shell"})}).catch(function(Y){Y.name!=="SecurityError"&&_.p_(Y)})};
_.z.onDeviceThemeChanged=function(){var Y=_.LV();_.rP(_.$o(),185,Y);_.$o().save()};
_.z.handleYtRegisterPromoCommand=function(Y){if(_.g(Y,cnc)){var S=_.E().resolve(_.Ag).getCurrentPage()||this.hostElement;gAI().registerPromoCommand(_.g(Y,cnc),S)}};
_.z.onYtNavigateHomeAction=function(){if(!_.f("kevlar_miniplayer_navigate_home_from_app_killswitch")){var Y,S,P,u,W=(u=(Y=this.topbarData)==null?void 0:(S=Y.logo)==null?void 0:(P=S.topbarLogoRenderer)==null?void 0:P.endpoint)!=null?u:_.ja;this.ytComponentBehavior.resolveCommand(W)}};
_.z.onYtLocationCollectionCommand=function(Y){hCo(_.g(Y,G8Y))};
_.z.onYtGetLocationCommand=function(Y){J6Z(_.g(Y,rnd),this)};
_.z.updateRenderGuideFromBinding=function(Y){this.renderGuide=Y.detail.value};
_.z.updateGuidePersistentAndVisibleFromBinding=function(Y){this.guidePersistentAndVisible=Y.detail.value};
_.z.updateMiniGuideVisibleFromBinding=function(Y){this.miniGuideVisible=Y.detail.value};
_.z.onThemeSelected=function(Y,S){var P=_.$o(),u=Y||S?Y:_.LV(),W=(u&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!u&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.BaU(_.Cz(window.location.href));_.rP(0,165,Y);_.rP(0,174,S);P.save();W&&_.nb(this.hostElement,"yt-dark-mode-toggled-action",[u]);_.nb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.z.getCurrentTheme=function(){return _.pV()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.w2()};
_.z.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.z.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.z.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.z.handleShowConsentPrimitive=function(Y){var S=this,P,u;return _.B(function(W){if(W.nextAddress==1){try{P=(u=_.Q5())==null?void 0:u.getPlayerPromise()}catch(m){}return _.q(W,Uy1(Y,P),2)}_.nb(S.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Yt(W)})};
_.z.handleSelectActiveIdentityEndpointInternal=function(Y){_.DV();Y=_.g(Y,_.d$h);if(Y!=null&&Y.supportedTokens){Y=_.n(Y.supportedTokens);for(var S=Y.next();!S.done;S=Y.next())S=S.value,S.accountSigninToken&&_.aK(S.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.z.handleUpdatePermissionRoleCommand=function(Y){if(Y=_.g(Y,_.FTu)){var S;this.hasDelegation=!((S=_.g(Y.renderer,_.pmi))==null||!S.status)}};
_.z.registerViewTransitionTasks=function(){var Y=this,S=_.E().resolve(_.PQ(_.QuB));if(S){var P,u=(P=this.guide)==null?void 0:P.querySelector("#scrim"),W,m=(W=this.guide)==null?void 0:W.querySelector("#contentContainer");u&&m&&(P={beforeTransition:function(){var J;(J=Y.guide)!=null&&J.persistent||(u.style.viewTransitionName="app-drawer-scrim",m.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var J;(J=Y.guide)!=null&&J.persistent||(u.style.viewTransitionName="",m.style.viewTransitionName="")}},jJ(S,"slide",P),jJ(S,"zoom",P))}};
_.y6.Object.defineProperties(XG.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.f("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.y6.Object.defineProperties(XG,{template:{configurable:!0,enumerable:!0,get:function(){if(rRj===void 0){var Y=document.createElement("template");_.h(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
Y.content.insertBefore(_.H().content.cloneNode(!0),Y.content.firstChild);rRj=Y}Y=rRj;return Y}}});
XG.prototype.onOpenHotkeyDialog=XG.prototype.onOpenHotkeyDialog;XG.prototype.onYtMastheadHeightChanged=XG.prototype.onYtMastheadHeightChanged;XG.prototype.setFullscreen=XG.prototype.setFullscreen;XG.prototype.onAddElementToApp=XG.prototype.onAddElementToApp;XG.prototype.onDrawerIronSelect=XG.prototype.onDrawerIronSelect;XG.prototype.onGuideOpenButtonHover=XG.prototype.onGuideOpenButtonHover;XG.prototype.onRequestPanelModeChange=XG.prototype.onRequestPanelModeChange;
XG.prototype.onPageDataUpdated=XG.prototype.onPageDataUpdated;XG.prototype.onPageChanged=XG.prototype.onPageChanged;XG.prototype.onSetTheaterModeEnabled=XG.prototype.onSetTheaterModeEnabled;XG.prototype.updateMastheadData=XG.prototype.updateMastheadData;XG.prototype.onYtPageManagerAttached=XG.prototype.onYtPageManagerAttached;XG.prototype.observeGuideVisibility=XG.prototype.observeGuideVisibility;XG.prototype.guideIsVisibleButNotPersistentSelectorChanged=XG.prototype.guideIsVisibleButNotPersistentSelectorChanged;
XG.prototype.isInlinePreviewEnabledChanged=XG.prototype.isInlinePreviewEnabledChanged;XG.prototype.dispatchFrostedGlassMode=XG.prototype.dispatchFrostedGlassMode;_.Q([_.p(_.Gn),_.k("design:type",Object)],XG.prototype,"ytdReduxBehavior",void 0);_.Q([_.p(_.z$.YtEventForwardingBehavior),_.k("design:type",Object)],XG.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.p(_.Vt.YtOpenPopupBehavior),_.k("design:type",Object)],XG.prototype,"ytOpenPopupBehavior",void 0);
_.Q([_.p(_.tD.YtActionHandlerBehavior),_.k("design:type",Object)],XG.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.p({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Ap.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.f("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var Y;((Y=this.actionRouterNode.hostElement)!=null?Y:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var Y;((Y=this.actionRouterNode.hostElement)!=null?Y:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(Y){this.actionRouter_.handleAction(Y.detail)}}),
_.k("design:type",Object)],XG.prototype,"ytActionRouterBehavior",void 0);_.Q([_.p(aGI.YtdAppBehavior),_.k("design:type",Object)],XG.prototype,"ytdAppBehavior",void 0);_.Q([_.p(_.eo.YtEndpointBehavior),_.k("design:type",Object)],XG.prototype,"ytEndpointBehavior",void 0);_.Q([_.p(I8B.YtEndpointHandlerWithYpcBehavior),_.k("design:type",Object)],XG.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.Q([_.p(GhI.YtLogYpcFlowCommandsBehavior),_.k("design:type",Object)],XG.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.Q([_.p(_.e.YtRendererBehavior),_.k("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.Q([_.p(_.rm.YtComponentBehavior),_.k("design:type",Object)],XG.prototype,"ytComponentBehavior",void 0);_.Q([_.X({selector:_.BQd}),_.k("design:type",Object)],XG.prototype,"tabGesturesIsActive",void 0);_.Q([_.X(),_.k("design:type",Boolean)],XG.prototype,"renderGuide",void 0);
_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"guidePersistentAndVisible",void 0);_.Q([_.X({selector:_.JsB}),_.k("design:type",Boolean)],XG.prototype,"guideIsVisibleButNotPersistent",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"standalone",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"miniGuideVisible",void 0);
_.Q([_.X({selector:_.BDX}),_.k("design:type",Number)],XG.prototype,"miniplayerPlaybackState",void 0);_.Q([_.X({selector:_.pA,reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"miniplayerIsActive",void 0);_.Q([_.X({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.k("design:type",Boolean)],XG.prototype,"isInlinePreviewEnabled",void 0);_.Q([_.X(),_.k("design:type",Boolean)],XG.prototype,"isInlinePreviewDisabled",void 0);
_.Q([_.X({reflectToAttribute:!0,value:function(){return _.Z4("START_IN_FULL_WINDOW_MODE")}}),
_.k("design:type",Boolean)],XG.prototype,"mastheadHidden",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"playerFullscreen",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XG.prototype,"deprecateFullerscreenUi",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"fullscreen",void 0);_.Q([_.X({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"hideHeaderShadow",void 0);
_.Q([_.X({value:{GUIDE_ALT_LABEL:_.Td("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.k("design:type",Object)],XG.prototype,"menuStrings",void 0);_.Q([_.X({computed:"computeTopbarData(data)"}),_.k("design:type",Object)],XG.prototype,"topbarData",void 0);_.Q([_.X({selector:_.Fp}),_.k("design:type",Boolean)],XG.prototype,"isWatchPage",void 0);_.Q([_.X({selector:_.npY,reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"isShortsPage",void 0);
_.Q([_.X({selector:function(Y){return Y.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.k("design:type",Boolean)],XG.prototype,"isMiniAppPage",void 0);_.Q([_.X({selector:function(Y){return Y.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.k("design:type",Boolean)],XG.prototype,"isBrowsePage",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"scrolling",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XG.prototype,"hasDelegation",void 0);_.Q([_.X({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],XG.prototype,"guideScrolledByTouch",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XG.prototype,"darkerDarkTheme",void 0);
_.Q([_.X(),_.k("design:type",Object)],XG.prototype,"isFrostedGlassInitialized",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XG.prototype,"frostedGlassExp",void 0);_.Q([_.X({selector:function(Y){return Y.ui.chipBarIsSticky}}),
_.k("design:type",Boolean)],XG.prototype,"chipBarIsSticky",void 0);_.Q([_.X({computed:"computeIsHomePage(isBrowsePage, data)"}),_.k("design:type",Boolean)],XG.prototype,"isHomePage",void 0);_.Q([_.X({reflectToAttribute:!0}),_.k("design:type",Object)],XG.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.Q([_.X(),_.k("design:type",Object)],XG.prototype,"ephemeralActionsEnabled",void 0);_.Q([_.U8("guide"),_.k("design:type",Object)],XG.prototype,"guide",void 0);
_.Q([_.U8("guide-service"),_.k("design:type",bkj)],XG.prototype,"guideService",void 0);_.Q([_.U8("guide-inner-content"),_.k("design:type",HTMLDivElement)],XG.prototype,"guideInnerContent",void 0);_.Q([_.X({selector:_.COX}),_.k("design:type",String)],XG.prototype,"frostedGlassMode",void 0);
_.Q([_.zY("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XG.prototype,"dispatchFrostedGlassMode",null);_.Q([_.X({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.k("design:type",Object)],XG.prototype,"isFrostedGlassDisabled",void 0);
_.Q([_.d("isHomePage","chipBarIsSticky"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XG.prototype,"applyFrostedGlassToChipBar",null);_.Q([_.X(),_.k("design:type",Object)],XG.prototype,"isChannelOrPlaylistPage",void 0);_.Q([_.cZ("isInlinePreviewEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XG.prototype,"isInlinePreviewEnabledChanged",null);
_.Q([_.zY("guideIsVisibleButNotPersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XG.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.Q([_.zY("guidePersistentAndVisible","miniGuideVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XG.prototype,"observeGuideVisibility",null);
_.Q([_.WZ("attached"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],XG.prototype,"onYtPageManagerAttached",null);_.Q([_.zY("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],XG.prototype,"updateMastheadData",null);_.Q([_.WZ("yt-set-theater-mode-enabled"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],XG.prototype,"onSetTheaterModeEnabled",null);
_.Q([_.WZ("yt-page-type-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],XG.prototype,"onPageChanged",null);_.Q([_.WZ("yt-page-data-updated"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XG.prototype,"onPageDataUpdated",null);_.Q([_.WZ("yt-request-panel-mode-change"),_.k("design:type",Function),_.k("design:paramtypes",[Event,Object]),_.k("design:returntype")],XG.prototype,"onRequestPanelModeChange",null);
_.Q([_.WZ("yt-guide-hover"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XG.prototype,"onGuideOpenButtonHover",null);_.Q([_.WZ("app-drawer-transitioned"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],XG.prototype,"onDrawerIronSelect",null);_.Q([_.WZ("yt-add-element-to-app"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],XG.prototype,"onAddElementToApp",null);
_.Q([_.WZ("yt-set-fullerscreen-styles"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XG.prototype,"setFullscreen",null);_.Q([_.WZ("yt-masthead-height-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],XG.prototype,"onYtMastheadHeightChanged",null);_.Q([_.WZ("yt-open-hotkey-dialog"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XG.prototype,"onOpenHotkeyDialog",null);
XG=_.Q([_.t({is:"ytd-app"})],XG);_.aQ().processSignal("eor");
_.Gl();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
